@progress/kendo-angular-toolbar 17.0.0-develop.3 → 17.0.0-develop.30

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 (53) hide show
  1. package/README.md +28 -20
  2. package/common/fillmode.d.ts +8 -0
  3. package/common/size.d.ts +1 -1
  4. package/direction.d.ts +1 -1
  5. package/display-mode.d.ts +1 -1
  6. package/{esm2020 → esm2022}/common/preventable-event.mjs +1 -3
  7. package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
  8. package/{esm2020 → esm2022}/localization/localized-toolbar-messages.directive.mjs +9 -8
  9. package/{esm2020 → esm2022}/localization/messages.mjs +7 -3
  10. package/{esm2020 → esm2022}/navigation.service.mjs +9 -7
  11. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  12. package/{esm2020 → esm2022}/refresh.service.mjs +4 -6
  13. package/{esm2020 → esm2022}/renderer.component.mjs +22 -10
  14. package/{esm2020 → esm2022}/renderer.service.mjs +5 -3
  15. package/esm2022/tool-options.mjs +5 -0
  16. package/{esm2020 → esm2022}/toolbar.component.mjs +105 -62
  17. package/{esm2020 → esm2022}/toolbar.module.mjs +4 -4
  18. package/{esm2020 → esm2022}/tools/toolbar-button.component.mjs +111 -99
  19. package/{esm2020 → esm2022}/tools/toolbar-buttongroup.component.mjs +50 -26
  20. package/{esm2020 → esm2022}/tools/toolbar-dropdownbutton.component.mjs +116 -97
  21. package/{esm2020 → esm2022}/tools/toolbar-separator.component.mjs +7 -12
  22. package/{esm2020 → esm2022}/tools/toolbar-spacer.component.mjs +10 -16
  23. package/{esm2020 → esm2022}/tools/toolbar-splitbutton.component.mjs +117 -102
  24. package/{esm2020 → esm2022}/tools/toolbar-tool.component.mjs +23 -13
  25. package/{esm2020 → esm2022}/tools/tools.service.mjs +8 -10
  26. package/{esm2020 → esm2022}/util.mjs +5 -0
  27. package/{fesm2020 → fesm2022}/progress-kendo-angular-toolbar.mjs +619 -486
  28. package/group-selection-settings.d.ts +1 -1
  29. package/index.d.ts +1 -0
  30. package/localization/messages.d.ts +1 -1
  31. package/package.json +15 -21
  32. package/render-location.d.ts +1 -1
  33. package/renderer.component.d.ts +1 -1
  34. package/toolbar.component.d.ts +11 -1
  35. package/tools/toolbar-button.component.d.ts +2 -8
  36. package/tools/toolbar-buttongroup.component.d.ts +8 -4
  37. package/tools/toolbar-dropdownbutton.component.d.ts +5 -5
  38. package/tools/toolbar-separator.component.d.ts +1 -3
  39. package/tools/toolbar-spacer.component.d.ts +1 -3
  40. package/tools/toolbar-splitbutton.component.d.ts +2 -4
  41. package/tools/toolbar-tool.component.d.ts +3 -3
  42. package/fesm2015/progress-kendo-angular-toolbar.mjs +0 -3369
  43. /package/{esm2020/common/renderer-click.mjs → esm2022/common/fillmode.mjs} +0 -0
  44. /package/{esm2020/common/size.mjs → esm2022/common/renderer-click.mjs} +0 -0
  45. /package/{esm2020/direction.mjs → esm2022/common/size.mjs} +0 -0
  46. /package/{esm2020/display-mode.mjs → esm2022/direction.mjs} +0 -0
  47. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  48. /package/{esm2020/group-selection-settings.mjs → esm2022/display-mode.mjs} +0 -0
  49. /package/{esm2020/popup-settings.mjs → esm2022/group-selection-settings.mjs} +0 -0
  50. /package/{esm2020 → esm2022}/index.mjs +0 -0
  51. /package/{esm2020/render-location.mjs → esm2022/popup-settings.mjs} +0 -0
  52. /package/{esm2020 → esm2022}/progress-kendo-angular-toolbar.mjs +0 -0
  53. /package/{esm2020/tool-options.mjs → esm2022/render-location.mjs} +0 -0
