@syncfusion/ej2-dropdowns 25.1.35 → 25.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.
- package/CHANGELOG.md +12 -0
- 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 +18 -1
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -1
- 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 +7 -7
- package/src/multi-select/checkbox-selection.d.ts +2 -0
- package/src/multi-select/checkbox-selection.js +8 -1
- package/src/multi-select/multi-select-model.d.ts +1 -1
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +11 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/material-dark.css +9 -0
- package/styles/material.css +9 -0
- package/styles/multi-select/_fluent-definition.scss +1 -1
- package/styles/multi-select/_material-dark-definition.scss +11 -0
- package/styles/multi-select/_material-definition.scss +11 -0
- package/styles/multi-select/fluent-dark.css +1 -1
- package/styles/multi-select/fluent.css +1 -1
- package/styles/multi-select/material-dark.css +9 -0
- package/styles/multi-select/material.css +9 -0
|
@@ -13972,6 +13972,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13972
13972
|
}
|
|
13973
13973
|
}
|
|
13974
13974
|
});
|
|
13975
|
+
this.checkCollision(this.popupWrapper);
|
|
13975
13976
|
this.popupContentElement = this.popupObj.element.querySelector('.e-content');
|
|
13976
13977
|
if (this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering) {
|
|
13977
13978
|
this.notify('deviceSearchBox', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox' });
|
|
@@ -13981,6 +13982,15 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13981
13982
|
}
|
|
13982
13983
|
}
|
|
13983
13984
|
}
|
|
13985
|
+
checkCollision(popupEle) {
|
|
13986
|
+
if (!(this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering)) {
|
|
13987
|
+
const collision = isCollide(popupEle);
|
|
13988
|
+
if (collision.length > 0) {
|
|
13989
|
+
popupEle.style.marginTop = -parseInt(getComputedStyle(popupEle).marginTop, 10) + 'px';
|
|
13990
|
+
}
|
|
13991
|
+
this.popupObj.resolveCollision();
|
|
13992
|
+
}
|
|
13993
|
+
}
|
|
13984
13994
|
setHeaderTemplate() {
|
|
13985
13995
|
let compiledString;
|
|
13986
13996
|
if (this.header) {
|
|
@@ -17018,13 +17028,20 @@ class CheckBoxSelection {
|
|
|
17018
17028
|
if (this.parent.allowFiltering && this.parent.targetInputElement.value === '') {
|
|
17019
17029
|
this.parent.search(null);
|
|
17020
17030
|
}
|
|
17021
|
-
this.parent.refreshPopup();
|
|
17022
17031
|
this.parent.refreshListItems(null);
|
|
17032
|
+
this.parent.refreshPopup();
|
|
17023
17033
|
this.clearIconElement.style.visibility = 'hidden';
|
|
17024
17034
|
this.filterInput.focus();
|
|
17025
17035
|
this.setReorder(e);
|
|
17036
|
+
this.boundPreventListSelection = this.preventListSelection.bind(this);
|
|
17037
|
+
this.parent.popupWrapper.addEventListener('mouseup', this.boundPreventListSelection, true);
|
|
17026
17038
|
e.preventDefault();
|
|
17027
17039
|
}
|
|
17040
|
+
preventListSelection(e) {
|
|
17041
|
+
e.stopPropagation();
|
|
17042
|
+
this.parent.popupWrapper.removeEventListener('mouseup', this.boundPreventListSelection, true);
|
|
17043
|
+
this.boundPreventListSelection = null;
|
|
17044
|
+
}
|
|
17028
17045
|
setDeviceSearchBox() {
|
|
17029
17046
|
this.parent.popupObj.element.classList.add(device);
|
|
17030
17047
|
this.parent.popupObj.element.classList.add(mobileFilter);
|