@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
@@ -16,12 +16,12 @@ import * as i0 from "@angular/core";
16
16
  import * as i1 from "./services/bus-view.service";
17
17
  import * as i2 from "@progress/kendo-angular-intl";
18
18
  import * as i3 from "./services/dom.service";
19
- import * as i4 from "./header.component";
20
- import * as i5 from "../virtualization/virtualization.component";
21
- import * as i6 from "./view.component";
19
+ import * as i4 from "@angular/common";
20
+ import * as i5 from "./for.directive";
21
+ import * as i6 from "./header.component";
22
22
  import * as i7 from "./footer.component";
23
- import * as i8 from "@angular/common";
24
- import * as i9 from "./for.directive";
23
+ import * as i8 from "./view.component";
24
+ import * as i9 from "../virtualization/virtualization.component";
25
25
  const VIEWS_COUNT = 5;
26
26
  const isEqualMonthYear = (date1, date2) => (date1 && date2 &&
27
27
  date1.getFullYear() === date2.getFullYear() &&
@@ -44,6 +44,7 @@ export class ViewListComponent {
44
44
  this.disabled = false;
45
45
  this.showFooter = false;
46
46
  this.weekDaysFormat = 'short';
47
+ this.cellEnter = new EventEmitter();
47
48
  this.cellClick = new EventEmitter();
48
49
  this.weekNumberCellClick = new EventEmitter();
49
50
  this.activeDateChange = new EventEmitter();
@@ -192,10 +193,11 @@ export class ViewListComponent {
192
193
  }
193
194
  }
194
195
  }
