@progress/kendo-angular-dateinputs 7.0.0-next.202204011538 → 7.0.0-next.202204111442

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.
@@ -6,9 +6,9 @@
6
6
  * Represents the possible fillMode options of the DateInput.
7
7
  *
8
8
  * The possible values are:
9
- * - `'solid'` (Default)
10
- * - `'flat'`
11
- * - `'outline'`
12
- * - `null`
9
+ * - `solid` (Default)
10
+ * - `flat`
11
+ * - `outline`
12
+ * - `none`
13
13
  */
14
- export declare type DateInputFillMode = 'solid' | 'flat' | 'outline';
14
+ export declare type DateInputFillMode = 'solid' | 'flat' | 'outline' | 'none';
@@ -6,10 +6,10 @@
6
6
  * Represents the possible rounded options of the DateInput.
7
7
  *
8
8
  * The possible values are:
9
- * - `'small'`
10
- * - `'medium'` (Default)
11
- * - `'large'`
12
- * - `'full'`
13
- * - `null`
9
+ * - `small`
10
+ * - `medium` (Default)
11
+ * - `large`
12
+ * - `full`
13
+ * - `none`
14
14
  */
15
- export declare type DateInputRounded = 'small' | 'medium' | 'large' | 'full';
15
+ export declare type DateInputRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
@@ -6,9 +6,9 @@
6
6
  * Represents the possible size options of the DateInput.
7
7
  *
8
8
  * The possible values are:
9
- * - `'small'`
10
- * - `'medium'` (Default)
11
- * - `'large'`
12
- * - `null`
9
+ * - `small`
10
+ * - `medium` (Default)
11
+ * - `large`
12
+ * - `none`
13
13
  */
14
- export declare type DateInputSize = 'small' | 'medium' | 'large';
14
+ export declare type DateInputSize = 'small' | 'medium' | 'large' | 'none';
@@ -214,10 +214,10 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
214
214
  * Sets the size of the component.
215
215
  *
216
216
  * The possible values are:
217
- * * `'small'`
218
- * * `'medium'` (Default)
219
- * * `'large'`
220
- * * `null`
217
+ * * `small`
218
+ * * `medium` (Default)
219
+ * * `large`
220
+ * * `none`
221
221
  *
222
222
  */
223
223
  set size(size: DateInputSize);
@@ -226,11 +226,11 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
226
226
  * Sets the border radius of the component.
227
227
  *
228
228
  * The possible values are:
229
- * * `'small'`
230
- * * `'medium'` (Default)
231
- * * `'large'`
232
- * * `'full'`
233
- * * `null`
229
+ * * `small`
230
+ * * `medium` (Default)
231
+ * * `large`
232
+ * * `full`
233
+ * * `none`
234
234
  *
235
235
  */
236
236
  set rounded(rounded: DateInputRounded);
@@ -239,10 +239,10 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
239
239
  * Sets the fillMode of the component.
240
240
  *
241
241
  * The possible values are:
242
- * * `'solid'` (Default)
243
- * * `'flat'`
244
- * * `'outline'`
245
- * * `null`
242
+ * * `solid` (Default)
243
+ * * `flat`
244
+ * * `outline`
245
+ * * `none`
246
246
  *
247
247
  */
248
248
  set fillMode(fillMode: DateInputFillMode);
@@ -326,10 +326,10 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
326
326
  * Sets the size of the component.
327
327
  *
328
328
  * The possible values are:
329
- * * `'small'`
330
- * * `'medium'` (Default)
331
- * * `'large'`
332
- * * `null`
329
+ * * `small`
330
+ * * `medium` (Default)
331
+ * * `large`
332
+ * * `none`
333
333
  *
334
334
  */
335
335
  set size(size: DateInputSize);
@@ -338,11 +338,11 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
338
338
  * Sets the border radius of the component.
339
339
  *
340
340
  * The possible values are:
341
- * * `'small'`
342
- * * `'medium'` (Default)
343
- * * `'large'`
344
- * * `'full'`
345
- * * `null`
341
+ * * `small`
342
+ * * `medium` (Default)
343
+ * * `large`
344
+ * * `full`
345
+ * * `none`
346
346
  *
347
347
  */
348
348
  set rounded(rounded: DateInputRounded);
@@ -351,10 +351,10 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
351
351
  * Sets the fillMode of the component.
352
352
  *
353
353
  * The possible values are:
354
- * * `'solid'` (Default)
355
- * * `'flat'`
356
- * * `'outline'`
357
- * * `null`
354
+ * * `solid` (Default)
355
+ * * `flat`
356
+ * * `outline`
357
+ * * `none`
358
358
  *
