-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
127 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* Materialize Stepper - A little plugin that implements a stepper to Materializecss framework. | ||
* @version v3.0.1 | ||
* @version v3.1.0 | ||
* @author Igor Marcossi (Kinark) <[email protected]>. | ||
* @link https://github.com/Kinark/Materialize-stepper | ||
* | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* Materialize Stepper - A little plugin that implements a stepper to Materializecss framework. | ||
* @version v3.0.1 | ||
* @version v3.1.0 | ||
* @author Igor Marcossi (Kinark) <[email protected]>. | ||
* @link https://github.com/Kinark/Materialize-stepper | ||
* | ||
|
@@ -108,6 +108,20 @@ function () { | |
} | ||
}); | ||
|
||
_defineProperty(this, "updateStepper", function () { | ||
var getSteps = _this.getSteps, | ||
_methodsBindingManager = _this._methodsBindingManager; // Gathers the current steps from the stepper | ||
|
||
var _getSteps2 = getSteps(), | ||
steps = _getSteps2.steps; // Removes any bound methods | ||
|
||
|
||
_methodsBindingManager(steps, true); // Send the steps again to the methodsBindingManager | ||
|
||
|
||
_methodsBindingManager(steps); | ||
}); | ||
|
||
_defineProperty(this, "_openAction", function (step, cb) { | ||
var closeActiveStep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; | ||
var skipAutoFocus = arguments.length > 3 ? arguments[3] : undefined; | ||
|
@@ -219,9 +233,9 @@ function () { | |
stepper = _this.stepper, | ||
_openAction = _this._openAction; | ||
|
||
var _getSteps2 = getSteps(), | ||
steps = _getSteps2.steps, | ||
active = _getSteps2.active; | ||
var _getSteps3 = getSteps(), | ||
steps = _getSteps3.steps, | ||
active = _getSteps3.active; | ||
|
||
var clickedStep = e.target.closest(".".concat(classes.STEP)); // Checks if the stepper is linear or not | ||
|
||
|
@@ -254,8 +268,8 @@ function () { | |
var showFeedbackPreloader = options.showFeedbackPreloader, | ||
validationFunction = options.validationFunction; | ||
|
||
var _getSteps3 = getSteps(), | ||
active = _getSteps3.active; | ||
var _getSteps4 = getSteps(), | ||
active = _getSteps4.active; | ||
|
||
var nextStep = getSteps().steps[active.index + 1]; // Gets the feedback function (if any) from the button | ||
|
||
|
@@ -588,12 +602,12 @@ function () { | |
wrapper.appendChild(stepper); // Returns the wrapper (the form) | ||
|
||
return wrapper; | ||
} else if (form.length) { | ||
} else if (form && form.length) { | ||
// The form exists | ||
// Returns the form | ||
return form; | ||
} else { | ||
// The form doesn't exist autoFormCreation is false | ||
// The form doesn't exist and autoFormCreation is false | ||
// Returns null | ||
return null; | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* Materialize Stepper - A little plugin that implements a stepper to Materializecss framework. | ||
* @version v3.0.1 | ||
* @version v3.1.0 | ||
* @author Igor Marcossi (Kinark) <[email protected]>. | ||
* @link https://github.com/Kinark/Materialize-stepper | ||
* | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* Materialize Stepper - A little plugin that implements a stepper to Materializecss framework. | ||
* @version v3.0.1 | ||
* @version v3.1.0 | ||
* @author Igor Marcossi (Kinark) <[email protected]>. | ||
* @link https://github.com/Kinark/Materialize-stepper | ||
* | ||
|
@@ -108,6 +108,20 @@ function () { | |
} | ||
}); | ||
|
||
_defineProperty(this, "updateStepper", function () { | ||
var getSteps = _this.getSteps, | ||
_methodsBindingManager = _this._methodsBindingManager; // Gathers the current steps from the stepper | ||
|
||
var _getSteps2 = getSteps(), | ||
steps = _getSteps2.steps; // Removes any bound methods | ||
|
||
|
||
_methodsBindingManager(steps, true); // Send the steps again to the methodsBindingManager | ||
|
||
|
||
_methodsBindingManager(steps); | ||
}); | ||
|
||
_defineProperty(this, "_openAction", function (step, cb) { | ||
var closeActiveStep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; | ||
var skipAutoFocus = arguments.length > 3 ? arguments[3] : undefined; | ||
|
@@ -219,9 +233,9 @@ function () { | |
stepper = _this.stepper, | ||
_openAction = _this._openAction; | ||
|
||
var _getSteps2 = getSteps(), | ||
steps = _getSteps2.steps, | ||
active = _getSteps2.active; | ||
var _getSteps3 = getSteps(), | ||
steps = _getSteps3.steps, | ||
active = _getSteps3.active; | ||
|
||
var clickedStep = e.target.closest(".".concat(classes.STEP)); // Checks if the stepper is linear or not | ||
|
||
|
@@ -254,8 +268,8 @@ function () { | |
var showFeedbackPreloader = options.showFeedbackPreloader, | ||
validationFunction = options.validationFunction; | ||
|
||
var _getSteps3 = getSteps(), | ||
active = _getSteps3.active; | ||
var _getSteps4 = getSteps(), | ||
active = _getSteps4.active; | ||
|
||
var nextStep = getSteps().steps[active.index + 1]; // Gets the feedback function (if any) from the button | ||
|
||
|
@@ -588,12 +602,12 @@ function () { | |
wrapper.appendChild(stepper); // Returns the wrapper (the form) | ||
|
||
return wrapper; | ||
} else if (form.length) { | ||
} else if (form && form.length) { | ||
// The form exists | ||
// Returns the form | ||
return form; | ||
} else { | ||
// The form doesn't exist autoFormCreation is false | ||
// The form doesn't exist and autoFormCreation is false | ||
// Returns null | ||
return null; | ||
} | ||
|
Oops, something went wrong.