@progress/kendo-angular-dropdowns 6.0.2-dev.202202171128 → 6.0.2-dev.202202251358
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/cdn/js/kendo-angular-dropdowns.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/autocomplete/autocomplete.component.js +9 -22
- package/dist/es/comboboxes/combobox.component.js +9 -22
- package/dist/es/comboboxes/multicolumncombobox.component.js +1 -1
- package/dist/es/common/localization/messages.js +4 -0
- package/dist/es/common/searchbar.component.js +8 -1
- package/dist/es/common/taglist.component.js +1 -1
- package/dist/es/dropdownlist/dropdownlist.component.js +10 -16
- package/dist/es/dropdowntrees/dropdowntree.component.js +1 -1
- package/dist/es/dropdowntrees/multiselecttree.component.js +13 -1
- package/dist/es/multiselect/multiselect.component.js +26 -22
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/autocomplete/autocomplete.component.d.ts +4 -4
- package/dist/es2015/autocomplete/autocomplete.component.js +10 -18
- package/dist/es2015/comboboxes/combobox.component.d.ts +4 -4
- package/dist/es2015/comboboxes/combobox.component.js +14 -19
- package/dist/es2015/comboboxes/multicolumncombobox.component.js +3 -2
- package/dist/es2015/common/localization/messages.d.ts +4 -0
- package/dist/es2015/common/localization/messages.js +4 -0
- package/dist/es2015/common/searchbar.component.d.ts +1 -0
- package/dist/es2015/common/searchbar.component.js +4 -1
- package/dist/es2015/common/taglist.component.js +0 -3
- package/dist/es2015/dropdownlist/dropdownlist.component.d.ts +4 -3
- package/dist/es2015/dropdownlist/dropdownlist.component.js +17 -18
- package/dist/es2015/dropdowntrees/dropdowntree.component.js +5 -0
- package/dist/es2015/dropdowntrees/multiselecttree.component.d.ts +1 -0
- package/dist/es2015/dropdowntrees/multiselecttree.component.js +9 -1
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/multiselect/multiselect.component.d.ts +6 -4
- package/dist/es2015/multiselect/multiselect.component.js +25 -20
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +92 -83
- package/dist/fesm5/index.js +83 -88
- package/dist/npm/autocomplete/autocomplete.component.js +9 -22
- package/dist/npm/comboboxes/combobox.component.js +9 -22
- package/dist/npm/comboboxes/multicolumncombobox.component.js +1 -1
- package/dist/npm/common/localization/messages.js +4 -0
- package/dist/npm/common/searchbar.component.js +8 -1
- package/dist/npm/common/taglist.component.js +1 -1
- package/dist/npm/dropdownlist/dropdownlist.component.js +10 -16
- package/dist/npm/dropdowntrees/dropdowntree.component.js +1 -1
- package/dist/npm/dropdowntrees/multiselecttree.component.js +13 -1
- package/dist/npm/multiselect/multiselect.component.js +26 -22
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-dropdowns.js +1 -1
- package/package.json +2 -2
|
@@ -70,7 +70,6 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
70
70
|
text: string;
|
|
71
71
|
tags: any[];
|
|
72
72
|
focusedTagIndex: number;
|
|
73
|
-
noDataText: string;
|
|
74
73
|
/**
|
|
75
74
|
* Focuses a specific item of the MultiSelect based on a provided index.
|
|
76
75
|
* If there is a custom item it is positioned at index -1.
|
|
@@ -369,6 +368,8 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
369
368
|
readonly dir: string;
|
|
370
369
|
readonly disabledClass: boolean;
|
|
371
370
|
readonly isLoading: boolean;
|
|
371
|
+
role: string;
|
|
372
|
+
readonly isAriaExpanded: boolean;
|
|
372
373
|
/**
|
|
373
374
|
* @hidden
|
|
374
375
|
*/
|
|
@@ -388,7 +389,6 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
388
389
|
readonly height: any;
|
|
389
390
|
readonly activeDescendant: string;
|
|
390
391
|
readonly noDataLabel: string;
|
|
391
|
-
readonly clearTitle: string;
|
|
392
392
|
readonly clearButtonVisiblity: string;
|
|
393
393
|
/**
|
|
394
394
|
* @hidden
|
|
@@ -457,6 +457,10 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
457
457
|
* the model will not update automatically and the `selectionChange` and `valueChange` events will not be fired.
|
|
458
458
|
*/
|
|
459
459
|
reset(): void;
|
|
460
|
+
/**
|
|
461
|
+
* @hidden
|
|
462
|
+
*/
|
|
463
|
+
messageFor(key: string): string;
|
|
460
464
|
/**
|
|
461
465
|
* @hidden
|
|
462
466
|
*/
|
|
@@ -495,7 +499,6 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
495
499
|
private observableSubscriptions;
|
|
496
500
|
private localizationChangeSubscription;
|
|
497
501
|
private touchstartDisposeHandler;
|
|
498
|
-
private messagesTimeout;
|
|
499
502
|
private direction;
|
|
500
503
|
private differ;
|
|
501
504
|
private valueChangeDetected;
|
|
@@ -535,6 +538,5 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
535
538
|
private resolveDataItemFromTags;
|
|
536
539
|
private firstFocusableIndex;
|
|
537
540
|
private nextTick;
|
|
538
|
-
private setMessages;
|
|
539
541
|
private setComponentClasses;
|
|
540
542
|
}
|
|
@@ -236,6 +236,7 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
236
236
|
*/
|
|
237
237
|
this.removeTag = new EventEmitter();
|
|
238
238
|
this.hostClasses = true;
|
|
239
|
+
this.role = 'combobox';
|
|
239
240
|
this.initialized = false;
|
|
240
241
|
this._size = 'medium';
|
|
241
242
|
this._rounded = 'medium';
|
|
@@ -545,6 +546,9 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
545
546
|
get isLoading() {
|
|
546
547
|
return this.loading;
|
|
547
548
|
}
|
|
549
|
+
get isAriaExpanded() {
|
|
550
|
+
return this.isOpen;
|
|
551
|
+
}
|
|
548
552
|
/**
|
|
549
553
|
* @hidden
|
|
550
554
|
*/
|
|
@@ -608,12 +612,9 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
608
612
|
}
|
|
609
613
|
get noDataLabel() {
|
|
610
614
|
if (this.dataService.itemsCount === 0) {
|
|
611
|
-
return this.noDataText;
|
|
615
|
+
return this.messageFor('noDataText');
|
|
612
616
|
}
|
|
613
617
|
}
|
|
614
|
-
get clearTitle() {
|
|
615
|
-
return this.localization.get('clearTitle');
|
|
616
|
-
}
|
|
617
618
|
get clearButtonVisiblity() {
|
|
618
619
|
if (this.touchEnabled) {
|
|
619
620
|
return 'visible';
|
|
@@ -823,9 +824,8 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
823
824
|
this.localizationChangeSubscription = this.localization
|
|
824
825
|
.changes.subscribe(({ rtl }) => {
|
|
825
826
|
this.direction = rtl ? 'rtl' : 'ltr';
|
|
826
|
-
this.
|
|
827
|
+
this.cdr.markForCheck();
|
|
827
828
|
});
|
|
828
|
-
this.setMessages();
|
|
829
829
|
this.setState(this.value);
|
|
830
830
|
this.setComponentClasses();
|
|
831
831
|
this.initialized = true;
|
|
@@ -849,7 +849,6 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
849
849
|
ngOnDestroy() {
|
|
850
850
|
this._toggle(false);
|
|
851
851
|
this.unsubscribeEvents();
|
|
852
|
-
clearTimeout(this.messagesTimeout);
|
|
853
852
|
}
|
|
854
853
|
/**
|
|
855
854
|
* Toggles the visibility of the popup
|
|
@@ -882,6 +881,12 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
882
881
|
this.text = "";
|
|
883
882
|
this.value = [];
|
|
884
883
|
}
|
|
884
|
+
/**
|
|
885
|
+
* @hidden
|
|
886
|
+
*/
|
|
887
|
+
messageFor(key) {
|
|
888
|
+
return this.localization.get(key);
|
|
889
|
+
}
|
|
885
890
|
// NG MODEL BINDINGS
|
|
886
891
|
/**
|
|
887
892
|
* @hidden
|
|
@@ -1310,15 +1315,6 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
1310
1315
|
setTimeout(() => this._zone.run(f));
|
|
1311
1316
|
});
|
|
1312
1317
|
}
|
|
1313
|
-
setMessages() {
|
|
1314
|
-
this._zone.runOutsideAngular(() => {
|
|
1315
|
-
clearTimeout(this.messagesTimeout);
|
|
1316
|
-
this.messagesTimeout = setTimeout(() => {
|
|
1317
|
-
this.noDataText = this.localization.get('noDataText');
|
|
1318
|
-
this.cdr.detectChanges();
|
|
1319
|
-
});
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
1318
|
setComponentClasses() {
|
|
1323
1319
|
if (this.size) {
|
|
1324
1320
|
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
@@ -1555,6 +1551,15 @@ tslib_1.__decorate([
|
|
|
1555
1551
|
tslib_1.__metadata("design:type", Boolean),
|
|
1556
1552
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1557
1553
|
], MultiSelectComponent.prototype, "isLoading", null);
|
|
1554
|
+
tslib_1.__decorate([
|
|
1555
|
+
HostBinding('attr.role'),
|
|
1556
|
+
tslib_1.__metadata("design:type", String)
|
|
1557
|
+
], MultiSelectComponent.prototype, "role", void 0);
|
|
1558
|
+
tslib_1.__decorate([
|
|
1559
|
+
HostBinding('attr.aria-expanded'),
|
|
1560
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
1561
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
1562
|
+
], MultiSelectComponent.prototype, "isAriaExpanded", null);
|
|
1558
1563
|
tslib_1.__decorate([
|
|
1559
1564
|
HostListener('mousedown', ['$event']),
|
|
1560
1565
|
tslib_1.__metadata("design:type", Function),
|
|
@@ -1588,7 +1593,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1588
1593
|
i18n-noDataText="kendo.multiselect.noDataText|The text displayed in the popup when there are no items"
|
|
1589
1594
|
noDataText="NO DATA FOUND"
|
|
1590
1595
|
|
|
1591
|
-
i18n-clearTitle="kendo.
|
|
1596
|
+
i18n-clearTitle="kendo.multiselect.clearTitle|The title of the clear button"
|
|
1592
1597
|
clearTitle="clear"
|
|
1593
1598
|
>
|
|
1594
1599
|
</ng-container>
|
|
@@ -1611,7 +1616,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1611
1616
|
<kendo-searchbar
|
|
1612
1617
|
#searchbar
|
|
1613
1618
|
[id]="focusableId"
|
|
1614
|
-
[role]="'
|
|
1619
|
+
[role]="'textbox'"
|
|
1615
1620
|
[tagListId]="tagListId"
|
|
1616
1621
|
[activeDescendant]="activeDescendant"
|
|
1617
1622
|
[noDataLabel]="noDataLabel"
|
|
@@ -1633,7 +1638,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1633
1638
|
*ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"
|
|
1634
1639
|
class="k-clear-value"
|
|
1635
1640
|
[style.visibility]="clearButtonVisiblity"
|
|
1636
|
-
[attr.title]="clearTitle"
|
|
1641
|
+
[attr.title]="messageFor('clearTitle')"
|
|
1637
1642
|
role="button"
|
|
1638
1643
|
tabindex="-1"
|
|
1639
1644
|
(mousedown)="clearAll($event)"
|
|
@@ -1698,7 +1703,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1698
1703
|
}">
|
|
1699
1704
|
</ng-template>
|
|
1700
1705
|
<ng-template [ngIf]="!noDataTemplate">
|
|
1701
|
-
<div>{{ noDataText }}</div>
|
|
1706
|
+
<div>{{ messageFor('noDataText') }}</div>
|
|
1702
1707
|
</ng-template>
|
|
1703
1708
|
</div>
|
|
1704
1709
|
<!--footer template-->
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-dropdowns',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1645797253,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|