@progress/kendo-angular-dropdowns 6.0.1 → 6.0.2-dev.202202221633
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/checked-state/base-check.directive.js +19 -5
- 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 +28 -23
- 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/checked-state/base-check.directive.d.ts +7 -0
- package/dist/es2015/dropdowntrees/checked-state/base-check.directive.js +19 -5
- 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 +8 -5
- package/dist/es2015/multiselect/multiselect.component.js +27 -21
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +112 -88
- package/dist/fesm5/index.js +103 -93
- 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/checked-state/base-check.directive.js +18 -4
- 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 +28 -23
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-dropdowns.js +1 -1
- package/package.json +3 -5
|
@@ -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.
|
|
@@ -245,7 +244,8 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
245
244
|
*/
|
|
246
245
|
clearButton: boolean;
|
|
247
246
|
/**
|
|
248
|
-
* A user-defined callback function which receives an array of selected data items and maps them to an array of tags
|
|
247
|
+
* A user-defined callback function which receives an array of selected data items and maps them to an array of tags
|
|
248
|
+
* ([see examples]({% slug summarytagmode_multiselect %}#toc-rendering-of-tags)).
|
|
249
249
|
*
|
|
250
250
|
* @param { Any[] } dataItems - The selected data items from the list.
|
|
251
251
|
* @returns { Any[] } - The tags that will be rendered by the component.
|
|
@@ -368,6 +368,8 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
368
368
|
readonly dir: string;
|
|
369
369
|
readonly disabledClass: boolean;
|
|
370
370
|
readonly isLoading: boolean;
|
|
371
|
+
role: string;
|
|
372
|
+
readonly isAriaExpanded: boolean;
|
|
371
373
|
/**
|
|
372
374
|
* @hidden
|
|
373
375
|
*/
|
|
@@ -387,7 +389,6 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
387
389
|
readonly height: any;
|
|
388
390
|
readonly activeDescendant: string;
|
|
389
391
|
readonly noDataLabel: string;
|
|
390
|
-
readonly clearTitle: string;
|
|
391
392
|
readonly clearButtonVisiblity: string;
|
|
392
393
|
/**
|
|
393
394
|
* @hidden
|
|
@@ -456,6 +457,10 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
456
457
|
* the model will not update automatically and the `selectionChange` and `valueChange` events will not be fired.
|
|
457
458
|
*/
|
|
458
459
|
reset(): void;
|
|
460
|
+
/**
|
|
461
|
+
* @hidden
|
|
462
|
+
*/
|
|
463
|
+
messageFor(key: string): string;
|
|
459
464
|
/**
|
|
460
465
|
* @hidden
|
|
461
466
|
*/
|
|
@@ -494,7 +499,6 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
494
499
|
private observableSubscriptions;
|
|
495
500
|
private localizationChangeSubscription;
|
|
496
501
|
private touchstartDisposeHandler;
|
|
497
|
-
private messagesTimeout;
|
|
498
502
|
private direction;
|
|
499
503
|
private differ;
|
|
500
504
|
private valueChangeDetected;
|
|
@@ -534,6 +538,5 @@ export declare class MultiSelectComponent implements OnDestroy, OnChanges, OnIni
|
|
|
534
538
|
private resolveDataItemFromTags;
|
|
535
539
|
private firstFocusableIndex;
|
|
536
540
|
private nextTick;
|
|
537
|
-
private setMessages;
|
|
538
541
|
private setComponentClasses;
|
|
539
542
|
}
|
|
@@ -120,7 +120,8 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
120
120
|
*/
|
|
121
121
|
this.clearButton = true;
|
|
122
122
|
/**
|
|
123
|
-
* A user-defined callback function which receives an array of selected data items and maps them to an array of tags
|
|
123
|
+
* A user-defined callback function which receives an array of selected data items and maps them to an array of tags
|
|
124
|
+
* ([see examples]({% slug summarytagmode_multiselect %}#toc-rendering-of-tags)).
|
|
124
125
|
*
|
|
125
126
|
* @param { Any[] } dataItems - The selected data items from the list.
|
|
126
127
|
* @returns { Any[] } - The tags that will be rendered by the component.
|
|
@@ -235,6 +236,7 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
235
236
|
*/
|
|
236
237
|
this.removeTag = new EventEmitter();
|
|
237
238
|
this.hostClasses = true;
|
|
239
|
+
this.role = 'combobox';
|
|
238
240
|
this.initialized = false;
|
|
239
241
|
this._size = 'medium';
|
|
240
242
|
this._rounded = 'medium';
|
|
@@ -544,6 +546,9 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
544
546
|
get isLoading() {
|
|
545
547
|
return this.loading;
|
|
546
548
|
}
|
|
549
|
+
get isAriaExpanded() {
|
|
550
|
+
return this.isOpen;
|
|
551
|
+
}
|
|
547
552
|
/**
|
|
548
553
|
* @hidden
|
|
549
554
|
*/
|
|
@@ -607,12 +612,9 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
607
612
|
}
|
|
608
613
|
get noDataLabel() {
|
|
609
614
|
if (this.dataService.itemsCount === 0) {
|
|
610
|
-
return this.noDataText;
|
|
615
|
+
return this.messageFor('noDataText');
|
|
611
616
|
}
|
|
612
617
|
}
|
|
613
|
-
get clearTitle() {
|
|
614
|
-
return this.localization.get('clearTitle');
|
|
615
|
-
}
|
|
616
618
|
get clearButtonVisiblity() {
|
|
617
619
|
if (this.touchEnabled) {
|
|
618
620
|
return 'visible';
|
|
@@ -822,9 +824,8 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
822
824
|
this.localizationChangeSubscription = this.localization
|
|
823
825
|
.changes.subscribe(({ rtl }) => {
|
|
824
826
|
this.direction = rtl ? 'rtl' : 'ltr';
|
|
825
|
-
this.
|
|
827
|
+
this.cdr.markForCheck();
|
|
826
828
|
});
|
|
827
|
-
this.setMessages();
|
|
828
829
|
this.setState(this.value);
|
|
829
830
|
this.setComponentClasses();
|
|
830
831
|
this.initialized = true;
|
|
@@ -848,7 +849,6 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
848
849
|
ngOnDestroy() {
|
|
849
850
|
this._toggle(false);
|
|
850
851
|
this.unsubscribeEvents();
|
|
851
|
-
clearTimeout(this.messagesTimeout);
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
854
|
* Toggles the visibility of the popup
|
|
@@ -881,6 +881,12 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
881
881
|
this.text = "";
|
|
882
882
|
this.value = [];
|
|
883
883
|
}
|
|
884
|
+
/**
|
|
885
|
+
* @hidden
|
|
886
|
+
*/
|
|
887
|
+
messageFor(key) {
|
|
888
|
+
return this.localization.get(key);
|
|
889
|
+
}
|
|
884
890
|
// NG MODEL BINDINGS
|
|
885
891
|
/**
|
|
886
892
|
* @hidden
|
|
@@ -1309,15 +1315,6 @@ let MultiSelectComponent = MultiSelectComponent_1 = class MultiSelectComponent {
|
|
|
1309
1315
|
setTimeout(() => this._zone.run(f));
|
|
1310
1316
|
});
|
|
1311
1317
|
}
|
|
1312
|
-
setMessages() {
|
|
1313
|
-
this._zone.runOutsideAngular(() => {
|
|
1314
|
-
clearTimeout(this.messagesTimeout);
|
|
1315
|
-
this.messagesTimeout = setTimeout(() => {
|
|
1316
|
-
this.noDataText = this.localization.get('noDataText');
|
|
1317
|
-
this.cdr.detectChanges();
|
|
1318
|
-
});
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
1318
|
setComponentClasses() {
|
|
1322
1319
|
if (this.size) {
|
|
1323
1320
|
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
@@ -1554,6 +1551,15 @@ tslib_1.__decorate([
|
|
|
1554
1551
|
tslib_1.__metadata("design:type", Boolean),
|
|
1555
1552
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1556
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);
|
|
1557
1563
|
tslib_1.__decorate([
|
|
1558
1564
|
HostListener('mousedown', ['$event']),
|
|
1559
1565
|
tslib_1.__metadata("design:type", Function),
|
|
@@ -1587,7 +1593,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1587
1593
|
i18n-noDataText="kendo.multiselect.noDataText|The text displayed in the popup when there are no items"
|
|
1588
1594
|
noDataText="NO DATA FOUND"
|
|
1589
1595
|
|
|
1590
|
-
i18n-clearTitle="kendo.
|
|
1596
|
+
i18n-clearTitle="kendo.multiselect.clearTitle|The title of the clear button"
|
|
1591
1597
|
clearTitle="clear"
|
|
1592
1598
|
>
|
|
1593
1599
|
</ng-container>
|
|
@@ -1610,7 +1616,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1610
1616
|
<kendo-searchbar
|
|
1611
1617
|
#searchbar
|
|
1612
1618
|
[id]="focusableId"
|
|
1613
|
-
[role]="'
|
|
1619
|
+
[role]="'textbox'"
|
|
1614
1620
|
[tagListId]="tagListId"
|
|
1615
1621
|
[activeDescendant]="activeDescendant"
|
|
1616
1622
|
[noDataLabel]="noDataLabel"
|
|
@@ -1632,7 +1638,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1632
1638
|
*ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"
|
|
1633
1639
|
class="k-clear-value"
|
|
1634
1640
|
[style.visibility]="clearButtonVisiblity"
|
|
1635
|
-
[attr.title]="clearTitle"
|
|
1641
|
+
[attr.title]="messageFor('clearTitle')"
|
|
1636
1642
|
role="button"
|
|
1637
1643
|
tabindex="-1"
|
|
1638
1644
|
(mousedown)="clearAll($event)"
|
|
@@ -1697,7 +1703,7 @@ MultiSelectComponent = MultiSelectComponent_1 = tslib_1.__decorate([
|
|
|
1697
1703
|
}">
|
|
1698
1704
|
</ng-template>
|
|
1699
1705
|
<ng-template [ngIf]="!noDataTemplate">
|
|
1700
|
-
<div>{{ noDataText }}</div>
|
|
1706
|
+
<div>{{ messageFor('noDataText') }}</div>
|
|
1701
1707
|
</ng-template>
|
|
1702
1708
|
</div>
|
|
1703
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: 1645547418,
|
|
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
|
};
|