359
359
  */
360
360
  set fillMode(fillMode: DateInputFillMode);
@@ -24,6 +24,7 @@ import * as i0 from "@angular/core";
24
24
  * ```
25
25
  */
26
26
  export declare class DateRangeComponent implements AfterContentInit, OnDestroy {
27
+ wrapperClass: boolean;
27
28
  /**
28
29
  * @hidden
29
30
  */
@@ -271,10 +271,10 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
271
271
  * Sets the size of the component.
272
272
  *
273
273
  * The possible values are:
274
- * * `'small'`
275
- * * `'medium'` (Default)
276
- * * `'large'`
277
- * * `null`
274
+ * * `small`
275
+ * * `medium` (Default)
276
+ * * `large`
277
+ * * `none`
278
278
  *
279
279
  */
280
280
  set size(size: DateInputSize);
@@ -283,11 +283,11 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
283
283
  * Sets the border radius of the component.
284
284
  *
285
285
  * The possible values are:
286
- * * `'small'`
287
- * * `'medium'` (Default)
288
- * * `'large'`
289
- * * `'full'`
290
- * * `null`
286
+ * * `small`
287
+ * * `medium` (Default)
288
+ * * `large`
289
+ * * `full`
290
+ * * `none`
291
291
  *
292
292
  */
293
293
  set rounded(rounded: DateInputRounded);
@@ -296,10 +296,10 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
296
296
  * Sets the fillMode of the component.
297
297
  *
298
298
  * The possible values are:
299
- * * `'solid'` (Default)
300
- * * `'flat'`
301
- * * `'outline'`
302
- * * `null`
299
+ * * `solid` (Default)
300
+ * * `flat`
301
+ * * `outline`
302
+ * * `none`
303
303
  *
304
304
  */
305
305
  set fillMode(fillMode: DateInputFillMode);
@@ -13,7 +13,7 @@ import { packageMetadata } from '../package-metadata';
13
13
  import { addMonths, cloneDate, createDate, getDate, isEqual, lastDayOfMonth } from '@progress/kendo-date-math';
14
14
  import { isDocumentAvailable, hasObservers, KendoInput, Keys, guid } from '@progress/kendo-angular-common';
15
15
  import { Arrow } from './arrow.enum';
16
- import { approximateStringMatching, noop, isInRange, dateInRange, isValidRange, setTime, cropTwoDigitYear, setYears, msPaddingFromFormat, millisecondDigitsInFormat, millisecondStepFor, getSizeClass, getRoundedClass, getFillModeClass } from '../util';
16
+ import { approximateStringMatching, noop, isInRange, dateInRange, isValidRange, setTime, cropTwoDigitYear, setYears, msPaddingFromFormat, millisecondDigitsInFormat, millisecondStepFor, getSizeClass, getRoundedClass, getFillModeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
17
17
  import { closest } from '../common/dom-queries';
18
18
  import { requiresZoneOnBlur, isPresent } from '../common/utils';
19
19
  import * as i0 from "@angular/core";
@@ -656,9 +656,9 @@ export class DateInputComponent {
656
656
  this.onControlChange = noop;
657
657
  this.onControlTouched = noop;
658
658
  this.onValidatorChange = noop;
659
- this._size = 'medium';
660
- this._rounded = 'medium';
661
- this._fillMode = 'solid';
659
+ this._size = DEFAULT_SIZE;
660
+ this._rounded = DEFAULT_ROUNDED;
661
+ this._fillMode = DEFAULT_FILL_MODE;
662
662
  this.symbolsMap = this.dateSymbolMap();
663
663
  this.updateFormatSections();
664
664
  if (this.pickerService) {
@@ -694,18 +694,19 @@ export class DateInputComponent {
694
694
  * Sets the size of the component.
695
695
  *
696
696
  * The possible values are:
697
- * * `'small'`
698
- * * `'medium'` (Default)
699
- * * `'large'`
700
- * * `null`
697
+ * * `small`
698
+ * * `medium` (Default)
699
+ * * `large`
700
+ * * `none`
701
701
  *
702
702
  */
703
703
  set size(size) {
704
704
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
705
- if (size) {
706
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
705
+ const newSize = size ? size : DEFAULT_SIZE;
706
+ if (newSize !== 'none') {
707
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
707
708
  }
708
- this._size = size;
709
+ this._size = newSize;
709
710
  }
710
711
  get size() {
711
712
  return this._size;
@@ -714,19 +715,20 @@ export class DateInputComponent {
714
715
  * Sets the border radius of the component.
715
716
  *
716
717
  * The possible values are:
717
- * * `'small'`
718
- * * `'medium'` (Default)
719
- * * `'large'`
720
- * * `'full'`
721
- * * `null`
718
+ * * `small`
719
+ * * `medium` (Default)
720
+ * * `large`
721
+ * * `full`
722
+ * * `none`
722
723
  *
723
724
  */
724
725
  set rounded(rounded) {
725
726
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
726
- if (rounded) {
727
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
727
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
728
+ if (newRounded !== 'none') {
729
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
728
730
  }
729
- this._rounded = rounded;
731
+ this._rounded = newRounded;
730
732
  }
731
733
  get rounded() {
732
734
  return this._rounded;
@@ -735,22 +737,23 @@ export class DateInputComponent {
735
737
  * Sets the fillMode of the component.
736
738
  *
737
739
  * The possible values are:
738
- * * `'solid'` (Default)
739
- * * `'flat'`
740
- * * `'outline'`
741
- * * `null`
740
+ * * `solid` (Default)
741
+ * * `flat`
742
+ * * `outline`
743
+ * * `none`
742
744
  *
743
745
  */
744
746
  set fillMode(fillMode) {
745
747
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
746
- if (fillMode) {
747
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
748
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
749
+ if (newFillMode !== 'none') {
750
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
748
751
  if (this.spinners && this.spinup && this.spindown) {
749
- this.setSpinnerFill(this.spinup.nativeElement, fillMode, this.fillMode);
750
- this.setSpinnerFill(this.spindown.nativeElement, fillMode, this.fillMode);
752
+ this.setSpinnerFill(this.spinup.nativeElement, newFillMode, this.fillMode);
753
+ this.setSpinnerFill(this.spindown.nativeElement, newFillMode, this.fillMode);
751
754
  }
752
755
  }
753
- this._fillMode = fillMode;
756
+ this._fillMode = newFillMode;
754
757
  }
755
758
  get fillMode() {
756
759
  return this._fillMode;
@@ -1359,7 +1362,7 @@ export class DateInputComponent {
1359
1362
  }
1360
1363
  }
1361
1364
  setSpinnerFill(spinner, fill, oldFill) {
1362
- if (oldFill) {
1365
+ if (oldFill !== 'none') {
1363
1366
  this.renderer.removeClass(spinner, `k-button-${oldFill}`);
1364
1367
  this.renderer.removeClass(spinner, `k-button-${oldFill}-base`);
1365
1368
  }
@@ -1367,16 +1370,16 @@ export class DateInputComponent {
1367
1370
  this.renderer.addClass(spinner, `k-button-${fill}-base`);
1368
1371
  }
1369
1372
  setComponentClasses() {
1370
- if (this.size) {
1373
+ if (this.size !== 'none') {
1371
1374
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
1372
1375
  }
1373
- if (this.rounded) {
1376
+ if (this.rounded !== 'none') {
1374
1377
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
1375
1378
  }
1376
- if (this.fillMode) {
1379
+ if (this.fillMode !== 'none') {
1377
1380
  this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
1378
1381
  }
1379
- if (this.spinners) {
1382
+ if (this.spinners && this.fillMode !== 'none') {
1380
1383
  this.setSpinnerFill(this.spinup.nativeElement, this.fillMode);
1381
1384
  this.setSpinnerFill(this.spindown.nativeElement, this.fillMode);
1382
1385
  }
@@ -24,7 +24,7 @@ import { HeaderTitleTemplateDirective } from '../calendar/templates/header-title
24
24
  import { NavigationItemTemplateDirective } from '../calendar/templates/navigation-item-template.directive';
25
25
  import { PickerService } from '../common/picker.service';
26
26
  import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
27
- import { noop, isValidRange, setTime, isWindowAvailable, isTabExitingCalendar, getSizeClass, getRoundedClass, getFillModeClass } from '../util';
27
+ import { noop, isValidRange, setTime, isWindowAvailable, isTabExitingCalendar, getSizeClass, getRoundedClass, getFillModeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
28
28
  import { TOUCH_ENABLED } from '../touch-enabled';
29
29
  import { requiresZoneOnBlur, currentFocusTarget } from '../common/utils';
30
30
  import { fromEvent } from 'rxjs';
@@ -280,9 +280,9 @@ export class DatePickerComponent {
280
280
  this.incompleteValidator = noop;
281
281
  this.resolvedPromise = Promise.resolve(null);
282
282
  this.domEvents = [];
283
- this._size = 'medium';
284
- this._rounded = 'medium';
285
- this._fillMode = 'solid';
283
+ this._size = DEFAULT_SIZE;
284
+ this._rounded = DEFAULT_ROUNDED;
285
+ this._fillMode = DEFAULT_FILL_MODE;
286
286
  validatePackage(packageMetadata);
287
287
  this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
288
288
  this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
@@ -388,20 +388,21 @@ export class DatePickerComponent {
388
388
  * Sets the size of the component.
389
389
  *
390
390
  * The possible values are:
391
- * * `'small'`
392
- * * `'medium'` (Default)
393
- * * `'large'`
394
- * * `null`
391
+ * * `small`
392
+ * * `medium` (Default)
393
+ * * `large`
394
+ * * `none`
395
395
  *
396
396
  */
397
397
  set size(size) {
398
398
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
399
399
  this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
400
- if (size) {
401
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
402
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
400
+ const newSize = size ? size : DEFAULT_SIZE;
401
+ if (newSize !== 'none') {
402
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
403
+ this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
403
404
  }
404
- this._size = size;
405
+ this._size = newSize;
405
406
  }
406
407
  get size() {
407
408
  return this._size;
@@ -410,19 +411,20 @@ export class DatePickerComponent {
410
411
  * Sets the border radius of the component.
411
412
  *
412
413
  * The possible values are:
413
- * * `'small'`
414
- * * `'medium'` (Default)
415
- * * `'large'`
416
- * * `'full'`
417
- * * `null`
414
+ * * `small`
415
+ * * `medium` (Default)
416
+ * * `large`
417
+ * * `full`
418
+ * * `none`
418
419
  *
419
420
  */
420
421
  set rounded(rounded) {
421
422
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
422
- if (rounded) {
423
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
423
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
424
+ if (newRounded !== 'none') {
425
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
424
426
  }
425
- this._rounded = rounded;
427
+ this._rounded = newRounded;
426
428
  }
427
429
  get rounded() {
428
430
  return this._rounded;
@@ -431,22 +433,23 @@ export class DatePickerComponent {
431
433
  * Sets the fillMode of the component.
432
434
  *
433
435
  * The possible values are:
434
- * * `'solid'` (Default)
435
- * * `'flat'`
436
- * * `'outline'`
437
- * * `null`
436
+ * * `solid` (Default)
437
+ * * `flat`
438
+ * * `outline`
439
+ * * `none`
438
440
  *
439
441
  */
440
442
  set fillMode(fillMode) {
441
443
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
442
444
  this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
443
445
  this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
444
- if (fillMode) {
445
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
446
- this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${fillMode}-base`);
447
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
446
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
447
+ if (newFillMode !== 'none') {
448
+ this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
449
+ this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
450
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
448
451
  }
