@progress/kendo-react-dateinputs 6.1.1-dev.202311151536 → 7.0.0-develop.1
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/LICENSE.md +1 -1
- package/{dist/es/PopupSettings.d.ts → PopupSettings.d.ts} +4 -0
- package/{dist/npm/calendar → calendar}/components/Calendar.d.ts +6 -2
- package/{dist/es/calendar → calendar}/components/CalendarCell.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarHeaderTitle.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarNavigationItem.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarWeekCell.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/Header.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/HorizontalViewList.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/MultiViewCalendar.d.ts +8 -4
- package/{dist/npm/calendar → calendar}/components/Navigation.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/TodayCommand.d.ts +5 -1
- package/{dist/es/calendar → calendar}/components/View.d.ts +6 -2
- package/{dist/npm/calendar → calendar}/components/ViewList.d.ts +7 -3
- package/calendar/models/ActiveView.d.ts +8 -0
- package/{dist/npm/calendar → calendar}/models/CalendarSettings.d.ts +4 -1
- package/calendar/models/CalendarViewEnum.d.ts +13 -0
- package/{dist/npm/calendar → calendar}/models/CellContext.d.ts +4 -0
- package/calendar/models/MultiViewCalendarMode.d.ts +13 -0
- package/{dist/es/calendar → calendar}/models/MultiViewCalendarSettings.d.ts +4 -1
- package/calendar/models/NavigationAction.d.ts +19 -0
- package/calendar/models/SelectionRange.d.ts +21 -0
- package/calendar/models/SelectionRangeEnd.d.ts +8 -0
- package/{dist/npm/calendar → calendar}/models/ViewService.d.ts +4 -0
- package/calendar/models/index.d.ts +15 -0
- package/{dist/es/calendar → calendar}/services/BusViewService.d.ts +4 -1
- package/{dist/es/calendar → calendar}/services/CenturyViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/DOMService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/DecadeViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/MonthViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/NavigationService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/ScrollSyncService.d.ts +4 -0
- package/calendar/services/WeekNamesService.d.ts +13 -0
- package/{dist/es/calendar → calendar}/services/YearViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/index.d.ts +4 -0
- package/{dist/es/common → common}/AdaptiveMode.d.ts +5 -1
- package/{dist/es/common → common}/PickerWrap.d.ts +4 -0
- package/common/constants.d.ts +8 -0
- package/{dist/es/dateinput → dateinput}/DateInput.d.ts +11 -7
- package/{dist/es/dateinput → dateinput}/models/DateInputSettings.d.ts +4 -0
- package/{dist/es/dateinput → dateinput}/models/format-placeholder.d.ts +5 -1
- package/dateinput/models/incremental-steps.d.ts +15 -0
- package/dateinput/models/index.d.ts +11 -0
- package/{dist/es/dateinput → dateinput}/models/kendo-date.d.ts +4 -0
- package/dateinput/models/mask.d.ts +11 -0
- package/dateinput/models/selection.d.ts +11 -0
- package/{dist/npm/dateinput → dateinput}/utils.d.ts +4 -0
- package/{dist/npm/datepicker → datepicker}/DatePicker.d.ts +12 -8
- package/{dist/npm/datepicker → datepicker}/ToggleButton.d.ts +4 -0
- package/{dist/npm/datepicker → datepicker}/models/DatePickerSettings.d.ts +5 -2
- package/datepicker/models/index.d.ts +6 -0
- package/{dist/es/daterangepicker → daterangepicker}/DateRangePicker.d.ts +9 -5
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +10 -0
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +10 -0
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +10 -0
- package/{dist/npm/daterangepicker → daterangepicker}/models/DateRangePickerSettings.d.ts +4 -1
- package/{dist/es/daterangepicker → daterangepicker}/models/index.d.ts +4 -0
- package/{dist/npm/datetimepicker → datetimepicker}/DateTimePicker.d.ts +12 -8
- package/{dist/npm/datetimepicker → datetimepicker}/DateTimeSelector.d.ts +5 -1
- package/{dist/es/datetimepicker → datetimepicker}/models/DateTimePickerSettings.d.ts +5 -2
- package/datetimepicker/models/index.d.ts +6 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +21 -1
- package/hooks/usePickerFloatingLabel.d.ts +24 -0
- package/index.d.ts +39 -0
- package/index.js +21 -0
- package/index.mjs +6460 -0
- package/{dist/es/messages → messages}/index.d.ts +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +33 -51
- package/{dist/npm/timepicker → timepicker}/TimeList.d.ts +5 -1
- package/{dist/es/timepicker → timepicker}/TimePart.d.ts +5 -1
- package/{dist/es/timepicker → timepicker}/TimePicker.d.ts +12 -8
- package/{dist/es/timepicker → timepicker}/TimeSelector.d.ts +5 -1
- package/timepicker/models/IncrementalSteps.d.ts +12 -0
- package/timepicker/models/ListItem.d.ts +11 -0
- package/{dist/es/timepicker → timepicker}/models/ListService.d.ts +4 -0
- package/timepicker/models/ListServiceSettings.d.ts +16 -0
- package/timepicker/models/TimePart.d.ts +14 -0
- package/{dist/es/timepicker → timepicker}/models/TimePickerSettings.d.ts +5 -2
- package/timepicker/models/index.d.ts +11 -0
- package/timepicker/services/DOMService.d.ts +14 -0
- package/{dist/npm/timepicker → timepicker}/services/DayPeriodService.d.ts +4 -0
- package/{dist/es/timepicker → timepicker}/services/HoursService.d.ts +4 -0
- package/{dist/npm/timepicker → timepicker}/services/MinutesService.d.ts +4 -0
- package/{dist/es/timepicker → timepicker}/services/SecondsService.d.ts +4 -0
- package/timepicker/services/index.d.ts +10 -0
- package/{dist/es/timepicker → timepicker}/utils.d.ts +4 -0
- package/{dist/es/utils.d.ts → utils.d.ts} +4 -0
- package/{dist/es/virtualization → virtualization}/Virtualization.d.ts +6 -2
- package/{dist/es/virtualization → virtualization}/services/RowHeightService.d.ts +4 -0
- package/{dist/es/virtualization → virtualization}/services/ScrollerService.d.ts +6 -2
- package/virtualization/services/index.d.ts +7 -0
- package/about.md +0 -3
- package/dist/es/PopupSettings.js +0 -1
- package/dist/es/calendar/components/Calendar.d.ts +0 -187
- package/dist/es/calendar/components/Calendar.js +0 -388
- package/dist/es/calendar/components/CalendarCell.js +0 -128
- package/dist/es/calendar/components/CalendarHeaderTitle.d.ts +0 -28
- package/dist/es/calendar/components/CalendarHeaderTitle.js +0 -61
- package/dist/es/calendar/components/CalendarNavigationItem.d.ts +0 -27
- package/dist/es/calendar/components/CalendarNavigationItem.js +0 -66
- package/dist/es/calendar/components/CalendarWeekCell.d.ts +0 -25
- package/dist/es/calendar/components/CalendarWeekCell.js +0 -61
- package/dist/es/calendar/components/Header.d.ts +0 -54
- package/dist/es/calendar/components/Header.js +0 -129
- package/dist/es/calendar/components/HorizontalViewList.d.ts +0 -67
- package/dist/es/calendar/components/HorizontalViewList.js +0 -145
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +0 -208
- package/dist/es/calendar/components/MultiViewCalendar.js +0 -589
- package/dist/es/calendar/components/Navigation.d.ts +0 -76
- package/dist/es/calendar/components/Navigation.js +0 -167
- package/dist/es/calendar/components/TodayCommand.d.ts +0 -31
- package/dist/es/calendar/components/TodayCommand.js +0 -93
- package/dist/es/calendar/components/View.js +0 -220
- package/dist/es/calendar/components/ViewList.d.ts +0 -111
- package/dist/es/calendar/components/ViewList.js +0 -258
- package/dist/es/calendar/models/ActiveView.d.ts +0 -4
- package/dist/es/calendar/models/ActiveView.js +0 -1
- package/dist/es/calendar/models/CalendarSettings.d.ts +0 -103
- package/dist/es/calendar/models/CalendarSettings.js +0 -1
- package/dist/es/calendar/models/CalendarViewEnum.d.ts +0 -9
- package/dist/es/calendar/models/CalendarViewEnum.js +0 -10
- package/dist/es/calendar/models/CellContext.d.ts +0 -19
- package/dist/es/calendar/models/CellContext.js +0 -1
- package/dist/es/calendar/models/MultiViewCalendarMode.d.ts +0 -9
- package/dist/es/calendar/models/MultiViewCalendarMode.js +0 -1
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +0 -1
- package/dist/es/calendar/models/NavigationAction.d.ts +0 -15
- package/dist/es/calendar/models/NavigationAction.js +0 -16
- package/dist/es/calendar/models/SelectionRange.d.ts +0 -17
- package/dist/es/calendar/models/SelectionRange.js +0 -4
- package/dist/es/calendar/models/SelectionRangeEnd.d.ts +0 -4
- package/dist/es/calendar/models/SelectionRangeEnd.js +0 -1
- package/dist/es/calendar/models/ViewService.d.ts +0 -25
- package/dist/es/calendar/models/ViewService.js +0 -1
- package/dist/es/calendar/models/index.d.ts +0 -11
- package/dist/es/calendar/models/index.js +0 -4
- package/dist/es/calendar/services/BusViewService.js +0 -69
- package/dist/es/calendar/services/CenturyViewService.js +0 -154
- package/dist/es/calendar/services/DOMService.d.ts +0 -29
- package/dist/es/calendar/services/DOMService.js +0 -184
- package/dist/es/calendar/services/DecadeViewService.d.ts +0 -27
- package/dist/es/calendar/services/DecadeViewService.js +0 -153
- package/dist/es/calendar/services/MonthViewService.d.ts +0 -33
- package/dist/es/calendar/services/MonthViewService.js +0 -169
- package/dist/es/calendar/services/NavigationService.d.ts +0 -14
- package/dist/es/calendar/services/NavigationService.js +0 -41
- package/dist/es/calendar/services/ScrollSyncService.d.ts +0 -21
- package/dist/es/calendar/services/ScrollSyncService.js +0 -58
- package/dist/es/calendar/services/WeekNamesService.d.ts +0 -9
- package/dist/es/calendar/services/WeekNamesService.js +0 -16
- package/dist/es/calendar/services/YearViewService.js +0 -180
- package/dist/es/calendar/services/index.d.ts +0 -10
- package/dist/es/calendar/services/index.js +0 -10
- package/dist/es/calendar/utils/ScrollSync.d.ts +0 -13
- package/dist/es/calendar/utils/ScrollSync.js +0 -30
- package/dist/es/common/AdaptiveMode.js +0 -45
- package/dist/es/common/PickerWrap.js +0 -14
- package/dist/es/common/constants.d.ts +0 -4
- package/dist/es/common/constants.js +0 -4
- package/dist/es/dateinput/DateInput.js +0 -704
- package/dist/es/dateinput/models/DateInputSettings.js +0 -2
- package/dist/es/dateinput/models/format-placeholder.js +0 -2
- package/dist/es/dateinput/models/incremental-steps.d.ts +0 -11
- package/dist/es/dateinput/models/incremental-steps.js +0 -1
- package/dist/es/dateinput/models/index.d.ts +0 -7
- package/dist/es/dateinput/models/index.js +0 -3
- package/dist/es/dateinput/models/kendo-date.js +0 -338
- package/dist/es/dateinput/models/mask.d.ts +0 -7
- package/dist/es/dateinput/models/mask.js +0 -11
- package/dist/es/dateinput/models/selection.d.ts +0 -7
- package/dist/es/dateinput/models/selection.js +0 -1
- package/dist/es/dateinput/utils.d.ts +0 -30
- package/dist/es/dateinput/utils.js +0 -83
- package/dist/es/datepicker/DatePicker.d.ts +0 -354
- package/dist/es/datepicker/DatePicker.js +0 -636
- package/dist/es/datepicker/ToggleButton.d.ts +0 -10
- package/dist/es/datepicker/ToggleButton.js +0 -5
- package/dist/es/datepicker/models/DatePickerSettings.d.ts +0 -138
- package/dist/es/datepicker/models/DatePickerSettings.js +0 -2
- package/dist/es/datepicker/models/index.d.ts +0 -2
- package/dist/es/datepicker/models/index.js +0 -1
- package/dist/es/daterangepicker/DateRangePicker.js +0 -584
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +0 -123
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +0 -2
- package/dist/es/daterangepicker/models/index.js +0 -1
- package/dist/es/datetimepicker/DateTimePicker.d.ts +0 -338
- package/dist/es/datetimepicker/DateTimePicker.js +0 -566
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +0 -97
- package/dist/es/datetimepicker/DateTimeSelector.js +0 -279
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +0 -1
- package/dist/es/datetimepicker/models/index.d.ts +0 -2
- package/dist/es/datetimepicker/models/index.js +0 -1
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +0 -20
- package/dist/es/hooks/usePickerFloatingLabel.js +0 -35
- package/dist/es/main.d.ts +0 -35
- package/dist/es/main.js +0 -29
- package/dist/es/messages/index.js +0 -121
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/timepicker/TimeList.d.ts +0 -87
- package/dist/es/timepicker/TimeList.js +0 -302
- package/dist/es/timepicker/TimePart.js +0 -307
- package/dist/es/timepicker/TimePicker.js +0 -618
- package/dist/es/timepicker/TimeSelector.js +0 -261
- package/dist/es/timepicker/models/IncrementalSteps.d.ts +0 -8
- package/dist/es/timepicker/models/IncrementalSteps.js +0 -1
- package/dist/es/timepicker/models/ListItem.d.ts +0 -7
- package/dist/es/timepicker/models/ListItem.js +0 -1
- package/dist/es/timepicker/models/ListService.js +0 -1
- package/dist/es/timepicker/models/ListServiceSettings.d.ts +0 -12
- package/dist/es/timepicker/models/ListServiceSettings.js +0 -1
- package/dist/es/timepicker/models/TimePart.d.ts +0 -10
- package/dist/es/timepicker/models/TimePart.js +0 -10
- package/dist/es/timepicker/models/TimePickerSettings.js +0 -2
- package/dist/es/timepicker/models/index.d.ts +0 -7
- package/dist/es/timepicker/models/index.js +0 -2
- package/dist/es/timepicker/services/DOMService.d.ts +0 -10
- package/dist/es/timepicker/services/DOMService.js +0 -46
- package/dist/es/timepicker/services/DayPeriodService.d.ts +0 -47
- package/dist/es/timepicker/services/DayPeriodService.js +0 -119
- package/dist/es/timepicker/services/HoursService.js +0 -124
- package/dist/es/timepicker/services/MinutesService.d.ts +0 -32
- package/dist/es/timepicker/services/MinutesService.js +0 -119
- package/dist/es/timepicker/services/SecondsService.js +0 -120
- package/dist/es/timepicker/services/index.d.ts +0 -6
- package/dist/es/timepicker/services/index.js +0 -6
- package/dist/es/timepicker/utils.js +0 -149
- package/dist/es/utils.js +0 -306
- package/dist/es/virtualization/Virtualization.js +0 -317
- package/dist/es/virtualization/services/RowHeightService.js +0 -68
- package/dist/es/virtualization/services/ScrollerService.js +0 -90
- package/dist/es/virtualization/services/index.d.ts +0 -3
- package/dist/es/virtualization/services/index.js +0 -3
- package/dist/npm/PopupSettings.d.ts +0 -14
- package/dist/npm/PopupSettings.js +0 -2
- package/dist/npm/calendar/components/Calendar.js +0 -391
- package/dist/npm/calendar/components/CalendarCell.d.ts +0 -35
- package/dist/npm/calendar/components/CalendarCell.js +0 -131
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +0 -64
- package/dist/npm/calendar/components/CalendarNavigationItem.js +0 -69
- package/dist/npm/calendar/components/CalendarWeekCell.js +0 -64
- package/dist/npm/calendar/components/Header.js +0 -132
- package/dist/npm/calendar/components/HorizontalViewList.js +0 -148
- package/dist/npm/calendar/components/MultiViewCalendar.js +0 -592
- package/dist/npm/calendar/components/Navigation.js +0 -170
- package/dist/npm/calendar/components/TodayCommand.js +0 -96
- package/dist/npm/calendar/components/View.d.ts +0 -85
- package/dist/npm/calendar/components/View.js +0 -223
- package/dist/npm/calendar/components/ViewList.js +0 -261
- package/dist/npm/calendar/models/ActiveView.d.ts +0 -4
- package/dist/npm/calendar/models/ActiveView.js +0 -2
- package/dist/npm/calendar/models/CalendarSettings.js +0 -2
- package/dist/npm/calendar/models/CalendarViewEnum.d.ts +0 -9
- package/dist/npm/calendar/models/CalendarViewEnum.js +0 -13
- package/dist/npm/calendar/models/CellContext.js +0 -2
- package/dist/npm/calendar/models/MultiViewCalendarMode.d.ts +0 -9
- package/dist/npm/calendar/models/MultiViewCalendarMode.js +0 -2
- package/dist/npm/calendar/models/MultiViewCalendarSettings.d.ts +0 -112
- package/dist/npm/calendar/models/MultiViewCalendarSettings.js +0 -2
- package/dist/npm/calendar/models/NavigationAction.d.ts +0 -15
- package/dist/npm/calendar/models/NavigationAction.js +0 -19
- package/dist/npm/calendar/models/SelectionRange.d.ts +0 -17
- package/dist/npm/calendar/models/SelectionRange.js +0 -7
- package/dist/npm/calendar/models/SelectionRangeEnd.d.ts +0 -4
- package/dist/npm/calendar/models/SelectionRangeEnd.js +0 -2
- package/dist/npm/calendar/models/ViewService.js +0 -2
- package/dist/npm/calendar/models/index.d.ts +0 -11
- package/dist/npm/calendar/models/index.js +0 -9
- package/dist/npm/calendar/services/BusViewService.d.ts +0 -22
- package/dist/npm/calendar/services/BusViewService.js +0 -72
- package/dist/npm/calendar/services/CenturyViewService.d.ts +0 -25
- package/dist/npm/calendar/services/CenturyViewService.js +0 -157
- package/dist/npm/calendar/services/DOMService.js +0 -187
- package/dist/npm/calendar/services/DecadeViewService.js +0 -156
- package/dist/npm/calendar/services/MonthViewService.js +0 -172
- package/dist/npm/calendar/services/NavigationService.js +0 -44
- package/dist/npm/calendar/services/ScrollSyncService.js +0 -61
- package/dist/npm/calendar/services/WeekNamesService.d.ts +0 -9
- package/dist/npm/calendar/services/WeekNamesService.js +0 -19
- package/dist/npm/calendar/services/YearViewService.d.ts +0 -31
- package/dist/npm/calendar/services/YearViewService.js +0 -183
- package/dist/npm/calendar/services/index.js +0 -21
- package/dist/npm/calendar/utils/ScrollSync.d.ts +0 -13
- package/dist/npm/calendar/utils/ScrollSync.js +0 -32
- package/dist/npm/common/AdaptiveMode.d.ts +0 -21
- package/dist/npm/common/AdaptiveMode.js +0 -49
- package/dist/npm/common/PickerWrap.d.ts +0 -18
- package/dist/npm/common/PickerWrap.js +0 -17
- package/dist/npm/common/constants.d.ts +0 -4
- package/dist/npm/common/constants.js +0 -7
- package/dist/npm/dateinput/DateInput.d.ts +0 -351
- package/dist/npm/dateinput/DateInput.js +0 -707
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +0 -99
- package/dist/npm/dateinput/models/DateInputSettings.js +0 -3
- package/dist/npm/dateinput/models/format-placeholder.d.ts +0 -39
- package/dist/npm/dateinput/models/format-placeholder.js +0 -3
- package/dist/npm/dateinput/models/incremental-steps.d.ts +0 -11
- package/dist/npm/dateinput/models/incremental-steps.js +0 -2
- package/dist/npm/dateinput/models/index.d.ts +0 -7
- package/dist/npm/dateinput/models/index.js +0 -7
- package/dist/npm/dateinput/models/kendo-date.d.ts +0 -53
- package/dist/npm/dateinput/models/kendo-date.js +0 -341
- package/dist/npm/dateinput/models/mask.d.ts +0 -7
- package/dist/npm/dateinput/models/mask.js +0 -14
- package/dist/npm/dateinput/models/selection.d.ts +0 -7
- package/dist/npm/dateinput/models/selection.js +0 -2
- package/dist/npm/dateinput/utils.js +0 -90
- package/dist/npm/datepicker/DatePicker.js +0 -639
- package/dist/npm/datepicker/ToggleButton.js +0 -8
- package/dist/npm/datepicker/models/DatePickerSettings.js +0 -3
- package/dist/npm/datepicker/models/index.d.ts +0 -2
- package/dist/npm/datepicker/models/index.js +0 -2
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +0 -349
- package/dist/npm/daterangepicker/DateRangePicker.js +0 -587
- package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.js +0 -3
- package/dist/npm/daterangepicker/models/index.d.ts +0 -5
- package/dist/npm/daterangepicker/models/index.js +0 -2
- package/dist/npm/datetimepicker/DateTimePicker.js +0 -569
- package/dist/npm/datetimepicker/DateTimeSelector.js +0 -282
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.d.ts +0 -141
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.js +0 -2
- package/dist/npm/datetimepicker/models/index.d.ts +0 -2
- package/dist/npm/datetimepicker/models/index.js +0 -2
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +0 -20
- package/dist/npm/hooks/usePickerFloatingLabel.js +0 -40
- package/dist/npm/main.d.ts +0 -35
- package/dist/npm/main.js +0 -102
- package/dist/npm/messages/index.d.ts +0 -120
- package/dist/npm/messages/index.js +0 -124
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/timepicker/TimeList.js +0 -305
- package/dist/npm/timepicker/TimePart.d.ts +0 -136
- package/dist/npm/timepicker/TimePart.js +0 -310
- package/dist/npm/timepicker/TimePicker.d.ts +0 -351
- package/dist/npm/timepicker/TimePicker.js +0 -621
- package/dist/npm/timepicker/TimeSelector.d.ts +0 -138
- package/dist/npm/timepicker/TimeSelector.js +0 -264
- package/dist/npm/timepicker/models/IncrementalSteps.d.ts +0 -8
- package/dist/npm/timepicker/models/IncrementalSteps.js +0 -2
- package/dist/npm/timepicker/models/ListItem.d.ts +0 -7
- package/dist/npm/timepicker/models/ListItem.js +0 -2
- package/dist/npm/timepicker/models/ListService.d.ts +0 -15
- package/dist/npm/timepicker/models/ListService.js +0 -2
- package/dist/npm/timepicker/models/ListServiceSettings.d.ts +0 -12
- package/dist/npm/timepicker/models/ListServiceSettings.js +0 -2
- package/dist/npm/timepicker/models/TimePart.d.ts +0 -10
- package/dist/npm/timepicker/models/TimePart.js +0 -13
- package/dist/npm/timepicker/models/TimePickerSettings.d.ts +0 -130
- package/dist/npm/timepicker/models/TimePickerSettings.js +0 -3
- package/dist/npm/timepicker/models/index.d.ts +0 -7
- package/dist/npm/timepicker/models/index.js +0 -5
- package/dist/npm/timepicker/services/DOMService.d.ts +0 -10
- package/dist/npm/timepicker/services/DOMService.js +0 -49
- package/dist/npm/timepicker/services/DayPeriodService.js +0 -122
- package/dist/npm/timepicker/services/HoursService.d.ts +0 -33
- package/dist/npm/timepicker/services/HoursService.js +0 -127
- package/dist/npm/timepicker/services/MinutesService.js +0 -122
- package/dist/npm/timepicker/services/SecondsService.d.ts +0 -32
- package/dist/npm/timepicker/services/SecondsService.js +0 -123
- package/dist/npm/timepicker/services/index.d.ts +0 -6
- package/dist/npm/timepicker/services/index.js +0 -13
- package/dist/npm/timepicker/utils.d.ts +0 -56
- package/dist/npm/timepicker/utils.js +0 -161
- package/dist/npm/utils.d.ts +0 -96
- package/dist/npm/utils.js +0 -325
- package/dist/npm/virtualization/Virtualization.d.ts +0 -116
- package/dist/npm/virtualization/Virtualization.js +0 -320
- package/dist/npm/virtualization/services/RowHeightService.d.ts +0 -18
- package/dist/npm/virtualization/services/RowHeightService.js +0 -71
- package/dist/npm/virtualization/services/ScrollerService.d.ts +0 -49
- package/dist/npm/virtualization/services/ScrollerService.js +0 -93
- package/dist/npm/virtualization/services/index.d.ts +0 -3
- package/dist/npm/virtualization/services/index.js +0 -9
- package/dist/systemjs/kendo-react-dateinputs.js +0 -1
- package/e2e-next/calendar.basic.tests.ts +0 -24
- package/e2e-next/dateinput.basic.tests.ts +0 -24
- package/e2e-next/datepicker.basic.tests.ts +0 -24
- package/e2e-next/daterangepicker.basic.tests.ts +0 -24
- package/e2e-next/datetimepicker.basic.tests.ts +0 -24
- package/e2e-next/timepicker.basic.tests.ts +0 -24
|
@@ -1,566 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
import * as React from 'react';
|
|
28
|
-
import * as PropTypes from 'prop-types';
|
|
29
|
-
import { Popup } from '@progress/kendo-react-popup';
|
|
30
|
-
import { cloneDate } from '@progress/kendo-date-math';
|
|
31
|
-
import { classNames, guid, Keys, AsyncFocusBlur, createPropsContext, withPropsContext, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
32
|
-
import { calendarIcon } from '@progress/kendo-svg-icons';
|
|
33
|
-
import { DateInput } from '../dateinput/DateInput';
|
|
34
|
-
import { validatePackage, canUseDOM } from '@progress/kendo-react-common';
|
|
35
|
-
import { Button } from '@progress/kendo-react-buttons';
|
|
36
|
-
import { packageMetadata } from '../package-metadata';
|
|
37
|
-
import { MIN_DATE, MAX_DATE, isInDateRange, MAX_TIME } from '../utils';
|
|
38
|
-
import { MOBILE_MEDIUM_DEVISE } from '../common/constants';
|
|
39
|
-
import { dateTimePickerCancel, dateTimePickerSet, messages, toggleDateTimeSelector } from '../messages';
|
|
40
|
-
import { registerForLocalization, provideLocalizationService } from '@progress/kendo-react-intl';
|
|
41
|
-
import { DateTimeSelector } from './DateTimeSelector';
|
|
42
|
-
import { isInTimeRange } from '../timepicker/utils';
|
|
43
|
-
import { MIN_TIME } from '../utils';
|
|
44
|
-
import { PickerFloatingLabel } from '../hooks/usePickerFloatingLabel';
|
|
45
|
-
import { AdaptiveMode } from '../common/AdaptiveMode';
|
|
46
|
-
import { ActionSheetContent } from '@progress/kendo-react-layout';
|
|
47
|
-
/** @hidden */
|
|
48
|
-
var DateTimePickerWithoutContext = /** @class */ (function (_super) {
|
|
49
|
-
__extends(DateTimePickerWithoutContext, _super);
|
|
50
|
-
function DateTimePickerWithoutContext(props) {
|
|
51
|
-
var _this = _super.call(this, props) || this;
|
|
52
|
-
_this._popupId = guid();
|
|
53
|
-
_this._element = null;
|
|
54
|
-
_this._dateInput = React.createRef();
|
|
55
|
-
_this._dateTimeSelector = null;
|
|
56
|
-
_this.shouldFocusDateInput = false;
|
|
57
|
-
_this.prevShow = false;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
_this.focus = function () {
|
|
62
|
-
var dateInputElement = _this.dateInputElement();
|
|
63
|
-
if (dateInputElement) {
|
|
64
|
-
dateInputElement.focus();
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
_this.renderPicker = function () {
|
|
68
|
-
var _a = _this.props, disabled = _a.disabled, minTime = _a.minTime, maxTime = _a.maxTime, format = _a.format, calendar = _a.calendar, cancelButton = _a.cancelButton, weekNumber = _a.weekNumber, focusedDate = _a.focusedDate;
|
|
69
|
-
return (React.createElement(DateTimeSelector, { ref: function (dateTimeSelector) { _this._dateTimeSelector = dateTimeSelector; }, cancelButton: cancelButton, steps: _this.props.steps, value: _this.value, onChange: _this.handleValueChange, onReject: _this.handleReject, disabled: disabled, weekNumber: weekNumber, min: _this.min, max: _this.max, minTime: minTime, maxTime: maxTime, focusedDate: focusedDate, format: format, calendar: calendar, mobileMode: _this.mobileMode, footerActions: !_this.mobileMode }));
|
|
70
|
-
};
|
|
71
|
-
_this.renderAdaptivePopup = function () {
|
|
72
|
-
var _a = _this.state.windowWidth, windowWidth = _a === void 0 ? 0 : _a;
|
|
73
|
-
var cancelText = provideLocalizationService(_this)
|
|
74
|
-
.toLanguageString(dateTimePickerCancel, messages[dateTimePickerCancel]);
|
|
75
|
-
var applyText = provideLocalizationService(_this)
|
|
76
|
-
.toLanguageString(dateTimePickerSet, messages[dateTimePickerSet]);
|
|
77
|
-
var actionSheetProps = {
|
|
78
|
-
expand: _this.show,
|
|
79
|
-
onClose: _this.handleBlur,
|
|
80
|
-
adaptiveTitle: _this.props.adaptiveTitle,
|
|
81
|
-
windowWidth: windowWidth,
|
|
82
|
-
footer: {
|
|
83
|
-
cancelText: cancelText,
|
|
84
|
-
onCancel: function (event) { var _a; return (_a = _this._dateTimeSelector) === null || _a === void 0 ? void 0 : _a.handleReject(event); },
|
|
85
|
-
applyText: applyText,
|
|
86
|
-
onApply: function (event) { var _a; return (_a = _this._dateTimeSelector) === null || _a === void 0 ? void 0 : _a.handleAccept(event); }
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
return (React.createElement(AdaptiveMode, __assign({}, actionSheetProps),
|
|
90
|
-
React.createElement(ActionSheetContent, { className: '!k-overflow-hidden' }, _this.renderPicker())));
|
|
91
|
-
};
|
|
92
|
-
_this.handleReject = function () {
|
|
93
|
-
_this.shouldFocusDateInput = true;
|
|
94
|
-
_this.setShow(false);
|
|
95
|
-
};
|
|
96
|
-
_this.handleValueChange = function (event) {
|
|
97
|
-
_this.setState({
|
|
98
|
-
value: cloneDate(event.value || undefined)
|
|
99
|
-
});
|
|
100
|
-
_this.valueDuringOnChange = event.value;
|
|
101
|
-
_this.showDuringOnChange = false;
|
|
102
|
-
if (!_this.mobileMode) {
|
|
103
|
-
_this.shouldFocusDateInput = true;
|
|
104
|
-
}
|
|
105
|
-
var onChange = _this.props.onChange;
|
|
106
|
-
if (onChange) {
|
|
107
|
-
onChange.call(undefined, {
|
|
108
|
-
syntheticEvent: event.syntheticEvent,
|
|
109
|
-
nativeEvent: event.nativeEvent,
|
|
110
|
-
value: _this.value,
|
|
111
|
-
show: _this.show,
|
|
112
|
-
target: _this
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
_this.valueDuringOnChange = undefined;
|
|
116
|
-
_this.showDuringOnChange = undefined;
|
|
117
|
-
_this.setShow(false);
|
|
118
|
-
};
|
|
119
|
-
_this.handleFocus = function () {
|
|
120
|
-
_this.setState({ focused: true });
|
|
121
|
-
};
|
|
122
|
-
_this.handleBlur = function () {
|
|
123
|
-
_this.setState({ focused: false });
|
|
124
|
-
_this.setShow(false);
|
|
125
|
-
};
|
|
126
|
-
_this.handleDateIconClick = function () {
|
|
127
|
-
if (_this.props.disabled) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
_this.shouldFocusDateInput = true;
|
|
131
|
-
_this.setShow(!_this.show);
|
|
132
|
-
};
|
|
133
|
-
_this.handleIconMouseDown = function (event) {
|
|
134
|
-
event.preventDefault();
|
|
135
|
-
};
|
|
136
|
-
_this.handleKeyDown = function (event) {
|
|
137
|
-
var altKey = event.altKey, keyCode = event.keyCode;
|
|
138
|
-
if (keyCode === Keys.esc) {
|
|
139
|
-
_this.shouldFocusDateInput = true;
|
|
140
|
-
_this.setShow(false);
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (altKey && (keyCode === Keys.up || keyCode === Keys.down)) {
|
|
144
|
-
event.preventDefault();
|
|
145
|
-
event.stopPropagation();
|
|
146
|
-
_this.shouldFocusDateInput = keyCode === Keys.up;
|
|
147
|
-
_this.setShow(keyCode === Keys.down);
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
_this.dateInputElement = function () {
|
|
151
|
-
return (_this.dateInput && _this.dateInput.element) ||
|
|
152
|
-
(_this.element && _this.element.querySelector('.k-dateinput > input.k-input-inner'));
|
|
153
|
-
};
|
|
154
|
-
validatePackage(packageMetadata);
|
|
155
|
-
_this.state = {
|
|
156
|
-
value: _this.props.defaultValue || DateTimePickerWithoutContext.defaultProps.defaultValue,
|
|
157
|
-
show: _this.props.defaultShow || DateTimePickerWithoutContext.defaultProps.defaultShow,
|
|
158
|
-
focused: false
|
|
159
|
-
};
|
|
160
|
-
return _this;
|
|
161
|
-
}
|
|
162
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "document", {
|
|
163
|
-
get: function () {
|
|
164
|
-
if (!canUseDOM) {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
// useful only for user actions
|
|
168
|
-
return (this.element && this.element.ownerDocument) || document;
|
|
169
|
-
},
|
|
170
|
-
enumerable: false,
|
|
171
|
-
configurable: true
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "element", {
|
|
174
|
-
/**
|
|
175
|
-
* Gets the wrapping element of the DateTimePicker.
|
|
176
|
-
*/
|
|
177
|
-
get: function () {
|
|
178
|
-
return this._element;
|
|
179
|
-
},
|
|
180
|
-
enumerable: false,
|
|
181
|
-
configurable: true
|
|
182
|
-
});
|
|
183
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "dateInput", {
|
|
184
|
-
/**
|
|
185
|
-
* Gets the DateInput component inside the DateTimePicker component.
|
|
186
|
-
*/
|
|
187
|
-
get: function () {
|
|
188
|
-
return this._dateInput.current;
|
|
189
|
-
},
|
|
190
|
-
enumerable: false,
|
|
191
|
-
configurable: true
|
|
192
|
-
});
|
|
193
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "value", {
|
|
194
|
-
/**
|
|
195
|
-
* Gets the value of the DateTimePicker.
|
|
196
|
-
*/
|
|
197
|
-
get: function () {
|
|
198
|
-
var value = this.valueDuringOnChange !== undefined
|
|
199
|
-
? this.valueDuringOnChange
|
|
200
|
-
: this.props.value !== undefined
|
|
201
|
-
? this.props.value
|
|
202
|
-
: this.state.value;
|
|
203
|
-
return (value !== null) ? cloneDate(value) : null;
|
|
204
|
-
},
|
|
205
|
-
enumerable: false,
|
|
206
|
-
configurable: true
|
|
207
|
-
});
|
|
208
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "show", {
|
|
209
|
-
/**
|
|
210
|
-
* Gets the popup state of the DateTimePicker.
|
|
211
|
-
*/
|
|
212
|
-
get: function () {
|
|
213
|
-
return this.showDuringOnChange !== undefined
|
|
214
|
-
? this.showDuringOnChange
|
|
215
|
-
: this.props.show !== undefined
|
|
216
|
-
? this.props.show
|
|
217
|
-
: this.state.show;
|
|
218
|
-
},
|
|
219
|
-
enumerable: false,
|
|
220
|
-
configurable: true
|
|
221
|
-
});
|
|
222
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "name", {
|
|
223
|
-
/**
|
|
224
|
-
* Gets the `name` property of the DateTimePicker.
|
|
225
|
-
*/
|
|
226
|
-
get: function () {
|
|
227
|
-
return this.props.name;
|
|
228
|
-
},
|
|
229
|
-
enumerable: false,
|
|
230
|
-
configurable: true
|
|
231
|
-
});
|
|
232
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "mobileMode", {
|
|
233
|
-
/**
|
|
234
|
-
* The mobile mode of the ComboBox.
|
|
235
|
-
*/
|
|
236
|
-
get: function () {
|
|
237
|
-
var isAdaptive = this.state.windowWidth && this.state.windowWidth <= MOBILE_MEDIUM_DEVISE && this.props.adaptive;
|
|
238
|
-
return !!isAdaptive;
|
|
239
|
-
},
|
|
240
|
-
enumerable: false,
|
|
241
|
-
configurable: true
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "min", {
|
|
244
|
-
get: function () {
|
|
245
|
-
return this.props.min !== undefined
|
|
246
|
-
? this.props.min
|
|
247
|
-
: DateTimePickerWithoutContext.defaultProps.min;
|
|
248
|
-
},
|
|
249
|
-
enumerable: false,
|
|
250
|
-
configurable: true
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "max", {
|
|
253
|
-
get: function () {
|
|
254
|
-
return this.props.max !== undefined
|
|
255
|
-
? this.props.max
|
|
256
|
-
: DateTimePickerWithoutContext.defaultProps.max;
|
|
257
|
-
},
|
|
258
|
-
enumerable: false,
|
|
259
|
-
configurable: true
|
|
260
|
-
});
|
|
261
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "validity", {
|
|
262
|
-
/**
|
|
263
|
-
* Represents the validity state into which the DateTimePicker is set.
|
|
264
|
-
*/
|
|
265
|
-
get: function () {
|
|
266
|
-
var inRange = isInDateRange(this.value, this.min, this.max)
|
|
267
|
-
&& isInTimeRange(this.value, this.props.minTime || MIN_TIME, this.props.maxTime || MAX_TIME);
|
|
268
|
-
var customError = this.props.validationMessage !== undefined;
|
|
269
|
-
var isValid = (!this.required || this.value !== null) && inRange;
|
|
270
|
-
var valid = this.props.valid !== undefined ? this.props.valid : isValid;
|
|
271
|
-
return {
|
|
272
|
-
customError: customError,
|
|
273
|
-
rangeOverflow: (this.value && this.max.getTime() < this.value.getTime()) || false,
|
|
274
|
-
rangeUnderflow: (this.value && this.value.getTime() < this.min.getTime()) || false,
|
|
275
|
-
valid: valid,
|
|
276
|
-
valueMissing: this.value === null
|
|
277
|
-
};
|
|
278
|
-
},
|
|
279
|
-
enumerable: false,
|
|
280
|
-
configurable: true
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "validityStyles", {
|
|
283
|
-
/**
|
|
284
|
-
* @hidden
|
|
285
|
-
*/
|
|
286
|
-
get: function () {
|
|
287
|
-
return this.props.validityStyles !== undefined
|
|
288
|
-
? this.props.validityStyles
|
|
289
|
-
: DateTimePickerWithoutContext.defaultProps.validityStyles;
|
|
290
|
-
},
|
|
291
|
-
enumerable: false,
|
|
292
|
-
configurable: true
|
|
293
|
-
});
|
|
294
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "required", {
|
|
295
|
-
/**
|
|
296
|
-
* @hidden
|
|
297
|
-
*/
|
|
298
|
-
get: function () {
|
|
299
|
-
return this.props.required !== undefined
|
|
300
|
-
? this.props.required
|
|
301
|
-
: DateTimePickerWithoutContext.defaultProps.required;
|
|
302
|
-
},
|
|
303
|
-
enumerable: false,
|
|
304
|
-
configurable: true
|
|
305
|
-
});
|
|
306
|
-
Object.defineProperty(DateTimePickerWithoutContext.prototype, "dateInputComp", {
|
|
307
|
-
/**
|
|
308
|
-
* @hidden
|
|
309
|
-
*/
|
|
310
|
-
get: function () {
|
|
311
|
-
return this.props.dateInput || DateTimePickerWithoutContext.defaultProps.dateInput;
|
|
312
|
-
},
|
|
313
|
-
enumerable: false,
|
|
314
|
-
configurable: true
|
|
315
|
-
});
|
|
316
|
-
/**
|
|
317
|
-
* @hidden
|
|
318
|
-
*/
|
|
319
|
-
DateTimePickerWithoutContext.prototype.componentDidMount = function () {
|
|
320
|
-
var _a;
|
|
321
|
-
this.observerResize = canUseDOM && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this));
|
|
322
|
-
if (this.show) {
|
|
323
|
-
// If defaultShow is true during the initial render, the popup is not aligned.
|
|
324
|
-
this.forceUpdate();
|
|
325
|
-
}
|
|
326
|
-
if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
|
|
327
|
-
this.observerResize.observe(this.document.body);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* @hidden
|
|
332
|
-
*/
|
|
333
|
-
DateTimePickerWithoutContext.prototype.componentDidUpdate = function () {
|
|
334
|
-
var dateInputElement = this.dateInputElement();
|
|
335
|
-
if (this._dateTimeSelector && this.show && !this.prevShow) {
|
|
336
|
-
this._dateTimeSelector.focus({ preventScroll: true });
|
|
337
|
-
}
|
|
338
|
-
if (dateInputElement
|
|
339
|
-
&& !this.show
|
|
340
|
-
&& this.shouldFocusDateInput) {
|
|
341
|
-
dateInputElement.focus({ preventScroll: true });
|
|
342
|
-
}
|
|
343
|
-
this.prevShow = this.show;
|
|
344
|
-
this.shouldFocusDateInput = false;
|
|
345
|
-
};
|
|
346
|
-
/**
|
|
347
|
-
* @hidden
|
|
348
|
-
*/
|
|
349
|
-
DateTimePickerWithoutContext.prototype.componentWillUnmount = function () {
|
|
350
|
-
var _a;
|
|
351
|
-
clearTimeout(this.nextTickId);
|
|
352
|
-
if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
|
|
353
|
-
this.observerResize.disconnect();
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
/**
|
|
357
|
-
* @hidden
|
|
358
|
-
*/
|
|
359
|
-
DateTimePickerWithoutContext.prototype.render = function () {
|
|
360
|
-
var _this = this;
|
|
361
|
-
var _a = this.props, _b = _a.size, size = _b === void 0 ? DateTimePickerWithoutContext.defaultProps.size : _b, _c = _a.rounded, rounded = _c === void 0 ? DateTimePickerWithoutContext.defaultProps.rounded : _c, _d = _a.fillMode, fillMode = _d === void 0 ? DateTimePickerWithoutContext.defaultProps.fillMode : _d, disabled = _a.disabled, tabIndex = _a.tabIndex, title = _a.title, id = _a.id, format = _a.format, formatPlaceholder = _a.formatPlaceholder, min = _a.min, max = _a.max, className = _a.className, width = _a.width, name = _a.name, validationMessage = _a.validationMessage, required = _a.required, validityStyles = _a.validityStyles, minTime = _a.minTime, maxTime = _a.maxTime, ariaLabelledBy = _a.ariaLabelledBy, ariaDescribedBy = _a.ariaDescribedBy, _e = _a.popup, PopupComponent = _e === void 0 ? Popup : _e;
|
|
362
|
-
var isValid = !this.validityStyles || this.validity.valid;
|
|
363
|
-
var dataInputProps = {
|
|
364
|
-
id: id,
|
|
365
|
-
ariaLabelledBy: ariaLabelledBy,
|
|
366
|
-
ariaDescribedBy: ariaDescribedBy,
|
|
367
|
-
format: format,
|
|
368
|
-
formatPlaceholder: formatPlaceholder,
|
|
369
|
-
disabled: disabled,
|
|
370
|
-
title: title,
|
|
371
|
-
validityStyles: validityStyles,
|
|
372
|
-
validationMessage: validationMessage,
|
|
373
|
-
required: required,
|
|
374
|
-
min: min,
|
|
375
|
-
max: max,
|
|
376
|
-
minTime: minTime,
|
|
377
|
-
maxTime: maxTime,
|
|
378
|
-
name: name,
|
|
379
|
-
tabIndex: !this.show ? tabIndex : -1,
|
|
380
|
-
valid: this.validity.valid,
|
|
381
|
-
value: this.value,
|
|
382
|
-
onChange: this.handleValueChange,
|
|
383
|
-
steps: this.props.steps,
|
|
384
|
-
label: undefined,
|
|
385
|
-
placeholder: !this.state.focused ? this.props.placeholder : null,
|
|
386
|
-
ariaExpanded: this.show,
|
|
387
|
-
size: null,
|
|
388
|
-
fillMode: null,
|
|
389
|
-
rounded: null
|
|
390
|
-
};
|
|
391
|
-
var dateTimePicker = (React.createElement(AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.handleBlur, onSyncFocus: this.props.onFocus, onSyncBlur: this.props.onBlur }, function (_a) {
|
|
392
|
-
var _b;
|
|
393
|
-
var onFocus = _a.onFocus, onBlur = _a.onBlur;
|
|
394
|
-
return (React.createElement(React.Fragment, null,
|
|
395
|
-
React.createElement("div", { ref: function (div) {
|
|
396
|
-
_this._element = div;
|
|
397
|
-
}, className: classNames('k-input', 'k-datetimepicker', (_b = {},
|
|
398
|
-
_b["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
399
|
-
_b["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
400
|
-
_b["k-input-".concat(fillMode)] = fillMode,
|
|
401
|
-
_b['k-invalid'] = !isValid,
|
|
402
|
-
_b['k-required'] = _this.required,
|
|
403
|
-
_b['k-disabled'] = _this.props.disabled,
|
|
404
|
-
_b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: !_this.mobileMode ? onFocus : undefined, onBlur: onBlur, onClick: _this.mobileMode ? _this.handleDateIconClick : undefined },
|
|
405
|
-
React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: "combobox", ariaControls: _this._popupId, readonly: _this.mobileMode }, dataInputProps)),
|
|
406
|
-
React.createElement(Button, __assign({ tabIndex: -1, type: "button", icon: 'calendar', svgIcon: calendarIcon, onMouseDown: _this.handleIconMouseDown, onClick: _this.mobileMode ? undefined : _this.handleDateIconClick, title: provideLocalizationService(_this)
|
|
407
|
-
.toLanguageString(toggleDateTimeSelector, messages[toggleDateTimeSelector]), className: "k-input-button", rounded: null }, {
|
|
408
|
-
'aria-label': provideLocalizationService(_this)
|
|
409
|
-
.toLanguageString(toggleDateTimeSelector, messages[toggleDateTimeSelector])
|
|
410
|
-
})),
|
|
411
|
-
React.createElement(PopupComponent, { show: _this.show, animate: _this.element !== null, anchor: _this.element, popupClass: "k-datetime-container k-reset", id: _this._popupId, anchorAlign: {
|
|
412
|
-
horizontal: 'left',
|
|
413
|
-
vertical: 'bottom'
|
|
414
|
-
}, popupAlign: {
|
|
415
|
-
horizontal: 'left',
|
|
416
|
-
vertical: 'top'
|
|
417
|
-
} }, !_this.mobileMode && _this.renderPicker())),
|
|
418
|
-
_this.mobileMode && _this.renderAdaptivePopup()));
|
|
419
|
-
}));
|
|
420
|
-
return this.props.label
|
|
421
|
-
? (React.createElement(PickerFloatingLabel, { dateInput: this._dateInput, label: this.props.label, editorId: id, editorValid: isValid, editorDisabled: this.props.disabled, children: dateTimePicker, style: { width: this.props.width } }))
|
|
422
|
-
: dateTimePicker;
|
|
423
|
-
};
|
|
424
|
-
DateTimePickerWithoutContext.prototype.setShow = function (show) {
|
|
425
|
-
var _a = this.props, onOpen = _a.onOpen, onClose = _a.onClose;
|
|
426
|
-
if (this.show === show) {
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
this.setState({ show: show });
|
|
430
|
-
if (show && onOpen) {
|
|
431
|
-
onOpen.call(undefined, {
|
|
432
|
-
target: this
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
if (!show && onClose) {
|
|
436
|
-
onClose.call(undefined, {
|
|
437
|
-
target: this
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
DateTimePickerWithoutContext.prototype.nextTick = function (f) {
|
|
442
|
-
// XXX: use window.setTimeout due to async focus/blur events in IE, and missing relatedTarget prop.
|
|
443
|
-
// XXX: https://github.com/facebook/react/issues/3751
|
|
444
|
-
// Handles multiple focus events happening at the same time.
|
|
445
|
-
clearTimeout(this.nextTickId);
|
|
446
|
-
this.nextTickId = window.setTimeout(function () { return f(); });
|
|
447
|
-
};
|
|
448
|
-
DateTimePickerWithoutContext.prototype.calculateMedia = function (entries) {
|
|
449
|
-
for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
|
|
450
|
-
var entry = entries_1[_i];
|
|
451
|
-
this.setState({ windowWidth: entry.target.clientWidth });
|
|
452
|
-
}
|
|
453
|
-
;
|
|
454
|
-
};
|
|
455
|
-
;
|
|
456
|
-
/**
|
|
457
|
-
* @hidden
|
|
458
|
-
*/
|
|
459
|
-
DateTimePickerWithoutContext.displayName = 'DateTimePicker';
|
|
460
|
-
/**
|
|
461
|
-
* @hidden
|
|
462
|
-
*/
|
|
463
|
-
DateTimePickerWithoutContext.propTypes = {
|
|
464
|
-
className: PropTypes.string,
|
|
465
|
-
defaultShow: PropTypes.bool,
|
|
466
|
-
defaultValue: PropTypes.instanceOf(Date),
|
|
467
|
-
disabled: PropTypes.bool,
|
|
468
|
-
focusedDate: PropTypes.instanceOf(Date),
|
|
469
|
-
format: PropTypes.oneOfType([
|
|
470
|
-
PropTypes.string,
|
|
471
|
-
PropTypes.shape({
|
|
472
|
-
skeleton: PropTypes.string,
|
|
473
|
-
pattern: PropTypes.string,
|
|
474
|
-
date: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
|
|
475
|
-
time: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
|
|
476
|
-
datetime: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
|
|
477
|
-
era: PropTypes.oneOf(['narrow', 'short', 'long']),
|
|
478
|
-
year: PropTypes.oneOf(['numeric', '2-digit']),
|
|
479
|
-
month: PropTypes.oneOf(['numeric', '2-digit', 'narrow', 'short', 'long']),
|
|
480
|
-
day: PropTypes.oneOf(['numeric', '2-digit']),
|
|
481
|
-
weekday: PropTypes.oneOf(['narrow', 'short', 'long']),
|
|
482
|
-
hour: PropTypes.oneOf(['numeric', '2-digit']),
|
|
483
|
-
hour12: PropTypes.bool,
|
|
484
|
-
minute: PropTypes.oneOf(['numeric', '2-digit']),
|
|
485
|
-
second: PropTypes.oneOf(['numeric', '2-digit']),
|
|
486
|
-
timeZoneName: PropTypes.oneOf(['short', 'long'])
|
|
487
|
-
})
|
|
488
|
-
]),
|
|
489
|
-
formatPlaceholder: PropTypes.oneOfType([
|
|
490
|
-
PropTypes.oneOf(['wide', 'narrow', 'short', 'formatPattern']),
|
|
491
|
-
PropTypes.shape({
|
|
492
|
-
year: PropTypes.string,
|
|
493
|
-
month: PropTypes.string,
|
|
494
|
-
day: PropTypes.string,
|
|
495
|
-
hour: PropTypes.string,
|
|
496
|
-
minute: PropTypes.string,
|
|
497
|
-
second: PropTypes.string
|
|
498
|
-
})
|
|
499
|
-
]),
|
|
500
|
-
id: PropTypes.string,
|
|
501
|
-
ariaLabelledBy: PropTypes.string,
|
|
502
|
-
ariaDescribedBy: PropTypes.string,
|
|
503
|
-
min: PropTypes.instanceOf(Date),
|
|
504
|
-
max: PropTypes.instanceOf(Date),
|
|
505
|
-
name: PropTypes.string,
|
|
506
|
-
popupSettings: PropTypes.shape({
|
|
507
|
-
animate: PropTypes.bool,
|
|
508
|
-
appendTo: PropTypes.any,
|
|
509
|
-
popupClass: PropTypes.string
|
|
510
|
-
}),
|
|
511
|
-
show: PropTypes.bool,
|
|
512
|
-
tabIndex: PropTypes.number,
|
|
513
|
-
title: PropTypes.string,
|
|
514
|
-
value: PropTypes.instanceOf(Date),
|
|
515
|
-
weekNumber: PropTypes.bool,
|
|
516
|
-
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
517
|
-
validationMessage: PropTypes.string,
|
|
518
|
-
required: PropTypes.bool,
|
|
519
|
-
validate: PropTypes.bool,
|
|
520
|
-
valid: PropTypes.bool,
|
|
521
|
-
cancelButton: PropTypes.bool,
|
|
522
|
-
size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
|
|
523
|
-
rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
|
|
524
|
-
fillMode: PropTypes.oneOf([null, 'solid', 'flat', 'outline'])
|
|
525
|
-
};
|
|
526
|
-
/**
|
|
527
|
-
* @hidden
|
|
528
|
-
*/
|
|
529
|
-
DateTimePickerWithoutContext.defaultProps = {
|
|
530
|
-
defaultShow: false,
|
|
531
|
-
defaultValue: null,
|
|
532
|
-
disabled: false,
|
|
533
|
-
format: 'g',
|
|
534
|
-
max: MAX_DATE,
|
|
535
|
-
min: MIN_DATE,
|
|
536
|
-
popupSettings: {},
|
|
537
|
-
tabIndex: 0,
|
|
538
|
-
weekNumber: false,
|
|
539
|
-
required: false,
|
|
540
|
-
validityStyles: true,
|
|
541
|
-
cancelButton: true,
|
|
542
|
-
dateInput: DateInput,
|
|
543
|
-
size: 'medium',
|
|
544
|
-
rounded: 'medium',
|
|
545
|
-
fillMode: 'solid'
|
|
546
|
-
};
|
|
547
|
-
return DateTimePickerWithoutContext;
|
|
548
|
-
}(React.Component));
|
|
549
|
-
export { DateTimePickerWithoutContext };
|
|
550
|
-
/**
|
|
551
|
-
* Represents the PropsContext of the `DateTimePicker` component.
|
|
552
|
-
* Used for global configuration of all `DateTimePicker` instances.
|
|
553
|
-
*
|
|
554
|
-
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
555
|
-
*/
|
|
556
|
-
export var DateTimePickerPropsContext = createPropsContext();
|
|
557
|
-
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
558
|
-
/**
|
|
559
|
-
* Represents the KendoReact DateTimePicker Component.
|
|
560
|
-
*
|
|
561
|
-
* Accepts properties of type [DateTimePickerProps]({% slug api_dateinputs_datetimepickerprops %}).
|
|
562
|
-
* Obtaining the `ref` returns an object of type [DateTimePickerHandle]({% slug api_dateinputs_datetimepickerhandle %}).
|
|
563
|
-
*/
|
|
564
|
-
export var DateTimePicker = withPropsContext(DateTimePickerPropsContext, DateTimePickerWithoutContext);
|
|
565
|
-
DateTimePicker.displayName = 'KendoReactDateTimePicker';
|
|
566
|
-
registerForLocalization(DateTimePickerWithoutContext);
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { LocalizationService, DateFormatOptions } from '@progress/kendo-react-intl';
|
|
3
|
-
import { Calendar, CalendarProps } from '../calendar/components/Calendar';
|
|
4
|
-
import { TimePart } from '../timepicker/TimePart';
|
|
5
|
-
import { DateInputIncrementalSteps } from '../dateinput/models';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface DateTimeSelectorChangeEvent<T = DateTimeSelector> {
|
|
10
|
-
nativeEvent?: any;
|
|
11
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
12
|
-
value: Date | null;
|
|
13
|
-
target: T;
|
|
14
|
-
cancelButton?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export interface DateTimeSelectorRejectEvent<T = DateTimeSelector> {
|
|
20
|
-
nativeEvent?: any;
|
|
21
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
22
|
-
value: Date | null;
|
|
23
|
-
target: T;
|
|
24
|
-
cancelButton?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export interface DateTimeSelectorProps<T = DateTimeSelector> {
|
|
30
|
-
value: Date | null;
|
|
31
|
-
onChange: (event: DateTimeSelectorChangeEvent<T>) => void;
|
|
32
|
-
onReject: (event: DateTimeSelectorRejectEvent<T>) => void;
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
cancelButton?: boolean;
|
|
35
|
-
min: Date;
|
|
36
|
-
max: Date;
|
|
37
|
-
minTime?: Date;
|
|
38
|
-
maxTime?: Date;
|
|
39
|
-
weekNumber?: boolean;
|
|
40
|
-
focusedDate?: Date;
|
|
41
|
-
format?: string | DateFormatOptions;
|
|
42
|
-
calendar?: React.ComponentType<CalendarProps<any>>;
|
|
43
|
-
steps?: DateInputIncrementalSteps;
|
|
44
|
-
mobileMode?: boolean;
|
|
45
|
-
footerActions?: boolean;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
export interface DateTimeSelectorState {
|
|
51
|
-
tab: 'date' | 'time';
|
|
52
|
-
dateValue: Date | null;
|
|
53
|
-
timeValue: Date;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
export declare class DateTimeSelector extends React.Component<DateTimeSelectorProps, DateTimeSelectorState> {
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
static defaultProps: {
|
|
63
|
-
footerActions: boolean;
|
|
64
|
-
};
|
|
65
|
-
private _calendar;
|
|
66
|
-
private _timePart;
|
|
67
|
-
private _cancelButton;
|
|
68
|
-
private _acceptButton;
|
|
69
|
-
private _calendarWrap;
|
|
70
|
-
private shouldFocusPart;
|
|
71
|
-
get calendar(): Calendar | null;
|
|
72
|
-
get timePart(): TimePart | null;
|
|
73
|
-
protected get hasDateValue(): boolean;
|
|
74
|
-
protected get localizationService(): LocalizationService;
|
|
75
|
-
constructor(props: DateTimeSelectorProps);
|
|
76
|
-
componentDidUpdate(): void;
|
|
77
|
-
render(): JSX.Element;
|
|
78
|
-
focus: (args?: any) => void;
|
|
79
|
-
private calendarElement;
|
|
80
|
-
protected get minTime(): Date | null;
|
|
81
|
-
protected get maxTime(): Date | null;
|
|
82
|
-
protected normalizeRange(candidate: Date, value: Date | null): Date | null;
|
|
83
|
-
protected hasActiveButton(): boolean | null;
|
|
84
|
-
protected mergeTime(current: Date | null, candidate: Date | null): Date | null;
|
|
85
|
-
protected mergeDate(candidate: Date | null, value: Date): Date | null;
|
|
86
|
-
protected move: (direction: 'left' | 'right') => void;
|
|
87
|
-
private dateTimeFooter;
|
|
88
|
-
handleReject: (event: React.SyntheticEvent<any>) => void;
|
|
89
|
-
handleAccept: (event: React.SyntheticEvent<any>, timeOverride?: Date) => void;
|
|
90
|
-
private handleNowClick;
|
|
91
|
-
private handleCalendarValueChange;
|
|
92
|
-
private handleTimeListContainerChange;
|
|
93
|
-
private handleDateClick;
|
|
94
|
-
private handleTimeClick;
|
|
95
|
-
private handleKeyDown;
|
|
96
|
-
private handleTimePartMount;
|
|
97
|
-
}
|