@syncfusion/ej2-dropdowns 23.1.43 → 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 +28 -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 +27 -7
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +27 -6
- 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-base/drop-down-base.js +3 -1
- 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/src/mention/mention.js +1 -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
|
@@ -845,7 +845,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
847
|
else {
|
|
848
|
-
|
|
848
|
+
if (noDataElement[i] instanceof HTMLElement) {
|
|
849
|
+
ele.appendChild(noDataElement[i]);
|
|
850
|
+
}
|
|
849
851
|
}
|
|
850
852
|
}
|
|
851
853
|
}
|
|
@@ -2817,6 +2819,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2817
2819
|
DropDownList.prototype.updateUpDownAction = function (e, isVirtualKeyAction) {
|
|
2818
2820
|
if (this.allowFiltering && !this.enableVirtualization && this.getModuleName() !== 'autocomplete') {
|
|
2819
2821
|
var value_1 = this.getItemData().value;
|
|
2822
|
+
if (isNullOrUndefined(value_1)) {
|
|
2823
|
+
value_1 = 'null';
|
|
2824
|
+
}
|
|
2820
2825
|
var filterIndex = this.getIndexByValue(value_1);
|
|
2821
2826
|
if (!isNullOrUndefined(filterIndex)) {
|
|
2822
2827
|
this.activeIndex = filterIndex;
|
|
@@ -3045,7 +3050,6 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3045
3050
|
if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
|
|
3046
3051
|
this.isDocumentClick = true;
|
|
3047
3052
|
var isActive = this.isRequested;
|
|
3048
|
-
this.isInteracted = false;
|
|
3049
3053
|
this.hidePopup(e);
|
|
3050
3054
|
if (!isActive) {
|
|
3051
3055
|
this.onFocusOut();
|
|
@@ -5401,6 +5405,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
5401
5405
|
this.isSelectCustom = false;
|
|
5402
5406
|
this.clearAll(e);
|
|
5403
5407
|
}
|
|
5408
|
+
this.isInteracted = false;
|
|
5404
5409
|
};
|
|
5405
5410
|
/* eslint-disable valid-jsdoc, jsdoc/require-param */
|
|
5406
5411
|
/**
|
|
@@ -15667,6 +15672,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15667
15672
|
});
|
|
15668
15673
|
};
|
|
15669
15674
|
ListBox.prototype.triggerDrag = function (args) {
|
|
15675
|
+
var _this = this;
|
|
15670
15676
|
var scrollParent;
|
|
15671
15677
|
var boundRect;
|
|
15672
15678
|
var scrollMoved = 36;
|
|
@@ -15686,6 +15692,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15686
15692
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15687
15693
|
var event = args.event;
|
|
15688
15694
|
var wrapper;
|
|
15695
|
+
this.stopTimer();
|
|
15689
15696
|
if (args.target && (args.target.classList.contains('e-listbox-wrapper') || args.target.classList.contains('e-list-item')
|
|
15690
15697
|
|| args.target.classList.contains('e-filter-parent') || args.target.classList.contains('e-input-group')
|
|
15691
15698
|
|| args.target.closest('.e-list-item'))) {
|
|
@@ -15705,10 +15712,10 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15705
15712
|
}
|
|
15706
15713
|
boundRect = scrollParent.getBoundingClientRect();
|
|
15707
15714
|
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
15708
|
-
|
|
15715
|
+
this.timer = window.setInterval(function () { _this.setScrollDown(scrollParent, scrollHeight, true); }, 70);
|
|
15709
15716
|
}
|
|
15710
15717
|
else if ((event.clientY - scrollMoved) - boundRect.y < 1) {
|
|
15711
|
-
|
|
15718
|
+
this.timer = window.setInterval(function () { _this.setScrollDown(scrollParent, scrollHeight, false); }, 70);
|
|
15712
15719
|
}
|
|
15713
15720
|
}
|
|
15714
15721
|
if (args.target === null) {
|
|
@@ -15716,7 +15723,19 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15716
15723
|
}
|
|
15717
15724
|
this.trigger('drag', this.getDragArgs(args));
|
|
15718
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
|
+
};
|
|
15719
15737
|
ListBox.prototype.beforeDragEnd = function (args) {
|
|
15738
|
+
this.stopTimer();
|
|
15720
15739
|
var items = [];
|
|
15721
15740
|
this.dragValue = this.getFormattedValue(args.droppedElement.getAttribute('data-value'));
|
|
15722
15741
|
if (this.value.indexOf(this.dragValue) > -1) {
|
|
@@ -17167,6 +17186,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
17167
17186
|
var list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
|
|
17168
17187
|
if (backCommand) {
|
|
17169
17188
|
this.remoteCustomValue = false;
|
|
17189
|
+
if (this.isAngular && this.itemTemplate) {
|
|
17190
|
+
list = this.renderItems(this.listData, fields);
|
|
17191
|
+
}
|
|
17170
17192
|
this.onActionComplete(list, this.jsonData);
|
|
17171
17193
|
this.notify('reOrder', { module: 'CheckBoxSelection', enable: this.selectionSettings.showCheckbox, e: this });
|
|
17172
17194
|
}
|
|
@@ -18001,7 +18023,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
18001
18023
|
var currentRange = this.getTextRange();
|
|
18002
18024
|
var lastWordRange = this.getLastLetter(currentRange);
|
|
18003
18025
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
18004
|
-
var Regex = new RegExp(this.mentionChar, 'g');
|
|
18026
|
+
var Regex = new RegExp(this.mentionChar.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'g');
|
|
18005
18027
|
var charRegex = new RegExp('[a-zA-Z]', 'g');
|
|
18006
18028
|
if (e.key === 'Shift' || e.keyCode === 37 || e.keyCode === 39) {
|
|
18007
18029
|
return;
|
|
@@ -19144,7 +19166,6 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
19144
19166
|
this.previousSelectedLI = null;
|
|
19145
19167
|
this.item = null;
|
|
19146
19168
|
this.selectedLI = null;
|
|
19147
|
-
this.inputElement.innerText = null;
|
|
19148
19169
|
this.popupObj = null;
|
|
19149
19170
|
_super.prototype.destroy.call(this);
|
|
19150
19171
|
};
|