449
- this._fillMode = fillMode;
452
+ this._fillMode = newFillMode;
450
453
  }
451
454
  get fillMode() {
452
455
  return this._fillMode;
@@ -925,9 +928,9 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
925
928
  [min]="min"
926
929
  [max]="max"
927
930
  [incompleteDateValidation]="incompleteDateValidation"
928
- [fillMode]="null"
929
- [rounded]="null"
930
- [size]="null"
931
+ fillMode="none"
932
+ rounded="none"
933
+ size="none"
931
934
  [value]="value"
932
935
  (valueChange)="handleInputChange($event)"
933
936
  ></kendo-dateinput>
@@ -1036,9 +1039,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1036
1039
  [min]="min"
1037
1040
  [max]="max"
1038
1041
  [incompleteDateValidation]="incompleteDateValidation"
1039
- [fillMode]="null"
1040
- [rounded]="null"
1041
- [size]="null"
1042
+ fillMode="none"
1043
+ rounded="none"
1044
+ size="none"
1042
1045
  [value]="value"
1043
1046
  (valueChange)="handleInputChange($event)"
1044
1047
  ></kendo-dateinput>
@@ -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 { Component, ContentChildren } from '@angular/core';
5
+ import { Component, ContentChildren, HostBinding } from '@angular/core';
6
6
  import { validatePackage } from '@progress/kendo-licensing';
7
7
  import { packageMetadata } from '../package-metadata';
8
8
  import { DateRangePopupComponent } from './date-range-popup.component';
@@ -31,6 +31,7 @@ import * as i2 from "@angular/common";
31
31
  */
32
32
  export class DateRangeComponent {
33
33
  constructor() {
34
+ this.wrapperClass = true;
34
35
  /**
35
36
  * @hidden
36
37
  */
@@ -53,7 +54,7 @@ export class DateRangeComponent {
53
54
  }
54
55
  }
55
56
  DateRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
56
- 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: `
57
+ 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: `
57
58
  <ng-content></ng-content>
58
59
  <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>
59
60
  `, isInline: true, components: [{ type: i1.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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
@@ -67,7 +68,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
67
68
  <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>
68
69
  `
69
70
  }]