195
- ViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewListComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.IntlService }, { token: i3.CalendarDOMService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
196
- ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: { cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitleTemplateRef: "headerTitleTemplateRef", headerTemplateRef: "headerTemplateRef", footerTemplateRef: "footerTemplateRef", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectedDates: "selectedDates", tabIndex: "tabIndex", disabled: "disabled", id: "id", showFooter: "showFooter", weekDaysFormat: "weekDaysFormat", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", activeDateChange: "activeDateChange", todayButtonClick: "todayButtonClick", pageChange: "pageChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { properties: { "class.k-vstack": "this.getComponentClass", "class.k-calendar-view": "this.getComponentClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "headerComponent", first: true, predicate: HeaderComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
196
+ ViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewListComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.IntlService }, { token: i3.CalendarDOMService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
197
+ ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: { allowReverse: "allowReverse", cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitleTemplateRef: "headerTitleTemplateRef", headerTemplateRef: "headerTemplateRef", footerTemplateRef: "footerTemplateRef", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectedDates: "selectedDates", tabIndex: "tabIndex", disabled: "disabled", id: "id", showFooter: "showFooter", weekDaysFormat: "weekDaysFormat", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", size: "size", weekNumber: "weekNumber" }, outputs: { cellEnter: "cellEnter", cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", activeDateChange: "activeDateChange", todayButtonClick: "todayButtonClick", pageChange: "pageChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { properties: { "class.k-vstack": "this.getComponentClass", "class.k-calendar-view": "this.getComponentClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "headerComponent", first: true, predicate: HeaderComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
197
198
  <kendo-calendar-header
198
199
  [currentDate]="activeDate"
200
+ [size]="size"
199
201
  [min]="min"
200
202
  [max]="max"
201
203
  [id]="id"
@@ -240,6 +242,9 @@ ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
240
242
  <tbody class="k-calendar-tbody"
241
243
  *kFor="let date of dates"
242
244
  kendoCalendarView
245
+ [allowReverse]="allowReverse"
246
+ [activeRangeEnd]="activeRangeEnd"
247
+ [selectionRange]="selectionRange"
243
248
  [showOtherMonthDays]="showOtherMonthDays"
244
249
  [headerTitle]="headerTitle"
245
250
  role="rowgroup"
@@ -256,6 +261,7 @@ ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
256
261
  (cellClick)="cellClick.emit($event)"
257
262
  (weekNumberCellClick)="weekNumberCellClick.emit($event)"
258
263
  (focusedCellId)="focusedCellChange.emit($event)"
264
+ (cellEnter)="cellEnter.emit($event)"
259
265
  ></tbody>
260
266
  </table>
261
267
  </kendo-virtualization>
@@ -265,8 +271,8 @@ ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
265
271
  [activeViewValue]="activeViewValue"
266
272
  [currentDate]="activeDate">
267
273
  </kendo-calendar-footer>
268
- `, isInline: true, components: [{ type: i4.HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { type: i5.VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { type: i6.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"] }, { type: i7.FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewListComponent, decorators: [{
274
+ `, isInline: true, dependencies: [{ 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: i5.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: i6.HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id", "size"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { kind: "component", type: i7.FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }, { kind: "component", type: i8.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"] }, { kind: "component", type: i9.VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewListComponent, decorators: [{
270
276
  type: Component,
271
277
  args: [{
272
278
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -274,6 +280,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
274
280
  template: `
275
281
  <kendo-calendar-header
276
282
  [currentDate]="activeDate"
283
+ [size]="size"
277
284
  [min]="min"
278
285
  [max]="max"
279
286
  [id]="id"
@@ -318,6 +325,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
318
325
  <tbody class="k-calendar-tbody"
319
326
  *kFor="let date of dates"
320
327
  kendoCalendarView
328
+ [allowReverse]="allowReverse"
329
+ [activeRangeEnd]="activeRangeEnd"
330
+ [selectionRange]="selectionRange"
321
331
  [showOtherMonthDays]="showOtherMonthDays"
322
332
  [headerTitle]="headerTitle"
323
333
  role="rowgroup"
@@ -334,6 +344,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
334
344
  (cellClick)="cellClick.emit($event)"
335
345
  (weekNumberCellClick)="weekNumberCellClick.emit($event)"
336
346
  (focusedCellId)="focusedCellChange.emit($event)"
347
+ (cellEnter)="cellEnter.emit($event)"
337
348
  ></tbody>
338
349
  </table>
339
350
  </kendo-virtualization>
@@ -345,7 +356,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
345
356
  </kendo-calendar-footer>
346
357
  `
347
358
  }]
348
- }], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.IntlService }, { type: i3.CalendarDOMService }, { type: i0.Renderer2 }]; }, propDecorators: { cellTemplateRef: [{
359
+ }], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.IntlService }, { type: i3.CalendarDOMService }, { type: i0.Renderer2 }]; }, propDecorators: { allowReverse: [{
360
+ type: Input
361
+ }], cellTemplateRef: [{
349
362
  type: Input
350
363
  }], weekNumberTemplateRef: [{
351
364
  type: Input
@@ -381,8 +394,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
381
394
  type: Input
382
395
  }], weekDaysFormat: [{
383
396
  type: Input
397
+ }], activeRangeEnd: [{
398
+ type: Input
399
+ }], selectionRange: [{
400
+ type: Input
401
+ }], size: [{
402
+ type: Input
384
403
  }], weekNumber: [{
385
404
  type: Input
405
+ }], cellEnter: [{
406
+ type: Output
386
407
  }], cellClick: [{
387
408
  type: Output
388
409
  }], weekNumberCellClick: [{
@@ -168,7 +168,8 @@ export class ViewComponent {
168
168
  selectionRange: this.selectionRange,
169
169
  viewDate: viewDate,
170
170
  isDateDisabled: this.disabledDatesService.isDateDisabled,
171
- direction: this.direction
171
+ direction: this.direction,
172
+ allowReverse: this.allowReverse
172
173
  });
173
174
  }
174
175
  intlChange() {
@@ -233,8 +234,8 @@ export class ViewComponent {
233
234
  return this.data[rowIndex][cellIndex];
234
235
  }
235
236
  }
236
- ViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewComponent, deps: [{ token: i1.BusViewService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i3.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
237
- ViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ViewComponent, selector: "[kendoCalendarView]", inputs: { showOtherMonthDays: "showOtherMonthDays", direction: "direction", isActive: "isActive", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", viewDate: "viewDate", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", min: "min", max: "max", selectedDates: "selectedDates", weekNumber: "weekNumber", viewIndex: "viewIndex", templateRef: "templateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitle: "headerTitle" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", focusedCellId: "focusedCellId" }, usesOnChanges: true, ngImport: i0, template: `
237
+ ViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewComponent, deps: [{ token: i1.BusViewService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i3.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
238
+ ViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ViewComponent, selector: "[kendoCalendarView]", inputs: { allowReverse: "allowReverse", showOtherMonthDays: "showOtherMonthDays", direction: "direction", isActive: "isActive", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", viewDate: "viewDate", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", min: "min", max: "max", selectedDates: "selectedDates", weekNumber: "weekNumber", viewIndex: "viewIndex", templateRef: "templateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitle: "headerTitle" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", focusedCellId: "focusedCellId" }, usesOnChanges: true, ngImport: i0, template: `
238
239
  <ng-template #emptyCell><td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td></ng-template>
239
240
  <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row" [attr.aria-hidden]="ariaHidden"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>
240
241
  <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">
@@ -281,8 +282,8 @@ ViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
281
282
  </td>
282
283
  </ng-container>
283
284
  </tr>
284
- `, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewComponent, decorators: [{
285
+ `, isInline: true, dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }] });
286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewComponent, decorators: [{
286
287
  type: Component,
287
288
  args: [{
288
289
  // eslint-disable-next-line
@@ -336,7 +337,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
336
337
  </tr>
337
338
  `
338
339
  }]
339
- }], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i3.DisabledDatesService }]; }, propDecorators: { showOtherMonthDays: [{
340
+ }], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i3.DisabledDatesService }]; }, propDecorators: { allowReverse: [{
341
+ type: Input
342
+ }], showOtherMonthDays: [{
340
343
  type: Input
341
344
  }], direction: [{
342
345
  type: Input
@@ -20,19 +20,19 @@ const ADAPTIVE_MODULES = [
20
20
  */
21
21
  export class AdaptiveModule {
22
22
  }
23
- AdaptiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdaptiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
24
- AdaptiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdaptiveModule, imports: [NavigationModule,
23
+ AdaptiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
24
+ AdaptiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AdaptiveModule, imports: [NavigationModule,
25
25
  ResizeSensorModule,
26
26
  ButtonModule,
27
27
  TextBoxModule], exports: [NavigationModule,
28
28
  ResizeSensorModule,
29
29
  ButtonModule,
30
30
  TextBoxModule] });
31
- AdaptiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdaptiveModule, imports: [[...ADAPTIVE_MODULES], NavigationModule,
31
+ AdaptiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptiveModule, imports: [ADAPTIVE_MODULES, NavigationModule,
32
32
  ResizeSensorModule,
33
33
  ButtonModule,
34
34
  TextBoxModule] });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdaptiveModule, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptiveModule, decorators: [{
36
36
  type: NgModule,
37
37
  args: [{
38
38
  imports: [...ADAPTIVE_MODULES],
@@ -19,6 +19,10 @@ export const currentFocusTarget = (blurArgs) => blurArgs.relatedTarget || docume
19
19
  * @hidden
20
20
  */
21
21
  export const isPresent = (value) => value !== undefined && value !== null;
22
+ /**
23
+ * @hidden
24
+ */
25
+ export const isNullOrDate = (value) => value === null || value instanceof Date;
22
26
  /**
23
27
  * @hidden
24
28
  */
@@ -57,7 +61,7 @@ export var Keys;
57
61
  */
58
62
  export const selectors = {
59
63
  infiniteCalendarTable: '.k-content .k-calendar-table',
60
- multiViewCalendarTable: '.k-content.k-calendar-table'
64
+ multiViewCalendarTable: '.k-calendar-table'
61
65
  };
62
66
  /**
63
67
  * @hidden
@@ -19,16 +19,16 @@ import { PickerService } from '../common/picker.service';
19
19
  import { closest } from '../common/dom-queries';
20
20
  import { requiresZoneOnBlur, isPresent, attributeNames } from '../common/utils';
21
21
  import { Subscription } from 'rxjs';
22
- import { caretAltDownIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
22
+ import { caretAltDownIcon, caretAltUpIcon, xIcon } from '@progress/kendo-svg-icons';
23
23
  import { DateInput } from '@progress/kendo-dateinputs-common';
24
24
  import * as i0 from "@angular/core";
25
25
  import * as i1 from "@progress/kendo-angular-intl";
26
26
  import * as i2 from "@progress/kendo-angular-l10n";
27
27
  import * as i3 from "../common/picker.service";
28
- import * as i4 from "@progress/kendo-angular-icons";
29
- import * as i5 from "./localization/dateinput-localized-messages.directive";
30
- import * as i6 from "@progress/kendo-angular-common";
31
- import * as i7 from "@angular/common";
28
+ import * as i4 from "@angular/common";
29
+ import * as i5 from "@progress/kendo-angular-common";
30
+ import * as i6 from "@progress/kendo-angular-icons";
31
+ import * as i7 from "./localization/dateinput-localized-messages.directive";
32
32
  let nextId = 0;
33
33
  const MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min';
34
34
  const MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max';
@@ -83,10 +83,20 @@ export class DateInputComponent {
83
83
  * @hidden
84
84
  */
85
85
  this.caretAltUpIcon = caretAltUpIcon;
86
+ /**
87
+ * @hidden
88
+ */
89
+ this.xIcon = xIcon;
86
90
  /**
87
91
  * @hidden
88
92
  */
89
93
  this.caretAltDownIcon = caretAltDownIcon;
94
+ /**
95
+ * If set to `true`, renders a clear button after the input text or DateInput value has been changed.
96
+ * Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
97
+ * @default false
98
+ */
99
+ this.clearButton = false;
90
100
  /**
91
101
  * Sets or gets the `disabled` property of the DateInput and
92
102
  * determines whether the component is active
@@ -259,6 +269,7 @@ export class DateInputComponent {
259
269
  this.formatSections = { date: false, time: false };
260
270
  this.hasMousedown = false;
261
271
  this.focusedPriorToMousedown = false;
272
+ this.showClearButton = false;
262
273
  /**
263
274
  * @hidden
264
275
  */
@@ -309,7 +320,6 @@ export class DateInputComponent {
309
320
  this.focusableId = `${_pickerType}-${nextId}`;
310
321
  }
311
322
  }
312
- ;
313
323
  /**
314
324
  * @hidden
315
325
  */
@@ -548,7 +558,6 @@ export class DateInputComponent {
548
558
  role: this.role
549
559
  };
550
560
  }
551
- ;
552
561
  /**
553
562
  * @hidden
554
563
  * Used by the TextBoxContainer to determine if the component is empty
@@ -601,14 +610,12 @@ export class DateInputComponent {
601
610
  if (!this.kendoDate) {
602
611
  return;
603
612
  }
604
- ;
605
613
  this.kendoDate.writeValue(this.value);
606
614
  }
607
615
  if (changes['format'] || changes['placeholder']) {
608
616
  if (!this.kendoDate) {
609
617
  return;
610
618
  }
611
- ;
612
619
  this.kendoDate?.setOptions(this.options, true);
613
620
  this.updateFormatSections();
614
621
  }
@@ -700,6 +707,12 @@ export class DateInputComponent {
700
707
  this.kendoDateObject?.setValue(this.value);
701
708
  this.kendoDate?.refreshElementValue();
702
709
  }
710
+ resetInput() {
711
+ this.kendoDateObject?.setValue(null);
712
+ this.kendoDate?.refreshElementValue();
713
+ this.control?.setValue(null);
714
+ this.showClearButton = false;
715
+ }
703
716
  /**
704
717
  * @hidden
705
718
  */
@@ -715,6 +728,7 @@ export class DateInputComponent {
715
728
  */
716
729
  notify() {
717
730
  this.ngZone.run(() => {
731
+ this.showClearButton = true;
718
732
  this.onControlChange(cloneDate(this.value));
719
733
  this.valueChange.emit(cloneDate(this.value));
720
734
  });
@@ -762,6 +776,7 @@ export class DateInputComponent {
762
776
  * @hidden
763
777
  */
764
778
  handleButtonClick(offset) {
779
+ this.showClearButton = true;
765
780
  this.arrowDirection = Arrow.None;
766
781
  this.kendoDate.focus();
767
782
  this.kendoDate.modifyDateSegmentValue(offset);
@@ -787,6 +802,10 @@ export class DateInputComponent {
787
802
  }
788
803
  onWidgetInputEnd() {
789
804
  this.updateIncompleteValidationStatus();
805
+ if (this.clearButton) {
806
+ this.showClearButton = true;
807
+ this.cdr.markForCheck();
808
+ }
790
809
  }
791
810
  onWidgetFocus({ event: FocuseEvent }) {
792
811
  this.isActive = true;
@@ -872,8 +891,8 @@ export class DateInputComponent {
872
891
  setHTMLAttributes(attributesToRender, this.renderer, this.dateInput.nativeElement);
873
892
  }
874
893
  }
875
- DateInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2.LocalizationService }, { token: i3.PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
876
- DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DateInputComponent, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
894
+ DateInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2.LocalizationService }, { token: i3.PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
895
+ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputComponent, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", clearButton: "clearButton", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
877
896
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateInputComponent), multi: true },
878
897
  { provide: NG_VALIDATORS, useExisting: forwardRef(() => DateInputComponent), multi: true },
879
898
  { provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
@@ -886,6 +905,9 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
886
905
 
887
906
  i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
888
907
  decrement="Decrease value"
908
+
909
+ i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
910
+ clearTitle="clear"
889
911
  >
890
912
  </ng-container>
891
913
  <input #dateInput
@@ -911,6 +933,21 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
911
933
  }"
912
934
  [scope]="this"
913
935
  />
936
+ <span
937
+ *ngIf="clearButton && showClearButton"
938
+ class="k-clear-value"
939
+ [attr.title]="localization.get('clearTitle')"
940
+ role="button"
941
+ tabindex="-1"
942
+ (click)="resetInput()"
943
+ (mousedown)="$event.preventDefault()"
944
+ >
945
+ <kendo-icon-wrapper
946
+ name="x"
947
+ [svgIcon]="xIcon"
948
+ >
949
+ </kendo-icon-wrapper>
950
+ </span>
914
951
  <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
915
952
  <button
916
953
  #spinup
@@ -949,8 +986,8 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
949
986
  </kendo-icon-wrapper>
950
987
  </button>
951
988
  </span>
952
- `, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i5.DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]" }, { type: i6.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
953
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputComponent, decorators: [{
989
+ `, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: i7.DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
990
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputComponent, decorators: [{
954
991
  type: Component,
955
992
  args: [{
956
993
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -970,6 +1007,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
970
1007
 
971
1008
  i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
972
1009
  decrement="Decrease value"
1010
+
1011
+ i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
1012
+ clearTitle="clear"
973
1013
  >
974
1014
  </ng-container>
975
1015
  <input #dateInput
@@ -995,6 +1035,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
995
1035
  }"
996
1036
  [scope]="this"
997
1037
  />
1038
+ <span
1039
+ *ngIf="clearButton && showClearButton"
1040
+ class="k-clear-value"
1041
+ [attr.title]="localization.get('clearTitle')"
1042
+ role="button"
1043
+ tabindex="-1"
1044
+ (click)="resetInput()"
1045
+ (mousedown)="$event.preventDefault()"
1046
+ >
1047
+ <kendo-icon-wrapper
1048
+ name="x"
1049
+ [svgIcon]="xIcon"
1050
+ >
1051
+ </kendo-icon-wrapper>
1052
+ </span>
998
1053
  <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
999
1054
  <button
1000
1055
  #spinup
@@ -1041,6 +1096,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1041
1096
  type: Input
1042
1097
  }], pickerType: [{
1043
1098
  type: Input
1099
+ }], clearButton: [{
1100
+ type: Input
1044
1101
  }], disabled: [{
1045
1102
  type: Input
1046
1103
  }], readonly: [{
@@ -17,14 +17,14 @@ import * as i0 from "@angular/core";
17
17
  */
18
18
  export class DateInputModule {
19
19
  }
20
- DateInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
21
- DateInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputModule, declarations: [DateInputComponent,
20
+ DateInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
21
+ DateInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateInputModule, declarations: [DateInputComponent,
22
22
  DateInputCustomMessagesComponent,
23
23
  DateInputLocalizedMessagesDirective], imports: [CommonModule, IntlModule, EventsModule, IconsModule], exports: [DateInputComponent,
24
24
  DateInputCustomMessagesComponent,
25
25
  DateInputLocalizedMessagesDirective] });
26
- DateInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputModule, imports: [[CommonModule, IntlModule, EventsModule, IconsModule]] });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputModule, decorators: [{
26
+ DateInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputModule, imports: [CommonModule, IntlModule, EventsModule, IconsModule] });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputModule, decorators: [{
28
28
  type: NgModule,
29
29
  args: [{
30
30
  declarations: [
@@ -19,14 +19,14 @@ export class DateInputCustomMessagesComponent extends DateInputMessages {
19
19
  return true;
20
20
  }
21
21
  }
22
- DateInputCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
- DateInputCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages", providers: [
22
+ DateInputCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
+ DateInputCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages", providers: [
24
24
  {
25
25
  provide: DateInputMessages,
26
26
  useExisting: forwardRef(() => DateInputCustomMessagesComponent)
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: DateInputCustomMessagesComponent, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputCustomMessagesComponent, decorators: [{
30
30
  type: Component,
31
31
  args: [{
32
32
  providers: [
@@ -16,14 +16,14 @@ export class DateInputLocalizedMessagesDirective extends DateInputMessages {
16
16
  this.service = service;
17
17
  }
18
18
  }
19
- DateInputLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- DateInputLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]", providers: [
19
+ DateInputLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ DateInputLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]", providers: [
21
21
  {
22
22
  provide: DateInputMessages,
23
23
  useExisting: forwardRef(() => DateInputLocalizedMessagesDirective)
24
24
  }
25
25
  ], usesInheritance: true, ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputLocalizedMessagesDirective, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputLocalizedMessagesDirective, 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 DateInputMessages extends ComponentMessages {
12
12
  }
13
- DateInputMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- DateInputMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DateInputMessages, selector: "kendo-dateinput-messages-base", inputs: { decrement: "decrement", increment: "increment" }, usesInheritance: true, ngImport: i0 });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputMessages, decorators: [{
13
+ DateInputMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
+ DateInputMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateInputMessages, selector: "kendo-dateinput-messages-base", inputs: { decrement: "decrement", increment: "increment", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputMessages, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
18
  // eslint-disable-next-line
@@ -22,4 +22,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
22
22
  type: Input
23
23
  }], increment: [{
24
24
  type: Input
25
+ }], clearTitle: [{
26
+ type: Input
25
27
  }] } });
@@ -51,8 +51,8 @@ const COMPONENT_MODULES = [
51
51
  */
52
52
  export class DateInputsModule {
53
53
  }
54
- DateInputsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
55
- DateInputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputsModule, imports: [CalendarsModule,
54
+ DateInputsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
55
+ DateInputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateInputsModule, imports: [CalendarsModule,
56
56
  DateInputModule,
57
57
  DatePickerModule,
58
58
  TimePickerModule,
@@ -63,13 +63,13 @@ DateInputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
63
63
  TimePickerModule,
64
64
  DateRangeModule,
65
65
  DateTimePickerModule] });
66
- DateInputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputsModule, imports: [COMPONENT_MODULES, CalendarsModule,
66
+ DateInputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputsModule, imports: [COMPONENT_MODULES, CalendarsModule,
67
67
  DateInputModule,
68
68
  DatePickerModule,
69
69
  TimePickerModule,
70
70
  DateRangeModule,
71
71
  DateTimePickerModule] });
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateInputsModule, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputsModule, decorators: [{
73
73
  type: NgModule,
74
74
  args: [{
75
75
  exports: COMPONENT_MODULES,