@syncfusion/ej2-dropdowns 29.1.33 → 29.1.37
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.
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +22 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +22 -6
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/combo-box/combo-box.js +7 -2
- package/src/drop-down-list/drop-down-list.js +3 -0
- package/src/drop-down-tree/drop-down-tree.js +3 -1
- package/src/list-box/list-box.js +8 -2
- package/src/multi-select/multi-select.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 29.1.
|
|
3
|
+
* version : 29.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@29.1.33",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-z5ZJUm6JFdq+hyTkMK9v6b1vLGPYtBGFkBeMTsUP0SO/b9AEcqQ7AsLUYA+AINsfjFG/pKYn6TEBuBBb9Gbapw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"/@syncfusion/ej2-spreadsheet",
|
|
37
37
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
38
38
|
],
|
|
39
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
40
|
-
"_shasum": "
|
|
39
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-29.1.33.tgz",
|
|
40
|
+
"_shasum": "92940fb68155f5af2fd540bbad71278ca0b012a4",
|
|
41
41
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
42
42
|
"_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
|
|
43
43
|
"author": {
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
},
|
|
46
46
|
"bundleDependencies": false,
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@syncfusion/ej2-base": "~29.1.
|
|
48
|
+
"@syncfusion/ej2-base": "~29.1.36",
|
|
49
49
|
"@syncfusion/ej2-data": "~29.1.33",
|
|
50
|
-
"@syncfusion/ej2-inputs": "~29.1.
|
|
51
|
-
"@syncfusion/ej2-lists": "~29.1.
|
|
52
|
-
"@syncfusion/ej2-navigations": "~29.1.
|
|
50
|
+
"@syncfusion/ej2-inputs": "~29.1.34",
|
|
51
|
+
"@syncfusion/ej2-lists": "~29.1.34",
|
|
52
|
+
"@syncfusion/ej2-navigations": "~29.1.37",
|
|
53
53
|
"@syncfusion/ej2-notifications": "~29.1.33",
|
|
54
|
-
"@syncfusion/ej2-popups": "~29.1.
|
|
54
|
+
"@syncfusion/ej2-popups": "~29.1.37"
|
|
55
55
|
},
|
|
56
56
|
"deprecated": false,
|
|
57
57
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"module": "./index.js",
|
|
77
77
|
"name": "@syncfusion/ej2-dropdowns",
|
|
78
78
|
"typings": "index.d.ts",
|
|
79
|
-
"version": "29.1.
|
|
79
|
+
"version": "29.1.37",
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
82
82
|
}
|
|
@@ -99,7 +99,8 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
99
99
|
ComboBox.prototype.onBlurHandler = function (e) {
|
|
100
100
|
var inputValue = this.inputElement && this.inputElement.value === '' ?
|
|
101
101
|
null : this.inputElement && this.inputElement.value;
|
|
102
|
-
|
|
102
|
+
var text = !isNullOrUndefined(this.text) ? this.text.replace(/\r\n|\n|\r/g, '') : this.text;
|
|
103
|
+
if (!isNullOrUndefined(this.listData) && !isNullOrUndefined(inputValue) && inputValue !== text) {
|
|
103
104
|
this.customValue(e);
|
|
104
105
|
}
|
|
105
106
|
_super.prototype.onBlurHandler.call(this, e);
|
|
@@ -224,6 +225,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
224
225
|
if ((this.value === dataItem.value && this.text !== dataItem.text)
|
|
225
226
|
|| (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
226
227
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
228
|
+
if (isNullOrUndefined(li)) {
|
|
229
|
+
this.previousValue = this.value;
|
|
230
|
+
}
|
|
227
231
|
}
|
|
228
232
|
}
|
|
229
233
|
}
|
|
@@ -905,8 +909,9 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
905
909
|
this.removeFillSelection();
|
|
906
910
|
}
|
|
907
911
|
var dataItem = this.isSelectCustom ? { text: '' } : this.getItemData();
|
|
912
|
+
var text = !isNullOrUndefined(dataItem.text) ? dataItem.text.replace(/\r\n|\n|\r/g, '') : dataItem.text;
|
|
908
913
|
var selected = !isNullOrUndefined(this.list) ? this.list.querySelector('.' + dropDownListClasses.selected) : null;
|
|
909
|
-
if (this.inputElement &&
|
|
914
|
+
if (this.inputElement && text === this.inputElement.value && !isNullOrUndefined(selected)) {
|
|
910
915
|
if (this.isSelected) {
|
|
911
916
|
this.onChangeEvent(e);
|
|
912
917
|
this.isSelectCustom = false;
|
|
@@ -1638,6 +1638,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1638
1638
|
if ((this.value === dataItem.value && this.text !== dataItem.text) ||
|
|
1639
1639
|
(this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
1640
1640
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
1641
|
+
if (isNullOrUndefined(li)) {
|
|
1642
|
+
this.previousValue = this.value;
|
|
1643
|
+
}
|
|
1641
1644
|
}
|
|
1642
1645
|
}
|
|
1643
1646
|
}
|
|
@@ -1659,6 +1659,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1659
1659
|
this.trigger('beforeOpen', args, function (args) {
|
|
1660
1660
|
if (!args.cancel) {
|
|
1661
1661
|
addClass([_this.inputWrapper], [ICONANIMATION]);
|
|
1662
|
+
if (_this.isReact && _this.isFilterRestore) {
|
|
1663
|
+
_this.treeObj.refresh();
|
|
1664
|
+
}
|
|
1662
1665
|
if (_this.isFirstRender) {
|
|
1663
1666
|
_this.popupEle = _this.createElement('div', {
|
|
1664
1667
|
id: _this.element.id + '_options', className: POPUP_CLASS + ' ' + (_this.cssClass != null ? _this.cssClass : '')
|
|
@@ -1671,7 +1674,6 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1671
1674
|
else {
|
|
1672
1675
|
_this.popupEle = _this.popupObj.element;
|
|
1673
1676
|
if (_this.isReact && _this.isFilterRestore) {
|
|
1674
|
-
_this.treeObj.refresh();
|
|
1675
1677
|
_this.isFilteredData = true;
|
|
1676
1678
|
_this.popupEle.removeChild(_this.filterContainer);
|
|
1677
1679
|
}
|
package/src/list-box/list-box.js
CHANGED
|
@@ -2235,8 +2235,14 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
2235
2235
|
text = value;
|
|
2236
2236
|
}
|
|
2237
2237
|
if (typeof (text) === 'string') {
|
|
2238
|
-
|
|
2239
|
-
|
|
2238
|
+
if (text.indexOf('\n') !== -1) {
|
|
2239
|
+
var txt = CSS.escape(text);
|
|
2240
|
+
li = _this.list.querySelector('[data-value="' + txt + '"]');
|
|
2241
|
+
}
|
|
2242
|
+
else {
|
|
2243
|
+
text = text.split('\\').join('\\\\');
|
|
2244
|
+
li = _this.list.querySelector('[data-value="' + text.replace(/"/g, '\\"') + '"]');
|
|
2245
|
+
}
|
|
2240
2246
|
}
|
|
2241
2247
|
else {
|
|
2242
2248
|
li = _this.list.querySelector('[data-value="' + text + '"]');
|
|
@@ -682,7 +682,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
682
682
|
if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
|
|
683
683
|
this.initialValueUpdate();
|
|
684
684
|
}
|
|
685
|
-
else {
|
|
685
|
+
else if (!this.isRemoveSelection) {
|
|
686
686
|
this.initialValueUpdate(this.listData, true);
|
|
687
687
|
}
|
|
688
688
|
this.initialUpdate();
|