@progress/kendo-angular-dropdowns 5.5.1-dev.202111181325 → 6.0.0-dev.202201190829

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 (75) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-dropdowns.js +2 -2
  5. package/dist/cdn/main.js +1 -1
  6. package/dist/es/autocomplete/autocomplete.component.js +120 -5
  7. package/dist/es/comboboxes/combobox.component.js +141 -20
  8. package/dist/es/comboboxes/multicolumncombobox.component.js +30 -10
  9. package/dist/es/common/list.component.js +83 -5
  10. package/dist/es/common/models/fillmode.js +4 -0
  11. package/dist/es/common/models/list-type.js +4 -0
  12. package/dist/es/common/models/rounded.js +4 -0
  13. package/dist/es/common/models/size.js +4 -0
  14. package/dist/es/common/searchbar.component.js +1 -1
  15. package/dist/es/common/selection/selectable.directive.js +2 -2
  16. package/dist/es/common/taglist.component.js +58 -5
  17. package/dist/es/common/util.js +37 -0
  18. package/dist/es/dropdownlist/dropdownlist.component.js +338 -46
  19. package/dist/es/dropdowntrees/dropdowntree.component.js +276 -42
  20. package/dist/es/dropdowntrees/multiselecttree.component.js +307 -46
  21. package/dist/es/multiselect/multiselect.component.js +162 -35
  22. package/dist/es/package-metadata.js +1 -1
  23. package/dist/es2015/autocomplete/autocomplete.component.d.ts +42 -0
  24. package/dist/es2015/autocomplete/autocomplete.component.js +109 -7
  25. package/dist/es2015/comboboxes/combobox.component.d.ts +49 -4
  26. package/dist/es2015/comboboxes/combobox.component.js +207 -106
  27. package/dist/es2015/comboboxes/multicolumncombobox.component.d.ts +9 -1
  28. package/dist/es2015/comboboxes/multicolumncombobox.component.js +185 -166
  29. package/dist/es2015/common/list.component.d.ts +22 -1
  30. package/dist/es2015/common/list.component.js +115 -36
  31. package/dist/es2015/common/models/fillmode.d.ts +14 -0
  32. package/dist/es2015/common/models/fillmode.js +4 -0
  33. package/dist/es2015/common/models/list-type.d.ts +8 -0
  34. package/dist/es2015/common/models/list-type.js +4 -0
  35. package/dist/es2015/common/models/rounded.d.ts +15 -0
  36. package/dist/es2015/common/models/rounded.js +4 -0
  37. package/dist/es2015/common/models/size.d.ts +14 -0
  38. package/dist/es2015/common/models/size.js +4 -0
  39. package/dist/es2015/common/searchbar.component.js +1 -1
  40. package/dist/es2015/common/selection/selectable.directive.js +2 -2
  41. package/dist/es2015/common/taglist.component.d.ts +13 -1
  42. package/dist/es2015/common/taglist.component.js +102 -47
  43. package/dist/es2015/common/util.d.ts +17 -0
  44. package/dist/es2015/common/util.js +37 -0
  45. package/dist/es2015/dropdownlist/dropdownlist.component.d.ts +77 -13
  46. package/dist/es2015/dropdownlist/dropdownlist.component.js +390 -159
  47. package/dist/es2015/dropdowntrees/dropdowntree.component.d.ts +71 -13
  48. package/dist/es2015/dropdowntrees/dropdowntree.component.js +287 -99
  49. package/dist/es2015/dropdowntrees/multiselecttree.component.d.ts +72 -12
  50. package/dist/es2015/dropdowntrees/multiselecttree.component.js +319 -117
  51. package/dist/es2015/index.metadata.json +1 -1
  52. package/dist/es2015/multiselect/multiselect.component.d.ts +53 -8
  53. package/dist/es2015/multiselect/multiselect.component.js +183 -70
  54. package/dist/es2015/package-metadata.js +1 -1
  55. package/dist/fesm2015/index.js +1928 -801
  56. package/dist/fesm5/index.js +1569 -231
  57. package/dist/npm/autocomplete/autocomplete.component.js +119 -4
  58. package/dist/npm/comboboxes/combobox.component.js +140 -19
  59. package/dist/npm/comboboxes/multicolumncombobox.component.js +29 -9
  60. package/dist/npm/common/list.component.js +82 -4
  61. package/dist/npm/common/models/fillmode.js +6 -0
  62. package/dist/npm/common/models/list-type.js +6 -0
  63. package/dist/npm/common/models/rounded.js +6 -0
  64. package/dist/npm/common/models/size.js +6 -0
  65. package/dist/npm/common/searchbar.component.js +1 -1
  66. package/dist/npm/common/selection/selectable.directive.js +2 -2
  67. package/dist/npm/common/taglist.component.js +56 -3
  68. package/dist/npm/common/util.js +37 -0
  69. package/dist/npm/dropdownlist/dropdownlist.component.js +336 -44
  70. package/dist/npm/dropdowntrees/dropdowntree.component.js +274 -40
  71. package/dist/npm/dropdowntrees/multiselecttree.component.js +304 -43
  72. package/dist/npm/multiselect/multiselect.component.js +160 -33
  73. package/dist/npm/package-metadata.js +1 -1
  74. package/dist/systemjs/kendo-angular-dropdowns.js +1 -1
  75. package/package.json +21 -17
