@syncfusion/ej2-dropdowns 19.3.47 → 19.3.56
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 +38 -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 +60 -33
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +61 -33
- 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-list/drop-down-list.js +1 -1
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +24 -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 +35 -21
- 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/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.56
|
|
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.55",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-oj70TIVSUbXtZJIM08jrHQ+s2CHaPYVsY33y45heddXuOXitJHFHjwLnoBwlUYQ74PC29ehzlJnTCiU1iytiFA==",
|
|
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-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.55.tgz",
|
|
37
|
+
"_shasum": "8e1415843db15a8e8c0bd809b412117fedf02e0f",
|
|
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.56",
|
|
46
|
+
"@syncfusion/ej2-data": "~19.3.56",
|
|
47
|
+
"@syncfusion/ej2-inputs": "~19.3.53",
|
|
48
|
+
"@syncfusion/ej2-lists": "~19.3.53",
|
|
49
|
+
"@syncfusion/ej2-navigations": "~19.3.56",
|
|
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.56",
|
|
76
76
|
"sideEffects": false
|
|
77
77
|
}
|
|
@@ -703,7 +703,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
703
703
|
if (this.isSelectFocusItem(focusEle)) {
|
|
704
704
|
this.setSelection(focusEle, e);
|
|
705
705
|
}
|
|
706
|
-
else {
|
|
706
|
+
else if (!isNullOrUndefined(this.liCollections)) {
|
|
707
707
|
var index = e.action === 'down' ? this.activeIndex + 1 : this.activeIndex - 1;
|
|
708
708
|
var startIndex = 0;
|
|
709
709
|
if (this.getModuleName() === 'autocomplete') {
|
|
@@ -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
|
/**
|
|
@@ -649,7 +650,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
649
650
|
this.trigger('blur');
|
|
650
651
|
};
|
|
651
652
|
DropDownTree.prototype.updateView = function () {
|
|
652
|
-
if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom') {
|
|
653
|
+
if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom' || this.inputFocus) {
|
|
653
654
|
return;
|
|
654
655
|
}
|
|
655
656
|
if (this.mode !== 'Box') {
|
|
@@ -1091,10 +1092,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1091
1092
|
this.inputWrapper.insertBefore(this.chipWrapper, this.hiddenElement);
|
|
1092
1093
|
addClass([this.inputWrapper], SHOW_CHIP);
|
|
1093
1094
|
var isValid = this.getValidMode();
|
|
1094
|
-
if (isValid && this.value !== null) {
|
|
1095
|
+
if (isValid && this.value !== null && (this.value && this.value.length !== 0)) {
|
|
1095
1096
|
addClass([this.inputEle], CHIP_INPUT);
|
|
1096
1097
|
}
|
|
1097
|
-
else if (this.value === null) {
|
|
1098
|
+
else if (this.value === null || (this.value && this.value.length === 0)) {
|
|
1098
1099
|
addClass([this.chipWrapper], HIDEICON);
|
|
1099
1100
|
}
|
|
1100
1101
|
}
|
|
@@ -1135,8 +1136,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1135
1136
|
}
|
|
1136
1137
|
this.checkWrapper = closest(target, '.' + CHECKBOXWRAP);
|
|
1137
1138
|
if (!isNOU(this.checkWrapper)) {
|
|
1139
|
+
this.isClicked = true;
|
|
1138
1140
|
var checkElement = select('.' + CHECKBOXFRAME, this.checkWrapper);
|
|
1139
1141
|
this.changeState(this.checkWrapper, checkElement.classList.contains(CHECK) ? 'uncheck' : 'check', e);
|
|
1142
|
+
this.isClicked = false;
|
|
1140
1143
|
}
|
|
1141
1144
|
e.preventDefault();
|
|
1142
1145
|
};
|
|
@@ -1358,6 +1361,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1358
1361
|
}
|
|
1359
1362
|
};
|
|
1360
1363
|
DropDownTree.prototype.setValidValue = function () {
|
|
1364
|
+
var _this = this;
|
|
1361
1365
|
if (!this.showCheckBox && !this.allowMultiSelection) {
|
|
1362
1366
|
Input.setValue(this.text, this.inputEle, this.floatLabelType);
|
|
1363
1367
|
var id = this.value[0].toString();
|
|
@@ -1367,10 +1371,14 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1367
1371
|
}
|
|
1368
1372
|
else {
|
|
1369
1373
|
if (this.showCheckBox) {
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
this.
|
|
1374
|
+
var difference = this.value.filter(function (e) {
|
|
1375
|
+
return _this.treeObj.checkedNodes.indexOf(e) === -1;
|
|
1376
|
+
});
|
|
1377
|
+
if (difference.length > 0 || this.treeSettings.autoCheck) {
|
|
1378
|
+
this.treeObj.checkedNodes = this.value.slice();
|
|
1379
|
+
this.treeObj.dataBind();
|
|
1380
|
+
this.setMultiSelect();
|
|
1381
|
+
}
|
|
1374
1382
|
}
|
|
1375
1383
|
else {
|
|
1376
1384
|
this.treeObj.selectedNodes = this.value.slice();
|
|
@@ -1836,7 +1844,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1836
1844
|
}
|
|
1837
1845
|
var eventArgs = {
|
|
1838
1846
|
action: this.showCheckBox ? state : args.action,
|
|
1839
|
-
isInteracted: args.isInteracted,
|
|
1847
|
+
isInteracted: this.isClicked ? true : args.isInteracted,
|
|
1840
1848
|
item: args.node,
|
|
1841
1849
|
itemData: this.showCheckBox ? checkData[0] : selectData
|
|
1842
1850
|
};
|
|
@@ -1907,6 +1915,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1907
1915
|
}
|
|
1908
1916
|
var target = args.event.target;
|
|
1909
1917
|
if ((target.classList.contains('e-fullrow') || target.classList.contains('e-list-text')) && this.showCheckBox) {
|
|
1918
|
+
this.isClicked = true;
|
|
1910
1919
|
// eslint-disable-next-line
|
|
1911
1920
|
var getNodeDetails = this.treeObj.getNode(args.node);
|
|
1912
1921
|
if (getNodeDetails.isChecked === 'true') {
|
|
@@ -1915,6 +1924,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1915
1924
|
else {
|
|
1916
1925
|
this.treeObj.checkAll([args.node]);
|
|
1917
1926
|
}
|
|
1927
|
+
this.isClicked = false;
|
|
1918
1928
|
this.setMultiSelect();
|
|
1919
1929
|
this.ensurePlaceHolder();
|
|
1920
1930
|
}
|
|
@@ -2407,6 +2417,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2407
2417
|
this.ensurePlaceHolder();
|
|
2408
2418
|
};
|
|
2409
2419
|
DropDownTree.prototype.resetValue = function (isDynamicChange) {
|
|
2420
|
+
if (this.value == [] && this.text == null) {
|
|
2421
|
+
return;
|
|
2422
|
+
}
|
|
2410
2423
|
Input.setValue(null, this.inputEle, this.floatLabelType);
|
|
2411
2424
|
if (!isDynamicChange) {
|
|
2412
2425
|
this.oldValue = this.value;
|
|
@@ -2418,7 +2431,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2418
2431
|
setValue('selectedNodes', [], this.treeObj);
|
|
2419
2432
|
this.hiddenElement.innerHTML = '';
|
|
2420
2433
|
if (this.showCheckBox) {
|
|
2421
|
-
this.treeObj.
|
|
2434
|
+
this.treeObj.checkedNodes = [];
|
|
2435
|
+
this.treeObj.dataBind();
|
|
2422
2436
|
this.setMultiSelect();
|
|
2423
2437
|
this.clearCheckAll();
|
|
2424
2438
|
}
|
|
@@ -2796,8 +2810,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2796
2810
|
this.updateTemplate();
|
|
2797
2811
|
}
|
|
2798
2812
|
this.treeObj.sortOrder = newProp.sortOrder;
|
|
2799
|
-
this.updateValue(this.value);
|
|
2800
2813
|
this.treeObj.dataBind();
|
|
2814
|
+
this.updateValue(this.value);
|
|
2801
2815
|
break;
|
|
2802
2816
|
case 'showDropDownIcon':
|
|
2803
2817
|
this.updateDropDownIconState(newProp.showDropDownIcon);
|
|
@@ -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();
|
|
@@ -1037,6 +1049,13 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1037
1049
|
var focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
|
|
1038
1050
|
if (!isNullOrUndefined(focusedItem)) {
|
|
1039
1051
|
this.inputElement.setAttribute('aria-activedescendant', focusedItem.id);
|
|
1052
|
+
if (this.allowFiltering) {
|
|
1053
|
+
var filterInput = this.popupWrapper.querySelector('.' + FILTERINPUT);
|
|
1054
|
+
filterInput && filterInput.setAttribute('aria-activedescendant', focusedItem.id);
|
|
1055
|
+
}
|
|
1056
|
+
else if (this.mode == "CheckBox") {
|
|
1057
|
+
this.overAllWrapper.setAttribute('aria-activedescendant', focusedItem.id);
|
|
1058
|
+
}
|
|
1040
1059
|
}
|
|
1041
1060
|
};
|
|
1042
1061
|
MultiSelect.prototype.homeNavigation = function (isHome) {
|
|
@@ -1152,7 +1171,6 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1152
1171
|
this.keyAction = true;
|
|
1153
1172
|
if (document.activeElement.classList.contains(FILTERINPUT)
|
|
1154
1173
|
|| (this.mode === 'CheckBox' && !this.allowFiltering && document.activeElement !== this.list)) {
|
|
1155
|
-
this.list.focus();
|
|
1156
1174
|
EventHandler.add(this.list, 'keydown', this.onKeyDown, this);
|
|
1157
1175
|
}
|
|
1158
1176
|
this.updateAriaAttribute();
|
|
@@ -2175,7 +2193,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2175
2193
|
EventHandler.add(this.inputElement, 'input', this.onInput, this);
|
|
2176
2194
|
}
|
|
2177
2195
|
EventHandler.add(this.inputElement, 'blur', this.onBlurHandler, this);
|
|
2178
|
-
EventHandler.add(this.componentWrapper, '
|
|
2196
|
+
EventHandler.add(this.componentWrapper, 'mouseover', this.mouseIn, this);
|
|
2179
2197
|
var formElement = closest(this.inputElement, 'form');
|
|
2180
2198
|
if (formElement) {
|
|
2181
2199
|
EventHandler.add(formElement, 'reset', this.resetValueHandler, this);
|
|
@@ -2921,16 +2939,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2921
2939
|
l10n = new L10n('dropdowns', l10nLocale, this.locale);
|
|
2922
2940
|
}
|
|
2923
2941
|
var remainContent = l10n.getConstant('overflowCountTemplate');
|
|
2942
|
+
var totalContent = l10n.getConstant('totalCountTemplate');
|
|
2924
2943
|
var raminElement = this.createElement('span', {
|
|
2925
2944
|
className: REMAIN_WRAPPER
|
|
2926
2945
|
});
|
|
2927
|
-
var
|
|
2928
|
-
|
|
2929
|
-
// eslint-disable-next-line
|
|
2930
|
-
var remainCompildTemp = compiledString({ 'count': this.value.length }, this, 'overflowCountTemplate', null, !this.isStringTemplate, null, raminElement);
|
|
2931
|
-
if (remainCompildTemp && remainCompildTemp.length > 0) {
|
|
2932
|
-
raminElement.appendChild(remainCompildTemp[0]);
|
|
2933
|
-
}
|
|
2946
|
+
var remainCompildTemp = remainContent.replace('${count}', this.value.length.toString());
|
|
2947
|
+
raminElement.innerText = remainCompildTemp;
|
|
2934
2948
|
this.viewWrapper.appendChild(raminElement);
|
|
2935
2949
|
this.renderReactTemplates();
|
|
2936
2950
|
var remainSize = raminElement.offsetWidth;
|
|
@@ -2982,9 +2996,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2982
2996
|
}
|
|
2983
2997
|
if (remaining > 0) {
|
|
2984
2998
|
var totalWidth = overAllContainer - downIconWidth - this.clearIconWidth;
|
|
2985
|
-
this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining,
|
|
2999
|
+
this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth));
|
|
2986
3000
|
this.updateRemainWidth(this.viewWrapper, totalWidth);
|
|
2987
|
-
this.updateRemainingText(raminElement, downIconWidth, remaining,
|
|
3001
|
+
this.updateRemainingText(raminElement, downIconWidth, remaining, remainContent, totalContent);
|
|
2988
3002
|
}
|
|
2989
3003
|
}
|
|
2990
3004
|
else {
|
|
@@ -3004,17 +3018,14 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3004
3018
|
viewWrapper.style.width = totalWidth + 'px';
|
|
3005
3019
|
}
|
|
3006
3020
|
};
|
|
3007
|
-
MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining,
|
|
3021
|
+
MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining, remainContent, totalContent, totalWidth) {
|
|
3008
3022
|
if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3 && viewWrapper.firstChild.nodeValue === '') {
|
|
3009
3023
|
viewWrapper.removeChild(viewWrapper.firstChild);
|
|
3010
3024
|
}
|
|
3011
3025
|
raminElement.innerHTML = '';
|
|
3012
|
-
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3015
|
-
var totalTemp = totalCompiledString({ 'count': remaining }, this, 'totalCountTemplate', null, !this.isStringTemplate, null, raminElement);
|
|
3016
|
-
raminElement.appendChild((viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ?
|
|
3017
|
-
remainTemp && remainTemp[0] : totalTemp && totalTemp[0]);
|
|
3026
|
+
var remainTemp = remainContent.replace('${count}', remaining.toString());
|
|
3027
|
+
var totalTemp = totalContent.replace('${count}', remaining.toString());
|
|
3028
|
+
raminElement.innerText = (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ? remainTemp : totalTemp;
|
|
3018
3029
|
if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) {
|
|
3019
3030
|
viewWrapper.classList.remove(TOTAL_COUNT_WRAPPER);
|
|
3020
3031
|
}
|
|
@@ -3024,7 +3035,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3024
3035
|
}
|
|
3025
3036
|
return raminElement;
|
|
3026
3037
|
};
|
|
3027
|
-
MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining,
|
|
3038
|
+
MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining, remainContent, totalContent) {
|
|
3028
3039
|
var overAllContainer = this.componentWrapper.offsetWidth -
|
|
3029
3040
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
|
|
3030
3041
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
|
|
@@ -3043,7 +3054,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3043
3054
|
wrapperleng = this.viewWrapper.offsetWidth;
|
|
3044
3055
|
}
|
|
3045
3056
|
var totalWidth = overAllContainer - downIconWidth;
|
|
3046
|
-
this.updateRemainTemplate(raminElement, this.viewWrapper, remaining,
|
|
3057
|
+
this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth);
|
|
3047
3058
|
}
|
|
3048
3059
|
};
|
|
3049
3060
|
MultiSelect.prototype.getOverflowVal = function (index) {
|
|
@@ -3078,7 +3089,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3078
3089
|
EventHandler.remove(formElement, 'reset', this.resetValueHandler);
|
|
3079
3090
|
}
|
|
3080
3091
|
EventHandler.remove(this.inputElement, 'blur', this.onBlurHandler);
|
|
3081
|
-
EventHandler.remove(this.componentWrapper, '
|
|
3092
|
+
EventHandler.remove(this.componentWrapper, 'mouseover', this.mouseIn);
|
|
3082
3093
|
EventHandler.remove(this.componentWrapper, 'mouseout', this.mouseOut);
|
|
3083
3094
|
EventHandler.remove(this.overAllClear, 'mousedown', this.clearAll);
|
|
3084
3095
|
EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);
|
|
@@ -4049,6 +4060,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4049
4060
|
__decorate([
|
|
4050
4061
|
Property(true)
|
|
4051
4062
|
], MultiSelect.prototype, "openOnClick", void 0);
|
|
4063
|
+
__decorate([
|
|
4064
|
+
Property(false)
|
|
4065
|
+
], MultiSelect.prototype, "addTagOnBlur", void 0);
|
|
4052
4066
|
__decorate([
|
|
4053
4067
|
Event()
|
|
4054
4068
|
], 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],
|