@syncfusion/ej2-lists 21.1.37 → 21.1.39
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 +7 -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 +36 -0
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +36 -0
- 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 +8 -0
- 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 +27 -1
- 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.39
|
|
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.37",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-+lxHJqW3QE0XJoZMrwL8bpknrhvrm+VS8VMD1kDFoC4KH0ZIsWer8C5LasdqEqyZo6sSufXSaxh2m2AyEb9LJw==",
|
|
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.37.tgz",
|
|
39
|
+
"_shasum": "54cc6390138906e20f7c7d04a7665a21688e38c9",
|
|
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.39",
|
|
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.39",
|
|
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
|
/**
|
|
@@ -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
|
|
@@ -250,6 +250,31 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
250
250
|
queryPositionInfo: this.queryPositionInfo,
|
|
251
251
|
distance: 5
|
|
252
252
|
});
|
|
253
|
+
this.wireEvents();
|
|
254
|
+
};
|
|
255
|
+
Sortable.prototype.wireEvents = function () {
|
|
256
|
+
var wrapper = this.element;
|
|
257
|
+
EventHandler.add(wrapper, 'keydown', this.keyDownHandler, this);
|
|
258
|
+
};
|
|
259
|
+
Sortable.prototype.unwireEvents = function () {
|
|
260
|
+
var wrapper = this.element;
|
|
261
|
+
EventHandler.remove(wrapper, 'keydown', this.keyDownHandler);
|
|
262
|
+
};
|
|
263
|
+
Sortable.prototype.keyDownHandler = function (e) {
|
|
264
|
+
if (e.keyCode === 27) {
|
|
265
|
+
var dragStop = getComponent(this.element, 'draggable');
|
|
266
|
+
if (dragStop) {
|
|
267
|
+
dragStop.intDestroy(null);
|
|
268
|
+
}
|
|
269
|
+
var dragWrapper = document.getElementsByClassName('e-sortableclone')[0];
|
|
270
|
+
if (dragWrapper) {
|
|
271
|
+
dragWrapper.remove();
|
|
272
|
+
}
|
|
273
|
+
var dragPlaceholder = document.getElementsByClassName('e-sortable-placeholder')[0];
|
|
274
|
+
if (dragPlaceholder) {
|
|
275
|
+
dragPlaceholder.remove();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
253
278
|
};
|
|
254
279
|
Sortable.prototype.getPlaceHolder = function (target, instance) {
|
|
255
280
|
if (instance.placeHolder) {
|
|
@@ -357,6 +382,7 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
357
382
|
* It is used to destroy the Sortable library.
|
|
358
383
|
*/
|
|
359
384
|
Sortable.prototype.destroy = function () {
|
|
385
|
+
this.unwireEvents();
|
|
360
386
|
if (this.itemClass === 'e-sort-item') {
|
|
361
387
|
this.itemClass = null;
|
|
362
388
|
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-icon-btn) {
|
|
266
266
|
color: #adb5bd;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-icon-btn).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-icon-btn).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-icon-btn) {
|
|
266
266
|
color: #6c757d;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-icon-btn).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-icon-btn).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-icon-btn) {
|
|
266
266
|
color: #adb5bd;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-icon-btn).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-icon-btn).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-icon-btn) {
|
|
266
266
|
color: #6c757d;
|
|
267
267
|
}
|
|
268
|
-
.e-listview .e-icons.e-back-button:hover {
|
|
268
|
+
.e-listview .e-icons:not(.e-primary .e-icon-btn).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-icon-btn).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-icon-btn) {
|
|
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-icon-btn).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-icon-btn).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-icon-btn) {
|
|
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-icon-btn).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-icon-btn).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-icon-btn) {
|
|
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-icon-btn).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-icon-btn).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-icon-btn) {
|
|
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-icon-btn).e-back-button:hover, .e-listview .e-icons:not(.e-primary .e-icon-btn).e-icon-collapsible:hover {
|
|
399
399
|
color: #374151;
|
|
400
400
|
}
|
|
401
401
|
|