@syncfusion/ej2-dropdowns 22.2.9 → 22.2.11

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.9
3
+ * version : 22.2.11
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.8",
3
+ "_id": "@syncfusion/ej2-dropdowns@22.2.10",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-hqHfCzh6fnrcpqCTPy9dL3EjdIuqsaklD4YP+rBRcqQNi4CWDJCZYzxXNPXl7lNyMKFFz6Sjrr8eoF6DHOsQxA==",
5
+ "_integrity": "sha512-eTNpfEBL6fCTWplXqZfTQ9u/8dmXmBJQcEAI3ShiCsVRQlsNaFpEfMQELnesXmfMGOExiILhvrrgXxwJ7wsR+w==",
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.8.tgz",
38
- "_shasum": "b6f13090710d0c2c6b0d7d9de58fb019c52c0b46",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.2.10.tgz",
38
+ "_shasum": "8817db861d5419b27c75ae15d742a427ef8f2ed2",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
41
41
  "author": {
@@ -43,12 +43,12 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~22.2.9",
46
+ "@syncfusion/ej2-base": "~22.2.10",
47
47
  "@syncfusion/ej2-data": "~22.2.5",
48
48
  "@syncfusion/ej2-inputs": "~22.2.9",
49
- "@syncfusion/ej2-lists": "~22.2.9",
50
- "@syncfusion/ej2-navigations": "~22.2.8",
51
- "@syncfusion/ej2-popups": "~22.2.9"
49
+ "@syncfusion/ej2-lists": "~22.2.11",
50
+ "@syncfusion/ej2-navigations": "~22.2.11",
51
+ "@syncfusion/ej2-popups": "~22.2.11"
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.9",
76
+ "version": "22.2.11",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -247,24 +247,30 @@ var DropDownBase = /** @class */ (function (_super) {
247
247
  }
248
248
  var templateName = actionFailure ? 'actionFailureTemplate' : 'noRecordsTemplate';
249
249
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
250
- var noDataCompTemp = compiledString({}, this, templateName, templateId, this.isStringTemplate, null, ele);
251
- if (noDataCompTemp && noDataCompTemp.length > 0) {
252
- for (var i = 0; i < noDataCompTemp.length; i++) {
250
+ var noDataElement = void 0;
251
+ if ((this.isReact) && typeof template === 'function') {
252
+ noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null);
253
+ }
254
+ else {
255
+ noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null, ele);
256
+ }
257
+ if (noDataElement && noDataElement.length > 0) {
258
+ for (var i = 0; i < noDataElement.length; i++) {
253
259
  if (this.getModuleName() === 'listbox' && templateName === 'noRecordsTemplate') {
254
- if (noDataCompTemp[i].nodeName === '#text') {
260
+ if (noDataElement[i].nodeName === '#text') {
255
261
  var liElem = this.createElement('li');
256
- liElem.textContent = noDataCompTemp[i].textContent;
262
+ liElem.textContent = noDataElement[i].textContent;
257
263
  liElem.classList.add('e-list-nrt');
258
264
  liElem.setAttribute('role', 'option');
259
265
  ele.appendChild(liElem);
260
266
  }
261
267
  else {
262
- noDataCompTemp[i].classList.add('e-list-nr-template');
263
- ele.appendChild(noDataCompTemp[i]);
268
+ noDataElement[i].classList.add('e-list-nr-template');
269
+ ele.appendChild(noDataElement[i]);
264
270
  }
265
271
  }
266
272
  else {
267
- ele.appendChild(noDataCompTemp[i]);
273
+ ele.appendChild(noDataElement[i]);
268
274
  }
269
275
  }
270
276
  }
@@ -1765,7 +1765,7 @@ var DropDownList = /** @class */ (function (_super) {
1765
1765
  _this.wireListEvents();
1766
1766
  }
1767
1767
  _this.selectedElementID = _this.selectedLI ? _this.selectedLI.id : null;
1768
- attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
1768
+ attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '_options' });
1769
1769
  _this.inputElement.setAttribute('aria-expanded', 'true');
1770
1770
  var inputParent = _this.isFiltering() ? _this.filterInput.parentElement : _this.inputWrapper.container;
1771
1771
  addClass([inputParent], [dropDownListClasses.inputFocus]);
@@ -2543,8 +2543,10 @@ var DropDownList = /** @class */ (function (_super) {
2543
2543
  }
2544
2544
  break;
2545
2545
  case 'showClearButton':
2546
- Input.setClearButton(newProp.showClearButton, this_1.inputElement, this_1.inputWrapper, null, this_1.createElement);
2547
- this_1.bindClearEvent();
2546
+ if (!this_1.inputWrapper.clearButton) {
2547
+ Input.setClearButton(newProp.showClearButton, this_1.inputElement, this_1.inputWrapper, null, this_1.createElement);
2548
+ this_1.bindClearEvent();
2549
+ }
2548
2550
  break;
2549
2551
  default:
2550
2552
  {
@@ -3877,6 +3877,10 @@ var MultiSelect = /** @class */ (function (_super) {
3877
3877
  * @returns {void}
3878
3878
  */
3879
3879
  MultiSelect.prototype.render = function () {
3880
+ if (!isNullOrUndefined(this.value)) {
3881
+ // eslint-disable-next-line
3882
+ this.value = this.value.slice();
3883
+ }
3880
3884
  this.setDynValue = this.initStatus = false;
3881
3885
  this.isSelectAll = false;
3882
3886
  this.selectAllEventEle = [];
@@ -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/tslint.json ADDED
@@ -0,0 +1,111 @@
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
+ }