@syncfusion/ej2-dropdowns 31.2.5 → 31.2.12
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 +38 -26
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +38 -26
- 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 +8 -8
- package/src/common/highlight-search.js +1 -1
- package/src/drop-down-list/drop-down-list.js +12 -3
- package/src/drop-down-tree/drop-down-tree.js +2 -1
- package/src/multi-select/multi-select.js +23 -21
- package/styles/bds-lite.css +9 -0
- package/styles/bds.css +9 -0
- package/styles/bootstrap-dark-lite.css +9 -0
- package/styles/bootstrap-dark.css +9 -0
- package/styles/bootstrap-lite.css +9 -0
- package/styles/bootstrap.css +9 -0
- package/styles/bootstrap4-lite.css +9 -0
- package/styles/bootstrap4.css +9 -0
- package/styles/bootstrap5-dark-lite.css +9 -0
- package/styles/bootstrap5-dark.css +9 -0
- package/styles/bootstrap5-lite.css +9 -0
- package/styles/bootstrap5.3-lite.css +9 -0
- package/styles/bootstrap5.3.css +9 -0
- package/styles/bootstrap5.css +9 -0
- package/styles/drop-down-list/_bds-definition.scss +3 -0
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +2 -1
- package/styles/drop-down-list/_bootstrap-definition.scss +2 -1
- package/styles/drop-down-list/_bootstrap4-definition.scss +3 -0
- package/styles/drop-down-list/_bootstrap5-definition.scss +3 -0
- package/styles/drop-down-list/_bootstrap5.3-definition.scss +3 -0
- package/styles/drop-down-list/_fabric-dark-definition.scss +2 -1
- package/styles/drop-down-list/_fabric-definition.scss +2 -1
- package/styles/drop-down-list/_fluent-definition.scss +3 -0
- package/styles/drop-down-list/_fluent2-definition.scss +3 -0
- package/styles/drop-down-list/_fusionnew-definition.scss +3 -0
- package/styles/drop-down-list/_highcontrast-definition.scss +2 -1
- package/styles/drop-down-list/_highcontrast-light-definition.scss +2 -1
- package/styles/drop-down-list/_layout.scss +9 -0
- package/styles/drop-down-list/_material-dark-definition.scss +2 -0
- package/styles/drop-down-list/_material-definition.scss +2 -0
- package/styles/drop-down-list/_material3-definition.scss +3 -0
- package/styles/drop-down-list/_tailwind-definition.scss +3 -0
- package/styles/drop-down-list/_tailwind3-definition.scss +3 -0
- package/styles/drop-down-list/bds.css +9 -0
- package/styles/drop-down-list/bootstrap-dark.css +9 -0
- package/styles/drop-down-list/bootstrap.css +9 -0
- package/styles/drop-down-list/bootstrap4.css +9 -0
- package/styles/drop-down-list/bootstrap5-dark.css +9 -0
- package/styles/drop-down-list/bootstrap5.3.css +9 -0
- package/styles/drop-down-list/bootstrap5.css +9 -0
- package/styles/drop-down-list/fabric-dark.css +9 -0
- package/styles/drop-down-list/fabric.css +9 -0
- package/styles/drop-down-list/fluent-dark.css +9 -0
- package/styles/drop-down-list/fluent.css +9 -0
- package/styles/drop-down-list/fluent2.css +9 -0
- package/styles/drop-down-list/highcontrast-light.css +9 -0
- package/styles/drop-down-list/highcontrast.css +9 -0
- package/styles/drop-down-list/material-dark.css +9 -0
- package/styles/drop-down-list/material.css +9 -0
- package/styles/drop-down-list/material3-dark.css +9 -0
- package/styles/drop-down-list/material3.css +9 -0
- package/styles/drop-down-list/tailwind-dark.css +9 -0
- package/styles/drop-down-list/tailwind.css +9 -0
- package/styles/drop-down-list/tailwind3.css +9 -0
- package/styles/fabric-dark-lite.css +9 -0
- package/styles/fabric-dark.css +9 -0
- package/styles/fabric-lite.css +9 -0
- package/styles/fabric.css +9 -0
- package/styles/fluent-dark-lite.css +9 -0
- package/styles/fluent-dark.css +9 -0
- package/styles/fluent-lite.css +9 -0
- package/styles/fluent.css +9 -0
- package/styles/fluent2-lite.css +9 -0
- package/styles/fluent2.css +9 -0
- package/styles/highcontrast-light-lite.css +9 -0
- package/styles/highcontrast-light.css +9 -0
- package/styles/highcontrast-lite.css +9 -0
- package/styles/highcontrast.css +9 -0
- package/styles/material-dark-lite.css +9 -0
- package/styles/material-dark.css +9 -0
- package/styles/material-lite.css +9 -0
- package/styles/material.css +9 -0
- package/styles/material3-dark-lite.css +9 -0
- package/styles/material3-dark.css +9 -0
- package/styles/material3-lite.css +9 -0
- package/styles/material3.css +9 -0
- package/styles/tailwind-dark-lite.css +9 -0
- package/styles/tailwind-dark.css +9 -0
- package/styles/tailwind-lite.css +9 -0
- package/styles/tailwind.css +9 -0
- package/styles/tailwind3-lite.css +9 -0
- package/styles/tailwind3.css +9 -0
|
@@ -209,7 +209,7 @@ function resetIncrementalSearchValues(elementId) {
|
|
|
209
209
|
*/
|
|
210
210
|
function highlightSearch(element, query, ignoreCase, type) {
|
|
211
211
|
var isHtmlElement = /<[^>]*>/g.test(element.innerText);
|
|
212
|
-
if (isHtmlElement) {
|
|
212
|
+
if (isHtmlElement && query !== '') {
|
|
213
213
|
element.innerText = element.innerText.replace(/[\u00A0-\u9999<>&]/g, function (match) { return "&#" + match.charCodeAt(0) + ";"; });
|
|
214
214
|
}
|
|
215
215
|
if (query === '') {
|
|
@@ -6729,9 +6729,18 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6729
6729
|
}
|
|
6730
6730
|
else if (this.element.tagName === 'SELECT' && this.element.options[0]) {
|
|
6731
6731
|
var selectElement = this.element;
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6732
|
+
var selectIndex = selectElement.selectedIndex;
|
|
6733
|
+
if (selectIndex >= 0) {
|
|
6734
|
+
this.value = this.allowObjectBinding
|
|
6735
|
+
? this.getDataByValue(selectElement.options[selectIndex].value)
|
|
6736
|
+
: selectElement.options[selectIndex].value;
|
|
6737
|
+
this.text = isNullOrUndefined(this.value) ? null : selectElement.options[selectIndex].textContent;
|
|
6738
|
+
}
|
|
6739
|
+
else {
|
|
6740
|
+
if (this.index === null) {
|
|
6741
|
+
this.index = -1;
|
|
6742
|
+
}
|
|
6743
|
+
}
|
|
6735
6744
|
this.initValue();
|
|
6736
6745
|
}
|
|
6737
6746
|
this.setEnabled();
|
|
@@ -9635,8 +9644,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9635
9644
|
var isFooter = closest(target, '.' + FOOTER);
|
|
9636
9645
|
var isScroller = target.classList.contains(DROPDOWN) ? true :
|
|
9637
9646
|
(matches$1(target, '.e-ddt .e-popup') || matches$1(target, '.e-ddt .e-treeview'));
|
|
9647
|
+
var isSelectAllArea = target.classList.contains('e-ripple-container');
|
|
9638
9648
|
if ((this.isPopupOpen && ((!isNullOrUndefined(this.inputWrapper) &&
|
|
9639
|
-
this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter)) ||
|
|
9649
|
+
this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter || isSelectAllArea)) ||
|
|
9640
9650
|
((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
|
|
9641
9651
|
(this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
|
|
9642
9652
|
|| target.classList.contains(CHECKBOXFRAME)))))) {
|
|
@@ -13539,23 +13549,21 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13539
13549
|
}
|
|
13540
13550
|
};
|
|
13541
13551
|
MultiSelect.prototype.updatePopupHeightOnFilter = function () {
|
|
13542
|
-
if (this.allowFiltering && this.allowResize && this.keyboardEvent) {
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
this.setResize();
|
|
13558
|
-
}
|
|
13552
|
+
if (this.allowFiltering && this.allowResize && this.keyboardEvent && this.popupObj && this.list) {
|
|
13553
|
+
var filterText = this.inputElement && this.inputElement.value;
|
|
13554
|
+
var filteredItems = this.list.querySelectorAll('li.e-list-item:not(.e-hide-listitem):not(.e-disabled)');
|
|
13555
|
+
var isFiltering = filterText && filterText.length > 0;
|
|
13556
|
+
if (isFiltering && filteredItems.length > 0) {
|
|
13557
|
+
var itemHeight = filteredItems[0].offsetHeight;
|
|
13558
|
+
var newHeight = filteredItems.length * itemHeight;
|
|
13559
|
+
this.popupObj.element.style.maxHeight = newHeight + 16 + 'px';
|
|
13560
|
+
this.list.style.maxHeight = newHeight + 'px';
|
|
13561
|
+
}
|
|
13562
|
+
else if (!isFiltering) {
|
|
13563
|
+
var restoreHeight = this.resizeHeight || parseInt(this.popupHeight, 10);
|
|
13564
|
+
this.popupObj.element.style.maxHeight = restoreHeight + 'px';
|
|
13565
|
+
this.list.style.maxHeight = restoreHeight + 'px';
|
|
13566
|
+
this.setResize();
|
|
13559
13567
|
}
|
|
13560
13568
|
}
|
|
13561
13569
|
};
|
|
@@ -15668,9 +15676,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15668
15676
|
MultiSelect.prototype.removeChipSelection = function () {
|
|
15669
15677
|
if (this.chipCollectionWrapper) {
|
|
15670
15678
|
var selectedChips = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP$1 + '.' + CHIP_SELECTED);
|
|
15671
|
-
if (selectedChips && selectedChips.length
|
|
15672
|
-
|
|
15673
|
-
|
|
15679
|
+
if (selectedChips && selectedChips.length === 1) {
|
|
15680
|
+
selectedChips[0].removeAttribute('id');
|
|
15681
|
+
if (!isNullOrUndefined(this.inputElement) && this.inputElement.hasAttribute('aria-activedescendant')) {
|
|
15682
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
15674
15683
|
}
|
|
15675
15684
|
}
|
|
15676
15685
|
this.removeChipFocus();
|
|
@@ -15679,7 +15688,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15679
15688
|
MultiSelect.prototype.addChipSelection = function (element, e) {
|
|
15680
15689
|
addClass([element], CHIP_SELECTED);
|
|
15681
15690
|
if (element) {
|
|
15682
|
-
element.setAttribute('
|
|
15691
|
+
element.setAttribute('id', this.element.id + '_chip_item');
|
|
15692
|
+
if (!isNullOrUndefined(this.inputElement) && element.id && !this.inputElement.hasAttribute('aria-activedescendant')) {
|
|
15693
|
+
this.inputElement.setAttribute('aria-activedescendant', element.id);
|
|
15694
|
+
}
|
|
15683
15695
|
}
|
|
15684
15696
|
this.trigger('chipSelection', e);
|
|
15685
15697
|
};
|