@progress/kendo-angular-dropdowns 7.2.2 → 7.2.3
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/bundles/kendo-angular-dropdowns.umd.js +1 -1
- package/common/searchbar.component.d.ts +7 -5
- package/dropdowns.module.d.ts +1 -1
- package/dropdowntrees/dropdowntree.component.d.ts +16 -5
- package/dropdowntrees/multiselecttree.component.d.ts +15 -5
- package/esm2015/common/searchbar.component.js +9 -24
- package/esm2015/dropdownlist/dropdownlist.component.js +1 -0
- package/esm2015/dropdowns.module.js +1 -1
- package/esm2015/dropdowntrees/dropdowntree.component.js +55 -19
- package/esm2015/dropdowntrees/multiselecttree.component.js +46 -12
- package/esm2015/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-dropdowns.js +111 -55
- package/package.json +1 -1
|
@@ -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: 1668416326,
|
|
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
|
};
|
|
@@ -29,7 +29,7 @@ const packageMetadata = {
|
|
|
29
29
|
name: '@progress/kendo-angular-dropdowns',
|
|
30
30
|
productName: 'Kendo UI for Angular',
|
|
31
31
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
32
|
-
publishDate:
|
|
32
|
+
publishDate: 1668416326,
|
|
33
33
|
version: '',
|
|
34
34
|
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'
|
|
35
35
|
};
|
|
@@ -423,6 +423,13 @@ class SearchBarComponent {
|
|
|
423
423
|
set userInput(userInput) {
|
|
424
424
|
this._userInput = userInput || "";
|
|
425
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* @hidden
|
|
428
|
+
*/
|
|
429
|
+
get formControl() {
|
|
430
|
+
const ngControl = this.injector.get(NgControl, null);
|
|
431
|
+
return (ngControl === null || ngControl === void 0 ? void 0 : ngControl.control) || null;
|
|
432
|
+
}
|
|
426
433
|
get value() {
|
|
427
434
|
return this.input.nativeElement.value;
|
|
428
435
|
}
|
|
@@ -440,17 +447,6 @@ class SearchBarComponent {
|
|
|
440
447
|
this.subs.add(this.localization
|
|
441
448
|
.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr'));
|
|
442
449
|
}
|
|
443
|
-
ngAfterContentChecked() {
|
|
444
|
-
var _a;
|
|
445
|
-
const formControl = (_a = this.injector.get(NgControl, null)) === null || _a === void 0 ? void 0 : _a.control;
|
|
446
|
-
this.control = formControl;
|
|
447
|
-
if (formControl) {
|
|
448
|
-
this.subs.add(formControl.valueChanges.subscribe(() => {
|
|
449
|
-
this.control = formControl;
|
|
450
|
-
}));
|
|
451
|
-
}
|
|
452
|
-
this.setAriaInvalid();
|
|
453
|
-
}
|
|
454
450
|
ngOnChanges(changes) {
|
|
455
451
|
let previousUserInput;
|
|
456
452
|
if (this.input && (changes.userInput || changes.suggestedText)) {
|
|
@@ -501,19 +497,6 @@ class SearchBarComponent {
|
|
|
501
497
|
}
|
|
502
498
|
}
|
|
503
499
|
}
|
|
504
|
-
setAriaInvalid() {
|
|
505
|
-
if (this.control) {
|
|
506
|
-
if (this.control.invalid) {
|
|
507
|
-
this.renderer.setAttribute(this.input.nativeElement, 'aria-invalid', 'true');
|
|
508
|
-
}
|
|
509
|
-
else {
|
|
510
|
-
this.renderer.setAttribute(this.input.nativeElement, 'aria-invalid', 'false');
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
this.renderer.removeAttribute(this.input.nativeElement, 'aria-invalid');
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
500
|
setAriaAutocomplete() {
|
|
518
501
|
if (this.isFilterable) {
|
|
519
502
|
this.renderer.setAttribute(this.input.nativeElement, 'aria-autocomplete', 'list');
|
|
@@ -595,6 +578,7 @@ SearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
595
578
|
[attr.aria-describedby]="tagListId"
|
|
596
579
|
[attr.aria-activedescendant]="activeDescendant"
|
|
597
580
|
[attr.aria-busy]="isLoading"
|
|
581
|
+
[attr.aria-invalid]="formControl?.invalid"
|
|
598
582
|
/>
|
|
599
583
|
`, isInline: true, directives: [{ type: i9.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
600
584
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
@@ -625,6 +609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
625
609
|
[attr.aria-describedby]="tagListId"
|
|
626
610
|
[attr.aria-activedescendant]="activeDescendant"
|
|
627
611
|
[attr.aria-busy]="isLoading"
|
|
612
|
+
[attr.aria-invalid]="formControl?.invalid"
|
|
628
613
|
/>
|
|
629
614
|
`
|
|
630
615
|
}]
|
|
@@ -5894,6 +5879,7 @@ class DropDownListComponent {
|
|
|
5894
5879
|
action !== NavigationAction.Delete &&
|
|
5895
5880
|
action !== NavigationAction.PageDown &&
|
|
5896
5881
|
action !== NavigationAction.PageUp &&
|
|
5882
|
+
action !== NavigationAction.SelectAll &&
|
|
5897
5883
|
!(leftRightKeys && this.filterable) &&
|
|
5898
5884
|
action !== NavigationAction.Enter //enter when popup is opened is handled before `handleEnter`
|
|
5899
5885
|
) {
|
|
@@ -10145,7 +10131,8 @@ const DEFAULT_FILL_MODE$1 = 'solid';
|
|
|
10145
10131
|
* Represents the [Kendo UI DropDownTree component for Angular]({% slug overview_ddt %}).
|
|
10146
10132
|
*/
|
|
10147
10133
|
class DropDownTreeComponent {
|
|
10148
|
-
constructor(wrapper, popupService, navigationService, renderer, _zone, cdr, localization, touchEnabled) {
|
|
10134
|
+
constructor(injector, wrapper, popupService, navigationService, renderer, _zone, cdr, localization, touchEnabled) {
|
|
10135
|
+
this.injector = injector;
|
|
10149
10136
|
this.wrapper = wrapper;
|
|
10150
10137
|
this.popupService = popupService;
|
|
10151
10138
|
this.navigationService = navigationService;
|
|
@@ -10155,7 +10142,7 @@ class DropDownTreeComponent {
|
|
|
10155
10142
|
this.localization = localization;
|
|
10156
10143
|
this.touchEnabled = touchEnabled;
|
|
10157
10144
|
this.hostClasses = true;
|
|
10158
|
-
this.role = '
|
|
10145
|
+
this.role = 'combobox';
|
|
10159
10146
|
this.ariaHasPopup = 'tree';
|
|
10160
10147
|
/**
|
|
10161
10148
|
* Fires each time the popup is about to open
|
|
@@ -10291,6 +10278,7 @@ class DropDownTreeComponent {
|
|
|
10291
10278
|
this._popupSettings = DEFAULT_POPUP_SETTINGS$1;
|
|
10292
10279
|
this._tabindex = 0;
|
|
10293
10280
|
this._isFocused = false;
|
|
10281
|
+
this._popupId = guid$1();
|
|
10294
10282
|
this._size = 'medium';
|
|
10295
10283
|
this._rounded = 'medium';
|
|
10296
10284
|
this._fillMode = 'solid';
|
|
@@ -10302,12 +10290,24 @@ class DropDownTreeComponent {
|
|
|
10302
10290
|
this.subscribeTouchEvents();
|
|
10303
10291
|
this.subscribeFocusEvents();
|
|
10304
10292
|
}
|
|
10293
|
+
get hostAriaInvalid() {
|
|
10294
|
+
return this.formControl ? this.formControl.invalid.toString() : null;
|
|
10295
|
+
}
|
|
10305
10296
|
get isDisabled() {
|
|
10306
10297
|
return this.disabled;
|
|
10307
10298
|
}
|
|
10299
|
+
get isDisabledAttribute() {
|
|
10300
|
+
return this.disabled ? '' : null;
|
|
10301
|
+
}
|
|
10308
10302
|
get isLoading() {
|
|
10309
10303
|
return this.loading;
|
|
10310
10304
|
}
|
|
10305
|
+
get isBusy() {
|
|
10306
|
+
return this.loading ? 'true' : null;
|
|
10307
|
+
}
|
|
10308
|
+
get hostAriaControls() {
|
|
10309
|
+
return this.isOpen ? this._popupId : null;
|
|
10310
|
+
}
|
|
10311
10311
|
get id() {
|
|
10312
10312
|
return this.focusableId;
|
|
10313
10313
|
}
|
|
@@ -10317,8 +10317,11 @@ class DropDownTreeComponent {
|
|
|
10317
10317
|
get isAriaExpanded() {
|
|
10318
10318
|
return this.isOpen;
|
|
10319
10319
|
}
|
|
10320
|
+
get hostAriaAutocomplete() {
|
|
10321
|
+
return this.filterable ? 'list' : null;
|
|
10322
|
+
}
|
|
10320
10323
|
get isReadonly() {
|
|
10321
|
-
return this.readonly;
|
|
10324
|
+
return this.readonly ? '' : null;
|
|
10322
10325
|
}
|
|
10323
10326
|
/**
|
|
10324
10327
|
* @hidden
|
|
@@ -10574,6 +10577,13 @@ class DropDownTreeComponent {
|
|
|
10574
10577
|
get isVisible() {
|
|
10575
10578
|
return this.isNodeVisible;
|
|
10576
10579
|
}
|
|
10580
|
+
/**
|
|
10581
|
+
* @hidden
|
|
10582
|
+
*/
|
|
10583
|
+
get formControl() {
|
|
10584
|
+
const ngControl = this.injector.get(NgControl, null);
|
|
10585
|
+
return (ngControl === null || ngControl === void 0 ? void 0 : ngControl.control) || null;
|
|
10586
|
+
}
|
|
10577
10587
|
ngOnInit() {
|
|
10578
10588
|
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
10579
10589
|
this.assignAriaDescribedBy();
|
|
@@ -10924,10 +10934,11 @@ class DropDownTreeComponent {
|
|
|
10924
10934
|
});
|
|
10925
10935
|
const popupWrapper = this.popupRef.popupElement;
|
|
10926
10936
|
const { min, max } = this.width;
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10937
|
+
this.renderer.setStyle(popupWrapper, 'minWidth', min);
|
|
10938
|
+
this.renderer.setStyle(popupWrapper, 'width', max);
|
|
10939
|
+
this.renderer.setStyle(popupWrapper, 'height', this.height);
|
|
10940
|
+
this.renderer.setAttribute(popupWrapper, 'dir', this.direction);
|
|
10941
|
+
this.renderer.setAttribute(popupWrapper, 'id', this._popupId);
|
|
10931
10942
|
this.popupRef.popupOpen.subscribe(() => {
|
|
10932
10943
|
this.cdr.detectChanges();
|
|
10933
10944
|
this.opened.emit();
|
|
@@ -10972,7 +10983,11 @@ class DropDownTreeComponent {
|
|
|
10972
10983
|
this.selectedKeys = [];
|
|
10973
10984
|
}
|
|
10974
10985
|
subscribeEvents() {
|
|
10975
|
-
this.subscriptions.push(this.navigationService.open.subscribe(() =>
|
|
10986
|
+
this.subscriptions.push(this.navigationService.open.subscribe((event) => {
|
|
10987
|
+
event.originalEvent.preventDefault();
|
|
10988
|
+
this.togglePopup(true);
|
|
10989
|
+
}), this.navigationService.close.subscribe((event) => {
|
|
10990
|
+
event.originalEvent.preventDefault();
|
|
10976
10991
|
this.togglePopup(false);
|
|
10977
10992
|
this.focus();
|
|
10978
10993
|
}), this.navigationService.enter
|
|
@@ -11064,8 +11079,8 @@ class DropDownTreeComponent {
|
|
|
11064
11079
|
}
|
|
11065
11080
|
}
|
|
11066
11081
|
}
|
|
11067
|
-
DropDownTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownTreeComponent, deps: [{ token: i0.ElementRef }, { token: i2.PopupService }, { token: NavigationService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
11068
|
-
DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropDownTreeComponent, selector: "kendo-dropdowntree", inputs: { loading: "loading", clearButton: "clearButton", data: "data", value: "value", textField: "textField", valueField: "valueField", valueDepth: "valueDepth", hasChildren: "hasChildren", fetchChildren: "fetchChildren", placeholder: "placeholder", popupSettings: "popupSettings", dataItem: "dataItem", listHeight: "listHeight", disabled: "disabled", readonly: "readonly", valuePrimitive: "valuePrimitive", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", itemDisabled: "itemDisabled", isNodeExpanded: "isNodeExpanded", isNodeVisible: "isNodeVisible", loadOnDemand: "loadOnDemand", filterable: "filterable", filter: "filter", focusableId: "focusableId" }, outputs: { open: "open", opened: "opened", close: "close", closed: "closed", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", onFocus: "focus", onBlur: "blur", valueChange: "valueChange", filterChange: "filterChange" }, host: { listeners: { "click": "handleClick()", "keydown": "handleKeydown($event)" }, properties: { "class.k-dropdowntree": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-disabled": "this.isDisabled", "attr.
|
|
11082
|
+
DropDownTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownTreeComponent, deps: [{ token: i0.Injector }, { token: i0.ElementRef }, { token: i2.PopupService }, { token: NavigationService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
11083
|
+
DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropDownTreeComponent, selector: "kendo-dropdowntree", inputs: { loading: "loading", clearButton: "clearButton", data: "data", value: "value", textField: "textField", valueField: "valueField", valueDepth: "valueDepth", hasChildren: "hasChildren", fetchChildren: "fetchChildren", placeholder: "placeholder", popupSettings: "popupSettings", dataItem: "dataItem", listHeight: "listHeight", disabled: "disabled", readonly: "readonly", valuePrimitive: "valuePrimitive", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", itemDisabled: "itemDisabled", isNodeExpanded: "isNodeExpanded", isNodeVisible: "isNodeVisible", loadOnDemand: "loadOnDemand", filterable: "filterable", filter: "filter", focusableId: "focusableId" }, outputs: { open: "open", opened: "opened", close: "close", closed: "closed", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", onFocus: "focus", onBlur: "blur", valueChange: "valueChange", filterChange: "filterChange" }, host: { listeners: { "click": "handleClick()", "keydown": "handleKeydown($event)" }, properties: { "class.k-dropdowntree": "this.hostClasses", "class.k-picker": "this.hostClasses", "attr.aria-invalid": "this.hostAriaInvalid", "class.k-disabled": "this.isDisabled", "attr.disabled": "this.isDisabledAttribute", "class.k-loading": "this.isLoading", "attr.aria-busy": "this.isBusy", "attr.aria-controls": "this.hostAriaControls", "attr.id": "this.id", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabIndex", "attr.role": "this.role", "attr.aria-haspopup": "this.ariaHasPopup", "attr.aria-expanded": "this.isAriaExpanded", "attr.aria-autocomplete": "this.hostAriaAutocomplete", "attr.readonly": "this.isReadonly" } }, providers: [
|
|
11069
11084
|
DataService,
|
|
11070
11085
|
SelectionService,
|
|
11071
11086
|
NavigationService,
|
|
@@ -11107,7 +11122,6 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
11107
11122
|
<span
|
|
11108
11123
|
[attr.id]="valueLabelId"
|
|
11109
11124
|
class="k-input-inner"
|
|
11110
|
-
role="option"
|
|
11111
11125
|
>
|
|
11112
11126
|
<span class="k-input-value-text">
|
|
11113
11127
|
<ng-template *ngIf="valueTemplate"
|
|
@@ -11277,7 +11291,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
11277
11291
|
<span
|
|
11278
11292
|
[attr.id]="valueLabelId"
|
|
11279
11293
|
class="k-input-inner"
|
|
11280
|
-
role="option"
|
|
11281
11294
|
>
|
|
11282
11295
|
<span class="k-input-value-text">
|
|
11283
11296
|
<ng-template *ngIf="valueTemplate"
|
|
@@ -11401,7 +11414,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
11401
11414
|
`,
|
|
11402
11415
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
11403
11416
|
}]
|
|
11404
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.PopupService }, { type: NavigationService }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }, { type: undefined, decorators: [{
|
|
11417
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i2.PopupService }, { type: NavigationService }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }, { type: undefined, decorators: [{
|
|
11405
11418
|
type: Optional
|
|
11406
11419
|
}, {
|
|
11407
11420
|
type: Inject,
|
|
@@ -11412,15 +11425,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
11412
11425
|
}, {
|
|
11413
11426
|
type: HostBinding,
|
|
11414
11427
|
args: ['class.k-picker']
|
|
11428
|
+
}], hostAriaInvalid: [{
|
|
11429
|
+
type: HostBinding,
|
|
11430
|
+
args: ['attr.aria-invalid']
|
|
11415
11431
|
}], isDisabled: [{
|
|
11416
11432
|
type: HostBinding,
|
|
11417
11433
|
args: ['class.k-disabled']
|
|
11418
|
-
}, {
|
|
11434
|
+
}], isDisabledAttribute: [{
|
|
11419
11435
|
type: HostBinding,
|
|
11420
|
-
args: ['attr.
|
|
11436
|
+
args: ['attr.disabled']
|
|
11421
11437
|
}], isLoading: [{
|
|
11422
11438
|
type: HostBinding,
|
|
11423
11439
|
args: ['class.k-loading']
|
|
11440
|
+
}], isBusy: [{
|
|
11441
|
+
type: HostBinding,
|
|
11442
|
+
args: ['attr.aria-busy']
|
|
11443
|
+
}], hostAriaControls: [{
|
|
11444
|
+
type: HostBinding,
|
|
11445
|
+
args: ['attr.aria-controls']
|
|
11424
11446
|
}], id: [{
|
|
11425
11447
|
type: HostBinding,
|
|
11426
11448
|
args: ['attr.id']
|
|
@@ -11439,12 +11461,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
11439
11461
|
}], isAriaExpanded: [{
|
|
11440
11462
|
type: HostBinding,
|
|
11441
11463
|
args: ['attr.aria-expanded']
|
|
11464
|
+
}], hostAriaAutocomplete: [{
|
|
11465
|
+
type: HostBinding,
|
|
11466
|
+
args: ['attr.aria-autocomplete']
|
|
11442
11467
|
}], isReadonly: [{
|
|
11443
11468
|
type: HostBinding,
|
|
11444
11469
|
args: ['attr.readonly']
|
|
11445
|
-
}, {
|
|
11446
|
-
type: HostBinding,
|
|
11447
|
-
args: ['attr.aria-readonly']
|
|
11448
11470
|
}], handleClick: [{
|
|
11449
11471
|
type: HostListener,
|
|
11450
11472
|
args: ['click']
|
|
@@ -11997,7 +12019,8 @@ const DEFAULT_FILL_MODE = 'solid';
|
|
|
11997
12019
|
* Represents the [Kendo UI MultiSelectTree component for Angular]({% slug overview_multiselecttree %}).
|
|
11998
12020
|
*/
|
|
11999
12021
|
class MultiSelectTreeComponent {
|
|
12000
|
-
constructor(wrapper, popupService, renderer, navigationService, _zone, localization, cdr, lookup, touchEnabled) {
|
|
12022
|
+
constructor(injector, wrapper, popupService, renderer, navigationService, _zone, localization, cdr, lookup, touchEnabled) {
|
|
12023
|
+
this.injector = injector;
|
|
12001
12024
|
this.wrapper = wrapper;
|
|
12002
12025
|
this.popupService = popupService;
|
|
12003
12026
|
this.renderer = renderer;
|
|
@@ -12168,6 +12191,7 @@ class MultiSelectTreeComponent {
|
|
|
12168
12191
|
this._popupSettings = DEFAULT_POPUP_SETTINGS;
|
|
12169
12192
|
this._checkableSettings = DEFAULT_CHECKABLE_SETTINGS;
|
|
12170
12193
|
this._isFocused = false;
|
|
12194
|
+
this._popupId = guid$1();
|
|
12171
12195
|
this._size = 'medium';
|
|
12172
12196
|
this._rounded = 'medium';
|
|
12173
12197
|
this._fillMode = 'solid';
|
|
@@ -12182,9 +12206,21 @@ class MultiSelectTreeComponent {
|
|
|
12182
12206
|
get isDisabled() {
|
|
12183
12207
|
return this.disabled;
|
|
12184
12208
|
}
|
|
12209
|
+
get hostAriaControls() {
|
|
12210
|
+
return this.isOpen ? this._popupId : null;
|
|
12211
|
+
}
|
|
12212
|
+
get hostAriaAutocomplete() {
|
|
12213
|
+
return this.filterable ? 'list' : null;
|
|
12214
|
+
}
|
|
12185
12215
|
get isLoading() {
|
|
12186
12216
|
return this.loading;
|
|
12187
12217
|
}
|
|
12218
|
+
get hostAriaInvalid() {
|
|
12219
|
+
return this.formControl ? this.formControl.invalid.toString() : null;
|
|
12220
|
+
}
|
|
12221
|
+
get isBusy() {
|
|
12222
|
+
return this.loading ? 'true' : null;
|
|
12223
|
+
}
|
|
12188
12224
|
get id() {
|
|
12189
12225
|
return this.focusableId;
|
|
12190
12226
|
}
|
|
@@ -12195,7 +12231,7 @@ class MultiSelectTreeComponent {
|
|
|
12195
12231
|
return this.isOpen;
|
|
12196
12232
|
}
|
|
12197
12233
|
get isReadonly() {
|
|
12198
|
-
return this.readonly;
|
|
12234
|
+
return this.readonly ? '' : null;
|
|
12199
12235
|
}
|
|
12200
12236
|
get ariaDescribedBy() {
|
|
12201
12237
|
return this.tagListId;
|
|
@@ -12203,6 +12239,13 @@ class MultiSelectTreeComponent {
|
|
|
12203
12239
|
get ariaActiveDescendant() {
|
|
12204
12240
|
return this.focusedTagId;
|
|
12205
12241
|
}
|
|
12242
|
+
/**
|
|
12243
|
+
* @hidden
|
|
12244
|
+
*/
|
|
12245
|
+
get formControl() {
|
|
12246
|
+
const ngControl = this.injector.get(NgControl, null);
|
|
12247
|
+
return (ngControl === null || ngControl === void 0 ? void 0 : ngControl.control) || null;
|
|
12248
|
+
}
|
|
12206
12249
|
/**
|
|
12207
12250
|
* @hidden
|
|
12208
12251
|
*/
|
|
@@ -12977,9 +13020,13 @@ class MultiSelectTreeComponent {
|
|
|
12977
13020
|
}
|
|
12978
13021
|
}
|
|
12979
13022
|
subscribeEvents() {
|
|
12980
|
-
this.subscriptions.push(this.navigationService.open.subscribe(() =>
|
|
13023
|
+
this.subscriptions.push(this.navigationService.open.subscribe((event) => {
|
|
13024
|
+
event.originalEvent.preventDefault();
|
|
13025
|
+
this.togglePopup(true);
|
|
13026
|
+
}), this.navigationService.enter
|
|
12981
13027
|
.pipe(tap((event) => event.originalEvent.preventDefault()))
|
|
12982
|
-
.subscribe(() => this.togglePopup(true)), merge(this.navigationService.close, this.navigationService.esc).subscribe(() => {
|
|
13028
|
+
.subscribe(() => this.togglePopup(true)), merge(this.navigationService.close, this.navigationService.esc).subscribe((event) => {
|
|
13029
|
+
event.originalEvent.preventDefault();
|
|
12983
13030
|
this.focus();
|
|
12984
13031
|
this.togglePopup(false);
|
|
12985
13032
|
}), this.navigationService.tab.subscribe(this.handleTabKey.bind(this)), this.navigationService.up.subscribe(this.handleUpKey.bind(this)), this.navigationService.down.subscribe(this.handleDownKey.bind(this)), this.navigationService.left
|
|
@@ -13215,8 +13262,8 @@ class MultiSelectTreeComponent {
|
|
|
13215
13262
|
}
|
|
13216
13263
|
}
|
|
13217
13264
|
}
|
|
13218
|
-
MultiSelectTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MultiSelectTreeComponent, deps: [{ token: i0.ElementRef }, { token: i2.PopupService }, { token: i0.Renderer2 }, { token: NavigationService }, { token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: MultiSelectTreeLookupService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
13219
|
-
MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MultiSelectTreeComponent, selector: "kendo-multiselecttree", inputs: { tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", popupSettings: "popupSettings", checkableSettings: "checkableSettings", data: "data", value: "value", dataItems: "dataItems", textField: "textField", valueField: "valueField", valueDepth: "valueDepth", loading: "loading", placeholder: "placeholder", listHeight: "listHeight", disabled: "disabled", readonly: "readonly", valuePrimitive: "valuePrimitive", loadOnDemand: "loadOnDemand", focusableId: "focusableId", clearButton: "clearButton", filterable: "filterable", checkAll: "checkAll", hasChildren: "hasChildren", fetchChildren: "fetchChildren", isNodeExpanded: "isNodeExpanded", isNodeVisible: "isNodeVisible", itemDisabled: "itemDisabled", tagMapper: "tagMapper" }, outputs: { onFocus: "focus", onBlur: "blur", open: "open", opened: "opened", close: "close", closed: "closed", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", valueChange: "valueChange", removeTag: "removeTag", filterChange: "filterChange" }, host: { listeners: { "click": "handleClick()", "keydown": "handleKeydown($event)" }, properties: { "class.k-
|
|
13265
|
+
MultiSelectTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MultiSelectTreeComponent, deps: [{ token: i0.Injector }, { token: i0.ElementRef }, { token: i2.PopupService }, { token: i0.Renderer2 }, { token: NavigationService }, { token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: MultiSelectTreeLookupService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
13266
|
+
MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MultiSelectTreeComponent, selector: "kendo-multiselecttree", inputs: { tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", popupSettings: "popupSettings", checkableSettings: "checkableSettings", data: "data", value: "value", dataItems: "dataItems", textField: "textField", valueField: "valueField", valueDepth: "valueDepth", loading: "loading", placeholder: "placeholder", listHeight: "listHeight", disabled: "disabled", readonly: "readonly", valuePrimitive: "valuePrimitive", loadOnDemand: "loadOnDemand", focusableId: "focusableId", clearButton: "clearButton", filterable: "filterable", checkAll: "checkAll", hasChildren: "hasChildren", fetchChildren: "fetchChildren", isNodeExpanded: "isNodeExpanded", isNodeVisible: "isNodeVisible", itemDisabled: "itemDisabled", tagMapper: "tagMapper" }, outputs: { onFocus: "focus", onBlur: "blur", open: "open", opened: "opened", close: "close", closed: "closed", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", valueChange: "valueChange", removeTag: "removeTag", filterChange: "filterChange" }, host: { listeners: { "click": "handleClick()", "keydown": "handleKeydown($event)" }, properties: { "class.k-multiselect-tree": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.isDisabled", "attr.aria-disabled": "this.isDisabled", "attr.aria-controls": "this.hostAriaControls", "attr.aria-autocomplete": "this.hostAriaAutocomplete", "class.k-loading": "this.isLoading", "attr.aria-invalid": "this.hostAriaInvalid", "attr.aria-busy": "this.isBusy", "attr.id": "this.id", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabIndex", "attr.role": "this.role", "attr.aria-expanded": "this.isAriaExpanded", "attr.aria-haspopup": "this.ariaHasPopup", "attr.readonly": "this.isReadonly", "attr.aria-describedby": "this.ariaDescribedBy", "attr.aria-activedescendant": "this.ariaActiveDescendant" } }, providers: [
|
|
13220
13267
|
LocalizationService,
|
|
13221
13268
|
NavigationService,
|
|
13222
13269
|
DataService,
|
|
@@ -13621,14 +13668,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13621
13668
|
<ng-container #container></ng-container>
|
|
13622
13669
|
`
|
|
13623
13670
|
}]
|
|
13624
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.PopupService }, { type: i0.Renderer2 }, { type: NavigationService }, { type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: MultiSelectTreeLookupService }, { type: undefined, decorators: [{
|
|
13671
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i2.PopupService }, { type: i0.Renderer2 }, { type: NavigationService }, { type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: MultiSelectTreeLookupService }, { type: undefined, decorators: [{
|
|
13625
13672
|
type: Optional
|
|
13626
13673
|
}, {
|
|
13627
13674
|
type: Inject,
|
|
13628
13675
|
args: [TOUCH_ENABLED]
|
|
13629
13676
|
}] }]; }, propDecorators: { hostClasses: [{
|
|
13630
13677
|
type: HostBinding,
|
|
13631
|
-
args: ['class.k-
|
|
13678
|
+
args: ['class.k-multiselect-tree']
|
|
13632
13679
|
}, {
|
|
13633
13680
|
type: HostBinding,
|
|
13634
13681
|
args: ['class.k-input']
|
|
@@ -13638,9 +13685,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13638
13685
|
}, {
|
|
13639
13686
|
type: HostBinding,
|
|
13640
13687
|
args: ['attr.aria-disabled']
|
|
13688
|
+
}], hostAriaControls: [{
|
|
13689
|
+
type: HostBinding,
|
|
13690
|
+
args: ['attr.aria-controls']
|
|
13691
|
+
}], hostAriaAutocomplete: [{
|
|
13692
|
+
type: HostBinding,
|
|
13693
|
+
args: ['attr.aria-autocomplete']
|
|
13641
13694
|
}], isLoading: [{
|
|
13642
13695
|
type: HostBinding,
|
|
13643
13696
|
args: ['class.k-loading']
|
|
13697
|
+
}], hostAriaInvalid: [{
|
|
13698
|
+
type: HostBinding,
|
|
13699
|
+
args: ['attr.aria-invalid']
|
|
13700
|
+
}], isBusy: [{
|
|
13701
|
+
type: HostBinding,
|
|
13702
|
+
args: ['attr.aria-busy']
|
|
13644
13703
|
}], id: [{
|
|
13645
13704
|
type: HostBinding,
|
|
13646
13705
|
args: ['attr.id']
|
|
@@ -13662,9 +13721,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13662
13721
|
}], isReadonly: [{
|
|
13663
13722
|
type: HostBinding,
|
|
13664
13723
|
args: ['attr.readonly']
|
|
13665
|
-
}, {
|
|
13666
|
-
type: HostBinding,
|
|
13667
|
-
args: ['attr.aria-readonly']
|
|
13668
13724
|
}], ariaDescribedBy: [{
|
|
13669
13725
|
type: HostBinding,
|
|
13670
13726
|
args: ['attr.aria-describedby']
|
|
@@ -14545,7 +14601,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14545
14601
|
}] });
|
|
14546
14602
|
|
|
14547
14603
|
/**
|
|
14548
|
-
* Represents the [NgModule](
|
|
14604
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
14549
14605
|
* definition for the Dropdowns components.
|
|
14550
14606
|
*
|
|
14551
14607
|
* @example
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dropdowns",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.3",
|
|
4
4
|
"description": "A wide variety of native Angular dropdown components including AutoComplete, ComboBox, DropDownList, DropDownTree, MultiColumnComboBox, MultiSelect, and MultiSelectTree ",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|