@syncfusion/ej2-lists 28.1.37 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.1.37
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@28.1.33",
3
+ "_id": "@syncfusion/ej2-lists@28.1.37",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-jsTPB1Muo45jK17PcD4qBOhpNkmS55tD4cmLvQ7Cv2dBC2Qk4JeOnQEMksFjuLh1fC8nOsfYjy/39bHjC/Hf4A==",
5
+ "_integrity": "sha512-F3XtJcn5MPMsviyoDOPZm1tRkRfHFiXK0j5JJshg6tjULETxbsMeq6GwtZ3PO4zQYFVEPOz59VGdXTREVwOZhQ==",
6
6
  "_location": "/@syncfusion/ej2-lists",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "_requiredBy": [
20
20
  "/",
21
+ "/@syncfusion/ej2",
21
22
  "/@syncfusion/ej2-angular-lists",
22
23
  "/@syncfusion/ej2-calendars",
23
24
  "/@syncfusion/ej2-diagrams",
@@ -30,11 +31,12 @@
30
31
  "/@syncfusion/ej2-pdfviewer",
31
32
  "/@syncfusion/ej2-pivotview",
32
33
  "/@syncfusion/ej2-react-lists",
34
+ "/@syncfusion/ej2-ribbon",
33
35
  "/@syncfusion/ej2-schedule",
34
36
  "/@syncfusion/ej2-vue-lists"
35
37
  ],
36
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-28.1.33.tgz",
37
- "_shasum": "263e5544a516a40ac920e898108a993680a36fae",
38
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-28.1.37.tgz",
39
+ "_shasum": "9da744980db16cabc444ab6087cab6e128ad68be",
38
40
  "_spec": "@syncfusion/ej2-lists@*",
39
41
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
40
42
  "author": {
@@ -42,10 +44,10 @@
42
44
  },
43
45
  "bundleDependencies": false,
44
46
  "dependencies": {
45
- "@syncfusion/ej2-base": "~28.1.33",
46
- "@syncfusion/ej2-buttons": "~28.1.37",
47
- "@syncfusion/ej2-data": "~28.1.33",
48
- "@syncfusion/ej2-popups": "~28.1.33"
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"
49
51
  },
50
52
  "deprecated": false,
51
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.",
@@ -85,7 +87,7 @@
85
87
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
86
88
  },
87
89
  "typings": "index.d.ts",
88
- "version": "28.1.37",
90
+ "version": "28.2.3",
89
91
  "sideEffects": false,
90
92
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
91
93
  }
@@ -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
- // eslint-disable-next-line no-self-assign
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 = SanitizeHtmlHelper.sanitize(text);
1014
+ element.innerText = text;
1001
1015
  }
1002
1016
  else {
1003
1017
  element.innerHTML = text;