@progress/kendo-angular-dateinputs 6.0.3 → 7.0.0-next.202203231050
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 +40 -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 +0 -0
- package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
- package/{dist/es2015/common → common}/models/size.d.ts +0 -0
- 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 +21 -12
- 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 +36 -24
- 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 +5 -1
- package/{dist/es2015/daterange → daterange}/date-range-input.d.ts +5 -3
- 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 +12 -5
- package/daterange/date-range-popup.service.d.ts +52 -0
- 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 +5 -1
- package/{dist/es2015/daterange → daterange}/date-range.component.d.ts +4 -1
- package/{dist/es2015/daterange → daterange}/date-range.module.d.ts +15 -1
- package/{dist/es2015/daterange → daterange}/date-range.service.d.ts +8 -38
- package/{dist/es2015/datetimepicker → datetimepicker}/datetimepicker.component.d.ts +38 -23
- 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 +277 -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 +16 -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 +26 -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 +26 -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 +104 -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 +179 -183
- 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 +24 -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 +285 -285
- 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 +28 -0
- package/{dist/es → esm2015}/daterange/auto-correct-on.type.js +1 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-end-input.directive.js +21 -27
- package/{dist/es2015 → esm2015}/daterange/date-range-input.js +11 -8
- package/esm2015/daterange/date-range-popup-template.directive.js +23 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-popup.component.js +75 -91
- package/esm2015/daterange/date-range-popup.service.js +87 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-selection.directive.js +26 -39
- package/{dist/es2015 → esm2015}/daterange/date-range-start-input.directive.js +21 -27
- package/esm2015/daterange/date-range.component.js +74 -0
- package/{dist/es2015 → esm2015}/daterange/date-range.module.js +27 -12
- package/{dist/es2015 → esm2015}/daterange/date-range.service.js +8 -75
- package/{dist/es2015 → esm2015}/datetimepicker/datetimepicker.component.js +398 -227
- 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 +48 -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 +25 -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 +0 -0
- package/esm2015/timepicker/localization/messages.js +34 -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 +219 -179
- 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 +1 -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} +9630 -9048
- 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} +25 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -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} +0 -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 +32 -18
- 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} +0 -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,1124 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var forms_1 = require("@angular/forms");
|
|
10
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
11
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
12
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
13
|
-
var horizontal_view_list_component_1 = require("./horizontal-view-list.component");
|
|
14
|
-
var header_component_1 = require("./header.component");
|
|
15
|
-
var bus_view_service_1 = require("./services/bus-view.service");
|
|
16
|
-
var navigation_service_1 = require("./services/navigation.service");
|
|
17
|
-
var selection_service_1 = require("./services/selection.service");
|
|
18
|
-
var disabled_dates_service_1 = require("./services/disabled-dates.service");
|
|
19
|
-
var cell_template_directive_1 = require("./templates/cell-template.directive");
|
|
20
|
-
var month_cell_template_directive_1 = require("./templates/month-cell-template.directive");
|
|
21
|
-
var year_cell_template_directive_1 = require("./templates/year-cell-template.directive");
|
|
22
|
-
var decade_cell_template_directive_1 = require("./templates/decade-cell-template.directive");
|
|
23
|
-
var century_cell_template_directive_1 = require("./templates/century-cell-template.directive");
|
|
24
|
-
var weeknumber_cell_template_directive_1 = require("./templates/weeknumber-cell-template.directive");
|
|
25
|
-
var header_title_template_directive_1 = require("./templates/header-title-template.directive");
|
|
26
|
-
var navigation_action_enum_1 = require("./models/navigation-action.enum");
|
|
27
|
-
var view_enum_1 = require("./models/view.enum");
|
|
28
|
-
var min_validator_1 = require("../validators/min.validator");
|
|
29
|
-
var max_validator_1 = require("../validators/max.validator");
|
|
30
|
-
var disabled_dates_range_validator_1 = require("../validators/disabled-dates-range.validator");
|
|
31
|
-
var defaults_1 = require("../defaults");
|
|
32
|
-
var util_1 = require("../util");
|
|
33
|
-
var rxjs_1 = require("rxjs");
|
|
34
|
-
var utils_1 = require("../common/utils");
|
|
35
|
-
var picker_service_1 = require("../common/picker.service");
|
|
36
|
-
var BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
|
|
37
|
-
var TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
|
|
38
|
-
var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
|
|
39
|
-
var MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max';
|
|
40
|
-
var VALUE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json';
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
exports.RANGE_CALENDAR_VALUE_ACCESSOR = {
|
|
45
|
-
multi: true,
|
|
46
|
-
provide: forms_1.NG_VALUE_ACCESSOR,
|
|
47
|
-
useExisting: core_1.forwardRef(function () { return MultiViewCalendarComponent; }) //tslint:disable-line:no-use-before-declare
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
exports.RANGE_CALENDAR_RANGE_VALIDATORS = {
|
|
53
|
-
multi: true,
|
|
54
|
-
provide: forms_1.NG_VALIDATORS,
|
|
55
|
-
useExisting: core_1.forwardRef(function () { return MultiViewCalendarComponent; }) //tslint:disable-line:no-use-before-declare
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Represents the Kendo UI MultiViewCalendar component for Angular.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* _@Component({
|
|
63
|
-
* selector: 'my-app',
|
|
64
|
-
* template: `
|
|
65
|
-
* <kendo-multiviewcalendar></kendo-multiviewcalendar>
|
|
66
|
-
* `
|
|
67
|
-
* })
|
|
68
|
-
* export class AppComponent { }
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
var MultiViewCalendarComponent = /** @class */ (function () {
|
|
72
|
-
function MultiViewCalendarComponent(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService, pickerService) {
|
|
73
|
-
this.bus = bus;
|
|
74
|
-
this.element = element;
|
|
75
|
-
this.navigator = navigator;
|
|
76
|
-
this.renderer = renderer;
|
|
77
|
-
this.cdr = cdr;
|
|
78
|
-
this.zone = zone;
|
|
79
|
-
this.disabledDatesService = disabledDatesService;
|
|
80
|
-
this.selectionService = selectionService;
|
|
81
|
-
this.pickerService = pickerService;
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
this.id = kendo_angular_common_1.guid();
|
|
86
|
-
/**
|
|
87
|
-
* Determines whether the built-in min or max validators are enforced when validating a form.
|
|
88
|
-
*/
|
|
89
|
-
this.rangeValidation = false;
|
|
90
|
-
/**
|
|
91
|
-
* Determines whether the built-in validator for disabled
|
|
92
|
-
* date ranges is enforced when validating a form
|
|
93
|
-
* ([see example]({% slug disabled_dates_multiviewcalendar %}#toc-validation)).
|
|
94
|
-
*/
|
|
95
|
-
this.disabledDatesRangeValidation = false;
|
|
96
|
-
/**
|
|
97
|
-
* Sets the Calendar selection mode
|
|
98
|
-
* ([see example]({% slug multiple_selection_multiviewcalendar %})).
|
|
99
|
-
*
|
|
100
|
-
* The available values are:
|
|
101
|
-
* * `single` (default)
|
|
102
|
-
* * `multiple`
|
|
103
|
-
*/
|
|
104
|
-
this.selection = 'single';
|
|
105
|
-
/**
|
|
106
|
-
* Sets or gets the `disabled` property of the Calendar and
|
|
107
|
-
* determines whether the component is active
|
|
108
|
-
* ([see example]({% slug disabled_multiviewcalendar %})).
|
|
109
|
-
*/
|
|
110
|
-
this.disabled = false;
|
|
111
|
-
/**
|
|
112
|
-
* Sets or gets the `tabindex` property of the Calendar. Based on the
|
|
113
|
-
* [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
|
|
114
|
-
* it determines whether the component is focusable.
|
|
115
|
-
*/
|
|
116
|
-
this.tabindex = 0;
|
|
117
|
-
/**
|
|
118
|
-
* @hidden
|
|
119
|
-
*/
|
|
120
|
-
this.isActive = false;
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
*/
|
|
124
|
-
this.isHeaderActive = false;
|
|
125
|
-
/**
|
|
126
|
-
* Defines the active view that the Calendar initially renders
|
|
127
|
-
* ([see example]({% slug activeview_multiviewcalendar %})).
|
|
128
|
-
* By default, the active view is `month`.
|
|
129
|
-
*
|
|
130
|
-
* > You have to set `activeView` within the `topView`-`bottomView` range.
|
|
131
|
-
*/
|
|
132
|
-
this.activeView = view_enum_1.CalendarViewEnum[view_enum_1.CalendarViewEnum.month];
|
|
133
|
-
/**
|
|
134
|
-
* Defines the bottommost view, to which the user can navigate
|
|
135
|
-
* ([see example]({% slug dates_multiviewcalendar %}#toc-partial-dates)).
|
|
136
|
-
*/
|
|
137
|
-
this.bottomView = view_enum_1.CalendarViewEnum[view_enum_1.CalendarViewEnum.month];
|
|
138
|
-
/**
|
|
139
|
-
* Defines the topmost view, to which the user can navigate.
|
|
140
|
-
*/
|
|
141
|
-
this.topView = view_enum_1.CalendarViewEnum[view_enum_1.CalendarViewEnum.century];
|
|
142
|
-
/**
|
|
143
|
-
* Determines whether to display a header for every view (for example the month name).
|
|
144
|
-
*/
|
|
145
|
-
this.showViewHeader = false;
|
|
146
|
-
/**
|
|
147
|
-
* Determines whether to enable animation when navigating to previous/next view.
|
|
148
|
-
*
|
|
149
|
-
* > 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.
|
|
150
|
-
*
|
|
151
|
-
* @default false
|
|
152
|
-
*/
|
|
153
|
-
this.animateNavigation = false;
|
|
154
|
-
/**
|
|
155
|
-
* Determines whether to display a week number column in the `month` view
|
|
156
|
-
* ([see example]({% slug weeknumcolumn_multiviewcalendar %})).
|
|
157
|
-
*/
|
|
158
|
-
this.weekNumber = false;
|
|
159
|
-
/**
|
|
160
|
-
* Sets or gets the `views` property of the Calendar and
|
|
161
|
-
* defines the number of rendered months.
|
|
162
|
-
*/
|
|
163
|
-
this.views = 2;
|
|
164
|
-
/**
|
|
165
|
-
* Fires when the active view is changed
|
|
166
|
-
* ([more information and example]({% slug overview_multiviewcalendar %}#toc-events)).
|
|
167
|
-
*/
|
|
168
|
-
this.activeViewChange = new core_1.EventEmitter();
|
|
169
|
-
/**
|
|
170
|
-
* Fires when navigating in the currently active view
|
|
171
|
-
* ([more information and example]({% slug events_multiviewcalendar %})).
|
|
172
|
-
*/
|
|
173
|
-
this.navigate = new core_1.EventEmitter();
|
|
174
|
-
/**
|
|
175
|
-
* Fires when a view cell is entered
|
|
176
|
-
* ([more information and example]({% slug overview_multiviewcalendar %}#toc-events)).
|
|
177
|
-
*/
|
|
178
|
-
this.cellEnter = new core_1.EventEmitter();
|
|
179
|
-
/**
|
|
180
|
-
* Fires when a view cell is leaved
|
|
181
|
-
* ([more information and example]({% slug overview_multiviewcalendar %}#toc-events)).
|
|
182
|
-
*/
|
|
183
|
-
this.cellLeave = new core_1.EventEmitter();
|
|
184
|
-
/**
|
|
185
|
-
* Fires when the value is changed
|
|
186
|
-
* ([more information and example]({% slug overview_multiviewcalendar %}#toc-events)).
|
|
187
|
-
*/
|
|
188
|
-
this.valueChange = new core_1.EventEmitter();
|
|
189
|
-
/**
|
|
190
|
-
* @hidden
|
|
191
|
-
*/
|
|
192
|
-
this.blurEvent = new core_1.EventEmitter();
|
|
193
|
-
this.cellUID = kendo_angular_common_1.guid();
|
|
194
|
-
this.isHovered = false;
|
|
195
|
-
this.isPrevDisabled = true;
|
|
196
|
-
this.isNextDisabled = true;
|
|
197
|
-
this.prevView = navigation_action_enum_1.Action.PrevView;
|
|
198
|
-
this.nextView = navigation_action_enum_1.Action.NextView;
|
|
199
|
-
this.selectedDates = [];
|
|
200
|
-
this._min = new Date(defaults_1.MIN_DATE);
|
|
201
|
-
this._max = new Date(defaults_1.MAX_DATE);
|
|
202
|
-
this._focusedDate = util_1.getToday();
|
|
203
|
-
this.resolvedPromise = Promise.resolve();
|
|
204
|
-
this.onControlChange = util_1.noop;
|
|
205
|
-
this.onControlTouched = util_1.noop;
|
|
206
|
-
this.onValidatorChange = util_1.noop;
|
|
207
|
-
this.minValidateFn = util_1.noop;
|
|
208
|
-
this.maxValidateFn = util_1.noop;
|
|
209
|
-
this.disabledDatesRangeValidateFn = util_1.noop;
|
|
210
|
-
this.subscriptions = new rxjs_1.Subscription();
|
|
211
|
-
this.setClasses(element.nativeElement);
|
|
212
|
-
}
|
|
213
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "focusedDate", {
|
|
214
|
-
get: function () {
|
|
215
|
-
return this._focusedDate;
|
|
216
|
-
},
|
|
217
|
-
/**
|
|
218
|
-
* Sets or gets the `focusedDate` property of the Calendar and
|
|
219
|
-
* defines the focused date of the component
|
|
220
|
-
* ([see example]({% slug dates_multiviewcalendar %}#toc-focused-dates)).
|
|
221
|
-
*
|
|
222
|
-
* > If the Calendar is out of the min or max range, it normalizes the defined `focusedDate`.
|
|
223
|
-
*/
|
|
224
|
-
set: function (focusedDate) {
|
|
225
|
-
this._focusedDate = focusedDate || util_1.getToday();
|
|
226
|
-
},
|
|
227
|
-
enumerable: true,
|
|
228
|
-
configurable: true
|
|
229
|
-
});
|
|
230
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "min", {
|
|
231
|
-
get: function () {
|
|
232
|
-
return this._min;
|
|
233
|
-
},
|
|
234
|
-
/**
|
|
235
|
-
* Sets or gets the `min` property of the Calendar and
|
|
236
|
-
* defines the minimum allowed date value.
|
|
237
|
-
* By default, the `min` value is `1900-1-1`.
|
|
238
|
-
*/
|
|
239
|
-
set: function (min) {
|
|
240
|
-
this._min = min || new Date(defaults_1.MIN_DATE);
|
|
241
|
-
},
|
|
242
|
-
enumerable: true,
|
|
243
|
-
configurable: true
|
|
244
|
-
});
|
|
245
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "max", {
|
|
246
|
-
get: function () {
|
|
247
|
-
return this._max;
|
|
248
|
-
},
|
|
249
|
-
/**
|
|
250
|
-
* Sets or gets the `max` property of the Calendar and
|
|
251
|
-
* defines the maximum allowed date value.
|
|
252
|
-
* By default, the `max` value is `2099-12-31`.
|
|
253
|
-
*/
|
|
254
|
-
set: function (max) {
|
|
255
|
-
this._max = max || new Date(defaults_1.MAX_DATE);
|
|
256
|
-
},
|
|
257
|
-
enumerable: true,
|
|
258
|
-
configurable: true
|
|
259
|
-
});
|
|
260
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "value", {
|
|
261
|
-
/**
|
|
262
|
-
* Sets or gets the `value` property of the Calendar and defines the selected value of the component.
|
|
263
|
-
*
|
|
264
|
-
* > The `value` has to be a valid
|
|
265
|
-
* [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date)
|
|
266
|
-
* instance when in `single` selection mode or an array of valid JavaScript Date instances when in `multiple` selection mode.
|
|
267
|
-
*/
|
|
268
|
-
get: function () {
|
|
269
|
-
return this._value;
|
|
270
|
-
},
|
|
271
|
-
set: function (candidate) {
|
|
272
|
-
this.verifyValue(candidate);
|
|
273
|
-
this._value = Array.isArray(candidate) ?
|
|
274
|
-
candidate.filter(function (date) { return utils_1.isPresent(date); }).map(function (element) { return kendo_date_math_1.cloneDate(element); }) :
|
|
275
|
-
kendo_date_math_1.cloneDate(candidate);
|
|
276
|
-
var selection = [].concat(candidate).filter(function (date) { return utils_1.isPresent(date); }).map(function (date) { return kendo_date_math_1.cloneDate(date); });
|
|
277
|
-
if (!util_1.areDatesEqual(selection, this.selectedDates)) {
|
|
278
|
-
var lastSelected = util_1.last(selection);
|
|
279
|
-
this.rangePivot = kendo_date_math_1.cloneDate(lastSelected);
|
|
280
|
-
this.focusedDate = kendo_date_math_1.cloneDate(lastSelected) || this.focusedDate;
|
|
281
|
-
this.selectedDates = selection;
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
enumerable: true,
|
|
285
|
-
configurable: true
|
|
286
|
-
});
|
|
287
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "tabIndex", {
|
|
288
|
-
get: function () {
|
|
289
|
-
return this.tabindex;
|
|
290
|
-
},
|
|
291
|
-
/**
|
|
292
|
-
* @hidden
|
|
293
|
-
*/
|
|
294
|
-
set: function (tabIndex) {
|
|
295
|
-
this.tabindex = tabIndex;
|
|
296
|
-
},
|
|
297
|
-
enumerable: true,
|
|
298
|
-
configurable: true
|
|
299
|
-
});
|
|
300
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "disabledDates", {
|
|
301
|
-
/**
|
|
302
|
-
* Sets the dates of the MultiViewCalendar that will be disabled
|
|
303
|
-
* ([see example]({% slug disabled_dates_multiviewcalendar %})).
|
|
304
|
-
*/
|
|
305
|
-
set: function (value) {
|
|
306
|
-
this.disabledDatesService.initialize(value);
|
|
307
|
-
},
|
|
308
|
-
enumerable: true,
|
|
309
|
-
configurable: true
|
|
310
|
-
});
|
|
311
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "selectionRange", {
|
|
312
|
-
get: function () {
|
|
313
|
-
return this._selectionRange;
|
|
314
|
-
},
|
|
315
|
-
/**
|
|
316
|
-
* Sets or gets the `selectionRange` property of the Calendar and
|
|
317
|
-
* defines the selection range of the component
|
|
318
|
-
* ([see example]({% slug dates_multiviewcalendar %}#toc-selection-range)).
|
|
319
|
-
*/
|
|
320
|
-
set: function (range) {
|
|
321
|
-
this._selectionRange = range;
|
|
322
|
-
if (this.disabledDatesRangeValidation) {
|
|
323
|
-
this.onValidatorChange();
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
enumerable: true,
|
|
327
|
-
configurable: true
|
|
328
|
-
});
|
|
329
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "cellTemplateRef", {
|
|
330
|
-
get: function () {
|
|
331
|
-
return this._cellTemplateRef || this.cellTemplate;
|
|
332
|
-
},
|
|
333
|
-
/**
|
|
334
|
-
* @hidden
|
|
335
|
-
*
|
|
336
|
-
* Defines the template for each cell.
|
|
337
|
-
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
338
|
-
*/
|
|
339
|
-
set: function (template) {
|
|
340
|
-
this._cellTemplateRef = template;
|
|
341
|
-
},
|
|
342
|
-
enumerable: true,
|
|
343
|
-
configurable: true
|
|
344
|
-
});
|
|
345
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "monthCellTemplateRef", {
|
|
346
|
-
get: function () {
|
|
347
|
-
return this._monthCellTemplateRef || this.monthCellTemplate;
|
|
348
|
-
},
|
|
349
|
-
/**
|
|
350
|
-
* @hidden
|
|
351
|
-
*
|
|
352
|
-
* Defines the template for each month cell.
|
|
353
|
-
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
354
|
-
*/
|
|
355
|
-
set: function (template) {
|
|
356
|
-
this._monthCellTemplateRef = template;
|
|
357
|
-
},
|
|
358
|
-
enumerable: true,
|
|
359
|
-
configurable: true
|
|
360
|
-
});
|
|
361
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "yearCellTemplateRef", {
|
|
362
|
-
get: function () {
|
|
363
|
-
return this._yearCellTemplateRef || this.yearCellTemplate;
|
|
364
|
-
},
|
|
365
|
-
/**
|
|
366
|
-
* @hidden
|
|
367
|
-
*
|
|
368
|
-
* Defines the template for each year cell.
|
|
369
|
-
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
370
|
-
*/
|
|
371
|
-
set: function (template) {
|
|
372
|
-
this._yearCellTemplateRef = template;
|
|
373
|
-
},
|
|
374
|
-
enumerable: true,
|
|
375
|
-
configurable: true
|
|
376
|
-
});
|
|
377
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", {
|
|
378
|
-
get: function () {
|
|
379
|
-
return this._decadeCellTemplateRef || this.decadeCellTemplate;
|
|
380
|
-
},
|
|
381
|
-
/**
|
|
382
|
-
* @hidden
|
|
383
|
-
*
|
|
384
|
-
* Defines the template for each decade cell.
|
|
385
|
-
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
386
|
-
*/
|
|
387
|
-
set: function (template) {
|
|
388
|
-
this._decadeCellTemplateRef = template;
|
|
389
|
-
},
|
|
390
|
-
enumerable: true,
|
|
391
|
-
configurable: true
|
|
392
|
-
});
|
|
393
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", {
|
|
394
|
-
get: function () {
|
|
395
|
-
return this._centuryCellTemplateRef || this.centuryCellTemplate;
|
|
396
|
-
},
|
|
397
|
-
/**
|
|
398
|
-
* @hidden
|
|
399
|
-
*
|
|
400
|
-
* Defines the template for each century cell.
|
|
401
|
-
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
402
|
-
*/
|
|
403
|
-
set: function (template) {
|
|
404
|
-
this._centuryCellTemplateRef = template;
|
|
405
|
-
},
|
|
406
|
-
enumerable: true,
|
|
407
|
-
configurable: true
|
|
408
|
-
});
|
|
409
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", {
|
|
410
|
-
get: function () {
|
|
411
|
-
return this._weekNumberTemplateRef || this.weekNumberTemplate;
|
|
412
|
-
},
|
|
413
|
-
/**
|
|
414
|
-
* @hidden
|
|
415
|
-
*
|
|
416
|
-
* Defines the template for the week cell.
|
|
417
|
-
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
418
|
-
*/
|
|
419
|
-
set: function (template) {
|
|
420
|
-
this._weekNumberTemplateRef = template;
|
|
421
|
-
},
|
|
422
|
-
enumerable: true,
|
|
423
|
-
configurable: true
|
|
424
|
-
});
|
|
425
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "headerTitleTemplateRef", {
|
|
426
|
-
get: function () {
|
|
427
|
-
return this._headerTitleTemplateRef || this.headerTitleTemplate;
|
|
428
|
-
},
|
|
429
|
-
/**
|
|
430
|
-
* @hidden
|
|
431
|
-
*
|
|
432
|
-
* Defines the template for the header title.
|
|
433
|
-
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
434
|
-
*/
|
|
435
|
-
set: function (template) {
|
|
436
|
-
this._headerTitleTemplateRef = template;
|
|
437
|
-
},
|
|
438
|
-
enumerable: true,
|
|
439
|
-
configurable: true
|
|
440
|
-
});
|
|
441
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "activeViewEnum", {
|
|
442
|
-
get: function () {
|
|
443
|
-
var activeView = view_enum_1.CalendarViewEnum[this.activeView];
|
|
444
|
-
return activeView < this.bottomViewEnum ? this.bottomViewEnum : activeView;
|
|
445
|
-
},
|
|
446
|
-
enumerable: true,
|
|
447
|
-
configurable: true
|
|
448
|
-
});
|
|
449
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "bottomViewEnum", {
|
|
450
|
-
get: function () {
|
|
451
|
-
return view_enum_1.CalendarViewEnum[this.bottomView];
|
|
452
|
-
},
|
|
453
|
-
enumerable: true,
|
|
454
|
-
configurable: true
|
|
455
|
-
});
|
|
456
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "topViewEnum", {
|
|
457
|
-
get: function () {
|
|
458
|
-
return view_enum_1.CalendarViewEnum[this.topView];
|
|
459
|
-
},
|
|
460
|
-
enumerable: true,
|
|
461
|
-
configurable: true
|
|
462
|
-
});
|
|
463
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "widgetId", {
|
|
464
|
-
get: function () {
|
|
465
|
-
return this.id;
|
|
466
|
-
},
|
|
467
|
-
enumerable: true,
|
|
468
|
-
configurable: true
|
|
469
|
-
});
|
|
470
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "calendarTabIndex", {
|
|
471
|
-
get: function () {
|
|
472
|
-
return this.disabled ? undefined : this.tabIndex;
|
|
473
|
-
},
|
|
474
|
-
enumerable: true,
|
|
475
|
-
configurable: true
|
|
476
|
-
});
|
|
477
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "ariaDisabled", {
|
|
478
|
-
get: function () {
|
|
479
|
-
return this.disabled;
|
|
480
|
-
},
|
|
481
|
-
enumerable: true,
|
|
482
|
-
configurable: true
|
|
483
|
-
});
|
|
484
|
-
Object.defineProperty(MultiViewCalendarComponent.prototype, "ariaActivedescendant", {
|
|
485
|
-
get: function () {
|
|
486
|
-
return this.cellUID + this.focusedDate.getTime();
|
|
487
|
-
},
|
|
488
|
-
enumerable: true,
|
|
489
|
-
configurable: true
|
|
490
|
-
});
|
|
491
|
-
/**
|
|
492
|
-
* @hidden
|
|
493
|
-
*/
|
|
494
|
-
MultiViewCalendarComponent.prototype.handleFocusout = function (event) {
|
|
495
|
-
var relatedTarget = event.relatedTarget;
|
|
496
|
-
if (!this.element.nativeElement.contains(relatedTarget)) {
|
|
497
|
-
this.blurEvent.emit(event);
|
|
498
|
-
this.onControlTouched();
|
|
499
|
-
}
|
|
500
|
-
this.isActive = false;
|
|
501
|
-
this.isHovered = false; //ensure that hovered is also not active
|
|
502
|
-
this.isHeaderActive = this.headerElement.nativeElement.contains(relatedTarget);
|
|
503
|
-
};
|
|
504
|
-
/**
|
|
505
|
-
* @hidden
|
|
506
|
-
*/
|
|
507
|
-
MultiViewCalendarComponent.prototype.handleFocus = function () {
|
|
508
|
-
this.isActive = true;
|
|
509
|
-
this.isHeaderActive = false;
|
|
510
|
-
};
|
|
511
|
-
/**
|
|
512
|
-
* @hidden
|
|
513
|
-
*/
|
|
514
|
-
MultiViewCalendarComponent.prototype.handleMouseEnter = function () {
|
|
515
|
-
this.isHovered = true;
|
|
516
|
-
};
|
|
517
|
-
/**
|
|
518
|
-
* @hidden
|
|
519
|
-
*/
|
|
520
|
-
MultiViewCalendarComponent.prototype.handleMouseLeave = function () {
|
|
521
|
-
this.isHovered = false;
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* @hidden
|
|
525
|
-
*/
|
|
526
|
-
MultiViewCalendarComponent.prototype.handleMousedown = function (event) {
|
|
527
|
-
event.preventDefault();
|
|
528
|
-
};
|
|
529
|
-
/**
|
|
530
|
-
* @hidden
|
|
531
|
-
*/
|
|
532
|
-
MultiViewCalendarComponent.prototype.handleClick = function () {
|
|
533
|
-
if (this.isActive) {
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
this.focus();
|
|
537
|
-
};
|
|
538
|
-
/**
|
|
539
|
-
* @hidden
|
|
540
|
-
*/
|
|
541
|
-
MultiViewCalendarComponent.prototype.keydown = function (event) {
|
|
542
|
-
if (this.isHeaderActive) {
|
|
543
|
-
return;
|
|
544
|
-
}
|
|
545
|
-
if (event.keyCode === kendo_angular_common_1.Keys.Enter) {
|
|
546
|
-
if (utils_1.isPresent(this.pickerService)) {
|
|
547
|
-
event.preventDefault(); // Don't submit form from Datepicker popup
|
|
548
|
-
}
|
|
549
|
-
this.performSelection(this.focusedDate, event);
|
|
550
|
-
}
|
|
551
|
-
var candidate = util_1.dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(event), this.activeViewEnum), this.min, this.max);
|
|
552
|
-
if (kendo_date_math_1.isEqual(this.focusedDate, candidate)) {
|
|
553
|
-
return;
|
|
554
|
-
}
|
|
555
|
-
this.focusedDate = candidate;
|
|
556
|
-
event.preventDefault();
|
|
557
|
-
var isSameView = this.bus.service(this.activeViewEnum).isInArray(this.focusedDate, this.viewList.dates);
|
|
558
|
-
if (!isSameView) {
|
|
559
|
-
this.emitNavigate(this.focusedDate);
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
MultiViewCalendarComponent.prototype.ngOnInit = function () {
|
|
563
|
-
var _this = this;
|
|
564
|
-
this.subscriptions.add(this.bus.viewChanged.subscribe(function (_a) {
|
|
565
|
-
var view = _a.view;
|
|
566
|
-
_this.activeView = view_enum_1.CalendarViewEnum[view];
|
|
567
|
-
_this.activeViewChange.emit(_this.activeView);
|
|
568
|
-
_this.cdr.detectChanges();
|
|
569
|
-
_this.updateButtonState();
|
|
570
|
-
}));
|
|
571
|
-
};
|
|
572
|
-
MultiViewCalendarComponent.prototype.ngOnChanges = function (changes) {
|
|
573
|
-
this.verifyChanges();
|
|
574
|
-
this.bus.configure(this.bottomViewEnum, this.topViewEnum);
|
|
575
|
-
if (util_1.hasExistingValue(changes, 'focusedDate')) {
|
|
576
|
-
var focusedDate = changes.focusedDate.currentValue;
|
|
577
|
-
this.focusedDate = util_1.dateInRange(focusedDate, this.min, this.max);
|
|
578
|
-
}
|
|
579
|
-
if (changes.min || changes.max || changes.rangeValidation || changes.disabledDates || changes.disabledDatesRangeValidation) {
|
|
580
|
-
this.minValidateFn = this.rangeValidation ? min_validator_1.minValidator(this.min) : util_1.noop;
|
|
581
|
-
this.maxValidateFn = this.rangeValidation ? max_validator_1.maxValidator(this.max) : util_1.noop;
|
|
582
|
-
this.disabledDatesRangeValidateFn = this.disabledDatesRangeValidation ? disabled_dates_range_validator_1.disabledDatesRangeValidator(this.disabledDatesService.isDateDisabled) : util_1.noop;
|
|
583
|
-
this.onValidatorChange();
|
|
584
|
-
}
|
|
585
|
-
if (changes.min || changes.max || changes.focusedDate || changes.activeView) {
|
|
586
|
-
this.updateButtonState();
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
MultiViewCalendarComponent.prototype.ngOnDestroy = function () {
|
|
590
|
-
this.subscriptions.unsubscribe();
|
|
591
|
-
};
|
|
592
|
-
MultiViewCalendarComponent.prototype.ngAfterViewInit = function () {
|
|
593
|
-
this.updateButtonState();
|
|
594
|
-
};
|
|
595
|
-
/**
|
|
596
|
-
* Focuses the host element of the Calendar.
|
|
597
|
-
*
|
|
598
|
-
* @example
|
|
599
|
-
* ```ts
|
|
600
|
-
* _@Component({
|
|
601
|
-
* selector: 'my-app',
|
|
602
|
-
* template: `
|
|
603
|
-
* <button (click)="multiviewcalendar.focus()">Focus calendar</button>
|
|
604
|
-
* <kendo-multiviewcalendar #multiviewcalendar></kendo-multiviewcalendar>
|
|
605
|
-
* `
|
|
606
|
-
* })
|
|
607
|
-
* export class AppComponent { }
|
|
608
|
-
* ```
|
|
609
|
-
*/
|
|
610
|
-
MultiViewCalendarComponent.prototype.focus = function () {
|
|
611
|
-
if (!this.element) {
|
|
612
|
-
return;
|
|
613
|
-
}
|
|
614
|
-
this.element.nativeElement.focus();
|
|
615
|
-
};
|
|
616
|
-
/**
|
|
617
|
-
* Blurs the Calendar component.
|
|
618
|
-
*/
|
|
619
|
-
MultiViewCalendarComponent.prototype.blur = function () {
|
|
620
|
-
if (!this.element) {
|
|
621
|
-
return;
|
|
622
|
-
}
|
|
623
|
-
this.element.nativeElement.blur();
|
|
624
|
-
};
|
|
625
|
-
/**
|
|
626
|
-
* @hidden
|
|
627
|
-
*/
|
|
628
|
-
MultiViewCalendarComponent.prototype.handleHeaderFocus = function () {
|
|
629
|
-
this.isHeaderActive = true;
|
|
630
|
-
};
|
|
631
|
-
/**
|
|
632
|
-
* @hidden
|
|
633
|
-
*/
|
|
634
|
-
MultiViewCalendarComponent.prototype.handleDateChange = function (args) {
|
|
635
|
-
var _this = this;
|
|
636
|
-
var canNavigateDown = this.bus.canMoveDown(this.activeViewEnum);
|
|
637
|
-
var availableDates = args.selectedDates.filter(function (date) { return !_this.disabledDatesService.isDateDisabled(date); });
|
|
638
|
-
this.focusedDate = args.focusedDate || this.focusedDate;
|
|
639
|
-
var sameDates = !canNavigateDown && util_1.areDatesEqual(availableDates, this.selectedDates);
|
|
640
|
-
if (this.disabled || sameDates) {
|
|
641
|
-
return;
|
|
642
|
-
}
|
|
643
|
-
if (canNavigateDown) {
|
|
644
|
-
this.bus.moveDown(this.activeViewEnum);
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
if (this.disabledDatesService.isDateDisabled(this.focusedDate)) {
|
|
648
|
-
return;
|
|
649
|
-
}
|
|
650
|
-
this.selectedDates = availableDates.map(function (date) { return kendo_date_math_1.cloneDate(date); });
|
|
651
|
-
this.value = this.parseSelectionToValue(availableDates);
|
|
652
|
-
this.onControlChange(this.parseSelectionToValue(availableDates));
|
|
653
|
-
this.valueChange.emit(this.parseSelectionToValue(availableDates));
|
|
654
|
-
};
|
|
655
|
-
/**
|
|
656
|
-
* @hidden
|
|
657
|
-
*/
|
|
658
|
-
MultiViewCalendarComponent.prototype.handleTodayButtonClick = function (args) {
|
|
659
|
-
var todayDate = args.focusedDate;
|
|
660
|
-
var isSameView = this.bus.service(this.activeViewEnum).isInArray(todayDate, this.viewList.dates);
|
|
661
|
-
var isBottomView = !this.bus.canMoveDown(this.activeViewEnum);
|
|
662
|
-
if (!isSameView && isBottomView) {
|
|
663
|
-
this.emitNavigate(todayDate);
|
|
664
|
-
}
|
|
665
|
-
this.handleDateChange(args);
|
|
666
|
-
};
|
|
667
|
-
/**
|
|
668
|
-
* @hidden
|
|
669
|
-
*/
|
|
670
|
-
MultiViewCalendarComponent.prototype.setActiveDate = function (date) {
|
|
671
|
-
this.activeDate = kendo_date_math_1.cloneDate(date);
|
|
672
|
-
this.cdr.detectChanges();
|
|
673
|
-
};
|
|
674
|
-
/**
|
|
675
|
-
* @hidden
|
|
676
|
-
*/
|
|
677
|
-
MultiViewCalendarComponent.prototype.writeValue = function (candidate) {
|
|
678
|
-
this.verifyValue(candidate);
|
|
679
|
-
this.value = candidate;
|
|
680
|
-
this.cdr.markForCheck();
|
|
681
|
-
};
|
|
682
|
-
/**
|
|
683
|
-
* @hidden
|
|
684
|
-
*/
|
|
685
|
-
MultiViewCalendarComponent.prototype.registerOnChange = function (fn) {
|
|
686
|
-
this.onControlChange = fn;
|
|
687
|
-
};
|
|
688
|
-
/**
|
|
689
|
-
* @hidden
|
|
690
|
-
*/
|
|
691
|
-
MultiViewCalendarComponent.prototype.registerOnTouched = function (fn) {
|
|
692
|
-
this.onControlTouched = fn;
|
|
693
|
-
};
|
|
694
|
-
/**
|
|
695
|
-
* @hidden
|
|
696
|
-
*/
|
|
697
|
-
MultiViewCalendarComponent.prototype.setDisabledState = function (isDisabled) {
|
|
698
|
-
this.disabled = isDisabled;
|
|
699
|
-
this.cdr.markForCheck();
|
|
700
|
-
};
|
|
701
|
-
/**
|
|
702
|
-
* @hidden
|
|
703
|
-
*/
|
|
704
|
-
MultiViewCalendarComponent.prototype.validate = function (control) {
|
|
705
|
-
return this.minValidateFn(control) || this.maxValidateFn(control) || this.disabledDatesRangeValidateFn(this.selectionRange);
|
|
706
|
-
};
|
|
707
|
-
/**
|
|
708
|
-
* @hidden
|
|
709
|
-
*/
|
|
710
|
-
MultiViewCalendarComponent.prototype.registerOnValidatorChange = function (fn) {
|
|
711
|
-
this.onValidatorChange = fn;
|
|
712
|
-
};
|
|
713
|
-
/**
|
|
714
|
-
* @hidden
|
|
715
|
-
*/
|
|
716
|
-
MultiViewCalendarComponent.prototype.activeCellTemplate = function () {
|
|
717
|
-
switch (this.activeViewEnum) {
|
|
718
|
-
case view_enum_1.CalendarViewEnum.month:
|
|
719
|
-
return this.monthCellTemplateRef || this.cellTemplateRef;
|
|
720
|
-
case view_enum_1.CalendarViewEnum.year:
|
|
721
|
-
return this.yearCellTemplateRef;
|
|
722
|
-
case view_enum_1.CalendarViewEnum.decade:
|
|
723
|
-
return this.decadeCellTemplateRef;
|
|
724
|
-
case view_enum_1.CalendarViewEnum.century:
|
|
725
|
-
return this.centuryCellTemplateRef;
|
|
726
|
-
default:
|
|
727
|
-
return null;
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
/**
|
|
731
|
-
* @hidden
|
|
732
|
-
*/
|
|
733
|
-
MultiViewCalendarComponent.prototype.navigateView = function (action) {
|
|
734
|
-
this.focusedDate = this.viewList.navigate(action);
|
|
735
|
-
this.updateButtonState();
|
|
736
|
-
this.emitNavigate(this.focusedDate);
|
|
737
|
-
};
|
|
738
|
-
/**
|
|
739
|
-
* @hidden
|
|
740
|
-
*/
|
|
741
|
-
MultiViewCalendarComponent.prototype.emitNavigate = function (focusedDate) {
|
|
742
|
-
var activeView = view_enum_1.CalendarViewEnum[this.activeViewEnum];
|
|
743
|
-
this.navigate.emit({ activeView: activeView, focusedDate: focusedDate });
|
|
744
|
-
};
|
|
745
|
-
/**
|
|
746
|
-
* @hidden
|
|
747
|
-
*/
|
|
748
|
-
MultiViewCalendarComponent.prototype.emitCellEvent = function (emitter, args) {
|
|
749
|
-
if (kendo_angular_common_1.hasObservers(emitter)) {
|
|
750
|
-
this.zone.run(function () {
|
|
751
|
-
emitter.emit(args);
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
/**
|
|
756
|
-
* @hidden
|
|
757
|
-
*/
|
|
758
|
-
MultiViewCalendarComponent.prototype.handleCellClick = function (_a) {
|
|
759
|
-
var date = _a.date, modifiers = _a.modifiers;
|
|
760
|
-
this.performSelection(date, modifiers);
|
|
761
|
-
var isSameView = this.bus.service(this.activeViewEnum).isInArray(this.focusedDate, this.viewList.dates);
|
|
762
|
-
if (!isSameView) {
|
|
763
|
-
this.emitNavigate(this.focusedDate);
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
/**
|
|
767
|
-
* @hidden
|
|
768
|
-
*/
|
|
769
|
-
MultiViewCalendarComponent.prototype.handleWeekNumberClick = function (dates) {
|
|
770
|
-
var _this = this;
|
|
771
|
-
if (this.selection === 'single') {
|
|
772
|
-
return;
|
|
773
|
-
}
|
|
774
|
-
this.zone.run(function () {
|
|
775
|
-
_this.handleDateChange({
|
|
776
|
-
selectedDates: dates,
|
|
777
|
-
focusedDate: util_1.last(dates)
|
|
778
|
-
});
|
|
779
|
-
});
|
|
780
|
-
};
|
|
781
|
-
MultiViewCalendarComponent.prototype.setClasses = function (element) {
|
|
782
|
-
this.renderer.addClass(element, 'k-widget');
|
|
783
|
-
this.renderer.addClass(element, 'k-calendar');
|
|
784
|
-
this.renderer.addClass(element, 'k-calendar-range');
|
|
785
|
-
};
|
|
786
|
-
MultiViewCalendarComponent.prototype.verifyChanges = function () {
|
|
787
|
-
if (!core_1.isDevMode()) {
|
|
788
|
-
return;
|
|
789
|
-
}
|
|
790
|
-
if (this.min > this.max) {
|
|
791
|
-
throw new Error("The max value should be bigger than the min. See " + MIN_DOC_LINK + " and " + MAX_DOC_LINK + ".");
|
|
792
|
-
}
|
|
793
|
-
if (this.bottomViewEnum > this.topViewEnum) {
|
|
794
|
-
throw new Error("The topView should be greater than bottomView. See " + BOTTOM_VIEW_DOC_LINK + " and " + TOP_VIEW_DOC_LINK + ".");
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
MultiViewCalendarComponent.prototype.verifyValue = function (candidate) {
|
|
798
|
-
if (!core_1.isDevMode()) {
|
|
799
|
-
return;
|
|
800
|
-
}
|
|
801
|
-
if (this.selection === 'single' && candidate && !(candidate instanceof Date)) {
|
|
802
|
-
throw new Error("The 'value' should be a valid JavaScript Date instance. Check " + VALUE_DOC_LINK + " for possible resolution.");
|
|
803
|
-
}
|
|
804
|
-
else if (this.selection === 'multiple' && candidate && Array.isArray(candidate)) {
|
|
805
|
-
var onlyDates = candidate.every(function (value) { return value instanceof Date; });
|
|
806
|
-
if (!onlyDates) {
|
|
807
|
-
throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check " + VALUE_DOC_LINK + " for possible resolution.");
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
MultiViewCalendarComponent.prototype.updateButtonState = function () {
|
|
812
|
-
var _this = this;
|
|
813
|
-
this.resolvedPromise.then(function () {
|
|
814
|
-
_this.isPrevDisabled = !_this.viewList.canNavigate(_this.prevView);
|
|
815
|
-
_this.isNextDisabled = !_this.viewList.canNavigate(_this.nextView);
|
|
816
|
-
_this.cdr.markForCheck();
|
|
817
|
-
});
|
|
818
|
-
};
|
|
819
|
-
MultiViewCalendarComponent.prototype.parseSelectionToValue = function (selection) {
|
|
820
|
-
selection = selection || [];
|
|
821
|
-
return this.selection === 'single' ? kendo_date_math_1.cloneDate(util_1.last(selection)) : selection.map(function (date) { return kendo_date_math_1.cloneDate(date); });
|
|
822
|
-
};
|
|
823
|
-
MultiViewCalendarComponent.prototype.performSelection = function (date, selectionModifiers) {
|
|
824
|
-
var selection = this.selectionService.performSelection({
|
|
825
|
-
date: date,
|
|
826
|
-
modifiers: selectionModifiers,
|
|
827
|
-
selectionMode: this.selection,
|
|
828
|
-
activeViewEnum: this.activeViewEnum,
|
|
829
|
-
rangePivot: this.rangePivot,
|
|
830
|
-
selectedDates: this.selectedDates
|
|
831
|
-
});
|
|
832
|
-
this.rangePivot = selection.rangePivot;
|
|
833
|
-
this.handleDateChange({
|
|
834
|
-
selectedDates: selection.selectedDates,
|
|
835
|
-
focusedDate: date
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
tslib_1.__decorate([
|
|
839
|
-
core_1.Input(),
|
|
840
|
-
tslib_1.__metadata("design:type", String)
|
|
841
|
-
], MultiViewCalendarComponent.prototype, "id", void 0);
|
|
842
|
-
tslib_1.__decorate([
|
|
843
|
-
core_1.Input(),
|
|
844
|
-
tslib_1.__metadata("design:type", Date),
|
|
845
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
846
|
-
], MultiViewCalendarComponent.prototype, "focusedDate", null);
|
|
847
|
-
tslib_1.__decorate([
|
|
848
|
-
core_1.Input(),
|
|
849
|
-
tslib_1.__metadata("design:type", Date),
|
|
850
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
851
|
-
], MultiViewCalendarComponent.prototype, "min", null);
|
|
852
|
-
tslib_1.__decorate([
|
|
853
|
-
core_1.Input(),
|
|
854
|
-
tslib_1.__metadata("design:type", Date),
|
|
855
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
856
|
-
], MultiViewCalendarComponent.prototype, "max", null);
|
|
857
|
-
tslib_1.__decorate([
|
|
858
|
-
core_1.Input(),
|
|
859
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
860
|
-
], MultiViewCalendarComponent.prototype, "rangeValidation", void 0);
|
|
861
|
-
tslib_1.__decorate([
|
|
862
|
-
core_1.Input(),
|
|
863
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
864
|
-
], MultiViewCalendarComponent.prototype, "disabledDatesRangeValidation", void 0);
|
|
865
|
-
tslib_1.__decorate([
|
|
866
|
-
core_1.Input(),
|
|
867
|
-
tslib_1.__metadata("design:type", String)
|
|
868
|
-
], MultiViewCalendarComponent.prototype, "selection", void 0);
|
|
869
|
-
tslib_1.__decorate([
|
|
870
|
-
core_1.Input(),
|
|
871
|
-
tslib_1.__metadata("design:type", Object),
|
|
872
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
873
|
-
], MultiViewCalendarComponent.prototype, "value", null);
|
|
874
|
-
tslib_1.__decorate([
|
|
875
|
-
core_1.Input(),
|
|
876
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
877
|
-
], MultiViewCalendarComponent.prototype, "disabled", void 0);
|
|
878
|
-
tslib_1.__decorate([
|
|
879
|
-
core_1.Input(),
|
|
880
|
-
tslib_1.__metadata("design:type", Number)
|
|
881
|
-
], MultiViewCalendarComponent.prototype, "tabindex", void 0);
|
|
882
|
-
tslib_1.__decorate([
|
|
883
|
-
core_1.Input(),
|
|
884
|
-
tslib_1.__metadata("design:type", Number),
|
|
885
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
886
|
-
], MultiViewCalendarComponent.prototype, "tabIndex", null);
|
|
887
|
-
tslib_1.__decorate([
|
|
888
|
-
core_1.Input(),
|
|
889
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
890
|
-
], MultiViewCalendarComponent.prototype, "isActive", void 0);
|
|
891
|
-
tslib_1.__decorate([
|
|
892
|
-
core_1.Input(),
|
|
893
|
-
tslib_1.__metadata("design:type", Object),
|
|
894
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
895
|
-
], MultiViewCalendarComponent.prototype, "disabledDates", null);
|
|
896
|
-
tslib_1.__decorate([
|
|
897
|
-
core_1.Input(),
|
|
898
|
-
tslib_1.__metadata("design:type", String)
|
|
899
|
-
], MultiViewCalendarComponent.prototype, "activeView", void 0);
|
|
900
|
-
tslib_1.__decorate([
|
|
901
|
-
core_1.Input(),
|
|
902
|
-
tslib_1.__metadata("design:type", String)
|
|
903
|
-
], MultiViewCalendarComponent.prototype, "bottomView", void 0);
|
|
904
|
-
tslib_1.__decorate([
|
|
905
|
-
core_1.Input(),
|
|
906
|
-
tslib_1.__metadata("design:type", String)
|
|
907
|
-
], MultiViewCalendarComponent.prototype, "topView", void 0);
|
|
908
|
-
tslib_1.__decorate([
|
|
909
|
-
core_1.Input(),
|
|
910
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
911
|
-
], MultiViewCalendarComponent.prototype, "showViewHeader", void 0);
|
|
912
|
-
tslib_1.__decorate([
|
|
913
|
-
core_1.Input(),
|
|
914
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
915
|
-
], MultiViewCalendarComponent.prototype, "animateNavigation", void 0);
|
|
916
|
-
tslib_1.__decorate([
|
|
917
|
-
core_1.Input(),
|
|
918
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
919
|
-
], MultiViewCalendarComponent.prototype, "weekNumber", void 0);
|
|
920
|
-
tslib_1.__decorate([
|
|
921
|
-
core_1.Input(),
|
|
922
|
-
tslib_1.__metadata("design:type", String)
|
|
923
|
-
], MultiViewCalendarComponent.prototype, "activeRangeEnd", void 0);
|
|
924
|
-
tslib_1.__decorate([
|
|
925
|
-
core_1.Input(),
|
|
926
|
-
tslib_1.__metadata("design:type", Object),
|
|
927
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
928
|
-
], MultiViewCalendarComponent.prototype, "selectionRange", null);
|
|
929
|
-
tslib_1.__decorate([
|
|
930
|
-
core_1.Input(),
|
|
931
|
-
tslib_1.__metadata("design:type", Number)
|
|
932
|
-
], MultiViewCalendarComponent.prototype, "views", void 0);
|
|
933
|
-
tslib_1.__decorate([
|
|
934
|
-
core_1.Output(),
|
|
935
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
936
|
-
], MultiViewCalendarComponent.prototype, "activeViewChange", void 0);
|
|
937
|
-
tslib_1.__decorate([
|
|
938
|
-
core_1.Output(),
|
|
939
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
940
|
-
], MultiViewCalendarComponent.prototype, "navigate", void 0);
|
|
941
|
-
tslib_1.__decorate([
|
|
942
|
-
core_1.Output(),
|
|
943
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
944
|
-
], MultiViewCalendarComponent.prototype, "cellEnter", void 0);
|
|
945
|
-
tslib_1.__decorate([
|
|
946
|
-
core_1.Output(),
|
|
947
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
948
|
-
], MultiViewCalendarComponent.prototype, "cellLeave", void 0);
|
|
949
|
-
tslib_1.__decorate([
|
|
950
|
-
core_1.Output(),
|
|
951
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
952
|
-
], MultiViewCalendarComponent.prototype, "valueChange", void 0);
|
|
953
|
-
tslib_1.__decorate([
|
|
954
|
-
core_1.Output('blur'),
|
|
955
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
956
|
-
], MultiViewCalendarComponent.prototype, "blurEvent", void 0);
|
|
957
|
-
tslib_1.__decorate([
|
|
958
|
-
core_1.ContentChild(cell_template_directive_1.CellTemplateDirective, { static: false }),
|
|
959
|
-
tslib_1.__metadata("design:type", cell_template_directive_1.CellTemplateDirective)
|
|
960
|
-
], MultiViewCalendarComponent.prototype, "cellTemplate", void 0);
|
|
961
|
-
tslib_1.__decorate([
|
|
962
|
-
core_1.Input('cellTemplate'),
|
|
963
|
-
tslib_1.__metadata("design:type", cell_template_directive_1.CellTemplateDirective),
|
|
964
|
-
tslib_1.__metadata("design:paramtypes", [cell_template_directive_1.CellTemplateDirective])
|
|
965
|
-
], MultiViewCalendarComponent.prototype, "cellTemplateRef", null);
|
|
966
|
-
tslib_1.__decorate([
|
|
967
|
-
core_1.ContentChild(month_cell_template_directive_1.MonthCellTemplateDirective, { static: false }),
|
|
968
|
-
tslib_1.__metadata("design:type", month_cell_template_directive_1.MonthCellTemplateDirective)
|
|
969
|
-
], MultiViewCalendarComponent.prototype, "monthCellTemplate", void 0);
|
|
970
|
-
tslib_1.__decorate([
|
|
971
|
-
core_1.Input('monthCellTemplate'),
|
|
972
|
-
tslib_1.__metadata("design:type", month_cell_template_directive_1.MonthCellTemplateDirective),
|
|
973
|
-
tslib_1.__metadata("design:paramtypes", [month_cell_template_directive_1.MonthCellTemplateDirective])
|
|
974
|
-
], MultiViewCalendarComponent.prototype, "monthCellTemplateRef", null);
|
|
975
|
-
tslib_1.__decorate([
|
|
976
|
-
core_1.ContentChild(year_cell_template_directive_1.YearCellTemplateDirective, { static: false }),
|
|
977
|
-
tslib_1.__metadata("design:type", year_cell_template_directive_1.YearCellTemplateDirective)
|
|
978
|
-
], MultiViewCalendarComponent.prototype, "yearCellTemplate", void 0);
|
|
979
|
-
tslib_1.__decorate([
|
|
980
|
-
core_1.Input('yearCellTemplate'),
|
|
981
|
-
tslib_1.__metadata("design:type", year_cell_template_directive_1.YearCellTemplateDirective),
|
|
982
|
-
tslib_1.__metadata("design:paramtypes", [year_cell_template_directive_1.YearCellTemplateDirective])
|
|
983
|
-
], MultiViewCalendarComponent.prototype, "yearCellTemplateRef", null);
|
|
984
|
-
tslib_1.__decorate([
|
|
985
|
-
core_1.ContentChild(decade_cell_template_directive_1.DecadeCellTemplateDirective, { static: false }),
|
|
986
|
-
tslib_1.__metadata("design:type", decade_cell_template_directive_1.DecadeCellTemplateDirective)
|
|
987
|
-
], MultiViewCalendarComponent.prototype, "decadeCellTemplate", void 0);
|
|
988
|
-
tslib_1.__decorate([
|
|
989
|
-
core_1.Input('decadeCellTemplate'),
|
|
990
|
-
tslib_1.__metadata("design:type", decade_cell_template_directive_1.DecadeCellTemplateDirective),
|
|
991
|
-
tslib_1.__metadata("design:paramtypes", [decade_cell_template_directive_1.DecadeCellTemplateDirective])
|
|
992
|
-
], MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", null);
|
|
993
|
-
tslib_1.__decorate([
|
|
994
|
-
core_1.ContentChild(century_cell_template_directive_1.CenturyCellTemplateDirective, { static: false }),
|
|
995
|
-
tslib_1.__metadata("design:type", century_cell_template_directive_1.CenturyCellTemplateDirective)
|
|
996
|
-
], MultiViewCalendarComponent.prototype, "centuryCellTemplate", void 0);
|
|
997
|
-
tslib_1.__decorate([
|
|
998
|
-
core_1.Input('centuryCellTemplate'),
|
|
999
|
-
tslib_1.__metadata("design:type", century_cell_template_directive_1.CenturyCellTemplateDirective),
|
|
1000
|
-
tslib_1.__metadata("design:paramtypes", [century_cell_template_directive_1.CenturyCellTemplateDirective])
|
|
1001
|
-
], MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", null);
|
|
1002
|
-
tslib_1.__decorate([
|
|
1003
|
-
core_1.ContentChild(weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective, { static: false }),
|
|
1004
|
-
tslib_1.__metadata("design:type", weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective)
|
|
1005
|
-
], MultiViewCalendarComponent.prototype, "weekNumberTemplate", void 0);
|
|
1006
|
-
tslib_1.__decorate([
|
|
1007
|
-
core_1.Input('weekNumberTemplate'),
|
|
1008
|
-
tslib_1.__metadata("design:type", weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective),
|
|
1009
|
-
tslib_1.__metadata("design:paramtypes", [weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective])
|
|
1010
|
-
], MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", null);
|
|
1011
|
-
tslib_1.__decorate([
|
|
1012
|
-
core_1.ContentChild(header_title_template_directive_1.HeaderTitleTemplateDirective, { static: false }),
|
|
1013
|
-
tslib_1.__metadata("design:type", header_title_template_directive_1.HeaderTitleTemplateDirective)
|
|
1014
|
-
], MultiViewCalendarComponent.prototype, "headerTitleTemplate", void 0);
|
|
1015
|
-
tslib_1.__decorate([
|
|
1016
|
-
core_1.Input('headerTitleTemplate'),
|
|
1017
|
-
tslib_1.__metadata("design:type", header_title_template_directive_1.HeaderTitleTemplateDirective),
|
|
1018
|
-
tslib_1.__metadata("design:paramtypes", [header_title_template_directive_1.HeaderTitleTemplateDirective])
|
|
1019
|
-
], MultiViewCalendarComponent.prototype, "headerTitleTemplateRef", null);
|
|
1020
|
-
tslib_1.__decorate([
|
|
1021
|
-
core_1.ViewChild(header_component_1.HeaderComponent, { static: false, read: core_1.ElementRef }),
|
|
1022
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
1023
|
-
], MultiViewCalendarComponent.prototype, "headerElement", void 0);
|
|
1024
|
-
tslib_1.__decorate([
|
|
1025
|
-
core_1.ViewChild(horizontal_view_list_component_1.HorizontalViewListComponent, { static: false }),
|
|
1026
|
-
tslib_1.__metadata("design:type", horizontal_view_list_component_1.HorizontalViewListComponent)
|
|
1027
|
-
], MultiViewCalendarComponent.prototype, "viewList", void 0);
|
|
1028
|
-
tslib_1.__decorate([
|
|
1029
|
-
core_1.HostBinding('attr.id'),
|
|
1030
|
-
tslib_1.__metadata("design:type", String),
|
|
1031
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1032
|
-
], MultiViewCalendarComponent.prototype, "widgetId", null);
|
|
1033
|
-
tslib_1.__decorate([
|
|
1034
|
-
core_1.HostBinding('attr.tabindex'),
|
|
1035
|
-
tslib_1.__metadata("design:type", Number),
|
|
1036
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1037
|
-
], MultiViewCalendarComponent.prototype, "calendarTabIndex", null);
|
|
1038
|
-
tslib_1.__decorate([
|
|
1039
|
-
core_1.HostBinding('attr.aria-disabled'),
|
|
1040
|
-
core_1.HostBinding('class.k-disabled'),
|
|
1041
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
1042
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1043
|
-
], MultiViewCalendarComponent.prototype, "ariaDisabled", null);
|
|
1044
|
-
tslib_1.__decorate([
|
|
1045
|
-
core_1.HostBinding('attr.aria-activedescendant'),
|
|
1046
|
-
tslib_1.__metadata("design:type", String),
|
|
1047
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1048
|
-
], MultiViewCalendarComponent.prototype, "ariaActivedescendant", null);
|
|
1049
|
-
tslib_1.__decorate([
|
|
1050
|
-
core_1.HostListener('focusout', ['$event']),
|
|
1051
|
-
tslib_1.__metadata("design:type", Function),
|
|
1052
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
1053
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1054
|
-
], MultiViewCalendarComponent.prototype, "handleFocusout", null);
|
|
1055
|
-
tslib_1.__decorate([
|
|
1056
|
-
core_1.HostListener("focus"),
|
|
1057
|
-
tslib_1.__metadata("design:type", Function),
|
|
1058
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
1059
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1060
|
-
], MultiViewCalendarComponent.prototype, "handleFocus", null);
|
|
1061
|
-
tslib_1.__decorate([
|
|
1062
|
-
core_1.HostListener("mouseenter"),
|
|
1063
|
-
tslib_1.__metadata("design:type", Function),
|
|
1064
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
1065
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1066
|
-
], MultiViewCalendarComponent.prototype, "handleMouseEnter", null);
|
|
1067
|
-
tslib_1.__decorate([
|
|
1068
|
-
core_1.HostListener("mouseleave"),
|
|
1069
|
-
tslib_1.__metadata("design:type", Function),
|
|
1070
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
1071
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1072
|
-
], MultiViewCalendarComponent.prototype, "handleMouseLeave", null);
|
|
1073
|
-
tslib_1.__decorate([
|
|
1074
|
-
core_1.HostListener("mousedown", ['$event']),
|
|
1075
|
-
tslib_1.__metadata("design:type", Function),
|
|
1076
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
1077
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1078
|
-
], MultiViewCalendarComponent.prototype, "handleMousedown", null);
|
|
1079
|
-
tslib_1.__decorate([
|
|
1080
|
-
core_1.HostListener("click"),
|
|
1081
|
-
tslib_1.__metadata("design:type", Function),
|
|
1082
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
1083
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1084
|
-
], MultiViewCalendarComponent.prototype, "handleClick", null);
|
|
1085
|
-
tslib_1.__decorate([
|
|
1086
|
-
core_1.HostListener("keydown", ["$event"]),
|
|
1087
|
-
tslib_1.__metadata("design:type", Function),
|
|
1088
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
1089
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1090
|
-
], MultiViewCalendarComponent.prototype, "keydown", null);
|
|
1091
|
-
MultiViewCalendarComponent = tslib_1.__decorate([
|
|
1092
|
-
core_1.Component({
|
|
1093
|
-
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
|
|
1094
|
-
exportAs: 'kendo-multiviewcalendar',
|
|
1095
|
-
providers: [
|
|
1096
|
-
bus_view_service_1.BusViewService,
|
|
1097
|
-
exports.RANGE_CALENDAR_VALUE_ACCESSOR,
|
|
1098
|
-
exports.RANGE_CALENDAR_RANGE_VALIDATORS,
|
|
1099
|
-
kendo_angular_l10n_1.LocalizationService,
|
|
1100
|
-
disabled_dates_service_1.DisabledDatesService,
|
|
1101
|
-
{
|
|
1102
|
-
provide: kendo_angular_l10n_1.L10N_PREFIX,
|
|
1103
|
-
useValue: 'kendo.multiviewcalendar'
|
|
1104
|
-
},
|
|
1105
|
-
navigation_service_1.NavigationService,
|
|
1106
|
-
selection_service_1.SelectionService
|
|
1107
|
-
],
|
|
1108
|
-
selector: 'kendo-multiviewcalendar',
|
|
1109
|
-
template: "\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today=\"kendo.multiviewcalendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]=\"activeViewEnum\"\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n [rangeLength]=\"views\"\n [templateRef]=\"headerTitleTemplateRef?.templateRef\"\n [isPrevDisabled]=\"isPrevDisabled\"\n [isNextDisabled]=\"isNextDisabled\"\n [showNavigationButtons]=\"true\"\n (todayButtonClick)=\"handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })\"\n (prevButtonClick)=\"navigateView(prevView)\"\n (nextButtonClick)=\"navigateView(nextView)\"\n [kendoEventsOutsideAngular]=\"{\n focusin: handleHeaderFocus\n }\"\n [scope]=\"this\"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive || (isHovered && !isHeaderActive)\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplateRef?.templateRef\"\n [cellUID]=\"cellUID\"\n [views]=\"views\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [animateNavigation]=\"animateNavigation\"\n [showViewHeader]=\"showViewHeader\"\n [weekNumber]=\"weekNumber\"\n [activeRangeEnd]=\"activeRangeEnd\"\n [selectionRange]=\"selectionRange\"\n [selectedDates]=\"selectedDates\"\n (valueChange)=\"handleDateChange($event)\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (cellEnter)=\"emitCellEvent(cellEnter, $event)\"\n (cellLeave)=\"emitCellEvent(cellLeave, $event)\"\n (activeDateChange)=\"setActiveDate($event)\"\n >\n </kendo-calendar-horizontal>\n "
|
|
1110
|
-
}),
|
|
1111
|
-
tslib_1.__param(8, core_1.Optional()),
|
|
1112
|
-
tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
|
|
1113
|
-
core_1.ElementRef,
|
|
1114
|
-
navigation_service_1.NavigationService,
|
|
1115
|
-
core_1.Renderer2,
|
|
1116
|
-
core_1.ChangeDetectorRef,
|
|
1117
|
-
core_1.NgZone,
|
|
1118
|
-
disabled_dates_service_1.DisabledDatesService,
|
|
1119
|
-
selection_service_1.SelectionService,
|
|
1120
|
-
picker_service_1.PickerService])
|
|
1121
|
-
], MultiViewCalendarComponent);
|
|
1122
|
-
return MultiViewCalendarComponent;
|
|
1123
|
-
}());
|
|
1124
|
-
exports.MultiViewCalendarComponent = MultiViewCalendarComponent;
|