@syncfusion/ej2-lists 32.1.24 → 32.2.3
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/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 32.
|
|
3
|
+
* version : 32.2.3
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-lists",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.2.3",
|
|
4
4
|
"description": "The listview control allows you to select an item or multiple items from a list-like interface and represents the data in interactive hierarchical structure across different layouts or views.",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-lists.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~32.
|
|
12
|
-
"@syncfusion/ej2-buttons": "~32.
|
|
13
|
-
"@syncfusion/ej2-data": "~32.
|
|
14
|
-
"@syncfusion/ej2-popups": "~32.
|
|
11
|
+
"@syncfusion/ej2-base": "~32.2.3",
|
|
12
|
+
"@syncfusion/ej2-buttons": "~32.2.3",
|
|
13
|
+
"@syncfusion/ej2-data": "~32.2.3",
|
|
14
|
+
"@syncfusion/ej2-popups": "~32.2.3"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
17
17
|
"keywords": [
|
|
@@ -110,12 +110,26 @@ export interface ListViewModel extends ComponentModel{
|
|
|
110
110
|
* If `enable` set to true, the list items are enabled.
|
|
111
111
|
* And, we can disable the component using this property by setting its value as false.
|
|
112
112
|
*
|
|
113
|
+
* Remark: This property is deprecated after the Vol 4 2025 main release. Use `enabled` instead.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
113
116
|
* {% codeBlock src='listview/enable/index.md' %}{% endcodeBlock %}
|
|
114
117
|
*
|
|
118
|
+
|
|
115
119
|
* @default true
|
|
116
120
|
*/
|
|
117
121
|
enable?: boolean;
|
|
118
122
|
|
|
123
|
+
/**
|
|
124
|
+
* If `enabled` set to true, the list items are enabled.
|
|
125
|
+
* And, we can disable the component using this property by setting its value as false.
|
|
126
|
+
*
|
|
127
|
+
*
|
|
128
|
+
*
|
|
129
|
+
* @default true
|
|
130
|
+
*/
|
|
131
|
+
enabled?: boolean;
|
|
132
|
+
|
|
119
133
|
/**
|
|
120
134
|
* The `dataSource` provides the data to render the ListView component which is mapped with the fields of ListView.
|
|
121
135
|
*
|
|
@@ -200,11 +200,24 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
|
|
|
200
200
|
* If `enable` set to true, the list items are enabled.
|
|
201
201
|
* And, we can disable the component using this property by setting its value as false.
|
|
202
202
|
*
|
|
203
|
+
* Remark: This property is deprecated after the Vol 4 2025 main release. Use `enabled` instead.
|
|
204
|
+
*
|
|
205
|
+
*
|
|
203
206
|
* {% codeBlock src='listview/enable/index.md' %}{% endcodeBlock %}
|
|
204
207
|
*
|
|
208
|
+
|
|
205
209
|
* @default true
|
|
206
210
|
*/
|
|
207
211
|
enable: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* If `enabled` set to true, the list items are enabled.
|
|
214
|
+
* And, we can disable the component using this property by setting its value as false.
|
|
215
|
+
*
|
|
216
|
+
*
|
|
217
|
+
*
|
|
218
|
+
* @default true
|
|
219
|
+
*/
|
|
220
|
+
enabled: boolean;
|
|
208
221
|
/**
|
|
209
222
|
* The `dataSource` provides the data to render the ListView component which is mapped with the fields of ListView.
|
|
210
223
|
*
|
|
@@ -601,6 +614,7 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
|
|
|
601
614
|
* Get the properties to be maintained in the persisted state.
|
|
602
615
|
*/
|
|
603
616
|
protected getPersistData(): string;
|
|
617
|
+
private readonly isComponentEnabled;
|
|
604
618
|
}
|
|
605
619
|
/** @hidden */
|
|
606
620
|
export interface ClassNames {
|
|
@@ -179,6 +179,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
179
179
|
this.setCSSClass(oldProp.cssClass);
|
|
180
180
|
break;
|
|
181
181
|
case 'enable':
|
|
182
|
+
case 'enabled':
|
|
182
183
|
this.setEnable();
|
|
183
184
|
break;
|
|
184
185
|
case 'width':
|
|
@@ -278,7 +279,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
278
279
|
this.isWindow = this.element.clientHeight ? false : true;
|
|
279
280
|
};
|
|
280
281
|
ListView.prototype.setEnable = function () {
|
|
281
|
-
this.enableElement(this.element, this.enable);
|
|
282
|
+
this.enableElement(this.element, this.enabled && this.enable);
|
|
282
283
|
};
|
|
283
284
|
ListView.prototype.setEnableRTL = function () {
|
|
284
285
|
if (this.enableRtl) {
|
|
@@ -676,7 +677,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
676
677
|
li = target;
|
|
677
678
|
}
|
|
678
679
|
this.removeFocus();
|
|
679
|
-
if (this.
|
|
680
|
+
if (this.isComponentEnabled && this.showCheckBox && this.isValidLI(li)) {
|
|
680
681
|
if (e.target.classList.contains(classNames.checkboxIcon)) {
|
|
681
682
|
li.classList.add(classNames.focused);
|
|
682
683
|
if (isNullOrUndefined(li.querySelector('.' + classNames.checked))) {
|
|
@@ -902,7 +903,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
902
903
|
}
|
|
903
904
|
};
|
|
904
905
|
ListView.prototype.spaceKeyHandler = function (e) {
|
|
905
|
-
if (this.
|
|
906
|
+
if (this.isComponentEnabled && this.showCheckBox && Object.keys(this.dataSource).length && this.curUL) {
|
|
906
907
|
e.preventDefault();
|
|
907
908
|
var li = this.curUL.querySelector('.' + classNames.focused);
|
|
908
909
|
var checkboxElement = void 0;
|
|
@@ -1043,7 +1044,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1043
1044
|
&& !li.classList.contains(classNames.disable));
|
|
1044
1045
|
};
|
|
1045
1046
|
ListView.prototype.setCheckboxLI = function (li, e) {
|
|
1046
|
-
if (this.isValidLI(li) && this.
|
|
1047
|
+
if (this.isValidLI(li) && this.isComponentEnabled && this.showCheckBox) {
|
|
1047
1048
|
if (this.curUL.querySelector('.' + classNames.focused)) {
|
|
1048
1049
|
this.curUL.querySelector('.' + classNames.focused).classList.remove(classNames.focused);
|
|
1049
1050
|
}
|
|
@@ -1127,7 +1128,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1127
1128
|
};
|
|
1128
1129
|
ListView.prototype.setSelectLI = function (li, e) {
|
|
1129
1130
|
var _this = this;
|
|
1130
|
-
if (this.isValidLI(li) && !li.classList.contains(classNames.selected) && this.
|
|
1131
|
+
if (this.isValidLI(li) && !li.classList.contains(classNames.selected) && this.isComponentEnabled) {
|
|
1131
1132
|
if (!this.showCheckBox) {
|
|
1132
1133
|
this.removeSelect();
|
|
1133
1134
|
}
|
|
@@ -1151,7 +1152,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1151
1152
|
}
|
|
1152
1153
|
};
|
|
1153
1154
|
ListView.prototype.setHoverLI = function (li) {
|
|
1154
|
-
if (this.isValidLI(li) && !li.classList.contains(classNames.hover) && this.
|
|
1155
|
+
if (this.isValidLI(li) && !li.classList.contains(classNames.hover) && this.isComponentEnabled) {
|
|
1155
1156
|
var lastLi = this.element.querySelectorAll('.' + classNames.hover);
|
|
1156
1157
|
if (lastLi && lastLi.length) {
|
|
1157
1158
|
removeClass(lastLi, classNames.hover);
|
|
@@ -2061,9 +2062,16 @@ var ListView = /** @class */ (function (_super) {
|
|
|
2061
2062
|
*/
|
|
2062
2063
|
ListView.prototype.getPersistData = function () {
|
|
2063
2064
|
return this.addOnPersist(['cssClass', 'enableRtl', 'htmlAttributes',
|
|
2064
|
-
'enable', 'fields', 'animation', 'headerTitle',
|
|
2065
|
+
'enable', 'enabled', 'fields', 'animation', 'headerTitle',
|
|
2065
2066
|
'sortOrder', 'showIcon', 'height', 'width', 'showCheckBox', 'checkBoxPosition', 'selectedId']);
|
|
2066
2067
|
};
|
|
2068
|
+
Object.defineProperty(ListView.prototype, "isComponentEnabled", {
|
|
2069
|
+
get: function () {
|
|
2070
|
+
return this.enabled && this.enable;
|
|
2071
|
+
},
|
|
2072
|
+
enumerable: true,
|
|
2073
|
+
configurable: true
|
|
2074
|
+
});
|
|
2067
2075
|
__decorate([
|
|
2068
2076
|
Property('')
|
|
2069
2077
|
], ListView.prototype, "cssClass", void 0);
|
|
@@ -2076,6 +2084,9 @@ var ListView = /** @class */ (function (_super) {
|
|
|
2076
2084
|
__decorate([
|
|
2077
2085
|
Property(true)
|
|
2078
2086
|
], ListView.prototype, "enable", void 0);
|
|
2087
|
+
__decorate([
|
|
2088
|
+
Property(true)
|
|
2089
|
+
], ListView.prototype, "enabled", void 0);
|
|
2079
2090
|
__decorate([
|
|
2080
2091
|
Property([])
|
|
2081
2092
|
], ListView.prototype, "dataSource", void 0);
|