@syncfusion/ej2-dropdowns 19.4.52 → 19.4.54
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 +6 -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 +10 -16
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +11 -16
- 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 +8 -8
- package/src/combo-box/combo-box.js +4 -1
- package/src/drop-down-tree/drop-down-tree.js +6 -14
- package/src/multi-select/multi-select.js +1 -1
- package/styles/bootstrap-dark.css +8 -0
- package/styles/bootstrap.css +8 -0
- package/styles/bootstrap4.css +8 -0
- package/styles/bootstrap5-dark.css +8 -0
- package/styles/bootstrap5.css +8 -0
- package/styles/fabric-dark.css +8 -0
- package/styles/fabric.css +8 -0
- package/styles/highcontrast-light.css +8 -0
- package/styles/highcontrast.css +8 -0
- package/styles/material-dark.css +8 -0
- package/styles/material.css +8 -0
- package/styles/multi-select/_layout.scss +8 -0
- package/styles/multi-select/bootstrap-dark.css +8 -0
- package/styles/multi-select/bootstrap.css +8 -0
- package/styles/multi-select/bootstrap4.css +8 -0
- package/styles/multi-select/bootstrap5-dark.css +8 -0
- package/styles/multi-select/bootstrap5.css +8 -0
- package/styles/multi-select/fabric-dark.css +8 -0
- package/styles/multi-select/fabric.css +8 -0
- package/styles/multi-select/highcontrast-light.css +8 -0
- package/styles/multi-select/highcontrast.css +8 -0
- package/styles/multi-select/material-dark.css +8 -0
- package/styles/multi-select/material.css +8 -0
- package/styles/multi-select/tailwind-dark.css +8 -0
- package/styles/multi-select/tailwind.css +8 -0
- package/styles/tailwind-dark.css +8 -0
- package/styles/tailwind.css +8 -0
|
@@ -5026,13 +5026,10 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5026
5026
|
const l10nLocale = { overflowCountTemplate: '+${count} more..', totalCountTemplate: '${count} selected' };
|
|
5027
5027
|
this.l10n = new L10n(this.getLocaleName(), l10nLocale, this.locale);
|
|
5028
5028
|
const remainContent = this.l10n.getConstant('overflowCountTemplate');
|
|
5029
|
+
const totalContent = this.l10n.getConstant('totalCountTemplate');
|
|
5029
5030
|
const remainElement = this.createElement('span', { className: REMAIN_WRAPPER });
|
|
5030
|
-
// eslint-disable-next-line
|
|
5031
|
-
const compiledString = compile(remainContent);
|
|
5032
|
-
// eslint-disable-next-line
|
|
5033
|
-
const totalCompiledString = compile(this.l10n.getConstant('totalCountTemplate'));
|
|
5034
|
-
remainElement.appendChild(compiledString({ 'count': this.value.length }, this, 'overflowCountTemplate', null, !this.isStringTemplate)[0]);
|
|
5035
5031
|
this.overFlowWrapper.appendChild(remainElement);
|
|
5032
|
+
remainElement.innerText = remainContent.replace('${count}', this.value.length.toString());
|
|
5036
5033
|
const remainSize = remainElement.offsetWidth;
|
|
5037
5034
|
remove(remainElement);
|
|
5038
5035
|
if (this.showDropDownIcon) {
|
|
@@ -5114,7 +5111,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5114
5111
|
}
|
|
5115
5112
|
}
|
|
5116
5113
|
if (remaining > 0) {
|
|
5117
|
-
this.overFlowWrapper.appendChild(this.updateRemainTemplate(remainElement, remaining,
|
|
5114
|
+
this.overFlowWrapper.appendChild(this.updateRemainTemplate(remainElement, remaining, remainContent, totalContent));
|
|
5118
5115
|
}
|
|
5119
5116
|
if (this.mode === 'Box' && !this.overFlowWrapper.classList.contains(TOTAL_COUNT_WRAPPER)) {
|
|
5120
5117
|
addClass([remainElement], REMAIN_COUNT);
|
|
@@ -5126,19 +5123,14 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5126
5123
|
}
|
|
5127
5124
|
this.updateDelimMode();
|
|
5128
5125
|
}
|
|
5129
|
-
updateRemainTemplate(remainElement, remaining,
|
|
5130
|
-
// eslint-disable-next-line
|
|
5131
|
-
compiledString,
|
|
5132
|
-
// eslint-disable-next-line
|
|
5133
|
-
totalCompiledString) {
|
|
5126
|
+
updateRemainTemplate(remainElement, remaining, remainContent, totalContent) {
|
|
5134
5127
|
if (this.overFlowWrapper.firstChild && this.overFlowWrapper.firstChild.nodeType === 3 &&
|
|
5135
5128
|
this.overFlowWrapper.firstChild.nodeValue === '') {
|
|
5136
5129
|
this.overFlowWrapper.removeChild(this.overFlowWrapper.firstChild);
|
|
5137
5130
|
}
|
|
5138
5131
|
remainElement.innerHTML = '';
|
|
5139
|
-
remainElement.
|
|
5140
|
-
|
|
5141
|
-
totalCompiledString({ 'count': remaining }, this, 'totalCountTemplate', null, !this.isStringTemplate)[0]);
|
|
5132
|
+
remainElement.innerText = (this.overFlowWrapper.firstChild && (this.overFlowWrapper.firstChild.nodeType === 3 || this.mode === 'Box')) ?
|
|
5133
|
+
remainContent.replace('${count}', remaining.toString()) : totalContent.replace('${count}', remaining.toString());
|
|
5142
5134
|
if (this.overFlowWrapper.firstChild && (this.overFlowWrapper.firstChild.nodeType === 3 || this.mode === 'Box')) {
|
|
5143
5135
|
removeClass([this.overFlowWrapper], TOTAL_COUNT_WRAPPER);
|
|
5144
5136
|
}
|
|
@@ -7483,7 +7475,9 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
7483
7475
|
this.removeSelection();
|
|
7484
7476
|
}
|
|
7485
7477
|
if (!this.preventAutoFill && this.getModuleName() === 'combobox' && this.isTyped) {
|
|
7486
|
-
|
|
7478
|
+
setTimeout(() => {
|
|
7479
|
+
this.inlineSearch();
|
|
7480
|
+
});
|
|
7487
7481
|
}
|
|
7488
7482
|
}
|
|
7489
7483
|
getFocusElement() {
|
|
@@ -9112,7 +9106,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9112
9106
|
addClass([listEle[0]], dropDownBaseClasses.focus);
|
|
9113
9107
|
}
|
|
9114
9108
|
else {
|
|
9115
|
-
this.ulElement = this.ulElement.cloneNode ? this.ulElement.cloneNode(true) : this.ulElement;
|
|
9109
|
+
//EJ2-57588 - for this task, we prevent the ul element cloning ( this.ulElement = this.ulElement.cloneNode ? <HTMLElement>this.ulElement.cloneNode(true) : this.ulElement;)
|
|
9116
9110
|
if (!(this.list && this.list.querySelectorAll('.' + dropDownBaseClasses.li).length > 0)) {
|
|
9117
9111
|
this.l10nUpdate();
|
|
9118
9112
|
addClass([this.list], dropDownBaseClasses.noData);
|