@syncfusion/ej2-dropdowns 20.2.40 → 20.2.43

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.2.40
3
+ * version : 20.2.43
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.2.39",
3
+ "_id": "@syncfusion/ej2-dropdowns@20.2.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-PoCt2o2HN19B0msREq8czIzWbMVqo8swH4cqk4Vc54NQcYMuiIzYum8cZwzY20GOQvx8oR6ObeGXcp/rmAObuA==",
5
+ "_integrity": "sha512-o96V/X8YkTkRYueJIqf1gEnZvYhV49BOpHMCUlJhsJ0TnLVFQ64L/1t56deuId3cCKMQR4+O5gE666IWbGkc/A==",
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.2.39.tgz",
37
- "_shasum": "6cde197c74db9e63e4af98dbd2ca48359b3ada05",
36
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.2.40.tgz",
37
+ "_shasum": "3aa3da1c5dfa9c4d69ccf17ab3ef82d0adc3a673",
38
38
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
39
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
40
40
  "author": {
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "bundleDependencies": false,
44
44
  "dependencies": {
45
- "@syncfusion/ej2-base": "~20.2.39",
46
- "@syncfusion/ej2-data": "~20.2.38",
47
- "@syncfusion/ej2-inputs": "~20.2.38",
48
- "@syncfusion/ej2-lists": "~20.2.39",
49
- "@syncfusion/ej2-navigations": "~20.2.39",
50
- "@syncfusion/ej2-popups": "~20.2.40"
45
+ "@syncfusion/ej2-base": "~20.2.43",
46
+ "@syncfusion/ej2-data": "~20.2.43",
47
+ "@syncfusion/ej2-inputs": "~20.2.43",
48
+ "@syncfusion/ej2-lists": "~20.2.43",
49
+ "@syncfusion/ej2-navigations": "~20.2.43",
50
+ "@syncfusion/ej2-popups": "~20.2.43"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 DropDown Components",
@@ -72,6 +72,6 @@
72
72
  "module": "./index.js",
73
73
  "name": "@syncfusion/ej2-dropdowns",
74
74
  "typings": "index.d.ts",
75
- "version": "20.2.40",
75
+ "version": "20.2.43",
76
76
  "sideEffects": false
77
77
  }
@@ -320,7 +320,7 @@ export declare class ListBox extends DropDownBase {
320
320
  private initDraggable;
321
321
  protected updateActionCompleteData(li: HTMLElement, item: {
322
322
  [key: string]: Object;
323
- }): void;
323
+ }, index: number): void;
324
324
  private initToolbar;
325
325
  private createButtons;
326
326
  protected validationAttribute(input: HTMLInputElement, hiddenSelect: HTMLSelectElement): void;
@@ -210,8 +210,8 @@ var ListBox = /** @class */ (function (_super) {
210
210
  });
211
211
  }
212
212
  };
