@progress/kendo-angular-toolbar 4.1.3 → 5.0.1-dev.202202251425
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-toolbar.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/toolbar-button.component.js +47 -14
- package/dist/es/tools/toolbar-buttongroup.component.js +16 -13
- package/dist/es/tools/toolbar-buttonlist.component.js +8 -3
- package/dist/es/tools/toolbar-dropdownbutton.component.js +64 -14
- package/dist/es/tools/toolbar-splitbutton.component.js +50 -9
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/toolbar-button.component.d.ts +31 -11
- package/dist/es2015/tools/toolbar-button.component.js +46 -17
- package/dist/es2015/tools/toolbar-buttongroup.component.d.ts +3 -9
- package/dist/es2015/tools/toolbar-buttongroup.component.js +15 -16
- package/dist/es2015/tools/toolbar-buttonlist.component.d.ts +3 -2
- package/dist/es2015/tools/toolbar-buttonlist.component.js +9 -3
- package/dist/es2015/tools/toolbar-dropdownbutton.component.d.ts +40 -14
- package/dist/es2015/tools/toolbar-dropdownbutton.component.js +57 -15
- package/dist/es2015/tools/toolbar-splitbutton.component.d.ts +34 -10
- package/dist/es2015/tools/toolbar-splitbutton.component.js +51 -11
- package/dist/fesm2015/index.js +179 -63
- package/dist/fesm5/index.js +186 -54
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/toolbar-button.component.js +47 -14
- package/dist/npm/tools/toolbar-buttongroup.component.js +16 -13
- package/dist/npm/tools/toolbar-buttonlist.component.js +8 -3
- package/dist/npm/tools/toolbar-dropdownbutton.component.js +64 -14
- package/dist/npm/tools/toolbar-splitbutton.component.js +50 -9
- package/dist/systemjs/kendo-angular-toolbar.js +1 -1
- package/package.json +11 -11
|
@@ -21,20 +21,18 @@ let ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = class ToolBarB
|
|
|
21
21
|
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
22
22
|
*/
|
|
23
23
|
this.selection = 'multiple';
|
|
24
|
-
/**
|
|
25
|
-
* Changes the visual appearance by using alternative styling options.
|
|
26
|
-
* Setting the `look` property on individual buttons inside the ToolBarButtonGroupComponent is not supported.
|
|
27
|
-
*
|
|
28
|
-
* The available values are:
|
|
29
|
-
* * `bare`
|
|
30
|
-
* * `flat`
|
|
31
|
-
* * `outline`
|
|
32
|
-
*/
|
|
33
|
-
this.look = 'default';
|
|
34
24
|
this.focusedIndex = -1;
|
|
35
25
|
this.getNextKey = getNextKey(this.localization.rtl);
|
|
36
26
|
this.getPrevKey = getPrevKey(this.localization.rtl);
|
|
37
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
set look(look) {
|
|
32
|
+
if (look) {
|
|
33
|
+
this.buttonComponents.forEach(b => b.fillMode = look === 'default' ? 'solid' : look);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
38
36
|
get buttonElements() {
|
|
39
37
|
return this.getButtonGroup()
|
|
40
38
|
.buttons.filter(b => !b.isDisabled)
|
|
@@ -118,8 +116,9 @@ tslib_1.__decorate([
|
|
|
118
116
|
], ToolBarButtonGroupComponent.prototype, "width", void 0);
|
|
119
117
|
tslib_1.__decorate([
|
|
120
118
|
Input(),
|
|
121
|
-
tslib_1.__metadata("design:type", String)
|
|
122
|
-
|
|
119
|
+
tslib_1.__metadata("design:type", String),
|
|
120
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
121
|
+
], ToolBarButtonGroupComponent.prototype, "look", null);
|
|
123
122
|
tslib_1.__decorate([
|
|
124
123
|
ViewChild('toolbarTemplate', { static: true }),
|
|
125
124
|
tslib_1.__metadata("design:type", TemplateRef)
|
|
@@ -153,7 +152,6 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = tslib_1.__decorate
|
|
|
153
152
|
[tabIndex]="-1"
|
|
154
153
|
[selection]="selection"
|
|
155
154
|
[disabled]="disabled"
|
|
156
|
-
[look]="look"
|
|
157
155
|
[width]="width"
|
|
158
156
|
(navigate)="onNavigate($event)"
|
|
159
157
|
(focus)="onFocus()"
|
|
@@ -166,8 +164,9 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = tslib_1.__decorate
|
|
|
166
164
|
[attr.title]="button.title"
|
|
167
165
|
[disabled]="button.disabled"
|
|
168
166
|
[togglable]="button.togglable"
|
|
169
|
-
[primary]="button.primary"
|
|
170
167
|
[selected]="button.selected"
|
|
168
|
+
[fillMode]="button.fillMode"
|
|
169
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
171
170
|
[icon]="button.toolbarOptions.icon"
|
|
172
171
|
[iconClass]="button.toolbarOptions.iconClass"
|
|
173
172
|
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
@@ -186,7 +185,6 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = tslib_1.__decorate
|
|
|
186
185
|
[tabIndex]="-1"
|
|
187
186
|
[selection]="selection"
|
|
188
187
|
[disabled]="disabled"
|
|
189
|
-
[look]="look"
|
|
190
188
|
[width]="width"
|
|
191
189
|
>
|
|
192
190
|
<span
|
|
@@ -198,8 +196,9 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = tslib_1.__decorate
|
|
|
198
196
|
[attr.title]="button.title"
|
|
199
197
|
[disabled]="button.disabled"
|
|
200
198
|
[togglable]="button.togglable"
|
|
201
|
-
[primary]="button.primary"
|
|
202
199
|
[selected]="button.selected"
|
|
200
|
+
[fillMode]="button.fillMode"
|
|
201
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
203
202
|
[icon]="button.overflowOptions.icon"
|
|
204
203
|
[iconClass]="button.overflowOptions.iconClass"
|
|
205
204
|
[imageUrl]="button.overflowOptions.imageUrl"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ElementRef, EventEmitter, QueryList } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ButtonFillMode, ButtonThemeColor } from '@progress/kendo-angular-buttons';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
@@ -11,7 +11,8 @@ export declare class ToolBarButtonListComponent {
|
|
|
11
11
|
data: any[];
|
|
12
12
|
textField: string;
|
|
13
13
|
disabled: boolean;
|
|
14
|
-
|
|
14
|
+
fillMode: ButtonFillMode;
|
|
15
|
+
themeColor: ButtonThemeColor;
|
|
15
16
|
itemClick: EventEmitter<any>;
|
|
16
17
|
buttons: QueryList<ElementRef>;
|
|
17
18
|
getText(dataItem: any): any;
|
|
@@ -13,7 +13,8 @@ let ToolBarButtonListComponent = class ToolBarButtonListComponent {
|
|
|
13
13
|
*/
|
|
14
14
|
constructor() {
|
|
15
15
|
this.disabled = false;
|
|
16
|
-
this.
|
|
16
|
+
this.fillMode = 'solid';
|
|
17
|
+
this.themeColor = 'base';
|
|
17
18
|
this.itemClick = new EventEmitter();
|
|
18
19
|
}
|
|
19
20
|
getText(dataItem) {
|
|
@@ -45,7 +46,11 @@ tslib_1.__decorate([
|
|
|
45
46
|
tslib_1.__decorate([
|
|
46
47
|
Input(),
|
|
47
48
|
tslib_1.__metadata("design:type", String)
|
|
48
|
-
], ToolBarButtonListComponent.prototype, "
|
|
49
|
+
], ToolBarButtonListComponent.prototype, "fillMode", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
Input(),
|
|
52
|
+
tslib_1.__metadata("design:type", String)
|
|
53
|
+
], ToolBarButtonListComponent.prototype, "themeColor", void 0);
|
|
49
54
|
tslib_1.__decorate([
|
|
50
55
|
Output(),
|
|
51
56
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
@@ -70,7 +75,8 @@ ToolBarButtonListComponent = tslib_1.__decorate([
|
|
|
70
75
|
[icon]="item.icon"
|
|
71
76
|
[iconClass]="item.iconClass"
|
|
72
77
|
[imageUrl]="item.imageUrl"
|
|
73
|
-
[
|
|
78
|
+
[fillMode]="fillMode"
|
|
79
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
74
80
|
(click)="onClick(item, i)"
|
|
75
81
|
>
|
|
76
82
|
{{ getText(item) }}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ElementRef, TemplateRef, EventEmitter } from '@angular/core';
|
|
6
6
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
7
7
|
import { PopupSettings } from '../popup-settings';
|
|
8
|
-
import {
|
|
8
|
+
import { ButtonFillMode, ButtonThemeColor, DropDownButtonComponent } from '@progress/kendo-angular-buttons';
|
|
9
9
|
import { DisplayMode } from '../display-mode';
|
|
10
10
|
import { ToolOptions } from '../tool-options';
|
|
11
11
|
import { PreventableEvent } from '../common/preventable-event';
|
|
@@ -46,6 +46,45 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
|
|
|
46
46
|
* - `popupClass:String`—Specifies a list of CSS classes that are used to style the popup.
|
|
47
47
|
*/
|
|
48
48
|
popupSettings: PopupSettings;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
look: 'default' | 'flat' | 'outline';
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
primary: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
59
|
+
*
|
|
60
|
+
* The available values are:
|
|
61
|
+
* * `solid` (default)
|
|
62
|
+
* * `flat`
|
|
63
|
+
* * `outline`
|
|
64
|
+
* * `link`
|
|
65
|
+
* * `null`
|
|
66
|
+
*/
|
|
67
|
+
fillMode: ButtonFillMode;
|
|
68
|
+
/**
|
|
69
|
+
* The Button allows you to specify predefined theme colors.
|
|
70
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
71
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
72
|
+
*
|
|
73
|
+
* The possible values are:
|
|
74
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
75
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
76
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
77
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
78
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
79
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
80
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
81
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
82
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
83
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
84
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
85
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
86
|
+
*/
|
|
87
|
+
themeColor: ButtonThemeColor;
|
|
49
88
|
/**
|
|
50
89
|
* The CSS classes that will be rendered on the main button.
|
|
51
90
|
* Supports the type of values that are supported by [`ngClass`]({{ site.data.urls.angular['ngclassapi'] }}).
|
|
@@ -60,15 +99,6 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
|
|
|
60
99
|
* Sets the disabled state of the DropDownButton.
|
|
61
100
|
*/
|
|
62
101
|
disabled: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Changes the visual appearance by using alternative styling options.
|
|
65
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
|
|
66
|
-
*
|
|
67
|
-
* The available values are:
|
|
68
|
-
* * `flat`
|
|
69
|
-
* * `outline`
|
|
70
|
-
*/
|
|
71
|
-
look: ButtonLook;
|
|
72
102
|
/**
|
|
73
103
|
* Sets the data of the DropDownButton
|
|
74
104
|
* ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons)).
|
|
@@ -76,10 +106,6 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
|
|
|
76
106
|
* > The data has to be provided in an array-like list.
|
|
77
107
|
*/
|
|
78
108
|
data: any[];
|
|
79
|
-
/**
|
|
80
|
-
* Adds visual weight to the default button and makes it primary.
|
|
81
|
-
*/
|
|
82
|
-
primary: boolean;
|
|
83
109
|
/**
|
|
84
110
|
* Fires each time the user clicks a DropDownButton item.
|
|
85
111
|
* The event data contains the data item that is bound to the clicked list item.
|
|
@@ -25,18 +25,36 @@ let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class To
|
|
|
25
25
|
*/
|
|
26
26
|
this.showIcon = 'both';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
|
|
28
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
30
29
|
*
|
|
31
30
|
* The available values are:
|
|
31
|
+
* * `solid` (default)
|
|
32
32
|
* * `flat`
|
|
33
33
|
* * `outline`
|
|
34
|
+
* * `link`
|
|
35
|
+
* * `null`
|
|
34
36
|
*/
|
|
35
|
-
this.
|
|
37
|
+
this.fillMode = 'solid';
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* The Button allows you to specify predefined theme colors.
|
|
40
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
41
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
42
|
+
*
|
|
43
|
+
* The possible values are:
|
|
44
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
45
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
46
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
47
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
48
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
49
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
50
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
51
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
52
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
53
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
54
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
55
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
38
56
|
*/
|
|
39
|
-
this.
|
|
57
|
+
this.themeColor = 'base';
|
|
40
58
|
/**
|
|
41
59
|
* Fires each time the user clicks a DropDownButton item.
|
|
42
60
|
* The event data contains the data item that is bound to the clicked list item.
|
|
@@ -111,6 +129,20 @@ let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class To
|
|
|
111
129
|
get popupSettings() {
|
|
112
130
|
return this._popupSettings;
|
|
113
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* @hidden
|
|
134
|
+
*/
|
|
135
|
+
set look(look) {
|
|
136
|
+
if (look) {
|
|
137
|
+
this.fillMode = look === 'default' ? 'solid' : look;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @hidden
|
|
142
|
+
*/
|
|
143
|
+
set primary(primary) {
|
|
144
|
+
this.themeColor = primary ? 'primary' : 'base';
|
|
145
|
+
}
|
|
114
146
|
/**
|
|
115
147
|
* Sets the data of the DropDownButton
|
|
116
148
|
* ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons)).
|
|
@@ -211,6 +243,24 @@ tslib_1.__decorate([
|
|
|
211
243
|
tslib_1.__metadata("design:type", Object),
|
|
212
244
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
213
245
|
], ToolBarDropDownButtonComponent.prototype, "popupSettings", null);
|
|
246
|
+
tslib_1.__decorate([
|
|
247
|
+
Input(),
|
|
248
|
+
tslib_1.__metadata("design:type", String),
|
|
249
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
250
|
+
], ToolBarDropDownButtonComponent.prototype, "look", null);
|
|
251
|
+
tslib_1.__decorate([
|
|
252
|
+
Input(),
|
|
253
|
+
tslib_1.__metadata("design:type", Boolean),
|
|
254
|
+
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
255
|
+
], ToolBarDropDownButtonComponent.prototype, "primary", null);
|
|
256
|
+
tslib_1.__decorate([
|
|
257
|
+
Input(),
|
|
258
|
+
tslib_1.__metadata("design:type", String)
|
|
259
|
+
], ToolBarDropDownButtonComponent.prototype, "fillMode", void 0);
|
|
260
|
+
tslib_1.__decorate([
|
|
261
|
+
Input(),
|
|
262
|
+
tslib_1.__metadata("design:type", String)
|
|
263
|
+
], ToolBarDropDownButtonComponent.prototype, "themeColor", void 0);
|
|
214
264
|
tslib_1.__decorate([
|
|
215
265
|
Input(),
|
|
216
266
|
tslib_1.__metadata("design:type", String)
|
|
@@ -223,19 +273,11 @@ tslib_1.__decorate([
|
|
|
223
273
|
Input(),
|
|
224
274
|
tslib_1.__metadata("design:type", Boolean)
|
|
225
275
|
], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
|
|
226
|
-
tslib_1.__decorate([
|
|
227
|
-
Input(),
|
|
228
|
-
tslib_1.__metadata("design:type", String)
|
|
229
|
-
], ToolBarDropDownButtonComponent.prototype, "look", void 0);
|
|
230
276
|
tslib_1.__decorate([
|
|
231
277
|
Input(),
|
|
232
278
|
tslib_1.__metadata("design:type", Array),
|
|
233
279
|
tslib_1.__metadata("design:paramtypes", [Array])
|
|
234
280
|
], ToolBarDropDownButtonComponent.prototype, "data", null);
|
|
235
|
-
tslib_1.__decorate([
|
|
236
|
-
Input(),
|
|
237
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
238
|
-
], ToolBarDropDownButtonComponent.prototype, "primary", void 0);
|
|
239
281
|
tslib_1.__decorate([
|
|
240
282
|
Output(),
|
|
241
283
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
@@ -291,8 +333,8 @@ ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = tslib_1.__de
|
|
|
291
333
|
[data]="data"
|
|
292
334
|
[textField]="textField"
|
|
293
335
|
[popupSettings]="popupSettings"
|
|
294
|
-
[
|
|
295
|
-
[
|
|
336
|
+
[fillMode]="fillMode"
|
|
337
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
296
338
|
(open)="open.emit($event)"
|
|
297
339
|
(close)="close.emit($event)"
|
|
298
340
|
(itemClick)="itemClick.emit($event)"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef, EventEmitter } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ButtonFillMode, ButtonThemeColor } from '@progress/kendo-angular-buttons';
|
|
7
7
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
8
8
|
import { PopupSettings } from '../popup-settings';
|
|
9
9
|
import { DisplayMode } from '../display-mode';
|
|
@@ -43,23 +43,47 @@ export declare class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
43
43
|
*/
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
46
|
+
* Configures the popup of the SplitButton.
|
|
47
|
+
*
|
|
48
|
+
* The available options are:
|
|
49
|
+
* - `animate:Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
50
|
+
* - `popupClass:String`—Specifies a list of CSS classes that are used to style the popup.
|
|
51
|
+
*/
|
|
52
|
+
popupSettings: PopupSettings;
|
|
53
|
+
/**
|
|
54
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
48
55
|
*
|
|
49
56
|
* The available values are:
|
|
50
|
-
* * `default
|
|
57
|
+
* * `solid` (default)
|
|
51
58
|
* * `flat`
|
|
52
59
|
* * `outline`
|
|
60
|
+
* * `link`
|
|
61
|
+
* * `null`
|
|
53
62
|
*/
|
|
54
|
-
|
|
63
|
+
fillMode: ButtonFillMode;
|
|
55
64
|
/**
|
|
56
|
-
*
|
|
65
|
+
* The Button allows you to specify predefined theme colors.
|
|
66
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly.
|
|
57
67
|
*
|
|
58
|
-
* The
|
|
59
|
-
*
|
|
60
|
-
*
|
|
68
|
+
* The possible values are:
|
|
69
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
70
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
71
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
72
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
73
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
74
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
75
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
76
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
77
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
78
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
79
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
80
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
81
|
+
*/
|
|
82
|
+
themeColor: ButtonThemeColor;
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
61
85
|
*/
|
|
62
|
-
|
|
86
|
+
look: 'default' | 'flat' | 'outline';
|
|
63
87
|
/**
|
|
64
88
|
* The CSS classes that will be rendered on the main button.
|
|
65
89
|
* Supports the type of values that are supported by [`ngClass`]({{ site.data.urls.angular['ngclassapi'] }}).
|
|
@@ -25,15 +25,35 @@ let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarS
|
|
|
25
25
|
*/
|
|
26
26
|
this.showIcon = 'both';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
|
|
28
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
30
29
|
*
|
|
31
30
|
* The available values are:
|
|
32
|
-
* * `default
|
|
31
|
+
* * `solid` (default)
|
|
33
32
|
* * `flat`
|
|
34
33
|
* * `outline`
|
|
34
|
+
* * `link`
|
|
35
|
+
* * `null`
|
|
35
36
|
*/
|
|
36
|
-
this.
|
|
37
|
+
this.fillMode = 'solid';
|
|
38
|
+
/**
|
|
39
|
+
* The Button allows you to specify predefined theme colors.
|
|
40
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly.
|
|
41
|
+
*
|
|
42
|
+
* The possible values are:
|
|
43
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
44
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
45
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
46
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
47
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
48
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
49
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
50
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
51
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
52
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
53
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
54
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
55
|
+
*/
|
|
56
|
+
this.themeColor = 'base';
|
|
37
57
|
/**
|
|
38
58
|
* Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons) that will
|
|
39
59
|
* be rendered for the button which opens the popup.
|
|
@@ -124,6 +144,14 @@ let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarS
|
|
|
124
144
|
}
|
|
125
145
|
return this._popupSettings;
|
|
126
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* @hidden
|
|
149
|
+
*/
|
|
150
|
+
set look(look) {
|
|
151
|
+
if (look) {
|
|
152
|
+
this.fillMode = look === 'default' ? 'solid' : look;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
127
155
|
/**
|
|
128
156
|
* Sets the data of the SplitButton ([see example]({% slug controltypes_toolbar %}#toc-splitbuttons)).
|
|
129
157
|
*
|
|
@@ -227,15 +255,24 @@ tslib_1.__decorate([
|
|
|
227
255
|
Input(),
|
|
228
256
|
tslib_1.__metadata("design:type", Boolean)
|
|
229
257
|
], ToolBarSplitButtonComponent.prototype, "disabled", void 0);
|
|
230
|
-
tslib_1.__decorate([
|
|
231
|
-
Input(),
|
|
232
|
-
tslib_1.__metadata("design:type", String)
|
|
233
|
-
], ToolBarSplitButtonComponent.prototype, "look", void 0);
|
|
234
258
|
tslib_1.__decorate([
|
|
235
259
|
Input(),
|
|
236
260
|
tslib_1.__metadata("design:type", Object),
|
|
237
261
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
238
262
|
], ToolBarSplitButtonComponent.prototype, "popupSettings", null);
|
|
263
|
+
tslib_1.__decorate([
|
|
264
|
+
Input(),
|
|
265
|
+
tslib_1.__metadata("design:type", String)
|
|
266
|
+
], ToolBarSplitButtonComponent.prototype, "fillMode", void 0);
|
|
267
|
+
tslib_1.__decorate([
|
|
268
|
+
Input(),
|
|
269
|
+
tslib_1.__metadata("design:type", String)
|
|
270
|
+
], ToolBarSplitButtonComponent.prototype, "themeColor", void 0);
|
|
271
|
+
tslib_1.__decorate([
|
|
272
|
+
Input(),
|
|
273
|
+
tslib_1.__metadata("design:type", String),
|
|
274
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
275
|
+
], ToolBarSplitButtonComponent.prototype, "look", null);
|
|
239
276
|
tslib_1.__decorate([
|
|
240
277
|
Input(),
|
|
241
278
|
tslib_1.__metadata("design:type", String)
|
|
@@ -315,7 +352,8 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = tslib_1.__decorate
|
|
|
315
352
|
[tabIndex]="-1"
|
|
316
353
|
[textField]="textField"
|
|
317
354
|
[popupSettings]="popupSettings"
|
|
318
|
-
[
|
|
355
|
+
[fillMode]="fillMode"
|
|
356
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
319
357
|
(buttonClick)="buttonClick.emit($event)"
|
|
320
358
|
(open)="open.emit($event)"
|
|
321
359
|
(close)="close.emit($event)"
|
|
@@ -328,13 +366,14 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = tslib_1.__decorate
|
|
|
328
366
|
#overflowSplitButton
|
|
329
367
|
type="button"
|
|
330
368
|
tabindex="-1"
|
|
369
|
+
[fillMode]="fillMode"
|
|
370
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
331
371
|
kendoButton
|
|
332
372
|
class="k-overflow-button"
|
|
333
373
|
[disabled]="disabled"
|
|
334
374
|
[icon]="overflowOptions.icon"
|
|
335
375
|
[iconClass]="overflowOptions.iconClass"
|
|
336
376
|
[imageUrl]="overflowOptions.imageUrl"
|
|
337
|
-
[look]="look"
|
|
338
377
|
[ngClass]="buttonClass"
|
|
339
378
|
(click)="buttonClick.emit($event)"
|
|
340
379
|
(click)="onMainButtonClick($event)"
|
|
@@ -343,9 +382,10 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = tslib_1.__decorate
|
|
|
343
382
|
</button>
|
|
344
383
|
<kendo-toolbar-buttonlist
|
|
345
384
|
#overflowSplitButtonButtonList
|
|
346
|
-
[look]="look"
|
|
347
385
|
[data]="data"
|
|
348
386
|
[disabled]="disabled"
|
|
387
|
+
[fillMode]="fillMode"
|
|
388
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
349
389
|
[textField]="textField"
|
|
350
390
|
(itemClick)="itemClick.emit($event)"
|
|
351
391
|
(click)="onButtonListClick($event)"
|