@progress/kendo-angular-dropdowns 12.0.0-develop.6 → 12.0.0-develop.8

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.
Files changed (33) hide show
  1. package/autocomplete/autocomplete.component.d.ts +82 -20
  2. package/comboboxes/combobox.component.d.ts +76 -8
  3. package/comboboxes/multicolumncombobox.component.d.ts +4 -0
  4. package/common/action-sheet.component.d.ts +43 -0
  5. package/common/list.component.d.ts +2 -1
  6. package/common/localization/messages.d.ts +9 -1
  7. package/common/selection/selectable.directive.d.ts +2 -1
  8. package/common/shared.module.d.ts +11 -7
  9. package/common/util.d.ts +39 -2
  10. package/dropdownlist/dropdownlist.component.d.ts +78 -9
  11. package/dropdowntrees/dropdowntree.component.d.ts +80 -8
  12. package/dropdowntrees/multiselecttree.component.d.ts +90 -6
  13. package/esm2020/autocomplete/autocomplete.component.mjs +294 -116
  14. package/esm2020/comboboxes/combobox.component.mjs +251 -60
  15. package/esm2020/comboboxes/multicolumncombobox.component.mjs +110 -119
  16. package/esm2020/common/action-sheet.component.mjs +243 -0
  17. package/esm2020/common/list.component.mjs +11 -2
  18. package/esm2020/common/localization/messages.mjs +5 -1
  19. package/esm2020/common/selection/selectable.directive.mjs +3 -3
  20. package/esm2020/common/shared.module.mjs +13 -6
  21. package/esm2020/common/util.mjs +68 -2
  22. package/esm2020/dropdownlist/dropdownlist.component.mjs +245 -64
  23. package/esm2020/dropdowntrees/dropdowntree.component.mjs +254 -56
  24. package/esm2020/dropdowntrees/multiselecttree.component.mjs +291 -55
  25. package/esm2020/index.mjs +1 -0
  26. package/esm2020/multiselect/multiselect.component.mjs +320 -88
  27. package/esm2020/package-metadata.mjs +2 -2
  28. package/fesm2015/progress-kendo-angular-dropdowns.mjs +2085 -552
  29. package/fesm2020/progress-kendo-angular-dropdowns.mjs +2054 -545
  30. package/index.d.ts +2 -0
  31. package/multiselect/multiselect.component.d.ts +87 -10
  32. package/package.json +9 -8
  33. package/schematics/ngAdd/index.js +2 -2
@@ -2,7 +2,7 @@
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, TemplateRef, OnDestroy, SimpleChanges, OnChanges, ChangeDetectorRef, NgZone } from '@angular/core';
5
+ import { Renderer2, ElementRef, EventEmitter, ViewContainerRef, TemplateRef, OnDestroy, SimpleChanges, OnChanges, ChangeDetectorRef, NgZone, AfterViewInit } from '@angular/core';
6
6
  import { ControlValueAccessor } from '@angular/forms';
7
7
  import { SearchBarComponent } from '../common/searchbar.component';
8
8
  import { ItemTemplateDirective } from '../common/templates/item-template.directive';
@@ -15,6 +15,7 @@ import { SelectionService } from '../common/selection/selection.service';
15
15
  import { NavigationService, NavigationEvent } from '../common/navigation/navigation.service';
16
16
  import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
17
17
  import { ItemDisabledFn } from '../common/disabled-items/item-disabled';
18
+ import { AdaptiveMode, WindowSize } from '../common/util';
18
19
  import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
19
20
  import { PreventableEvent } from '../common/models/preventable-event';
20
21
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -28,6 +29,9 @@ import { DropDownSize } from '../common/models/size';
28
29
  import { DropDownRounded } from '../common/models/rounded';
29
30
  import { DropDownFillMode } from '../common/models/fillmode';
30
31
  import { SVGIcon } from '@progress/kendo-svg-icons';
32
+ import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
33
+ import { TextBoxComponent } from '@progress/kendo-angular-inputs';
34
+ import { ResponsiveRendererComponent } from '../common/action-sheet.component';
31
35
  import * as i0 from "@angular/core";
32
36
  /**
33
37
  * @hidden
@@ -53,7 +57,7 @@ export declare const AUTOCOMPLETE_VALUE_ACCESSOR: any;
53
57
  * }
54
58
  * ```
55
59
  */
