@progress/kendo-angular-dateinputs 6.0.4-dev.202203211102 → 7.0.0-dev.202204150726
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 +46 -119
- 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
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
var DateTimePickerComponent_1;
|
|
7
|
-
import { Component, HostBinding, ViewChild, ElementRef, Input, isDevMode, TemplateRef, ChangeDetectorRef, Output, EventEmitter, NgZone, ViewContainerRef, forwardRef, ContentChild, Inject, ChangeDetectionStrategy, Renderer2 } from '@angular/core';
|
|
5
|
+
import { Component, HostBinding, ViewChild, Input, isDevMode, TemplateRef, Output, EventEmitter, ViewContainerRef, forwardRef, ContentChild, Inject, ChangeDetectionStrategy } from '@angular/core';
|
|
8
6
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
9
7
|
import { Subscription, fromEvent } from 'rxjs';
|
|
10
8
|
import { tap } from 'rxjs/operators';
|
|
11
9
|
import { cloneDate, isEqual, getDate } from '@progress/kendo-date-math';
|
|
12
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
13
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
14
10
|
import { hasObservers, KendoInput, Keys, guid } from '@progress/kendo-angular-common';
|
|
15
11
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
16
12
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -18,7 +14,7 @@ import { packageMetadata } from '../package-metadata';
|
|
|
18
14
|
import { PickerService } from '../common/picker.service';
|
|
19
15
|
import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
|
|
20
16
|
import { isPresent } from '../common/utils';
|
|
21
|
-
import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass } from '../util';
|
|
17
|
+
import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
|
|
22
18
|
import { PreventableEvent } from '../preventable-event';
|
|
23
19
|
import { minValidator } from '../validators/min.validator';
|
|
24
20
|
import { maxValidator } from '../validators/max.validator';
|
|
@@ -34,6 +30,20 @@ import { CenturyCellTemplateDirective } from '../calendar/templates/century-cell
|
|
|
34
30
|
import { WeekNumberCellTemplateDirective } from '../calendar/templates/weeknumber-cell-template.directive';
|
|
35
31
|
import { HeaderTitleTemplateDirective } from '../calendar/templates/header-title-template.directive';
|
|
36
32
|
import { incompleteDateValidator } from '../validators/incomplete-date.validator';
|
|
33
|
+
import * as i0 from "@angular/core";
|
|
34
|
+
import * as i1 from "@progress/kendo-angular-popup";
|
|
35
|
+
import * as i2 from "@progress/kendo-angular-intl";
|
|
36
|
+
import * as i3 from "../common/picker.service";
|
|
37
|
+
import * as i4 from "@progress/kendo-angular-l10n";
|
|
38
|
+
import * as i5 from "../calendar/services/disabled-dates.service";
|
|
39
|
+
import * as i6 from "../dateinput/dateinput.component";
|
|
40
|
+
import * as i7 from "../calendar/calendar.component";
|
|
41
|
+
import * as i8 from "../calendar/localization/calendar-custom-messages.component";
|
|
42
|
+
import * as i9 from "../timepicker/timeselector.component";
|
|
43
|
+
import * as i10 from "../timepicker/localization/timeselector-custom-messages.component";
|
|
44
|
+
import * as i11 from "./localization/localized-messages.directive";
|
|
45
|
+
import * as i12 from "@progress/kendo-angular-common";
|
|
46
|
+
import * as i13 from "@angular/common";
|
|
37
47
|
const timeFormatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.dayperiod}|literal`);
|
|
38
48
|
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/';
|
|
39
49
|
const MIN_MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/';
|
|
@@ -44,7 +54,7 @@ const TWO_DIGIT_YEAR_MAX = 68;
|
|
|
44
54
|
/**
|
|
45
55
|
* Represents the [Kendo UI DateTimePicker component for Angular]({% slug overview_datetimepicker %}).
|
|
46
56
|
*/
|
|
47
|
-
|
|
57
|
+
export class DateTimePickerComponent {
|
|
48
58
|
constructor(popupService, intl, cdr, pickerService, ngZone, wrapper, touchEnabled, localization, disabledDatesService, renderer) {
|
|
49
59
|
this.popupService = popupService;
|
|
50
60
|
this.intl = intl;
|
|
@@ -218,9 +228,9 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|
|
218
228
|
this.disabledDatesValidateFn = noop;
|
|
219
229
|
this.incompleteValidator = noop;
|
|
220
230
|
this.subscriptions = new Subscription();
|
|
221
|
-
this._size =
|
|
222
|
-
this._rounded =
|
|
223
|
-
this._fillMode =
|
|
231
|
+
this._size = DEFAULT_SIZE;
|
|
232
|
+
this._rounded = DEFAULT_ROUNDED;
|
|
233
|
+
this._fillMode = DEFAULT_FILL_MODE;
|
|
224
234
|
validatePackage(packageMetadata);
|
|
225
235
|
}
|
|
226
236
|
/**
|
|
@@ -386,20 +396,21 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|
|
386
396
|
* Sets the size of the component.
|
|
387
397
|
*
|
|
388
398
|
* The possible values are:
|
|
389
|
-
* * `
|
|
390
|
-
* * `
|
|
391
|
-
* * `
|
|
392
|
-
* * `
|
|
399
|
+
* * `small`
|
|
400
|
+
* * `medium` (Default)
|
|
401
|
+
* * `large`
|
|
402
|
+
* * `none`
|
|
393
403
|
*
|
|
394
404
|
*/
|
|
395
405
|
set size(size) {
|
|
396
406
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
397
407
|
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
this.renderer.addClass(this.
|
|
408
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
409
|
+
if (newSize !== 'none') {
|
|
410
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
|
|
411
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
|
|
401
412
|
}
|
|
402
|
-
this._size =
|
|
413
|
+
this._size = newSize;
|
|
403
414
|
}
|
|
404
415
|
get size() {
|
|
405
416
|
return this._size;
|
|
@@ -408,19 +419,20 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|
|
408
419
|
* Sets the border radius of the component.
|
|
409
420
|
*
|
|
410
421
|
* The possible values are:
|
|
411
|
-
* * `
|
|
412
|
-
* * `
|
|
413
|
-
* * `
|
|
414
|
-
* * `
|
|
415
|
-
* * `
|
|
422
|
+
* * `small`
|
|
423
|
+
* * `medium` (Default)
|
|
424
|
+
* * `large`
|
|
425
|
+
* * `full`
|
|
426
|
+
* * `none`
|
|
416
427
|
*
|
|
417
428
|
*/
|
|
418
429
|
set rounded(rounded) {
|
|
419
430
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
420
|
-
|
|
421
|
-
|
|
431
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
432
|
+
if (newRounded !== 'none') {
|
|
433
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
422
434
|
}
|
|
423
|
-
this._rounded =
|
|
435
|
+
this._rounded = newRounded;
|
|
424
436
|
}
|
|
425
437
|
get rounded() {
|
|
426
438
|
return this._rounded;
|
|
@@ -429,22 +441,23 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|
|
429
441
|
* Sets the fillMode of the component.
|
|
430
442
|
*
|
|
431
443
|
* The possible values are:
|
|
432
|
-
* * `
|
|
433
|
-
* * `
|
|
434
|
-
* * `
|
|
435
|
-
* * `
|
|
444
|
+
* * `solid` (Default)
|
|
445
|
+
* * `flat`
|
|
446
|
+
* * `outline`
|
|
447
|
+
* * `none`
|
|
436
448
|
*
|
|
437
449
|
*/
|
|
438
450
|
set fillMode(fillMode) {
|
|
439
451
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
440
452
|
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
441
453
|
this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
this.renderer.addClass(this.
|
|
445
|
-
this.renderer.addClass(this.toggleButton.nativeElement,
|
|
454
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
455
|
+
if (newFillMode !== 'none') {
|
|
456
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
457
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
|
|
458
|
+
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
|
|
446
459
|
}
|
|
447
|
-
this._fillMode =
|
|
460
|
+
this._fillMode = newFillMode;
|
|
448
461
|
}
|
|
449
462
|
get fillMode() {
|
|
450
463
|
return this._fillMode;
|
|
@@ -869,7 +882,12 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|
|
869
882
|
return;
|
|
870
883
|
}
|
|
871
884
|
const event = new PreventableEvent();
|
|
872
|
-
|
|
885
|
+
if (open) {
|
|
886
|
+
this.open.emit(event);
|
|
887
|
+
}
|
|
888
|
+
else {
|
|
889
|
+
this.close.emit(event);
|
|
890
|
+
}
|
|
873
891
|
if (event.isDefaultPrevented()) {
|
|
874
892
|
return;
|
|
875
893
|
}
|
|
@@ -983,215 +1001,276 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|
|
983
1001
|
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
984
1002
|
}
|
|
985
1003
|
}
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
],
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
]
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
]
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
]
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
]
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
]
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
]
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
]
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
]
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
]
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
]
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
]
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
]
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
]
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
]
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
]
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
]
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
]
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1004
|
+
}
|
|
1005
|
+
DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1.PopupService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i3.PickerService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: TOUCH_ENABLED }, { token: i4.LocalizationService }, { token: i5.DisabledDatesService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1006
|
+
DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateTimePickerComponent, selector: "kendo-datetimepicker", inputs: { value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", tabindex: "tabindex", disabledDates: "disabledDates", popupSettings: "popupSettings", focusableId: "focusableId", title: "title", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", cancelButton: "cancelButton", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", focusedDate: "focusedDate", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", weekNumber: "weekNumber", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", incompleteDateValidation: "incompleteDateValidation", defaultTab: "defaultTab", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
1007
|
+
PickerService,
|
|
1008
|
+
LocalizationService,
|
|
1009
|
+
DisabledDatesService,
|
|
1010
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.datetimepicker' },
|
|
1011
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
1012
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
1013
|
+
{ provide: KendoInput, useExisting: forwardRef(() => DateTimePickerComponent) }
|
|
1014
|
+
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "toggleButton", first: true, predicate: ["toggleButton"], descendants: true, static: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, read: TemplateRef, static: true }], exportAs: ["kendo-datetimepicker"], usesOnChanges: true, ngImport: i0, template: `
|
|
1015
|
+
<ng-container
|
|
1016
|
+
kendoDateTimePickerLocalizedMessages
|
|
1017
|
+
|
|
1018
|
+
i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"
|
|
1019
|
+
dateTab="Date"
|
|
1020
|
+
|
|
1021
|
+
i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"
|
|
1022
|
+
dateTabLabel="Date tab"
|
|
1023
|
+
|
|
1024
|
+
i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"
|
|
1025
|
+
timeTab="Time"
|
|
1026
|
+
|
|
1027
|
+
i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"
|
|
1028
|
+
timeTabLabel="Time tab"
|
|
1029
|
+
|
|
1030
|
+
i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"
|
|
1031
|
+
toggle="Toggle popup"
|
|
1032
|
+
|
|
1033
|
+
i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"
|
|
1034
|
+
accept="Set"
|
|
1035
|
+
|
|
1036
|
+
i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"
|
|
1037
|
+
acceptLabel="Set"
|
|
1038
|
+
|
|
1039
|
+
i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"
|
|
1040
|
+
cancel="Cancel"
|
|
1041
|
+
|
|
1042
|
+
i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"
|
|
1043
|
+
cancelLabel="Cancel"
|
|
1044
|
+
|
|
1045
|
+
i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"
|
|
1046
|
+
now="NOW"
|
|
1047
|
+
|
|
1048
|
+
i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"
|
|
1049
|
+
nowLabel="Select now"
|
|
1050
|
+
|
|
1051
|
+
i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"
|
|
1052
|
+
today="Today"
|
|
1053
|
+
|
|
1054
|
+
i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"
|
|
1055
|
+
prevButtonTitle="Navigate to previous view"
|
|
1056
|
+
|
|
1057
|
+
i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"
|
|
1058
|
+
nextButtonTitle="Navigate to next view"
|
|
1059
|
+
>
|
|
1060
|
+
</ng-container>
|
|
1061
|
+
|
|
1062
|
+
<kendo-dateinput
|
|
1063
|
+
[value]="value"
|
|
1064
|
+
[format]="format"
|
|
1065
|
+
[twoDigitYearMax]="twoDigitYearMax"
|
|
1066
|
+
[min]="min"
|
|
1067
|
+
[max]="max"
|
|
1068
|
+
[incompleteDateValidation]="incompleteDateValidation"
|
|
1069
|
+
[formatPlaceholder]="formatPlaceholder"
|
|
1070
|
+
[placeholder]="placeholder"
|
|
1071
|
+
[disabled]="disabled"
|
|
1072
|
+
[readonly]="readonly || readOnlyInput"
|
|
1073
|
+
[role]="inputRole"
|
|
1074
|
+
[ariaReadOnly]="readonly"
|
|
1075
|
+
[steps]="steps"
|
|
1076
|
+
[tabindex]="tabindex"
|
|
1077
|
+
[title]="title"
|
|
1078
|
+
[focusableId]="focusableId"
|
|
1079
|
+
[hasPopup]="true"
|
|
1080
|
+
[isPopupOpen]="isOpen"
|
|
1081
|
+
(valueChange)="handleInputValueChange($event)"
|
|
1082
|
+
[kendoEventsOutsideAngular]="{
|
|
1083
|
+
keydown: handleKeyDown
|
|
1084
|
+
}"
|
|
1085
|
+
[scope]="this"
|
|
1086
|
+
[fillMode]="fillMode"
|
|
1087
|
+
[rounded]="rounded"
|
|
1088
|
+
[size]="size"
|
|
1089
|
+
>
|
|
1090
|
+
</kendo-dateinput>
|
|
1091
|
+
<button
|
|
1092
|
+
#toggleButton
|
|
1093
|
+
type="button"
|
|
1094
|
+
class="k-input-button k-button k-icon-button"
|
|
1095
|
+
[tabindex]="-1"
|
|
1096
|
+
[attr.title]="localization.get('toggle')"
|
|
1097
|
+
[attr.aria-label]="localization.get('toggle')"
|
|
1098
|
+
[kendoEventsOutsideAngular]="{
|
|
1099
|
+
mousedown: preventMouseDown,
|
|
1100
|
+
click: handleIconClick
|
|
1101
|
+
}"
|
|
1102
|
+
[scope]="this"
|
|
1103
|
+
>
|
|
1104
|
+
<span class="k-button-icon k-icon"
|
|
1105
|
+
[ngClass]="{
|
|
1106
|
+
'k-i-calendar': activeTab === 'date',
|
|
1107
|
+
'k-i-clock': activeTab === 'time'
|
|
1108
|
+
}"
|
|
1109
|
+
></span>
|
|
1110
|
+
</button>
|
|
1111
|
+
|
|
1112
|
+
<ng-container #container></ng-container>
|
|
1113
|
+
|
|
1114
|
+
<ng-template #popupTemplate>
|
|
1115
|
+
<div
|
|
1116
|
+
class="k-datetime-wrap k-{{activeTab}}-tab"
|
|
1117
|
+
[kendoEventsOutsideAngular]="{
|
|
1118
|
+
mousedown: preventMouseDown,
|
|
1119
|
+
keydown: handleKeyDown
|
|
1120
|
+
}"
|
|
1121
|
+
[scope]="this"
|
|
1122
|
+
>
|
|
1123
|
+
<div class="k-datetime-buttongroup"
|
|
1124
|
+
[kendoEventsOutsideAngular]="{
|
|
1125
|
+
focusin: handleFocus,
|
|
1126
|
+
focusout: handleBlur
|
|
1127
|
+
}"
|
|
1128
|
+
[scope]="this"
|
|
1129
|
+
>
|
|
1130
|
+
<div class="k-button-group k-button-group-stretched">
|
|
1131
|
+
<button
|
|
1132
|
+
type="button"
|
|
1133
|
+
class="k-button k-group-start k-date-tab"
|
|
1134
|
+
[ngClass]="popupButtonsClasses()"
|
|
1135
|
+
[class.k-active]="activeTab === 'date'"
|
|
1136
|
+
[attr.title]="localization.get('dateTabLabel')"
|
|
1137
|
+
[attr.aria-label]="localization.get('dateTabLabel')"
|
|
1138
|
+
[kendoEventsOutsideAngular]="{
|
|
1139
|
+
click: changeActiveTab.bind(this, 'date'),
|
|
1140
|
+
keydown: handleBackTabOut
|
|
1141
|
+
}"
|
|
1142
|
+
[scope]="this"
|
|
1143
|
+
>
|
|
1144
|
+
{{localization.get('dateTab')}}
|
|
1145
|
+
</button>
|
|
1146
|
+
<button
|
|
1147
|
+
type="button"
|
|
1148
|
+
class="k-button k-group-end k-time-tab"
|
|
1149
|
+
[ngClass]="popupButtonsClasses()"
|
|
1150
|
+
[class.k-active]="activeTab === 'time'"
|
|
1151
|
+
[attr.title]="localization.get('timeTabLabel')"
|
|
1152
|
+
[attr.aria-label]="localization.get('timeTabLabel')"
|
|
1153
|
+
[kendoEventsOutsideAngular]="{
|
|
1154
|
+
click: changeActiveTab.bind(this, 'time')
|
|
1155
|
+
}"
|
|
1156
|
+
>
|
|
1157
|
+
{{localization.get('timeTab')}}
|
|
1158
|
+
</button>
|
|
1159
|
+
</div>
|
|
1160
|
+
</div>
|
|
1161
|
+
<div
|
|
1162
|
+
#dateTimeSelector
|
|
1163
|
+
class="k-datetime-selector"
|
|
1164
|
+
[style.transition]="tabSwitchTransition"
|
|
1165
|
+
[kendoEventsOutsideAngular]="{
|
|
1166
|
+
transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)
|
|
1167
|
+
}"
|
|
1168
|
+
>
|
|
1169
|
+
<div class="k-datetime-calendar-wrap">
|
|
1170
|
+
<kendo-calendar
|
|
1171
|
+
[focusedDate]="focusedDate"
|
|
1172
|
+
[(value)]="calendarValue"
|
|
1173
|
+
[type]="calendarType"
|
|
1174
|
+
[min]="calendarMin"
|
|
1175
|
+
[max]="calendarMax"
|
|
1176
|
+
[weekNumber]="weekNumber"
|
|
1177
|
+
[navigation]="false"
|
|
1178
|
+
[animateNavigation]="animateCalendarNavigation"
|
|
1179
|
+
[cellTemplate]="cellTemplate"
|
|
1180
|
+
[monthCellTemplate]="monthCellTemplate"
|
|
1181
|
+
[yearCellTemplate]="yearCellTemplate"
|
|
1182
|
+
[decadeCellTemplate]="decadeCellTemplate"
|
|
1183
|
+
[centuryCellTemplate]="centuryCellTemplate"
|
|
1184
|
+
[weekNumberTemplate]="weekNumberTemplate"
|
|
1185
|
+
[headerTitleTemplate]="headerTitleTemplate"
|
|
1186
|
+
[disabled]="disableCalendar"
|
|
1187
|
+
[disabledDates]="disabledDates"
|
|
1188
|
+
(valueChange)="handleCalendarValueChange()"
|
|
1189
|
+
>
|
|
1190
|
+
<kendo-calendar-messages
|
|
1191
|
+
[today]="localization.get('today')"
|
|
1192
|
+
[prevButtonTitle]="localization.get('prevButtonTitle')"
|
|
1193
|
+
[nextButtonTitle]="localization.get('nextButtonTitle')"
|
|
1194
|
+
>
|
|
1195
|
+
</kendo-calendar-messages>
|
|
1196
|
+
</kendo-calendar>
|
|
1197
|
+
</div>
|
|
1198
|
+
<div class="k-datetime-time-wrap">
|
|
1199
|
+
<kendo-timeselector
|
|
1200
|
+
[value]="value"
|
|
1201
|
+
[format]="timeSelectorFormat"
|
|
1202
|
+
[min]="timeSelectorMin"
|
|
1203
|
+
[max]="timeSelectorMax"
|
|
1204
|
+
[setButton]="false"
|
|
1205
|
+
[cancelButton]="false"
|
|
1206
|
+
[steps]="steps"
|
|
1207
|
+
[disabled]="disableTimeSelector"
|
|
1208
|
+
>
|
|
1209
|
+
<kendo-timeselector-messages
|
|
1210
|
+
[now]="localization.get('now')"
|
|
1211
|
+
[nowLabel]="localization.get('nowLabel')"
|
|
1212
|
+
>
|
|
1213
|
+
</kendo-timeselector-messages>
|
|
1214
|
+
</kendo-timeselector>
|
|
1215
|
+
</div>
|
|
1216
|
+
</div>
|
|
1217
|
+
<div
|
|
1218
|
+
class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"
|
|
1219
|
+
[kendoEventsOutsideAngular]="{
|
|
1220
|
+
keydown: handleTabOut,
|
|
1221
|
+
focusin: handleFocus,
|
|
1222
|
+
focusout: handleBlur
|
|
1223
|
+
}"
|
|
1224
|
+
[scope]="this"
|
|
1225
|
+
>
|
|
1226
|
+
<button
|
|
1227
|
+
*ngIf="cancelButton"
|
|
1228
|
+
type="button"
|
|
1229
|
+
class="k-button k-time-cancel"
|
|
1230
|
+
[ngClass]="popupButtonsClasses()"
|
|
1231
|
+
[attr.title]="localization.get('cancelLabel')"
|
|
1232
|
+
[attr.aria-label]="localization.get('cancelLabel')"
|
|
1233
|
+
[kendoEventsOutsideAngular]="{
|
|
1234
|
+
click: handleCancel
|
|
1235
|
+
}"
|
|
1236
|
+
[scope]="this"
|
|
1237
|
+
>
|
|
1238
|
+
{{localization.get('cancel')}}
|
|
1239
|
+
</button>
|
|
1240
|
+
<button
|
|
1241
|
+
type="button"
|
|
1242
|
+
class="k-button k-time-accept"
|
|
1243
|
+
[ngClass]="popupButtonsClasses('primary')"
|
|
1244
|
+
[attr.title]="localization.get('acceptLabel')"
|
|
1245
|
+
[attr.aria-label]="localization.get('acceptLabel')"
|
|
1246
|
+
[disabled]="!calendarValue"
|
|
1247
|
+
[kendoEventsOutsideAngular]="{
|
|
1248
|
+
click: handleAccept
|
|
1249
|
+
}"
|
|
1250
|
+
[scope]="this"
|
|
1251
|
+
>
|
|
1252
|
+
{{localization.get('accept')}}
|
|
1253
|
+
</button>
|
|
1254
|
+
</div>
|
|
1255
|
+
</div>
|
|
1256
|
+
</ng-template>
|
|
1257
|
+
`, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.CalendarComponent, selector: "kendo-calendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "valueChange"], exportAs: ["kendo-calendar"] }, { type: i8.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { type: i9.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type: i10.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], directives: [{ type: i11.LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { type: i12.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i13.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i13.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
1259
|
+
type: Component,
|
|
1260
|
+
args: [{
|
|
1261
|
+
selector: 'kendo-datetimepicker',
|
|
1262
|
+
exportAs: 'kendo-datetimepicker',
|
|
1263
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1264
|
+
providers: [
|
|
1265
|
+
PickerService,
|
|
1266
|
+
LocalizationService,
|
|
1267
|
+
DisabledDatesService,
|
|
1268
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.datetimepicker' },
|
|
1269
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
1270
|
+
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateTimePickerComponent), multi: true },
|
|
1271
|
+
{ provide: KendoInput, useExisting: forwardRef(() => DateTimePickerComponent) }
|
|
1272
|
+
],
|
|
1273
|
+
template: `
|
|
1195
1274
|
<ng-container
|
|
1196
1275
|
kendoDateTimePickerLocalizedMessages
|
|
1197
1276
|
|
|
@@ -1435,15 +1514,115 @@ DateTimePickerComponent = DateTimePickerComponent_1 = tslib_1.__decorate([
|
|
|
1435
1514
|
</div>
|
|
1436
1515
|
</ng-template>
|
|
1437
1516
|
`
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
],
|
|
1449
|
-
|
|
1517
|
+
}]
|
|
1518
|
+
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.IntlService }, { type: i0.ChangeDetectorRef }, { type: i3.PickerService }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
1519
|
+
type: Inject,
|
|
1520
|
+
args: [TOUCH_ENABLED]
|
|
1521
|
+
}] }, { type: i4.LocalizationService }, { type: i5.DisabledDatesService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClasses: [{
|
|
1522
|
+
type: HostBinding,
|
|
1523
|
+
args: ['class.k-datetimepicker']
|
|
1524
|
+
}, {
|
|
1525
|
+
type: HostBinding,
|
|
1526
|
+
args: ['class.k-input']
|
|
1527
|
+
}], disabledClass: [{
|
|
1528
|
+
type: HostBinding,
|
|
1529
|
+
args: ['class.k-disabled']
|
|
1530
|
+
}], toggleButton: [{
|
|
1531
|
+
type: ViewChild,
|
|
1532
|
+
args: ['toggleButton', { static: true }]
|
|
1533
|
+
}], value: [{
|
|
1534
|
+
type: Input
|
|
1535
|
+
}], format: [{
|
|
1536
|
+
type: Input
|
|
1537
|
+
}], twoDigitYearMax: [{
|
|
1538
|
+
type: Input
|
|
1539
|
+
}], tabindex: [{
|
|
1540
|
+
type: Input
|
|
1541
|
+
}], disabledDates: [{
|
|
1542
|
+
type: Input
|
|
1543
|
+
}], popupSettings: [{
|
|
1544
|
+
type: Input
|
|
1545
|
+
}], focusableId: [{
|
|
1546
|
+
type: Input
|
|
1547
|
+
}], title: [{
|
|
1548
|
+
type: Input
|
|
1549
|
+
}], disabled: [{
|
|
1550
|
+
type: Input
|
|
1551
|
+
}], readonly: [{
|
|
1552
|
+
type: Input
|
|
1553
|
+
}], readOnlyInput: [{
|
|
1554
|
+
type: Input
|
|
1555
|
+
}], cancelButton: [{
|
|
1556
|
+
type: Input
|
|
1557
|
+
}], formatPlaceholder: [{
|
|
1558
|
+
type: Input
|
|
1559
|
+
}], placeholder: [{
|
|
1560
|
+
type: Input
|
|
1561
|
+
}], steps: [{
|
|
1562
|
+
type: Input
|
|
1563
|
+
}], focusedDate: [{
|
|
1564
|
+
type: Input
|
|
1565
|
+
}], calendarType: [{
|
|
1566
|
+
type: Input
|
|
1567
|
+
}], animateCalendarNavigation: [{
|
|
1568
|
+
type: Input
|
|
1569
|
+
}], weekNumber: [{
|
|
1570
|
+
type: Input
|
|
1571
|
+
}], min: [{
|
|
1572
|
+
type: Input
|
|
1573
|
+
}], max: [{
|
|
1574
|
+
type: Input
|
|
1575
|
+
}], rangeValidation: [{
|
|
1576
|
+
type: Input
|
|
1577
|
+
}], disabledDatesValidation: [{
|
|
1578
|
+
type: Input
|
|
1579
|
+
}], incompleteDateValidation: [{
|
|
1580
|
+
type: Input
|
|
1581
|
+
}], valueChange: [{
|
|
1582
|
+
type: Output
|
|
1583
|
+
}], open: [{
|
|
1584
|
+
type: Output
|
|
1585
|
+
}], close: [{
|
|
1586
|
+
type: Output
|
|
1587
|
+
}], onFocus: [{
|
|
1588
|
+
type: Output,
|
|
1589
|
+
args: ['focus']
|
|
1590
|
+
}], onBlur: [{
|
|
1591
|
+
type: Output,
|
|
1592
|
+
args: ['blur']
|
|
1593
|
+
}], defaultTab: [{
|
|
1594
|
+
type: Input
|
|
1595
|
+
}], size: [{
|
|
1596
|
+
type: Input
|
|
1597
|
+
}], rounded: [{
|
|
1598
|
+
type: Input
|
|
1599
|
+
}], fillMode: [{
|
|
1600
|
+
type: Input
|
|
1601
|
+
}], cellTemplate: [{
|
|
1602
|
+
type: ContentChild,
|
|
1603
|
+
args: [CellTemplateDirective, { static: false }]
|
|
1604
|
+
}], monthCellTemplate: [{
|
|
1605
|
+
type: ContentChild,
|
|
1606
|
+
args: [MonthCellTemplateDirective, { static: false }]
|
|
1607
|
+
}], yearCellTemplate: [{
|
|
1608
|
+
type: ContentChild,
|
|
1609
|
+
args: [YearCellTemplateDirective, { static: false }]
|
|
1610
|
+
}], decadeCellTemplate: [{
|
|
1611
|
+
type: ContentChild,
|
|
1612
|
+
args: [DecadeCellTemplateDirective, { static: false }]
|
|
1613
|
+
}], centuryCellTemplate: [{
|
|
1614
|
+
type: ContentChild,
|
|
1615
|
+
args: [CenturyCellTemplateDirective, { static: false }]
|
|
1616
|
+
}], weekNumberTemplate: [{
|
|
1617
|
+
type: ContentChild,
|
|
1618
|
+
args: [WeekNumberCellTemplateDirective, { static: false }]
|
|
1619
|
+
}], headerTitleTemplate: [{
|
|
1620
|
+
type: ContentChild,
|
|
1621
|
+
args: [HeaderTitleTemplateDirective, { static: false }]
|
|
1622
|
+
}], container: [{
|
|
1623
|
+
type: ViewChild,
|
|
1624
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
1625
|
+
}], popupTemplate: [{
|
|
1626
|
+
type: ViewChild,
|
|
1627
|
+
args: ['popupTemplate', { read: TemplateRef, static: true }]
|
|
1628
|
+
}] } });
|