70
- }], ctorParameters: function () { return []; }, propDecorators: { contentPopup: [{
71
+ }], ctorParameters: function () { return []; }, propDecorators: { wrapperClass: [{
72
+ type: HostBinding,
73
+ args: ['class.k-daterangepicker']
74
+ }], contentPopup: [{
71
75
  type: ContentChildren,
72
76
  args: [DateRangePopupComponent]
73
77
  }] } });
@@ -14,7 +14,7 @@ import { packageMetadata } from '../package-metadata';
14
14
  import { PickerService } from '../common/picker.service';
15
15
  import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
16
16
  import { isPresent } from '../common/utils';
17
- import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass } from '../util';
17
+ import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
18
18
  import { PreventableEvent } from '../preventable-event';
19
19
  import { minValidator } from '../validators/min.validator';
20
20
  import { maxValidator } from '../validators/max.validator';
@@ -228,9 +228,9 @@ export class DateTimePickerComponent {
228
228
  this.disabledDatesValidateFn = noop;
229
229
  this.incompleteValidator = noop;
230
230
  this.subscriptions = new Subscription();
231
- this._size = 'medium';
232
- this._rounded = 'medium';
233
- this._fillMode = 'solid';
231
+ this._size = DEFAULT_SIZE;
232
+ this._rounded = DEFAULT_ROUNDED;
233
+ this._fillMode = DEFAULT_FILL_MODE;
234
234
  validatePackage(packageMetadata);
235
235
  }
