@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 29.1.33
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@18.66.23",
3
+ "_id": "@syncfusion/ej2-dropdowns@29.1.33",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-PhzWIEYWpvDKE3IeAiNkQhtz/PprlJ+ZUAuA1GSU9pHlnWgAry4iQ9zSNVhZbu/8/WHFllz8OjMYiiZiK8fH7A==",
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-release/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-18.66.23.tgz",
40
- "_shasum": "9f243a29fe4b55da70191ea81a97d6239f57ee6b",
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.33",
48
+ "@syncfusion/ej2-base": "~29.1.36",
49
49
  "@syncfusion/ej2-data": "~29.1.33",
50
- "@syncfusion/ej2-inputs": "~29.1.33",
51
- "@syncfusion/ej2-lists": "~29.1.33",
52
- "@syncfusion/ej2-navigations": "~29.1.33",
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.33"
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.33",
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
- if (!isNullOrUndefined(this.listData) && !isNullOrUndefined(inputValue) && inputValue !== this.text) {
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 && dataItem.text === this.inputElement.value && !isNullOrUndefined(selected)) {
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
  }
@@ -2235,8 +2235,14 @@ var ListBox = /** @class */ (function (_super) {
2235
2235
  text = value;
2236
2236
  }
2237
2237
  if (typeof (text) === 'string') {
2238
- text = text.split('\\').join('\\\\');
2239
- li = _this.list.querySelector('[data-value="' + text.replace(/"/g, '\\"') + '"]');
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();