@syncfusion/ej2-dropdowns 26.2.8 → 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.
- 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 +29 -21
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +29 -21
- 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 +6 -6
- package/src/common/virtual-scroll.js +5 -7
- package/src/drop-down-base/drop-down-base.js +10 -5
- package/src/drop-down-list/drop-down-list.js +4 -1
- package/src/list-box/list-box.js +6 -6
- package/src/multi-select/multi-select.js +4 -2
- package/styles/auto-complete/fluent2.css +3 -1031
- package/styles/auto-complete/material3-dark.css +1 -54
- package/styles/auto-complete/material3.css +2 -109
- package/styles/bootstrap-dark.css +9 -0
- package/styles/bootstrap.css +9 -0
- package/styles/bootstrap4.css +9 -0
- package/styles/bootstrap5-dark.css +9 -0
- package/styles/bootstrap5.css +9 -0
- package/styles/combo-box/fluent2.css +3 -1031
- package/styles/combo-box/material3-dark.css +1 -54
- package/styles/combo-box/material3.css +2 -109
- package/styles/drop-down-base/_theme.scss +2 -0
- package/styles/drop-down-base/bootstrap-dark.css +2 -0
- package/styles/drop-down-base/bootstrap.css +2 -0
- package/styles/drop-down-base/bootstrap4.css +2 -0
- package/styles/drop-down-base/bootstrap5-dark.css +2 -0
- package/styles/drop-down-base/bootstrap5.css +2 -0
- package/styles/drop-down-base/fabric-dark.css +2 -0
- package/styles/drop-down-base/fabric.css +2 -0
- package/styles/drop-down-base/fluent-dark.css +2 -0
- package/styles/drop-down-base/fluent.css +2 -0
- package/styles/drop-down-base/fluent2.css +7 -1033
- package/styles/drop-down-base/highcontrast-light.css +2 -0
- package/styles/drop-down-base/highcontrast.css +2 -0
- package/styles/drop-down-base/material-dark.css +2 -0
- package/styles/drop-down-base/material.css +2 -0
- package/styles/drop-down-base/material3-dark.css +3 -54
- package/styles/drop-down-base/material3.css +5 -110
- package/styles/drop-down-base/tailwind-dark.css +2 -0
- package/styles/drop-down-base/tailwind.css +2 -0
- package/styles/drop-down-list/fluent2.css +5 -1033
- package/styles/drop-down-list/material3-dark.css +1 -54
- package/styles/drop-down-list/material3.css +3 -110
- package/styles/drop-down-tree/fluent2.css +3 -1031
- package/styles/drop-down-tree/material3-dark.css +1 -54
- package/styles/drop-down-tree/material3.css +2 -109
- package/styles/fabric-dark.css +9 -0
- package/styles/fabric.css +9 -0
- package/styles/fluent-dark.css +9 -0
- package/styles/fluent.css +9 -0
- package/styles/fluent2.css +14 -1033
- package/styles/highcontrast-light.css +9 -0
- package/styles/highcontrast.css +9 -0
- package/styles/list-box/_layout.scss +6 -0
- package/styles/list-box/bootstrap-dark.css +6 -0
- package/styles/list-box/bootstrap.css +6 -0
- package/styles/list-box/bootstrap4.css +6 -0
- package/styles/list-box/bootstrap5-dark.css +6 -0
- package/styles/list-box/bootstrap5.css +6 -0
- package/styles/list-box/fabric-dark.css +6 -0
- package/styles/list-box/fabric.css +6 -0
- package/styles/list-box/fluent-dark.css +6 -0
- package/styles/list-box/fluent.css +6 -0
- package/styles/list-box/fluent2.css +9 -1031
- package/styles/list-box/highcontrast-light.css +6 -0
- package/styles/list-box/highcontrast.css +6 -0
- package/styles/list-box/material-dark.css +6 -0
- package/styles/list-box/material.css +6 -0
- package/styles/list-box/material3-dark.css +7 -54
- package/styles/list-box/material3.css +8 -109
- package/styles/list-box/tailwind-dark.css +6 -0
- package/styles/list-box/tailwind.css +6 -0
- package/styles/material-dark.css +9 -0
- package/styles/material.css +9 -0
- package/styles/material3-dark.css +10 -54
- package/styles/material3.css +12 -110
- package/styles/mention/fluent2.css +3 -1031
- package/styles/mention/material3-dark.css +1 -54
- package/styles/mention/material3.css +2 -109
- package/styles/multi-select/_layout.scss +1 -0
- package/styles/multi-select/bootstrap-dark.css +1 -0
- package/styles/multi-select/bootstrap.css +1 -0
- package/styles/multi-select/bootstrap4.css +1 -0
- package/styles/multi-select/bootstrap5-dark.css +1 -0
- package/styles/multi-select/bootstrap5.css +1 -0
- package/styles/multi-select/fabric-dark.css +1 -0
- package/styles/multi-select/fabric.css +1 -0
- package/styles/multi-select/fluent-dark.css +1 -0
- package/styles/multi-select/fluent.css +1 -0
- package/styles/multi-select/fluent2.css +6 -1033
- package/styles/multi-select/highcontrast-light.css +1 -0
- package/styles/multi-select/highcontrast.css +1 -0
- package/styles/multi-select/material-dark.css +1 -0
- package/styles/multi-select/material.css +1 -0
- package/styles/multi-select/material3-dark.css +2 -54
- package/styles/multi-select/material3.css +4 -110
- package/styles/multi-select/tailwind-dark.css +1 -0
- package/styles/multi-select/tailwind.css +1 -0
- package/styles/tailwind-dark.css +9 -0
- package/styles/tailwind.css +9 -0
|
@@ -634,10 +634,8 @@ class VirtualScroll {
|
|
|
634
634
|
else if (this.parent.isScrollActionTriggered) {
|
|
635
635
|
this.parent.isPreventKeyAction = false;
|
|
636
636
|
this.parent.isScrollActionTriggered = false;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
let translateY = scrollArgs.offset.top - (listElement.offsetHeight * virtualListCount);
|
|
640
|
-
this.parent.list.getElementsByClassName('e-virtual-ddl-content')[0].style.transform = "translate(0px," + translateY + "px)";
|
|
637
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
638
|
+
this.parent.list.getElementsByClassName('e-virtual-ddl-content')[0].style = this.parent.getTransformValues();
|
|
641
639
|
}
|
|
642
640
|
this.parent.previousInfo = this.parent.viewPortInfo;
|
|
643
641
|
}
|
|
@@ -671,13 +669,13 @@ class VirtualScroll {
|
|
|
671
669
|
}
|
|
672
670
|
}
|
|
673
671
|
else if (infoType.direction === 'up') {
|
|
674
|
-
if (infoType.startIndex && infoType.endIndex) {
|
|
672
|
+
if ((infoType.startIndex && infoType.endIndex) || (Math.ceil(exactTopIndex) > this.parent.previousStartIndex)) {
|
|
675
673
|
let loadAtIndex = Math.round(((infoType.startIndex * rowHeight) + (pageSizeBy4 * rowHeight)) / rowHeight);
|
|
676
|
-
if (exactTopIndex < loadAtIndex) {
|
|
674
|
+
if (exactTopIndex < loadAtIndex || (Math.ceil(exactTopIndex) > this.parent.previousStartIndex)) {
|
|
677
675
|
let idxAddedToExactTop = (pageSizeBy4) > infoViewIndices ? pageSizeBy4 :
|
|
678
676
|
(infoViewIndices + infoViewIndices / 4);
|
|
679
677
|
let eIndex = Math.round(exactTopIndex + idxAddedToExactTop);
|
|
680
|
-
infoType.endIndex = (eIndex < totalItemCount
|
|
678
|
+
infoType.endIndex = (eIndex < totalItemCount) ? eIndex : totalItemCount;
|
|
681
679
|
let sIndex = infoType.endIndex - this.parent.virtualItemCount;
|
|
682
680
|
infoType.startIndex = sIndex > 0 ? sIndex : 0;
|
|
683
681
|
infoType.endIndex = sIndex < 0 ? this.parent.virtualItemCount : infoType.endIndex;
|
|
@@ -1041,7 +1039,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1041
1039
|
}
|
|
1042
1040
|
}
|
|
1043
1041
|
else {
|
|
1044
|
-
if (noDataElement[i] instanceof HTMLElement || noDataElement[i] instanceof Text) {
|
|
1042
|
+
if (noDataElement[i] instanceof HTMLElement || ((noDataElement[i] instanceof Text) && (noDataElement[i]).textContent !== '')) {
|
|
1045
1043
|
ele.appendChild(noDataElement[i]);
|
|
1046
1044
|
}
|
|
1047
1045
|
}
|
|
@@ -1845,10 +1843,15 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1845
1843
|
}
|
|
1846
1844
|
}
|
|
1847
1845
|
getPageCount(returnExactCount) {
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1846
|
+
if (this.list) {
|
|
1847
|
+
const liHeight = this.list.classList.contains(dropDownBaseClasses.noData) ? null :
|
|
1848
|
+
getComputedStyle(this.getItems()[0], null).getPropertyValue('height');
|
|
1849
|
+
let pageCount = Math.round(this.list.getBoundingClientRect().height / parseInt(liHeight, 10));
|
|
1850
|
+
return returnExactCount ? pageCount : Math.round(pageCount);
|
|
1851
|
+
}
|
|
1852
|
+
else {
|
|
1853
|
+
return 0;
|
|
1854
|
+
}
|
|
1852
1855
|
}
|
|
1853
1856
|
updateGroupHeader(index, liCollections, target) {
|
|
1854
1857
|
if (!isNullOrUndefined(liCollections[index]) && liCollections[index].classList.contains(dropDownBaseClasses.group)) {
|
|
@@ -5869,9 +5872,12 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
5869
5872
|
checkData(newProp) {
|
|
5870
5873
|
if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource)) && this.itemTemplate && this.allowFiltering &&
|
|
5871
5874
|
!(this.isListSearched && (newProp.dataSource instanceof DataManager))) {
|
|
5872
|
-
if (this.list) {
|
|
5875
|
+
if (this.list && !(this.isReact)) {
|
|
5873
5876
|
this.list.innerHTML = '';
|
|
5874
5877
|
}
|
|
5878
|
+
else {
|
|
5879
|
+
this.list = null;
|
|
5880
|
+
}
|
|
5875
5881
|
this.actionCompleteData = { ulElement: null, list: null, isUpdated: false };
|
|
5876
5882
|
}
|
|
5877
5883
|
this.isListSearched = false;
|
|
@@ -17049,8 +17055,10 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
17049
17055
|
if (e.result.length > 0) {
|
|
17050
17056
|
listItems = e.result;
|
|
17051
17057
|
this.initStatus = false;
|
|
17052
|
-
|
|
17053
|
-
|
|
17058
|
+
setTimeout(() => {
|
|
17059
|
+
this.initialValueUpdate(listItems, true);
|
|
17060
|
+
this.initialUpdate();
|
|
17061
|
+
}, 100);
|
|
17054
17062
|
this.initStatus = true;
|
|
17055
17063
|
}
|
|
17056
17064
|
});
|
|
@@ -19209,6 +19217,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
19209
19217
|
}
|
|
19210
19218
|
this.inputString = this.filterInput.value;
|
|
19211
19219
|
this.filterWireEvents();
|
|
19220
|
+
this.ulElement.style.setProperty('height', 'calc(100% - ' + (this.filterParent.offsetHeight) + 'px)', 'important');
|
|
19212
19221
|
return filterInputObj;
|
|
19213
19222
|
}
|
|
19214
19223
|
}
|
|
@@ -20016,11 +20025,8 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
20016
20025
|
}
|
|
20017
20026
|
resizeHandler() {
|
|
20018
20027
|
if (this.list && !(this.cssClass && this.cssClass.indexOf('e-horizontal-listbox') > -1)) {
|
|
20019
|
-
if (this.list.
|
|
20020
|
-
this.
|
|
20021
|
-
}
|
|
20022
|
-
else {
|
|
20023
|
-
this.list.querySelector('.e-list-parent').style.display = 'block';
|
|
20028
|
+
if (this.list.getElementsByClassName('e-filter-parent').length > 0 && this.allowFiltering) {
|
|
20029
|
+
this.ulElement.style.setProperty('height', 'calc(100% - ' + (this.filterParent.offsetHeight) + 'px)', 'important');
|
|
20024
20030
|
}
|
|
20025
20031
|
}
|
|
20026
20032
|
}
|
|
@@ -20353,7 +20359,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
20353
20359
|
this.initDraggable();
|
|
20354
20360
|
}
|
|
20355
20361
|
else {
|
|
20356
|
-
|
|
20362
|
+
if (this.ulElement.classList.contains("e-sortable")) {
|
|
20363
|
+
getComponent(this.ulElement, 'sortable').destroy();
|
|
20364
|
+
}
|
|
20357
20365
|
}
|
|
20358
20366
|
break;
|
|
20359
20367
|
case 'allowFiltering':
|