@syncfusion/ej2-dropdowns 26.2.7 → 26.2.9

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.
Files changed (109) hide show
  1. package/dist/ej2-dropdowns.min.js +2 -2
  2. package/dist/ej2-dropdowns.umd.min.js +2 -2
  3. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-dropdowns.es2015.js +89 -52
  5. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es5.js +89 -52
  7. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  8. package/dist/global/ej2-dropdowns.min.js +2 -2
  9. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +8 -8
  12. package/src/combo-box/combo-box.js +33 -2
  13. package/src/common/virtual-scroll.js +5 -7
  14. package/src/drop-down-base/drop-down-base.js +10 -5
  15. package/src/drop-down-list/drop-down-list.js +4 -1
  16. package/src/list-box/list-box.js +20 -30
  17. package/src/mention/mention.js +2 -2
  18. package/src/multi-select/checkbox-selection.js +3 -1
  19. package/src/multi-select/multi-select.js +12 -4
  20. package/styles/auto-complete/fluent2.css +3 -1031
  21. package/styles/auto-complete/material3-dark.css +1 -54
  22. package/styles/auto-complete/material3.css +2 -109
  23. package/styles/bootstrap-dark.css +9 -0
  24. package/styles/bootstrap.css +9 -0
  25. package/styles/bootstrap4.css +9 -0
  26. package/styles/bootstrap5-dark.css +9 -0
  27. package/styles/bootstrap5.css +9 -0
  28. package/styles/combo-box/fluent2.css +3 -1031
  29. package/styles/combo-box/material3-dark.css +1 -54
  30. package/styles/combo-box/material3.css +2 -109
  31. package/styles/drop-down-base/_theme.scss +2 -0
  32. package/styles/drop-down-base/bootstrap-dark.css +2 -0
  33. package/styles/drop-down-base/bootstrap.css +2 -0
  34. package/styles/drop-down-base/bootstrap4.css +2 -0
  35. package/styles/drop-down-base/bootstrap5-dark.css +2 -0
  36. package/styles/drop-down-base/bootstrap5.css +2 -0
  37. package/styles/drop-down-base/fabric-dark.css +2 -0
  38. package/styles/drop-down-base/fabric.css +2 -0
  39. package/styles/drop-down-base/fluent-dark.css +2 -0
  40. package/styles/drop-down-base/fluent.css +2 -0
  41. package/styles/drop-down-base/fluent2.css +7 -1033
  42. package/styles/drop-down-base/highcontrast-light.css +2 -0
  43. package/styles/drop-down-base/highcontrast.css +2 -0
  44. package/styles/drop-down-base/material-dark.css +2 -0
  45. package/styles/drop-down-base/material.css +2 -0
  46. package/styles/drop-down-base/material3-dark.css +3 -54
  47. package/styles/drop-down-base/material3.css +5 -110
  48. package/styles/drop-down-base/tailwind-dark.css +2 -0
  49. package/styles/drop-down-base/tailwind.css +2 -0
  50. package/styles/drop-down-list/fluent2.css +5 -1033
  51. package/styles/drop-down-list/material3-dark.css +1 -54
  52. package/styles/drop-down-list/material3.css +3 -110
  53. package/styles/drop-down-tree/fluent2.css +3 -1031
  54. package/styles/drop-down-tree/material3-dark.css +1 -54
  55. package/styles/drop-down-tree/material3.css +2 -109
  56. package/styles/fabric-dark.css +9 -0
  57. package/styles/fabric.css +9 -0
  58. package/styles/fluent-dark.css +9 -0
  59. package/styles/fluent.css +9 -0
  60. package/styles/fluent2.css +14 -1033
  61. package/styles/highcontrast-light.css +9 -0
  62. package/styles/highcontrast.css +9 -0
  63. package/styles/list-box/_layout.scss +6 -0
  64. package/styles/list-box/bootstrap-dark.css +6 -0
  65. package/styles/list-box/bootstrap.css +6 -0
  66. package/styles/list-box/bootstrap4.css +6 -0
  67. package/styles/list-box/bootstrap5-dark.css +6 -0
  68. package/styles/list-box/bootstrap5.css +6 -0
  69. package/styles/list-box/fabric-dark.css +6 -0
  70. package/styles/list-box/fabric.css +6 -0
  71. package/styles/list-box/fluent-dark.css +6 -0
  72. package/styles/list-box/fluent.css +6 -0
  73. package/styles/list-box/fluent2.css +9 -1031
  74. package/styles/list-box/highcontrast-light.css +6 -0
  75. package/styles/list-box/highcontrast.css +6 -0
  76. package/styles/list-box/material-dark.css +6 -0
  77. package/styles/list-box/material.css +6 -0
  78. package/styles/list-box/material3-dark.css +7 -54
  79. package/styles/list-box/material3.css +8 -109
  80. package/styles/list-box/tailwind-dark.css +6 -0
  81. package/styles/list-box/tailwind.css +6 -0
  82. package/styles/material-dark.css +9 -0
  83. package/styles/material.css +9 -0
  84. package/styles/material3-dark.css +10 -54
  85. package/styles/material3.css +12 -110
  86. package/styles/mention/fluent2.css +3 -1031
  87. package/styles/mention/material3-dark.css +1 -54
  88. package/styles/mention/material3.css +2 -109
  89. package/styles/multi-select/_layout.scss +1 -0
  90. package/styles/multi-select/bootstrap-dark.css +1 -0
  91. package/styles/multi-select/bootstrap.css +1 -0
  92. package/styles/multi-select/bootstrap4.css +1 -0
  93. package/styles/multi-select/bootstrap5-dark.css +1 -0
  94. package/styles/multi-select/bootstrap5.css +1 -0
  95. package/styles/multi-select/fabric-dark.css +1 -0
  96. package/styles/multi-select/fabric.css +1 -0
  97. package/styles/multi-select/fluent-dark.css +1 -0
  98. package/styles/multi-select/fluent.css +1 -0
  99. package/styles/multi-select/fluent2.css +6 -1033
  100. package/styles/multi-select/highcontrast-light.css +1 -0
  101. package/styles/multi-select/highcontrast.css +1 -0
  102. package/styles/multi-select/material-dark.css +1 -0
  103. package/styles/multi-select/material.css +1 -0
  104. package/styles/multi-select/material3-dark.css +2 -54
  105. package/styles/multi-select/material3.css +4 -110
  106. package/styles/multi-select/tailwind-dark.css +1 -0
  107. package/styles/multi-select/tailwind.css +1 -0
  108. package/styles/tailwind-dark.css +9 -0
  109. package/styles/tailwind.css +9 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.7
