@progress/kendo-angular-buttons 17.0.0-develop.20 → 17.0.0-develop.22

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 (88) hide show
  1. package/button/button.component.d.ts +1 -1
  2. package/button/selection-settings.d.ts +1 -1
  3. package/buttongroup/buttongroup.component.d.ts +1 -1
  4. package/chip/chip-list.component.d.ts +1 -1
  5. package/chip/chip.component.d.ts +1 -1
  6. package/chip/models/selection.d.ts +1 -1
  7. package/common/models/fillmode.d.ts +2 -2
  8. package/common/models/rounded.d.ts +2 -2
  9. package/common/models/size.d.ts +3 -3
  10. package/common/models/theme-color.d.ts +2 -2
  11. package/direction.d.ts +1 -1
  12. package/dropdownbutton/dropdownbutton.component.d.ts +2 -9
  13. package/{esm2020 → esm2022}/button/button.component.mjs +63 -49
  14. package/{esm2020 → esm2022}/button/button.module.mjs +4 -4
  15. package/{esm2020 → esm2022}/button/button.service.mjs +5 -7
  16. package/{esm2020 → esm2022}/buttongroup/buttongroup.component.mjs +76 -51
  17. package/{esm2020 → esm2022}/buttongroup/buttongroup.module.mjs +4 -4
  18. package/{esm2020 → esm2022}/buttons.module.mjs +4 -4
  19. package/{esm2020 → esm2022}/chip/chip-list.component.mjs +55 -45
  20. package/{esm2020 → esm2022}/chip/chip.component.mjs +123 -70
  21. package/{esm2020 → esm2022}/chip/chip.module.mjs +4 -4
  22. package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.component.mjs +109 -111
  23. package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.module.mjs +4 -4
  24. package/{esm2020 → esm2022}/floatingactionbutton/dial-item.component.mjs +21 -11
  25. package/{esm2020 → esm2022}/floatingactionbutton/dial-list.component.mjs +16 -11
  26. package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.component.mjs +145 -102
  27. package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.module.mjs +4 -4
  28. package/{esm2020 → esm2022}/floatingactionbutton/templates/dial-item-template.directive.mjs +4 -3
  29. package/{esm2020 → esm2022}/floatingactionbutton/templates/fab-template.directive.mjs +4 -3
  30. package/{esm2020 → esm2022}/focusable/focus.service.mjs +5 -6
  31. package/{esm2020 → esm2022}/focusable/focusable.directive.mjs +8 -4
  32. package/{esm2020 → esm2022}/listbutton/button-item-template.directive.mjs +4 -3
  33. package/{esm2020 → esm2022}/listbutton/container.service.mjs +5 -3
  34. package/{esm2020 → esm2022}/listbutton/list-button.mjs +88 -51
  35. package/{esm2020 → esm2022}/listbutton/list.component.mjs +13 -10
  36. package/{esm2020 → esm2022}/listbutton/list.module.mjs +8 -8
  37. package/{esm2020 → esm2022}/navigation/navigation.service.mjs +12 -11
  38. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  39. package/{esm2020 → esm2022}/preventable-event.mjs +1 -3
  40. package/{esm2020 → esm2022}/splitbutton/localization/custom-messages.component.mjs +7 -6
  41. package/{esm2020 → esm2022}/splitbutton/localization/localized-messages.directive.mjs +9 -8
  42. package/esm2022/splitbutton/localization/messages.mjs +45 -0
  43. package/{esm2020 → esm2022}/splitbutton/splitbutton.component.mjs +189 -182
  44. package/{esm2020 → esm2022}/splitbutton/splitbutton.module.mjs +4 -4
  45. package/{fesm2020 → fesm2022}/progress-kendo-angular-buttons.mjs +1246 -1013
  46. package/floatingactionbutton/dial-item.component.d.ts +1 -1
  47. package/floatingactionbutton/dial-list.component.d.ts +1 -1
  48. package/floatingactionbutton/floatingactionbutton.component.d.ts +1 -1
  49. package/floatingactionbutton/models/position-mode.d.ts +1 -1
  50. package/focusable/focusable.directive.d.ts +1 -1
  51. package/listbutton/list-button.d.ts +9 -4
  52. package/listbutton/list.component.d.ts +1 -1
  53. package/package.json +14 -20
  54. package/splitbutton/localization/messages.d.ts +1 -1
  55. package/splitbutton/splitbutton.component.d.ts +3 -16
  56. package/esm2020/splitbutton/localization/messages.mjs +0 -23
  57. package/fesm2015/progress-kendo-angular-buttons.mjs +0 -5560
  58. /package/{esm2020 → esm2022}/button/selection-settings.mjs +0 -0
  59. /package/{esm2020 → esm2022}/chip/chip-content-click-event-args.interface.mjs +0 -0
  60. /package/{esm2020 → esm2022}/chip/chip-list-remove-event-args.interface.mjs +0 -0
  61. /package/{esm2020 → esm2022}/chip/chip-remove-event-args.interface.mjs +0 -0
  62. /package/{esm2020 → esm2022}/chip/models/avatar-settings.interface.mjs +0 -0
  63. /package/{esm2020 → esm2022}/chip/models/selection.mjs +0 -0
  64. /package/{esm2020 → esm2022}/common/models/arrow-settings.mjs +0 -0
  65. /package/{esm2020 → esm2022}/common/models/fillmode.mjs +0 -0
  66. /package/{esm2020 → esm2022}/common/models/rounded.mjs +0 -0
  67. /package/{esm2020 → esm2022}/common/models/size.mjs +0 -0
  68. /package/{esm2020 → esm2022}/common/models/styling-classes.mjs +0 -0
  69. /package/{esm2020 → esm2022}/common/models/theme-color.mjs +0 -0
  70. /package/{esm2020 → esm2022}/common/models.mjs +0 -0
  71. /package/{esm2020 → esm2022}/direction.mjs +0 -0
  72. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  73. /package/{esm2020 → esm2022}/floatingactionbutton/animations/animations.mjs +0 -0
  74. /package/{esm2020 → esm2022}/floatingactionbutton/models/align.mjs +0 -0
  75. /package/{esm2020 → esm2022}/floatingactionbutton/models/item-animation.interface.mjs +0 -0
  76. /package/{esm2020 → esm2022}/floatingactionbutton/models/item-click.event.mjs +0 -0
  77. /package/{esm2020 → esm2022}/floatingactionbutton/models/item.interface.mjs +0 -0
  78. /package/{esm2020 → esm2022}/floatingactionbutton/models/offset.mjs +0 -0
  79. /package/{esm2020 → esm2022}/floatingactionbutton/models/position-mode.mjs +0 -0
  80. /package/{esm2020 → esm2022}/floatingactionbutton/utils.mjs +0 -0
  81. /package/{esm2020 → esm2022}/index.mjs +0 -0
  82. /package/{esm2020 → esm2022}/listbutton/list-item-model.mjs +0 -0
  83. /package/{esm2020 → esm2022}/listbutton/popup-settings.mjs +0 -0
  84. /package/{esm2020 → esm2022}/navigation/key-events.mjs +0 -0
  85. /package/{esm2020 → esm2022}/navigation/navigation-action.mjs +0 -0
  86. /package/{esm2020 → esm2022}/navigation/navigation-config.mjs +0 -0
  87. /package/{esm2020 → esm2022}/progress-kendo-angular-buttons.mjs +0 -0
  88. /package/{esm2020 → esm2022}/util.mjs +0 -0
