@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.
@@ -14046,6 +14046,34 @@
14046
14046
  node.itemData.indeterminate = item.select === null ? true : false;
14047
14047
  node.itemData.hasChild = item[this.hasChildField];
14048
14048
  node.parent = item.parentNode === undefined ? null : this.makeNode(item.parentNode, false);
14049
+ if (node.parent != null) {
14050
+ node.parent.selectParent = function () {
14051
+ if (item.parentNode['select'] != true) {
14052
+ _this.internalSelectItem(item.parentNode, true);
14053
+ }
14054
+ };
14055
+ node.parent.unSelectParent = function () {
14056
+ if (item.parentNode['select'] == true) {
14057
+ _this.internalSelectItem(item.parentNode, true);
14058
+ }
14059
+ };
14060
+ }
14061
+ if (node.children != null && node.children.length > 0) {
14062
+ node.children.selectChilds = function () {
14063
+ item.childeren.forEach(function (element) {
14064
+ if (item.parentNode['select'] != true) {
14065
+ _this.internalSelectItem(element, true);
14066
+ }
14067
+ });
14068
+ };
14069
+ node.children.unSelectChilds = function () {
14070
+ item.childeren.forEach(function (element) {
14071
+ if (item.parentNode['select'] == true) {
14072
+ _this.internalSelectItem(item.childeren, true);
14073
+ }
14074
+ });
14075
+ };
14076
+ }
14049
14077
  return node;
14050
14078
  };
14051
14079
  AXTreeViewComponent.prototype.changeChildSelect = function (item, s) {