@syncfusion/ej2-dropdowns 22.2.9 → 22.2.11
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/.eslintrc.json +260 -0
- package/CHANGELOG.md +23 -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 +23 -11
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +23 -11
- 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-base/drop-down-base.js +14 -8
- package/src/drop-down-list/drop-down-list.js +5 -3
- package/src/multi-select/multi-select.js +4 -0
- package/styles/auto-complete/material.css +1 -1
- package/styles/combo-box/material.css +1 -1
- package/styles/drop-down-base/material.css +1 -1
- package/styles/drop-down-list/material.css +1 -1
- package/styles/drop-down-tree/material.css +1 -1
- package/styles/list-box/material.css +1 -1
- package/styles/material.css +1 -1
- package/styles/mention/material.css +1 -1
- package/styles/multi-select/material.css +1 -1
- package/tslint.json +111 -0
|
@@ -440,24 +440,30 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
440
440
|
}
|
|
441
441
|
var templateName = actionFailure ? 'actionFailureTemplate' : 'noRecordsTemplate';
|
|
442
442
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
443
|
-
var
|
|
444
|
-
if (
|
|
445
|
-
|
|
443
|
+
var noDataElement = void 0;
|
|
444
|
+
if ((this.isReact) && typeof template === 'function') {
|
|
445
|
+
noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null, ele);
|
|
449
|
+
}
|
|
450
|
+
if (noDataElement && noDataElement.length > 0) {
|
|
451
|
+
for (var i = 0; i < noDataElement.length; i++) {
|
|
446
452
|
if (this.getModuleName() === 'listbox' && templateName === 'noRecordsTemplate') {
|
|
447
|
-
if (
|
|
453
|
+
if (noDataElement[i].nodeName === '#text') {
|
|
448
454
|
var liElem = this.createElement('li');
|
|
449
|
-
liElem.textContent =
|
|
455
|
+
liElem.textContent = noDataElement[i].textContent;
|
|
450
456
|
liElem.classList.add('e-list-nrt');
|
|
451
457
|
liElem.setAttribute('role', 'option');
|
|
452
458
|
ele.appendChild(liElem);
|
|
453
459
|
}
|
|
454
460
|
else {
|
|
455
|
-
|
|
456
|
-
ele.appendChild(
|
|
461
|
+
noDataElement[i].classList.add('e-list-nr-template');
|
|
462
|
+
ele.appendChild(noDataElement[i]);
|
|
457
463
|
}
|
|
458
464
|
}
|
|
459
465
|
else {
|
|
460
|
-
ele.appendChild(
|
|
466
|
+
ele.appendChild(noDataElement[i]);
|
|
461
467
|
}
|
|
462
468
|
}
|
|
463
469
|
}
|
|
@@ -3308,7 +3314,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3308
3314
|
_this.wireListEvents();
|
|
3309
3315
|
}
|
|
3310
3316
|
_this.selectedElementID = _this.selectedLI ? _this.selectedLI.id : null;
|
|
3311
|
-
attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.
|
|
3317
|
+
attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '_options' });
|
|
3312
3318
|
_this.inputElement.setAttribute('aria-expanded', 'true');
|
|
3313
3319
|
var inputParent = _this.isFiltering() ? _this.filterInput.parentElement : _this.inputWrapper.container;
|
|
3314
3320
|
addClass([inputParent], [dropDownListClasses.inputFocus]);
|
|
@@ -4086,8 +4092,10 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4086
4092
|
}
|
|
4087
4093
|
break;
|
|
4088
4094
|
case 'showClearButton':
|
|
4089
|
-
|
|
4090
|
-
|
|
4095
|
+
if (!this_1.inputWrapper.clearButton) {
|
|
4096
|
+
Input.setClearButton(newProp.showClearButton, this_1.inputElement, this_1.inputWrapper, null, this_1.createElement);
|
|
4097
|
+
this_1.bindClearEvent();
|
|
4098
|
+
}
|
|
4091
4099
|
break;
|
|
4092
4100
|
default:
|
|
4093
4101
|
{
|
|
@@ -13032,6 +13040,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13032
13040
|
* @returns {void}
|
|
13033
13041
|
*/
|
|
13034
13042
|
MultiSelect.prototype.render = function () {
|
|
13043
|
+
if (!isNullOrUndefined(this.value)) {
|
|
13044
|
+
// eslint-disable-next-line
|
|
13045
|
+
this.value = this.value.slice();
|
|
13046
|
+
}
|
|
13035
13047
|
this.setDynValue = this.initStatus = false;
|
|
13036
13048
|
this.isSelectAll = false;
|
|
13037
13049
|
this.selectAllEventEle = [];
|