@progress/kendo-angular-dateinputs 16.0.0-develop.2 → 16.0.0-develop.21

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.
Files changed (154) hide show
  1. package/calendar/calendar.component.d.ts +42 -8
  2. package/calendar/footer.component.d.ts +1 -1
  3. package/calendar/for.directive.d.ts +1 -1
  4. package/calendar/header.component.d.ts +3 -2
  5. package/calendar/horizontal-view-list.component.d.ts +4 -3
  6. package/calendar/localization/calendar-custom-messages.component.d.ts +1 -1
  7. package/calendar/localization/calendar-localized-messages.directive.d.ts +1 -1
  8. package/calendar/localization/calendar-messages.d.ts +1 -1
  9. package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +1 -1
  10. package/calendar/localization/multiview-calendar-localized-messages.directive.d.ts +1 -1
  11. package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
  12. package/calendar/models/cell-context.interface.d.ts +4 -0
  13. package/calendar/models/selection-range.interface.d.ts +2 -2
  14. package/calendar/models/selection.d.ts +11 -1
  15. package/calendar/multiview-calendar.component.d.ts +57 -8
  16. package/calendar/navigation.component.d.ts +1 -1
  17. package/calendar/templates/cell-template.directive.d.ts +1 -1
  18. package/calendar/templates/century-cell-template.directive.d.ts +1 -1
  19. package/calendar/templates/decade-cell-template.directive.d.ts +1 -1
  20. package/calendar/templates/footer-template.directiv/320/265.d.ts +1 -1
  21. package/calendar/templates/header-template.directive.d.ts +1 -1
  22. package/calendar/templates/header-title-template.directive.d.ts +1 -1
  23. package/calendar/templates/month-cell-template.directive.d.ts +1 -1
  24. package/calendar/templates/navigation-item-template.directive.d.ts +1 -1
  25. package/calendar/templates/weeknumber-cell-template.directive.d.ts +1 -1
  26. package/calendar/templates/year-cell-template.directive.d.ts +1 -1
  27. package/calendar/view-list.component.d.ts +9 -1
  28. package/calendar/view.component.d.ts +2 -1
  29. package/common/utils.d.ts +4 -0
  30. package/dateinput/dateinput.component.d.ts +13 -1
  31. package/dateinput/localization/dateinput-custom-messages.component.d.ts +1 -1
  32. package/dateinput/localization/dateinput-localized-messages.directive.d.ts +1 -1
  33. package/dateinput/localization/messages.d.ts +5 -1
  34. package/datepicker/datepicker.component.d.ts +7 -2
  35. package/datepicker/localization/datepicker-custom-messages.component.d.ts +1 -1
  36. package/datepicker/localization/datepicker-localized-messages.directive.d.ts +1 -1
  37. package/datepicker/localization/messages.d.ts +5 -1
  38. package/daterange/date-range-end-input.directive.d.ts +1 -1
  39. package/daterange/date-range-input.d.ts +1 -1
  40. package/daterange/date-range-popup-template.directive.d.ts +1 -1
  41. package/daterange/date-range-popup.component.d.ts +30 -2
  42. package/daterange/date-range-selection.directive.d.ts +1 -1
  43. package/daterange/date-range-start-input.directive.d.ts +1 -1
  44. package/daterange/date-range.component.d.ts +16 -1
  45. package/daterange/localization/daterange-popup-custom-messages.component.d.ts +1 -1
  46. package/daterange/localization/daterange-popup-localized-messages.directive.d.ts +1 -1
  47. package/daterange/localization/messages.d.ts +1 -1
  48. package/datetimepicker/datetimepicker.component.d.ts +12 -1
  49. package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +1 -1
  50. package/datetimepicker/localization/localized-messages.directive.d.ts +1 -1
  51. package/datetimepicker/localization/messages.d.ts +5 -1
  52. package/esm2020/calendar/calendar-common.module.mjs +4 -4
  53. package/esm2020/calendar/calendar.component.mjs +256 -66
  54. package/esm2020/calendar/calendar.module.mjs +12 -14
  55. package/esm2020/calendar/calendars.module.mjs +5 -7
  56. package/esm2020/calendar/footer.component.mjs +6 -6
  57. package/esm2020/calendar/for.directive.mjs +3 -3
  58. package/esm2020/calendar/header.component.mjs +44 -26
  59. package/esm2020/calendar/horizontal-view-list.component.mjs +16 -12
  60. package/esm2020/calendar/localization/calendar-custom-messages.component.mjs +3 -3
  61. package/esm2020/calendar/localization/calendar-localized-messages.directive.mjs +3 -3
  62. package/esm2020/calendar/localization/calendar-messages.mjs +3 -3
  63. package/esm2020/calendar/localization/multiview-calendar-custom-messages.component.mjs +3 -3
  64. package/esm2020/calendar/localization/multiview-calendar-localized-messages.directive.mjs +3 -3
  65. package/esm2020/calendar/localization/multiview-calendar-messages.mjs +3 -3
  66. package/esm2020/calendar/models/selection.mjs +34 -1
  67. package/esm2020/calendar/multiview-calendar.component.mjs +268 -56
  68. package/esm2020/calendar/multiview-calendar.module.mjs +10 -12
  69. package/esm2020/calendar/navigation.component.mjs +8 -8
  70. package/esm2020/calendar/services/bus-view.service.mjs +3 -3
  71. package/esm2020/calendar/services/century-view.service.mjs +29 -8
  72. package/esm2020/calendar/services/decade-view.service.mjs +29 -8
  73. package/esm2020/calendar/services/disabled-dates.service.mjs +3 -3
  74. package/esm2020/calendar/services/dom.service.mjs +5 -5
  75. package/esm2020/calendar/services/month-view.service.mjs +29 -8
  76. package/esm2020/calendar/services/navigation.service.mjs +3 -3
  77. package/esm2020/calendar/services/scroll-sync.service.mjs +3 -3
  78. package/esm2020/calendar/services/selection.service.mjs +3 -3
  79. package/esm2020/calendar/services/weeknames.service.mjs +3 -3
  80. package/esm2020/calendar/services/year-view.service.mjs +29 -8
  81. package/esm2020/calendar/templates/cell-template.directive.mjs +3 -3
  82. package/esm2020/calendar/templates/century-cell-template.directive.mjs +3 -3
  83. package/esm2020/calendar/templates/decade-cell-template.directive.mjs +3 -3
  84. package/esm2020/calendar/templates/footer-template.directiv/320/265.mjs +3 -3
  85. package/esm2020/calendar/templates/header-template.directive.mjs +3 -3
  86. package/esm2020/calendar/templates/header-title-template.directive.mjs +3 -3
  87. package/esm2020/calendar/templates/month-cell-template.directive.mjs +3 -3
  88. package/esm2020/calendar/templates/navigation-item-template.directive.mjs +3 -3
  89. package/esm2020/calendar/templates/weeknumber-cell-template.directive.mjs +3 -3
  90. package/esm2020/calendar/templates/year-cell-template.directive.mjs +3 -3
  91. package/esm2020/calendar/templates.module.mjs +4 -4
  92. package/esm2020/calendar/view-list.component.mjs +31 -10
  93. package/esm2020/calendar/view.component.mjs +9 -6
  94. package/esm2020/common/adaptive.module.mjs +4 -4
  95. package/esm2020/common/utils.mjs +5 -1
  96. package/esm2020/dateinput/dateinput.component.mjs +70 -13
  97. package/esm2020/dateinput/dateinput.module.mjs +4 -4
  98. package/esm2020/dateinput/localization/dateinput-custom-messages.component.mjs +3 -3
  99. package/esm2020/dateinput/localization/dateinput-localized-messages.directive.mjs +3 -3
  100. package/esm2020/dateinput/localization/messages.mjs +5 -3
  101. package/esm2020/dateinputs.module.mjs +4 -4
  102. package/esm2020/datepicker/datepicker.component.mjs +45 -23
  103. package/esm2020/datepicker/datepicker.module.mjs +12 -14
  104. package/esm2020/datepicker/localization/datepicker-custom-messages.component.mjs +3 -3
  105. package/esm2020/datepicker/localization/datepicker-localized-messages.directive.mjs +3 -3
  106. package/esm2020/datepicker/localization/messages.mjs +5 -3
  107. package/esm2020/daterange/date-range-end-input.directive.mjs +3 -3
  108. package/esm2020/daterange/date-range-input.mjs +3 -3
  109. package/esm2020/daterange/date-range-popup-template.directive.mjs +3 -3
  110. package/esm2020/daterange/date-range-popup.component.mjs +75 -21
  111. package/esm2020/daterange/date-range-selection.directive.mjs +3 -3
  112. package/esm2020/daterange/date-range-start-input.directive.mjs +3 -3
  113. package/esm2020/daterange/date-range.component.mjs +12 -10
  114. package/esm2020/daterange/date-range.module.mjs +4 -4
  115. package/esm2020/daterange/date-range.service.mjs +3 -4
  116. package/esm2020/daterange/localization/daterange-popup-custom-messages.component.mjs +3 -3
  117. package/esm2020/daterange/localization/daterange-popup-localized-messages.directive.mjs +3 -3
  118. package/esm2020/daterange/localization/messages.mjs +3 -3
  119. package/esm2020/datetimepicker/datetimepicker.component.mjs +56 -23
  120. package/esm2020/datetimepicker/datetimepicker.module.mjs +14 -16
  121. package/esm2020/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +3 -3
  122. package/esm2020/datetimepicker/localization/localized-messages.directive.mjs +3 -3
  123. package/esm2020/datetimepicker/localization/messages.mjs +5 -3
  124. package/esm2020/package-metadata.mjs +2 -2
  125. package/esm2020/timepicker/localization/messages.mjs +5 -3
  126. package/esm2020/timepicker/localization/timepicker-custom-messages.component.mjs +3 -3
  127. package/esm2020/timepicker/localization/timepicker-localized-messages.directive.mjs +3 -3
  128. package/esm2020/timepicker/localization/timeselector-custom-messages.component.mjs +3 -3
  129. package/esm2020/timepicker/localization/timeselector-localized-messages.directive.mjs +3 -3
  130. package/esm2020/timepicker/services/dayperiod.service.mjs +3 -3
  131. package/esm2020/timepicker/services/dom.service.mjs +3 -3
  132. package/esm2020/timepicker/services/hours.service.mjs +3 -3
  133. package/esm2020/timepicker/services/milliseconds.service.mjs +3 -3
  134. package/esm2020/timepicker/services/minutes.service.mjs +3 -3
  135. package/esm2020/timepicker/services/seconds.service.mjs +3 -3
  136. package/esm2020/timepicker/timelist.component.mjs +6 -6
  137. package/esm2020/timepicker/timepicker.component.mjs +42 -17
  138. package/esm2020/timepicker/timepicker.module.mjs +4 -4
  139. package/esm2020/timepicker/timeselector.component.mjs +29 -14
  140. package/esm2020/virtualization/virtualization.component.mjs +4 -4
  141. package/esm2020/virtualization/virtualization.module.mjs +4 -4
  142. package/fesm2015/progress-kendo-angular-dateinputs.mjs +1547 -763
  143. package/fesm2020/progress-kendo-angular-dateinputs.mjs +1538 -766
  144. package/package.json +17 -20
  145. package/timepicker/localization/messages.d.ts +5 -1
  146. package/timepicker/localization/timepicker-custom-messages.component.d.ts +1 -1
  147. package/timepicker/localization/timepicker-localized-messages.directive.d.ts +1 -1
  148. package/timepicker/localization/timeselector-custom-messages.component.d.ts +1 -1
  149. package/timepicker/localization/timeselector-localized-messages.directive.d.ts +1 -1
  150. package/timepicker/timelist.component.d.ts +1 -1
  151. package/timepicker/timepicker.component.d.ts +7 -1
  152. package/timepicker/timeselector.component.d.ts +2 -1
  153. package/virtualization/virtualization.component.d.ts +1 -1
  154. package/progress-kendo-angular-dateinputs.d.ts +0 -9
