@progress/kendo-angular-toolbar 19.1.0-develop.2 → 19.1.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/common/fillmode.d.ts +1 -1
- package/common/overflow-mode.d.ts +1 -1
- package/common/overflow-settings.d.ts +8 -16
- package/common/scroll-buttons.d.ts +12 -2
- package/common/size.d.ts +1 -1
- package/display-mode.d.ts +5 -5
- package/esm2022/localization/custom-messages.component.mjs +14 -1
- package/esm2022/localization/messages.mjs +3 -3
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/toolbar.component.mjs +28 -22
- package/esm2022/toolbar.module.mjs +2 -2
- package/esm2022/tools/toolbar-button.component.mjs +38 -39
- package/esm2022/tools/toolbar-buttongroup.component.mjs +20 -11
- package/esm2022/tools/toolbar-dropdownbutton.component.mjs +39 -47
- package/esm2022/tools/toolbar-separator.component.mjs +11 -0
- package/esm2022/tools/toolbar-spacer.component.mjs +11 -0
- package/esm2022/tools/toolbar-splitbutton.component.mjs +45 -54
- package/esm2022/tools/toolbar-tool.component.mjs +31 -12
- package/fesm2022/progress-kendo-angular-toolbar.mjs +244 -193
- package/group-selection-settings.d.ts +2 -2
- package/localization/custom-messages.component.d.ts +14 -1
- package/localization/messages.d.ts +3 -3
- package/package.json +9 -9
- package/popup-settings.d.ts +23 -20
- package/toolbar.component.d.ts +28 -22
- package/toolbar.module.d.ts +2 -2
- package/tools/toolbar-button.component.d.ts +38 -39
- package/tools/toolbar-buttongroup.component.d.ts +20 -11
- package/tools/toolbar-dropdownbutton.component.d.ts +39 -47
- package/tools/toolbar-separator.component.d.ts +11 -0
- package/tools/toolbar-spacer.component.d.ts +11 -0
- package/tools/toolbar-splitbutton.component.d.ts +45 -54
- package/tools/toolbar-tool.component.d.ts +31 -12
package/common/fillmode.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Represents the possible
|
|
6
|
+
* Represents the possible fill mode options of the ToolBar.
|
|
7
7
|
*/
|
|
8
8
|
export type ToolbarFillMode = 'solid' | 'flat' | 'outline' | 'none';
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Sets how the ToolBar handles overflow when there is not enough space to display all tools.
|
|
7
7
|
*/
|
|
8
8
|
export type OverflowMode = 'scroll' | 'section' | 'menu' | 'none';
|
|
@@ -6,48 +6,40 @@ import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
|
6
6
|
import { OverflowMode } from "./overflow-mode";
|
|
7
7
|
import { ToolbarScrollButtonsPosition, ToolbarScrollButtonsVisibility } from "./scroll-buttons";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the overflow settings for the ToolBar.
|
|
10
10
|
*/
|
|
11
11
|
export interface ToolbarOverflowSettings {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the ToolBar overflow mode.
|
|
14
14
|
* @default 'none'
|
|
15
15
|
*/
|
|
16
16
|
mode?: OverflowMode;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* - 'auto' (default) - The scroll buttons will be rendered only when the tools list overflows its container.
|
|
20
|
-
* - 'visible' - The scroll buttons will be always visible.
|
|
21
|
-
* - 'hidden' - No scroll buttons will be rendered.
|
|
18
|
+
* Sets the ToolBar scroll buttons visibility mode. Applies when the overflow mode is set to `'scroll'`.
|
|
22
19
|
*/
|
|
23
20
|
scrollButtons?: ToolbarScrollButtonsVisibility;
|
|
24
21
|
/**
|
|
25
|
-
*
|
|
26
|
-
* - 'start'—The scroll buttons will be rendered at the start before all tools.
|
|
27
|
-
* - 'end'—The scroll buttons will be rendered at the end after all tools.
|
|
28
|
-
* - 'split'(default)—The scroll buttons will be rendered at each side of the tools list.
|
|
22
|
+
* Sets the ToolBar scroll buttons position. Applies when the overflow mode is set to `'scroll'`.
|
|
29
23
|
*/
|
|
30
24
|
scrollButtonsPosition?: ToolbarScrollButtonsPosition;
|
|
31
25
|
/**
|
|
32
|
-
*
|
|
26
|
+
* Adds a custom CSS class or multiple classes to the span element of the previous scroll button. Applies when the overflow mode is set to `'scroll'`.
|
|
33
27
|
*
|
|
34
28
|
* Allows the usage of custom icons.
|
|
35
29
|
*/
|
|
36
30
|
prevButtonIcon?: string;
|
|
37
31
|
/**
|
|
38
|
-
*
|
|
32
|
+
* Adds a custom CSS class or multiple classes to the span element of the next scroll button. Applies when the overflow mode is set to `'scroll'`.
|
|
39
33
|
*
|
|
40
34
|
* Allows the usage of custom icons.
|
|
41
35
|
*/
|
|
42
36
|
nextButtonIcon?: string;
|
|
43
37
|
/**
|
|
44
|
-
*
|
|
45
|
-
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applicable when the overflow mode is set to 'scroll'.
|
|
38
|
+
* Sets an `SVGIcon` for the previous button icon. Accepts an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applies when the overflow mode is set to `'scroll'`.
|
|
46
39
|
*/
|
|
47
40
|
prevSVGButtonIcon?: SVGIcon;
|
|
48
41
|
/**
|
|
49
|
-
*
|
|
50
|
-
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applicable when the overflow mode is set to 'scroll'.
|
|
42
|
+
* Sets an `SVGIcon` for the next button icon. Accepts an [existing Kendo SVG icon](slug:svgicon_list) or a custom one. Applies when the overflow mode is set to `'scroll'`.
|
|
51
43
|
*/
|
|
52
44
|
nextSVGButtonIcon?: SVGIcon;
|
|
53
45
|
}
|
|
@@ -3,10 +3,20 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Controls when the ToolBar renders scroll buttons.
|
|
7
|
+
*
|
|
8
|
+
* The possible options are:
|
|
9
|
+
* - `auto`(default)—Renders the scroll buttons only when the tools overflow the ToolBar container.
|
|
10
|
+
* - `visible`—Always renders the scroll buttons.
|
|
11
|
+
* - `hidden`—Never renders the scroll buttons.
|
|
7
12
|
*/
|
|
8
13
|
export type ToolbarScrollButtonsVisibility = 'hidden' | 'visible' | 'auto';
|
|
9
14
|
/**
|
|
10
|
-
*
|
|
15
|
+
* Controls where the ToolBar renders scroll buttons.
|
|
16
|
+
*
|
|
17
|
+
* The possible options are:
|
|
18
|
+
* - `start`—Renders the scroll buttons at the start before all tools.
|
|
19
|
+
* - `end`—Renders the scroll buttons at the end after all tools.
|
|
20
|
+
* - `split`(default)—Renders the scroll buttons on both sides of the tools list.
|
|
11
21
|
*/
|
|
12
22
|
export type ToolbarScrollButtonsPosition = 'start' | 'end' | 'split';
|
package/common/size.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Represents the possible size options of the
|
|
6
|
+
* Represents the possible size options of the ToolBar.
|
|
7
7
|
* @default `medium`
|
|
8
8
|
*/
|
|
9
9
|
export type ToolbarSize = 'small' | 'medium' | 'large' | 'none';
|
package/display-mode.d.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Sets the visibility for the ToolBar tool text or icon.
|
|
7
7
|
*
|
|
8
8
|
* The possible values are:
|
|
9
|
-
* - `always`—
|
|
10
|
-
* - `toolbar`—
|
|
11
|
-
* - `menu`—
|
|
12
|
-
* - `never`—
|
|
9
|
+
* - `always`—Always shows the text or icon regardless of the overflow mode.
|
|
10
|
+
* - `toolbar`—Shows in the main ToolBar and in the overflow element when using `section` overflow mode.
|
|
11
|
+
* - `menu`—Shows only in the overflow popup when using `menu` overflow mode.
|
|
12
|
+
* - `never`—Never renders the text or icon.
|
|
13
13
|
*
|
|
14
14
|
* @default 'always'
|
|
15
15
|
*/
|
|
@@ -8,7 +8,20 @@ import { ToolbarMessages } from './messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the custom messages component of the ToolBar.
|
|
12
|
+
*
|
|
13
|
+
* Use this component to override default messages for the ToolBar.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-toolbar>
|
|
18
|
+
* <kendo-toolbar-messages
|
|
19
|
+
* moreToolsTitle="More options"
|
|
20
|
+
* previousToolButton="Previous"
|
|
21
|
+
* nextToolButton="Next">
|
|
22
|
+
* </kendo-toolbar-messages>
|
|
23
|
+
* </kendo-toolbar>
|
|
24
|
+
* ```
|
|
12
25
|
*/
|
|
13
26
|
export class ToolbarCustomMessagesComponent extends ToolbarMessages {
|
|
14
27
|
service;
|
|
@@ -10,15 +10,15 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class ToolbarMessages extends ComponentMessages {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the title of the **More Tools** button in a responsive ToolBar.
|
|
14
14
|
*/
|
|
15
15
|
moreToolsTitle;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Sets the title for the **Previous Tool** button when the ToolBar is scrollable.
|
|
18
18
|
*/
|
|
19
19
|
previousToolButton;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Sets the title for the **Next Tool** button when the ToolBar is scrollable.
|
|
22
22
|
*/
|
|
23
23
|
nextToolButton;
|
|
24
24
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolbarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.1.
|
|
13
|
+
publishDate: 1749139799,
|
|
14
|
+
version: '19.1.1-develop.1',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -44,6 +44,13 @@ const getInitialPopupSettings = (isRtl) => ({
|
|
|
44
44
|
});
|
|
45
45
|
/**
|
|
46
46
|
* Represents the [Kendo UI ToolBar component for Angular]({% slug overview_toolbar %}).
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```html
|
|
50
|
+
* <kendo-toolbar>
|
|
51
|
+
* <kendo-toolbar-button text="Button"></kendo-toolbar-button>
|
|
52
|
+
* </kendo-toolbar>
|
|
53
|
+
* ```
|
|
47
54
|
*/
|
|
48
55
|
export class ToolBarComponent {
|
|
49
56
|
localization;
|
|
@@ -60,7 +67,8 @@ export class ToolBarComponent {
|
|
|
60
67
|
return `k-button-${SIZES[this.size]}`;
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
|
-
*
|
|
70
|
+
* Sets the overflow mode for the ToolBar.
|
|
71
|
+
* Use this property to control how tools render when their total size is greater than the ToolBar container.
|
|
64
72
|
* @default false
|
|
65
73
|
*/
|
|
66
74
|
set overflow(overflow) {
|
|
@@ -122,11 +130,9 @@ export class ToolBarComponent {
|
|
|
122
130
|
return this.normalizedOverflow.mode !== 'none';
|
|
123
131
|
}
|
|
124
132
|
/**
|
|
125
|
-
* Configures the popup
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
129
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
133
|
+
* Configures the popup for the ToolBar overflow button.
|
|
134
|
+
* Use this property to customize the overflow popup appearance and behavior
|
|
135
|
+
* ([see example](slug:responsive_toolbar#customizing-the-popup)).
|
|
130
136
|
*/
|
|
131
137
|
set popupSettings(settings) {
|
|
132
138
|
this._popupSettings = Object.assign({}, getInitialPopupSettings(this.localization.rtl), settings);
|
|
@@ -135,9 +141,9 @@ export class ToolBarComponent {
|
|
|
135
141
|
return this._popupSettings || getInitialPopupSettings(this.localization.rtl);
|
|
136
142
|
}
|
|
137
143
|
/**
|
|
138
|
-
*
|
|
144
|
+
* Sets the fill mode for the ToolBar.
|
|
145
|
+
* This property controls the background and border styles of the ToolBar
|
|
139
146
|
* ([see example](slug:appearance_toolbar#toc-fill-mode)).
|
|
140
|
-
*
|
|
141
147
|
* @default 'solid'
|
|
142
148
|
*/
|
|
143
149
|
set fillMode(fillMode) {
|
|
@@ -149,17 +155,15 @@ export class ToolBarComponent {
|
|
|
149
155
|
return this._fillMode;
|
|
150
156
|
}
|
|
151
157
|
/**
|
|
152
|
-
*
|
|
158
|
+
* Sets the `tabindex` attribute of the ToolBar.
|
|
159
|
+
* Use this property to control the tab order of the ToolBar component.
|
|
160
|
+
* @default 0
|
|
153
161
|
*/
|
|
154
162
|
tabindex = 0;
|
|
155
163
|
/**
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
* * `small`
|
|
160
|
-
* * `medium` (default)
|
|
161
|
-
* * `large`
|
|
162
|
-
* * `none`
|
|
164
|
+
* Sets the size for all ToolBar elements.
|
|
165
|
+
* Use this property to control the padding of the ToolBar elements.
|
|
166
|
+
* @default 'medium'
|
|
163
167
|
*/
|
|
164
168
|
set size(size) {
|
|
165
169
|
const newSize = size ? size : DEFAULT_SIZE;
|
|
@@ -179,8 +183,9 @@ export class ToolBarComponent {
|
|
|
179
183
|
return this.tabindex;
|
|
180
184
|
}
|
|
181
185
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
186
|
+
* Sets the icon visibility for all tools in the ToolBar.
|
|
187
|
+
* You can override this property for each tool using the `showIcon` property of the tool.
|
|
188
|
+
* @default 'always'
|
|
184
189
|
*/
|
|
185
190
|
set showIcon(value) {
|
|
186
191
|
if (this._showIcon === value) {
|
|
@@ -194,8 +199,9 @@ export class ToolBarComponent {
|
|
|
194
199
|
});
|
|
195
200
|
}
|
|
196
201
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
202
|
+
* Sets the text visibility for all tools in the ToolBar.
|
|
203
|
+
* You can override this property for each tool using the `showText` property of the tool.
|
|
204
|
+
* @default 'always'
|
|
199
205
|
*/
|
|
200
206
|
set showText(value) {
|
|
201
207
|
if (this._showText === value) {
|
|
@@ -209,11 +215,11 @@ export class ToolBarComponent {
|
|
|
209
215
|
});
|
|
210
216
|
}
|
|
211
217
|
/**
|
|
212
|
-
*
|
|
218
|
+
* Emits when the overflow popup of the ToolBar opens.
|
|
213
219
|
*/
|
|
214
220
|
open = new EventEmitter();
|
|
215
221
|
/**
|
|
216
|
-
*
|
|
222
|
+
* Emits when the overflow popup of the ToolBar closes.
|
|
217
223
|
*/
|
|
218
224
|
close = new EventEmitter();
|
|
219
225
|
allTools;
|
|
@@ -19,10 +19,10 @@ import * as i8 from "./tools/toolbar-splitbutton.component";
|
|
|
19
19
|
import * as i9 from "./tools/toolbar-tool.component";
|
|
20
20
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the ToolBar component.
|
|
23
23
|
*
|
|
24
24
|
* The package exports:
|
|
25
|
-
* - `ToolBarComponent`—The
|
|
25
|
+
* - `ToolBarComponent`—The ToolBar component class.
|
|
26
26
|
* - `ToolBarToolComponent`—The base Tool component class.
|
|
27
27
|
* - `ToolBarButtonComponent`—The Button Tool component class.
|
|
28
28
|
* - `ToolBarButtonGroupComponent`—The ButtonGroup Tool component class.
|
|
@@ -15,6 +15,16 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
import * as i1 from "../toolbar.component";
|
|
16
16
|
/**
|
|
17
17
|
* Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
|
|
18
|
+
*
|
|
19
|
+
* Use this component to render a button inside the ToolBar.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-toolbar>
|
|
24
|
+
* <kendo-toolbar-button text="Button"></kendo-toolbar-button>
|
|
25
|
+
* </kendo-toolbar>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
18
28
|
*/
|
|
19
29
|
export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
20
30
|
element;
|
|
@@ -23,6 +33,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
23
33
|
// showText and showIcon showIcon should be declared first
|
|
24
34
|
/**
|
|
25
35
|
* Specifies the button text visibility.
|
|
36
|
+
* Accepts a `DisplayMode` value.
|
|
37
|
+
* @default 'always'
|
|
26
38
|
*/
|
|
27
39
|
set showText(value) {
|
|
28
40
|
this._showText = value;
|
|
@@ -33,6 +45,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
33
45
|
}
|
|
34
46
|
/**
|
|
35
47
|
* Specifies the button icon visibility.
|
|
48
|
+
* Accepts a `DisplayMode` value.
|
|
49
|
+
* @default 'always'
|
|
36
50
|
*/
|
|
37
51
|
set showIcon(value) {
|
|
38
52
|
this._showIcon = value;
|
|
@@ -42,7 +56,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
42
56
|
return this._showIcon;
|
|
43
57
|
}
|
|
44
58
|
/**
|
|
45
|
-
* Specifies the text of the Button
|
|
59
|
+
* Specifies the text of the Button
|
|
60
|
+
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
46
61
|
*/
|
|
47
62
|
set text(text) {
|
|
48
63
|
this._text = text;
|
|
@@ -58,26 +73,27 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
58
73
|
return this.host.size;
|
|
59
74
|
}
|
|
60
75
|
/**
|
|
61
|
-
* Specifies custom inline CSS styles
|
|
76
|
+
* Specifies custom inline CSS styles for the Button.
|
|
62
77
|
*/
|
|
63
78
|
style;
|
|
64
79
|
/**
|
|
65
|
-
* Specifies custom CSS class names
|
|
80
|
+
* Specifies custom CSS class names to be added to the Button.
|
|
66
81
|
*/
|
|
67
82
|
className;
|
|
68
83
|
/**
|
|
69
|
-
* Specifies the title of the Button.
|
|
84
|
+
* Specifies the `title` attribute of the Button.
|
|
70
85
|
*/
|
|
71
86
|
title;
|
|
72
87
|
/**
|
|
73
|
-
*
|
|
88
|
+
* Disables the Button when set to `true`
|
|
74
89
|
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
75
90
|
*/
|
|
76
91
|
disabled;
|
|
77
92
|
/**
|
|
78
|
-
* Provides visual styling
|
|
93
|
+
* Provides visual styling to indicate if the Button is active
|
|
79
94
|
* ([see example]({% slug controltypes_toolbar %}#toc-toggle-buttons)).
|
|
80
|
-
*
|
|
95
|
+
* For toggleable buttons, set this to `true`.
|
|
96
|
+
* @default false
|
|
81
97
|
*/
|
|
82
98
|
toggleable = false;
|
|
83
99
|
/**
|
|
@@ -99,37 +115,20 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
99
115
|
}
|
|
100
116
|
/**
|
|
101
117
|
* Sets the selected state of the Button.
|
|
118
|
+
* Use with the `toggleable` property.
|
|
119
|
+
* @default false
|
|
102
120
|
*/
|
|
103
121
|
selected = false;
|
|
104
122
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* * `solid` (default)
|
|
109
|
-
* * `flat`
|
|
110
|
-
* * `outline`
|
|
111
|
-
* * `link`
|
|
112
|
-
* * `null`
|
|
123
|
+
* Specifies the background and border styles of the Button.
|
|
124
|
+
* Accepts a `ButtonFillMode` value.
|
|
125
|
+
* @default 'solid'
|
|
113
126
|
*/
|
|
114
127
|
fillMode = 'solid';
|
|
115
128
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* The possible values are:
|
|
121
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
122
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
123
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
124
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
125
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
126
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
127
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
128
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
129
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
130
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
131
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
132
|
-
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
129
|
+
* Specifies the predefined theme color of the Button.
|
|
130
|
+
* Accepts a `ButtonThemeColor` value.
|
|
131
|
+
* @default 'base'
|
|
133
132
|
*/
|
|
134
133
|
themeColor = 'base';
|
|
135
134
|
/**
|
|
@@ -142,8 +141,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
142
141
|
this.overflowOptions.icon = getValueForLocation(icon, this.showIcon, true);
|
|
143
142
|
}
|
|
144
143
|
/**
|
|
145
|
-
* Defines a CSS class
|
|
146
|
-
*
|
|
144
|
+
* Defines a CSS class or multiple classes to be applied to a `span` element inside the Button.
|
|
145
|
+
* Allows the usage of custom icons.
|
|
147
146
|
*/
|
|
148
147
|
set iconClass(iconClass) {
|
|
149
148
|
this.toolbarOptions.iconClass = getValueForLocation(iconClass, this.showIcon, false);
|
|
@@ -151,7 +150,7 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
151
150
|
}
|
|
152
151
|
/**
|
|
153
152
|
* Defines an SVGIcon to be rendered within the button.
|
|
154
|
-
*
|
|
153
|
+
* Accepts either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
155
154
|
*/
|
|
156
155
|
set svgIcon(icon) {
|
|
157
156
|
const isIconSet = this.toolbarOptions.icon || this.overflowOptions.icon;
|
|
@@ -166,8 +165,8 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
166
165
|
this.overflowOptions.svgIcon = getValueForLocation(icon, this.showIcon, true);
|
|
167
166
|
}
|
|
168
167
|
/**
|
|
169
|
-
* Defines a URL
|
|
170
|
-
* The URL can be relative or absolute.
|
|
168
|
+
* Defines a URL for an image to be rendered inside the Button.
|
|
169
|
+
* The URL can be relative or absolute.
|
|
171
170
|
*/
|
|
172
171
|
set imageUrl(imageUrl) {
|
|
173
172
|
this.toolbarOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, false);
|
|
@@ -178,11 +177,11 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
178
177
|
*/
|
|
179
178
|
click = new EventEmitter();
|
|
180
179
|
/**
|
|
181
|
-
* Fires when the Button
|
|
180
|
+
* Fires when the Button's `pointerdown` event is triggered.
|
|
182
181
|
*/
|
|
183
182
|
pointerdown = new EventEmitter();
|
|
184
183
|
/**
|
|
185
|
-
* Fires each time the selected state of a
|
|
184
|
+
* Fires each time the selected state of a toggleable Button is changed.
|
|
186
185
|
* The event argument is the new selected state (Boolean).
|
|
187
186
|
*/
|
|
188
187
|
selectedChange = new EventEmitter();
|
|
@@ -15,35 +15,44 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
16
16
|
import * as i2 from "../toolbar.component";
|
|
17
17
|
/**
|
|
18
|
-
* Represents the Kendo UI Toolbar ButtonGroup for Angular.
|
|
18
|
+
* Represents the [Kendo UI Toolbar ButtonGroup for Angular](slug:controltypes_toolbar#button-groups).
|
|
19
|
+
*
|
|
20
|
+
* Use this component to group buttons in a ButtonGroup inside the ToolBar.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <kendo-toolbar>
|
|
25
|
+
* <kendo-toolbar-buttongroup>
|
|
26
|
+
* <kendo-toolbar-button text="Bold"></kendo-toolbar-button>
|
|
27
|
+
* <kendo-toolbar-button text="Underline"></kendo-toolbar-button>
|
|
28
|
+
* <kendo-toolbar-button text="Italic"></kendo-toolbar-button>
|
|
29
|
+
* </kendo-toolbar-buttongroup>
|
|
30
|
+
* </kendo-toolbar>
|
|
31
|
+
* ```
|
|
19
32
|
*/
|
|
20
33
|
export class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
21
34
|
localization;
|
|
22
35
|
host;
|
|
23
36
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* `true` and leave the `disabled` attribute of the ButtonGroup undefined. If you define the `disabled`
|
|
27
|
-
* attribute of the ButtonGroup, it will take precedence over the `disabled` attributes of the underlying
|
|
28
|
-
* buttons and they will be ignored.
|
|
37
|
+
* When `true`, disables the whole group of buttons.
|
|
38
|
+
* If you set the `disabled` property of the group, it overrides the `disabled` property of individual buttons.
|
|
29
39
|
*/
|
|
30
40
|
disabled;
|
|
31
41
|
/**
|
|
32
42
|
* @hidden
|
|
33
43
|
*
|
|
34
44
|
* Used to set different fillmode in Spreadsheet and Toolbar to comply with referent rendering.
|
|
45
|
+
* @default 'solid'
|
|
35
46
|
*/
|
|
36
47
|
fillMode = 'solid';
|
|
37
48
|
/**
|
|
38
|
-
*
|
|
49
|
+
* Sets the selection mode of the ButtonGroup.
|
|
50
|
+
* @default 'multiple'
|
|
39
51
|
*/
|
|
40
52
|
selection = 'multiple';
|
|
41
53
|
/**
|
|
42
54
|
* Sets the width of the ButtonGroup.
|
|
43
|
-
*
|
|
44
|
-
* If the width of the ButtonGroup is set:
|
|
45
|
-
* - The buttons resize automatically to fill the full width of the group wrapper.
|
|
46
|
-
* - The buttons acquire the same width.
|
|
55
|
+
* When you set the width of the ButtonGroup, the buttons have the same width and resize to fill the group wrapper.
|
|
47
56
|
*/
|
|
48
57
|
width;
|
|
49
58
|
/**
|