@syncfusion/ej2-dropdowns 23.1.44 → 23.2.4
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 +20 -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 +23 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +23 -3
- 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 +12 -12
- package/src/drop-down-list/drop-down-list.js +4 -1
- package/src/list-box/list-box.d.ts +3 -0
- package/src/list-box/list-box.js +19 -2
- package/styles/bootstrap-dark.css +5 -0
- package/styles/bootstrap5-dark.css +2 -1
- package/styles/bootstrap5.css +2 -1
- package/styles/fabric-dark.css +5 -0
- package/styles/fluent-dark.css +2 -1
- package/styles/fluent.css +2 -1
- package/styles/highcontrast.css +5 -0
- package/styles/multi-select/_bootstrap-dark-definition.scss +5 -0
- package/styles/multi-select/_bootstrap5-definition.scss +2 -1
- package/styles/multi-select/_fabric-dark-definition.scss +5 -0
- package/styles/multi-select/_fluent-definition.scss +2 -1
- package/styles/multi-select/_highcontrast-definition.scss +5 -0
- package/styles/multi-select/_tailwind-definition.scss +2 -1
- package/styles/multi-select/bootstrap-dark.css +5 -0
- package/styles/multi-select/bootstrap5-dark.css +2 -1
- package/styles/multi-select/bootstrap5.css +2 -1
- package/styles/multi-select/fabric-dark.css +5 -0
- package/styles/multi-select/fluent-dark.css +2 -1
- package/styles/multi-select/fluent.css +2 -1
- package/styles/multi-select/highcontrast.css +5 -0
- package/styles/multi-select/tailwind-dark.css +2 -1
- package/styles/multi-select/tailwind.css +2 -1
- package/styles/tailwind-dark.css +2 -1
- package/styles/tailwind.css +2 -1
|
@@ -2819,6 +2819,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2819
2819
|
DropDownList.prototype.updateUpDownAction = function (e, isVirtualKeyAction) {
|
|
2820
2820
|
if (this.allowFiltering && !this.enableVirtualization && this.getModuleName() !== 'autocomplete') {
|
|
2821
2821
|
var value_1 = this.getItemData().value;
|
|
2822
|
+
if (isNullOrUndefined(value_1)) {
|
|
2823
|
+
value_1 = 'null';
|
|
2824
|
+
}
|
|
2822
2825
|
var filterIndex = this.getIndexByValue(value_1);
|
|
2823
2826
|
if (!isNullOrUndefined(filterIndex)) {
|
|
2824
2827
|
this.activeIndex = filterIndex;
|
|
@@ -3047,7 +3050,6 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3047
3050
|
if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
|
|
3048
3051
|
this.isDocumentClick = true;
|
|
3049
3052
|
var isActive = this.isRequested;
|
|
3050
|
-
this.isInteracted = false;
|
|
3051
3053
|
this.hidePopup(e);
|
|
3052
3054
|
if (!isActive) {
|
|
3053
3055
|
this.onFocusOut();
|
|
@@ -5403,6 +5405,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5403
5405
|
this.isSelectCustom = false;
|
|
5404
5406
|
this.clearAll(e);
|
|
5405
5407
|
}
|
|
5408
|
+
this.isInteracted = false;
|
|
5406
5409
|
};
|
|
5407
5410
|
/* eslint-disable valid-jsdoc, jsdoc/require-param */
|
|
5408
5411
|
/**
|
|
@@ -15669,6 +15672,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15669
15672
|
});
|
|
15670
15673
|
};
|
|
15671
15674
|
ListBox.prototype.triggerDrag = function (args) {
|
|
15675
|
+
var _this = this;
|
|
15672
15676
|
var scrollParent;
|
|
15673
15677
|
var boundRect;
|
|
15674
15678
|
var scrollMoved = 36;
|
|
@@ -15688,6 +15692,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15688
15692
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15689
15693
|
var event = args.event;
|
|
15690
15694
|
var wrapper;
|
|
15695
|
+
this.stopTimer();
|
|
15691
15696
|
if (args.target && (args.target.classList.contains('e-listbox-wrapper') || args.target.classList.contains('e-list-item')
|
|
15692
15697
|
|| args.target.classList.contains('e-filter-parent') || args.target.classList.contains('e-input-group')
|
|
15693
15698
|
|| args.target.closest('.e-list-item'))) {
|
|
@@ -15707,10 +15712,10 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15707
15712
|
}
|
|
15708
15713
|
boundRect = scrollParent.getBoundingClientRect();
|
|
15709
15714
|
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
15710
|
-
|
|
15715
|
+
this.timer = window.setInterval(function () { _this.setScrollDown(scrollParent, scrollHeight, true); }, 70);
|
|
15711
15716
|
}
|
|
15712
15717
|
else if ((event.clientY - scrollMoved) - boundRect.y < 1) {
|
|
15713
|
-
|
|
15718
|
+
this.timer = window.setInterval(function () { _this.setScrollDown(scrollParent, scrollHeight, false); }, 70);
|
|
15714
15719
|
}
|
|
15715
15720
|
}
|
|
15716
15721
|
if (args.target === null) {
|
|
@@ -15718,7 +15723,19 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15718
15723
|
}
|
|
15719
15724
|
this.trigger('drag', this.getDragArgs(args));
|
|
15720
15725
|
};
|
|
15726
|
+
ListBox.prototype.setScrollDown = function (scrollElem, scrollPixel, isScrollDown) {
|
|
15727
|
+
if (isScrollDown) {
|
|
15728
|
+
scrollElem.scrollTop = scrollElem.scrollTop + scrollPixel;
|
|
15729
|
+
}
|
|
15730
|
+
else {
|
|
15731
|
+
scrollElem.scrollTop = scrollElem.scrollTop - scrollPixel;
|
|
15732
|
+
}
|
|
15733
|
+
};
|
|
15734
|
+
ListBox.prototype.stopTimer = function () {
|
|
15735
|
+
window.clearInterval(this.timer);
|
|
15736
|
+
};
|
|
15721
15737
|
ListBox.prototype.beforeDragEnd = function (args) {
|
|
15738
|
+
this.stopTimer();
|
|
15722
15739
|
var items = [];
|
|
15723
15740
|
this.dragValue = this.getFormattedValue(args.droppedElement.getAttribute('data-value'));
|
|
15724
15741
|
if (this.value.indexOf(this.dragValue) > -1) {
|
|
@@ -17169,6 +17186,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
17169
17186
|
var list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
|
|
17170
17187
|
if (backCommand) {
|
|
17171
17188
|
this.remoteCustomValue = false;
|
|
17189
|
+
if (this.isAngular && this.itemTemplate) {
|
|
17190
|
+
list = this.renderItems(this.listData, fields);
|
|
17191
|
+
}
|
|
17172
17192
|
this.onActionComplete(list, this.jsonData);
|
|
17173
17193
|
this.notify('reOrder', { module: 'CheckBoxSelection', enable: this.selectionSettings.showCheckbox, e: this });
|
|
17174
17194
|
}
|