@acorex/components 3.0.37 → 3.0.38
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 +5 -2
- 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 +6 -3
- package/esm5/lib/tree-view/tree-view.component.js +6 -3
- package/fesm2015/acorex-components.js +5 -2
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +5 -2
- package/fesm5/acorex-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -13988,7 +13988,7 @@ var AXTreeViewComponent = /** @class */ (function (_super) {
|
|
|
13988
13988
|
_this.hideLoading(null);
|
|
13989
13989
|
_this.list = _data.data.result;
|
|
13990
13990
|
_this.list.forEach(function (el) {
|
|
13991
|
-
el.disabledCheckBox = _this.selectableField != '' ? el[_this.selectableField] : false;
|
|
13991
|
+
el.disabledCheckBox = _this.selectableField != '' ? (el[_this.selectableField] ? el[_this.selectableField] : false) : false;
|
|
13992
13992
|
el.select = false;
|
|
13993
13993
|
if (_this.selectionLevel == 'nodes' && el[_this.hasChildField] == true) {
|
|
13994
13994
|
el.disabledCheckBox = true;
|
|
@@ -14038,7 +14038,8 @@ var AXTreeViewComponent = /** @class */ (function (_super) {
|
|
|
14038
14038
|
if (_this.list.length !== 0) {
|
|
14039
14039
|
if (_this.itemRow[_this.childField] && _this.itemRow[_this.childField].length > 0) {
|
|
14040
14040
|
result_1.forEach(function (el) {
|
|
14041
|
-
el.disabledCheckBox = _this.selectableField != '' ? el[_this.selectableField] : false;
|
|
14041
|
+
el.disabledCheckBox = _this.selectableField != '' ? (el[_this.selectableField] ? el[_this.selectableField] : false) : false;
|
|
14042
|
+
// el.disabledCheckBox = this.selectableField != '' ? el[this.selectableField] : false;
|
|
14042
14043
|
_this.itemRow[_this.childField][_this.itemRow[_this.childField].length] = el;
|
|
14043
14044
|
});
|
|
14044
14045
|
}
|
|
@@ -14046,6 +14047,8 @@ var AXTreeViewComponent = /** @class */ (function (_super) {
|
|
|
14046
14047
|
_this.itemRow[_this.childField] = result_1;
|
|
14047
14048
|
}
|
|
14048
14049
|
var _loop_1 = function (i) {
|
|
14050
|
+
result_1[i].disabledCheckBox =
|
|
14051
|
+
_this.selectableField != '' ? (result_1[i][_this.selectableField] ? result_1[i][_this.selectableField] : false) : false;
|
|
14049
14052
|
if (_this.selectionLevel == 'nodes' && result_1[i][_this.hasChildField] == true) {
|
|
14050
14053
|
result_1[i].disabledCheckBox = true;
|
|
14051
14054
|
}
|