@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
|
@@ -1,1044 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, ChangeDetectorRef, ChangeDetectionStrategy, ElementRef, EventEmitter, HostBinding, Input, Output, NgZone, TemplateRef, ViewChild, ViewContainerRef, Inject, Optional, Renderer2, forwardRef, isDevMode, Injector } from '@angular/core';
|
|
7
|
-
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
|
|
8
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
10
|
-
import { cloneDate, isEqual } from '@progress/kendo-date-math';
|
|
11
|
-
import { hasObservers, KendoInput, guid, Keys } from '@progress/kendo-angular-common';
|
|
12
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
|
-
import { packageMetadata } from '../package-metadata';
|
|
14
|
-
import { MIDNIGHT_DATE, MIN_TIME, MAX_TIME } from '../defaults';
|
|
15
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
16
|
-
import { PickerService } from '../common/picker.service';
|
|
17
|
-
import { requiresZoneOnBlur, currentFocusTarget } from '../common/utils';
|
|
18
|
-
import { TIME_PART } from './models/time-part.default';
|
|
19
|
-
import { PreventableEvent } from '../preventable-event';
|
|
20
|
-
import { noop, setTime, isWindowAvailable, getFillModeClass, getSizeClass, getRoundedClass } from '../util';
|
|
21
|
-
import { timeRangeValidator } from '../validators/time-range.validator';
|
|
22
|
-
import { TOUCH_ENABLED } from '../touch-enabled';
|
|
23
|
-
import { fromEvent } from 'rxjs';
|
|
24
|
-
import { incompleteDateValidator } from '../validators/incomplete-date.validator';
|
|
25
|
-
var VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json';
|
|
26
|
-
var INTL_DATE_FORMAT = 'https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md';
|
|
27
|
-
var formatRegExp = new RegExp(TIME_PART.hour + "|" + TIME_PART.minute + "|" + TIME_PART.second + "|" + TIME_PART.millisecond + "|" + TIME_PART.dayperiod + "|literal");
|
|
28
|
-
/**
|
|
29
|
-
* Represents the [Kendo UI TimePicker component for Angular]({% slug overview_timepicker %}#toc-basic-usage).
|
|
30
|
-
*/
|
|
31
|
-
var TimePickerComponent = /** @class */ (function () {
|
|
32
|
-
function TimePickerComponent(zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, intl, touchEnabled) {
|
|
33
|
-
this.zone = zone;
|
|
34
|
-
this.localization = localization;
|
|
35
|
-
this.cdr = cdr;
|
|
36
|
-
this.popupService = popupService;
|
|
37
|
-
this.wrapper = wrapper;
|
|
38
|
-
this.renderer = renderer;
|
|
39
|
-
this.injector = injector;
|
|
40
|
-
this.pickerService = pickerService;
|
|
41
|
-
this.intl = intl;
|
|
42
|
-
this.touchEnabled = touchEnabled;
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
this.focusableId = "k-" + guid();
|
|
47
|
-
/**
|
|
48
|
-
* Sets or gets the `disabled` property of the TimePicker and
|
|
49
|
-
* determines whether the component is active
|
|
50
|
-
* ([see example]({% slug disabled_timepicker %})).
|
|
51
|
-
*/
|
|
52
|
-
this.disabled = false;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the read-only state of the TimePicker
|
|
55
|
-
* ([see example]({% slug readonly_timepicker %}#toc-read-only-timepicker)).
|
|
56
|
-
*/
|
|
57
|
-
this.readonly = false;
|
|
58
|
-
/**
|
|
59
|
-
* Sets the read-only state of the TimePicker input field
|
|
60
|
-
* ([see example]({% slug readonly_timepicker %}#toc-read-only-input)).
|
|
61
|
-
*
|
|
62
|
-
* > Note that if you set the [`readonly`]({% slug api_dateinputs_timepickercomponent %}#toc-readonly) property value to `true`,
|
|
63
|
-
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
64
|
-
*/
|
|
65
|
-
this.readOnlyInput = false;
|
|
66
|
-
/**
|
|
67
|
-
* Specifies the time format that is used to display the input value
|
|
68
|
-
* ([see example]({% slug formats_timepicker %})).
|
|
69
|
-
*/
|
|
70
|
-
this.format = 't';
|
|
71
|
-
/**
|
|
72
|
-
* Specifies the hint the TimePicker displays when its value is `null`.
|
|
73
|
-
* For more information, refer to the article on
|
|
74
|
-
* [placeholders]({% slug placeholders_timepicker %}).
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```ts
|
|
78
|
-
* _@Component({
|
|
79
|
-
* selector: 'my-app',
|
|
80
|
-
* template: `
|
|
81
|
-
* <kendo-timepicker placeholder="Enter start..."></kendo-timepicker>
|
|
82
|
-
* `
|
|
83
|
-
* })
|
|
84
|
-
* export class AppComponent { }
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
this.placeholder = null;
|
|
88
|
-
/**
|
|
89
|
-
* Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
|
|
90
|
-
*/
|
|
91
|
-
this.incompleteDateValidation = false;
|
|
92
|
-
/**
|
|
93
|
-
* Determines whether to display the **Cancel** button in the popup.
|
|
94
|
-
*/
|
|
95
|
-
this.cancelButton = true;
|
|
96
|
-
/**
|
|
97
|
-
* Determines whether to display the **Now** button in the popup.
|
|
98
|
-
*
|
|
99
|
-
* > If the current time is out of range or the incremental step is greater than `1`, the **Now** button will be hidden.
|
|
100
|
-
*/
|
|
101
|
-
this.nowButton = true;
|
|
102
|
-
/**
|
|
103
|
-
* Sets or gets the `tabindex` property of the TimePicker.
|
|
104
|
-
*/
|
|
105
|
-
this.tabindex = 0;
|
|
106
|
-
/**
|
|
107
|
-
* Sets the title of the input element of the TimePicker.
|
|
108
|
-
*/
|
|
109
|
-
this.title = "";
|
|
110
|
-
/**
|
|
111
|
-
* Determines whether the built-in min or max validators are enforced when a form is being validated.
|
|
112
|
-
*/
|
|
113
|
-
this.rangeValidation = true;
|
|
114
|
-
/**
|
|
115
|
-
* Fires each time the user selects a new value.
|
|
116
|
-
* For more information, refer to the section on
|
|
117
|
-
* [events]({% slug overview_timepicker %}#toc-events).
|
|
118
|
-
*/
|
|
119
|
-
this.valueChange = new EventEmitter();
|
|
120
|
-
/**
|
|
121
|
-
* Fires each time the user focuses the input element.
|
|
122
|
-
* For more information, refer to the section on
|
|
123
|
-
* [events]({% slug overview_timepicker %}#toc-events).
|
|
124
|
-
*
|
|
125
|
-
* > To wire the event programmatically, use the `onFocus` property.
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* ```ts
|
|
129
|
-
* _@Component({
|
|
130
|
-
* selector: 'my-app',
|
|
131
|
-
* template: `
|
|
132
|
-
* <kendo-timepicker (focus)="handleFocus()"></kendo-timepicker>
|
|
133
|
-
* `
|
|
134
|
-
* })
|
|
135
|
-
* export class AppComponent {
|
|
136
|
-
* public handleFocus(): void {
|
|
137
|
-
* console.log("Component is focused");
|
|
138
|
-
* }
|
|
139
|
-
* }
|
|
140
|
-
* ```
|
|
141
|
-
*/
|
|
142
|
-
this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
|
|
143
|
-
/**
|
|
144
|
-
* Fires each time the input element gets blurred.
|
|
145
|
-
* For more information, refer to the section on
|
|
146
|
-
* [events]({% slug overview_timepicker %}#toc-events).
|
|
147
|
-
*
|
|
148
|
-
* > To wire the event programmatically, use the `onBlur` property.
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* ```ts
|
|
152
|
-
* _@Component({
|
|
153
|
-
* selector: 'my-app',
|
|
154
|
-
* template: `
|
|
155
|
-
* <kendo-timepicker (blur)="handleBlur()"></kendo-timepicker>
|
|
156
|
-
* `
|
|
157
|
-
* })
|
|
158
|
-
* export class AppComponent {
|
|
159
|
-
* public handleBlur(): void {
|
|
160
|
-
* console.log("Component is blurred");
|
|
161
|
-
* }
|
|
162
|
-
* }
|
|
163
|
-
* ```
|
|
164
|
-
*/
|
|
165
|
-
this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
|
|
166
|
-
/**
|
|
167
|
-
* Fires each time the popup is about to open.
|
|
168
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
169
|
-
* For more information, refer to the section on
|
|
170
|
-
* [events]({% slug overview_timepicker %}#toc-events).
|
|
171
|
-
*/
|
|
172
|
-
this.open = new EventEmitter();
|
|
173
|
-
/**
|
|
174
|
-
* Fires each time the popup is about to close.
|
|
175
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
176
|
-
* For more information, refer to the section on
|
|
177
|
-
* [events]({% slug overview_timepicker %}#toc-events).
|
|
178
|
-
*/
|
|
179
|
-
this.close = new EventEmitter();
|
|
180
|
-
/**
|
|
181
|
-
* @hidden
|
|
182
|
-
*/
|
|
183
|
-
this.wrapperClasses = true;
|
|
184
|
-
this.popupUID = guid();
|
|
185
|
-
this.onControlChange = noop;
|
|
186
|
-
this.onControlTouched = noop;
|
|
187
|
-
this.onValidatorChange = noop;
|
|
188
|
-
this.resolvedPromise = Promise.resolve(null);
|
|
189
|
-
this.timeRangeValidateFn = noop;
|
|
190
|
-
this.incompleteValidator = noop;
|
|
191
|
-
this._min = cloneDate(MIN_TIME);
|
|
192
|
-
this._max = cloneDate(MAX_TIME);
|
|
193
|
-
this._popupSettings = { animate: true };
|
|
194
|
-
this._show = false;
|
|
195
|
-
this._steps = {};
|
|
196
|
-
this._value = null;
|
|
197
|
-
this._active = false;
|
|
198
|
-
this.domEvents = [];
|
|
199
|
-
this._size = 'medium';
|
|
200
|
-
this._rounded = 'medium';
|
|
201
|
-
this._fillMode = 'solid';
|
|
202
|
-
validatePackage(packageMetadata);
|
|
203
|
-
this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
|
|
204
|
-
this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
|
|
205
|
-
this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)));
|
|
206
|
-
}
|
|
207
|
-
TimePickerComponent_1 = TimePickerComponent;
|
|
208
|
-
Object.defineProperty(TimePickerComponent.prototype, "min", {
|
|
209
|
-
get: function () {
|
|
210
|
-
return this._min;
|
|
211
|
-
},
|
|
212
|
-
/**
|
|
213
|
-
* Specifies the smallest valid time value
|
|
214
|
-
* ([see example]({% slug timeranges_timepicker %})).
|
|
215
|
-
*/
|
|
216
|
-
set: function (min) {
|
|
217
|
-
this._min = cloneDate(min || MIN_TIME);
|
|
218
|
-
},
|
|
219
|
-
enumerable: true,
|
|
220
|
-
configurable: true
|
|
221
|
-
});
|
|
222
|
-
Object.defineProperty(TimePickerComponent.prototype, "max", {
|
|
223
|
-
get: function () {
|
|
224
|
-
return this._max;
|
|
225
|
-
},
|
|
226
|
-
/**
|
|
227
|
-
* Specifies the biggest valid time value
|
|
228
|
-
* ([see example]({% slug timeranges_timepicker %})).
|
|
229
|
-
*/
|
|
230
|
-
set: function (max) {
|
|
231
|
-
this._max = cloneDate(max || MAX_TIME);
|
|
232
|
-
},
|
|
233
|
-
enumerable: true,
|
|
234
|
-
configurable: true
|
|
235
|
-
});
|
|
236
|
-
Object.defineProperty(TimePickerComponent.prototype, "steps", {
|
|
237
|
-
get: function () {
|
|
238
|
-
return this._steps;
|
|
239
|
-
},
|
|
240
|
-
/**
|
|
241
|
-
* Configures the incremental steps of the TimePicker.
|
|
242
|
-
* For more information, refer to the article on
|
|
243
|
-
* [incremental steps]({% slug incrementalsteps_timepicker %}).
|
|
244
|
-
*
|
|
245
|
-
* > If the incremental step is greater than `1`, the **Now** button will be hidden.
|
|
246
|
-
*
|
|
247
|
-
* @example
|
|
248
|
-
* ```ts
|
|
249
|
-
* _@Component({
|
|
250
|
-
* selector: 'my-app',
|
|
251
|
-
* template: `
|
|
252
|
-
* <kendo-timepicker format="HH:mm:ss" [steps]="steps"></kendo-timepicker>
|
|
253
|
-
* `
|
|
254
|
-
* })
|
|
255
|
-
* class AppComponent {
|
|
256
|
-
* public steps = { hour: 2, minute: 15, second: 15, millisecond: 10 };
|
|
257
|
-
* }
|
|
258
|
-
* ```
|
|
259
|
-
*
|
|
260
|
-
*/
|
|
261
|
-
set: function (steps) {
|
|
262
|
-
this._steps = steps || {};
|
|
263
|
-
},
|
|
264
|
-
enumerable: true,
|
|
265
|
-
configurable: true
|
|
266
|
-
});
|
|
267
|
-
Object.defineProperty(TimePickerComponent.prototype, "popupSettings", {
|
|
268
|
-
get: function () {
|
|
269
|
-
return this._popupSettings;
|
|
270
|
-
},
|
|
271
|
-
/**
|
|
272
|
-
* Configures the popup of the TimePicker.
|
|
273
|
-
*
|
|
274
|
-
* The available options are:
|
|
275
|
-
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
276
|
-
* - `appendTo: 'root' | 'component' | ViewContainerRef`—Controls the popup container. By default, the popup will be appended to the root component.
|
|
277
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
278
|
-
*/
|
|
279
|
-
set: function (settings) {
|
|
280
|
-
this._popupSettings = Object.assign({}, { animate: true }, settings);
|
|
281
|
-
},
|
|
282
|
-
enumerable: true,
|
|
283
|
-
configurable: true
|
|
284
|
-
});
|
|
285
|
-
Object.defineProperty(TimePickerComponent.prototype, "tabIndex", {
|
|
286
|
-
get: function () {
|
|
287
|
-
return this.tabindex;
|
|
288
|
-
},
|
|
289
|
-
/**
|
|
290
|
-
* @hidden
|
|
291
|
-
*/
|
|
292
|
-
set: function (tabIndex) {
|
|
293
|
-
this.tabindex = tabIndex;
|
|
294
|
-
},
|
|
295
|
-
enumerable: true,
|
|
296
|
-
configurable: true
|
|
297
|
-
});
|
|
298
|
-
Object.defineProperty(TimePickerComponent.prototype, "value", {
|
|
299
|
-
get: function () {
|
|
300
|
-
return this._value;
|
|
301
|
-
},
|
|
302
|
-
/**
|
|
303
|
-
* Specifies the value of the TimePicker component.
|
|
304
|
-
*/
|
|
305
|
-
set: function (value) {
|
|
306
|
-
this.verifyValue(value);
|
|
307
|
-
this._value = cloneDate(value);
|
|
308
|
-
},
|
|
309
|
-
enumerable: true,
|
|
310
|
-
configurable: true
|
|
311
|
-
});
|
|
312
|
-
Object.defineProperty(TimePickerComponent.prototype, "size", {
|
|
313
|
-
get: function () {
|
|
314
|
-
return this._size;
|
|
315
|
-
},
|
|
316
|
-
/**
|
|
317
|
-
* Sets the size of the component.
|
|
318
|
-
*
|
|
319
|
-
* The possible values are:
|
|
320
|
-
* * `'small'`
|
|
321
|
-
* * `'medium'` (Default)
|
|
322
|
-
* * `'large'`
|
|
323
|
-
* * `null`
|
|
324
|
-
*
|
|
325
|
-
*/
|
|
326
|
-
set: function (size) {
|
|
327
|
-
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
328
|
-
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
|
|
329
|
-
if (size) {
|
|
330
|
-
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
|
|
331
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
|
|
332
|
-
}
|
|
333
|
-
this._size = size;
|
|
334
|
-
},
|
|
335
|
-
enumerable: true,
|
|
336
|
-
configurable: true
|
|
337
|
-
});
|
|
338
|
-
Object.defineProperty(TimePickerComponent.prototype, "rounded", {
|
|
339
|
-
get: function () {
|
|
340
|
-
return this._rounded;
|
|
341
|
-
},
|
|
342
|
-
/**
|
|
343
|
-
* Sets the border radius of the component.
|
|
344
|
-
*
|
|
345
|
-
* The possible values are:
|
|
346
|
-
* * `'small'`
|
|
347
|
-
* * `'medium'` (Default)
|
|
348
|
-
* * `'large'`
|
|
349
|
-
* * `'full'`
|
|
350
|
-
* * `null`
|
|
351
|
-
*
|
|
352
|
-
*/
|
|
353
|
-
set: function (rounded) {
|
|
354
|
-
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
355
|
-
if (rounded) {
|
|
356
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
|
|
357
|
-
}
|
|
358
|
-
this._rounded = rounded;
|
|
359
|
-
},
|
|
360
|
-
enumerable: true,
|
|
361
|
-
configurable: true
|
|
362
|
-
});
|
|
363
|
-
Object.defineProperty(TimePickerComponent.prototype, "fillMode", {
|
|
364
|
-
get: function () {
|
|
365
|
-
return this._fillMode;
|
|
366
|
-
},
|
|
367
|
-
/**
|
|
368
|
-
* Sets the fillMode of the component.
|
|
369
|
-
*
|
|
370
|
-
* The possible values are:
|
|
371
|
-
* * `'solid'` (Default)
|
|
372
|
-
* * `'flat'`
|
|
373
|
-
* * `'outline'`
|
|
374
|
-
* * `null`
|
|
375
|
-
*
|
|
376
|
-
*/
|
|
377
|
-
set: function (fillMode) {
|
|
378
|
-
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
379
|
-
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
380
|
-
this.renderer.removeClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
|
|
381
|
-
if (fillMode) {
|
|
382
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
383
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
|
|
384
|
-
this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + fillMode + "-base");
|
|
385
|
-
}
|
|
386
|
-
this._fillMode = fillMode;
|
|
387
|
-
},
|
|
388
|
-
enumerable: true,
|
|
389
|
-
configurable: true
|
|
390
|
-
});
|
|
391
|
-
Object.defineProperty(TimePickerComponent.prototype, "disabledClass", {
|
|
392
|
-
/**
|
|
393
|
-
* @hidden
|
|
394
|
-
*/
|
|
395
|
-
get: function () {
|
|
396
|
-
return this.disabled;
|
|
397
|
-
},
|
|
398
|
-
enumerable: true,
|
|
399
|
-
configurable: true
|
|
400
|
-
});
|
|
401
|
-
Object.defineProperty(TimePickerComponent.prototype, "inputRole", {
|
|
402
|
-
/**
|
|
403
|
-
* @hidden
|
|
404
|
-
*/
|
|
405
|
-
get: function () {
|
|
406
|
-
return this.readOnlyInput ? 'listbox' : 'spinbutton';
|
|
407
|
-
},
|
|
408
|
-
enumerable: true,
|
|
409
|
-
configurable: true
|
|
410
|
-
});
|
|
411
|
-
Object.defineProperty(TimePickerComponent.prototype, "isActive", {
|
|
412
|
-
get: function () {
|
|
413
|
-
return this._active;
|
|
414
|
-
},
|
|
415
|
-
set: function (value) {
|
|
416
|
-
this._active = value;
|
|
417
|
-
if (!this.wrapper) {
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
var element = this.wrapper.nativeElement;
|
|
421
|
-
if (value) {
|
|
422
|
-
this.renderer.addClass(element, 'k-focus');
|
|
423
|
-
}
|
|
424
|
-
else {
|
|
425
|
-
this.renderer.removeClass(element, 'k-focus');
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
enumerable: true,
|
|
429
|
-
configurable: true
|
|
430
|
-
});
|
|
431
|
-
Object.defineProperty(TimePickerComponent.prototype, "show", {
|
|
432
|
-
get: function () {
|
|
433
|
-
return this._show;
|
|
434
|
-
},
|
|
435
|
-
set: function (show) {
|
|
436
|
-
var _this = this;
|
|
437
|
-
if (show && (this.disabled || this.readonly)) {
|
|
438
|
-
return;
|
|
439
|
-
}
|
|
440
|
-
var skipZone = !show && (!this._show || !hasObservers(this.close));
|
|
441
|
-
if (!skipZone) {
|
|
442
|
-
this.zone.run(function () {
|
|
443
|
-
_this.togglePopup(show);
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
this.togglePopup(show);
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
enumerable: true,
|
|
451
|
-
configurable: true
|
|
452
|
-
});
|
|
453
|
-
Object.defineProperty(TimePickerComponent.prototype, "input", {
|
|
454
|
-
get: function () {
|
|
455
|
-
return this.pickerService.input;
|
|
456
|
-
},
|
|
457
|
-
enumerable: true,
|
|
458
|
-
configurable: true
|
|
459
|
-
});
|
|
460
|
-
Object.defineProperty(TimePickerComponent.prototype, "timeSelector", {
|
|
461
|
-
get: function () {
|
|
462
|
-
return this.pickerService.timeSelector;
|
|
463
|
-
},
|
|
464
|
-
enumerable: true,
|
|
465
|
-
configurable: true
|
|
466
|
-
});
|
|
467
|
-
/**
|
|
468
|
-
* @hidden
|
|
469
|
-
* Used by the TextBoxContainer to determine if the component is empty
|
|
470
|
-
*/
|
|
471
|
-
TimePickerComponent.prototype.isEmpty = function () {
|
|
472
|
-
return !this.value && this.input.isEmpty();
|
|
473
|
-
};
|
|
474
|
-
/**
|
|
475
|
-
* @hidden
|
|
476
|
-
*/
|
|
477
|
-
TimePickerComponent.prototype.ngOnInit = function () {
|
|
478
|
-
var _this = this;
|
|
479
|
-
this.localizationChangeSubscription = this.localization
|
|
480
|
-
.changes.subscribe(function () { return _this.cdr.markForCheck(); });
|
|
481
|
-
this.control = this.injector.get(NgControl, null);
|
|
482
|
-
if (this.wrapper) {
|
|
483
|
-
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
484
|
-
this.zone.runOutsideAngular(function () {
|
|
485
|
-
_this.bindEvents();
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* @hidden
|
|
491
|
-
*/
|
|
492
|
-
TimePickerComponent.prototype.ngAfterViewInit = function () {
|
|
493
|
-
this.setComponentClasses();
|
|
494
|
-
};
|
|
495
|
-
/**
|
|
496
|
-
* @hidden
|
|
497
|
-
*/
|
|
498
|
-
TimePickerComponent.prototype.ngOnChanges = function (changes) {
|
|
499
|
-
if (changes.min || changes.max || changes.rangeValidation || changes.incompleteDateValidation) {
|
|
500
|
-
this.timeRangeValidateFn = this.rangeValidation ? timeRangeValidator(this.min, this.max) : noop;
|
|
501
|
-
this.incompleteValidator = this.incompleteDateValidation ? incompleteDateValidator() : noop;
|
|
502
|
-
this.onValidatorChange();
|
|
503
|
-
}
|
|
504
|
-
if (changes.format) {
|
|
505
|
-
this.verifyFormat();
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
/**
|
|
509
|
-
* @hidden
|
|
510
|
-
*/
|
|
511
|
-
TimePickerComponent.prototype.ngOnDestroy = function () {
|
|
512
|
-
this.isActive = false;
|
|
513
|
-
this.show = false;
|
|
514
|
-
if (this.localizationChangeSubscription) {
|
|
515
|
-
this.localizationChangeSubscription.unsubscribe();
|
|
516
|
-
}
|
|
517
|
-
if (this.windowBlurSubscription) {
|
|
518
|
-
this.windowBlurSubscription.unsubscribe();
|
|
519
|
-
}
|
|
520
|
-
this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
|
|
521
|
-
this.pickerSubscriptions.unsubscribe();
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* @hidden
|
|
525
|
-
*/
|
|
526
|
-
TimePickerComponent.prototype.handleKeydown = function (event) {
|
|
527
|
-
var altKey = event.altKey, keyCode = event.keyCode;
|
|
528
|
-
if (keyCode === Keys.Escape) {
|
|
529
|
-
this.show = false;
|
|
530
|
-
return;
|
|
531
|
-
}
|
|
532
|
-
if (altKey) {
|
|
533
|
-
if (keyCode === Keys.ArrowUp) {
|
|
534
|
-
this.show = false;
|
|
535
|
-
}
|
|
536
|
-
if (keyCode === Keys.ArrowDown && !this.show) {
|
|
537
|
-
this.show = true;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
/**
|
|
542
|
-
* @hidden
|
|
543
|
-
*/
|
|
544
|
-
TimePickerComponent.prototype.writeValue = function (value) {
|
|
545
|
-
this.verifyValue(value);
|
|
546
|
-
this.value = cloneDate(value);
|
|
547
|
-
this.cdr.markForCheck();
|
|
548
|
-
if (!value && this.input) {
|
|
549
|
-
this.input.placeholder = this.placeholder;
|
|
550
|
-
this.input.writeValue(value);
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
/**
|
|
554
|
-
* @hidden
|
|
555
|
-
*/
|
|
556
|
-
TimePickerComponent.prototype.registerOnChange = function (fn) {
|
|
557
|
-
this.onControlChange = fn;
|
|
558
|
-
};
|
|
559
|
-
/**
|
|
560
|
-
* @hidden
|
|
561
|
-
*/
|
|
562
|
-
TimePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
563
|
-
this.onControlTouched = fn;
|
|
564
|
-
};
|
|
565
|
-
/**
|
|
566
|
-
* @hidden
|
|
567
|
-
*/
|
|
568
|
-
TimePickerComponent.prototype.setDisabledState = function (isDisabled) {
|
|
569
|
-
this.disabled = isDisabled;
|
|
570
|
-
this.cdr.markForCheck();
|
|
571
|
-
};
|
|
572
|
-
/**
|
|
573
|
-
* @hidden
|
|
574
|
-
*/
|
|
575
|
-
TimePickerComponent.prototype.validate = function (control) {
|
|
576
|
-
return this.timeRangeValidateFn(control) || this.incompleteValidator(control, this.input && this.input.isDateIncomplete);
|
|
577
|
-
};
|
|
578
|
-
/**
|
|
579
|
-
* @hidden
|
|
580
|
-
*/
|
|
581
|
-
TimePickerComponent.prototype.registerOnValidatorChange = function (fn) {
|
|
582
|
-
this.onValidatorChange = fn;
|
|
583
|
-
};
|
|
584
|
-
/**
|
|
585
|
-
* Focuses the TimePicker component.
|
|
586
|
-
*
|
|
587
|
-
* @example
|
|
588
|
-
* ```ts
|
|
589
|
-
* _@Component({
|
|
590
|
-
* selector: 'my-app',
|
|
591
|
-
* template: `
|
|
592
|
-
* <button (click)="timepicker.focus()">Focus time picker</button>
|
|
593
|
-
* <kendo-timepicker #timepicker></kendo-timepicker>
|
|
594
|
-
* `
|
|
595
|
-
* })
|
|
596
|
-
* export class AppComponent { }
|
|
597
|
-
* ```
|
|
598
|
-
*/
|
|
599
|
-
TimePickerComponent.prototype.focus = function () {
|
|
600
|
-
this.input.focus();
|
|
601
|
-
};
|
|
602
|
-
/**
|
|
603
|
-
* Blurs the TimePicker component.
|
|
604
|
-
*/
|
|
605
|
-
TimePickerComponent.prototype.blur = function () {
|
|
606
|
-
(this.timeSelector || this.input)['blur'](); //tslint:disable-line:no-string-literal
|
|
607
|
-
};
|
|
608
|
-
/**
|
|
609
|
-
* Toggles the visibility of the popup. If you use the `toggle` method to show or hide the popup,
|
|
610
|
-
* the `open` and `close` events do not fire.
|
|
611
|
-
*
|
|
612
|
-
* @param show - The state of the popup.
|
|
613
|
-
*/
|
|
614
|
-
TimePickerComponent.prototype.toggle = function (show) {
|
|
615
|
-
var _this = this;
|
|
616
|
-
if (this.disabled || this.readonly) {
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
619
|
-
this.resolvedPromise.then(function () {
|
|
620
|
-
_this._toggle((show === undefined) ? !_this.show : show);
|
|
621
|
-
});
|
|
622
|
-
};
|
|
623
|
-
Object.defineProperty(TimePickerComponent.prototype, "isOpen", {
|
|
624
|
-
/**
|
|
625
|
-
* Returns the current open state of the popup.
|
|
626
|
-
*/
|
|
627
|
-
get: function () {
|
|
628
|
-
return this.show;
|
|
629
|
-
},
|
|
630
|
-
enumerable: true,
|
|
631
|
-
configurable: true
|
|
632
|
-
});
|
|
633
|
-
Object.defineProperty(TimePickerComponent.prototype, "appendTo", {
|
|
634
|
-
/**
|
|
635
|
-
* @hidden
|
|
636
|
-
*/
|
|
637
|
-
get: function () {
|
|
638
|
-
var appendTo = this.popupSettings.appendTo;
|
|
639
|
-
if (!appendTo || appendTo === 'root') {
|
|
640
|
-
return undefined;
|
|
641
|
-
}
|
|
642
|
-
return appendTo === 'component' ? this.container : appendTo;
|
|
643
|
-
},
|
|
644
|
-
enumerable: true,
|
|
645
|
-
configurable: true
|
|
646
|
-
});
|
|
647
|
-
/**
|
|
648
|
-
* @hidden
|
|
649
|
-
*/
|
|
650
|
-
TimePickerComponent.prototype.handleChange = function (value) {
|
|
651
|
-
var _this = this;
|
|
652
|
-
if (isEqual(this.value, value)) {
|
|
653
|
-
this.focusInput();
|
|
654
|
-
this.show = false;
|
|
655
|
-
return;
|
|
656
|
-
}
|
|
657
|
-
this.value = cloneDate(value);
|
|
658
|
-
this.zone.run(function () {
|
|
659
|
-
_this.focusInput();
|
|
660
|
-
_this.show = false;
|
|
661
|
-
_this.onControlChange(cloneDate(value));
|
|
662
|
-
_this.valueChange.emit(cloneDate(value));
|
|
663
|
-
});
|
|
664
|
-
};
|
|
665
|
-
/**
|
|
666
|
-
* @hidden
|
|
667
|
-
*/
|
|
668
|
-
TimePickerComponent.prototype.handleReject = function () {
|
|
669
|
-
this.show = false;
|
|
670
|
-
};
|
|
671
|
-
/**
|
|
672
|
-
* @hidden
|
|
673
|
-
*/
|
|
674
|
-
TimePickerComponent.prototype.handleInputChange = function (value) {
|
|
675
|
-
var val = this.input.formatSections.date ? value : this.mergeTime(value);
|
|
676
|
-
this.handleChange(val);
|
|
677
|
-
};
|
|
678
|
-
/**
|
|
679
|
-
* @hidden
|
|
680
|
-
*/
|
|
681
|
-
TimePickerComponent.prototype.handleMousedown = function (args) {
|
|
682
|
-
args.preventDefault();
|
|
683
|
-
};
|
|
684
|
-
/**
|
|
685
|
-
* @hidden
|
|
686
|
-
*/
|
|
687
|
-
TimePickerComponent.prototype.handleIconClick = function (event) {
|
|
688
|
-
if (this.disabled || this.readonly) {
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
event.preventDefault();
|
|
692
|
-
this.focusInput();
|
|
693
|
-
//XXX: explicit call handleFocus handler here
|
|
694
|
-
//due to async IE focus event
|
|
695
|
-
this.handleFocus();
|
|
696
|
-
this.show = !this.show;
|
|
697
|
-
};
|
|
698
|
-
Object.defineProperty(TimePickerComponent.prototype, "popupClasses", {
|
|
699
|
-
/**
|
|
700
|
-
* @hidden
|
|
701
|
-
*/
|
|
702
|
-
get: function () {
|
|
703
|
-
return [
|
|
704
|
-
'k-group',
|
|
705
|
-
'k-reset'
|
|
706
|
-
].concat(this.popupSettings.popupClass || []);
|
|
707
|
-
},
|
|
708
|
-
enumerable: true,
|
|
709
|
-
configurable: true
|
|
710
|
-
});
|
|
711
|
-
/**
|
|
712
|
-
* @hidden
|
|
713
|
-
*/
|
|
714
|
-
TimePickerComponent.prototype.normalizeTime = function (date) {
|
|
715
|
-
return setTime(MIDNIGHT_DATE, date);
|
|
716
|
-
};
|
|
717
|
-
/**
|
|
718
|
-
* @hidden
|
|
719
|
-
*/
|
|
720
|
-
TimePickerComponent.prototype.mergeTime = function (value) {
|
|
721
|
-
return this.value && value ? setTime(this.value, value) : value;
|
|
722
|
-
};
|
|
723
|
-
TimePickerComponent.prototype.togglePopup = function (show) {
|
|
724
|
-
var event = new PreventableEvent();
|
|
725
|
-
if (!this._show && show) {
|
|
726
|
-
this.open.emit(event);
|
|
727
|
-
}
|
|
728
|
-
else if (this._show && !show) {
|
|
729
|
-
this.close.emit(event);
|
|
730
|
-
}
|
|
731
|
-
if (event.isDefaultPrevented()) {
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
this._toggle(show);
|
|
735
|
-
this.toggleFocus();
|
|
736
|
-
};
|
|
737
|
-
TimePickerComponent.prototype._toggle = function (show) {
|
|
738
|
-
var _this = this;
|
|
739
|
-
if (show === this.isOpen) {
|
|
740
|
-
return;
|
|
741
|
-
}
|
|
742
|
-
this._show = show;
|
|
743
|
-
this.cdr.markForCheck();
|
|
744
|
-
if (show) {
|
|
745
|
-
var direction = this.localization.rtl ? 'right' : 'left';
|
|
746
|
-
this.popupRef = this.popupService.open({
|
|
747
|
-
anchor: this.wrapper,
|
|
748
|
-
anchorAlign: { vertical: 'bottom', horizontal: direction },
|
|
749
|
-
animate: this.popupSettings.animate,
|
|
750
|
-
appendTo: this.appendTo,
|
|
751
|
-
content: this.popupTemplate,
|
|
752
|
-
popupAlign: { vertical: 'top', horizontal: direction },
|
|
753
|
-
popupClass: this.popupClasses,
|
|
754
|
-
positionMode: 'absolute'
|
|
755
|
-
});
|
|
756
|
-
this.popupRef.popupElement.setAttribute('id', this.popupUID);
|
|
757
|
-
this.popupRef.popupAnchorViewportLeave.subscribe(function () { return _this.show = false; });
|
|
758
|
-
}
|
|
759
|
-
else {
|
|
760
|
-
this.popupRef.close();
|
|
761
|
-
this.popupRef = null;
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
TimePickerComponent.prototype.focusInput = function () {
|
|
765
|
-
if (this.touchEnabled) {
|
|
766
|
-
return;
|
|
767
|
-
}
|
|
768
|
-
this.input.focus();
|
|
769
|
-
};
|
|
770
|
-
TimePickerComponent.prototype.toggleFocus = function () {
|
|
771
|
-
if (!this.isActive) {
|
|
772
|
-
return;
|
|
773
|
-
}
|
|
774
|
-
if (this.show) {
|
|
775
|
-
if (!this.timeSelector) {
|
|
776
|
-
this.cdr.detectChanges();
|
|
777
|
-
}
|
|
778
|
-
if (this.isActive) {
|
|
779
|
-
this.timeSelector.focus();
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
else if (!this.touchEnabled) {
|
|
783
|
-
this.input.focus();
|
|
784
|
-
}
|
|
785
|
-
else if (!this.input.isActive) {
|
|
786
|
-
this.handleBlur();
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
TimePickerComponent.prototype.verifyValue = function (value) {
|
|
790
|
-
if (!isDevMode()) {
|
|
791
|
-
return;
|
|
792
|
-
}
|
|
793
|
-
if (value && !(value instanceof Date)) {
|
|
794
|
-
throw new Error("The 'value' should be a valid JavaScript Date instance. Check " + VALUE_DOC_LINK + " for possible resolution.");
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
TimePickerComponent.prototype.verifyFormat = function () {
|
|
798
|
-
if (!isDevMode()) {
|
|
799
|
-
return;
|
|
800
|
-
}
|
|
801
|
-
var formatContainsDateParts = this.intl.splitDateFormat(this.format).some(function (part) { return !formatRegExp.test(part.type); });
|
|
802
|
-
if (formatContainsDateParts) {
|
|
803
|
-
throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See " + INTL_DATE_FORMAT);
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
|
-
TimePickerComponent.prototype.bindEvents = function () {
|
|
807
|
-
var element = this.wrapper.nativeElement;
|
|
808
|
-
this.domEvents.push(this.renderer.listen(element, 'keydown', this.handleKeydown.bind(this)));
|
|
809
|
-
if (isWindowAvailable()) {
|
|
810
|
-
this.windowBlurSubscription = fromEvent(window, 'blur').subscribe(this.handleWindowBlur.bind(this));
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
TimePickerComponent.prototype.handleWindowBlur = function () {
|
|
814
|
-
if (!this.isOpen) {
|
|
815
|
-
return;
|
|
816
|
-
}
|
|
817
|
-
this.show = false;
|
|
818
|
-
};
|
|
819
|
-
TimePickerComponent.prototype.handleFocus = function () {
|
|
820
|
-
var _this = this;
|
|
821
|
-
if (this.isActive) {
|
|
822
|
-
return;
|
|
823
|
-
}
|
|
824
|
-
this.isActive = true;
|
|
825
|
-
if (hasObservers(this.onFocus)) {
|
|
826
|
-
this.zone.run(function () {
|
|
827
|
-
_this.onFocus.emit();
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
TimePickerComponent.prototype.handleBlur = function (args) {
|
|
832
|
-
var _this = this;
|
|
833
|
-
var currentTarget = args && currentFocusTarget(args);
|
|
834
|
-
if (currentTarget && (this.input.containsElement(currentTarget) ||
|
|
835
|
-
(this.timeSelector && this.timeSelector.containsElement(currentTarget)))) {
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
if (hasObservers(this.onBlur) || (this.show && hasObservers(this.close)) || requiresZoneOnBlur(this.control)) {
|
|
839
|
-
this.zone.run(function () {
|
|
840
|
-
_this.blurComponent();
|
|
841
|
-
_this.cdr.markForCheck();
|
|
842
|
-
});
|
|
843
|
-
}
|
|
844
|
-
else {
|
|
845
|
-
this.blurComponent();
|
|
846
|
-
}
|
|
847
|
-
};
|
|
848
|
-
TimePickerComponent.prototype.blurComponent = function () {
|
|
849
|
-
this.isActive = false; // order is important ¯\_(ツ)_/¯
|
|
850
|
-
this.show = false;
|
|
851
|
-
this.onControlTouched();
|
|
852
|
-
this.onBlur.emit();
|
|
853
|
-
};
|
|
854
|
-
TimePickerComponent.prototype.handleDateCompletenessChange = function () {
|
|
855
|
-
var _this = this;
|
|
856
|
-
this.cdr.markForCheck();
|
|
857
|
-
this.zone.run(function () { return _this.onValidatorChange(); });
|
|
858
|
-
};
|
|
859
|
-
TimePickerComponent.prototype.setComponentClasses = function () {
|
|
860
|
-
if (this.size) {
|
|
861
|
-
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
862
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', this.size));
|
|
863
|
-
}
|
|
864
|
-
if (this.rounded) {
|
|
865
|
-
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
866
|
-
}
|
|
867
|
-
if (this.fillMode) {
|
|
868
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
869
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
870
|
-
this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
var TimePickerComponent_1;
|
|
874
|
-
tslib_1.__decorate([
|
|
875
|
-
ViewChild('container', { read: ViewContainerRef, static: false }),
|
|
876
|
-
tslib_1.__metadata("design:type", ViewContainerRef)
|
|
877
|
-
], TimePickerComponent.prototype, "container", void 0);
|
|
878
|
-
tslib_1.__decorate([
|
|
879
|
-
ViewChild('popupTemplate', { static: false }),
|
|
880
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
881
|
-
], TimePickerComponent.prototype, "popupTemplate", void 0);
|
|
882
|
-
tslib_1.__decorate([
|
|
883
|
-
ViewChild('toggleButton', { static: true }),
|
|
884
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
885
|
-
], TimePickerComponent.prototype, "toggleButton", void 0);
|
|
886
|
-
tslib_1.__decorate([
|
|
887
|
-
Input(),
|
|
888
|
-
tslib_1.__metadata("design:type", String)
|
|
889
|
-
], TimePickerComponent.prototype, "focusableId", void 0);
|
|
890
|
-
tslib_1.__decorate([
|
|
891
|
-
Input(),
|
|
892
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
893
|
-
], TimePickerComponent.prototype, "disabled", void 0);
|
|
894
|
-
tslib_1.__decorate([
|
|
895
|
-
Input(),
|
|
896
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
897
|
-
], TimePickerComponent.prototype, "readonly", void 0);
|
|
898
|
-
tslib_1.__decorate([
|
|
899
|
-
Input(),
|
|
900
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
901
|
-
], TimePickerComponent.prototype, "readOnlyInput", void 0);
|
|
902
|
-
tslib_1.__decorate([
|
|
903
|
-
Input(),
|
|
904
|
-
tslib_1.__metadata("design:type", String)
|
|
905
|
-
], TimePickerComponent.prototype, "format", void 0);
|
|
906
|
-
tslib_1.__decorate([
|
|
907
|
-
Input(),
|
|
908
|
-
tslib_1.__metadata("design:type", Object)
|
|
909
|
-
], TimePickerComponent.prototype, "formatPlaceholder", void 0);
|
|
910
|
-
tslib_1.__decorate([
|
|
911
|
-
Input(),
|
|
912
|
-
tslib_1.__metadata("design:type", String)
|
|
913
|
-
], TimePickerComponent.prototype, "placeholder", void 0);
|
|
914
|
-
tslib_1.__decorate([
|
|
915
|
-
Input(),
|
|
916
|
-
tslib_1.__metadata("design:type", Date),
|
|
917
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
918
|
-
], TimePickerComponent.prototype, "min", null);
|
|
919
|
-
tslib_1.__decorate([
|
|
920
|
-
Input(),
|
|
921
|
-
tslib_1.__metadata("design:type", Date),
|
|
922
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
923
|
-
], TimePickerComponent.prototype, "max", null);
|
|
924
|
-
tslib_1.__decorate([
|
|
925
|
-
Input(),
|
|
926
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
927
|
-
], TimePickerComponent.prototype, "incompleteDateValidation", void 0);
|
|
928
|
-
tslib_1.__decorate([
|
|
929
|
-
Input(),
|
|
930
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
931
|
-
], TimePickerComponent.prototype, "cancelButton", void 0);
|
|
932
|
-
tslib_1.__decorate([
|
|
933
|
-
Input(),
|
|
934
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
935
|
-
], TimePickerComponent.prototype, "nowButton", void 0);
|
|
936
|
-
tslib_1.__decorate([
|
|
937
|
-
Input(),
|
|
938
|
-
tslib_1.__metadata("design:type", Object),
|
|
939
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
940
|
-
], TimePickerComponent.prototype, "steps", null);
|
|
941
|
-
tslib_1.__decorate([
|
|
942
|
-
Input(),
|
|
943
|
-
tslib_1.__metadata("design:type", Object),
|
|
944
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
945
|
-
], TimePickerComponent.prototype, "popupSettings", null);
|
|
946
|
-
tslib_1.__decorate([
|
|
947
|
-
Input(),
|
|
948
|
-
tslib_1.__metadata("design:type", Number)
|
|
949
|
-
], TimePickerComponent.prototype, "tabindex", void 0);
|
|
950
|
-
tslib_1.__decorate([
|
|
951
|
-
Input(),
|
|
952
|
-
tslib_1.__metadata("design:type", Number),
|
|
953
|
-
tslib_1.__metadata("design:paramtypes", [Number])
|
|
954
|
-
], TimePickerComponent.prototype, "tabIndex", null);
|
|
955
|
-
tslib_1.__decorate([
|
|
956
|
-
Input(),
|
|
957
|
-
tslib_1.__metadata("design:type", String)
|
|
958
|
-
], TimePickerComponent.prototype, "title", void 0);
|
|
959
|
-
tslib_1.__decorate([
|
|
960
|
-
Input(),
|
|
961
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
962
|
-
], TimePickerComponent.prototype, "rangeValidation", void 0);
|
|
963
|
-
tslib_1.__decorate([
|
|
964
|
-
Input(),
|
|
965
|
-
tslib_1.__metadata("design:type", Date),
|
|
966
|
-
tslib_1.__metadata("design:paramtypes", [Date])
|
|
967
|
-
], TimePickerComponent.prototype, "value", null);
|
|
968
|
-
tslib_1.__decorate([
|
|
969
|
-
Input(),
|
|
970
|
-
tslib_1.__metadata("design:type", String),
|
|
971
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
972
|
-
], TimePickerComponent.prototype, "size", null);
|
|
973
|
-
tslib_1.__decorate([
|
|
974
|
-
Input(),
|
|
975
|
-
tslib_1.__metadata("design:type", String),
|
|
976
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
977
|
-
], TimePickerComponent.prototype, "rounded", null);
|
|
978
|
-
tslib_1.__decorate([
|
|
979
|
-
Input(),
|
|
980
|
-
tslib_1.__metadata("design:type", String),
|
|
981
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
982
|
-
], TimePickerComponent.prototype, "fillMode", null);
|
|
983
|
-
tslib_1.__decorate([
|
|
984
|
-
Output(),
|
|
985
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
986
|
-
], TimePickerComponent.prototype, "valueChange", void 0);
|
|
987
|
-
tslib_1.__decorate([
|
|
988
|
-
Output('focus'),
|
|
989
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
990
|
-
], TimePickerComponent.prototype, "onFocus", void 0);
|
|
991
|
-
tslib_1.__decorate([
|
|
992
|
-
Output('blur'),
|
|
993
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
994
|
-
], TimePickerComponent.prototype, "onBlur", void 0);
|
|
995
|
-
tslib_1.__decorate([
|
|
996
|
-
Output(),
|
|
997
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
998
|
-
], TimePickerComponent.prototype, "open", void 0);
|
|
999
|
-
tslib_1.__decorate([
|
|
1000
|
-
Output(),
|
|
1001
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
1002
|
-
], TimePickerComponent.prototype, "close", void 0);
|
|
1003
|
-
tslib_1.__decorate([
|
|
1004
|
-
HostBinding('class.k-timepicker'),
|
|
1005
|
-
HostBinding('class.k-input'),
|
|
1006
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
1007
|
-
], TimePickerComponent.prototype, "wrapperClasses", void 0);
|
|
1008
|
-
tslib_1.__decorate([
|
|
1009
|
-
HostBinding('class.k-disabled'),
|
|
1010
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
1011
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1012
|
-
], TimePickerComponent.prototype, "disabledClass", null);
|
|
1013
|
-
TimePickerComponent = TimePickerComponent_1 = tslib_1.__decorate([
|
|
1014
|
-
Component({
|
|
1015
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1016
|
-
exportAs: 'kendo-timepicker',
|
|
1017
|
-
providers: [
|
|
1018
|
-
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(function () { return TimePickerComponent_1; }), multi: true },
|
|
1019
|
-
{ provide: NG_VALIDATORS, useExisting: forwardRef(function () { return TimePickerComponent_1; }), multi: true },
|
|
1020
|
-
{ provide: KendoInput, useExisting: forwardRef(function () { return TimePickerComponent_1; }) },
|
|
1021
|
-
LocalizationService,
|
|
1022
|
-
{
|
|
1023
|
-
provide: L10N_PREFIX,
|
|
1024
|
-
useValue: 'kendo.timepicker'
|
|
1025
|
-
},
|
|
1026
|
-
PickerService
|
|
1027
|
-
],
|
|
1028
|
-
selector: 'kendo-timepicker',
|
|
1029
|
-
template: "\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept=\"kendo.timepicker.accept|The Accept button text in the timepicker component\"\n accept=\"Set\"\n\n i18n-acceptLabel=\"kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component\"\n acceptLabel=\"Set time\"\n\n i18n-cancel=\"kendo.timepicker.cancel|The Cancel button text in the timepicker component\"\n cancel=\"Cancel\"\n\n i18n-cancelLabel=\"kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component\"\n cancelLabel=\"Cancel changes\"\n\n i18n-now=\"kendo.timepicker.now|The Now button text in the timepicker component\"\n now=\"Now\"\n\n i18n-nowLabel=\"kendo.timepicker.nowLabel|The label for the Now button in the timepicker component\"\n nowLabel=\"Select now\"\n\n i18n-toggle=\"kendo.timepicker.toggle|The label for the toggle button in the timepicker component\"\n toggle=\"Toggle time list\"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]=\"focusableId\"\n [hasPopup]=\"true\"\n [isPopupOpen]=\"show\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly || readOnlyInput\"\n [role]=\"inputRole\"\n [ariaReadOnly]=\"readonly\"\n [format]=\"format\"\n [formatPlaceholder]=\"formatPlaceholder\"\n [placeholder]=\"placeholder\"\n [min]=\"normalizeTime(min)\"\n [max]=\"normalizeTime(max)\"\n [incompleteDateValidation]=\"incompleteDateValidation\"\n [fillMode]=\"fillMode\"\n [rounded]=\"rounded\"\n [size]=\"size\"\n [steps]=\"steps\"\n [tabindex]=\"!show ? tabindex : -1\"\n [title]=\"title\"\n [value]=\"value\"\n (valueChange)=\"handleInputChange($event)\"\n ></kendo-dateinput>\n <button\n #toggleButton\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [attr.title]=\"localization.get('toggle')\"\n [attr.aria-label]=\"localization.get('toggle')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleIconClick,\n mousedown: handleMousedown\n }\"\n [scope]=\"this\"\n >\n <span class=\"k-button-icon k-icon k-i-clock\"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]=\"cancelButton\"\n [nowButton]=\"nowButton\"\n [format]=\"format\"\n [min]=\"min\"\n [max]=\"max\"\n [steps]=\"steps\"\n [value]=\"value\"\n [kendoEventsOutsideAngular]=\"{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }\"\n [scope]=\"this\"\n (valueChange)=\"handleChange($event)\"\n (valueReject)=\"handleReject()\"\n >\n <kendo-timeselector-messages\n [acceptLabel]=\"localization.get('acceptLabel')\"\n [accept]=\"localization.get('accept')\"\n [cancelLabel]=\"localization.get('cancelLabel')\"\n [cancel]=\"localization.get('cancel')\"\n [nowLabel]=\"localization.get('nowLabel')\"\n [now]=\"localization.get('now')\"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n "
|
|
1030
|
-
}),
|
|
1031
|
-
tslib_1.__param(9, Optional()), tslib_1.__param(9, Inject(TOUCH_ENABLED)),
|
|
1032
|
-
tslib_1.__metadata("design:paramtypes", [NgZone,
|
|
1033
|
-
LocalizationService,
|
|
1034
|
-
ChangeDetectorRef,
|
|
1035
|
-
PopupService,
|
|
1036
|
-
ElementRef,
|
|
1037
|
-
Renderer2,
|
|
1038
|
-
Injector,
|
|
1039
|
-
PickerService,
|
|
1040
|
-
IntlService, Boolean])
|
|
1041
|
-
], TimePickerComponent);
|
|
1042
|
-
return TimePickerComponent;
|
|
1043
|
-
}());
|
|
1044
|
-
export { TimePickerComponent };
|