@@ -2,10 +2,10 @@
2
2
  * Copyright © 2024 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 { Component, ContentChild, TemplateRef, ViewChild, ViewContainerRef, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, NgZone, ChangeDetectorRef, Renderer2 } from '@angular/core';
5
+ import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, NgZone, ChangeDetectorRef, Renderer2 } from '@angular/core';
6
6
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
- import { isDocumentAvailable, guid, Keys, isPresent } from '@progress/kendo-angular-common';
8
+ import { isDocumentAvailable, Keys, isPresent } from '@progress/kendo-angular-common';
9
9
  import { ButtonItemTemplateDirective } from '../listbutton/button-item-template.directive';
10
10
  import { closest } from '../util';
11
11
  import { ListButton } from '../listbutton/list-button';
@@ -59,89 +59,34 @@ const DEFAULT_FILL_MODE = 'solid';
59
59
  * ```
60
60
  */
61
61
  export class DropDownButtonComponent extends ListButton {
62
- constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, containerService, renderer) {
63
- super(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, containerService);
64
- this.containerService = containerService;
65
- this.renderer = renderer;
66
- /**
67
- * Allows showing the default arrow icon or providing alternative one instead.
68
- * @default false
69
- */
70
- this.arrowIcon = false;
71
- /**
72
- * Defines the name of an existing icon in the Kendo UI theme.
73
- */
74
- this.icon = '';
75
- /**
76
- * Defines the list of CSS classes which are used for styling the Button with custom icons.
77
- */
78
- this.iconClass = '';
79
- /**
80
- * Defines a URL for styling the button with a custom image.
81
- */
82
- this.imageUrl = '';
83
- /**
84
- * The size property specifies the padding of the DropDownButton
85
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
86
- *
87
- * The possible values are:
88
- * * `small`
89
- * * `medium` (default)
90
- * * `large`
91
- * * `none`
92
- */
93
- this.size = 'medium';
94
- /**
95
- * The rounded property specifies the border radius of the DropDownButton
96
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-rounded)).
97
- *
98
- * The possible values are:
99
- * * `small`
100
- * * `medium` (default)
101
- * * `large`
102
- * * `full`
103
- * * `none`
104
- */
105
- this.rounded = 'medium';
106
- /**
107
- * The DropDownButton allows you to specify predefined theme colors.
108
- * The theme color will be applied as a background and border color while also amending the text color accordingly
109
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
110
- *
111
- * The possible values are:
112
- * * `base` —Applies coloring based on the `base` theme color. (default)
113
- * * `primary` —Applies coloring based on the `primary` theme color.
114
- * * `secondary`—Applies coloring based on the `secondary` theme color.
115
- * * `tertiary`— Applies coloring based on the `tertiary` theme color.
116
- * * `info`—Applies coloring based on the `info` theme color.
117
- * * `success`— Applies coloring based on the `success` theme color.
118
- * * `warning`— Applies coloring based on the `warning` theme color.
119
- * * `error`— Applies coloring based on the `error` theme color.
120
- * * `dark`— Applies coloring based on the `dark` theme color.
121
- * * `light`— Applies coloring based on the `light` theme color.
122
- * * `inverse`— Applies coloring based on the `inverse` theme color.
123
- * * `none` —Removes the default CSS class (no class would be rendered).
124
- */
125
- this.themeColor = 'base';
126
- /**
127
- * Fires each time the user clicks on a drop-down list item. The event data contains the data item bound to the clicked list item.
128
- */
129
- this.itemClick = new EventEmitter();
130
- /**
131
- * Fires each time the DropDownButton gets focused.
132
- */
133
- this.onFocus = new EventEmitter();
134
- /**
135
- * Fires each time the DropDownButton gets blurred.
136
- */
137
- this.onBlur = new EventEmitter();
138
- this.listId = guid();
139
- this.buttonId = guid();
140
- this._fillMode = DEFAULT_FILL_MODE;
141
- this._buttonAttributes = null;
142
- this._itemClick = this.itemClick;
143
- this._blur = this.onBlur;
144
- }
62
+ containerService;
63
+ renderer;
64
+ /**
65
+ * Allows showing the default arrow icon or providing alternative one instead.
66
+ * @default false
67
+ */
68
+ arrowIcon = false;
69
+ /**
70
+ * Defines the name of an existing icon in the Kendo UI theme.
71
+ */
72
+ icon = '';
73
+ /**
74
+ * Defines an [`SVGIcon`](slug:api_icons_svgicon) to be rendered within the button.
75
+ */
76
+ svgIcon;
77
+ /**
78
+ * Defines the list of CSS classes which are used for styling the Button with custom icons.
79
+ */
80
+ iconClass = '';
81
+ /**
82
+ * Defines a URL for styling the button with a custom image.
83
+ */
84
+ imageUrl = '';
85
+ /**
86
+ * Sets the data item field that represents the item text.
87
+ * If the data contains only primitive values, do not define it.
88
+ */
89
+ textField;
145
90
  /**
146
91
  * Sets or gets the data of the DropDownButton.
147
92
  *
@@ -153,6 +98,29 @@ export class DropDownButtonComponent extends ListButton {
153
98
  get data() {
154
99
  return this._data;
155
100
  }
101
+ /**
102
+ * The size property specifies the padding of the DropDownButton
103
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
104
+ *
105
+ * The possible values are:
106
+ * * `small`
107
+ * * `medium` (default)
108
+ * * `large`
109
+ * * `none`
110
+ */
111
+ size = 'medium';
112
+ /**
113
+ * The rounded property specifies the border radius of the DropDownButton
114
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-rounded)).
115
+ *
116
+ * The possible values are:
117
+ * * `small`
118
+ * * `medium` (default)
119
+ * * `large`
120
+ * * `full`
121
+ * * `none`
122
+ */
123
+ rounded = 'medium';
156
124
  /**
157
125
  * The fillMode property specifies the background and border styles of the DropDownButton
158
126
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-fillMode)).
@@ -170,6 +138,26 @@ export class DropDownButtonComponent extends ListButton {
170
138
  get fillMode() {
171
139
  return this._fillMode;
172
140
  }
141
+ /**
142
+ * The DropDownButton allows you to specify predefined theme colors.
143
+ * The theme color will be applied as a background and border color while also amending the text color accordingly
144
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
145
+ *
146
+ * The possible values are:
147
+ * * `base` —Applies coloring based on the `base` theme color. (default)
148
+ * * `primary` —Applies coloring based on the `primary` theme color.
149
+ * * `secondary`—Applies coloring based on the `secondary` theme color.
150
+ * * `tertiary`— Applies coloring based on the `tertiary` theme color.
151
+ * * `info`—Applies coloring based on the `info` theme color.
152
+ * * `success`— Applies coloring based on the `success` theme color.
153
+ * * `warning`— Applies coloring based on the `warning` theme color.
154
+ * * `error`— Applies coloring based on the `error` theme color.
155
+ * * `dark`— Applies coloring based on the `dark` theme color.
156
+ * * `light`— Applies coloring based on the `light` theme color.
157
+ * * `inverse`— Applies coloring based on the `inverse` theme color.
158
+ * * `none` —Removes the default CSS class (no class would be rendered).
159
+ */
160
+ themeColor = 'base';
173
161
  /**
174
162
  * Sets attributes to the main button.
175
163
  */
@@ -181,6 +169,18 @@ export class DropDownButtonComponent extends ListButton {
181
169
  get buttonAttributes() {
182
170
  return this._buttonAttributes;
183
171
  }
172
+ /**
173
+ * Fires each time the user clicks on a drop-down list item. The event data contains the data item bound to the clicked list item.
174
+ */
175
+ itemClick = new EventEmitter();
176
+ /**
177
+ * Fires each time the DropDownButton gets focused.
178
+ */
179
+ onFocus = new EventEmitter();
180
+ /**
181
+ * Fires each time the DropDownButton gets blurred.
182
+ */
183
+ onBlur = new EventEmitter();
184
184
  get focused() {
185
185
  return this._isFocused && !this._disabled;
186
186
  }
@@ -193,6 +193,9 @@ export class DropDownButtonComponent extends ListButton {
193
193
  get active() {
194
194
  return this._active;
195
195
  }
196
+ itemTemplate;
197
+ _fillMode = DEFAULT_FILL_MODE;
198
+ _buttonAttributes = null;
196
199
  /**
197
200
  * @hidden
198
201
  */
@@ -262,6 +265,13 @@ export class DropDownButtonComponent extends ListButton {
262
265
  this.blurWrapper();
263
266
  }
264
267
  }
268
+ constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, containerService, renderer) {
269
+ super(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, containerService);
270
+ this.containerService = containerService;
271
+ this.renderer = renderer;
272
+ this._itemClick = this.itemClick;
273
+ this._blur = this.onBlur;
274
+ }
265
275
  ngAfterViewInit() {
266
276
  this.containerService.container = this.container;
267
277
  this.containerService.template = this.popupTemplate;
@@ -307,19 +317,18 @@ export class DropDownButtonComponent extends ListButton {
307
317
  }
308
318
  }
309
319
  }
310
- }
311
- DropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: i1.FocusService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i5.PopupContainerService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
312
- DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DropDownButtonComponent, isStandalone: true, selector: "kendo-dropdownbutton", inputs: { arrowIcon: "arrowIcon", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", textField: "textField", data: "data", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", buttonAttributes: "buttonAttributes" }, outputs: { itemClick: "itemClick", onFocus: "focus", onBlur: "blur" }, host: { listeners: { "keydown": "keydown($event)", "keyup": "keyup($event)", "mousedown": "mousedown($event)", "mouseup": "mouseup($event)" }, properties: { "class.k-focus": "this.focused", "attr.dir": "this.dir" } }, providers: [
313
- FocusService,
314
- NavigationService,
315
- NAVIGATION_SETTINGS_PROVIDER,
316
- LocalizationService,
317
- {
318
- provide: L10N_PREFIX,
319
- useValue: 'kendo.dropdownbutton'
320
- },
321
- PopupContainerService
322
- ], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, read: ElementRef }, { propertyName: "buttonList", first: true, predicate: ["buttonList"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], exportAs: ["kendoDropDownButton"], usesInheritance: true, ngImport: i0, template: `
320
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: i1.FocusService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i5.PopupContainerService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
321
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DropDownButtonComponent, isStandalone: true, selector: "kendo-dropdownbutton", inputs: { arrowIcon: "arrowIcon", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", textField: "textField", data: "data", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", buttonAttributes: "buttonAttributes" }, outputs: { itemClick: "itemClick", onFocus: "focus", onBlur: "blur" }, host: { listeners: { "keydown": "keydown($event)", "keyup": "keyup($event)", "mousedown": "mousedown($event)", "mouseup": "mouseup($event)" }, properties: { "class.k-focus": "this.focused", "attr.dir": "this.dir" } }, providers: [
322
+ FocusService,
323
+ NavigationService,
324
+ NAVIGATION_SETTINGS_PROVIDER,
325
+ LocalizationService,
326
+ {
327
+ provide: L10N_PREFIX,
328
+ useValue: 'kendo.dropdownbutton'
329
+ },
330
+ PopupContainerService
331
+ ], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], exportAs: ["kendoDropDownButton"], usesInheritance: true, ngImport: i0, template: `
323
332
  <button kendoButton #button
324
333
  type="button"
325
334
  [id]="buttonId"
@@ -364,7 +373,8 @@ DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
364
373
  </ng-template>
365
374
  <ng-container #container></ng-container>
366
375
  `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }] });
