@progress/kendo-angular-inputs 9.0.0-next.202204011519 → 9.0.0
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-inputs.umd.js +1 -1
- package/checkbox/checkbox.directive.d.ts +8 -8
- package/colorpicker/colorpicker.component.d.ts +13 -13
- package/common/models/fillmode.d.ts +2 -6
- package/common/models/rounded.d.ts +4 -13
- package/common/models/size.d.ts +2 -1
- package/esm2015/checkbox/checkbox.directive.js +16 -12
- package/esm2015/colorpicker/colorpicker.component.js +25 -19
- package/esm2015/common/utils.js +3 -3
- package/esm2015/maskedtextbox/maskedtextbox.component.js +21 -15
- package/esm2015/numerictextbox/numerictextbox.component.js +24 -18
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/radiobutton/radiobutton.directive.js +8 -6
- package/esm2015/slider/slider.component.js +2 -2
- package/esm2015/switch/switch.component.js +26 -20
- package/esm2015/textarea/textarea.component.js +24 -18
- package/esm2015/textbox/textbox.component.js +25 -19
- package/fesm2015/kendo-angular-inputs.js +175 -133
- package/formfield/models/orientation.d.ts +1 -5
- package/maskedtextbox/maskedtextbox.component.d.ts +9 -9
- package/numerictextbox/numerictextbox.component.d.ts +12 -12
- package/package.json +11 -13
- package/radiobutton/radiobutton.directive.d.ts +4 -4
- package/switch/switch.component.d.ts +14 -14
- package/textarea/textarea.component.d.ts +12 -12
- package/textbox/textbox.component.d.ts +13 -13
|
@@ -23,10 +23,10 @@ export declare class CheckBoxDirective {
|
|
|
23
23
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-size)).
|
|
24
24
|
*
|
|
25
25
|
* The possible values are:
|
|
26
|
-
* * `
|
|
27
|
-
* * `
|
|
28
|
-
* * `
|
|
29
|
-
* * `
|
|
26
|
+
* * `small`
|
|
27
|
+
* * `medium` (default)
|
|
28
|
+
* * `large`
|
|
29
|
+
* * `none`
|
|
30
30
|
*/
|
|
31
31
|
set size(size: InputSize);
|
|
32
32
|
get size(): InputSize;
|
|
@@ -35,10 +35,10 @@ export declare class CheckBoxDirective {
|
|
|
35
35
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-rounded)).
|
|
36
36
|
*
|
|
37
37
|
* The possible values are:
|
|
38
|
-
* * `
|
|
39
|
-
* * `
|
|
40
|
-
* * `
|
|
41
|
-
* * `
|
|
38
|
+
* * `small`
|
|
39
|
+
* * `medium` (default)
|
|
40
|
+
* * `large`
|
|
41
|
+
* * `none`
|
|
42
42
|
*/
|
|
43
43
|
set rounded(rounded: CheckBoxRounded);
|
|
44
44
|
get rounded(): CheckBoxRounded;
|
|
@@ -151,10 +151,10 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
151
151
|
* ([see example]({% slug appearance_colorpicker %}#toc-size)).
|
|
152
152
|
*
|
|
153
153
|
* The possible values are:
|
|
154
|
-
* * `
|
|
155
|
-
* * `
|
|
156
|
-
* * `
|
|
157
|
-
* * `
|
|
154
|
+
* * `small`
|
|
155
|
+
* * `medium` (default)
|
|
156
|
+
* * `large`
|
|
157
|
+
* * `none`
|
|
158
158
|
*/
|
|
159
159
|
set size(size: InputSize);
|
|
160
160
|
get size(): InputSize;
|
|
@@ -163,11 +163,11 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
163
163
|
* ([see example]({% slug appearance_colorpicker %}#toc-rounded)).
|
|
164
164
|
*
|
|
165
165
|
* The possible values are:
|
|
166
|
-
* * `
|
|
167
|
-
* * `
|
|
168
|
-
* * `
|
|
169
|
-
* * `
|
|
170
|
-
* * `
|
|
166
|
+
* * `small`
|
|
167
|
+
* * `medium` (default)
|
|
168
|
+
* * `large`
|
|
169
|
+
* * `full`
|
|
170
|
+
* * `none`
|
|
171
171
|
*/
|
|
172
172
|
set rounded(rounded: InputRounded);
|
|
173
173
|
get rounded(): InputRounded;
|
|
@@ -176,10 +176,10 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
176
176
|
* ([see example]({% slug appearance_colorpicker %}#toc-fillMode)).
|
|
177
177
|
*
|
|
178
178
|
* The possible values are:
|
|
179
|
-
* * `
|
|
180
|
-
* * `
|
|
181
|
-
* * `
|
|
182
|
-
* * `
|
|
179
|
+
* * `flat`
|
|
180
|
+
* * `solid` (default)
|
|
181
|
+
* * `outline`
|
|
182
|
+
* * `none`
|
|
183
183
|
*/
|
|
184
184
|
set fillMode(fillMode: InputFillMode);
|
|
185
185
|
get fillMode(): InputFillMode;
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible fillMode options of the inputs.
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* - `solid`
|
|
10
|
-
* - `flat`
|
|
11
|
-
* - `outline`
|
|
7
|
+
* @default `solid`
|
|
12
8
|
*/
|
|
13
|
-
export declare type InputFillMode = 'solid' | 'flat' | 'outline';
|
|
9
|
+
export declare type InputFillMode = 'solid' | 'flat' | 'outline' | 'none';
|
|
@@ -4,20 +4,11 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible rounded options of the inputs.
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* - `'small'`
|
|
10
|
-
* - `'medium'`
|
|
11
|
-
* - `'large'`
|
|
12
|
-
* - `'full'`
|
|
7
|
+
* @default `medium`
|
|
13
8
|
*/
|
|
14
|
-
export declare type InputRounded = 'small' | 'medium' | 'large' | 'full';
|
|
9
|
+
export declare type InputRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
|
|
15
10
|
/**
|
|
16
11
|
* Represents the possible rounded options of the CheckBox.
|
|
17
|
-
*
|
|
18
|
-
* The possible values are:
|
|
19
|
-
* - `'small'`
|
|
20
|
-
* - `'medium'`
|
|
21
|
-
* - `'large'`
|
|
12
|
+
* @default `medium`
|
|
22
13
|
*/
|
|
23
|
-
export declare type CheckBoxRounded = 'small' | 'medium' | 'large';
|
|
14
|
+
export declare type CheckBoxRounded = 'small' | 'medium' | 'large' | 'none';
|
package/common/models/size.d.ts
CHANGED
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible size options of the inputs.
|
|
7
|
+
* @default `medium`
|
|
7
8
|
*/
|
|
8
|
-
export declare type InputSize = 'small' | 'medium' | 'large' |
|
|
9
|
+
export declare type InputSize = 'small' | 'medium' | 'large' | 'none';
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import { Directive, HostBinding, Input } from '@angular/core';
|
|
6
6
|
import { getStylingClasses } from '../common/utils';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
const DEFAULT_SIZE = 'medium';
|
|
9
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
8
10
|
/**
|
|
9
11
|
* Represents the directive that renders the [Kendo UI CheckBox]({% slug overview_checkbox %}) input component.
|
|
10
12
|
* The directive is placed on input type="checkbox" elements.
|
|
@@ -27,14 +29,15 @@ export class CheckBoxDirective {
|
|
|
27
29
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-size)).
|
|
28
30
|
*
|
|
29
31
|
* The possible values are:
|
|
30
|
-
* * `
|
|
31
|
-
* * `
|
|
32
|
-
* * `
|
|
33
|
-
* * `
|
|
32
|
+
* * `small`
|
|
33
|
+
* * `medium` (default)
|
|
34
|
+
* * `large`
|
|
35
|
+
* * `none`
|
|
34
36
|
*/
|
|
35
37
|
set size(size) {
|
|
36
|
-
|
|
37
|
-
this.
|
|
38
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
39
|
+
this.handleClasses(newSize, 'size');
|
|
40
|
+
this._size = newSize;
|
|
38
41
|
}
|
|
39
42
|
get size() {
|
|
40
43
|
return this._size;
|
|
@@ -44,14 +47,15 @@ export class CheckBoxDirective {
|
|
|
44
47
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-rounded)).
|
|
45
48
|
*
|
|
46
49
|
* The possible values are:
|
|
47
|
-
* * `
|
|
48
|
-
* * `
|
|
49
|
-
* * `
|
|
50
|
-
* * `
|
|
50
|
+
* * `small`
|
|
51
|
+
* * `medium` (default)
|
|
52
|
+
* * `large`
|
|
53
|
+
* * `none`
|
|
51
54
|
*/
|
|
52
55
|
set rounded(rounded) {
|
|
53
|
-
|
|
54
|
-
this.
|
|
56
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
57
|
+
this.handleClasses(newRounded, 'rounded');
|
|
58
|
+
this._rounded = newRounded;
|
|
55
59
|
}
|
|
56
60
|
get rounded() {
|
|
57
61
|
return this._rounded;
|
|
@@ -23,6 +23,9 @@ import * as i3 from "./flatcolorpicker.component";
|
|
|
23
23
|
import * as i4 from "./localization/localized-colorpicker-messages.directive";
|
|
24
24
|
import * as i5 from "@angular/common";
|
|
25
25
|
const DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
26
|
+
const DEFAULT_SIZE = 'medium';
|
|
27
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
28
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
26
29
|
/**
|
|
27
30
|
* Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
|
|
28
31
|
*
|
|
@@ -232,14 +235,15 @@ export class ColorPickerComponent {
|
|
|
232
235
|
* ([see example]({% slug appearance_colorpicker %}#toc-size)).
|
|
233
236
|
*
|
|
234
237
|
* The possible values are:
|
|
235
|
-
* * `
|
|
236
|
-
* * `
|
|
237
|
-
* * `
|
|
238
|
-
* * `
|
|
238
|
+
* * `small`
|
|
239
|
+
* * `medium` (default)
|
|
240
|
+
* * `large`
|
|
241
|
+
* * `none`
|
|
239
242
|
*/
|
|
240
243
|
set size(size) {
|
|
241
|
-
|
|
242
|
-
this.
|
|
244
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
245
|
+
this.handleClasses(newSize, 'size');
|
|
246
|
+
this._size = newSize;
|
|
243
247
|
}
|
|
244
248
|
get size() {
|
|
245
249
|
return this._size;
|
|
@@ -249,15 +253,16 @@ export class ColorPickerComponent {
|
|
|
249
253
|
* ([see example]({% slug appearance_colorpicker %}#toc-rounded)).
|
|
250
254
|
*
|
|
251
255
|
* The possible values are:
|
|
252
|
-
* * `
|
|
253
|
-
* * `
|
|
254
|
-
* * `
|
|
255
|
-
* * `
|
|
256
|
-
* * `
|
|
256
|
+
* * `small`
|
|
257
|
+
* * `medium` (default)
|
|
258
|
+
* * `large`
|
|
259
|
+
* * `full`
|
|
260
|
+
* * `none`
|
|
257
261
|
*/
|
|
258
262
|
set rounded(rounded) {
|
|
259
|
-
|
|
260
|
-
this.
|
|
263
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
264
|
+
this.handleClasses(newRounded, 'rounded');
|
|
265
|
+
this._rounded = newRounded;
|
|
261
266
|
}
|
|
262
267
|
get rounded() {
|
|
263
268
|
return this._rounded;
|
|
@@ -267,14 +272,15 @@ export class ColorPickerComponent {
|
|
|
267
272
|
* ([see example]({% slug appearance_colorpicker %}#toc-fillMode)).
|
|
268
273
|
*
|
|
269
274
|
* The possible values are:
|
|
270
|
-
* * `
|
|
271
|
-
* * `
|
|
272
|
-
* * `
|
|
273
|
-
* * `
|
|
275
|
+
* * `flat`
|
|
276
|
+
* * `solid` (default)
|
|
277
|
+
* * `outline`
|
|
278
|
+
* * `none`
|
|
274
279
|
*/
|
|
275
280
|
set fillMode(fillMode) {
|
|
276
|
-
|
|
277
|
-
this.
|
|
281
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
282
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
283
|
+
this._fillMode = newFillMode;
|
|
278
284
|
}
|
|
279
285
|
get fillMode() {
|
|
280
286
|
return this._fillMode;
|
package/esm2015/common/utils.js
CHANGED
|
@@ -53,17 +53,17 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
53
53
|
case 'size':
|
|
54
54
|
return {
|
|
55
55
|
toRemove: `k-${componentType}-${SIZES[previousValue]}`,
|
|
56
|
-
toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` :
|
|
56
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
|
|
57
57
|
};
|
|
58
58
|
case 'rounded':
|
|
59
59
|
return {
|
|
60
60
|
toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
|
|
61
|
-
toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` :
|
|
61
|
+
toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
|
|
62
62
|
};
|
|
63
63
|
case 'fillMode':
|
|
64
64
|
return {
|
|
65
65
|
toRemove: `k-${componentType}-${previousValue}`,
|
|
66
|
-
toAdd: newValue ? `k-${componentType}-${newValue}` :
|
|
66
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
|
|
67
67
|
};
|
|
68
68
|
default:
|
|
69
69
|
break;
|
|
@@ -16,6 +16,9 @@ import * as i1 from "./masking.service";
|
|
|
16
16
|
import * as i2 from "@progress/kendo-angular-common";
|
|
17
17
|
const resolvedPromise = Promise.resolve(null);
|
|
18
18
|
const FOCUSED = 'k-focus';
|
|
19
|
+
const DEFAULT_SIZE = 'medium';
|
|
20
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
21
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
19
22
|
/**
|
|
20
23
|
* Represents the [Kendo UI MaskedTextBox component for Angular]({% slug overview_maskedtextbox %}).
|
|
21
24
|
*
|
|
@@ -207,14 +210,15 @@ export class MaskedTextBoxComponent {
|
|
|
207
210
|
* The size property specifies the padding of the MaskedTextBox internal input element
|
|
208
211
|
* ([see example]({% slug appearance_maskedtextbox %}#toc-size)).
|
|
209
212
|
* The possible values are:
|
|
210
|
-
* * `
|
|
211
|
-
* * `
|
|
212
|
-
* * `
|
|
213
|
-
* * `
|
|
213
|
+
* * `small`
|
|
214
|
+
* * `medium` (default)
|
|
215
|
+
* * `large`
|
|
216
|
+
* * `none`
|
|
214
217
|
*/
|
|
215
218
|
set size(size) {
|
|
216
|
-
|
|
217
|
-
this.
|
|
219
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
220
|
+
this.handleClasses(newSize, 'size');
|
|
221
|
+
this._size = newSize;
|
|
218
222
|
}
|
|
219
223
|
get size() {
|
|
220
224
|
return this._size;
|
|
@@ -223,14 +227,15 @@ export class MaskedTextBoxComponent {
|
|
|
223
227
|
* The rounded property specifies the border radius of the MaskedTextBox
|
|
224
228
|
* ([see example]({% slug appearance_maskedtextbox %}#toc-rounded)).
|
|
225
229
|
* The possible values are:
|
|
226
|
-
* * `
|
|
227
|
-
* * `
|
|
228
|
-
* * `
|
|
229
|
-
* * `
|
|
230
|
+
* * `small`
|
|
231
|
+
* * `medium` (default)
|
|
232
|
+
* * `large`
|
|
233
|
+
* * `none`
|
|
230
234
|
*/
|
|
231
235
|
set rounded(rounded) {
|
|
232
|
-
|
|
233
|
-
this.
|
|
236
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
237
|
+
this.handleClasses(newRounded, 'rounded');
|
|
238
|
+
this._rounded = newRounded;
|
|
234
239
|
}
|
|
235
240
|
get rounded() {
|
|
236
241
|
return this._rounded;
|
|
@@ -242,11 +247,12 @@ export class MaskedTextBoxComponent {
|
|
|
242
247
|
* * `flat`
|
|
243
248
|
* * `solid` (default)
|
|
244
249
|
* * `outline`
|
|
245
|
-
* * `
|
|
250
|
+
* * `none`
|
|
246
251
|
*/
|
|
247
252
|
set fillMode(fillMode) {
|
|
248
|
-
|
|
249
|
-
this.
|
|
253
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
254
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
255
|
+
this._fillMode = newFillMode;
|
|
250
256
|
}
|
|
251
257
|
get fillMode() {
|
|
252
258
|
return this._fillMode;
|
|
@@ -31,6 +31,9 @@ const PARSABLE_DEFAULTS = {
|
|
|
31
31
|
step: 1
|
|
32
32
|
};
|
|
33
33
|
const FOCUSED = 'k-focus';
|
|
34
|
+
const DEFAULT_SIZE = 'medium';
|
|
35
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
36
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
34
37
|
/**
|
|
35
38
|
* Represents the [Kendo UI NumericTextBox component for Angular]({% slug overview_numerictextbox %}).
|
|
36
39
|
*/
|
|
@@ -328,14 +331,15 @@ export class NumericTextBoxComponent {
|
|
|
328
331
|
* The size property specifies padding of the NumericTextBox internal input element
|
|
329
332
|
* ([see example]({% slug appearance_numerictextbox %}#toc-size)).
|
|
330
333
|
* The possible values are:
|
|
331
|
-
* * `
|
|
332
|
-
* * `
|
|
333
|
-
* * `
|
|
334
|
-
* * `
|
|
334
|
+
* * `small`
|
|
335
|
+
* * `medium` (default)
|
|
336
|
+
* * `large`
|
|
337
|
+
* * `none`
|
|
335
338
|
*/
|
|
336
339
|
set size(size) {
|
|
337
|
-
|
|
338
|
-
this.
|
|
340
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
341
|
+
this.handleClasses(newSize, 'size');
|
|
342
|
+
this._size = newSize;
|
|
339
343
|
}
|
|
340
344
|
get size() {
|
|
341
345
|
return this._size;
|
|
@@ -344,14 +348,15 @@ export class NumericTextBoxComponent {
|
|
|
344
348
|
* The rounded property specifies the border radius of the NumericTextBox
|
|
345
349
|
* ([see example]({% slug appearance_numerictextbox %}#toc-rounded)).
|
|
346
350
|
* The possible values are:
|
|
347
|
-
* * `
|
|
348
|
-
* * `
|
|
349
|
-
* * `
|
|
350
|
-
* * `
|
|
351
|
+
* * `small`
|
|
352
|
+
* * `medium` (default)
|
|
353
|
+
* * `large`
|
|
354
|
+
* * `none`
|
|
351
355
|
*/
|
|
352
356
|
set rounded(rounded) {
|
|
353
|
-
|
|
354
|
-
this.
|
|
357
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
358
|
+
this.handleClasses(newRounded, 'rounded');
|
|
359
|
+
this._rounded = newRounded;
|
|
355
360
|
}
|
|
356
361
|
get rounded() {
|
|
357
362
|
return this._rounded;
|
|
@@ -360,14 +365,15 @@ export class NumericTextBoxComponent {
|
|
|
360
365
|
* The fillMode property specifies the background and border styles of the NumericTextBox
|
|
361
366
|
* ([see example]({% slug appearance_numerictextbox %}#toc-fillMode)).
|
|
362
367
|
* The possible values are:
|
|
363
|
-
* * `
|
|
364
|
-
* * `
|
|
365
|
-
* * `
|
|
366
|
-
* * `
|
|
368
|
+
* * `flat`
|
|
369
|
+
* * `solid` (default)
|
|
370
|
+
* * `outline`
|
|
371
|
+
* * `none`
|
|
367
372
|
*/
|
|
368
373
|
set fillMode(fillMode) {
|
|
369
|
-
|
|
370
|
-
this.
|
|
374
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
375
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
376
|
+
this._fillMode = newFillMode;
|
|
371
377
|
}
|
|
372
378
|
get fillMode() {
|
|
373
379
|
return this._fillMode;
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-inputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1650440790,
|
|
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
|
};
|
|
@@ -7,6 +7,7 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
|
7
7
|
import { getStylingClasses } from '../common/utils';
|
|
8
8
|
import { packageMetadata } from '../package-metadata';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
const DEFAULT_SIZE = 'medium';
|
|
10
11
|
/**
|
|
11
12
|
* Represents the directive that renders the [Kendo UI RadioButton]({% slug overview_checkbox %}) input component.
|
|
12
13
|
* The directive is placed on input type="radio" elements.
|
|
@@ -28,14 +29,15 @@ export class RadioButtonDirective {
|
|
|
28
29
|
* The size property specifies the width and height of the RadioButton
|
|
29
30
|
* ([see example]({% slug appearance_radiobuttondirective %}#toc-size)).
|
|
30
31
|
* The possible values are:
|
|
31
|
-
* * `
|
|
32
|
-
* * `
|
|
33
|
-
* * `
|
|
34
|
-
* * `
|
|
32
|
+
* * `small`
|
|
33
|
+
* * `medium` (default)
|
|
34
|
+
* * `large`
|
|
35
|
+
* * `none`
|
|
35
36
|
*/
|
|
36
37
|
set size(size) {
|
|
37
|
-
|
|
38
|
-
this.
|
|
38
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
39
|
+
this.handleClasses(newSize, 'size');
|
|
40
|
+
this._size = newSize;
|
|
39
41
|
}
|
|
40
42
|
get size() {
|
|
41
43
|
return this._size;
|
|
@@ -395,7 +395,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
395
395
|
i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."
|
|
396
396
|
dragHandle="Drag"
|
|
397
397
|
>
|
|
398
|
-
<div class="k-slider-
|
|
398
|
+
<div class="k-slider-wrap" #wrap
|
|
399
399
|
[class.k-slider-buttons]="showButtons"
|
|
400
400
|
[class.k-slider-topleft]="tickPlacement === 'before'"
|
|
401
401
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
@@ -484,7 +484,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
484
484
|
i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."
|
|
485
485
|
dragHandle="Drag"
|
|
486
486
|
>
|
|
487
|
-
<div class="k-slider-
|
|
487
|
+
<div class="k-slider-wrap" #wrap
|
|
488
488
|
[class.k-slider-buttons]="showButtons"
|
|
489
489
|
[class.k-slider-topleft]="tickPlacement === 'before'"
|
|
490
490
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
@@ -17,6 +17,9 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
17
17
|
import * as i2 from "./localization/localized-switch-messages.directive";
|
|
18
18
|
import * as i3 from "@progress/kendo-angular-common";
|
|
19
19
|
const FOCUSED = 'k-focus';
|
|
20
|
+
const DEFAULT_SIZE = 'medium';
|
|
21
|
+
const DEFAULT_THUMB_ROUNDED = 'full';
|
|
22
|
+
const DEFAULT_TRACK_ROUNDED = 'full';
|
|
20
23
|
/**
|
|
21
24
|
* Represents the [Kendo UI Switch component for Angular]({% slug overview_switch %}).
|
|
22
25
|
*/
|
|
@@ -118,14 +121,15 @@ export class SwitchComponent {
|
|
|
118
121
|
* Specifies the width and height of the Switch.
|
|
119
122
|
*
|
|
120
123
|
* The possible values are:
|
|
121
|
-
* * `
|
|
122
|
-
* * `
|
|
123
|
-
* * `
|
|
124
|
-
* * `
|
|
124
|
+
* * `small`
|
|
125
|
+
* * `medium` (default)
|
|
126
|
+
* * `large`
|
|
127
|
+
* * `none`
|
|
125
128
|
*/
|
|
126
129
|
set size(size) {
|
|
127
|
-
|
|
128
|
-
this.
|
|
130
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
131
|
+
this.handleClasses(newSize, 'size');
|
|
132
|
+
this._size = newSize;
|
|
129
133
|
}
|
|
130
134
|
get size() {
|
|
131
135
|
return this._size;
|
|
@@ -134,15 +138,16 @@ export class SwitchComponent {
|
|
|
134
138
|
* Specifies the border radius of the Switch thumb.
|
|
135
139
|
*
|
|
136
140
|
* The possible values are:
|
|
137
|
-
* * `
|
|
138
|
-
* * `
|
|
139
|
-
* * `
|
|
140
|
-
* * `
|
|
141
|
-
* * `
|
|
141
|
+
* * `full` (default)
|
|
142
|
+
* * `small`
|
|
143
|
+
* * `medium`
|
|
144
|
+
* * `large`
|
|
145
|
+
* * `none`
|
|
142
146
|
*/
|
|
143
147
|
set thumbRounded(thumbRounded) {
|
|
144
|
-
|
|
145
|
-
this.
|
|
148
|
+
const newThumbRounded = thumbRounded ? thumbRounded : DEFAULT_THUMB_ROUNDED;
|
|
149
|
+
this.handleThumbClasses(newThumbRounded);
|
|
150
|
+
this._thumbRounded = newThumbRounded;
|
|
146
151
|
}
|
|
147
152
|
get thumbRounded() {
|
|
148
153
|
return this._thumbRounded;
|
|
@@ -151,15 +156,16 @@ export class SwitchComponent {
|
|
|
151
156
|
* Specifies the border radius of the Switch track.
|
|
152
157
|
*
|
|
153
158
|
* The possible values are:
|
|
154
|
-
* * `
|
|
155
|
-
* * `
|
|
156
|
-
* * `
|
|
157
|
-
* * `
|
|
158
|
-
* * `
|
|
159
|
+
* * `full` (default)
|
|
160
|
+
* * `small`
|
|
161
|
+
* * `medium`
|
|
162
|
+
* * `large`
|
|
163
|
+
* * `none`
|
|
159
164
|
*/
|
|
160
165
|
set trackRounded(trackRounded) {
|
|
161
|
-
|
|
162
|
-
this.
|
|
166
|
+
const newTrackRounded = trackRounded ? trackRounded : DEFAULT_TRACK_ROUNDED;
|
|
167
|
+
this.handleTrackClasses(newTrackRounded);
|
|
168
|
+
this._trackRounded = newTrackRounded;
|
|
163
169
|
}
|
|
164
170
|
get trackRounded() {
|
|
165
171
|
return this._trackRounded;
|
|
@@ -26,6 +26,9 @@ const resizeClasses = {
|
|
|
26
26
|
'auto': 'k-resize-none'
|
|
27
27
|
};
|
|
28
28
|
const FOCUSED = 'k-focus';
|
|
29
|
+
const DEFAULT_SIZE = 'medium';
|
|
30
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
31
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
29
32
|
/**
|
|
30
33
|
* Represents the [Kendo UI TextArea component for Angular]({% slug overview_textarea %}).
|
|
31
34
|
*/
|
|
@@ -179,14 +182,15 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
179
182
|
* ([see example]({% slug appearance_textarea %}#toc-size)).
|
|
180
183
|
*
|
|
181
184
|
* The possible values are:
|
|
182
|
-
* * `
|
|
183
|
-
* * `
|
|
184
|
-
* * `
|
|
185
|
-
* * `
|
|
185
|
+
* * `small`
|
|
186
|
+
* * `medium` (default)
|
|
187
|
+
* * `large`
|
|
188
|
+
* * `none`
|
|
186
189
|
*/
|
|
187
190
|
set size(size) {
|
|
188
|
-
|
|
189
|
-
this.
|
|
191
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
192
|
+
this.handleClasses(newSize, 'size');
|
|
193
|
+
this._size = newSize;
|
|
190
194
|
}
|
|
191
195
|
get size() {
|
|
192
196
|
return this._size;
|
|
@@ -196,14 +200,15 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
196
200
|
* ([see example]({% slug appearance_textarea %}#toc-rounded)).
|
|
197
201
|
*
|
|
198
202
|
* The possible values are:
|
|
199
|
-
* * `
|
|
200
|
-
* * `
|
|
201
|
-
* * `
|
|
202
|
-
* * `
|
|
203
|
+
* * `small`
|
|
204
|
+
* * `medium` (default)
|
|
205
|
+
* * `large`
|
|
206
|
+
* * `none`
|
|
203
207
|
*/
|
|
204
208
|
set rounded(rounded) {
|
|
205
|
-
|
|
206
|
-
this.
|
|
209
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
210
|
+
this.handleClasses(newRounded, 'rounded');
|
|
211
|
+
this._rounded = newRounded;
|
|
207
212
|
}
|
|
208
213
|
get rounded() {
|
|
209
214
|
return this._rounded;
|
|
@@ -213,14 +218,15 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
213
218
|
* ([see example]({% slug appearance_textarea %}#toc-fillMode)).
|
|
214
219
|
*
|
|
215
220
|
* The possible values are:
|
|
216
|
-
* * `
|
|
217
|
-
* * `
|
|
218
|
-
* * `
|
|
219
|
-
* * `
|
|
221
|
+
* * `flat`
|
|
222
|
+
* * `solid` (default)
|
|
223
|
+
* * `outline`
|
|
224
|
+
* * `none`
|
|
220
225
|
*/
|
|
221
226
|
set fillMode(fillMode) {
|
|
222
|
-
|
|
223
|
-
this.
|
|
227
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
228
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
229
|
+
this._fillMode = newFillMode;
|
|
224
230
|
}
|
|
225
231
|
get fillMode() {
|
|
226
232
|
return this._fillMode;
|