236
236
  /**
@@ -396,20 +396,21 @@ export class DateTimePickerComponent {
396
396
  * Sets the size of the component.
397
397
  *
398
398
  * The possible values are:
399
- * * `'small'`
400
- * * `'medium'` (Default)
401
- * * `'large'`
402
- * * `null`
399
+ * * `small`
400
+ * * `medium` (Default)
401
+ * * `large`
402
+ * * `none`
403
403
  *
404
404
  */
405
405
  set size(size) {
406
406
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
407
407
  this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
408
- if (size) {
409
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
410
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
408
+ const newSize = size ? size : DEFAULT_SIZE;
409
+ if (newSize !== 'none') {
410
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
411
+ this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
411
412
  }
412
- this._size = size;
413
+ this._size = newSize;
413
414
  }
414
415
  get size() {
415
416
  return this._size;
@@ -418,19 +419,20 @@ export class DateTimePickerComponent {
418
419
  * Sets the border radius of the component.
419
420
  *
420
421
  * The possible values are:
421
- * * `'small'`
422
- * * `'medium'` (Default)
423
- * * `'large'`
424
- * * `'full'`
425
- * * `null`
422
+ * * `small`
423
+ * * `medium` (Default)
424
+ * * `large`
425
+ * * `full`
426
+ * * `none`
426
427
  *
427
428
  */
428
429
  set rounded(rounded) {
429
430
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
430
- if (rounded) {
431
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
431
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
432
+ if (newRounded !== 'none') {
433
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
432
434
  }
433
- this._rounded = rounded;
435
+ this._rounded = newRounded;
434
436
  }
435
437
  get rounded() {
436
438
  return this._rounded;
@@ -439,22 +441,23 @@ export class DateTimePickerComponent {
439
441
  * Sets the fillMode of the component.
440
442
  *
441
443
  * The possible values are:
442
- * * `'solid'` (Default)
443
- * * `'flat'`
444
- * * `'outline'`
445
- * * `null`
444
+ * * `solid` (Default)
445
+ * * `flat`
446
+ * * `outline`
447
+ * * `none`
446
448
  *
447
449
  */
448
450
  set fillMode(fillMode) {
449
451
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
450
452
  this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
451
453
  this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
452
- if (fillMode) {
453
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
454
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
455
- this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${fillMode}-base`);
454
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
455
+ if (newFillMode !== 'none') {
456
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
457
+ this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
458
+ this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
456
459
  }
457
- this._fillMode = fillMode;
460
+ this._fillMode = newFillMode;
458
461
  }
459
462
  get fillMode() {
460
463
  return this._fillMode;
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1648827368,
12
+ publishDate: 1649687993,
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
  };