@@ -2,7 +2,7 @@
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, ElementRef, TemplateRef, forwardRef, ViewChild, Input, EventEmitter, Output, QueryList, ViewChildren, isDevMode } from '@angular/core';
5
+ import { Component, ElementRef, forwardRef, ViewChild, Input, EventEmitter, Output, QueryList, ViewChildren, isDevMode, Renderer2 } from '@angular/core';
6
6
  import { ToolBarToolComponent } from './toolbar-tool.component';
7
7
  import { DropDownButtonComponent } from '@progress/kendo-angular-buttons';
8
8
  import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
@@ -13,89 +13,17 @@ import * as i0 from "@angular/core";
13
13
  * Represents the [Kendo UI ToolBar DropDownButton for Angular]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
14
14
  */
15
15
  export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
16
- constructor() {
17
- super();
18
- /**
19
- * Allows showing the default arrow icon or providing alternative one instead.
20
- * @default false
21
- */
22
- this.arrowIcon = false;
23
- /**
24
- * Sets the `title` attribute of the underlying button element.
25
- * @default ''
26
- */
27
- this.title = '';
28
- /**
29
- * Defines the location of the button icon that will be displayed.
30
- */
31
- this.showIcon = 'both';
32
- /**
33
- * The fillMode property specifies the background and border styles of the Button.
34
- *
35
- * The available values are:
36
- * * `solid` (default)
37
- * * `flat`
38
- * * `outline`
39
- * * `link`
40
- * * `null`
41
- */
42
- this.fillMode = 'solid';
43
- /**
44
- * The Button allows you to specify predefined theme colors.
45
- * The theme color will be applied as a background and border color while also amending the text color accordingly
46
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
47
- *
48
- * The possible values are:
49
- * * `base` —Applies coloring based on the `base` theme color. (default)
50
- * * `primary` —Applies coloring based on the `primary` theme color.
51
- * * `secondary`—Applies coloring based on the `secondary` theme color.
52
- * * `tertiary`— Applies coloring based on the `tertiary` theme color.
53
- * * `info`—Applies coloring based on the `info` theme color.
54
- * * `success`— Applies coloring based on the `success` theme color.
55
- * * `warning`— Applies coloring based on the `warning` theme color.
56
- * * `error`— Applies coloring based on the `error` theme color.
57
- * * `dark`— Applies coloring based on the `dark` theme color.
58
- * * `light`— Applies coloring based on the `light` theme color.
59
- * * `inverse`— Applies coloring based on the `inverse` theme color.
60
- * * `null` —Removes the default CSS class (no class would be rendered).
61
- */
62
- this.themeColor = 'base';
63
- /**
64
- * Fires each time the user clicks a DropDownButton item.
65
- * The event data contains the data item that is bound to the clicked list item.
66
- */
67
- this.itemClick = new EventEmitter();
68
- /**
69
- * Fires each time the popup is about to open.
70
- * This event is preventable. If you cancel the event, the popup will remain closed.
71
- */
72
- this.open = new EventEmitter();
73
- /**
74
- * Fires each time the popup is about to close.
75
- * This event is preventable. If you cancel the event, the popup will remain open.
76
- */
77
- this.close = new EventEmitter();
78
- this.toolbarOptions = {
79
- text: '',
80
- icon: '',
81
- iconClass: '',
82
- svgIcon: null,
83
- imageUrl: ''
84
- };
85
- this.overflowOptions = {
86
- text: '',
87
- icon: '',
88
- iconClass: '',
89
- svgIcon: null,
90
- imageUrl: ''
91
- };
92
- this._popupSettings = { animate: true, popupClass: '' };
93
- this.focusedIndex = -1;
94
- this._showText = 'both';
95
- this.getNextKey = getNextKey();
96
- this.getPrevKey = getPrevKey();
97
- this.isBuiltInTool = true;
98
- }
16
+ renderer;
17
+ /**
18
+ * Allows showing the default arrow icon or providing alternative one instead.
19
+ * @default false
20
+ */
21
+ arrowIcon = false;
22
+ /**
23
+ * Sets the `title` attribute of the underlying button element.
24
+ * @default ''
25
+ */
26
+ title = '';
99
27
  // showText and showIcon showIcon should be declared first
