kui-utils 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +3 -0
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ declare class MultistepForm<T extends object, U extends readonly string[] = []>
|
|
|
131
131
|
nextStep: () => void;
|
|
132
132
|
prevStep: () => void;
|
|
133
133
|
setStage: (stage: Values<U>) => void;
|
|
134
|
+
setStep: (step: number) => void;
|
|
134
135
|
resetForm: () => void;
|
|
135
136
|
get stage(): Values<U> | null;
|
|
136
137
|
}
|
package/index.js
CHANGED
|
@@ -2273,6 +2273,9 @@ var MultistepForm = /** @class */ (function () {
|
|
|
2273
2273
|
_this.step = _this.associations.indexOf(stage) + 1;
|
|
2274
2274
|
}
|
|
2275
2275
|
};
|
|
2276
|
+
this.setStep = function (step) {
|
|
2277
|
+
_this.step = step;
|
|
2278
|
+
};
|
|
2276
2279
|
this.resetForm = function () {
|
|
2277
2280
|
_this.fields = null;
|
|
2278
2281
|
_this.step = 1;
|