@syncfusion/ej2-dropdowns 21.2.5 → 21.2.6

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 : 21.2.5
3
+ * version : 21.2.6
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@21.2.4",
3
+ "_id": "@syncfusion/ej2-dropdowns@21.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-zvVbPhcsqg1dJj+SPkpRK+CJen+KhxeHZzrxzjUrB+uM6pYBfSPNMktkhHCpA1UPzzKMBuqfbs8J0fPUa8zOmQ==",
5
+ "_integrity": "sha512-PtnODhm4SGJFF5FukEKwX8tY8qI/bpJs1B2g/MUdusMmkEV9cBSyrZEyciI4RbfgYEedhn5Qt/OnLLH+wMC9Hw==",
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-21.2.4.tgz",
38
- "_shasum": "138e0592eaa32d7c95676b807b6e028c7dbab321",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-21.2.5.tgz",
38
+ "_shasum": "95c4a1e11e3c8f5d8e7a0b2f898318195babe024",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
41
41
  "author": {
@@ -44,10 +44,10 @@
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
46
  "@syncfusion/ej2-base": "~21.2.3",
47
- "@syncfusion/ej2-data": "~21.2.4",
48
- "@syncfusion/ej2-inputs": "~21.2.4",
49
- "@syncfusion/ej2-lists": "~21.2.3",
50
- "@syncfusion/ej2-navigations": "~21.2.5",
47
+ "@syncfusion/ej2-data": "~21.2.6",
48
+ "@syncfusion/ej2-inputs": "~21.2.6",
49
+ "@syncfusion/ej2-lists": "~21.2.6",
50
+ "@syncfusion/ej2-navigations": "~21.2.6",
51
51
  "@syncfusion/ej2-popups": "~21.2.4"
52
52
  },
53
53
  "deprecated": false,
@@ -73,7 +73,7 @@
73
73
  "module": "./index.js",
74
74
  "name": "@syncfusion/ej2-dropdowns",
75
75
  "typings": "index.d.ts",
