@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
|
@@ -14221,6 +14221,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14221
14221
|
}
|
|
14222
14222
|
}
|
|
14223
14223
|
});
|
|
14224
|
+
this.checkCollision(this.popupWrapper);
|
|
14224
14225
|
this.popupContentElement = this.popupObj.element.querySelector('.e-content');
|
|
14225
14226
|
if (this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering) {
|
|
14226
14227
|
this.notify('deviceSearchBox', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox' });
|
|
@@ -14230,6 +14231,15 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14230
14231
|
}
|
|
14231
14232
|
}
|
|
14232
14233
|
};
|
|
14234
|
+
MultiSelect.prototype.checkCollision = function (popupEle) {
|
|
14235
|
+
if (!(this.mode === 'CheckBox' && Browser.isDevice && this.allowFiltering)) {
|
|
14236
|
+
var collision = isCollide(popupEle);
|
|
14237
|
+
if (collision.length > 0) {
|
|
14238
|
+
popupEle.style.marginTop = -parseInt(getComputedStyle(popupEle).marginTop, 10) + 'px';
|
|
14239
|
+
}
|
|
14240
|
+
this.popupObj.resolveCollision();
|
|
14241
|
+
}
|
|
14242
|
+
};
|
|
14233
14243
|
MultiSelect.prototype.setHeaderTemplate = function () {
|
|
14234
14244
|
var compiledString;
|
|
14235
14245
|
if (this.header) {
|
|
@@ -17284,13 +17294,20 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
17284
17294
|
if (this.parent.allowFiltering && this.parent.targetInputElement.value === '') {
|
|
17285
17295
|
this.parent.search(null);
|
|
17286
17296
|
}
|
|
17287
|
-
this.parent.refreshPopup();
|
|
17288
17297
|
this.parent.refreshListItems(null);
|
|
17298
|
+
this.parent.refreshPopup();
|
|
17289
17299
|
this.clearIconElement.style.visibility = 'hidden';
|
|
17290
17300
|
this.filterInput.focus();
|
|
17291
17301
|
this.setReorder(e);
|
|
17302
|
+
this.boundPreventListSelection = this.preventListSelection.bind(this);
|
|
17303
|
+
this.parent.popupWrapper.addEventListener('mouseup', this.boundPreventListSelection, true);
|
|
17292
17304
|
e.preventDefault();
|
|
17293
17305
|
};
|
|
17306
|
+
CheckBoxSelection.prototype.preventListSelection = function (e) {
|
|
17307
|
+
e.stopPropagation();
|
|
17308
|
+
this.parent.popupWrapper.removeEventListener('mouseup', this.boundPreventListSelection, true);
|
|
17309
|
+
this.boundPreventListSelection = null;
|
|
17310
|
+
};
|
|
17294
17311
|
CheckBoxSelection.prototype.setDeviceSearchBox = function () {
|
|
17295
17312
|
this.parent.popupObj.element.classList.add(device);
|
|
17296
17313
|
this.parent.popupObj.element.classList.add(mobileFilter);
|