@progress/kendo-angular-dateinputs 7.0.0-next.202204060919 → 7.0.0-next.202204120806

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.
@@ -14,7 +14,7 @@ import { PickerService } from '../common/picker.service';
14
14
  import { requiresZoneOnBlur, currentFocusTarget } from '../common/utils';
15
15
  import { TIME_PART } from './models/time-part.default';
16
16
  import { PreventableEvent } from '../preventable-event';
17
- import { noop, setTime, isWindowAvailable, getFillModeClass, getSizeClass, getRoundedClass } from '../util';
17
+ import { noop, setTime, isWindowAvailable, getFillModeClass, getSizeClass, getRoundedClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
18
18
  import { timeRangeValidator } from '../validators/time-range.validator';
19
19
  import { TOUCH_ENABLED } from '../touch-enabled';
20
20
  import { fromEvent } from 'rxjs';
@@ -203,9 +203,9 @@ export class TimePickerComponent {
203
203
  this._value = null;
204
204
  this._active = false;
205
205
  this.domEvents = [];
206
- this._size = 'medium';
207
- this._rounded = 'medium';
208
- this._fillMode = 'solid';
206
+ this._size = DEFAULT_SIZE;
207
+ this._rounded = DEFAULT_ROUNDED;
208
+ this._fillMode = DEFAULT_FILL_MODE;
209
209
  validatePackage(packageMetadata);
210
210
  this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
211
211
  this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
@@ -295,20 +295,21 @@ export class TimePickerComponent {
295
295
  * Sets the size of the component.
296
296
  *
297
297
  * The possible values are:
298
- * * `'small'`
299
- * * `'medium'` (Default)
300
- * * `'large'`
301
- * * `null`
298
+ * * `small`
299
+ * * `medium` (Default)
300
+ * * `large`
301
+ * * `none`
302
302
  *
303
303
  */
304
304
  set size(size) {
305
305
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
306
306
  this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
307
- if (size) {
308
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
309
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
307
+ const newSize = size ? size : DEFAULT_SIZE;
308
+ if (newSize !== 'none') {
309
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
310
+ this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
310
311
  }
311
- this._size = size;
312
+ this._size = newSize;
312
313
  }
313
314
  get size() {
314
315
  return this._size;
@@ -317,19 +318,20 @@ export class TimePickerComponent {
317
318
  * Sets the border radius of the component.
318
319
  *
319
320
  * The possible values are:
320
- * * `'small'`
321
- * * `'medium'` (Default)
322
- * * `'large'`
323
- * * `'full'`
324
- * * `null`
321
+ * * `small`
322
+ * * `medium` (Default)
323
+ * * `large`
324
+ * * `full`
325
+ * * `none`
325
326
  *
326
327
  */
327
328
  set rounded(rounded) {
328
329
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
329
- if (rounded) {
330
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
330
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
331
+ if (newRounded !== 'none') {
332
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
331
333
  }
332
- this._rounded = rounded;
334
+ this._rounded = newRounded;
333
335
  }
334
336
  get rounded() {
335
337
  return this._rounded;
@@ -338,22 +340,23 @@ export class TimePickerComponent {
338
340
  * Sets the fillMode of the component.
339
341
  *
340
342
  * The possible values are:
341
- * * `'solid'` (Default)
342
- * * `'flat'`
343
- * * `'outline'`
344
- * * `null`
343
+ * * `solid` (Default)
344
+ * * `flat`
345
+ * * `outline`
346
+ * * `none`
345
347
  *
346
348
  */
347
349
  set fillMode(fillMode) {
348
350
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
349
351
  this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
350
352
  this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
351
- if (fillMode) {
352
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
353
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
354
- this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${fillMode}-base`);
353
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
354
+ if (newFillMode !== 'none') {
355
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
356
+ this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
357
+ this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
355
358
  }
356
- this._fillMode = fillMode;
359
+ this._fillMode = newFillMode;
357
360
  }
358
361
  get fillMode() {
359
362
  return this._fillMode;
package/esm2015/util.js CHANGED
@@ -382,3 +382,15 @@ export const getFillModeClass = (component, fillMode) => {
382
382
  };
383
383
  return FILLMODE_CLASSES[fillMode];
384
384
  };
385
+ /**
386
+ * @hidden
387
+ */
388
+ export const DEFAULT_ROUNDED = 'medium';
389
+ /**
390
+ * @hidden
391
+ */
392
+ export const DEFAULT_SIZE = 'medium';
393
+ /**
394
+ * @hidden
395
+ */
396
+ export const DEFAULT_FILL_MODE = 'solid';
@@ -28,7 +28,7 @@ const packageMetadata = {
28
28
  name: '@progress/kendo-angular-dateinputs',
29
29
  productName: 'Kendo UI for Angular',
30
30
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
31
- publishDate: 1649236592,
31
+ publishDate: 1649750526,
32
32
  version: '',
33
33
  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'
34
34
  };
@@ -497,6 +497,18 @@ const getFillModeClass = (component, fillMode) => {
497
497
  };
498
498
  return FILLMODE_CLASSES[fillMode];
499
499
  };
500
+ /**
501
+ * @hidden
502
+ */
503
+ const DEFAULT_ROUNDED = 'medium';
504
+ /**
505
+ * @hidden
506
+ */
507
+ const DEFAULT_SIZE = 'medium';
508
+ /**
509
+ * @hidden
510
+ */
511
+ const DEFAULT_FILL_MODE = 'solid';
500
512
 
501
513
  const EMPTY_DATA$3 = [[]];
502
514
  const CELLS_LENGTH$3 = 4;
@@ -7140,9 +7152,9 @@ class DateInputComponent {
7140
7152
  this.onControlChange = noop$2;
7141
7153
  this.onControlTouched = noop$2;
7142
7154
  this.onValidatorChange = noop$2;
7143
- this._size = 'medium';
7144
- this._rounded = 'medium';
7145
- this._fillMode = 'solid';
7155
+ this._size = DEFAULT_SIZE;
7156
+ this._rounded = DEFAULT_ROUNDED;
7157
+ this._fillMode = DEFAULT_FILL_MODE;
7146
7158
  this.symbolsMap = this.dateSymbolMap();
7147
7159
  this.updateFormatSections();
7148
7160
  if (this.pickerService) {
@@ -7178,18 +7190,19 @@ class DateInputComponent {
7178
7190
  * Sets the size of the component.
7179
7191
  *
7180
7192
  * The possible values are:
7181
- * * `'small'`
7182
- * * `'medium'` (Default)
7183
- * * `'large'`
7184
- * * `null`
7193
+ * * `small`
7194
+ * * `medium` (Default)
7195
+ * * `large`
7196
+ * * `none`
7185
7197
  *
7186
7198
  */
7187
7199
  set size(size) {
7188
7200
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
7189
- if (size) {
7190
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
7201
+ const newSize = size ? size : DEFAULT_SIZE;
7202
+ if (newSize !== 'none') {
7203
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
7191
7204
  }
7192
- this._size = size;
7205
+ this._size = newSize;
7193
7206
  }
7194
7207
  get size() {
7195
7208
  return this._size;
@@ -7198,19 +7211,20 @@ class DateInputComponent {
7198
7211
  * Sets the border radius of the component.
7199
7212
  *
7200
7213
  * The possible values are:
7201
- * * `'small'`
7202
- * * `'medium'` (Default)
7203
- * * `'large'`
7204
- * * `'full'`
7205
- * * `null`
7214
+ * * `small`
7215
+ * * `medium` (Default)
7216
+ * * `large`
7217
+ * * `full`
7218
+ * * `none`
7206
7219
  *
7207
7220
  */
7208
7221
  set rounded(rounded) {
7209
7222
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
7210
- if (rounded) {
7211
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
7223
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
7224
+ if (newRounded !== 'none') {
7225
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
7212
7226
  }
7213
- this._rounded = rounded;
7227
+ this._rounded = newRounded;
7214
7228
  }
7215
7229
  get rounded() {
7216
7230
  return this._rounded;
@@ -7219,22 +7233,23 @@ class DateInputComponent {
7219
7233
  * Sets the fillMode of the component.
7220
7234
  *
7221
7235
  * The possible values are:
7222
- * * `'solid'` (Default)
7223
- * * `'flat'`
7224
- * * `'outline'`
7225
- * * `null`
7236
+ * * `solid` (Default)
7237
+ * * `flat`
7238
+ * * `outline`
7239
+ * * `none`
7226
7240
  *
7227
7241
  */
7228
7242
  set fillMode(fillMode) {
7229
7243
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
7230
- if (fillMode) {
7231
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
7244
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
7245
+ if (newFillMode !== 'none') {
7246
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
7232
7247
  if (this.spinners && this.spinup && this.spindown) {
7233
- this.setSpinnerFill(this.spinup.nativeElement, fillMode, this.fillMode);
7234
- this.setSpinnerFill(this.spindown.nativeElement, fillMode, this.fillMode);
7248
+ this.setSpinnerFill(this.spinup.nativeElement, newFillMode, this.fillMode);
7249
+ this.setSpinnerFill(this.spindown.nativeElement, newFillMode, this.fillMode);
7235
7250
  }
7236
7251
  }
7237
- this._fillMode = fillMode;
7252
+ this._fillMode = newFillMode;
7238
7253
  }
7239
7254
  get fillMode() {
7240
7255
  return this._fillMode;
@@ -7843,7 +7858,7 @@ class DateInputComponent {
7843
7858
  }
7844
7859
  }
7845
7860
  setSpinnerFill(spinner, fill, oldFill) {
7846
- if (oldFill) {
7861
+ if (oldFill !== 'none') {
7847
7862
  this.renderer.removeClass(spinner, `k-button-${oldFill}`);
7848
7863
  this.renderer.removeClass(spinner, `k-button-${oldFill}-base`);
7849
7864
  }
@@ -7851,16 +7866,16 @@ class DateInputComponent {
7851
7866
  this.renderer.addClass(spinner, `k-button-${fill}-base`);
7852
7867
  }
7853
7868
  setComponentClasses() {
7854
- if (this.size) {
7869
+ if (this.size !== 'none') {
7855
7870
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
7856
7871
  }
7857
- if (this.rounded) {
7872
+ if (this.rounded !== 'none') {
7858
7873
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
7859
7874
  }
7860
- if (this.fillMode) {
7875
+ if (this.fillMode !== 'none') {
7861
7876
  this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
7862
7877
  }
7863
- if (this.spinners) {
7878
+ if (this.spinners && this.fillMode !== 'none') {
7864
7879
  this.setSpinnerFill(this.spinup.nativeElement, this.fillMode);
7865
7880
  this.setSpinnerFill(this.spindown.nativeElement, this.fillMode);
7866
7881
  }
@@ -8465,9 +8480,9 @@ class DatePickerComponent {
8465
8480
  this.incompleteValidator = noop$2;
8466
8481
  this.resolvedPromise = Promise.resolve(null);
8467
8482
  this.domEvents = [];
8468
- this._size = 'medium';
8469
- this._rounded = 'medium';
8470
- this._fillMode = 'solid';
8483
+ this._size = DEFAULT_SIZE;
8484
+ this._rounded = DEFAULT_ROUNDED;
8485
+ this._fillMode = DEFAULT_FILL_MODE;
8471
8486
  validatePackage(packageMetadata);
8472
8487
  this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
8473
8488
  this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
@@ -8573,20 +8588,21 @@ class DatePickerComponent {
8573
8588
  * Sets the size of the component.
8574
8589
  *
8575
8590
  * The possible values are:
8576
- * * `'small'`
8577
- * * `'medium'` (Default)
8578
- * * `'large'`
8579
- * * `null`
8591
+ * * `small`
8592
+ * * `medium` (Default)
8593
+ * * `large`
8594
+ * * `none`
8580
8595
  *
8581
8596
  */
8582
8597
  set size(size) {
8583
8598
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
8584
8599
  this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
8585
- if (size) {
8586
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
8587
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
8600
+ const newSize = size ? size : DEFAULT_SIZE;
8601
+ if (newSize !== 'none') {
8602
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
8603
+ this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
8588
8604
  }
8589
- this._size = size;
8605
+ this._size = newSize;
8590
8606
  }
8591
8607
  get size() {
8592
8608
  return this._size;
@@ -8595,19 +8611,20 @@ class DatePickerComponent {
8595
8611
  * Sets the border radius of the component.
8596
8612
  *
8597
8613
  * The possible values are:
8598
- * * `'small'`
8599
- * * `'medium'` (Default)
8600
- * * `'large'`
8601
- * * `'full'`
8602
- * * `null`
8614
+ * * `small`
8615
+ * * `medium` (Default)
8616
+ * * `large`
8617
+ * * `full`
8618
+ * * `none`
8603
8619
  *
8604
8620
  */
8605
8621
  set rounded(rounded) {
8606
8622
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
8607
- if (rounded) {
8608
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
8623
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
8624
+ if (newRounded !== 'none') {
8625
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
8609
8626
  }
8610
- this._rounded = rounded;
8627
+ this._rounded = newRounded;
8611
8628
  }
8612
8629
  get rounded() {
8613
8630
  return this._rounded;
@@ -8616,22 +8633,23 @@ class DatePickerComponent {
8616
8633
  * Sets the fillMode of the component.
8617
8634
  *
8618
8635
  * The possible values are:
8619
- * * `'solid'` (Default)
8620
- * * `'flat'`
8621
- * * `'outline'`
8622
- * * `null`
8636
+ * * `solid` (Default)
8637
+ * * `flat`
8638
+ * * `outline`
8639
+ * * `none`
8623
8640
  *
8624
8641
  */
8625
8642
  set fillMode(fillMode) {
8626
8643
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
8627
8644
  this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
8628
8645
  this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
8629
- if (fillMode) {
8630
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
8631
- this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${fillMode}-base`);
8632
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
8646
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
8647
+ if (newFillMode !== 'none') {
8648
+ this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
8649
+ this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
8650
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
8633
8651
  }
8634
- this._fillMode = fillMode;
8652
+ this._fillMode = newFillMode;
8635
8653
  }
8636
8654
  get fillMode() {
8637
8655
  return this._fillMode;
@@ -9110,9 +9128,9 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
9110
9128
  [min]="min"
9111
9129
  [max]="max"
9112
9130
  [incompleteDateValidation]="incompleteDateValidation"
9113
- [fillMode]="null"
9114
- [rounded]="null"
9115
- [size]="null"
9131
+ fillMode="none"
9132
+ rounded="none"
9133
+ size="none"
9116
9134
  [value]="value"
9117
9135
  (valueChange)="handleInputChange($event)"
9118
9136
  ></kendo-dateinput>
@@ -9221,9 +9239,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
9221
9239
  [min]="min"
9222
9240
  [max]="max"
9223
9241
  [incompleteDateValidation]="incompleteDateValidation"
9224
- [fillMode]="null"
9225
- [rounded]="null"
9226
- [size]="null"
9242
+ fillMode="none"
9243
+ rounded="none"
9244
+ size="none"
9227
9245
  [value]="value"
9228
9246
  (valueChange)="handleInputChange($event)"
9229
9247
  ></kendo-dateinput>
@@ -11343,9 +11361,9 @@ class TimePickerComponent {
11343
11361
  this._value = null;
11344
11362
  this._active = false;
11345
11363
  this.domEvents = [];
11346
- this._size = 'medium';
11347
- this._rounded = 'medium';
11348
- this._fillMode = 'solid';
11364
+ this._size = DEFAULT_SIZE;
11365
+ this._rounded = DEFAULT_ROUNDED;
11366
+ this._fillMode = DEFAULT_FILL_MODE;
11349
11367
  validatePackage(packageMetadata);
11350
11368
  this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
11351
11369
  this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
@@ -11435,20 +11453,21 @@ class TimePickerComponent {
11435
11453
  * Sets the size of the component.
11436
11454
  *
11437
11455
  * The possible values are:
11438
- * * `'small'`
11439
- * * `'medium'` (Default)
11440
- * * `'large'`
11441
- * * `null`
11456
+ * * `small`
11457
+ * * `medium` (Default)
11458
+ * * `large`
11459
+ * * `none`
11442
11460
  *
11443
11461
  */
11444
11462
  set size(size) {
11445
11463
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
11446
11464
  this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
11447
- if (size) {
11448
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
11449
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
11465
+ const newSize = size ? size : DEFAULT_SIZE;
11466
+ if (newSize !== 'none') {
11467
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
11468
+ this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
11450
11469
  }
11451
- this._size = size;
11470
+ this._size = newSize;
11452
11471
  }
11453
11472
  get size() {
11454
11473
  return this._size;
@@ -11457,19 +11476,20 @@ class TimePickerComponent {
11457
11476
  * Sets the border radius of the component.
11458
11477
  *
11459
11478
  * The possible values are:
11460
- * * `'small'`
11461
- * * `'medium'` (Default)
11462
- * * `'large'`
11463
- * * `'full'`
11464
- * * `null`
11479
+ * * `small`
11480
+ * * `medium` (Default)
11481
+ * * `large`
11482
+ * * `full`
11483
+ * * `none`
11465
11484
  *
11466
11485
  */
11467
11486
  set rounded(rounded) {
11468
11487
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
11469
- if (rounded) {
11470
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
11488
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
11489
+ if (newRounded !== 'none') {
11490
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
11471
11491
  }
11472
- this._rounded = rounded;
11492
+ this._rounded = newRounded;
11473
11493
  }
11474
11494
  get rounded() {
11475
11495
  return this._rounded;
@@ -11478,22 +11498,23 @@ class TimePickerComponent {
11478
11498
  * Sets the fillMode of the component.
11479
11499
  *
11480
11500
  * The possible values are:
11481
- * * `'solid'` (Default)
11482
- * * `'flat'`
11483
- * * `'outline'`
11484
- * * `null`
11501
+ * * `solid` (Default)
11502
+ * * `flat`
11503
+ * * `outline`
11504
+ * * `none`
11485
11505
  *
11486
11506
  */
11487
11507
  set fillMode(fillMode) {
11488
11508
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
11489
11509
  this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
11490
11510
  this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
11491
- if (fillMode) {
11492
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
11493
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
11494
- this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${fillMode}-base`);
11511
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
11512
+ if (newFillMode !== 'none') {
11513
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
11514
+ this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
11515
+ this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
11495
11516
  }
11496
- this._fillMode = fillMode;
11517
+ this._fillMode = newFillMode;
11497
11518
  }
11498
11519
  get fillMode() {
11499
11520
  return this._fillMode;
@@ -12488,9 +12509,9 @@ class DateTimePickerComponent {
12488
12509
  this.disabledDatesValidateFn = noop$2;
12489
12510
  this.incompleteValidator = noop$2;
12490
12511
  this.subscriptions = new Subscription();
12491
- this._size = 'medium';
12492
- this._rounded = 'medium';
12493
- this._fillMode = 'solid';
12512
+ this._size = DEFAULT_SIZE;
12513
+ this._rounded = DEFAULT_ROUNDED;
12514
+ this._fillMode = DEFAULT_FILL_MODE;
12494
12515
  validatePackage(packageMetadata);
12495
12516
  }
12496
12517
  /**
@@ -12656,20 +12677,21 @@ class DateTimePickerComponent {
12656
12677
  * Sets the size of the component.
12657
12678
  *
12658
12679
  * The possible values are:
12659
- * * `'small'`
12660
- * * `'medium'` (Default)
12661
- * * `'large'`
12662
- * * `null`
12680
+ * * `small`
12681
+ * * `medium` (Default)
12682
+ * * `large`
12683
+ * * `none`
12663
12684
  *
12664
12685
  */
12665
12686
  set size(size) {
12666
12687
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
12667
12688
  this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
12668
- if (size) {
12669
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
12670
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
12689
+ const newSize = size ? size : DEFAULT_SIZE;
12690
+ if (newSize !== 'none') {
12691
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
12692
+ this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
12671
12693
  }
12672
- this._size = size;
12694
+ this._size = newSize;
12673
12695
  }
12674
12696
  get size() {
12675
12697
  return this._size;
@@ -12678,19 +12700,20 @@ class DateTimePickerComponent {
12678
12700
  * Sets the border radius of the component.
12679
12701
  *
12680
12702
  * The possible values are:
12681
- * * `'small'`
12682
- * * `'medium'` (Default)
12683
- * * `'large'`
12684
- * * `'full'`
12685
- * * `null`
12703
+ * * `small`
12704
+ * * `medium` (Default)
12705
+ * * `large`
12706
+ * * `full`
12707
+ * * `none`
12686
12708
  *
12687
12709
  */
12688
12710
  set rounded(rounded) {
12689
12711
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
12690
- if (rounded) {
12691
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
12712
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
12713
+ if (newRounded !== 'none') {
12714
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
12692
12715
  }
12693
- this._rounded = rounded;
12716
+ this._rounded = newRounded;
12694
12717
  }
12695
12718
  get rounded() {
12696
12719
  return this._rounded;
@@ -12699,22 +12722,23 @@ class DateTimePickerComponent {
12699
12722
  * Sets the fillMode of the component.
12700
12723
  *
12701
12724
  * The possible values are:
12702
- * * `'solid'` (Default)
12703
- * * `'flat'`
12704
- * * `'outline'`
12705
- * * `null`
12725
+ * * `solid` (Default)
12726
+ * * `flat`
12727
+ * * `outline`
12728
+ * * `none`
12706
12729
  *
12707
12730
  */
12708
12731
  set fillMode(fillMode) {
12709
12732
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
12710
12733
  this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
12711
12734
  this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
12712
- if (fillMode) {
12713
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
12714
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
12715
- this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${fillMode}-base`);
12735
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
12736
+ if (newFillMode !== 'none') {
12737
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
12738
+ this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
12739
+ this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
12716
12740
  }
12717
- this._fillMode = fillMode;
12741
+ this._fillMode = newFillMode;
12718
12742
  }
12719
12743
  get fillMode() {
12720
12744
  return this._fillMode;
@@ -14621,6 +14645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
14621
14645
  */
14622
14646
  class DateRangeComponent {
14623
14647
  constructor() {
14648
+ this.wrapperClass = true;
14624
14649
  /**
14625
14650
  * @hidden
14626
14651
  */
@@ -14643,7 +14668,7 @@ class DateRangeComponent {
14643
14668
  }
14644
14669
  }
14645
14670
  DateRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14646
- DateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateRangeComponent, selector: "kendo-daterange", providers: [DateRangeService], queries: [{ propertyName: "contentPopup", predicate: DateRangePopupComponent }], ngImport: i0, template: `
14671
+ DateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateRangeComponent, selector: "kendo-daterange", host: { properties: { "class.k-daterangepicker": "this.wrapperClass" } }, providers: [DateRangeService], queries: [{ propertyName: "contentPopup", predicate: DateRangePopupComponent }], ngImport: i0, template: `
14647
14672
  <ng-content></ng-content>
14648
14673
  <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>
14649
14674
  `, isInline: true, components: [{ type: DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: ["animate", "anchor", "anchorAlign", "appendTo", "collision", "popupAlign", "margin"], outputs: ["open", "close", "blur", "focus", "cancel"], exportAs: ["kendo-daterange-popup"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
@@ -14657,7 +14682,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
14657
14682
  <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>
14658
14683
  `
14659
14684
  }]
14660
- }], ctorParameters: function () { return []; }, propDecorators: { contentPopup: [{
14685
+ }], ctorParameters: function () { return []; }, propDecorators: { wrapperClass: [{
14686
+ type: HostBinding,
14687
+ args: ['class.k-daterangepicker']
14688
+ }], contentPopup: [{
14661
14689
  type: ContentChildren,
14662
14690
  args: [DateRangePopupComponent]
14663
14691
  }] } });