@progress/kendo-react-dateinputs 6.1.1 → 7.0.0-develop.2
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,587 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.DateRangePicker = exports.DateRangePickerPropsContext = exports.DateRangePickerWithoutContext = void 0;
|
|
30
|
-
var React = require("react");
|
|
31
|
-
var PropTypes = require("prop-types");
|
|
32
|
-
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
33
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
34
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
35
|
-
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
36
|
-
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
37
|
-
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
38
|
-
var package_metadata_1 = require("../package-metadata");
|
|
39
|
-
var DateInput_1 = require("../dateinput/DateInput");
|
|
40
|
-
var MultiViewCalendar_1 = require("../calendar/components/MultiViewCalendar");
|
|
41
|
-
var models_1 = require("../calendar/models");
|
|
42
|
-
var utils_1 = require("../utils");
|
|
43
|
-
var constants_1 = require("../common/constants");
|
|
44
|
-
var messages_1 = require("../messages");
|
|
45
|
-
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
46
|
-
var utils_2 = require("../utils");
|
|
47
|
-
var AdaptiveMode_1 = require("../common/AdaptiveMode");
|
|
48
|
-
var kendo_react_layout_1 = require("@progress/kendo-react-layout");
|
|
49
|
-
/** @hidden */
|
|
50
|
-
var DateRangePickerWithoutContext = /** @class */ (function (_super) {
|
|
51
|
-
__extends(DateRangePickerWithoutContext, _super);
|
|
52
|
-
function DateRangePickerWithoutContext(props) {
|
|
53
|
-
var _this = _super.call(this, props) || this;
|
|
54
|
-
_this._element = null;
|
|
55
|
-
_this._calendar = null;
|
|
56
|
-
_this._startDateInput = React.createRef();
|
|
57
|
-
_this._endDateInput = React.createRef();
|
|
58
|
-
_this._popupId = (0, kendo_react_common_1.guid)();
|
|
59
|
-
_this._startInputId = (0, kendo_react_common_1.guid)();
|
|
60
|
-
_this._endInputId = (0, kendo_react_common_1.guid)();
|
|
61
|
-
_this.shouldFocusDateInput = false;
|
|
62
|
-
_this.shouldFocusCalendar = false;
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
_this.focus = function () {
|
|
67
|
-
if (_this.startDateInput) {
|
|
68
|
-
_this.startDateInput.focus();
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
_this.setCalendarRef = function (calendar) {
|
|
72
|
-
_this._calendar = calendar;
|
|
73
|
-
};
|
|
74
|
-
_this.focusCalendarElement = function () {
|
|
75
|
-
if (_this._calendar && _this._calendar.element) {
|
|
76
|
-
_this._calendar.element.focus({ preventScroll: true });
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
_this.calculateValue = function (props, state) {
|
|
80
|
-
var value = props.value !== undefined
|
|
81
|
-
? props.value
|
|
82
|
-
: state.value;
|
|
83
|
-
return value || models_1.EMPTY_SELECTIONRANGE;
|
|
84
|
-
};
|
|
85
|
-
_this.calculateShow = function (nextProps, nextState) {
|
|
86
|
-
return nextProps.show !== undefined
|
|
87
|
-
? nextProps.show
|
|
88
|
-
: nextState.show;
|
|
89
|
-
};
|
|
90
|
-
_this.renderCalendar = function () {
|
|
91
|
-
var value = _this.value || models_1.EMPTY_SELECTIONRANGE;
|
|
92
|
-
var calendarProps = __assign(__assign({ min: _this.min, max: _this.max, allowReverse: _this.props.allowReverse, mode: 'range', focusedDate: _this.props.focusedDate, disabled: _this.props.disabled, className: _this.mobileMode ? 'k-calendar-lg' : '', mobileMode: _this.mobileMode }, _this.props.calendarSettings), { value: value, dir: _this.props.dir, onChange: _this.handleCalendarChange });
|
|
93
|
-
return _this.props.calendar
|
|
94
|
-
? React.createElement(_this.props.calendar, __assign({}, calendarProps))
|
|
95
|
-
: React.createElement(MultiViewCalendar_1.MultiViewCalendar, __assign({}, calendarProps, { ref: _this.setCalendarRef }));
|
|
96
|
-
};
|
|
97
|
-
_this.renderPopup = function () {
|
|
98
|
-
var popupProps = __assign(__assign({ popupClass: 'k-daterangepicker-popup', animate: _this._element !== null, anchor: _this._element, id: _this._popupId, anchorAlign: {
|
|
99
|
-
horizontal: 'left',
|
|
100
|
-
vertical: 'bottom'
|
|
101
|
-
}, popupAlign: {
|
|
102
|
-
horizontal: 'left',
|
|
103
|
-
vertical: 'top'
|
|
104
|
-
} }, _this.props.popupSettings), { show: _this.show });
|
|
105
|
-
return (_this.props.popup
|
|
106
|
-
? React.createElement(_this.props.popup, __assign({}, popupProps), _this.renderCalendar())
|
|
107
|
-
: React.createElement(kendo_react_popup_1.Popup, __assign({}, popupProps), _this.renderCalendar()));
|
|
108
|
-
};
|
|
109
|
-
_this.renderAdaptivePopup = function () {
|
|
110
|
-
var _a = _this.state.windowWidth, windowWidth = _a === void 0 ? 0 : _a;
|
|
111
|
-
var actionSheetProps = {
|
|
112
|
-
expand: _this.show,
|
|
113
|
-
onClose: function (event) { return _this.handleCancel(event); },
|
|
114
|
-
adaptiveTitle: _this.props.adaptiveTitle,
|
|
115
|
-
windowWidth: windowWidth,
|
|
116
|
-
footer: {
|
|
117
|
-
cancelText: _this.localizationService.toLanguageString(messages_1.dateRangePickerCancel, messages_1.messages[messages_1.dateRangePickerCancel]),
|
|
118
|
-
onCancel: _this.handleCancel,
|
|
119
|
-
applyText: _this.localizationService.toLanguageString(messages_1.dateRangePickerSet, messages_1.messages[messages_1.dateRangePickerSet]),
|
|
120
|
-
onApply: _this.handleBlur
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
return (React.createElement(AdaptiveMode_1.AdaptiveMode, __assign({}, actionSheetProps),
|
|
124
|
-
React.createElement(kendo_react_layout_1.ActionSheetContent, { className: '!k-overflow-hidden' },
|
|
125
|
-
React.createElement("div", { className: 'k-scrollable-wrap' }, _this.renderCalendar()))));
|
|
126
|
-
};
|
|
127
|
-
_this.handleReverseClick = function (event) {
|
|
128
|
-
var value = {
|
|
129
|
-
start: _this.value.end,
|
|
130
|
-
end: _this.value.start
|
|
131
|
-
};
|
|
132
|
-
var args = {
|
|
133
|
-
syntheticEvent: event,
|
|
134
|
-
nativeEvent: event.nativeEvent
|
|
135
|
-
};
|
|
136
|
-
_this.handleChange(value, args);
|
|
137
|
-
};
|
|
138
|
-
_this.handleReverseMouseDown = function (event) {
|
|
139
|
-
event.preventDefault();
|
|
140
|
-
};
|
|
141
|
-
_this.handleFocus = function (event) {
|
|
142
|
-
clearTimeout(_this.nextTickId);
|
|
143
|
-
if (!_this.shouldFocusDateInput) {
|
|
144
|
-
_this.setShow(true);
|
|
145
|
-
if (_this.mobileMode) {
|
|
146
|
-
_this.setState({ currentValue: _this.value });
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
var onFocus = _this.props.onFocus;
|
|
150
|
-
if (onFocus) {
|
|
151
|
-
onFocus.call(undefined, event);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
_this.handleBlur = function (event) {
|
|
155
|
-
_this.nextTick(function () {
|
|
156
|
-
_this.setShow(false);
|
|
157
|
-
});
|
|
158
|
-
var onBlur = _this.props.onBlur;
|
|
159
|
-
if (onBlur) {
|
|
160
|
-
onBlur.call(undefined, event);
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
_this.handleCancel = function (event) {
|
|
164
|
-
_this.nextTick(function () {
|
|
165
|
-
_this.setShow(false);
|
|
166
|
-
_this.setState({ currentValue: models_1.EMPTY_SELECTIONRANGE });
|
|
167
|
-
});
|
|
168
|
-
var onCancel = _this.props.onCancel;
|
|
169
|
-
if (onCancel) {
|
|
170
|
-
onCancel.call(undefined, event);
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
_this.handleEndChange = function (event) {
|
|
174
|
-
var value = {
|
|
175
|
-
start: _this.value.start,
|
|
176
|
-
end: (0, kendo_date_math_1.cloneDate)(event.value || undefined)
|
|
177
|
-
};
|
|
178
|
-
_this.handleChange(value, event);
|
|
179
|
-
};
|
|
180
|
-
_this.handleStartChange = function (event) {
|
|
181
|
-
var value = {
|
|
182
|
-
start: (0, kendo_date_math_1.cloneDate)(event.value || undefined),
|
|
183
|
-
end: _this.value.end
|
|
184
|
-
};
|
|
185
|
-
_this.handleChange(value, event);
|
|
186
|
-
};
|
|
187
|
-
_this.extractRangeFromValue = function (event) {
|
|
188
|
-
if (!Array.isArray(event.value) && !(event.value instanceof Date)) {
|
|
189
|
-
return event.value || models_1.EMPTY_SELECTIONRANGE;
|
|
190
|
-
}
|
|
191
|
-
var candidate = Array.isArray(event.value) ? event.value[0] : event.value;
|
|
192
|
-
return {
|
|
193
|
-
start: _this.value.end !== null ? candidate : _this.value.start,
|
|
194
|
-
end: _this.value.start !== null ? candidate : _this.value.end
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
_this.handleCalendarChange = function (event) {
|
|
198
|
-
var value = _this.extractRangeFromValue(event);
|
|
199
|
-
_this.handleChange(value, event);
|
|
200
|
-
};
|
|
201
|
-
_this.handleKeyDown = function (event) {
|
|
202
|
-
var keyCode = event.keyCode, altKey = event.altKey;
|
|
203
|
-
var activeElement = (0, kendo_react_common_1.getActiveElement)(document);
|
|
204
|
-
if (keyCode === kendo_react_common_1.Keys.esc) {
|
|
205
|
-
event.preventDefault();
|
|
206
|
-
_this.shouldFocusDateInput = true;
|
|
207
|
-
_this.setShow(false);
|
|
208
|
-
}
|
|
209
|
-
else if (altKey && keyCode === kendo_react_common_1.Keys.down) {
|
|
210
|
-
event.preventDefault();
|
|
211
|
-
_this.shouldFocusCalendar = true;
|
|
212
|
-
_this.setShow(true);
|
|
213
|
-
}
|
|
214
|
-
else if (keyCode === kendo_react_common_1.Keys.tab
|
|
215
|
-
&& _this.show
|
|
216
|
-
&& _this._calendar
|
|
217
|
-
&& _this._calendar.element
|
|
218
|
-
&& _this.endDateInput
|
|
219
|
-
&& _this.endDateInput.element
|
|
220
|
-
&& document
|
|
221
|
-
&& activeElement === _this.endDateInput.element) {
|
|
222
|
-
event.preventDefault();
|
|
223
|
-
_this.focusCalendarElement();
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
_this.handleChange = function (value, event) {
|
|
227
|
-
_this.setState({ value: value });
|
|
228
|
-
_this.valueDuringOnChange = value;
|
|
229
|
-
var onChange = _this.props.onChange;
|
|
230
|
-
if (onChange) {
|
|
231
|
-
var args = {
|
|
232
|
-
syntheticEvent: event.syntheticEvent,
|
|
233
|
-
nativeEvent: event.nativeEvent,
|
|
234
|
-
value: _this.value,
|
|
235
|
-
show: _this.show,
|
|
236
|
-
target: _this
|
|
237
|
-
};
|
|
238
|
-
onChange.call(undefined, args);
|
|
239
|
-
}
|
|
240
|
-
_this.valueDuringOnChange = undefined;
|
|
241
|
-
};
|
|
242
|
-
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
243
|
-
_this.state = {
|
|
244
|
-
show: _this.props.show || _this.props.defaultShow || DateRangePickerWithoutContext.defaultProps.defaultShow,
|
|
245
|
-
value: _this.props.value || _this.props.defaultValue || DateRangePickerWithoutContext.defaultProps.defaultValue,
|
|
246
|
-
currentValue: models_1.EMPTY_SELECTIONRANGE
|
|
247
|
-
};
|
|
248
|
-
_this.nextTick = _this.nextTick.bind(_this);
|
|
249
|
-
_this.setShow = _this.setShow.bind(_this);
|
|
250
|
-
_this.focusCalendarElement = _this.focusCalendarElement.bind(_this);
|
|
251
|
-
_this.focusDateInputElement = _this.focusDateInputElement.bind(_this);
|
|
252
|
-
return _this;
|
|
253
|
-
}
|
|
254
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "element", {
|
|
255
|
-
/**
|
|
256
|
-
* Gets the wrapping element of the DateRangePicker.
|
|
257
|
-
*/
|
|
258
|
-
get: function () {
|
|
259
|
-
return this._element;
|
|
260
|
-
},
|
|
261
|
-
enumerable: false,
|
|
262
|
-
configurable: true
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "startDateInput", {
|
|
265
|
-
/**
|
|
266
|
-
* Gets the start DateInput component inside the DatePicker component.
|
|
267
|
-
*/
|
|
268
|
-
get: function () {
|
|
269
|
-
return this._startDateInput.current;
|
|
270
|
-
},
|
|
271
|
-
enumerable: false,
|
|
272
|
-
configurable: true
|
|
273
|
-
});
|
|
274
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "endDateInput", {
|
|
275
|
-
/**
|
|
276
|
-
* Gets the end DateInput component inside the DatePicker component.
|
|
277
|
-
*/
|
|
278
|
-
get: function () {
|
|
279
|
-
return this._endDateInput.current;
|
|
280
|
-
},
|
|
281
|
-
enumerable: false,
|
|
282
|
-
configurable: true
|
|
283
|
-
});
|
|
284
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "calendar", {
|
|
285
|
-
/**
|
|
286
|
-
* Gets the MultiVieCalendar inside the DateRangePicker.
|
|
287
|
-
*/
|
|
288
|
-
get: function () {
|
|
289
|
-
return this._calendar;
|
|
290
|
-
},
|
|
291
|
-
enumerable: false,
|
|
292
|
-
configurable: true
|
|
293
|
-
});
|
|
294
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "value", {
|
|
295
|
-
/**
|
|
296
|
-
* Gets the value of the DateRangePicker.
|
|
297
|
-
*/
|
|
298
|
-
get: function () {
|
|
299
|
-
var value = this.valueDuringOnChange !== undefined
|
|
300
|
-
? this.valueDuringOnChange
|
|
301
|
-
: this.props.value !== undefined
|
|
302
|
-
? this.props.value
|
|
303
|
-
: this.state.value;
|
|
304
|
-
return value || models_1.EMPTY_SELECTIONRANGE;
|
|
305
|
-
},
|
|
306
|
-
enumerable: false,
|
|
307
|
-
configurable: true
|
|
308
|
-
});
|
|
309
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "show", {
|
|
310
|
-
/**
|
|
311
|
-
* Gets the popup state of the DateRangePicker.
|
|
312
|
-
*/
|
|
313
|
-
get: function () {
|
|
314
|
-
return this.showDuringOnChange !== undefined
|
|
315
|
-
? this.showDuringOnChange
|
|
316
|
-
: this.props.show !== undefined
|
|
317
|
-
? this.props.show
|
|
318
|
-
: this.state.show;
|
|
319
|
-
},
|
|
320
|
-
enumerable: false,
|
|
321
|
-
configurable: true
|
|
322
|
-
});
|
|
323
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "min", {
|
|
324
|
-
get: function () {
|
|
325
|
-
return this.props.min !== undefined
|
|
326
|
-
? this.props.min
|
|
327
|
-
: DateRangePickerWithoutContext.defaultProps.min;
|
|
328
|
-
},
|
|
329
|
-
enumerable: false,
|
|
330
|
-
configurable: true
|
|
331
|
-
});
|
|
332
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "max", {
|
|
333
|
-
get: function () {
|
|
334
|
-
return this.props.max !== undefined
|
|
335
|
-
? this.props.max
|
|
336
|
-
: DateRangePickerWithoutContext.defaultProps.max;
|
|
337
|
-
},
|
|
338
|
-
enumerable: false,
|
|
339
|
-
configurable: true
|
|
340
|
-
});
|
|
341
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "document", {
|
|
342
|
-
get: function () {
|
|
343
|
-
if (!kendo_react_common_2.canUseDOM) {
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
// useful only for user actions
|
|
347
|
-
return (this.element && this.element.ownerDocument) || document;
|
|
348
|
-
},
|
|
349
|
-
enumerable: false,
|
|
350
|
-
configurable: true
|
|
351
|
-
});
|
|
352
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "localizationService", {
|
|
353
|
-
get: function () {
|
|
354
|
-
var localization = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
355
|
-
return localization;
|
|
356
|
-
},
|
|
357
|
-
enumerable: false,
|
|
358
|
-
configurable: true
|
|
359
|
-
});
|
|
360
|
-
Object.defineProperty(DateRangePickerWithoutContext.prototype, "mobileMode", {
|
|
361
|
-
/**
|
|
362
|
-
* The mobile mode of the DateRangePicker.
|
|
363
|
-
*/
|
|
364
|
-
get: function () {
|
|
365
|
-
var isAdaptive = this.state.windowWidth && this.state.windowWidth <= constants_1.MOBILE_MEDIUM_DEVISE && this.props.adaptive;
|
|
366
|
-
return !!isAdaptive;
|
|
367
|
-
},
|
|
368
|
-
enumerable: false,
|
|
369
|
-
configurable: true
|
|
370
|
-
});
|
|
371
|
-
/**
|
|
372
|
-
* @hidden
|
|
373
|
-
*/
|
|
374
|
-
DateRangePickerWithoutContext.prototype.componentDidMount = function () {
|
|
375
|
-
var _a;
|
|
376
|
-
this.observerResize = kendo_react_common_2.canUseDOM && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this));
|
|
377
|
-
if (this.show) {
|
|
378
|
-
// If defaultShow is true during the initial render, the popup is not aligned.
|
|
379
|
-
this.forceUpdate();
|
|
380
|
-
}
|
|
381
|
-
if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
|
|
382
|
-
this.observerResize.observe(this.document.body);
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
/**
|
|
386
|
-
* @hidden
|
|
387
|
-
*/
|
|
388
|
-
DateRangePickerWithoutContext.prototype.componentDidUpdate = function () {
|
|
389
|
-
if (this.shouldFocusCalendar) {
|
|
390
|
-
this.focusCalendarElement();
|
|
391
|
-
}
|
|
392
|
-
if (this.shouldFocusDateInput) {
|
|
393
|
-
this.focusDateInputElement();
|
|
394
|
-
}
|
|
395
|
-
this.shouldFocusCalendar = false;
|
|
396
|
-
this.shouldFocusDateInput = false;
|
|
397
|
-
};
|
|
398
|
-
/**
|
|
399
|
-
* @hidden
|
|
400
|
-
*/
|
|
401
|
-
DateRangePickerWithoutContext.prototype.componentWillUnmount = function () {
|
|
402
|
-
var _a;
|
|
403
|
-
clearTimeout(this.nextTickId);
|
|
404
|
-
if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
|
|
405
|
-
this.observerResize.disconnect();
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
/**
|
|
409
|
-
* @hidden
|
|
410
|
-
*/
|
|
411
|
-
DateRangePickerWithoutContext.prototype.render = function () {
|
|
412
|
-
var _this = this;
|
|
413
|
-
var value = this.value || models_1.EMPTY_SELECTIONRANGE;
|
|
414
|
-
var valueToShow = (this.mobileMode && this.show) ? this.state.currentValue : value;
|
|
415
|
-
var startDateInputId = (this.props.startDateInputSettings || {}).id || this._startInputId;
|
|
416
|
-
var endDateInputId = (this.props.endDateInputSettings || {}).id || this._endInputId;
|
|
417
|
-
var rootClassName = (0, kendo_react_common_1.classNames)('k-daterangepicker', {
|
|
418
|
-
'k-disabled': this.props.disabled
|
|
419
|
-
}, this.props.className);
|
|
420
|
-
var startMessage = this.localizationService.toLanguageString(messages_1.start, messages_1.messages[messages_1.start]);
|
|
421
|
-
var endMessage = this.localizationService.toLanguageString(messages_1.end, messages_1.messages[messages_1.end]);
|
|
422
|
-
var separatorMessage = this.localizationService.toLanguageString(messages_1.separator, messages_1.messages[messages_1.separator]);
|
|
423
|
-
var startDateInputProps = __assign(__assign({ disableSelection: this.mobileMode && true, label: startMessage, format: this.props.format, min: this.min, max: this.max, id: this._startInputId, disabled: this.props.disabled, valid: this.props.valid, tabIndex: this.props.tabIndex, ariaExpanded: this.show }, this.props.startDateInputSettings), { value: valueToShow.start, onChange: this.handleStartChange });
|
|
424
|
-
var endDateInputProps = __assign(__assign({ disableSelection: this.mobileMode && true, label: endMessage, format: this.props.format, min: this.min, max: this.max, id: this._endInputId, disabled: this.props.disabled, valid: this.props.valid, tabIndex: this.props.tabIndex, ariaExpanded: this.show }, this.props.endDateInputSettings), { value: valueToShow.end, onChange: this.handleEndChange });
|
|
425
|
-
var reverseButton = (React.createElement(kendo_react_buttons_1.Button, __assign({ type: "button", className: "k-select", fillMode: "flat", title: (0, kendo_react_intl_1.provideLocalizationService)(this)
|
|
426
|
-
.toLanguageString(messages_1.swapStartEnd, messages_1.messages[messages_1.swapStartEnd]), onMouseDown: this.handleReverseMouseDown, onClick: this.handleReverseClick }, {
|
|
427
|
-
'aria-controls': startDateInputId + ' ' + endDateInputId,
|
|
428
|
-
'aria-label': (0, kendo_react_intl_1.provideLocalizationService)(this)
|
|
429
|
-
.toLanguageString(messages_1.swapStartEnd, messages_1.messages[messages_1.swapStartEnd])
|
|
430
|
-
}),
|
|
431
|
-
React.createElement(kendo_react_common_1.IconWrap, { style: { transform: 'rotate(90deg)' }, name: "arrows-swap", icon: kendo_svg_icons_1.arrowsSwapIcon })));
|
|
432
|
-
return (React.createElement(React.Fragment, null,
|
|
433
|
-
React.createElement("span", { ref: function (span) {
|
|
434
|
-
_this._element = span;
|
|
435
|
-
}, className: rootClassName, style: this.props.style, id: this.props.id, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, tabIndex: this.props.tabIndex, onFocus: this.handleFocus, onBlur: !this.mobileMode ? this.handleBlur : undefined, onKeyDown: this.handleKeyDown, dir: this.props.dir },
|
|
436
|
-
this.props.startDateInput
|
|
437
|
-
? React.createElement(this.props.startDateInput, __assign({}, startDateInputProps))
|
|
438
|
-
: React.createElement(DateInput_1.DateInput, __assign({}, startDateInputProps, { ref: this._startDateInput, ariaRole: "combobox", ariaControls: this._popupId, readonly: this.mobileMode })),
|
|
439
|
-
(this.props.allowReverse
|
|
440
|
-
|| (this.props.calendarSettings && this.props.calendarSettings.allowReverse))
|
|
441
|
-
&& this.props.swapButton
|
|
442
|
-
? (reverseButton)
|
|
443
|
-
: (separatorMessage),
|
|
444
|
-
this.props.endDateInput
|
|
445
|
-
? React.createElement(this.props.endDateInput, __assign({}, endDateInputProps))
|
|
446
|
-
: React.createElement(DateInput_1.DateInput, __assign({}, endDateInputProps, { ref: this._endDateInput, ariaRole: "combobox", ariaControls: this._popupId, readonly: this.mobileMode })),
|
|
447
|
-
!this.mobileMode && this.renderPopup()),
|
|
448
|
-
this.mobileMode && this.renderAdaptivePopup()));
|
|
449
|
-
};
|
|
450
|
-
DateRangePickerWithoutContext.prototype.focusDateInputElement = function () {
|
|
451
|
-
if (!document || !this.startDateInput || !this.startDateInput.element
|
|
452
|
-
|| !this.endDateInput || !this.endDateInput.element) {
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
var activeElement = (0, kendo_react_common_1.getActiveElement)(document);
|
|
456
|
-
if ((this.value.start === null || this.value.end !== null)
|
|
457
|
-
&& activeElement !== this.endDateInput.element) {
|
|
458
|
-
this.startDateInput.element.focus({ preventScroll: true });
|
|
459
|
-
}
|
|
460
|
-
else if (activeElement !== this.startDateInput.element) {
|
|
461
|
-
this.endDateInput.element.focus({ preventScroll: true });
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
DateRangePickerWithoutContext.prototype.nextTick = function (f) {
|
|
465
|
-
// XXX: use window.setTimeout due to async focus/blur events in IE, and missing relatedTarget prop.
|
|
466
|
-
// XXX: https://github.com/facebook/react/issues/3751
|
|
467
|
-
// Handles multiple focus events happening at the same time.
|
|
468
|
-
clearTimeout(this.nextTickId);
|
|
469
|
-
this.nextTickId = window.setTimeout(function () { return f(); });
|
|
470
|
-
};
|
|
471
|
-
DateRangePickerWithoutContext.prototype.setShow = function (show) {
|
|
472
|
-
var _a = this.props, onOpen = _a.onOpen, onClose = _a.onClose;
|
|
473
|
-
if (this.show === show) {
|
|
474
|
-
return;
|
|
475
|
-
}
|
|
476
|
-
this.setState({ show: show });
|
|
477
|
-
if (show && onOpen) {
|
|
478
|
-
onOpen.call(undefined, {
|
|
479
|
-
target: this
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
if (!show && onClose) {
|
|
483
|
-
onClose.call(undefined, {
|
|
484
|
-
target: this
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
DateRangePickerWithoutContext.prototype.calculateMedia = function (entries) {
|
|
489
|
-
for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
|
|
490
|
-
var entry = entries_1[_i];
|
|
491
|
-
this.setState({ windowWidth: entry.target.clientWidth });
|
|
492
|
-
}
|
|
493
|
-
;
|
|
494
|
-
};
|
|
495
|
-
;
|
|
496
|
-
/**
|
|
497
|
-
* @hidden
|
|
498
|
-
*/
|
|
499
|
-
DateRangePickerWithoutContext.displayName = 'DateRangePicker';
|
|
500
|
-
/**
|
|
501
|
-
* @hidden
|
|
502
|
-
*/
|
|
503
|
-
DateRangePickerWithoutContext.propTypes = {
|
|
504
|
-
allowReverse: PropTypes.bool,
|
|
505
|
-
calendarSettings: PropTypes.any,
|
|
506
|
-
className: PropTypes.string,
|
|
507
|
-
defaultShow: PropTypes.bool,
|
|
508
|
-
defaultValue: PropTypes.shape({
|
|
509
|
-
start: (0, utils_2.nullable)(PropTypes.instanceOf(Date).isRequired),
|
|
510
|
-
end: (0, utils_2.nullable)(PropTypes.instanceOf(Date).isRequired)
|
|
511
|
-
}),
|
|
512
|
-
disabled: PropTypes.bool,
|
|
513
|
-
endDateInputSettings: PropTypes.shape(DateInput_1.DateInputWithoutContext.propTypes),
|
|
514
|
-
focusedDate: PropTypes.instanceOf(Date),
|
|
515
|
-
format: PropTypes.oneOfType([
|
|
516
|
-
PropTypes.string,
|
|
517
|
-
PropTypes.shape({
|
|
518
|
-
skeleton: PropTypes.string,
|
|
519
|
-
pattern: PropTypes.string,
|
|
520
|
-
date: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
|
|
521
|
-
time: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
|
|
522
|
-
datetime: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
|
|
523
|
-
era: PropTypes.oneOf(['narrow', 'short', 'long']),
|
|
524
|
-
year: PropTypes.oneOf(['numeric', '2-digit']),
|
|
525
|
-
month: PropTypes.oneOf(['numeric', '2-digit', 'narrow', 'short', 'long']),
|
|
526
|
-
day: PropTypes.oneOf(['numeric', '2-digit']),
|
|
527
|
-
weekday: PropTypes.oneOf(['narrow', 'short', 'long']),
|
|
528
|
-
hour: PropTypes.oneOf(['numeric', '2-digit']),
|
|
529
|
-
hour12: PropTypes.bool,
|
|
530
|
-
minute: PropTypes.oneOf(['numeric', '2-digit']),
|
|
531
|
-
second: PropTypes.oneOf(['numeric', '2-digit']),
|
|
532
|
-
timeZoneName: PropTypes.oneOf(['short', 'long'])
|
|
533
|
-
})
|
|
534
|
-
]),
|
|
535
|
-
id: PropTypes.string,
|
|
536
|
-
ariaLabelledBy: PropTypes.string,
|
|
537
|
-
ariaDescribedBy: PropTypes.string,
|
|
538
|
-
max: PropTypes.instanceOf(Date),
|
|
539
|
-
min: PropTypes.instanceOf(Date),
|
|
540
|
-
onBlur: PropTypes.func,
|
|
541
|
-
onChange: PropTypes.func,
|
|
542
|
-
onFocus: PropTypes.func,
|
|
543
|
-
popupSettings: PropTypes.any,
|
|
544
|
-
show: PropTypes.bool,
|
|
545
|
-
startDateInputSettings: PropTypes.any,
|
|
546
|
-
style: PropTypes.any,
|
|
547
|
-
swapButton: PropTypes.any,
|
|
548
|
-
tabIndex: PropTypes.number,
|
|
549
|
-
dir: PropTypes.string,
|
|
550
|
-
value: PropTypes.shape({
|
|
551
|
-
start: (0, utils_2.nullable)(PropTypes.instanceOf(Date).isRequired),
|
|
552
|
-
end: (0, utils_2.nullable)(PropTypes.instanceOf(Date).isRequired)
|
|
553
|
-
})
|
|
554
|
-
};
|
|
555
|
-
/**
|
|
556
|
-
* @hidden
|
|
557
|
-
*/
|
|
558
|
-
DateRangePickerWithoutContext.defaultProps = {
|
|
559
|
-
allowReverse: false,
|
|
560
|
-
defaultShow: false,
|
|
561
|
-
defaultValue: models_1.EMPTY_SELECTIONRANGE,
|
|
562
|
-
disabled: false,
|
|
563
|
-
format: 'd',
|
|
564
|
-
max: utils_1.MAX_DATE,
|
|
565
|
-
min: utils_1.MIN_DATE,
|
|
566
|
-
swapButton: false
|
|
567
|
-
};
|
|
568
|
-
return DateRangePickerWithoutContext;
|
|
569
|
-
}(React.Component));
|
|
570
|
-
exports.DateRangePickerWithoutContext = DateRangePickerWithoutContext;
|
|
571
|
-
/**
|
|
572
|
-
* Represents the PropsContext of the `DateRangePicker` component.
|
|
573
|
-
* Used for global configuration of all `DateRangePicker` instances.
|
|
574
|
-
*
|
|
575
|
-
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
576
|
-
*/
|
|
577
|
-
exports.DateRangePickerPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
578
|
-
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
579
|
-
/**
|
|
580
|
-
* Represents the KendoReact DateRangePicker Component.
|
|
581
|
-
*
|
|
582
|
-
* Accepts properties of type [DateRangePickerProps]({% slug api_dateinputs_daterangepickerprops %}).
|
|
583
|
-
* Obtaining the `ref` returns an object of type [DateRangePickerHandle]({% slug api_dateinputs_daterangepickerhandle %}).
|
|
584
|
-
*/
|
|
585
|
-
exports.DateRangePicker = (0, kendo_react_common_1.withPropsContext)(exports.DateRangePickerPropsContext, DateRangePickerWithoutContext);
|
|
586
|
-
exports.DateRangePicker.displayName = 'KendoReactDateRangePicker';
|
|
587
|
-
(0, kendo_react_intl_1.registerForLocalization)(DateRangePickerWithoutContext);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MultiViewCalendarSettings } from '../../calendar/models/MultiViewCalendarSettings';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the settings that can be passed to the MultiViewCalendar inside the DateRangePicker.
|
|
4
|
-
*/
|
|
5
|
-
export interface DateRangePickerCalendarSettings extends MultiViewCalendarSettings {
|
|
6
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DateRangePickerCalendarSettings } from './DateRangePickerCalendarSettings';
|
|
2
|
-
import { DateRangePickerDateInputSettings } from './DateRangePickerDateInputSettings';
|
|
3
|
-
import { DateRangePickerSettings } from './DateRangePickerSettings';
|
|
4
|
-
import { DateRangePickerPopupSettings } from './DateRangePickerPopupSettings';
|
|
5
|
-
export { DateRangePickerCalendarSettings, DateRangePickerDateInputSettings, DateRangePickerSettings, DateRangePickerPopupSettings };
|