@syncfusion/ej2-dropdowns 31.2.5 → 31.2.15
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 +39 -26
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +39 -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 +13 -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 === '') {
|
|
@@ -5879,6 +5879,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5879
5879
|
_this.getFocusElement();
|
|
5880
5880
|
_this.checkCollision(popupEle_1);
|
|
5881
5881
|
if (Browser.isDevice) {
|
|
5882
|
+
_this.popupObj.resolveCollision();
|
|
5882
5883
|
if ((parseInt(_this.popupWidth.toString(), 10) > window.outerWidth) &&
|
|
5883
5884
|
!(_this.getModuleName() === 'dropdownlist' && _this.allowFiltering)) {
|
|
5884
5885
|
_this.popupObj.element.classList.add('e-wide-popup');
|
|
@@ -6729,9 +6730,18 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6729
6730
|
}
|
|
6730
6731
|
else if (this.element.tagName === 'SELECT' && this.element.options[0]) {
|
|
6731
6732
|
var selectElement = this.element;
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6733
|
+
var selectIndex = selectElement.selectedIndex;
|
|
6734
|
+
if (selectIndex >= 0) {
|
|
6735
|
+
this.value = this.allowObjectBinding
|
|
6736
|
+
? this.getDataByValue(selectElement.options[selectIndex].value)
|
|
6737
|
+
: selectElement.options[selectIndex].value;
|
|
6738
|
+
this.text = isNullOrUndefined(this.value) ? null : selectElement.options[selectIndex].textContent;
|
|
6739
|
+
}
|
|
6740
|
+
else {
|
|
6741
|
+
if (this.index === null) {
|
|
6742
|
+
this.index = -1;
|
|
6743
|
+
}
|
|
6744
|
+
}
|
|
6735
6745
|
this.initValue();
|
|
6736
6746
|
}
|
|
6737
6747
|
this.setEnabled();
|
|
@@ -9635,8 +9645,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9635
9645
|
var isFooter = closest(target, '.' + FOOTER);
|
|
9636
9646
|
var isScroller = target.classList.contains(DROPDOWN) ? true :
|
|
9637
9647
|
(matches$1(target, '.e-ddt .e-popup') || matches$1(target, '.e-ddt .e-treeview'));
|
|
9648
|
+
var isSelectAllArea = target.classList.contains('e-ripple-container');
|
|
9638
9649
|
if ((this.isPopupOpen && ((!isNullOrUndefined(this.inputWrapper) &&
|
|
9639
|
-
this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter)) ||
|
|
9650
|
+
this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter || isSelectAllArea)) ||
|
|
9640
9651
|
((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
|
|
9641
9652
|
(this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
|
|
9642
9653
|
|| target.classList.contains(CHECKBOXFRAME)))))) {
|
|
@@ -13539,23 +13550,21 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13539
13550
|
}
|
|
13540
13551
|
};
|
|
13541
13552
|
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
|
-
}
|
|
13553
|
+
if (this.allowFiltering && this.allowResize && this.keyboardEvent && this.popupObj && this.list) {
|
|
13554
|
+
var filterText = this.inputElement && this.inputElement.value;
|
|
13555
|
+
var filteredItems = this.list.querySelectorAll('li.e-list-item:not(.e-hide-listitem):not(.e-disabled)');
|
|
13556
|
+
var isFiltering = filterText && filterText.length > 0;
|
|
13557
|
+
if (isFiltering && filteredItems.length > 0) {
|
|
13558
|
+
var itemHeight = filteredItems[0].offsetHeight;
|
|
13559
|
+
var newHeight = filteredItems.length * itemHeight;
|
|
13560
|
+
this.popupObj.element.style.maxHeight = newHeight + 16 + 'px';
|
|
13561
|
+
this.list.style.maxHeight = newHeight + 'px';
|
|
13562
|
+
}
|
|
13563
|
+
else if (!isFiltering) {
|
|
13564
|
+
var restoreHeight = this.resizeHeight || parseInt(this.popupHeight, 10);
|
|
13565
|
+
this.popupObj.element.style.maxHeight = restoreHeight + 'px';
|
|
13566
|
+
this.list.style.maxHeight = restoreHeight + 'px';
|
|
13567
|
+
this.setResize();
|
|
13559
13568
|
}
|
|
13560
13569
|
}
|
|
13561
13570
|
};
|
|
@@ -15668,9 +15677,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15668
15677
|
MultiSelect.prototype.removeChipSelection = function () {
|
|
15669
15678
|
if (this.chipCollectionWrapper) {
|
|
15670
15679
|
var selectedChips = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP$1 + '.' + CHIP_SELECTED);
|
|
15671
|
-
if (selectedChips && selectedChips.length
|
|
15672
|
-
|
|
15673
|
-
|
|
15680
|
+
if (selectedChips && selectedChips.length === 1) {
|
|
15681
|
+
selectedChips[0].removeAttribute('id');
|
|
15682
|
+
if (!isNullOrUndefined(this.inputElement) && this.inputElement.hasAttribute('aria-activedescendant')) {
|
|
15683
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
15674
15684
|
}
|
|
15675
15685
|
}
|
|
15676
15686
|
this.removeChipFocus();
|
|
@@ -15679,7 +15689,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15679
15689
|
MultiSelect.prototype.addChipSelection = function (element, e) {
|
|
15680
15690
|
addClass([element], CHIP_SELECTED);
|
|
15681
15691
|
if (element) {
|
|
15682
|
-
element.setAttribute('
|
|
15692
|
+
element.setAttribute('id', this.element.id + '_chip_item');
|
|
15693
|
+
if (!isNullOrUndefined(this.inputElement) && element.id && !this.inputElement.hasAttribute('aria-activedescendant')) {
|
|
15694
|
+
this.inputElement.setAttribute('aria-activedescendant', element.id);
|
|
15695
|
+
}
|
|
15683
15696
|
}
|
|
15684
15697
|
this.trigger('chipSelection', e);
|
|
15685
15698
|
};
|