367
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownButtonComponent, decorators: [{
376
+ }
377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonComponent, decorators: [{
368
378
  type: Component,
369
379
  args: [{
370
380
  exportAs: 'kendoDropDownButton',
@@ -469,18 +479,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
469
479
  }], itemTemplate: [{
470
480
  type: ContentChild,
471
481
  args: [ButtonItemTemplateDirective]
472
- }], button: [{
473
- type: ViewChild,
474
- args: ['button', { read: ElementRef }]
475
- }], buttonList: [{
476
- type: ViewChild,
477
- args: ['buttonList']
478
- }], popupTemplate: [{
479
- type: ViewChild,
480
- args: ['popupTemplate']
481
- }], container: [{
482
- type: ViewChild,
483
- args: ['container', { read: ViewContainerRef }]
484
482
  }], keydown: [{
485
483
  type: HostListener,
486
484
  args: ['keydown', ['$event']]
@@ -20,11 +20,11 @@ import * as i2 from "../listbutton/button-item-template.directive";
20
20
  * - `ButtonItemTemplateDirective`&mdash;The Button item template directive.
21
21
  */
22
22
  export class DropDownButtonModule {
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
24
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonModule, imports: [i1.DropDownButtonComponent, i2.ButtonItemTemplateDirective], exports: [i1.DropDownButtonComponent, i2.ButtonItemTemplateDirective] });
25
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [i1.DropDownButtonComponent] });
23
26
  }
24
- DropDownButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
- DropDownButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DropDownButtonModule, imports: [i1.DropDownButtonComponent, i2.ButtonItemTemplateDirective], exports: [i1.DropDownButtonComponent, i2.ButtonItemTemplateDirective] });
26
- DropDownButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownButtonModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [i1.DropDownButtonComponent] });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownButtonModule, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownButtonModule, decorators: [{
28
28
  type: NgModule,
29
29
  args: [{
30
30
  exports: [...KENDO_DROPDOWNBUTTON],
@@ -12,13 +12,11 @@ import * as i1 from "@progress/kendo-angular-l10n";
12
12
  * @hidden
13
13
  */
14
14
  export class DialItemComponent {
15
- constructor(element, renderer, localisationService) {
16
- this.element = element;
17
- this.renderer = renderer;
18
- this.localisationService = localisationService;
19
- this.hostClass = true;
20
- this.role = 'menuitem';
21
- }
15
+ element;
16
+ renderer;
17
+ localisationService;
18
+ hostClass = true;
19
+ role = 'menuitem';
22
20
  get disabledClass() {
23
21
  return this.item.disabled;
24
22
  }
@@ -29,6 +27,18 @@ export class DialItemComponent {
29
27
  get indexAttr() {
30
28
  return this.index;
31
29
  }
30
+ cssClass;
31
+ cssStyle;
32
+ isFocused;
33
+ index;
34
+ item;
35
+ dialItemTemplate;
36
+ align;
37
+ constructor(element, renderer, localisationService) {
38
+ this.element = element;
39
+ this.renderer = renderer;
40
+ this.localisationService = localisationService;
41
+ }
32
42
  get iconClasses() {
33
43
  const classes = [];
34
44
  if (this.item.iconClass) {
@@ -59,9 +69,8 @@ export class DialItemComponent {
59
69
  };
60
70
  return directions[dir][align];
61
71
  }
62
- }
63
- DialItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
64
- DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DialItemComponent, isStandalone: true, selector: "[kendoDialItem]", inputs: { cssClass: "cssClass", cssStyle: "cssStyle", isFocused: "isFocused", index: "index", item: "item", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-item": "this.hostClass", "attr.role": "this.role", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.title": "this.title", "attr.aria-label": "this.title", "attr.data-fab-item-index": "this.indexAttr" } }, ngImport: i0, template: `
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
73
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialItemComponent, isStandalone: true, selector: "[kendoDialItem]", inputs: { cssClass: "cssClass", cssStyle: "cssStyle", isFocused: "isFocused", index: "index", item: "item", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-item": "this.hostClass", "attr.role": "this.role", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.title": "this.title", "attr.aria-label": "this.title", "attr.data-fab-item-index": "this.indexAttr" } }, ngImport: i0, template: `
65
74
  <ng-template *ngIf="dialItemTemplate"
66
75
  [ngTemplateOutlet]="dialItemTemplate"
67
76
  [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
@@ -78,7 +87,8 @@ DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
78
87
  [svgIcon]="item.svgIcon"></kendo-icon-wrapper>
79
88
  </ng-container>
80
89
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialItemComponent, decorators: [{
90
+ }
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialItemComponent, decorators: [{
82
92
  type: Component,
83
93
  args: [{
84
94
  // eslint-disable-next-line @angular-eslint/component-selector
@@ -14,28 +14,32 @@ import * as i1 from "../focusable/focus.service";
14
14
  * @hidden
15
15
  */
16
16
  export class DialListComponent {
17
- constructor(focusService, cdr) {
18
- this.focusService = focusService;
19
- this.cdr = cdr;
20
- this.hostClass = true;
21
- this.subscriptions = new Subscription();
22
- this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
23
- }
17
+ focusService;
18
+ cdr;
19
+ hostClass = true;
24
20
  get bottomClass() {
25
21
  return this.align.vertical === 'top' || this.align.vertical === 'middle';
26
22
  }
27
23
  get topClass() {
28
24
  return this.align.vertical === 'bottom';
29
25
  }
26
+ dialItems;
27
+ dialItemTemplate;
28
+ align;
29
+ subscriptions = new Subscription();
30
+ constructor(focusService, cdr) {
31
+ this.focusService = focusService;
32
+ this.cdr = cdr;
33
+ this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
34
+ }
30
35
  isFocused(index) {
31
36
  return this.focusService.isFocused(index);
32
37
  }
33
38
  ngOnDestroy() {
34
39
  this.subscriptions.unsubscribe();
35
40
  }
36
- }
37
- DialListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialListComponent, deps: [{ token: i1.FocusService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
38
- DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DialListComponent, isStandalone: true, selector: "[kendoDialList]", inputs: { dialItems: "dialItems", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-items": "this.hostClass", "class.k-fab-items-bottom": "this.bottomClass", "class.k-fab-items-top": "this.topClass" } }, ngImport: i0, template: `
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialListComponent, deps: [{ token: i1.FocusService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
42
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialListComponent, isStandalone: true, selector: "[kendoDialList]", inputs: { dialItems: "dialItems", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-items": "this.hostClass", "class.k-fab-items-bottom": "this.bottomClass", "class.k-fab-items-top": "this.topClass" } }, ngImport: i0, template: `
39
43
  <ng-container *ngFor='let item of dialItems; let idx = index'>
40
44
  <li
41
45
  kendoButtonFocusable
@@ -51,7 +55,8 @@ DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
51
55
  </li>
52
56
  </ng-container>
53
57
  `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { kind: "component", type: DialItemComponent, selector: "[kendoDialItem]", inputs: ["cssClass", "cssStyle", "isFocused", "index", "item", "dialItemTemplate", "align"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialListComponent, decorators: [{
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialListComponent, decorators: [{
55
60
  type: Component,
56
61
  args: [{
57
62
  // eslint-disable-next-line @angular-eslint/component-selector