@syncfusion/ej2-lists 29.1.34 → 29.1.40

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 29.1.33
3
+ * version : 29.1.40
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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,22 +1,24 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-lists@~29.1.33",
2
+ "_from": "@syncfusion/ej2-lists@*",
3
3
  "_id": "@syncfusion/ej2-lists@29.1.33",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-KF3pD4otqHOz0ipAaWuux5/WQctaxc1aBgPeUNht6KEmrjT5ZlGmVe7aQVgm5siYfwom3CaZJCQkA8qvoe6SpQ==",
5
+ "_integrity": "sha512-Jw1Y5kM/yqwAA5SeWjfgNvp3KV9damX6E4yXhLpqcj1d181YxXkKc8Z+DTY+Gq2sncFF2k14prz3//E240knZA==",
6
6
  "_location": "/@syncfusion/ej2-lists",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
9
9
  "type": "range",
10
10
  "registry": true,
11
- "raw": "@syncfusion/ej2-lists@~29.1.33",
11
+ "raw": "@syncfusion/ej2-lists@*",
12
12
  "name": "@syncfusion/ej2-lists",
13
13
  "escapedName": "@syncfusion%2fej2-lists",
14
14
  "scope": "@syncfusion",
15
- "rawSpec": "~29.1.33",
15
+ "rawSpec": "*",
16
16
  "saveSpec": null,
17
- "fetchSpec": "~29.1.33"
17
+ "fetchSpec": "*"
18
18
  },
19
19
  "_requiredBy": [
20
+ "/",
21
+ "/@syncfusion/ej2",
20
22
  "/@syncfusion/ej2-angular-lists",
21
23
  "/@syncfusion/ej2-calendars",
22
24
  "/@syncfusion/ej2-diagrams",
@@ -24,32 +26,33 @@
24
26
  "/@syncfusion/ej2-filemanager",
25
27
  "/@syncfusion/ej2-gantt",
26
28
  "/@syncfusion/ej2-grids",
29
+ "/@syncfusion/ej2-inplace-editor",
27
30
  "/@syncfusion/ej2-navigations",
31
+ "/@syncfusion/ej2-pdfviewer",
28
32
  "/@syncfusion/ej2-pivotview",
29
33
  "/@syncfusion/ej2-react-lists",
30
34
  "/@syncfusion/ej2-ribbon",
31
35
  "/@syncfusion/ej2-schedule",
32
36
  "/@syncfusion/ej2-vue-lists"
33
37
  ],
34
- "_resolved": "https://registry.npmjs.org/@syncfusion/ej2-lists/-/ej2-lists-29.1.33.tgz",
35
- "_shasum": "5aac2e3b72e13b4ade890e47f8721007c422ddb8",
36
- "_spec": "@syncfusion/ej2-lists@~29.1.33",
37
- "_where": "E:\\march2025\\memory-leaks\\node_modules\\@syncfusion\\ej2-diagrams",
38
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-29.1.33.tgz",
39
+ "_shasum": "16351a93150e8d50bea2b8f1e14d5f1545858680",
40
+ "_spec": "@syncfusion/ej2-lists@*",
41
+ "_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
38
42
  "author": {
39
43
  "name": "Syncfusion Inc."
40
44
  },
41
45
  "bundleDependencies": false,
42
46
  "dependencies": {
43
- "@syncfusion/ej2-base": "~29.1.33",
44
- "@syncfusion/ej2-buttons": "~29.1.33",
47
+ "@syncfusion/ej2-base": "~29.1.36",
48
+ "@syncfusion/ej2-buttons": "~29.1.34",
45
49
  "@syncfusion/ej2-data": "~29.1.33",
46
- "@syncfusion/ej2-popups": "~29.1.33"
50
+ "@syncfusion/ej2-popups": "~29.1.37"
47
51
  },
48
52
  "deprecated": false,
49
53
  "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.",
50
54
  "devDependencies": {},
51
55
  "es2015": "./dist/es6/ej2-lists.es5.js",
52
- "homepage": "https://www.syncfusion.com/javascript-ui-controls",
53
56
  "keywords": [
54
57
  "ej2",
55
58
  "Syncfusion",
@@ -83,7 +86,8 @@
83
86
  "type": "git",
84
87
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
85
88
  },
86
- "sideEffects": false,
87
89
  "typings": "index.d.ts",
