@progress/kendo-angular-dateinputs 6.0.3 → 7.0.0-dev.202204191043
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-dateinputs.umd.js +5 -0
- package/calendar/calendar-common.module.d.ts +24 -0
- package/{dist/es2015/calendar → calendar}/calendar.component.d.ts +46 -21
- package/{dist/es2015/calendar → calendar}/calendar.module.d.ts +16 -0
- package/{dist/es2015/calendar → calendar}/calendars.module.d.ts +6 -0
- package/{dist/es2015/calendar → calendar}/for.directive.d.ts +8 -5
- package/{dist/es2015/calendar → calendar}/header.component.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/horizontal-view-list.component.d.ts +9 -5
- package/{dist/es2015/calendar → calendar}/localization/calendar-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/localization/calendar-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/calendar-messages.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-messages.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/models/cell-context.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/keydown.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/navigation-action.enum.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/row-length-options.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/scrollable.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection-range-end.type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection-range.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/selection.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view-service.interface.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view.enum.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/models/view.type.d.ts +0 -0
- package/{dist/es2015/calendar → calendar}/multiview-calendar.component.d.ts +38 -24
- package/{dist/es2015/calendar → calendar}/multiview-calendar.module.d.ts +14 -0
- package/{dist/es2015/calendar → calendar}/navigation.component.d.ts +4 -1
- package/{dist/es2015/calendar → calendar}/services/bus-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/century-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/decade-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/disabled-dates.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/dom.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/month-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/navigation.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/scroll-sync.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/selection.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/weeknames.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/services/year-view.service.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/century-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/decade-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/header-title-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/month-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/navigation-item-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/weeknumber-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/calendar → calendar}/templates/year-cell-template.directive.d.ts +3 -0
- package/calendar/templates.module.d.ts +33 -0
- package/{dist/es2015/calendar → calendar}/view-list.component.d.ts +9 -5
- package/{dist/es2015/calendar → calendar}/view.component.d.ts +5 -1
- package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
- package/{dist/es2015/common → common}/models/fillmode.d.ts +5 -5
- package/{dist/es2015/common → common}/models/rounded.d.ts +6 -6
- package/{dist/es2015/common → common}/models/size.d.ts +5 -5
- package/{dist/es2015/common → common}/picker.service.d.ts +0 -0
- package/{dist/es2015/common → common}/utils.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/arrow.enum.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/dateinput.component.d.ts +34 -25
- package/dateinput/dateinput.module.d.ts +20 -0
- package/{dist/es2015/dateinput → dateinput}/localization/dateinput-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/dateinput → dateinput}/localization/dateinput-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/dateinput → dateinput}/localization/messages.d.ts +3 -0
- package/{dist/es2015/dateinput → dateinput}/models/format-placeholder.model.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/models/format-settings.model.d.ts +0 -0
- package/{dist/es2015/dateinput → dateinput}/models/incremental-steps.model.d.ts +0 -0
- package/{dist/es2015/dateinputs.module.d.ts → dateinputs.module.d.ts} +10 -0
- package/{dist/es2015/datepicker → datepicker}/datepicker.component.d.ts +49 -37
- package/datepicker/datepicker.module.d.ts +24 -0
- package/{dist/es2015/datepicker → datepicker}/localization/datepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/datepicker → datepicker}/localization/datepicker-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/datepicker → datepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/auto-correct-on.type.d.ts +0 -0
- package/{dist/es2015/daterange → daterange}/date-range-end-input.directive.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/date-range-input.d.ts +2 -2
- package/{dist/es2015/daterange → daterange}/date-range-popup-template.directive.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/date-range-popup.component.d.ts +9 -4
- package/{dist/es2015/daterange → daterange}/date-range-selection.directive.d.ts +8 -3
- package/{dist/es2015/daterange → daterange}/date-range-start-input.directive.d.ts +3 -0
- package/{dist/es2015/daterange → daterange}/date-range.component.d.ts +5 -1
- package/{dist/es2015/daterange → daterange}/date-range.module.d.ts +15 -1
- package/{dist/es2015/daterange → daterange}/date-range.service.d.ts +11 -6
- package/{dist/es2015/datetimepicker → datetimepicker}/datetimepicker.component.d.ts +51 -36
- package/datetimepicker/datetimepicker.module.d.ts +25 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/datetimepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/datetimepicker → datetimepicker}/models/active-tab.type.d.ts +0 -0
- package/{dist/es2015/defaults.d.ts → defaults.d.ts} +0 -0
- package/esm2015/calendar/calendar-common.module.js +45 -0
- package/{dist/es2015 → esm2015}/calendar/calendar.component.js +283 -246
- package/{dist/es2015 → esm2015}/calendar/calendar.module.js +71 -34
- package/{dist/es2015 → esm2015}/calendar/calendars.module.js +23 -14
- package/{dist/es2015 → esm2015}/calendar/for.directive.js +17 -25
- package/{dist/es2015 → esm2015}/calendar/header.component.js +97 -73
- package/{dist/es2015 → esm2015}/calendar/horizontal-view-list.component.js +155 -130
- package/esm2015/calendar/localization/calendar-custom-messages.component.js +40 -0
- package/esm2015/calendar/localization/calendar-localized-messages.directive.js +36 -0
- package/esm2015/calendar/localization/calendar-messages.js +27 -0
- package/esm2015/calendar/localization/multiview-calendar-custom-messages.component.js +40 -0
- package/esm2015/calendar/localization/multiview-calendar-localized-messages.directive.js +36 -0
- package/esm2015/calendar/localization/multiview-calendar-messages.js +27 -0
- package/{dist/es → esm2015}/calendar/models/cell-context.interface.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/models/keydown.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/navigation-action.enum.js +0 -0
- package/{dist/es2015 → esm2015}/calendar/models/row-length-options.interface.js +1 -0
- package/{dist/es/virtualization → esm2015/calendar}/models/scrollable.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/selection-range-end.type.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/models/selection-range.interface.js +0 -0
- package/{dist/es → esm2015}/calendar/models/selection.js +1 -0
- package/{dist/es → esm2015}/calendar/models/type.js +1 -0
- package/{dist/es → esm2015}/calendar/models/view-service.interface.js +1 -0
- package/{dist/es → esm2015}/calendar/models/view.enum.js +0 -0
- package/{dist/es → esm2015}/calendar/models/view.type.js +1 -0
- package/{dist/es2015 → esm2015}/calendar/multiview-calendar.component.js +246 -298
- package/{dist/es2015 → esm2015}/calendar/multiview-calendar.module.js +63 -32
- package/{dist/es2015 → esm2015}/calendar/navigation.component.js +71 -62
- package/{dist/es2015 → esm2015}/calendar/services/bus-view.service.js +9 -11
- package/{dist/es2015 → esm2015}/calendar/services/century-view.service.js +8 -11
- package/{dist/es2015 → esm2015}/calendar/services/decade-view.service.js +8 -11
- package/{dist/es2015 → esm2015}/calendar/services/disabled-dates.service.js +8 -12
- package/{dist/es2015 → esm2015}/calendar/services/dom.service.js +10 -26
- package/{dist/es2015 → esm2015}/calendar/services/month-view.service.js +9 -10
- package/{dist/es2015 → esm2015}/calendar/services/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/scroll-sync.service.js +10 -13
- package/{dist/es2015 → esm2015}/calendar/services/selection.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/weeknames.service.js +9 -9
- package/{dist/es2015 → esm2015}/calendar/services/year-view.service.js +9 -13
- package/{dist/es2015 → esm2015}/calendar/templates/cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/century-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/decade-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/header-title-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/month-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/navigation-item-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/weeknumber-cell-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/calendar/templates/year-cell-template.directive.js +12 -11
- package/esm2015/calendar/templates.module.js +73 -0
- package/{dist/es2015 → esm2015}/calendar/view-list.component.js +135 -120
- package/{dist/es2015 → esm2015}/calendar/view.component.js +105 -98
- package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -0
- package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
- package/{dist/es → esm2015}/common/models/rounded.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es2015 → esm2015}/common/picker.service.js +0 -0
- package/{dist/es2015 → esm2015}/common/utils.js +0 -0
- package/{dist/es → esm2015}/dateinput/arrow.enum.js +0 -0
- package/{dist/es2015 → esm2015}/dateinput/dateinput.component.js +215 -216
- package/esm2015/dateinput/dateinput.module.js +41 -0
- package/esm2015/dateinput/localization/dateinput-custom-messages.component.js +40 -0
- package/esm2015/dateinput/localization/dateinput-localized-messages.directive.js +36 -0
- package/esm2015/dateinput/localization/messages.js +25 -0
- package/{dist/es → esm2015}/dateinput/models/format-placeholder.model.js +1 -0
- package/{dist/es → esm2015}/dateinput/models/format-settings.model.js +1 -0
- package/{dist/es → esm2015}/dateinput/models/incremental-steps.model.js +1 -0
- package/{dist/es2015 → esm2015}/dateinputs.module.js +28 -10
- package/{dist/es2015 → esm2015}/datepicker/datepicker.component.js +320 -317
- package/esm2015/datepicker/datepicker.module.js +72 -0
- package/esm2015/datepicker/localization/datepicker-custom-messages.component.js +40 -0
- package/esm2015/datepicker/localization/datepicker-localized-messages.directive.js +36 -0
- package/esm2015/datepicker/localization/messages.js +29 -0
- package/{dist/es → esm2015}/daterange/auto-correct-on.type.js +1 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-end-input.directive.js +18 -25
- package/{dist/es2015 → esm2015}/daterange/date-range-input.js +0 -0
- package/esm2015/daterange/date-range-popup-template.directive.js +23 -0
- package/{dist/es2015 → esm2015}/daterange/date-range-popup.component.js +71 -89
- package/{dist/es2015 → esm2015}/daterange/date-range-selection.directive.js +26 -39
- package/{dist/es2015 → esm2015}/daterange/date-range-start-input.directive.js +18 -25
- package/esm2015/daterange/date-range.component.js +77 -0
- package/{dist/es2015 → esm2015}/daterange/date-range.module.js +27 -12
- package/{dist/es2015 → esm2015}/daterange/date-range.service.js +9 -14
- package/{dist/es2015 → esm2015}/datetimepicker/datetimepicker.component.js +436 -257
- package/esm2015/datetimepicker/datetimepicker.module.js +80 -0
- package/esm2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +40 -0
- package/esm2015/datetimepicker/localization/localized-messages.directive.js +36 -0
- package/esm2015/datetimepicker/localization/messages.js +49 -0
- package/{dist/es → esm2015}/datetimepicker/models/active-tab.type.js +1 -0
- package/{dist/es2015 → esm2015}/defaults.js +0 -0
- package/esm2015/kendo-angular-dateinputs.js +8 -0
- package/{dist/es → esm2015}/main.js +24 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es → esm2015}/popup-settings.model.js +1 -0
- package/{dist/es2015 → esm2015}/preventable-event.js +1 -0
- package/esm2015/timepicker/localization/messages.js +35 -0
- package/esm2015/timepicker/localization/timepicker-custom-messages.component.js +40 -0
- package/esm2015/timepicker/localization/timepicker-localized-messages.directive.js +36 -0
- package/esm2015/timepicker/localization/timeselector-custom-messages.component.js +42 -0
- package/esm2015/timepicker/localization/timeselector-localized-messages.directive.js +36 -0
- package/{dist/es → esm2015}/timepicker/models/incremental-steps.model.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-item.interface.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-service-settings.js +1 -0
- package/{dist/es → esm2015}/timepicker/models/list-service.interface.js +1 -0
- package/{dist/es2015 → esm2015}/timepicker/models/time-part.default.js +0 -0
- package/{dist/es2015 → esm2015}/timepicker/services/dayperiod.service.js +9 -15
- package/{dist/es2015 → esm2015}/timepicker/services/dom.service.js +8 -13
- package/{dist/es2015 → esm2015}/timepicker/services/hours.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/milliseconds.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/minutes.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/services/seconds.service.js +9 -14
- package/{dist/es2015 → esm2015}/timepicker/timelist.component.js +66 -61
- package/{dist/es2015 → esm2015}/timepicker/timepicker.component.js +251 -208
- package/{dist/es2015 → esm2015}/timepicker/timepicker.module.js +32 -15
- package/{dist/es2015 → esm2015}/timepicker/timeselector.component.js +181 -104
- package/{dist/es2015 → esm2015}/timepicker/util.js +8 -20
- package/{dist/es2015 → esm2015}/touch-enabled.js +0 -0
- package/{dist/es2015 → esm2015}/util.js +13 -6
- package/{dist/es2015 → esm2015}/validators/disabled-date.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/disabled-dates-range.validator.js +0 -2
- package/{dist/es2015 → esm2015}/validators/incomplete-date.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/max.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/min.validator.js +0 -0
- package/{dist/es2015 → esm2015}/validators/time-range.validator.js +0 -0
- package/{dist/es2015/calendar → esm2015/virtualization}/models/scrollable.interface.js +1 -0
- package/{dist/es2015 → esm2015}/virtualization/services/row-height.service.js +1 -3
- package/{dist/es2015 → esm2015}/virtualization/services/scroller.service.js +0 -2
- package/{dist/es2015 → esm2015}/virtualization/virtualization.component.js +75 -90
- package/esm2015/virtualization/virtualization.module.js +30 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dateinputs.js} +9763 -9156
- package/{dist/es/calendar/models/selection-range.interface.js → kendo-angular-dateinputs.d.ts} +3 -2
- package/{dist/es2015/main.d.ts → main.d.ts} +24 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +42 -115
- package/{dist/es2015/popup-settings.model.d.ts → popup-settings.model.d.ts} +0 -0
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +2 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/timepicker → timepicker}/localization/messages.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/localization/timepicker-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/localization/timepicker-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/localization/timeselector-custom-messages.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/localization/timeselector-localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/models/incremental-steps.model.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-item.interface.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-service-settings.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/list-service.interface.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/models/time-part.default.d.ts +0 -0
- package/{dist/es2015/timepicker → timepicker}/services/dayperiod.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/dom.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/hours.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/milliseconds.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/minutes.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/services/seconds.service.d.ts +3 -0
- package/{dist/es2015/timepicker → timepicker}/timelist.component.d.ts +4 -1
- package/{dist/es2015/timepicker → timepicker}/timepicker.component.d.ts +45 -31
- package/timepicker/timepicker.module.d.ts +27 -0
- package/{dist/es2015/timepicker → timepicker}/timeselector.component.d.ts +10 -4
- package/{dist/es2015/timepicker → timepicker}/util.d.ts +0 -0
- package/{dist/es2015/touch-enabled.d.ts → touch-enabled.d.ts} +0 -0
- package/{dist/es2015/util.d.ts → util.d.ts} +12 -0
- package/{dist/es2015/validators → validators}/disabled-date.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/disabled-dates-range.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/incomplete-date.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/max.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/min.validator.d.ts +0 -0
- package/{dist/es2015/validators → validators}/time-range.validator.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/models/scrollable.interface.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/services/row-height.service.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/services/scroller.service.d.ts +0 -0
- package/{dist/es2015/virtualization → virtualization}/virtualization.component.d.ts +8 -5
- package/{dist/es2015/virtualization → virtualization}/virtualization.module.d.ts +6 -0
- package/dist/cdn/js/kendo-angular-dateinputs.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/calendar/calendar-common.module.js +0 -41
- package/dist/es/calendar/calendar.component.js +0 -1189
- package/dist/es/calendar/calendar.module.js +0 -108
- package/dist/es/calendar/calendars.module.js +0 -60
- package/dist/es/calendar/for.directive.js +0 -135
- package/dist/es/calendar/header.component.js +0 -170
- package/dist/es/calendar/horizontal-view-list.component.js +0 -363
- package/dist/es/calendar/localization/calendar-custom-messages.component.js +0 -43
- package/dist/es/calendar/localization/calendar-localized-messages.directive.js +0 -35
- package/dist/es/calendar/localization/calendar-messages.js +0 -30
- package/dist/es/calendar/localization/multiview-calendar-custom-messages.component.js +0 -43
- package/dist/es/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -35
- package/dist/es/calendar/localization/multiview-calendar-messages.js +0 -30
- package/dist/es/calendar/models/keydown.interface.js +0 -4
- package/dist/es/calendar/models/row-length-options.interface.js +0 -4
- package/dist/es/calendar/models/scrollable.interface.js +0 -4
- package/dist/es/calendar/multiview-calendar.component.js +0 -1122
- package/dist/es/calendar/multiview-calendar.module.js +0 -97
- package/dist/es/calendar/navigation.component.js +0 -173
- package/dist/es/calendar/services/bus-view.service.js +0 -83
- package/dist/es/calendar/services/century-view.service.js +0 -180
- package/dist/es/calendar/services/decade-view.service.js +0 -179
- package/dist/es/calendar/services/disabled-dates.service.js +0 -70
- package/dist/es/calendar/services/dom.service.js +0 -195
- package/dist/es/calendar/services/month-view.service.js +0 -203
- package/dist/es/calendar/services/navigation.service.js +0 -53
- package/dist/es/calendar/services/scroll-sync.service.js +0 -85
- package/dist/es/calendar/services/selection.service.js +0 -55
- package/dist/es/calendar/services/weeknames.service.js +0 -27
- package/dist/es/calendar/services/year-view.service.js +0 -204
- package/dist/es/calendar/templates/cell-template.directive.js +0 -46
- package/dist/es/calendar/templates/century-cell-template.directive.js +0 -45
- package/dist/es/calendar/templates/decade-cell-template.directive.js +0 -45
- package/dist/es/calendar/templates/header-title-template.directive.js +0 -44
- package/dist/es/calendar/templates/month-cell-template.directive.js +0 -43
- package/dist/es/calendar/templates/navigation-item-template.directive.js +0 -44
- package/dist/es/calendar/templates/weeknumber-cell-template.directive.js +0 -43
- package/dist/es/calendar/templates/year-cell-template.directive.js +0 -46
- package/dist/es/calendar/templates.module.js +0 -59
- package/dist/es/calendar/view-list.component.js +0 -301
- package/dist/es/calendar/view.component.js +0 -318
- package/dist/es/common/dom-queries.js +0 -24
- package/dist/es/common/picker.service.js +0 -18
- package/dist/es/common/utils.js +0 -35
- package/dist/es/dateinput/dateinput.component.js +0 -1617
- package/dist/es/dateinput/dateinput.module.js +0 -37
- package/dist/es/dateinput/localization/dateinput-custom-messages.component.js +0 -43
- package/dist/es/dateinput/localization/dateinput-localized-messages.directive.js +0 -35
- package/dist/es/dateinput/localization/messages.js +0 -26
- package/dist/es/dateinputs.module.js +0 -63
- package/dist/es/datepicker/datepicker.component.js +0 -1256
- package/dist/es/datepicker/datepicker.module.js +0 -55
- package/dist/es/datepicker/localization/datepicker-custom-messages.component.js +0 -43
- package/dist/es/datepicker/localization/datepicker-localized-messages.directive.js +0 -35
- package/dist/es/datepicker/localization/messages.js +0 -34
- package/dist/es/daterange/date-range-end-input.directive.js +0 -97
- package/dist/es/daterange/date-range-input.js +0 -131
- package/dist/es/daterange/date-range-popup-template.directive.js +0 -23
- package/dist/es/daterange/date-range-popup.component.js +0 -403
- package/dist/es/daterange/date-range-selection.directive.js +0 -230
- package/dist/es/daterange/date-range-start-input.directive.js +0 -97
- package/dist/es/daterange/date-range.component.js +0 -71
- package/dist/es/daterange/date-range.module.js +0 -83
- package/dist/es/daterange/date-range.service.js +0 -208
- package/dist/es/datetimepicker/datetimepicker.component.js +0 -1309
- package/dist/es/datetimepicker/datetimepicker.module.js +0 -57
- package/dist/es/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -43
- package/dist/es/datetimepicker/localization/localized-messages.directive.js +0 -35
- package/dist/es/datetimepicker/localization/messages.js +0 -74
- package/dist/es/defaults.js +0 -24
- package/dist/es/index.js +0 -63
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -29
- package/dist/es/timepicker/localization/messages.js +0 -46
- package/dist/es/timepicker/localization/timepicker-custom-messages.component.js +0 -43
- package/dist/es/timepicker/localization/timepicker-localized-messages.directive.js +0 -35
- package/dist/es/timepicker/localization/timeselector-custom-messages.component.js +0 -45
- package/dist/es/timepicker/localization/timeselector-localized-messages.directive.js +0 -35
- package/dist/es/timepicker/models/time-part.default.js +0 -14
- package/dist/es/timepicker/services/dayperiod.service.js +0 -130
- package/dist/es/timepicker/services/dom.service.js +0 -64
- package/dist/es/timepicker/services/hours.service.js +0 -129
- package/dist/es/timepicker/services/milliseconds.service.js +0 -130
- package/dist/es/timepicker/services/minutes.service.js +0 -127
- package/dist/es/timepicker/services/seconds.service.js +0 -127
- package/dist/es/timepicker/timelist.component.js +0 -297
- package/dist/es/timepicker/timepicker.component.js +0 -1044
- package/dist/es/timepicker/timepicker.module.js +0 -75
- package/dist/es/timepicker/timeselector.component.js +0 -486
- package/dist/es/timepicker/util.js +0 -82
- package/dist/es/touch-enabled.js +0 -9
- package/dist/es/util.js +0 -395
- package/dist/es/validators/disabled-date.validator.js +0 -18
- package/dist/es/validators/disabled-dates-range.validator.js +0 -28
- package/dist/es/validators/incomplete-date.validator.js +0 -18
- package/dist/es/validators/max.validator.js +0 -21
- package/dist/es/validators/min.validator.js +0 -21
- package/dist/es/validators/time-range.validator.js +0 -23
- package/dist/es/virtualization/services/row-height.service.js +0 -72
- package/dist/es/virtualization/services/scroller.service.js +0 -111
- package/dist/es/virtualization/virtualization.component.js +0 -343
- package/dist/es/virtualization/virtualization.module.js +0 -30
- package/dist/es2015/calendar/calendar-common.module.d.ts +0 -15
- package/dist/es2015/calendar/calendar-common.module.js +0 -38
- package/dist/es2015/calendar/localization/calendar-custom-messages.component.js +0 -35
- package/dist/es2015/calendar/localization/calendar-localized-messages.directive.js +0 -31
- package/dist/es2015/calendar/localization/calendar-messages.js +0 -24
- package/dist/es2015/calendar/localization/multiview-calendar-custom-messages.component.js +0 -35
- package/dist/es2015/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -31
- package/dist/es2015/calendar/localization/multiview-calendar-messages.js +0 -24
- package/dist/es2015/calendar/models/cell-context.interface.js +0 -4
- package/dist/es2015/calendar/models/navigation-action.enum.js +0 -20
- package/dist/es2015/calendar/models/selection-range-end.type.js +0 -4
- package/dist/es2015/calendar/models/selection.js +0 -4
- package/dist/es2015/calendar/models/type.js +0 -4
- package/dist/es2015/calendar/models/view-service.interface.js +0 -4
- package/dist/es2015/calendar/models/view.enum.js +0 -16
- package/dist/es2015/calendar/models/view.type.js +0 -4
- package/dist/es2015/calendar/templates.module.d.ts +0 -21
- package/dist/es2015/calendar/templates.module.js +0 -56
- package/dist/es2015/common/models/fillmode.js +0 -4
- package/dist/es2015/common/models/rounded.js +0 -4
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/dateinput/arrow.enum.js +0 -13
- package/dist/es2015/dateinput/dateinput.module.d.ts +0 -10
- package/dist/es2015/dateinput/dateinput.module.js +0 -34
- package/dist/es2015/dateinput/localization/dateinput-custom-messages.component.js +0 -35
- package/dist/es2015/dateinput/localization/dateinput-localized-messages.directive.js +0 -31
- package/dist/es2015/dateinput/localization/messages.js +0 -20
- package/dist/es2015/dateinput/models/format-placeholder.model.js +0 -4
- package/dist/es2015/dateinput/models/format-settings.model.js +0 -4
- package/dist/es2015/dateinput/models/incremental-steps.model.js +0 -4
- package/dist/es2015/datepicker/datepicker.module.d.ts +0 -10
- package/dist/es2015/datepicker/datepicker.module.js +0 -52
- package/dist/es2015/datepicker/localization/datepicker-custom-messages.component.js +0 -35
- package/dist/es2015/datepicker/localization/datepicker-localized-messages.directive.js +0 -31
- package/dist/es2015/datepicker/localization/messages.js +0 -28
- package/dist/es2015/daterange/auto-correct-on.type.js +0 -4
- package/dist/es2015/daterange/date-range-popup-template.directive.js +0 -22
- package/dist/es2015/daterange/date-range.component.js +0 -68
- package/dist/es2015/datetimepicker/datetimepicker.module.d.ts +0 -10
- package/dist/es2015/datetimepicker/datetimepicker.module.js +0 -57
- package/dist/es2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -35
- package/dist/es2015/datetimepicker/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/datetimepicker/localization/messages.js +0 -68
- package/dist/es2015/datetimepicker/models/active-tab.type.js +0 -4
- package/dist/es2015/index.d.ts +0 -63
- package/dist/es2015/index.js +0 -63
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -35
- package/dist/es2015/popup-settings.model.js +0 -4
- package/dist/es2015/timepicker/localization/messages.js +0 -40
- package/dist/es2015/timepicker/localization/timepicker-custom-messages.component.js +0 -35
- package/dist/es2015/timepicker/localization/timepicker-localized-messages.directive.js +0 -31
- package/dist/es2015/timepicker/localization/timeselector-custom-messages.component.js +0 -37
- package/dist/es2015/timepicker/localization/timeselector-localized-messages.directive.js +0 -31
- package/dist/es2015/timepicker/models/incremental-steps.model.js +0 -4
- package/dist/es2015/timepicker/models/list-item.interface.js +0 -4
- package/dist/es2015/timepicker/models/list-service-settings.js +0 -4
- package/dist/es2015/timepicker/models/list-service.interface.js +0 -4
- package/dist/es2015/timepicker/timepicker.module.d.ts +0 -10
- package/dist/es2015/virtualization/models/scrollable.interface.js +0 -4
- package/dist/es2015/virtualization/virtualization.module.js +0 -27
- package/dist/fesm5/index.js +0 -15216
- package/dist/npm/calendar/calendar-common.module.js +0 -43
- package/dist/npm/calendar/calendar.component.js +0 -1191
- package/dist/npm/calendar/calendar.module.js +0 -110
- package/dist/npm/calendar/calendars.module.js +0 -62
- package/dist/npm/calendar/for.directive.js +0 -138
- package/dist/npm/calendar/header.component.js +0 -172
- package/dist/npm/calendar/horizontal-view-list.component.js +0 -365
- package/dist/npm/calendar/localization/calendar-custom-messages.component.js +0 -45
- package/dist/npm/calendar/localization/calendar-localized-messages.directive.js +0 -37
- package/dist/npm/calendar/localization/calendar-messages.js +0 -32
- package/dist/npm/calendar/localization/multiview-calendar-custom-messages.component.js +0 -45
- package/dist/npm/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -37
- package/dist/npm/calendar/localization/multiview-calendar-messages.js +0 -32
- package/dist/npm/calendar/models/cell-context.interface.js +0 -6
- package/dist/npm/calendar/models/keydown.interface.js +0 -6
- package/dist/npm/calendar/models/navigation-action.enum.js +0 -22
- package/dist/npm/calendar/models/row-length-options.interface.js +0 -6
- package/dist/npm/calendar/models/scrollable.interface.js +0 -6
- package/dist/npm/calendar/models/selection-range-end.type.js +0 -6
- package/dist/npm/calendar/models/selection-range.interface.js +0 -10
- package/dist/npm/calendar/models/selection.js +0 -6
- package/dist/npm/calendar/models/type.js +0 -6
- package/dist/npm/calendar/models/view-service.interface.js +0 -6
- package/dist/npm/calendar/models/view.enum.js +0 -18
- package/dist/npm/calendar/models/view.type.js +0 -6
- package/dist/npm/calendar/multiview-calendar.component.js +0 -1124
- package/dist/npm/calendar/multiview-calendar.module.js +0 -99
- package/dist/npm/calendar/navigation.component.js +0 -175
- package/dist/npm/calendar/services/bus-view.service.js +0 -85
- package/dist/npm/calendar/services/century-view.service.js +0 -182
- package/dist/npm/calendar/services/decade-view.service.js +0 -181
- package/dist/npm/calendar/services/disabled-dates.service.js +0 -72
- package/dist/npm/calendar/services/dom.service.js +0 -212
- package/dist/npm/calendar/services/month-view.service.js +0 -205
- package/dist/npm/calendar/services/navigation.service.js +0 -55
- package/dist/npm/calendar/services/scroll-sync.service.js +0 -88
- package/dist/npm/calendar/services/selection.service.js +0 -57
- package/dist/npm/calendar/services/weeknames.service.js +0 -29
- package/dist/npm/calendar/services/year-view.service.js +0 -207
- package/dist/npm/calendar/templates/cell-template.directive.js +0 -48
- package/dist/npm/calendar/templates/century-cell-template.directive.js +0 -47
- package/dist/npm/calendar/templates/decade-cell-template.directive.js +0 -47
- package/dist/npm/calendar/templates/header-title-template.directive.js +0 -46
- package/dist/npm/calendar/templates/month-cell-template.directive.js +0 -45
- package/dist/npm/calendar/templates/navigation-item-template.directive.js +0 -46
- package/dist/npm/calendar/templates/weeknumber-cell-template.directive.js +0 -45
- package/dist/npm/calendar/templates/year-cell-template.directive.js +0 -48
- package/dist/npm/calendar/templates.module.js +0 -61
- package/dist/npm/calendar/view-list.component.js +0 -303
- package/dist/npm/calendar/view.component.js +0 -320
- package/dist/npm/common/dom-queries.js +0 -26
- package/dist/npm/common/models/fillmode.js +0 -6
- package/dist/npm/common/models/rounded.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/picker.service.js +0 -20
- package/dist/npm/common/utils.js +0 -37
- package/dist/npm/dateinput/arrow.enum.js +0 -15
- package/dist/npm/dateinput/dateinput.component.js +0 -1620
- package/dist/npm/dateinput/dateinput.module.js +0 -39
- package/dist/npm/dateinput/localization/dateinput-custom-messages.component.js +0 -45
- package/dist/npm/dateinput/localization/dateinput-localized-messages.directive.js +0 -37
- package/dist/npm/dateinput/localization/messages.js +0 -28
- package/dist/npm/dateinput/models/format-placeholder.model.js +0 -6
- package/dist/npm/dateinput/models/format-settings.model.js +0 -6
- package/dist/npm/dateinput/models/incremental-steps.model.js +0 -6
- package/dist/npm/dateinputs.module.js +0 -65
- package/dist/npm/datepicker/datepicker.component.js +0 -1258
- package/dist/npm/datepicker/datepicker.module.js +0 -57
- package/dist/npm/datepicker/localization/datepicker-custom-messages.component.js +0 -45
- package/dist/npm/datepicker/localization/datepicker-localized-messages.directive.js +0 -37
- package/dist/npm/datepicker/localization/messages.js +0 -36
- package/dist/npm/daterange/auto-correct-on.type.js +0 -6
- package/dist/npm/daterange/date-range-end-input.directive.js +0 -99
- package/dist/npm/daterange/date-range-input.js +0 -133
- package/dist/npm/daterange/date-range-popup-template.directive.js +0 -25
- package/dist/npm/daterange/date-range-popup.component.js +0 -405
- package/dist/npm/daterange/date-range-selection.directive.js +0 -232
- package/dist/npm/daterange/date-range-start-input.directive.js +0 -99
- package/dist/npm/daterange/date-range.component.js +0 -73
- package/dist/npm/daterange/date-range.module.js +0 -85
- package/dist/npm/daterange/date-range.service.js +0 -211
- package/dist/npm/datetimepicker/datetimepicker.component.js +0 -1311
- package/dist/npm/datetimepicker/datetimepicker.module.js +0 -59
- package/dist/npm/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -45
- package/dist/npm/datetimepicker/localization/localized-messages.directive.js +0 -37
- package/dist/npm/datetimepicker/localization/messages.js +0 -76
- package/dist/npm/datetimepicker/models/active-tab.type.js +0 -6
- package/dist/npm/defaults.js +0 -26
- package/dist/npm/index.js +0 -127
- package/dist/npm/main.js +0 -68
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/popup-settings.model.js +0 -6
- package/dist/npm/preventable-event.js +0 -31
- package/dist/npm/timepicker/localization/messages.js +0 -48
- package/dist/npm/timepicker/localization/timepicker-custom-messages.component.js +0 -45
- package/dist/npm/timepicker/localization/timepicker-localized-messages.directive.js +0 -37
- package/dist/npm/timepicker/localization/timeselector-custom-messages.component.js +0 -47
- package/dist/npm/timepicker/localization/timeselector-localized-messages.directive.js +0 -37
- package/dist/npm/timepicker/models/incremental-steps.model.js +0 -6
- package/dist/npm/timepicker/models/list-item.interface.js +0 -6
- package/dist/npm/timepicker/models/list-service-settings.js +0 -6
- package/dist/npm/timepicker/models/list-service.interface.js +0 -6
- package/dist/npm/timepicker/models/time-part.default.js +0 -16
- package/dist/npm/timepicker/services/dayperiod.service.js +0 -136
- package/dist/npm/timepicker/services/dom.service.js +0 -70
- package/dist/npm/timepicker/services/hours.service.js +0 -134
- package/dist/npm/timepicker/services/milliseconds.service.js +0 -135
- package/dist/npm/timepicker/services/minutes.service.js +0 -132
- package/dist/npm/timepicker/services/seconds.service.js +0 -132
- package/dist/npm/timepicker/timelist.component.js +0 -299
- package/dist/npm/timepicker/timepicker.component.js +0 -1046
- package/dist/npm/timepicker/timepicker.module.js +0 -77
- package/dist/npm/timepicker/timeselector.component.js +0 -488
- package/dist/npm/timepicker/util.js +0 -101
- package/dist/npm/touch-enabled.js +0 -11
- package/dist/npm/util.js +0 -399
- package/dist/npm/validators/disabled-date.validator.js +0 -20
- package/dist/npm/validators/disabled-dates-range.validator.js +0 -30
- package/dist/npm/validators/incomplete-date.validator.js +0 -20
- package/dist/npm/validators/max.validator.js +0 -23
- package/dist/npm/validators/min.validator.js +0 -23
- package/dist/npm/validators/time-range.validator.js +0 -25
- package/dist/npm/virtualization/models/scrollable.interface.js +0 -6
- package/dist/npm/virtualization/services/row-height.service.js +0 -74
- package/dist/npm/virtualization/services/scroller.service.js +0 -113
- package/dist/npm/virtualization/virtualization.component.js +0 -346
- package/dist/npm/virtualization/virtualization.module.js +0 -32
- package/dist/systemjs/kendo-angular-dateinputs.js +0 -5
|
@@ -1,55 +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 navigation_action_enum_1 = require("../models/navigation-action.enum");
|
|
10
|
-
var bus_view_service_1 = require("../services/bus-view.service");
|
|
11
|
-
var KEY_TO_ACTION = {
|
|
12
|
-
'33': navigation_action_enum_1.Action.PrevView,
|
|
13
|
-
'34': navigation_action_enum_1.Action.NextView,
|
|
14
|
-
'35': navigation_action_enum_1.Action.LastInView,
|
|
15
|
-
'36': navigation_action_enum_1.Action.FirstInView,
|
|
16
|
-
'37': navigation_action_enum_1.Action.Left,
|
|
17
|
-
'38': navigation_action_enum_1.Action.Up,
|
|
18
|
-
'39': navigation_action_enum_1.Action.Right,
|
|
19
|
-
'40': navigation_action_enum_1.Action.Down,
|
|
20
|
-
'meta+38': navigation_action_enum_1.Action.UpperView,
|
|
21
|
-
'meta+40': navigation_action_enum_1.Action.LowerView
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
var NavigationService = /** @class */ (function () {
|
|
27
|
-
function NavigationService(bus) {
|
|
28
|
-
this.bus = bus;
|
|
29
|
-
}
|
|
30
|
-
NavigationService.prototype.action = function (event) {
|
|
31
|
-
var action = "" + (event.ctrlKey || event.metaKey ? 'meta+' : '') + event.keyCode;
|
|
32
|
-
return KEY_TO_ACTION[action];
|
|
33
|
-
};
|
|
34
|
-
NavigationService.prototype.move = function (value, action, activeView) {
|
|
35
|
-
var service = this.bus.service(activeView);
|
|
36
|
-
if (!service) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (action === navigation_action_enum_1.Action.UpperView && this.bus.canMoveUp(activeView)) {
|
|
40
|
-
this.bus.moveUp(activeView);
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
if (action === navigation_action_enum_1.Action.LowerView && this.bus.canMoveDown(activeView)) {
|
|
44
|
-
this.bus.moveDown(activeView);
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return service.move(value, action);
|
|
48
|
-
};
|
|
49
|
-
NavigationService = tslib_1.__decorate([
|
|
50
|
-
core_1.Injectable(),
|
|
51
|
-
tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService])
|
|
52
|
-
], NavigationService);
|
|
53
|
-
return NavigationService;
|
|
54
|
-
}());
|
|
55
|
-
exports.NavigationService = NavigationService;
|
|
@@ -1,88 +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 dom_service_1 = require("./dom.service");
|
|
10
|
-
var divideByMagnitude = function (magnitude) { return function (x) { return Math.floor(x / magnitude); }; };
|
|
11
|
-
var ɵ0 = divideByMagnitude;
|
|
12
|
-
exports.ɵ0 = ɵ0;
|
|
13
|
-
var powerByMagnitude = function (magnitude) { return function (x) { return x * magnitude; }; };
|
|
14
|
-
var ɵ1 = powerByMagnitude;
|
|
15
|
-
exports.ɵ1 = ɵ1;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
var ScrollSyncService = /** @class */ (function () {
|
|
20
|
-
function ScrollSyncService(dom, zone) {
|
|
21
|
-
this.dom = dom;
|
|
22
|
-
this.zone = zone;
|
|
23
|
-
}
|
|
24
|
-
ScrollSyncService.prototype.configure = function (activeView) {
|
|
25
|
-
var magnitude = Math.max(this.dom.viewHeight(activeView) / this.dom.navigationItemHeight, 1);
|
|
26
|
-
this.divideByMagnitude = divideByMagnitude(magnitude);
|
|
27
|
-
this.powerByMagnitude = powerByMagnitude(magnitude);
|
|
28
|
-
};
|
|
29
|
-
ScrollSyncService.prototype.sync = function (navigator, view) {
|
|
30
|
-
var _this = this;
|
|
31
|
-
this.unsubscribe();
|
|
32
|
-
if (!navigator || !view) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
this.navigator = navigator;
|
|
36
|
-
this.view = view;
|
|
37
|
-
this.zone.runOutsideAngular(function () {
|
|
38
|
-
var navScrolled, monthScrolled;
|
|
39
|
-
_this.navSubscription = navigator.scroll$()
|
|
40
|
-
.subscribe(function (e) {
|
|
41
|
-
if (monthScrolled) {
|
|
42
|
-
monthScrolled = false;
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
navScrolled = true;
|
|
46
|
-
_this.scrollSiblingOf(e.target);
|
|
47
|
-
});
|
|
48
|
-
_this.viewSubscription = view.scroll$()
|
|
49
|
-
.subscribe(function (e) {
|
|
50
|
-
if (navScrolled) {
|
|
51
|
-
navScrolled = false;
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
monthScrolled = true;
|
|
55
|
-
_this.scrollSiblingOf(e.target);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
ScrollSyncService.prototype.scrollSiblingOf = function (scrolledElement) {
|
|
60
|
-
var component = this.siblingComponent(scrolledElement);
|
|
61
|
-
var scrollTop = this.calculateScroll(component, scrolledElement.scrollTop);
|
|
62
|
-
component.scrollTo(scrollTop);
|
|
63
|
-
};
|
|
64
|
-
ScrollSyncService.prototype.siblingComponent = function (scrollableElement) {
|
|
65
|
-
return this.navigator.container.nativeElement === scrollableElement ? this.view : this.navigator;
|
|
66
|
-
};
|
|
67
|
-
ScrollSyncService.prototype.calculateScroll = function (component, scrollTop) {
|
|
68
|
-
var modifier = component === this.navigator ? this.divideByMagnitude : this.powerByMagnitude;
|
|
69
|
-
return modifier(scrollTop);
|
|
70
|
-
};
|
|
71
|
-
ScrollSyncService.prototype.destroy = function () {
|
|
72
|
-
this.unsubscribe();
|
|
73
|
-
};
|
|
74
|
-
ScrollSyncService.prototype.unsubscribe = function () {
|
|
75
|
-
if (this.navSubscription) {
|
|
76
|
-
this.navSubscription.unsubscribe();
|
|
77
|
-
}
|
|
78
|
-
if (this.viewSubscription) {
|
|
79
|
-
this.viewSubscription.unsubscribe();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
ScrollSyncService = tslib_1.__decorate([
|
|
83
|
-
core_1.Injectable(),
|
|
84
|
-
tslib_1.__metadata("design:paramtypes", [dom_service_1.CalendarDOMService, core_1.NgZone])
|
|
85
|
-
], ScrollSyncService);
|
|
86
|
-
return ScrollSyncService;
|
|
87
|
-
}());
|
|
88
|
-
exports.ScrollSyncService = ScrollSyncService;
|
|
@@ -1,57 +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 kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
10
|
-
var util_1 = require("../../util");
|
|
11
|
-
var bus_view_service_1 = require("./bus-view.service");
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var SelectionService = /** @class */ (function () {
|
|
16
|
-
function SelectionService(bus) {
|
|
17
|
-
this.bus = bus;
|
|
18
|
-
}
|
|
19
|
-
SelectionService.prototype.performSelection = function (args) {
|
|
20
|
-
var date = args.date, modifiers = args.modifiers, selectionMode = args.selectionMode, activeViewEnum = args.activeViewEnum, rangePivot = args.rangePivot;
|
|
21
|
-
var selectedDates = args.selectedDates.slice();
|
|
22
|
-
if (selectionMode === 'multiple') {
|
|
23
|
-
if (modifiers.ctrlKey || modifiers.metaKey) {
|
|
24
|
-
if (this.isDateSelected(selectedDates, date)) {
|
|
25
|
-
selectedDates = selectedDates.filter(function (item) { return !kendo_date_math_1.isEqual(item, date); });
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
selectedDates.push(date);
|
|
29
|
-
}
|
|
30
|
-
rangePivot = date;
|
|
31
|
-
}
|
|
32
|
-
else if (modifiers.shiftKey) {
|
|
33
|
-
var _a = util_1.sortDates([rangePivot || date, date]), start = _a[0], end = _a[1];
|
|
34
|
-
selectedDates = this.bus.service(activeViewEnum).dateRange(start, end);
|
|
35
|
-
rangePivot = date > selectedDates[0] ? selectedDates[0] : util_1.last(selectedDates);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
selectedDates = [date];
|
|
39
|
-
rangePivot = date;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
selectedDates = [date];
|
|
44
|
-
rangePivot = date;
|
|
45
|
-
}
|
|
46
|
-
return { selectedDates: selectedDates, rangePivot: rangePivot };
|
|
47
|
-
};
|
|
48
|
-
SelectionService.prototype.isDateSelected = function (selectedDates, date) {
|
|
49
|
-
return selectedDates.some(function (item) { return kendo_date_math_1.isEqual(item, date); });
|
|
50
|
-
};
|
|
51
|
-
SelectionService = tslib_1.__decorate([
|
|
52
|
-
core_1.Injectable(),
|
|
53
|
-
tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService])
|
|
54
|
-
], SelectionService);
|
|
55
|
-
return SelectionService;
|
|
56
|
-
}());
|
|
57
|
-
exports.SelectionService = SelectionService;
|
|
@@ -1,29 +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 kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
|
|
10
|
-
var util_1 = require("../../util");
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
var WeekNamesService = /** @class */ (function () {
|
|
15
|
-
function WeekNamesService(intl) {
|
|
16
|
-
this.intl = intl;
|
|
17
|
-
}
|
|
18
|
-
WeekNamesService.prototype.getWeekNames = function (includeWeekNumber) {
|
|
19
|
-
if (includeWeekNumber === void 0) { includeWeekNumber = false; }
|
|
20
|
-
var weekNames = util_1.shiftWeekNames(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
|
|
21
|
-
return includeWeekNumber ? [''].concat(weekNames) : weekNames;
|
|
22
|
-
};
|
|
23
|
-
WeekNamesService = tslib_1.__decorate([
|
|
24
|
-
core_1.Injectable(),
|
|
25
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_intl_1.IntlService])
|
|
26
|
-
], WeekNamesService);
|
|
27
|
-
return WeekNamesService;
|
|
28
|
-
}());
|
|
29
|
-
exports.WeekNamesService = WeekNamesService;
|
|
@@ -1,207 +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 _a;
|
|
9
|
-
/* tslint:disable:object-literal-sort-keys */
|
|
10
|
-
var core_1 = require("@angular/core");
|
|
11
|
-
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
|
|
12
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
13
|
-
var navigation_action_enum_1 = require("../models/navigation-action.enum");
|
|
14
|
-
var selection_range_interface_1 = require("../models/selection-range.interface");
|
|
15
|
-
var util_1 = require("../../util");
|
|
16
|
-
var utils_1 = require("../../common/utils");
|
|
17
|
-
var EMPTY_DATA = [[]];
|
|
18
|
-
var CELLS_LENGTH = 4;
|
|
19
|
-
var ROWS_LENGTH = 3;
|
|
20
|
-
var upStep = function (month) {
|
|
21
|
-
if (month > 4) {
|
|
22
|
-
return -5;
|
|
23
|
-
}
|
|
24
|
-
if (month < 2) {
|
|
25
|
-
return -2;
|
|
26
|
-
}
|
|
27
|
-
return -7;
|
|
28
|
-
};
|
|
29
|
-
var ɵ0 = upStep;
|
|
30
|
-
exports.ɵ0 = ɵ0;
|
|
31
|
-
var downStep = function (month) {
|
|
32
|
-
if (month < 7) {
|
|
33
|
-
return 5;
|
|
34
|
-
}
|
|
35
|
-
if (month < 10) {
|
|
36
|
-
return 7;
|
|
37
|
-
}
|
|
38
|
-
return 2;
|
|
39
|
-
};
|
|
40
|
-
var ɵ1 = downStep;
|
|
41
|
-
exports.ɵ1 = ɵ1;
|
|
42
|
-
var ACTIONS = (_a = {},
|
|
43
|
-
_a[navigation_action_enum_1.Action.Left] = function (date) { return kendo_date_math_1.addMonths(date, -1); },
|
|
44
|
-
_a[navigation_action_enum_1.Action.Up] = function (date) { return kendo_date_math_1.addMonths(date, upStep(date.getMonth())); },
|
|
45
|
-
_a[navigation_action_enum_1.Action.Right] = function (date) { return kendo_date_math_1.addMonths(date, 1); },
|
|
46
|
-
_a[navigation_action_enum_1.Action.Down] = function (date) { return kendo_date_math_1.addMonths(date, downStep(date.getMonth())); },
|
|
47
|
-
_a[navigation_action_enum_1.Action.PrevView] = function (date) { return kendo_date_math_1.addYears(date, -1); },
|
|
48
|
-
_a[navigation_action_enum_1.Action.NextView] = function (date) { return kendo_date_math_1.addYears(date, 1); },
|
|
49
|
-
_a[navigation_action_enum_1.Action.FirstInView] = function (date) { return kendo_date_math_1.firstMonthOfYear(date); },
|
|
50
|
-
_a[navigation_action_enum_1.Action.LastInView] = function (date) { return kendo_date_math_1.lastMonthOfYear(date); },
|
|
51
|
-
_a);
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
var YearViewService = /** @class */ (function () {
|
|
56
|
-
function YearViewService(_intlService) {
|
|
57
|
-
this._intlService = _intlService;
|
|
58
|
-
this.dateRange = function (start, end) {
|
|
59
|
-
if (!utils_1.isPresent(start) || !utils_1.isPresent(end)) {
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
var result = [];
|
|
63
|
-
var current = start;
|
|
64
|
-
while (current <= end) {
|
|
65
|
-
result.push(current);
|
|
66
|
-
current = kendo_date_math_1.addMonths(current, 1);
|
|
67
|
-
}
|
|
68
|
-
return result;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
YearViewService.prototype.addToDate = function (min, skip) {
|
|
72
|
-
return kendo_date_math_1.addYears(min, skip);
|
|
73
|
-
};
|
|
74
|
-
YearViewService.prototype.datesList = function (start, count) {
|
|
75
|
-
return util_1.range(0, count).map(function (i) { return kendo_date_math_1.addYears(start, i); });
|
|
76
|
-
};
|
|
77
|
-
YearViewService.prototype.data = function (options) {
|
|
78
|
-
var _this = this;
|
|
79
|
-
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 ? selection_range_interface_1.EMPTY_SELECTIONRANGE : _a, viewDate = options.viewDate;
|
|
80
|
-
if (!viewDate) {
|
|
81
|
-
return EMPTY_DATA;
|
|
82
|
-
}
|
|
83
|
-
var months = this.abbrMonthNames();
|
|
84
|
-
var firstDate = kendo_date_math_1.firstMonthOfYear(viewDate);
|
|
85
|
-
var lastDate = kendo_date_math_1.lastMonthOfYear(viewDate);
|
|
86
|
-
var currentYear = firstDate.getFullYear();
|
|
87
|
-
var cells = util_1.range(0, CELLS_LENGTH);
|
|
88
|
-
var today = util_1.getToday();
|
|
89
|
-
return util_1.range(0, ROWS_LENGTH).map(function (rowOffset) {
|
|
90
|
-
var baseDate = kendo_date_math_1.addMonths(firstDate, rowOffset * CELLS_LENGTH);
|
|
91
|
-
return cells.map(function (cellOffset) {
|
|
92
|
-
var cellDate = _this.normalize(kendo_date_math_1.addMonths(baseDate, cellOffset), min, max);
|
|
93
|
-
var changedYear = currentYear < cellDate.getFullYear();
|
|
94
|
-
if (!_this.isInRange(cellDate, min, max) || changedYear) {
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
var isRangeStart = _this.isEqual(cellDate, selectionRange.start);
|
|
98
|
-
var isRangeEnd = _this.isEqual(cellDate, selectionRange.end);
|
|
99
|
-
var isInMiddle = !isRangeStart && !isRangeEnd;
|
|
100
|
-
var isRangeMid = isInMiddle && util_1.isInSelectionRange(cellDate, selectionRange);
|
|
101
|
-
return {
|
|
102
|
-
formattedValue: months[cellDate.getMonth()],
|
|
103
|
-
id: "" + cellUID + cellDate.getTime(),
|
|
104
|
-
isFocused: _this.isEqual(cellDate, focusedDate),
|
|
105
|
-
isSelected: isActiveView && selectedDates.some(function (date) { return _this.isEqual(cellDate, date); }),
|
|
106
|
-
isWeekend: false,
|
|
107
|
-
isRangeStart: isRangeStart,
|
|
108
|
-
isRangeMid: isRangeMid,
|
|
109
|
-
isRangeEnd: isRangeEnd,
|
|
110
|
-
isRangeSplitEnd: isRangeMid && _this.isEqual(cellDate, lastDate),
|
|
111
|
-
isRangeSplitStart: isRangeMid && _this.isEqual(cellDate, firstDate),
|
|
112
|
-
isToday: _this.isEqual(cellDate, today),
|
|
113
|
-
title: _this.cellTitle(cellDate),
|
|
114
|
-
value: cellDate
|
|
115
|
-
};
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
YearViewService.prototype.isEqual = function (candidate, expected) {
|
|
120
|
-
if (!candidate || !expected) {
|
|
121
|
-
return false;
|
|
122
|
-
}
|
|
123
|
-
return candidate.getFullYear() === expected.getFullYear() &&
|
|
124
|
-
candidate.getMonth() === expected.getMonth();
|
|
125
|
-
};
|
|
126
|
-
YearViewService.prototype.isInArray = function (date, dates) {
|
|
127
|
-
if (!dates.length) {
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
var year = date.getFullYear();
|
|
131
|
-
return dates[0].getFullYear() <= year && year <= dates[dates.length - 1].getFullYear();
|
|
132
|
-
};
|
|
133
|
-
YearViewService.prototype.isInRange = function (candidate, min, max) {
|
|
134
|
-
var candidateValue = kendo_date_math_1.createDate(candidate.getFullYear(), candidate.getMonth(), 1);
|
|
135
|
-
var aboveMin = !min || kendo_date_math_1.createDate(min.getFullYear(), min.getMonth(), 1) <= candidateValue;
|
|
136
|
-
var belowMax = !max || candidateValue <= kendo_date_math_1.createDate(max.getFullYear(), max.getMonth(), 1);
|
|
137
|
-
return aboveMin && belowMax;
|
|
138
|
-
};
|
|
139
|
-
YearViewService.prototype.beginningOfPeriod = function (date) {
|
|
140
|
-
if (!date) {
|
|
141
|
-
return date;
|
|
142
|
-
}
|
|
143
|
-
return kendo_date_math_1.createDate(date.getFullYear(), 0, 1);
|
|
144
|
-
};
|
|
145
|
-
YearViewService.prototype.lastDayOfPeriod = function (date) {
|
|
146
|
-
var month = kendo_date_math_1.lastMonthOfYear(date);
|
|
147
|
-
return kendo_date_math_1.lastDayOfMonth(month);
|
|
148
|
-
};
|
|
149
|
-
YearViewService.prototype.isRangeStart = function (value) {
|
|
150
|
-
return value.getFullYear() % 10 === 0;
|
|
151
|
-
};
|
|
152
|
-
YearViewService.prototype.move = function (value, action) {
|
|
153
|
-
var modifier = ACTIONS[action];
|
|
154
|
-
if (!modifier) {
|
|
155
|
-
return value;
|
|
156
|
-
}
|
|
157
|
-
return modifier(value);
|
|
158
|
-
};
|
|
159
|
-
YearViewService.prototype.cellTitle = function (value) {
|
|
160
|
-
return value.getFullYear() + " " + this.value(value);
|
|
161
|
-
};
|
|
162
|
-
YearViewService.prototype.navigationTitle = function (value) {
|
|
163
|
-
return this.title(value);
|
|
164
|
-
};
|
|
165
|
-
YearViewService.prototype.title = function (current) {
|
|
166
|
-
return current ? current.getFullYear().toString() : '';
|
|
167
|
-
};
|
|
168
|
-
YearViewService.prototype.rowLength = function () {
|
|
169
|
-
return CELLS_LENGTH;
|
|
170
|
-
};
|
|
171
|
-
YearViewService.prototype.skip = function (value, min) {
|
|
172
|
-
return kendo_date_math_1.durationInYears(min, value);
|
|
173
|
-
};
|
|
174
|
-
YearViewService.prototype.total = function (min, max) {
|
|
175
|
-
return kendo_date_math_1.durationInYears(min, max) + 1;
|
|
176
|
-
};
|
|
177
|
-
YearViewService.prototype.value = function (current) {
|
|
178
|
-
return current ? this.abbrMonthNames()[current.getMonth()] : '';
|
|
179
|
-
};
|
|
180
|
-
YearViewService.prototype.viewDate = function (date, max, viewsCount) {
|
|
181
|
-
if (viewsCount === void 0) { viewsCount = 1; }
|
|
182
|
-
var viewsInRange = this.total(date, max);
|
|
183
|
-
if (viewsInRange < viewsCount) {
|
|
184
|
-
var yearsToSubtract = viewsCount - viewsInRange;
|
|
185
|
-
return kendo_date_math_1.addYears(date, -1 * yearsToSubtract);
|
|
186
|
-
}
|
|
187
|
-
return date;
|
|
188
|
-
};
|
|
189
|
-
YearViewService.prototype.abbrMonthNames = function () {
|
|
190
|
-
return this._intlService.dateFormatNames({ nameType: 'abbreviated', type: 'months' });
|
|
191
|
-
};
|
|
192
|
-
YearViewService.prototype.normalize = function (cellDate, min, max) {
|
|
193
|
-
if (cellDate < min && this.isEqual(cellDate, min)) {
|
|
194
|
-
return kendo_date_math_1.cloneDate(min);
|
|
195
|
-
}
|
|
196
|
-
if (cellDate > max && this.isEqual(cellDate, max)) {
|
|
197
|
-
return kendo_date_math_1.cloneDate(max);
|
|
198
|
-
}
|
|
199
|
-
return cellDate;
|
|
200
|
-
};
|
|
201
|
-
YearViewService = tslib_1.__decorate([
|
|
202
|
-
core_1.Injectable(),
|
|
203
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_intl_1.IntlService])
|
|
204
|
-
], YearViewService);
|
|
205
|
-
return YearViewService;
|
|
206
|
-
}());
|
|
207
|
-
exports.YearViewService = YearViewService;
|
|
@@ -1,48 +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
|
-
/**
|
|
10
|
-
* Used for rendering the cell content of the Calendar. To define the cell template, nest an `<ng-template>` tag
|
|
11
|
-
* with the `kendoCalendarCellTemplate` directive inside the component tag. The template context is set to the
|
|
12
|
-
* current component. To get a reference to the current date, use the `let-date` directive. To provide more details
|
|
13
|
-
* about the current cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
|
|
14
|
-
*
|
|
15
|
-
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
16
|
-
*
|
|
17
|
-
* > `kendoCalendarCellTemplate` is equivalent to
|
|
18
|
-
* > [`kendoCalendarMonthCellTemplate`]({% slug api_dateinputs_monthcelltemplatedirective %}).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* _@Component({
|
|
23
|
-
* selector: 'my-app',
|
|
24
|
-
* styles: ['.custom { color: red; }'],
|
|
25
|
-
* template: `
|
|
26
|
-
* <kendo-calendar>
|
|
27
|
-
* <ng-template kendoCalendarCellTemplate let-date>
|
|
28
|
-
* <span class="custom">{{date.getDate()}}</span>
|
|
29
|
-
* </ng-template>
|
|
30
|
-
* </kendo-calendar>
|
|
31
|
-
* `
|
|
32
|
-
* })
|
|
33
|
-
* export class AppComponent { }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
var CellTemplateDirective = /** @class */ (function () {
|
|
37
|
-
function CellTemplateDirective(templateRef) {
|
|
38
|
-
this.templateRef = templateRef;
|
|
39
|
-
}
|
|
40
|
-
CellTemplateDirective = tslib_1.__decorate([
|
|
41
|
-
core_1.Directive({
|
|
42
|
-
selector: '[kendoCalendarCellTemplate]'
|
|
43
|
-
}),
|
|
44
|
-
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
|
|
45
|
-
], CellTemplateDirective);
|
|
46
|
-
return CellTemplateDirective;
|
|
47
|
-
}());
|
|
48
|
-
exports.CellTemplateDirective = CellTemplateDirective;
|
|
@@ -1,47 +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
|
-
/**
|
|
10
|
-
* Used for rendering the century cell content of the Calendar. To define the century cell template, nest an `<ng-template>`
|
|
11
|
-
* tag with the `kendoCalendarCenturyCellTemplate` directive inside the component tag. The template context is set to the
|
|
12
|
-
* current component. To get a reference to the current date, use the `let-date` directive. To provide more details about
|
|
13
|
-
* the current century cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
|
|
14
|
-
*
|
|
15
|
-
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* _@Component({
|
|
20
|
-
* selector: 'my-app',
|
|
21
|
-
* styles: ['.custom { color: red; }'],
|
|
22
|
-
* template: `
|
|
23
|
-
* <kendo-calendar [activeView]="activeView">
|
|
24
|
-
* <ng-template kendoCalendarCenturyCellTemplate let-context="cellContext">
|
|
25
|
-
* <span class="custom">{{context.formattedValue}}</span>
|
|
26
|
-
* </ng-template>
|
|
27
|
-
* </kendo-calendar>
|
|
28
|
-
* `
|
|
29
|
-
* })
|
|
30
|
-
* export class AppComponent {
|
|
31
|
-
* public activeView: CalendarView = 'century';
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
var CenturyCellTemplateDirective = /** @class */ (function () {
|
|
36
|
-
function CenturyCellTemplateDirective(templateRef) {
|
|
37
|
-
this.templateRef = templateRef;
|
|
38
|
-
}
|
|
39
|
-
CenturyCellTemplateDirective = tslib_1.__decorate([
|
|
40
|
-
core_1.Directive({
|
|
41
|
-
selector: '[kendoCalendarCenturyCellTemplate]'
|
|
42
|
-
}),
|
|
43
|
-
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
|
|
44
|
-
], CenturyCellTemplateDirective);
|
|
45
|
-
return CenturyCellTemplateDirective;
|
|
46
|
-
}());
|
|
47
|
-
exports.CenturyCellTemplateDirective = CenturyCellTemplateDirective;
|
|
@@ -1,47 +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
|
-
/**
|
|
10
|
-
* Used for rendering the decade cell content of the Calendar. To define the decade cell template, nest an `<ng-template>`
|
|
11
|
-
* tag with the `kendoCalendarDecadeCellTemplate` directive inside the component tag. The template context is set to the
|
|
12
|
-
* current component. To get a reference to the current date, use the `let-date` directive. To provide more details about
|
|
13
|
-
* the current decade cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
|
|
14
|
-
*
|
|
15
|
-
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* _@Component({
|
|
20
|
-
* selector: 'my-app',
|
|
21
|
-
* styles: ['.custom { color: red; }'],
|
|
22
|
-
* template: `
|
|
23
|
-
* <kendo-calendar [activeView]="activeView">
|
|
24
|
-
* <ng-template kendoCalendarDecadeCellTemplate let-context="cellContext">
|
|
25
|
-
* <span class="custom">{{context.formattedValue}}</span>
|
|
26
|
-
* </ng-template>
|
|
27
|
-
* </kendo-calendar>
|
|
28
|
-
* `
|
|
29
|
-
* })
|
|
30
|
-
* export class AppComponent {
|
|
31
|
-
* public activeView: CalendarView = 'decade';
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
var DecadeCellTemplateDirective = /** @class */ (function () {
|
|
36
|
-
function DecadeCellTemplateDirective(templateRef) {
|
|
37
|
-
this.templateRef = templateRef;
|
|
38
|
-
}
|
|
39
|
-
DecadeCellTemplateDirective = tslib_1.__decorate([
|
|
40
|
-
core_1.Directive({
|
|
41
|
-
selector: '[kendoCalendarDecadeCellTemplate]'
|
|
42
|
-
}),
|
|
43
|
-
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
|
|
44
|
-
], DecadeCellTemplateDirective);
|
|
45
|
-
return DecadeCellTemplateDirective;
|
|
46
|
-
}());
|
|
47
|
-
exports.DecadeCellTemplateDirective = DecadeCellTemplateDirective;
|
|
@@ -1,46 +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
|
-
/**
|
|
10
|
-
* Used for rendering the header title of the Calendar. To define the header title template, nest an `<ng-template>` tag
|
|
11
|
-
* with the `kendoCalendarHeaderTitleTemplate` directive inside the component tag. The template context is set to the
|
|
12
|
-
* current component. To get a reference to the current title, use the `let-title` directive. To provide more details about
|
|
13
|
-
* the current title, get a reference to the current `date` by using the `let-date` directive or get a reference to the
|
|
14
|
-
* current active view by using the `let-activeView` directive.
|
|
15
|
-
*
|
|
16
|
-
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* _@Component({
|
|
21
|
-
* selector: 'my-app',
|
|
22
|
-
* styles: ['.custom { color: red; }'],
|
|
23
|
-
* template: `
|
|
24
|
-
* <kendo-calendar>
|
|
25
|
-
* <ng-template kendoCalendarHeaderTitleTemplate let-title>
|
|
26
|
-
* <span class="custom">{{title}}</span>
|
|
27
|
-
* </ng-template>
|
|
28
|
-
* </kendo-calendar>
|
|
29
|
-
* `
|
|
30
|
-
* })
|
|
31
|
-
* export class AppComponent { }
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
var HeaderTitleTemplateDirective = /** @class */ (function () {
|
|
35
|
-
function HeaderTitleTemplateDirective(templateRef) {
|
|
36
|
-
this.templateRef = templateRef;
|
|
37
|
-
}
|
|
38
|
-
HeaderTitleTemplateDirective = tslib_1.__decorate([
|
|
39
|
-
core_1.Directive({
|
|
40
|
-
selector: '[kendoCalendarHeaderTitleTemplate]'
|
|
41
|
-
}),
|
|
42
|
-
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
|
|
43
|
-
], HeaderTitleTemplateDirective);
|
|
44
|
-
return HeaderTitleTemplateDirective;
|
|
45
|
-
}());
|
|
46
|
-
exports.HeaderTitleTemplateDirective = HeaderTitleTemplateDirective;
|
|
@@ -1,45 +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
|
-
/**
|
|
10
|
-
* Used for rendering the month cell content of the Calendar. To define the month cell template, nest an `<ng-template>` tag
|
|
11
|
-
* with the `kendoCalendarMonthCellTemplate` directive inside the component tag. The template context is set to the current
|
|
12
|
-
* component. To get a reference to the current date, use the `let-date` directive. To provide more details about the current
|
|
13
|
-
* month cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
|
|
14
|
-
*
|
|
15
|
-
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* _@Component({
|
|
20
|
-
* selector: 'my-app',
|
|
21
|
-
* styles: ['.custom { color: red; }'],
|
|
22
|
-
* template: `
|
|
23
|
-
* <kendo-calendar>
|
|
24
|
-
* <ng-template kendoCalendarMonthCellTemplate let-context="cellContext">
|
|
25
|
-
* <span class="custom">{{context.formattedValue}}</span>
|
|
26
|
-
* </ng-template>
|
|
27
|
-
* </kendo-calendar>
|
|
28
|
-
* `
|
|
29
|
-
* })
|
|
30
|
-
* export class AppComponent { }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
var MonthCellTemplateDirective = /** @class */ (function () {
|
|
34
|
-
function MonthCellTemplateDirective(templateRef) {
|
|
35
|
-
this.templateRef = templateRef;
|
|
36
|
-
}
|
|
37
|
-
MonthCellTemplateDirective = tslib_1.__decorate([
|
|
38
|
-
core_1.Directive({
|
|
39
|
-
selector: '[kendoCalendarMonthCellTemplate]'
|
|
40
|
-
}),
|
|
41
|
-
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
|
|
42
|
-
], MonthCellTemplateDirective);
|
|
43
|
-
return MonthCellTemplateDirective;
|
|
44
|
-
}());
|
|
45
|
-
exports.MonthCellTemplateDirective = MonthCellTemplateDirective;
|