@@ -6,6 +6,8 @@ import { ElementRef } 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
+ import { DropDownRounded } from './models/rounded';
10
+ import { DropDownFillMode } from './models/fillmode';
9
11
  /**
10
12
  * @hidden
11
13
  */
@@ -139,3 +141,18 @@ export declare const fetchDescendentNodes: (lookup: TreeItemLookup, filterExpres
139
141
  * Used in the MultiSelectTree component.
140
142
  */
141
143
  export declare const valueFrom: ({ dataItem, index, level }: CheckedItem, valueField: string | string[]) => any;
144
+ /**
145
+ * @hidden
146
+ * Returns the size class based on the component and size input.
147
+ */
148
+ export declare const getSizeClass: (component: string, size: import("@progress/kendo-angular-treeview/dist/es2015/size").TreeViewSize) => string;
149
+ /**
150
+ * @hidden
151
+ * Returns the rounded class based on the rounded input.
152
+ */
153
+ export declare const getRoundedClass: (rounded: DropDownRounded) => string;
154
+ /**
155
+ * @hidden
156
+ * Return the fillMode class based on the component and fillMode input.
157
+ */
158
+ export declare const getFillModeClass: (component: string, fillMode: DropDownFillMode) => string;
@@ -288,4 +288,41 @@ export const valueFrom = ({ dataItem, index, level }, valueField) => {
288
288
  const field = fields[normalizedLevel];
289
289
  return fieldAccessor(field)(dataItem);
290
290
  };
291
+ /**
292
+ * @hidden
293
+ * Returns the size class based on the component and size input.
294
+ */
295
+ export const getSizeClass = (component, size) => {
296
+ const SIZE_CLASSES = {
297
+ 'small': `k-${component}-sm`,
298
+ 'medium': `k-${component}-md`,
299
+ 'large': `k-${component}-lg`
300
+ };
301
+ return SIZE_CLASSES[size];
302
+ };
303
+ /**
304
+ * @hidden
305
+ * Returns the rounded class based on the rounded input.
306
+ */
307
+ export const getRoundedClass = (rounded) => {
308
+ const ROUNDED_CLASSES = {
309
+ 'small': 'k-rounded-sm',
310
+ 'medium': 'k-rounded-md',
311
+ 'large': 'k-rounded-lg',
312
+ 'full': 'k-rounded-full'
313
+ };
314
+ return ROUNDED_CLASSES[rounded];
315
+ };
316
+ /**
317
+ * @hidden
318
+ * Return the fillMode class based on the component and fillMode input.
319
+ */
320
+ export const getFillModeClass = (component, fillMode) => {
321
+ const FILLMODE_CLASSES = {
322
+ 'solid': `k-${component}-solid`,
323
+ 'flat': `k-${component}-flat`,
324
+ 'outline': `k-${component}-outline`
325
+ };
326
+ return FILLMODE_CLASSES[fillMode];
327
+ };
291
328
  export { ɵ0 };
@@ -25,6 +25,9 @@ import { FilterableComponent } from '../common/filtering/filterable-component';
25
25
  import { ListComponent } from '../common/list.component';
26
26
  import { VirtualizationSettings } from '../common/models/virtualization-settings';
27
27
  import { PageChangeEvent } from '../common/models/page-change-event';
28
+ import { DropDownSize } from '../common/models/size';
29
+ import { DropDownRounded } from '../common/models/rounded';
30
+ import { DropDownFillMode } from '../common/models/fillmode';
28
31
  /**
29
32
  * @hidden
30
33
  */
@@ -47,6 +50,7 @@ export declare const DROPDOWNLIST_VALUE_ACCESSOR: any;
47
50
  * ```
48
51
  */
49
52
  export declare class DropDownListComponent implements ControlValueAccessor, OnDestroy, OnChanges, AfterContentChecked, OnInit, FilterableComponent {
53
+ wrapper: ElementRef;
50
54
  private localization;
51
55
  private popupService;
52
56
  private selectionService;
@@ -55,7 +59,6 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
55
59
  private dataService;
56
60
  private _zone;
57
61
  private renderer;
58
- private hostElement;
59
62
  private cdr;
60
63
  touchEnabled: boolean;
61
64
  readonly width: any;
@@ -171,6 +174,40 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
171
174
  * @hidden
172
175
  */
173
176
  tabIndex: number;
177
+ /**
178
+ * Sets the size of the component.
179
+ *
180
+ * The possible values are:
181
+ * * `'small'`
182
+ * * `'medium'` (default)
183
+ * * `'large'`
184
+ * * `null`
185
+ *
186
+ */
187
+ size: DropDownSize;
188
+ /**
189
+ * Sets the border radius of the component.
190
+ *
191
+ * The possible values are:
192
+ * * `'small'`
193
+ * * `'medium'` (default)
194
+ * * `'large'`
195
+ * * `'full'`
196
+ * * `null`
197
+ *
198
+ */
199
+ rounded: DropDownRounded;
200
+ /**
201
+ * Sets the fillMode of the component.
202
+ *
203
+ * The possible values are:
204
+ * * `'flat'`
205
+ * * `'solid'` (default)
206
+ * * `'outline'`
207
+ * * `null`
208
+ *
209
+ */
210
+ fillMode: DropDownFillMode;
174
211
  /**
175
212
  * Fires each time the value is changed ([see example]({% slug overview_ddl %}#toc-events)).
176
213
  */
@@ -226,12 +263,11 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
226
263
  noDataTemplate: NoDataTemplateDirective;
227
264
  container: ViewContainerRef;
228
265
  popupTemplate: TemplateRef<any>;
229
- wrapper: ElementRef<HTMLSpanElement>;
230
266
  optionsList: ListComponent;
231
267
  /**
232
268
  * @hidden
233
269
  */
234
- blurComponent(): void;
270
+ blurComponent(event: FocusEvent): void;
235
271
  /**
236
272
  * @hidden
237
273
  */
@@ -239,25 +275,35 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
239
275
  /**
240
276
  * @hidden
241
277
  */
242
- focusComponent(): void;
278
+ focusComponent(event: FocusEvent): void;
243
279
  /**
244
280
  * @hidden
245
281
  */
246
- keydown(event: any): void;
282
+ onResize(): void;
283
+ hostClasses: boolean;
284
+ readonly isDisabled: boolean;
285
+ readonly isLoading: boolean;
286
+ readonly id: string;
287
+ readonly dir: string;
288
+ readonly hostTabIndex: number;
289
+ readonly isReadonly: boolean;
290
+ role: string;
291
+ readonly isAriaExpanded: boolean;
292
+ readonly hostAriaOwns: string;
293
+ readonly hostAriaActivedescendant: string;
294
+ readonly hostNoDataLabel: string;
247
295
  /**
248
296
  * @hidden
249
297
  */
250
- keypress(event: any): void;
298
+ keydown(event: any): void;
251
299
  /**
252
300
  * @hidden
253
301
  */
254
- click(event: MouseEvent): void;
302
+ keypress(event: any): void;
255
303
  /**
256
304
  * @hidden
257
305
  */
258
- onResize(): void;
259
- widgetClasses: boolean;
260
- readonly dir: string;
306
+ click(event: MouseEvent): void;
261
307
  groupIndices: any[];
262
308
  listBoxId: string;
263
309
  optionPrefix: string;
@@ -282,8 +328,8 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
282
328
  private closeSubscription;
283
329
  private filterFocused;
284
330
  private filterBlurred;
285
- private wrapperFocused;
286
- private wrapperBlurred;
331
+ private hostElementFocused;
332
+ private hostElementBlurred;
287
333
  private componentBlurredSubscription;
288
334
  private filterBlurredSubscription;
289
335
  private selectionSubscription;
@@ -297,7 +343,10 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
297
343
  private _virtualSettings;
298
344
  private localizationChangesSubscription;
299
345
  private messagesTimeout;
300
- constructor(localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, _zone: NgZone, renderer: Renderer2, hostElement: ElementRef, cdr: ChangeDetectorRef, touchEnabled: boolean);
346
+ private _size;
347
+ private _rounded;
348
+ private _fillMode;
349
+ constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, _zone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, touchEnabled: boolean);
301
350
  ngOnInit(): void;
302
351
  /**
303
352
  * @hidden
@@ -378,6 +427,18 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
378
427
  * @hidden
379
428
  */
380
429
  readonly buttonClasses: any;
430
+ /**
431
+ * @hidden
432
+ */
433
+ readonly selectButtonClasses: any;
434
+ /**
435
+ * @hidden
436
+ */
437
+ readonly filterInputClasses: any;
438
+ /**
439
+ * @hidden
440
+ */
441
+ readonly optionLabelSizeClass: any;
381
442
  /**
382
443
  * @hidden
383
444
  */
@@ -402,6 +463,8 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
402
463
  private onSelectionChange;
403
464
  private subscribeEvents;
404
465
  private subscribeTouchEvents;
466
+ private subscribeFocusEvents;
467
+ private unSubscribeFocusEvents;
405
468
  private unsubscribeEvents;
406
469
  private itemFromEvent;
407
470
  private currentOrDefault;
@@ -438,4 +501,5 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
438
501
  pageChange(event: PageChangeEvent): void;
439
502
  private setMessages;
440
503
  private assignAriaDescribedBy;
504
+ private setComponentClasses;
441
505
  }