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.
@@ -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
- if (s.form) {
8093
- s.form.loadData(s.form.url.replace('-update', '-get'));
8094
- }
8099
+ this.onLoadStep(s);
8095
8100
  };
8096
8101
  return StepsClass;
8097
8102
  }());