@progress/kendo-angular-dateinputs 6.0.3 → 7.0.0-dev.202204191043
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.
- package/bundles/kendo-angular-dateinputs.umd.js +5 -0
- package/calendar/calendar-common.module.d.ts +24 -0
- package/{dist/es2015/calendar → calendar}/calendar.component.d.ts +46 -21
- package/{dist/es2015/calendar → calendar}/calendar.module.d.ts +16 -0
- package/{dist/es2015/calendar → calendar}/calendars.module.d.ts +6 -0
- package/{dist/es2015/calendar → calendar}/for.directive.d.ts +8 -5
- package/{dist/es2015/calendar → calendar}/header.component.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/horizontal-view-list.component.d.ts +9 -5
- package/{dist/es2015/calendar → calendar}/localization/calendar-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/localization/calendar-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/calendar-messages.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-messages.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/models/cell-context.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/keydown.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/navigation-action.enum.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/row-length-options.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/scrollable.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection-range-end.type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection-range.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view-service.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view.enum.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view.type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/multiview-calendar.component.d.ts +38 -24
- package/{dist/es2015/calendar → calendar}/multiview-calendar.module.d.ts +14 -0
- package/{dist/es2015/calendar → calendar}/navigation.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/services/bus-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/century-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/decade-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/disabled-dates.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/dom.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/month-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/navigation.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/scroll-sync.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/selection.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/weeknames.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/year-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/century-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/decade-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/header-title-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/month-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/navigation-item-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/weeknumber-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/year-cell-template.directive.d.ts +3 -0
- package/calendar/templates.module.d.ts +33 -0
- package/{dist/es2015/calendar → calendar}/view-list.component.d.ts +9 -5
- package/{dist/es2015/calendar → calendar}/view.component.d.ts +5 -1
- package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
- package/{dist/es2015/common → common}/models/fillmode.d.ts +5 -5
- package/{dist/es2015/common → common}/models/rounded.d.ts +6 -6
- package/{dist/es2015/common → common}/models/size.d.ts +5 -5
- package/{dist/es2015/common → common}/picker.service.d.ts +0 -0
- package/{dist/es2015/common → common}/utils.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/arrow.enum.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/dateinput.component.d.ts +34 -25
- package/dateinput/dateinput.module.d.ts +20 -0
- package/{dist/es2015/dateinput → dateinput}/localization/dateinput-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/dateinput → dateinput}/localization/dateinput-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/dateinput → dateinput}/localization/messages.d.ts +3 -0
- package/{dist/es2015/dateinput → dateinput}/models/format-placeholder.model.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/models/format-settings.model.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/models/incremental-steps.model.d.ts +0 -0
- package/{dist/es2015/dateinputs.module.d.ts → dateinputs.module.d.ts} +10 -0
- package/{dist/es2015/datepicker → datepicker}/datepicker.component.d.ts +49 -37
- package/datepicker/datepicker.module.d.ts +24 -0
- package/{dist/es2015/datepicker → datepicker}/localization/datepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/datepicker → datepicker}/localization/datepicker-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/datepicker → datepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/auto-correct-on.type.d.ts +0 -0
- package/{dist/es2015/daterange → daterange}/date-range-end-input.directive.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/date-range-input.d.ts +2 -2
- package/{dist/es2015/daterange → daterange}/date-range-popup-template.directive.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/date-range-popup.component.d.ts +9 -4
- package/{dist/es2015/daterange → daterange}/date-range-selection.directive.d.ts +8 -3
- package/{dist/es2015/daterange → daterange}/date-range-start-input.directive.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/date-range.component.d.ts +5 -1
- package/{dist/es2015/daterange → daterange}/date-range.module.d.ts +15 -1
- package/{dist/es2015/daterange → daterange}/date-range.service.d.ts +11 -6
- package/{dist/es2015/datetimepicker → datetimepicker}/datetimepicker.component.d.ts +51 -36
- package/datetimepicker/datetimepicker.module.d.ts +25 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/datetimepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/models/active-tab.type.d.ts +0 -0
- package/{dist/es2015/defaults.d.ts → defaults.d.ts} +0 -0
- package/esm2015/calendar/calendar-common.module.js +45 -0
- package/{dist/es2015 → esm2015}/calendar/calendar.component.js +283 -246
- package/{dist/es2015 → esm2015}/calendar/calendar.module.js +71 -34
- package/{dist/es2015 → esm2015}/calendar/calendars.module.js +23 -14
- package/{dist/es2015 → esm2015}/calendar/for.directive.js +17 -25
- package/{dist/es2015 → esm2015}/calendar/header.component.js +97 -73
- package/{dist/es2015 → esm2015}/calendar/horizontal-view-list.component.js +155 -130
- package/esm2015/calendar/localization/calendar-custom-messages.component.js +40 -0
- package/esm2015/calendar/localization/calendar-localized-messages.directive.js +36 -0
- package/esm2015/calendar/localization/calendar-messages.js +27 -0
- package/esm2015/calendar/localization/multiview-calendar-custom-messages.component.js +40 -0
- package/esm2015/calendar/localization/multiview-calendar-localized-messages.directive.js +36 -0
- package/esm2015/calendar/localization/multiview-calendar-messages.js +27 -0
- package/{dist/es → esm2015}/calendar/models/cell-context.interface.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/models/keydown.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/navigation-action.enum.js +0 -0
- package/{dist/es2015 → esm2015}/calendar/models/row-length-options.interface.js +1 -0
- package/{dist/es/virtualization → esm2015/calendar}/models/scrollable.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/selection-range-end.type.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/models/selection-range.interface.js +0 -0
- package/{dist/es → esm2015}/calendar/models/selection.js +1 -0
- package/{dist/es → esm2015}/calendar/models/type.js +1 -0
- package/{dist/es → esm2015}/calendar/models/view-service.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/view.enum.js +0 -0
- package/{dist/es → esm2015}/calendar/models/view.type.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/multiview-calendar.component.js +246 -298
- package/{dist/es2015 → esm2015}/calendar/multiview-calendar.module.js +63 -32
- package/{dist/es2015 → esm2015}/calendar/navigation.component.js +71 -62
- package/{dist/es2015 → esm2015}/calendar/services/bus-view.service.js +9 -11
- package/{dist/es2015 → esm2015}/calendar/services/century-view.service.js +8 -11
- package/{dist/es2015 → esm2015}/calendar/services/decade-view.service.js +8 -11
- package/{dist/es2015 → esm2015}/calendar/services/disabled-dates.service.js +8 -12
- package/{dist/es2015 → esm2015}/calendar/services/dom.service.js +10 -26
- package/{dist/es2015 → esm2015}/calendar/services/month-view.service.js +9 -10
- package/{dist/es2015 → esm2015}/calendar/services/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/scroll-sync.service.js +10 -13
- package/{dist/es2015 → esm2015}/calendar/services/selection.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/weeknames.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/year-view.service.js +9 -13
- package/{dist/es2015 → esm2015}/calendar/templates/cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/century-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/decade-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/header-title-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/month-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/navigation-item-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/weeknumber-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/year-cell-template.directive.js +12 -11
- package/esm2015/calendar/templates.module.js +73 -0
- package/{dist/es2015 → esm2015}/calendar/view-list.component.js +135 -120
- package/{dist/es2015 → esm2015}/calendar/view.component.js +105 -98
- package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -0
- package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
- package/{dist/es → esm2015}/common/models/rounded.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es2015 → esm2015}/common/picker.service.js +0 -0
- package/{dist/es2015 → esm2015}/common/utils.js +0 -0
- package/{dist/es → esm2015}/dateinput/arrow.enum.js +0 -0
- package/{dist/es2015 → esm2015}/dateinput/dateinput.component.js +215 -216
- package/esm2015/dateinput/dateinput.module.js +41 -0
- package/esm2015/dateinput/localization/dateinput-custom-messages.component.js +40 -0
- package/esm2015/dateinput/localization/dateinput-localized-messages.directive.js +36 -0
- package/esm2015/dateinput/localization/messages.js +25 -0
- package/{dist/es → esm2015}/dateinput/models/format-placeholder.model.js +1 -0
- package/{dist/es → esm2015}/dateinput/models/format-settings.model.js +1 -0
- package/{dist/es → esm2015}/dateinput/models/incremental-steps.model.js +1 -0
- package/{dist/es2015 → esm2015}/dateinputs.module.js +28 -10
- package/{dist/es2015 → esm2015}/datepicker/datepicker.component.js +320 -317
- package/esm2015/datepicker/datepicker.module.js +72 -0
- package/esm2015/datepicker/localization/datepicker-custom-messages.component.js +40 -0
- package/esm2015/datepicker/localization/datepicker-localized-messages.directive.js +36 -0
- package/esm2015/datepicker/localization/messages.js +29 -0
- package/{dist/es → esm2015}/daterange/auto-correct-on.type.js +1 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-end-input.directive.js +18 -25
- package/{dist/es2015 → esm2015}/daterange/date-range-input.js +0 -0
- package/esm2015/daterange/date-range-popup-template.directive.js +23 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-popup.component.js +71 -89
- package/{dist/es2015 → esm2015}/daterange/date-range-selection.directive.js +26 -39
- package/{dist/es2015 → esm2015}/daterange/date-range-start-input.directive.js +18 -25
- package/esm2015/daterange/date-range.component.js +77 -0
- package/{dist/es2015 → esm2015}/daterange/date-range.module.js +27 -12
- package/{dist/es2015 → esm2015}/daterange/date-range.service.js +9 -14
- package/{dist/es2015 → esm2015}/datetimepicker/datetimepicker.component.js +436 -257
- package/esm2015/datetimepicker/datetimepicker.module.js +80 -0
- package/esm2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +40 -0
- package/esm2015/datetimepicker/localization/localized-messages.directive.js +36 -0
- package/esm2015/datetimepicker/localization/messages.js +49 -0
- package/{dist/es → esm2015}/datetimepicker/models/active-tab.type.js +1 -0
- package/{dist/es2015 → esm2015}/defaults.js +0 -0
- package/esm2015/kendo-angular-dateinputs.js +8 -0
- package/{dist/es → esm2015}/main.js +24 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es → esm2015}/popup-settings.model.js +1 -0
- package/{dist/es2015 → esm2015}/preventable-event.js +1 -0
- package/esm2015/timepicker/localization/messages.js +35 -0
- package/esm2015/timepicker/localization/timepicker-custom-messages.component.js +40 -0
- package/esm2015/timepicker/localization/timepicker-localized-messages.directive.js +36 -0
- package/esm2015/timepicker/localization/timeselector-custom-messages.component.js +42 -0
- package/esm2015/timepicker/localization/timeselector-localized-messages.directive.js +36 -0
- package/{dist/es → esm2015}/timepicker/models/incremental-steps.model.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-item.interface.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-service-settings.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-service.interface.js +1 -0
- package/{dist/es2015 → esm2015}/timepicker/models/time-part.default.js +0 -0
- package/{dist/es2015 → esm2015}/timepicker/services/dayperiod.service.js +9 -15
- package/{dist/es2015 → esm2015}/timepicker/services/dom.service.js +8 -13
- package/{dist/es2015 → esm2015}/timepicker/services/hours.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/milliseconds.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/minutes.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/seconds.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/timelist.component.js +66 -61
- package/{dist/es2015 → esm2015}/timepicker/timepicker.component.js +251 -208
- package/{dist/es2015 → esm2015}/timepicker/timepicker.module.js +32 -15
- package/{dist/es2015 → esm2015}/timepicker/timeselector.component.js +181 -104
- package/{dist/es2015 → esm2015}/timepicker/util.js +8 -20
- package/{dist/es2015 → esm2015}/touch-enabled.js +0 -0
- package/{dist/es2015 → esm2015}/util.js +13 -6
- package/{dist/es2015 → esm2015}/validators/disabled-date.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/disabled-dates-range.validator.js +0 -2
- package/{dist/es2015 → esm2015}/validators/incomplete-date.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/max.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/min.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/time-range.validator.js +0 -0
- package/{dist/es2015/calendar → esm2015/virtualization}/models/scrollable.interface.js +1 -0
- package/{dist/es2015 → esm2015}/virtualization/services/row-height.service.js +1 -3
- package/{dist/es2015 → esm2015}/virtualization/services/scroller.service.js +0 -2
- package/{dist/es2015 → esm2015}/virtualization/virtualization.component.js +75 -90
- package/esm2015/virtualization/virtualization.module.js +30 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dateinputs.js} +9763 -9156
- package/{dist/es/calendar/models/selection-range.interface.js → kendo-angular-dateinputs.d.ts} +3 -2
- package/{dist/es2015/main.d.ts → main.d.ts} +24 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +42 -115
- package/{dist/es2015/popup-settings.model.d.ts → popup-settings.model.d.ts} +0 -0
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +2 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/timepicker → timepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/localization/timepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/localization/timepicker-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/localization/timeselector-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/localization/timeselector-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/models/incremental-steps.model.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-item.interface.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-service-settings.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-service.interface.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/time-part.default.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/services/dayperiod.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/dom.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/hours.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/milliseconds.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/minutes.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/seconds.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/timelist.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/timepicker.component.d.ts +45 -31
- package/timepicker/timepicker.module.d.ts +27 -0
- package/{dist/es2015/timepicker → timepicker}/timeselector.component.d.ts +10 -4
- package/{dist/es2015/timepicker → timepicker}/util.d.ts +0 -0
- package/{dist/es2015/touch-enabled.d.ts → touch-enabled.d.ts} +0 -0
- package/{dist/es2015/util.d.ts → util.d.ts} +12 -0
- package/{dist/es2015/validators → validators}/disabled-date.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/disabled-dates-range.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/incomplete-date.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/max.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/min.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/time-range.validator.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/models/scrollable.interface.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/services/row-height.service.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/services/scroller.service.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/virtualization.component.d.ts +8 -5
- package/{dist/es2015/virtualization → virtualization}/virtualization.module.d.ts +6 -0
- package/dist/cdn/js/kendo-angular-dateinputs.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/calendar/calendar-common.module.js +0 -41
- package/dist/es/calendar/calendar.component.js +0 -1189
- package/dist/es/calendar/calendar.module.js +0 -108
- package/dist/es/calendar/calendars.module.js +0 -60
- package/dist/es/calendar/for.directive.js +0 -135
- package/dist/es/calendar/header.component.js +0 -170
- package/dist/es/calendar/horizontal-view-list.component.js +0 -363
- package/dist/es/calendar/localization/calendar-custom-messages.component.js +0 -43
- package/dist/es/calendar/localization/calendar-localized-messages.directive.js +0 -35
- package/dist/es/calendar/localization/calendar-messages.js +0 -30
- package/dist/es/calendar/localization/multiview-calendar-custom-messages.component.js +0 -43
- package/dist/es/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -35
- package/dist/es/calendar/localization/multiview-calendar-messages.js +0 -30
- package/dist/es/calendar/models/keydown.interface.js +0 -4
- package/dist/es/calendar/models/row-length-options.interface.js +0 -4
- package/dist/es/calendar/models/scrollable.interface.js +0 -4
- package/dist/es/calendar/multiview-calendar.component.js +0 -1122
- package/dist/es/calendar/multiview-calendar.module.js +0 -97
- package/dist/es/calendar/navigation.component.js +0 -173
- package/dist/es/calendar/services/bus-view.service.js +0 -83
- package/dist/es/calendar/services/century-view.service.js +0 -180
- package/dist/es/calendar/services/decade-view.service.js +0 -179
- package/dist/es/calendar/services/disabled-dates.service.js +0 -70
- package/dist/es/calendar/services/dom.service.js +0 -195
- package/dist/es/calendar/services/month-view.service.js +0 -203
- package/dist/es/calendar/services/navigation.service.js +0 -53
- package/dist/es/calendar/services/scroll-sync.service.js +0 -85
- package/dist/es/calendar/services/selection.service.js +0 -55
- package/dist/es/calendar/services/weeknames.service.js +0 -27
- package/dist/es/calendar/services/year-view.service.js +0 -204
- package/dist/es/calendar/templates/cell-template.directive.js +0 -46
- package/dist/es/calendar/templates/century-cell-template.directive.js +0 -45
- package/dist/es/calendar/templates/decade-cell-template.directive.js +0 -45
- package/dist/es/calendar/templates/header-title-template.directive.js +0 -44
- package/dist/es/calendar/templates/month-cell-template.directive.js +0 -43
- package/dist/es/calendar/templates/navigation-item-template.directive.js +0 -44
- package/dist/es/calendar/templates/weeknumber-cell-template.directive.js +0 -43
- package/dist/es/calendar/templates/year-cell-template.directive.js +0 -46
- package/dist/es/calendar/templates.module.js +0 -59
- package/dist/es/calendar/view-list.component.js +0 -301
- package/dist/es/calendar/view.component.js +0 -318
- package/dist/es/common/dom-queries.js +0 -24
- package/dist/es/common/picker.service.js +0 -18
- package/dist/es/common/utils.js +0 -35
- package/dist/es/dateinput/dateinput.component.js +0 -1617
- package/dist/es/dateinput/dateinput.module.js +0 -37
- package/dist/es/dateinput/localization/dateinput-custom-messages.component.js +0 -43
- package/dist/es/dateinput/localization/dateinput-localized-messages.directive.js +0 -35
- package/dist/es/dateinput/localization/messages.js +0 -26
- package/dist/es/dateinputs.module.js +0 -63
- package/dist/es/datepicker/datepicker.component.js +0 -1256
- package/dist/es/datepicker/datepicker.module.js +0 -55
- package/dist/es/datepicker/localization/datepicker-custom-messages.component.js +0 -43
- package/dist/es/datepicker/localization/datepicker-localized-messages.directive.js +0 -35
- package/dist/es/datepicker/localization/messages.js +0 -34
- package/dist/es/daterange/date-range-end-input.directive.js +0 -97
- package/dist/es/daterange/date-range-input.js +0 -131
- package/dist/es/daterange/date-range-popup-template.directive.js +0 -23
- package/dist/es/daterange/date-range-popup.component.js +0 -403
- package/dist/es/daterange/date-range-selection.directive.js +0 -230
- package/dist/es/daterange/date-range-start-input.directive.js +0 -97
- package/dist/es/daterange/date-range.component.js +0 -71
- package/dist/es/daterange/date-range.module.js +0 -83
- package/dist/es/daterange/date-range.service.js +0 -208
- package/dist/es/datetimepicker/datetimepicker.component.js +0 -1309
- package/dist/es/datetimepicker/datetimepicker.module.js +0 -57
- package/dist/es/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -43
- package/dist/es/datetimepicker/localization/localized-messages.directive.js +0 -35
- package/dist/es/datetimepicker/localization/messages.js +0 -74
- package/dist/es/defaults.js +0 -24
- package/dist/es/index.js +0 -63
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -29
- package/dist/es/timepicker/localization/messages.js +0 -46
- package/dist/es/timepicker/localization/timepicker-custom-messages.component.js +0 -43
- package/dist/es/timepicker/localization/timepicker-localized-messages.directive.js +0 -35
- package/dist/es/timepicker/localization/timeselector-custom-messages.component.js +0 -45
- package/dist/es/timepicker/localization/timeselector-localized-messages.directive.js +0 -35
- package/dist/es/timepicker/models/time-part.default.js +0 -14
- package/dist/es/timepicker/services/dayperiod.service.js +0 -130
- package/dist/es/timepicker/services/dom.service.js +0 -64
- package/dist/es/timepicker/services/hours.service.js +0 -129
- package/dist/es/timepicker/services/milliseconds.service.js +0 -130
- package/dist/es/timepicker/services/minutes.service.js +0 -127
- package/dist/es/timepicker/services/seconds.service.js +0 -127
- package/dist/es/timepicker/timelist.component.js +0 -297
- package/dist/es/timepicker/timepicker.component.js +0 -1044
- package/dist/es/timepicker/timepicker.module.js +0 -75
- package/dist/es/timepicker/timeselector.component.js +0 -486
- package/dist/es/timepicker/util.js +0 -82
- package/dist/es/touch-enabled.js +0 -9
- package/dist/es/util.js +0 -395
- package/dist/es/validators/disabled-date.validator.js +0 -18
- package/dist/es/validators/disabled-dates-range.validator.js +0 -28
- package/dist/es/validators/incomplete-date.validator.js +0 -18
- package/dist/es/validators/max.validator.js +0 -21
- package/dist/es/validators/min.validator.js +0 -21
- package/dist/es/validators/time-range.validator.js +0 -23
- package/dist/es/virtualization/services/row-height.service.js +0 -72
- package/dist/es/virtualization/services/scroller.service.js +0 -111
- package/dist/es/virtualization/virtualization.component.js +0 -343
- package/dist/es/virtualization/virtualization.module.js +0 -30
- package/dist/es2015/calendar/calendar-common.module.d.ts +0 -15
- package/dist/es2015/calendar/calendar-common.module.js +0 -38
- package/dist/es2015/calendar/localization/calendar-custom-messages.component.js +0 -35
- package/dist/es2015/calendar/localization/calendar-localized-messages.directive.js +0 -31
- package/dist/es2015/calendar/localization/calendar-messages.js +0 -24
- package/dist/es2015/calendar/localization/multiview-calendar-custom-messages.component.js +0 -35
- package/dist/es2015/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -31
- package/dist/es2015/calendar/localization/multiview-calendar-messages.js +0 -24
- package/dist/es2015/calendar/models/cell-context.interface.js +0 -4
- package/dist/es2015/calendar/models/navigation-action.enum.js +0 -20
- package/dist/es2015/calendar/models/selection-range-end.type.js +0 -4
- package/dist/es2015/calendar/models/selection.js +0 -4
- package/dist/es2015/calendar/models/type.js +0 -4
- package/dist/es2015/calendar/models/view-service.interface.js +0 -4
- package/dist/es2015/calendar/models/view.enum.js +0 -16
- package/dist/es2015/calendar/models/view.type.js +0 -4
- package/dist/es2015/calendar/templates.module.d.ts +0 -21
- package/dist/es2015/calendar/templates.module.js +0 -56
- package/dist/es2015/common/models/fillmode.js +0 -4
- package/dist/es2015/common/models/rounded.js +0 -4
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/dateinput/arrow.enum.js +0 -13
- package/dist/es2015/dateinput/dateinput.module.d.ts +0 -10
- package/dist/es2015/dateinput/dateinput.module.js +0 -34
- package/dist/es2015/dateinput/localization/dateinput-custom-messages.component.js +0 -35
- package/dist/es2015/dateinput/localization/dateinput-localized-messages.directive.js +0 -31
- package/dist/es2015/dateinput/localization/messages.js +0 -20
- package/dist/es2015/dateinput/models/format-placeholder.model.js +0 -4
- package/dist/es2015/dateinput/models/format-settings.model.js +0 -4
- package/dist/es2015/dateinput/models/incremental-steps.model.js +0 -4
- package/dist/es2015/datepicker/datepicker.module.d.ts +0 -10
- package/dist/es2015/datepicker/datepicker.module.js +0 -52
- package/dist/es2015/datepicker/localization/datepicker-custom-messages.component.js +0 -35
- package/dist/es2015/datepicker/localization/datepicker-localized-messages.directive.js +0 -31
- package/dist/es2015/datepicker/localization/messages.js +0 -28
- package/dist/es2015/daterange/auto-correct-on.type.js +0 -4
- package/dist/es2015/daterange/date-range-popup-template.directive.js +0 -22
- package/dist/es2015/daterange/date-range.component.js +0 -68
- package/dist/es2015/datetimepicker/datetimepicker.module.d.ts +0 -10
- package/dist/es2015/datetimepicker/datetimepicker.module.js +0 -57
- package/dist/es2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -35
- package/dist/es2015/datetimepicker/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/datetimepicker/localization/messages.js +0 -68
- package/dist/es2015/datetimepicker/models/active-tab.type.js +0 -4
- package/dist/es2015/index.d.ts +0 -63
- package/dist/es2015/index.js +0 -63
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -35
- package/dist/es2015/popup-settings.model.js +0 -4
- package/dist/es2015/timepicker/localization/messages.js +0 -40
- package/dist/es2015/timepicker/localization/timepicker-custom-messages.component.js +0 -35
- package/dist/es2015/timepicker/localization/timepicker-localized-messages.directive.js +0 -31
- package/dist/es2015/timepicker/localization/timeselector-custom-messages.component.js +0 -37
- package/dist/es2015/timepicker/localization/timeselector-localized-messages.directive.js +0 -31
- package/dist/es2015/timepicker/models/incremental-steps.model.js +0 -4
- package/dist/es2015/timepicker/models/list-item.interface.js +0 -4
- package/dist/es2015/timepicker/models/list-service-settings.js +0 -4
- package/dist/es2015/timepicker/models/list-service.interface.js +0 -4
- package/dist/es2015/timepicker/timepicker.module.d.ts +0 -10
- package/dist/es2015/virtualization/models/scrollable.interface.js +0 -4
- package/dist/es2015/virtualization/virtualization.module.js +0 -27
- package/dist/fesm5/index.js +0 -15216
- package/dist/npm/calendar/calendar-common.module.js +0 -43
- package/dist/npm/calendar/calendar.component.js +0 -1191
- package/dist/npm/calendar/calendar.module.js +0 -110
- package/dist/npm/calendar/calendars.module.js +0 -62
- package/dist/npm/calendar/for.directive.js +0 -138
- package/dist/npm/calendar/header.component.js +0 -172
- package/dist/npm/calendar/horizontal-view-list.component.js +0 -365
- package/dist/npm/calendar/localization/calendar-custom-messages.component.js +0 -45
- package/dist/npm/calendar/localization/calendar-localized-messages.directive.js +0 -37
- package/dist/npm/calendar/localization/calendar-messages.js +0 -32
- package/dist/npm/calendar/localization/multiview-calendar-custom-messages.component.js +0 -45
- package/dist/npm/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -37
- package/dist/npm/calendar/localization/multiview-calendar-messages.js +0 -32
- package/dist/npm/calendar/models/cell-context.interface.js +0 -6
- package/dist/npm/calendar/models/keydown.interface.js +0 -6
- package/dist/npm/calendar/models/navigation-action.enum.js +0 -22
- package/dist/npm/calendar/models/row-length-options.interface.js +0 -6
- package/dist/npm/calendar/models/scrollable.interface.js +0 -6
- package/dist/npm/calendar/models/selection-range-end.type.js +0 -6
- package/dist/npm/calendar/models/selection-range.interface.js +0 -10
- package/dist/npm/calendar/models/selection.js +0 -6
- package/dist/npm/calendar/models/type.js +0 -6
- package/dist/npm/calendar/models/view-service.interface.js +0 -6
- package/dist/npm/calendar/models/view.enum.js +0 -18
- package/dist/npm/calendar/models/view.type.js +0 -6
- package/dist/npm/calendar/multiview-calendar.component.js +0 -1124
- package/dist/npm/calendar/multiview-calendar.module.js +0 -99
- package/dist/npm/calendar/navigation.component.js +0 -175
- package/dist/npm/calendar/services/bus-view.service.js +0 -85
- package/dist/npm/calendar/services/century-view.service.js +0 -182
- package/dist/npm/calendar/services/decade-view.service.js +0 -181
- package/dist/npm/calendar/services/disabled-dates.service.js +0 -72
- package/dist/npm/calendar/services/dom.service.js +0 -212
- package/dist/npm/calendar/services/month-view.service.js +0 -205
- package/dist/npm/calendar/services/navigation.service.js +0 -55
- package/dist/npm/calendar/services/scroll-sync.service.js +0 -88
- package/dist/npm/calendar/services/selection.service.js +0 -57
- package/dist/npm/calendar/services/weeknames.service.js +0 -29
- package/dist/npm/calendar/services/year-view.service.js +0 -207
- package/dist/npm/calendar/templates/cell-template.directive.js +0 -48
- package/dist/npm/calendar/templates/century-cell-template.directive.js +0 -47
- package/dist/npm/calendar/templates/decade-cell-template.directive.js +0 -47
- package/dist/npm/calendar/templates/header-title-template.directive.js +0 -46
- package/dist/npm/calendar/templates/month-cell-template.directive.js +0 -45
- package/dist/npm/calendar/templates/navigation-item-template.directive.js +0 -46
- package/dist/npm/calendar/templates/weeknumber-cell-template.directive.js +0 -45
- package/dist/npm/calendar/templates/year-cell-template.directive.js +0 -48
- package/dist/npm/calendar/templates.module.js +0 -61
- package/dist/npm/calendar/view-list.component.js +0 -303
- package/dist/npm/calendar/view.component.js +0 -320
- package/dist/npm/common/dom-queries.js +0 -26
- package/dist/npm/common/models/fillmode.js +0 -6
- package/dist/npm/common/models/rounded.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/picker.service.js +0 -20
- package/dist/npm/common/utils.js +0 -37
- package/dist/npm/dateinput/arrow.enum.js +0 -15
- package/dist/npm/dateinput/dateinput.component.js +0 -1620
- package/dist/npm/dateinput/dateinput.module.js +0 -39
- package/dist/npm/dateinput/localization/dateinput-custom-messages.component.js +0 -45
- package/dist/npm/dateinput/localization/dateinput-localized-messages.directive.js +0 -37
- package/dist/npm/dateinput/localization/messages.js +0 -28
- package/dist/npm/dateinput/models/format-placeholder.model.js +0 -6
- package/dist/npm/dateinput/models/format-settings.model.js +0 -6
- package/dist/npm/dateinput/models/incremental-steps.model.js +0 -6
- package/dist/npm/dateinputs.module.js +0 -65
- package/dist/npm/datepicker/datepicker.component.js +0 -1258
- package/dist/npm/datepicker/datepicker.module.js +0 -57
- package/dist/npm/datepicker/localization/datepicker-custom-messages.component.js +0 -45
- package/dist/npm/datepicker/localization/datepicker-localized-messages.directive.js +0 -37
- package/dist/npm/datepicker/localization/messages.js +0 -36
- package/dist/npm/daterange/auto-correct-on.type.js +0 -6
- package/dist/npm/daterange/date-range-end-input.directive.js +0 -99
- package/dist/npm/daterange/date-range-input.js +0 -133
- package/dist/npm/daterange/date-range-popup-template.directive.js +0 -25
- package/dist/npm/daterange/date-range-popup.component.js +0 -405
- package/dist/npm/daterange/date-range-selection.directive.js +0 -232
- package/dist/npm/daterange/date-range-start-input.directive.js +0 -99
- package/dist/npm/daterange/date-range.component.js +0 -73
- package/dist/npm/daterange/date-range.module.js +0 -85
- package/dist/npm/daterange/date-range.service.js +0 -211
- package/dist/npm/datetimepicker/datetimepicker.component.js +0 -1311
- package/dist/npm/datetimepicker/datetimepicker.module.js +0 -59
- package/dist/npm/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -45
- package/dist/npm/datetimepicker/localization/localized-messages.directive.js +0 -37
- package/dist/npm/datetimepicker/localization/messages.js +0 -76
- package/dist/npm/datetimepicker/models/active-tab.type.js +0 -6
- package/dist/npm/defaults.js +0 -26
- package/dist/npm/index.js +0 -127
- package/dist/npm/main.js +0 -68
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/popup-settings.model.js +0 -6
- package/dist/npm/preventable-event.js +0 -31
- package/dist/npm/timepicker/localization/messages.js +0 -48
- package/dist/npm/timepicker/localization/timepicker-custom-messages.component.js +0 -45
- package/dist/npm/timepicker/localization/timepicker-localized-messages.directive.js +0 -37
- package/dist/npm/timepicker/localization/timeselector-custom-messages.component.js +0 -47
- package/dist/npm/timepicker/localization/timeselector-localized-messages.directive.js +0 -37
- package/dist/npm/timepicker/models/incremental-steps.model.js +0 -6
- package/dist/npm/timepicker/models/list-item.interface.js +0 -6
- package/dist/npm/timepicker/models/list-service-settings.js +0 -6
- package/dist/npm/timepicker/models/list-service.interface.js +0 -6
- package/dist/npm/timepicker/models/time-part.default.js +0 -16
- package/dist/npm/timepicker/services/dayperiod.service.js +0 -136
- package/dist/npm/timepicker/services/dom.service.js +0 -70
- package/dist/npm/timepicker/services/hours.service.js +0 -134
- package/dist/npm/timepicker/services/milliseconds.service.js +0 -135
- package/dist/npm/timepicker/services/minutes.service.js +0 -132
- package/dist/npm/timepicker/services/seconds.service.js +0 -132
- package/dist/npm/timepicker/timelist.component.js +0 -299
- package/dist/npm/timepicker/timepicker.component.js +0 -1046
- package/dist/npm/timepicker/timepicker.module.js +0 -77
- package/dist/npm/timepicker/timeselector.component.js +0 -488
- package/dist/npm/timepicker/util.js +0 -101
- package/dist/npm/touch-enabled.js +0 -11
- package/dist/npm/util.js +0 -399
- package/dist/npm/validators/disabled-date.validator.js +0 -20
- package/dist/npm/validators/disabled-dates-range.validator.js +0 -30
- package/dist/npm/validators/incomplete-date.validator.js +0 -20
- package/dist/npm/validators/max.validator.js +0 -23
- package/dist/npm/validators/min.validator.js +0 -23
- package/dist/npm/validators/time-range.validator.js +0 -25
- package/dist/npm/virtualization/models/scrollable.interface.js +0 -6
- package/dist/npm/virtualization/services/row-height.service.js +0 -74
- package/dist/npm/virtualization/services/scroller.service.js +0 -113
- package/dist/npm/virtualization/virtualization.component.js +0 -346
- package/dist/npm/virtualization/virtualization.module.js +0 -32
- package/dist/systemjs/kendo-angular-dateinputs.js +0 -5
|
@@ -1,1189 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
/* tslint:disable:no-forward-ref */
|
|
7
|
-
import { Component, ChangeDetectorRef, ChangeDetectionStrategy, ContentChild, EventEmitter, ElementRef, Renderer2, isDevMode, forwardRef, HostBinding, Input, Output, ViewChild, Optional, NgZone, Injector } from '@angular/core';
|
|
8
|
-
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
|
|
9
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { cloneDate, isEqual } from '@progress/kendo-date-math';
|
|
11
|
-
import { hasObservers, KendoInput, guid, Keys } from '@progress/kendo-angular-common';
|
|
12
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
|
-
import { packageMetadata } from '../package-metadata';
|
|
14
|
-
import { MultiViewCalendarComponent } from './multiview-calendar.component';
|
|
15
|
-
import { NavigationComponent } from './navigation.component';
|
|
16
|
-
import { ViewListComponent } from './view-list.component';
|
|
17
|
-
import { CalendarDOMService } from './services/dom.service';
|
|
18
|
-
import { BusViewService } from './services/bus-view.service';
|
|
19
|
-
import { NavigationService } from './services/navigation.service';
|
|
20
|
-
import { DisabledDatesService } from './services/disabled-dates.service';
|
|
21
|
-
import { SelectionService } from './services/selection.service';
|
|
22
|
-
import { ScrollSyncService } from './services/scroll-sync.service';
|
|
23
|
-
import { CellTemplateDirective } from './templates/cell-template.directive';
|
|
24
|
-
import { MonthCellTemplateDirective } from './templates/month-cell-template.directive';
|
|
25
|
-
import { YearCellTemplateDirective } from './templates/year-cell-template.directive';
|
|
26
|
-
import { DecadeCellTemplateDirective } from './templates/decade-cell-template.directive';
|
|
27
|
-
import { CenturyCellTemplateDirective } from './templates/century-cell-template.directive';
|
|
28
|
-
import { WeekNumberCellTemplateDirective } from './templates/weeknumber-cell-template.directive';
|
|
29
|
-
import { HeaderTitleTemplateDirective } from './templates/header-title-template.directive';
|
|
30
|
-
import { NavigationItemTemplateDirective } from './templates/navigation-item-template.directive';
|
|
31
|
-
import { PickerService } from '../common/picker.service';
|
|
32
|
-
import { CalendarViewEnum } from './models/view.enum';
|
|
33
|
-
import { minValidator } from '../validators/min.validator';
|
|
34
|
-
import { maxValidator } from '../validators/max.validator';
|
|
35
|
-
import { MIN_DATE, MAX_DATE } from '../defaults';
|
|
36
|
-
import { areDatesEqual, dateInRange, getToday, hasExistingValue, last, noop } from '../util';
|
|
37
|
-
import { closest } from '../common/dom-queries';
|
|
38
|
-
import { requiresZoneOnBlur, preventDefault, isPresent } from '../common/utils';
|
|
39
|
-
import { from as fromPromise } from 'rxjs';
|
|
40
|
-
var BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
|
|
41
|
-
var TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
|
|
42
|
-
var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
|
|
43
|
-
var MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max';
|
|
44
|
-
var VALUE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json';
|
|
45
|
-
var virtualizationProp = function (x) { return x ? x.virtualization : null; };
|
|
46
|
-
var ɵ0 = virtualizationProp;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
export var CALENDAR_VALUE_ACCESSOR = {
|
|
51
|
-
multi: true,
|
|
52
|
-
provide: NG_VALUE_ACCESSOR,
|
|
53
|
-
useExisting: forwardRef(function () { return CalendarComponent; }) //tslint:disable-line:no-use-before-declare
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
export var CALENDAR_RANGE_VALIDATORS = {
|
|
59
|
-
multi: true,
|
|
60
|
-
provide: NG_VALIDATORS,
|
|
61
|
-
useExisting: forwardRef(function () { return CalendarComponent; }) //tslint:disable-line:no-use-before-declare
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
export var KENDO_INPUT_PROVIDER = {
|
|
67
|
-
provide: KendoInput,
|
|
68
|
-
useExisting: forwardRef(function () { return CalendarComponent; }) //tslint:disable-line:no-use-before-declare
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Represents the [Kendo UI Calendar component for Angular]({% slug overview_calendar %}#toc-basic-usage).
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* _@Component({
|
|
76
|
-
* selector: 'my-app',
|
|
77
|
-
* template: `
|
|
78
|
-
* <kendo-calendar></kendo-calendar>
|
|
79
|
-
* `
|
|
80
|
-
* })
|
|
81
|
-
* export class AppComponent { }
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
var CalendarComponent = /** @class */ (function () {
|
|
85
|
-
function CalendarComponent(bus, dom, element, navigator, renderer, cdr, ngZone, injector, scrollSyncService, disabledDatesService, localization, selectionService, pickerService) {
|
|
86
|
-
this.bus = bus;
|
|
87
|
-
this.dom = dom;
|
|
88
|
-
this.element = element;
|
|
89
|
-
this.navigator = navigator;
|
|
90
|
-
this.renderer = renderer;
|
|
91
|
-
this.cdr = cdr;
|
|
92
|
-
this.ngZone = ngZone;
|
|
93
|
-
this.injector = injector;
|
|
94
|
-
this.scrollSyncService = scrollSyncService;
|
|
95
|
-
this.disabledDatesService = disabledDatesService;
|
|
96
|
-
this.localization = localization;
|
|
97
|
-
this.selectionService = selectionService;
|
|
98
|
-
this.pickerService = pickerService;
|
|
99
|
-
/**
|
|
100
|
-
* @hidden
|
|
101
|
-
*/
|
|
102
|
-
this.id = guid();
|
|
103
|
-
/**
|
|
104
|
-
* Determines whether the built-in min or max validators are enforced when validating a form.
|
|
105
|
-
*/
|
|
106
|
-
this.rangeValidation = false;
|
|
107
|
-
/**
|
|
108
|
-
* Sets the Calendar selection mode
|
|
109
|
-
* ([see example]({% slug multiple_selection_calendar %})).
|
|
110
|
-
*
|
|
111
|
-
* The available values are:
|
|
112
|
-
* * `single` (default)
|
|
113
|
-
* * `multiple`
|
|
114
|
-
*/
|
|
115
|
-
this.selection = 'single';
|
|
116
|
-
/**
|
|
117
|
-
* Sets or gets the `disabled` property of the Calendar and
|
|
118
|
-
* determines whether the component is active
|
|
119
|
-
* ([see example]({% slug disabled_calendar %})).
|
|
120
|
-
*/
|
|
121
|
-
this.disabled = false;
|
|
122
|
-
/**
|
|
123
|
-
* Sets or gets the `tabindex` property of the Calendar. Based on the
|
|
124
|
-
* [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
|
|
125
|
-
* it determines whether the component is focusable.
|
|
126
|
-
*/
|
|
127
|
-
this.tabindex = 0;
|
|
128
|
-
/**
|
|
129
|
-
* Sets or gets the `navigation` property of the Calendar
|
|
130
|
-
* and determines whether the navigation side-bar will be displayed
|
|
131
|
-
* ([see example]({% slug sidebar_calendar %})).
|
|
132
|
-
* Applies to the [`infinite`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
|
|
133
|
-
*/
|
|
134
|
-
this.navigation = true;
|
|
135
|
-
/**
|
|
136
|
-
* Defines the active view that the Calendar initially renders
|
|
137
|
-
* ([see example]({% slug activeview_calendar %})).
|
|
138
|
-
* By default, the active view is `month`.
|
|
139
|
-
*
|
|
140
|
-
* > You have to set `activeView` within the `topView`-`bottomView` range.
|
|
141
|
-
*/
|
|
142
|
-
this.activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
143
|
-
/**
|
|
144
|
-
* Defines the bottommost view to which the user can navigate
|
|
145
|
-
* ([see example]({% slug dates_calendar %}#toc-partial-dates)).
|
|
146
|
-
*/
|
|
147
|
-
this.bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
148
|
-
/**
|
|
149
|
-
* Defines the topmost view to which the user can navigate
|
|
150
|
-
* ([see example]({% slug sidebar_calendar %}#toc-partial-dates)).
|
|
151
|
-
*/
|
|
152
|
-
this.topView = CalendarViewEnum[CalendarViewEnum.century];
|
|
153
|
-
/**
|
|
154
|
-
* Determines whether to enable animation when navigating to previous/next view.
|
|
155
|
-
* Applies to the [`classic`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
|
|
156
|
-
*
|
|
157
|
-
* > This feature uses the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). In order to run the animation in browsers that do not support it, you need the `web-animations-js` polyfill.
|
|
158
|
-
*
|
|
159
|
-
* @default false
|
|
160
|
-
*/
|
|
161
|
-
this.animateNavigation = false;
|
|
162
|
-
/**
|
|
163
|
-
* Determines whether to display a week number column in the `month` view
|
|
164
|
-
* ([see example]({% slug weeknumcolumn_calendar %})).
|
|
165
|
-
*/
|
|
166
|
-
this.weekNumber = false;
|
|
167
|
-
/**
|
|
168
|
-
* Fires when the active view is changed
|
|
169
|
-
* ([more information and example]({% slug overview_calendar %}#toc-events)).
|
|
170
|
-
*/
|
|
171
|
-
this.activeViewChange = new EventEmitter();
|
|
172
|
-
/**
|
|
173
|
-
* Fires when navigating in the currently active view
|
|
174
|
-
* ([more information and example]({% slug events_calendar %})).
|
|
175
|
-
*/
|
|
176
|
-
this.navigate = new EventEmitter();
|
|
177
|
-
/**
|
|
178
|
-
* Fires when the active view date is changed
|
|
179
|
-
* ([more information and example]({% slug overview_calendar %}#toc-events)).
|
|
180
|
-
* Applies to the [`infinite`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
|
|
181
|
-
*/
|
|
182
|
-
this.activeViewDateChange = new EventEmitter();
|
|
183
|
-
/**
|
|
184
|
-
* Fires when the value is changed
|
|
185
|
-
* ([more information and example]({% slug overview_calendar %}#toc-events)).
|
|
186
|
-
*/
|
|
187
|
-
this.valueChange = new EventEmitter();
|
|
188
|
-
this.isActive = false;
|
|
189
|
-
this.cellUID = guid();
|
|
190
|
-
this.selectedDates = [];
|
|
191
|
-
this._min = new Date(MIN_DATE);
|
|
192
|
-
this._max = new Date(MAX_DATE);
|
|
193
|
-
this._focusedDate = getToday();
|
|
194
|
-
this.onControlChange = noop;
|
|
195
|
-
this.onControlTouched = noop;
|
|
196
|
-
this.onValidatorChange = noop;
|
|
197
|
-
this.minValidateFn = noop;
|
|
198
|
-
this.maxValidateFn = noop;
|
|
199
|
-
this.syncNavigation = true;
|
|
200
|
-
this._type = 'infinite';
|
|
201
|
-
this.domEvents = [];
|
|
202
|
-
this.resolvedPromise = Promise.resolve(null);
|
|
203
|
-
this.destroyed = false;
|
|
204
|
-
validatePackage(packageMetadata);
|
|
205
|
-
this.setClasses(element.nativeElement);
|
|
206
|
-
if (this.pickerService) {
|
|
207
|
-
this.pickerService.calendar = this;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
Object.defineProperty(CalendarComponent.prototype, "focusedDate", {
|
|
211
|
-
get: function () {
|
|
212
|
-
return this._focusedDate;
|
|
213
|
-
},
|
|
214
|
-
/**
|
|
215
|
-
* Sets or gets the `focusedDate` property of the Calendar and
|
|
216
|
-
* defines the focused date of the component
|
|
217
|
-
* ([see example]({% slug dates_calendar %}#toc-focused-dates)).
|
|
218
|
-
*
|
|
219
|
-
* > If the Calendar is out of the min or max range, it normalizes the defined `focusedDate`.
|
|
220
|
-
*/
|
|
221
|
-
set: function (focusedDate) {
|
|
222
|
-
if (this.activeViewDate && !isEqual(this._focusedDate, focusedDate)) {
|
|
223
|
-
var service = this.bus.service(this.activeViewEnum);
|
|
224
|
-
var lastDayInPeriod = service.lastDayOfPeriod(this.activeViewDate);
|
|
225
|
-
var isFocusedDateInRange = service.isInRange(focusedDate, this.activeViewDate, lastDayInPeriod);
|
|
226
|
-
if (!isFocusedDateInRange) {
|
|
227
|
-
this.emitNavigate(focusedDate);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
this._focusedDate = focusedDate || getToday();
|
|
231
|
-
this.setAriaActivedescendant();
|
|
232
|
-
},
|
|
233
|
-
enumerable: true,
|
|
234
|
-
configurable: true
|
|
235
|
-
});
|
|
236
|
-
Object.defineProperty(CalendarComponent.prototype, "min", {
|
|
237
|
-
get: function () {
|
|
238
|
-
return this._min;
|
|
239
|
-
},
|
|
240
|
-
/**
|
|
241
|
-
* Sets or gets the `min` property of the Calendar and
|
|
242
|
-
* defines the minimum allowed date value
|
|
243
|
-
* ([see example]({% slug dateranges_calendar %})).
|
|
244
|
-
* By default, the `min` value is `1900-1-1`.
|
|
245
|
-
*/
|
|
246
|
-
set: function (min) {
|
|
247
|
-
this._min = min || new Date(MIN_DATE);
|
|
248
|
-
},
|
|
249
|
-
enumerable: true,
|
|
250
|
-
configurable: true
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(CalendarComponent.prototype, "max", {
|
|
253
|
-
get: function () {
|
|
254
|
-
return this._max;
|
|
255
|
-
},
|
|
256
|
-
/**
|
|
257
|
-
* Sets or gets the `max` property of the Calendar and
|
|
258
|
-
* defines the maximum allowed date value
|
|
259
|
-
* ([see example]({% slug dateranges_calendar %})).
|
|
260
|
-
* By default, the `max` value is `2099-12-31`.
|
|
261
|
-
*/
|
|
262
|
-
set: function (max) {
|
|
263
|
-
this._max = max || new Date(MAX_DATE);
|
|
264
|
-
},
|
|
265
|
-
enumerable: true,
|
|
266
|
-
configurable: true
|
|
267
|
-
});
|
|
268
|
-
Object.defineProperty(CalendarComponent.prototype, "value", {
|
|
269
|
-
/**
|
|
270
|
-
* Sets or gets the `value` property of the Calendar and defines the selected value of the component.
|
|
271
|
-
*
|
|
272
|
-
* > The `value` has to be a valid
|
|
273
|
-
* [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date)
|
|
274
|
-
* instance when in `single` selection mode or an array of valid JavaScript Date instances when in `multiple` selection mode.
|
|
275
|
-
*/
|
|
276
|
-
get: function () {
|
|
277
|
-
return this._value;
|
|
278
|
-
},
|
|
279
|
-
set: function (candidate) {
|
|
280
|
-
this.verifyValue(candidate);
|
|
281
|
-
this._value = Array.isArray(candidate) ?
|
|
282
|
-
candidate.filter(function (date) { return isPresent(date); }).map(function (element) { return cloneDate(element); }) :
|
|
283
|
-
cloneDate(candidate);
|
|
284
|
-
var selection = [].concat(candidate).filter(function (date) { return isPresent(date); }).map(function (date) { return cloneDate(date); });
|
|
285
|
-
if (!areDatesEqual(selection, this.selectedDates)) {
|
|
286
|
-
var lastSelected = last(selection);
|
|
287
|
-
this.rangePivot = cloneDate(lastSelected);
|
|
288
|
-
this.focusedDate = cloneDate(lastSelected) || this.focusedDate;
|
|
289
|
-
this.selectedDates = selection;
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
enumerable: true,
|
|
293
|
-
configurable: true
|
|
294
|
-
});
|
|
295
|
-
Object.defineProperty(CalendarComponent.prototype, "tabIndex", {
|
|
296
|
-
get: function () {
|
|
297
|
-
return this.tabindex;
|
|
298
|
-
},
|
|
299
|
-
/**
|
|
300
|
-
* @hidden
|
|
301
|
-
*/
|
|
302
|
-
set: function (tabIndex) {
|
|
303
|
-
this.tabindex = tabIndex;
|
|
304
|
-
},
|
|
305
|
-
enumerable: true,
|
|
306
|
-
configurable: true
|
|
307
|
-
});
|
|
308
|
-
Object.defineProperty(CalendarComponent.prototype, "disabledDates", {
|
|
309
|
-
get: function () {
|
|
310
|
-
return this._disabledDates;
|
|
311
|
-
},
|
|
312
|
-
/**
|
|
313
|
-
* Sets the dates of the Calendar that will be disabled
|
|
314
|
-
* ([see example]({% slug disabled_dates_calendar %})).
|
|
315
|
-
*/
|
|
316
|
-
set: function (value) {
|
|
317
|
-
this.disabledDatesService.initialize(value);
|
|
318
|
-
this._disabledDates = value;
|
|
319
|
-
},
|
|
320
|
-
enumerable: true,
|
|
321
|
-
configurable: true
|
|
322
|
-
});
|
|
323
|
-
Object.defineProperty(CalendarComponent.prototype, "type", {
|
|
324
|
-
get: function () {
|
|
325
|
-
return this._type;
|
|
326
|
-
},
|
|
327
|
-
/**
|
|
328
|
-
* Specifies the Calendar type.
|
|
329
|
-
*
|
|
330
|
-
* The possible values are:
|
|
331
|
-
* - `infinite` (default)
|
|
332
|
-
* - `classic`
|
|
333
|
-
*
|
|
334
|
-
*/
|
|
335
|
-
set: function (type) {
|
|
336
|
-
this.renderer.removeClass(this.element.nativeElement, "k-calendar-" + this.type);
|
|
337
|
-
this.renderer.addClass(this.element.nativeElement, "k-calendar-" + type);
|
|
338
|
-
this._type = type;
|
|
339
|
-
},
|
|
340
|
-
enumerable: true,
|
|
341
|
-
configurable: true
|
|
342
|
-
});
|
|
343
|
-
Object.defineProperty(CalendarComponent.prototype, "cellTemplateRef", {
|
|
344
|
-
get: function () {
|
|
345
|
-
return this._cellTemplateRef || this.cellTemplate;
|
|
346
|
-
},
|
|
347
|
-
/**
|
|
348
|
-
* @hidden
|
|
349
|
-
*
|
|
350
|
-
* Defines the template for each cell.
|
|
351
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
352
|
-
*/
|
|
353
|
-
set: function (template) {
|
|
354
|
-
this._cellTemplateRef = template;
|
|
355
|
-
},
|
|
356
|
-
enumerable: true,
|
|
357
|
-
configurable: true
|
|
358
|
-
});
|
|
359
|
-
Object.defineProperty(CalendarComponent.prototype, "monthCellTemplateRef", {
|
|
360
|
-
get: function () {
|
|
361
|
-
return this._monthCellTemplateRef || this.monthCellTemplate;
|
|
362
|
-
},
|
|
363
|
-
/**
|
|
364
|
-
* @hidden
|
|
365
|
-
*
|
|
366
|
-
* Defines the template for each month cell.
|
|
367
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
368
|
-
*/
|
|
369
|
-
set: function (template) {
|
|
370
|
-
this._monthCellTemplateRef = template;
|
|
371
|
-
},
|
|
372
|
-
enumerable: true,
|
|
373
|
-
configurable: true
|
|
374
|
-
});
|
|
375
|
-
Object.defineProperty(CalendarComponent.prototype, "yearCellTemplateRef", {
|
|
376
|
-
get: function () {
|
|
377
|
-
return this._yearCellTemplateRef || this.yearCellTemplate;
|
|
378
|
-
},
|
|
379
|
-
/**
|
|
380
|
-
* @hidden
|
|
381
|
-
*
|
|
382
|
-
* Defines the template for each year cell.
|
|
383
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
384
|
-
*/
|
|
385
|
-
set: function (template) {
|
|
386
|
-
this._yearCellTemplateRef = template;
|
|
387
|
-
},
|
|
388
|
-
enumerable: true,
|
|
389
|
-
configurable: true
|
|
390
|
-
});
|
|
391
|
-
Object.defineProperty(CalendarComponent.prototype, "decadeCellTemplateRef", {
|
|
392
|
-
get: function () {
|
|
393
|
-
return this._decadeCellTemplateRef || this.decadeCellTemplate;
|
|
394
|
-
},
|
|
395
|
-
/**
|
|
396
|
-
* @hidden
|
|
397
|
-
*
|
|
398
|
-
* Defines the template for each decade cell.
|
|
399
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
400
|
-
*/
|
|
401
|
-
set: function (template) {
|
|
402
|
-
this._decadeCellTemplateRef = template;
|
|
403
|
-
},
|
|
404
|
-
enumerable: true,
|
|
405
|
-
configurable: true
|
|
406
|
-
});
|
|
407
|
-
Object.defineProperty(CalendarComponent.prototype, "centuryCellTemplateRef", {
|
|
408
|
-
get: function () {
|
|
409
|
-
return this._centuryCellTemplateRef || this.centuryCellTemplate;
|
|
410
|
-
},
|
|
411
|
-
/**
|
|
412
|
-
* @hidden
|
|
413
|
-
*
|
|
414
|
-
* Defines the template for each century cell.
|
|
415
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
416
|
-
*/
|
|
417
|
-
set: function (template) {
|
|
418
|
-
this._centuryCellTemplateRef = template;
|
|
419
|
-
},
|
|
420
|
-
enumerable: true,
|
|
421
|
-
configurable: true
|
|
422
|
-
});
|
|
423
|
-
Object.defineProperty(CalendarComponent.prototype, "weekNumberTemplateRef", {
|
|
424
|
-
get: function () {
|
|
425
|
-
return this._weekNumberTemplateRef || this.weekNumberTemplate;
|
|
426
|
-
},
|
|
427
|
-
/**
|
|
428
|
-
* @hidden
|
|
429
|
-
*
|
|
430
|
-
* Defines the template for the week cell.
|
|
431
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
432
|
-
*/
|
|
433
|
-
set: function (template) {
|
|
434
|
-
this._weekNumberTemplateRef = template;
|
|
435
|
-
},
|
|
436
|
-
enumerable: true,
|
|
437
|
-
configurable: true
|
|
438
|
-
});
|
|
439
|
-
Object.defineProperty(CalendarComponent.prototype, "headerTitleTemplateRef", {
|
|
440
|
-
get: function () {
|
|
441
|
-
return this._headerTitleTemplateRef || this.headerTitleTemplate;
|
|
442
|
-
},
|
|
443
|
-
/**
|
|
444
|
-
* @hidden
|
|
445
|
-
*
|
|
446
|
-
* Defines the template for the header title.
|
|
447
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
448
|
-
*/
|
|
449
|
-
set: function (template) {
|
|
450
|
-
this._headerTitleTemplateRef = template;
|
|
451
|
-
},
|
|
452
|
-
enumerable: true,
|
|
453
|
-
configurable: true
|
|
454
|
-
});
|
|
455
|
-
Object.defineProperty(CalendarComponent.prototype, "navigationItemTemplateRef", {
|
|
456
|
-
get: function () {
|
|
457
|
-
return this._navigationItemTemplateRef || this.navigationItemTemplate;
|
|
458
|
-
},
|
|
459
|
-
/**
|
|
460
|
-
* @hidden
|
|
461
|
-
*
|
|
462
|
-
* Defines the template for the navigation item.
|
|
463
|
-
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
464
|
-
*/
|
|
465
|
-
set: function (template) {
|
|
466
|
-
this._navigationItemTemplateRef = template;
|
|
467
|
-
},
|
|
468
|
-
enumerable: true,
|
|
469
|
-
configurable: true
|
|
470
|
-
});
|
|
471
|
-
Object.defineProperty(CalendarComponent.prototype, "activeViewEnum", {
|
|
472
|
-
get: function () {
|
|
473
|
-
var activeView = CalendarViewEnum[this.activeView];
|
|
474
|
-
return activeView < this.bottomViewEnum ? this.bottomViewEnum : activeView;
|
|
475
|
-
},
|
|
476
|
-
enumerable: true,
|
|
477
|
-
configurable: true
|
|
478
|
-
});
|
|
479
|
-
Object.defineProperty(CalendarComponent.prototype, "bottomViewEnum", {
|
|
480
|
-
get: function () {
|
|
481
|
-
return CalendarViewEnum[this.bottomView];
|
|
482
|
-
},
|
|
483
|
-
enumerable: true,
|
|
484
|
-
configurable: true
|
|
485
|
-
});
|
|
486
|
-
Object.defineProperty(CalendarComponent.prototype, "topViewEnum", {
|
|
487
|
-
get: function () {
|
|
488
|
-
return CalendarViewEnum[this.topView];
|
|
489
|
-
},
|
|
490
|
-
enumerable: true,
|
|
491
|
-
configurable: true
|
|
492
|
-
});
|
|
493
|
-
Object.defineProperty(CalendarComponent.prototype, "widgetId", {
|
|
494
|
-
get: function () {
|
|
495
|
-
return this.id;
|
|
496
|
-
},
|
|
497
|
-
enumerable: true,
|
|
498
|
-
configurable: true
|
|
499
|
-
});
|
|
500
|
-
Object.defineProperty(CalendarComponent.prototype, "calendarTabIndex", {
|
|
501
|
-
get: function () {
|
|
502
|
-
// in Classic mode, the inner MultiViewCalendar is the focusable element
|
|
503
|
-
return this.disabled || this.type === 'classic' ? undefined : this.tabIndex;
|
|
504
|
-
},
|
|
505
|
-
enumerable: true,
|
|
506
|
-
configurable: true
|
|
507
|
-
});
|
|
508
|
-
Object.defineProperty(CalendarComponent.prototype, "ariaDisabled", {
|
|
509
|
-
get: function () {
|
|
510
|
-
// in Classic mode, the inner MultiViewCalendar should handle the disabled class and aria attr
|
|
511
|
-
return this.type === 'classic' ? undefined : this.disabled;
|
|
512
|
-
},
|
|
513
|
-
enumerable: true,
|
|
514
|
-
configurable: true
|
|
515
|
-
});
|
|
516
|
-
CalendarComponent.prototype.ngOnInit = function () {
|
|
517
|
-
var _this = this;
|
|
518
|
-
this.dom.calculateHeights(this.element.nativeElement);
|
|
519
|
-
this.scrollSyncService.configure(this.activeViewEnum);
|
|
520
|
-
this.localizationChangeSubscription = this.localization.changes.subscribe(function () { return _this.cdr.markForCheck(); });
|
|
521
|
-
this.viewChangeSubscription = this.bus.viewChanged.subscribe(function (_a) {
|
|
522
|
-
var view = _a.view;
|
|
523
|
-
return _this.handleActiveViewChange(CalendarViewEnum[view]);
|
|
524
|
-
});
|
|
525
|
-
this.control = this.injector.get(NgControl, null);
|
|
526
|
-
if (this.element) {
|
|
527
|
-
this.ngZone.runOutsideAngular(function () {
|
|
528
|
-
_this.bindEvents();
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
CalendarComponent.prototype.ngOnChanges = function (changes) {
|
|
533
|
-
this.verifyChanges();
|
|
534
|
-
this.bus.configure(this.bottomViewEnum, this.topViewEnum);
|
|
535
|
-
this.scrollSyncService.configure(this.activeViewEnum);
|
|
536
|
-
if (hasExistingValue(changes, 'focusedDate')) {
|
|
537
|
-
var focusedDate = changes.focusedDate.currentValue;
|
|
538
|
-
this.focusedDate = dateInRange(focusedDate, this.min, this.max);
|
|
539
|
-
}
|
|
540
|
-
if (changes.navigation) {
|
|
541
|
-
this.syncNavigation = true;
|
|
542
|
-
}
|
|
543
|
-
if (changes.min || changes.max || changes.rangeValidation) {
|
|
544
|
-
this.minValidateFn = this.rangeValidation ? minValidator(this.min) : noop;
|
|
545
|
-
this.maxValidateFn = this.rangeValidation ? maxValidator(this.max) : noop;
|
|
546
|
-
this.onValidatorChange();
|
|
547
|
-
}
|
|
548
|
-
};
|
|
549
|
-
CalendarComponent.prototype.ngAfterViewInit = function () {
|
|
550
|
-
this.setAriaActivedescendant();
|
|
551
|
-
};
|
|
552
|
-
CalendarComponent.prototype.ngAfterViewChecked = function () {
|
|
553
|
-
if (!this.syncNavigation) {
|
|
554
|
-
return;
|
|
555
|
-
}
|
|
556
|
-
this.syncNavigation = false;
|
|
557
|
-
this.scrollSyncService.sync(virtualizationProp(this.navigationView), virtualizationProp(this.monthView));
|
|
558
|
-
};
|
|
559
|
-
CalendarComponent.prototype.ngOnDestroy = function () {
|
|
560
|
-
this.scrollSyncService.destroy();
|
|
561
|
-
this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
|
|
562
|
-
if (this.pickerService) {
|
|
563
|
-
this.pickerService.calendar = null;
|
|
564
|
-
}
|
|
565
|
-
if (this.viewChangeSubscription) {
|
|
566
|
-
this.viewChangeSubscription.unsubscribe();
|
|
567
|
-
}
|
|
568
|
-
if (this.pageChangeSubscription) {
|
|
569
|
-
this.pageChangeSubscription.unsubscribe();
|
|
570
|
-
}
|
|
571
|
-
if (this.localizationChangeSubscription) {
|
|
572
|
-
this.localizationChangeSubscription.unsubscribe();
|
|
573
|
-
}
|
|
574
|
-
this.destroyed = true;
|
|
575
|
-
};
|
|
576
|
-
/**
|
|
577
|
-
* @hidden
|
|
578
|
-
*/
|
|
579
|
-
CalendarComponent.prototype.onResize = function () {
|
|
580
|
-
this.focusedDate = new Date(this.focusedDate);
|
|
581
|
-
this.cdr.detectChanges();
|
|
582
|
-
};
|
|
583
|
-
/**
|
|
584
|
-
* Focuses the host element of the Calendar.
|
|
585
|
-
*
|
|
586
|
-
* @example
|
|
587
|
-
* ```ts
|
|
588
|
-
* _@Component({
|
|
589
|
-
* selector: 'my-app',
|
|
590
|
-
* template: `
|
|
591
|
-
* <button (click)="calendar.focus()">Focus calendar</button>
|
|
592
|
-
* <kendo-calendar #calendar></kendo-calendar>
|
|
593
|
-
* `
|
|
594
|
-
* })
|
|
595
|
-
* export class AppComponent { }
|
|
596
|
-
* ```
|
|
597
|
-
*/
|
|
598
|
-
CalendarComponent.prototype.focus = function () {
|
|
599
|
-
var focusTarget = this.type === 'infinite' ?
|
|
600
|
-
this.element && this.element.nativeElement :
|
|
601
|
-
this.multiViewCalendar;
|
|
602
|
-
if (isPresent(focusTarget)) {
|
|
603
|
-
focusTarget.focus();
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
|
-
/**
|
|
607
|
-
* Blurs the Calendar component.
|
|
608
|
-
*/
|
|
609
|
-
CalendarComponent.prototype.blur = function () {
|
|
610
|
-
var blurTarget = this.type === 'infinite' ?
|
|
611
|
-
this.element && this.element.nativeElement :
|
|
612
|
-
this.multiViewCalendar;
|
|
613
|
-
if (isPresent(blurTarget)) {
|
|
614
|
-
blurTarget.blur();
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
/**
|
|
618
|
-
* @hidden
|
|
619
|
-
*/
|
|
620
|
-
CalendarComponent.prototype.containsElement = function (element) {
|
|
621
|
-
var _this = this;
|
|
622
|
-
return Boolean(closest(element, function (node) { return node === _this.element.nativeElement; }));
|
|
623
|
-
};
|
|
624
|
-
/**
|
|
625
|
-
* @hidden
|
|
626
|
-
*/
|
|
627
|
-
CalendarComponent.prototype.handleNavigation = function (candidate) {
|
|
628
|
-
if (this.disabled) {
|
|
629
|
-
return;
|
|
630
|
-
}
|
|
631
|
-
var focusTarget = candidate ? new Date(cloneDate(candidate).setDate(1)) : this.focusedDate;
|
|
632
|
-
this.focusedDate = dateInRange(focusTarget, this.min, this.max);
|
|
633
|
-
this.detectChanges();
|
|
634
|
-
};
|
|
635
|
-
/**
|
|
636
|
-
* @hidden
|
|
637
|
-
*/
|
|
638
|
-
CalendarComponent.prototype.onPageChange = function () {
|
|
639
|
-
var _this = this;
|
|
640
|
-
if (!NgZone.isInAngularZone()) {
|
|
641
|
-
if (this.pageChangeSubscription) {
|
|
642
|
-
this.pageChangeSubscription.unsubscribe();
|
|
643
|
-
}
|
|
644
|
-
this.pageChangeSubscription = fromPromise(this.resolvedPromise)
|
|
645
|
-
.subscribe(function () {
|
|
646
|
-
_this.detectChanges(); // requires zone if templates
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
|
-
/**
|
|
651
|
-
* @hidden
|
|
652
|
-
*/
|
|
653
|
-
CalendarComponent.prototype.handleMultiViewCalendarValueChange = function (date, focusedDate) {
|
|
654
|
-
var selectedDates = Array.isArray(date) ? date : [date];
|
|
655
|
-
this.handleDateChange({ selectedDates: selectedDates, focusedDate: focusedDate });
|
|
656
|
-
};
|
|
657
|
-
/**
|
|
658
|
-
* @hidden
|
|
659
|
-
*/
|
|
660
|
-
CalendarComponent.prototype.handleDateChange = function (args) {
|
|
661
|
-
var _this = this;
|
|
662
|
-
var selectedDates = Array.isArray(args.selectedDates) ? args.selectedDates : [args.selectedDates];
|
|
663
|
-
var canNavigateDown = this.bus.canMoveDown(this.activeViewEnum);
|
|
664
|
-
var availableDates = selectedDates.filter(function (date) { return !_this.disabledDatesService.isDateDisabled(date); });
|
|
665
|
-
this.focusedDate = args.focusedDate || this.focusedDate;
|
|
666
|
-
if (this.disabled) {
|
|
667
|
-
return;
|
|
668
|
-
}
|
|
669
|
-
if (!canNavigateDown && areDatesEqual(availableDates, this.selectedDates)) {
|
|
670
|
-
this.emitSameDate();
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
if (canNavigateDown) {
|
|
674
|
-
this.bus.moveDown(this.activeViewEnum);
|
|
675
|
-
return;
|
|
676
|
-
}
|
|
677
|
-
if (this.disabledDatesService.isDateDisabled(this.focusedDate)) {
|
|
678
|
-
return;
|
|
679
|
-
}
|
|
680
|
-
this.ngZone.run(function () {
|
|
681
|
-
_this.selectedDates = availableDates.map(function (date) { return cloneDate(date); });
|
|
682
|
-
_this.value = _this.parseSelectionToValue(availableDates);
|
|
683
|
-
_this.onControlChange(_this.parseSelectionToValue(availableDates));
|
|
684
|
-
_this.valueChange.emit(_this.parseSelectionToValue(availableDates));
|
|
685
|
-
_this.cdr.markForCheck();
|
|
686
|
-
});
|
|
687
|
-
};
|
|
688
|
-
/**
|
|
689
|
-
* @hidden
|
|
690
|
-
*/
|
|
691
|
-
CalendarComponent.prototype.writeValue = function (candidate) {
|
|
692
|
-
this.verifyValue(candidate);
|
|
693
|
-
this.value = candidate;
|
|
694
|
-
this.cdr.markForCheck();
|
|
695
|
-
};
|
|
696
|
-
/**
|
|
697
|
-
* @hidden
|
|
698
|
-
*/
|
|
699
|
-
CalendarComponent.prototype.registerOnChange = function (fn) {
|
|
700
|
-
this.onControlChange = fn;
|
|
701
|
-
};
|
|
702
|
-
/**
|
|
703
|
-
* @hidden
|
|
704
|
-
*/
|
|
705
|
-
CalendarComponent.prototype.registerOnTouched = function (fn) {
|
|
706
|
-
this.onControlTouched = fn;
|
|
707
|
-
};
|
|
708
|
-
/**
|
|
709
|
-
* @hidden
|
|
710
|
-
*/
|
|
711
|
-
CalendarComponent.prototype.setDisabledState = function (isDisabled) {
|
|
712
|
-
this.disabled = isDisabled;
|
|
713
|
-
this.cdr.markForCheck();
|
|
714
|
-
};
|
|
715
|
-
/**
|
|
716
|
-
* @hidden
|
|
717
|
-
*/
|
|
718
|
-
CalendarComponent.prototype.validate = function (control) {
|
|
719
|
-
return this.minValidateFn(control) || this.maxValidateFn(control);
|
|
720
|
-
};
|
|
721
|
-
/**
|
|
722
|
-
* @hidden
|
|
723
|
-
*/
|
|
724
|
-
CalendarComponent.prototype.registerOnValidatorChange = function (fn) {
|
|
725
|
-
this.onValidatorChange = fn;
|
|
726
|
-
};
|
|
727
|
-
/**
|
|
728
|
-
* @hidden
|
|
729
|
-
*/
|
|
730
|
-
CalendarComponent.prototype.activeCellTemplate = function () {
|
|
731
|
-
switch (this.activeViewEnum) {
|
|
732
|
-
case CalendarViewEnum.month:
|
|
733
|
-
return this.monthCellTemplateRef || this.cellTemplateRef;
|
|
734
|
-
case CalendarViewEnum.year:
|
|
735
|
-
return this.yearCellTemplateRef;
|
|
736
|
-
case CalendarViewEnum.decade:
|
|
737
|
-
return this.decadeCellTemplateRef;
|
|
738
|
-
case CalendarViewEnum.century:
|
|
739
|
-
return this.centuryCellTemplateRef;
|
|
740
|
-
default:
|
|
741
|
-
return null;
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
/**
|
|
745
|
-
* @hidden
|
|
746
|
-
*/
|
|
747
|
-
CalendarComponent.prototype.handleNavigate = function (event) {
|
|
748
|
-
this.focusedDate = event.focusedDate;
|
|
749
|
-
this.activeView = event.activeView;
|
|
750
|
-
this.emitNavigate(this.focusedDate);
|
|
751
|
-
};
|
|
752
|
-
/**
|
|
753
|
-
* @hidden
|
|
754
|
-
*/
|
|
755
|
-
CalendarComponent.prototype.emitNavigate = function (focusedDate) {
|
|
756
|
-
var activeView = CalendarViewEnum[this.activeViewEnum];
|
|
757
|
-
this.navigate.emit({ activeView: activeView, focusedDate: focusedDate });
|
|
758
|
-
};
|
|
759
|
-
/**
|
|
760
|
-
* @hidden
|
|
761
|
-
*/
|
|
762
|
-
CalendarComponent.prototype.emitEvent = function (emitter, args) {
|
|
763
|
-
if (hasObservers(emitter)) {
|
|
764
|
-
this.ngZone.run(function () {
|
|
765
|
-
emitter.emit(args);
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
/**
|
|
770
|
-
* @hidden
|
|
771
|
-
*/
|
|
772
|
-
CalendarComponent.prototype.handleActiveDateChange = function (date) {
|
|
773
|
-
this.activeViewDate = date;
|
|
774
|
-
this.emitEvent(this.activeViewDateChange, date);
|
|
775
|
-
};
|
|
776
|
-
/**
|
|
777
|
-
* @hidden
|
|
778
|
-
*/
|
|
779
|
-
CalendarComponent.prototype.handleActiveViewChange = function (view) {
|
|
780
|
-
this.activeView = view;
|
|
781
|
-
this.emitEvent(this.activeViewChange, view);
|
|
782
|
-
if (this.type === 'infinite') {
|
|
783
|
-
this.scrollSyncService.configure(this.activeViewEnum);
|
|
784
|
-
}
|
|
785
|
-
this.detectChanges(); // requires zone if templates
|
|
786
|
-
};
|
|
787
|
-
CalendarComponent.prototype.handleCellClick = function (_a) {
|
|
788
|
-
var date = _a.date, modifiers = _a.modifiers;
|
|
789
|
-
this.performSelection(date, modifiers);
|
|
790
|
-
};
|
|
791
|
-
/**
|
|
792
|
-
* @hidden
|
|
793
|
-
*/
|
|
794
|
-
CalendarComponent.prototype.handleWeekNumberClick = function (dates) {
|
|
795
|
-
var _this = this;
|
|
796
|
-
if (this.selection === 'single') {
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
this.ngZone.run(function () {
|
|
800
|
-
_this.handleDateChange({
|
|
801
|
-
selectedDates: dates,
|
|
802
|
-
focusedDate: last(dates)
|
|
803
|
-
});
|
|
804
|
-
});
|
|
805
|
-
};
|
|
806
|
-
/**
|
|
807
|
-
* @hidden
|
|
808
|
-
*/
|
|
809
|
-
CalendarComponent.prototype.handleBlur = function (args) {
|
|
810
|
-
var _this = this;
|
|
811
|
-
if (this.element.nativeElement.contains(args.relatedTarget)) {
|
|
812
|
-
return;
|
|
813
|
-
}
|
|
814
|
-
this.isActive = false;
|
|
815
|
-
// the injector can get the NgControl instance of the parent component (for example, the DateTimePicker)
|
|
816
|
-
// and enters the zone for no reason because the parent component is still untouched
|
|
817
|
-
if (!this.pickerService && requiresZoneOnBlur(this.control)) {
|
|
818
|
-
this.ngZone.run(function () {
|
|
819
|
-
_this.onControlTouched();
|
|
820
|
-
_this.emitBlur(args);
|
|
821
|
-
_this.cdr.markForCheck();
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
else {
|
|
825
|
-
this.emitBlur(args);
|
|
826
|
-
this.detectChanges();
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
|
-
/**
|
|
830
|
-
* @hidden
|
|
831
|
-
*/
|
|
832
|
-
CalendarComponent.prototype.handleFocus = function () {
|
|
833
|
-
this.isActive = true;
|
|
834
|
-
if (!NgZone.isInAngularZone()) {
|
|
835
|
-
this.detectChanges();
|
|
836
|
-
}
|
|
837
|
-
this.emitFocus();
|
|
838
|
-
};
|
|
839
|
-
CalendarComponent.prototype.setClasses = function (element) {
|
|
840
|
-
this.renderer.addClass(element, 'k-widget');
|
|
841
|
-
this.renderer.addClass(element, 'k-calendar');
|
|
842
|
-
this.renderer.addClass(element, "k-calendar-" + this.type);
|
|
843
|
-
};
|
|
844
|
-
CalendarComponent.prototype.verifyChanges = function () {
|
|
845
|
-
if (!isDevMode()) {
|
|
846
|
-
return;
|
|
847
|
-
}
|
|
848
|
-
if (this.min > this.max) {
|
|
849
|
-
throw new Error("The max value should be bigger than the min. See " + MIN_DOC_LINK + " and " + MAX_DOC_LINK + ".");
|
|
850
|
-
}
|
|
851
|
-
if (this.bottomViewEnum > this.topViewEnum) {
|
|
852
|
-
throw new Error("The topView should be greater than bottomView. See " + BOTTOM_VIEW_DOC_LINK + " and " + TOP_VIEW_DOC_LINK + ".");
|
|
853
|
-
}
|
|
854
|
-
};
|
|
855
|
-
CalendarComponent.prototype.verifyValue = function (candidate) {
|
|
856
|
-
if (!isDevMode()) {
|
|
857
|
-
return;
|
|
858
|
-
}
|
|
859
|
-
if (this.selection === 'single' && candidate && !(candidate instanceof Date)) {
|
|
860
|
-
throw new Error("The 'value' should be a valid JavaScript Date instance. Check " + VALUE_DOC_LINK + " for possible resolution.");
|
|
861
|
-
}
|
|
862
|
-
else if (this.selection === 'multiple' && candidate && Array.isArray(candidate)) {
|
|
863
|
-
var onlyDates = candidate.every(function (value) { return value instanceof Date; });
|
|
864
|
-
if (!onlyDates) {
|
|
865
|
-
throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check " + VALUE_DOC_LINK + " for possible resolution.");
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
|
-
CalendarComponent.prototype.bindEvents = function () {
|
|
870
|
-
var element = this.element.nativeElement;
|
|
871
|
-
this.domEvents.push(this.renderer.listen(element, 'blur', this.handleBlur.bind(this)), this.renderer.listen(element, 'focus', this.handleFocus.bind(this)), this.renderer.listen(element, 'mousedown', preventDefault), this.renderer.listen(element, 'click', this.handleComponentClick.bind(this)), this.renderer.listen(element, 'keydown', this.handleKeydown.bind(this)));
|
|
872
|
-
};
|
|
873
|
-
CalendarComponent.prototype.emitBlur = function (args) {
|
|
874
|
-
if (this.pickerService) {
|
|
875
|
-
this.pickerService.onBlur.emit(args);
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
|
-
CalendarComponent.prototype.emitFocus = function () {
|
|
879
|
-
if (this.pickerService) {
|
|
880
|
-
this.pickerService.onFocus.emit();
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
CalendarComponent.prototype.handleComponentClick = function () {
|
|
884
|
-
if (!this.isActive) {
|
|
885
|
-
if (this.type === 'infinite' && this.monthView.isScrolled()) {
|
|
886
|
-
this.focusedDate = cloneDate(this.focusedDate); //XXX: forces change detect
|
|
887
|
-
this.detectChanges();
|
|
888
|
-
}
|
|
889
|
-
this.focus();
|
|
890
|
-
}
|
|
891
|
-
};
|
|
892
|
-
CalendarComponent.prototype.handleKeydown = function (args) {
|
|
893
|
-
var headerActive = this.type === 'classic' && this.multiViewCalendar.isHeaderActive;
|
|
894
|
-
if (headerActive) {
|
|
895
|
-
return;
|
|
896
|
-
}
|
|
897
|
-
// reserve the alt + arrow key commands for the picker
|
|
898
|
-
var arrowKeyPressed = [Keys.ArrowUp, Keys.ArrowRight, Keys.ArrowDown, Keys.ArrowLeft].indexOf(args.keyCode) !== -1;
|
|
899
|
-
if (isPresent(this.pickerService) && arrowKeyPressed && args.altKey) {
|
|
900
|
-
return;
|
|
901
|
-
}
|
|
902
|
-
var candidate = dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(args), this.activeViewEnum), this.min, this.max);
|
|
903
|
-
if (!isEqual(this.focusedDate, candidate)) {
|
|
904
|
-
this.focusedDate = candidate;
|
|
905
|
-
this.detectChanges();
|
|
906
|
-
args.preventDefault();
|
|
907
|
-
}
|
|
908
|
-
if (args.keyCode === Keys.Enter) {
|
|
909
|
-
this.performSelection(this.focusedDate, args);
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
CalendarComponent.prototype.detectChanges = function () {
|
|
913
|
-
if (!this.destroyed) {
|
|
914
|
-
this.cdr.detectChanges();
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
CalendarComponent.prototype.emitSameDate = function () {
|
|
918
|
-
if (this.pickerService) {
|
|
919
|
-
this.pickerService.sameDateSelected.emit();
|
|
920
|
-
}
|
|
921
|
-
};
|
|
922
|
-
CalendarComponent.prototype.setAriaActivedescendant = function () {
|
|
923
|
-
// in Classic mode, the inner MultiViewCalendar handles the activedescendant
|
|
924
|
-
if (!isPresent(this.element) || (this.type === 'classic' && !this.element.nativeElement.hasAttribute('aria-activedescendant'))) {
|
|
925
|
-
return;
|
|
926
|
-
}
|
|
927
|
-
if (this.type === 'classic') {
|
|
928
|
-
this.renderer.removeAttribute(this.element.nativeElement, 'aria-activedescendant');
|
|
929
|
-
return;
|
|
930
|
-
}
|
|
931
|
-
var focusedCellId = this.cellUID + this.focusedDate.getTime();
|
|
932
|
-
this.renderer.setAttribute(this.element.nativeElement, 'aria-activedescendant', focusedCellId);
|
|
933
|
-
};
|
|
934
|
-
CalendarComponent.prototype.parseSelectionToValue = function (selection) {
|
|
935
|
-
selection = selection || [];
|
|
936
|
-
return this.selection === 'single' ? cloneDate(last(selection)) : selection.map(function (date) { return cloneDate(date); });
|
|
937
|
-
};
|
|
938
|
-
CalendarComponent.prototype.performSelection = function (date, selectionModifiers) {
|
|
939
|
-
var selection = this.selectionService.performSelection({
|
|
940
|
-
date: date,
|
|
941
|
-
modifiers: selectionModifiers,
|
|
942
|
-
selectionMode: this.selection,
|
|
943
|
-
activeViewEnum: this.activeViewEnum,
|
|
944
|
-
rangePivot: this.rangePivot,
|
|
945
|
-
selectedDates: this.selectedDates
|
|
946
|
-
});
|
|
947
|
-
this.rangePivot = selection.rangePivot;
|
|
948
|
-
this.handleDateChange({
|
|
949
|
-
selectedDates: selection.selectedDates,
|
|
950
|
-
focusedDate: date
|
|
951
|
-
});
|
|
952
|
-
};
|
|
953
|
-
tslib_1.__decorate([
|
|
954
|
-
Input(),
|
|
955
|
-
tslib_1.__metadata("design:type", String)
|
|
956
|
-
], CalendarComponent.prototype, "id", void 0);
|
|
957
|
-
tslib_1.__decorate([
|
|
958
|
-
Input(),
|
|
959
|
-
tslib_1.__metadata("design:type", Date),
|
|
960
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
961
|
-
], CalendarComponent.prototype, "focusedDate", null);
|
|
962
|
-
tslib_1.__decorate([
|
|
963
|
-
Input(),
|
|
964
|
-
tslib_1.__metadata("design:type", Date),
|
|
965
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
966
|
-
], CalendarComponent.prototype, "min", null);
|
|
967
|
-
tslib_1.__decorate([
|
|
968
|
-
Input(),
|
|
969
|
-
tslib_1.__metadata("design:type", Date),
|
|
970
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
971
|
-
], CalendarComponent.prototype, "max", null);
|
|
972
|
-
tslib_1.__decorate([
|
|
973
|
-
Input(),
|
|
974
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
975
|
-
], CalendarComponent.prototype, "rangeValidation", void 0);
|
|
976
|
-
tslib_1.__decorate([
|
|
977
|
-
Input(),
|
|
978
|
-
tslib_1.__metadata("design:type", String)
|
|
979
|
-
], CalendarComponent.prototype, "selection", void 0);
|
|
980
|
-
tslib_1.__decorate([
|
|
981
|
-
Input(),
|
|
982
|
-
tslib_1.__metadata("design:type", Object),
|
|
983
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
984
|
-
], CalendarComponent.prototype, "value", null);
|
|
985
|
-
tslib_1.__decorate([
|
|
986
|
-
Input(),
|
|
987
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
988
|
-
], CalendarComponent.prototype, "disabled", void 0);
|
|
989
|
-
tslib_1.__decorate([
|
|
990
|
-
Input(),
|
|
991
|
-
tslib_1.__metadata("design:type", Number)
|
|
992
|
-
], CalendarComponent.prototype, "tabindex", void 0);
|
|
993
|
-
tslib_1.__decorate([
|
|
994
|
-
Input(),
|
|
995
|
-
tslib_1.__metadata("design:type", Number),
|
|
996
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
997
|
-
], CalendarComponent.prototype, "tabIndex", null);
|
|
998
|
-
tslib_1.__decorate([
|
|
999
|
-
Input(),
|
|
1000
|
-
tslib_1.__metadata("design:type", Object),
|
|
1001
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
1002
|
-
], CalendarComponent.prototype, "disabledDates", null);
|
|
1003
|
-
tslib_1.__decorate([
|
|
1004
|
-
Input(),
|
|
1005
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
1006
|
-
], CalendarComponent.prototype, "navigation", void 0);
|
|
1007
|
-
tslib_1.__decorate([
|
|
1008
|
-
Input(),
|
|
1009
|
-
tslib_1.__metadata("design:type", String)
|
|
1010
|
-
], CalendarComponent.prototype, "activeView", void 0);
|
|
1011
|
-
tslib_1.__decorate([
|
|
1012
|
-
Input(),
|
|
1013
|
-
tslib_1.__metadata("design:type", String)
|
|
1014
|
-
], CalendarComponent.prototype, "bottomView", void 0);
|
|
1015
|
-
tslib_1.__decorate([
|
|
1016
|
-
Input(),
|
|
1017
|
-
tslib_1.__metadata("design:type", String)
|
|
1018
|
-
], CalendarComponent.prototype, "topView", void 0);
|
|
1019
|
-
tslib_1.__decorate([
|
|
1020
|
-
Input(),
|
|
1021
|
-
tslib_1.__metadata("design:type", String),
|
|
1022
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
1023
|
-
], CalendarComponent.prototype, "type", null);
|
|
1024
|
-
tslib_1.__decorate([
|
|
1025
|
-
Input(),
|
|
1026
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
1027
|
-
], CalendarComponent.prototype, "animateNavigation", void 0);
|
|
1028
|
-
tslib_1.__decorate([
|
|
1029
|
-
Input(),
|
|
1030
|
-
HostBinding('class.k-week-number'),
|
|
1031
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
1032
|
-
], CalendarComponent.prototype, "weekNumber", void 0);
|
|
1033
|
-
tslib_1.__decorate([
|
|
1034
|
-
Output(),
|
|
1035
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
1036
|
-
], CalendarComponent.prototype, "activeViewChange", void 0);
|
|
1037
|
-
tslib_1.__decorate([
|
|
1038
|
-
Output(),
|
|
1039
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
1040
|
-
], CalendarComponent.prototype, "navigate", void 0);
|
|
1041
|
-
tslib_1.__decorate([
|
|
1042
|
-
Output(),
|
|
1043
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
1044
|
-
], CalendarComponent.prototype, "activeViewDateChange", void 0);
|
|
1045
|
-
tslib_1.__decorate([
|
|
1046
|
-
Output(),
|
|
1047
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
1048
|
-
], CalendarComponent.prototype, "valueChange", void 0);
|
|
1049
|
-
tslib_1.__decorate([
|
|
1050
|
-
ContentChild(CellTemplateDirective, { static: false }),
|
|
1051
|
-
tslib_1.__metadata("design:type", CellTemplateDirective)
|
|
1052
|
-
], CalendarComponent.prototype, "cellTemplate", void 0);
|
|
1053
|
-
tslib_1.__decorate([
|
|
1054
|
-
Input('cellTemplate'),
|
|
1055
|
-
tslib_1.__metadata("design:type", CellTemplateDirective),
|
|
1056
|
-
tslib_1.__metadata("design:paramtypes", [CellTemplateDirective])
|
|
1057
|
-
], CalendarComponent.prototype, "cellTemplateRef", null);
|
|
1058
|
-
tslib_1.__decorate([
|
|
1059
|
-
ContentChild(MonthCellTemplateDirective, { static: false }),
|
|
1060
|
-
tslib_1.__metadata("design:type", MonthCellTemplateDirective)
|
|
1061
|
-
], CalendarComponent.prototype, "monthCellTemplate", void 0);
|
|
1062
|
-
tslib_1.__decorate([
|
|
1063
|
-
Input('monthCellTemplate'),
|
|
1064
|
-
tslib_1.__metadata("design:type", MonthCellTemplateDirective),
|
|
1065
|
-
tslib_1.__metadata("design:paramtypes", [MonthCellTemplateDirective])
|
|
1066
|
-
], CalendarComponent.prototype, "monthCellTemplateRef", null);
|
|
1067
|
-
tslib_1.__decorate([
|
|
1068
|
-
ContentChild(YearCellTemplateDirective, { static: false }),
|
|
1069
|
-
tslib_1.__metadata("design:type", YearCellTemplateDirective)
|
|
1070
|
-
], CalendarComponent.prototype, "yearCellTemplate", void 0);
|
|
1071
|
-
tslib_1.__decorate([
|
|
1072
|
-
Input('yearCellTemplate'),
|
|
1073
|
-
tslib_1.__metadata("design:type", YearCellTemplateDirective),
|
|
1074
|
-
tslib_1.__metadata("design:paramtypes", [YearCellTemplateDirective])
|
|
1075
|
-
], CalendarComponent.prototype, "yearCellTemplateRef", null);
|
|
1076
|
-
tslib_1.__decorate([
|
|
1077
|
-
ContentChild(DecadeCellTemplateDirective, { static: false }),
|
|
1078
|
-
tslib_1.__metadata("design:type", DecadeCellTemplateDirective)
|
|
1079
|
-
], CalendarComponent.prototype, "decadeCellTemplate", void 0);
|
|
1080
|
-
tslib_1.__decorate([
|
|
1081
|
-
Input('decadeCellTemplate'),
|
|
1082
|
-
tslib_1.__metadata("design:type", DecadeCellTemplateDirective),
|
|
1083
|
-
tslib_1.__metadata("design:paramtypes", [DecadeCellTemplateDirective])
|
|
1084
|
-
], CalendarComponent.prototype, "decadeCellTemplateRef", null);
|
|
1085
|
-
tslib_1.__decorate([
|
|
1086
|
-
ContentChild(CenturyCellTemplateDirective, { static: false }),
|
|
1087
|
-
tslib_1.__metadata("design:type", CenturyCellTemplateDirective)
|
|
1088
|
-
], CalendarComponent.prototype, "centuryCellTemplate", void 0);
|
|
1089
|
-
tslib_1.__decorate([
|
|
1090
|
-
Input('centuryCellTemplate'),
|
|
1091
|
-
tslib_1.__metadata("design:type", CenturyCellTemplateDirective),
|
|
1092
|
-
tslib_1.__metadata("design:paramtypes", [CenturyCellTemplateDirective])
|
|
1093
|
-
], CalendarComponent.prototype, "centuryCellTemplateRef", null);
|
|
1094
|
-
tslib_1.__decorate([
|
|
1095
|
-
ContentChild(WeekNumberCellTemplateDirective, { static: false }),
|
|
1096
|
-
tslib_1.__metadata("design:type", WeekNumberCellTemplateDirective)
|
|
1097
|
-
], CalendarComponent.prototype, "weekNumberTemplate", void 0);
|
|
1098
|
-
tslib_1.__decorate([
|
|
1099
|
-
Input('weekNumberTemplate'),
|
|
1100
|
-
tslib_1.__metadata("design:type", WeekNumberCellTemplateDirective),
|
|
1101
|
-
tslib_1.__metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
|
|
1102
|
-
], CalendarComponent.prototype, "weekNumberTemplateRef", null);
|
|
1103
|
-
tslib_1.__decorate([
|
|
1104
|
-
ContentChild(HeaderTitleTemplateDirective, { static: false }),
|
|
1105
|
-
tslib_1.__metadata("design:type", HeaderTitleTemplateDirective)
|
|
1106
|
-
], CalendarComponent.prototype, "headerTitleTemplate", void 0);
|
|
1107
|
-
tslib_1.__decorate([
|
|
1108
|
-
Input('headerTitleTemplate'),
|
|
1109
|
-
tslib_1.__metadata("design:type", HeaderTitleTemplateDirective),
|
|
1110
|
-
tslib_1.__metadata("design:paramtypes", [HeaderTitleTemplateDirective])
|
|
1111
|
-
], CalendarComponent.prototype, "headerTitleTemplateRef", null);
|
|
1112
|
-
tslib_1.__decorate([
|
|
1113
|
-
ContentChild(NavigationItemTemplateDirective, { static: false }),
|
|
1114
|
-
tslib_1.__metadata("design:type", NavigationItemTemplateDirective)
|
|
1115
|
-
], CalendarComponent.prototype, "navigationItemTemplate", void 0);
|
|
1116
|
-
tslib_1.__decorate([
|
|
1117
|
-
Input('navigationItemTemplate'),
|
|
1118
|
-
tslib_1.__metadata("design:type", NavigationItemTemplateDirective),
|
|
1119
|
-
tslib_1.__metadata("design:paramtypes", [NavigationItemTemplateDirective])
|
|
1120
|
-
], CalendarComponent.prototype, "navigationItemTemplateRef", null);
|
|
1121
|
-
tslib_1.__decorate([
|
|
1122
|
-
ViewChild(NavigationComponent, { static: false }),
|
|
1123
|
-
tslib_1.__metadata("design:type", NavigationComponent)
|
|
1124
|
-
], CalendarComponent.prototype, "navigationView", void 0);
|
|
1125
|
-
tslib_1.__decorate([
|
|
1126
|
-
ViewChild(ViewListComponent, { static: false }),
|
|
1127
|
-
tslib_1.__metadata("design:type", ViewListComponent)
|
|
1128
|
-
], CalendarComponent.prototype, "monthView", void 0);
|
|
1129
|
-
tslib_1.__decorate([
|
|
1130
|
-
ViewChild(MultiViewCalendarComponent, { static: false }),
|
|
1131
|
-
tslib_1.__metadata("design:type", MultiViewCalendarComponent)
|
|
1132
|
-
], CalendarComponent.prototype, "multiViewCalendar", void 0);
|
|
1133
|
-
tslib_1.__decorate([
|
|
1134
|
-
HostBinding('attr.id'),
|
|
1135
|
-
tslib_1.__metadata("design:type", String),
|
|
1136
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1137
|
-
], CalendarComponent.prototype, "widgetId", null);
|
|
1138
|
-
tslib_1.__decorate([
|
|
1139
|
-
HostBinding('attr.tabindex'),
|
|
1140
|
-
tslib_1.__metadata("design:type", Number),
|
|
1141
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1142
|
-
], CalendarComponent.prototype, "calendarTabIndex", null);
|
|
1143
|
-
tslib_1.__decorate([
|
|
1144
|
-
HostBinding('attr.aria-disabled'),
|
|
1145
|
-
HostBinding('class.k-disabled'),
|
|
1146
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
1147
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1148
|
-
], CalendarComponent.prototype, "ariaDisabled", null);
|
|
1149
|
-
CalendarComponent = tslib_1.__decorate([
|
|
1150
|
-
Component({
|
|
1151
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1152
|
-
exportAs: 'kendo-calendar',
|
|
1153
|
-
providers: [
|
|
1154
|
-
BusViewService,
|
|
1155
|
-
CALENDAR_VALUE_ACCESSOR,
|
|
1156
|
-
CALENDAR_RANGE_VALIDATORS,
|
|
1157
|
-
KENDO_INPUT_PROVIDER,
|
|
1158
|
-
LocalizationService,
|
|
1159
|
-
DisabledDatesService,
|
|
1160
|
-
{
|
|
1161
|
-
provide: L10N_PREFIX,
|
|
1162
|
-
useValue: 'kendo.calendar'
|
|
1163
|
-
},
|
|
1164
|
-
NavigationService,
|
|
1165
|
-
ScrollSyncService,
|
|
1166
|
-
SelectionService
|
|
1167
|
-
],
|
|
1168
|
-
selector: 'kendo-calendar',
|
|
1169
|
-
template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <ng-container *ngIf=\"type === 'infinite'\">\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [activeView]=\"activeViewEnum\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [templateRef]=\"navigationItemTemplateRef?.templateRef\"\n (valueChange)=\"handleNavigation($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [headerTitleTemplateRef]=\"headerTitleTemplateRef?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplateRef?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [weekNumber]=\"weekNumber\"\n [selectedDates]=\"selectedDates\"\n (todayButtonClick)=\"handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (activeDateChange)=\"handleActiveDateChange($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf=\"type === 'classic'\">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]=\"1\"\n [min]=\"min\"\n [max]=\"max\"\n [isActive]=\"isActive\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [animateNavigation]=\"animateNavigation\"\n [cellTemplate]=\"activeCellTemplate()\"\n [monthCellTemplate]=\"monthCellTemplateRef\"\n [yearCellTemplate]=\"yearCellTemplateRef\"\n [decadeCellTemplate]=\"decadeCellTemplateRef\"\n [centuryCellTemplate]=\"centuryCellTemplateRef\"\n [headerTitleTemplate]=\"headerTitleTemplateRef\"\n [weekNumberTemplate]=\"weekNumberTemplateRef\"\n [focusedDate]=\"focusedDate\"\n [selection]=\"selection\"\n [value]=\"value\"\n [disabledDates]=\"disabledDates\"\n (activeViewChange)=\"handleActiveViewChange($event)\"\n (navigate)=\"handleNavigate($event)\"\n (valueChange)=\"handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur($event)\"\n >\n <kendo-multiviewcalendar-messages\n [today]=\"localization.get('today')\"\n [prevButtonTitle]=\"localization.get('prevButtonTitle')\"\n [nextButtonTitle]=\"localization.get('nextButtonTitle')\"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n "
|
|
1170
|
-
}),
|
|
1171
|
-
tslib_1.__param(12, Optional()),
|
|
1172
|
-
tslib_1.__metadata("design:paramtypes", [BusViewService,
|
|
1173
|
-
CalendarDOMService,
|
|
1174
|
-
ElementRef,
|
|
1175
|
-
NavigationService,
|
|
1176
|
-
Renderer2,
|
|
1177
|
-
ChangeDetectorRef,
|
|
1178
|
-
NgZone,
|
|
1179
|
-
Injector,
|
|
1180
|
-
ScrollSyncService,
|
|
1181
|
-
DisabledDatesService,
|
|
1182
|
-
LocalizationService,
|
|
1183
|
-
SelectionService,
|
|
1184
|
-
PickerService])
|
|
1185
|
-
], CalendarComponent);
|
|
1186
|
-
return CalendarComponent;
|
|
1187
|
-
}());
|
|
1188
|
-
export { CalendarComponent };
|
|
1189
|
-
export { ɵ0 };
|