@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.
@@ -519,7 +519,7 @@ const packageMetadata = {
519
519
  name: '@progress/kendo-angular-inputs',
520
520
  productName: 'Kendo UI for Angular',
521
521
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
522
- publishDate: 1649229539,
522
+ publishDate: 1651144627,
523
523
  version: '',
524
524
  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'
525
525
  };
@@ -1348,7 +1348,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
1348
1348
  i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."
1349
1349
  dragHandle="Drag"
1350
1350
  >
1351
- <div class="k-slider-track-wrap" #wrap
1351
+ <div class="k-slider-wrap" #wrap
1352
1352
  [class.k-slider-buttons]="showButtons"
1353
1353
  [class.k-slider-topleft]="tickPlacement === 'before'"
1354
1354
  [class.k-slider-bottomright]="tickPlacement === 'after'"
@@ -1437,7 +1437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1437
1437
  i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."
1438
1438
  dragHandle="Drag"
1439
1439
  >
1440
- <div class="k-slider-track-wrap" #wrap
1440
+ <div class="k-slider-wrap" #wrap
1441
1441
  [class.k-slider-buttons]="showButtons"
1442
1442
  [class.k-slider-topleft]="tickPlacement === 'before'"
1443
1443
  [class.k-slider-bottomright]="tickPlacement === 'after'"
@@ -2251,6 +2251,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2251
2251
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
2252
2252
 
2253
2253
  const FOCUSED$4 = 'k-focus';
2254
+ const DEFAULT_SIZE$7 = 'medium';
2255
+ const DEFAULT_THUMB_ROUNDED = 'full';
2256
+ const DEFAULT_TRACK_ROUNDED = 'full';
2254
2257
  /**
2255
2258
  * Represents the [Kendo UI Switch component for Angular]({% slug overview_switch %}).
2256
2259
  */