3
+ * version : 26.2.9
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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@26.2.4",
3
+ "_id": "@syncfusion/ej2-dropdowns@26.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rYtFrunryOtJIvcg6Izb0ZowqYEWuLASJHoM/wmI3KYUvkCbSlCarJKXOdgr+bybY/Y15ptJM3CW8f7LaHK6Zg==",
5
+ "_integrity": "sha512-DQLnhkatnSJgyHGcXmwjX+wlmjsQrqdoHCm1tsKmwfxiTvQBdxt/8VExLp/8b5ZhLPnCbNQwnwa9/BS2RMx52Q==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -35,8 +35,8 @@
35
35
  "/@syncfusion/ej2-spreadsheet",
36
36
  "/@syncfusion/ej2-vue-dropdowns"
37
37
  ],
38
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.4.tgz",
39
- "_shasum": "905bcd69a60c92c8eb1203b485d3dbb5373f8ccf",
38
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.8.tgz",
39
+ "_shasum": "5b456592bed019698a0cc42ff02b5f84b64acb5d",
40
40
  "_spec": "@syncfusion/ej2-dropdowns@*",
41
41
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
42
42
  "author": {
@@ -45,12 +45,12 @@
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
47
  "@syncfusion/ej2-base": "~26.2.5",
48
- "@syncfusion/ej2-data": "~26.2.5",
48
+ "@syncfusion/ej2-data": "~26.2.9",
49
49
  "@syncfusion/ej2-inputs": "~26.2.5",
50
50
  "@syncfusion/ej2-lists": "~26.2.5",
51
- "@syncfusion/ej2-navigations": "~26.2.7",
51
+ "@syncfusion/ej2-navigations": "~26.2.8",
52
52
  "@syncfusion/ej2-notifications": "~26.2.5",
53
- "@syncfusion/ej2-popups": "~26.2.5"
53
+ "@syncfusion/ej2-popups": "~26.2.8"
54
54
  },
