@progress/kendo-angular-buttons 8.0.0-next.202204010825 → 8.0.0-next.202204060705
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/bundles/kendo-angular-buttons.umd.js +1 -1
- package/button/button.directive.d.ts +3 -3
- package/chip/chip-list.component.d.ts +1 -1
- package/chip/chip.component.d.ts +4 -4
- package/common/models/fillmode.d.ts +2 -2
- package/common/models/rounded.d.ts +2 -2
- package/common/models/size.d.ts +2 -2
- package/common/models/theme-color.d.ts +2 -2
- package/dropdownbutton/dropdownbutton.component.d.ts +5 -5
- package/esm2015/button/button.directive.js +16 -12
- package/esm2015/chip/chip-list.component.js +4 -3
- package/esm2015/chip/chip.component.js +17 -13
- package/esm2015/dropdownbutton/dropdownbutton.component.js +5 -5
- package/esm2015/floatingactionbutton/dial-item.component.js +1 -0
- package/esm2015/floatingactionbutton/dial-list.component.js +1 -0
- package/esm2015/floatingactionbutton/floatingactionbutton.component.js +29 -11
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/splitbutton/localization/messages.js +1 -0
- package/esm2015/splitbutton/splitbutton.component.js +17 -5
- package/esm2015/util.js +4 -4
- package/fesm2015/kendo-angular-buttons.js +96 -54
- package/floatingactionbutton/floatingactionbutton.component.d.ts +1 -1
- package/package.json +5 -5
- package/splitbutton/splitbutton.component.d.ts +2 -2
|
@@ -66,7 +66,7 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
|
|
|
66
66
|
* * `'small'`
|
|
67
67
|
* * `'medium'` (default)
|
|
68
68
|
* * `'large'`
|
|
69
|
-
* * `
|
|
69
|
+
* * `none`
|
|
70
70
|
*/
|
|
71
71
|
set size(size: ButtonSize);
|
|
72
72
|
get size(): ButtonSize;
|
|
@@ -79,7 +79,7 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
|
|
|
79
79
|
* * `'medium'` (default)
|
|
80
80
|
* * `'large'`
|
|
81
81
|
* * `'full'`
|
|
82
|
-
* * `
|
|
82
|
+
* * `none`
|
|
83
83
|
*/
|
|
84
84
|
set rounded(rounded: ButtonRounded);
|
|
85
85
|
get rounded(): ButtonRounded;
|
|
@@ -93,7 +93,7 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
|
|
|
93
93
|
* * `'outline'`
|
|
94
94
|
* * `'clear'`
|
|
95
95
|
* * `'link'`
|
|
96
|
-
* * `
|
|
96
|
+
* * `none`
|
|
97
97
|
*/
|
|
98
98
|
set fillMode(fillMode: ButtonFillMode);
|
|
99
99
|
get fillMode(): ButtonFillMode;
|
package/chip/chip.component.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
|
|
|
64
64
|
* * `'small'`
|
|
65
65
|
* * `'medium'` (default)
|
|
66
66
|
* * `'large'`
|
|
67
|
-
* * `
|
|
67
|
+
* * `none`
|
|
68
68
|
*/
|
|
69
69
|
set size(size: ChipSize);
|
|
70
70
|
get size(): ChipSize;
|
|
@@ -77,7 +77,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
|
|
|
77
77
|
* * `'medium'` (default)
|
|
78
78
|
* * `'large'`
|
|
79
79
|
* * `'full'`
|
|
80
|
-
* * `
|
|
80
|
+
* * `none`
|
|
81
81
|
*/
|
|
82
82
|
set rounded(rounded: ChipRounded);
|
|
83
83
|
get rounded(): ChipRounded;
|
|
@@ -88,7 +88,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
|
|
|
88
88
|
* The possible values are:
|
|
89
89
|
* * `'solid'` (default)
|
|
90
90
|
* * `'outline'`
|
|
91
|
-
* * `
|
|
91
|
+
* * `none`
|
|
92
92
|
*/
|
|
93
93
|
set fillMode(fillMode: ChipFillMode);
|
|
94
94
|
get fillMode(): ChipFillMode;
|
|
@@ -103,7 +103,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
|
|
|
103
103
|
* * `'success'`
|
|
104
104
|
* * `'warning'`
|
|
105
105
|
* * `'error'`
|
|
106
|
-
* * `
|
|
106
|
+
* * `none`
|
|
107
107
|
*/
|
|
108
108
|
set themeColor(themeColor: ChipThemeColor);
|
|
109
109
|
get themeColor(): ChipThemeColor;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible fillMode options of the buttons.
|
|
7
7
|
*/
|
|
8
|
-
export declare type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link' | 'clear';
|
|
8
|
+
export declare type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link' | 'clear' | 'none';
|
|
9
9
|
/**
|
|
10
10
|
* Represents the possible fillMode options of the Chip.
|
|
11
11
|
*/
|
|
12
|
-
export declare type ChipFillMode = 'solid' | 'outline';
|
|
12
|
+
export declare type ChipFillMode = 'solid' | 'outline' | 'none';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible rounded options of the buttons.
|
|
7
7
|
*/
|
|
8
|
-
export declare type ButtonRounded = 'small' | 'medium' | 'large' | 'full';
|
|
8
|
+
export declare type ButtonRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
|
|
9
9
|
/**
|
|
10
10
|
* Represents the possible rounded options of the Chip.
|
|
11
11
|
*/
|
|
12
|
-
export declare type ChipRounded = 'small' | 'medium' | 'large' | 'full';
|
|
12
|
+
export declare type ChipRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
|
package/common/models/size.d.ts
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* Specifies the possible sizes of the buttons.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export declare type ButtonSize = 'small' | 'medium' | 'large';
|
|
9
|
+
export declare type ButtonSize = 'small' | 'medium' | 'large' | 'none';
|
|
10
10
|
/**
|
|
11
11
|
* Specifies the possible sizes of the Chip.
|
|
12
12
|
*/
|
|
13
|
-
export declare type ChipSize = 'small' | 'medium' | 'large';
|
|
13
|
+
export declare type ChipSize = 'small' | 'medium' | 'large' | 'none';
|
|
14
14
|
/**
|
|
15
15
|
* Specifies the possible gap between Chips in a ChipList.
|
|
16
16
|
*/
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
22
|
+
export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'none';
|
|
23
23
|
/**
|
|
24
24
|
* Specifies the possible theme colors of the Chip.
|
|
25
25
|
*
|
|
@@ -30,4 +30,4 @@ export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'terti
|
|
|
30
30
|
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
31
31
|
* * `error`— Applies coloring based on the `error` theme color.
|
|
32
32
|
*/
|
|
33
|
-
export declare type ChipThemeColor = 'base' | 'info' | 'success' | 'warning' | 'error';
|
|
33
|
+
export declare type ChipThemeColor = 'base' | 'info' | 'success' | 'warning' | 'error' | 'none';
|
|
@@ -94,7 +94,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
|
|
|
94
94
|
* * `'small'`
|
|
95
95
|
* * `'medium'` (default)
|
|
96
96
|
* * `'large'`
|
|
97
|
-
* * `
|
|
97
|
+
* * `none`
|
|
98
98
|
*/
|
|
99
99
|
size: ButtonSize;
|
|
100
100
|
/**
|
|
@@ -106,7 +106,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
|
|
|
106
106
|
* The possible values are:
|
|
107
107
|
* * `'rectangle'` (default)
|
|
108
108
|
* * `'square'`
|
|
109
|
-
* * `
|
|
109
|
+
* * `none`
|
|
110
110
|
*/
|
|
111
111
|
shape: ButtonShape;
|
|
112
112
|
/**
|
|
@@ -118,7 +118,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
|
|
|
118
118
|
* * `'medium'` (default)
|
|
119
119
|
* * `'large'`
|
|
120
120
|
* * `'full'`
|
|
121
|
-
* * `
|
|
121
|
+
* * `none`
|
|
122
122
|
*/
|
|
123
123
|
rounded: ButtonRounded;
|
|
124
124
|
/**
|
|
@@ -130,7 +130,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
|
|
|
130
130
|
* * `flat`
|
|
131
131
|
* * `outline`
|
|
132
132
|
* * `link`
|
|
133
|
-
* * `
|
|
133
|
+
* * `none`
|
|
134
134
|
*/
|
|
135
135
|
set fillMode(fillMode: ButtonFillMode);
|
|
136
136
|
get fillMode(): ButtonFillMode;
|
|
@@ -151,7 +151,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
|
|
|
151
151
|
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
152
152
|
* * `light`— Applies coloring based on the `light` theme color.
|
|
153
153
|
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
154
|
-
* * `
|
|
154
|
+
* * `none` —Removes the default CSS class (no class would be rendered).
|
|
155
155
|
*/
|
|
156
156
|
themeColor: ButtonThemeColor;
|
|
157
157
|
/**
|
|
@@ -154,11 +154,12 @@ export class ButtonDirective {
|
|
|
154
154
|
* * `'small'`
|
|
155
155
|
* * `'medium'` (default)
|
|
156
156
|
* * `'large'`
|
|
157
|
-
* * `
|
|
157
|
+
* * `none`
|
|
158
158
|
*/
|
|
159
159
|
set size(size) {
|
|
160
|
-
|
|
161
|
-
this.
|
|
160
|
+
const sizeValue = size ? size : 'medium';
|
|
161
|
+
this.handleClasses(sizeValue, 'size');
|
|
162
|
+
this._size = sizeValue;
|
|
162
163
|
}
|
|
163
164
|
get size() {
|
|
164
165
|
return this._size;
|
|
@@ -172,11 +173,12 @@ export class ButtonDirective {
|
|
|
172
173
|
* * `'medium'` (default)
|
|
173
174
|
* * `'large'`
|
|
174
175
|
* * `'full'`
|
|
175
|
-
* * `
|
|
176
|
+
* * `none`
|
|
176
177
|
*/
|
|
177
178
|
set rounded(rounded) {
|
|
178
|
-
|
|
179
|
-
this.
|
|
179
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
180
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
181
|
+
this._rounded = roundedValue;
|
|
180
182
|
}
|
|
181
183
|
get rounded() {
|
|
182
184
|
return this._rounded;
|
|
@@ -191,11 +193,12 @@ export class ButtonDirective {
|
|
|
191
193
|
* * `'outline'`
|
|
192
194
|
* * `'clear'`
|
|
193
195
|
* * `'link'`
|
|
194
|
-
* * `
|
|
196
|
+
* * `none`
|
|
195
197
|
*/
|
|
196
198
|
set fillMode(fillMode) {
|
|
197
|
-
|
|
198
|
-
this.
|
|
199
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
200
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
201
|
+
this._fillMode = fillModeValue;
|
|
199
202
|
}
|
|
200
203
|
get fillMode() {
|
|
201
204
|
return this._fillMode;
|
|
@@ -219,8 +222,9 @@ export class ButtonDirective {
|
|
|
219
222
|
* * `'inverse'`
|
|
220
223
|
*/
|
|
221
224
|
set themeColor(themeColor) {
|
|
222
|
-
|
|
223
|
-
this.
|
|
225
|
+
const themeColorValue = themeColor ? themeColor : 'base';
|
|
226
|
+
this.handleThemeColor(themeColorValue);
|
|
227
|
+
this._themeColor = themeColorValue;
|
|
224
228
|
}
|
|
225
229
|
get themeColor() {
|
|
226
230
|
return this._themeColor;
|
|
@@ -521,7 +525,7 @@ export class ButtonDirective {
|
|
|
521
525
|
const addFillMode = fillMode ? fillMode : this.fillMode;
|
|
522
526
|
const themeColorClass = getThemeColorClasses('button', removeFillMode, addFillMode, this.themeColor, value);
|
|
523
527
|
this.renderer.removeClass(elem, themeColorClass.toRemove);
|
|
524
|
-
if (addFillMode !==
|
|
528
|
+
if (addFillMode !== 'none' && fillMode !== 'none') {
|
|
525
529
|
if (themeColorClass.toAdd) {
|
|
526
530
|
this.renderer.addClass(elem, themeColorClass.toAdd);
|
|
527
531
|
}
|
|
@@ -46,11 +46,12 @@ export class ChipListComponent {
|
|
|
46
46
|
* * `'small'`
|
|
47
47
|
* * `'medium'` (default)
|
|
48
48
|
* * `'large'`
|
|
49
|
-
* * `
|
|
49
|
+
* * `none`
|
|
50
50
|
*/
|
|
51
51
|
set size(size) {
|
|
52
|
-
|
|
53
|
-
this.
|
|
52
|
+
const sizeValue = size ? size : 'medium';
|
|
53
|
+
this.handleClasses(sizeValue, 'size');
|
|
54
|
+
this._size = sizeValue;
|
|
54
55
|
}
|
|
55
56
|
get size() {
|
|
56
57
|
return this._size;
|
|
@@ -62,11 +62,12 @@ export class ChipComponent {
|
|
|
62
62
|
* * `'small'`
|
|
63
63
|
* * `'medium'` (default)
|
|
64
64
|
* * `'large'`
|
|
65
|
-
* * `
|
|
65
|
+
* * `none`
|
|
66
66
|
*/
|
|
67
67
|
set size(size) {
|
|
68
|
-
|
|
69
|
-
this.
|
|
68
|
+
const sizeValue = size ? size : 'medium';
|
|
69
|
+
this.handleClasses(sizeValue, 'size');
|
|
70
|
+
this._size = sizeValue;
|
|
70
71
|
}
|
|
71
72
|
get size() {
|
|
72
73
|
return this._size;
|
|
@@ -80,11 +81,12 @@ export class ChipComponent {
|
|
|
80
81
|
* * `'medium'` (default)
|
|
81
82
|
* * `'large'`
|
|
82
83
|
* * `'full'`
|
|
83
|
-
* * `
|
|
84
|
+
* * `none`
|
|
84
85
|
*/
|
|
85
86
|
set rounded(rounded) {
|
|
86
|
-
|
|
87
|
-
this.
|
|
87
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
88
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
89
|
+
this._rounded = roundedValue;
|
|
88
90
|
}
|
|
89
91
|
get rounded() {
|
|
90
92
|
return this._rounded;
|
|
@@ -96,11 +98,12 @@ export class ChipComponent {
|
|
|
96
98
|
* The possible values are:
|
|
97
99
|
* * `'solid'` (default)
|
|
98
100
|
* * `'outline'`
|
|
99
|
-
* * `
|
|
101
|
+
* * `none`
|
|
100
102
|
*/
|
|
101
103
|
set fillMode(fillMode) {
|
|
102
|
-
|
|
103
|
-
this.
|
|
104
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
105
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
106
|
+
this._fillMode = fillModeValue;
|
|
104
107
|
}
|
|
105
108
|
get fillMode() {
|
|
106
109
|
return this._fillMode;
|
|
@@ -116,11 +119,12 @@ export class ChipComponent {
|
|
|
116
119
|
* * `'success'`
|
|
117
120
|
* * `'warning'`
|
|
118
121
|
* * `'error'`
|
|
119
|
-
* * `
|
|
122
|
+
* * `none`
|
|
120
123
|
*/
|
|
121
124
|
set themeColor(themeColor) {
|
|
122
|
-
|
|
123
|
-
this.
|
|
125
|
+
const themeColorValue = themeColor ? themeColor : 'base';
|
|
126
|
+
this.handleThemeColor(themeColorValue);
|
|
127
|
+
this._themeColor = themeColorValue;
|
|
124
128
|
}
|
|
125
129
|
get themeColor() {
|
|
126
130
|
return this._themeColor;
|
|
@@ -267,7 +271,7 @@ export class ChipComponent {
|
|
|
267
271
|
const addFillMode = fillMode ? fillMode : this.fillMode;
|
|
268
272
|
const themeColorClass = getThemeColorClasses('chip', removeFillMode, addFillMode, this.themeColor, value);
|
|
269
273
|
this.renderer.removeClass(elem, themeColorClass.toRemove);
|
|
270
|
-
if (addFillMode !==
|
|
274
|
+
if (addFillMode !== 'none' && fillMode !== 'none') {
|
|
271
275
|
if (themeColorClass.toAdd) {
|
|
272
276
|
this.renderer.addClass(elem, themeColorClass.toAdd);
|
|
273
277
|
}
|
|
@@ -81,7 +81,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
81
81
|
* * `'small'`
|
|
82
82
|
* * `'medium'` (default)
|
|
83
83
|
* * `'large'`
|
|
84
|
-
* * `
|
|
84
|
+
* * `none`
|
|
85
85
|
*/
|
|
86
86
|
this.size = 'medium';
|
|
87
87
|
/**
|
|
@@ -93,7 +93,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
93
93
|
* The possible values are:
|
|
94
94
|
* * `'rectangle'` (default)
|
|
95
95
|
* * `'square'`
|
|
96
|
-
* * `
|
|
96
|
+
* * `none`
|
|
97
97
|
*/
|
|
98
98
|
this.shape = 'rectangle';
|
|
99
99
|
/**
|
|
@@ -105,7 +105,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
105
105
|
* * `'medium'` (default)
|
|
106
106
|
* * `'large'`
|
|
107
107
|
* * `'full'`
|
|
108
|
-
* * `
|
|
108
|
+
* * `none`
|
|
109
109
|
*/
|
|
110
110
|
this.rounded = 'medium';
|
|
111
111
|
/**
|
|
@@ -125,7 +125,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
125
125
|
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
126
126
|
* * `light`— Applies coloring based on the `light` theme color.
|
|
127
127
|
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
128
|
-
* * `
|
|
128
|
+
* * `none` —Removes the default CSS class (no class would be rendered).
|
|
129
129
|
*/
|
|
130
130
|
this.themeColor = 'base';
|
|
131
131
|
/**
|
|
@@ -206,7 +206,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
206
206
|
* * `flat`
|
|
207
207
|
* * `outline`
|
|
208
208
|
* * `link`
|
|
209
|
-
* * `
|
|
209
|
+
* * `none`
|
|
210
210
|
*/
|
|
211
211
|
set fillMode(fillMode) {
|
|
212
212
|
this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
|
|
@@ -74,6 +74,7 @@ DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
74
74
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, decorators: [{
|
|
75
75
|
type: Component,
|
|
76
76
|
args: [{
|
|
77
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
77
78
|
selector: '[kendoDialItem]',
|
|
78
79
|
template: `
|
|
79
80
|
<ng-template *ngIf="dialItemTemplate"
|
|
@@ -53,6 +53,7 @@ DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
53
53
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, decorators: [{
|
|
54
54
|
type: Component,
|
|
55
55
|
args: [{
|
|
56
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
56
57
|
selector: '[kendoDialList]',
|
|
57
58
|
template: `
|
|
58
59
|
<ng-container *ngFor='let item of dialItems; let idx = index'>
|
|
@@ -166,8 +166,9 @@ export class FloatingActionButtonComponent {
|
|
|
166
166
|
* * `'inverse'`— Applies coloring based on the `inverse` theme color.
|
|
167
167
|
*/
|
|
168
168
|
set themeColor(themeColor) {
|
|
169
|
-
|
|
170
|
-
this.
|
|
169
|
+
const themeColorValue = themeColor ? themeColor : 'primary';
|
|
170
|
+
this.handleClasses(themeColorValue, 'themeColor');
|
|
171
|
+
this._themeColor = themeColorValue;
|
|
171
172
|
}
|
|
172
173
|
get themeColor() {
|
|
173
174
|
return this._themeColor;
|
|
@@ -182,8 +183,9 @@ export class FloatingActionButtonComponent {
|
|
|
182
183
|
* * `'large'`
|
|
183
184
|
*/
|
|
184
185
|
set size(size) {
|
|
185
|
-
|
|
186
|
-
this.
|
|
186
|
+
const sizeValue = size ? size : 'medium';
|
|
187
|
+
this.handleClasses(sizeValue, 'size');
|
|
188
|
+
this._size = sizeValue;
|
|
187
189
|
}
|
|
188
190
|
get size() {
|
|
189
191
|
return this._size;
|
|
@@ -196,11 +198,12 @@ export class FloatingActionButtonComponent {
|
|
|
196
198
|
* * `'medium'`
|
|
197
199
|
* * `'large'`
|
|
198
200
|
* * `'full'` (default)
|
|
199
|
-
* * `
|
|
201
|
+
* * `none`
|
|
200
202
|
*/
|
|
201
203
|
set rounded(rounded) {
|
|
202
|
-
|
|
203
|
-
this.
|
|
204
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
205
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
206
|
+
this._rounded = roundedValue;
|
|
204
207
|
}
|
|
205
208
|
get rounded() {
|
|
206
209
|
return this._rounded;
|
|
@@ -313,7 +316,12 @@ export class FloatingActionButtonComponent {
|
|
|
313
316
|
if (this.disabled || shouldOpen === this.isOpen) {
|
|
314
317
|
return;
|
|
315
318
|
}
|
|
316
|
-
|
|
319
|
+
if (shouldOpen) {
|
|
320
|
+
setTimeout(() => this.openDial());
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
this.closeDial();
|
|
324
|
+
}
|
|
317
325
|
}
|
|
318
326
|
/**
|
|
319
327
|
* @hidden
|
|
@@ -422,7 +430,7 @@ export class FloatingActionButtonComponent {
|
|
|
422
430
|
rounded: ROUNDED_CLASSES[this.rounded]
|
|
423
431
|
};
|
|
424
432
|
const classesToAdd = {
|
|
425
|
-
themeColor: inputValue ? `${FILLMODE_CLASS}-${inputValue}` :
|
|
433
|
+
themeColor: inputValue !== 'none' ? `${FILLMODE_CLASS}-${inputValue}` : '',
|
|
426
434
|
size: SIZE_CLASSES[inputValue],
|
|
427
435
|
rounded: ROUNDED_CLASSES[inputValue]
|
|
428
436
|
};
|
|
@@ -489,11 +497,21 @@ export class FloatingActionButtonComponent {
|
|
|
489
497
|
return;
|
|
490
498
|
}
|
|
491
499
|
const event = new PreventableEvent();
|
|
492
|
-
|
|
500
|
+
if (open) {
|
|
501
|
+
this.open.emit(event);
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
this.close.emit(event);
|
|
505
|
+
}
|
|
493
506
|
if (event.isDefaultPrevented()) {
|
|
494
507
|
return;
|
|
495
508
|
}
|
|
496
|
-
|
|
509
|
+
if (open) {
|
|
510
|
+
this.openDial();
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
this.closeDial();
|
|
514
|
+
}
|
|
497
515
|
}
|
|
498
516
|
openPopup() {
|
|
499
517
|
if (this.isOpen) {
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-buttons',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1649228657,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -15,6 +15,7 @@ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
18
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
18
19
|
selector: 'kendo-splitbutton-messages-base'
|
|
19
20
|
}]
|
|
20
21
|
}], propDecorators: { splitButtonLabel: [{
|
|
@@ -109,7 +109,7 @@ export class SplitButtonComponent extends ListButton {
|
|
|
109
109
|
* * `'small'`
|
|
110
110
|
* * `'medium'` (default)
|
|
111
111
|
* * `'large'`
|
|
112
|
-
* * `
|
|
112
|
+
* * `none`
|
|
113
113
|
*/
|
|
114
114
|
this.size = 'medium';
|
|
115
115
|
/**
|
|
@@ -229,11 +229,12 @@ export class SplitButtonComponent extends ListButton {
|
|
|
229
229
|
* * `'medium'` (default)
|
|
230
230
|
* * `'large'`
|
|
231
231
|
* * `'full'`
|
|
232
|
-
* * `
|
|
232
|
+
* * `none`
|
|
233
233
|
*/
|
|
234
234
|
set rounded(rounded) {
|
|
235
|
-
|
|
236
|
-
this.
|
|
235
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
236
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
237
|
+
this._rounded = roundedValue;
|
|
237
238
|
}
|
|
238
239
|
get rounded() {
|
|
239
240
|
return this._rounded;
|
|
@@ -249,7 +250,8 @@ export class SplitButtonComponent extends ListButton {
|
|
|
249
250
|
* * `link`
|
|
250
251
|
*/
|
|
251
252
|
set fillMode(fillMode) {
|
|
252
|
-
|
|
253
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
254
|
+
this._fillMode = fillMode === 'clear' ? 'flat' : fillModeValue;
|
|
253
255
|
}
|
|
254
256
|
get fillMode() {
|
|
255
257
|
return this._fillMode;
|
|
@@ -431,6 +433,16 @@ export class SplitButtonComponent extends ListButton {
|
|
|
431
433
|
* @hidden
|
|
432
434
|
*/
|
|
433
435
|
ngOnChanges(changes) {
|
|
436
|
+
if (changes.size) {
|
|
437
|
+
if (!changes.size.currentValue) {
|
|
438
|
+
this.size = 'medium';
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (changes.themeColor) {
|
|
442
|
+
if (!changes.themeColor.currentValue) {
|
|
443
|
+
this.themeColor = 'base';
|
|
444
|
+
}
|
|
445
|
+
}
|
|
434
446
|
if (changes.hasOwnProperty('text')) {
|
|
435
447
|
this.updateButtonText();
|
|
436
448
|
}
|
package/esm2015/util.js
CHANGED
|
@@ -67,17 +67,17 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
67
67
|
case 'size':
|
|
68
68
|
return {
|
|
69
69
|
toRemove: `k-${componentType}-${SIZES[previousValue]}`,
|
|
70
|
-
toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` :
|
|
70
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
|
|
71
71
|
};
|
|
72
72
|
case 'rounded':
|
|
73
73
|
return {
|
|
74
74
|
toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
|
|
75
|
-
toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` :
|
|
75
|
+
toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
|
|
76
76
|
};
|
|
77
77
|
case 'fillMode':
|
|
78
78
|
return {
|
|
79
79
|
toRemove: `k-${componentType}-${previousValue}`,
|
|
80
|
-
toAdd: newValue ? `k-${componentType}-${newValue}` :
|
|
80
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
|
|
81
81
|
};
|
|
82
82
|
default:
|
|
83
83
|
break;
|
|
@@ -91,7 +91,7 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
91
91
|
export const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousValue, newValue) => {
|
|
92
92
|
return {
|
|
93
93
|
toRemove: `k-${componentType}-${prevFillMode}-${previousValue}`,
|
|
94
|
-
toAdd: newValue ? `k-${componentType}-${fillMode}-${newValue}` :
|
|
94
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${fillMode}-${newValue}` : ''
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
/**
|