@progress/kendo-react-dateinputs 6.1.1 → 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,90 +0,0 @@
|
|
|
1
|
-
var normalize = function (x) { return Math.max(x, 0); };
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
var ScrollAction = /** @class */ (function () {
|
|
6
|
-
function ScrollAction(offset) {
|
|
7
|
-
this.offset = offset;
|
|
8
|
-
}
|
|
9
|
-
return ScrollAction;
|
|
10
|
-
}());
|
|
11
|
-
export { ScrollAction };
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var PageAction = /** @class */ (function () {
|
|
16
|
-
function PageAction(skip) {
|
|
17
|
-
this.skip = skip;
|
|
18
|
-
}
|
|
19
|
-
return PageAction;
|
|
20
|
-
}());
|
|
21
|
-
export { PageAction };
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
var ScrollerService = /** @class */ (function () {
|
|
26
|
-
function ScrollerService(onScrollAction, onPageAction) {
|
|
27
|
-
this.onScrollAction = onScrollAction;
|
|
28
|
-
this.onPageAction = onPageAction;
|
|
29
|
-
this.direction = 'vertical';
|
|
30
|
-
this.firstLoaded = 0;
|
|
31
|
-
this.lastLoaded = 0;
|
|
32
|
-
this.lastScrollTop = 0;
|
|
33
|
-
this.take = 0;
|
|
34
|
-
this.total = 0;
|
|
35
|
-
this.rowHeightService = null;
|
|
36
|
-
this.bottomOffset = 0;
|
|
37
|
-
this.topOffset = 0;
|
|
38
|
-
}
|
|
39
|
-
ScrollerService.prototype.create = function (rowHeightService, skip, take, total, topOffset, bottomOffset, direction) {
|
|
40
|
-
if (topOffset === void 0) { topOffset = 0; }
|
|
41
|
-
if (bottomOffset === void 0) { bottomOffset = 0; }
|
|
42
|
-
if (direction === void 0) { direction = 'vertical'; }
|
|
43
|
-
this.rowHeightService = rowHeightService;
|
|
44
|
-
this.firstLoaded = skip;
|
|
45
|
-
this.lastLoaded = skip + take;
|
|
46
|
-
this.take = take;
|
|
47
|
-
this.total = total;
|
|
48
|
-
this.lastScrollTop = 0;
|
|
49
|
-
this.topOffset = topOffset;
|
|
50
|
-
this.bottomOffset = bottomOffset;
|
|
51
|
-
this.direction = direction;
|
|
52
|
-
var offsetBufferRows = this.rowsForHeight(topOffset);
|
|
53
|
-
var skipWithOffset = normalize(skip - offsetBufferRows);
|
|
54
|
-
this.onScrollAction(new ScrollAction(this.rowOffset(skipWithOffset)));
|
|
55
|
-
this.onPageAction(new PageAction(skipWithOffset));
|
|
56
|
-
};
|
|
57
|
-
ScrollerService.prototype.onScroll = function (_a) {
|
|
58
|
-
var scrollLeft = _a.scrollLeft, scrollTop = _a.scrollTop, offsetHeight = _a.offsetHeight, offsetWidth = _a.offsetWidth;
|
|
59
|
-
var scrollPosition = this.direction === 'vertical' ? scrollTop : scrollLeft;
|
|
60
|
-
var offsetSize = this.direction === 'vertical' ? offsetHeight : offsetWidth;
|
|
61
|
-
if (this.lastScrollTop === scrollPosition || !this.rowHeightService) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
var up = this.lastScrollTop >= scrollPosition;
|
|
65
|
-
this.lastScrollTop = scrollPosition;
|
|
66
|
-
var firstItemIndex = this.rowHeightService.index(normalize(scrollPosition - this.topOffset));
|
|
67
|
-
var lastItemIndex = this.rowHeightService.index(normalize(scrollPosition + offsetSize - this.bottomOffset));
|
|
68
|
-
if (!up && lastItemIndex >= this.lastLoaded && this.lastLoaded < this.total) {
|
|
69
|
-
this.firstLoaded = firstItemIndex;
|
|
70
|
-
this.onScrollAction(new ScrollAction(this.rowOffset(firstItemIndex)));
|
|
71
|
-
this.lastLoaded = Math.min(this.firstLoaded + this.take, this.total);
|
|
72
|
-
this.onPageAction(new PageAction(this.firstLoaded));
|
|
73
|
-
}
|
|
74
|
-
if (up && firstItemIndex <= this.firstLoaded) {
|
|
75
|
-
var nonVisibleBuffer = Math.floor(this.take * 0.3);
|
|
76
|
-
this.firstLoaded = normalize(firstItemIndex - nonVisibleBuffer);
|
|
77
|
-
this.onScrollAction(new ScrollAction(this.rowOffset(this.firstLoaded)));
|
|
78
|
-
this.lastLoaded = Math.min(this.firstLoaded + this.take, this.total);
|
|
79
|
-
this.onPageAction(new PageAction(this.firstLoaded));
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
ScrollerService.prototype.rowOffset = function (index) {
|
|
83
|
-
return this.rowHeightService ? this.rowHeightService.offset(index) + this.topOffset : 0;
|
|
84
|
-
};
|
|
85
|
-
ScrollerService.prototype.rowsForHeight = function (height) {
|
|
86
|
-
return this.rowHeightService ? Math.ceil(height / this.rowHeightService.height(0)) : 0;
|
|
87
|
-
};
|
|
88
|
-
return ScrollerService;
|
|
89
|
-
}());
|
|
90
|
-
export { ScrollerService };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface DateInputsPopupSettings {
|
|
2
|
-
/**
|
|
3
|
-
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
4
|
-
*/
|
|
5
|
-
animate?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Controls the popup container. By default, the popup is appended to the [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body) element.
|
|
8
|
-
*/
|
|
9
|
-
appendTo?: HTMLElement;
|
|
10
|
-
/**
|
|
11
|
-
* Specifies a list of CSS classes that are used for styling the popup.
|
|
12
|
-
*/
|
|
13
|
-
popupClass?: string;
|
|
14
|
-
}
|
|
@@ -1,391 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Calendar = exports.CalendarPropsContext = exports.CalendarWithoutContext = void 0;
|
|
19
|
-
var React = require("react");
|
|
20
|
-
var PropTypes = require("prop-types");
|
|
21
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
22
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
23
|
-
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
24
|
-
var package_metadata_1 = require("../../package-metadata");
|
|
25
|
-
var ViewList_1 = require("./ViewList");
|
|
26
|
-
var Navigation_1 = require("./Navigation");
|
|
27
|
-
var models_1 = require("../models");
|
|
28
|
-
var utils_1 = require("../../utils");
|
|
29
|
-
var services_1 = require("../services");
|
|
30
|
-
var virtualizationProp = function (x) { return x ? x.virtualization : null; };
|
|
31
|
-
var calculateValue = function (min, max, stateValue, propValue) {
|
|
32
|
-
if (min === void 0) { min = CalendarWithoutContext.defaultProps.min; }
|
|
33
|
-
if (max === void 0) { max = CalendarWithoutContext.defaultProps.max; }
|
|
34
|
-
return propValue !== undefined
|
|
35
|
-
? propValue !== null && (0, utils_1.isInRange)((0, kendo_date_math_1.getDate)(propValue), min, max)
|
|
36
|
-
? propValue
|
|
37
|
-
: null
|
|
38
|
-
: stateValue !== null && (0, utils_1.isInRange)((0, kendo_date_math_1.getDate)(stateValue), min, max)
|
|
39
|
-
? stateValue
|
|
40
|
-
: null;
|
|
41
|
-
};
|
|
42
|
-
/** @hidden */
|
|
43
|
-
var CalendarWithoutContext = /** @class */ (function (_super) {
|
|
44
|
-
__extends(CalendarWithoutContext, _super);
|
|
45
|
-
function CalendarWithoutContext(props) {
|
|
46
|
-
var _this = _super.call(this, props) || this;
|
|
47
|
-
_this.scrollSyncService = null;
|
|
48
|
-
_this.focusedDate = null;
|
|
49
|
-
_this.cellUID = (0, kendo_react_common_1.guid)();
|
|
50
|
-
_this.id = (0, kendo_react_common_1.guid)();
|
|
51
|
-
_this.Navigation = null;
|
|
52
|
-
_this.calendarViewList = null;
|
|
53
|
-
_this._element = null;
|
|
54
|
-
_this.intl = null;
|
|
55
|
-
_this.service = null;
|
|
56
|
-
_this.isActive = false;
|
|
57
|
-
_this.didNavigationChange = false;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
_this.focus = function () {
|
|
62
|
-
if (_this._element) {
|
|
63
|
-
_this._element.focus();
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
_this.shouldScroll = function () { return _this.didNavigationChange; };
|
|
67
|
-
_this.handleScroll = function (event) {
|
|
68
|
-
if (!_this.scrollSyncService) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
_this.scrollSyncService.sync(virtualizationProp(_this.Navigation), virtualizationProp(_this.calendarViewList), event);
|
|
72
|
-
};
|
|
73
|
-
_this.handleNavigationChange = function (event) {
|
|
74
|
-
if (_this.props.disabled) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
_this.didNavigationChange = true;
|
|
78
|
-
var focusedDate = (0, kendo_date_math_1.cloneDate)(event.value);
|
|
79
|
-
_this.setState({ focusedDate: focusedDate });
|
|
80
|
-
};
|
|
81
|
-
_this.handleViewChange = function (_a) {
|
|
82
|
-
var view = _a.view;
|
|
83
|
-
if (_this.scrollSyncService) {
|
|
84
|
-
_this.scrollSyncService.configure(view);
|
|
85
|
-
}
|
|
86
|
-
_this.setState({ activeView: view });
|
|
87
|
-
};
|
|
88
|
-
_this.handleDateChange = function (event) {
|
|
89
|
-
var value = (0, kendo_date_math_1.cloneDate)(event.value);
|
|
90
|
-
var focusedDate = (0, kendo_date_math_1.cloneDate)(event.value);
|
|
91
|
-
var canNavigateDown = _this.bus.canMoveDown(_this.state.activeView);
|
|
92
|
-
if (_this.props.disabled) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
if (canNavigateDown) {
|
|
96
|
-
if (event.isTodayClick) {
|
|
97
|
-
_this.bus.moveToBottom(_this.state.activeView);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
_this.bus.moveDown(_this.state.activeView, event.syntheticEvent);
|
|
101
|
-
_this.setState({ focusedDate: focusedDate });
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
_this.setState({ value: value, focusedDate: focusedDate });
|
|
106
|
-
_this.valueDuringOnChange = value;
|
|
107
|
-
var onChange = _this.props.onChange;
|
|
108
|
-
if (onChange) {
|
|
109
|
-
var args = {
|
|
110
|
-
syntheticEvent: event.syntheticEvent,
|
|
111
|
-
nativeEvent: event.nativeEvent,
|
|
112
|
-
value: value,
|
|
113
|
-
target: _this
|
|
114
|
-
};
|
|
115
|
-
onChange.call(undefined, args);
|
|
116
|
-
}
|
|
117
|
-
_this.valueDuringOnChange = undefined;
|
|
118
|
-
};
|
|
119
|
-
_this.handleFocus = function (event) {
|
|
120
|
-
_this.isActive = true;
|
|
121
|
-
if (!_this.calendarViewList) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
_this.calendarViewList.focusActiveDate();
|
|
125
|
-
var onFocus = _this.props.onFocus;
|
|
126
|
-
if (onFocus) {
|
|
127
|
-
onFocus.call(undefined, event);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
_this.handleBlur = function (event) {
|
|
131
|
-
_this.isActive = false;
|
|
132
|
-
if (!_this.calendarViewList) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
_this.calendarViewList.blurActiveDate();
|
|
136
|
-
var onBlur = _this.props.onBlur;
|
|
137
|
-
if (onBlur) {
|
|
138
|
-
onBlur.call(undefined, event);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
_this.handleKeyDown = function (event) {
|
|
142
|
-
var keyCode = event.keyCode;
|
|
143
|
-
if (!_this.focusedDate || !_this.service) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
if (keyCode === kendo_react_common_1.Keys.enter) {
|
|
147
|
-
if (_this.value !== null
|
|
148
|
-
&& (0, kendo_date_math_1.isEqualDate)(_this.focusedDate, _this.value)) {
|
|
149
|
-
var viewDate = (0, utils_1.dateInRange)(_this.focusedDate, _this.min, _this.max);
|
|
150
|
-
virtualizationProp(_this.calendarViewList).scrollToIndex(_this.service.skip(viewDate, _this.min));
|
|
151
|
-
}
|
|
152
|
-
var args = {
|
|
153
|
-
syntheticEvent: event,
|
|
154
|
-
nativeEvent: event.nativeEvent,
|
|
155
|
-
value: _this.focusedDate,
|
|
156
|
-
target: _this
|
|
157
|
-
};
|
|
158
|
-
_this.handleDateChange(args);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
var candidate = (0, utils_1.dateInRange)(_this.navigation.move(_this.focusedDate, _this.navigation.action(event), _this.state.activeView, _this.service, event), _this.min, _this.max);
|
|
162
|
-
if ((0, kendo_date_math_1.isEqualDate)(_this.focusedDate, candidate)) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
_this.setState({ focusedDate: candidate });
|
|
166
|
-
}
|
|
167
|
-
event.preventDefault();
|
|
168
|
-
};
|
|
169
|
-
_this.handleMouseDown = function (event) {
|
|
170
|
-
event.preventDefault();
|
|
171
|
-
};
|
|
172
|
-
_this.handleClick = function (_) {
|
|
173
|
-
if (_this._element) {
|
|
174
|
-
_this._element.focus({ preventScroll: true });
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
(0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
178
|
-
var value = calculateValue(_this.min, _this.max, _this.props.defaultValue || CalendarWithoutContext.defaultProps.defaultValue, _this.props.value);
|
|
179
|
-
_this.state = {
|
|
180
|
-
value: value,
|
|
181
|
-
activeView: (0, utils_1.viewInRange)(models_1.CalendarViewEnum[props.defaultActiveView], _this.bottomView, _this.topView),
|
|
182
|
-
focusedDate: (0, utils_1.dateInRange)(props.focusedDate
|
|
183
|
-
|| value
|
|
184
|
-
|| (0, utils_1.getToday)(), _this.min, _this.max)
|
|
185
|
-
};
|
|
186
|
-
_this.dom = new services_1.DOMService();
|
|
187
|
-
_this.bus = new services_1.BusViewService(_this.handleViewChange);
|
|
188
|
-
_this.navigation = new services_1.NavigationService(_this.bus);
|
|
189
|
-
_this.oldValue = value;
|
|
190
|
-
return _this;
|
|
191
|
-
}
|
|
192
|
-
Object.defineProperty(CalendarWithoutContext.prototype, "element", {
|
|
193
|
-
/**
|
|
194
|
-
* Gets the wrapping element of the Calendar.
|
|
195
|
-
*/
|
|
196
|
-
get: function () {
|
|
197
|
-
return this._element;
|
|
198
|
-
},
|
|
199
|
-
enumerable: false,
|
|
200
|
-
configurable: true
|
|
201
|
-
});
|
|
202
|
-
Object.defineProperty(CalendarWithoutContext.prototype, "value", {
|
|
203
|
-
/**
|
|
204
|
-
* Gets the value of the Calendar.
|
|
205
|
-
*/
|
|
206
|
-
get: function () {
|
|
207
|
-
return this.valueDuringOnChange !== undefined
|
|
208
|
-
? this.valueDuringOnChange
|
|
209
|
-
: this.props.value !== undefined
|
|
210
|
-
? this.props.value
|
|
211
|
-
: this.state.value;
|
|
212
|
-
},
|
|
213
|
-
enumerable: false,
|
|
214
|
-
configurable: true
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(CalendarWithoutContext.prototype, "min", {
|
|
217
|
-
get: function () {
|
|
218
|
-
return (0, kendo_date_math_1.getDate)(this.props.min !== undefined
|
|
219
|
-
? this.props.min
|
|
220
|
-
: CalendarWithoutContext.defaultProps.min);
|
|
221
|
-
},
|
|
222
|
-
enumerable: false,
|
|
223
|
-
configurable: true
|
|
224
|
-
});
|
|
225
|
-
Object.defineProperty(CalendarWithoutContext.prototype, "max", {
|
|
226
|
-
get: function () {
|
|
227
|
-
return (0, kendo_date_math_1.getDate)(this.props.max !== undefined
|
|
228
|
-
? this.props.max
|
|
229
|
-
: CalendarWithoutContext.defaultProps.max);
|
|
230
|
-
},
|
|
231
|
-
enumerable: false,
|
|
232
|
-
configurable: true
|
|
233
|
-
});
|
|
234
|
-
Object.defineProperty(CalendarWithoutContext.prototype, "bottomView", {
|
|
235
|
-
get: function () {
|
|
236
|
-
return models_1.CalendarViewEnum[this.props.bottomView !== undefined
|
|
237
|
-
? this.props.bottomView
|
|
238
|
-
: CalendarWithoutContext.defaultProps.bottomView];
|
|
239
|
-
},
|
|
240
|
-
enumerable: false,
|
|
241
|
-
configurable: true
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(CalendarWithoutContext.prototype, "topView", {
|
|
244
|
-
get: function () {
|
|
245
|
-
return models_1.CalendarViewEnum[this.props.topView !== undefined
|
|
246
|
-
? this.props.topView
|
|
247
|
-
: CalendarWithoutContext.defaultProps.topView];
|
|
248
|
-
},
|
|
249
|
-
enumerable: false,
|
|
250
|
-
configurable: true
|
|
251
|
-
});
|
|
252
|
-
/**
|
|
253
|
-
* @hidden
|
|
254
|
-
*/
|
|
255
|
-
CalendarWithoutContext.prototype.componentDidMount = function () {
|
|
256
|
-
var _this = this;
|
|
257
|
-
// Async calculation of height to avoid animation cancellation
|
|
258
|
-
Promise.resolve().then(function () {
|
|
259
|
-
(0, kendo_react_common_1.setScrollbarWidth)();
|
|
260
|
-
if (!_this._element) {
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
_this.dom.calculateHeights(_this._element);
|
|
264
|
-
_this.scrollSyncService = new services_1.ScrollSyncService(_this.dom);
|
|
265
|
-
_this.scrollSyncService.configure(_this.state.activeView);
|
|
266
|
-
_this.forceUpdate();
|
|
267
|
-
});
|
|
268
|
-
};
|
|
269
|
-
/**
|
|
270
|
-
* @hidden
|
|
271
|
-
*/
|
|
272
|
-
CalendarWithoutContext.prototype.componentDidUpdate = function (_, prevState) {
|
|
273
|
-
(0, kendo_react_common_1.setScrollbarWidth)();
|
|
274
|
-
if (prevState.activeView !== this.state.activeView && this.scrollSyncService) {
|
|
275
|
-
this.scrollSyncService.configure(this.state.activeView);
|
|
276
|
-
}
|
|
277
|
-
if (this.calendarViewList) {
|
|
278
|
-
(this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)();
|
|
279
|
-
}
|
|
280
|
-
this.didNavigationChange = false;
|
|
281
|
-
this.oldValue = this.value;
|
|
282
|
-
};
|
|
283
|
-
/**
|
|
284
|
-
* @hidden
|
|
285
|
-
*/
|
|
286
|
-
CalendarWithoutContext.prototype.render = function () {
|
|
287
|
-
var _this = this;
|
|
288
|
-
if (this.props._ref) {
|
|
289
|
-
this.props._ref(this);
|
|
290
|
-
}
|
|
291
|
-
var didValueChange = this.value !== null && this.oldValue !== null
|
|
292
|
-
? !(0, kendo_date_math_1.isEqualDate)(this.value, this.oldValue)
|
|
293
|
-
: this.value !== this.oldValue;
|
|
294
|
-
var activeView = (0, utils_1.viewInRange)(this.state.activeView, models_1.CalendarViewEnum[this.props.bottomView !== undefined
|
|
295
|
-
? this.props.bottomView
|
|
296
|
-
: CalendarWithoutContext.defaultProps.bottomView], models_1.CalendarViewEnum[this.props.topView !== undefined
|
|
297
|
-
? this.props.topView
|
|
298
|
-
: CalendarWithoutContext.defaultProps.topView]);
|
|
299
|
-
var value = calculateValue(this.min, this.max, this.value, this.value);
|
|
300
|
-
var sanitizedValue = value ? (0, kendo_date_math_1.getDate)(value) : null;
|
|
301
|
-
this.focusedDate = (0, kendo_date_math_1.getDate)((0, utils_1.dateInRange)(didValueChange && value !== null
|
|
302
|
-
? value
|
|
303
|
-
: this.state.focusedDate, this.min, this.max));
|
|
304
|
-
this.intl = (0, kendo_react_intl_1.provideIntlService)(this);
|
|
305
|
-
this.bus.configure(this.bottomView, this.topView);
|
|
306
|
-
this.service = this.bus.service(activeView, this.intl);
|
|
307
|
-
var _a = this.props.smoothScroll, smoothScroll = _a === void 0 ? Number.parseFloat(React.version) < 18 : _a;
|
|
308
|
-
var rootClassNames = (0, kendo_react_common_1.classNames)('k-widget k-calendar k-calendar-infinite', {
|
|
309
|
-
'k-disabled': this.props.disabled,
|
|
310
|
-
'k-week-number': this.props.weekNumber,
|
|
311
|
-
'k-calendar-lg': this.props.mobileMode
|
|
312
|
-
}, this.props.className);
|
|
313
|
-
var calendarBody = [this.props.navigation && (React.createElement(Navigation_1.Navigation, { key: 0, ref: function (el) { _this.Navigation = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, onScroll: this.handleScroll, onChange: this.handleNavigationChange, service: this.service, dom: this.dom, navigationItem: this.props.navigationItem, tabIndex: this.props.tabIndex })), (React.createElement(ViewList_1.ViewList, { key: 1, ref: function (el) { _this.calendarViewList = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, shouldScroll: this.shouldScroll, onScroll: this.handleScroll, service: this.service, cell: this.props.cell, weekCell: this.props.weekCell, dom: this.dom, smoothScroll: smoothScroll, showWeekNumbers: this.props.weekNumber, onChange: this.handleDateChange, value: sanitizedValue, cellUID: this.cellUID, headerTitle: this.props.headerTitle, tabIndex: this.props.tabIndex }))];
|
|
314
|
-
return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames, id: this.props.id || this.id, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, "aria-disabled": this.props.disabled, tabIndex: !this.props.disabled ? this.props.tabIndex || 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown, onClick: this.handleClick }, calendarBody));
|
|
315
|
-
};
|
|
316
|
-
/**
|
|
317
|
-
* @hidden
|
|
318
|
-
*/
|
|
319
|
-
CalendarWithoutContext.displayName = 'Calendar';
|
|
320
|
-
/**
|
|
321
|
-
* @hidden
|
|
322
|
-
*/
|
|
323
|
-
CalendarWithoutContext.propTypes = {
|
|
324
|
-
className: PropTypes.string,
|
|
325
|
-
defaultActiveView: PropTypes.oneOf(['month', 'year', 'decade', 'century']),
|
|
326
|
-
defaultValue: PropTypes.instanceOf(Date),
|
|
327
|
-
disabled: PropTypes.bool,
|
|
328
|
-
focusedDate: PropTypes.instanceOf(Date),
|
|
329
|
-
id: PropTypes.string,
|
|
330
|
-
ariaLabelledBy: PropTypes.string,
|
|
331
|
-
ariaDescribedBy: PropTypes.string,
|
|
332
|
-
max: PropTypes.instanceOf(Date),
|
|
333
|
-
min: PropTypes.instanceOf(Date),
|
|
334
|
-
navigation: PropTypes.bool,
|
|
335
|
-
smoothScroll: PropTypes.bool,
|
|
336
|
-
onBlur: PropTypes.func,
|
|
337
|
-
onChange: PropTypes.func,
|
|
338
|
-
onFocus: PropTypes.func,
|
|
339
|
-
tabIndex: PropTypes.number,
|
|
340
|
-
value: PropTypes.instanceOf(Date),
|
|
341
|
-
weekNumber: PropTypes.bool,
|
|
342
|
-
topView: function (props, propName, componentName) {
|
|
343
|
-
var prop = props[propName];
|
|
344
|
-
var bottomView = props.bottomView;
|
|
345
|
-
if (prop && bottomView && models_1.CalendarViewEnum[prop] < models_1.CalendarViewEnum[bottomView]) {
|
|
346
|
-
return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be smaller than bottomView.\n "));
|
|
347
|
-
}
|
|
348
|
-
return null;
|
|
349
|
-
},
|
|
350
|
-
bottomView: function (props, propName, componentName) {
|
|
351
|
-
var prop = props[propName];
|
|
352
|
-
var topView = props.topView;
|
|
353
|
-
if (prop && topView && models_1.CalendarViewEnum[prop] > models_1.CalendarViewEnum[topView]) {
|
|
354
|
-
return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be bigger than topView.\n "));
|
|
355
|
-
}
|
|
356
|
-
return null;
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
* @hidden
|
|
361
|
-
*/
|
|
362
|
-
CalendarWithoutContext.defaultProps = {
|
|
363
|
-
disabled: false,
|
|
364
|
-
min: utils_1.MIN_DATE,
|
|
365
|
-
max: utils_1.MAX_DATE,
|
|
366
|
-
navigation: true,
|
|
367
|
-
defaultActiveView: 'month',
|
|
368
|
-
defaultValue: null,
|
|
369
|
-
topView: 'century',
|
|
370
|
-
bottomView: 'month'
|
|
371
|
-
};
|
|
372
|
-
return CalendarWithoutContext;
|
|
373
|
-
}(React.Component));
|
|
374
|
-
exports.CalendarWithoutContext = CalendarWithoutContext;
|
|
375
|
-
/**
|
|
376
|
-
* Represents the PropsContext of the `Calendar` component.
|
|
377
|
-
* Used for global configuration of all `Calendar` instances.
|
|
378
|
-
*
|
|
379
|
-
* For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
|
|
380
|
-
*/
|
|
381
|
-
exports.CalendarPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
382
|
-
/* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
|
|
383
|
-
/**
|
|
384
|
-
* Represents the KendoReact Calendar Component.
|
|
385
|
-
*
|
|
386
|
-
* Accepts properties of type [CalendarProps]({% slug api_dateinputs_calendarprops %}).
|
|
387
|
-
* Obtaining the `ref` returns an object of type [CalendarHandle]({% slug api_dateinputs_calendarhandle %}).
|
|
388
|
-
*/
|
|
389
|
-
exports.Calendar = (0, kendo_react_common_1.withPropsContext)(exports.CalendarPropsContext, CalendarWithoutContext);
|
|
390
|
-
exports.Calendar.displayName = 'KendoReactCalendar';
|
|
391
|
-
(0, kendo_react_intl_1.registerForIntl)(CalendarWithoutContext);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CellContext, CalendarViewEnum } from '../models';
|
|
3
|
-
/**
|
|
4
|
-
* The props which will be received by the custom cell of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-cell) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-cell).
|
|
5
|
-
*/
|
|
6
|
-
export interface CalendarCellProps extends CellContext {
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
view?: CalendarViewEnum;
|
|
11
|
-
onClick?: (value: Date, event?: React.MouseEvent<any>) => void;
|
|
12
|
-
onMouseEnter?: (value: Date, event?: React.MouseEvent<any>) => void;
|
|
13
|
-
onMouseLeave?: (value: Date, event?: React.MouseEvent<any>) => void;
|
|
14
|
-
[aria: string]: any;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The `CalendarCell` component is internally used for rendering the items in the current view. Also be used as a custom `cell` of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-cell) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-cell).
|
|
18
|
-
*
|
|
19
|
-
* * [Customizing the cells inside the Calendar view]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)
|
|
20
|
-
* * [Customizing the cells inside the MultiViewCalendar view]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)
|
|
21
|
-
*/
|
|
22
|
-
export declare class CalendarCell extends React.Component<CalendarCellProps> {
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
shouldComponentUpdate(nextProps: CalendarCellProps): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @return
|
|
29
|
-
* Returns a `<td />` element with a `<span className="k-link" />` inside to apply the styles. The text inside is the [`formattedValue`]({% slug api_dateinputs_calendarcellprops %}#toc-formattedvalue) of the `cell`.
|
|
30
|
-
*/
|
|
31
|
-
render(): JSX.Element;
|
|
32
|
-
private handleClick;
|
|
33
|
-
private handleMouseEnter;
|
|
34
|
-
private handleMouseLeave;
|
|
35
|
-
}
|
|
@@ -1,131 +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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
-
var t = {};
|
|
30
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
-
t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
-
t[p[i]] = s[p[i]];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.CalendarCell = void 0;
|
|
41
|
-
var React = require("react");
|
|
42
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
var compareProps = function (x, y) {
|
|
47
|
-
var xProps = Object.getOwnPropertyNames(x);
|
|
48
|
-
var yProps = Object.getOwnPropertyNames(y);
|
|
49
|
-
if (xProps.length !== yProps.length) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
for (var i = 0; i < xProps.length; i++) {
|
|
53
|
-
var propName = xProps[i];
|
|
54
|
-
if (x[propName] !== y[propName]) {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return true;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* The `CalendarCell` component is internally used for rendering the items in the current view. Also be used as a custom `cell` of the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-cell) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-cell).
|
|
62
|
-
*
|
|
63
|
-
* * [Customizing the cells inside the Calendar view]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)
|
|
64
|
-
* * [Customizing the cells inside the MultiViewCalendar view]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)
|
|
65
|
-
*/
|
|
66
|
-
var CalendarCell = /** @class */ (function (_super) {
|
|
67
|
-
__extends(CalendarCell, _super);
|
|
68
|
-
function CalendarCell() {
|
|
69
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
-
// tslint:enable:max-line-length
|
|
71
|
-
_this.handleClick = function (event) {
|
|
72
|
-
var _a = _this.props, onClick = _a.onClick, value = _a.value;
|
|
73
|
-
if (onClick) {
|
|
74
|
-
onClick.call(undefined, value, event);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
_this.handleMouseEnter = function () {
|
|
78
|
-
var _a = _this.props, onMouseEnter = _a.onMouseEnter, value = _a.value;
|
|
79
|
-
if (onMouseEnter) {
|
|
80
|
-
onMouseEnter.call(undefined, value);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
_this.handleMouseLeave = function () {
|
|
84
|
-
var _a = _this.props, onMouseLeave = _a.onMouseLeave, value = _a.value;
|
|
85
|
-
if (onMouseLeave) {
|
|
86
|
-
onMouseLeave.call(undefined, value);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
return _this;
|
|
90
|
-
}
|
|
91
|
-
// Manually checking if the component needs an update
|
|
92
|
-
// due to date object being compared by instance
|
|
93
|
-
// and new Date object is created
|
|
94
|
-
// every time and fails the shallow compare of the React.PureComponent.
|
|
95
|
-
/**
|
|
96
|
-
* @hidden
|
|
97
|
-
*/
|
|
98
|
-
CalendarCell.prototype.shouldComponentUpdate = function (nextProps) {
|
|
99
|
-
var _a = this.props, value = _a.value, props = __rest(_a, ["value"]);
|
|
100
|
-
var newValue = nextProps.value, newProps = __rest(nextProps, ["value"]);
|
|
101
|
-
var valueEqual = !(value && newValue) || value.getTime() === newValue.getTime();
|
|
102
|
-
return !(valueEqual && compareProps(props, newProps));
|
|
103
|
-
};
|
|
104
|
-
/* eslint-disable max-len */
|
|
105
|
-
/**
|
|
106
|
-
* @return
|
|
107
|
-
* Returns a `<td />` element with a `<span className="k-link" />` inside to apply the styles. The text inside is the [`formattedValue`]({% slug api_dateinputs_calendarcellprops %}#toc-formattedvalue) of the `cell`.
|
|
108
|
-
*/
|
|
109
|
-
CalendarCell.prototype.render = function () {
|
|
110
|
-
var _a = this.props, className = _a.className, formattedValue = _a.formattedValue, isWeekend = _a.isWeekend, isFocused = _a.isFocused, isInRange = _a.isInRange, isSelected = _a.isSelected, isRangeStart = _a.isRangeStart, isRangeMid = _a.isRangeMid, isRangeEnd = _a.isRangeEnd, isRangeSplitStart = _a.isRangeSplitStart, isRangeSplitEnd = _a.isRangeSplitEnd, isToday = _a.isToday, isDisabled = _a.isDisabled, view = _a.view, value = _a.value, other = __rest(_a, ["className", "formattedValue", "isWeekend", "isFocused", "isInRange", "isSelected", "isRangeStart", "isRangeMid", "isRangeEnd", "isRangeSplitStart", "isRangeSplitEnd", "isToday", "isDisabled", "view", "value"]);
|
|
111
|
-
var isEndActive = this.props.activeRangeEnd === 'end' && isRangeEnd;
|
|
112
|
-
var isStartActive = this.props.activeRangeEnd === 'start' && isRangeStart;
|
|
113
|
-
var rootClassName = (0, kendo_react_common_1.classNames)('k-calendar-td', {
|
|
114
|
-
'k-range-end': isRangeEnd,
|
|
115
|
-
'k-range-mid': isRangeMid,
|
|
116
|
-
'k-range-split-end': isRangeSplitEnd,
|
|
117
|
-
'k-range-split-start': isRangeSplitStart,
|
|
118
|
-
'k-range-start': isRangeStart,
|
|
119
|
-
'k-active': isStartActive || isEndActive,
|
|
120
|
-
'k-state-pending-focus': isFocused,
|
|
121
|
-
'k-selected': isSelected || isRangeStart || isRangeEnd,
|
|
122
|
-
'k-today': isToday,
|
|
123
|
-
'k-weekend': isWeekend,
|
|
124
|
-
'k-disabled': isDisabled
|
|
125
|
-
}, className);
|
|
126
|
-
return (React.createElement("td", __assign({}, other, { className: rootClassName, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }),
|
|
127
|
-
React.createElement("span", { className: "k-link" }, this.props.children)));
|
|
128
|
-
};
|
|
129
|
-
return CalendarCell;
|
|
130
|
-
}(React.Component));
|
|
131
|
-
exports.CalendarCell = CalendarCell;
|