55
55
  "deprecated": false,
56
56
  "description": "Essential JS 2 DropDown Components",
@@ -75,7 +75,7 @@
75
75
  "module": "./index.js",
76
76
  "name": "@syncfusion/ej2-dropdowns",
77
77
  "typings": "index.d.ts",
78
- "version": "26.2.7",
78
+ "version": "26.2.9",
79
79
  "sideEffects": false,
80
80
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
81
81
  }
@@ -128,10 +128,41 @@ var ComboBox = /** @class */ (function (_super) {
128
128
  value = this.allowObjectBinding && !isNullOrUndefined(value) ? getValue((this.fields.value) ? this.fields.value : '', value) : value;
129
129
  var inputValue = isNullOrUndefined(value) ? null : value.toString();
130
130
  Input.setValue(inputValue, this.inputElement, this.floatLabelType, this.showClearButton);
131
+ var changeData = {};
131
132
  if (this.allowObjectBinding) {
132
133
  value = this.getDataByValue(value);
134
+ if (isNullOrUndefined(value)) {
135
+ var fields_1 = this.fields;
136
+ var isvalidTextField_1 = false;
137
+ var isValidValue_1 = false;
138
+ if (this.allowObjectBinding) {
139
+ var keys = Object.keys(this.value);
140
+ keys.forEach(function (key) {
141
+ if (key === fields_1.value) {
142
+ isValidValue_1 = true;
143
+ return;
144
+ }
145
+ });
146
+ keys.forEach(function (key) {
147
+ if (key === fields_1.text) {
148
+ isvalidTextField_1 = true;
149
+ return;
150
+ }
151
+ });
152
+ }
153
+ changeData = {
154
+ text: isValidValue_1 ? isvalidTextField_1 ? getValue(fields_1.text, this.value) : getValue(fields_1.value, this.value) : null,
155
+ value: isValidValue_1 ? this.value : null,
156
+ index: null
157
+ };
158
+ }
159
+ }
160
+ if (this.allowObjectBinding) {
161
+ this.setProperties(changeData, true);
162
+ }
163
+ else {
164
+ this.setProperties({ value: value, text: value, index: null }, true);
133
165
  }
134
- this.setProperties({ value: value, text: value, index: null }, true);
135
166
  this.activeIndex = this.index;
136
167
  var fields = this.fields;
137
168
  var dataItem = {};
@@ -671,7 +702,7 @@ var ComboBox = /** @class */ (function (_super) {
671
702
  }
672
703
  }
673
704
  }
674
- else if (this.allowCustom) {
705
+ else if (this.allowCustom && this.isInteracted) {
675
706
  this.isSelectCustom = true;
676
707
  }
677
708
  };
@@ -450,10 +450,8 @@ var VirtualScroll = /** @class */ (function () {
450
450
  else if (this.parent.isScrollActionTriggered) {
451
451
  this.parent.isPreventKeyAction = false;
452
452
  this.parent.isScrollActionTriggered = false;
453
- var virtualListCount = this.parent.list.querySelectorAll('.e-virtual-list').length;
454
- var listElement = this.parent.list.querySelector('.' + 'e-list-item');
455
- var translateY = scrollArgs.offset.top - (listElement.offsetHeight * virtualListCount);
456
- this.parent.list.getElementsByClassName('e-virtual-ddl-content')[0].style.transform = "translate(0px," + translateY + "px)";
453
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
454
+ this.parent.list.getElementsByClassName('e-virtual-ddl-content')[0].style = this.parent.getTransformValues();
457
455
  }
458
456
  this.parent.previousInfo = this.parent.viewPortInfo;
459
457
  }
@@ -487,13 +485,13 @@ var VirtualScroll = /** @class */ (function () {
487
485
  }
488
486
  }
489
487
  else if (infoType.direction === 'up') {
490
- if (infoType.startIndex && infoType.endIndex) {
488
+ if ((infoType.startIndex && infoType.endIndex) || (Math.ceil(exactTopIndex) > this.parent.previousStartIndex)) {
491
489
  var loadAtIndex = Math.round(((infoType.startIndex * rowHeight) + (pageSizeBy4 * rowHeight)) / rowHeight);
492
- if (exactTopIndex < loadAtIndex) {
490
+ if (exactTopIndex < loadAtIndex || (Math.ceil(exactTopIndex) > this.parent.previousStartIndex)) {
493
491
  var idxAddedToExactTop = (pageSizeBy4) > infoViewIndices ? pageSizeBy4 :
494
492
  (infoViewIndices + infoViewIndices / 4);
495
493
  var eIndex = Math.round(exactTopIndex + idxAddedToExactTop);
496
- infoType.endIndex = (eIndex < totalItemCount || this.component == "multiselect") ? eIndex : totalItemCount;
494
+ infoType.endIndex = (eIndex < totalItemCount) ? eIndex : totalItemCount;
497
495
  var sIndex = infoType.endIndex - this.parent.virtualItemCount;
498
496
  infoType.startIndex = sIndex > 0 ? sIndex : 0;
499
497
  infoType.endIndex = sIndex < 0 ? this.parent.virtualItemCount : infoType.endIndex;
@@ -337,7 +337,7 @@ var DropDownBase = /** @class */ (function (_super) {
337
337
  }
338
338
  }
339
339
  else {
340
- if (noDataElement[i] instanceof HTMLElement || noDataElement[i] instanceof Text) {
340
+ if (noDataElement[i] instanceof HTMLElement || ((noDataElement[i] instanceof Text) && (noDataElement[i]).textContent !== '')) {
341
341
  ele.appendChild(noDataElement[i]);
342
342
  }
343
343
  }
@@ -1152,10 +1152,15 @@ var DropDownBase = /** @class */ (function (_super) {
1152
1152
  }
1153
1153
  };
1154
1154
  DropDownBase.prototype.getPageCount = function (returnExactCount) {
1155
- var liHeight = this.list.classList.contains(dropDownBaseClasses.noData) ? null :
1156
- getComputedStyle(this.getItems()[0], null).getPropertyValue('height');
1157
- var pageCount = Math.round(this.list.getBoundingClientRect().height / parseInt(liHeight, 10));
1158
- return returnExactCount ? pageCount : Math.round(pageCount);
1155
+ if (this.list) {
1156
+ var liHeight = this.list.classList.contains(dropDownBaseClasses.noData) ? null :
1157
+ getComputedStyle(this.getItems()[0], null).getPropertyValue('height');
1158
+ var pageCount = Math.round(this.list.getBoundingClientRect().height / parseInt(liHeight, 10));
1159
+ return returnExactCount ? pageCount : Math.round(pageCount);
1160
+ }
1161
+ else {
1162
+ return 0;
1163
+ }
1159
1164
  };
1160
1165
  DropDownBase.prototype.updateGroupHeader = function (index, liCollections, target) {
1161
1166
  if (!isNullOrUndefined(liCollections[index]) && liCollections[index].classList.contains(dropDownBaseClasses.group)) {
@@ -3305,9 +3305,12 @@ var DropDownList = /** @class */ (function (_super) {
3305
3305
  DropDownList.prototype.checkData = function (newProp) {
3306
3306
  if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource)) && this.itemTemplate && this.allowFiltering &&
3307
3307
  !(this.isListSearched && (newProp.dataSource instanceof DataManager))) {
3308
- if (this.list) {
3308
+ if (this.list && !(this.isReact)) {
3309
3309
  this.list.innerHTML = '';
3310
3310
  }
3311
+ else {
3312
+ this.list = null;
3313
+ }
3311
3314
  this.actionCompleteData = { ulElement: null, list: null, isUpdated: false };
3312
3315
  }
3313
3316
  this.isListSearched = false;
@@ -184,7 +184,6 @@ var ListBox = /** @class */ (function (_super) {
184
184
  this.list.setAttribute('role', 'listbox');
185
185
  attributes(this.list, { 'role': 'listbox', 'aria-label': 'listbox', 'aria-multiselectable': this.selectionSettings.mode === 'Multiple' ? 'true' : 'false' });
186
186
  this.updateSelectionSettings();
187
- this.resizeHandler();
188
187
  };
189
188
  ListBox.prototype.updateSelectionSettings = function () {
190
189
  if (this.selectionSettings.showCheckbox && this.selectionSettings.showSelectAll && this.liCollections.length) {
@@ -432,7 +431,9 @@ var ListBox = /** @class */ (function (_super) {
432
431
  filterElem = this.list.getElementsByClassName('e-input-filter')[0];
433
432
  filterElem.selectionStart = txtLength;
434
433
  filterElem.selectionEnd = txtLength;
435
- filterElem.focus();
434
+ if (filterElem.value !== '') {
435
+ filterElem.focus();
436
+ }
436
437
  }
437
438
  }
438
439
  if (this.toolbarSettings.items.length && this.scope && this.scope.indexOf('#') > -1 && !isNullOrUndefined(e)) {
@@ -883,33 +884,22 @@ var ListBox = /** @class */ (function (_super) {
883
884
  items = (items instanceof Array ? items : [items]);
884
885
  var fields = this.fields;
885
886
  var dataValue = void 0;
886
- var objValue = void 0;
887
+ var objValue = {};
887
888
  var dupData = [];
888
- var itemIdx = void 0;
889
889
  extend(dupData, [], this.jsonData);
890
890
  var removeIdxes = [];
891
891
  var removeLiIdxes = [];
892
+ for (var i = 0; i < dupData.length; i++) {
893
+ var value = (dupData[i] instanceof Object) ? dupData[i][fields.value] : dupData[i].toString();
894
+ objValue[value] = i;
895
+ }
892
896
  for (var j = 0; j < items.length; j++) {
893
- if (items[j] instanceof Object) {
894
- dataValue = getValue(fields.value, items[j]);
895
- }
896
- else {
897
- dataValue = items[j].toString();
898
- }
899
- for (var i = 0, len = dupData.length; i < len; i++) {
900
- if (dupData[i] instanceof Object) {
901
- objValue = getValue(fields.value, dupData[i]);
902
- }
903
- else {
904
- objValue = dupData[i].toString();
905
- }
906
- if (objValue === dataValue) {
907
- itemIdx = this.getIndexByValue(dataValue);
908
- var idx = itemIdx === i ? itemIdx : i;
909
- liCollections.push(liElement[idx]);
910
- removeIdxes.push(idx);
911
- removeLiIdxes.push(idx);
912
- }
897
+ dataValue = (items[j] instanceof Object) ? items[j][fields.value] : items[j].toString();
898
+ if (objValue.hasOwnProperty(dataValue)) {
899
+ var idx = objValue[dataValue];
900
+ liCollections.push(liElement[idx]);
901
+ removeIdxes.push(idx);
902
+ removeLiIdxes.push(idx);
913
903
  }
914
904
  }
915
905
  for (var k = removeIdxes.length - 1; k >= 0; k--) {
@@ -1268,6 +1258,7 @@ var ListBox = /** @class */ (function (_super) {
1268
1258
  }
1269
1259
  this.inputString = this.filterInput.value;
1270
1260
  this.filterWireEvents();
1261
+ this.ulElement.style.setProperty('height', 'calc(100% - ' + (this.filterParent.offsetHeight) + 'px)', 'important');
1271
1262
  return filterInputObj;
1272
1263
  }
1273
1264
  };
@@ -2084,11 +2075,8 @@ var ListBox = /** @class */ (function (_super) {
2084
2075
  };
2085
2076
  ListBox.prototype.resizeHandler = function () {
2086
2077
  if (this.list && !(this.cssClass && this.cssClass.indexOf('e-horizontal-listbox') > -1)) {
2087
- if (this.list.scrollWidth > this.list.offsetWidth) {
2088
- this.list.querySelector('.e-list-parent').style.display = 'inline-block';
2089
- }
2090
- else {
2091
- this.list.querySelector('.e-list-parent').style.display = 'block';
2078
+ if (this.list.getElementsByClassName('e-filter-parent').length > 0 && this.allowFiltering) {
2079
+ this.ulElement.style.setProperty('height', 'calc(100% - ' + (this.filterParent.offsetHeight) + 'px)', 'important');
2092
2080
  }
2093
2081
  }
2094
2082
  };
@@ -2431,7 +2419,9 @@ var ListBox = /** @class */ (function (_super) {
2431
2419
  this.initDraggable();
2432
2420
  }
2433
2421
  else {
2434
- getComponent(this.ulElement, 'sortable').destroy();
2422
+ if (this.ulElement.classList.contains("e-sortable")) {
2423
+ getComponent(this.ulElement, 'sortable').destroy();
2424
+ }
2435
2425
  }
2436
2426
  break;
2437
2427
  case 'allowFiltering':
@@ -1308,10 +1308,10 @@ var Mention = /** @class */ (function (_super) {
1308
1308
  }
1309
1309
  if (this.isContentEditable(this.inputElement)) {
1310
1310
  if (Browser.isAndroid) {
1311
- return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
1311
+ return '<span contenteditable="true" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '&#8203;');
1312
1312
  }
1313
1313
  else {
1314
- return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : ' ');
1314
+ return '<span contenteditable="false" class="e-mention-chip">' + showChar + value + '</span>'.concat(typeof this.suffixText === 'string' ? this.suffixText : '&#8203;');
1315
1315
  }
1316
1316
  }
1317
1317
  else {
@@ -493,7 +493,9 @@ var CheckBoxSelection = /** @class */ (function () {
493
493
  if (l10n.getConstant('selectAllText') === '') {
494
494
  l10n = new L10n('dropdowns', l10nLocale, this.parent.locale);
495
495
  }
496
- this.selectAllSpan.textContent = unSelect ? l10n.getConstant('unSelectAllText') : l10n.getConstant('selectAllText');
496
+ if (!isNullOrUndefined(this.selectAllSpan)) {
497
+ this.selectAllSpan.textContent = unSelect ? l10n.getConstant('unSelectAllText') : l10n.getConstant('selectAllText');
498
+ }
497
499
  }
498
500
  };
499
501
  CheckBoxSelection.prototype.getActiveList = function (args) {
@@ -1406,7 +1406,9 @@ var MultiSelect = /** @class */ (function (_super) {
1406
1406
  MultiSelect.prototype.expandTextbox = function () {
1407
1407
  var size = 5;
1408
1408
  if (this.placeholder) {
1409
- size = size > this.inputElement.placeholder.length ? size : this.inputElement.placeholder.length;
1409
+ var codePoint = this.placeholder.charCodeAt(0);
1410
+ var sizeMultiplier = (0xAC00 <= codePoint && codePoint <= 0xD7AF) ? 1.5 : (0x4E00 <= codePoint && codePoint <= 0x9FFF) ? 2 : 1;
1411
+ size = size > this.inputElement.placeholder.length ? size : this.inputElement.placeholder.length * sizeMultiplier;
1410
1412
  }
1411
1413
  if (this.inputElement.value.length > size) {
1412
1414
  this.inputElement.size = this.inputElement.value.length;
@@ -3087,7 +3089,7 @@ var MultiSelect = /** @class */ (function (_super) {
3087
3089
  if (this.mode === 'CheckBox') {
3088
3090
  this.refreshPlaceHolder();
3089
3091
  this.refreshInputHight();
3090
- if (!this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
3092
+ if (this.changeOnBlur && isClearAll && (isNullOrUndefined(this.value) || this.value.length === 0)) {
3091
3093
  this.updateValueState(e, this.value, this.tempValues);
3092
3094
  }
3093
3095
  }
@@ -4806,6 +4808,10 @@ var MultiSelect = /** @class */ (function (_super) {
4806
4808
  if (!this.closePopupOnSelect && this.isPopupOpen()) {
4807
4809
  this.refreshPopup();
4808
4810
  }
4811
+ if (this.isPopupOpen() && this.mode === 'CheckBox' && this.list && this.list.querySelector('.e-active.e-disable')) {
4812
+ var activeItems = this.list.querySelectorAll('li.' + dropDownBaseClasses.li + '.e-active' + '.e-disable');
4813
+ removeClass(activeItems, 'e-disable');
4814
+ }
4809
4815
  this.preventChange = this.isAngular && this.preventChange ? !this.preventChange : this.preventChange;
4810
4816
  break;
4811
4817
  case 'width':
@@ -5464,8 +5470,10 @@ var MultiSelect = /** @class */ (function (_super) {
5464
5470
  if (e.result.length > 0) {
5465
5471
  listItems_2 = e.result;
5466
5472
  _this.initStatus = false;
5467
- _this.initialValueUpdate(listItems_2, true);
5468
- _this.initialUpdate();
5473
+ setTimeout(function () {
5474
+ _this.initialValueUpdate(listItems_2, true);
5475
+ _this.initialUpdate();
5476
+ }, 100);
5469
5477
  _this.initStatus = true;
5470
5478
  }
5471
5479
  });