ps-toolkit-ui 0.0.53 → 0.0.57

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.
@@ -1879,7 +1879,6 @@
1879
1879
  TreeRowClass.prototype.check = function (onlyChild, c) {
1880
1880
  if (c === void 0) { c = this; }
1881
1881
  c.selected = true;
1882
- c.checkChildren(onlyChild);
1883
1882
  if (onlyChild) {
1884
1883
  c.checkChildren(onlyChild);
1885
1884
  }
@@ -5743,14 +5742,18 @@
5743
5742
  };
5744
5743
  FormTreeComponent.prototype.check = function (ids) {
5745
5744
  var e_2, _a;
5745
+ var _this = this;
5746
+ var _loop_1 = function (r) {
5747
+ setTimeout(function () { r.unCheck(); });
5748
+ if (ids.includes(r.value)) {
5749
+ setTimeout(function () { r.toggle(_this.inp.onlyChild); });
5750
+ }
5751
+ setTimeout(function () { _this.checkChildren(r.children, ids); });
5752
+ };
5746
5753
  try {
5747
5754
  for (var _b = __values(this.inp.rows), _c = _b.next(); !_c.done; _c = _b.next()) {
5748
5755
  var r = _c.value;
5749
- r.unCheck();
5750
- if (ids.includes(r.value)) {
5751
- r.toggle(this.inp.onlyChild);
5752
- }
5753
- this.checkChildren(r.children, ids);
5756
+ _loop_1(r);
5754
5757
  }
5755
5758
  }
5756
5759
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -5763,13 +5766,17 @@
5763
5766
  };
5764
5767
  FormTreeComponent.prototype.checkChildren = function (chs, ids) {
5765
5768
  var e_3, _a;
5769
+ var _this = this;
5770
+ var _loop_2 = function (r) {
5771
+ if (ids.includes(r.value)) {
5772
+ setTimeout(function () { r.toggle(_this.inp.onlyChild); });
5773
+ }
5774
+ setTimeout(function () { _this.checkChildren(r.children, ids); });
5775
+ };
5766
5776
  try {
5767
5777
  for (var chs_1 = __values(chs), chs_1_1 = chs_1.next(); !chs_1_1.done; chs_1_1 = chs_1.next()) {
5768
5778
  var r = chs_1_1.value;
5769
- if (ids.includes(r.value)) {
5770
- r.toggle();
5771
- }
5772
- this.checkChildren(r.children, ids);
5779
+ _loop_2(r);
5773
5780
  }
5774
5781
  }
5775
5782
  catch (e_3_1) { e_3 = { error: e_3_1 }; }