100
28
  /**
101
29
  * Defines the location of the button text that will be displayed.
@@ -107,6 +35,10 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
107
35
  get showText() {
108
36
  return this._showText;
109
37
  }
38
+ /**
39
+ * Defines the location of the button icon that will be displayed.
40
+ */
41
+ showIcon = 'both';
110
42
  /**
111
43
  * Sets the text of the DropDownButton
112
44
  * ([see example](slug:controltypes_toolbar#toc-drop-down-buttons).
@@ -182,6 +114,51 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
182
114
  set primary(primary) {
183
115
  this.themeColor = primary ? 'primary' : 'base';
184
116
  }
117
+ /**
118
+ * The fillMode property specifies the background and border styles of the Button.
119
+ *
120
+ * The available values are:
121
+ * * `solid` (default)
122
+ * * `flat`
123
+ * * `outline`
124
+ * * `link`
125
+ * * `null`
126
+ */
127
+ fillMode = 'solid';
128
+ /**
129
+ * The Button allows you to specify predefined theme colors.
130
+ * The theme color will be applied as a background and border color while also amending the text color accordingly
131
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
132
+ *
133
+ * The possible values are:
134
+ * * `base` —Applies coloring based on the `base` theme color. (default)
135
+ * * `primary` —Applies coloring based on the `primary` theme color.
136
+ * * `secondary`—Applies coloring based on the `secondary` theme color.
137
+ * * `tertiary`— Applies coloring based on the `tertiary` theme color.
138
+ * * `info`—Applies coloring based on the `info` theme color.
139
+ * * `success`— Applies coloring based on the `success` theme color.
140
+ * * `warning`— Applies coloring based on the `warning` theme color.
141
+ * * `error`— Applies coloring based on the `error` theme color.
142
+ * * `dark`— Applies coloring based on the `dark` theme color.
143
+ * * `light`— Applies coloring based on the `light` theme color.
144
+ * * `inverse`— Applies coloring based on the `inverse` theme color.
145
+ * * `null` —Removes the default CSS class (no class would be rendered).
146
+ */
147
+ themeColor = 'base';
148
+ /**
149
+ * The CSS classes that will be rendered on the main button.
150
+ * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
151
+ */
152
+ buttonClass;
153
+ /**
154
+ * Sets the data item field that represents the item text.
155
+ * If the data contains only primitive values, do not define it.
156
+ */
157
+ textField;
158
+ /**
159
+ * Sets the disabled state of the DropDownButton.
160
+ */
161
+ disabled;
185
162
  /**
186
163
  * Sets the data of the DropDownButton
187
164
  * ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons)).
@@ -197,12 +174,62 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
197
174
  }
198
175
  return this._data;
199
176
  }
177
+ /**
178
+ * Fires each time the user clicks a DropDownButton item.
179
+ * The event data contains the data item that is bound to the clicked list item.
180
+ */
181
+ itemClick = new EventEmitter();
182
+ /**
183
+ * Fires each time the popup is about to open.
184
+ * This event is preventable. If you cancel the event, the popup will remain closed.
185
+ */
186
+ open = new EventEmitter();
187
+ /**
188
+ * Fires each time the popup is about to close.
189
+ * This event is preventable. If you cancel the event, the popup will remain open.
190
+ */
191
+ close = new EventEmitter();
192
+ dropdownButton;
193
+ dropDownButtonComponent;
194
+ overflowListItems;
195
+ toolbarOptions = {
196
+ text: '',
197
+ icon: '',
198
+ iconClass: '',
199
+ svgIcon: null,
200
+ imageUrl: ''
201
+ };
202
+ overflowOptions = {
203
+ text: '',
204
+ icon: '',
205
+ iconClass: '',
206
+ svgIcon: null,
207
+ imageUrl: ''
208
+ };
200
209
  ngOnInit() {
201
210
  this.setTextDisplayMode();
202
211
  }
