@syncfusion/ej2-lists 28.1.33 → 28.2.3
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 +1 -1
- 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 +20 -5
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +20 -5
- 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 +9 -9
- package/src/common/list-base.js +17 -3
- package/src/sortable/sortable.js +2 -1
- package/styles/list-view/tailwind3.css +1 -1
- package/styles/tailwind3-lite.css +1 -1
- package/styles/tailwind3.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.
|
|
3
|
+
* version : 28.2.3
|
|
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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-lists@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-lists@
|
|
3
|
+
"_id": "@syncfusion/ej2-lists@28.1.37",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-F3XtJcn5MPMsviyoDOPZm1tRkRfHFiXK0j5JJshg6tjULETxbsMeq6GwtZ3PO4zQYFVEPOz59VGdXTREVwOZhQ==",
|
|
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.syncfusioninternal.com/repository/ej2-
|
|
39
|
-
"_shasum": "
|
|
38
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-28.1.37.tgz",
|
|
39
|
+
"_shasum": "9da744980db16cabc444ab6087cab6e128ad68be",
|
|
40
40
|
"_spec": "@syncfusion/ej2-lists@*",
|
|
41
41
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
42
42
|
"author": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
},
|
|
45
45
|
"bundleDependencies": false,
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@syncfusion/ej2-base": "~28.
|
|
48
|
-
"@syncfusion/ej2-buttons": "~28.
|
|
49
|
-
"@syncfusion/ej2-data": "~28.
|
|
50
|
-
"@syncfusion/ej2-popups": "~28.
|
|
47
|
+
"@syncfusion/ej2-base": "~28.2.3",
|
|
48
|
+
"@syncfusion/ej2-buttons": "~28.2.3",
|
|
49
|
+
"@syncfusion/ej2-data": "~28.2.3",
|
|
50
|
+
"@syncfusion/ej2-popups": "~28.2.3"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
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.",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
|
|
88
88
|
},
|
|
89
89
|
"typings": "index.d.ts",
|
|
90
|
-
"version": "28.
|
|
90
|
+
"version": "28.2.3",
|
|
91
91
|
"sideEffects": false,
|
|
92
92
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
93
93
|
}
|
package/src/common/list-base.js
CHANGED
|
@@ -259,6 +259,18 @@ export var ListBase;
|
|
|
259
259
|
li = generateSingleLevelLI(createElement, curItem, fieldData, fields, curOpt.itemClass, innerEle, (Object.prototype.hasOwnProperty.call(curItem, 'isHeader') &&
|
|
260
260
|
curItem.isHeader) ? true : false, id, i, options);
|
|
261
261
|
anchorElement = li.querySelector('.' + cssClass.anchorWrap);
|
|
262
|
+
if (Object.prototype.hasOwnProperty.call(fieldData, fields.tooltip)) {
|
|
263
|
+
var tooltipText = fieldData[fields.tooltip];
|
|
264
|
+
if (options && options.enableHtmlSanitizer) {
|
|
265
|
+
tooltipText = SanitizeHtmlHelper.sanitize(tooltipText);
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
var tooltipTextElement = createElement('span', { innerHTML: tooltipText });
|
|
269
|
+
tooltipText = tooltipTextElement.innerText;
|
|
270
|
+
tooltipTextElement = null;
|
|
271
|
+
}
|
|
272
|
+
li.setAttribute('title', tooltipText);
|
|
273
|
+
}
|
|
262
274
|
if (curOpt.itemNavigable && checkboxElement.length) {
|
|
263
275
|
prepend(checkboxElement, li.firstElementChild);
|
|
264
276
|
}
|
|
@@ -826,6 +838,9 @@ export var ListBase;
|
|
|
826
838
|
if (dataSource && Object.prototype.hasOwnProperty.call(fieldData, fields.enabled) && fieldData[fields.enabled].toString() === 'false') {
|
|
827
839
|
li.classList.add(cssClass.disabled);
|
|
828
840
|
}
|
|
841
|
+
if (options && options.enableHtmlSanitizer) {
|
|
842
|
+
text = SanitizeHtmlHelper.sanitize(text);
|
|
843
|
+
}
|
|
829
844
|
if (grpLI) {
|
|
830
845
|
li.innerText = text;
|
|
831
846
|
}
|
|
@@ -944,8 +959,7 @@ export var ListBase;
|
|
|
944
959
|
? true : false;
|
|
945
960
|
}
|
|
946
961
|
if (options && options.enableHtmlSanitizer) {
|
|
947
|
-
|
|
948
|
-
text = text;
|
|
962
|
+
text = SanitizeHtmlHelper.sanitize(text);
|
|
949
963
|
}
|
|
950
964
|
var li = createElement('li', {
|
|
951
965
|
className: (grpLI === true ? cssClass.group : cssClass.li) + ' ' + (isNullOrUndefined(className) ? '' : className),
|
|
@@ -997,7 +1011,7 @@ export var ListBase;
|
|
|
997
1011
|
attrs: (ariaAttributes.itemText !== '' ? { role: ariaAttributes.itemText } : {})
|
|
998
1012
|
});
|
|
999
1013
|
if (options && options.enableHtmlSanitizer) {
|
|
1000
|
-
element.innerText =
|
|
1014
|
+
element.innerText = text;
|
|
1001
1015
|
}
|
|
1002
1016
|
else {
|
|
1003
1017
|
element.innerHTML = text;
|
package/src/sortable/sortable.js
CHANGED
|
@@ -169,6 +169,7 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
169
169
|
var isPlaceHolderPresent = _this.isPlaceHolderPresent(dropInst);
|
|
170
170
|
if (isPlaceHolderPresent) {
|
|
171
171
|
var curIdx_1 = _this.getIndex(dropInst.placeHolderElement, dropInst);
|
|
172
|
+
prevIdx = _this === dropInst && (prevIdx - curIdx_1) >= 1 ? prevIdx - 1 : prevIdx;
|
|
172
173
|
var args = {
|
|
173
174
|
previousIndex: prevIdx, currentIndex: curIdx_1, target: e.target, droppedElement: _this.target,
|
|
174
175
|
helper: e.helper, cancel: false, handled: false
|
|
@@ -184,7 +185,7 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
184
185
|
}
|
|
185
186
|
dropInst.element.insertBefore(_this.target, dropInst.placeHolderElement);
|
|
186
187
|
var curIdx_2 = _this.getIndex(_this.target, dropInst);
|
|
187
|
-
prevIdx = _this === dropInst && (prevIdx - curIdx_2)
|
|
188
|
+
prevIdx = _this === dropInst && (prevIdx - curIdx_2) >= 1 ? prevIdx - 1 : prevIdx;
|
|
188
189
|
_this.trigger('drop', {
|
|
189
190
|
event: e.event, element: dropInst.element, previousIndex: prevIdx, currentIndex: curIdx_2,
|
|
190
191
|
target: e.target, helper: e.helper, droppedElement: _this.target, scopeName: _this.scope, handled: handled
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
|
|
217
217
|
.e-listview {
|
|
218
218
|
border-color: var(--color-sf-border-light);
|
|
219
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
219
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
220
220
|
font-size: 14px;
|
|
221
221
|
}
|
|
222
222
|
.e-listview .e-list-header {
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
|
|
217
217
|
.e-listview {
|
|
218
218
|
border-color: var(--color-sf-border-light);
|
|
219
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
219
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
220
220
|
font-size: 14px;
|
|
221
221
|
}
|
|
222
222
|
.e-listview .e-list-header {
|
package/styles/tailwind3.css
CHANGED
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
|
|
217
217
|
.e-listview {
|
|
218
218
|
border-color: var(--color-sf-border-light);
|
|
219
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
219
|
+
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", arial, "Noto Sans", "Liberation Sans", sans-serif, "apple color emoji", "Segoe UI emoji", "Segoe UI Symbol", "Noto color emoji";
|
|
220
220
|
font-size: 14px;
|
|
221
221
|
}
|
|
222
222
|
.e-listview .e-list-header {
|