ps-toolkit-ui 0.0.58 → 0.0.59
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 +14 -21
- 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 +5 -8
- package/fesm2015/ps-toolkit-ui.js +4 -7
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/tree/form.tree.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5740,27 +5740,20 @@
|
|
|
5740
5740
|
});
|
|
5741
5741
|
return l;
|
|
5742
5742
|
};
|
|
5743
|
-
FormTreeComponent.prototype.check = function (ids) {
|
|
5743
|
+
FormTreeComponent.prototype.check = function (ids, chs) {
|
|
5744
5744
|
var e_2, _a;
|
|
5745
|
-
|
|
5746
|
-
var _loop_1 = function (r) {
|
|
5747
|
-
r.unCheck();
|
|
5748
|
-
if (ids.includes(r.value)) {
|
|
5749
|
-
r.toggle(this_1.inp.onlyChild);
|
|
5750
|
-
}
|
|
5751
|
-
setTimeout(function () { _this.checkChildren(r.children, ids); });
|
|
5752
|
-
};
|
|
5753
|
-
var this_1 = this;
|
|
5745
|
+
if (chs === void 0) { chs = this.inp.rows; }
|
|
5754
5746
|
try {
|
|
5755
|
-
for (var
|
|
5756
|
-
var r =
|
|
5757
|
-
|
|
5747
|
+
for (var chs_1 = __values(chs), chs_1_1 = chs_1.next(); !chs_1_1.done; chs_1_1 = chs_1.next()) {
|
|
5748
|
+
var r = chs_1_1.value;
|
|
5749
|
+
r.selected = ids.includes(r.value);
|
|
5750
|
+
this.check(ids, r.children);
|
|
5758
5751
|
}
|
|
5759
5752
|
}
|
|
5760
5753
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
5761
5754
|
finally {
|
|
5762
5755
|
try {
|
|
5763
|
-
if (
|
|
5756
|
+
if (chs_1_1 && !chs_1_1.done && (_a = chs_1.return)) _a.call(chs_1);
|
|
5764
5757
|
}
|
|
5765
5758
|
finally { if (e_2) throw e_2.error; }
|
|
5766
5759
|
}
|
|
@@ -5768,23 +5761,23 @@
|
|
|
5768
5761
|
FormTreeComponent.prototype.checkChildren = function (chs, ids) {
|
|
5769
5762
|
var e_3, _a;
|
|
5770
5763
|
var _this = this;
|
|
5771
|
-
var
|
|
5764
|
+
var _loop_1 = function (r) {
|
|
5772
5765
|
if (ids.includes(r.value)) {
|
|
5773
|
-
r.toggle(
|
|
5766
|
+
r.toggle(this_1.inp.onlyChild);
|
|
5774
5767
|
}
|
|
5775
5768
|
setTimeout(function () { _this.checkChildren(r.children, ids); });
|
|
5776
5769
|
};
|
|
5777
|
-
var
|
|
5770
|
+
var this_1 = this;
|
|
5778
5771
|
try {
|
|
5779
|
-
for (var
|
|
5780
|
-
var r =
|
|
5781
|
-
|
|
5772
|
+
for (var chs_2 = __values(chs), chs_2_1 = chs_2.next(); !chs_2_1.done; chs_2_1 = chs_2.next()) {
|
|
5773
|
+
var r = chs_2_1.value;
|
|
5774
|
+
_loop_1(r);
|
|
5782
5775
|
}
|
|
5783
5776
|
}
|
|
5784
5777
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
5785
5778
|
finally {
|
|
5786
5779
|
try {
|
|
5787
|
-
if (
|
|
5780
|
+
if (chs_2_1 && !chs_2_1.done && (_a = chs_2.return)) _a.call(chs_2);
|
|
5788
5781
|
}
|
|
5789
5782
|
finally { if (e_3) throw e_3.error; }
|
|
5790
5783
|
}
|