ps-toolkit-ui 1.22.21 → 1.22.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.
@@ -6928,6 +6928,7 @@
6928
6928
  if (v != null) {
6929
6929
  _this.inp.value = v.map(String);
6930
6930
  _this.setValue(v.map(String));
6931
+ _this.priority = v.map(String).length;
6931
6932
  }
6932
6933
  }
6933
6934
  };
@@ -6961,6 +6962,7 @@
6961
6962
  }
6962
6963
  else {
6963
6964
  _this.setValue([]);
6965
+ _this.priority = 0;
6964
6966
  }
6965
6967
  if (_this.inp.rel != null) {
6966
6968
  _this.inp.rel.options = [];
@@ -7006,6 +7008,9 @@
7006
7008
  for (var rows_1 = __values(rows), rows_1_1 = rows_1.next(); !rows_1_1.done; rows_1_1 = rows_1.next()) {
7007
7009
  var r = rows_1_1.value;
7008
7010
  r.selected = ids.includes(r.value);
7011
+ if (r.selected) {
7012
+ r.priority = ids.indexOf(r.value);
7013
+ }
7009
7014
  if (this.inp.onlyChild) {
7010
7015
  if (r.selected) {
7011
7016
  this.checkParent(r.parent);