ps-toolkit-ui 0.0.54 → 0.0.58
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 +19 -14
- 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/classes/form.class.js +1 -2
- package/esm2015/lib/components/form/tree/form.tree.component.js +4 -8
- package/fesm2015/ps-toolkit-ui.js +3 -8
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -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,18 +5742,19 @@
|
|
|
5743
5742
|
};
|
|
5744
5743
|
FormTreeComponent.prototype.check = function (ids) {
|
|
5745
5744
|
var e_2, _a;
|
|
5746
|
-
|
|
5747
|
-
|
|
5745
|
+
var _this = this;
|
|
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;
|
|
5748
5754
|
try {
|
|
5749
5755
|
for (var _b = __values(this.inp.rows), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
5750
5756
|
var r = _c.value;
|
|
5751
|
-
r
|
|
5752
|
-
if (ids.includes(r.value)) {
|
|
5753
|
-
r.toggle(this.inp.onlyChild);
|
|
5754
|
-
}
|
|
5755
|
-
if (this.inp.onlyChild) {
|
|
5756
|
-
this.checkChildren(r.children, ids);
|
|
5757
|
-
}
|
|
5757
|
+
_loop_1(r);
|
|
5758
5758
|
}
|
|
5759
5759
|
}
|
|
5760
5760
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -5767,13 +5767,18 @@
|
|
|
5767
5767
|
};
|
|
5768
5768
|
FormTreeComponent.prototype.checkChildren = function (chs, ids) {
|
|
5769
5769
|
var e_3, _a;
|
|
5770
|
+
var _this = this;
|
|
5771
|
+
var _loop_2 = function (r) {
|
|
5772
|
+
if (ids.includes(r.value)) {
|
|
5773
|
+
r.toggle(this_2.inp.onlyChild);
|
|
5774
|
+
}
|
|
5775
|
+
setTimeout(function () { _this.checkChildren(r.children, ids); });
|
|
5776
|
+
};
|
|
5777
|
+
var this_2 = this;
|
|
5770
5778
|
try {
|
|
5771
5779
|
for (var chs_1 = __values(chs), chs_1_1 = chs_1.next(); !chs_1_1.done; chs_1_1 = chs_1.next()) {
|
|
5772
5780
|
var r = chs_1_1.value;
|
|
5773
|
-
|
|
5774
|
-
r.toggle();
|
|
5775
|
-
}
|
|
5776
|
-
this.checkChildren(r.children, ids);
|
|
5781
|
+
_loop_2(r);
|
|
5777
5782
|
}
|
|
5778
5783
|
}
|
|
5779
5784
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|