@progress/kendo-react-dateinputs 6.1.1-dev.202311151536 → 7.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/{dist/es/PopupSettings.d.ts → PopupSettings.d.ts} +4 -0
- package/{dist/npm/calendar → calendar}/components/Calendar.d.ts +6 -2
- package/{dist/es/calendar → calendar}/components/CalendarCell.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarHeaderTitle.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarNavigationItem.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarWeekCell.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/Header.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/HorizontalViewList.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/MultiViewCalendar.d.ts +8 -4
- package/{dist/npm/calendar → calendar}/components/Navigation.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/TodayCommand.d.ts +5 -1
- package/{dist/es/calendar → calendar}/components/View.d.ts +6 -2
- package/{dist/npm/calendar → calendar}/components/ViewList.d.ts +7 -3
- package/calendar/models/ActiveView.d.ts +8 -0
- package/{dist/npm/calendar → calendar}/models/CalendarSettings.d.ts +4 -1
- package/calendar/models/CalendarViewEnum.d.ts +13 -0
- package/{dist/npm/calendar → calendar}/models/CellContext.d.ts +4 -0
- package/calendar/models/MultiViewCalendarMode.d.ts +13 -0
- package/{dist/es/calendar → calendar}/models/MultiViewCalendarSettings.d.ts +4 -1
- package/calendar/models/NavigationAction.d.ts +19 -0
- package/calendar/models/SelectionRange.d.ts +21 -0
- package/calendar/models/SelectionRangeEnd.d.ts +8 -0
- package/{dist/npm/calendar → calendar}/models/ViewService.d.ts +4 -0
- package/calendar/models/index.d.ts +15 -0
- package/{dist/es/calendar → calendar}/services/BusViewService.d.ts +4 -1
- package/{dist/es/calendar → calendar}/services/CenturyViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/DOMService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/DecadeViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/MonthViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/NavigationService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/ScrollSyncService.d.ts +4 -0
- package/calendar/services/WeekNamesService.d.ts +13 -0
- package/{dist/es/calendar → calendar}/services/YearViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/index.d.ts +4 -0
- package/{dist/es/common → common}/AdaptiveMode.d.ts +5 -1
- package/{dist/es/common → common}/PickerWrap.d.ts +4 -0
- package/common/constants.d.ts +8 -0
- package/{dist/es/dateinput → dateinput}/DateInput.d.ts +11 -7
- package/{dist/es/dateinput → dateinput}/models/DateInputSettings.d.ts +4 -0
- package/{dist/es/dateinput → dateinput}/models/format-placeholder.d.ts +5 -1
- package/dateinput/models/incremental-steps.d.ts +15 -0
- package/dateinput/models/index.d.ts +11 -0
- package/{dist/es/dateinput → dateinput}/models/kendo-date.d.ts +4 -0
- package/dateinput/models/mask.d.ts +11 -0
- package/dateinput/models/selection.d.ts +11 -0
- package/{dist/npm/dateinput → dateinput}/utils.d.ts +4 -0
- package/{dist/npm/datepicker → datepicker}/DatePicker.d.ts +12 -8
- package/{dist/npm/datepicker → datepicker}/ToggleButton.d.ts +4 -0
- package/{dist/npm/datepicker → datepicker}/models/DatePickerSettings.d.ts +5 -2
- package/datepicker/models/index.d.ts +6 -0
- package/{dist/es/daterangepicker → daterangepicker}/DateRangePicker.d.ts +9 -5
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +10 -0
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +10 -0
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +10 -0
- package/{dist/npm/daterangepicker → daterangepicker}/models/DateRangePickerSettings.d.ts +4 -1
- package/{dist/es/daterangepicker → daterangepicker}/models/index.d.ts +4 -0
- package/{dist/npm/datetimepicker → datetimepicker}/DateTimePicker.d.ts +12 -8
- package/{dist/npm/datetimepicker → datetimepicker}/DateTimeSelector.d.ts +5 -1
- package/{dist/es/datetimepicker → datetimepicker}/models/DateTimePickerSettings.d.ts +5 -2
- package/datetimepicker/models/index.d.ts +6 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +21 -1
- package/hooks/usePickerFloatingLabel.d.ts +24 -0
- package/index.d.ts +39 -0
- package/index.js +21 -0
- package/index.mjs +6460 -0
- package/{dist/es/messages → messages}/index.d.ts +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +33 -51
- package/{dist/npm/timepicker → timepicker}/TimeList.d.ts +5 -1
- package/{dist/es/timepicker → timepicker}/TimePart.d.ts +5 -1
- package/{dist/es/timepicker → timepicker}/TimePicker.d.ts +12 -8
- package/{dist/es/timepicker → timepicker}/TimeSelector.d.ts +5 -1
- package/timepicker/models/IncrementalSteps.d.ts +12 -0
- package/timepicker/models/ListItem.d.ts +11 -0
- package/{dist/es/timepicker → timepicker}/models/ListService.d.ts +4 -0
- package/timepicker/models/ListServiceSettings.d.ts +16 -0
- package/timepicker/models/TimePart.d.ts +14 -0
- package/{dist/es/timepicker → timepicker}/models/TimePickerSettings.d.ts +5 -2
- package/timepicker/models/index.d.ts +11 -0
- package/timepicker/services/DOMService.d.ts +14 -0
- package/{dist/npm/timepicker → timepicker}/services/DayPeriodService.d.ts +4 -0
- package/{dist/es/timepicker → timepicker}/services/HoursService.d.ts +4 -0
- package/{dist/npm/timepicker → timepicker}/services/MinutesService.d.ts +4 -0
- package/{dist/es/timepicker → timepicker}/services/SecondsService.d.ts +4 -0
- package/timepicker/services/index.d.ts +10 -0
- package/{dist/es/timepicker → timepicker}/utils.d.ts +4 -0
- package/{dist/es/utils.d.ts → utils.d.ts} +4 -0
- package/{dist/es/virtualization → virtualization}/Virtualization.d.ts +6 -2
- package/{dist/es/virtualization → virtualization}/services/RowHeightService.d.ts +4 -0
- package/{dist/es/virtualization → virtualization}/services/ScrollerService.d.ts +6 -2
- package/virtualization/services/index.d.ts +7 -0
- package/about.md +0 -3
- package/dist/es/PopupSettings.js +0 -1
- package/dist/es/calendar/components/Calendar.d.ts +0 -187
- package/dist/es/calendar/components/Calendar.js +0 -388
- package/dist/es/calendar/components/CalendarCell.js +0 -128
- package/dist/es/calendar/components/CalendarHeaderTitle.d.ts +0 -28
- package/dist/es/calendar/components/CalendarHeaderTitle.js +0 -61
- package/dist/es/calendar/components/CalendarNavigationItem.d.ts +0 -27
- package/dist/es/calendar/components/CalendarNavigationItem.js +0 -66
- package/dist/es/calendar/components/CalendarWeekCell.d.ts +0 -25
- package/dist/es/calendar/components/CalendarWeekCell.js +0 -61
- package/dist/es/calendar/components/Header.d.ts +0 -54
- package/dist/es/calendar/components/Header.js +0 -129
- package/dist/es/calendar/components/HorizontalViewList.d.ts +0 -67
- package/dist/es/calendar/components/HorizontalViewList.js +0 -145
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +0 -208
- package/dist/es/calendar/components/MultiViewCalendar.js +0 -589
- package/dist/es/calendar/components/Navigation.d.ts +0 -76
- package/dist/es/calendar/components/Navigation.js +0 -167
- package/dist/es/calendar/components/TodayCommand.d.ts +0 -31
- package/dist/es/calendar/components/TodayCommand.js +0 -93
- package/dist/es/calendar/components/View.js +0 -220
- package/dist/es/calendar/components/ViewList.d.ts +0 -111
- package/dist/es/calendar/components/ViewList.js +0 -258
- package/dist/es/calendar/models/ActiveView.d.ts +0 -4
- package/dist/es/calendar/models/ActiveView.js +0 -1
- package/dist/es/calendar/models/CalendarSettings.d.ts +0 -103
- package/dist/es/calendar/models/CalendarSettings.js +0 -1
- package/dist/es/calendar/models/CalendarViewEnum.d.ts +0 -9
- package/dist/es/calendar/models/CalendarViewEnum.js +0 -10
- package/dist/es/calendar/models/CellContext.d.ts +0 -19
- package/dist/es/calendar/models/CellContext.js +0 -1
- package/dist/es/calendar/models/MultiViewCalendarMode.d.ts +0 -9
- package/dist/es/calendar/models/MultiViewCalendarMode.js +0 -1
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +0 -1
- package/dist/es/calendar/models/NavigationAction.d.ts +0 -15
- package/dist/es/calendar/models/NavigationAction.js +0 -16
- package/dist/es/calendar/models/SelectionRange.d.ts +0 -17
- package/dist/es/calendar/models/SelectionRange.js +0 -4
- package/dist/es/calendar/models/SelectionRangeEnd.d.ts +0 -4
- package/dist/es/calendar/models/SelectionRangeEnd.js +0 -1
- package/dist/es/calendar/models/ViewService.d.ts +0 -25
- package/dist/es/calendar/models/ViewService.js +0 -1
- package/dist/es/calendar/models/index.d.ts +0 -11
- package/dist/es/calendar/models/index.js +0 -4
- package/dist/es/calendar/services/BusViewService.js +0 -69
- package/dist/es/calendar/services/CenturyViewService.js +0 -154
- package/dist/es/calendar/services/DOMService.d.ts +0 -29
- package/dist/es/calendar/services/DOMService.js +0 -184
- package/dist/es/calendar/services/DecadeViewService.d.ts +0 -27
- package/dist/es/calendar/services/DecadeViewService.js +0 -153
- package/dist/es/calendar/services/MonthViewService.d.ts +0 -33
- package/dist/es/calendar/services/MonthViewService.js +0 -169
- package/dist/es/calendar/services/NavigationService.d.ts +0 -14
- package/dist/es/calendar/services/NavigationService.js +0 -41
- package/dist/es/calendar/services/ScrollSyncService.d.ts +0 -21
- package/dist/es/calendar/services/ScrollSyncService.js +0 -58
- package/dist/es/calendar/services/WeekNamesService.d.ts +0 -9
- package/dist/es/calendar/services/WeekNamesService.js +0 -16
- package/dist/es/calendar/services/YearViewService.js +0 -180
- package/dist/es/calendar/services/index.d.ts +0 -10
- package/dist/es/calendar/services/index.js +0 -10
- package/dist/es/calendar/utils/ScrollSync.d.ts +0 -13
- package/dist/es/calendar/utils/ScrollSync.js +0 -30
- package/dist/es/common/AdaptiveMode.js +0 -45
- package/dist/es/common/PickerWrap.js +0 -14
- package/dist/es/common/constants.d.ts +0 -4
- package/dist/es/common/constants.js +0 -4
- package/dist/es/dateinput/DateInput.js +0 -704
- package/dist/es/dateinput/models/DateInputSettings.js +0 -2
- package/dist/es/dateinput/models/format-placeholder.js +0 -2
- package/dist/es/dateinput/models/incremental-steps.d.ts +0 -11
- package/dist/es/dateinput/models/incremental-steps.js +0 -1
- package/dist/es/dateinput/models/index.d.ts +0 -7
- package/dist/es/dateinput/models/index.js +0 -3
- package/dist/es/dateinput/models/kendo-date.js +0 -338
- package/dist/es/dateinput/models/mask.d.ts +0 -7
- package/dist/es/dateinput/models/mask.js +0 -11
- package/dist/es/dateinput/models/selection.d.ts +0 -7
- package/dist/es/dateinput/models/selection.js +0 -1
- package/dist/es/dateinput/utils.d.ts +0 -30
- package/dist/es/dateinput/utils.js +0 -83
- package/dist/es/datepicker/DatePicker.d.ts +0 -354
- package/dist/es/datepicker/DatePicker.js +0 -636
- package/dist/es/datepicker/ToggleButton.d.ts +0 -10
- package/dist/es/datepicker/ToggleButton.js +0 -5
- package/dist/es/datepicker/models/DatePickerSettings.d.ts +0 -138
- package/dist/es/datepicker/models/DatePickerSettings.js +0 -2
- package/dist/es/datepicker/models/index.d.ts +0 -2
- package/dist/es/datepicker/models/index.js +0 -1
- package/dist/es/daterangepicker/DateRangePicker.js +0 -584
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +0 -123
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +0 -2
- package/dist/es/daterangepicker/models/index.js +0 -1
- package/dist/es/datetimepicker/DateTimePicker.d.ts +0 -338
- package/dist/es/datetimepicker/DateTimePicker.js +0 -566
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +0 -97
- package/dist/es/datetimepicker/DateTimeSelector.js +0 -279
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +0 -1
- package/dist/es/datetimepicker/models/index.d.ts +0 -2
- package/dist/es/datetimepicker/models/index.js +0 -1
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +0 -20
- package/dist/es/hooks/usePickerFloatingLabel.js +0 -35
- package/dist/es/main.d.ts +0 -35
- package/dist/es/main.js +0 -29
- package/dist/es/messages/index.js +0 -121
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/timepicker/TimeList.d.ts +0 -87
- package/dist/es/timepicker/TimeList.js +0 -302
- package/dist/es/timepicker/TimePart.js +0 -307
- package/dist/es/timepicker/TimePicker.js +0 -618
- package/dist/es/timepicker/TimeSelector.js +0 -261
- package/dist/es/timepicker/models/IncrementalSteps.d.ts +0 -8
- package/dist/es/timepicker/models/IncrementalSteps.js +0 -1
- package/dist/es/timepicker/models/ListItem.d.ts +0 -7
- package/dist/es/timepicker/models/ListItem.js +0 -1
- package/dist/es/timepicker/models/ListService.js +0 -1
- package/dist/es/timepicker/models/ListServiceSettings.d.ts +0 -12
- package/dist/es/timepicker/models/ListServiceSettings.js +0 -1
- package/dist/es/timepicker/models/TimePart.d.ts +0 -10
- package/dist/es/timepicker/models/TimePart.js +0 -10
- package/dist/es/timepicker/models/TimePickerSettings.js +0 -2
- package/dist/es/timepicker/models/index.d.ts +0 -7
- package/dist/es/timepicker/models/index.js +0 -2
- package/dist/es/timepicker/services/DOMService.d.ts +0 -10
- package/dist/es/timepicker/services/DOMService.js +0 -46
- package/dist/es/timepicker/services/DayPeriodService.d.ts +0 -47
- package/dist/es/timepicker/services/DayPeriodService.js +0 -119
- package/dist/es/timepicker/services/HoursService.js +0 -124
- package/dist/es/timepicker/services/MinutesService.d.ts +0 -32
- package/dist/es/timepicker/services/MinutesService.js +0 -119
- package/dist/es/timepicker/services/SecondsService.js +0 -120
- package/dist/es/timepicker/services/index.d.ts +0 -6
- package/dist/es/timepicker/services/index.js +0 -6
- package/dist/es/timepicker/utils.js +0 -149
- package/dist/es/utils.js +0 -306
- package/dist/es/virtualization/Virtualization.js +0 -317
- package/dist/es/virtualization/services/RowHeightService.js +0 -68
- package/dist/es/virtualization/services/ScrollerService.js +0 -90
- package/dist/es/virtualization/services/index.d.ts +0 -3
- package/dist/es/virtualization/services/index.js +0 -3
- package/dist/npm/PopupSettings.d.ts +0 -14
- package/dist/npm/PopupSettings.js +0 -2
- package/dist/npm/calendar/components/Calendar.js +0 -391
- package/dist/npm/calendar/components/CalendarCell.d.ts +0 -35
- package/dist/npm/calendar/components/CalendarCell.js +0 -131
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +0 -64
- package/dist/npm/calendar/components/CalendarNavigationItem.js +0 -69
- package/dist/npm/calendar/components/CalendarWeekCell.js +0 -64
- package/dist/npm/calendar/components/Header.js +0 -132
- package/dist/npm/calendar/components/HorizontalViewList.js +0 -148
- package/dist/npm/calendar/components/MultiViewCalendar.js +0 -592
- package/dist/npm/calendar/components/Navigation.js +0 -170
- package/dist/npm/calendar/components/TodayCommand.js +0 -96
- package/dist/npm/calendar/components/View.d.ts +0 -85
- package/dist/npm/calendar/components/View.js +0 -223
- package/dist/npm/calendar/components/ViewList.js +0 -261
- package/dist/npm/calendar/models/ActiveView.d.ts +0 -4
- package/dist/npm/calendar/models/ActiveView.js +0 -2
- package/dist/npm/calendar/models/CalendarSettings.js +0 -2
- package/dist/npm/calendar/models/CalendarViewEnum.d.ts +0 -9
- package/dist/npm/calendar/models/CalendarViewEnum.js +0 -13
- package/dist/npm/calendar/models/CellContext.js +0 -2
- package/dist/npm/calendar/models/MultiViewCalendarMode.d.ts +0 -9
- package/dist/npm/calendar/models/MultiViewCalendarMode.js +0 -2
- package/dist/npm/calendar/models/MultiViewCalendarSettings.d.ts +0 -112
- package/dist/npm/calendar/models/MultiViewCalendarSettings.js +0 -2
- package/dist/npm/calendar/models/NavigationAction.d.ts +0 -15
- package/dist/npm/calendar/models/NavigationAction.js +0 -19
- package/dist/npm/calendar/models/SelectionRange.d.ts +0 -17
- package/dist/npm/calendar/models/SelectionRange.js +0 -7
- package/dist/npm/calendar/models/SelectionRangeEnd.d.ts +0 -4
- package/dist/npm/calendar/models/SelectionRangeEnd.js +0 -2
- package/dist/npm/calendar/models/ViewService.js +0 -2
- package/dist/npm/calendar/models/index.d.ts +0 -11
- package/dist/npm/calendar/models/index.js +0 -9
- package/dist/npm/calendar/services/BusViewService.d.ts +0 -22
- package/dist/npm/calendar/services/BusViewService.js +0 -72
- package/dist/npm/calendar/services/CenturyViewService.d.ts +0 -25
- package/dist/npm/calendar/services/CenturyViewService.js +0 -157
- package/dist/npm/calendar/services/DOMService.js +0 -187
- package/dist/npm/calendar/services/DecadeViewService.js +0 -156
- package/dist/npm/calendar/services/MonthViewService.js +0 -172
- package/dist/npm/calendar/services/NavigationService.js +0 -44
- package/dist/npm/calendar/services/ScrollSyncService.js +0 -61
- package/dist/npm/calendar/services/WeekNamesService.d.ts +0 -9
- package/dist/npm/calendar/services/WeekNamesService.js +0 -19
- package/dist/npm/calendar/services/YearViewService.d.ts +0 -31
- package/dist/npm/calendar/services/YearViewService.js +0 -183
- package/dist/npm/calendar/services/index.js +0 -21
- package/dist/npm/calendar/utils/ScrollSync.d.ts +0 -13
- package/dist/npm/calendar/utils/ScrollSync.js +0 -32
- package/dist/npm/common/AdaptiveMode.d.ts +0 -21
- package/dist/npm/common/AdaptiveMode.js +0 -49
- package/dist/npm/common/PickerWrap.d.ts +0 -18
- package/dist/npm/common/PickerWrap.js +0 -17
- package/dist/npm/common/constants.d.ts +0 -4
- package/dist/npm/common/constants.js +0 -7
- package/dist/npm/dateinput/DateInput.d.ts +0 -351
- package/dist/npm/dateinput/DateInput.js +0 -707
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +0 -99
- package/dist/npm/dateinput/models/DateInputSettings.js +0 -3
- package/dist/npm/dateinput/models/format-placeholder.d.ts +0 -39
- package/dist/npm/dateinput/models/format-placeholder.js +0 -3
- package/dist/npm/dateinput/models/incremental-steps.d.ts +0 -11
- package/dist/npm/dateinput/models/incremental-steps.js +0 -2
- package/dist/npm/dateinput/models/index.d.ts +0 -7
- package/dist/npm/dateinput/models/index.js +0 -7
- package/dist/npm/dateinput/models/kendo-date.d.ts +0 -53
- package/dist/npm/dateinput/models/kendo-date.js +0 -341
- package/dist/npm/dateinput/models/mask.d.ts +0 -7
- package/dist/npm/dateinput/models/mask.js +0 -14
- package/dist/npm/dateinput/models/selection.d.ts +0 -7
- package/dist/npm/dateinput/models/selection.js +0 -2
- package/dist/npm/dateinput/utils.js +0 -90
- package/dist/npm/datepicker/DatePicker.js +0 -639
- package/dist/npm/datepicker/ToggleButton.js +0 -8
- package/dist/npm/datepicker/models/DatePickerSettings.js +0 -3
- package/dist/npm/datepicker/models/index.d.ts +0 -2
- package/dist/npm/datepicker/models/index.js +0 -2
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +0 -349
- package/dist/npm/daterangepicker/DateRangePicker.js +0 -587
- package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.js +0 -3
- package/dist/npm/daterangepicker/models/index.d.ts +0 -5
- package/dist/npm/daterangepicker/models/index.js +0 -2
- package/dist/npm/datetimepicker/DateTimePicker.js +0 -569
- package/dist/npm/datetimepicker/DateTimeSelector.js +0 -282
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.d.ts +0 -141
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.js +0 -2
- package/dist/npm/datetimepicker/models/index.d.ts +0 -2
- package/dist/npm/datetimepicker/models/index.js +0 -2
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +0 -20
- package/dist/npm/hooks/usePickerFloatingLabel.js +0 -40
- package/dist/npm/main.d.ts +0 -35
- package/dist/npm/main.js +0 -102
- package/dist/npm/messages/index.d.ts +0 -120
- package/dist/npm/messages/index.js +0 -124
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/timepicker/TimeList.js +0 -305
- package/dist/npm/timepicker/TimePart.d.ts +0 -136
- package/dist/npm/timepicker/TimePart.js +0 -310
- package/dist/npm/timepicker/TimePicker.d.ts +0 -351
- package/dist/npm/timepicker/TimePicker.js +0 -621
- package/dist/npm/timepicker/TimeSelector.d.ts +0 -138
- package/dist/npm/timepicker/TimeSelector.js +0 -264
- package/dist/npm/timepicker/models/IncrementalSteps.d.ts +0 -8
- package/dist/npm/timepicker/models/IncrementalSteps.js +0 -2
- package/dist/npm/timepicker/models/ListItem.d.ts +0 -7
- package/dist/npm/timepicker/models/ListItem.js +0 -2
- package/dist/npm/timepicker/models/ListService.d.ts +0 -15
- package/dist/npm/timepicker/models/ListService.js +0 -2
- package/dist/npm/timepicker/models/ListServiceSettings.d.ts +0 -12
- package/dist/npm/timepicker/models/ListServiceSettings.js +0 -2
- package/dist/npm/timepicker/models/TimePart.d.ts +0 -10
- package/dist/npm/timepicker/models/TimePart.js +0 -13
- package/dist/npm/timepicker/models/TimePickerSettings.d.ts +0 -130
- package/dist/npm/timepicker/models/TimePickerSettings.js +0 -3
- package/dist/npm/timepicker/models/index.d.ts +0 -7
- package/dist/npm/timepicker/models/index.js +0 -5
- package/dist/npm/timepicker/services/DOMService.d.ts +0 -10
- package/dist/npm/timepicker/services/DOMService.js +0 -49
- package/dist/npm/timepicker/services/DayPeriodService.js +0 -122
- package/dist/npm/timepicker/services/HoursService.d.ts +0 -33
- package/dist/npm/timepicker/services/HoursService.js +0 -127
- package/dist/npm/timepicker/services/MinutesService.js +0 -122
- package/dist/npm/timepicker/services/SecondsService.d.ts +0 -32
- package/dist/npm/timepicker/services/SecondsService.js +0 -123
- package/dist/npm/timepicker/services/index.d.ts +0 -6
- package/dist/npm/timepicker/services/index.js +0 -13
- package/dist/npm/timepicker/utils.d.ts +0 -56
- package/dist/npm/timepicker/utils.js +0 -161
- package/dist/npm/utils.d.ts +0 -96
- package/dist/npm/utils.js +0 -325
- package/dist/npm/virtualization/Virtualization.d.ts +0 -116
- package/dist/npm/virtualization/Virtualization.js +0 -320
- package/dist/npm/virtualization/services/RowHeightService.d.ts +0 -18
- package/dist/npm/virtualization/services/RowHeightService.js +0 -71
- package/dist/npm/virtualization/services/ScrollerService.d.ts +0 -49
- package/dist/npm/virtualization/services/ScrollerService.js +0 -93
- package/dist/npm/virtualization/services/index.d.ts +0 -3
- package/dist/npm/virtualization/services/index.js +0 -9
- package/dist/systemjs/kendo-react-dateinputs.js +0 -1
- package/e2e-next/calendar.basic.tests.ts +0 -24
- package/e2e-next/dateinput.basic.tests.ts +0 -24
- package/e2e-next/datepicker.basic.tests.ts +0 -24
- package/e2e-next/daterangepicker.basic.tests.ts +0 -24
- package/e2e-next/datetimepicker.basic.tests.ts +0 -24
- package/e2e-next/timepicker.basic.tests.ts +0 -24
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DOMService = void 0;
|
|
4
|
-
var utils_1 = require("../../utils");
|
|
5
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
var DOMService = /** @class */ (function () {
|
|
10
|
-
function DOMService() {
|
|
11
|
-
this.itemHeight = 0;
|
|
12
|
-
this.timeListHeight = 0;
|
|
13
|
-
this.didCalculate = false;
|
|
14
|
-
}
|
|
15
|
-
DOMService.prototype.ensureHeights = function () {
|
|
16
|
-
if (this.timeListHeight !== undefined) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
this.calculateHeights();
|
|
20
|
-
};
|
|
21
|
-
DOMService.prototype.calculateHeights = function (container) {
|
|
22
|
-
if (!kendo_react_common_1.canUseDOM) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
var div = (0, utils_1.domContainerFactory)('div');
|
|
26
|
-
var span = (0, utils_1.domContainerFactory)('span');
|
|
27
|
-
var ul = (0, utils_1.domContainerFactory)('ul');
|
|
28
|
-
var li = (0, utils_1.domContainerFactory)('li');
|
|
29
|
-
var listItem = function () { return li('<span>02</span>', 'k-item'); };
|
|
30
|
-
var list = function () { return ul([listItem()], 'k-reset'); };
|
|
31
|
-
var scrollable = function () { return (div([list()], 'k-content k-scrollable k-time-container')); };
|
|
32
|
-
var timeListWrapper = function () {
|
|
33
|
-
return div([
|
|
34
|
-
span('minute', 'k-title'),
|
|
35
|
-
div([scrollable()], 'k-time-list')
|
|
36
|
-
], 'k-time-list-wrapper', { left: '-10000px', position: 'absolute' });
|
|
37
|
-
};
|
|
38
|
-
var timeWrapper = timeListWrapper();
|
|
39
|
-
var listContainer = container && container.querySelector('.k-time-container');
|
|
40
|
-
var hostContainer = listContainer || document.body;
|
|
41
|
-
var wrapper = hostContainer.appendChild(timeWrapper);
|
|
42
|
-
this.timeListHeight = wrapper.querySelector('.k-scrollable').offsetHeight;
|
|
43
|
-
this.itemHeight = wrapper.querySelector('li').offsetHeight;
|
|
44
|
-
hostContainer.removeChild(wrapper);
|
|
45
|
-
this.didCalculate = true;
|
|
46
|
-
};
|
|
47
|
-
return DOMService;
|
|
48
|
-
}());
|
|
49
|
-
exports.DOMService = DOMService;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DayPeriodService = void 0;
|
|
4
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
5
|
-
var setHours = function (date, hours) {
|
|
6
|
-
var clone = (0, kendo_date_math_1.cloneDate)(date);
|
|
7
|
-
clone.setHours(hours);
|
|
8
|
-
return clone;
|
|
9
|
-
};
|
|
10
|
-
var isAM = function (value) { return value !== null && value < 12; };
|
|
11
|
-
var isPM = function (value) { return value !== null && (!value || value > 11); };
|
|
12
|
-
var inRange = function (value, min, max) { return ((!min && !max) || (value >= min && value <= max)); };
|
|
13
|
-
var inReverseRange = function (value, min, max) { return ((!min && !max) || value >= min || value <= max); };
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
var DayPeriodService = /** @class */ (function () {
|
|
18
|
-
function DayPeriodService(intl) {
|
|
19
|
-
this.intl = intl;
|
|
20
|
-
this.min = null;
|
|
21
|
-
this.max = null;
|
|
22
|
-
this.part = null;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
DayPeriodService.prototype.apply = function (value, candidate) {
|
|
28
|
-
var hour = value.getHours();
|
|
29
|
-
var hourAM = isAM(hour);
|
|
30
|
-
var candidateAM = isAM(candidate.getHours());
|
|
31
|
-
if ((hourAM && candidateAM) || (!hourAM && !candidateAM)) {
|
|
32
|
-
return value;
|
|
33
|
-
}
|
|
34
|
-
var _a = this.normalizedRange(), min = _a[0], _b = _a[1], max = _b === void 0 ? 24 : _b;
|
|
35
|
-
var result = hour + (candidateAM ? -12 : 12);
|
|
36
|
-
return setHours(value, Math.min(Math.max(min, result), (max || 24)));
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
DayPeriodService.prototype.configure = function (settings) {
|
|
42
|
-
var _a = settings.min, min = _a === void 0 ? this.min : _a, _b = settings.max, max = _b === void 0 ? this.max : _b, _c = settings.part, part = _c === void 0 ? this.part : _c;
|
|
43
|
-
this.min = min;
|
|
44
|
-
this.max = max;
|
|
45
|
-
this.part = part;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
DayPeriodService.prototype.data = function (_) {
|
|
51
|
-
var names = this.part && this.part.names;
|
|
52
|
-
if (!names || !this.min) {
|
|
53
|
-
return [];
|
|
54
|
-
}
|
|
55
|
-
var data = [];
|
|
56
|
-
var _a = this.normalizedRange(), min = _a[0], max = _a[1];
|
|
57
|
-
var dayPeriod = this.intl.dateFormatNames(names);
|
|
58
|
-
if (isAM(min)) {
|
|
59
|
-
data.push({ text: dayPeriod.am, value: setHours(this.min, min) });
|
|
60
|
-
}
|
|
61
|
-
if (isPM(max)) {
|
|
62
|
-
data.push({ text: dayPeriod.pm, value: setHours(this.min, Math.max(12, max)) });
|
|
63
|
-
}
|
|
64
|
-
return this.min.getHours() !== min ? data.reverse() : data;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
DayPeriodService.prototype.isRangeChanged = function (_, __) {
|
|
70
|
-
return false;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
*/
|
|
75
|
-
DayPeriodService.prototype.limitRange = function (min, max, _) {
|
|
76
|
-
return [min, max];
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
DayPeriodService.prototype.total = function () {
|
|
82
|
-
var _a = this.normalizedRange(), min = _a[0], max = _a[1];
|
|
83
|
-
if (!min && !max) {
|
|
84
|
-
return 2;
|
|
85
|
-
}
|
|
86
|
-
if (min > 11 || max < 12) {
|
|
87
|
-
return 1;
|
|
88
|
-
}
|
|
89
|
-
return 2;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
94
|
-
DayPeriodService.prototype.selectedIndex = function (value) {
|
|
95
|
-
if (!this.valueInList(value) || !this.min) {
|
|
96
|
-
return -1;
|
|
97
|
-
}
|
|
98
|
-
var index = Math.floor(value.getHours() / 12);
|
|
99
|
-
return this.min.getHours() === this.normalizedRange()[0] ? index : (index === 0 ? 1 : 0);
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* @hidden
|
|
103
|
-
*/
|
|
104
|
-
DayPeriodService.prototype.valueInList = function (value) {
|
|
105
|
-
if (!this.min || !this.max) {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
var reverse = this.min.getHours() !== this.normalizedRange()[0];
|
|
109
|
-
var isInRange = reverse ? inReverseRange : inRange;
|
|
110
|
-
return isInRange(value.getHours(), this.min.getHours(), this.max.getHours());
|
|
111
|
-
};
|
|
112
|
-
DayPeriodService.prototype.normalizedRange = function () {
|
|
113
|
-
var minHour = this.min.getHours();
|
|
114
|
-
var maxHour = this.max.getHours();
|
|
115
|
-
return [
|
|
116
|
-
Math.min(minHour, maxHour),
|
|
117
|
-
Math.max(minHour, maxHour)
|
|
118
|
-
];
|
|
119
|
-
};
|
|
120
|
-
return DayPeriodService;
|
|
121
|
-
}());
|
|
122
|
-
exports.DayPeriodService = DayPeriodService;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { IntlService } from '@progress/kendo-react-intl';
|
|
2
|
-
import { ListServiceSettings } from '../models/ListServiceSettings';
|
|
3
|
-
import { ListService } from '../models/ListService';
|
|
4
|
-
import { ListItem } from '../models/ListItem';
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare class HoursService implements ListService {
|
|
9
|
-
private intl;
|
|
10
|
-
private boundRange;
|
|
11
|
-
private insertUndividedMax;
|
|
12
|
-
private min;
|
|
13
|
-
private max;
|
|
14
|
-
private step;
|
|
15
|
-
private toListItem;
|
|
16
|
-
constructor(intl: IntlService);
|
|
17
|
-
apply(value: Date, candidate: Date): Date;
|
|
18
|
-
configure(settings: ListServiceSettings): void;
|
|
19
|
-
data(selectedValue?: Date): ListItem[];
|
|
20
|
-
isRangeChanged(min: Date, max: Date): boolean;
|
|
21
|
-
limitRange(min: Date, max: Date, value?: Date): Date[];
|
|
22
|
-
total(value?: Date): number;
|
|
23
|
-
selectedIndex(value: Date): number;
|
|
24
|
-
valueInList(value?: Date): boolean;
|
|
25
|
-
private addLast;
|
|
26
|
-
private addMissing;
|
|
27
|
-
private countFromMin;
|
|
28
|
-
private isMissing;
|
|
29
|
-
private isLastMissing;
|
|
30
|
-
private divideByStep;
|
|
31
|
-
private lastHour;
|
|
32
|
-
private range;
|
|
33
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HoursService = void 0;
|
|
4
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
5
|
-
var utils_1 = require("../../utils");
|
|
6
|
-
var utils_2 = require("../utils");
|
|
7
|
-
var HOURS_IN_DAY = 24;
|
|
8
|
-
var clampToRange = function (rangeValue) { return function (value) { return value % rangeValue; }; };
|
|
9
|
-
var clamp = clampToRange(HOURS_IN_DAY);
|
|
10
|
-
var stepper = function (start, step) { return function (idx) { return clamp(start + (idx * step)); }; };
|
|
11
|
-
var distanceFromMin = function (value, min) { return clamp(HOURS_IN_DAY + value - min); };
|
|
12
|
-
var limit = function (borderValue) { return function (barrier, value) {
|
|
13
|
-
var useBarrier = !value || (0, kendo_date_math_1.getDate)(barrier).getTime() === (0, kendo_date_math_1.getDate)(value).getTime();
|
|
14
|
-
return useBarrier ? barrier : (0, utils_2.setHours)(barrier, borderValue);
|
|
15
|
-
}; };
|
|
16
|
-
var limitDown = limit(0);
|
|
17
|
-
var limitUp = limit(HOURS_IN_DAY - 1);
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
var HoursService = /** @class */ (function () {
|
|
22
|
-
function HoursService(intl) {
|
|
23
|
-
this.intl = intl;
|
|
24
|
-
this.boundRange = false;
|
|
25
|
-
this.insertUndividedMax = false;
|
|
26
|
-
this.min = null;
|
|
27
|
-
this.max = null;
|
|
28
|
-
this.step = 0;
|
|
29
|
-
this.toListItem = null;
|
|
30
|
-
}
|
|
31
|
-
HoursService.prototype.apply = function (value, candidate) {
|
|
32
|
-
return (0, utils_2.setHours)(value, candidate.getHours());
|
|
33
|
-
};
|
|
34
|
-
HoursService.prototype.configure = function (settings) {
|
|
35
|
-
var _this = this;
|
|
36
|
-
var _a = settings.boundRange, boundRange = _a === void 0 ? this.boundRange : _a, _b = settings.insertUndividedMax, insertUndividedMax = _b === void 0 ? this.insertUndividedMax : _b, _c = settings.min, min = _c === void 0 ? this.min : _c, _d = settings.max, max = _d === void 0 ? this.max : _d, part = settings.part, _e = settings.step, step = _e === void 0 ? this.step : _e;
|
|
37
|
-
this.boundRange = boundRange;
|
|
38
|
-
this.insertUndividedMax = insertUndividedMax;
|
|
39
|
-
this.toListItem = function (hour) {
|
|
40
|
-
var date = (0, utils_2.setHours)(utils_1.MIDNIGHT_DATE, hour);
|
|
41
|
-
return {
|
|
42
|
-
text: _this.intl.formatDate(date, part.pattern),
|
|
43
|
-
value: date
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
this.min = min;
|
|
47
|
-
this.max = max;
|
|
48
|
-
this.step = step;
|
|
49
|
-
};
|
|
50
|
-
HoursService.prototype.data = function (selectedValue) {
|
|
51
|
-
var _this = this;
|
|
52
|
-
var min = this.range(selectedValue)[0];
|
|
53
|
-
var getHour = stepper(min, this.step);
|
|
54
|
-
var convertToItem = function (idx) { return (_this.toListItem && _this.toListItem(getHour(idx))); };
|
|
55
|
-
var data = (0, utils_2.range)(0, this.countFromMin(selectedValue)).map(convertToItem);
|
|
56
|
-
this.addLast(data);
|
|
57
|
-
if (selectedValue) {
|
|
58
|
-
this.addMissing(data, selectedValue);
|
|
59
|
-
}
|
|
60
|
-
return data;
|
|
61
|
-
};
|
|
62
|
-
HoursService.prototype.isRangeChanged = function (min, max) {
|
|
63
|
-
if (!this.min || !this.max) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
return !(0, kendo_date_math_1.isEqual)(this.min, min) || !(0, kendo_date_math_1.isEqual)(this.max, max);
|
|
67
|
-
};
|
|
68
|
-
HoursService.prototype.limitRange = function (min, max, value) {
|
|
69
|
-
return this.boundRange ? [limitDown(min, value), limitUp(max, value)] : [min, max];
|
|
70
|
-
};
|
|
71
|
-
HoursService.prototype.total = function (value) {
|
|
72
|
-
var last = this.insertUndividedMax && this.isLastMissing(value) ? 1 : 0;
|
|
73
|
-
var missing = this.isMissing(value) ? 1 : 0;
|
|
74
|
-
return this.countFromMin(value) + missing + last;
|
|
75
|
-
};
|
|
76
|
-
HoursService.prototype.selectedIndex = function (value) {
|
|
77
|
-
return Math.ceil(this.divideByStep(value));
|
|
78
|
-
};
|
|
79
|
-
HoursService.prototype.valueInList = function (value) {
|
|
80
|
-
if (!value) {
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
var matchMax = this.insertUndividedMax && this.lastHour(value) === value.getHours();
|
|
84
|
-
return matchMax || !this.isMissing(value);
|
|
85
|
-
};
|
|
86
|
-
HoursService.prototype.addLast = function (data, value) {
|
|
87
|
-
if (this.insertUndividedMax && this.isLastMissing(value) && this.toListItem) {
|
|
88
|
-
data.push(this.toListItem(this.lastHour(value)));
|
|
89
|
-
}
|
|
90
|
-
return data;
|
|
91
|
-
};
|
|
92
|
-
HoursService.prototype.addMissing = function (data, value) {
|
|
93
|
-
if (this.valueInList(value)) {
|
|
94
|
-
return data;
|
|
95
|
-
}
|
|
96
|
-
if (this.toListItem) {
|
|
97
|
-
var missingItem = this.toListItem(value.getHours());
|
|
98
|
-
data.splice(this.selectedIndex(value), 0, missingItem);
|
|
99
|
-
}
|
|
100
|
-
return data;
|
|
101
|
-
};
|
|
102
|
-
HoursService.prototype.countFromMin = function (value) {
|
|
103
|
-
var _a = this.range(value), min = _a[0], max = _a[1];
|
|
104
|
-
return Math.floor(distanceFromMin(max, min) / this.step) + 1; /* include min */
|
|
105
|
-
};
|
|
106
|
-
HoursService.prototype.isMissing = function (value) {
|
|
107
|
-
if (!value) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
return this.selectedIndex(value) !== this.divideByStep(value);
|
|
111
|
-
};
|
|
112
|
-
HoursService.prototype.isLastMissing = function (value) {
|
|
113
|
-
return this.max !== null && this.isMissing((0, utils_2.setHours)(this.max, this.lastHour(value)));
|
|
114
|
-
};
|
|
115
|
-
HoursService.prototype.divideByStep = function (value) {
|
|
116
|
-
return distanceFromMin(value.getHours(), this.min.getHours()) / this.step;
|
|
117
|
-
};
|
|
118
|
-
HoursService.prototype.lastHour = function (value) {
|
|
119
|
-
return this.range(value)[1];
|
|
120
|
-
};
|
|
121
|
-
HoursService.prototype.range = function (value) {
|
|
122
|
-
var _a = this.limitRange(this.min, this.max, value), min = _a[0], max = _a[1];
|
|
123
|
-
return [min.getHours(), max.getHours()];
|
|
124
|
-
};
|
|
125
|
-
return HoursService;
|
|
126
|
-
}());
|
|
127
|
-
exports.HoursService = HoursService;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MinutesService = void 0;
|
|
4
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
5
|
-
var utils_1 = require("../../utils");
|
|
6
|
-
var utils_2 = require("../utils");
|
|
7
|
-
var MINUTES_IN_HOUR = 60;
|
|
8
|
-
var clampToRange = function (rangeValue) { return function (value) { return value % rangeValue; }; };
|
|
9
|
-
var clamp = clampToRange(MINUTES_IN_HOUR);
|
|
10
|
-
var stepper = function (start, step) { return function (idx) { return clamp(start + (idx * step)); }; };
|
|
11
|
-
var distanceFromMin = function (value, min) { return clamp(MINUTES_IN_HOUR + value - min); };
|
|
12
|
-
var limit = function (borderValue) { return function (barrier, value) {
|
|
13
|
-
var useBarrier = !value || barrier.getHours() === value.getHours();
|
|
14
|
-
return useBarrier ? barrier : (0, utils_2.setMinutes)(barrier, borderValue);
|
|
15
|
-
}; };
|
|
16
|
-
var limitDown = limit(0);
|
|
17
|
-
var limitUp = limit(MINUTES_IN_HOUR - 1);
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
var MinutesService = /** @class */ (function () {
|
|
22
|
-
function MinutesService(intl) {
|
|
23
|
-
this.intl = intl;
|
|
24
|
-
this.toListItem = null;
|
|
25
|
-
this.min = null;
|
|
26
|
-
this.max = null;
|
|
27
|
-
this.step = 0;
|
|
28
|
-
this.insertUndividedMax = false;
|
|
29
|
-
}
|
|
30
|
-
MinutesService.prototype.apply = function (value, candidate) {
|
|
31
|
-
return (0, utils_2.setMinutes)(value, candidate.getMinutes());
|
|
32
|
-
};
|
|
33
|
-
MinutesService.prototype.configure = function (settings) {
|
|
34
|
-
var _this = this;
|
|
35
|
-
var _a = settings.insertUndividedMax, insertUndividedMax = _a === void 0 ? this.insertUndividedMax : _a, _b = settings.min, min = _b === void 0 ? this.min : _b, _c = settings.max, max = _c === void 0 ? this.max : _c, part = settings.part, _d = settings.step, step = _d === void 0 ? this.step : _d;
|
|
36
|
-
this.insertUndividedMax = insertUndividedMax;
|
|
37
|
-
this.toListItem = function (minute) {
|
|
38
|
-
var date = (0, utils_2.setMinutes)(utils_1.MIDNIGHT_DATE, minute);
|
|
39
|
-
return {
|
|
40
|
-
text: _this.intl.formatDate(date, part.pattern),
|
|
41
|
-
value: date
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
this.min = min;
|
|
45
|
-
this.max = max;
|
|
46
|
-
this.step = step;
|
|
47
|
-
};
|
|
48
|
-
MinutesService.prototype.data = function (selectedValue) {
|
|
49
|
-
var _this = this;
|
|
50
|
-
var min = this.range(selectedValue)[0];
|
|
51
|
-
var getMinute = stepper(min, this.step);
|
|
52
|
-
var convertToItem = function (idx) { return (_this.toListItem && _this.toListItem(getMinute(idx))); };
|
|
53
|
-
var data = (0, utils_2.range)(0, this.countFromMin(selectedValue)).map(convertToItem);
|
|
54
|
-
this.addLast(data);
|
|
55
|
-
if (selectedValue) {
|
|
56
|
-
this.addMissing(data, selectedValue);
|
|
57
|
-
}
|
|
58
|
-
return data;
|
|
59
|
-
};
|
|
60
|
-
MinutesService.prototype.isRangeChanged = function (min, max) {
|
|
61
|
-
return (this.min !== null && this.max !== null) && (!(0, kendo_date_math_1.isEqual)(this.min, min) || !(0, kendo_date_math_1.isEqual)(this.max, max));
|
|
62
|
-
};
|
|
63
|
-
MinutesService.prototype.limitRange = function (min, max, value) {
|
|
64
|
-
return [limitDown(min, value), limitUp(max, value)];
|
|
65
|
-
};
|
|
66
|
-
MinutesService.prototype.total = function (value) {
|
|
67
|
-
var last = this.insertUndividedMax && this.isLastMissing(value) ? 1 : 0;
|
|
68
|
-
var missing = this.isMissing(value) ? 1 : 0;
|
|
69
|
-
return this.countFromMin(value) + missing + last;
|
|
70
|
-
};
|
|
71
|
-
MinutesService.prototype.selectedIndex = function (value) {
|
|
72
|
-
return Math.ceil(this.divideByStep(value));
|
|
73
|
-
};
|
|
74
|
-
MinutesService.prototype.valueInList = function (value) {
|
|
75
|
-
if (!value) {
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
var matchMax = this.insertUndividedMax && this.lastMinute(value) === value.getMinutes();
|
|
79
|
-
return matchMax || !this.isMissing(value);
|
|
80
|
-
};
|
|
81
|
-
MinutesService.prototype.addLast = function (data, value) {
|
|
82
|
-
if (this.insertUndividedMax && this.isLastMissing(value) && this.toListItem) {
|
|
83
|
-
data.push(this.toListItem(this.lastMinute(value)));
|
|
84
|
-
}
|
|
85
|
-
return data;
|
|
86
|
-
};
|
|
87
|
-
MinutesService.prototype.addMissing = function (data, value) {
|
|
88
|
-
if (this.valueInList(value)) {
|
|
89
|
-
return data;
|
|
90
|
-
}
|
|
91
|
-
if (this.toListItem) {
|
|
92
|
-
var missingItem = this.toListItem(value.getMinutes());
|
|
93
|
-
data.splice(this.selectedIndex(value), 0, missingItem);
|
|
94
|
-
}
|
|
95
|
-
return data;
|
|
96
|
-
};
|
|
97
|
-
MinutesService.prototype.countFromMin = function (value) {
|
|
98
|
-
var _a = this.range(value), min = _a[0], max = _a[1];
|
|
99
|
-
return Math.floor(distanceFromMin(max, min) / this.step) + 1; /* include min */
|
|
100
|
-
};
|
|
101
|
-
MinutesService.prototype.isMissing = function (value) {
|
|
102
|
-
if (!value) {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
return this.selectedIndex(value) !== this.divideByStep(value);
|
|
106
|
-
};
|
|
107
|
-
MinutesService.prototype.isLastMissing = function (value) {
|
|
108
|
-
return this.max !== null && this.isMissing((0, utils_2.setMinutes)(this.max, this.lastMinute(value)));
|
|
109
|
-
};
|
|
110
|
-
MinutesService.prototype.divideByStep = function (value) {
|
|
111
|
-
return distanceFromMin(value.getMinutes(), this.min.getMinutes()) / this.step;
|
|
112
|
-
};
|
|
113
|
-
MinutesService.prototype.lastMinute = function (value) {
|
|
114
|
-
return this.range(value)[1];
|
|
115
|
-
};
|
|
116
|
-
MinutesService.prototype.range = function (value) {
|
|
117
|
-
var _a = this.limitRange(this.min, this.max, value), min = _a[0], max = _a[1];
|
|
118
|
-
return [min.getMinutes(), max.getMinutes()];
|
|
119
|
-
};
|
|
120
|
-
return MinutesService;
|
|
121
|
-
}());
|
|
122
|
-
exports.MinutesService = MinutesService;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IntlService } from '@progress/kendo-react-intl';
|
|
2
|
-
import { ListServiceSettings } from '../models/ListServiceSettings';
|
|
3
|
-
import { ListService } from '../models/ListService';
|
|
4
|
-
import { ListItem } from '../models/ListItem';
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare class SecondsService implements ListService {
|
|
9
|
-
private intl;
|
|
10
|
-
private toListItem;
|
|
11
|
-
private min;
|
|
12
|
-
private max;
|
|
13
|
-
private step;
|
|
14
|
-
private insertUndividedMax;
|
|
15
|
-
constructor(intl: IntlService);
|
|
16
|
-
apply(value: Date, candidate: Date): Date;
|
|
17
|
-
configure(settings: ListServiceSettings): void;
|
|
18
|
-
data(selectedValue?: Date): ListItem[];
|
|
19
|
-
isRangeChanged(min: Date, max: Date): boolean;
|
|
20
|
-
limitRange(min: Date, max: Date, value?: Date): Date[];
|
|
21
|
-
total(value?: Date): number;
|
|
22
|
-
selectedIndex(value: Date): number;
|
|
23
|
-
valueInList(value: Date): boolean;
|
|
24
|
-
private divideByStep;
|
|
25
|
-
private addLast;
|
|
26
|
-
private addMissing;
|
|
27
|
-
private countFromMin;
|
|
28
|
-
private isMissing;
|
|
29
|
-
private isLastMissing;
|
|
30
|
-
private lastSecond;
|
|
31
|
-
private range;
|
|
32
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SecondsService = void 0;
|
|
4
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
5
|
-
var utils_1 = require("../../utils");
|
|
6
|
-
var utils_2 = require("../utils");
|
|
7
|
-
var SECONDS_IN_HOUR = 60;
|
|
8
|
-
var clampToRange = function (rangeValue) { return function (value) { return value % rangeValue; }; };
|
|
9
|
-
var clamp = clampToRange(SECONDS_IN_HOUR);
|
|
10
|
-
var stepper = function (start, step) { return function (idx) { return clamp(start + (idx * step)); }; };
|
|
11
|
-
var distanceFromMin = function (value, min) { return clamp(SECONDS_IN_HOUR + value - min); };
|
|
12
|
-
var limit = function (borderValue) { return function (barrier, value) {
|
|
13
|
-
var useBarrier = !value ||
|
|
14
|
-
(barrier.getMinutes() === value.getMinutes() && barrier.getHours() === value.getHours());
|
|
15
|
-
return useBarrier ? barrier : (0, utils_2.setSeconds)(barrier, borderValue);
|
|
16
|
-
}; };
|
|
17
|
-
var limitDown = limit(0);
|
|
18
|
-
var limitUp = limit(SECONDS_IN_HOUR - 1);
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
var SecondsService = /** @class */ (function () {
|
|
23
|
-
function SecondsService(intl) {
|
|
24
|
-
this.intl = intl;
|
|
25
|
-
this.toListItem = null;
|
|
26
|
-
this.min = null;
|
|
27
|
-
this.max = null;
|
|
28
|
-
this.step = 0;
|
|
29
|
-
this.insertUndividedMax = false;
|
|
30
|
-
}
|
|
31
|
-
SecondsService.prototype.apply = function (value, candidate) {
|
|
32
|
-
return (0, utils_2.setSeconds)(value, candidate.getSeconds());
|
|
33
|
-
};
|
|
34
|
-
SecondsService.prototype.configure = function (settings) {
|
|
35
|
-
var _this = this;
|
|
36
|
-
var _a = settings.insertUndividedMax, insertUndividedMax = _a === void 0 ? this.insertUndividedMax : _a, _b = settings.min, min = _b === void 0 ? this.min : _b, _c = settings.max, max = _c === void 0 ? this.max : _c, part = settings.part, _d = settings.step, step = _d === void 0 ? this.step : _d;
|
|
37
|
-
this.insertUndividedMax = insertUndividedMax;
|
|
38
|
-
this.toListItem = function (minute) {
|
|
39
|
-
var date = (0, utils_2.setSeconds)(utils_1.MIDNIGHT_DATE, minute);
|
|
40
|
-
return {
|
|
41
|
-
text: _this.intl.formatDate(date, part.pattern),
|
|
42
|
-
value: date
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
this.min = min;
|
|
46
|
-
this.max = max;
|
|
47
|
-
this.step = step;
|
|
48
|
-
};
|
|
49
|
-
SecondsService.prototype.data = function (selectedValue) {
|
|
50
|
-
var _this = this;
|
|
51
|
-
var min = this.range(selectedValue)[0];
|
|
52
|
-
var getSecond = stepper(min, this.step);
|
|
53
|
-
var convertToItem = function (idx) { return (_this.toListItem && _this.toListItem(getSecond(idx))); };
|
|
54
|
-
var data = (0, utils_2.range)(0, this.countFromMin(selectedValue)).map(convertToItem);
|
|
55
|
-
this.addLast(data);
|
|
56
|
-
if (selectedValue) {
|
|
57
|
-
this.addMissing(data, selectedValue);
|
|
58
|
-
}
|
|
59
|
-
return data;
|
|
60
|
-
};
|
|
61
|
-
SecondsService.prototype.isRangeChanged = function (min, max) {
|
|
62
|
-
return this.min !== null && this.max !== null && (!(0, kendo_date_math_1.isEqual)(this.min, min) || !(0, kendo_date_math_1.isEqual)(this.max, max));
|
|
63
|
-
};
|
|
64
|
-
SecondsService.prototype.limitRange = function (min, max, value) {
|
|
65
|
-
return [limitDown(min, value), limitUp(max, value)];
|
|
66
|
-
};
|
|
67
|
-
SecondsService.prototype.total = function (value) {
|
|
68
|
-
var last = this.insertUndividedMax && this.isLastMissing(value) ? 1 : 0;
|
|
69
|
-
var missing = this.isMissing(value) ? 1 : 0;
|
|
70
|
-
return this.countFromMin(value) + missing + last;
|
|
71
|
-
};
|
|
72
|
-
SecondsService.prototype.selectedIndex = function (value) {
|
|
73
|
-
return Math.ceil(this.divideByStep(value));
|
|
74
|
-
};
|
|
75
|
-
SecondsService.prototype.valueInList = function (value) {
|
|
76
|
-
if (!value) {
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
var matchMax = this.insertUndividedMax && this.lastSecond(value) === value.getSeconds();
|
|
80
|
-
return matchMax || !this.isMissing(value);
|
|
81
|
-
};
|
|
82
|
-
SecondsService.prototype.divideByStep = function (value) {
|
|
83
|
-
return distanceFromMin(value.getSeconds(), this.min.getSeconds()) / this.step;
|
|
84
|
-
};
|
|
85
|
-
SecondsService.prototype.addLast = function (data, value) {
|
|
86
|
-
if (this.insertUndividedMax && this.isLastMissing(value) && this.toListItem) {
|
|
87
|
-
data.push(this.toListItem(this.lastSecond(value)));
|
|
88
|
-
}
|
|
89
|
-
return data;
|
|
90
|
-
};
|
|
91
|
-
SecondsService.prototype.addMissing = function (data, value) {
|
|
92
|
-
if (this.valueInList(value)) {
|
|
93
|
-
return data;
|
|
94
|
-
}
|
|
95
|
-
if (this.toListItem) {
|
|
96
|
-
var missingItem = this.toListItem(value.getSeconds());
|
|
97
|
-
data.splice(this.selectedIndex(value), 0, missingItem);
|
|
98
|
-
}
|
|
99
|
-
return data;
|
|
100
|
-
};
|
|
101
|
-
SecondsService.prototype.countFromMin = function (value) {
|
|
102
|
-
var _a = this.range(value), min = _a[0], max = _a[1];
|
|
103
|
-
return Math.floor(distanceFromMin(max, min) / this.step) + 1; /* include min */
|
|
104
|
-
};
|
|
105
|
-
SecondsService.prototype.isMissing = function (value) {
|
|
106
|
-
if (!value) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
return this.selectedIndex(value) !== this.divideByStep(value);
|
|
110
|
-
};
|
|
111
|
-
SecondsService.prototype.isLastMissing = function (value) {
|
|
112
|
-
return this.max !== null && this.isMissing((0, utils_2.setSeconds)(this.max, this.lastSecond(value)));
|
|
113
|
-
};
|
|
114
|
-
SecondsService.prototype.lastSecond = function (value) {
|
|
115
|
-
return this.range(value)[1];
|
|
116
|
-
};
|
|
117
|
-
SecondsService.prototype.range = function (value) {
|
|
118
|
-
var _a = this.limitRange(this.min, this.max, value), min = _a[0], max = _a[1];
|
|
119
|
-
return [min.getSeconds(), max.getSeconds()];
|
|
120
|
-
};
|
|
121
|
-
return SecondsService;
|
|
122
|
-
}());
|
|
123
|
-
exports.SecondsService = SecondsService;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DayPeriodService } from './DayPeriodService';
|
|
2
|
-
import { DOMService } from './DOMService';
|
|
3
|
-
import { HoursService } from './HoursService';
|
|
4
|
-
import { MinutesService } from './MinutesService';
|
|
5
|
-
import { SecondsService } from './SecondsService';
|
|
6
|
-
export { DayPeriodService, DOMService, HoursService, MinutesService, SecondsService };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SecondsService = exports.MinutesService = exports.HoursService = exports.DOMService = exports.DayPeriodService = void 0;
|
|
4
|
-
var DayPeriodService_1 = require("./DayPeriodService");
|
|
5
|
-
Object.defineProperty(exports, "DayPeriodService", { enumerable: true, get: function () { return DayPeriodService_1.DayPeriodService; } });
|
|
6
|
-
var DOMService_1 = require("./DOMService");
|
|
7
|
-
Object.defineProperty(exports, "DOMService", { enumerable: true, get: function () { return DOMService_1.DOMService; } });
|
|
8
|
-
var HoursService_1 = require("./HoursService");
|
|
9
|
-
Object.defineProperty(exports, "HoursService", { enumerable: true, get: function () { return HoursService_1.HoursService; } });
|
|
10
|
-
var MinutesService_1 = require("./MinutesService");
|
|
11
|
-
Object.defineProperty(exports, "MinutesService", { enumerable: true, get: function () { return MinutesService_1.MinutesService; } });
|
|
12
|
-
var SecondsService_1 = require("./SecondsService");
|
|
13
|
-
Object.defineProperty(exports, "SecondsService", { enumerable: true, get: function () { return SecondsService_1.SecondsService; } });
|