@syncfusion/ej2-dropdowns 28.2.3 → 28.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/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 +24 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +25 -4
- 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/drop-down-base/drop-down-base.d.ts +2 -0
- package/src/drop-down-base/drop-down-base.js +9 -2
- package/src/drop-down-tree/drop-down-tree.js +6 -0
- package/src/list-box/list-box.d.ts +1 -0
- package/src/list-box/list-box.js +6 -2
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +4 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.2.
|
|
3
|
+
* version : 28.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@28.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@28.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-WulRpVG/X8MKND+b8VTrUWqLsSAuAuKBXGfbE+MjWzmsCBEnJGLHs6AXGK/h3nZDkYfnnEls6NzbntieoldQQg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"/@syncfusion/ej2-spreadsheet",
|
|
37
37
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
38
38
|
],
|
|
39
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.
|
|
40
|
-
"_shasum": "
|
|
39
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.2.3.tgz",
|
|
40
|
+
"_shasum": "ca88d206fbb04487749275d9457708a7755a54a7",
|
|
41
41
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
42
42
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
43
43
|
"author": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@syncfusion/ej2-data": "~28.2.3",
|
|
50
50
|
"@syncfusion/ej2-inputs": "~28.2.3",
|
|
51
51
|
"@syncfusion/ej2-lists": "~28.2.3",
|
|
52
|
-
"@syncfusion/ej2-navigations": "~28.2.
|
|
52
|
+
"@syncfusion/ej2-navigations": "~28.2.4",
|
|
53
53
|
"@syncfusion/ej2-notifications": "~28.2.3",
|
|
54
54
|
"@syncfusion/ej2-popups": "~28.2.3"
|
|
55
55
|
},
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"module": "./index.js",
|
|
77
77
|
"name": "@syncfusion/ej2-dropdowns",
|
|
78
78
|
"typings": "index.d.ts",
|
|
79
|
-
"version": "28.2.
|
|
79
|
+
"version": "28.2.4",
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
82
82
|
}
|
|
@@ -294,6 +294,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
294
294
|
protected preventDefActionFilter: boolean;
|
|
295
295
|
protected isDynamicData: boolean;
|
|
296
296
|
protected isPrimitiveData: boolean;
|
|
297
|
+
protected isCustomFiltering: boolean;
|
|
297
298
|
protected virtualListInfo: VirtualInfo;
|
|
298
299
|
protected viewPortInfo: VirtualInfo;
|
|
299
300
|
protected selectedValueInfo: VirtualInfo;
|
|
@@ -577,6 +578,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
577
578
|
private setListData;
|
|
578
579
|
protected handleVirtualKeyboardActions(e: KeyboardEventArgs, pageCount: number): void;
|
|
579
580
|
protected updatePopupState(): void;
|
|
581
|
+
protected updatePopupPosition(): void;
|
|
580
582
|
protected virtualSelectionAll(state: boolean, li: NodeListOf<HTMLElement> | HTMLElement[], event: MouseEvent | KeyboardEventArgs): void;
|
|
581
583
|
protected updateRemoteData(): void;
|
|
582
584
|
private bindChildItems;
|
|
@@ -136,6 +136,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
136
136
|
_this.CurrentEvent = null;
|
|
137
137
|
_this.isDynamicData = false;
|
|
138
138
|
_this.isPrimitiveData = false;
|
|
139
|
+
_this.isCustomFiltering = false;
|
|
139
140
|
_this.virtualListInfo = {
|
|
140
141
|
currentPageNumber: null,
|
|
141
142
|
direction: null,
|
|
@@ -724,7 +725,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
724
725
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
725
726
|
newQuery.queries[queryElements].e.nos = e.count;
|
|
726
727
|
}
|
|
727
|
-
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal')) {
|
|
728
|
+
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal') && !_this.isCustomFiltering) {
|
|
728
729
|
isReOrder = false;
|
|
729
730
|
}
|
|
730
731
|
}
|
|
@@ -748,6 +749,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
748
749
|
_this.trigger('actionComplete', e, function (e) {
|
|
749
750
|
if (!e.cancel) {
|
|
750
751
|
_this.isRequesting = false;
|
|
752
|
+
_this.isCustomFiltering = false;
|
|
751
753
|
var listItems = e.result;
|
|
752
754
|
if (_this.isIncrementalRequest) {
|
|
753
755
|
ulElement = _this.renderItems(listItems, fields);
|
|
@@ -785,6 +787,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
785
787
|
}
|
|
786
788
|
if (_this.isVirtualizationEnabled) {
|
|
787
789
|
_this.getFilteringSkeletonCount();
|
|
790
|
+
_this.updatePopupPosition();
|
|
788
791
|
}
|
|
789
792
|
if (_this.virtualSelectAll && _this.virtualSelectAllData) {
|
|
790
793
|
_this.virtualSelectionAll(_this.virtualSelectAllState, _this.liCollections, _this.CurrentEvent);
|
|
@@ -826,7 +829,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
826
829
|
newQuery.queries[queryElements].e.nos = listItems.count;
|
|
827
830
|
listItems = (newQuery).executeLocal(dataManager);
|
|
828
831
|
}
|
|
829
|
-
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal')) {
|
|
832
|
+
if (_this.getModuleName() === 'multiselect' && (newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.operator === 'equal') && !_this.isCustomFiltering) {
|
|
830
833
|
isReOrder = false;
|
|
831
834
|
}
|
|
832
835
|
}
|
|
@@ -859,6 +862,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
859
862
|
var localDataArgs = { cancel: false, result: listItems };
|
|
860
863
|
_this.isPreventChange = _this.isAngular && _this.preventChange ? true : _this.isPreventChange;
|
|
861
864
|
_this.trigger('actionComplete', localDataArgs, function (localDataArgs) {
|
|
865
|
+
_this.isCustomFiltering = false;
|
|
862
866
|
if (_this.isIncrementalRequest) {
|
|
863
867
|
ulElement = _this.renderItems(localDataArgs.result, fields);
|
|
864
868
|
return;
|
|
@@ -893,6 +897,9 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
893
897
|
DropDownBase.prototype.updatePopupState = function () {
|
|
894
898
|
// Used this method in component side.
|
|
895
899
|
};
|
|
900
|
+
DropDownBase.prototype.updatePopupPosition = function () {
|
|
901
|
+
// Used this method in component side.
|
|
902
|
+
};
|
|
896
903
|
DropDownBase.prototype.virtualSelectionAll = function (state, li, event) {
|
|
897
904
|
// Used this method in component side.
|
|
898
905
|
};
|
|
@@ -2631,6 +2631,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2631
2631
|
}
|
|
2632
2632
|
chip.appendChild(chipContent);
|
|
2633
2633
|
this.chipCollection.appendChild(chip);
|
|
2634
|
+
if (this.isReact) {
|
|
2635
|
+
this.renderReactTemplates();
|
|
2636
|
+
}
|
|
2634
2637
|
};
|
|
2635
2638
|
DropDownTree.prototype.setSelectAllWrapper = function (state) {
|
|
2636
2639
|
if (this.isFirstRender) {
|
|
@@ -3360,6 +3363,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
3360
3363
|
addClass([this.inputWrapper], [INPUTFOCUS]);
|
|
3361
3364
|
}
|
|
3362
3365
|
}
|
|
3366
|
+
if (this.isFilteredData) {
|
|
3367
|
+
this.treeObj['treeData'] = this.treeData;
|
|
3368
|
+
}
|
|
3363
3369
|
if (this.destroyPopupOnHide) {
|
|
3364
3370
|
this.isFirstRender = true;
|
|
3365
3371
|
this.destroyPopup();
|
package/src/list-box/list-box.js
CHANGED
|
@@ -100,6 +100,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
100
100
|
function ListBox(options, element) {
|
|
101
101
|
var _this = _super.call(this, options, element) || this;
|
|
102
102
|
_this.isValidKey = false;
|
|
103
|
+
_this.isBackSpace = false;
|
|
103
104
|
_this.isDataSourceUpdate = false;
|
|
104
105
|
_this.keyDownStatus = false;
|
|
105
106
|
return _this;
|
|
@@ -368,6 +369,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
368
369
|
}
|
|
369
370
|
};
|
|
370
371
|
ListBox.prototype.onActionComplete = function (ulElement, list, e) {
|
|
372
|
+
var _this = this;
|
|
371
373
|
var searchEle;
|
|
372
374
|
var filterElem;
|
|
373
375
|
var txtLength;
|
|
@@ -434,8 +436,9 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
434
436
|
}
|
|
435
437
|
filterElem.selectionStart = txtLength;
|
|
436
438
|
filterElem.selectionEnd = txtLength;
|
|
437
|
-
if (filterElem.value !== '') {
|
|
439
|
+
if (filterElem.value !== '' || (filterElem.value === '' && this.isBackSpace)) {
|
|
438
440
|
filterElem.focus();
|
|
441
|
+
setTimeout(function () { _this.isBackSpace = false; });
|
|
439
442
|
}
|
|
440
443
|
}
|
|
441
444
|
}
|
|
@@ -2040,7 +2043,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
2040
2043
|
};
|
|
2041
2044
|
ListBox.prototype.KeyUp = function (e) {
|
|
2042
2045
|
var _this = this;
|
|
2043
|
-
if (this.allowFiltering &&
|
|
2046
|
+
if (this.allowFiltering && e.ctrlKey && e.keyCode === 65) {
|
|
2044
2047
|
e.preventDefault();
|
|
2045
2048
|
return;
|
|
2046
2049
|
}
|
|
@@ -2049,6 +2052,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
2049
2052
|
if (!isNullOrUndefined(isWordCharacter)) {
|
|
2050
2053
|
this.isValidKey = true;
|
|
2051
2054
|
}
|
|
2055
|
+
this.isBackSpace = e.keyCode === 8;
|
|
2052
2056
|
this.isValidKey = (e.keyCode === 8) || (e.keyCode === 46) || this.isValidKey;
|
|
2053
2057
|
if (this.isValidKey) {
|
|
2054
2058
|
this.isValidKey = false;
|
|
@@ -738,6 +738,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
738
738
|
private refreshPopup;
|
|
739
739
|
private checkTextLength;
|
|
740
740
|
private popupKeyActions;
|
|
741
|
+
protected updatePopupPosition(): void;
|
|
741
742
|
private updateAriaAttribute;
|
|
742
743
|
private homeNavigation;
|
|
743
744
|
private updateSelectionList;
|
|
@@ -1590,6 +1590,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1590
1590
|
break;
|
|
1591
1591
|
}
|
|
1592
1592
|
};
|
|
1593
|
+
MultiSelect.prototype.updatePopupPosition = function () {
|
|
1594
|
+
this.refreshPopup();
|
|
1595
|
+
};
|
|
1593
1596
|
MultiSelect.prototype.updateAriaAttribute = function () {
|
|
1594
1597
|
var focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
|
|
1595
1598
|
if (!isNullOrUndefined(focusedItem)) {
|
|
@@ -3464,6 +3467,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3464
3467
|
_this.isFiltered = true;
|
|
3465
3468
|
_this.customFilterQuery = query;
|
|
3466
3469
|
_this.remoteFilterAction = true;
|
|
3470
|
+
_this.isCustomFiltering = true;
|
|
3467
3471
|
_this.dataUpdater(dataSource, query, fields);
|
|
3468
3472
|
},
|
|
3469
3473
|
event: e,
|