@syncfusion/ej2-dropdowns 35.1.43 → 35.1.46
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 +40 -9
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +40 -9
- 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 +2 -2
- package/src/drop-down-list/drop-down-list.js +40 -9
|
@@ -3538,8 +3538,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3538
3538
|
'aria-disabled': 'false',
|
|
3539
3539
|
'role': 'combobox',
|
|
3540
3540
|
'aria-expanded': 'false',
|
|
3541
|
-
'aria-live': 'polite'
|
|
3542
|
-
'aria-labelledby': this.hiddenElement.id
|
|
3541
|
+
'aria-live': 'polite'
|
|
3543
3542
|
};
|
|
3544
3543
|
}
|
|
3545
3544
|
setEnableRtl() {
|
|
@@ -6834,6 +6833,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6834
6833
|
if (isNullOrUndefined(this.inputElement.getAttribute('type'))) {
|
|
6835
6834
|
this.inputElement.setAttribute('type', 'text');
|
|
6836
6835
|
}
|
|
6836
|
+
if (this.getModuleName() === 'dropdownlist') {
|
|
6837
|
+
this.inputElement.setAttribute('aria-label', this.getModuleName());
|
|
6838
|
+
}
|
|
6837
6839
|
this.inputElement.setAttribute('aria-expanded', 'false');
|
|
6838
6840
|
}
|
|
6839
6841
|
else {
|
|
@@ -6920,7 +6922,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6920
6922
|
if (!this.targetElement().hasAttribute('aria-label')) {
|
|
6921
6923
|
attributes(this.targetElement(), { 'aria-label': this.getModuleName() });
|
|
6922
6924
|
}
|
|
6923
|
-
if (!this.inputElement.hasAttribute('aria-labelledby')) {
|
|
6925
|
+
if (this.getModuleName() !== 'dropdownlist' && !this.inputElement.hasAttribute('aria-labelledby')) {
|
|
6924
6926
|
this.inputElement.setAttribute('aria-labelledby', this.hiddenElement.id);
|
|
6925
6927
|
}
|
|
6926
6928
|
this.inputElement.setAttribute('aria-expanded', 'false');
|
|
@@ -6928,9 +6930,19 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6928
6930
|
attributes(this.targetElement(), this.getAriaAttributes());
|
|
6929
6931
|
this.updateDataAttribute(this.htmlAttributes);
|
|
6930
6932
|
this.setHTMLAttributes();
|
|
6931
|
-
if (this.targetElement() === this.inputElement) {
|
|
6933
|
+
if (this.getModuleName() !== 'dropdownlist' && this.targetElement() === this.inputElement) {
|
|
6932
6934
|
this.inputElement.removeAttribute('aria-labelledby');
|
|
6933
6935
|
}
|
|
6936
|
+
if (this.getModuleName() === 'dropdownlist' && this.targetElement() === this.inputWrapper.container) {
|
|
6937
|
+
const floatLabel = this.inputWrapper.container.getElementsByClassName('e-float-text')[0];
|
|
6938
|
+
if (!isNullOrUndefined(this.element.id) && this.element.id !== '' && !isNullOrUndefined(floatLabel)) {
|
|
6939
|
+
floatLabel.id = 'label_' + this.element.id.replace(/ /g, '_');
|
|
6940
|
+
attributes(this.inputWrapper.container, { 'aria-labelledby': floatLabel.id });
|
|
6941
|
+
}
|
|
6942
|
+
else {
|
|
6943
|
+
this.inputWrapper.container.removeAttribute('aria-labelledby');
|
|
6944
|
+
}
|
|
6945
|
+
}
|
|
6934
6946
|
if (this.value !== null || this.activeIndex !== null || this.text !== null) {
|
|
6935
6947
|
if (this.enableVirtualization) {
|
|
6936
6948
|
this.listItemHeight = this.getListHeight();
|
|
@@ -6989,7 +7001,12 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6989
7001
|
const floatLabelElement = this.inputWrapper.container.getElementsByClassName('e-float-text')[0];
|
|
6990
7002
|
if (!isNullOrUndefined(this.element.id) && this.element.id !== '' && !isNullOrUndefined(floatLabelElement)) {
|
|
6991
7003
|
floatLabelElement.id = 'label_' + this.element.id.replace(/ /g, '_');
|
|
6992
|
-
attributes(this.
|
|
7004
|
+
attributes(this.getModuleName() === 'dropdownlist'
|
|
7005
|
+
? this.inputWrapper.container
|
|
7006
|
+
: this.inputElement, { 'aria-labelledby': floatLabelElement.id });
|
|
7007
|
+
if (this.getModuleName() === 'dropdownlist' && this.inputElement) {
|
|
7008
|
+
this.inputElement.removeAttribute('aria-labelledby');
|
|
7009
|
+
}
|
|
6993
7010
|
}
|
|
6994
7011
|
this.renderComplete();
|
|
6995
7012
|
this.listItemHeight = this.getListHeight();
|
|
@@ -7205,7 +7222,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
7205
7222
|
if (label) {
|
|
7206
7223
|
label.remove();
|
|
7207
7224
|
}
|
|
7208
|
-
this.
|
|
7225
|
+
this.inputWrapper.container.removeAttribute('aria-labelledby');
|
|
7209
7226
|
}
|
|
7210
7227
|
else if (this.floatLabelType !== 'Never' && !this.value) {
|
|
7211
7228
|
let floatLabel = this.inputWrapper.container
|
|
@@ -7237,7 +7254,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
7237
7254
|
}
|
|
7238
7255
|
floatLabel.style.width = this.inputElement.offsetWidth + 'px';
|
|
7239
7256
|
floatLabel.textContent = newProp.placeholder;
|
|
7240
|
-
this.
|
|
7257
|
+
this.inputWrapper.container.setAttribute('aria-labelledby', floatLabel.id);
|
|
7241
7258
|
}
|
|
7242
7259
|
}
|
|
7243
7260
|
break;
|
|
@@ -7450,14 +7467,28 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
7450
7467
|
this.updateSelectElementData(this.allowFiltering);
|
|
7451
7468
|
}
|
|
7452
7469
|
break;
|
|
7453
|
-
case 'floatLabelType':
|
|
7470
|
+
case 'floatLabelType': {
|
|
7454
7471
|
Input.removeFloating(this.inputWrapper);
|
|
7455
7472
|
Input.addFloating(this.inputElement, newProp.floatLabelType, this.placeholder, this.createElement);
|
|
7456
7473
|
if (!isNullOrUndefined(this.inputWrapper.buttons[0]) &&
|
|
7457
7474
|
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0] && this.floatLabelType !== 'Never') {
|
|
7458
7475
|
this.inputWrapper.container.getElementsByClassName('e-float-text-overflow')[0].classList.add('e-icon');
|
|
7459
7476
|
}
|
|
7477
|
+
if (this.getModuleName() === 'dropdownlist') {
|
|
7478
|
+
const floatLabelElement = this.inputWrapper.container.getElementsByClassName('e-float-text')[0];
|
|
7479
|
+
if (!isNullOrUndefined(this.element.id) &&
|
|
7480
|
+
this.element.id !== '' && !isNullOrUndefined(floatLabelElement)) {
|
|
7481
|
+
floatLabelElement.id = 'label_' + this.element.id.replace(/ /g, '_');
|
|
7482
|
+
attributes(this.inputWrapper.container, {
|
|
7483
|
+
'aria-labelledby': floatLabelElement.id
|
|
7484
|
+
});
|
|
7485
|
+
}
|
|
7486
|
+
else {
|
|
7487
|
+
this.inputWrapper.container.removeAttribute('aria-labelledby');
|
|
7488
|
+
}
|
|
7489
|
+
}
|
|
7460
7490
|
break;
|
|
7491
|
+
}
|
|
7461
7492
|
case 'showClearButton':
|
|
7462
7493
|
if (!this.inputWrapper.clearButton) {
|
|
7463
7494
|
Input.setClearButton(newProp.showClearButton, this.inputElement, this.inputWrapper, null, this.createElement);
|
|
@@ -7558,7 +7589,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
7558
7589
|
}
|
|
7559
7590
|
if (label && this.getModuleName() === 'dropdownlist' && (!this.placeholder || this.placeholder.trim() === '')) {
|
|
7560
7591
|
label.remove();
|
|
7561
|
-
this.
|
|
7592
|
+
this.inputWrapper.container.removeAttribute('aria-labelledby');
|
|
7562
7593
|
}
|
|
7563
7594
|
}
|
|
7564
7595
|
/**
|