@syncfusion/ej2-dropdowns 19.3.45 → 19.3.53
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 +34 -0
- 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 +50 -29
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +50 -29
- 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 +11 -11
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +18 -10
- package/src/multi-select/checkbox-selection.js +1 -1
- package/src/multi-select/multi-select-model.d.ts +9 -0
- package/src/multi-select/multi-select.d.ts +8 -0
- package/src/multi-select/multi-select.js +31 -18
- package/styles/auto-complete/bootstrap5-dark.css +1 -0
- package/styles/auto-complete/bootstrap5.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/combo-box/bootstrap5-dark.css +1 -0
- package/styles/combo-box/bootstrap5.css +1 -0
- package/styles/drop-down-list/_bootstrap5-definition.scss +1 -0
- package/styles/drop-down-list/bootstrap5-dark.css +1 -0
- package/styles/drop-down-list/bootstrap5.css +1 -0
- package/styles/drop-down-tree/_layout.scss +461 -1
- package/styles/drop-down-tree/_material-dark-definition.scss +6 -1
- package/styles/drop-down-tree/_material-definition.scss +6 -1
- package/styles/drop-down-tree/_theme.scss +8 -0
- package/styles/drop-down-tree/material-dark.css +402 -1
- package/styles/drop-down-tree/material.css +402 -1
- package/styles/material-dark.css +402 -1
- package/styles/material.css +402 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.3.
|
|
3
|
+
* version : 19.3.53
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@19.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@19.3.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-NxeOgcb/22jSsGxrmHVqm6WkBYulM03S+ksty7ALTRECFZ5xmOXAQ27ZNee6YiJxNQF0pyuU5Kk1EHKnM1zQeA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"/@syncfusion/ej2-spreadsheet",
|
|
34
34
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
35
35
|
],
|
|
36
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.48.tgz",
|
|
37
|
+
"_shasum": "aeed874acf3f663d023e4fc2ef52eec6e1d4f1a2",
|
|
38
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
39
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"bundleDependencies": false,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@syncfusion/ej2-base": "~19.3.
|
|
46
|
-
"@syncfusion/ej2-data": "~19.3.
|
|
47
|
-
"@syncfusion/ej2-inputs": "~19.3.
|
|
48
|
-
"@syncfusion/ej2-lists": "~19.3.
|
|
49
|
-
"@syncfusion/ej2-navigations": "~19.3.
|
|
50
|
-
"@syncfusion/ej2-popups": "~19.3.
|
|
45
|
+
"@syncfusion/ej2-base": "~19.3.53",
|
|
46
|
+
"@syncfusion/ej2-data": "~19.3.53",
|
|
47
|
+
"@syncfusion/ej2-inputs": "~19.3.53",
|
|
48
|
+
"@syncfusion/ej2-lists": "~19.3.53",
|
|
49
|
+
"@syncfusion/ej2-navigations": "~19.3.53",
|
|
50
|
+
"@syncfusion/ej2-popups": "~19.3.53"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"module": "./index.js",
|
|
73
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
74
74
|
"typings": "index.d.ts",
|
|
75
|
-
"version": "19.3.
|
|
75
|
+
"version": "19.3.53",
|
|
76
76
|
"sideEffects": false
|
|
77
77
|
}
|
|
@@ -282,6 +282,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
282
282
|
private filterDelayTime;
|
|
283
283
|
private nestedTableUpdate;
|
|
284
284
|
private clearIconWidth;
|
|
285
|
+
private isClicked;
|
|
285
286
|
/**
|
|
286
287
|
* Specifies the template that renders to the popup list content of the
|
|
287
288
|
* Dropdown Tree component when the data fetch request from the remote server fails.
|
|
@@ -164,6 +164,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
164
164
|
// eslint-disable-next-line
|
|
165
165
|
_this.selectedData = [];
|
|
166
166
|
_this.filterDelayTime = 300;
|
|
167
|
+
_this.isClicked = false;
|
|
167
168
|
return _this;
|
|
168
169
|
}
|
|
169
170
|
/**
|
|
@@ -289,9 +290,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
289
290
|
this.createClearIcon();
|
|
290
291
|
this.inputWrapper.classList.add(DROPDOWNTREE);
|
|
291
292
|
this.setElementWidth(this.width);
|
|
292
|
-
this.setAttributes();
|
|
293
293
|
this.updateDataAttribute();
|
|
294
294
|
this.setHTMLAttributes();
|
|
295
|
+
this.setAttributes();
|
|
295
296
|
this.popupDiv = this.createElement('div', { className: CONTENT, attrs: { 'tabindex': '0' } });
|
|
296
297
|
this.popupDiv.classList.add(DROPDOWN);
|
|
297
298
|
this.tree = this.createElement('div', { id: this.element.id + '_tree' });
|
|
@@ -579,9 +580,6 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
579
580
|
this.isClearButtonClick = false;
|
|
580
581
|
return;
|
|
581
582
|
}
|
|
582
|
-
if (!this.wrapText && e.target.classList.contains(CHIP_CLOSE)) {
|
|
583
|
-
this.removeChip(e);
|
|
584
|
-
}
|
|
585
583
|
if (this.isPopupOpen) {
|
|
586
584
|
this.hidePopup();
|
|
587
585
|
}
|
|
@@ -652,7 +650,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
652
650
|
this.trigger('blur');
|
|
653
651
|
};
|
|
654
652
|
DropDownTree.prototype.updateView = function () {
|
|
655
|
-
if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom') {
|
|
653
|
+
if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom' || this.inputFocus) {
|
|
656
654
|
return;
|
|
657
655
|
}
|
|
658
656
|
if (this.mode !== 'Box') {
|
|
@@ -813,11 +811,18 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
813
811
|
switch (e.action) {
|
|
814
812
|
case 'escape':
|
|
815
813
|
case 'altUp':
|
|
814
|
+
if (_this.isPopupOpen) {
|
|
815
|
+
_this.hidePopup();
|
|
816
|
+
}
|
|
817
|
+
break;
|
|
816
818
|
case 'shiftTab':
|
|
817
819
|
case 'tab':
|
|
818
820
|
if (_this.isPopupOpen) {
|
|
819
821
|
_this.hidePopup();
|
|
820
822
|
}
|
|
823
|
+
if (_this.inputFocus) {
|
|
824
|
+
_this.onFocusOut();
|
|
825
|
+
}
|
|
821
826
|
break;
|
|
822
827
|
case 'altDown':
|
|
823
828
|
if (!_this.isPopupOpen) {
|
|
@@ -1087,10 +1092,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1087
1092
|
this.inputWrapper.insertBefore(this.chipWrapper, this.hiddenElement);
|
|
1088
1093
|
addClass([this.inputWrapper], SHOW_CHIP);
|
|
1089
1094
|
var isValid = this.getValidMode();
|
|
1090
|
-
if (isValid && this.value !== null) {
|
|
1095
|
+
if (isValid && this.value !== null && (this.value && this.value.length !== 0)) {
|
|
1091
1096
|
addClass([this.inputEle], CHIP_INPUT);
|
|
1092
1097
|
}
|
|
1093
|
-
else if (this.value === null) {
|
|
1098
|
+
else if (this.value === null || (this.value && this.value.length === 0)) {
|
|
1094
1099
|
addClass([this.chipWrapper], HIDEICON);
|
|
1095
1100
|
}
|
|
1096
1101
|
}
|
|
@@ -1131,8 +1136,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1131
1136
|
}
|
|
1132
1137
|
this.checkWrapper = closest(target, '.' + CHECKBOXWRAP);
|
|
1133
1138
|
if (!isNOU(this.checkWrapper)) {
|
|
1139
|
+
this.isClicked = true;
|
|
1134
1140
|
var checkElement = select('.' + CHECKBOXFRAME, this.checkWrapper);
|
|
1135
1141
|
this.changeState(this.checkWrapper, checkElement.classList.contains(CHECK) ? 'uncheck' : 'check', e);
|
|
1142
|
+
this.isClicked = false;
|
|
1136
1143
|
}
|
|
1137
1144
|
e.preventDefault();
|
|
1138
1145
|
};
|
|
@@ -1188,7 +1195,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1188
1195
|
}
|
|
1189
1196
|
};
|
|
1190
1197
|
DropDownTree.prototype.setAttributes = function () {
|
|
1191
|
-
this.
|
|
1198
|
+
this.inputEle.setAttribute('tabindex', '-1');
|
|
1192
1199
|
var id = this.element.getAttribute('id');
|
|
1193
1200
|
this.hiddenElement.id = id + '_hidden';
|
|
1194
1201
|
this.inputWrapper.setAttribute('tabindex', '0');
|
|
@@ -1364,7 +1371,6 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1364
1371
|
else {
|
|
1365
1372
|
if (this.showCheckBox) {
|
|
1366
1373
|
this.treeObj.checkedNodes = this.value.slice();
|
|
1367
|
-
setValue('selectedNodes', [], this.treeObj);
|
|
1368
1374
|
this.treeObj.dataBind();
|
|
1369
1375
|
this.setMultiSelect();
|
|
1370
1376
|
}
|
|
@@ -1832,7 +1838,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1832
1838
|
}
|
|
1833
1839
|
var eventArgs = {
|
|
1834
1840
|
action: this.showCheckBox ? state : args.action,
|
|
1835
|
-
isInteracted: args.isInteracted,
|
|
1841
|
+
isInteracted: this.isClicked ? true : args.isInteracted,
|
|
1836
1842
|
item: args.node,
|
|
1837
1843
|
itemData: this.showCheckBox ? checkData[0] : selectData
|
|
1838
1844
|
};
|
|
@@ -1903,6 +1909,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1903
1909
|
}
|
|
1904
1910
|
var target = args.event.target;
|
|
1905
1911
|
if ((target.classList.contains('e-fullrow') || target.classList.contains('e-list-text')) && this.showCheckBox) {
|
|
1912
|
+
this.isClicked = true;
|
|
1906
1913
|
// eslint-disable-next-line
|
|
1907
1914
|
var getNodeDetails = this.treeObj.getNode(args.node);
|
|
1908
1915
|
if (getNodeDetails.isChecked === 'true') {
|
|
@@ -1911,6 +1918,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1911
1918
|
else {
|
|
1912
1919
|
this.treeObj.checkAll([args.node]);
|
|
1913
1920
|
}
|
|
1921
|
+
this.isClicked = false;
|
|
1914
1922
|
this.setMultiSelect();
|
|
1915
1923
|
this.ensurePlaceHolder();
|
|
1916
1924
|
}
|
|
@@ -148,7 +148,7 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
148
148
|
}
|
|
149
149
|
if (this.parent.list.classList.contains('e-nodata') || (this.parent.listData && this.parent.listData.length <= 1 &&
|
|
150
150
|
!(this.parent.isDynamicDataChange)) || (this.parent.isDynamicDataChange &&
|
|
151
|
-
|
|
151
|
+
this.parent.listData && this.parent.listData.length <= 1)) {
|
|
152
152
|
this.checkAllParent.style.display = 'none';
|
|
153
153
|
}
|
|
154
154
|
else {
|
|
@@ -443,6 +443,15 @@ export interface MultiSelectModel extends DropDownBaseModel{
|
|
|
443
443
|
*/
|
|
444
444
|
openOnClick?: boolean;
|
|
445
445
|
|
|
446
|
+
/**
|
|
447
|
+
* By default, the typed value is converting into chip or update as value of the component when you press the enter key or select from the popup.
|
|
448
|
+
* If you want to convert the typed value into chip or update as value of the component while focusing out the component, then enable this property.
|
|
449
|
+
* If custom value is enabled, both custom value and value present in the list are converted into tag while focusing out the component; Otherwise, value present in the list is converted into tag while focusing out the component.
|
|
450
|
+
*
|
|
451
|
+
* @default false
|
|
452
|
+
*/
|
|
453
|
+
addTagOnBlur?: boolean;
|
|
454
|
+
|
|
446
455
|
/**
|
|
447
456
|
* Fires each time when selection changes happened in list items after model and input value get affected.
|
|
448
457
|
*
|
|
@@ -440,6 +440,14 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
440
440
|
* @default true
|
|
441
441
|
*/
|
|
442
442
|
openOnClick: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* By default, the typed value is converting into chip or update as value of the component when you press the enter key or select from the popup.
|
|
445
|
+
* If you want to convert the typed value into chip or update as value of the component while focusing out the component, then enable this property.
|
|
446
|
+
* If custom value is enabled, both custom value and value present in the list are converted into tag while focusing out the component; Otherwise, value present in the list is converted into tag while focusing out the component.
|
|
447
|
+
*
|
|
448
|
+
* @default false
|
|
449
|
+
*/
|
|
450
|
+
addTagOnBlur: boolean;
|
|
443
451
|
/**
|
|
444
452
|
* Fires each time when selection changes happened in list items after model and input value get affected.
|
|
445
453
|
*
|
|
@@ -815,6 +815,18 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
815
815
|
}
|
|
816
816
|
this.inputFocus = false;
|
|
817
817
|
this.overAllWrapper.classList.remove(FOCUS);
|
|
818
|
+
if (this.addTagOnBlur) {
|
|
819
|
+
var dataChecks = this.getValueByText(this.inputElement.value, this.ignoreCase, this.ignoreAccent);
|
|
820
|
+
var listLiElement = this.findListElement(this.list, 'li', 'data-value', dataChecks);
|
|
821
|
+
var className = this.hideSelectedItem ? HIDE_LIST : dropDownBaseClasses.selected;
|
|
822
|
+
var allowChipAddition = (listLiElement && !listLiElement.classList.contains(className)) ? true : false;
|
|
823
|
+
if (allowChipAddition) {
|
|
824
|
+
this.updateListSelection(listLiElement, eve);
|
|
825
|
+
if (this.mode === 'Delimiter') {
|
|
826
|
+
this.updateDelimeter(this.delimiterChar);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
818
830
|
this.refreshListItems(null);
|
|
819
831
|
if (this.mode !== 'Box' && this.mode !== 'CheckBox') {
|
|
820
832
|
this.updateDelimView();
|
|
@@ -2388,6 +2400,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2388
2400
|
setValue(this.fields.value, value, newValue);
|
|
2389
2401
|
var noDataEle = this.popupWrapper.querySelector('.' + dropDownBaseClasses.noData);
|
|
2390
2402
|
this.addItem(newValue, indexItem);
|
|
2403
|
+
element = element ? element : this.findListElement(this.hideSelectedItem ? this.ulElement : this.list, 'li', 'data-value', value);
|
|
2391
2404
|
if (this.popupWrapper.contains(noDataEle)) {
|
|
2392
2405
|
this.list.setAttribute('style', noDataEle.getAttribute('style'));
|
|
2393
2406
|
this.popupWrapper.replaceChild(this.list, noDataEle);
|
|
@@ -2436,6 +2449,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2436
2449
|
this.popupObj = null;
|
|
2437
2450
|
this.renderPopup();
|
|
2438
2451
|
}
|
|
2452
|
+
else if (this.allowCustomValue) {
|
|
2453
|
+
this.list = list;
|
|
2454
|
+
this.mainList = this.ulElement = list.querySelector('ul');
|
|
2455
|
+
}
|
|
2439
2456
|
};
|
|
2440
2457
|
MultiSelect.prototype.updateDataList = function () {
|
|
2441
2458
|
if (this.mainList && this.ulElement && this.mainList.childElementCount < this.ulElement.childElementCount) {
|
|
@@ -2916,16 +2933,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2916
2933
|
l10n = new L10n('dropdowns', l10nLocale, this.locale);
|
|
2917
2934
|
}
|
|
2918
2935
|
var remainContent = l10n.getConstant('overflowCountTemplate');
|
|
2936
|
+
var totalContent = l10n.getConstant('totalCountTemplate');
|
|
2919
2937
|
var raminElement = this.createElement('span', {
|
|
2920
2938
|
className: REMAIN_WRAPPER
|
|
2921
2939
|
});
|
|
2922
|
-
var
|
|
2923
|
-
|
|
2924
|
-
// eslint-disable-next-line
|
|
2925
|
-
var remainCompildTemp = compiledString({ 'count': this.value.length }, this, 'overflowCountTemplate', null, !this.isStringTemplate, null, raminElement);
|
|
2926
|
-
if (remainCompildTemp && remainCompildTemp.length > 0) {
|
|
2927
|
-
raminElement.appendChild(remainCompildTemp[0]);
|
|
2928
|
-
}
|
|
2940
|
+
var remainCompildTemp = remainContent.replace('${count}', this.value.length.toString());
|
|
2941
|
+
raminElement.innerText = remainCompildTemp;
|
|
2929
2942
|
this.viewWrapper.appendChild(raminElement);
|
|
2930
2943
|
this.renderReactTemplates();
|
|
2931
2944
|
var remainSize = raminElement.offsetWidth;
|
|
@@ -2977,9 +2990,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2977
2990
|
}
|
|
2978
2991
|
if (remaining > 0) {
|
|
2979
2992
|
var totalWidth = overAllContainer - downIconWidth - this.clearIconWidth;
|
|
2980
|
-
this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining,
|
|
2993
|
+
this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth));
|
|
2981
2994
|
this.updateRemainWidth(this.viewWrapper, totalWidth);
|
|
2982
|
-
this.updateRemainingText(raminElement, downIconWidth, remaining,
|
|
2995
|
+
this.updateRemainingText(raminElement, downIconWidth, remaining, remainContent, totalContent);
|
|
2983
2996
|
}
|
|
2984
2997
|
}
|
|
2985
2998
|
else {
|
|
@@ -2999,17 +3012,14 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2999
3012
|
viewWrapper.style.width = totalWidth + 'px';
|
|
3000
3013
|
}
|
|
3001
3014
|
};
|
|
3002
|
-
MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining,
|
|
3015
|
+
MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining, remainContent, totalContent, totalWidth) {
|
|
3003
3016
|
if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3 && viewWrapper.firstChild.nodeValue === '') {
|
|
3004
3017
|
viewWrapper.removeChild(viewWrapper.firstChild);
|
|
3005
3018
|
}
|
|
3006
3019
|
raminElement.innerHTML = '';
|
|
3007
|
-
|
|
3008
|
-
var
|
|
3009
|
-
|
|
3010
|
-
var totalTemp = totalCompiledString({ 'count': remaining }, this, 'totalCountTemplate', null, !this.isStringTemplate, null, raminElement);
|
|
3011
|
-
raminElement.appendChild((viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ?
|
|
3012
|
-
remainTemp && remainTemp[0] : totalTemp && totalTemp[0]);
|
|
3020
|
+
var remainTemp = remainContent.replace('${count}', remaining.toString());
|
|
3021
|
+
var totalTemp = totalContent.replace('${count}', remaining.toString());
|
|
3022
|
+
raminElement.innerText = (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ? remainTemp : totalTemp;
|
|
3013
3023
|
if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) {
|
|
3014
3024
|
viewWrapper.classList.remove(TOTAL_COUNT_WRAPPER);
|
|
3015
3025
|
}
|
|
@@ -3019,7 +3029,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3019
3029
|
}
|
|
3020
3030
|
return raminElement;
|
|
3021
3031
|
};
|
|
3022
|
-
MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining,
|
|
3032
|
+
MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining, remainContent, totalContent) {
|
|
3023
3033
|
var overAllContainer = this.componentWrapper.offsetWidth -
|
|
3024
3034
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
|
|
3025
3035
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
|
|
@@ -3038,7 +3048,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3038
3048
|
wrapperleng = this.viewWrapper.offsetWidth;
|
|
3039
3049
|
}
|
|
3040
3050
|
var totalWidth = overAllContainer - downIconWidth;
|
|
3041
|
-
this.updateRemainTemplate(raminElement, this.viewWrapper, remaining,
|
|
3051
|
+
this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth);
|
|
3042
3052
|
}
|
|
3043
3053
|
};
|
|
3044
3054
|
MultiSelect.prototype.getOverflowVal = function (index) {
|
|
@@ -4044,6 +4054,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4044
4054
|
__decorate([
|
|
4045
4055
|
Property(true)
|
|
4046
4056
|
], MultiSelect.prototype, "openOnClick", void 0);
|
|
4057
|
+
__decorate([
|
|
4058
|
+
Property(false)
|
|
4059
|
+
], MultiSelect.prototype, "addTagOnBlur", void 0);
|
|
4047
4060
|
__decorate([
|
|
4048
4061
|
Event()
|
|
4049
4062
|
], MultiSelect.prototype, "change", void 0);
|
|
@@ -453,6 +453,7 @@
|
|
|
453
453
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
454
454
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
455
455
|
background: transparent;
|
|
456
|
+
color: inherit;
|
|
456
457
|
}
|
|
457
458
|
|
|
458
459
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
package/styles/bootstrap5.css
CHANGED
|
@@ -453,6 +453,7 @@
|
|
|
453
453
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
454
454
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
455
455
|
background: transparent;
|
|
456
|
+
color: inherit;
|
|
456
457
|
}
|
|
457
458
|
|
|
458
459
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
@@ -105,6 +105,7 @@ $ddl-filter-box-shadow: 0 1.5px 5px -2px $ddl-filter-box-shadow-color !default;
|
|
|
105
105
|
.e-input-group#{&}.e-control-wrapper.e-ddl .e-input[readonly],
|
|
106
106
|
.e-float-input#{&}.e-control-wrapper.e-ddl input[readonly] {
|
|
107
107
|
background: transparent;
|
|
108
|
+
color: inherit;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
120
120
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
121
121
|
background: transparent;
|
|
122
|
+
color: inherit;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
120
120
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
121
121
|
background: transparent;
|
|
122
|
+
color: inherit;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|