@syncfusion/ej2-dropdowns 20.4.40 → 20.4.42

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 : 20.4.40
3
+ * version : 20.4.42
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@20.4.38",
3
+ "_id": "@syncfusion/ej2-dropdowns@20.4.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rAiQm0Rcd5vCy3J2y8nEDrU0uB+utV3odQhDB2dfiSB3n9XOjhhojtBUZ9q0dv4DM9/Y5ouMdaz7H/aK299erw==",
5
+ "_integrity": "sha512-xqKXamW2NJjIi79drLYDBH8XJFR3EW6edMF0NDsisCPJ7lQyy6SUBTNDEnnoT62eOZxki7k6UYJ+KRhxOoWx1Q==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -33,8 +33,8 @@
33
33
  "/@syncfusion/ej2-spreadsheet",
34
34
  "/@syncfusion/ej2-vue-dropdowns"
35
35
  ],
36
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.4.38.tgz",
37
- "_shasum": "4be33a2afcb91461e4a7ccf53d2db9364f655411",
36
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.4.40.tgz",
37
+ "_shasum": "1ec49b9c25595387e0213eccc971de4e7d5d4042",
38
38
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
39
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
40
40
  "author": {
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "bundleDependencies": false,
44
44
  "dependencies": {
45
- "@syncfusion/ej2-base": "~20.4.40",
46
- "@syncfusion/ej2-data": "~20.4.40",
47
- "@syncfusion/ej2-inputs": "~20.4.40",
48
- "@syncfusion/ej2-lists": "~20.4.40",
49
- "@syncfusion/ej2-navigations": "~20.4.40",
50
- "@syncfusion/ej2-popups": "~20.4.40"
45
+ "@syncfusion/ej2-base": "~20.4.42",
46
+ "@syncfusion/ej2-data": "~20.4.42",
47
+ "@syncfusion/ej2-inputs": "~20.4.42",
48
+ "@syncfusion/ej2-lists": "~20.4.42",
49
+ "@syncfusion/ej2-navigations": "~20.4.42",
50
+ "@syncfusion/ej2-popups": "~20.4.42"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 DropDown Components",
@@ -72,7 +72,7 @@
72
72
  "module": "./index.js",
73
73
  "name": "@syncfusion/ej2-dropdowns",
74
74
  "typings": "index.d.ts",
75
- "version": "20.4.40",
75
+ "version": "20.4.42",
76
76
  "sideEffects": false,
77
77
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
78
78
  }
@@ -469,10 +469,10 @@ var DropDownBase = /** @class */ (function (_super) {
469
469
  _this.isDataFetched = true;
470
470
  }
471
471
  ulElement = _this.renderItems(listItems, fields);
472
+ _this.onActionComplete(ulElement, listItems, e);
472
473
  if (_this.groupTemplate) {
473
474
  _this.renderGroupTemplate(ulElement);
474
475
  }
475
- _this.onActionComplete(ulElement, listItems, e);
476
476
  _this.isRequested = false;
477
477
  _this.bindChildItems(listItems, ulElement, fields, e);
478
478
  }
@@ -617,9 +617,18 @@ var Mention = /** @class */ (function (_super) {
617
617
  var args = { cancel: false };
618
618
  this.trigger('beforeOpen', args, function (args) {
619
619
  if (!args.cancel) {
620
- var popupEle_1 = isNullOrUndefined(_this.target) ? _this.createElement('div', {
621
- id: _this.inputElement.id + '_popup', className: 'e-mention e-popup ' + (_this.cssClass != null ? _this.cssClass : '')
622
- }) : _this.element;
620
+ var popupEle_1;
621
+ if (isNullOrUndefined(_this.target)) {
622
+ popupEle_1 = _this.createElement('div', {
623
+ id: _this.inputElement.id + '_popup', className: 'e-mention e-popup ' + (_this.cssClass != null ? _this.cssClass : '')
624
+ });
625
+ }
626
+ else {
627
+ popupEle_1 = _this.element;
628
+ if (_this.cssClass != null) {
629
+ addClass([popupEle_1], _this.cssClass.split(' '));
630
+ }
631
+ }
623
632
  if (!isNullOrUndefined(_this.target)) {
624
633
  popupEle_1.id = _this.inputElement.id + '_popup';
625
634
  addClass([popupEle_1], ['e-mention', 'e-popup', 'e-popup-close']);
@@ -576,6 +576,8 @@ export declare class MultiSelect extends DropDownBase implements IInput {
576
576
  private selectAllEventEle;
577
577
  private filterParent;
578
578
  private removeIndex;
579
+ private resetMainList;
580
+ private resetFilteredData;
579
581
  private enableRTL;
580
582
  requiredModules(): ModuleDeclaration[];
581
583
  private updateHTMLAttribute;
@@ -102,6 +102,8 @@ var MultiSelect = /** @class */ (function (_super) {
102
102
  _this.isValidKey = false;
103
103
  _this.selectAllEventData = [];
104
104
  _this.selectAllEventEle = [];
105
+ _this.resetMainList = null;
106
+ _this.resetFilteredData = false;
105
107
  _this.scrollFocusStatus = false;
106
108
  _this.keyDownStatus = false;
107
109
  return _this;
@@ -848,6 +850,10 @@ var MultiSelect = /** @class */ (function (_super) {
848
850
  }
849
851
  }
850
852
  this.updateDataList();
853
+ if (this.resetMainList) {
854
+ this.mainList = this.resetMainList;
855
+ this.resetMainList = null;
856
+ }
851
857
  this.refreshListItems(null);
852
858
  if (this.mode !== 'Box' && this.mode !== 'CheckBox') {
853
859
  this.updateDelimView();
@@ -2263,6 +2269,7 @@ var MultiSelect = /** @class */ (function (_super) {
2263
2269
  };
2264
2270
  MultiSelect.prototype.search = function (e) {
2265
2271
  var _this = this;
2272
+ this.resetFilteredData = true;
2266
2273
  if (!isNullOrUndefined(e)) {
2267
2274
  this.keyCode = e.keyCode;
2268
2275
  }
@@ -3457,6 +3464,11 @@ var MultiSelect = /** @class */ (function (_super) {
3457
3464
  MultiSelect.prototype.onPropertyChanged = function (newProp, oldProp) {
3458
3465
  if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource))
3459
3466
  || newProp.query && !isNullOrUndefined(Object.keys(newProp.query))) {
3467
+ if (this.resetFilteredData) {
3468
+ // The filtered data is not being reset in the component after the user focuses out.
3469
+ this.resetMainList = !this.resetMainList ? this.mainList : this.resetMainList;
3470
+ this.resetFilteredData = false;
3471
+ }
3460
3472
  this.mainList = null;
3461
3473
  this.mainData = null;
3462
3474
  this.isFirstClick = false;
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
- }