@syncfusion/ej2-lists 22.1.34 → 22.2.5
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 +2 -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 +7 -3
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +7 -3
- 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 +8 -8
- package/src/common/list-base.js +2 -2
- package/src/list-view/list-view.js +6 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.
|
|
3
|
+
* version : 22.2.5
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-lists@22.1.34",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-AIpJMxkpUZeFYDT65ZHTQ9+PaWIg970t9A9JOygOoXeDsbwhNzH7c3HeOaFdjGVD5foEuMyVO9M+VvNFM3YU8w==",
|
|
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-
|
|
39
|
-
"_shasum": "
|
|
38
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-22.1.34.tgz",
|
|
39
|
+
"_shasum": "9afa030def055393eed53b1d93d2f34181a8af3e",
|
|
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": "~22.
|
|
48
|
-
"@syncfusion/ej2-buttons": "~22.
|
|
49
|
-
"@syncfusion/ej2-data": "~22.
|
|
47
|
+
"@syncfusion/ej2-base": "~22.2.5",
|
|
48
|
+
"@syncfusion/ej2-buttons": "~22.2.5",
|
|
49
|
+
"@syncfusion/ej2-data": "~22.2.5"
|
|
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": "22.
|
|
89
|
+
"version": "22.2.5",
|
|
90
90
|
"sideEffects": false,
|
|
91
91
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
92
92
|
}
|
package/src/common/list-base.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-inner-declarations */
|
|
2
|
-
import { extend, merge, isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
2
|
+
import { extend, merge, isNullOrUndefined, getValue, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
|
|
3
3
|
import { attributes, prepend, isVisible, append, addClass } from '@syncfusion/ej2-base';
|
|
4
4
|
import { compile } from '@syncfusion/ej2-base';
|
|
5
5
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
@@ -932,7 +932,7 @@ export var ListBase;
|
|
|
932
932
|
attrs: (ariaAttributes.itemText !== '' ? { role: ariaAttributes.itemText } : {})
|
|
933
933
|
});
|
|
934
934
|
if (options && options.enableHtmlSanitizer) {
|
|
935
|
-
element.innerText = text;
|
|
935
|
+
element.innerText = SanitizeHtmlHelper.sanitize(text);
|
|
936
936
|
}
|
|
937
937
|
else {
|
|
938
938
|
element.innerHTML = text;
|
|
@@ -297,11 +297,15 @@ var ListView = /** @class */ (function (_super) {
|
|
|
297
297
|
// Support Component Functions
|
|
298
298
|
ListView.prototype.header = function (text, showBack, prop) {
|
|
299
299
|
if (this.headerEle === undefined && this.showHeader) {
|
|
300
|
+
this.headerEle = this.createElement('div', { className: classNames.header });
|
|
301
|
+
var innerHeaderEle = this.createElement('span', { className: classNames.headerText });
|
|
300
302
|
if (this.enableHtmlSanitizer) {
|
|
301
303
|
this.setProperties({ headerTitle: SanitizeHtmlHelper.sanitize(this.headerTitle) }, true);
|
|
304
|
+
innerHeaderEle.innerText = this.headerTitle;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
innerHeaderEle.innerHTML = this.headerTitle;
|
|
302
308
|
}
|
|
303
|
-
this.headerEle = this.createElement('div', { className: classNames.header });
|
|
304
|
-
var innerHeaderEle = this.createElement('span', { className: classNames.headerText, innerHTML: this.headerTitle });
|
|
305
309
|
var textEle = this.createElement('div', { className: classNames.text, innerHTML: innerHeaderEle.outerHTML });
|
|
306
310
|
var hedBackButton = this.createElement('div', {
|
|
307
311
|
className: classNames.icon + ' ' + classNames.backIcon + ' ' + classNames.backButton,
|