@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/ej2-lists.min.js +2 -2
  3. package/dist/ej2-lists.umd.min.js +2 -2
  4. package/dist/ej2-lists.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-lists.es2015.js +36 -0
  6. package/dist/es6/ej2-lists.es2015.js.map +1 -1
  7. package/dist/es6/ej2-lists.es5.js +36 -0
  8. package/dist/es6/ej2-lists.es5.js.map +1 -1
  9. package/dist/global/ej2-lists.min.js +2 -2
  10. package/dist/global/ej2-lists.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +7 -7
  13. package/src/list-view/list-view.js +8 -0
  14. package/src/list-view/virtualization.js +2 -0
  15. package/src/sortable/sortable-model.d.ts +1 -1
  16. package/src/sortable/sortable.d.ts +3 -0
  17. package/src/sortable/sortable.js +27 -1
  18. package/styles/bootstrap-dark.css +1 -1
  19. package/styles/bootstrap.css +1 -1
  20. package/styles/bootstrap4.css +1 -1
  21. package/styles/bootstrap5-dark.css +3 -3
  22. package/styles/bootstrap5.css +3 -3
  23. package/styles/fabric-dark.css +1 -1
  24. package/styles/fabric.css +1 -1
  25. package/styles/fluent-dark.css +1 -1
  26. package/styles/fluent.css +1 -1
  27. package/styles/highcontrast-light.css +1 -1
  28. package/styles/highcontrast.css +1 -1
  29. package/styles/list-view/_theme.scss +1 -1
  30. package/styles/list-view/bootstrap-dark.css +1 -1
  31. package/styles/list-view/bootstrap.css +1 -1
  32. package/styles/list-view/bootstrap4.css +1 -1
  33. package/styles/list-view/bootstrap5-dark.css +3 -3
  34. package/styles/list-view/bootstrap5.css +3 -3
  35. package/styles/list-view/fabric-dark.css +1 -1
  36. package/styles/list-view/fabric.css +1 -1
  37. package/styles/list-view/fluent-dark.css +1 -1
  38. package/styles/list-view/fluent.css +1 -1
  39. package/styles/list-view/highcontrast-light.css +1 -1
  40. package/styles/list-view/highcontrast.css +1 -1
  41. package/styles/list-view/material-dark.css +1 -1
  42. package/styles/list-view/material.css +1 -1
  43. package/styles/list-view/tailwind-dark.css +2 -2
  44. package/styles/list-view/tailwind.css +2 -2
  45. package/styles/material-dark.css +1 -1
  46. package/styles/material.css +1 -1
  47. package/styles/tailwind-dark.css +2 -2
  48. package/styles/tailwind.css +2 -2
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.1.37
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.35",
3
+ "_id": "@syncfusion/ej2-lists@21.1.37",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-af9pL4xOPCiGs3k/QXv1TCnWJNVeU77YAk18f9H0O7DC0DuTv+9gLTnbyKiZ1AbQsb1LpcrGUd9iJWTQ2NFesA==",
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.35.tgz",
39
- "_shasum": "fd38e3230e163bd929d5d2618ceaab71153ba4b1",
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.37",
47
+ "@syncfusion/ej2-base": "~21.1.39",
48
48
  "@syncfusion/ej2-buttons": "~21.1.37",
49
- "@syncfusion/ej2-data": "~21.1.37"
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.37",
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;
@@ -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();
@@ -261,7 +261,7 @@
261
261
  font-size: 14px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #f0f0f0;
266
266
  }
267
267
 
@@ -262,7 +262,7 @@
262
262
  font-size: 14px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: rgba(0, 0, 0, 0.75);
267
267
  }
268
268
 
@@ -301,7 +301,7 @@
301
301
  font-size: 16px;
302
302
  }
303
303
 
304
- .e-listview .e-icons {
304
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
305
305
  color: #212529;
306
306
  }
307
307
 
@@ -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
 
@@ -261,7 +261,7 @@
261
261
  font-size: 14px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #dadada;
266
266
  }
267
267
 
package/styles/fabric.css CHANGED
@@ -262,7 +262,7 @@
262
262
  font-size: 14px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: #333;
267
267
  }
268
268
 
@@ -310,7 +310,7 @@
310
310
  font-size: 14px;
311
311
  }
312
312
 
313
- .e-listview .e-icons {
313
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
314
314
  color: #a19f9d;
315
315
  }
316
316
 
package/styles/fluent.css CHANGED
@@ -310,7 +310,7 @@
310
310
  font-size: 14px;
311
311
  }
312
312
 
313
- .e-listview .e-icons {
313
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
314
314
  color: #605e5c;
315
315
  }
316
316
 
@@ -261,7 +261,7 @@
261
261
  font-size: 14px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #000;
266
266
  }
267
267
 
@@ -262,7 +262,7 @@
262
262
  font-size: 14px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: #fff;
267
267
  }
268
268
 
@@ -11,7 +11,7 @@
11
11
  font-size: $listview-header-font-size;
12
12
  }
13
13
 
14
- & .e-icons {
14
+ & .e-icons:not(.e-primary .e-icon-btn) {
15
15
  color: $listview-icon-color;
16
16
 
17
17
  @if ($skin-name == 'tailwind') {
@@ -261,7 +261,7 @@
261
261
  font-size: 14px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #f0f0f0;
266
266
  }
267
267
 
@@ -262,7 +262,7 @@
262
262
  font-size: 14px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: rgba(0, 0, 0, 0.75);
267
267
  }
268
268
 
@@ -301,7 +301,7 @@
301
301
  font-size: 16px;
302
302
  }
303
303
 
304
- .e-listview .e-icons {
304
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
305
305
  color: #212529;
306
306
  }
307
307
 
@@ -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
 
@@ -261,7 +261,7 @@
261
261
  font-size: 14px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #dadada;
266
266
  }
267
267
 
@@ -262,7 +262,7 @@
262
262
  font-size: 14px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: #333;
267
267
  }
268
268
 
@@ -310,7 +310,7 @@
310
310
  font-size: 14px;
311
311
  }
312
312
 
313
- .e-listview .e-icons {
313
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
314
314
  color: #a19f9d;
315
315
  }
316
316
 
@@ -310,7 +310,7 @@
310
310
  font-size: 14px;
311
311
  }
312
312
 
313
- .e-listview .e-icons {
313
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
314
314
  color: #605e5c;
315
315
  }
316
316
 
@@ -261,7 +261,7 @@
261
261
  font-size: 14px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #000;
266
266
  }
267
267
 
@@ -262,7 +262,7 @@
262
262
  font-size: 14px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: #fff;
267
267
  }
268
268
 
@@ -261,7 +261,7 @@
261
261
  font-size: 20px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #fff;
266
266
  }
267
267
 
@@ -262,7 +262,7 @@
262
262
  font-size: 20px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: rgba(0, 0, 0, 0.54);
267
267
  }
268
268
 
@@ -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
 
@@ -261,7 +261,7 @@
261
261
  font-size: 20px;
262
262
  }
263
263
 
264
- .e-listview .e-icons {
264
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
265
265
  color: #fff;
266
266
  }
267
267
 
@@ -262,7 +262,7 @@
262
262
  font-size: 20px;
263
263
  }
264
264
 
265
- .e-listview .e-icons {
265
+ .e-listview .e-icons:not(.e-primary .e-icon-btn) {
266
266
  color: rgba(0, 0, 0, 0.54);
267
267
  }
268
268
 
@@ -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
 
@@ -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