@syncfusion/ej2-dropdowns 32.1.25 → 32.2.3

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 : 32.1.25
3
+ * version : 32.2.3
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-dropdowns",
3
- "version": "32.1.25",
3
+ "version": "32.2.3",
4
4
  "description": "Essential JS 2 DropDown Components",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,13 +8,13 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-dropdowns.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~32.1.24",
12
- "@syncfusion/ej2-data": "~32.1.24",
13
- "@syncfusion/ej2-inputs": "~32.1.24",
14
- "@syncfusion/ej2-lists": "~32.1.24",
15
- "@syncfusion/ej2-navigations": "~32.1.24",
16
- "@syncfusion/ej2-notifications": "~32.1.24",
17
- "@syncfusion/ej2-popups": "~32.1.25"
11
+ "@syncfusion/ej2-base": "~32.2.3",
12
+ "@syncfusion/ej2-data": "~32.2.3",
13
+ "@syncfusion/ej2-inputs": "~32.2.3",
14
+ "@syncfusion/ej2-lists": "~32.2.3",
15
+ "@syncfusion/ej2-navigations": "~32.2.3",
16
+ "@syncfusion/ej2-notifications": "~32.2.3",
17
+ "@syncfusion/ej2-popups": "~32.2.3"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
@@ -3970,7 +3970,7 @@ var MultiSelect = /** @class */ (function (_super) {
3970
3970
  this.unwireListEvents();
3971
3971
  this.wireListEvents();
3972
3972
  };
3973
- MultiSelect.prototype.initialValueUpdate = function (listItems, isInitialVirtualData) {
3973
+ MultiSelect.prototype.initialValueUpdate = function (listItems, isInitialVirtualData, isInitialRender) {
3974
3974
  var _this = this;
3975
3975
  if (this.list) {
3976
3976
  var text = void 0;
@@ -3980,6 +3980,7 @@ var MultiSelect = /** @class */ (function (_super) {
3980
3980
  this.chipCollectionWrapper.innerHTML = '';
3981
3981
  }
3982
3982
  this.removeListSelection();
3983
+ var formElement = closest(this.inputElement, 'form');
3983
3984
  if (!isNullOrUndefined(this.value)) {
3984
3985
  for (var index = 0; !isNullOrUndefined(this.value[index]); index++) {
3985
3986
  value_2 = this.allowObjectBinding ?
@@ -4024,7 +4025,8 @@ var MultiSelect = /** @class */ (function (_super) {
4024
4025
  }
4025
4026
  else if ((isNullOrUndefined(text) && !this.allowCustomValue) &&
4026
4027
  ((!(this.dataSource instanceof DataManager)) ||
4027
- (this.dataSource instanceof DataManager && isInitialVirtualData))) {
4028
+ (this.dataSource instanceof DataManager && isInitialVirtualData)) && (!this.isAngular || !isInitialRender ||
4029
+ (isNullOrUndefined(formElement) && listItems && listItems.length > 0))) {
4028
4030
  this.value.splice(index, 1);
4029
4031
  index -= 1;
4030
4032
  }
@@ -6130,7 +6132,7 @@ var MultiSelect = /** @class */ (function (_super) {
6130
6132
  this.viewPortInfo.startIndex = this.virtualItemStartIndex = 0;
6131
6133
  this.viewPortInfo.endIndex = this.virtualItemEndIndex = this.viewPortInfo.startIndex > 0 ?
6132
6134
  this.viewPortInfo.endIndex : this.itemCount;
6133
- this.checkInitialValue();
6135
+ this.checkInitialValue(true);
6134
6136
  if (this.element.hasAttribute('data-val')) {
6135
6137
  this.element.setAttribute('data-val', 'false');
6136
6138
  }
@@ -6310,7 +6312,7 @@ var MultiSelect = /** @class */ (function (_super) {
6310
6312
  this.value = data.length > 0 ? data : null;
6311
6313
  }
6312
6314
  };
6313
- MultiSelect.prototype.checkInitialValue = function () {
6315
+ MultiSelect.prototype.checkInitialValue = function (isInitialRender) {
6314
6316
  var _this = this;
6315
6317
  if (this.fields.disabled) {
6316
6318
  this.removeDisabledItemsValue(this.value);
@@ -6397,7 +6399,7 @@ var MultiSelect = /** @class */ (function (_super) {
6397
6399
  }
6398
6400
  }
6399
6401
  if (!(this.dataSource instanceof DataManager)) {
6400
- this.initialValueUpdate(listItems_3, true);
6402
+ this.initialValueUpdate(listItems_3, true, isInitialRender);
6401
6403
  this.initialUpdate();
6402
6404
  }
6403
6405
  else {
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
+ }