@progress/kendo-angular-dateinputs 6.0.4-dev.202203211102 → 7.0.0-next.202204010857
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 +45 -118
- 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,97 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { IntlModule } from '@progress/kendo-angular-intl';
|
|
9
|
-
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
10
|
-
import { EventsModule } from '@progress/kendo-angular-common';
|
|
11
|
-
import { CalendarCommonModule } from './calendar-common.module';
|
|
12
|
-
import { TemplatesModule } from './templates.module';
|
|
13
|
-
import { HorizontalViewListComponent } from './horizontal-view-list.component';
|
|
14
|
-
import { MultiViewCalendarComponent } from './multiview-calendar.component';
|
|
15
|
-
import { MultiViewCalendarLocalizedMessagesDirective } from './localization/multiview-calendar-localized-messages.directive';
|
|
16
|
-
import { MultiViewCalendarCustomMessagesComponent } from './localization/multiview-calendar-custom-messages.component';
|
|
17
|
-
import { NavigationService } from './services/navigation.service';
|
|
18
|
-
import { CenturyViewService } from './services/century-view.service';
|
|
19
|
-
import { DecadeViewService } from './services/decade-view.service';
|
|
20
|
-
import { MonthViewService } from './services/month-view.service';
|
|
21
|
-
import { YearViewService } from './services/year-view.service';
|
|
22
|
-
import { WeekNamesService } from './services/weeknames.service';
|
|
23
|
-
/**
|
|
24
|
-
* The package exports:
|
|
25
|
-
* - `CellTemplateDirective`—The month cell template directive.
|
|
26
|
-
* - `MonthCellTemplateDirective`—The month cell template directive.
|
|
27
|
-
* - `YearCellTemplateDirective`—The year cell template directive.
|
|
28
|
-
* - `DecadeCellTemplateDirective`—The decade cell template directive.
|
|
29
|
-
* - `CenturyCellTemplateDirective`—The century cell template directive.
|
|
30
|
-
* - `WeekNumberCellTemplateDirective`—The month week number cell template directive.
|
|
31
|
-
* - `HeaderTitleTemplateDirective`—The header title template directive.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
*
|
|
35
|
-
* ```ts-no-run
|
|
36
|
-
* // Import the MultiViewCalendar module
|
|
37
|
-
* import { MultiViewCalendarModule } from '@progress/kendo-angular-dateinputs';
|
|
38
|
-
*
|
|
39
|
-
* // The browser platform with a compiler
|
|
40
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
41
|
-
*
|
|
42
|
-
* import { NgModule } from '@angular/core';
|
|
43
|
-
*
|
|
44
|
-
* // Import the app component
|
|
45
|
-
* import { AppComponent } from './app.component';
|
|
46
|
-
*
|
|
47
|
-
* // Define the app module
|
|
48
|
-
* _@NgModule({
|
|
49
|
-
* declarations: [AppComponent], // declare app component
|
|
50
|
-
* imports: [BrowserModule, MultiViewCalendarModule], // import MultiViewCalendar module
|
|
51
|
-
* bootstrap: [AppComponent]
|
|
52
|
-
* })
|
|
53
|
-
* export class AppModule {}
|
|
54
|
-
*
|
|
55
|
-
* // Compile and launch the module
|
|
56
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
57
|
-
*/
|
|
58
|
-
var MultiViewCalendarModule = /** @class */ (function () {
|
|
59
|
-
function MultiViewCalendarModule() {
|
|
60
|
-
}
|
|
61
|
-
MultiViewCalendarModule = tslib_1.__decorate([
|
|
62
|
-
NgModule({
|
|
63
|
-
declarations: [
|
|
64
|
-
HorizontalViewListComponent,
|
|
65
|
-
MultiViewCalendarLocalizedMessagesDirective,
|
|
66
|
-
MultiViewCalendarCustomMessagesComponent,
|
|
67
|
-
MultiViewCalendarComponent
|
|
68
|
-
],
|
|
69
|
-
exports: [
|
|
70
|
-
HorizontalViewListComponent,
|
|
71
|
-
MultiViewCalendarLocalizedMessagesDirective,
|
|
72
|
-
MultiViewCalendarCustomMessagesComponent,
|
|
73
|
-
MultiViewCalendarComponent,
|
|
74
|
-
CalendarCommonModule,
|
|
75
|
-
TemplatesModule
|
|
76
|
-
],
|
|
77
|
-
imports: [
|
|
78
|
-
CommonModule,
|
|
79
|
-
CalendarCommonModule,
|
|
80
|
-
IntlModule,
|
|
81
|
-
TemplatesModule,
|
|
82
|
-
PopupModule,
|
|
83
|
-
EventsModule
|
|
84
|
-
],
|
|
85
|
-
providers: [
|
|
86
|
-
NavigationService,
|
|
87
|
-
CenturyViewService,
|
|
88
|
-
DecadeViewService,
|
|
89
|
-
MonthViewService,
|
|
90
|
-
YearViewService,
|
|
91
|
-
WeekNamesService
|
|
92
|
-
]
|
|
93
|
-
})
|
|
94
|
-
], MultiViewCalendarModule);
|
|
95
|
-
return MultiViewCalendarModule;
|
|
96
|
-
}());
|
|
97
|
-
export { MultiViewCalendarModule };
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
/* tslint:disable:component-selector-name component-selector-type */
|
|
7
|
-
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, TemplateRef, ViewChild } from '@angular/core';
|
|
8
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
9
|
-
import { BusViewService } from './services/bus-view.service';
|
|
10
|
-
import { CalendarDOMService } from './services/dom.service';
|
|
11
|
-
import { CalendarViewEnum } from './models/view.enum';
|
|
12
|
-
import { VirtualizationComponent } from '../virtualization/virtualization.component';
|
|
13
|
-
import { MIN_DATE, MAX_DATE } from '../defaults';
|
|
14
|
-
import { cloneDate } from '@progress/kendo-date-math';
|
|
15
|
-
import { dateInRange } from '../util';
|
|
16
|
-
import { closestInScope } from '../common/dom-queries';
|
|
17
|
-
var ITEMS_COUNT = 30;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
var NavigationComponent = /** @class */ (function () {
|
|
22
|
-
function NavigationComponent(bus, dom, intl, cdr, renderer) {
|
|
23
|
-
this.bus = bus;
|
|
24
|
-
this.dom = dom;
|
|
25
|
-
this.intl = intl;
|
|
26
|
-
this.cdr = cdr;
|
|
27
|
-
this.renderer = renderer;
|
|
28
|
-
this.min = new Date(MIN_DATE);
|
|
29
|
-
this.max = new Date(MAX_DATE);
|
|
30
|
-
this.focusedDate = new Date();
|
|
31
|
-
this.valueChange = new EventEmitter();
|
|
32
|
-
this.pageChange = new EventEmitter();
|
|
33
|
-
this.dates = [];
|
|
34
|
-
this.take = ITEMS_COUNT;
|
|
35
|
-
this.indexToScroll = -1;
|
|
36
|
-
}
|
|
37
|
-
Object.defineProperty(NavigationComponent.prototype, "getComponentClass", {
|
|
38
|
-
get: function () {
|
|
39
|
-
return true;
|
|
40
|
-
},
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true
|
|
43
|
-
});
|
|
44
|
-
NavigationComponent.prototype.ngOnInit = function () {
|
|
45
|
-
this.dom.ensureHeights();
|
|
46
|
-
var calendarHeight = this.dom.calendarHeight;
|
|
47
|
-
this.itemHeight = this.dom.navigationItemHeight;
|
|
48
|
-
this.maxViewHeight = this.dom.monthViewHeight;
|
|
49
|
-
this.topOffset = (calendarHeight - this.itemHeight) / 2;
|
|
50
|
-
this.bottomOffset = calendarHeight - this.itemHeight;
|
|
51
|
-
this.intlSubscription = this.intl.changes.subscribe(this.intlChange.bind(this));
|
|
52
|
-
};
|
|
53
|
-
NavigationComponent.prototype.ngOnChanges = function (changes) {
|
|
54
|
-
this.service = this.bus.service(this.activeView);
|
|
55
|
-
if (!this.service) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.activeViewValue = CalendarViewEnum[this.activeView];
|
|
59
|
-
var viewDate = dateInRange(this.focusedDate, this.min, this.max);
|
|
60
|
-
var total = this.service.total(this.min, this.max);
|
|
61
|
-
var totalChanged = this.total && this.total !== total;
|
|
62
|
-
this.skip = this.service.skip(viewDate, this.min);
|
|
63
|
-
this.total = total;
|
|
64
|
-
if (totalChanged || !this.service.isInArray(viewDate, this.dates)) {
|
|
65
|
-
this.dates = this.service.datesList(viewDate, this.getTake(this.skip));
|
|
66
|
-
}
|
|
67
|
-
if (!!changes.focusedDate || totalChanged) {
|
|
68
|
-
this.indexToScroll = this.service.skip(this.focusedDate, this.min);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
NavigationComponent.prototype.ngOnDestroy = function () {
|
|
72
|
-
if (this.intlSubscription) {
|
|
73
|
-
this.intlSubscription.unsubscribe();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
NavigationComponent.prototype.ngAfterViewInit = function () {
|
|
77
|
-
if (this.indexToScroll === -1) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
this.virtualization.scrollToIndex(this.indexToScroll);
|
|
81
|
-
this.indexToScroll = -1;
|
|
82
|
-
};
|
|
83
|
-
NavigationComponent.prototype.ngAfterViewChecked = function () {
|
|
84
|
-
if (this.indexToScroll === -1) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
this.virtualization.scrollToIndex(this.indexToScroll);
|
|
88
|
-
this.indexToScroll = -1;
|
|
89
|
-
};
|
|
90
|
-
NavigationComponent.prototype.onPageChange = function (_a) {
|
|
91
|
-
var skip = _a.skip;
|
|
92
|
-
this.dates = this.service.datesList(this.service.addToDate(this.min, skip), this.getTake(skip));
|
|
93
|
-
this.pageChange.emit();
|
|
94
|
-
};
|
|
95
|
-
NavigationComponent.prototype.scrollChange = function (_a) {
|
|
96
|
-
var offset = _a.offset;
|
|
97
|
-
var el = this.list.nativeElement;
|
|
98
|
-
var translate = "translateY(" + offset + "px)";
|
|
99
|
-
this.renderer.setStyle(el, 'transform', translate);
|
|
100
|
-
this.renderer.setStyle(el, '-ms-transform', translate);
|
|
101
|
-
};
|
|
102
|
-
NavigationComponent.prototype.handleDateChange = function (args) {
|
|
103
|
-
var item = closestInScope(args.target, function (node) { return node.hasAttribute('data-date-index'); }, this.list.nativeElement);
|
|
104
|
-
if (item) {
|
|
105
|
-
var index = parseInt(item.getAttribute('data-date-index'), 10);
|
|
106
|
-
var candidate = this.dates[index];
|
|
107
|
-
this.valueChange.emit(cloneDate(candidate));
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
NavigationComponent.prototype.getTake = function (skip) {
|
|
111
|
-
return Math.min(this.total - skip, this.take);
|
|
112
|
-
};
|
|
113
|
-
NavigationComponent.prototype.intlChange = function () {
|
|
114
|
-
if (this.activeView === CalendarViewEnum.month) {
|
|
115
|
-
this.cdr.markForCheck();
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
tslib_1.__decorate([
|
|
119
|
-
Input(),
|
|
120
|
-
tslib_1.__metadata("design:type", Number)
|
|
121
|
-
], NavigationComponent.prototype, "activeView", void 0);
|
|
122
|
-
tslib_1.__decorate([
|
|
123
|
-
Input(),
|
|
124
|
-
tslib_1.__metadata("design:type", Date)
|
|
125
|
-
], NavigationComponent.prototype, "min", void 0);
|
|
126
|
-
tslib_1.__decorate([
|
|
127
|
-
Input(),
|
|
128
|
-
tslib_1.__metadata("design:type", Date)
|
|
129
|
-
], NavigationComponent.prototype, "max", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
Input(),
|
|
132
|
-
tslib_1.__metadata("design:type", Date)
|
|
133
|
-
], NavigationComponent.prototype, "focusedDate", void 0);
|
|
134
|
-
tslib_1.__decorate([
|
|
135
|
-
Input(),
|
|
136
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
137
|
-
], NavigationComponent.prototype, "templateRef", void 0);
|
|
138
|
-
tslib_1.__decorate([
|
|
139
|
-
Output(),
|
|
140
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
141
|
-
], NavigationComponent.prototype, "valueChange", void 0);
|
|
142
|
-
tslib_1.__decorate([
|
|
143
|
-
Output(),
|
|
144
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
145
|
-
], NavigationComponent.prototype, "pageChange", void 0);
|
|
146
|
-
tslib_1.__decorate([
|
|
147
|
-
ViewChild(VirtualizationComponent, { static: false }),
|
|
148
|
-
tslib_1.__metadata("design:type", VirtualizationComponent)
|
|
149
|
-
], NavigationComponent.prototype, "virtualization", void 0);
|
|
150
|
-
tslib_1.__decorate([
|
|
151
|
-
ViewChild('list', { static: true }),
|
|
152
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
153
|
-
], NavigationComponent.prototype, "list", void 0);
|
|
154
|
-
tslib_1.__decorate([
|
|
155
|
-
HostBinding("class.k-calendar-navigation"),
|
|
156
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
157
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
158
|
-
], NavigationComponent.prototype, "getComponentClass", null);
|
|
159
|
-
NavigationComponent = tslib_1.__decorate([
|
|
160
|
-
Component({
|
|
161
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
162
|
-
selector: 'kendo-calendar-navigation',
|
|
163
|
-
template: "\n <span class=\"k-calendar-navigation-highlight\"></span>\n <kendo-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"itemHeight\"\n [topOffset]=\"topOffset\"\n [bottomOffset]=\"bottomOffset\"\n [maxScrollDifference]=\"maxViewHeight\"\n (pageChange)=\"onPageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n >\n <ul #list class=\"k-reset\" [kendoEventsOutsideAngular]=\"{ click: handleDateChange }\" [scope]=\"this\">\n <li *kFor=\"let date of dates; let index=index\" [attr.data-date-index]=\"index\">\n <span [class.k-calendar-navigation-marker]=\"service.isRangeStart(date)\">\n <ng-template [ngIf]=\"!templateRef\">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }\"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n "
|
|
164
|
-
}),
|
|
165
|
-
tslib_1.__metadata("design:paramtypes", [BusViewService,
|
|
166
|
-
CalendarDOMService,
|
|
167
|
-
IntlService,
|
|
168
|
-
ChangeDetectorRef,
|
|
169
|
-
Renderer2])
|
|
170
|
-
], NavigationComponent);
|
|
171
|
-
return NavigationComponent;
|
|
172
|
-
}());
|
|
173
|
-
export { NavigationComponent };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
var _a;
|
|
7
|
-
import { EventEmitter, Injectable, Injector } from '@angular/core';
|
|
8
|
-
import { CenturyViewService } from '../services/century-view.service';
|
|
9
|
-
import { DecadeViewService } from '../services/decade-view.service';
|
|
10
|
-
import { MonthViewService } from '../services/month-view.service';
|
|
11
|
-
import { YearViewService } from '../services/year-view.service';
|
|
12
|
-
import { CalendarViewEnum } from '../models/view.enum';
|
|
13
|
-
var services = (_a = {},
|
|
14
|
-
_a[CalendarViewEnum.month] = MonthViewService,
|
|
15
|
-
_a[CalendarViewEnum.year] = YearViewService,
|
|
16
|
-
_a[CalendarViewEnum.decade] = DecadeViewService,
|
|
17
|
-
_a[CalendarViewEnum.century] = CenturyViewService,
|
|
18
|
-
_a);
|
|
19
|
-
var viewOffset = function (view, offset) {
|
|
20
|
-
var candidate = CalendarViewEnum[CalendarViewEnum[view + offset]];
|
|
21
|
-
return candidate !== undefined ? candidate : view;
|
|
22
|
-
};
|
|
23
|
-
var ɵ0 = viewOffset;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
var BusViewService = /** @class */ (function () {
|
|
28
|
-
function BusViewService(injector) {
|
|
29
|
-
this.injector = injector;
|
|
30
|
-
this.viewChanged = new EventEmitter();
|
|
31
|
-
this.bottom = CalendarViewEnum.month;
|
|
32
|
-
this.top = CalendarViewEnum.century;
|
|
33
|
-
}
|
|
34
|
-
BusViewService.prototype.configure = function (bottom, top) {
|
|
35
|
-
this.bottom = bottom;
|
|
36
|
-
this.top = top;
|
|
37
|
-
};
|
|
38
|
-
BusViewService.prototype.service = function (view) {
|
|
39
|
-
var serviceType = services[view];
|
|
40
|
-
return serviceType ? this.injector.get(serviceType) : null;
|
|
41
|
-
};
|
|
42
|
-
BusViewService.prototype.moveDown = function (view) {
|
|
43
|
-
this.move(view, -1);
|
|
44
|
-
};
|
|
45
|
-
BusViewService.prototype.moveUp = function (view) {
|
|
46
|
-
this.move(view, 1);
|
|
47
|
-
};
|
|
48
|
-
BusViewService.prototype.moveToBottom = function (activeView) {
|
|
49
|
-
if (activeView === this.bottom) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.viewChanged.emit({ view: this.bottom });
|
|
53
|
-
};
|
|
54
|
-
BusViewService.prototype.canMoveDown = function (view) {
|
|
55
|
-
return this.bottom < view;
|
|
56
|
-
};
|
|
57
|
-
BusViewService.prototype.canMoveUp = function (view) {
|
|
58
|
-
return view < this.top;
|
|
59
|
-
};
|
|
60
|
-
BusViewService.prototype.clamp = function (view) {
|
|
61
|
-
if (view < this.bottom) {
|
|
62
|
-
return this.bottom;
|
|
63
|
-
}
|
|
64
|
-
if (view > this.top) {
|
|
65
|
-
return this.top;
|
|
66
|
-
}
|
|
67
|
-
return view;
|
|
68
|
-
};
|
|
69
|
-
BusViewService.prototype.move = function (view, offset) {
|
|
70
|
-
var candidate = this.clamp(viewOffset(view, offset));
|
|
71
|
-
if (candidate === view) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
this.viewChanged.emit({ view: candidate });
|
|
75
|
-
};
|
|
76
|
-
BusViewService = tslib_1.__decorate([
|
|
77
|
-
Injectable(),
|
|
78
|
-
tslib_1.__metadata("design:paramtypes", [Injector])
|
|
79
|
-
], BusViewService);
|
|
80
|
-
return BusViewService;
|
|
81
|
-
}());
|
|
82
|
-
export { BusViewService };
|
|
83
|
-
export { ɵ0 };
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
var _a;
|
|
7
|
-
/* tslint:disable:object-literal-sort-keys */
|
|
8
|
-
import { Injectable } from '@angular/core';
|
|
9
|
-
import { addDecades, addCenturies, cloneDate, durationInCenturies, firstYearOfDecade, firstDecadeOfCentury, lastDecadeOfCentury, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth } from '@progress/kendo-date-math';
|
|
10
|
-
import { Action } from '../models/navigation-action.enum';
|
|
11
|
-
import { EMPTY_SELECTIONRANGE } from '../models/selection-range.interface';
|
|
12
|
-
import { getToday, isInSelectionRange, range } from '../../util';
|
|
13
|
-
import { isPresent } from '../../common/utils';
|
|
14
|
-
var EMPTY_DATA = [[]];
|
|
15
|
-
var CELLS_LENGTH = 4;
|
|
16
|
-
var ROWS_LENGTH = 3;
|
|
17
|
-
var ACTIONS = (_a = {},
|
|
18
|
-
_a[Action.Left] = function (date) { return addDecades(date, -1); },
|
|
19
|
-
_a[Action.Up] = function (date) { return addDecades(date, -5); },
|
|
20
|
-
_a[Action.Right] = function (date) { return addDecades(date, 1); },
|
|
21
|
-
_a[Action.Down] = function (date) { return addDecades(date, 5); },
|
|
22
|
-
_a[Action.PrevView] = function (date) { return addCenturies(date, -1); },
|
|
23
|
-
_a[Action.NextView] = function (date) { return addCenturies(date, 1); },
|
|
24
|
-
_a[Action.FirstInView] = function (date) { return firstDecadeOfCentury(date); },
|
|
25
|
-
_a[Action.LastInView] = function (date) { return lastDecadeOfCentury(date); },
|
|
26
|
-
_a);
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
var CenturyViewService = /** @class */ (function () {
|
|
31
|
-
function CenturyViewService() {
|
|
32
|
-
this.dateRange = function (start, end) {
|
|
33
|
-
if (!isPresent(start) || !isPresent(end)) {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
var result = [];
|
|
37
|
-
var current = start;
|
|
38
|
-
while (current <= end) {
|
|
39
|
-
result.push(current);
|
|
40
|
-
current = addDecades(current, 1);
|
|
41
|
-
}
|
|
42
|
-
return result;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
CenturyViewService.prototype.addToDate = function (min, skip) {
|
|
46
|
-
return addCenturies(min, skip);
|
|
47
|
-
};
|
|
48
|
-
CenturyViewService.prototype.datesList = function (start, count) {
|
|
49
|
-
return range(0, count).map(function (i) { return addCenturies(start, i); });
|
|
50
|
-
};
|
|
51
|
-
CenturyViewService.prototype.data = function (options) {
|
|
52
|
-
var _this = this;
|
|
53
|
-
var cellUID = options.cellUID, focusedDate = options.focusedDate, isActiveView = options.isActiveView, max = options.max, min = options.min, selectedDates = options.selectedDates, _a = options.selectionRange, selectionRange = _a === void 0 ? EMPTY_SELECTIONRANGE : _a, viewDate = options.viewDate;
|
|
54
|
-
if (!viewDate) {
|
|
55
|
-
return EMPTY_DATA;
|
|
56
|
-
}
|
|
57
|
-
var cells = range(0, CELLS_LENGTH);
|
|
58
|
-
var firstDate = firstDecadeOfCentury(viewDate);
|
|
59
|
-
var lastDate = lastDecadeOfCentury(viewDate);
|
|
60
|
-
var today = getToday();
|
|
61
|
-
return range(0, ROWS_LENGTH).map(function (rowOffset) {
|
|
62
|
-
var baseDate = addDecades(firstDate, rowOffset * CELLS_LENGTH);
|
|
63
|
-
return cells.map(function (cellOffset) {
|
|
64
|
-
var cellDate = _this.normalize(addDecades(baseDate, cellOffset), min, max);
|
|
65
|
-
var nextCentury = cellDate.getFullYear() > lastDate.getFullYear();
|
|
66
|
-
if (!_this.isInRange(cellDate, min, max) || nextCentury) {
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
var isRangeStart = _this.isEqual(cellDate, selectionRange.start);
|
|
70
|
-
var isRangeEnd = _this.isEqual(cellDate, selectionRange.end);
|
|
71
|
-
var isInMiddle = !isRangeStart && !isRangeEnd;
|
|
72
|
-
var isRangeMid = isInMiddle && isInSelectionRange(cellDate, selectionRange);
|
|
73
|
-
return {
|
|
74
|
-
formattedValue: _this.value(cellDate),
|
|
75
|
-
id: "" + cellUID + cellDate.getTime(),
|
|
76
|
-
isFocused: _this.isEqual(cellDate, focusedDate),
|
|
77
|
-
isSelected: isActiveView && selectedDates.some(function (date) { return _this.isEqual(cellDate, date); }),
|
|
78
|
-
isWeekend: false,
|
|
79
|
-
isRangeStart: isRangeStart,
|
|
80
|
-
isRangeMid: isRangeMid,
|
|
81
|
-
isRangeEnd: isRangeEnd,
|
|
82
|
-
isRangeSplitEnd: isRangeMid && _this.isEqual(cellDate, lastDate),
|
|
83
|
-
isRangeSplitStart: isRangeMid && _this.isEqual(cellDate, firstDate),
|
|
84
|
-
isToday: _this.isEqual(cellDate, today),
|
|
85
|
-
title: _this.cellTitle(cellDate),
|
|
86
|
-
value: cellDate
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
CenturyViewService.prototype.isEqual = function (candidate, expected) {
|
|
92
|
-
if (!candidate || !expected) {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
return firstYearOfDecade(candidate).getFullYear() === firstYearOfDecade(expected).getFullYear();
|
|
96
|
-
};
|
|
97
|
-
CenturyViewService.prototype.isInArray = function (date, dates) {
|
|
98
|
-
if (!dates.length) {
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
var year = date.getFullYear();
|
|
102
|
-
return dates[0].getFullYear() <= year && year <= (dates[dates.length - 1].getFullYear() + 99);
|
|
103
|
-
};
|
|
104
|
-
CenturyViewService.prototype.isInRange = function (candidate, min, max) {
|
|
105
|
-
var year = firstYearOfDecade(candidate).getFullYear();
|
|
106
|
-
var aboveMin = !min || firstYearOfDecade(min).getFullYear() <= year;
|
|
107
|
-
var belowMax = !max || year <= firstYearOfDecade(max).getFullYear();
|
|
108
|
-
return aboveMin && belowMax;
|
|
109
|
-
};
|
|
110
|
-
CenturyViewService.prototype.beginningOfPeriod = function (date) {
|
|
111
|
-
if (!date) {
|
|
112
|
-
return date;
|
|
113
|
-
}
|
|
114
|
-
var firstYear = firstYearOfDecade(firstDecadeOfCentury(date));
|
|
115
|
-
return createDate(firstYear.getFullYear(), 0, 1);
|
|
116
|
-
};
|
|
117
|
-
CenturyViewService.prototype.lastDayOfPeriod = function (date) {
|
|
118
|
-
var decade = lastDecadeOfCentury(date);
|
|
119
|
-
var year = lastYearOfDecade(decade);
|
|
120
|
-
var month = lastMonthOfYear(year);
|
|
121
|
-
return lastDayOfMonth(month);
|
|
122
|
-
};
|
|
123
|
-
CenturyViewService.prototype.isRangeStart = function (value) {
|
|
124
|
-
return value.getFullYear() % 1000 === 0;
|
|
125
|
-
};
|
|
126
|
-
CenturyViewService.prototype.move = function (value, action) {
|
|
127
|
-
var modifier = ACTIONS[action];
|
|
128
|
-
if (!modifier) {
|
|
129
|
-
return value;
|
|
130
|
-
}
|
|
131
|
-
return modifier(value);
|
|
132
|
-
};
|
|
133
|
-
CenturyViewService.prototype.cellTitle = function (value) {
|
|
134
|
-
return firstYearOfDecade(value).getFullYear().toString();
|
|
135
|
-
};
|
|
136
|
-
CenturyViewService.prototype.navigationTitle = function (value) {
|
|
137
|
-
return value ? firstDecadeOfCentury(value).getFullYear().toString() : '';
|
|
138
|
-
};
|
|
139
|
-
CenturyViewService.prototype.title = function (value) {
|
|
140
|
-
if (!value) {
|
|
141
|
-
return '';
|
|
142
|
-
}
|
|
143
|
-
return firstDecadeOfCentury(value).getFullYear() + " - " + lastDecadeOfCentury(value).getFullYear();
|
|
144
|
-
};
|
|
145
|
-
CenturyViewService.prototype.rowLength = function () {
|
|
146
|
-
return CELLS_LENGTH;
|
|
147
|
-
};
|
|
148
|
-
CenturyViewService.prototype.skip = function (value, min) {
|
|
149
|
-
return durationInCenturies(min, value);
|
|
150
|
-
};
|
|
151
|
-
CenturyViewService.prototype.total = function (min, max) {
|
|
152
|
-
return durationInCenturies(min, max) + 1;
|
|
153
|
-
};
|
|
154
|
-
CenturyViewService.prototype.value = function (current) {
|
|
155
|
-
return current ? firstYearOfDecade(current).getFullYear().toString() : '';
|
|
156
|
-
};
|
|
157
|
-
CenturyViewService.prototype.viewDate = function (date, max, viewsCount) {
|
|
158
|
-
if (viewsCount === void 0) { viewsCount = 1; }
|
|
159
|
-
var viewsInRange = this.total(date, max);
|
|
160
|
-
if (viewsInRange < viewsCount) {
|
|
161
|
-
var centuriesToSubtract = viewsCount - viewsInRange;
|
|
162
|
-
return addCenturies(date, -1 * centuriesToSubtract);
|
|
163
|
-
}
|
|
164
|
-
return date;
|
|
165
|
-
};
|
|
166
|
-
CenturyViewService.prototype.normalize = function (cellDate, min, max) {
|
|
167
|
-
if (cellDate < min && this.isEqual(cellDate, min)) {
|
|
168
|
-
return cloneDate(min);
|
|
169
|
-
}
|
|
170
|
-
if (cellDate > max && this.isEqual(cellDate, max)) {
|
|
171
|
-
return cloneDate(max);
|
|
172
|
-
}
|
|
173
|
-
return cellDate;
|
|
174
|
-
};
|
|
175
|
-
CenturyViewService = tslib_1.__decorate([
|
|
176
|
-
Injectable()
|
|
177
|
-
], CenturyViewService);
|
|
178
|
-
return CenturyViewService;
|
|
179
|
-
}());
|
|
180
|
-
export { CenturyViewService };
|