ps-toolkit-ui 0.0.56 → 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.
- package/bundles/ps-toolkit-ui.umd.js +17 -11
- 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/components/form/tree/form.tree.component.js +6 -8
- package/fesm2015/ps-toolkit-ui.js +5 -7
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -5742,16 +5742,18 @@
|
|
|
5742
5742
|
};
|
|
5743
5743
|
FormTreeComponent.prototype.check = function (ids) {
|
|
5744
5744
|
var e_2, _a;
|
|
5745
|
-
|
|
5746
|
-
|
|
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
|
+
};
|
|
5747
5753
|
try {
|
|
5748
5754
|
for (var _b = __values(this.inp.rows), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5749
5755
|
var r = _c.value;
|
|
5750
|
-
r
|
|
5751
|
-
if (ids.includes(r.value)) {
|
|
5752
|
-
r.toggle(this.inp.onlyChild);
|
|
5753
|
-
}
|
|
5754
|
-
this.checkChildren(r.children, ids);
|
|
5756
|
+
_loop_1(r);
|
|
5755
5757
|
}
|
|
5756
5758
|
}
|
|
5757
5759
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -5764,13 +5766,17 @@
|
|
|
5764
5766
|
};
|
|
5765
5767
|
FormTreeComponent.prototype.checkChildren = function (chs, ids) {
|
|
5766
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
|
+
};
|
|
5767
5776
|
try {
|
|
5768
5777
|
for (var chs_1 = __values(chs), chs_1_1 = chs_1.next(); !chs_1_1.done; chs_1_1 = chs_1.next()) {
|
|
5769
5778
|
var r = chs_1_1.value;
|
|
5770
|
-
|
|
5771
|
-
r.toggle(this.inp.onlyChild);
|
|
5772
|
-
}
|
|
5773
|
-
this.checkChildren(r.children, ids);
|
|
5779
|
+
_loop_2(r);
|
|
5774
5780
|
}
|
|
5775
5781
|
}
|
|
5776
5782
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|