@progress/kendo-angular-dropdowns 5.5.1 → 6.0.1-dev.202201201129

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 +335 -54
  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 -37
  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 +80 -17
  46. package/dist/es2015/dropdownlist/dropdownlist.component.js +391 -167
  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 +1956 -837
  56. package/dist/fesm5/index.js +1558 -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 +333 -52
  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;
@@ -66,10 +69,6 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
66
69
  readonly ariaActivedescendant: string;
67
70
  readonly noDataLabel: string;
68
71
  readonly appendTo: ViewContainerRef;
69
- /**
70
- * @hidden
71
- */
72
- focusableId: string;
73
72
  /**
74
73
  * @hidden
75
74
  */
@@ -171,6 +170,40 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
171
170
  * @hidden
172
171
  */
173
172
  tabIndex: number;
173
+ /**
174
+ * Sets the size of the component.
175
+ *
176
+ * The possible values are:
177
+ * * `'small'`
178
+ * * `'medium'` (default)
179
+ * * `'large'`
180
+ * * `null`
181
+ *
182
+ */
183
+ size: DropDownSize;
184
+ /**
185
+ * Sets the border radius of the component.
186
+ *
187
+ * The possible values are:
188
+ * * `'small'`
189
+ * * `'medium'` (default)
190
+ * * `'large'`
191
+ * * `'full'`
192
+ * * `null`
193
+ *
194
+ */
195
+ rounded: DropDownRounded;
196
+ /**
197
+ * Sets the fillMode of the component.
198
+ *
199
+ * The possible values are:
200
+ * * `'flat'`
201
+ * * `'solid'` (default)
202
+ * * `'outline'`
203
+ * * `null`
204
+ *
205
+ */
206
+ fillMode: DropDownFillMode;
174
207
  /**
175
208
  * Fires each time the value is changed ([see example]({% slug overview_ddl %}#toc-events)).
176
209
  */
@@ -226,12 +259,11 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
226
259
  noDataTemplate: NoDataTemplateDirective;
227
260
  container: ViewContainerRef;
228
261
  popupTemplate: TemplateRef<any>;
229
- wrapper: ElementRef<HTMLSpanElement>;
230
262
  optionsList: ListComponent;
231
263
  /**
232
264
  * @hidden
233
265
  */
234
- blurComponent(): void;
266
+ blurComponent(event: FocusEvent): void;
235
267
  /**
236
268
  * @hidden
237
269
  */
@@ -239,25 +271,38 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
239
271
  /**
240
272
  * @hidden
241
273
  */
242
- focusComponent(): void;
274
+ focusComponent(event: FocusEvent): void;
243
275
  /**
244
276
  * @hidden
245
277
  */
246
- keydown(event: any): void;
278
+ onResize(): void;
279
+ hostClasses: boolean;
280
+ readonly isDisabled: boolean;
281
+ readonly isLoading: boolean;
247
282
  /**
248
283
  * @hidden
249
284
  */
250
- keypress(event: any): void;
285
+ focusableId: string;
286
+ readonly dir: string;
287
+ readonly hostTabIndex: number;
288
+ readonly isReadonly: boolean;
289
+ role: string;
290
+ readonly isAriaExpanded: boolean;
291
+ readonly hostAriaOwns: string;
292
+ readonly hostAriaActivedescendant: string;
293
+ readonly hostNoDataLabel: string;
251
294
  /**
252
295
  * @hidden
253
296
  */
254
- click(event: MouseEvent): void;
297
+ keydown(event: any): void;
255
298
  /**
256
299
  * @hidden
257
300
  */
258
- onResize(): void;
259
- widgetClasses: boolean;
260
- readonly dir: string;
301
+ keypress(event: any): void;
302
+ /**
303
+ * @hidden
304
+ */
305
+ click(event: MouseEvent): void;
261
306
  groupIndices: any[];
262
307
  listBoxId: string;
263
308
  optionPrefix: string;
@@ -282,8 +327,8 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
282
327
  private closeSubscription;
283
328
  private filterFocused;
284
329
  private filterBlurred;
285
- private wrapperFocused;
286
- private wrapperBlurred;
330
+ private hostElementFocused;
331
+ private hostElementBlurred;
287
332
  private componentBlurredSubscription;
288
333
  private filterBlurredSubscription;
289
334
  private selectionSubscription;
@@ -297,7 +342,10 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
297
342
  private _virtualSettings;
298
343
  private localizationChangesSubscription;
299
344
  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);
345
+ private _size;
346
+ private _rounded;
347
+ private _fillMode;
348
+ constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, _zone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, touchEnabled: boolean);
301
349
  ngOnInit(): void;
302
350
  /**
303
351
  * @hidden
@@ -378,6 +426,18 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
378
426
  * @hidden
379
427
  */
380
428
  readonly buttonClasses: any;
429
+ /**
430
+ * @hidden
431
+ */
432
+ readonly selectButtonClasses: any;
433
+ /**
434
+ * @hidden
435
+ */
436
+ readonly filterInputClasses: any;
437
+ /**
438
+ * @hidden
439
+ */
440
+ readonly optionLabelSizeClass: any;
381
441
  /**
382
442
  * @hidden
383
443
  */
@@ -402,6 +462,8 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
402
462
  private onSelectionChange;
403
463
  private subscribeEvents;
404
464
  private subscribeTouchEvents;
465
+ private subscribeFocusEvents;
466
+ private unSubscribeFocusEvents;
405
467
  private unsubscribeEvents;
406
468
  private itemFromEvent;
407
469
  private currentOrDefault;
@@ -438,4 +500,5 @@ export declare class DropDownListComponent implements ControlValueAccessor, OnDe
438
500
  pageChange(event: PageChangeEvent): void;
439
501
  private setMessages;
440
502
  private assignAriaDescribedBy;
503
+ private setComponentClasses;
441
504
  }