@syncfusion/ej2-lists 22.1.34 → 22.2.8

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 : 22.1.34
3
+ * version : 22.2.8
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@18.20.0",
3
+ "_id": "@syncfusion/ej2-lists@22.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-fmxVan7lToBL0Onc2XBzwdzVO0a3wd3cqkZEhwscwuiv131OEXlsv4iMZQzPQlj/jD7G70esikYoznfrp2WAkQ==",
5
+ "_integrity": "sha512-EY9gkbpB8RtfzzfXDoXhddrZQVJK31gMBMWpJQQ7lm8FmvL61iKXVJMx1PTpy/fdFy6yoXR17JmXboz8195/PA==",
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-release/@syncfusion/ej2-lists/-/ej2-lists-18.20.0.tgz",
39
- "_shasum": "30c12aef3f623bdf3d36ce38a2b6230828fb224c",
38
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-22.2.5.tgz",
39
+ "_shasum": "f2e14eddb215a3249200dce944b1e1e2961b32a6",
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.1.34",
48
- "@syncfusion/ej2-buttons": "~22.1.34",
49
- "@syncfusion/ej2-data": "~22.1.34"
47
+ "@syncfusion/ej2-base": "~22.2.5",
48
+ "@syncfusion/ej2-buttons": "~22.2.8",
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.1.34",
89
+ "version": "22.2.8",
90
90
  "sideEffects": false,
91
91
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
92
92
  }
@@ -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;
@@ -218,7 +218,8 @@ export interface ListViewModel extends ComponentModel{
218
218
  showHeader?: boolean;
219
219
 
220
220
  /**
221
- * If `enableHtmlSanitizer` set to true, allows the cross-scripting site.
221
+ * Specifies whether HTML content should be sanitized or escaped.
222
+ * When set to `true`, any HTML content will be sanitized to remove potentially harmful elements.
222
223
  *
223
224
  * {% codeBlock src='listview/enableHtmlSanitizer/index.md' %}{% endcodeBlock %}
224
225
  *
@@ -298,7 +298,8 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
298
298
  */
299
299
  showHeader: boolean;
300
300
  /**
301
- * If `enableHtmlSanitizer` set to true, allows the cross-scripting site.
301
+ * Specifies whether HTML content should be sanitized or escaped.
302
+ * When set to `true`, any HTML content will be sanitized to remove potentially harmful elements.
302
303
  *
303
304
  * {% codeBlock src='listview/enableHtmlSanitizer/index.md' %}{% endcodeBlock %}
304
305
  *
@@ -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,
@@ -249,7 +249,7 @@ var Sortable = /** @class */ (function (_super) {
249
249
  enableTapHold: true,
250
250
  tapHoldThreshold: 200,
251
251
  queryPositionInfo: this.queryPositionInfo,
252
- distance: 5
252
+ distance: 1
253
253
  });
254
254
  this.wireEvents();
255
255
  };