@@ -2352,15 +2355,15 @@ class SwitchComponent {
2352
2355
  * Specifies the width and height of the Switch.
2353
2356
  *
2354
2357
  * The possible values are:
2355
- * * `'small'`
2356
- * * `'medium'` (default)
2357
- * * `'large'`
2358
+ * * `small`
2359
+ * * `medium` (default)
2360
+ * * `large`
2358
2361
  * * `none`
2359
2362
  */
2360
2363
  set size(size) {
2361
- const sizeValue = size ? size : 'medium';
2362
- this.handleClasses(sizeValue, 'size');
2363
- this._size = sizeValue;
2364
+ const newSize = size ? size : DEFAULT_SIZE$7;
2365
+ this.handleClasses(newSize, 'size');
2366
+ this._size = newSize;
2364
2367
  }
2365
2368
  get size() {
2366
2369
  return this._size;
@@ -2369,16 +2372,16 @@ class SwitchComponent {
2369
2372
  * Specifies the border radius of the Switch thumb.
2370
2373
  *
2371
2374
  * The possible values are:
2372
- * * `'full'` (default)
2373
- * * `'small'`
2374
- * * `'medium'`
2375
- * * `'large'`
2375
+ * * `full` (default)
2376
+ * * `small`
2377
+ * * `medium`
2378
+ * * `large`
2376
2379
  * * `none`
2377
2380
  */
2378
2381
  set thumbRounded(thumbRounded) {
2379
- const thumbRoundedValue = thumbRounded ? thumbRounded : 'full';
2380
- this.handleThumbClasses(thumbRoundedValue);
2381
- this._thumbRounded = thumbRoundedValue;
2382
+ const newThumbRounded = thumbRounded ? thumbRounded : DEFAULT_THUMB_ROUNDED;
2383
+ this.handleThumbClasses(newThumbRounded);
2384
+ this._thumbRounded = newThumbRounded;
2382
2385
  }
2383
2386
  get thumbRounded() {
2384
2387
  return this._thumbRounded;
@@ -2387,16 +2390,16 @@ class SwitchComponent {
2387
2390
  * Specifies the border radius of the Switch track.
2388
2391
  *
2389
2392
  * The possible values are:
2390
- * * `'full'` (default)
2391
- * * `'small'`
2392
- * * `'medium'`
2393
- * * `'large'`
2393
+ * * `full` (default)
2394
+ * * `small`
2395
+ * * `medium`
2396
+ * * `large`
2394
2397
  * * `none`
2395
2398
  */
2396
2399
  set trackRounded(trackRounded) {
2397
- const trackRoundedValue = trackRounded ? trackRounded : 'full';
2398
- this.handleTrackClasses(trackRoundedValue);
2399
- this._trackRounded = trackRoundedValue;
2400
+ const newTrackRounded = trackRounded ? trackRounded : DEFAULT_TRACK_ROUNDED;
2401
+ this.handleTrackClasses(newTrackRounded);
2402
+ this._trackRounded = newTrackRounded;
2400
2403
  }
2401
2404
  get trackRounded() {
2402
2405
  return this._trackRounded;
@@ -3360,6 +3363,9 @@ const PARSABLE_DEFAULTS = {
3360
3363
  step: 1
3361
3364
  };
3362
3365
  const FOCUSED$3 = 'k-focus';
3366
+ const DEFAULT_SIZE$6 = 'medium';
3367
+ const DEFAULT_ROUNDED$5 = 'medium';
3368
+ const DEFAULT_FILL_MODE$4 = 'solid';
3363
3369
  /**
3364
3370
  * Represents the [Kendo UI NumericTextBox component for Angular]({% slug overview_numerictextbox %}).
3365
3371
  */
@@ -3657,15 +3663,15 @@ class NumericTextBoxComponent {
3657
3663
  * The size property specifies padding of the NumericTextBox internal input element
3658
3664
  * ([see example]({% slug appearance_numerictextbox %}#toc-size)).
3659
3665
  * The possible values are:
3660
- * * `'small'`
3661
- * * `'medium'` (default)
3662
- * * `'large'`
3666
+ * * `small`
3667
+ * * `medium` (default)
3668
+ * * `large`
3663
3669
  * * `none`
3664
3670
  */
3665
3671
  set size(size) {
3666
- const sizeValue = size ? size : 'medium';
3667
- this.handleClasses(sizeValue, 'size');
3668
- this._size = sizeValue;
3672
+ const newSize = size ? size : DEFAULT_SIZE$6;
3673
+ this.handleClasses(newSize, 'size');
3674
+ this._size = newSize;
3669
3675
  }
3670
3676
  get size() {
3671
3677
  return this._size;
@@ -3674,15 +3680,15 @@ class NumericTextBoxComponent {
3674
3680
  * The rounded property specifies the border radius of the NumericTextBox
3675
3681
  * ([see example]({% slug appearance_numerictextbox %}#toc-rounded)).
3676
3682
  * The possible values are:
3677
- * * `'small'`
3678
- * * `'medium'` (default)
3679
- * * `'large'`
3683
+ * * `small`
3684
+ * * `medium` (default)
3685
+ * * `large`
3680
3686
  * * `none`
3681
3687
  */
3682
3688
  set rounded(rounded) {
3683
- const roundedValue = rounded ? rounded : 'medium';
3684
- this.handleClasses(roundedValue, 'rounded');
3685
- this._rounded = roundedValue;
3689
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$5;
3690
+ this.handleClasses(newRounded, 'rounded');
3691
+ this._rounded = newRounded;
3686
3692
  }
3687
3693
  get rounded() {
3688
3694
  return this._rounded;
@@ -3691,15 +3697,15 @@ class NumericTextBoxComponent {
3691
3697
  * The fillMode property specifies the background and border styles of the NumericTextBox
3692
3698
  * ([see example]({% slug appearance_numerictextbox %}#toc-fillMode)).
3693
3699
  * The possible values are:
3694
- * * `'flat'`
3695
- * * `'solid'` (default)
3696
- * * `'outline'`
3700
+ * * `flat`
3701
+ * * `solid` (default)
3702
+ * * `outline`
3697
3703
  * * `none`
3698
3704
  */
3699
3705
  set fillMode(fillMode) {
3700
- const fillModeValue = fillMode ? fillMode : 'solid';
3701
- this.handleClasses(fillModeValue, 'fillMode');
3702
- this._fillMode = fillModeValue;
3706
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$4;
3707
+ this.handleClasses(newFillMode, 'fillMode');
3708
+ this._fillMode = newFillMode;
3703
3709
  }
3704
3710
  get fillMode() {
3705
3711
  return this._fillMode;
@@ -4850,6 +4856,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
4850
4856
 
4851
4857
  const resolvedPromise = Promise.resolve(null);
4852
4858
  const FOCUSED$2 = 'k-focus';
4859
+ const DEFAULT_SIZE$5 = 'medium';
4860
+ const DEFAULT_ROUNDED$4 = 'medium';
4861
+ const DEFAULT_FILL_MODE$3 = 'solid';
4853
4862
  /**
4854
4863
  * Represents the [Kendo UI MaskedTextBox component for Angular]({% slug overview_maskedtextbox %}).
4855
4864
  *
@@ -5041,15 +5050,15 @@ class MaskedTextBoxComponent {
5041
5050
  * The size property specifies the padding of the MaskedTextBox internal input element
5042
5051
  * ([see example]({% slug appearance_maskedtextbox %}#toc-size)).
5043
5052
  * The possible values are:
5044
- * * `'small'`
5045
- * * `'medium'` (default)
5046
- * * `'large'`
5053
+ * * `small`
5054
+ * * `medium` (default)
5055
+ * * `large`
5047
5056
  * * `none`
5048
5057
  */
5049
5058
  set size(size) {
5050
- const sizeValue = size ? size : 'medium';
5051
- this.handleClasses(sizeValue, 'size');
5052
- this._size = sizeValue;
5059
+ const newSize = size ? size : DEFAULT_SIZE$5;
5060
+ this.handleClasses(newSize, 'size');
5061
+ this._size = newSize;
5053
5062
  }
5054
5063
  get size() {
5055
5064
  return this._size;
@@ -5058,15 +5067,15 @@ class MaskedTextBoxComponent {
5058
5067
  * The rounded property specifies the border radius of the MaskedTextBox
5059
5068
  * ([see example]({% slug appearance_maskedtextbox %}#toc-rounded)).
5060
5069
  * The possible values are:
5061
- * * `'small'`
5062
- * * `'medium'` (default)
5063
- * * `'large'`
5070
+ * * `small`
5071
+ * * `medium` (default)
5072
+ * * `large`
5064
5073
  * * `none`
5065
5074
  */
5066
5075
  set rounded(rounded) {
5067
- const roundedValue = rounded ? rounded : 'medium';
5068
- this.handleClasses(roundedValue, 'rounded');
5069
- this._rounded = roundedValue;
5076
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$4;
5077
+ this.handleClasses(newRounded, 'rounded');
5078
+ this._rounded = newRounded;
5070
5079
  }
5071
5080
  get rounded() {
5072
5081
  return this._rounded;
@@ -5081,9 +5090,9 @@ class MaskedTextBoxComponent {
5081
5090
  * * `none`
5082
5091
  */
5083
5092
  set fillMode(fillMode) {
5084
- const fillModeValue = fillMode ? fillMode : 'solid';
5085
- this.handleClasses(fillModeValue, 'fillMode');
5086
- this._fillMode = fillModeValue;
5093
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$3;
5094
+ this.handleClasses(newFillMode, 'fillMode');
5095
+ this._fillMode = newFillMode;
5087
5096
  }
5088
5097
  get fillMode() {
5089
5098
  return this._fillMode;
@@ -6072,6 +6081,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
6072
6081
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
6073
6082
 
6074
6083
  const FOCUSED$1 = 'k-focus';
6084
+ const DEFAULT_SIZE$4 = 'medium';
6085
+ const DEFAULT_ROUNDED$3 = 'medium';
6086
+ const DEFAULT_FILL_MODE$2 = 'solid';
6075
6087
  class TextBoxComponent {
6076
6088
  constructor(localizationService, ngZone, changeDetector, renderer, injector, hostElement) {
6077
6089
  this.localizationService = localizationService;
@@ -6275,15 +6287,15 @@ class TextBoxComponent {
6275
6287
  * ([see example]({% slug appearance_textbox %}#toc-size)).
6276
6288
  *
6277
6289
  * The possible values are:
6278
- * * `'small'`
6279
- * * `'medium'` (default)
6280
- * * `'large'`
6290
+ * * `small`
6291
+ * * `medium` (default)
6292
+ * * `large`
6281
6293
  * * `none`
6282
6294
  */
6283
6295
  set size(size) {
6284
- const sizeValue = size ? size : 'medium';
6285
- this.handleClasses(sizeValue, 'size');
6286
- this._size = sizeValue;
6296
+ const newSize = size ? size : DEFAULT_SIZE$4;
6297
+ this.handleClasses(newSize, 'size');
6298
+ this._size = newSize;
6287
6299
  }
6288
6300
  get size() {
6289
6301
  return this._size;
@@ -6293,16 +6305,16 @@ class TextBoxComponent {
6293
6305
  * ([see example]({% slug appearance_textbox %}#toc-rounded)).
6294
6306
  *
6295
6307
  * The possible values are:
6296
- * * `'small'`
6297
- * * `'medium'` (default)
6298
- * * `'large'`
6299
- * * `'full'`
6308
+ * * `small`
6309
+ * * `medium` (default)
6310
+ * * `large`
6311
+ * * `full`
6300
6312
  * * `none`
6301
6313
  */
6302
6314
  set rounded(rounded) {
6303
- const roundedValue = rounded ? rounded : 'medium';
6304
- this.handleClasses(roundedValue, 'rounded');
6305
- this._rounded = roundedValue;
6315
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$3;
6316
+ this.handleClasses(newRounded, 'rounded');
6317
+ this._rounded = newRounded;
6306
6318
  }
6307
6319
  get rounded() {
6308
6320
  return this._rounded;
@@ -6312,15 +6324,15 @@ class TextBoxComponent {
6312
6324
  * ([see example]({% slug appearance_textbox %}#toc-fillMode)).
6313
6325
  *
6314
6326
  * The possible values are:
6315
- * * `'flat'`
6316
- * * `'solid'` (default)
6317
- * * `'outline'`
6327
+ * * `flat`
6328
+ * * `solid` (default)
6329
+ * * `outline`
6318
6330
  * * `none`
6319
6331
  */
6320
6332
  set fillMode(fillMode) {
6321
- const fillModeValue = fillMode ? fillMode : 'solid';
6322
- this.handleClasses(fillModeValue, 'fillMode');
6323
- this._fillMode = fillModeValue;
6333
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$2;
6334
+ this.handleClasses(newFillMode, 'fillMode');
6335
+ this._fillMode = newFillMode;
6324
6336
  }
6325
6337
  get fillMode() {
6326
6338
  return this._fillMode;
@@ -7103,6 +7115,9 @@ const resizeClasses = {
7103
7115
  'auto': 'k-resize-none'
7104
7116
  };
7105
7117
  const FOCUSED = 'k-focus';
7118
+ const DEFAULT_SIZE$3 = 'medium';
7119
+ const DEFAULT_ROUNDED$2 = 'medium';
7120
+ const DEFAULT_FILL_MODE$1 = 'solid';
7106
7121
  /**
7107
7122
  * Represents the [Kendo UI TextArea component for Angular]({% slug overview_textarea %}).
7108
7123
  */
@@ -7256,15 +7271,15 @@ class TextAreaComponent extends TextFieldsBase {
7256
7271
  * ([see example]({% slug appearance_textarea %}#toc-size)).
7257
7272
  *
7258
7273
  * The possible values are:
7259
- * * `'small'`
7260
- * * `'medium'` (default)
7261
- * * `'large'`
7274
+ * * `small`
7275
+ * * `medium` (default)
7276
+ * * `large`
7262
7277
  * * `none`
7263
7278
  */
7264
7279
  set size(size) {
7265
- const sizeValue = size ? size : 'medium';
7266
- this.handleClasses(sizeValue, 'size');
7267
- this._size = sizeValue;
7280
+ const newSize = size ? size : DEFAULT_SIZE$3;
7281
+ this.handleClasses(newSize, 'size');
7282
+ this._size = newSize;
7268
7283
  }
7269
7284
  get size() {
7270
7285
  return this._size;
@@ -7274,15 +7289,15 @@ class TextAreaComponent extends TextFieldsBase {
7274
7289
  * ([see example]({% slug appearance_textarea %}#toc-rounded)).
7275
7290
  *
7276
7291
  * The possible values are:
7277
- * * `'small'`
7278
- * * `'medium'` (default)
7279
- * * `'large'`
7292
+ * * `small`
7293
+ * * `medium` (default)
7294
+ * * `large`
7280
7295
  * * `none`
7281
7296
  */
7282
7297
  set rounded(rounded) {
7283
- const roundedValue = rounded ? rounded : 'medium';
7284
- this.handleClasses(roundedValue, 'rounded');
7285
- this._rounded = roundedValue;
7298
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$2;
7299
+ this.handleClasses(newRounded, 'rounded');
7300
+ this._rounded = newRounded;
7286
7301
  }
7287
7302
  get rounded() {
7288
7303
  return this._rounded;
@@ -7292,15 +7307,15 @@ class TextAreaComponent extends TextFieldsBase {
7292
7307
  * ([see example]({% slug appearance_textarea %}#toc-fillMode)).
7293
7308
  *
7294
7309
  * The possible values are:
7295
- * * `'flat'`
7296
- * * `'solid'` (default)
7297
- * * `'outline'`
7310
+ * * `flat`
7311
+ * * `solid` (default)
7312
+ * * `outline`
7298
7313
  * * `none`
7299
7314
  */
7300
7315
  set fillMode(fillMode) {
7301
- const fillModeValue = fillMode ? fillMode : 'solid';
7302
- this.handleClasses(fillModeValue, 'fillMode');
7303
- this._fillMode = fillModeValue;
7316
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$1;
7317
+ this.handleClasses(newFillMode, 'fillMode');
7318
+ this._fillMode = newFillMode;
7304
7319
  }
7305
7320
  get fillMode() {
7306
7321
  return this._fillMode;
@@ -11232,6 +11247,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
11232
11247
  }] } });
11233
11248
 
11234
11249
  const DOM_FOCUS_EVENTS = ['focus', 'blur'];
11250
+ const DEFAULT_SIZE$2 = 'medium';
11251
+ const DEFAULT_ROUNDED$1 = 'medium';
11252
+ const DEFAULT_FILL_MODE = 'solid';
11235
11253
  /**
11236
11254
  * Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
11237
11255
  *
@@ -11441,15 +11459,15 @@ class ColorPickerComponent {
11441
11459
  * ([see example]({% slug appearance_colorpicker %}#toc-size)).
11442
11460
  *
11443
11461
  * The possible values are:
11444
- * * `'small'`
11445
- * * `'medium'` (default)
11446
- * * `'large'`
11462
+ * * `small`
11463
+ * * `medium` (default)
11464
+ * * `large`
11447
11465
  * * `none`
11448
11466
  */
11449
11467
  set size(size) {
11450
- const sizeValue = size ? size : 'medium';
11451
- this.handleClasses(sizeValue, 'size');
11452
- this._size = sizeValue;
11468
+ const newSize = size ? size : DEFAULT_SIZE$2;
11469
+ this.handleClasses(newSize, 'size');
11470
+ this._size = newSize;
11453
11471
  }
11454
11472
  get size() {
11455
11473
  return this._size;
@@ -11459,16 +11477,16 @@ class ColorPickerComponent {
11459
11477
  * ([see example]({% slug appearance_colorpicker %}#toc-rounded)).
11460
11478
  *
11461
11479
  * The possible values are:
11462
- * * `'small'`
11463
- * * `'medium'` (default)
11464
- * * `'large'`
11465
- * * `'full'`
11480
+ * * `small`
11481
+ * * `medium` (default)
11482
+ * * `large`
11483
+ * * `full`
11466
11484
  * * `none`
11467
11485
  */
11468
11486
  set rounded(rounded) {
11469
- const roundedValue = rounded ? rounded : 'medium';
11470
- this.handleClasses(roundedValue, 'rounded');
11471
- this._rounded = roundedValue;
11487
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$1;
11488
+ this.handleClasses(newRounded, 'rounded');
11489
+ this._rounded = newRounded;
11472
11490
  }
11473
11491
  get rounded() {
11474
11492
  return this._rounded;
@@ -11478,15 +11496,15 @@ class ColorPickerComponent {
11478
11496
  * ([see example]({% slug appearance_colorpicker %}#toc-fillMode)).
11479
11497
  *
11480
11498
  * The possible values are:
11481
- * * `'flat'`
11482
- * * `'solid'` (default)
11483
- * * `'outline'`
11499
+ * * `flat`
11500
+ * * `solid` (default)
11501
+ * * `outline`
11484
11502
  * * `none`
11485
11503
  */
11486
11504
  set fillMode(fillMode) {
11487
- const fillModeValue = fillMode ? fillMode : 'solid';
11488
- this.handleClasses(fillModeValue, 'fillMode');
11489
- this._fillMode = fillModeValue;
11505
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
11506
+ this.handleClasses(newFillMode, 'fillMode');
11507
+ this._fillMode = newFillMode;
11490
11508
  }
11491
11509
  get fillMode() {
11492
11510
  return this._fillMode;
@@ -12268,6 +12286,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
12268
12286
  }]
12269
12287
  }] });
12270
12288
 
12289
+ const DEFAULT_SIZE$1 = 'medium';
12290
+ const DEFAULT_ROUNDED = 'medium';
12271
12291
  /**
12272
12292
  * Represents the directive that renders the [Kendo UI CheckBox]({% slug overview_checkbox %}) input component.
12273
12293
  * The directive is placed on input type="checkbox" elements.
@@ -12290,15 +12310,15 @@ class CheckBoxDirective {
12290
12310
  * ([see example]({% slug appearance_checkboxdirective %}#toc-size)).
12291
12311
  *
12292
12312
  * The possible values are:
12293
- * * `'small'`
12294
- * * `'medium'` (default)
12295
- * * `'large'`
12313
+ * * `small`
12314
+ * * `medium` (default)
12315
+ * * `large`
12296
12316
  * * `none`
12297
12317
  */
12298
12318
  set size(size) {
12299
- const sizeValue = size ? size : 'medium';
12300
- this.handleClasses(sizeValue, 'size');
12301
- this._size = sizeValue;
12319
+ const newSize = size ? size : DEFAULT_SIZE$1;
12320
+ this.handleClasses(newSize, 'size');
12321
+ this._size = newSize;
12302
12322
  }
12303
12323
  get size() {
12304
12324
  return this._size;
@@ -12308,15 +12328,15 @@ class CheckBoxDirective {
12308
12328
  * ([see example]({% slug appearance_checkboxdirective %}#toc-rounded)).
12309
12329
  *
12310
12330
  * The possible values are:
12311
- * * `'small'`
12312
- * * `'medium'` (default)
12313
- * * `'large'`
12331
+ * * `small`
12332
+ * * `medium` (default)
12333
+ * * `large`
12314
12334
  * * `none`
12315
12335
  */
12316
12336
  set rounded(rounded) {
12317
- const roundedValue = rounded ? rounded : 'medium';
12318
- this.handleClasses(roundedValue, 'rounded');
12319
- this._rounded = roundedValue;
12337
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
12338
+ this.handleClasses(newRounded, 'rounded');
12339
+ this._rounded = newRounded;
12320
12340
  }
12321
12341
  get rounded() {
12322
12342
  return this._rounded;
@@ -12399,6 +12419,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
12399
12419
  }]
12400
12420
  }] });
12401
12421
 
12422
+ const DEFAULT_SIZE = 'medium';
12402
12423
  /**
12403
12424
  * Represents the directive that renders the [Kendo UI RadioButton]({% slug overview_checkbox %}) input component.
12404
12425
  * The directive is placed on input type="radio" elements.
@@ -12420,15 +12441,15 @@ class RadioButtonDirective {
12420
12441
  * The size property specifies the width and height of the RadioButton
12421
12442
  * ([see example]({% slug appearance_radiobuttondirective %}#toc-size)).
12422
12443
  * The possible values are:
12423
- * * `'small'`
12424
- * * `'medium'` (default)
12425
- * * `'large'`
12444
+ * * `small`
12445
+ * * `medium` (default)
12446
+ * * `large`
12426
12447
  * * `none`
12427
12448
  */
12428
12449
  set size(size) {
12429
- const sizeValue = size ? size : 'medium';
12430
- this.handleClasses(sizeValue, 'size');
12431
- this._size = sizeValue;
12450
+ const newSize = size ? size : DEFAULT_SIZE;
12451
+ this.handleClasses(newSize, 'size');
12452
+ this._size = newSize;
12432
12453
  }
12433
12454
  get size() {
12434
12455
  return this._size;
@@ -12725,6 +12746,9 @@ class FormFieldComponent {
12725
12746
  ngAfterViewInit() {
12726
12747
  this.setDescription();
12727
12748
  }
12749
+ ngAfterViewChecked() {
12750
+ this.updateDescription();
12751
+ }
12728
12752
  ngOnDestroy() {
12729
12753
  this.subscriptions.unsubscribe();
12730
12754
  }
@@ -12763,7 +12787,12 @@ class FormFieldComponent {
12763
12787
  controls.forEach((control) => {
12764
12788
  if (this.errorChildren.length > 0 || this.hintChildren.length > 0) {
12765
12789
  const ariaIds = this.generateDescriptionIds(control);
12766
- this.renderer.setAttribute(control, 'aria-describedby', ariaIds);
12790
+ if (ariaIds !== '') {
12791
+ this.renderer.setAttribute(control, 'aria-describedby', ariaIds);
12792
+ }
12793
+ else {
12794
+ this.renderer.removeAttribute(control, 'aria-describedby');
12795
+ }
12767
12796
  }
12768
12797
  });
12769
12798
  }
@@ -12779,8 +12808,10 @@ class FormFieldComponent {
12779
12808
  }
12780
12809
  generateDescriptionIds(control) {
12781
12810
  const ids = new Set();
12811
+ let errorAttribute = '';
12782
12812
  if (control.hasAttribute('aria-describedby')) {
12783
12813
  const attributes = control.getAttribute('aria-describedby').split(' ');
12814
+ errorAttribute = attributes.filter(attr => attr.includes('kendo-error-'))[0];
12784
12815
  attributes.forEach((attr) => {
12785
12816
  if (attr.includes('kendo-hint-') || attr.includes('kendo-error-')) {
12786
12817
  return;
@@ -12791,9 +12822,14 @@ class FormFieldComponent {
12791
12822
  this.hintChildren.forEach((hint) => {
12792
12823
  ids.add(hint.id);
12793
12824
  });
12794
- this.errorChildren.forEach((error) => {
12795
- ids.add(error.id);
12796
- });
12825
+ if (this.hasErrors) {
12826
+ this.errorChildren.forEach((error) => {
12827
+ ids.add(error.id);
12828
+ });
12829
+ }
12830
+ else {
12831
+ ids.delete(errorAttribute);
12832
+ }
12797
12833
  return Array.from(ids).join(' ');
12798
12834
  }
12799
12835
  showHintsInitial() {
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { AfterViewInit, ElementRef, Renderer2, QueryList } from '@angular/core';
5
+ import { AfterViewInit, ElementRef, Renderer2, QueryList, AfterViewChecked } from '@angular/core';
6
6
  import { NgControl } from '@angular/forms';
7
7
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { ShowOptions } from './models/show-options';
@@ -14,7 +14,7 @@ import * as i0 from "@angular/core";
14
14
  * Specifies a container for form-bound controls (Kendo controls or native HTML controls).
15
15
  * Applies styling and behavior rules.
16
16
  */
17
- export declare class FormFieldComponent implements AfterViewInit {
17
+ export declare class FormFieldComponent implements AfterViewInit, AfterViewChecked {
18
18
  private renderer;
19
19
  private localizationService;
20
20
  private hostElement;
@@ -79,6 +79,7 @@ export declare class FormFieldComponent implements AfterViewInit {
79
79
  private rtl;
80
80
  constructor(renderer: Renderer2, localizationService: LocalizationService, hostElement: ElementRef<HTMLElement>);
81
81
  ngAfterViewInit(): void;
82
+ ngAfterViewChecked(): void;
82
83
  ngOnDestroy(): void;
83
84
  private disabledKendoInput;
84
85
  private disabledControl;
@@ -4,10 +4,6 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Specifies the layout orientation of the form fields.
7
- *
8
- * The possible values are:
9
- *
10
- * * (Default) `vertical`
11
- * * `horizontal`
7
+ * @default `vertical`
12
8
  */
13
9
  export declare type Orientation = 'vertical' | 'horizontal';
@@ -58,9 +58,9 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
58
58
  * The size property specifies the padding of the MaskedTextBox internal input element
59
59
  * ([see example]({% slug appearance_maskedtextbox %}#toc-size)).
60
60
  * The possible values are:
61
- * * `'small'`
62
- * * `'medium'` (default)
63
- * * `'large'`
61
+ * * `small`
62
+ * * `medium` (default)
63
+ * * `large`
64
64
  * * `none`
65
65
  */
66
66
  set size(size: InputSize);
@@ -69,9 +69,9 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
69
69
  * The rounded property specifies the border radius of the MaskedTextBox
70
70
  * ([see example]({% slug appearance_maskedtextbox %}#toc-rounded)).
71
71
  * The possible values are:
72
- * * `'small'`
73
- * * `'medium'` (default)
74
- * * `'large'`
72
+ * * `small`
73
+ * * `medium` (default)
74
+ * * `large`
75
75
  * * `none`
76
76
  */
77
77
  set rounded(rounded: InputRounded);