@progress/kendo-angular-dropdowns 11.6.0 → 12.0.0-develop.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/autocomplete/autocomplete.component.d.ts +82 -20
- package/comboboxes/combobox.component.d.ts +76 -8
- package/comboboxes/multicolumncombobox.component.d.ts +4 -0
- package/common/action-sheet.component.d.ts +43 -0
- package/common/list.component.d.ts +2 -1
- package/common/localization/messages.d.ts +9 -1
- package/common/selection/selectable.directive.d.ts +2 -1
- package/common/shared.module.d.ts +11 -7
- package/common/util.d.ts +39 -2
- package/dropdownlist/dropdownlist.component.d.ts +78 -9
- package/dropdowntrees/dropdowntree.component.d.ts +80 -8
- package/dropdowntrees/multiselecttree.component.d.ts +90 -6
- package/esm2020/autocomplete/autocomplete.component.mjs +294 -116
- package/esm2020/comboboxes/combobox.component.mjs +251 -60
- package/esm2020/comboboxes/multicolumncombobox.component.mjs +110 -119
- package/esm2020/common/action-sheet.component.mjs +243 -0
- package/esm2020/common/list.component.mjs +11 -2
- package/esm2020/common/localization/messages.mjs +5 -1
- package/esm2020/common/selection/selectable.directive.mjs +3 -3
- package/esm2020/common/shared.module.mjs +13 -6
- package/esm2020/common/util.mjs +68 -2
- package/esm2020/dropdownlist/dropdownlist.component.mjs +245 -64
- package/esm2020/dropdowntrees/dropdowntree.component.mjs +254 -56
- package/esm2020/dropdowntrees/multiselecttree.component.mjs +291 -55
- package/esm2020/index.mjs +1 -0
- package/esm2020/multiselect/multiselect.component.mjs +320 -88
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-dropdowns.mjs +2085 -552
- package/fesm2020/progress-kendo-angular-dropdowns.mjs +2054 -545
- package/index.d.ts +2 -0
- package/multiselect/multiselect.component.d.ts +87 -10
- package/package.json +9 -8
- package/schematics/ngAdd/index.js +2 -2
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Renderer2, ElementRef, EventEmitter, ViewContainerRef, OnDestroy, OnChanges, NgZone, TemplateRef, ChangeDetectorRef, OnInit, SimpleChanges, AfterContentChecked, Injector } from '@angular/core';
|
|
5
|
+
import { Renderer2, ElementRef, EventEmitter, ViewContainerRef, OnDestroy, OnChanges, NgZone, TemplateRef, ChangeDetectorRef, OnInit, SimpleChanges, AfterContentChecked, Injector, AfterViewInit } from '@angular/core';
|
|
6
6
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
7
7
|
import { PopupSettings } from '../common/models/popup-settings';
|
|
8
|
+
import { AdaptiveMode, WindowSize } from '../common/util';
|
|
8
9
|
import { SelectionService } from '../common/selection/selection.service';
|
|
9
10
|
import { NavigationService } from '../common/navigation/navigation.service';
|
|
10
11
|
import { ItemTemplateDirective } from '../common/templates/item-template.directive';
|
|
@@ -29,6 +30,9 @@ import { DropDownSize } from '../common/models/size';
|
|
|
29
30
|
import { DropDownRounded } from '../common/models/rounded';
|
|
30
31
|
import { DropDownFillMode } from '../common/models/fillmode';
|
|
31
32
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
33
|
+
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
34
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
35
|
+
import { ResponsiveRendererComponent } from '../common/action-sheet.component';
|
|
32
36
|
import * as i0 from "@angular/core";
|
|
33
37
|
/**
|
|
34
38
|
* @hidden
|
|
@@ -51,7 +55,7 @@ export declare const DROPDOWNLIST_VALUE_ACCESSOR: any;
|
|
|
51
55
|
* }
|
|
52
56
|
* ```
|
|
53
57
|
*/
|
|
54
|
-
export declare class DropDownListComponent implements ControlValueAccessor, OnDestroy, OnChanges, AfterContentChecked, OnInit, FilterableComponent {
|
|
58
|
+
export declare class DropDownListComponent implements ControlValueAccessor, AfterViewInit, OnDestroy, OnChanges, AfterContentChecked, OnInit, FilterableComponent {
|
|
55
59
|
wrapper: ElementRef;
|
|
56
60
|
private localization;
|
|
57
61
|
private popupService;
|
|
@@ -64,6 +68,14 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
64
68
|
private cdr;
|
|
65
69
|
touchEnabled: boolean;
|
|
66
70
|
private injector;
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
animationDuration: number;
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
xIcon: SVGIcon;
|
|
67
79
|
/**
|
|
68
80
|
* @hidden
|
|
69
81
|
*/
|
|
@@ -72,6 +84,18 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
72
84
|
* @hidden
|
|
73
85
|
*/
|
|
74
86
|
caretAltDownIcon: SVGIcon;
|
|
87
|
+
/**
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
responsiveRendererComponent: ResponsiveRendererComponent;
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
get actionSheet(): ActionSheetComponent;
|
|
95
|
+
/**
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
get actionSheetSearchBar(): TextBoxComponent;
|
|
75
99
|
get width(): any;
|
|
76
100
|
get height(): any;
|
|
77
101
|
get widgetTabIndex(): number;
|
|
@@ -80,6 +104,10 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
80
104
|
get ariaControls(): string;
|
|
81
105
|
get ariaActivedescendant(): string;
|
|
82
106
|
get appendTo(): ViewContainerRef;
|
|
107
|
+
/**
|
|
108
|
+
* @hidden
|
|
109
|
+
*/
|
|
110
|
+
onFilterChange(text: string): void;
|
|
83
111
|
/**
|
|
84
112
|
* @hidden
|
|
85
113
|
*/
|
|
@@ -122,6 +150,36 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
122
150
|
* > The `valueField` property can be set to point to a nested property value - e.g. `category.id`.
|
|
123
151
|
*/
|
|
124
152
|
valueField: string;
|
|
153
|
+
/**
|
|
154
|
+
* Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
|
|
155
|
+
*/
|
|
156
|
+
adaptiveMode: AdaptiveMode;
|
|
157
|
+
/**
|
|
158
|
+
* Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
159
|
+
* By default the ActionSheet title uses the text provided for the label of the AutoComplete.
|
|
160
|
+
*/
|
|
161
|
+
title: string;
|
|
162
|
+
/**
|
|
163
|
+
* Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
164
|
+
* By default the ActionSheet subtitle uses the text provided for the `placeholder` of the AutoComplete.
|
|
165
|
+
*/
|
|
166
|
+
subtitle: string;
|
|
167
|
+
/**
|
|
168
|
+
* @hidden
|
|
169
|
+
*/
|
|
170
|
+
get isAdaptiveModeEnabled(): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* @hidden
|
|
173
|
+
*/
|
|
174
|
+
windowSize: WindowSize;
|
|
175
|
+
/**
|
|
176
|
+
* @hidden
|
|
177
|
+
*/
|
|
178
|
+
get isActionSheetExpanded(): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* @hidden
|
|
181
|
+
*/
|
|
182
|
+
get isAdaptive(): boolean;
|
|
125
183
|
/**
|
|
126
184
|
* Configures the popup of the DropDownList.
|
|
127
185
|
*
|
|
@@ -135,12 +193,16 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
135
193
|
set popupSettings(settings: PopupSettings);
|
|
136
194
|
get popupSettings(): PopupSettings;
|
|
137
195
|
/**
|
|
138
|
-
* Sets the height of the options list. By default, `listHeight` is 200px.
|
|
196
|
+
* Sets the height of the options list in the popup. By default, `listHeight` is 200px.
|
|
139
197
|
*
|
|
140
198
|
* > The `listHeight` property affects only the list of options and not the whole popup container.
|
|
141
199
|
* > To set the height of the popup container, use `popupSettings.height`.
|
|
200
|
+
*
|
|
201
|
+
* > When using `adaptiveMode` and the screen size is `small` or `medium` the `listHeight` property is set to null.
|
|
142
202
|
*/
|
|
143
|
-
listHeight: number;
|
|
203
|
+
set listHeight(_listHeight: number);
|
|
204
|
+
get listHeight(): number;
|
|
205
|
+
private _listHeight;
|
|
144
206
|
/**
|
|
145
207
|
* Sets the text of the default empty item. The type of the defined value has to match the data type.
|
|
146
208
|
*/
|
|
@@ -321,7 +383,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
321
383
|
/**
|
|
322
384
|
* @hidden
|
|
323
385
|
*/
|
|
324
|
-
keydown(event:
|
|
386
|
+
keydown(event: KeyboardEvent, input?: HTMLInputElement): void;
|
|
325
387
|
/**
|
|
326
388
|
* @hidden
|
|
327
389
|
*/
|
|
@@ -329,7 +391,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
329
391
|
/**
|
|
330
392
|
* @hidden
|
|
331
393
|
*/
|
|
332
|
-
click(
|
|
394
|
+
click(): void;
|
|
333
395
|
groupIndices: any[];
|
|
334
396
|
optionPrefix: string;
|
|
335
397
|
valueLabelId: string;
|
|
@@ -364,6 +426,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
364
426
|
private _fillMode;
|
|
365
427
|
constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, _zone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, touchEnabled: boolean, injector: Injector);
|
|
366
428
|
ngOnInit(): void;
|
|
429
|
+
ngAfterViewInit(): void;
|
|
367
430
|
/**
|
|
368
431
|
* @hidden
|
|
369
432
|
* Used by the TextBoxContainer to determine if the component is empty.
|
|
@@ -404,7 +467,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
404
467
|
*/
|
|
405
468
|
blur(): void;
|
|
406
469
|
/**
|
|
407
|
-
* Toggles the visibility of the popup
|
|
470
|
+
* Toggles the visibility of the popup or actionSheet
|
|
408
471
|
* ([see example]({% slug openstate_ddl %}#toc-setting-the-initially-opened-component)).
|
|
409
472
|
* If you use the `toggle` method to open or close the popup, the `open` and `close` events will not be fired.
|
|
410
473
|
*
|
|
@@ -418,7 +481,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
418
481
|
*/
|
|
419
482
|
togglePopup(open: boolean): void;
|
|
420
483
|
/**
|
|
421
|
-
* Returns the current open state
|
|
484
|
+
* Returns the current open state. Returns `true` if the popup or actionSheet is open.
|
|
422
485
|
*/
|
|
423
486
|
get isOpen(): boolean;
|
|
424
487
|
/**
|
|
@@ -518,12 +581,18 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
|
|
|
518
581
|
* @hidden
|
|
519
582
|
*/
|
|
520
583
|
handleFilter(event: any): void;
|
|
584
|
+
/**
|
|
585
|
+
* @hidden
|
|
586
|
+
*/
|
|
587
|
+
handleClick(): void;
|
|
521
588
|
/**
|
|
522
589
|
* @hidden
|
|
523
590
|
*/
|
|
524
591
|
pageChange(event: PageChangeEvent): void;
|
|
525
592
|
private assignAriaDescribedBy;
|
|
526
593
|
private setComponentClasses;
|
|
594
|
+
private closeActionSheet;
|
|
595
|
+
private openActionSheet;
|
|
527
596
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownListComponent, [null, null, null, null, null, null, null, null, null, null, { optional: true; }, null]>;
|
|
528
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownListComponent, "kendo-dropdownlist", ["kendoDropDownList"], { "iconClass": "iconClass"; "loading": "loading"; "data": "data"; "value": "value"; "textField": "textField"; "valueField": "valueField"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "defaultItem": "defaultItem"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "readonly": "readonly"; "filterable": "filterable"; "virtual": "virtual"; "ignoreCase": "ignoreCase"; "delay": "delay"; "valuePrimitive": "valuePrimitive"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "focusableId": "id"; }, { "valueChange": "valueChange"; "filterChange": "filterChange"; "selectionChange": "selectionChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; }, ["itemTemplate", "groupTemplate", "fixedGroupTemplate", "valueTemplate", "headerTemplate", "footerTemplate", "noDataTemplate"], never>;
|
|
597
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownListComponent, "kendo-dropdownlist", ["kendoDropDownList"], { "iconClass": "iconClass"; "loading": "loading"; "data": "data"; "value": "value"; "textField": "textField"; "valueField": "valueField"; "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "defaultItem": "defaultItem"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "readonly": "readonly"; "filterable": "filterable"; "virtual": "virtual"; "ignoreCase": "ignoreCase"; "delay": "delay"; "valuePrimitive": "valuePrimitive"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "focusableId": "id"; }, { "valueChange": "valueChange"; "filterChange": "filterChange"; "selectionChange": "selectionChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; }, ["itemTemplate", "groupTemplate", "fixedGroupTemplate", "valueTemplate", "headerTemplate", "footerTemplate", "noDataTemplate"], never>;
|
|
529
598
|
}
|
|
@@ -9,6 +9,7 @@ import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
|
9
9
|
import { NavigationService } from '../common/navigation/navigation.service';
|
|
10
10
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { PreventableEvent } from '../common/models/preventable-event';
|
|
12
|
+
import { AdaptiveMode, WindowSize } from '../common/util';
|
|
12
13
|
import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
|
|
13
14
|
import { PopupSettings } from '../common/models/popup-settings';
|
|
14
15
|
import { Direction } from '../common/models/direction';
|
|
@@ -21,6 +22,9 @@ import { DropDownSize } from '../common/models/size';
|
|
|
21
22
|
import { DropDownRounded } from '../common/models/rounded';
|
|
22
23
|
import { DropDownFillMode } from '../common/models/fillmode';
|
|
23
24
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
25
|
+
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
26
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
27
|
+
import { ResponsiveRendererComponent } from '../common/action-sheet.component';
|
|
24
28
|
import * as i0 from "@angular/core";
|
|
25
29
|
/**
|
|
26
30
|
* Represents the [Kendo UI DropDownTree component for Angular]({% slug overview_ddt %}).
|
|
@@ -35,6 +39,10 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
35
39
|
private cdr;
|
|
36
40
|
private localization;
|
|
37
41
|
touchEnabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
animationDuration: number;
|
|
38
46
|
/**
|
|
39
47
|
* @hidden
|
|
40
48
|
*/
|
|
@@ -47,7 +55,20 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
47
55
|
* @hidden
|
|
48
56
|
*/
|
|
49
57
|
xIcon: SVGIcon;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
responsiveRendererComponent: ResponsiveRendererComponent;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
get actionSheet(): ActionSheetComponent;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
get actionSheetSearchBar(): TextBoxComponent;
|
|
50
70
|
hostClasses: boolean;
|
|
71
|
+
get isReadonly(): string;
|
|
51
72
|
get hostAriaInvalid(): string;
|
|
52
73
|
get isDisabled(): boolean;
|
|
53
74
|
get isDisabledAttribute(): string;
|
|
@@ -61,7 +82,6 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
61
82
|
ariaHasPopup: string;
|
|
62
83
|
get isAriaExpanded(): boolean;
|
|
63
84
|
get hostAriaAutocomplete(): string;
|
|
64
|
-
get isReadonly(): string;
|
|
65
85
|
noDataTemplate: NoDataTemplateDirective;
|
|
66
86
|
headerTemplate: HeaderTemplateDirective;
|
|
67
87
|
footerTemplate: FooterTemplateDirective;
|
|
@@ -195,12 +215,16 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
195
215
|
set dataItem(item: Object);
|
|
196
216
|
get dataItem(): Object;
|
|
197
217
|
/**
|
|
198
|
-
* Sets the height of the options list. By default, `listHeight` is 200px.
|
|
218
|
+
* Sets the height of the options list in the popup. By default, `listHeight` is 200px.
|
|
199
219
|
*
|
|
200
220
|
* > The `listHeight` property affects only the list of options and not the whole popup container.
|
|
201
221
|
* > To set the height of the popup container, use `popupSettings.height`.
|
|
222
|
+
*
|
|
223
|
+
* > When using `adaptiveMode` and the screen size is `small` or `medium` the `listHeight` property is set to null.
|
|
202
224
|
*/
|
|
203
|
-
listHeight: number;
|
|
225
|
+
set listHeight(_listHeight: number);
|
|
226
|
+
get listHeight(): number;
|
|
227
|
+
private _listHeight;
|
|
204
228
|
/**
|
|
205
229
|
* Sets the disabled state of the component.
|
|
206
230
|
*/
|
|
@@ -299,7 +323,7 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
299
323
|
};
|
|
300
324
|
get height(): string;
|
|
301
325
|
/**
|
|
302
|
-
* Returns the current open state
|
|
326
|
+
* Returns the current open state. Returns `true` if the popup or actionSheet is open.
|
|
303
327
|
*/
|
|
304
328
|
get isOpen(): boolean;
|
|
305
329
|
get clearButtonVisiblity(): string;
|
|
@@ -317,6 +341,40 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
317
341
|
* @hidden
|
|
318
342
|
*/
|
|
319
343
|
text: string;
|
|
344
|
+
/**
|
|
345
|
+
* @hidden
|
|
346
|
+
*/
|
|
347
|
+
onFilterChange(text: string): void;
|
|
348
|
+
/**
|
|
349
|
+
* Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
|
|
350
|
+
*/
|
|
351
|
+
adaptiveMode: AdaptiveMode;
|
|
352
|
+
/**
|
|
353
|
+
* Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
354
|
+
* By default the ActionSheet title uses the text provided for the label of the AutoComplete.
|
|
355
|
+
*/
|
|
356
|
+
title: string;
|
|
357
|
+
/**
|
|
358
|
+
* Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
359
|
+
* By default the ActionSheet subtitle uses the text provided for the `placeholder` of the AutoComplete.
|
|
360
|
+
*/
|
|
361
|
+
subtitle: string;
|
|
362
|
+
/**
|
|
363
|
+
* @hidden
|
|
364
|
+
*/
|
|
365
|
+
get isAdaptiveModeEnabled(): boolean;
|
|
366
|
+
/**
|
|
367
|
+
* @hidden
|
|
368
|
+
*/
|
|
369
|
+
windowSize: WindowSize;
|
|
370
|
+
/**
|
|
371
|
+
* @hidden
|
|
372
|
+
*/
|
|
373
|
+
isActionSheetExpanded: boolean;
|
|
374
|
+
/**
|
|
375
|
+
* @hidden
|
|
376
|
+
*/
|
|
377
|
+
get isAdaptive(): boolean;
|
|
320
378
|
/**
|
|
321
379
|
* @hidden
|
|
322
380
|
*
|
|
@@ -413,6 +471,10 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
413
471
|
*/
|
|
414
472
|
ngAfterContentChecked(): void;
|
|
415
473
|
ngAfterViewInit(): void;
|
|
474
|
+
/**
|
|
475
|
+
* @hidden
|
|
476
|
+
*/
|
|
477
|
+
onResize(): void;
|
|
416
478
|
/**
|
|
417
479
|
* @hidden
|
|
418
480
|
*
|
|
@@ -457,9 +519,9 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
457
519
|
*/
|
|
458
520
|
reset(): void;
|
|
459
521
|
/**
|
|
460
|
-
* Toggles the visibility of the popup
|
|
522
|
+
* Toggles the visibility of the popup or actionSheet.
|
|
461
523
|
* ([see example]({% slug openstate_ddt %})).
|
|
462
|
-
* If you use the `toggle` method to open or close the popup, the `open` and `close` events will not be fired.
|
|
524
|
+
* If you use the `toggle` method to open or close the popup or actionSheet, the `open` and `close` events will not be fired.
|
|
463
525
|
*
|
|
464
526
|
* @param open - The state of the popup.
|
|
465
527
|
*/
|
|
@@ -504,7 +566,7 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
504
566
|
/**
|
|
505
567
|
* @hidden
|
|
506
568
|
*/
|
|
507
|
-
handleFilterInputChange(input: Partial<HTMLInputElement>): void;
|
|
569
|
+
handleFilterInputChange(input: Partial<HTMLInputElement> | string): void;
|
|
508
570
|
/**
|
|
509
571
|
* @hidden
|
|
510
572
|
*/
|
|
@@ -526,6 +588,14 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
526
588
|
* @hidden
|
|
527
589
|
*/
|
|
528
590
|
onChildrenLoaded(): void;
|
|
591
|
+
/**
|
|
592
|
+
* @hidden
|
|
593
|
+
*/
|
|
594
|
+
onExpand(): void;
|
|
595
|
+
/**
|
|
596
|
+
* @hidden
|
|
597
|
+
*/
|
|
598
|
+
onCollapse(): void;
|
|
529
599
|
/**
|
|
530
600
|
* @hidden
|
|
531
601
|
*
|
|
@@ -554,6 +624,8 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
|
|
|
554
624
|
* and the user will not be able to tab to the rest of the browser elements
|
|
555
625
|
*/
|
|
556
626
|
private removeTreeViewFromTabOrder;
|
|
627
|
+
private closeActionSheet;
|
|
628
|
+
private openActionSheet;
|
|
557
629
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownTreeComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
558
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownTreeComponent, "kendo-dropdowntree", ["kendoDropDownTree"], { "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"; }, { "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "onFocus": "focus"; "onBlur": "blur"; "valueChange": "valueChange"; "filterChange": "filterChange"; }, ["noDataTemplate", "headerTemplate", "footerTemplate", "nodeTemplate", "valueTemplate"], never>;
|
|
630
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownTreeComponent, "kendo-dropdowntree", ["kendoDropDownTree"], { "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"; "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; }, { "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "onFocus": "focus"; "onBlur": "blur"; "valueChange": "valueChange"; "filterChange": "filterChange"; }, ["noDataTemplate", "headerTemplate", "footerTemplate", "nodeTemplate", "valueTemplate"], never>;
|
|
559
631
|
}
|
|
@@ -14,6 +14,7 @@ import { PreventableEvent } from '../common/models/preventable-event';
|
|
|
14
14
|
import { Direction } from '../common/models/direction';
|
|
15
15
|
import { RemoveTagEvent } from '../common/models/remove-tag-event';
|
|
16
16
|
import { CheckedItem } from './checked-state/checked-item';
|
|
17
|
+
import { AdaptiveMode, WindowSize } from '../common/util';
|
|
17
18
|
import { HeaderTemplateDirective } from '../common/templates/header-template.directive';
|
|
18
19
|
import { FooterTemplateDirective } from '../common/templates/footer-template.directive';
|
|
19
20
|
import { NodeTemplateDirective } from './templates/node-template.directive';
|
|
@@ -26,6 +27,9 @@ import { DropDownRounded } from '../common/models/rounded';
|
|
|
26
27
|
import { DropDownFillMode } from '../common/models/fillmode';
|
|
27
28
|
import { MultiSelectTreeLookupService } from './lookup/lookup.service';
|
|
28
29
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
30
|
+
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
31
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
32
|
+
import { ResponsiveRendererComponent } from '../common/action-sheet.component';
|
|
29
33
|
import * as i0 from "@angular/core";
|
|
30
34
|
/**
|
|
31
35
|
* Represents the [Kendo UI MultiSelectTree component for Angular]({% slug overview_multiselecttree %}).
|
|
@@ -41,6 +45,10 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
41
45
|
private cdr;
|
|
42
46
|
private lookup;
|
|
43
47
|
touchEnabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
animationDuration: number;
|
|
44
52
|
/**
|
|
45
53
|
* @hidden
|
|
46
54
|
*/
|
|
@@ -73,7 +81,62 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
73
81
|
/**
|
|
74
82
|
* @hidden
|
|
75
83
|
*/
|
|
76
|
-
|
|
84
|
+
onFilterChange(text: any): void;
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
onExpand(): void;
|
|
89
|
+
/**
|
|
90
|
+
* @hidden
|
|
91
|
+
*/
|
|
92
|
+
onCollapse(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
|
|
95
|
+
*/
|
|
96
|
+
adaptiveMode: AdaptiveMode;
|
|
97
|
+
/**
|
|
98
|
+
* Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
99
|
+
* By default the ActionSheet title uses the text provided for the label of the AutoComplete.
|
|
100
|
+
*/
|
|
101
|
+
title: string;
|
|
102
|
+
/**
|
|
103
|
+
* Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
104
|
+
* By default the ActionSheet subtitle uses the text provided for the `placeholder` of the AutoComplete.
|
|
105
|
+
*/
|
|
106
|
+
set subtitle(_subtitle: string);
|
|
107
|
+
get subtitle(): string;
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
get isAdaptiveModeEnabled(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*/
|
|
115
|
+
windowSize: WindowSize;
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
*/
|
|
119
|
+
isActionSheetExpanded: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* @hidden
|
|
122
|
+
*/
|
|
123
|
+
handleKeydown(event: any, input?: HTMLInputElement): void;
|
|
124
|
+
/**
|
|
125
|
+
* @hidden
|
|
126
|
+
*/
|
|
127
|
+
responsiveRendererComponent: ResponsiveRendererComponent;
|
|
128
|
+
/**
|
|
129
|
+
* @hidden
|
|
130
|
+
*/
|
|
131
|
+
get actionSheet(): ActionSheetComponent;
|
|
132
|
+
/**
|
|
133
|
+
* @hidden
|
|
134
|
+
*/
|
|
135
|
+
get actionSheetSearchBar(): TextBoxComponent;
|
|
136
|
+
/**
|
|
137
|
+
* @hidden
|
|
138
|
+
*/
|
|
139
|
+
get isAdaptive(): boolean;
|
|
77
140
|
headerTemplate: HeaderTemplateDirective;
|
|
78
141
|
footerTemplate: FooterTemplateDirective;
|
|
79
142
|
nodeTemplate: NodeTemplateDirective;
|
|
@@ -199,12 +262,16 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
199
262
|
*/
|
|
200
263
|
placeholder: string;
|
|
201
264
|
/**
|
|
202
|
-
* Sets the height of the options list. By default, `listHeight` is 200px.
|
|
265
|
+
* Sets the height of the options list in the popup. By default, `listHeight` is 200px.
|
|
203
266
|
*
|
|
204
267
|
* > The `listHeight` property affects only the list of options and not the whole popup container.
|
|
205
268
|
* > To set the height of the popup container, use `popupSettings.height`.
|
|
269
|
+
*
|
|
270
|
+
* > When using `adaptiveMode` and the screen size is `small` or `medium` the `listHeight` property is set to null.
|
|
206
271
|
*/
|
|
207
|
-
listHeight: number;
|
|
272
|
+
set listHeight(_listHeight: number);
|
|
273
|
+
get listHeight(): number;
|
|
274
|
+
private _listHeight;
|
|
208
275
|
/**
|
|
209
276
|
* Sets the disabled state of the component.
|
|
210
277
|
*/
|
|
@@ -334,7 +401,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
334
401
|
set isFocused(isFocused: boolean);
|
|
335
402
|
get isFocused(): boolean;
|
|
336
403
|
/**
|
|
337
|
-
* Returns the current open state
|
|
404
|
+
* Returns the current open state. Returns `true` if the popup or actionSheet is open.
|
|
338
405
|
*/
|
|
339
406
|
get isOpen(): boolean;
|
|
340
407
|
get width(): {
|
|
@@ -398,6 +465,10 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
398
465
|
private get isWrapperActive();
|
|
399
466
|
private get isFilterActive();
|
|
400
467
|
private get isCheckAllActive();
|
|
468
|
+
/**
|
|
469
|
+
* @hidden
|
|
470
|
+
*/
|
|
471
|
+
onResize(): void;
|
|
401
472
|
/**
|
|
402
473
|
* @hidden
|
|
403
474
|
*/
|
|
@@ -431,6 +502,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
431
502
|
tags: any[];
|
|
432
503
|
focusedTagIndex: number;
|
|
433
504
|
disabledIndices: Set<number>;
|
|
505
|
+
private _subtitle;
|
|
434
506
|
private _nodes;
|
|
435
507
|
private _value;
|
|
436
508
|
private _tabindex;
|
|
@@ -439,6 +511,8 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
439
511
|
private _isFocused;
|
|
440
512
|
private _treeview;
|
|
441
513
|
private _dataItems;
|
|
514
|
+
private _tempValue;
|
|
515
|
+
private _initiallyCheckedItems;
|
|
442
516
|
private _size;
|
|
443
517
|
private _rounded;
|
|
444
518
|
private _fillMode;
|
|
@@ -463,6 +537,14 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
463
537
|
* @hidden
|
|
464
538
|
*/
|
|
465
539
|
ngAfterContentChecked(): void;
|
|
540
|
+
/**
|
|
541
|
+
* @hidden
|
|
542
|
+
*/
|
|
543
|
+
applyValue(): void;
|
|
544
|
+
/**
|
|
545
|
+
* @hidden
|
|
546
|
+
*/
|
|
547
|
+
cancelValue(): void;
|
|
466
548
|
ngAfterContentInit(): void;
|
|
467
549
|
/**
|
|
468
550
|
* @hidden
|
|
@@ -492,7 +574,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
492
574
|
*/
|
|
493
575
|
reset(): void;
|
|
494
576
|
/**
|
|
495
|
-
* Toggles the visibility of the popup
|
|
577
|
+
* Toggles the visibility of the popup or actionSheet
|
|
496
578
|
* ([see example]({% slug openstate_multiselecttree %})).
|
|
497
579
|
* If you use the `toggle` method to open or close the popup, the `open` and `close` events will not be fired.
|
|
498
580
|
*
|
|
@@ -619,6 +701,8 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
|
|
|
619
701
|
*/
|
|
620
702
|
private registerLookupItems;
|
|
621
703
|
private registerChildLookupItems;
|
|
704
|
+
private closeActionSheet;
|
|
705
|
+
private openActionSheet;
|
|
622
706
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectTreeComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
623
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectTreeComponent, "kendo-multiselecttree", ["kendoMultiSelectTree"], { "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"; }, { "onFocus": "focus"; "onBlur": "blur"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "valueChange": "valueChange"; "removeTag": "removeTag"; "filterChange": "filterChange"; }, ["headerTemplate", "footerTemplate", "nodeTemplate", "noDataTemplate", "tagTemplate", "groupTagTemplate"], never>;
|
|
707
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectTreeComponent, "kendo-multiselecttree", ["kendoMultiSelectTree"], { "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; "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"; }, { "onFocus": "focus"; "onBlur": "blur"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "valueChange": "valueChange"; "removeTag": "removeTag"; "filterChange": "filterChange"; }, ["headerTemplate", "footerTemplate", "nodeTemplate", "noDataTemplate", "tagTemplate", "groupTagTemplate"], never>;
|
|
624
708
|
}
|