213
- ListBox.prototype.updateActionCompleteData = function (li, item) {
214
- this.jsonData.push(item);
213
+ ListBox.prototype.updateActionCompleteData = function (li, item, index) {
214
+ this.jsonData.splice(index, 0, item);
215
215
  };
216
216
  ListBox.prototype.initToolbar = function () {
217
217
  var pos = this.toolbarSettings.position;
@@ -756,7 +756,7 @@ var ListBox = /** @class */ (function (_super) {
756
756
  var objValue = void 0;
757
757
  var dupData = [];
758
758
  var itemIdx = void 0;
759
- extend(dupData, [], this.listData);
759
+ extend(dupData, [], this.jsonData);
760
760
  var removeIdxes = [];
761
761
  var removeLiIdxes = [];
762
762
  for (var j = 0; j < items.length; j++) {
@@ -1543,9 +1543,8 @@ var ListBox = /** @class */ (function (_super) {
1543
1543
  fListBox.value = [];
1544
1544
  listData = listData
1545
1545
  .filter(function (data) { return data.isHeader !== true; });
1546
- tListBox.listData = listData;
1547
- tListBox.jsonData = jsonData;
1548
- if (this.listData.length == this.jsonData.length) {
1546
+ tListBox.listData = tListBox.jsonData = listData;
1547
+ if (fListBox.listData.length == fListBox.jsonData.length) {
1549
1548
  fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
1550
1549
  }
1551
1550
  else if (this.allowFiltering) {
package/.eslintrc.json DELETED
@@ -1,244 +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
- ],
11
- "parser": "@typescript-eslint/parser",
12
- "parserOptions": {
13
- "ecmaFeatures": { "js": true },
14
- "ecmaVersion": 2018,
15
- "project": "./tsconfig.json",
16
- "sourceType": "module"
17
- },
18
- "plugins": [
19
- "@typescript-eslint",
20
- "@typescript-eslint/tslint",
21
- "jsdoc"
22
- ],
23
- "rules": {
24
- "use-isnan": "error",
25
- "@typescript-eslint/no-inferrable-types": "off",
26
- "@typescript-eslint/ban-types": ["warn", {
27
- "types": {
28
- "Object": false,
29
- "object": false,
30
- "{}": false,
31
- "Function": false
32
- }
33
- }],
34
- "jsdoc/check-tag-names": 0,
35
- "@typescript-eslint/tslint/config": [
36
- "error",
37
- {
38
- "rules": {
39
- "ban": true,
40
- "chai-vague-errors": true,
41
- "max-func-body-length": [
42
- true,
43
- 120,
44
- {
45
- "ignore-parameters-to-function-regex": "describe"
46
- }
47
- ],
48
- "missing-jsdoc": true,
49
- "no-backbone-get-set-outside-model": false,
50
- "no-cookies": false,
51
- "no-delete-expression": false,
52
- "no-disable-auto-sanitization": true,
53
- "no-duplicate-case": true,
54
- "no-duplicate-parameter-names": true,
55
- "no-empty-interfaces": false,
56
- "no-exec-script": true,
57
- "no-function-expression": false,
58
- "no-multiple-var-decl": false,
59
- "no-string-based-set-immediate": false,
60
- "no-string-based-set-interval": false,
61
- "no-unnecessary-bind": false,
62
- "no-unused-imports": true,
63
- "no-with-statement": false,
64
- "prefer-array-literal": false,
65
- "typedef": [
66
- true,
67
- "call-signature",
68
- "parameter",
69
- "property-declaration",
70
- "variable-declaration",
71
- "arrow-parameter",
72
- "member-variable-declaration"
73
- ],
74
- "use-named-parameter": false,
75
- "valid-typeof": true,
76
- "whitespace": [
77
- true,
78
- "check-branch",
79
- "check-decl",
80
- "check-operator",
81
- "check-separator",
82
- "check-type"
83
- ]
84
- }
85
- }
86
- ],
87
- "no-control-regex": "error",
88
- "no-constant-condition": "error",
89
- "no-invalid-regexp": "error",
90
- "curly": "error",
91
- "eol-last": [
92
- "error",
93
- "always"
94
- ],
95
- "guard-for-in": "error",
96
- "no-labels": "error",
97
- "max-len": [
98
- "error",
99
- {
100
- "code": 140,
101
- "tabWidth": 4,
102
- "ignoreComments": true,
103
- "ignoreStrings": true,
104
- "ignoreTemplateLiterals": true,
105
- "ignoreRegExpLiterals": true
106
- }
107
- ],
108
- "no-console": [
109
- "error",
110
- {
111
- "allow": [
112
- "warn",
113
- "dir",
114
- "timeLog",
115
- "assert",
116
- "clear",
117
- "count",
118
- "countReset",
119
- "group",
120
- "groupEnd",
121
- "table",
122
- "dirxml",
123
- "error",
124
- "groupCollapsed",
125
- "Console",
126
- "profile",
127
- "profileEnd",
128
- "timeStamp",
129
- "context"
130
- ]
131
- }
132
- ],
133
- "no-redeclare": [
134
- "error",
135
- {
136
- "builtinGlobals": true
137
- }
138
- ],
139
- "@typescript-eslint/no-parameter-properties": "error",
140
- "@typescript-eslint/indent": [
141
- "error",
142
- 4,
143
- {
144
- "CallExpression": {
145
- "arguments": "first"
146
- },
147
- "FunctionDeclaration": {
148
- "parameters": "first"
149
- },
150
- "FunctionExpression": {
151
- "parameters": "first"
152
- }
153
- }
154
- ],
155
- "no-debugger": "error",
156
- "no-eval": "error",
157
- "no-extra-semi": "error",
158
- "no-throw-literal": "error",
159
- "no-fallthrough": "error",
160
- "comma-dangle": [
161
- "error",
162
- "never"
163
- ],
164
- "no-trailing-spaces": "error",
165
- "@typescript-eslint/no-unused-expressions": "error",
166
- "@typescript-eslint/no-var-requires": "error",
167
- "one-var": [
168
- "error",
169
- "never"
170
- ],
171
- "@typescript-eslint/no-explicit-any": "error",
172
- "no-cond-assign": [
173
- "error",
174
- "always"
175
- ],
176
- "@typescript-eslint/consistent-type-assertions": "off",
177
- "jsdoc/check-alignment": "error",
178
- "no-empty": "error",
179
- "quotes": [
180
- "error",
181
- "single"
182
- ],
183
- "semi": [
184
- "error",
185
- "always"
186
- ],
187
- "eqeqeq": [
188
- "error",
189
- "smart"
190
- ],
191
- "valid-typeof": [
192
- "error",
193
- {
194
- "requireStringLiterals": true
195
- }
196
- ],
197
- "camelcase": [
198
- "error",
199
- {
200
- "properties": "always",
201
- "ignoreDestructuring": true,
202
- "ignoreImports": true
203
- }
204
- ],
205
- "no-irregular-whitespace": [
206
- "error",
207
- {
208
- "skipStrings": true,
209
- "skipComments": true,
210
- "skipRegExps": true,
211
- "skipTemplates": true
212
- }
213
- ],
214
- "valid-jsdoc": [
215
- "error",
216
- {
217
- "prefer": {
218
- "arg": "param",
219
- "argument": "param",
220
- "class": "constructor",
221
- "return": "returns",
222
- "virtual": "abstract"
223
- }
224
- }
225
- ],
226
- "no-var": "error",
227
- "radix": "error"
228
- },
229
- "reportUnusedDisableDirectives": true,
230
- "overrides": [
231
- {
232
- "files": [
233
- "node_modules",
234
- "dist",
235
- "public",
236
- "coverage",
237
- "test-report"
238
- ],
239
- "rules": {
240
- "no-unused-expressions": "off"
241
- }
242
- }
243
- ]
244
- }
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
- }