ps-toolkit-ui 1.11.67 → 1.11.69
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/bundles/ps-toolkit-ui.umd.js +8 -3
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/steps.class.js +9 -4
- package/fesm2015/ps-toolkit-ui.js +8 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/steps.class.d.ts +3 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -8084,14 +8084,19 @@
|
|
|
8084
8084
|
this.activeAll = false;
|
|
8085
8085
|
this.isDone = false;
|
|
8086
8086
|
this.onDone = function () { };
|
|
8087
|
+
this.onLoadStep = function () { };
|
|
8087
8088
|
this.l = l;
|
|
8088
8089
|
}
|
|
8090
|
+
StepsClass.prototype.getCurrent = function () {
|
|
8091
|
+
return this.items.findIndex(function (x) { return x.current; });
|
|
8092
|
+
};
|
|
8093
|
+
StepsClass.prototype.getActive = function () {
|
|
8094
|
+
return this.items.findIndex(function (x) { return x.active; });
|
|
8095
|
+
};
|
|
8089
8096
|
StepsClass.prototype.loadStep = function (s) {
|
|
8090
8097
|
this.items.find(function (x) { return x.active; }).active = false;
|
|
8091
8098
|
s.active = true;
|
|
8092
|
-
|
|
8093
|
-
s.form.loadData(s.form.url.replace('-update', '-get'));
|
|
8094
|
-
}
|
|
8099
|
+
this.onLoadStep(s);
|
|
8095
8100
|
};
|
|
8096
8101
|
return StepsClass;
|
|
8097
8102
|
}());
|