@syncfusion/ej2-dropdowns 20.4.42 → 20.4.48
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 +24 -0
- 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 +18 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -5
- 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-model.d.ts +1 -1
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +14 -4
- package/src/list-box/list-box.js +3 -0
- package/styles/bootstrap-dark.css +15 -2
- package/styles/bootstrap.css +15 -2
- package/styles/bootstrap4.css +15 -2
- package/styles/bootstrap5-dark.css +18 -5
- package/styles/bootstrap5.css +18 -5
- package/styles/drop-down-list/_layout.scss +3 -0
- package/styles/drop-down-list/bootstrap-dark.css +3 -0
- package/styles/drop-down-list/bootstrap.css +3 -0
- package/styles/drop-down-list/bootstrap4.css +3 -0
- package/styles/drop-down-list/bootstrap5-dark.css +3 -0
- package/styles/drop-down-list/bootstrap5.css +3 -0
- package/styles/drop-down-list/fabric-dark.css +3 -0
- package/styles/drop-down-list/fabric.css +3 -0
- package/styles/drop-down-list/fluent-dark.css +3 -0
- package/styles/drop-down-list/fluent.css +3 -0
- package/styles/drop-down-list/highcontrast-light.css +3 -0
- package/styles/drop-down-list/highcontrast.css +3 -0
- package/styles/drop-down-list/material-dark.css +3 -0
- package/styles/drop-down-list/material.css +3 -0
- package/styles/drop-down-list/tailwind-dark.css +3 -0
- package/styles/drop-down-list/tailwind.css +3 -0
- package/styles/fabric-dark.css +15 -2
- package/styles/fabric.css +15 -2
- package/styles/fluent-dark.css +15 -2
- package/styles/fluent.css +15 -2
- package/styles/highcontrast-light.css +15 -2
- package/styles/highcontrast.css +15 -2
- package/styles/material-dark.css +14 -1
- package/styles/material.css +14 -1
- package/styles/multi-select/_bootstrap-dark-definition.scss +1 -0
- package/styles/multi-select/_bootstrap-definition.scss +1 -0
- package/styles/multi-select/_bootstrap4-definition.scss +1 -0
- package/styles/multi-select/_bootstrap5-definition.scss +2 -1
- package/styles/multi-select/_fabric-dark-definition.scss +1 -0
- package/styles/multi-select/_fabric-definition.scss +1 -0
- package/styles/multi-select/_fluent-definition.scss +1 -0
- package/styles/multi-select/_fusionnew-definition.scss +1 -0
- package/styles/multi-select/_highcontrast-definition.scss +1 -0
- package/styles/multi-select/_highcontrast-light-definition.scss +1 -0
- package/styles/multi-select/_layout.scss +12 -2
- package/styles/multi-select/_material-dark-definition.scss +1 -0
- package/styles/multi-select/_material-definition.scss +1 -0
- package/styles/multi-select/_tailwind-definition.scss +2 -1
- package/styles/multi-select/bootstrap-dark.css +12 -2
- package/styles/multi-select/bootstrap.css +12 -2
- package/styles/multi-select/bootstrap4.css +12 -2
- package/styles/multi-select/bootstrap5-dark.css +15 -5
- package/styles/multi-select/bootstrap5.css +15 -5
- package/styles/multi-select/fabric-dark.css +12 -2
- package/styles/multi-select/fabric.css +12 -2
- package/styles/multi-select/fluent-dark.css +12 -2
- package/styles/multi-select/fluent.css +12 -2
- package/styles/multi-select/highcontrast-light.css +12 -2
- package/styles/multi-select/highcontrast.css +12 -2
- package/styles/multi-select/material-dark.css +11 -1
- package/styles/multi-select/material.css +11 -1
- package/styles/multi-select/tailwind-dark.css +13 -3
- package/styles/multi-select/tailwind.css +13 -3
- package/styles/tailwind-dark.css +16 -3
- package/styles/tailwind.css +16 -3
|
@@ -2468,8 +2468,8 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2468
2468
|
this.setScrollPosition(e);
|
|
2469
2469
|
}
|
|
2470
2470
|
if (Browser.info.name !== 'mozilla') {
|
|
2471
|
-
attributes(this.inputElement, { 'aria-label': this.inputElement.value });
|
|
2472
2471
|
if (this.targetElement()) {
|
|
2472
|
+
attributes(this.targetElement(), { 'aria-label': this.inputElement.value });
|
|
2473
2473
|
attributes(this.targetElement(), { 'aria-describedby': this.inputElement.id != '' ? this.inputElement.id : this.element.id });
|
|
2474
2474
|
this.targetElement().removeAttribute('aria-live');
|
|
2475
2475
|
}
|
|
@@ -5369,7 +5369,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5369
5369
|
if (isValid && this.value !== null && (this.value && this.value.length !== 0)) {
|
|
5370
5370
|
addClass([this.inputEle], CHIP_INPUT);
|
|
5371
5371
|
}
|
|
5372
|
-
else if (this.value === null || (this.value && this.value.length === 0)) {
|
|
5372
|
+
else if (this.value === null || (this.value && this.value.length === 0) || this.chipWrapper) {
|
|
5373
5373
|
addClass([this.chipWrapper], HIDEICON);
|
|
5374
5374
|
}
|
|
5375
5375
|
}
|
|
@@ -5724,6 +5724,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5724
5724
|
nodeSelected: this.onNodeSelected.bind(this),
|
|
5725
5725
|
nodeChecked: this.onNodeChecked.bind(this),
|
|
5726
5726
|
nodeChecking: this.beforeCheck.bind(this),
|
|
5727
|
+
nodeExpanded: this.onNodeExpanded.bind(this),
|
|
5727
5728
|
actionFailure: this.onActionFailure.bind(this),
|
|
5728
5729
|
nodeClicked: this.onNodeClicked.bind(this),
|
|
5729
5730
|
dataBound: this.OnDataBound.bind(this),
|
|
@@ -5830,7 +5831,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5830
5831
|
const height = Math.round(this.header.getBoundingClientRect().height);
|
|
5831
5832
|
popupHeight = formatUnit(parseInt(popupHeight, 10) - height + 'px');
|
|
5832
5833
|
}
|
|
5833
|
-
if (this.showCheckBox && this.showSelectAll) {
|
|
5834
|
+
if (this.showCheckBox && this.showSelectAll && (!this.popupDiv.classList.contains(NODATA))) {
|
|
5834
5835
|
const height = Math.round(this.checkAllParent.getBoundingClientRect().height);
|
|
5835
5836
|
popupHeight = formatUnit(parseInt(popupHeight, 10) - height + 'px');
|
|
5836
5837
|
}
|
|
@@ -6240,6 +6241,13 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6240
6241
|
this.oldValue = this.value ? this.value.slice() : this.value;
|
|
6241
6242
|
}
|
|
6242
6243
|
}
|
|
6244
|
+
onNodeExpanded(args) {
|
|
6245
|
+
if (this.hasTemplate && this.portals) {
|
|
6246
|
+
this.portals = [].concat(this.treeObj.portals);
|
|
6247
|
+
/* eslint-enable */
|
|
6248
|
+
this.renderReactTemplates();
|
|
6249
|
+
}
|
|
6250
|
+
}
|
|
6243
6251
|
updateClearButton(state) {
|
|
6244
6252
|
if (state) {
|
|
6245
6253
|
if (!this.inputWrapper.contains(this.overAllClear)) {
|
|
@@ -6835,8 +6843,6 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6835
6843
|
}
|
|
6836
6844
|
else {
|
|
6837
6845
|
this.noRecord = this.createElement('div');
|
|
6838
|
-
addClass([this.noRecord], NODATACONTAINER);
|
|
6839
|
-
prepend([this.noRecord], this.popupDiv);
|
|
6840
6846
|
}
|
|
6841
6847
|
if (this.noRecordsTemplate !== 'No Records Found' || this.actionFailureTemplate !== 'The Request Failed') {
|
|
6842
6848
|
const template = actionFailure ? this.actionFailureTemplate : this.noRecordsTemplate;
|
|
@@ -6848,6 +6854,8 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6848
6854
|
if (tempArr) {
|
|
6849
6855
|
tempArr = Array.prototype.slice.call(tempArr);
|
|
6850
6856
|
append(tempArr, this.noRecord);
|
|
6857
|
+
addClass([this.noRecord], NODATACONTAINER);
|
|
6858
|
+
prepend([this.noRecord], this.popupDiv);
|
|
6851
6859
|
}
|
|
6852
6860
|
}
|
|
6853
6861
|
else {
|
|
@@ -6856,6 +6864,8 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6856
6864
|
this.l10n = new L10n(this.getLocaleName(), l10nLocale, this.locale);
|
|
6857
6865
|
this.noRecord.innerHTML = actionFailure ?
|
|
6858
6866
|
this.l10n.getConstant('actionFailureTemplate') : this.l10n.getConstant('noRecordsTemplate');
|
|
6867
|
+
addClass([this.noRecord], NODATACONTAINER);
|
|
6868
|
+
prepend([this.noRecord], this.popupDiv);
|
|
6859
6869
|
}
|
|
6860
6870
|
}
|
|
6861
6871
|
updateRecordTemplate(action) {
|
|
@@ -15463,6 +15473,9 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
15463
15473
|
else {
|
|
15464
15474
|
text = value;
|
|
15465
15475
|
}
|
|
15476
|
+
if (typeof (text) === 'string') {
|
|
15477
|
+
text = text.split("\\").join("\\\\");
|
|
15478
|
+
}
|
|
15466
15479
|
li = this.list.querySelector('[data-value="' + text + '"]');
|
|
15467
15480
|
if (li) {
|
|
15468
15481
|
if (this.selectionSettings.showCheckbox) {
|