@progress/kendo-angular-inputs 9.0.0-next.202204060721 → 9.0.1-dev.202204281117
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 +6 -6
- package/colorpicker/colorpicker.component.d.ts +10 -10
- package/common/models/fillmode.d.ts +1 -0
- package/common/models/rounded.d.ts +2 -0
- package/common/models/size.d.ts +1 -0
- package/esm2015/checkbox/checkbox.directive.js +14 -12
- package/esm2015/colorpicker/colorpicker.component.js +22 -19
- package/esm2015/formfield/formfield.component.js +19 -4
- package/esm2015/maskedtextbox/maskedtextbox.component.js +18 -15
- package/esm2015/numerictextbox/numerictextbox.component.js +21 -18
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/radiobutton/radiobutton.directive.js +7 -6
- package/esm2015/slider/slider.component.js +2 -2
- package/esm2015/switch/switch.component.js +23 -20
- package/esm2015/textarea/textarea.component.js +21 -18
- package/esm2015/textbox/textbox.component.js +22 -19
- package/fesm2015/kendo-angular-inputs.js +170 -134
- package/formfield/formfield.component.d.ts +3 -2
- package/formfield/models/orientation.d.ts +1 -5
- package/maskedtextbox/maskedtextbox.component.d.ts +6 -6
- package/numerictextbox/numerictextbox.component.d.ts +9 -9
- package/package.json +11 -13
- package/radiobutton/radiobutton.directive.d.ts +3 -3
- package/switch/switch.component.d.ts +11 -11
- package/textarea/textarea.component.d.ts +9 -9
- package/textbox/textbox.component.d.ts +10 -10
|
@@ -23,9 +23,9 @@ export declare class CheckBoxDirective {
|
|
|
23
23
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-size)).
|
|
24
24
|
*
|
|
25
25
|
* The possible values are:
|
|
26
|
-
* * `
|
|
27
|
-
* * `
|
|
28
|
-
* * `
|
|
26
|
+
* * `small`
|
|
27
|
+
* * `medium` (default)
|
|
28
|
+
* * `large`
|
|
29
29
|
* * `none`
|
|
30
30
|
*/
|
|
31
31
|
set size(size: InputSize);
|
|
@@ -35,9 +35,9 @@ export declare class CheckBoxDirective {
|
|
|
35
35
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-rounded)).
|
|
36
36
|
*
|
|
37
37
|
* The possible values are:
|
|
38
|
-
* * `
|
|
39
|
-
* * `
|
|
40
|
-
* * `
|
|
38
|
+
* * `small`
|
|
39
|
+
* * `medium` (default)
|
|
40
|
+
* * `large`
|
|
41
41
|
* * `none`
|
|
42
42
|
*/
|
|
43
43
|
set rounded(rounded: CheckBoxRounded);
|
|
@@ -151,9 +151,9 @@ 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
|
-
* * `
|
|
154
|
+
* * `small`
|
|
155
|
+
* * `medium` (default)
|
|
156
|
+
* * `large`
|
|
157
157
|
* * `none`
|
|
158
158
|
*/
|
|
159
159
|
set size(size: InputSize);
|
|
@@ -163,10 +163,10 @@ 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
|
-
* * `
|
|
166
|
+
* * `small`
|
|
167
|
+
* * `medium` (default)
|
|
168
|
+
* * `large`
|
|
169
|
+
* * `full`
|
|
170
170
|
* * `none`
|
|
171
171
|
*/
|
|
172
172
|
set rounded(rounded: InputRounded);
|
|
@@ -176,9 +176,9 @@ 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
|
-
* * `
|
|
179
|
+
* * `flat`
|
|
180
|
+
* * `solid` (default)
|
|
181
|
+
* * `outline`
|
|
182
182
|
* * `none`
|
|
183
183
|
*/
|
|
184
184
|
set fillMode(fillMode: InputFillMode);
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Represents the possible rounded options of the inputs.
|
|
7
|
+
* @default `medium`
|
|
7
8
|
*/
|
|
8
9
|
export declare type InputRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
|
|
9
10
|
/**
|
|
10
11
|
* Represents the possible rounded options of the CheckBox.
|
|
12
|
+
* @default `medium`
|
|
11
13
|
*/
|
|
12
14
|
export declare type CheckBoxRounded = 'small' | 'medium' | 'large' | 'none';
|
package/common/models/size.d.ts
CHANGED
|
@@ -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,15 +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
|
-
* * `
|
|
32
|
+
* * `small`
|
|
33
|
+
* * `medium` (default)
|
|
34
|
+
* * `large`
|
|
33
35
|
* * `none`
|
|
34
36
|
*/
|
|
35
37
|
set size(size) {
|
|
36
|
-
const
|
|
37
|
-
this.handleClasses(
|
|
38
|
-
this._size =
|
|
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;
|
|
@@ -45,15 +47,15 @@ export class CheckBoxDirective {
|
|
|
45
47
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-rounded)).
|
|
46
48
|
*
|
|
47
49
|
* The possible values are:
|
|
48
|
-
* * `
|
|
49
|
-
* * `
|
|
50
|
-
* * `
|
|
50
|
+
* * `small`
|
|
51
|
+
* * `medium` (default)
|
|
52
|
+
* * `large`
|
|
51
53
|
* * `none`
|
|
52
54
|
*/
|
|
53
55
|
set rounded(rounded) {
|
|
54
|
-
const
|
|
55
|
-
this.handleClasses(
|
|
56
|
-
this._rounded =
|
|
56
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
57
|
+
this.handleClasses(newRounded, 'rounded');
|
|
58
|
+
this._rounded = newRounded;
|
|
57
59
|
}
|
|
58
60
|
get rounded() {
|
|
59
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,15 +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
|
+
* * `small`
|
|
239
|
+
* * `medium` (default)
|
|
240
|
+
* * `large`
|
|
238
241
|
* * `none`
|
|
239
242
|
*/
|
|
240
243
|
set size(size) {
|
|
241
|
-
const
|
|
242
|
-
this.handleClasses(
|
|
243
|
-
this._size =
|
|
244
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
245
|
+
this.handleClasses(newSize, 'size');
|
|
246
|
+
this._size = newSize;
|
|
244
247
|
}
|
|
245
248
|
get size() {
|
|
246
249
|
return this._size;
|
|
@@ -250,16 +253,16 @@ export class ColorPickerComponent {
|
|
|
250
253
|
* ([see example]({% slug appearance_colorpicker %}#toc-rounded)).
|
|
251
254
|
*
|
|
252
255
|
* The possible values are:
|
|
253
|
-
* * `
|
|
254
|
-
* * `
|
|
255
|
-
* * `
|
|
256
|
-
* * `
|
|
256
|
+
* * `small`
|
|
257
|
+
* * `medium` (default)
|
|
258
|
+
* * `large`
|
|
259
|
+
* * `full`
|
|
257
260
|
* * `none`
|
|
258
261
|
*/
|
|
259
262
|
set rounded(rounded) {
|
|
260
|
-
const
|
|
261
|
-
this.handleClasses(
|
|
262
|
-
this._rounded =
|
|
263
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
264
|
+
this.handleClasses(newRounded, 'rounded');
|
|
265
|
+
this._rounded = newRounded;
|
|
263
266
|
}
|
|
264
267
|
get rounded() {
|
|
265
268
|
return this._rounded;
|
|
@@ -269,15 +272,15 @@ export class ColorPickerComponent {
|
|
|
269
272
|
* ([see example]({% slug appearance_colorpicker %}#toc-fillMode)).
|
|
270
273
|
*
|
|
271
274
|
* The possible values are:
|
|
272
|
-
* * `
|
|
273
|
-
* * `
|
|
274
|
-
* * `
|
|
275
|
+
* * `flat`
|
|
276
|
+
* * `solid` (default)
|
|
277
|
+
* * `outline`
|
|
275
278
|
* * `none`
|
|
276
279
|
*/
|
|
277
280
|
set fillMode(fillMode) {
|
|
278
|
-
const
|
|
279
|
-
this.handleClasses(
|
|
280
|
-
this._fillMode =
|
|
281
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
282
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
283
|
+
this._fillMode = newFillMode;
|
|
281
284
|
}
|
|
282
285
|
get fillMode() {
|
|
283
286
|
return this._fillMode;
|
|
@@ -107,6 +107,9 @@ export class FormFieldComponent {
|
|
|
107
107
|
ngAfterViewInit() {
|
|
108
108
|
this.setDescription();
|
|
109
109
|
}
|
|
110
|
+
ngAfterViewChecked() {
|
|
111
|
+
this.updateDescription();
|
|
112
|
+
}
|
|
110
113
|
ngOnDestroy() {
|
|
111
114
|
this.subscriptions.unsubscribe();
|
|
112
115
|
}
|
|
@@ -145,7 +148,12 @@ export class FormFieldComponent {
|
|
|
145
148
|
controls.forEach((control) => {
|
|
146
149
|
if (this.errorChildren.length > 0 || this.hintChildren.length > 0) {
|
|
147
150
|
const ariaIds = this.generateDescriptionIds(control);
|
|
148
|
-
|
|
151
|
+
if (ariaIds !== '') {
|
|
152
|
+
this.renderer.setAttribute(control, 'aria-describedby', ariaIds);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
this.renderer.removeAttribute(control, 'aria-describedby');
|
|
156
|
+
}
|
|
149
157
|
}
|
|
150
158
|
});
|
|
151
159
|
}
|
|
@@ -161,8 +169,10 @@ export class FormFieldComponent {
|
|
|
161
169
|
}
|
|
162
170
|
generateDescriptionIds(control) {
|
|
163
171
|
const ids = new Set();
|
|
172
|
+
let errorAttribute = '';
|
|
164
173
|
if (control.hasAttribute('aria-describedby')) {
|
|
165
174
|
const attributes = control.getAttribute('aria-describedby').split(' ');
|
|
175
|
+
errorAttribute = attributes.filter(attr => attr.includes('kendo-error-'))[0];
|
|
166
176
|
attributes.forEach((attr) => {
|
|
167
177
|
if (attr.includes('kendo-hint-') || attr.includes('kendo-error-')) {
|
|
168
178
|
return;
|
|
@@ -173,9 +183,14 @@ export class FormFieldComponent {
|
|
|
173
183
|
this.hintChildren.forEach((hint) => {
|
|
174
184
|
ids.add(hint.id);
|
|
175
185
|
});
|
|
176
|
-
this.
|
|
177
|
-
|
|
178
|
-
|
|
186
|
+
if (this.hasErrors) {
|
|
187
|
+
this.errorChildren.forEach((error) => {
|
|
188
|
+
ids.add(error.id);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
ids.delete(errorAttribute);
|
|
193
|
+
}
|
|
179
194
|
return Array.from(ids).join(' ');
|
|
180
195
|
}
|
|
181
196
|
showHintsInitial() {
|
|
@@ -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,15 +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
|
+
* * `small`
|
|
214
|
+
* * `medium` (default)
|
|
215
|
+
* * `large`
|
|
213
216
|
* * `none`
|
|
214
217
|
*/
|
|
215
218
|
set size(size) {
|
|
216
|
-
const
|
|
217
|
-
this.handleClasses(
|
|
218
|
-
this._size =
|
|
219
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
220
|
+
this.handleClasses(newSize, 'size');
|
|
221
|
+
this._size = newSize;
|
|
219
222
|
}
|
|
220
223
|
get size() {
|
|
221
224
|
return this._size;
|
|
@@ -224,15 +227,15 @@ export class MaskedTextBoxComponent {
|
|
|
224
227
|
* The rounded property specifies the border radius of the MaskedTextBox
|
|
225
228
|
* ([see example]({% slug appearance_maskedtextbox %}#toc-rounded)).
|
|
226
229
|
* The possible values are:
|
|
227
|
-
* * `
|
|
228
|
-
* * `
|
|
229
|
-
* * `
|
|
230
|
+
* * `small`
|
|
231
|
+
* * `medium` (default)
|
|
232
|
+
* * `large`
|
|
230
233
|
* * `none`
|
|
231
234
|
*/
|
|
232
235
|
set rounded(rounded) {
|
|
233
|
-
const
|
|
234
|
-
this.handleClasses(
|
|
235
|
-
this._rounded =
|
|
236
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
237
|
+
this.handleClasses(newRounded, 'rounded');
|
|
238
|
+
this._rounded = newRounded;
|
|
236
239
|
}
|
|
237
240
|
get rounded() {
|
|
238
241
|
return this._rounded;
|
|
@@ -247,9 +250,9 @@ export class MaskedTextBoxComponent {
|
|
|
247
250
|
* * `none`
|
|
248
251
|
*/
|
|
249
252
|
set fillMode(fillMode) {
|
|
250
|
-
const
|
|
251
|
-
this.handleClasses(
|
|
252
|
-
this._fillMode =
|
|
253
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
254
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
255
|
+
this._fillMode = newFillMode;
|
|
253
256
|
}
|
|
254
257
|
get fillMode() {
|
|
255
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,15 +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
|
+
* * `small`
|
|
335
|
+
* * `medium` (default)
|
|
336
|
+
* * `large`
|
|
334
337
|
* * `none`
|
|
335
338
|
*/
|
|
336
339
|
set size(size) {
|
|
337
|
-
const
|
|
338
|
-
this.handleClasses(
|
|
339
|
-
this._size =
|
|
340
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
341
|
+
this.handleClasses(newSize, 'size');
|
|
342
|
+
this._size = newSize;
|
|
340
343
|
}
|
|
341
344
|
get size() {
|
|
342
345
|
return this._size;
|
|
@@ -345,15 +348,15 @@ export class NumericTextBoxComponent {
|
|
|
345
348
|
* The rounded property specifies the border radius of the NumericTextBox
|
|
346
349
|
* ([see example]({% slug appearance_numerictextbox %}#toc-rounded)).
|
|
347
350
|
* The possible values are:
|
|
348
|
-
* * `
|
|
349
|
-
* * `
|
|
350
|
-
* * `
|
|
351
|
+
* * `small`
|
|
352
|
+
* * `medium` (default)
|
|
353
|
+
* * `large`
|
|
351
354
|
* * `none`
|
|
352
355
|
*/
|
|
353
356
|
set rounded(rounded) {
|
|
354
|
-
const
|
|
355
|
-
this.handleClasses(
|
|
356
|
-
this._rounded =
|
|
357
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
358
|
+
this.handleClasses(newRounded, 'rounded');
|
|
359
|
+
this._rounded = newRounded;
|
|
357
360
|
}
|
|
358
361
|
get rounded() {
|
|
359
362
|
return this._rounded;
|
|
@@ -362,15 +365,15 @@ export class NumericTextBoxComponent {
|
|
|
362
365
|
* The fillMode property specifies the background and border styles of the NumericTextBox
|
|
363
366
|
* ([see example]({% slug appearance_numerictextbox %}#toc-fillMode)).
|
|
364
367
|
* The possible values are:
|
|
365
|
-
* * `
|
|
366
|
-
* * `
|
|
367
|
-
* * `
|
|
368
|
+
* * `flat`
|
|
369
|
+
* * `solid` (default)
|
|
370
|
+
* * `outline`
|
|
368
371
|
* * `none`
|
|
369
372
|
*/
|
|
370
373
|
set fillMode(fillMode) {
|
|
371
|
-
const
|
|
372
|
-
this.handleClasses(
|
|
373
|
-
this._fillMode =
|
|
374
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
375
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
376
|
+
this._fillMode = newFillMode;
|
|
374
377
|
}
|
|
375
378
|
get fillMode() {
|
|
376
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: 1651144627,
|
|
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,15 +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
|
-
* * `
|
|
32
|
+
* * `small`
|
|
33
|
+
* * `medium` (default)
|
|
34
|
+
* * `large`
|
|
34
35
|
* * `none`
|
|
35
36
|
*/
|
|
36
37
|
set size(size) {
|
|
37
|
-
const
|
|
38
|
-
this.handleClasses(
|
|
39
|
-
this._size =
|
|
38
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
39
|
+
this.handleClasses(newSize, 'size');
|
|
40
|
+
this._size = newSize;
|
|
40
41
|
}
|
|
41
42
|
get size() {
|
|
42
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,15 +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
|
+
* * `small`
|
|
125
|
+
* * `medium` (default)
|
|
126
|
+
* * `large`
|
|
124
127
|
* * `none`
|
|
125
128
|
*/
|
|
126
129
|
set size(size) {
|
|
127
|
-
const
|
|
128
|
-
this.handleClasses(
|
|
129
|
-
this._size =
|
|
130
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
131
|
+
this.handleClasses(newSize, 'size');
|
|
132
|
+
this._size = newSize;
|
|
130
133
|
}
|
|
131
134
|
get size() {
|
|
132
135
|
return this._size;
|
|
@@ -135,16 +138,16 @@ export class SwitchComponent {
|
|
|
135
138
|
* Specifies the border radius of the Switch thumb.
|
|
136
139
|
*
|
|
137
140
|
* The possible values are:
|
|
138
|
-
* * `
|
|
139
|
-
* * `
|
|
140
|
-
* * `
|
|
141
|
-
* * `
|
|
141
|
+
* * `full` (default)
|
|
142
|
+
* * `small`
|
|
143
|
+
* * `medium`
|
|
144
|
+
* * `large`
|
|
142
145
|
* * `none`
|
|
143
146
|
*/
|
|
144
147
|
set thumbRounded(thumbRounded) {
|
|
145
|
-
const
|
|
146
|
-
this.handleThumbClasses(
|
|
147
|
-
this._thumbRounded =
|
|
148
|
+
const newThumbRounded = thumbRounded ? thumbRounded : DEFAULT_THUMB_ROUNDED;
|
|
149
|
+
this.handleThumbClasses(newThumbRounded);
|
|
150
|
+
this._thumbRounded = newThumbRounded;
|
|
148
151
|
}
|
|
149
152
|
get thumbRounded() {
|
|
150
153
|
return this._thumbRounded;
|
|
@@ -153,16 +156,16 @@ export class SwitchComponent {
|
|
|
153
156
|
* Specifies the border radius of the Switch track.
|
|
154
157
|
*
|
|
155
158
|
* The possible values are:
|
|
156
|
-
* * `
|
|
157
|
-
* * `
|
|
158
|
-
* * `
|
|
159
|
-
* * `
|
|
159
|
+
* * `full` (default)
|
|
160
|
+
* * `small`
|
|
161
|
+
* * `medium`
|
|
162
|
+
* * `large`
|
|
160
163
|
* * `none`
|
|
161
164
|
*/
|
|
162
165
|
set trackRounded(trackRounded) {
|
|
163
|
-
const
|
|
164
|
-
this.handleTrackClasses(
|
|
165
|
-
this._trackRounded =
|
|
166
|
+
const newTrackRounded = trackRounded ? trackRounded : DEFAULT_TRACK_ROUNDED;
|
|
167
|
+
this.handleTrackClasses(newTrackRounded);
|
|
168
|
+
this._trackRounded = newTrackRounded;
|
|
166
169
|
}
|
|
167
170
|
get trackRounded() {
|
|
168
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,15 +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
|
+
* * `small`
|
|
186
|
+
* * `medium` (default)
|
|
187
|
+
* * `large`
|
|
185
188
|
* * `none`
|
|
186
189
|
*/
|
|
187
190
|
set size(size) {
|
|
188
|
-
const
|
|
189
|
-
this.handleClasses(
|
|
190
|
-
this._size =
|
|
191
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
192
|
+
this.handleClasses(newSize, 'size');
|
|
193
|
+
this._size = newSize;
|
|
191
194
|
}
|
|
192
195
|
get size() {
|
|
193
196
|
return this._size;
|
|
@@ -197,15 +200,15 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
197
200
|
* ([see example]({% slug appearance_textarea %}#toc-rounded)).
|
|
198
201
|
*
|
|
199
202
|
* The possible values are:
|
|
200
|
-
* * `
|
|
201
|
-
* * `
|
|
202
|
-
* * `
|
|
203
|
+
* * `small`
|
|
204
|
+
* * `medium` (default)
|
|
205
|
+
* * `large`
|
|
203
206
|
* * `none`
|
|
204
207
|
*/
|
|
205
208
|
set rounded(rounded) {
|
|
206
|
-
const
|
|
207
|
-
this.handleClasses(
|
|
208
|
-
this._rounded =
|
|
209
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
210
|
+
this.handleClasses(newRounded, 'rounded');
|
|
211
|
+
this._rounded = newRounded;
|
|
209
212
|
}
|
|
210
213
|
get rounded() {
|
|
211
214
|
return this._rounded;
|
|
@@ -215,15 +218,15 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
215
218
|
* ([see example]({% slug appearance_textarea %}#toc-fillMode)).
|
|
216
219
|
*
|
|
217
220
|
* The possible values are:
|
|
218
|
-
* * `
|
|
219
|
-
* * `
|
|
220
|
-
* * `
|
|
221
|
+
* * `flat`
|
|
222
|
+
* * `solid` (default)
|
|
223
|
+
* * `outline`
|
|
221
224
|
* * `none`
|
|
222
225
|
*/
|
|
223
226
|
set fillMode(fillMode) {
|
|
224
|
-
const
|
|
225
|
-
this.handleClasses(
|
|
226
|
-
this._fillMode =
|
|
227
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
228
|
+
this.handleClasses(newFillMode, 'fillMode');
|
|
229
|
+
this._fillMode = newFillMode;
|
|
227
230
|
}
|
|
228
231
|
get fillMode() {
|
|
229
232
|
return this._fillMode;
|