@syncfusion/ej2-lists 32.1.24 → 32.2.6
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/dist/ej2-lists.min.js +2 -2
- package/dist/ej2-lists.umd.min.js +2 -2
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +14 -7
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +18 -7
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +2 -2
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/list-view/list-view-model.d.ts +14 -0
- package/src/list-view/list-view.d.ts +14 -0
- package/src/list-view/list-view.js +18 -7
- package/styles/list-view/_material3-dark-definition.scss +9 -6
- package/styles/list-view/_material3-definition.scss +9 -6
|
@@ -1302,6 +1302,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
1302
1302
|
this.setCSSClass(oldProp.cssClass);
|
|
1303
1303
|
break;
|
|
1304
1304
|
case 'enable':
|
|
1305
|
+
case 'enabled':
|
|
1305
1306
|
this.setEnable();
|
|
1306
1307
|
break;
|
|
1307
1308
|
case 'width':
|
|
@@ -1399,7 +1400,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
1399
1400
|
this.isWindow = this.element.clientHeight ? false : true;
|
|
1400
1401
|
};
|
|
1401
1402
|
ListView.prototype.setEnable = function () {
|
|
1402
|
-
this.enableElement(this.element, this.enable);
|
|
1403
|
+
this.enableElement(this.element, this.enabled && this.enable);
|
|
1403
1404
|
};
|
|
1404
1405
|
ListView.prototype.setEnableRTL = function () {
|
|
1405
1406
|
if (this.enableRtl) {
|
|
@@ -1797,7 +1798,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
1797
1798
|
li = target;
|
|
1798
1799
|
}
|
|
1799
1800
|
this.removeFocus();
|
|
1800
|
-
if (this.
|
|
1801
|
+
if (this.isComponentEnabled && this.showCheckBox && this.isValidLI(li)) {
|
|
1801
1802
|
if (e.target.classList.contains(classNames.checkboxIcon)) {
|
|
1802
1803
|
li.classList.add(classNames.focused);
|
|
1803
1804
|
if (isNullOrUndefined(li.querySelector('.' + classNames.checked))) {
|
|
@@ -2023,7 +2024,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
2023
2024
|
}
|
|
2024
2025
|
};
|
|
2025
2026
|
ListView.prototype.spaceKeyHandler = function (e) {
|
|
2026
|
-
if (this.
|
|
2027
|
+
if (this.isComponentEnabled && this.showCheckBox && Object.keys(this.dataSource).length && this.curUL) {
|
|
2027
2028
|
e.preventDefault();
|
|
2028
2029
|
var li = this.curUL.querySelector('.' + classNames.focused);
|
|
2029
2030
|
var checkboxElement = void 0;
|
|
@@ -2164,7 +2165,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
2164
2165
|
&& !li.classList.contains(classNames.disable));
|
|
2165
2166
|
};
|
|
2166
2167
|
ListView.prototype.setCheckboxLI = function (li, e) {
|
|
2167
|
-
if (this.isValidLI(li) && this.
|
|
2168
|
+
if (this.isValidLI(li) && this.isComponentEnabled && this.showCheckBox) {
|
|
2168
2169
|
if (this.curUL.querySelector('.' + classNames.focused)) {
|
|
2169
2170
|
this.curUL.querySelector('.' + classNames.focused).classList.remove(classNames.focused);
|
|
2170
2171
|
}
|
|
@@ -2248,7 +2249,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
2248
2249
|
};
|
|
2249
2250
|
ListView.prototype.setSelectLI = function (li, e) {
|
|
2250
2251
|
var _this = this;
|
|
2251
|
-
if (this.isValidLI(li) && !li.classList.contains(classNames.selected) && this.
|
|
2252
|
+
if (this.isValidLI(li) && !li.classList.contains(classNames.selected) && this.isComponentEnabled) {
|
|
2252
2253
|
if (!this.showCheckBox) {
|
|
2253
2254
|
this.removeSelect();
|
|
2254
2255
|
}
|
|
@@ -2272,7 +2273,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
2272
2273
|
}
|
|
2273
2274
|
};
|
|
2274
2275
|
ListView.prototype.setHoverLI = function (li) {
|
|
2275
|
-
if (this.isValidLI(li) && !li.classList.contains(classNames.hover) && this.
|
|
2276
|
+
if (this.isValidLI(li) && !li.classList.contains(classNames.hover) && this.isComponentEnabled) {
|
|
2276
2277
|
var lastLi = this.element.querySelectorAll('.' + classNames.hover);
|
|
2277
2278
|
if (lastLi && lastLi.length) {
|
|
2278
2279
|
removeClass(lastLi, classNames.hover);
|
|
@@ -3182,9 +3183,16 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
3182
3183
|
*/
|
|
3183
3184
|
ListView.prototype.getPersistData = function () {
|
|
3184
3185
|
return this.addOnPersist(['cssClass', 'enableRtl', 'htmlAttributes',
|
|
3185
|
-
'enable', 'fields', 'animation', 'headerTitle',
|
|
3186
|
+
'enable', 'enabled', 'fields', 'animation', 'headerTitle',
|
|
3186
3187
|
'sortOrder', 'showIcon', 'height', 'width', 'showCheckBox', 'checkBoxPosition', 'selectedId']);
|
|
3187
3188
|
};
|
|
3189
|
+
Object.defineProperty(ListView.prototype, "isComponentEnabled", {
|
|
3190
|
+
get: function () {
|
|
3191
|
+
return this.enabled && this.enable;
|
|
3192
|
+
},
|
|
3193
|
+
enumerable: true,
|
|
3194
|
+
configurable: true
|
|
3195
|
+
});
|
|
3188
3196
|
__decorate([
|
|
3189
3197
|
Property('')
|
|
3190
3198
|
], ListView.prototype, "cssClass", void 0);
|
|
@@ -3197,6 +3205,9 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
3197
3205
|
__decorate([
|
|
3198
3206
|
Property(true)
|
|
3199
3207
|
], ListView.prototype, "enable", void 0);
|
|
3208
|
+
__decorate([
|
|
3209
|
+
Property(true)
|
|
3210
|
+
], ListView.prototype, "enabled", void 0);
|
|
3200
3211
|
__decorate([
|
|
3201
3212
|
Property([])
|
|
3202
3213
|
], ListView.prototype, "dataSource", void 0);
|