@@ -42,16 +42,14 @@ import * as i0 from "@angular/core";
42
42
  */
43
43
  export class CalendarsModule {
44
44
  }
45
- CalendarsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
- CalendarsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarsModule, imports: [CalendarModule,
45
+ CalendarsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
+ CalendarsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, imports: [CalendarModule,
47
47
  MultiViewCalendarModule], exports: [CalendarModule,
48
48
  MultiViewCalendarModule] });
49
- CalendarsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarsModule, imports: [[
50
- CalendarModule,
51
- MultiViewCalendarModule
52
- ], CalendarModule,
49
+ CalendarsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, imports: [CalendarModule,
50
+ MultiViewCalendarModule, CalendarModule,
53
51
  MultiViewCalendarModule] });
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarsModule, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarsModule, decorators: [{
55
53
  type: NgModule,
56
54
  args: [{
57
55
  exports: [
@@ -7,8 +7,8 @@ import { getToday } from '../util';
7
7
  import { IntlService } from '@progress/kendo-angular-intl';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@progress/kendo-angular-intl";
10
- import * as i2 from "@progress/kendo-angular-buttons";
11
- import * as i3 from "@angular/common";
10
+ import * as i2 from "@angular/common";
11
+ import * as i3 from "@progress/kendo-angular-buttons";
12
12
  /**
13
13
  * @hidden
14
14
  */
@@ -19,8 +19,8 @@ export class FooterComponent {
19
19
  this.getToday = getToday;
20
20
  }
21
21
  }
22
- FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FooterComponent, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
23
- FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FooterComponent, selector: "kendo-calendar-footer", inputs: { footerTemplateRef: "footerTemplateRef", activeViewValue: "activeViewValue", currentDate: "currentDate" }, host: { properties: { "class.k-calendar-footer": "this.showFooter" } }, ngImport: i0, template: `
22
+ FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FooterComponent, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Component });
23
+ FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FooterComponent, selector: "kendo-calendar-footer", inputs: { footerTemplateRef: "footerTemplateRef", activeViewValue: "activeViewValue", currentDate: "currentDate" }, host: { properties: { "class.k-calendar-footer": "this.showFooter" } }, ngImport: i0, template: `
24
24
  <ng-template *ngIf="footerTemplateRef; else defaultRendering"
25
25
  [ngTemplateOutlet]="footerTemplateRef"
26
26
  [ngTemplateOutletContext]="{ activeView: activeViewValue, date: currentDate }">
@@ -35,8 +35,8 @@ FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
35
35
  {{intl.formatDate(getToday(), 'D')}}
36
36
  </button>
37
37
  </ng-template>
38
- `, isInline: true, components: [{ type: i2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FooterComponent, decorators: [{
38
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FooterComponent, decorators: [{
40
40
  type: Component,
41
41
  args: [{
42
42
  selector: 'kendo-calendar-footer',
@@ -84,9 +84,9 @@ export class KForOf {
84
84
  }
85
85
  }
86
86
  }
87
- KForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: KForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
88
- KForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: KForOf, selector: "[kFor][kForOf]", inputs: { kForOf: "kForOf", kForTrackBy: "kForTrackBy", kForTemplate: "kForTemplate" }, usesOnChanges: true, ngImport: i0 });
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: KForOf, decorators: [{
87
+ KForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: KForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
88
+ KForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: KForOf, selector: "[kFor][kForOf]", inputs: { kForOf: "kForOf", kForTrackBy: "kForTrackBy", kForTemplate: "kForTemplate" }, usesOnChanges: true, ngImport: i0 });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: KForOf, decorators: [{
90
90
  type: Directive,
91
91
  args: [{ selector: '[kFor][kForOf]' }]
92
92
  }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }]; }, propDecorators: { kForOf: [{
@@ -18,9 +18,9 @@ import * as i1 from "./services/bus-view.service";
18
18
  import * as i2 from "@progress/kendo-angular-l10n";
19
19
  import * as i3 from "@progress/kendo-angular-intl";
20
20
  import * as i4 from "./services/disabled-dates.service";
21
- import * as i5 from "@progress/kendo-angular-buttons";
22
- import * as i6 from "@angular/common";
23
- import * as i7 from "@progress/kendo-angular-common";
21
+ import * as i5 from "@angular/common";
22
+ import * as i6 from "@progress/kendo-angular-common";
23
+ import * as i7 from "@progress/kendo-angular-buttons";
24
24
  /**
25
25
  * @hidden
26
26
  */
@@ -54,9 +54,6 @@ export class HeaderComponent {
54
54
  this.getComponentClass = true;
55
55
  this.subscriptions = new Subscription();
56
56
  }
57
- get horizontalHostClass() {
58
- return this.orientation === 'horizontal';
59
- }
60
57
  get verticalHostClass() {
61
58
  return this.orientation === 'vertical';
62
59
  }
@@ -130,19 +127,24 @@ export class HeaderComponent {
130
127
  this.cdr.markForCheck();
131
128
  }
132
129
  }
133
- HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i3.IntlService }, { token: i4.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
134
- HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: HeaderComponent, selector: "kendo-calendar-header", inputs: { activeView: "activeView", currentDate: "currentDate", min: "min", max: "max", rangeLength: "rangeLength", titleTemplateRef: "titleTemplateRef", headerTemplateRef: "headerTemplateRef", isPrevDisabled: "isPrevDisabled", isNextDisabled: "isNextDisabled", showNavigationButtons: "showNavigationButtons", orientation: "orientation", id: "id" }, outputs: { todayButtonClick: "todayButtonClick", prevButtonClick: "prevButtonClick", nextButtonClick: "nextButtonClick" }, host: { properties: { "class.k-calendar-header": "this.getComponentClass", "class.k-hstack": "this.horizontalHostClass", "class.k-vstack": "this.verticalHostClass" } }, usesOnChanges: true, ngImport: i0, template: `
130
+ HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i3.IntlService }, { token: i4.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
131
+ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HeaderComponent, selector: "kendo-calendar-header", inputs: { activeView: "activeView", currentDate: "currentDate", min: "min", max: "max", rangeLength: "rangeLength", titleTemplateRef: "titleTemplateRef", headerTemplateRef: "headerTemplateRef", isPrevDisabled: "isPrevDisabled", isNextDisabled: "isNextDisabled", showNavigationButtons: "showNavigationButtons", orientation: "orientation", id: "id", size: "size" }, outputs: { todayButtonClick: "todayButtonClick", prevButtonClick: "prevButtonClick", nextButtonClick: "nextButtonClick" }, host: { properties: { "class.k-calendar-header": "this.getComponentClass", "class.k-vstack": "this.verticalHostClass" } }, usesOnChanges: true, ngImport: i0, template: `
135
132
  <ng-template *ngIf="headerTemplateRef; else defaultRendering"
136
133
  [ngTemplateOutlet]="headerTemplateRef"
137
134
  [ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
138
135
  </ng-template>
139
136
  <ng-template #defaultRendering>
140
- <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title"
137
+ <button
138
+ kendoButton
139
+ class="k-calendar-title"
141
140
  role="button"
142
141
  [id]="id"
142
+ type="button"
143
+ fillMode="flat"
144
+ [size]="size"
145
+ themeColor="primary"
143
146
  tabindex="-1"
144
- [class.k-disabled]="!navigate"
145
- [attr.aria-disabled]="isDisabled()"
147
+ [disabled]="!navigate"
146
148
  [kendoEventsOutsideAngular]="{
147
149
  click: handleNavigation
148
150
  }"
@@ -154,13 +156,14 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
154
156
  [ngTemplateOutlet]="titleTemplateRef"
155
157
  [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
156
158
  ></ng-template>
157
- </span>
159
+ </button>
158
160
  <span class="k-spacer"></span>
159
161
  <span class="k-calendar-nav k-hstack">
160
162
  <button
161
163
  *ngIf="showNavigationButtons"
162
164
  kendoButton
163
165
  fillMode="flat"
166
+ [size]="size"
164
167
  [svgIcon]="chevronLeftIcon"
165
168
  icon="chevron-left"
166
169
  tabindex="-1"
@@ -173,9 +176,14 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
173
176
  >
174
177
  </button>
175
178
  <button
176
- class="k-calendar-nav-today k-button k-button-md k-button-flat k-button-flat-primary k-rounded-md"
179
+ kendoButton
180
+ class="k-calendar-nav-today"
177
181
  tabindex="-1"
178
- [class.k-disabled]="!todayAvailable"
182
+ themeColor="primary"
183
+ fillMode="flat"
184
+ role="link"
185
+ [size]="size"
186
+ [disabled]="!todayAvailable"
179
187
  [kendoEventsOutsideAngular]="{
180
188
  click: handleTodayClick
181
189
  }"
@@ -201,8 +209,8 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
201
209
  </button>
202
210
  </span>
203
211
  </ng-template>
204
- `, isInline: true, components: [{ type: i5.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i7.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HeaderComponent, decorators: [{
212
+ `, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i7.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, decorators: [{
206
214
  type: Component,
207
215
  args: [{
208
216
  selector: 'kendo-calendar-header',
@@ -212,12 +220,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
212
220
  [ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
213
221
  </ng-template>
214
222
  <ng-template #defaultRendering>
215
- <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title"
223
+ <button
224
+ kendoButton
225
+ class="k-calendar-title"
216
226
  role="button"
217
227
  [id]="id"
228
+ type="button"
229
+ fillMode="flat"
230
+ [size]="size"
231
+ themeColor="primary"
218
232
  tabindex="-1"
219
- [class.k-disabled]="!navigate"
220
- [attr.aria-disabled]="isDisabled()"
233
+ [disabled]="!navigate"
221
234
  [kendoEventsOutsideAngular]="{
222
235
  click: handleNavigation
223
236
  }"
@@ -229,13 +242,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
229
242
  [ngTemplateOutlet]="titleTemplateRef"
230
243
  [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
231
244
  ></ng-template>
232
- </span>
245
+ </button>
233
246
  <span class="k-spacer"></span>
234
247
  <span class="k-calendar-nav k-hstack">
235
248
  <button
236
249
  *ngIf="showNavigationButtons"
237
250
  kendoButton
238
251
  fillMode="flat"
252
+ [size]="size"
239
253
  [svgIcon]="chevronLeftIcon"
240
254
  icon="chevron-left"
241
255
  tabindex="-1"
@@ -248,9 +262,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
248
262
  >
249
263
  </button>
250
264
  <button
251
- class="k-calendar-nav-today k-button k-button-md k-button-flat k-button-flat-primary k-rounded-md"
265
+ kendoButton
266
+ class="k-calendar-nav-today"
252
267
  tabindex="-1"
253
- [class.k-disabled]="!todayAvailable"
268
+ themeColor="primary"
269
+ fillMode="flat"
270
+ role="link"
271
+ [size]="size"
272
+ [disabled]="!todayAvailable"
254
273
  [kendoEventsOutsideAngular]="{
255
274
  click: handleTodayClick
256
275
  }"
@@ -276,7 +295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
276
295
  </button>
277
296
  </span>
278
297
  </ng-template>
279
- `
298
+ `
280
299
  }]
281
300
  }], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: i3.IntlService }, { type: i4.DisabledDatesService }]; }, propDecorators: { activeView: [{
282
301
  type: Input
@@ -302,6 +321,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
302
321
  type: Input
303
322
  }], id: [{
304
323
  type: Input
324
+ }], size: [{
325
+ type: Input
305
326
  }], todayButtonClick: [{
306
327
  type: Output
307
328
  }], prevButtonClick: [{
@@ -311,9 +332,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
311
332
  }], getComponentClass: [{
312
333
  type: HostBinding,
313
334
  args: ["class.k-calendar-header"]
314
- }], horizontalHostClass: [{
315
- type: HostBinding,
316
- args: ["class.k-hstack"]
317
335
  }], verticalHostClass: [{
318
336
  type: HostBinding,
319
337
  args: ["class.k-vstack"]
@@ -18,9 +18,9 @@ import * as i0 from "@angular/core";
18
18
  import * as i1 from "./services/bus-view.service";
19
19
  import * as i2 from "@progress/kendo-angular-intl";
20
20
  import * as i3 from "./services/weeknames.service";
21
- import * as i4 from "./view.component";
22
- import * as i5 from "@angular/common";
23
- import * as i6 from "./for.directive";
21
+ import * as i4 from "@angular/common";
22
+ import * as i5 from "./for.directive";
23
+ import * as i6 from "./view.component";
24
24
  const DEFAULT_VIEWS_LENGTH = 2;
25
25
  /**
26
26
  * @hidden
@@ -280,12 +280,12 @@ export class HorizontalViewListComponent {
280
280
  }
281
281
  }
282
282
  }
283
- HorizontalViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HorizontalViewListComponent, deps: [{ token: i1.BusViewService }, { token: i2.IntlService }, { token: i3.WeekNamesService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
284
- HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: { showOtherMonthDays: "showOtherMonthDays", cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", activeRangeEnd: "activeRangeEnd", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectionRange: "selectionRange", selectedDates: "selectedDates", views: "views", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", orientation: "orientation", activeDescendant: "activeDescendant", tabIndex: "tabIndex", disabled: "disabled", id: "id", weekDaysFormat: "weekDaysFormat", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", activeDateChange: "activeDateChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { listeners: { "focus": "handleMultiViewCalendarFocus()", "blur": "handleMultiViewCalendarBlur($event)" }, properties: { "class.k-calendar-view": "this.getComponentClass", "class.k-align-items-start": "this.getComponentClass", "class.k-justify-content-center": "this.getComponentClass", "class.k-hstack": "this.horizontalHostClass", "class.k-vstack": "this.verticalHostClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass", "attr.role": "this.role", "attr.tabindex": "this.tabindex" } }, usesOnChanges: true, ngImport: i0, template: `
283
+ HorizontalViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HorizontalViewListComponent, deps: [{ token: i1.BusViewService }, { token: i2.IntlService }, { token: i3.WeekNamesService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
284
+ HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: { showOtherMonthDays: "showOtherMonthDays", cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", allowReverse: "allowReverse", activeRangeEnd: "activeRangeEnd", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectionRange: "selectionRange", selectedDates: "selectedDates", views: "views", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", orientation: "orientation", activeDescendant: "activeDescendant", tabIndex: "tabIndex", disabled: "disabled", id: "id", weekDaysFormat: "weekDaysFormat", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", activeDateChange: "activeDateChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { listeners: { "focus": "handleMultiViewCalendarFocus()", "blur": "handleMultiViewCalendarBlur($event)" }, properties: { "class.k-calendar-view": "this.getComponentClass", "class.k-align-items-start": "this.getComponentClass", "class.k-justify-content-center": "this.getComponentClass", "class.k-hstack": "this.horizontalHostClass", "class.k-vstack": "this.verticalHostClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass", "attr.role": "this.role", "attr.tabindex": "this.tabindex" } }, usesOnChanges: true, ngImport: i0, template: `
285
285
  <ng-template #tableTemplate let-date="date" let-class="className">
286
286
  <table
287
287
  [attr.role]="views >= 2 ? 'none' : 'grid'"
288
- class="k-content k-calendar-table"
288
+ class="k-calendar-table"
289
289
  [ngClass]="class"
290
290
  [attr.aria-labelledby]="id"
291
291
  [attr.aria-activedescendant]="getActiveDescendant"
@@ -307,6 +307,7 @@ HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
307
307
  <tbody
308
308
  class="k-calendar-tbody"
309
309
  kendoCalendarView
310
+ [allowReverse]="allowReverse"
310
311
  [showOtherMonthDays]="showOtherMonthDays"
311
312
  role="rowgroup"
312
313
  direction="horizontal"
@@ -363,8 +364,8 @@ HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
363
364
  }"
364
365
  >
365
366
  </ng-template>
366
- `, isInline: true, components: [{ type: i4.ViewComponent, selector: "[kendoCalendarView]", inputs: ["showOtherMonthDays", "direction", "isActive", "activeView", "cellUID", "focusedDate", "viewDate", "activeRangeEnd", "selectionRange", "min", "max", "selectedDates", "weekNumber", "viewIndex", "templateRef", "weekNumberTemplateRef", "headerTitle"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "focusedCellId"] }], directives: [{ type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
367
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HorizontalViewListComponent, decorators: [{
367
+ `, isInline: true, dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: i6.ViewComponent, selector: "[kendoCalendarView]", inputs: ["allowReverse", "showOtherMonthDays", "direction", "isActive", "activeView", "cellUID", "focusedDate", "viewDate", "activeRangeEnd", "selectionRange", "min", "max", "selectedDates", "weekNumber", "viewIndex", "templateRef", "weekNumberTemplateRef", "headerTitle"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "focusedCellId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HorizontalViewListComponent, decorators: [{
368
369
  type: Component,
369
370
  args: [{
370
371
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -373,7 +374,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
373
374
  <ng-template #tableTemplate let-date="date" let-class="className">
374
375
  <table
375
376
  [attr.role]="views >= 2 ? 'none' : 'grid'"
376
- class="k-content k-calendar-table"
377
+ class="k-calendar-table"
377
378
  [ngClass]="class"
378
379
  [attr.aria-labelledby]="id"
379
380
  [attr.aria-activedescendant]="getActiveDescendant"
@@ -395,6 +396,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
395
396
  <tbody
396
397
  class="k-calendar-tbody"
397
398
  kendoCalendarView
399
+ [allowReverse]="allowReverse"
398
400
  [showOtherMonthDays]="showOtherMonthDays"
399
401
  role="rowgroup"
400
402
  direction="horizontal"
@@ -453,18 +455,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
453
455
  </ng-template>
454
456
  `
455
457
  }]
456
- }], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i3.WeekNamesService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { showOtherMonthDays: [{
457
- type: Input
458
- }], handleMultiViewCalendarFocus: [{
458
+ }], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i3.WeekNamesService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { handleMultiViewCalendarFocus: [{
459
459
  type: HostListener,
460
460
  args: ["focus"]
461
461
  }], handleMultiViewCalendarBlur: [{
462
462
  type: HostListener,
463
463
  args: ["blur", ['$event']]
464
+ }], showOtherMonthDays: [{
465
+ type: Input
464
466
  }], cellTemplateRef: [{
465
467
  type: Input
466
468
  }], weekNumberTemplateRef: [{
467
469
  type: Input
470
+ }], allowReverse: [{
471
+ type: Input
468
472
  }], activeRangeEnd: [{
469
473
  type: Input
470
474
  }], activeView: [{
@@ -19,14 +19,14 @@ export class CalendarCustomMessagesComponent extends CalendarMessages {
19
19
  return true;
20
20
  }
21
21
  }
22
- CalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
- CalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages", providers: [
22
+ CalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
+ CalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages", providers: [
24
24
  {
25
25
  provide: CalendarMessages,
26
26
  useExisting: forwardRef(() => CalendarCustomMessagesComponent)
27
27
  }
28
28
  ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarCustomMessagesComponent, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarCustomMessagesComponent, decorators: [{
30
30
  type: Component,
31
31
  args: [{
32
32
  providers: [
@@ -16,14 +16,14 @@ export class CalendarLocalizedMessagesDirective extends CalendarMessages {
16
16
  this.service = service;
17
17
  }
18
18
  }
19
- CalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- CalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]", providers: [
19
+ CalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ CalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]", providers: [
21
21
  {
22
22
  provide: CalendarMessages,
23
23
  useExisting: forwardRef(() => CalendarLocalizedMessagesDirective)
24
24
  }
25
25
  ], usesInheritance: true, ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarLocalizedMessagesDirective, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarLocalizedMessagesDirective, decorators: [{
27
27
  type: Directive,
28
28
  args: [{
29
29
  providers: [
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export class CalendarMessages extends ComponentMessages {
12
12
  }
13
- CalendarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- CalendarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CalendarMessages, selector: "kendo-calendar-messages-base", inputs: { today: "today", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarMessages, decorators: [{
13
+ CalendarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
+ CalendarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CalendarMessages, selector: "kendo-calendar-messages-base", inputs: { today: "today", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarMessages, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
18
  // eslint-disable-next-line
@@ -19,14 +19,14 @@ export class MultiViewCalendarCustomMessagesComponent extends Messages {
19
19
  return true;
20
20
  }
21
21
  }
22
- MultiViewCalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
- MultiViewCalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages", providers: [
22
+ MultiViewCalendarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
+ MultiViewCalendarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages", providers: [
24
24
  {
25
25
  provide: Messages,
26
26
  useExisting: forwardRef(() => MultiViewCalendarCustomMessagesComponent)
27
27
  }
28
28
  ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarCustomMessagesComponent, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarCustomMessagesComponent, decorators: [{
30
30
  type: Component,
31
31
  args: [{
32
32
  providers: [
@@ -16,14 +16,14 @@ export class MultiViewCalendarLocalizedMessagesDirective extends Messages {
16
16
  this.service = service;
17
17
  }
18
18
  }
19
- MultiViewCalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- MultiViewCalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]", providers: [
19
+ MultiViewCalendarLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ MultiViewCalendarLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]", providers: [
21
21
  {
22
22
  provide: Messages,
23
23
  useExisting: forwardRef(() => MultiViewCalendarLocalizedMessagesDirective)
24
24
  }
25
25
  ], usesInheritance: true, ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarLocalizedMessagesDirective, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiViewCalendarLocalizedMessagesDirective, decorators: [{
27
27
  type: Directive,
28
28
  args: [{
29
29
  providers: [
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export class Messages extends ComponentMessages {
12
12
  }
13
- Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "kendo-multiview-calendar-messages-base", inputs: { today: "today", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, decorators: [{
13
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
+ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, selector: "kendo-multiview-calendar-messages-base", inputs: { today: "today", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
18
  // eslint-disable-next-line
@@ -2,4 +2,37 @@
2
2
  * Copyright © 2024 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
- export {};
5
+ /**
6
+ * @hidden
7
+ */
8
+ export function handleRangeSelection(date, selectionRange, activeRangeEnd, allowReverse = false) {
9
+ if ((activeRangeEnd === 'start' && selectionRange.start?.getTime() === date?.getTime() && ((allowReverse && !selectionRange.end) || !allowReverse)) ||
10
+ (activeRangeEnd === 'end' && selectionRange.end?.getTime() === date?.getTime())) {
11
+ return { activeRangeEnd: activeRangeEnd, selectionRange: selectionRange };
12
+ }
13
+ if (allowReverse) {
14
+ if (activeRangeEnd === 'start') {
15
+ selectionRange.start = date;
16
+ activeRangeEnd = 'end';
17
+ }
18
+ else if (activeRangeEnd === 'end') {
19
+ selectionRange.end = date;
20
+ activeRangeEnd = 'start';
21
+ }
22
+ }
23
+ if (!allowReverse) {
24
+ if (activeRangeEnd === 'start' && date > selectionRange.end ||
25
+ activeRangeEnd === 'end' && date < selectionRange.start) {
26
+ selectionRange = { start: date, end: null };
27
+ }
28
+ else if (activeRangeEnd === 'start' && date <= selectionRange.end) {
29
+ selectionRange.start = date;
30
+ activeRangeEnd = 'end';
31
+ }
32
+ else if (activeRangeEnd === 'end' && date >= selectionRange.start) {
33
+ selectionRange.end = date;
34
+ activeRangeEnd = 'start';
35
+ }
36
+ }
37
+ return { activeRangeEnd: activeRangeEnd, selectionRange: selectionRange };
38
+ }