@syncfusion/ej2-dropdowns 30.1.40 → 30.1.42
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 +120 -23
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +120 -23
- 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 +5 -5
- package/src/combo-box/combo-box.js +2 -2
- package/src/common/interface.d.ts +1 -0
- package/src/common/virtual-scroll.js +2 -1
- package/src/drop-down-base/drop-down-base.d.ts +6 -0
- package/src/drop-down-base/drop-down-base.js +82 -5
- package/src/drop-down-list/drop-down-list.js +8 -1
- package/src/drop-down-tree/drop-down-tree.js +1 -1
- package/src/list-box/list-box.js +0 -3
- package/src/multi-select/multi-select.d.ts +0 -1
- package/src/multi-select/multi-select.js +25 -10
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 30.1.
|
|
3
|
+
* version : 30.1.42
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-dropdowns",
|
|
3
|
-
"version": "30.1.
|
|
3
|
+
"version": "30.1.42",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-dropdowns.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~30.1.
|
|
11
|
+
"@syncfusion/ej2-base": "~30.1.42",
|
|
12
12
|
"@syncfusion/ej2-data": "~30.1.40",
|
|
13
13
|
"@syncfusion/ej2-inputs": "~30.1.40",
|
|
14
|
-
"@syncfusion/ej2-lists": "~30.1.
|
|
15
|
-
"@syncfusion/ej2-navigations": "~30.1.
|
|
14
|
+
"@syncfusion/ej2-lists": "~30.1.42",
|
|
15
|
+
"@syncfusion/ej2-navigations": "~30.1.42",
|
|
16
16
|
"@syncfusion/ej2-notifications": "~30.1.37",
|
|
17
|
-
"@syncfusion/ej2-popups": "~30.1.
|
|
17
|
+
"@syncfusion/ej2-popups": "~30.1.42"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {},
|
|
20
20
|
"keywords": [
|
|
@@ -207,8 +207,8 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
207
207
|
var dataItem = _this.getItemData();
|
|
208
208
|
var value = _this.allowObjectBinding ?
|
|
209
209
|
_this.getDataByValue(dataItem.value) : dataItem.value;
|
|
210
|
-
if ((_this.value === dataItem.value && _this.text !== dataItem.text) ||
|
|
211
|
-
(_this.value !== dataItem.value && _this.text === dataItem.text)) {
|
|
210
|
+
if ((_this.value === dataItem.value && _this.text !== dataItem.text.toString()) ||
|
|
211
|
+
(_this.value !== dataItem.value && _this.text === dataItem.text.toString())) {
|
|
212
212
|
_this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
213
213
|
}
|
|
214
214
|
}
|
|
@@ -79,6 +79,7 @@ export interface IDropdownlist extends Component<HTMLElement> {
|
|
|
79
79
|
appendUncheckList: boolean;
|
|
80
80
|
keyCode: number;
|
|
81
81
|
preventSetCurrentData: boolean;
|
|
82
|
+
remoteDataCount: number;
|
|
82
83
|
virtualGroupDataSource: {
|
|
83
84
|
[key: string]: Object;
|
|
84
85
|
}[] | DataManager | string[] | number[] | boolean[];
|
|
@@ -156,7 +156,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
156
156
|
if (this.component === 'combobox') {
|
|
157
157
|
var totalData = 0;
|
|
158
158
|
if (this.parent.dataSource instanceof DataManager) {
|
|
159
|
-
totalData = this.parent.
|
|
159
|
+
totalData = this.parent.remoteDataCount;
|
|
160
160
|
}
|
|
161
161
|
else if (this.parent.dataSource && this.parent.dataSource.length > 0) {
|
|
162
162
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -485,6 +485,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
485
485
|
this.parent.isVirtualScrolling = true;
|
|
486
486
|
setTimeout(function () {
|
|
487
487
|
_this.parent.pageCount = _this.parent.getPageCount();
|
|
488
|
+
_this.parent.isRequesting = false;
|
|
488
489
|
_this.virtualScrollRefreshAsync().then(function () {
|
|
489
490
|
if (_this.parent.popupObj) {
|
|
490
491
|
_this.parent.list = _this.parent.popupObj.element.querySelector('.' + 'e-content') || select('.' + 'e-content');
|
|
@@ -197,6 +197,10 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
197
197
|
private scrollTimer;
|
|
198
198
|
protected list: HTMLElement;
|
|
199
199
|
protected fixedHeaderElement: HTMLElement;
|
|
200
|
+
protected isFilterAction: boolean;
|
|
201
|
+
private isUpdateGroupTemplate;
|
|
202
|
+
private groupHeaderItems;
|
|
203
|
+
private fiteredGroupHeaderItems;
|
|
200
204
|
protected keyboardModule: KeyboardEvents;
|
|
201
205
|
protected enableRtlElements: HTMLElement[];
|
|
202
206
|
protected rippleFun: Function;
|
|
@@ -578,6 +582,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
578
582
|
* @returns {void}
|
|
579
583
|
*/
|
|
580
584
|
private setListData;
|
|
585
|
+
private updateGroupHeaderItems;
|
|
581
586
|
protected handleVirtualKeyboardActions(e: KeyboardEventArgs, pageCount: number): void;
|
|
582
587
|
protected updatePopupState(): void;
|
|
583
588
|
protected updatePopupPosition(): void;
|
|
@@ -633,6 +638,7 @@ export declare class DropDownBase extends Component<HTMLElement> implements INot
|
|
|
633
638
|
protected scrollStop(e?: Event, isDownkey?: boolean): void;
|
|
634
639
|
protected getPageCount(returnExactCount?: boolean): number;
|
|
635
640
|
private updateGroupHeader;
|
|
641
|
+
private updateFixedGroupTemplateHader;
|
|
636
642
|
private updateGroupFixedHeader;
|
|
637
643
|
protected getValidLi(): HTMLElement;
|
|
638
644
|
/**
|
|
@@ -733,11 +733,12 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
733
733
|
_this.emptyDataRequest(fields);
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
|
|
736
|
+
var query_1 = _this.getQuery(eventArgs.query);
|
|
737
|
+
eventArgs.data.executeQuery(query_1).then(function (e) {
|
|
737
738
|
_this.isPreventChange = _this.isAngular && _this.preventChange ? true : _this.isPreventChange;
|
|
738
739
|
var isReOrder = true;
|
|
739
740
|
if (!_this.virtualSelectAll) {
|
|
740
|
-
var newQuery =
|
|
741
|
+
var newQuery = query_1.clone();
|
|
741
742
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
742
743
|
if (newQuery.queries[queryElements].fn === 'onWhere') {
|
|
743
744
|
isWhereExist_1 = true;
|
|
@@ -792,10 +793,15 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
792
793
|
_this.totalItemCount = !_this.virtualSelectAll ? e.count : _this.totalItemCount;
|
|
793
794
|
ulElement = _this.renderItems(listItems, fields);
|
|
794
795
|
_this.appendUncheckList = false;
|
|
796
|
+
_this.isUpdateGroupTemplate = false;
|
|
795
797
|
_this.onActionComplete(ulElement, listItems, e);
|
|
796
798
|
if (_this.groupTemplate) {
|
|
799
|
+
if (_this.isAngular && _this.getModuleName() === 'multiselect') {
|
|
800
|
+
_this.updateGroupHeaderItems(ulElement);
|
|
801
|
+
}
|
|
797
802
|
_this.renderGroupTemplate(ulElement);
|
|
798
803
|
}
|
|
804
|
+
_this.isUpdateGroupTemplate = true;
|
|
799
805
|
_this.isRequested = false;
|
|
800
806
|
_this.bindChildItems(listItems, ulElement, fields, e);
|
|
801
807
|
if (_this.getInitialData) {
|
|
@@ -898,10 +904,15 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
898
904
|
}
|
|
899
905
|
if (!localDataArgs.cancel) {
|
|
900
906
|
ulElement = _this.renderItems(localDataArgs.result, fields);
|
|
907
|
+
_this.isUpdateGroupTemplate = false;
|
|
901
908
|
_this.onActionComplete(ulElement, localDataArgs.result, event);
|
|
902
909
|
if (_this.groupTemplate) {
|
|
910
|
+
if (_this.isAngular && _this.getModuleName() === 'multiselect') {
|
|
911
|
+
_this.updateGroupHeaderItems(ulElement);
|
|
912
|
+
}
|
|
903
913
|
_this.renderGroupTemplate(ulElement);
|
|
904
914
|
}
|
|
915
|
+
_this.isUpdateGroupTemplate = true;
|
|
905
916
|
_this.bindChildItems(localDataArgs.result, ulElement, fields);
|
|
906
917
|
if (_this.getInitialData) {
|
|
907
918
|
_this.getInitialData = false;
|
|
@@ -920,6 +931,20 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
920
931
|
});
|
|
921
932
|
}
|
|
922
933
|
};
|
|
934
|
+
DropDownBase.prototype.updateGroupHeaderItems = function (ulElement) {
|
|
935
|
+
var headerElements = ulElement.querySelectorAll('.' + dropDownBaseClasses.group);
|
|
936
|
+
var clonedHeaders = [];
|
|
937
|
+
for (var i = 0; i < headerElements.length; i++) {
|
|
938
|
+
clonedHeaders.push(headerElements[i].cloneNode ? headerElements[i].cloneNode(true) :
|
|
939
|
+
headerElements[i]);
|
|
940
|
+
}
|
|
941
|
+
if (!this.isFilterAction) {
|
|
942
|
+
this.groupHeaderItems = clonedHeaders;
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
945
|
+
this.fiteredGroupHeaderItems = clonedHeaders;
|
|
946
|
+
}
|
|
947
|
+
};
|
|
923
948
|
DropDownBase.prototype.handleVirtualKeyboardActions = function (e, pageCount) {
|
|
924
949
|
// Used this method in component side.
|
|
925
950
|
};
|
|
@@ -1056,6 +1081,21 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1056
1081
|
if (!isNullOrUndefined(this.list)) {
|
|
1057
1082
|
if (!this.isVirtualizationEnabled) {
|
|
1058
1083
|
this.list.innerHTML = '';
|
|
1084
|
+
if (this.isUpdateGroupTemplate && this.isAngular && this.groupTemplate && this.getModuleName() === 'multiselect') {
|
|
1085
|
+
var headerItems = ulElement.querySelectorAll('.' + dropDownBaseClasses.group);
|
|
1086
|
+
if (headerItems.length > 0 && this.groupHeaderItems.length > 0) {
|
|
1087
|
+
var groupHeaderMap = {};
|
|
1088
|
+
for (var i = 0; i < this.groupHeaderItems.length; i++) {
|
|
1089
|
+
groupHeaderMap[this.groupHeaderItems[i].id] = this.groupHeaderItems[i].innerHTML;
|
|
1090
|
+
}
|
|
1091
|
+
for (var i = 0; i < headerItems.length; i++) {
|
|
1092
|
+
if (Object.prototype.hasOwnProperty.call(groupHeaderMap, headerItems[i].id)) {
|
|
1093
|
+
headerItems[i].innerHTML = groupHeaderMap[headerItems[i].id];
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
this.renderGroupTemplate(ulElement);
|
|
1098
|
+
}
|
|
1059
1099
|
this.list.appendChild(ulElement);
|
|
1060
1100
|
this.liCollections = this.list.querySelectorAll('.' + dropDownBaseClasses.li);
|
|
1061
1101
|
this.ulElement = this.list.querySelector('ul');
|
|
@@ -1151,7 +1191,9 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1151
1191
|
if (this.fields.groupBy !== null && this.dataSource || this.element.querySelector('.' + dropDownBaseClasses.group)) {
|
|
1152
1192
|
var dataSource = this.dataSource;
|
|
1153
1193
|
var option = { groupTemplateID: this.groupTemplateId, isStringTemplate: this.isStringTemplate };
|
|
1154
|
-
var headerItems =
|
|
1194
|
+
var headerItems = this.isAngular && this.getModuleName() === 'multiselect' && !isNullOrUndefined(listEle) &&
|
|
1195
|
+
listEle.classList.contains(dropDownBaseClasses.fixedHead) ? [listEle] :
|
|
1196
|
+
listEle.querySelectorAll('.' + dropDownBaseClasses.group);
|
|
1155
1197
|
var groupcheck = this.templateCompiler(this.groupTemplate);
|
|
1156
1198
|
if (typeof this.groupTemplate !== 'function' && groupcheck) {
|
|
1157
1199
|
var groupValue = select(this.groupTemplate, document).innerHTML.trim();
|
|
@@ -1294,10 +1336,38 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1294
1336
|
return false;
|
|
1295
1337
|
}
|
|
1296
1338
|
};
|
|
1339
|
+
DropDownBase.prototype.updateFixedGroupTemplateHader = function (element) {
|
|
1340
|
+
var groupData = element.cloneNode ? element.cloneNode(true) : element;
|
|
1341
|
+
var isGroupDataUpdated = false;
|
|
1342
|
+
if (this.groupHeaderItems && this.groupHeaderItems.length > 0) {
|
|
1343
|
+
for (var i = 0; i < this.groupHeaderItems.length; i++) {
|
|
1344
|
+
if (groupData.id === this.groupHeaderItems[i].id) {
|
|
1345
|
+
groupData.innerHTML = this.groupHeaderItems[i].innerHTML;
|
|
1346
|
+
isGroupDataUpdated = true;
|
|
1347
|
+
break;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
if (!isGroupDataUpdated && this.fiteredGroupHeaderItems && this.fiteredGroupHeaderItems.length > 0) {
|
|
1352
|
+
for (var i = 0; i < this.fiteredGroupHeaderItems.length; i++) {
|
|
1353
|
+
if (groupData.id === this.fiteredGroupHeaderItems[i].id) {
|
|
1354
|
+
groupData.innerHTML = this.fiteredGroupHeaderItems[i].innerHTML;
|
|
1355
|
+
break;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
this.fixedHeaderElement.innerHTML = groupData.innerHTML;
|
|
1360
|
+
this.renderGroupTemplate(this.fixedHeaderElement);
|
|
1361
|
+
};
|
|
1297
1362
|
DropDownBase.prototype.updateGroupFixedHeader = function (element, target) {
|
|
1298
1363
|
if (this.fixedHeaderElement) {
|
|
1299
1364
|
if (!isNullOrUndefined(element.innerHTML)) {
|
|
1300
|
-
this.
|
|
1365
|
+
if (this.groupTemplate && this.isAngular && this.getModuleName() === 'multiselect') {
|
|
1366
|
+
this.updateFixedGroupTemplateHader(element);
|
|
1367
|
+
}
|
|
1368
|
+
else {
|
|
1369
|
+
this.fixedHeaderElement.innerHTML = element.innerHTML;
|
|
1370
|
+
}
|
|
1301
1371
|
}
|
|
1302
1372
|
this.fixedHeaderElement.style.position = 'fixed';
|
|
1303
1373
|
this.fixedHeaderElement.style.top = (this.list.parentElement.offsetTop + this.list.offsetTop) - window.scrollY + 'px';
|
|
@@ -1487,7 +1557,12 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1487
1557
|
setStyleAttribute(this.fixedHeaderElement, { zIndex: 10 });
|
|
1488
1558
|
var firstLi = this.ulElement.querySelector('.' + dropDownBaseClasses.group + ':not(.e-hide-listitem)');
|
|
1489
1559
|
if (!isNullOrUndefined(firstLi)) {
|
|
1490
|
-
this.
|
|
1560
|
+
if (this.groupTemplate && this.isAngular && this.getModuleName() === 'multiselect') {
|
|
1561
|
+
this.updateFixedGroupTemplateHader(firstLi);
|
|
1562
|
+
}
|
|
1563
|
+
else {
|
|
1564
|
+
this.fixedHeaderElement.innerHTML = firstLi.innerHTML;
|
|
1565
|
+
}
|
|
1491
1566
|
}
|
|
1492
1567
|
};
|
|
1493
1568
|
DropDownBase.prototype.getSortedDataSource = function (dataSource) {
|
|
@@ -2043,6 +2118,8 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
2043
2118
|
this.ulElement = null;
|
|
2044
2119
|
this.list = null;
|
|
2045
2120
|
this.enableRtlElements = null;
|
|
2121
|
+
this.groupHeaderItems = null;
|
|
2122
|
+
this.fiteredGroupHeaderItems = null;
|
|
2046
2123
|
this.rippleFun = null;
|
|
2047
2124
|
_super.prototype.destroy.call(this);
|
|
2048
2125
|
};
|
|
@@ -2324,7 +2324,14 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2324
2324
|
return;
|
|
2325
2325
|
}
|
|
2326
2326
|
if (this.getInitialData) {
|
|
2327
|
-
this.
|
|
2327
|
+
if (this.itemTemplate && this.element.tagName === 'EJS-COMBOBOX' && this.allowFiltering) {
|
|
2328
|
+
setTimeout(function () {
|
|
2329
|
+
_this.updateActionCompleteDataValues(ulElement, list);
|
|
2330
|
+
}, 0);
|
|
2331
|
+
}
|
|
2332
|
+
else {
|
|
2333
|
+
this.updateActionCompleteDataValues(ulElement, list);
|
|
2334
|
+
}
|
|
2328
2335
|
if (this.enableVirtualization) {
|
|
2329
2336
|
this.updateSelectElementData(this.allowFiltering);
|
|
2330
2337
|
}
|
|
@@ -725,7 +725,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
725
725
|
if (this.isPopupOpen) {
|
|
726
726
|
this.hidePopup();
|
|
727
727
|
}
|
|
728
|
-
else if (
|
|
728
|
+
else if (e.type === 'touchstart' || ('button' in e && e.button !== 2)) {
|
|
729
729
|
this.focusIn(e);
|
|
730
730
|
this.renderPopup();
|
|
731
731
|
}
|
package/src/list-box/list-box.js
CHANGED
|
@@ -194,9 +194,6 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
194
194
|
this.unSelectAllText = l10nSelect.getConstant('unSelectAllText');
|
|
195
195
|
this.popupWrapper = this.list;
|
|
196
196
|
this.checkBoxSelectionModule.checkAllParent = null;
|
|
197
|
-
if (this.filterParent) {
|
|
198
|
-
this.filterParent = null;
|
|
199
|
-
}
|
|
200
197
|
this.notify('selectAll', {});
|
|
201
198
|
}
|
|
202
199
|
};
|
|
@@ -661,7 +661,6 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
661
661
|
private keyCode;
|
|
662
662
|
private beforePopupOpen;
|
|
663
663
|
private remoteCustomValue;
|
|
664
|
-
private filterAction;
|
|
665
664
|
private remoteFilterAction;
|
|
666
665
|
private selectAllEventData;
|
|
667
666
|
private selectAllEventEle;
|
|
@@ -890,7 +890,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
890
890
|
return filterQuery;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
if (this.
|
|
893
|
+
if (this.isFilterAction) {
|
|
894
894
|
if ((this.targetElement() !== null && !this.enableVirtualization) || (this.enableVirtualization &&
|
|
895
895
|
this.targetElement() !== null && this.targetElement().trim() !== '')) {
|
|
896
896
|
var dataType = this.typeOfData(this.dataSource).typeof;
|
|
@@ -1357,7 +1357,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1357
1357
|
this.ulElement = this.mainList;
|
|
1358
1358
|
}
|
|
1359
1359
|
this.checkPlaceholderSize();
|
|
1360
|
-
|
|
1360
|
+
if (this.element.querySelector('.e-multiselect .e-float-text-content') === null) {
|
|
1361
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
1362
|
+
}
|
|
1361
1363
|
this.calculateWidth();
|
|
1362
1364
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] &&
|
|
1363
1365
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
@@ -2549,7 +2551,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2549
2551
|
}
|
|
2550
2552
|
else {
|
|
2551
2553
|
this.setFloatLabelType();
|
|
2552
|
-
|
|
2554
|
+
if (this.element.querySelector('.e-multiselect .e-float-text-content') === null) {
|
|
2555
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
2556
|
+
}
|
|
2553
2557
|
}
|
|
2554
2558
|
this.expandTextbox();
|
|
2555
2559
|
};
|
|
@@ -3400,7 +3404,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3400
3404
|
this.clearAllCallback(e);
|
|
3401
3405
|
}
|
|
3402
3406
|
this.checkAndResetCache();
|
|
3403
|
-
|
|
3407
|
+
if (this.element.querySelector('.e-multiselect .e-float-text-content') === null) {
|
|
3408
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
3409
|
+
}
|
|
3404
3410
|
this.calculateWidth();
|
|
3405
3411
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
3406
3412
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
@@ -3556,7 +3562,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3556
3562
|
_this.isFilterPrevented = eventArgs.cancel;
|
|
3557
3563
|
if (!eventArgs.cancel) {
|
|
3558
3564
|
if (!_this.isFiltered && !eventArgs.preventDefaultAction) {
|
|
3559
|
-
_this.
|
|
3565
|
+
_this.isFilterAction = true;
|
|
3560
3566
|
_this.isFilteringAction = true;
|
|
3561
3567
|
if (_this.dataSource instanceof DataManager && _this.allowCustomValue) {
|
|
3562
3568
|
_this.isCustomRendered = false;
|
|
@@ -3712,7 +3718,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3712
3718
|
MultiSelect.prototype.initializeData = function () {
|
|
3713
3719
|
this.mainListCollection = [];
|
|
3714
3720
|
this.beforePopupOpen = false;
|
|
3715
|
-
this.
|
|
3721
|
+
this.isFilterAction = false;
|
|
3716
3722
|
this.remoteFilterAction = false;
|
|
3717
3723
|
this.isFirstClick = false;
|
|
3718
3724
|
this.mobFilter = true;
|
|
@@ -4046,7 +4052,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4046
4052
|
}
|
|
4047
4053
|
};
|
|
4048
4054
|
MultiSelect.prototype.updateDataList = function () {
|
|
4049
|
-
if (this.mainList && this.ulElement && !(this.isFiltered || this.
|
|
4055
|
+
if (this.mainList && this.ulElement && !(this.isFiltered || this.isFilterAction || this.targetElement().trim())) {
|
|
4050
4056
|
var isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
|
|
4051
4057
|
var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 &&
|
|
4052
4058
|
this.ulElement.children[0].childElementCount > 0) &&
|
|
@@ -4137,6 +4143,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4137
4143
|
removeClass(selectedItems, className);
|
|
4138
4144
|
while (temp > 0) {
|
|
4139
4145
|
selectedItems[temp - 1].setAttribute('aria-selected', 'false');
|
|
4146
|
+
if (this.mode === 'CheckBox') {
|
|
4147
|
+
if (selectedItems && (selectedItems.length > (temp - 1))) {
|
|
4148
|
+
removeClass([selectedItems[temp - 1].firstElementChild.lastElementChild], 'e-check');
|
|
4149
|
+
}
|
|
4150
|
+
}
|
|
4140
4151
|
temp--;
|
|
4141
4152
|
}
|
|
4142
4153
|
}
|
|
@@ -5285,7 +5296,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5285
5296
|
this.isDynamicDataChange = true;
|
|
5286
5297
|
}
|
|
5287
5298
|
if (this.getModuleName() === 'multiselect') {
|
|
5288
|
-
this.
|
|
5299
|
+
this.isFilterAction = false;
|
|
5289
5300
|
this.setUpdateInitial(['fields', 'query', 'dataSource'], newProp);
|
|
5290
5301
|
}
|
|
5291
5302
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
@@ -5391,7 +5402,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5391
5402
|
case 'floatLabelType':
|
|
5392
5403
|
this.setFloatLabelType();
|
|
5393
5404
|
this.addValidInputClass();
|
|
5394
|
-
|
|
5405
|
+
if (this.element.querySelector('.e-multiselect .e-float-text-content') === null) {
|
|
5406
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
5407
|
+
}
|
|
5395
5408
|
this.calculateWidth();
|
|
5396
5409
|
if (!isNullOrUndefined(this.overAllWrapper) &&
|
|
5397
5410
|
!isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] &&
|
|
@@ -5986,7 +5999,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5986
5999
|
if (this.element.hasAttribute('data-val')) {
|
|
5987
6000
|
this.element.setAttribute('data-val', 'false');
|
|
5988
6001
|
}
|
|
5989
|
-
|
|
6002
|
+
if (this.element.querySelector('.e-multiselect .e-float-text-content') === null) {
|
|
6003
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
6004
|
+
}
|
|
5990
6005
|
this.calculateWidth();
|
|
5991
6006
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] &&
|
|
5992
6007
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|