@syncfusion/ej2-dropdowns 22.2.9 → 22.2.10
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 +20 -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 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -8
- 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 +6 -6
- package/src/drop-down-base/drop-down-base.js +14 -8
- package/src/multi-select/multi-select.js +4 -0
- package/tslint.json +111 -0
|
@@ -413,24 +413,30 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
413
413
|
}
|
|
414
414
|
const templateName = actionFailure ? 'actionFailureTemplate' : 'noRecordsTemplate';
|
|
415
415
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
416
|
-
|
|
417
|
-
if (
|
|
418
|
-
|
|
416
|
+
let noDataElement;
|
|
417
|
+
if ((this.isReact) && typeof template === 'function') {
|
|
418
|
+
noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null);
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null, ele);
|
|
422
|
+
}
|
|
423
|
+
if (noDataElement && noDataElement.length > 0) {
|
|
424
|
+
for (let i = 0; i < noDataElement.length; i++) {
|
|
419
425
|
if (this.getModuleName() === 'listbox' && templateName === 'noRecordsTemplate') {
|
|
420
|
-
if (
|
|
426
|
+
if (noDataElement[i].nodeName === '#text') {
|
|
421
427
|
const liElem = this.createElement('li');
|
|
422
|
-
liElem.textContent =
|
|
428
|
+
liElem.textContent = noDataElement[i].textContent;
|
|
423
429
|
liElem.classList.add('e-list-nrt');
|
|
424
430
|
liElem.setAttribute('role', 'option');
|
|
425
431
|
ele.appendChild(liElem);
|
|
426
432
|
}
|
|
427
433
|
else {
|
|
428
|
-
|
|
429
|
-
ele.appendChild(
|
|
434
|
+
noDataElement[i].classList.add('e-list-nr-template');
|
|
435
|
+
ele.appendChild(noDataElement[i]);
|
|
430
436
|
}
|
|
431
437
|
}
|
|
432
438
|
else {
|
|
433
|
-
ele.appendChild(
|
|
439
|
+
ele.appendChild(noDataElement[i]);
|
|
434
440
|
}
|
|
435
441
|
}
|
|
436
442
|
}
|
|
@@ -12851,6 +12857,10 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12851
12857
|
* @returns {void}
|
|
12852
12858
|
*/
|
|
12853
12859
|
render() {
|
|
12860
|
+
if (!isNullOrUndefined(this.value)) {
|
|
12861
|
+
// eslint-disable-next-line
|
|
12862
|
+
this.value = [...this.value];
|
|
12863
|
+
}
|
|
12854
12864
|
this.setDynValue = this.initStatus = false;
|
|
12855
12865
|
this.isSelectAll = false;
|
|
12856
12866
|
this.selectAllEventEle = [];
|