@progress/kendo-react-dateinputs 6.1.1 → 7.0.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/{dist/es/PopupSettings.d.ts → PopupSettings.d.ts} +4 -0
- package/{dist/npm/calendar → calendar}/components/Calendar.d.ts +6 -2
- package/{dist/es/calendar → calendar}/components/CalendarCell.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarHeaderTitle.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarNavigationItem.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/CalendarWeekCell.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/Header.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/HorizontalViewList.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/MultiViewCalendar.d.ts +8 -4
- package/{dist/npm/calendar → calendar}/components/Navigation.d.ts +5 -1
- package/{dist/npm/calendar → calendar}/components/TodayCommand.d.ts +5 -1
- package/{dist/es/calendar → calendar}/components/View.d.ts +6 -2
- package/{dist/npm/calendar → calendar}/components/ViewList.d.ts +7 -3
- package/calendar/models/ActiveView.d.ts +8 -0
- package/{dist/npm/calendar → calendar}/models/CalendarSettings.d.ts +4 -1
- package/calendar/models/CalendarViewEnum.d.ts +13 -0
- package/{dist/npm/calendar → calendar}/models/CellContext.d.ts +4 -0
- package/calendar/models/MultiViewCalendarMode.d.ts +13 -0
- package/{dist/es/calendar → calendar}/models/MultiViewCalendarSettings.d.ts +4 -1
- package/calendar/models/NavigationAction.d.ts +19 -0
- package/calendar/models/SelectionRange.d.ts +21 -0
- package/calendar/models/SelectionRangeEnd.d.ts +8 -0
- package/{dist/npm/calendar → calendar}/models/ViewService.d.ts +4 -0
- package/calendar/models/index.d.ts +15 -0
- package/{dist/es/calendar → calendar}/services/BusViewService.d.ts +4 -1
- package/{dist/es/calendar → calendar}/services/CenturyViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/DOMService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/DecadeViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/MonthViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/NavigationService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/ScrollSyncService.d.ts +4 -0
- package/calendar/services/WeekNamesService.d.ts +13 -0
- package/{dist/es/calendar → calendar}/services/YearViewService.d.ts +4 -0
- package/{dist/npm/calendar → calendar}/services/index.d.ts +4 -0
- package/{dist/es/common → common}/AdaptiveMode.d.ts +5 -1
- package/{dist/es/common → common}/PickerWrap.d.ts +4 -0
- package/common/constants.d.ts +8 -0
- package/{dist/es/dateinput → dateinput}/DateInput.d.ts +11 -7
- package/{dist/es/dateinput → dateinput}/models/DateInputSettings.d.ts +4 -0
- package/{dist/es/dateinput → dateinput}/models/format-placeholder.d.ts +5 -1
- package/dateinput/models/incremental-steps.d.ts +15 -0
- package/dateinput/models/index.d.ts +11 -0
- package/{dist/es/dateinput → dateinput}/models/kendo-date.d.ts +4 -0
- package/dateinput/models/mask.d.ts +11 -0
- package/dateinput/models/selection.d.ts +11 -0
- package/{dist/npm/dateinput → dateinput}/utils.d.ts +4 -0
- package/{dist/npm/datepicker → datepicker}/DatePicker.d.ts +12 -8
- package/{dist/npm/datepicker → datepicker}/ToggleButton.d.ts +4 -0
- package/{dist/npm/datepicker → datepicker}/models/DatePickerSettings.d.ts +5 -2
- package/datepicker/models/index.d.ts +6 -0
- package/{dist/es/daterangepicker → daterangepicker}/DateRangePicker.d.ts +9 -5
- package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +10 -0
- package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +10 -0
- package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +10 -0
- package/{dist/npm/daterangepicker → daterangepicker}/models/DateRangePickerSettings.d.ts +4 -1
- package/{dist/es/daterangepicker → daterangepicker}/models/index.d.ts +4 -0
- package/{dist/npm/datetimepicker → datetimepicker}/DateTimePicker.d.ts +12 -8
- package/{dist/npm/datetimepicker → datetimepicker}/DateTimeSelector.d.ts +5 -1
- package/{dist/es/datetimepicker → datetimepicker}/models/DateTimePickerSettings.d.ts +5 -2
- package/datetimepicker/models/index.d.ts +6 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +21 -1
- package/hooks/usePickerFloatingLabel.d.ts +24 -0
- package/index.d.ts +39 -0
- package/index.js +21 -0
- package/index.mjs +6460 -0
- package/{dist/es/messages → messages}/index.d.ts +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +33 -51
- package/{dist/npm/timepicker → timepicker}/TimeList.d.ts +5 -1
- package/{dist/es/timepicker → timepicker}/TimePart.d.ts +5 -1
- package/{dist/es/timepicker → timepicker}/TimePicker.d.ts +12 -8
- package/{dist/es/timepicker → timepicker}/TimeSelector.d.ts +5 -1
- package/timepicker/models/IncrementalSteps.d.ts +12 -0
- package/timepicker/models/ListItem.d.ts +11 -0
- package/{dist/es/timepicker → timepicker}/models/ListService.d.ts +4 -0
- package/timepicker/models/ListServiceSettings.d.ts +16 -0
- package/timepicker/models/TimePart.d.ts +14 -0
- package/{dist/es/timepicker → timepicker}/models/TimePickerSettings.d.ts +5 -2
- package/timepicker/models/index.d.ts +11 -0
- package/timepicker/services/DOMService.d.ts +14 -0
- package/{dist/npm/timepicker → timepicker}/services/DayPeriodService.d.ts +4 -0
- package/{dist/es/timepicker → timepicker}/services/HoursService.d.ts +4 -0
- package/{dist/npm/timepicker → timepicker}/services/MinutesService.d.ts +4 -0
- package/{dist/es/timepicker → timepicker}/services/SecondsService.d.ts +4 -0
- package/timepicker/services/index.d.ts +10 -0
- package/{dist/es/timepicker → timepicker}/utils.d.ts +4 -0
- package/{dist/es/utils.d.ts → utils.d.ts} +4 -0
- package/{dist/es/virtualization → virtualization}/Virtualization.d.ts +6 -2
- package/{dist/es/virtualization → virtualization}/services/RowHeightService.d.ts +4 -0
- package/{dist/es/virtualization → virtualization}/services/ScrollerService.d.ts +6 -2
- package/virtualization/services/index.d.ts +7 -0
- package/about.md +0 -3
- package/dist/es/PopupSettings.js +0 -1
- package/dist/es/calendar/components/Calendar.d.ts +0 -187
- package/dist/es/calendar/components/Calendar.js +0 -388
- package/dist/es/calendar/components/CalendarCell.js +0 -128
- package/dist/es/calendar/components/CalendarHeaderTitle.d.ts +0 -28
- package/dist/es/calendar/components/CalendarHeaderTitle.js +0 -61
- package/dist/es/calendar/components/CalendarNavigationItem.d.ts +0 -27
- package/dist/es/calendar/components/CalendarNavigationItem.js +0 -66
- package/dist/es/calendar/components/CalendarWeekCell.d.ts +0 -25
- package/dist/es/calendar/components/CalendarWeekCell.js +0 -61
- package/dist/es/calendar/components/Header.d.ts +0 -54
- package/dist/es/calendar/components/Header.js +0 -129
- package/dist/es/calendar/components/HorizontalViewList.d.ts +0 -67
- package/dist/es/calendar/components/HorizontalViewList.js +0 -145
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +0 -208
- package/dist/es/calendar/components/MultiViewCalendar.js +0 -589
- package/dist/es/calendar/components/Navigation.d.ts +0 -76
- package/dist/es/calendar/components/Navigation.js +0 -167
- package/dist/es/calendar/components/TodayCommand.d.ts +0 -31
- package/dist/es/calendar/components/TodayCommand.js +0 -93
- package/dist/es/calendar/components/View.js +0 -220
- package/dist/es/calendar/components/ViewList.d.ts +0 -111
- package/dist/es/calendar/components/ViewList.js +0 -258
- package/dist/es/calendar/models/ActiveView.d.ts +0 -4
- package/dist/es/calendar/models/ActiveView.js +0 -1
- package/dist/es/calendar/models/CalendarSettings.d.ts +0 -103
- package/dist/es/calendar/models/CalendarSettings.js +0 -1
- package/dist/es/calendar/models/CalendarViewEnum.d.ts +0 -9
- package/dist/es/calendar/models/CalendarViewEnum.js +0 -10
- package/dist/es/calendar/models/CellContext.d.ts +0 -19
- package/dist/es/calendar/models/CellContext.js +0 -1
- package/dist/es/calendar/models/MultiViewCalendarMode.d.ts +0 -9
- package/dist/es/calendar/models/MultiViewCalendarMode.js +0 -1
- package/dist/es/calendar/models/MultiViewCalendarSettings.js +0 -1
- package/dist/es/calendar/models/NavigationAction.d.ts +0 -15
- package/dist/es/calendar/models/NavigationAction.js +0 -16
- package/dist/es/calendar/models/SelectionRange.d.ts +0 -17
- package/dist/es/calendar/models/SelectionRange.js +0 -4
- package/dist/es/calendar/models/SelectionRangeEnd.d.ts +0 -4
- package/dist/es/calendar/models/SelectionRangeEnd.js +0 -1
- package/dist/es/calendar/models/ViewService.d.ts +0 -25
- package/dist/es/calendar/models/ViewService.js +0 -1
- package/dist/es/calendar/models/index.d.ts +0 -11
- package/dist/es/calendar/models/index.js +0 -4
- package/dist/es/calendar/services/BusViewService.js +0 -69
- package/dist/es/calendar/services/CenturyViewService.js +0 -154
- package/dist/es/calendar/services/DOMService.d.ts +0 -29
- package/dist/es/calendar/services/DOMService.js +0 -184
- package/dist/es/calendar/services/DecadeViewService.d.ts +0 -27
- package/dist/es/calendar/services/DecadeViewService.js +0 -153
- package/dist/es/calendar/services/MonthViewService.d.ts +0 -33
- package/dist/es/calendar/services/MonthViewService.js +0 -169
- package/dist/es/calendar/services/NavigationService.d.ts +0 -14
- package/dist/es/calendar/services/NavigationService.js +0 -41
- package/dist/es/calendar/services/ScrollSyncService.d.ts +0 -21
- package/dist/es/calendar/services/ScrollSyncService.js +0 -58
- package/dist/es/calendar/services/WeekNamesService.d.ts +0 -9
- package/dist/es/calendar/services/WeekNamesService.js +0 -16
- package/dist/es/calendar/services/YearViewService.js +0 -180
- package/dist/es/calendar/services/index.d.ts +0 -10
- package/dist/es/calendar/services/index.js +0 -10
- package/dist/es/calendar/utils/ScrollSync.d.ts +0 -13
- package/dist/es/calendar/utils/ScrollSync.js +0 -30
- package/dist/es/common/AdaptiveMode.js +0 -45
- package/dist/es/common/PickerWrap.js +0 -14
- package/dist/es/common/constants.d.ts +0 -4
- package/dist/es/common/constants.js +0 -4
- package/dist/es/dateinput/DateInput.js +0 -704
- package/dist/es/dateinput/models/DateInputSettings.js +0 -2
- package/dist/es/dateinput/models/format-placeholder.js +0 -2
- package/dist/es/dateinput/models/incremental-steps.d.ts +0 -11
- package/dist/es/dateinput/models/incremental-steps.js +0 -1
- package/dist/es/dateinput/models/index.d.ts +0 -7
- package/dist/es/dateinput/models/index.js +0 -3
- package/dist/es/dateinput/models/kendo-date.js +0 -338
- package/dist/es/dateinput/models/mask.d.ts +0 -7
- package/dist/es/dateinput/models/mask.js +0 -11
- package/dist/es/dateinput/models/selection.d.ts +0 -7
- package/dist/es/dateinput/models/selection.js +0 -1
- package/dist/es/dateinput/utils.d.ts +0 -30
- package/dist/es/dateinput/utils.js +0 -83
- package/dist/es/datepicker/DatePicker.d.ts +0 -354
- package/dist/es/datepicker/DatePicker.js +0 -636
- package/dist/es/datepicker/ToggleButton.d.ts +0 -10
- package/dist/es/datepicker/ToggleButton.js +0 -5
- package/dist/es/datepicker/models/DatePickerSettings.d.ts +0 -138
- package/dist/es/datepicker/models/DatePickerSettings.js +0 -2
- package/dist/es/datepicker/models/index.d.ts +0 -2
- package/dist/es/datepicker/models/index.js +0 -1
- package/dist/es/daterangepicker/DateRangePicker.js +0 -584
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
- package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +0 -1
- package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +0 -123
- package/dist/es/daterangepicker/models/DateRangePickerSettings.js +0 -2
- package/dist/es/daterangepicker/models/index.js +0 -1
- package/dist/es/datetimepicker/DateTimePicker.d.ts +0 -338
- package/dist/es/datetimepicker/DateTimePicker.js +0 -566
- package/dist/es/datetimepicker/DateTimeSelector.d.ts +0 -97
- package/dist/es/datetimepicker/DateTimeSelector.js +0 -279
- package/dist/es/datetimepicker/models/DateTimePickerSettings.js +0 -1
- package/dist/es/datetimepicker/models/index.d.ts +0 -2
- package/dist/es/datetimepicker/models/index.js +0 -1
- package/dist/es/hooks/usePickerFloatingLabel.d.ts +0 -20
- package/dist/es/hooks/usePickerFloatingLabel.js +0 -35
- package/dist/es/main.d.ts +0 -35
- package/dist/es/main.js +0 -29
- package/dist/es/messages/index.js +0 -121
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/timepicker/TimeList.d.ts +0 -87
- package/dist/es/timepicker/TimeList.js +0 -302
- package/dist/es/timepicker/TimePart.js +0 -307
- package/dist/es/timepicker/TimePicker.js +0 -618
- package/dist/es/timepicker/TimeSelector.js +0 -261
- package/dist/es/timepicker/models/IncrementalSteps.d.ts +0 -8
- package/dist/es/timepicker/models/IncrementalSteps.js +0 -1
- package/dist/es/timepicker/models/ListItem.d.ts +0 -7
- package/dist/es/timepicker/models/ListItem.js +0 -1
- package/dist/es/timepicker/models/ListService.js +0 -1
- package/dist/es/timepicker/models/ListServiceSettings.d.ts +0 -12
- package/dist/es/timepicker/models/ListServiceSettings.js +0 -1
- package/dist/es/timepicker/models/TimePart.d.ts +0 -10
- package/dist/es/timepicker/models/TimePart.js +0 -10
- package/dist/es/timepicker/models/TimePickerSettings.js +0 -2
- package/dist/es/timepicker/models/index.d.ts +0 -7
- package/dist/es/timepicker/models/index.js +0 -2
- package/dist/es/timepicker/services/DOMService.d.ts +0 -10
- package/dist/es/timepicker/services/DOMService.js +0 -46
- package/dist/es/timepicker/services/DayPeriodService.d.ts +0 -47
- package/dist/es/timepicker/services/DayPeriodService.js +0 -119
- package/dist/es/timepicker/services/HoursService.js +0 -124
- package/dist/es/timepicker/services/MinutesService.d.ts +0 -32
- package/dist/es/timepicker/services/MinutesService.js +0 -119
- package/dist/es/timepicker/services/SecondsService.js +0 -120
- package/dist/es/timepicker/services/index.d.ts +0 -6
- package/dist/es/timepicker/services/index.js +0 -6
- package/dist/es/timepicker/utils.js +0 -149
- package/dist/es/utils.js +0 -306
- package/dist/es/virtualization/Virtualization.js +0 -317
- package/dist/es/virtualization/services/RowHeightService.js +0 -68
- package/dist/es/virtualization/services/ScrollerService.js +0 -90
- package/dist/es/virtualization/services/index.d.ts +0 -3
- package/dist/es/virtualization/services/index.js +0 -3
- package/dist/npm/PopupSettings.d.ts +0 -14
- package/dist/npm/PopupSettings.js +0 -2
- package/dist/npm/calendar/components/Calendar.js +0 -391
- package/dist/npm/calendar/components/CalendarCell.d.ts +0 -35
- package/dist/npm/calendar/components/CalendarCell.js +0 -131
- package/dist/npm/calendar/components/CalendarHeaderTitle.js +0 -64
- package/dist/npm/calendar/components/CalendarNavigationItem.js +0 -69
- package/dist/npm/calendar/components/CalendarWeekCell.js +0 -64
- package/dist/npm/calendar/components/Header.js +0 -132
- package/dist/npm/calendar/components/HorizontalViewList.js +0 -148
- package/dist/npm/calendar/components/MultiViewCalendar.js +0 -592
- package/dist/npm/calendar/components/Navigation.js +0 -170
- package/dist/npm/calendar/components/TodayCommand.js +0 -96
- package/dist/npm/calendar/components/View.d.ts +0 -85
- package/dist/npm/calendar/components/View.js +0 -223
- package/dist/npm/calendar/components/ViewList.js +0 -261
- package/dist/npm/calendar/models/ActiveView.d.ts +0 -4
- package/dist/npm/calendar/models/ActiveView.js +0 -2
- package/dist/npm/calendar/models/CalendarSettings.js +0 -2
- package/dist/npm/calendar/models/CalendarViewEnum.d.ts +0 -9
- package/dist/npm/calendar/models/CalendarViewEnum.js +0 -13
- package/dist/npm/calendar/models/CellContext.js +0 -2
- package/dist/npm/calendar/models/MultiViewCalendarMode.d.ts +0 -9
- package/dist/npm/calendar/models/MultiViewCalendarMode.js +0 -2
- package/dist/npm/calendar/models/MultiViewCalendarSettings.d.ts +0 -112
- package/dist/npm/calendar/models/MultiViewCalendarSettings.js +0 -2
- package/dist/npm/calendar/models/NavigationAction.d.ts +0 -15
- package/dist/npm/calendar/models/NavigationAction.js +0 -19
- package/dist/npm/calendar/models/SelectionRange.d.ts +0 -17
- package/dist/npm/calendar/models/SelectionRange.js +0 -7
- package/dist/npm/calendar/models/SelectionRangeEnd.d.ts +0 -4
- package/dist/npm/calendar/models/SelectionRangeEnd.js +0 -2
- package/dist/npm/calendar/models/ViewService.js +0 -2
- package/dist/npm/calendar/models/index.d.ts +0 -11
- package/dist/npm/calendar/models/index.js +0 -9
- package/dist/npm/calendar/services/BusViewService.d.ts +0 -22
- package/dist/npm/calendar/services/BusViewService.js +0 -72
- package/dist/npm/calendar/services/CenturyViewService.d.ts +0 -25
- package/dist/npm/calendar/services/CenturyViewService.js +0 -157
- package/dist/npm/calendar/services/DOMService.js +0 -187
- package/dist/npm/calendar/services/DecadeViewService.js +0 -156
- package/dist/npm/calendar/services/MonthViewService.js +0 -172
- package/dist/npm/calendar/services/NavigationService.js +0 -44
- package/dist/npm/calendar/services/ScrollSyncService.js +0 -61
- package/dist/npm/calendar/services/WeekNamesService.d.ts +0 -9
- package/dist/npm/calendar/services/WeekNamesService.js +0 -19
- package/dist/npm/calendar/services/YearViewService.d.ts +0 -31
- package/dist/npm/calendar/services/YearViewService.js +0 -183
- package/dist/npm/calendar/services/index.js +0 -21
- package/dist/npm/calendar/utils/ScrollSync.d.ts +0 -13
- package/dist/npm/calendar/utils/ScrollSync.js +0 -32
- package/dist/npm/common/AdaptiveMode.d.ts +0 -21
- package/dist/npm/common/AdaptiveMode.js +0 -49
- package/dist/npm/common/PickerWrap.d.ts +0 -18
- package/dist/npm/common/PickerWrap.js +0 -17
- package/dist/npm/common/constants.d.ts +0 -4
- package/dist/npm/common/constants.js +0 -7
- package/dist/npm/dateinput/DateInput.d.ts +0 -351
- package/dist/npm/dateinput/DateInput.js +0 -707
- package/dist/npm/dateinput/models/DateInputSettings.d.ts +0 -99
- package/dist/npm/dateinput/models/DateInputSettings.js +0 -3
- package/dist/npm/dateinput/models/format-placeholder.d.ts +0 -39
- package/dist/npm/dateinput/models/format-placeholder.js +0 -3
- package/dist/npm/dateinput/models/incremental-steps.d.ts +0 -11
- package/dist/npm/dateinput/models/incremental-steps.js +0 -2
- package/dist/npm/dateinput/models/index.d.ts +0 -7
- package/dist/npm/dateinput/models/index.js +0 -7
- package/dist/npm/dateinput/models/kendo-date.d.ts +0 -53
- package/dist/npm/dateinput/models/kendo-date.js +0 -341
- package/dist/npm/dateinput/models/mask.d.ts +0 -7
- package/dist/npm/dateinput/models/mask.js +0 -14
- package/dist/npm/dateinput/models/selection.d.ts +0 -7
- package/dist/npm/dateinput/models/selection.js +0 -2
- package/dist/npm/dateinput/utils.js +0 -90
- package/dist/npm/datepicker/DatePicker.js +0 -639
- package/dist/npm/datepicker/ToggleButton.js +0 -8
- package/dist/npm/datepicker/models/DatePickerSettings.js +0 -3
- package/dist/npm/datepicker/models/index.d.ts +0 -2
- package/dist/npm/datepicker/models/index.js +0 -2
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +0 -349
- package/dist/npm/daterangepicker/DateRangePicker.js +0 -587
- package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
- package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.js +0 -2
- package/dist/npm/daterangepicker/models/DateRangePickerSettings.js +0 -3
- package/dist/npm/daterangepicker/models/index.d.ts +0 -5
- package/dist/npm/daterangepicker/models/index.js +0 -2
- package/dist/npm/datetimepicker/DateTimePicker.js +0 -569
- package/dist/npm/datetimepicker/DateTimeSelector.js +0 -282
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.d.ts +0 -141
- package/dist/npm/datetimepicker/models/DateTimePickerSettings.js +0 -2
- package/dist/npm/datetimepicker/models/index.d.ts +0 -2
- package/dist/npm/datetimepicker/models/index.js +0 -2
- package/dist/npm/hooks/usePickerFloatingLabel.d.ts +0 -20
- package/dist/npm/hooks/usePickerFloatingLabel.js +0 -40
- package/dist/npm/main.d.ts +0 -35
- package/dist/npm/main.js +0 -102
- package/dist/npm/messages/index.d.ts +0 -120
- package/dist/npm/messages/index.js +0 -124
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/timepicker/TimeList.js +0 -305
- package/dist/npm/timepicker/TimePart.d.ts +0 -136
- package/dist/npm/timepicker/TimePart.js +0 -310
- package/dist/npm/timepicker/TimePicker.d.ts +0 -351
- package/dist/npm/timepicker/TimePicker.js +0 -621
- package/dist/npm/timepicker/TimeSelector.d.ts +0 -138
- package/dist/npm/timepicker/TimeSelector.js +0 -264
- package/dist/npm/timepicker/models/IncrementalSteps.d.ts +0 -8
- package/dist/npm/timepicker/models/IncrementalSteps.js +0 -2
- package/dist/npm/timepicker/models/ListItem.d.ts +0 -7
- package/dist/npm/timepicker/models/ListItem.js +0 -2
- package/dist/npm/timepicker/models/ListService.d.ts +0 -15
- package/dist/npm/timepicker/models/ListService.js +0 -2
- package/dist/npm/timepicker/models/ListServiceSettings.d.ts +0 -12
- package/dist/npm/timepicker/models/ListServiceSettings.js +0 -2
- package/dist/npm/timepicker/models/TimePart.d.ts +0 -10
- package/dist/npm/timepicker/models/TimePart.js +0 -13
- package/dist/npm/timepicker/models/TimePickerSettings.d.ts +0 -130
- package/dist/npm/timepicker/models/TimePickerSettings.js +0 -3
- package/dist/npm/timepicker/models/index.d.ts +0 -7
- package/dist/npm/timepicker/models/index.js +0 -5
- package/dist/npm/timepicker/services/DOMService.d.ts +0 -10
- package/dist/npm/timepicker/services/DOMService.js +0 -49
- package/dist/npm/timepicker/services/DayPeriodService.js +0 -122
- package/dist/npm/timepicker/services/HoursService.d.ts +0 -33
- package/dist/npm/timepicker/services/HoursService.js +0 -127
- package/dist/npm/timepicker/services/MinutesService.js +0 -122
- package/dist/npm/timepicker/services/SecondsService.d.ts +0 -32
- package/dist/npm/timepicker/services/SecondsService.js +0 -123
- package/dist/npm/timepicker/services/index.d.ts +0 -6
- package/dist/npm/timepicker/services/index.js +0 -13
- package/dist/npm/timepicker/utils.d.ts +0 -56
- package/dist/npm/timepicker/utils.js +0 -161
- package/dist/npm/utils.d.ts +0 -96
- package/dist/npm/utils.js +0 -325
- package/dist/npm/virtualization/Virtualization.d.ts +0 -116
- package/dist/npm/virtualization/Virtualization.js +0 -320
- package/dist/npm/virtualization/services/RowHeightService.d.ts +0 -18
- package/dist/npm/virtualization/services/RowHeightService.js +0 -71
- package/dist/npm/virtualization/services/ScrollerService.d.ts +0 -49
- package/dist/npm/virtualization/services/ScrollerService.js +0 -93
- package/dist/npm/virtualization/services/index.d.ts +0 -3
- package/dist/npm/virtualization/services/index.js +0 -9
- package/dist/systemjs/kendo-react-dateinputs.js +0 -1
- package/e2e-next/calendar.basic.tests.ts +0 -24
- package/e2e-next/dateinput.basic.tests.ts +0 -24
- package/e2e-next/datepicker.basic.tests.ts +0 -24
- package/e2e-next/daterangepicker.basic.tests.ts +0 -24
- package/e2e-next/datetimepicker.basic.tests.ts +0 -24
- package/e2e-next/timepicker.basic.tests.ts +0 -24
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { DateInputFormatPlaceholder } from './format-placeholder';
|
|
2
|
-
import { DateInputIncrementalSteps } from './incremental-steps';
|
|
3
|
-
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
export interface DateInputSettings {
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the `date` format which is used for formatting the value ([see example]({% slug formats_dateinput %})). If not set, the default format will be used.
|
|
10
|
-
*/
|
|
11
|
-
format?: string | DateFormatOptions;
|
|
12
|
-
/**
|
|
13
|
-
* Specifies the descriptions of the format sections in the input field ([more information and example]({% slug placeholders_dateinput %})).
|
|
14
|
-
*/
|
|
15
|
-
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the width of the DateInput.
|
|
18
|
-
*/
|
|
19
|
-
width?: number | string;
|
|
20
|
-
/**
|
|
21
|
-
* Sets the `tabIndex` property of the DateInput.
|
|
22
|
-
*/
|
|
23
|
-
tabIndex?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the title of the `input` element of the DateInput.
|
|
26
|
-
*/
|
|
27
|
-
title?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies the incremental steps of the DateInput ([see example]({% slug incrementalsteps_dateinput %})).
|
|
30
|
-
*
|
|
31
|
-
* The available options are:
|
|
32
|
-
* - `year: Number`—Controls the incremental step of the year value.
|
|
33
|
-
* - `month: Number`—Controls the incremental step of the month value.
|
|
34
|
-
* - `day: Number`—Controls the incremental step of the day value.
|
|
35
|
-
* - `hour: Number`—Controls the incremental step of the hour value.
|
|
36
|
-
* - `minute: Number`—Controls the incremental step of the minute value.
|
|
37
|
-
* - `second: Number`—Controls the incremental step of the second value.
|
|
38
|
-
*/
|
|
39
|
-
steps?: DateInputIncrementalSteps;
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the smallest date that is valid ([see example]({% slug dateranges_dateinput %})).
|
|
42
|
-
*/
|
|
43
|
-
min?: Date;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the greatest date that is valid ([see example]({% slug dateranges_dateinput %})).
|
|
46
|
-
*/
|
|
47
|
-
max?: Date;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies the smallest time that is valid ([see example]({% slug dateranges_dateinput %}#toc-limiting-the-time-range)).
|
|
50
|
-
*/
|
|
51
|
-
minTime?: Date;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the greatest time that is valid ([see example]({% slug dateranges_dateinput %}#toc-limiting-the-time-range)).
|
|
54
|
-
*/
|
|
55
|
-
maxTime?: Date;
|
|
56
|
-
/**
|
|
57
|
-
* Determines whether the DateInput is disabled ([see example]({% slug disabled_dateinput %})).
|
|
58
|
-
*/
|
|
59
|
-
disabled?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Specifies whether the **Up** and **Down** spin buttons will be rendered ([see example]({% slug spinbuttons_dateinput %})).
|
|
62
|
-
*/
|
|
63
|
-
spinners?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Specifies the name property of the input DOM element.
|
|
66
|
-
*/
|
|
67
|
-
name?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Represents the `dir` HTML attribute.
|
|
70
|
-
*/
|
|
71
|
-
dir?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Renders a floating label for the DateInput.
|
|
74
|
-
*/
|
|
75
|
-
label?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the `id` of the `input` DOM element.
|
|
78
|
-
*/
|
|
79
|
-
id?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
82
|
-
* For example these elements could contain error or hint message.
|
|
83
|
-
*/
|
|
84
|
-
ariaDescribedBy?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Identifies the element(s) which will label the component.
|
|
87
|
-
*/
|
|
88
|
-
ariaLabelledBy?: string;
|
|
89
|
-
/**
|
|
90
|
-
* The accessible label of the component.
|
|
91
|
-
*/
|
|
92
|
-
ariaLabel?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
95
|
-
* For more information, refer to the article on
|
|
96
|
-
* [placeholders]({% slug placeholders_dateinput %}).
|
|
97
|
-
*/
|
|
98
|
-
placeholder?: string | null;
|
|
99
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The interface which defines a custom-format placeholder structure in the DateInput.
|
|
3
|
-
*/
|
|
4
|
-
export interface DateInputCustomFormatPlaceholder {
|
|
5
|
-
/**
|
|
6
|
-
* Defines the description for the `year` format section.
|
|
7
|
-
*/
|
|
8
|
-
year?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Defines the description for the `month` format section.
|
|
11
|
-
*/
|
|
12
|
-
month?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Defines the description for the `day` format section.
|
|
15
|
-
*/
|
|
16
|
-
day?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Defines the description for the `hour` format section.
|
|
19
|
-
*/
|
|
20
|
-
hour?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Defines the description for the `minute` format section.
|
|
23
|
-
*/
|
|
24
|
-
minute?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Defines the description for the `second` format section.
|
|
27
|
-
*/
|
|
28
|
-
second?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The union type which defines all possible format options of the DateInput placeholder.
|
|
32
|
-
*
|
|
33
|
-
* The available options are:
|
|
34
|
-
* * `'wide'`—Displays the full description of the format section. For example, turns `MM` into `month`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
35
|
-
* * `'narrow'`—Displays the narrow description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
36
|
-
* * `'short'`—Displays the short description of the format section. For example, turns `MM` into `mo.`. Retrieved from [CLDR](https://github.com/telerik/kendo-intl/blob/develop/docs/cldr/index.md).
|
|
37
|
-
* * `'formatPattern'`—Directly displays the format section. For example, turns `MM` into `MM`.
|
|
38
|
-
*/
|
|
39
|
-
export declare type DateInputFormatPlaceholder = 'wide' | 'narrow' | 'short' | 'formatPattern' | DateInputCustomFormatPlaceholder;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DateInputFormatPlaceholder, DateInputCustomFormatPlaceholder } from './format-placeholder';
|
|
2
|
-
import { DateInputIncrementalSteps } from './incremental-steps';
|
|
3
|
-
import { DateInputSettings } from './DateInputSettings';
|
|
4
|
-
import { DatePart, KendoDate } from './kendo-date';
|
|
5
|
-
import { Mask } from './mask';
|
|
6
|
-
import { Selection } from './selection';
|
|
7
|
-
export { DateInputFormatPlaceholder, DateInputCustomFormatPlaceholder, DateInputIncrementalSteps, DateInputSettings, DatePart, KendoDate, Mask, Selection };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Mask = exports.KendoDate = void 0;
|
|
4
|
-
var kendo_date_1 = require("./kendo-date");
|
|
5
|
-
Object.defineProperty(exports, "KendoDate", { enumerable: true, get: function () { return kendo_date_1.KendoDate; } });
|
|
6
|
-
var mask_1 = require("./mask");
|
|
7
|
-
Object.defineProperty(exports, "Mask", { enumerable: true, get: function () { return mask_1.Mask; } });
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { DateInputFormatPlaceholder } from './format-placeholder';
|
|
2
|
-
import { IntlService, DateFormatOptions } from '@progress/kendo-react-intl';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
export interface DatePart {
|
|
7
|
-
value: Date | null;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class KendoDate {
|
|
13
|
-
year: boolean;
|
|
14
|
-
month: boolean;
|
|
15
|
-
date: boolean;
|
|
16
|
-
hours: boolean;
|
|
17
|
-
minutes: boolean;
|
|
18
|
-
seconds: boolean;
|
|
19
|
-
milliseconds: boolean;
|
|
20
|
-
formatPlaceholder: DateInputFormatPlaceholder;
|
|
21
|
-
format: string | DateFormatOptions;
|
|
22
|
-
private leadingZero;
|
|
23
|
-
private monthNames;
|
|
24
|
-
private typedMonthPart;
|
|
25
|
-
private knownParts;
|
|
26
|
-
private symbols;
|
|
27
|
-
private intlProvider;
|
|
28
|
-
get intl(): IntlService;
|
|
29
|
-
private _value;
|
|
30
|
-
get value(): Date;
|
|
31
|
-
constructor(intlProvider: () => IntlService, formatPlaceholder: DateInputFormatPlaceholder, format: string | DateFormatOptions);
|
|
32
|
-
setValue(value: Date | null): void;
|
|
33
|
-
hasValue(): boolean;
|
|
34
|
-
getDateObject(): Date | null;
|
|
35
|
-
getTextAndFormat(): {
|
|
36
|
-
text: string;
|
|
37
|
-
format: string;
|
|
38
|
-
};
|
|
39
|
-
modifyExisting(value: boolean): void;
|
|
40
|
-
getExisting(symbol: string): boolean;
|
|
41
|
-
setExisting(symbol: string, value: boolean): void;
|
|
42
|
-
modifyPart(symbol: string, offset: number): void;
|
|
43
|
-
parsePart(symbol: string, currentChar: string): DatePart;
|
|
44
|
-
symbolMap(symbol: string): string;
|
|
45
|
-
resetLeadingZero(): boolean;
|
|
46
|
-
private isAbbrMonth;
|
|
47
|
-
private partPattern;
|
|
48
|
-
private matchMonth;
|
|
49
|
-
private allFormatedMonths;
|
|
50
|
-
private dateFormatString;
|
|
51
|
-
private merge;
|
|
52
|
-
private dateFieldName;
|
|
53
|
-
}
|
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KendoDate = void 0;
|
|
4
|
-
var kendo_date_math_1 = require("@progress/kendo-date-math");
|
|
5
|
-
var mask_1 = require("./mask");
|
|
6
|
-
var utils_1 = require("./../utils");
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var KendoDate = /** @class */ (function () {
|
|
11
|
-
function KendoDate(intlProvider, formatPlaceholder, format) {
|
|
12
|
-
this.year = true;
|
|
13
|
-
this.month = true;
|
|
14
|
-
this.date = true;
|
|
15
|
-
this.hours = true;
|
|
16
|
-
this.minutes = true;
|
|
17
|
-
this.seconds = true;
|
|
18
|
-
this.milliseconds = true;
|
|
19
|
-
this.leadingZero = null;
|
|
20
|
-
this.typedMonthPart = '';
|
|
21
|
-
this.knownParts = 'adHhmMsEy';
|
|
22
|
-
this.symbols = {
|
|
23
|
-
'E': 'E',
|
|
24
|
-
'H': 'H',
|
|
25
|
-
'M': 'M',
|
|
26
|
-
'a': 'a',
|
|
27
|
-
'd': 'd',
|
|
28
|
-
'h': 'h',
|
|
29
|
-
'm': 'm',
|
|
30
|
-
's': 's',
|
|
31
|
-
'y': 'y'
|
|
32
|
-
};
|
|
33
|
-
this._value = (0, kendo_date_math_1.getDate)(new Date());
|
|
34
|
-
this.intlProvider = intlProvider;
|
|
35
|
-
this.formatPlaceholder = formatPlaceholder;
|
|
36
|
-
this.format = format;
|
|
37
|
-
this.monthNames = this.allFormatedMonths();
|
|
38
|
-
}
|
|
39
|
-
Object.defineProperty(KendoDate.prototype, "intl", {
|
|
40
|
-
get: function () {
|
|
41
|
-
return this.intlProvider();
|
|
42
|
-
},
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(KendoDate.prototype, "value", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return this._value;
|
|
49
|
-
},
|
|
50
|
-
enumerable: false,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
KendoDate.prototype.setValue = function (value) {
|
|
54
|
-
if (!value) {
|
|
55
|
-
this._value = (0, kendo_date_math_1.getDate)(new Date());
|
|
56
|
-
this.modifyExisting(false);
|
|
57
|
-
}
|
|
58
|
-
else if (!(0, kendo_date_math_1.isEqual)(value, this._value)) {
|
|
59
|
-
this._value = (0, kendo_date_math_1.cloneDate)(value);
|
|
60
|
-
this.modifyExisting(true);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
KendoDate.prototype.hasValue = function () {
|
|
64
|
-
var _this = this;
|
|
65
|
-
var pred = function (a, p) { return a || p.type !== 'literal' && p.type !== 'dayperiod' && _this.getExisting(p.pattern[0]); };
|
|
66
|
-
return this.intl.splitDateFormat(this.format).reduce(pred, false);
|
|
67
|
-
};
|
|
68
|
-
KendoDate.prototype.getDateObject = function () {
|
|
69
|
-
for (var i = 0; i < this.knownParts.length; i++) {
|
|
70
|
-
if (!this.getExisting(this.knownParts[i])) {
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return (0, kendo_date_math_1.cloneDate)(this.value);
|
|
75
|
-
};
|
|
76
|
-
KendoDate.prototype.getTextAndFormat = function () {
|
|
77
|
-
return this.merge(this.intl.formatDate(this.value, this.format), this.dateFormatString(this.value, this.format));
|
|
78
|
-
};
|
|
79
|
-
KendoDate.prototype.modifyExisting = function (value) {
|
|
80
|
-
var sampleFormat = this.dateFormatString(this.value, this.format).symbols;
|
|
81
|
-
for (var i = 0; i < sampleFormat.length; i++) {
|
|
82
|
-
this.setExisting(sampleFormat[i], value);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
KendoDate.prototype.getExisting = function (symbol) {
|
|
86
|
-
switch (symbol) {
|
|
87
|
-
case 'y': return this.year;
|
|
88
|
-
case 'M':
|
|
89
|
-
case 'L': return this.month;
|
|
90
|
-
case 'd': return this.date;
|
|
91
|
-
case 'E': return this.date && this.month && this.year;
|
|
92
|
-
case 'h':
|
|
93
|
-
case 'H': return this.hours;
|
|
94
|
-
case 'm': return this.minutes;
|
|
95
|
-
case 's': return this.seconds;
|
|
96
|
-
default: return true;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
KendoDate.prototype.setExisting = function (symbol, value) {
|
|
100
|
-
switch (symbol) {
|
|
101
|
-
case 'y':
|
|
102
|
-
// allow 2/29 dates
|
|
103
|
-
this.year = value;
|
|
104
|
-
if (value === false) {
|
|
105
|
-
this._value.setFullYear(2000);
|
|
106
|
-
}
|
|
107
|
-
break;
|
|
108
|
-
case 'M':
|
|
109
|
-
// make sure you can type 31 in the day part
|
|
110
|
-
this.month = value;
|
|
111
|
-
if (value === false) {
|
|
112
|
-
this._value.setMonth(0);
|
|
113
|
-
}
|
|
114
|
-
break;
|
|
115
|
-
case 'd':
|
|
116
|
-
this.date = value;
|
|
117
|
-
break;
|
|
118
|
-
case 'h':
|
|
119
|
-
case 'H':
|
|
120
|
-
this.hours = value;
|
|
121
|
-
break;
|
|
122
|
-
case 'm':
|
|
123
|
-
this.minutes = value;
|
|
124
|
-
break;
|
|
125
|
-
case 's':
|
|
126
|
-
this.seconds = value;
|
|
127
|
-
break;
|
|
128
|
-
default: return;
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
KendoDate.prototype.modifyPart = function (symbol, offset) {
|
|
132
|
-
var newValue = (0, kendo_date_math_1.cloneDate)(this.value);
|
|
133
|
-
switch (symbol) {
|
|
134
|
-
case 'y':
|
|
135
|
-
newValue.setFullYear(newValue.getFullYear() + offset);
|
|
136
|
-
break;
|
|
137
|
-
case 'M':
|
|
138
|
-
newValue = (0, kendo_date_math_1.addMonths)(this.value, offset);
|
|
139
|
-
break;
|
|
140
|
-
case 'd':
|
|
141
|
-
case 'E':
|
|
142
|
-
newValue.setDate(newValue.getDate() + offset);
|
|
143
|
-
break;
|
|
144
|
-
case 'h':
|
|
145
|
-
case 'H':
|
|
146
|
-
newValue.setHours(newValue.getHours() + offset);
|
|
147
|
-
break;
|
|
148
|
-
case 'm':
|
|
149
|
-
newValue.setMinutes(newValue.getMinutes() + offset);
|
|
150
|
-
break;
|
|
151
|
-
case 's':
|
|
152
|
-
newValue.setSeconds(newValue.getSeconds() + offset);
|
|
153
|
-
break;
|
|
154
|
-
case 'a':
|
|
155
|
-
newValue.setHours(newValue.getHours() + (12 * offset));
|
|
156
|
-
break;
|
|
157
|
-
default: break;
|
|
158
|
-
}
|
|
159
|
-
this.setExisting(symbol, true);
|
|
160
|
-
this._value = newValue;
|
|
161
|
-
};
|
|
162
|
-
KendoDate.prototype.parsePart = function (symbol, currentChar) {
|
|
163
|
-
var _a;
|
|
164
|
-
this.resetLeadingZero();
|
|
165
|
-
if (!currentChar) {
|
|
166
|
-
this.setExisting(symbol, false);
|
|
167
|
-
return { value: null };
|
|
168
|
-
}
|
|
169
|
-
var baseDate = this.intl.formatDate(this.value, this.format);
|
|
170
|
-
var dateParts = this.dateFormatString(this.value, this.format);
|
|
171
|
-
var baseFormat = dateParts.symbols;
|
|
172
|
-
var replaced = false;
|
|
173
|
-
var prefix = '';
|
|
174
|
-
var current = '';
|
|
175
|
-
var suffix = '';
|
|
176
|
-
for (var i = 0; i < baseDate.length; i++) {
|
|
177
|
-
if (baseFormat[i] === symbol) {
|
|
178
|
-
current += this.getExisting(symbol) ? baseDate[i] : '0';
|
|
179
|
-
replaced = true;
|
|
180
|
-
}
|
|
181
|
-
else if (!replaced) {
|
|
182
|
-
prefix += baseDate[i];
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
suffix += baseDate[i];
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
var parsedDate = null;
|
|
189
|
-
var month = this.matchMonth(currentChar);
|
|
190
|
-
while (current.length > 0 && current.charAt(0) === '0') {
|
|
191
|
-
current = current.slice(1);
|
|
192
|
-
}
|
|
193
|
-
if (current.length >= 4) {
|
|
194
|
-
current = '';
|
|
195
|
-
}
|
|
196
|
-
for (var i = 0; i < 2; i++) {
|
|
197
|
-
var middle = current + currentChar;
|
|
198
|
-
var middleNumber = parseInt(middle, 10);
|
|
199
|
-
parsedDate = this.intl.parseDate(prefix + middle + suffix, this.format);
|
|
200
|
-
if (!parsedDate && !isNaN(middleNumber) && !isNaN(parseInt(currentChar, 10))) {
|
|
201
|
-
if (symbol === 'M' && !month) {
|
|
202
|
-
var monthNumber = middleNumber - 1;
|
|
203
|
-
if (monthNumber > -1 && monthNumber < 12) {
|
|
204
|
-
parsedDate = (0, kendo_date_math_1.cloneDate)(this.value);
|
|
205
|
-
parsedDate.setMonth(monthNumber);
|
|
206
|
-
if (parsedDate.getMonth() !== monthNumber) {
|
|
207
|
-
parsedDate = (0, kendo_date_math_1.lastDayOfMonth)((0, kendo_date_math_1.addMonths)(parsedDate, -1));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
if (symbol === 'y') {
|
|
212
|
-
parsedDate = (0, kendo_date_math_1.createDate)(parseInt(middle, 10), this.month ? this.value.getMonth() : 0, this.date ? this.value.getDate() : 1, this.hours ? this.value.getHours() : 0, this.minutes ? this.value.getMinutes() : 0, this.seconds ? this.value.getSeconds() : 0, this.milliseconds ? this.value.getMilliseconds() : 0);
|
|
213
|
-
if (this.date && parsedDate.getDate() !== this.value.getDate()) {
|
|
214
|
-
parsedDate = (0, kendo_date_math_1.lastDayOfMonth)((0, kendo_date_math_1.addMonths)(parsedDate, -1));
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
if (parsedDate) {
|
|
219
|
-
this._value = parsedDate;
|
|
220
|
-
this.setExisting(symbol, true);
|
|
221
|
-
return { value: this.value };
|
|
222
|
-
}
|
|
223
|
-
current = '';
|
|
224
|
-
}
|
|
225
|
-
if (month) {
|
|
226
|
-
parsedDate = this.intl.parseDate(prefix + month + suffix, this.format);
|
|
227
|
-
if (parsedDate) {
|
|
228
|
-
this._value = parsedDate;
|
|
229
|
-
this.setExisting(symbol, true);
|
|
230
|
-
return { value: this.value };
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
if (currentChar === '0') {
|
|
234
|
-
this.leadingZero = !this.isAbbrMonth(dateParts.partMap, symbol) ? (_a = {}, _a[symbol] = true, _a) : null;
|
|
235
|
-
this.setExisting(symbol, false);
|
|
236
|
-
}
|
|
237
|
-
return { value: null };
|
|
238
|
-
};
|
|
239
|
-
KendoDate.prototype.symbolMap = function (symbol) {
|
|
240
|
-
return this.intl.splitDateFormat(this.format).reduce(utils_1.dateSymbolMap, {})[symbol];
|
|
241
|
-
};
|
|
242
|
-
KendoDate.prototype.resetLeadingZero = function () {
|
|
243
|
-
var hasLeadingZero = this.leadingZero !== null;
|
|
244
|
-
this.leadingZero = null;
|
|
245
|
-
return hasLeadingZero;
|
|
246
|
-
};
|
|
247
|
-
KendoDate.prototype.isAbbrMonth = function (parts, symbol) {
|
|
248
|
-
var pattern = this.partPattern(parts, symbol);
|
|
249
|
-
return pattern.type === 'month' && pattern.names;
|
|
250
|
-
};
|
|
251
|
-
KendoDate.prototype.partPattern = function (parts, symbol) {
|
|
252
|
-
return parts.filter(function (part) { return part.pattern.indexOf(symbol) !== -1; })[0];
|
|
253
|
-
};
|
|
254
|
-
KendoDate.prototype.matchMonth = function (typedChar) {
|
|
255
|
-
this.typedMonthPart += typedChar.toLowerCase();
|
|
256
|
-
if (this.monthNames.length === 0) {
|
|
257
|
-
return '';
|
|
258
|
-
}
|
|
259
|
-
while (this.typedMonthPart.length > 0) {
|
|
260
|
-
for (var i = 0; i < this.monthNames.length; i++) {
|
|
261
|
-
if (this.monthNames[i].toLowerCase().indexOf(this.typedMonthPart) === 0) {
|
|
262
|
-
return this.monthNames[i];
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
var monthAsNum = parseInt(this.typedMonthPart, 10);
|
|
266
|
-
/* ensure they exact match */
|
|
267
|
-
if (monthAsNum >= 1 && monthAsNum <= 12 && monthAsNum.toString() === this.typedMonthPart) {
|
|
268
|
-
return this.monthNames[monthAsNum - 1];
|
|
269
|
-
}
|
|
270
|
-
this.typedMonthPart = this.typedMonthPart.substring(1, this.typedMonthPart.length);
|
|
271
|
-
}
|
|
272
|
-
return '';
|
|
273
|
-
};
|
|
274
|
-
KendoDate.prototype.allFormatedMonths = function () {
|
|
275
|
-
var dateFormatParts = this.intl.splitDateFormat(this.format);
|
|
276
|
-
for (var i = 0; i < dateFormatParts.length; i++) {
|
|
277
|
-
if (dateFormatParts[i].type === 'month' && dateFormatParts[i].names) {
|
|
278
|
-
return this.intl.dateFormatNames(dateFormatParts[i].names);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return [];
|
|
282
|
-
};
|
|
283
|
-
KendoDate.prototype.dateFormatString = function (date, format) {
|
|
284
|
-
var dateFormatParts = this.intl.splitDateFormat(format);
|
|
285
|
-
var parts = [];
|
|
286
|
-
var partMap = [];
|
|
287
|
-
for (var i = 0; i < dateFormatParts.length; i++) {
|
|
288
|
-
var partLength = this.intl.formatDate(date, { pattern: dateFormatParts[i].pattern }).length;
|
|
289
|
-
while (partLength > 0) {
|
|
290
|
-
parts.push(this.symbols[dateFormatParts[i].pattern[0]] || '_');
|
|
291
|
-
partMap.push(dateFormatParts[i]);
|
|
292
|
-
partLength--;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
var returnValue = new mask_1.Mask();
|
|
296
|
-
returnValue.symbols = parts.join('');
|
|
297
|
-
returnValue.partMap = partMap;
|
|
298
|
-
return returnValue;
|
|
299
|
-
};
|
|
300
|
-
KendoDate.prototype.merge = function (text, mask) {
|
|
301
|
-
// Important: right to left.
|
|
302
|
-
var resultText = '';
|
|
303
|
-
var resultFormat = '';
|
|
304
|
-
var format = mask.symbols;
|
|
305
|
-
for (var r = format.length - 1; r >= 0; r--) {
|
|
306
|
-
if (this.knownParts.indexOf(format[r]) === -1 || this.getExisting(format[r])) {
|
|
307
|
-
resultText = text[r] + resultText;
|
|
308
|
-
resultFormat = format[r] + resultFormat;
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
var currentSymbol = format[r];
|
|
312
|
-
while (r >= 0 && currentSymbol === format[r]) {
|
|
313
|
-
r--;
|
|
314
|
-
}
|
|
315
|
-
r++;
|
|
316
|
-
if (this.leadingZero && this.leadingZero[currentSymbol]) {
|
|
317
|
-
resultText = '0' + resultText;
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
resultText = this.dateFieldName(mask.partMap[r]) + resultText;
|
|
321
|
-
}
|
|
322
|
-
while (resultFormat.length < resultText.length) {
|
|
323
|
-
resultFormat = format[r] + resultFormat;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
return { text: resultText, format: resultFormat };
|
|
328
|
-
};
|
|
329
|
-
KendoDate.prototype.dateFieldName = function (part) {
|
|
330
|
-
var formatPlaceholder = (this.formatPlaceholder || 'wide');
|
|
331
|
-
if (formatPlaceholder[part.type]) {
|
|
332
|
-
return formatPlaceholder[part.type];
|
|
333
|
-
}
|
|
334
|
-
if (formatPlaceholder === 'formatPattern') {
|
|
335
|
-
return part.pattern;
|
|
336
|
-
}
|
|
337
|
-
return this.intl.dateFieldName(Object.assign(part, { nameType: formatPlaceholder }));
|
|
338
|
-
};
|
|
339
|
-
return KendoDate;
|
|
340
|
-
}());
|
|
341
|
-
exports.KendoDate = KendoDate;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Mask = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
var Mask = /** @class */ (function () {
|
|
8
|
-
function Mask() {
|
|
9
|
-
this.symbols = '';
|
|
10
|
-
this.partMap = [];
|
|
11
|
-
}
|
|
12
|
-
return Mask;
|
|
13
|
-
}());
|
|
14
|
-
exports.Mask = Mask;
|