@syncfusion/ej2-lists 21.1.37 → 21.1.41
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/CHANGELOG.md +26 -0
- 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 +39 -2
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +39 -2
- 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 +7 -7
- package/src/list-view/list-view.js +9 -1
- package/src/list-view/virtualization.js +2 -0
- package/src/sortable/sortable-model.d.ts +1 -1
- package/src/sortable/sortable.d.ts +3 -0
- package/src/sortable/sortable.js +29 -2
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +3 -3
- package/styles/bootstrap5.css +3 -3
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/list-view/_theme.scss +1 -1
- package/styles/list-view/bootstrap-dark.css +1 -1
- package/styles/list-view/bootstrap.css +1 -1
- package/styles/list-view/bootstrap4.css +1 -1
- package/styles/list-view/bootstrap5-dark.css +3 -3
- package/styles/list-view/bootstrap5.css +3 -3
- package/styles/list-view/fabric-dark.css +1 -1
- package/styles/list-view/fabric.css +1 -1
- package/styles/list-view/fluent-dark.css +1 -1
- package/styles/list-view/fluent.css +1 -1
- package/styles/list-view/highcontrast-light.css +1 -1
- package/styles/list-view/highcontrast.css +1 -1
- package/styles/list-view/material-dark.css +1 -1
- package/styles/list-view/material.css +1 -1
- package/styles/list-view/tailwind-dark.css +2 -2
- package/styles/list-view/tailwind.css +2 -2
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/tailwind-dark.css +2 -2
- package/styles/tailwind.css +2 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.1.
|
|
3
|
+
* version : 21.1.41
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@21.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-lists@21.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-avVzHUnku+iBysZgKMmtiNarnIywzoUMhwANIfcB+zbFhP+tNBLLIzfRZEy7pKjAExOIIOXObKwPsR2CzAce3w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-lists",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"/@syncfusion/ej2-schedule",
|
|
36
36
|
"/@syncfusion/ej2-vue-lists"
|
|
37
37
|
],
|
|
38
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-21.1.
|
|
39
|
-
"_shasum": "
|
|
38
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-21.1.39.tgz",
|
|
39
|
+
"_shasum": "861a10159578f29420d35e8f50c97c7771c6dbf7",
|
|
40
40
|
"_spec": "@syncfusion/ej2-lists@*",
|
|
41
41
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
42
42
|
"author": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~21.1.
|
|
47
|
+
"@syncfusion/ej2-base": "~21.1.40",
|
|
48
48
|
"@syncfusion/ej2-buttons": "~21.1.37",
|
|
49
|
-
"@syncfusion/ej2-data": "~21.1.
|
|
49
|
+
"@syncfusion/ej2-data": "~21.1.38"
|
|
50
50
|
},
|
|
51
51
|
"deprecated": false,
|
|
52
52
|
"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.",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
|
|
87
87
|
},
|
|
88
88
|
"typings": "index.d.ts",
|
|
89
|
-
"version": "21.1.
|
|
89
|
+
"version": "21.1.41",
|
|
90
90
|
"sideEffects": false,
|
|
91
91
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
92
92
|
}
|
|
@@ -958,6 +958,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
958
958
|
EventHandler.remove(this.element, 'mouseover', this.hoverHandler);
|
|
959
959
|
EventHandler.remove(this.element, 'mouseout', this.leaveHandler);
|
|
960
960
|
this.touchModule.destroy();
|
|
961
|
+
this.touchModule = null;
|
|
961
962
|
};
|
|
962
963
|
ListView.prototype.removeFocus = function () {
|
|
963
964
|
var focusedLI = this.element.querySelectorAll('.' + classNames.focused);
|
|
@@ -1437,6 +1438,13 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1437
1438
|
this.element.removeAttribute('tabindex');
|
|
1438
1439
|
this.curUL = this.ulElement = this.liCollection = this.headerEle = undefined;
|
|
1439
1440
|
this.element.innerHTML = '';
|
|
1441
|
+
this.contentContainer = null;
|
|
1442
|
+
this.selectedItems = null;
|
|
1443
|
+
this.selectedLI = null;
|
|
1444
|
+
this.liElement = null;
|
|
1445
|
+
this.targetElement = null;
|
|
1446
|
+
this.currentLiElements = null;
|
|
1447
|
+
this.virtualCheckBox = null;
|
|
1440
1448
|
_super.prototype.destroy.call(this);
|
|
1441
1449
|
};
|
|
1442
1450
|
/**
|
|
@@ -1573,7 +1581,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1573
1581
|
var liCollection = this.curUL.getElementsByClassName(classNames.selected);
|
|
1574
1582
|
for (var i = 0; i < liCollection.length; i++) {
|
|
1575
1583
|
var tempData = this.getItemData(liCollection[i]);
|
|
1576
|
-
if (tempData[this.listBaseOption.fields.id]) {
|
|
1584
|
+
if (!isNullOrUndefined(tempData) && tempData[this.listBaseOption.fields.id]) {
|
|
1577
1585
|
this.selectedId.push(tempData[this.listBaseOption.fields.id]);
|
|
1578
1586
|
}
|
|
1579
1587
|
}
|
|
@@ -1155,6 +1155,8 @@ var Virtualization = /** @class */ (function () {
|
|
|
1155
1155
|
};
|
|
1156
1156
|
Virtualization.prototype.destroy = function () {
|
|
1157
1157
|
this.wireScrollEvent(true);
|
|
1158
|
+
this.topElement = null;
|
|
1159
|
+
this.bottomElement = null;
|
|
1158
1160
|
};
|
|
1159
1161
|
return Virtualization;
|
|
1160
1162
|
}());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Base, Event, getUniqueID, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { closest, Draggable, DragPosition, MouseEventArgs, remove, compareElementParent } from '@syncfusion/ej2-base';import { addClass, isNullOrUndefined, getComponent, isBlazor, BlazorDragEventArgs } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Base, Event, getUniqueID, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { closest, Draggable, DragPosition, MouseEventArgs, remove, compareElementParent } from '@syncfusion/ej2-base';import { addClass, isNullOrUndefined, getComponent, isBlazor, BlazorDragEventArgs, EventHandler } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class Sortable
|
|
@@ -78,6 +78,9 @@ export declare class Sortable extends Base<HTMLElement> implements INotifyProper
|
|
|
78
78
|
constructor(element: HTMLElement, options?: SortableModel);
|
|
79
79
|
protected bind(): void;
|
|
80
80
|
private initializeDraggable;
|
|
81
|
+
private wireEvents;
|
|
82
|
+
private unwireEvents;
|
|
83
|
+
private keyDownHandler;
|
|
81
84
|
private getPlaceHolder;
|
|
82
85
|
private getHelper;
|
|
83
86
|
private isValidTarget;
|
package/src/sortable/sortable.js
CHANGED
|
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { Base, Event, getUniqueID, NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';
|
|
21
21
|
import { closest, Draggable, remove, compareElementParent } from '@syncfusion/ej2-base';
|
|
22
|
-
import { addClass, isNullOrUndefined, getComponent, isBlazor } from '@syncfusion/ej2-base';
|
|
22
|
+
import { addClass, isNullOrUndefined, getComponent, isBlazor, EventHandler } from '@syncfusion/ej2-base';
|
|
23
23
|
/**
|
|
24
24
|
* Sortable Module provides support to enable sortable functionality in Dom Elements.
|
|
25
25
|
* ```html
|
|
@@ -208,7 +208,8 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
208
208
|
target: e.target, droppedElement: _this.target, helper: e.helper, cancel: false
|
|
209
209
|
};
|
|
210
210
|
_this.trigger('beforeDrop', beforeDropArgs, function (observedArgs) {
|
|
211
|
-
if (dropInst.element === e.target
|
|
211
|
+
if ((dropInst.element === e.target || e.target.className.indexOf('e-list-nrt') > -1 || e.target.className.indexOf('e-list-nr-template') > -1
|
|
212
|
+
|| e.target.closest('.e-list-nr-template')) && !observedArgs.cancel) {
|
|
212
213
|
_this.updateItemClass(dropInst);
|
|
213
214
|
dropInst.element.appendChild(_this.target);
|
|
214
215
|
_this.trigger('drop', {
|
|
@@ -250,6 +251,31 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
250
251
|
queryPositionInfo: this.queryPositionInfo,
|
|
251
252
|
distance: 5
|
|
252
253
|
});
|
|
254
|
+
this.wireEvents();
|
|
255
|
+
};
|
|
256
|
+
Sortable.prototype.wireEvents = function () {
|
|
257
|
+
var wrapper = this.element;
|
|
258
|
+
EventHandler.add(wrapper, 'keydown', this.keyDownHandler, this);
|
|
259
|
+
};
|
|
260
|
+
Sortable.prototype.unwireEvents = function () {
|
|
261
|
+
var wrapper = this.element;
|
|
262
|
+
EventHandler.remove(wrapper, 'keydown', this.keyDownHandler);
|
|
263
|
+
};
|
|
264
|
+
Sortable.prototype.keyDownHandler = function (e) {
|
|
265
|
+
if (e.keyCode === 27) {
|
|
266
|
+
var dragStop = getComponent(this.element, 'draggable');
|
|
267
|
+
if (dragStop) {
|
|
268
|
+
dragStop.intDestroy(null);
|
|
269
|
+
}
|
|
270
|
+
var dragWrapper = document.getElementsByClassName('e-sortableclone')[0];
|
|
271
|
+
if (dragWrapper) {
|
|
272
|
+
dragWrapper.remove();
|
|
273
|
+
}
|
|
274
|
+
var dragPlaceholder = document.getElementsByClassName('e-sortable-placeholder')[0];
|
|
275
|
+
if (dragPlaceholder) {
|
|
276
|
+
dragPlaceholder.remove();
|
|
277
|
+
}
|
|
278
|
+
}
|
|
253
279
|
};
|
|
254
280
|
Sortable.prototype.getPlaceHolder = function (target, instance) {
|
|
255
281
|
if (instance.placeHolder) {
|
|
@@ -357,6 +383,7 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
357
383
|
* It is used to destroy the Sortable library.
|
|
358
384
|
*/
|
|
359
385
|
Sortable.prototype.destroy = function () {
|
|
386
|
+
this.unwireEvents();
|
|
360
387
|
if (this.itemClass === 'e-sort-item') {
|
|
361
388
|
this.itemClass = null;
|
|
362
389
|
this.dataBind();
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
|
@@ -262,13 +262,13 @@
|
|
|
262
262
|
font-size: 12px;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
.e-listview .e-icons {
|
|
265
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
266
266
|
color: #adb5bd;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover {
|
|
269
269
|
color: #dee2e6;
|
|
270
270
|
}
|
|
271
|
-
.e-listview .e-icons.e-back-button:active {
|
|
271
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:active {
|
|
272
272
|
color: #f8f9fa;
|
|
273
273
|
}
|
|
274
274
|
|
package/styles/bootstrap5.css
CHANGED
|
@@ -262,13 +262,13 @@
|
|
|
262
262
|
font-size: 12px;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
.e-listview .e-icons {
|
|
265
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
266
266
|
color: #6c757d;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover {
|
|
269
269
|
color: #343a40;
|
|
270
270
|
}
|
|
271
|
-
.e-listview .e-icons.e-back-button:active {
|
|
271
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:active {
|
|
272
272
|
color: #212529;
|
|
273
273
|
}
|
|
274
274
|
|
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
|
@@ -262,13 +262,13 @@
|
|
|
262
262
|
font-size: 12px;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
.e-listview .e-icons {
|
|
265
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
266
266
|
color: #adb5bd;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover {
|
|
269
269
|
color: #dee2e6;
|
|
270
270
|
}
|
|
271
|
-
.e-listview .e-icons.e-back-button:active {
|
|
271
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:active {
|
|
272
272
|
color: #f8f9fa;
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -262,13 +262,13 @@
|
|
|
262
262
|
font-size: 12px;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
.e-listview .e-icons {
|
|
265
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
266
266
|
color: #6c757d;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover {
|
|
269
269
|
color: #343a40;
|
|
270
270
|
}
|
|
271
|
-
.e-listview .e-icons.e-back-button:active {
|
|
271
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:active {
|
|
272
272
|
color: #212529;
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -391,10 +391,10 @@
|
|
|
391
391
|
font-size: 12px;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
.e-listview .e-icons {
|
|
394
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
395
395
|
color: #d1d5db;
|
|
396
396
|
}
|
|
397
|
-
.e-listview .e-icons.e-back-button:hover, .e-listview .e-icons.e-icon-collapsible:hover {
|
|
397
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-btn-icon).e-icon-collapsible:hover {
|
|
398
398
|
color: #f3f4f6;
|
|
399
399
|
}
|
|
400
400
|
|
|
@@ -391,10 +391,10 @@
|
|
|
391
391
|
font-size: 12px;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
.e-listview .e-icons {
|
|
394
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
395
395
|
color: #6b7280;
|
|
396
396
|
}
|
|
397
|
-
.e-listview .e-icons.e-back-button:hover, .e-listview .e-icons.e-icon-collapsible:hover {
|
|
397
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-btn-icon).e-icon-collapsible:hover {
|
|
398
398
|
color: #374151;
|
|
399
399
|
}
|
|
400
400
|
|
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/tailwind-dark.css
CHANGED
|
@@ -392,10 +392,10 @@
|
|
|
392
392
|
font-size: 12px;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
.e-listview .e-icons {
|
|
395
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
396
396
|
color: #d1d5db;
|
|
397
397
|
}
|
|
398
|
-
.e-listview .e-icons.e-back-button:hover, .e-listview .e-icons.e-icon-collapsible:hover {
|
|
398
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-btn-icon).e-icon-collapsible:hover {
|
|
399
399
|
color: #f3f4f6;
|
|
400
400
|
}
|
|
401
401
|
|
package/styles/tailwind.css
CHANGED
|
@@ -392,10 +392,10 @@
|
|
|
392
392
|
font-size: 12px;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
.e-listview .e-icons {
|
|
395
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon) {
|
|
396
396
|
color: #6b7280;
|
|
397
397
|
}
|
|
398
|
-
.e-listview .e-icons.e-back-button:hover, .e-listview .e-icons.e-icon-collapsible:hover {
|
|
398
|
+
.e-listview .e-icons:not(.e-primary .e-btn-icon).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-btn-icon).e-icon-collapsible:hover {
|
|
399
399
|
color: #374151;
|
|
400
400
|
}
|
|
401
401
|
|