@progress/kendo-angular-toolbar 17.0.0-develop.9 → 17.0.1-develop.1
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.
- package/README.md +28 -20
- package/common/fillmode.d.ts +8 -0
- package/common/size.d.ts +1 -1
- package/direction.d.ts +1 -1
- package/display-mode.d.ts +1 -1
- package/{esm2020 → esm2022}/common/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-toolbar-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/localization/messages.mjs +7 -3
- package/{esm2020 → esm2022}/navigation.service.mjs +9 -7
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/refresh.service.mjs +4 -6
- package/{esm2020 → esm2022}/renderer.component.mjs +22 -10
- package/{esm2020 → esm2022}/renderer.service.mjs +5 -3
- package/esm2022/tool-options.mjs +5 -0
- package/{esm2020 → esm2022}/toolbar.component.mjs +104 -64
- package/{esm2020 → esm2022}/toolbar.module.mjs +4 -4
- package/{esm2020 → esm2022}/tools/toolbar-button.component.mjs +110 -98
- package/{esm2020 → esm2022}/tools/toolbar-buttongroup.component.mjs +49 -25
- package/{esm2020 → esm2022}/tools/toolbar-dropdownbutton.component.mjs +112 -95
- package/{esm2020 → esm2022}/tools/toolbar-separator.component.mjs +7 -12
- package/{esm2020 → esm2022}/tools/toolbar-spacer.component.mjs +10 -16
- package/{esm2020 → esm2022}/tools/toolbar-splitbutton.component.mjs +117 -102
- package/{esm2020 → esm2022}/tools/toolbar-tool.component.mjs +23 -13
- package/{esm2020 → esm2022}/tools/tools.service.mjs +8 -10
- package/{esm2020 → esm2022}/util.mjs +5 -0
- package/{fesm2020 → fesm2022}/progress-kendo-angular-toolbar.mjs +612 -484
- package/group-selection-settings.d.ts +1 -1
- package/index.d.ts +1 -0
- package/localization/messages.d.ts +1 -1
- package/package.json +15 -21
- package/render-location.d.ts +1 -1
- package/renderer.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +1 -1
- package/toolbar.component.d.ts +11 -1
- package/tools/toolbar-button.component.d.ts +2 -8
- package/tools/toolbar-buttongroup.component.d.ts +8 -4
- package/tools/toolbar-dropdownbutton.component.d.ts +2 -4
- package/tools/toolbar-separator.component.d.ts +1 -3
- package/tools/toolbar-spacer.component.d.ts +1 -3
- package/tools/toolbar-splitbutton.component.d.ts +2 -4
- package/tools/toolbar-tool.component.d.ts +3 -3
- package/fesm2015/progress-kendo-angular-toolbar.mjs +0 -3374
- /package/{esm2020/common/renderer-click.mjs → esm2022/common/fillmode.mjs} +0 -0
- /package/{esm2020/common/size.mjs → esm2022/common/renderer-click.mjs} +0 -0
- /package/{esm2020/direction.mjs → esm2022/common/size.mjs} +0 -0
- /package/{esm2020/display-mode.mjs → esm2022/direction.mjs} +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020/group-selection-settings.mjs → esm2022/display-mode.mjs} +0 -0
- /package/{esm2020/popup-settings.mjs → esm2022/group-selection-settings.mjs} +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020/render-location.mjs → esm2022/popup-settings.mjs} +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-toolbar.mjs +0 -0
- /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,
|
|
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,90 +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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*/
|
|
28
|
-
this.title = '';
|
|
29
|
-
/**
|
|
30
|
-
* Defines the location of the button icon that will be displayed.
|
|
31
|
-
*/
|
|
32
|
-
this.showIcon = 'both';
|
|
33
|
-
/**
|
|
34
|
-
* The fillMode property specifies the background and border styles of the Button.
|
|
35
|
-
*
|
|
36
|
-
* The available values are:
|
|
37
|
-
* * `solid` (default)
|
|
38
|
-
* * `flat`
|
|
39
|
-
* * `outline`
|
|
40
|
-
* * `link`
|
|
41
|
-
* * `null`
|
|
42
|
-
*/
|
|
43
|
-
this.fillMode = 'solid';
|
|
44
|
-
/**
|
|
45
|
-
* The Button allows you to specify predefined theme colors.
|
|
46
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
47
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
48
|
-
*
|
|
49
|
-
* The possible values are:
|
|
50
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
51
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
52
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
53
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
54
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
55
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
56
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
57
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
58
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
59
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
60
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
61
|
-
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
62
|
-
*/
|
|
63
|
-
this.themeColor = 'base';
|
|
64
|
-
/**
|
|
65
|
-
* Fires each time the user clicks a DropDownButton item.
|
|
66
|
-
* The event data contains the data item that is bound to the clicked list item.
|
|
67
|
-
*/
|
|
68
|
-
this.itemClick = new EventEmitter();
|
|
69
|
-
/**
|
|
70
|
-
* Fires each time the popup is about to open.
|
|
71
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
72
|
-
*/
|
|
73
|
-
this.open = new EventEmitter();
|
|
74
|
-
/**
|
|
75
|
-
* Fires each time the popup is about to close.
|
|
76
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
77
|
-
*/
|
|
78
|
-
this.close = new EventEmitter();
|
|
79
|
-
this.toolbarOptions = {
|
|
80
|
-
text: '',
|
|
81
|
-
icon: '',
|
|
82
|
-
iconClass: '',
|
|
83
|
-
svgIcon: null,
|
|
84
|
-
imageUrl: ''
|
|
85
|
-
};
|
|
86
|
-
this.overflowOptions = {
|
|
87
|
-
text: '',
|
|
88
|
-
icon: '',
|
|
89
|
-
iconClass: '',
|
|
90
|
-
svgIcon: null,
|
|
91
|
-
imageUrl: ''
|
|
92
|
-
};
|
|
93
|
-
this._popupSettings = { animate: true, popupClass: '' };
|
|
94
|
-
this.focusedIndex = -1;
|
|
95
|
-
this._showText = 'both';
|
|
96
|
-
this.getNextKey = getNextKey();
|
|
97
|
-
this.getPrevKey = getPrevKey();
|
|
98
|
-
this.isBuiltInTool = true;
|
|
99
|
-
}
|
|
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 = '';
|
|
100
27
|
// showText and showIcon showIcon should be declared first
|
|
101
28
|
/**
|
|
102
29
|
* Defines the location of the button text that will be displayed.
|
|
@@ -108,6 +35,10 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
108
35
|
get showText() {
|
|
109
36
|
return this._showText;
|
|
110
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Defines the location of the button icon that will be displayed.
|
|
40
|
+
*/
|
|
41
|
+
showIcon = 'both';
|
|
111
42
|
/**
|
|
112
43
|
* Sets the text of the DropDownButton
|
|
113
44
|
* ([see example](slug:controltypes_toolbar#toc-drop-down-buttons).
|
|
@@ -183,6 +114,51 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
183
114
|
set primary(primary) {
|
|
184
115
|
this.themeColor = primary ? 'primary' : 'base';
|
|
185
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;
|
|
186
162
|
/**
|
|
187
163
|
* Sets the data of the DropDownButton
|
|
188
164
|
* ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons)).
|
|
@@ -198,6 +174,38 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
198
174
|
}
|
|
199
175
|
return this._data;
|
|
200
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
|
+
};
|
|
201
209
|
ngOnInit() {
|
|
202
210
|
this.setTextDisplayMode();
|
|
203
211
|
}
|
|
@@ -207,6 +215,21 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
207
215
|
get overflowButtons() {
|
|
208
216
|
return [...this.overflowListItems.toArray().filter(el => !el.nativeElement.classList.contains('k-disabled'))];
|
|
209
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
|
+
}
|
|
210
233
|
/**
|
|
211
234
|
* @hidden
|
|
212
235
|
*/
|
|
@@ -279,9 +302,8 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
279
302
|
this.toolbarOptions.text = this.showText === 'overflow' ? undefined : this.text;
|
|
280
303
|
this.overflowOptions.text = this.showText === 'toolbar' ? undefined : this.text;
|
|
281
304
|
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
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: `
|
|
285
307
|
<ng-template #toolbarTemplate>
|
|
286
308
|
<kendo-dropdownbutton
|
|
287
309
|
#toolbarDropDownButton
|
|
@@ -347,7 +369,8 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
347
369
|
</ng-container>
|
|
348
370
|
</ng-template>
|
|
349
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"] }] });
|
|
350
|
-
|
|
372
|
+
}
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
351
374
|
type: Component,
|
|
352
375
|
args: [{
|
|
353
376
|
exportAs: 'kendoToolBarDropDownButton',
|
|
@@ -464,12 +487,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
464
487
|
type: Output
|
|
465
488
|
}], close: [{
|
|
466
489
|
type: Output
|
|
467
|
-
}], toolbarTemplate: [{
|
|
468
|
-
type: ViewChild,
|
|
469
|
-
args: ['toolbarTemplate', { static: true }]
|
|
470
|
-
}], popupTemplate: [{
|
|
471
|
-
type: ViewChild,
|
|
472
|
-
args: ['popupTemplate', { static: true }]
|
|
473
490
|
}], dropdownButton: [{
|
|
474
491
|
type: ViewChild,
|
|
475
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,
|
|
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
|
-
|
|
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
|
-
|
|
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: {
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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 []; }
|
|
66
|
-
type: ViewChild,
|
|
67
|
-
args: ['toolbarTemplate', { static: true }]
|
|
68
|
-
}], popupTemplate: [{
|
|
69
|
-
type: ViewChild,
|
|
70
|
-
args: ['popupTemplate', { static: true }]
|
|
71
|
-
}] } });
|
|
65
|
+
}], ctorParameters: function () { return []; } });
|