@acorex/components 3.0.38 → 3.0.39
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/acorex-components.umd.js +28 -0
- package/bundles/acorex-components.umd.js.map +1 -1
- package/bundles/acorex-components.umd.min.js +1 -1
- package/bundles/acorex-components.umd.min.js.map +1 -1
- package/esm2015/lib/tree-view/tree-view.component.js +29 -1
- package/esm5/lib/tree-view/tree-view.component.js +29 -1
- package/fesm2015/acorex-components.js +28 -0
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +28 -0
- package/fesm5/acorex-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -13840,6 +13840,34 @@ var AXTreeViewComponent = /** @class */ (function (_super) {
|
|
|
13840
13840
|
node.itemData.indeterminate = item.select === null ? true : false;
|
|
13841
13841
|
node.itemData.hasChild = item[this.hasChildField];
|
|
13842
13842
|
node.parent = item.parentNode === undefined ? null : this.makeNode(item.parentNode, false);
|
|
13843
|
+
if (node.parent != null) {
|
|
13844
|
+
node.parent.selectParent = function () {
|
|
13845
|
+
if (item.parentNode['select'] != true) {
|
|
13846
|
+
_this.internalSelectItem(item.parentNode, true);
|
|
13847
|
+
}
|
|
13848
|
+
};
|
|
13849
|
+
node.parent.unSelectParent = function () {
|
|
13850
|
+
if (item.parentNode['select'] == true) {
|
|
13851
|
+
_this.internalSelectItem(item.parentNode, true);
|
|
13852
|
+
}
|
|
13853
|
+
};
|
|
13854
|
+
}
|
|
13855
|
+
if (node.children != null && node.children.length > 0) {
|
|
13856
|
+
node.children.selectChilds = function () {
|
|
13857
|
+
item.childeren.forEach(function (element) {
|
|
13858
|
+
if (item.parentNode['select'] != true) {
|
|
13859
|
+
_this.internalSelectItem(element, true);
|
|
13860
|
+
}
|
|
13861
|
+
});
|
|
13862
|
+
};
|
|
13863
|
+
node.children.unSelectChilds = function () {
|
|
13864
|
+
item.childeren.forEach(function (element) {
|
|
13865
|
+
if (item.parentNode['select'] == true) {
|
|
13866
|
+
_this.internalSelectItem(item.childeren, true);
|
|
13867
|
+
}
|
|
13868
|
+
});
|
|
13869
|
+
};
|
|
13870
|
+
}
|
|
13843
13871
|
return node;
|
|
13844
13872
|
};
|
|
13845
13873
|
AXTreeViewComponent.prototype.changeChildSelect = function (item, s) {
|