@syncfusion/ej2-dropdowns 22.2.5 → 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.2.5
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-dropdowns@*",
3
- "_id": "@syncfusion/ej2-dropdowns@22.1.39",
3
+ "_id": "@syncfusion/ej2-dropdowns@22.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-kGCz43iB1JPJkzxWFVy45/PWM48DrUevtPcmysiuBIyHbL7MZaNc/jc4ee+h+0AYOwFqcnc+dUu85DAb7O05Hg==",
5
+ "_integrity": "sha512-wf/kIgwTVONADdQEZBFNabfPymGacqM8fjMBZUBuBBtp8SKR+nphlkIVU564UoGLcNOOV1yhUzlpVwEJ/ngabg==",
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.1.39.tgz",
38
- "_shasum": "50db23e29303d2ed0f0e8e14a8a1601682864f9e",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.2.5.tgz",
38
+ "_shasum": "194e02353868d6417668cc2fbbc0221ccb79ad36",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
41
41
  "author": {
@@ -45,10 +45,10 @@
45
45
  "dependencies": {
46
46
  "@syncfusion/ej2-base": "~22.2.5",
47
47
  "@syncfusion/ej2-data": "~22.2.5",
48
- "@syncfusion/ej2-inputs": "~22.2.5",
49
- "@syncfusion/ej2-lists": "~22.2.5",
50
- "@syncfusion/ej2-navigations": "~22.2.5",
51
- "@syncfusion/ej2-popups": "~22.2.5"
48
+ "@syncfusion/ej2-inputs": "~22.2.7",
49
+ "@syncfusion/ej2-lists": "~22.2.8",
50
+ "@syncfusion/ej2-navigations": "~22.2.8",
51
+ "@syncfusion/ej2-popups": "~22.2.7"
52
52
  },
53
53
  "deprecated": false,
54
54
  "description": "Essential JS 2 DropDown Components",
@@ -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.5",
76
+ "version": "22.2.8",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -1677,20 +1677,20 @@ var DropDownList = /** @class */ (function (_super) {
1677
1677
  var args = { cancel: false };
1678
1678
  this.trigger('beforeOpen', args, function (args) {
1679
1679
  if (!args.cancel) {
1680
- var popupEle_1 = _this.createElement('div', {
1680
+ var popupEle = _this.createElement('div', {
1681
1681
  id: _this.element.id + '_popup', className: 'e-ddl e-popup ' + (_this.cssClass !== null ? _this.cssClass : '')
1682
1682
  });
1683
- var searchBox = _this.setSearchBox(popupEle_1);
1683
+ var searchBox = _this.setSearchBox(popupEle);
1684
1684
  _this.listHeight = formatUnit(_this.popupHeight);
1685
1685
  if (_this.headerTemplate) {
1686
- _this.setHeaderTemplate(popupEle_1);
1686
+ _this.setHeaderTemplate(popupEle);
1687
1687
  }
1688
- append([_this.list], popupEle_1);
1688
+ append([_this.list], popupEle);
1689
1689
  if (_this.footerTemplate) {
1690
- _this.setFooterTemplate(popupEle_1);
1690
+ _this.setFooterTemplate(popupEle);
1691
1691
  }
1692
- document.body.appendChild(popupEle_1);
1693
- popupEle_1.style.visibility = 'hidden';
1692
+ document.body.appendChild(popupEle);
1693
+ popupEle.style.visibility = 'hidden';
1694
1694
  if (_this.popupHeight !== 'auto') {
1695
1695
  _this.searchBoxHeight = 0;
1696
1696
  if (!isNullOrUndefined(searchBox.container)) {
@@ -1698,20 +1698,20 @@ var DropDownList = /** @class */ (function (_super) {
1698
1698
  _this.listHeight = (parseInt(_this.listHeight, 10) - (_this.searchBoxHeight)).toString() + 'px';
1699
1699
  }
1700
1700
  if (_this.headerTemplate) {
1701
- _this.header = _this.header ? _this.header : popupEle_1.querySelector('.e-ddl-header');
1701
+ _this.header = _this.header ? _this.header : popupEle.querySelector('.e-ddl-header');
1702
1702
  var height = Math.round(_this.header.getBoundingClientRect().height);
1703
1703
  _this.listHeight = (parseInt(_this.listHeight, 10) - (height + _this.searchBoxHeight)).toString() + 'px';
1704
1704
  }
1705
1705
  if (_this.footerTemplate) {
1706
- _this.footer = _this.footer ? _this.footer : popupEle_1.querySelector('.e-ddl-footer');
1706
+ _this.footer = _this.footer ? _this.footer : popupEle.querySelector('.e-ddl-footer');
1707
1707
  var height = Math.round(_this.footer.getBoundingClientRect().height);
1708
1708
  _this.listHeight = (parseInt(_this.listHeight, 10) - (height + _this.searchBoxHeight)).toString() + 'px';
1709
1709
  }
1710
1710
  _this.list.style.maxHeight = (parseInt(_this.listHeight, 10) - 2).toString() + 'px'; // due to box-sizing property
1711
- popupEle_1.style.maxHeight = formatUnit(_this.popupHeight);
1711
+ popupEle.style.maxHeight = formatUnit(_this.popupHeight);
1712
1712
  }
1713
1713
  else {
1714
- popupEle_1.style.height = 'auto';
1714
+ popupEle.style.height = 'auto';
1715
1715
  }
1716
1716
  var offsetValue = 0;
1717
1717
  var left = void 0;
@@ -1723,7 +1723,7 @@ var DropDownList = /** @class */ (function (_super) {
1723
1723
  }
1724
1724
  if (Browser.isDevice && (!_this.allowFiltering && (_this.getModuleName() === 'dropdownlist' ||
1725
1725
  (_this.isDropDownClick && _this.getModuleName() === 'combobox')))) {
1726
- offsetValue = _this.getOffsetValue(popupEle_1);
1726
+ offsetValue = _this.getOffsetValue(popupEle);
1727
1727
  var firstItem = _this.isEmptyList() ? _this.list : _this.liCollections[0];
1728
1728
  if (!isNullOrUndefined(_this.inputElement)) {
1729
1729
  left = -(parseInt(getComputedStyle(firstItem).textIndent, 10) -
@@ -1732,9 +1732,8 @@ var DropDownList = /** @class */ (function (_super) {
1732
1732
  }
1733
1733
  }
1734
1734
  _this.getFocusElement();
1735
- _this.createPopup(popupEle_1, offsetValue, left);
1736
- _this.checkCollision(popupEle_1);
1737
- var popupLeft_1 = _this.enableRtl ? parseFloat(popupEle_1.style.left) - (_this.ulElement.parentElement.offsetWidth - _this.inputWrapper.container.offsetWidth) : 0;
1735
+ _this.createPopup(popupEle, offsetValue, left);
1736
+ _this.checkCollision(popupEle);
1738
1737
  if (Browser.isDevice) {
1739
1738
  _this.popupObj.element.classList.add(dropDownListClasses.device);
1740
1739
  if (_this.getModuleName() === 'dropdownlist' || (_this.getModuleName() === 'combobox'
@@ -1754,8 +1753,8 @@ var DropDownList = /** @class */ (function (_super) {
1754
1753
  EventHandler.add(_this.clearIconElement, 'click', _this.clearText, _this);
1755
1754
  }
1756
1755
  }
1757
- popupEle_1.style.visibility = 'visible';
1758
- addClass([popupEle_1], 'e-popup-close');
1756
+ popupEle.style.visibility = 'visible';
1757
+ addClass([popupEle], 'e-popup-close');
1759
1758
  var scrollParentElements = _this.popupObj.getScrollableParent(_this.inputWrapper.container);
1760
1759
  for (var _i = 0, scrollParentElements_1 = scrollParentElements; _i < scrollParentElements_1.length; _i++) {
1761
1760
  var element = scrollParentElements_1[_i];
@@ -1788,9 +1787,6 @@ var DropDownList = /** @class */ (function (_super) {
1788
1787
  _this.beforePopupOpen = false;
1789
1788
  _this.destroyPopup();
1790
1789
  }
1791
- if (_this.enableRtl && popupLeft_1 > 0) {
1792
- popupEle_1.style.left = popupLeft_1 + "px";
1793
- }
1794
1790
  });
1795
1791
  }
1796
1792
  else {
@@ -1818,7 +1814,8 @@ var DropDownList = /** @class */ (function (_super) {
1818
1814
  this.popupObj = new Popup(element, {
1819
1815
  width: this.setWidth(), targetType: 'relative',
1820
1816
  relateTo: this.inputWrapper.container, collision: { X: 'flip', Y: 'flip' }, offsetY: offsetValue,
1821
- enableRtl: this.enableRtl, offsetX: left, position: { X: 'left', Y: 'bottom' },
1817
+ enableRtl: this.enableRtl, offsetX: left,
1818
+ position: this.enableRtl ? { X: 'right', Y: 'bottom' } : { X: 'left', Y: 'bottom' },
1822
1819
  zIndex: this.zIndex,
1823
1820
  close: function () {
1824
1821
  if (!_this.isDocumentClick) {
@@ -264,9 +264,6 @@ var MultiSelect = /** @class */ (function (_super) {
264
264
  if (_this.isFirstClick) {
265
265
  _this.loadTemplate();
266
266
  }
267
- if (_this.enableRtl) {
268
- _this.popupWrapper.style.visibility = 'hidden';
269
- }
270
267
  }
271
268
  });
272
269
  };
@@ -2119,7 +2116,8 @@ var MultiSelect = /** @class */ (function (_super) {
2119
2116
  this.list.style.maxHeight = formatUnit(this.popupHeight);
2120
2117
  }
2121
2118
  this.popupObj = new Popup(this.popupWrapper, {
2122
- width: this.calcPopupWidth(), targetType: 'relative', position: { X: 'left', Y: 'bottom' },
2119
+ width: this.calcPopupWidth(), targetType: 'relative',
2120
+ position: this.enableRtl ? { X: 'right', Y: 'bottom' } : { X: 'left', Y: 'bottom' },
2123
2121
  relateTo: this.overAllWrapper, collision: { X: 'flip', Y: 'flip' }, offsetY: 1,
2124
2122
  enableRtl: this.enableRtl, zIndex: this.zIndex,
2125
2123
  close: function () {
@@ -2135,11 +2133,6 @@ var MultiSelect = /** @class */ (function (_super) {
2135
2133
  },
2136
2134
  open: function () {
2137
2135
  _this.popupObj.resolveCollision();
2138
- if (_this.enableRtl) {
2139
- var popupLeft = parseFloat(_this.popupWrapper.style.left) - (_this.popupWrapper.offsetWidth - _this.overAllWrapper.offsetWidth);
2140
- _this.popupWrapper.style.left = popupLeft > 0 ? popupLeft + "px" : _this.popupWrapper.style.left;
2141
- _this.popupWrapper.style.visibility = 'hidden';
2142
- }
2143
2136
  if (!_this.isFirstClick) {
2144
2137
  var ulElement = _this.list.querySelector('ul');
2145
2138
  if (ulElement) {
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
- }