212
+ ngAfterViewInit() {
213
+ this.renderer.addClass(this.toolbarDropDownButton.button.nativeElement, 'k-toolbar-menu-button');
214
+ }
203
215
  get overflowButtons() {
204
216
  return [...this.overflowListItems.toArray().filter(el => !el.nativeElement.classList.contains('k-disabled'))];
205
217
  }
218
+ toolbarDropDownButton;
219
+ _data;
220
+ _popupSettings = { animate: true, popupClass: '' };
221
+ focusedIndex = -1;
222
+ _showText = 'both';
223
+ _text;
224
+ getNextKey;
225
+ getPrevKey;
226
+ constructor(renderer) {
227
+ super();
228
+ this.renderer = renderer;
229
+ this.getNextKey = getNextKey();
230
+ this.getPrevKey = getPrevKey();
231
+ this.isBuiltInTool = true;
232
+ }
206
233
  /**
207
234
  * @hidden
208
235
  */
@@ -275,13 +302,11 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
275
302
  this.toolbarOptions.text = this.showText === 'overflow' ? undefined : this.text;
276
303
  this.overflowOptions.text = this.showText === 'toolbar' ? undefined : this.text;
277
304
  }
278
- }
279
- ToolBarDropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
280
- ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarDropDownButtonComponent, isStandalone: true, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
305
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
306
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarDropDownButtonComponent, isStandalone: true, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
281
307
  <ng-template #toolbarTemplate>
282
308
  <kendo-dropdownbutton
283
309
  #toolbarDropDownButton
284
- class="k-toolbar-menu-button"
285
310
  [icon]="toolbarOptions.icon"
286
311
  [iconClass]="toolbarOptions.iconClass"
287
312
  [svgIcon]="toolbarOptions.svgIcon"
@@ -344,7 +369,8 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
344
369
  </ng-container>
345
370
  </ng-template>