76
- "version": "21.2.5",
76
+ "version": "21.2.6",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -91,7 +91,7 @@ export function Search(inputVal, items, searchType, ignoreCase, dataSource, fiel
91
91
  dataSource.filter(function (data) {
92
92
  Array.prototype.slice.call(fieldValue_1).forEach(function (value) {
93
93
  /* eslint-disable security/detect-object-injection */
94
- if (type === 'object' && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value].toString() || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
94
+ if (type === 'object' && (!data.isHeader && checkField_1.textContent.toString().indexOf(data[value]) !== -1) && checkField_1.getAttribute('data-value') === data[fields.value].toString() || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
95
95
  filterValue = type === 'object' ? data[value] : data;
96
96
  }
97
97
  });
@@ -1136,6 +1136,7 @@ var DropDownList = /** @class */ (function (_super) {
1136
1136
  var index = this.isSelectCustom ? null : this.activeIndex;
1137
1137
  this.setProperties({ 'index': index, 'text': dataItem.text, 'value': dataItem.value }, true);
1138
1138
  this.detachChangeEvent(eve);
1139
+ this.dispatchEvent(this.hiddenElement, 'change');
1139
1140
  };
1140
1141
  DropDownList.prototype.detachChanges = function (value) {
1141
1142
  var items;
@@ -1816,7 +1817,6 @@ var DropDownList = /** @class */ (function (_super) {
1816
1817
  _this.isNotSearchList = false;
1817
1818
  _this.isDocumentClick = false;
1818
1819
  _this.destroyPopup();
1819
- EventHandler.remove(document, 'mousedown', _this.onDocumentClick);
1820
1820
  if (_this.isFiltering() && _this.actionCompleteData.list && _this.actionCompleteData.list[0]) {
1821
1821
  _this.isActive = true;
1822
1822
  _this.onActionComplete(_this.actionCompleteData.ulElement, _this.actionCompleteData.list, null, true);
@@ -1874,10 +1874,10 @@ var MultiSelect = /** @class */ (function (_super) {
1874
1874
  }
1875
1875
  };
1876
1876
  MultiSelect.prototype.removeChipFocus = function () {
1877
- var elements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP);
1878
- var closeElements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP_CLOSE.split(' ')[0]);
1877
+ var elements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP + '.' + CHIP_SELECTED);
1879
1878
  removeClass(elements, CHIP_SELECTED);
1880
1879
  if (Browser.isDevice) {
1880
+ var closeElements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP_CLOSE.split(' ')[0]);
1881
1881
  for (var index = 0; index < closeElements.length; index++) {
1882
1882
  closeElements[index].style.display = 'none';
1883
1883
  }
@@ -2386,25 +2386,30 @@ var MultiSelect = /** @class */ (function (_super) {
2386
2386
  this.hiddenElement.innerHTML = '';
2387
2387
  }
2388
2388
  if (!isNullOrUndefined(this.value)) {
2389
- for (var index = 0; !isNullOrUndefined(this.value[index]); index++) {
2390
- var listValue = this.findListElement(((!isNullOrUndefined(this.mainList)) ? this.mainList : this.ulElement), 'li', 'data-value', this.value[index]);
2389
+ var valueLength = this.value.length;
2390
+ var hiddenElementContent = '';
2391
+ for (var index = 0; index < valueLength; index++) {
2392
+ var valueItem = this.value[index];
2393
+ var listValue = this.findListElement((!isNullOrUndefined(this.mainList) ? this.mainList : this.ulElement), 'li', 'data-value', valueItem);
2391
2394
  if (isNullOrUndefined(listValue) && !this.allowCustomValue) {
2392
2395
  this.value.splice(index, 1);
2393
2396
  index -= 1;
2397
+ valueLength -= 1;
2394
2398
  }
2395
2399
  else {
2396
2400
  if (this.listData) {
2397
- temp = this.getTextByValue(this.value[index]);
2401
+ temp = this.getTextByValue(valueItem);
2398
2402
  }
2399
2403
  else {
2400
- temp = this.value[index];
2404
+ temp = valueItem;
2401
2405
  }
2402
2406
  data += temp + delimiterChar + ' ';
2403
2407
  text.push(temp);
2404
2408
  }
2405
- if (!isNullOrUndefined(this.hiddenElement)) {
2406
- this.hiddenElement.innerHTML += '<option selected value ="' + this.value[index] + '">' + index + '</option>';
2407
- }
2409
+ hiddenElementContent += "<option selected value=\"" + valueItem + "\">" + index + "</option>";
2410
+ }
2411
+ if (!isNullOrUndefined(this.hiddenElement)) {
2412
+ this.hiddenElement.innerHTML = hiddenElementContent;
2408
2413
  }
2409
2414
  }
2410
2415
  this.setProperties({ text: text.toString() }, true);
package/.eslintrc.json DELETED
@@ -1,259 +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
- "@typescript-eslint/no-inferrable-types": "off",
41
- "@typescript-eslint/ban-types": ["warn", {
42
- "types": {
43
- "Object": false,
44
- "object": false,
45
- "{}": false,
46
- "Function": false
47
- }
48
- }],
49
- "jsdoc/check-tag-names": 0,
50
- "@typescript-eslint/tslint/config": [
51
- "error",
52
- {
53
- "rules": {
54
- "ban": true,
55
- "chai-vague-errors": true,
56
- "max-func-body-length": [
57
- true,
58
- 120,
59
- {
60
- "ignore-parameters-to-function-regex": "describe"
61
- }
62
- ],
63
- "missing-jsdoc": true,
64
- "no-backbone-get-set-outside-model": false,
65
- "no-cookies": false,
66
- "no-delete-expression": false,
67
- "no-disable-auto-sanitization": true,
68
- "no-duplicate-case": true,
69
- "no-duplicate-parameter-names": true,
70
- "no-empty-interfaces": false,
71
- "no-exec-script": true,
72
- "no-function-expression": false,
73
- "no-multiple-var-decl": false,
74
- "no-string-based-set-immediate": false,
75
- "no-string-based-set-interval": false,
76
- "no-unnecessary-bind": false,
77
- "no-unused-imports": true,
78
- "no-with-statement": false,
79
- "prefer-array-literal": false,
80
- "typedef": [
81
- true,
82
- "call-signature",
83
- "parameter",
84
- "property-declaration",
85
- "variable-declaration",
86
- "arrow-parameter",
87
- "member-variable-declaration"
88
- ],
89
- "use-named-parameter": false,
90
- "valid-typeof": true,
91
- "whitespace": [
92
- true,
93
- "check-branch",
94
- "check-decl",
95
- "check-operator",
96
- "check-separator",
97
- "check-type"
98
- ]
99
- }
100
- }
101
- ],
102
- "no-control-regex": "error",
103
- "no-constant-condition": "error",
104
- "no-invalid-regexp": "error",
105
- "curly": "error",
106
- "eol-last": [
107
- "error",
108
- "always"
109
- ],
110
- "guard-for-in": "error",
111
- "no-labels": "error",
112
- "max-len": [
113
- "error",
114
- {
115
- "code": 140,
116
- "tabWidth": 4,
117
- "ignoreComments": true,
118
- "ignoreStrings": true,
119
- "ignoreTemplateLiterals": true,
120
- "ignoreRegExpLiterals": true
121
- }
122
- ],
123
- "no-console": [
124
- "error",
125
- {
126
- "allow": [
127
- "warn",
128
- "dir",
129
- "timeLog",
130
- "assert",
131
- "clear",
132
- "count",
133
- "countReset",
134
- "group",
135
- "groupEnd",
136
- "table",
137
- "dirxml",
138
- "error",
139
- "groupCollapsed",
140
- "Console",
141
- "profile",
142
- "profileEnd",
143
- "timeStamp",
144
- "context"
145
- ]
146
- }
147
- ],
148
- "no-redeclare": [
149
- "error",
150
- {
151
- "builtinGlobals": true
152
- }
153
- ],
154
- "@typescript-eslint/no-parameter-properties": "error",
155
- "@typescript-eslint/indent": [
156
- "error",
157
- 4,
158
- {
159
- "CallExpression": {
160
- "arguments": "first"
161
- },
162
- "FunctionDeclaration": {
163
- "parameters": "first"
164
- },
165
- "FunctionExpression": {
166
- "parameters": "first"
167
- }
168
- }
169
- ],
170
- "no-debugger": "error",
171
- "no-eval": "error",
172
- "no-extra-semi": "error",
173
- "no-throw-literal": "error",
174
- "no-fallthrough": "error",
175
- "comma-dangle": [
176
- "error",
177
- "never"
178
- ],
179
- "no-trailing-spaces": "error",
180
- "@typescript-eslint/no-unused-expressions": "error",
181
- "@typescript-eslint/no-var-requires": "error",
182
- "one-var": [
183
- "error",
184
- "never"
185
- ],
186
- "@typescript-eslint/no-explicit-any": "error",
187
- "no-cond-assign": [
188
- "error",
189
- "always"
190
- ],
191
- "@typescript-eslint/consistent-type-assertions": "off",
192
- "jsdoc/check-alignment": "error",
193
- "no-empty": "error",
194
- "quotes": [
195
- "error",
196
- "single"
197
- ],
198
- "semi": [
199
- "error",
200
- "always"
201
- ],
202
- "eqeqeq": [
203
- "error",
204
- "smart"
205
- ],
206
- "valid-typeof": [
207
- "error",
208
- {
209
- "requireStringLiterals": true
210
- }
211
- ],
212
- "camelcase": [
213
- "error",
214
- {
215
- "properties": "always",
216
- "ignoreDestructuring": true,
217
- "ignoreImports": true
218
- }
219
- ],
220
- "no-irregular-whitespace": [
221
- "error",
222
- {
223
- "skipStrings": true,
224
- "skipComments": true,
225
- "skipRegExps": true,
226
- "skipTemplates": true
227
- }
228
- ],
229
- "valid-jsdoc": [
230
- "error",
231
- {
232
- "prefer": {
233
- "arg": "param",
234
- "argument": "param",
235
- "class": "constructor",
236
- "return": "returns",
237
- "virtual": "abstract"
238
- }
239
- }
240
- ],
241
- "no-var": "error",
242
- "radix": "error"
243
- },
244
- "reportUnusedDisableDirectives": true,
245
- "overrides": [
246
- {
247
- "files": [
248
- "node_modules",
249
- "dist",
250
- "public",
251
- "coverage",
252
- "test-report"
253
- ],
254
- "rules": {
255
- "no-unused-expressions": "off"
256
- }
257
- }
258
- ]
259
- }
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
- }