@syncfusion/ej2-lists 26.2.11 → 27.1.48
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/README.md +10 -10
- 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 +69 -9
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +76 -15
- 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 +11 -10
- package/src/list-view/list-view.d.ts +1 -0
- package/src/list-view/list-view.js +47 -4
- package/src/list-view/virtualization.d.ts +1 -0
- package/src/list-view/virtualization.js +28 -10
- package/src/sortable/sortable.js +1 -1
- package/styles/bootstrap-dark-lite.css +396 -0
- package/styles/bootstrap-dark-lite.scss +7 -0
- package/styles/bootstrap-dark.css +48 -49
- package/styles/bootstrap-dark.scss +2 -2
- package/styles/bootstrap-lite.css +397 -0
- package/styles/bootstrap-lite.scss +7 -0
- package/styles/bootstrap.css +48 -49
- package/styles/bootstrap.scss +2 -2
- package/styles/bootstrap4-lite.css +401 -0
- package/styles/bootstrap4-lite.scss +7 -0
- package/styles/bootstrap4.css +87 -88
- package/styles/bootstrap4.scss +2 -2
- package/styles/bootstrap5-dark-lite.css +422 -0
- package/styles/bootstrap5-dark-lite.scss +7 -0
- package/styles/bootstrap5-dark.css +48 -49
- package/styles/bootstrap5-dark.scss +2 -2
- package/styles/bootstrap5-lite.css +422 -0
- package/styles/bootstrap5-lite.scss +7 -0
- package/styles/bootstrap5.3-lite.css +402 -0
- package/styles/bootstrap5.3-lite.scss +7 -0
- package/styles/bootstrap5.3.css +450 -0
- package/styles/bootstrap5.3.scss +8 -0
- package/styles/bootstrap5.css +48 -49
- package/styles/bootstrap5.scss +2 -2
- package/styles/fabric-dark-lite.css +396 -0
- package/styles/fabric-dark-lite.scss +7 -0
- package/styles/fabric-dark.css +48 -49
- package/styles/fabric-dark.scss +2 -2
- package/styles/fabric-lite.css +397 -0
- package/styles/fabric-lite.scss +7 -0
- package/styles/fabric.css +48 -49
- package/styles/fabric.scss +2 -2
- package/styles/fluent-dark-lite.css +410 -0
- package/styles/fluent-dark-lite.scss +7 -0
- package/styles/fluent-dark.css +91 -92
- package/styles/fluent-dark.scss +2 -2
- package/styles/fluent-lite.css +410 -0
- package/styles/fluent-lite.scss +7 -0
- package/styles/fluent.css +91 -92
- package/styles/fluent.scss +2 -2
- package/styles/fluent2-lite.css +396 -0
- package/styles/fluent2-lite.scss +7 -0
- package/styles/fluent2.css +63 -64
- package/styles/fluent2.scss +2 -2
- package/styles/highcontrast-light-lite.css +396 -0
- package/styles/highcontrast-light-lite.scss +7 -0
- package/styles/highcontrast-light.css +48 -49
- package/styles/highcontrast-light.scss +2 -2
- package/styles/highcontrast-lite.css +397 -0
- package/styles/highcontrast-lite.scss +7 -0
- package/styles/highcontrast.css +48 -49
- package/styles/highcontrast.scss +2 -2
- package/styles/list-view/_bigger.scss +325 -0
- package/styles/list-view/_fluent2-definition.scss +2 -2
- package/styles/list-view/_layout.scss +12 -272
- package/styles/list-view/_material-dark-definition.scss +1 -1
- package/styles/list-view/_material-definition.scss +1 -1
- package/styles/list-view/_theme.scss +1 -1
- package/styles/list-view/bootstrap-dark.css +48 -48
- package/styles/list-view/bootstrap-dark.scss +1 -0
- package/styles/list-view/bootstrap.css +48 -48
- package/styles/list-view/bootstrap.scss +1 -0
- package/styles/list-view/bootstrap4.css +87 -87
- package/styles/list-view/bootstrap4.scss +1 -0
- package/styles/list-view/bootstrap5-dark.css +48 -48
- package/styles/list-view/bootstrap5-dark.scss +1 -0
- package/styles/list-view/bootstrap5.3.css +421 -0
- package/styles/list-view/bootstrap5.3.scss +6 -0
- package/styles/list-view/bootstrap5.css +48 -48
- package/styles/list-view/bootstrap5.scss +1 -0
- package/styles/list-view/fabric-dark.css +48 -48
- package/styles/list-view/fabric-dark.scss +1 -0
- package/styles/list-view/fabric.css +48 -48
- package/styles/list-view/fabric.scss +1 -0
- package/styles/list-view/fluent-dark.css +91 -91
- package/styles/list-view/fluent-dark.scss +1 -0
- package/styles/list-view/fluent.css +91 -91
- package/styles/list-view/fluent.scss +1 -0
- package/styles/list-view/fluent2.css +63 -63
- package/styles/list-view/fluent2.scss +1 -0
- package/styles/list-view/highcontrast-light.css +48 -48
- package/styles/list-view/highcontrast-light.scss +1 -0
- package/styles/list-view/highcontrast.css +48 -48
- package/styles/list-view/highcontrast.scss +1 -0
- package/styles/list-view/material-dark.css +51 -51
- package/styles/list-view/material-dark.scss +1 -0
- package/styles/list-view/material.css +51 -51
- package/styles/list-view/material.scss +1 -0
- package/styles/list-view/material3-dark.css +65 -65
- package/styles/list-view/material3-dark.scss +1 -0
- package/styles/list-view/material3.css +65 -65
- package/styles/list-view/material3.scss +1 -0
- package/styles/list-view/tailwind-dark.css +156 -156
- package/styles/list-view/tailwind-dark.scss +1 -0
- package/styles/list-view/tailwind.css +156 -156
- package/styles/list-view/tailwind.scss +1 -0
- package/styles/material-dark-lite.css +395 -0
- package/styles/material-dark-lite.scss +7 -0
- package/styles/material-dark.css +51 -52
- package/styles/material-dark.scss +2 -2
- package/styles/material-lite.css +396 -0
- package/styles/material-lite.scss +7 -0
- package/styles/material.css +51 -52
- package/styles/material.scss +2 -2
- package/styles/material3-dark-lite.css +404 -0
- package/styles/material3-dark-lite.scss +7 -0
- package/styles/material3-dark.css +65 -66
- package/styles/material3-dark.scss +2 -2
- package/styles/material3-lite.css +406 -0
- package/styles/material3-lite.scss +7 -0
- package/styles/material3.css +65 -66
- package/styles/material3.scss +2 -2
- package/styles/sortable/_layout.scss +0 -1
- package/styles/sortable/bootstrap-dark.css +0 -1
- package/styles/sortable/bootstrap.css +0 -1
- package/styles/sortable/bootstrap4.css +0 -1
- package/styles/sortable/bootstrap5-dark.css +0 -1
- package/styles/sortable/bootstrap5.3.css +32 -0
- package/styles/sortable/bootstrap5.3.scss +3 -0
- package/styles/sortable/bootstrap5.css +0 -1
- package/styles/sortable/fabric-dark.css +0 -1
- package/styles/sortable/fabric.css +0 -1
- package/styles/sortable/fluent-dark.css +0 -1
- package/styles/sortable/fluent.css +0 -1
- package/styles/sortable/fluent2.css +0 -1
- package/styles/sortable/highcontrast-light.css +0 -1
- package/styles/sortable/highcontrast.css +0 -1
- package/styles/sortable/material-dark.css +0 -1
- package/styles/sortable/material.css +0 -1
- package/styles/sortable/material3-dark.css +0 -1
- package/styles/sortable/material3.css +0 -1
- package/styles/sortable/tailwind-dark.css +0 -1
- package/styles/sortable/tailwind.css +0 -1
- package/styles/tailwind-dark-lite.css +421 -0
- package/styles/tailwind-dark-lite.scss +7 -0
- package/styles/tailwind-dark.css +156 -157
- package/styles/tailwind-dark.scss +2 -2
- package/styles/tailwind-lite.css +421 -0
- package/styles/tailwind-lite.scss +7 -0
- package/styles/tailwind.css +156 -157
- package/styles/tailwind.scss +2 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 27.1.48
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-lists@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-lists@
|
|
3
|
+
"_id": "@syncfusion/ej2-lists@18.23.1",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-0OVfdXNvjkX5YKbOwLv8kH8qC3nwomBX1W7085cC/OBr07A3uWmc2fFcV70THA2p3+SzPeaDMPCZQx9RLb/wTg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-lists",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -35,19 +35,20 @@
|
|
|
35
35
|
"/@syncfusion/ej2-schedule",
|
|
36
36
|
"/@syncfusion/ej2-vue-lists"
|
|
37
37
|
],
|
|
38
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
39
|
-
"_shasum": "
|
|
38
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-lists/-/ej2-lists-18.23.1.tgz",
|
|
39
|
+
"_shasum": "032824de00c6b58ebaa649bb9cace3eee94a4486",
|
|
40
40
|
"_spec": "@syncfusion/ej2-lists@*",
|
|
41
|
-
"_where": "/jenkins/workspace/elease-
|
|
41
|
+
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
42
42
|
"author": {
|
|
43
43
|
"name": "Syncfusion Inc."
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~
|
|
48
|
-
"@syncfusion/ej2-buttons": "~
|
|
49
|
-
"@syncfusion/ej2-data": "~
|
|
50
|
-
"@syncfusion/ej2-popups": "~
|
|
47
|
+
"@syncfusion/ej2-base": "~27.1.48",
|
|
48
|
+
"@syncfusion/ej2-buttons": "~27.1.48",
|
|
49
|
+
"@syncfusion/ej2-data": "~27.1.48",
|
|
50
|
+
"@syncfusion/ej2-popups": "~27.1.48",
|
|
51
|
+
"markdown-spellcheck": "^1.3.1"
|
|
51
52
|
},
|
|
52
53
|
"deprecated": false,
|
|
53
54
|
"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.",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
|
|
88
89
|
},
|
|
89
90
|
"typings": "index.d.ts",
|
|
90
|
-
"version": "
|
|
91
|
+
"version": "27.1.48",
|
|
91
92
|
"sideEffects": false,
|
|
92
93
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
93
94
|
}
|
|
@@ -445,6 +445,7 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
|
|
|
445
445
|
* Refresh the height of the list item only on enabling the virtualization property.
|
|
446
446
|
*/
|
|
447
447
|
refreshItemHeight(): void;
|
|
448
|
+
private handleCheckboxState;
|
|
448
449
|
targetElement: Element;
|
|
449
450
|
private clickHandler;
|
|
450
451
|
private removeElement;
|
|
@@ -627,6 +627,28 @@ var ListView = /** @class */ (function (_super) {
|
|
|
627
627
|
this.virtualizationModule.refreshItemHeight();
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
|
+
ListView.prototype.handleCheckboxState = function (li, checkIcon, checkboxElement, isCheckedBefore, isFocusedBefore, eventArgs, isSetCheckboxLI, textAreaFocus) {
|
|
631
|
+
this.trigger('select', eventArgs, function (observedArgs) {
|
|
632
|
+
if (observedArgs.cancel) {
|
|
633
|
+
if (isSetCheckboxLI ? isCheckedBefore : !isCheckedBefore) {
|
|
634
|
+
checkIcon.classList.add(classNames.checked);
|
|
635
|
+
li.classList.add(classNames.selected);
|
|
636
|
+
}
|
|
637
|
+
else {
|
|
638
|
+
checkIcon.classList.remove(classNames.checked);
|
|
639
|
+
li.classList.remove(classNames.selected);
|
|
640
|
+
}
|
|
641
|
+
checkboxElement.setAttribute('aria-checked', isSetCheckboxLI ? (isCheckedBefore ? 'true' : 'false') : (isCheckedBefore ? 'false' : 'true'));
|
|
642
|
+
merge(eventArgs, { isChecked: checkIcon.classList.contains(classNames.checked) });
|
|
643
|
+
if (isFocusedBefore) {
|
|
644
|
+
li.classList.remove(classNames.focused);
|
|
645
|
+
if (textAreaFocus) {
|
|
646
|
+
textAreaFocus.classList.remove('e-focused');
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
});
|
|
651
|
+
};
|
|
630
652
|
ListView.prototype.clickHandler = function (e) {
|
|
631
653
|
if (Array.isArray(this.dataSource) && this.dataSource.length === 0) {
|
|
632
654
|
return;
|
|
@@ -668,7 +690,10 @@ var ListView = /** @class */ (function (_super) {
|
|
|
668
690
|
var eventArgs = this.selectEventData(li, e);
|
|
669
691
|
var checkIcon = li.querySelector('.' + classNames.checkboxIcon);
|
|
670
692
|
merge(eventArgs, { isChecked: checkIcon.classList.contains(classNames.checked) });
|
|
671
|
-
|
|
693
|
+
var checkboxElement = li.querySelector('.' + classNames.checkboxWrapper);
|
|
694
|
+
var isCheckedBefore = checkIcon.classList.contains(classNames.checked);
|
|
695
|
+
var isFocusedBefore = li.classList.contains(classNames.focused);
|
|
696
|
+
this.handleCheckboxState(li, checkIcon, checkboxElement, isCheckedBefore, isFocusedBefore, eventArgs, false);
|
|
672
697
|
}
|
|
673
698
|
}
|
|
674
699
|
else if (li.classList.contains(classNames.hasChild)) {
|
|
@@ -889,7 +914,13 @@ var ListView = /** @class */ (function (_super) {
|
|
|
889
914
|
}
|
|
890
915
|
var eventArgs = this.selectEventData(li, e);
|
|
891
916
|
merge(eventArgs, { isChecked: checkIcon ? checkIcon.classList.contains(classNames.checked) : false });
|
|
892
|
-
|
|
917
|
+
if (!isNullOrUndefined(li)) {
|
|
918
|
+
var cbElement = li.querySelector('.' + classNames.checkboxWrapper);
|
|
919
|
+
var checkboxIcon = li.querySelector('.' + classNames.checkboxIcon);
|
|
920
|
+
var isCheckedBefore = checkboxIcon.classList.contains(classNames.checked);
|
|
921
|
+
var isFocusedBefore = li.classList.contains(classNames.focused);
|
|
922
|
+
this.handleCheckboxState(li, checkboxIcon, cbElement, isCheckedBefore, isFocusedBefore, eventArgs, false);
|
|
923
|
+
}
|
|
893
924
|
this.updateSelectedId();
|
|
894
925
|
}
|
|
895
926
|
};
|
|
@@ -1019,7 +1050,9 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1019
1050
|
var checkboxElement = li.querySelector('.' + classNames.checkboxWrapper);
|
|
1020
1051
|
var checkIcon = checkboxElement.querySelector('.' + classNames.checkboxIcon + '.' + classNames.icon);
|
|
1021
1052
|
this.removeHover();
|
|
1022
|
-
|
|
1053
|
+
var isCheckedBefore = checkIcon.classList.contains(classNames.checked);
|
|
1054
|
+
var isFocusedBefore = li.classList.contains(classNames.focused);
|
|
1055
|
+
if (!isCheckedBefore) {
|
|
1023
1056
|
checkIcon.classList.add(classNames.checked);
|
|
1024
1057
|
li.classList.add(classNames.selected);
|
|
1025
1058
|
}
|
|
@@ -1034,7 +1067,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1034
1067
|
if (this.enableVirtualization) {
|
|
1035
1068
|
this.virtualizationModule.setCheckboxLI(li, e);
|
|
1036
1069
|
}
|
|
1037
|
-
this.
|
|
1070
|
+
this.handleCheckboxState(li, checkIcon, checkboxElement, isCheckedBefore, isFocusedBefore, eventArgs, true, textAreaFocus);
|
|
1038
1071
|
this.setSelectedItemData(li);
|
|
1039
1072
|
this.renderSubList(li);
|
|
1040
1073
|
}
|
|
@@ -1103,6 +1136,10 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1103
1136
|
_this.selectedLI = li;
|
|
1104
1137
|
_this.renderSubList(li);
|
|
1105
1138
|
}
|
|
1139
|
+
else {
|
|
1140
|
+
li.classList.remove(classNames.selected);
|
|
1141
|
+
_this.selectedLI = li;
|
|
1142
|
+
}
|
|
1106
1143
|
});
|
|
1107
1144
|
}
|
|
1108
1145
|
};
|
|
@@ -1321,6 +1358,9 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1321
1358
|
var ele = this.element.querySelector('[pid=\'' + uID + '\']');
|
|
1322
1359
|
this.curDSLevel.push(uID);
|
|
1323
1360
|
this.setViewDataSource(this.getSubDS());
|
|
1361
|
+
if (this.enableVirtualization) {
|
|
1362
|
+
this.virtualizationModule.updateDOMItemCount();
|
|
1363
|
+
}
|
|
1324
1364
|
if (!ele) {
|
|
1325
1365
|
var data = this.curViewDS;
|
|
1326
1366
|
ele = ListBase.createListFromJson(this.createElement, data, this.listBaseOption, this.curDSLevel.length, null, this);
|
|
@@ -1429,6 +1469,9 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1429
1469
|
}
|
|
1430
1470
|
this.curDSLevel.pop();
|
|
1431
1471
|
this.setViewDataSource(this.getSubDS());
|
|
1472
|
+
if (this.enableVirtualization) {
|
|
1473
|
+
this.virtualizationModule.updateDOMItemCount();
|
|
1474
|
+
}
|
|
1432
1475
|
var toUL = this.element.querySelector('[data-uid=\'' + pID + '\']');
|
|
1433
1476
|
var fromUL = this.curUL;
|
|
1434
1477
|
if (!toUL) {
|
|
@@ -42,7 +42,7 @@ var Virtualization = /** @class */ (function () {
|
|
|
42
42
|
this.listViewInstance.contentContainer.appendChild(this.listViewInstance.ulElement);
|
|
43
43
|
this.listItemHeight = this.listViewInstance.ulElement.firstElementChild.getBoundingClientRect().height;
|
|
44
44
|
this.expectedDomItemCount = this.ValidateItemCount(10000);
|
|
45
|
-
this.
|
|
45
|
+
this.updateDOMItemCount();
|
|
46
46
|
var lastIndex = isRendered && !isNullOrUndefined(this.uiLastIndex) ? this.uiLastIndex : this.domItemCount - 1;
|
|
47
47
|
this.uiFirstIndex = firstIndex;
|
|
48
48
|
this.uiLastIndex = lastIndex;
|
|
@@ -104,6 +104,9 @@ var Virtualization = /** @class */ (function () {
|
|
|
104
104
|
}
|
|
105
105
|
return itemCount;
|
|
106
106
|
};
|
|
107
|
+
Virtualization.prototype.updateDOMItemCount = function () {
|
|
108
|
+
this.domItemCount = this.ValidateItemCount(Object.keys(this.listViewInstance.curViewDS).length);
|
|
109
|
+
};
|
|
107
110
|
Virtualization.prototype.uiIndicesInitialization = function () {
|
|
108
111
|
this.uiIndices = { 'activeIndices': [], 'disabledItemIndices': [], 'hiddenItemIndices': [] };
|
|
109
112
|
var data = this.listViewInstance.curViewDS;
|
|
@@ -403,18 +406,19 @@ var Virtualization = /** @class */ (function () {
|
|
|
403
406
|
}
|
|
404
407
|
};
|
|
405
408
|
Virtualization.prototype.selectItem = function (obj) {
|
|
409
|
+
var _this = this;
|
|
406
410
|
var resutJSON = this.findDSAndIndexFromId(this.listViewInstance.curViewDS, obj);
|
|
407
411
|
if (Object.keys(resutJSON).length) {
|
|
408
412
|
var isSelected = this.activeIndex === resutJSON.index;
|
|
409
|
-
var
|
|
413
|
+
var isChecked_1;
|
|
410
414
|
this.activeIndex = resutJSON.index;
|
|
411
415
|
if (this.listViewInstance.showCheckBox) {
|
|
412
416
|
if (this.uiIndices.activeIndices.indexOf(resutJSON.index) === -1) {
|
|
413
|
-
|
|
417
|
+
isChecked_1 = true;
|
|
414
418
|
this.uiIndices.activeIndices.push(resutJSON.index);
|
|
415
419
|
}
|
|
416
420
|
else {
|
|
417
|
-
|
|
421
|
+
isChecked_1 = false;
|
|
418
422
|
this.uiIndices.activeIndices.splice(this.uiIndices.activeIndices.indexOf(resutJSON.index), 1);
|
|
419
423
|
}
|
|
420
424
|
if (this.listViewInstance.curUL.querySelector('.' + classNames.focused)) {
|
|
@@ -430,10 +434,10 @@ var Virtualization = /** @class */ (function () {
|
|
|
430
434
|
}
|
|
431
435
|
}
|
|
432
436
|
else {
|
|
433
|
-
var
|
|
437
|
+
var eventArgs_1;
|
|
434
438
|
if (typeof this.listViewInstance.dataSource[0] === 'string' ||
|
|
435
439
|
typeof this.listViewInstance.dataSource[0] === 'number') {
|
|
436
|
-
|
|
440
|
+
eventArgs_1 = {
|
|
437
441
|
text: this.listViewInstance.curViewDS[this.activeIndex],
|
|
438
442
|
data: this.listViewInstance.curViewDS[this.activeIndex],
|
|
439
443
|
index: this.activeIndex
|
|
@@ -441,19 +445,33 @@ var Virtualization = /** @class */ (function () {
|
|
|
441
445
|
}
|
|
442
446
|
else {
|
|
443
447
|
var curViewDS = this.listViewInstance.curViewDS;
|
|
444
|
-
|
|
448
|
+
eventArgs_1 = {
|
|
445
449
|
text: curViewDS[this.activeIndex][this.listViewInstance.fields.text],
|
|
446
450
|
data: curViewDS[this.activeIndex],
|
|
447
451
|
index: this.activeIndex
|
|
448
452
|
};
|
|
449
453
|
}
|
|
450
454
|
if (this.listViewInstance.showCheckBox) {
|
|
451
|
-
|
|
452
|
-
|
|
455
|
+
this.listViewInstance.trigger('select', eventArgs_1, function (observedArgs) {
|
|
456
|
+
if (observedArgs.cancel) {
|
|
457
|
+
if (!isChecked_1) {
|
|
458
|
+
eventArgs_1.isChecked = isChecked_1;
|
|
459
|
+
_this.uiIndices.activeIndices.push(resutJSON.index);
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
eventArgs_1.isChecked = !isChecked_1;
|
|
463
|
+
_this.uiIndices.activeIndices.splice(_this.uiIndices.activeIndices.indexOf(resutJSON.index), 1);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
});
|
|
453
467
|
}
|
|
454
468
|
else if (!isSelected) {
|
|
455
469
|
this.listViewInstance.removeSelect();
|
|
456
|
-
this.listViewInstance.trigger('select',
|
|
470
|
+
this.listViewInstance.trigger('select', eventArgs_1, function (observedArgs) {
|
|
471
|
+
if (observedArgs.cancel) {
|
|
472
|
+
_this.activeIndex = undefined;
|
|
473
|
+
}
|
|
474
|
+
});
|
|
457
475
|
}
|
|
458
476
|
}
|
|
459
477
|
}
|
package/src/sortable/sortable.js
CHANGED
|
@@ -164,8 +164,8 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
164
164
|
};
|
|
165
165
|
_this.onDragStop = function (e) {
|
|
166
166
|
var dropInst = _this.getSortableInstance(_this.curTarget);
|
|
167
|
-
var curIdx;
|
|
168
167
|
var prevIdx;
|
|
168
|
+
var curIdx;
|
|
169
169
|
var handled;
|
|
170
170
|
prevIdx = _this.getIndex(_this.target);
|
|
171
171
|
var isPlaceHolderPresent = _this.isPlaceHolderPresent(dropInst);
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
.e-listview .e-icon-collapsible::before {
|
|
2
|
+
content: "\e943";
|
|
3
|
+
}
|
|
4
|
+
.e-listview .e-icon-back::before {
|
|
5
|
+
content: "\e94b";
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
10
|
+
.e-listview {
|
|
11
|
+
-webkit-overflow-scrolling: touch;
|
|
12
|
+
border: 0 solid;
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
display: block;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
position: relative;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
.e-listview:not(.e-list-template) .e-list-item {
|
|
20
|
+
height: 40px;
|
|
21
|
+
line-height: 36px;
|
|
22
|
+
position: relative;
|
|
23
|
+
padding: 0 15px;
|
|
24
|
+
}
|
|
25
|
+
.e-listview .e-list-item {
|
|
26
|
+
border-bottom: 0 solid;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.e-listview .e-list-parent {
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.e-listview .e-icon-back {
|
|
36
|
+
margin-top: -2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.e-listview .e-list-header {
|
|
40
|
+
-webkit-box-align: center;
|
|
41
|
+
-ms-flex-align: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
display: -webkit-box;
|
|
44
|
+
display: -ms-flexbox;
|
|
45
|
+
display: flex;
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
height: 40px;
|
|
48
|
+
border-bottom: 1px solid;
|
|
49
|
+
padding: 0 20px;
|
|
50
|
+
}
|
|
51
|
+
.e-listview .e-list-header .e-text.header,
|
|
52
|
+
.e-listview .e-list-header .e-headertemplate-text.nested-header {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
.e-listview .e-list-header.e-list-navigation .e-text {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
.e-listview .e-list-header .e-text {
|
|
59
|
+
cursor: default;
|
|
60
|
+
text-indent: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.e-listview .e-has-header > .e-view {
|
|
64
|
+
top: 45px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.e-listview .e-back-button {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
padding-right: 10px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.e-listview .e-list-group-item {
|
|
73
|
+
border-bottom: 1px solid #414141;
|
|
74
|
+
border-top: 0 solid;
|
|
75
|
+
height: 40px;
|
|
76
|
+
line-height: 36px;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
padding: 0 15px;
|
|
79
|
+
}
|
|
80
|
+
.e-listview .e-list-group-item .e-list-text {
|
|
81
|
+
cursor: default;
|
|
82
|
+
}
|
|
83
|
+
.e-listview .e-list-group-item:first-child {
|
|
84
|
+
border: 0;
|
|
85
|
+
border-bottom: 1px solid #414141;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.e-listview .e-icon-collapsible {
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
position: absolute;
|
|
92
|
+
right: 0%;
|
|
93
|
+
top: 50%;
|
|
94
|
+
-webkit-transform: translateY(-50%);
|
|
95
|
+
transform: translateY(-50%);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.e-listview .e-text-content {
|
|
99
|
+
height: 100%;
|
|
100
|
+
position: relative;
|
|
101
|
+
vertical-align: middle;
|
|
102
|
+
}
|
|
103
|
+
.e-listview .e-text-content.e-checkbox .e-list-text {
|
|
104
|
+
width: calc(100% - 40px);
|
|
105
|
+
}
|
|
106
|
+
.e-listview .e-text-content.e-checkbox.e-checkbox-left .e-list-icon + .e-list-text {
|
|
107
|
+
width: calc(100% - 90px);
|
|
108
|
+
}
|
|
109
|
+
.e-listview .e-text-content.e-checkbox.e-checkbox-right .e-list-icon + .e-list-text {
|
|
110
|
+
width: calc(100% - 80px);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.e-listview .e-text-content * {
|
|
114
|
+
display: inline-block;
|
|
115
|
+
vertical-align: middle;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.e-listview .e-list-item.e-checklist.e-has-child .e-text-content.e-checkbox.e-checkbox-right .e-list-icon + .e-list-text {
|
|
119
|
+
width: calc(100% - 92px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.e-listview .e-checkbox .e-checkbox-left {
|
|
123
|
+
margin: -4px 10px 0 0;
|
|
124
|
+
}
|
|
125
|
+
.e-listview .e-checkbox .e-checkbox-right {
|
|
126
|
+
margin: -4px 0 0 10px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.e-listview .e-list-text {
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
display: inline-block;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
vertical-align: middle;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
width: 100%;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.e-listview .e-list-icon + .e-list-text, .e-listview .e-icon-wrapper .e-list-text, .e-listview .e-icon-wrapper.e-text-content.e-checkbox .e-list-text {
|
|
140
|
+
width: calc(100% - 60px);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.e-listview .e-list-icon {
|
|
144
|
+
margin-right: 10px;
|
|
145
|
+
height: 30px;
|
|
146
|
+
width: 30px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.e-listview .e-list-container {
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
position: relative;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.e-listview .e-text .e-headertext {
|
|
155
|
+
display: inline-block;
|
|
156
|
+
line-height: 1px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.e-listview.e-rtl {
|
|
160
|
+
direction: rtl;
|
|
161
|
+
}
|
|
162
|
+
.e-listview.e-rtl .e-list-icon {
|
|
163
|
+
margin-left: 16px;
|
|
164
|
+
margin-right: 0;
|
|
165
|
+
}
|
|
166
|
+
.e-listview.e-rtl .e-icon-collapsible {
|
|
167
|
+
left: 0%;
|
|
168
|
+
right: initial;
|
|
169
|
+
top: 50%;
|
|
170
|
+
-webkit-transform: translateY(-50%) rotate(180deg);
|
|
171
|
+
transform: translateY(-50%) rotate(180deg);
|
|
172
|
+
}
|
|
173
|
+
.e-listview.e-rtl .e-list-header .e-text {
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
}
|
|
176
|
+
.e-listview.e-rtl .e-back-button {
|
|
177
|
+
-webkit-transform: rotate(180deg);
|
|
178
|
+
transform: rotate(180deg);
|
|
179
|
+
}
|
|
180
|
+
.e-listview.e-rtl .e-icon-back {
|
|
181
|
+
margin-top: -1px;
|
|
182
|
+
}
|
|
183
|
+
.e-listview.e-rtl .e-checkbox .e-checkbox-left {
|
|
184
|
+
margin: -4px 0 0 10px;
|
|
185
|
+
}
|
|
186
|
+
.e-listview.e-rtl .e-checkbox .e-checkbox-right {
|
|
187
|
+
margin: -4px 10px 0 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.e-listview {
|
|
191
|
+
border-color: rgba(26, 26, 26, 0.1);
|
|
192
|
+
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif, "-apple-system", "BlinkMacSystemFont";
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
}
|
|
195
|
+
.e-listview .e-list-header {
|
|
196
|
+
background-color: #6e6e6e;
|
|
197
|
+
color: rgba(255, 255, 255, 0.95);
|
|
198
|
+
border-color: #414141;
|
|
199
|
+
font-size: 14px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon, .e-check) {
|
|
203
|
+
color: #f0f0f0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.e-listview .e-list-item {
|
|
207
|
+
border-bottom: 1px solid #414141;
|
|
208
|
+
border-left: 0 solid transparent;
|
|
209
|
+
border-right: 0 solid transparent;
|
|
210
|
+
border-top: 0 solid transparent;
|
|
211
|
+
background-color: #1a1a1a;
|
|
212
|
+
color: #f0f0f0;
|
|
213
|
+
}
|
|
214
|
+
.e-listview .e-list-item.e-hover, .e-listview .e-list-item.e-hover.e-active.e-checklist {
|
|
215
|
+
background-color: #313131;
|
|
216
|
+
color: rgba(255, 255, 255, 0.87);
|
|
217
|
+
border-color: transparent;
|
|
218
|
+
}
|
|
219
|
+
.e-listview .e-list-item.e-active {
|
|
220
|
+
background-color: #414141;
|
|
221
|
+
color: rgba(255, 255, 255, 0.87);
|
|
222
|
+
}
|
|
223
|
+
.e-listview .e-list-item.e-active.e-checklist {
|
|
224
|
+
background-color: #1a1a1a;
|
|
225
|
+
color: #f0f0f0;
|
|
226
|
+
}
|
|
227
|
+
.e-listview .e-list-item.e-focused, .e-listview .e-list-item.e-focused.e-active.e-checklist {
|
|
228
|
+
background-color: #414141;
|
|
229
|
+
color: rgba(255, 255, 255, 0.87);
|
|
230
|
+
}
|
|
231
|
+
.e-listview .e-list-item.e-focused .e-checkbox-wrapper .e-frame.e-check, .e-listview .e-list-item.e-focused .e-css.e-checkbox-wrapper .e-frame.e-check {
|
|
232
|
+
background-color: #1a1a1a;
|
|
233
|
+
color: #f0f0f0;
|
|
234
|
+
border-color: #f0f0f0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.e-listview .e-list-group-item {
|
|
238
|
+
background-color: #1a1a1a;
|
|
239
|
+
color: #3e98ff;
|
|
240
|
+
border-color: #414141;
|
|
241
|
+
font-size: 14px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.e-listview.e-list-template .e-list-wrapper {
|
|
245
|
+
height: inherit;
|
|
246
|
+
position: relative;
|
|
247
|
+
}
|
|
248
|
+
.e-listview.e-list-template .e-list-wrapper:not(.e-list-multi-line) {
|
|
249
|
+
padding: 0.7142em 1.0714em;
|
|
250
|
+
}
|
|
251
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-multi-line {
|
|
252
|
+
padding: 0.7142em 1.0714em;
|
|
253
|
+
}
|
|
254
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-multi-line .e-list-item-header {
|
|
255
|
+
color: #fff;
|
|
256
|
+
display: block;
|
|
257
|
+
font-size: 18px;
|
|
258
|
+
font-weight: 500;
|
|
259
|
+
margin: 0;
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
padding: 0.038em 0;
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
}
|
|
265
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-multi-line .e-list-content {
|
|
266
|
+
color: #393939;
|
|
267
|
+
display: block;
|
|
268
|
+
font-size: 14px;
|
|
269
|
+
margin: 0;
|
|
270
|
+
padding: 0.038em 0;
|
|
271
|
+
word-wrap: break-word;
|
|
272
|
+
}
|
|
273
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-multi-line .e-list-content:not(.e-text-overflow) {
|
|
274
|
+
overflow: hidden;
|
|
275
|
+
text-overflow: ellipsis;
|
|
276
|
+
white-space: nowrap;
|
|
277
|
+
}
|
|
278
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-avatar .e-avatar {
|
|
279
|
+
height: 2.8571em;
|
|
280
|
+
width: 2.8571em;
|
|
281
|
+
top: 0.7142em;
|
|
282
|
+
left: 1.0667em;
|
|
283
|
+
position: absolute;
|
|
284
|
+
}
|
|
285
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-avatar:not(.e-list-badge) {
|
|
286
|
+
padding-left: 4.6428em;
|
|
287
|
+
padding-right: 1.0714em;
|
|
288
|
+
}
|
|
289
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-avatar-right:not(.e-list-badge) {
|
|
290
|
+
padding-left: 1.0714em;
|
|
291
|
+
padding-right: 4.6428em;
|
|
292
|
+
}
|
|
293
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-avatar-right:not(.e-list-badge) .e-avatar {
|
|
294
|
+
height: 2.8571em;
|
|
295
|
+
width: 2.8571em;
|
|
296
|
+
top: 0.7142em;
|
|
297
|
+
right: 1.0667em;
|
|
298
|
+
position: absolute;
|
|
299
|
+
}
|
|
300
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-multi-line.e-list-avatar .e-avatar {
|
|
301
|
+
top: 0.7142em;
|
|
302
|
+
}
|
|
303
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-multi-line.e-list-avatar-right:not(.e-list-badge) .e-avatar {
|
|
304
|
+
top: 0.7142em;
|
|
305
|
+
}
|
|
306
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-badge .e-badge {
|
|
307
|
+
font-size: 15px;
|
|
308
|
+
height: 1.333em;
|
|
309
|
+
width: 2em;
|
|
310
|
+
top: 50%;
|
|
311
|
+
right: 1em;
|
|
312
|
+
line-height: 1.433em;
|
|
313
|
+
padding: 0;
|
|
314
|
+
position: absolute;
|
|
315
|
+
-webkit-transform: translateY(-50%);
|
|
316
|
+
transform: translateY(-50%);
|
|
317
|
+
}
|
|
318
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-badge.e-list-avatar {
|
|
319
|
+
padding-left: 4.6428em;
|
|
320
|
+
padding-right: 3.9285em;
|
|
321
|
+
}
|
|
322
|
+
.e-listview.e-list-template .e-list-wrapper.e-list-badge:not(.e-list-avatar) {
|
|
323
|
+
padding-left: 1.0714em;
|
|
324
|
+
padding-right: 3.9285em;
|
|
325
|
+
}
|
|
326
|
+
.e-listview.e-list-template .e-list-wrapper:not(.e-list-multi-line) .e-list-content {
|
|
327
|
+
display: block;
|
|
328
|
+
margin: 0;
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
padding: 0.83em 0;
|
|
331
|
+
text-overflow: ellipsis;
|
|
332
|
+
white-space: nowrap;
|
|
333
|
+
}
|
|
334
|
+
.e-listview.e-list-template .e-list-item.e-hover .e-list-item-header, .e-listview.e-list-template .e-list-item.e-hover .e-list-content {
|
|
335
|
+
color: rgba(255, 255, 255, 0.87);
|
|
336
|
+
}
|
|
337
|
+
.e-listview.e-list-template .e-list-item.e-active .e-list-item-header, .e-listview.e-list-template .e-list-item.e-active .e-list-content {
|
|
338
|
+
color: rgba(255, 255, 255, 0.87);
|
|
339
|
+
}
|
|
340
|
+
.e-listview.e-rtl.e-list-template .e-list-wrapper.e-list-avatar .e-avatar {
|
|
341
|
+
left: inherit;
|
|
342
|
+
right: 1.0667em;
|
|
343
|
+
}
|
|
344
|
+
.e-listview.e-rtl.e-list-template .e-list-wrapper.e-list-avatar:not(.e-list-badge) {
|
|
345
|
+
padding-left: 1.0714em;
|
|
346
|
+
padding-right: 4.6428em;
|
|
347
|
+
}
|
|
348
|
+
.e-listview.e-rtl.e-list-template .e-list-wrapper.e-list-avatar-right:not(.e-list-badge) {
|
|
349
|
+
padding-left: 4.6428em;
|
|
350
|
+
padding-right: 1.0714em;
|
|
351
|
+
}
|
|
352
|
+
.e-listview.e-rtl.e-list-template .e-list-wrapper.e-list-avatar-right:not(.e-list-badge) .e-avatar {
|
|
353
|
+
left: 1.0667em;
|
|
354
|
+
right: inherit;
|
|
355
|
+
}
|
|
356
|
+
.e-listview.e-rtl.e-list-template .e-list-wrapper.e-list-badge .e-badge {
|
|
357
|
+
left: 1em;
|
|
358
|
+
right: inherit;
|
|
359
|
+
}
|
|
360
|
+
.e-listview.e-rtl.e-list-template .e-list-wrapper.e-list-badge.e-list-avatar {
|
|
361
|
+
padding-left: 3.9285em;
|
|
362
|
+
padding-right: 4.6428em;
|
|
363
|
+
}
|
|
364
|
+
.e-listview.e-rtl.e-list-template .e-list-wrapper.e-list-badge:not(.e-list-avatar) {
|
|
365
|
+
padding-left: 3.9285em;
|
|
366
|
+
padding-right: 1.0714em;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* stylelint-disable-line no-empty-source */
|
|
370
|
+
.e-sortable {
|
|
371
|
+
outline: none;
|
|
372
|
+
position: relative;
|
|
373
|
+
-webkit-user-select: none;
|
|
374
|
+
-moz-user-select: none;
|
|
375
|
+
-ms-user-select: none;
|
|
376
|
+
user-select: none;
|
|
377
|
+
}
|
|
378
|
+
.e-sortable .e-disabled {
|
|
379
|
+
background-image: none;
|
|
380
|
+
cursor: default;
|
|
381
|
+
opacity: 0.35;
|
|
382
|
+
}
|
|
383
|
+
.e-sortable * {
|
|
384
|
+
-webkit-box-sizing: border-box;
|
|
385
|
+
box-sizing: border-box;
|
|
386
|
+
}
|
|
387
|
+
.e-sortable *:focus {
|
|
388
|
+
outline: none;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* stylelint-disable */
|
|
392
|
+
.e-sortableclone {
|
|
393
|
+
position: fixed !important;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* stylelint-enable */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@import 'ej2-base/styles/definition/bootstrap-dark.scss';
|
|
2
|
+
@import 'ej2-buttons/styles/check-box/bootstrap-dark-definition.scss';
|
|
3
|
+
@import 'list-view/bootstrap-dark-definition.scss';
|
|
4
|
+
@import 'list-view/icons/bootstrap-dark.scss';
|
|
5
|
+
@import 'list-view/all.scss';
|
|
6
|
+
@import 'sortable/bootstrap-dark-definition.scss';
|
|
7
|
+
@import 'sortable/all.scss';
|