@syncfusion/ej2-dropdowns 26.1.35 → 26.1.38
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 +26 -0
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +26 -0
- 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 +9 -9
- package/src/drop-down-tree/drop-down-tree.js +15 -0
- package/src/list-box/list-box.d.ts +1 -0
- package/src/list-box/list-box.js +11 -0
- package/styles/bootstrap-dark.css +1 -0
- package/styles/bootstrap.css +1 -0
- package/styles/bootstrap4.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/drop-down-tree/_layout.scss +1 -0
- package/styles/drop-down-tree/bootstrap-dark.css +1 -0
- package/styles/drop-down-tree/bootstrap.css +1 -0
- package/styles/drop-down-tree/bootstrap4.css +1 -0
- package/styles/drop-down-tree/bootstrap5-dark.css +1 -0
- package/styles/drop-down-tree/bootstrap5.css +1 -0
- package/styles/drop-down-tree/fabric-dark.css +1 -0
- package/styles/drop-down-tree/fabric.css +1 -0
- package/styles/drop-down-tree/fluent-dark.css +1 -0
- package/styles/drop-down-tree/fluent.css +1 -0
- package/styles/drop-down-tree/fluent2.css +1 -0
- package/styles/drop-down-tree/highcontrast-light.css +1 -0
- package/styles/drop-down-tree/highcontrast.css +1 -0
- package/styles/drop-down-tree/material-dark.css +1 -0
- package/styles/drop-down-tree/material.css +1 -0
- package/styles/drop-down-tree/material3-dark.css +1 -0
- package/styles/drop-down-tree/material3.css +1 -0
- package/styles/drop-down-tree/tailwind-dark.css +1 -0
- package/styles/drop-down-tree/tailwind.css +1 -0
- package/styles/fabric-dark.css +1 -0
- package/styles/fabric.css +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/fluent2.css +1 -0
- package/styles/highcontrast-light.css +1 -0
- package/styles/highcontrast.css +1 -0
- package/styles/material-dark.css +1 -0
- package/styles/material.css +1 -0
- package/styles/material3-dark.css +1 -0
- package/styles/material3.css +1 -0
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind.css +1 -0
|
@@ -8045,6 +8045,9 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8045
8045
|
}
|
|
8046
8046
|
this.currentText = this.text;
|
|
8047
8047
|
this.currentValue = this.value;
|
|
8048
|
+
if (!isNullOrUndefined(this.value) && this.value.length > 0 && !isNullOrUndefined(this.currentText)) {
|
|
8049
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.split(',').join(' '));
|
|
8050
|
+
}
|
|
8048
8051
|
if (this.isInitialized) {
|
|
8049
8052
|
this.triggerChangeEvent();
|
|
8050
8053
|
}
|
|
@@ -8581,6 +8584,9 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8581
8584
|
this.setProperties({ text: selectedText }, true);
|
|
8582
8585
|
this.currentText = this.text;
|
|
8583
8586
|
this.currentValue = this.value;
|
|
8587
|
+
if (!isNullOrUndefined(this.value) && this.value.length > 0) {
|
|
8588
|
+
this.inputWrapper.setAttribute('aria-label', args.nodeData.text.toString());
|
|
8589
|
+
}
|
|
8584
8590
|
attributes(this.inputWrapper, { 'aria-describedby': this.element.id });
|
|
8585
8591
|
attributes(this.inputWrapper, { 'aria-activedescendant': id.toString() });
|
|
8586
8592
|
this.updateHiddenValue();
|
|
@@ -8950,6 +8956,12 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8950
8956
|
}
|
|
8951
8957
|
this.currentText = this.text;
|
|
8952
8958
|
this.currentValue = this.value;
|
|
8959
|
+
if (!isNullOrUndefined(this.value) && this.value.length > 0 && !isNullOrUndefined(this.currentText)) {
|
|
8960
|
+
this.inputWrapper.setAttribute('aria-label', this.currentText.split(',').join(' '));
|
|
8961
|
+
}
|
|
8962
|
+
else {
|
|
8963
|
+
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
8964
|
+
}
|
|
8953
8965
|
}
|
|
8954
8966
|
setChipValues(text, value) {
|
|
8955
8967
|
if (!this.inputWrapper.contains(this.chipWrapper)) {
|
|
@@ -9130,6 +9142,9 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
9130
9142
|
this.oldValue = this.value;
|
|
9131
9143
|
this.setProperties({ value: [] }, true);
|
|
9132
9144
|
}
|
|
9145
|
+
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
9146
|
+
this.inputWrapper.setAttribute('aria-label', this.getModuleName());
|
|
9147
|
+
}
|
|
9133
9148
|
this.dataValue = null;
|
|
9134
9149
|
this.setProperties({ text: null }, true);
|
|
9135
9150
|
this.selectedData = [];
|
|
@@ -18021,6 +18036,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
18021
18036
|
this.list.setAttribute('role', 'listbox');
|
|
18022
18037
|
attributes(this.list, { 'role': 'listbox', 'aria-label': 'listbox', 'aria-multiselectable': this.selectionSettings.mode === 'Multiple' ? 'true' : 'false' });
|
|
18023
18038
|
this.updateSelectionSettings();
|
|
18039
|
+
this.resizeHandler();
|
|
18024
18040
|
}
|
|
18025
18041
|
updateSelectionSettings() {
|
|
18026
18042
|
if (this.selectionSettings.showCheckbox && this.selectionSettings.showSelectAll && this.liCollections.length) {
|
|
@@ -18984,6 +19000,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
18984
19000
|
if (form) {
|
|
18985
19001
|
EventHandler.add(form, 'reset', this.formResetHandler, this);
|
|
18986
19002
|
}
|
|
19003
|
+
window.addEventListener('resize', this.resizeHandler.bind(this));
|
|
18987
19004
|
}
|
|
18988
19005
|
wireToolbarEvent() {
|
|
18989
19006
|
if (this.toolbarSettings.items.length) {
|
|
@@ -19005,6 +19022,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
19005
19022
|
if (form) {
|
|
19006
19023
|
EventHandler.remove(form, 'reset', this.formResetHandler);
|
|
19007
19024
|
}
|
|
19025
|
+
window.removeEventListener('resize', this.resizeHandler.bind(this));
|
|
19008
19026
|
}
|
|
19009
19027
|
clickHandler(e) {
|
|
19010
19028
|
const li = closest(e.target, '.' + 'e-list-item');
|
|
@@ -19848,6 +19866,14 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
19848
19866
|
this.refreshClearIcon();
|
|
19849
19867
|
}
|
|
19850
19868
|
}
|
|
19869
|
+
resizeHandler() {
|
|
19870
|
+
if (this.list.scrollWidth > this.list.offsetWidth) {
|
|
19871
|
+
this.list.querySelector('.e-list-parent').style.display = 'inline-block';
|
|
19872
|
+
}
|
|
19873
|
+
else {
|
|
19874
|
+
this.list.querySelector('.e-list-parent').style.display = 'block';
|
|
19875
|
+
}
|
|
19876
|
+
}
|
|
19851
19877
|
getValidIndex(cli, index, keyCode) {
|
|
19852
19878
|
const cul = this.ulElement;
|
|
19853
19879
|
if (cli.classList.contains('e-disabled') || cli.classList.contains(cssClass.group)) {
|