88
- "version": "29.1.34"
89
- }
90
+ "version": "29.1.40",
91
+ "sideEffects": false,
92
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls"
93
+ }
@@ -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, EventHandler } from '@syncfusion/ej2-base';
1
+ import { Base, Event, getUniqueID, NotifyPropertyChanges, INotifyPropertyChanged, Property, detach, Browser } 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
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Base, Event, getUniqueID, NotifyPropertyChanges, Property } from '@syncfusion/ej2-base';
20
+ import { Base, Event, getUniqueID, NotifyPropertyChanges, Property, detach, Browser } from '@syncfusion/ej2-base';
21
21
  import { closest, Draggable, remove, compareElementParent } from '@syncfusion/ej2-base';
22
22
  import { addClass, isNullOrUndefined, getComponent, isBlazor, EventHandler } from '@syncfusion/ej2-base';
23
23
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -136,6 +136,11 @@ var Sortable = /** @class */ (function (_super) {
136
136
  };
137
137
  _this.onDragStart = function (e) {
138
138
  _this.target = _this.getSortableElement(e.target);
139
+ if (isNullOrUndefined(_this.target) && closest(_this.element, '.e-listbox-container') && Browser.isDevice) {
140
+ detach(e.dragElement);
141
+ getComponent(_this.element, 'draggable').intDestroy(e.event);
142
+ return;
143
+ }
139
144
  var cancelDrag = false;
140
145
  _this.target.classList.add('e-grabbed');
141
146
  _this.curTarget = _this.target;
@@ -185,7 +190,9 @@ var Sortable = /** @class */ (function (_super) {
185
190
  }
186
191
  dropInst.element.insertBefore(_this.target, dropInst.placeHolderElement);
187
192
  var curIdx_2 = _this.getIndex(_this.target, dropInst);
188
- prevIdx = _this === dropInst && (prevIdx - curIdx_2) >= 1 ? prevIdx - 1 : prevIdx;
193
+ if (observedArgs.currentIndex > observedArgs.previousIndex) {
194
+ prevIdx = _this === dropInst && (prevIdx - curIdx_2) >= 1 ? prevIdx - 1 : prevIdx;
195
+ }
189
196
  _this.trigger('drop', {
190
197
  event: e.event, element: dropInst.element, previousIndex: prevIdx, currentIndex: curIdx_2,
191
198
  target: e.target, helper: e.helper, droppedElement: _this.target, scopeName: _this.scope, handled: handled
@@ -348,6 +348,10 @@
348
348
  text-overflow: ellipsis;
349
349
  white-space: nowrap;
350
350
  }
351
+ .e-listview.e-list-template .e-list-item.e-focused .e-list-wrapper.e-list-multi-line .e-list-item-header,
352
+ .e-listview.e-list-template .e-list-item.e-focused .e-list-wrapper.e-list-multi-line .e-list-content {
353
+ color: var(--color-sf-content-text-color-selected);
354
+ }
351
355
  .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 {
352
356
  color: var(--color-sf-content-text-color-hover);
353
357
  }
@@ -348,6 +348,10 @@
348
348
  text-overflow: ellipsis;
349
349
  white-space: nowrap;
350
350
  }
351
+ .e-listview.e-list-template .e-list-item.e-focused .e-list-wrapper.e-list-multi-line .e-list-item-header,
352
+ .e-listview.e-list-template .e-list-item.e-focused .e-list-wrapper.e-list-multi-line .e-list-content {
353
+ color: var(--color-sf-content-text-color-selected);
354
+ }
351
355
  .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 {
352
356
  color: var(--color-sf-content-text-color-hover);
353
357
  }
@@ -264,7 +264,7 @@
264
264
  .e-list-item {
265
265
  &.e-focused {
266
266
  .e-list-wrapper.e-list-multi-line {
267
- @if ($skin-name == 'bootstrap5') {
267
+ @if ($skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3') {
268
268
  .e-list-item-header,
269
269
  .e-list-content {
270
270
  color: $content-text-color-selected;
@@ -348,6 +348,10 @@
348
348
  text-overflow: ellipsis;
349
349
  white-space: nowrap;
350
350
  }
351
+ .e-listview.e-list-template .e-list-item.e-focused .e-list-wrapper.e-list-multi-line .e-list-item-header,
352
+ .e-listview.e-list-template .e-list-item.e-focused .e-list-wrapper.e-list-multi-line .e-list-content {
353
+ color: var(--color-sf-content-text-color-selected);
354
+ }
351
355
  .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 {
352
356
  color: var(--color-sf-content-text-color-hover);
353
357
  }