56
- export declare class AutoCompleteComponent implements ControlValueAccessor, OnDestroy, OnChanges, FilterableComponent {
60
+ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDestroy, AfterViewInit, OnChanges, FilterableComponent {
57
61
  private localization;
58
62
  private dataService;
59
63
  private popupService;
@@ -65,10 +69,26 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
65
69
  private renderer;
66
70
  private hostElement;
67
71
  protected touchEnabled: boolean;
72
+ /**
73
+ * @hidden
74
+ */
75
+ animationDuration: number;
68
76
  /**
69
77
  * @hidden
70
78
  */
71
79
  xIcon: SVGIcon;
80
+ /**
81
+ * @hidden
82
+ */
83
+ responsiveRendererComponent: ResponsiveRendererComponent;
84
+ /**
85
+ * @hidden
86
+ */
87
+ get actionSheet(): ActionSheetComponent;
88
+ /**
89
+ * @hidden
90
+ */
91
+ get actionSheetSearchBar(): TextBoxComponent;
72
92
  get width(): any;
73
93
  get height(): any;
74
94
  get listContainerClasses(): Object;
@@ -78,16 +98,20 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
78
98
  get ariaControls(): string;
79
99
  dataItem: any;
80
100
  /**
81
- * Toggles the visibility of the popup.
82
- * If you use the `toggle` method to open or close the popup, the `open` and `close` events will not be fired.
101
+ * Toggles the visibility of the popup or actionSheet.
102
+ * If you use the `toggle` method to open or close the popup or actionSheet, the `open` and `close` events will not be fired.
83
103
  *
84
104
  * @param open - The state of the popup.
85
105
  */
86
106
  toggle(open?: boolean): void;
87
107
  /**
88
- * Returns the current open state of the popup.
108
+ * Returns the current open state. Returns `true` if the popup or actionSheet is open.
89
109
  */
90
110
  get isOpen(): boolean;
111
+ /**
112
+ * @hidden
113
+ */
114
+ handleClick(): void;
91
115
  /**
92
116
  * @hidden
93
117
  */
@@ -125,6 +149,25 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
125
149
  * The hint which is displayed when the component is empty.
126
150
  */
127
151
  placeholder: string;
152
+ /**
153
+ * Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
154
+ */
155
+ adaptiveMode: AdaptiveMode;
156
+ /**
157
+ * Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices.
158
+ * By default the ActionSheet title uses the text provided for the label of the AutoComplete.
159
+ */
160
+ title: string;
161
+ /**
162
+ * Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
163
+ * By default the ActionSheet subtitle uses the text provided for the `placeholder` of the AutoComplete.
164
+ */
165
+ set subtitle(_subtitle: string);
166
+ get subtitle(): string;
167
+ /**
168
+ * @hidden
169
+ */
170
+ get isAdaptiveModeEnabled(): boolean;
128
171
  /**
129
172
  * Configures the popup of the AutoComplete.
130
173
  *
@@ -138,12 +181,16 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
138
181
  set popupSettings(settings: PopupSettings);
139
182
  get popupSettings(): PopupSettings;
140
183
  /**
141
- * Sets the height of the suggestions list. By default, `listHeight` is 200px.
184
+ * Sets the height of the options list in the popup. By default, `listHeight` is 200px.
142
185
  *
143
- * > The `listHeight` property affects only the list of suggestions and not the whole popup container.
186
+ * > The `listHeight` property affects only the list of options and not the whole popup container.
144
187
  * > To set the height of the popup container, use `popupSettings.height`.
188
+ *
189
+ * > When using `adaptiveMode` and the screen size is `small` or `medium` the `listHeight` property is set to null.
145
190
  */
146
- listHeight: number;
191
+ set listHeight(_listHeight: number);
192
+ get listHeight(): number;
193
+ private _listHeight;
147
194
  /**
148
195
  * Sets and gets the loading state of the AutoComplete.
149
196
  */
@@ -290,10 +337,23 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
290
337
  listBoxId: string;
291
338
  optionPrefix: string;
292
339
  popupRef: PopupRef;
340
+ /**
341
+ * @hidden
342
+ */
343
+ windowSize: WindowSize;
344
+ /**
345
+ * @hidden
346
+ */
347
+ get isActionSheetExpanded(): boolean;
348
+ /**
349
+ * @hidden
350
+ */
351
+ get isAdaptive(): boolean;
293
352
  protected onChangeCallback: Function;
294
353
  protected onTouchedCallback: Function;
295
354
  constructor(localization: LocalizationService, dataService: DataService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, _zone: NgZone, cdr: ChangeDetectorRef, renderer: Renderer2, hostElement: ElementRef, touchEnabled: boolean);
296
355
  ngOnInit(): void;
356
+ ngAfterViewInit(): void;
297
357
  ngOnDestroy(): void;
298
358
  ngOnChanges(changes: SimpleChanges): void;
299
359
  /**
@@ -306,6 +366,10 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
306
366
  * @hidden
307
367
  */
308
368
  messageFor(key: string): string;
369
+ /**
370
+ * @hidden
371
+ */
372
+ onAdaptiveTextBoxChange(text: string): void;
309
373
  /**
310
374
  * @hidden
311
375
  */
@@ -357,6 +421,10 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
357
421
  * @hidden
358
422
  */
359
423
  searchBarChange(text: string): void;
424
+ /**
425
+ * @hidden
426
+ */
427
+ onFilterChange(text: string): void;
360
428
  /**
361
429
  * @hidden
362
430
  */
@@ -377,18 +445,10 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
377
445
  private _value;
378
446
  private suggestedText;
379
447
  private backspacePressed;
380
- private valueChangeSubscription;
448
+ private subs;
381
449
  private valueChangeSubject;
382
- private changeSubscription;
383
- private focusSubscription;
384
- private navigationSubscription;
385
- private scrollSubscription;
386
- private enterSubscription;
387
- private escSubscription;
388
- private closeSubscription;
389
- private openSubscription;
390
- private localizationChangeSubscription;
391
450
  private touchstartDisposeHandler;
451
+ private _subtitle;
392
452
  private wrapper;
393
453
  private _isFocused;
394
454
  private direction;
@@ -396,8 +456,8 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
396
456
  private _rounded;
397
457
  private _fillMode;
398
458
  private subscribeEvents;
459
+ private findIndex;
399
460
  private subscribeTouchEvents;
400
- private unsubscribeEvents;
401
461
  private handleItemChange;
402
462
  private handleItemFocus;
403
463
  private createPopup;
@@ -407,6 +467,8 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
407
467
  private firstFocusableIndex;
408
468
  private findIndexPredicate;
409
469
  private setComponentClasses;
470
+ private closeActionSheet;
471
+ private openActionSheet;
410
472
  static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, [null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
411
- static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "kendo-autocomplete", ["kendoAutoComplete"], { "highlightFirst": "highlightFirst"; "focusableId": "focusableId"; "data": "data"; "value": "value"; "valueField": "valueField"; "placeholder": "placeholder"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "loading": "loading"; "clearButton": "clearButton"; "suggest": "suggest"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "readonly": "readonly"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "filterable": "filterable"; "virtual": "virtual"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "filterChange": "filterChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; }, ["template", "headerTemplate", "footerTemplate", "noDataTemplate", "groupTemplate", "fixedGroupTemplate"], never>;
473
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "kendo-autocomplete", ["kendoAutoComplete"], { "highlightFirst": "highlightFirst"; "focusableId": "focusableId"; "data": "data"; "value": "value"; "valueField": "valueField"; "placeholder": "placeholder"; "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "loading": "loading"; "clearButton": "clearButton"; "suggest": "suggest"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "readonly": "readonly"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "filterable": "filterable"; "virtual": "virtual"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "filterChange": "filterChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; }, ["template", "headerTemplate", "footerTemplate", "noDataTemplate", "groupTemplate", "fixedGroupTemplate"], never>;
412
474
  }
@@ -2,7 +2,7 @@
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 { ElementRef, TemplateRef, EventEmitter, ViewContainerRef, OnDestroy, OnChanges, ChangeDetectorRef, NgZone, Renderer2, SimpleChanges, AfterContentChecked } from '@angular/core';
5
+ import { ElementRef, TemplateRef, EventEmitter, ViewContainerRef, OnDestroy, OnChanges, ChangeDetectorRef, NgZone, Renderer2, SimpleChanges, AfterContentChecked, AfterViewInit } from '@angular/core';
6
6
  import { ControlValueAccessor } from '@angular/forms';
7
7
  import { SearchBarComponent } from '../common/searchbar.component';
8
8
  import { ItemTemplateDirective } from '../common/templates/item-template.directive';
@@ -17,6 +17,7 @@ import { NavigationService } from '../common/navigation/navigation.service';
17
17
  import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
18
18
  import { ItemDisabledFn } from '../common/disabled-items/item-disabled';
19
19
  import { Observable } from 'rxjs';
20
+ import { AdaptiveMode, WindowSize } from '../common/util';
20
21
  import { PreventableEvent } from '../common/models/preventable-event';
21
22
  import { LocalizationService } from '@progress/kendo-angular-l10n';
22
23
  import { PopupService, PopupRef } from '@progress/kendo-angular-popup';
@@ -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 COMBOBOX_VALUE_ACCESSOR: any;
51
55
  * }
52
56
  * ```
53
57
  */
54
- export declare class ComboBoxComponent implements ControlValueAccessor, OnDestroy, OnChanges, AfterContentChecked, FilterableComponent {
58
+ export declare class ComboBoxComponent implements ControlValueAccessor, AfterViewInit, OnDestroy, OnChanges, AfterContentChecked, FilterableComponent {
55
59
  wrapper: ElementRef<HTMLElement>;
56
60
  protected localization: LocalizationService;
57
61
  protected popupService: PopupService;
@@ -63,10 +67,26 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
63
67
  protected cdr: ChangeDetectorRef;
64
68
  protected renderer: Renderer2;
65
69
  protected touchEnabled: boolean;
70
+ /**
71
+ * @hidden
72
+ */
73
+ animationDuration: number;
66
74
  /**
67
75
  * @hidden
68
76
  */
69
77
  xIcon: SVGIcon;
78
+ /**
79
+ * @hidden
80
+ */
81
+ responsiveRendererComponent: ResponsiveRendererComponent;
82
+ /**
83
+ * @hidden
84
+ */
85
+ get actionSheet(): ActionSheetComponent;
86
+ /**
87
+ * @hidden
88
+ */
89
+ get actionSheetSearchBar(): TextBoxComponent;
70
90
  /**
71
91
  * @hidden
72
92
  */
@@ -182,6 +202,25 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
182
202
  *
183
203
  */
184
204
  placeholder: string;
205
+ /**
206
+ * Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
207
+ */
208
+ adaptiveMode: AdaptiveMode;
209
+ /**
210
+ * Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices.
211
+ * By default the ActionSheet title uses the text provided for the label of the AutoComplete.
212
+ */
213
+ title: string;
214
+ /**
215
+ * Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
216
+ * By default the ActionSheet subtitle uses the text provided for the `placeholder` of the AutoComplete.
217
+ */
218
+ set subtitle(_subtitle: string);
219
+ get subtitle(): string;
220
+ /**
221
+ * @hidden
222
+ */
223
+ get isAdaptiveModeEnabled(): boolean;
185
224
  /**
186
225
  * Configures the popup of the ComboBox.
187
226
  *
@@ -195,12 +234,16 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
195
234
  set popupSettings(settings: PopupSettings);
196
235
  get popupSettings(): PopupSettings;
197
236
  /**
198
- * Sets the height of the suggestions list. By default, `listHeight` is 200px.
237
+ * Sets the height of the options list in the popup. By default, `listHeight` is 200px.
199
238
  *
200
- * > The `listHeight` property affects only the list of suggestions and not the whole popup container.
239
+ * > The `listHeight` property affects only the list of options and not the whole popup container.
201
240
  * > To set the height of the popup container, use `popupSettings.height`.
241
+ *
242
+ * > When using `adaptiveMode` and the screen size is `small` or `medium` the `listHeight` property is set to null.
202
243
  */
203
- listHeight: number;
244
+ set listHeight(_listHeight: number);
245
+ get listHeight(): number;
246
+ private _listHeight;
204
247
  /**
205
248
  * @hidden
206
249
  */
@@ -352,6 +395,18 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
352
395
  get isFocused(): boolean;
353
396
  set isFocused(value: boolean);
354
397
  get clearButtonVisiblity(): string;
398
+ /**
399
+ * @hidden
400
+ */
401
+ windowSize: WindowSize;
402
+ /**
403
+ * @hidden
404
+ */
405
+ get isActionSheetExpanded(): boolean;
406
+ /**
407
+ * @hidden
408
+ */
409
+ get isAdaptive(): boolean;
355
410
  listBoxId: string;
356
411
  optionPrefix: string;
357
412
  popupRef: PopupRef;
@@ -382,6 +437,7 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
382
437
  private backspacePressed;
383
438
  private _popupSettings;
384
439
  private _virtualSettings;
440
+ private _subtitle;
385
441
  private popupMouseDownHandler;
386
442
  private customValueSubject;
387
443
  private valueSubject;
@@ -395,6 +451,7 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
395
451
  private _fillMode;
396
452
  constructor(wrapper: ElementRef<HTMLElement>, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, zone: NgZone, cdr: ChangeDetectorRef, renderer: Renderer2, touchEnabled: boolean);
397
453
  ngOnInit(): void;
454
+ ngAfterViewInit(): void;
398
455
  private createValueStream;
399
456
  private attachStreams;
400
457
  ngOnDestroy(): void;
@@ -414,16 +471,20 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
414
471
  */
415
472
  blur(): void;
416
473
  /**
417
- * Toggles the visibility of the popup. If you use the `toggle` method to open or close the popup,
474
+ * Toggles the visibility of the popup or actionSheet. If you use the `toggle` method to open or close the popup or actionSheet,
418
475
  * the `open` and `close` events will not be fired.
419
476
  *
420
477
  * @param open - The state of the popup.
421
478
  */
422
479
  toggle(open?: boolean): void;
423
480
  /**
424
- * Returns the current open state of the popup.
481
+ * Returns the current open state. Returns `true` if the popup or actionSheet is open.
425
482
  */
426
483
  get isOpen(): boolean;
484
+ /**
485
+ * @hidden
486
+ */
487
+ handleClick(): void;
427
488
  /**
428
489
  * Resets the value of the ComboBox.
429
490
  * If you use the `reset` method to clear the value of the component,
@@ -488,6 +549,10 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
488
549
  index: number;
489
550
  };
490
551
  protected search(text: any, startFrom?: number): void;
552
+ /**
553
+ * @hidden
554
+ */
555
+ onAdaptiveTextBoxChange(text: string): void;
491
556
  /**
492
557
  * @hidden
493
558
  */
@@ -547,6 +612,9 @@ export declare class ComboBoxComponent implements ControlValueAccessor, OnDestro
547
612
  private subscribeTouchEvents;
548
613
  private attachSelectClickHandler;
549
614
  private setComponentClasses;
615
+ private findIndex;
616
+ private closeActionSheet;
617
+ private openActionSheet;
550
618
  static ɵfac: i0.ɵɵFactoryDeclaration<ComboBoxComponent, [null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
551
- static ɵcmp: i0.ɵɵComponentDeclaration<ComboBoxComponent, "kendo-combobox", ["kendoComboBox"], { "focusableId": "focusableId"; "allowCustom": "allowCustom"; "data": "data"; "value": "value"; "textField": "textField"; "valueField": "valueField"; "valuePrimitive": "valuePrimitive"; "valueNormalizer": "valueNormalizer"; "placeholder": "placeholder"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "iconClass": "iconClass"; "loading": "loading"; "suggest": "suggest"; "clearButton": "clearButton"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "readonly": "readonly"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "filterable": "filterable"; "virtual": "virtual"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "selectionChange": "selectionChange"; "filterChange": "filterChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; }, ["template", "headerTemplate", "footerTemplate", "noDataTemplate", "groupTemplate", "fixedGroupTemplate"], never>;
619
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComboBoxComponent, "kendo-combobox", ["kendoComboBox"], { "focusableId": "focusableId"; "allowCustom": "allowCustom"; "data": "data"; "value": "value"; "textField": "textField"; "valueField": "valueField"; "valuePrimitive": "valuePrimitive"; "valueNormalizer": "valueNormalizer"; "placeholder": "placeholder"; "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; "popupSettings": "popupSettings"; "listHeight": "listHeight"; "iconClass": "iconClass"; "loading": "loading"; "suggest": "suggest"; "clearButton": "clearButton"; "disabled": "disabled"; "itemDisabled": "itemDisabled"; "readonly": "readonly"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "filterable": "filterable"; "virtual": "virtual"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "selectionChange": "selectionChange"; "filterChange": "filterChange"; "open": "open"; "opened": "opened"; "close": "close"; "closed": "closed"; "onFocus": "focus"; "onBlur": "blur"; }, ["template", "headerTemplate", "footerTemplate", "noDataTemplate", "groupTemplate", "fixedGroupTemplate"], never>;
552
620
  }
@@ -17,6 +17,10 @@ import * as i0 from "@angular/core";
17
17
  * Represents the [Kendo UI MultiColumnComboBox component for Angular]({% slug overview_multicolumncombobox %}).
18
18
  */
19
19
  export declare class MultiColumnComboBoxComponent extends ComboBoxComponent implements AfterViewInit, OnDestroy, FilterableComponent {
20
+ /**
21
+ * @hidden
22
+ */
23
+ animationDuration: number;
20
24
  /**
21
25
  * @hidden
22
26
  */
@@ -0,0 +1,43 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { EventEmitter, TemplateRef } from '@angular/core';
6
+ import { DropDownSize } from './models/size';
7
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { SVGIcon } from '@progress/kendo-angular-icons';
9
+ import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
10
+ import { TextBoxComponent } from '@progress/kendo-angular-inputs';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare class ResponsiveRendererComponent {
16
+ localization: LocalizationService;
17
+ title: string;
18
+ showActionButtons: boolean;
19
+ subtitle: string;
20
+ size: DropDownSize;
21
+ showTextInput: boolean;
22
+ sharedPopupActionSheetTemplate: TemplateRef<any>;
23
+ isActionSheetExpanded: boolean;
24
+ text: string;
25
+ placeholder: string;
26
+ closePopup: EventEmitter<any>;
27
+ textInputChange: EventEmitter<any>;
28
+ navigate: EventEmitter<any>;
29
+ onExpand: EventEmitter<any>;
30
+ onCollapse: EventEmitter<any>;
31
+ onApply: EventEmitter<any>;
32
+ onCancel: EventEmitter<any>;
33
+ actionSheet: ActionSheetComponent;
34
+ actionSheetSearchBar: TextBoxComponent;
35
+ constructor(localization: LocalizationService);
36
+ searchBarValue: string;
37
+ animationDuration: number;
38
+ xIcon: SVGIcon;
39
+ messageFor(key: string): string;
40
+ onValueChange(value: string): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResponsiveRendererComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResponsiveRendererComponent, "responsive-renderer", never, { "title": "title"; "showActionButtons": "showActionButtons"; "subtitle": "subtitle"; "size": "size"; "showTextInput": "showTextInput"; "sharedPopupActionSheetTemplate": "sharedPopupActionSheetTemplate"; "isActionSheetExpanded": "isActionSheetExpanded"; "text": "text"; "placeholder": "placeholder"; }, { "closePopup": "closePopup"; "textInputChange": "textInputChange"; "navigate": "navigate"; "onExpand": "onExpand"; "onCollapse": "onCollapse"; "onApply": "onApply"; "onCancel": "onCancel"; }, never, never>;
43
+ }
@@ -47,6 +47,7 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
47
47
  checkboxes: MultiSelectCheckableSettings;
48
48
  ariaLive: string;
49
49
  isMultiselect: boolean;
50
+ isActionSheetExpanded: boolean;
50
51
  set data(data: any[]);
51
52
  get data(): any[];
52
53
  set size(size: DropDownSize);
@@ -126,5 +127,5 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
126
127
  private firstGroupHeaderInTargetedPage;
127
128
  private setComponentClasses;
128
129
  static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
129
- static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "kendo-list", never, { "selected": "selected"; "focused": "focused"; "textField": "textField"; "valueField": "valueField"; "height": "height"; "template": "template"; "groupTemplate": "groupTemplate"; "fixedGroupTemplate": "fixedGroupTemplate"; "show": "show"; "id": "id"; "optionPrefix": "optionPrefix"; "multipleSelection": "multipleSelection"; "virtual": "virtual"; "type": "type"; "checkboxes": "checkboxes"; "ariaLive": "ariaLive"; "isMultiselect": "isMultiselect"; "data": "data"; "size": "size"; "rounded": "rounded"; }, { "onClick": "onClick"; "pageChange": "pageChange"; "listResize": "listResize"; }, never, never>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "kendo-list", never, { "selected": "selected"; "focused": "focused"; "textField": "textField"; "valueField": "valueField"; "height": "height"; "template": "template"; "groupTemplate": "groupTemplate"; "fixedGroupTemplate": "fixedGroupTemplate"; "show": "show"; "id": "id"; "optionPrefix": "optionPrefix"; "multipleSelection": "multipleSelection"; "virtual": "virtual"; "type": "type"; "checkboxes": "checkboxes"; "ariaLive": "ariaLive"; "isMultiselect": "isMultiselect"; "isActionSheetExpanded": "isActionSheetExpanded"; "data": "data"; "size": "size"; "rounded": "rounded"; }, { "onClick": "onClick"; "pageChange": "pageChange"; "listResize": "listResize"; }, never, never>;
130
131
  }
@@ -32,6 +32,14 @@ export declare class Messages extends ComponentMessages {
32
32
  * The text set as aria-label on the popup containing the list of options when its role is `region`.
33
33
  */
34
34
  popupLabel: string;
35
+ /**
36
+ * The text of the Apply button in the MultiSelect action sheet.
37
+ */
38
+ applyButton: string;
39
+ /**
40
+ * The text of the Cancel button in the MultiSelect action sheet.
41
+ */
42
+ cancelButton: string;
35
43
  static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "noDataText": "noDataText"; "clearTitle": "clearTitle"; "checkAllText": "checkAllText"; "selectButtonText": "selectButtonText"; "filterInputLabel": "filterInputLabel"; "popupLabel": "popupLabel"; }, {}, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "noDataText": "noDataText"; "clearTitle": "clearTitle"; "checkAllText": "checkAllText"; "selectButtonText": "selectButtonText"; "filterInputLabel": "filterInputLabel"; "popupLabel": "popupLabel"; "applyButton": "applyButton"; "cancelButton": "cancelButton"; }, {}, never>;
37
45
  }
@@ -12,6 +12,7 @@ export declare class SelectableDirective {
12
12
  index: number;
13
13
  checkboxes: MultiSelectCheckableSettings;
14
14
  height: number;
15
+ isMultiselect: boolean;
15
16
  multipleSelection: boolean;
16
17
  private selectionService;
17
18
  constructor(selectionService: SelectionService);
@@ -19,5 +20,5 @@ export declare class SelectableDirective {
19
20
  get selectedClassName(): boolean;
20
21
  onClick(event: any): void;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectableDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<SelectableDirective, "[kendoDropDownsSelectable]", never, { "index": "index"; "checkboxes": "checkboxes"; "height": "height"; "multipleSelection": "multipleSelection"; }, {}, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectableDirective, "[kendoDropDownsSelectable]", never, { "index": "index"; "checkboxes": "checkboxes"; "height": "height"; "isMultiselect": "isMultiselect"; "multipleSelection": "multipleSelection"; }, {}, never>;
23
24
  }
@@ -11,17 +11,21 @@ import * as i5 from "./templates/template-context.directive";
11
11
  import * as i6 from "./taglist.component";
12
12
  import * as i7 from "../dropdowntrees/checked-state/check.directive";
13
13
  import * as i8 from "../dropdowntrees/checked-state/check-all.directive";
14
- import * as i9 from "@angular/common";
15
- import * as i10 from "@angular/forms";
16
- import * as i11 from "@progress/kendo-angular-popup";
17
- import * as i12 from "@progress/kendo-angular-common";
18
- import * as i13 from "./shared-directives.module";
19
- import * as i14 from "@progress/kendo-angular-icons";
14
+ import * as i9 from "./action-sheet.component";
15
+ import * as i10 from "@angular/common";
16
+ import * as i11 from "@angular/forms";
17
+ import * as i12 from "@progress/kendo-angular-popup";
18
+ import * as i13 from "@progress/kendo-angular-common";
19
+ import * as i14 from "./shared-directives.module";
20
+ import * as i15 from "@progress/kendo-angular-icons";
21
+ import * as i16 from "@progress/kendo-angular-navigation";
22
+ import * as i17 from "@progress/kendo-angular-buttons";
23
+ import * as i18 from "@progress/kendo-angular-inputs";
20
24
  /**
21
25
  * @hidden
22
26
  */
23
27
  export declare class SharedModule {
24
28
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ListComponent, typeof i2.ListItemDirective, typeof i3.SelectableDirective, typeof i4.SearchBarComponent, typeof i5.TemplateContextDirective, typeof i6.TagListComponent, typeof i7.CheckDirective, typeof i8.CheckAllDirective], [typeof i9.CommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.PopupModule, typeof i12.ResizeSensorModule, typeof i13.SharedDirectivesModule, typeof i12.EventsModule, typeof i14.IconsModule], [typeof i1.ListComponent, typeof i2.ListItemDirective, typeof i3.SelectableDirective, typeof i4.SearchBarComponent, typeof i5.TemplateContextDirective, typeof i6.TagListComponent, typeof i7.CheckDirective, typeof i8.CheckAllDirective, typeof i9.CommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.PopupModule, typeof i12.ResizeSensorModule, typeof i13.SharedDirectivesModule, typeof i12.EventsModule, typeof i14.IconsModule]>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ListComponent, typeof i2.ListItemDirective, typeof i3.SelectableDirective, typeof i4.SearchBarComponent, typeof i5.TemplateContextDirective, typeof i6.TagListComponent, typeof i7.CheckDirective, typeof i8.CheckAllDirective, typeof i9.ResponsiveRendererComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.PopupModule, typeof i13.ResizeSensorModule, typeof i14.SharedDirectivesModule, typeof i13.EventsModule, typeof i15.IconsModule, typeof i16.ActionSheetModule, typeof i17.ButtonModule, typeof i18.TextBoxModule], [typeof i1.ListComponent, typeof i2.ListItemDirective, typeof i3.SelectableDirective, typeof i4.SearchBarComponent, typeof i5.TemplateContextDirective, typeof i6.TagListComponent, typeof i7.CheckDirective, typeof i8.CheckAllDirective, typeof i9.ResponsiveRendererComponent, typeof i10.CommonModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.PopupModule, typeof i13.ResizeSensorModule, typeof i14.SharedDirectivesModule, typeof i13.EventsModule, typeof i15.IconsModule, typeof i16.ActionSheetModule, typeof i17.ButtonModule, typeof i18.TextBoxModule]>;
26
30
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
27
31
  }
package/common/util.d.ts CHANGED
@@ -2,13 +2,14 @@
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 { ElementRef } from '@angular/core';
5
+ import { ElementRef, Renderer2 } from '@angular/core';
6
6
  import { TreeItem, TreeItemLookup } from '@progress/kendo-angular-treeview';
7
7
  import { PopupRef } from '@progress/kendo-angular-popup';
8
8
  import { CheckedItem } from '../dropdowntrees/checked-state/checked-item';
9
9
  import { DropDownSize } from './models/size';
10
10
  import { DropDownRounded } from './models/rounded';
11
11
  import { DropDownFillMode } from './models/fillmode';
12
+ import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
12
13
  /**
13
14
  * @hidden
14
15
  */
@@ -178,7 +179,43 @@ export declare const getTextField: (field: string | string[], level: number) =>
178
179
  /**
179
180
  * @hidden
180
181
  */
181
- export declare const getSearchableItems: (treeViewId: string, popupElement: HTMLElement) => {
182
+ export declare const getSearchableItems: (treeViewId: string, element: HTMLElement) => {
182
183
  text: string;
183
184
  index: string;
184
185
  }[];
186
+ /**
187
+ * @hidden
188
+ */
189
+ export declare const windowSize: () => 'large' | 'medium' | 'small';
190
+ /**
191
+ * Specifies the adaptive rendering of the component.
192
+ *
193
+ * The supported values are:
194
+ * * `none`&mdash;(default)
195
+ * * `auto`
196
+ */
197
+ export declare type AdaptiveMode = 'none' | 'auto';
198
+ /**
199
+ * @hidden
200
+ */
201
+ export declare const isTruthy: (value: any) => boolean;
202
+ /**
203
+ * @hidden
204
+ */
205
+ export declare type WindowSize = 'large' | 'medium' | 'small';
206
+ /**
207
+ * @hidden
208
+ */
209
+ export declare const updateActionSheetAdaptiveAppearance: (actionSheet: ActionSheetComponent, windowSize: WindowSize, renderer: Renderer2) => void;
210
+ /**
211
+ * @hidden
212
+ */
213
+ export declare const setListBoxAriaLabelLebBy: (optionsList: any, element: ElementRef, renderer: Renderer2) => void;
214
+ /**
215
+ * @hidden
216
+ */
217
+ export declare const setActionSheetTitle: (element: ElementRef, actionSheetTitle: string) => string;
218
+ /**
219
+ * @hidden
220
+ */
221
+ export declare const animationDuration = 300;