@syncfusion/ej2-dropdowns 22.2.11 → 22.2.12

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.2.11
3
+ * version : 22.2.12
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-dropdowns@*",
3
- "_id": "@syncfusion/ej2-dropdowns@22.2.10",
3
+ "_id": "@syncfusion/ej2-dropdowns@22.2.11",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-eTNpfEBL6fCTWplXqZfTQ9u/8dmXmBJQcEAI3ShiCsVRQlsNaFpEfMQELnesXmfMGOExiILhvrrgXxwJ7wsR+w==",
5
+ "_integrity": "sha512-0uDWxObrmZmdmhhD9HS36g6At/QnyhJhseMU4t5vZqPL0VHeiLK0nzSNPwdxcpGOiKEHSF/k6w73GEZfaL2tGg==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -34,8 +34,8 @@
34
34
  "/@syncfusion/ej2-spreadsheet",
35
35
  "/@syncfusion/ej2-vue-dropdowns"
36
36
  ],
37
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.2.10.tgz",
38
- "_shasum": "8817db861d5419b27c75ae15d742a427ef8f2ed2",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.2.11.tgz",
38
+ "_shasum": "9843c2657a90cd9330be849938c3fd659fed5562",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
41
41
  "author": {
@@ -43,9 +43,9 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~22.2.10",
46
+ "@syncfusion/ej2-base": "~22.2.12",
47
47
  "@syncfusion/ej2-data": "~22.2.5",
48
- "@syncfusion/ej2-inputs": "~22.2.9",
48
+ "@syncfusion/ej2-inputs": "~22.2.12",
49
49
  "@syncfusion/ej2-lists": "~22.2.11",
50
50
  "@syncfusion/ej2-navigations": "~22.2.11",
51
51
  "@syncfusion/ej2-popups": "~22.2.11"
@@ -73,7 +73,7 @@
73
73
  "module": "./index.js",
74
74
  "name": "@syncfusion/ej2-dropdowns",
75
75
  "typings": "index.d.ts",
76
- "version": "22.2.11",
76
+ "version": "22.2.12",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -2604,8 +2604,6 @@ var DropDownTree = /** @class */ (function (_super) {
2604
2604
  if (tempArr) {
2605
2605
  tempArr = Array.prototype.slice.call(tempArr);
2606
2606
  append(tempArr, this.noRecord);
2607
- addClass([this.noRecord], NODATACONTAINER);
2608
- prepend([this.noRecord], this.popupDiv);
2609
2607
  }
2610
2608
  }
2611
2609
  else {
@@ -2614,9 +2612,9 @@ var DropDownTree = /** @class */ (function (_super) {
2614
2612
  this.l10n = new L10n(this.getLocaleName(), l10nLocale, this.locale);
2615
2613
  this.noRecord.innerHTML = actionFailure ?
2616
2614
  this.l10n.getConstant('actionFailureTemplate') : this.l10n.getConstant('noRecordsTemplate');
2617
- addClass([this.noRecord], NODATACONTAINER);
2618
- prepend([this.noRecord], this.popupDiv);
2619
2615
  }
2616
+ addClass([this.noRecord], NODATACONTAINER);
2617
+ prepend([this.noRecord], this.popupDiv);
2620
2618
  };
2621
2619
  DropDownTree.prototype.updateRecordTemplate = function (action) {
2622
2620
  if (this.treeItems && this.treeItems.length <= 0) {
@@ -699,6 +699,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
699
699
  private removeChipFocus;
700
700
  private onMobileChipInteraction;
701
701
  private multiCompiler;
702
+ private encodeHtmlEntities;
702
703
  private getChip;
703
704
  private calcPopupWidth;
704
705
  private mouseIn;
@@ -23,7 +23,7 @@ import { DropDownBase, dropDownBaseClasses } from '../drop-down-base/drop-down-b
23
23
  import { FieldSettings } from '../drop-down-base/drop-down-base';
24
24
  import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
25
25
  import { Input } from '@syncfusion/ej2-inputs';
26
- import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';
26
+ import { attributes, setValue, getValue } from '@syncfusion/ej2-base';
27
27
  import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';
28
28
  import { EventHandler, Property, Event, compile, L10n } from '@syncfusion/ej2-base';
29
29
  import { Animation, Browser, prepend, Complex } from '@syncfusion/ej2-base';
@@ -1956,6 +1956,11 @@ var MultiSelect = /** @class */ (function (_super) {
1956
1956
  }
1957
1957
  return checkTemplate;
1958
1958
  };
1959
+ MultiSelect.prototype.encodeHtmlEntities = function (input) {
1960
+ return input.replace(/[\u00A0-\u9999<>&]/g, function (match) {
1961
+ return "&#" + match.charCodeAt(0) + ";";
1962
+ });
1963
+ };
1959
1964
  MultiSelect.prototype.getChip = function (data, value, e) {
1960
1965
  var _this = this;
1961
1966
  var itemData = { text: value, value: value };
@@ -1988,7 +1993,7 @@ var MultiSelect = /** @class */ (function (_super) {
1988
1993
  chipContent.innerText = data;
1989
1994
  }
1990
1995
  else {
1991
- chipContent.innerHTML = data;
1996
+ chipContent.innerHTML = this.encodeHtmlEntities(data);
1992
1997
  }
1993
1998
  chip.appendChild(chipContent);
1994
1999
  var eventArgs = {
@@ -3030,10 +3035,10 @@ var MultiSelect = /** @class */ (function (_super) {
3030
3035
  };
3031
3036
  MultiSelect.prototype.updateWrapperText = function (wrapperType, wrapperData) {
3032
3037
  if (this.valueTemplate || !this.enableHtmlSanitizer) {
3033
- wrapperType.innerHTML = wrapperData;
3038
+ wrapperType.innerHTML = this.encodeHtmlEntities(wrapperData);
3034
3039
  }
3035
3040
  else {
3036
- wrapperType.innerText = SanitizeHtmlHelper.sanitize(wrapperData);
3041
+ wrapperType.innerText = wrapperData;
3037
3042
  }
3038
3043
  };
3039
3044
  MultiSelect.prototype.updateDelimView = function () {
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  .e-ddl.e-control-wrapper .e-ddl-icon::before {
3
3
  transform: rotate(0deg);
4
4
  transition: transform 300ms ease;
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  .e-ddl.e-control-wrapper .e-ddl-icon::before {
3
3
  transform: rotate(0deg);
4
4
  transition: transform 300ms ease;
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  .e-dropdownbase .e-list-item .e-list-icon {
3
3
  padding: 0 16px 0 0;
4
4
  }
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /* stylelint-disable property-no-vendor-prefix */
3
3
  @keyframes e-input-ripple {
4
4
  100% {
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /* stylelint-disable property-no-vendor-prefix */
3
3
  @keyframes e-input-ripple {
4
4
  100% {
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  .e-dropdownbase .e-list-item .e-list-icon {
3
3
  padding: 0 16px 0 0;
4
4
  }
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  .e-dropdownbase .e-list-item .e-list-icon {
3
3
  padding: 0 16px 0 0;
4
4
  }
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /* stylelint-disable property-no-vendor-prefix */
3
3
  @keyframes material-spinner-rotate {
4
4
  0% {
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  /* stylelint-disable property-no-vendor-prefix */
3
3
  @keyframes e-input-ripple {
4
4
  100% {
package/.eslintrc.json DELETED
@@ -1,260 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:@typescript-eslint/recommended",
9
- "plugin:jsdoc/recommended",
10
- "plugin:security/recommended"
11
- ],
12
- "parser": "@typescript-eslint/parser",
13
- "parserOptions": {
14
- "ecmaFeatures": { "js": true },
15
- "ecmaVersion": 2018,
16
- "project": "./tsconfig.json",
17
- "sourceType": "module"
18
- },
19
- "plugins": [
20
- "@typescript-eslint",
21
- "@typescript-eslint/tslint",
22
- "eslint-plugin-security",
23
- "jsdoc"
24
- ],
25
- "rules": {
26
- "use-isnan": "error",
27
- "security/detect-unsafe-regex":"error",
28
- "security/detect-buffer-noassert":"error",
29
- "security/detect-child-process":"error",
30
- "security/detect-disable-mustache-escape":"error",
31
- "security/detect-eval-with-expression":"error",
32
- "security/detect-no-csrf-before-method-override":"error",
33
- "security/detect-non-literal-fs-filename":"error",
34
- "security/detect-non-literal-regexp":"error",
35
- "security/detect-non-literal-require":"error",
36
- "security/detect-object-injection":"error",
37
- "security/detect-possible-timing-attacks":"error",
38
- "security/detect-pseudoRandomBytes":"error",
39
- "security/detect-new-buffer":"error",
40
- "security/detect-bidi-characters":"error",
41
- "@typescript-eslint/no-inferrable-types": "off",
42
- "@typescript-eslint/ban-types": ["warn", {
43
- "types": {
44
- "Object": false,
45
- "object": false,
46
- "{}": false,
47
- "Function": false
48
- }
49
- }],
50
- "jsdoc/check-tag-names": 0,
51
- "@typescript-eslint/tslint/config": [
52
- "error",
53
- {
54
- "rules": {
55
- "ban": true,
56
- "chai-vague-errors": true,
57
- "max-func-body-length": [
58
- true,
59
- 120,
60
- {
61
- "ignore-parameters-to-function-regex": "describe"
62
- }
63
- ],
64
- "missing-jsdoc": true,
65
- "no-backbone-get-set-outside-model": false,
66
- "no-cookies": false,
67
- "no-delete-expression": false,
68
- "no-disable-auto-sanitization": true,
69
- "no-duplicate-case": true,
70
- "no-duplicate-parameter-names": true,
71
- "no-empty-interfaces": false,
72
- "no-exec-script": true,
73
- "no-function-expression": false,
74
- "no-multiple-var-decl": false,
75
- "no-string-based-set-immediate": false,
76
- "no-string-based-set-interval": false,
77
- "no-unnecessary-bind": false,
78
- "no-unused-imports": true,
79
- "no-with-statement": false,
80
- "prefer-array-literal": false,
81
- "typedef": [
82
- true,
83
- "call-signature",
84
- "parameter",
85
- "property-declaration",
86
- "variable-declaration",
87
- "arrow-parameter",
88
- "member-variable-declaration"
89
- ],
90
- "use-named-parameter": false,
91
- "valid-typeof": true,
92
- "whitespace": [
93
- true,
94
- "check-branch",
95
- "check-decl",
96
- "check-operator",
97
- "check-separator",
98
- "check-type"
99
- ]
100
- }
101
- }
102
- ],
103
- "no-control-regex": "error",
104
- "no-constant-condition": "error",
105
- "no-invalid-regexp": "error",
106
- "curly": "error",
107
- "eol-last": [
108
- "error",
109
- "always"
110
- ],
111
- "guard-for-in": "error",
112
- "no-labels": "error",
113
- "max-len": [
114
- "error",
115
- {
116
- "code": 140,
117
- "tabWidth": 4,
118
- "ignoreComments": true,
119
- "ignoreStrings": true,
120
- "ignoreTemplateLiterals": true,
121
- "ignoreRegExpLiterals": true
122
- }
123
- ],
124
- "no-console": [
125
- "error",
126
- {
127
- "allow": [
128
- "warn",
129
- "dir",
130
- "timeLog",
131
- "assert",
132
- "clear",
133
- "count",
134
- "countReset",
135
- "group",
136
- "groupEnd",
137
- "table",
138
- "dirxml",
139
- "error",
140
- "groupCollapsed",
141
- "Console",
142
- "profile",
143
- "profileEnd",
144
- "timeStamp",
145
- "context"
146
- ]
147
- }
148
- ],
149
- "no-redeclare": [
150
- "error",
151
- {
152
- "builtinGlobals": true
153
- }
154
- ],
155
- "@typescript-eslint/no-parameter-properties": "error",
156
- "@typescript-eslint/indent": [
157
- "error",
158
- 4,
159
- {
160
- "CallExpression": {
161
- "arguments": "first"
162
- },
163
- "FunctionDeclaration": {
164
- "parameters": "first"
165
- },
166
- "FunctionExpression": {
167
- "parameters": "first"
168
- }
169
- }
170
- ],
171
- "no-debugger": "error",
172
- "no-eval": "error",
173
- "no-extra-semi": "error",
174
- "no-throw-literal": "error",
175
- "no-fallthrough": "error",
176
- "comma-dangle": [
177
- "error",
178
- "never"
179
- ],
180
- "no-trailing-spaces": "error",
181
- "@typescript-eslint/no-unused-expressions": "error",
182
- "@typescript-eslint/no-var-requires": "error",
183
- "one-var": [
184
- "error",
185
- "never"
186
- ],
187
- "@typescript-eslint/no-explicit-any": "error",
188
- "no-cond-assign": [
189
- "error",
190
- "always"
191
- ],
192
- "@typescript-eslint/consistent-type-assertions": "off",
193
- "jsdoc/check-alignment": "error",
194
- "no-empty": "error",
195
- "quotes": [
196
- "error",
197
- "single"
198
- ],
199
- "semi": [
200
- "error",
201
- "always"
202
- ],
203
- "eqeqeq": [
204
- "error",
205
- "smart"
206
- ],
207
- "valid-typeof": [
208
- "error",
209
- {
210
- "requireStringLiterals": true
211
- }
212
- ],
213
- "camelcase": [
214
- "error",
215
- {
216
- "properties": "always",
217
- "ignoreDestructuring": true,
218
- "ignoreImports": true
219
- }
220
- ],
221
- "no-irregular-whitespace": [
222
- "error",
223
- {
224
- "skipStrings": true,
225
- "skipComments": true,
226
- "skipRegExps": true,
227
- "skipTemplates": true
228
- }
229
- ],
230
- "valid-jsdoc": [
231
- "error",
232
- {
233
- "prefer": {
234
- "arg": "param",
235
- "argument": "param",
236
- "class": "constructor",
237
- "return": "returns",
238
- "virtual": "abstract"
239
- }
240
- }
241
- ],
242
- "no-var": "error",
243
- "radix": "error"
244
- },
245
- "reportUnusedDisableDirectives": true,
246
- "overrides": [
247
- {
248
- "files": [
249
- "node_modules",
250
- "dist",
251
- "public",
252
- "coverage",
253
- "test-report"
254
- ],
255
- "rules": {
256
- "no-unused-expressions": "off"
257
- }
258
- }
259
- ]
260
- }
package/tslint.json DELETED
@@ -1,111 +0,0 @@
1
- {
2
- "rules": {
3
- "chai-vague-errors": true,
4
- "use-isnan": true,
5
- "missing-jsdoc": true,
6
- "missing-optional-annotation": true,
7
- "no-backbone-get-set-outside-model": true,
8
- "no-banned-terms": true,
9
- "no-constant-condition": true,
10
- "no-control-regex": true,
11
- "no-cookies": true,
12
- "no-delete-expression": true,
13
- "no-document-write": true,
14
- "no-document-domain": true,
15
- "no-disable-auto-sanitization": true,
16
- "no-duplicate-case": true,
17
- "no-duplicate-parameter-names": true,
18
- "no-empty-interfaces": true,
19
- "no-exec-script": true,
20
- "no-function-constructor-with-string-args": true,
21
- "no-function-expression": true,
22
- "no-invalid-regexp": true,
23
- "no-for-in": true,
24
- "member-access": true,
25
- "no-multiline-string": true,
26
- "no-multiple-var-decl": true,
27
- "no-unnecessary-bind": true,
28
- "no-unnecessary-semicolons": true,
29
- "no-octal-literal": true,
30
- "no-regex-spaces": true,
31
- "no-sparse-arrays": true,
32
- "no-string-based-set-immediate": true,
33
- "no-string-based-set-interval": true,
34
- "no-unused-imports": true,
35
- "no-with-statement": true,
36
- "prefer-array-literal": true,
37
- "promise-must-complete": false,
38
- "react-no-dangerous-html": true,
39
- "use-named-parameter": true,
40
- "valid-typeof": true,
41
- "max-func-body-length": [true, 100, {
42
- "ignore-parameters-to-function-regex": "describe"
43
- }],
44
- "class-name": true,
45
- "curly": true,
46
- "eofline": false,
47
- "forin": true,
48
- "indent": [
49
- true,
50
- "spaces"
51
- ],
52
- "label-position": true,
53
- "max-line-length": [true, 140],
54
- "no-arg": true,
55
- "no-console": [true,
56
- "debug",
57
- "info",
58
- "log",
59
- "time",
60
- "timeEnd",
61
- "trace"
62
- ],
63
- "no-construct": true,
64
- "no-parameter-properties": true,
65
- "no-debugger": true,
66
- "no-duplicate-variable": true,
67
- "no-empty": true,
68
- "no-eval": true,
69
- "no-string-literal": true,
70
- "no-switch-case-fall-through": true,
71
- "trailing-comma": true,
72
- "no-trailing-whitespace": true,
73
- "no-unused-expression": true,
74
- "no-use-before-declare": false,
75
- "no-var-requires": true,
76
- "one-line": [true,
77
- "check-open-brace",
78
- "check-catch",
79
- "check-else",
80
- "check-whitespace"
81
- ],
82
- "no-any": true,
83
- "no-conditional-assignment": true,
84
- "no-angle-bracket-type-assertion": false,
85
- "align": [true, "parameters", "arguments", "statements"],
86
- "no-empty-line-after-opening-brace": false,
87
- "typedef-whitespace": [false],
88
- "ban": true,
89
- "quotemark": [true, "single"],
90
- "semicolon": true,
91
- "triple-equals": [true, "allow-null-check"],
92
- "typedef": [true,
93
- "call-signature",
94
- "parameter",
95
- "property-declaration",
96
- "variable-declaration",
97
- "arrow-parameter",
98
- "member-variable-declaration"],
99
- "variable-name": true,
100
- "whitespace": [true,
101
- "check-branch",
102
- "check-decl",
103
- "check-operator",
104
- "check-separator",
105
- "check-type"
106
- ],
107
- "jsdoc-format": true,
108
- "no-var-keyword": true,
109
- "radix": true
110
- }
111
- }