346
371
  `, isInline: true, dependencies: [{ kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
372
+ }
373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
348
374
  type: Component,
349
375
  args: [{
350
376
  exportAs: 'kendoToolBarDropDownButton',
@@ -354,7 +380,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
354
380
  <ng-template #toolbarTemplate>
355
381
  <kendo-dropdownbutton
356
382
  #toolbarDropDownButton
357
- class="k-toolbar-menu-button"
358
383
  [icon]="toolbarOptions.icon"
359
384
  [iconClass]="toolbarOptions.iconClass"
360
385
  [svgIcon]="toolbarOptions.svgIcon"
@@ -420,7 +445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
420
445
  standalone: true,
421
446
  imports: [DropDownButtonComponent, NgClass, NgIf, IconWrapperComponent, NgFor]
422
447
  }]
423
- }], ctorParameters: function () { return []; }, propDecorators: { arrowIcon: [{
448
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { arrowIcon: [{
424
449
  type: Input
425
450
  }], title: [{
426
451
  type: Input
@@ -462,12 +487,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
462
487
  type: Output
463
488
  }], close: [{
464
489
  type: Output
465
- }], toolbarTemplate: [{
466
- type: ViewChild,
467
- args: ['toolbarTemplate', { static: true }]
468
- }], popupTemplate: [{
469
- type: ViewChild,
470
- args: ['popupTemplate', { static: true }]
471
490
  }], dropdownButton: [{
472
491
  type: ViewChild,
473
492
  args: ['dropdownButton', { read: ElementRef, static: true }]
@@ -2,13 +2,14 @@
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, TemplateRef, forwardRef, ViewChild, ElementRef } from '@angular/core';
5
+ import { Component, forwardRef, ViewChild, ElementRef } from '@angular/core';
6
6
  import { ToolBarToolComponent } from './toolbar-tool.component';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
10
10
  */
11
11
  export class ToolBarSeparatorComponent extends ToolBarToolComponent {
12
+ separator;
12
13
  constructor() {
13
14
  super();
14
15
  this.isBuiltInTool = true;
@@ -38,9 +39,8 @@ export class ToolBarSeparatorComponent extends ToolBarToolComponent {
38
39
  this.popupTemplate = this.toolbarTemplate;
39
40
  }
40
41
  }
41
- }
42
- ToolBarSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
- ToolBarSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarSeparatorComponent, isStandalone: true, selector: "kendo-toolbar-separator", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "separator", first: true, predicate: ["separator"], descendants: true }], exportAs: ["kendoToolBarSeparator"], usesInheritance: true, ngImport: i0, template: `
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarSeparatorComponent, isStandalone: true, selector: "kendo-toolbar-separator", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }], viewQueries: [{ propertyName: "separator", first: true, predicate: ["separator"], descendants: true }], exportAs: ["kendoToolBarSeparator"], usesInheritance: true, ngImport: i0, template: `
44
44
  <ng-template #toolbarTemplate>
45
45
  <div class="k-separator"></div>
46
46
  </ng-template>
@@ -51,7 +51,8 @@ ToolBarSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
51
51
  </div>
52
52
  </ng-template>
53
53
  `, isInline: true });
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarSeparatorComponent, decorators: [{
54
+ }
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSeparatorComponent, decorators: [{
55
56
  type: Component,
56
57
  args: [{
57
58
  exportAs: 'kendoToolBarSeparator',
@@ -70,13 +71,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
70
71
  `,
71
72
  standalone: true
72
73
  }]
73
- }], ctorParameters: function () { return []; }, propDecorators: { toolbarTemplate: [{
74
- type: ViewChild,
75
- args: ['toolbarTemplate', { static: true }]
76
- }], popupTemplate: [{
77
- type: ViewChild,
78
- args: ['popupTemplate', { static: true }]
79
- }], separator: [{
74
+ }], ctorParameters: function () { return []; }, propDecorators: { separator: [{
80
75
  type: ViewChild,
81
76
  args: ['separator', { static: false }]
82
77
  }] } });
@@ -2,19 +2,19 @@
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, TemplateRef, forwardRef, ViewChild } from '@angular/core';
5
+ import { Component, forwardRef } from '@angular/core';
6
6
  import { ToolBarToolComponent } from './toolbar-tool.component';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Represents the [Kendo UI ToolBar Spacer for Angular]({% slug controltypes_toolbar %}#toc-separators).
10
10
  */
11
11
  export class ToolBarSpacerComponent extends ToolBarToolComponent {
12
+ /**
13
+ * @hidden
14
+ */
15
+ __isSpacer = true;
12
16
  constructor() {
13
17
  super();
14
- /**
15
- * @hidden
16
- */
17
- this.__isSpacer = true;
18
18
  this.isBuiltInTool = true;
19
19
  }
20
20
  /**
@@ -42,14 +42,14 @@ export class ToolBarSpacerComponent extends ToolBarToolComponent {
42
42
  this.popupTemplate = this.toolbarTemplate;
43
43
  }
44
44
  }
45
- }
46
- ToolBarSpacerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
47
- ToolBarSpacerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolBarSpacerComponent, isStandalone: true, selector: "kendo-toolbar-spacer", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], exportAs: ["kendoToolBarSpacer"], usesInheritance: true, ngImport: i0, template: `
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
46
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarSpacerComponent, isStandalone: true, selector: "kendo-toolbar-spacer", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], exportAs: ["kendoToolBarSpacer"], usesInheritance: true, ngImport: i0, template: `
48
47
  <ng-template #toolbarTemplate>
49
48
  <div class="k-spacer"></div>
50
49
  </ng-template>
51
50
  `, isInline: true });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolBarSpacerComponent, decorators: [{
51
+ }
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSpacerComponent, decorators: [{
53
53
  type: Component,
54
54
  args: [{
55
55
  exportAs: 'kendoToolBarSpacer',
@@ -62,10 +62,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
62
62
  `,
63
63
  standalone: true
64
64
  }]
65
- }], ctorParameters: function () { return []; }, propDecorators: { toolbarTemplate: [{
66
- type: ViewChild,
67
- args: ['toolbarTemplate', { static: true }]
68
- }], popupTemplate: [{
69
- type: ViewChild,
70
- args: ['popupTemplate', { static: true }]
71
- }] } });
65
+ }], ctorParameters: function () { return []; } });