@acorex/components 3.0.36 → 3.0.37

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.
@@ -3822,7 +3822,7 @@
3822
3822
  AXCheckBoxComponent = __decorate([
3823
3823
  core.Component({
3824
3824
  selector: 'ax-check-box',
3825
- template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n<label for=\"{{uid}}\" class=\"ax-checkbox-container\" (click)=\"handleClick($event)\">\r\n <input #input type=\"checkbox\" class=\"ax-checkbox\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"\r\n id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\" [(ngModel)]=\"value\" [disabled]=\"disabled || readonly\" />\r\n <span>{{ label ? label : '&nbsp;' }}</span>\r\n</label>",
3825
+ template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n<label for=\"{{uid}}\" class=\"ax-checkbox-container\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n <input #input type=\"checkbox\" class=\"ax-checkbox\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"\r\n id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\" [(ngModel)]=\"value\" [disabled]=\"disabled || readonly\" />\r\n <span>{{ label ? label : '&nbsp;' }}</span>\r\n</label>",
3826
3826
  encapsulation: core.ViewEncapsulation.None,
3827
3827
  changeDetection: core.ChangeDetectionStrategy.OnPush
3828
3828
  }),
@@ -13930,6 +13930,7 @@
13930
13930
  _this.onItemClosing = new core.EventEmitter();
13931
13931
  _this.onItemDrag = new core.EventEmitter();
13932
13932
  _this.onItemMoved = new core.EventEmitter();
13933
+ _this.selectableField = '';
13933
13934
  _this.onContextMenuItemClick = new core.EventEmitter();
13934
13935
  _this.showSelectBox = false;
13935
13936
  _this.loading = false;
@@ -14193,7 +14194,7 @@
14193
14194
  _this.hideLoading(null);
14194
14195
  _this.list = _data.data.result;
14195
14196
  _this.list.forEach(function (el) {
14196
- el.disabledCheckBox = false;
14197
+ el.disabledCheckBox = _this.selectableField != '' ? el[_this.selectableField] : false;
14197
14198
  el.select = false;
14198
14199
  if (_this.selectionLevel == 'nodes' && el[_this.hasChildField] == true) {
14199
14200
  el.disabledCheckBox = true;
@@ -14243,7 +14244,7 @@
14243
14244
  if (_this.list.length !== 0) {
14244
14245
  if (_this.itemRow[_this.childField] && _this.itemRow[_this.childField].length > 0) {
14245
14246
  result_1.forEach(function (el) {
14246
- el.disabledCheckBox = false;
14247
+ el.disabledCheckBox = _this.selectableField != '' ? el[_this.selectableField] : false;
14247
14248
  _this.itemRow[_this.childField][_this.itemRow[_this.childField].length] = el;
14248
14249
  });
14249
14250
  }
@@ -14614,6 +14615,10 @@
14614
14615
  core.Output(),
14615
14616
  __metadata("design:type", core.EventEmitter)
14616
14617
  ], AXTreeViewComponent.prototype, "onItemMoved", void 0);
14618
+ __decorate([
14619
+ core.Input(),
14620
+ __metadata("design:type", String)
14621
+ ], AXTreeViewComponent.prototype, "selectableField", void 0);
14617
14622
  __decorate([
14618
14623
  core.Output(),
14619
14624
  __metadata("design:type", core.EventEmitter)