vectis-ui 0.1.0 → 0.8.0
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/README.md +40 -6
- package/dist/components/VAccordion/VAccordion.css +1 -1
- package/dist/components/VAccordion/VAccordion.d.ts +9 -16
- package/dist/components/VAccordion/VAccordion.js.map +1 -1
- package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAccordion/VAccordionItem.css +1 -1
- package/dist/components/VAccordion/VAccordionItem.d.ts +33 -19
- package/dist/components/VAccordion/VAccordionItem.js.map +1 -1
- package/dist/components/VAccordion/VAccordionItem.vue_vue_type_script_setup_true_lang.js +50 -38
- package/dist/components/VAccordion/VAccordionItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAccordion/context.d.ts +1 -8
- package/dist/components/VAccordion/context.js.map +1 -1
- package/dist/components/VAvatar/VAvatar.css +1 -1
- package/dist/components/VAvatar/VAvatar.d.ts +44 -29
- package/dist/components/VAvatar/VAvatar.js.map +1 -1
- package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js +38 -35
- package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAvatar/VAvatarGroup.d.ts +5 -16
- package/dist/components/VAvatar/VAvatarGroup.js.map +1 -1
- package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAvatar/context.d.ts +6 -10
- package/dist/components/VAvatar/context.js.map +1 -1
- package/dist/components/VBadge/VBadge.css +1 -1
- package/dist/components/VBadge/VBadge.d.ts +31 -10
- package/dist/components/VBadge/VBadge.js.map +1 -1
- package/dist/components/VBadge/VBadge.vue_vue_type_script_setup_true_lang.js +39 -24
- package/dist/components/VBadge/VBadge.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VBreadcrumb/VBreadcrumb.css +1 -1
- package/dist/components/VBreadcrumb/VBreadcrumb.d.ts +4 -17
- package/dist/components/VBreadcrumb/VBreadcrumb.js.map +1 -1
- package/dist/components/VBreadcrumb/VBreadcrumb.vue_vue_type_script_setup_true_lang.js +23 -25
- package/dist/components/VBreadcrumb/VBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/VButton.css +1 -1
- package/dist/components/VButton/VButton.d.ts +30 -10
- package/dist/components/VButton/VButton.js.map +1 -1
- package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js +39 -30
- package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/VButtonGroup.css +1 -1
- package/dist/components/VButton/VButtonGroup.d.ts +76 -13
- package/dist/components/VButton/VButtonGroup.js.map +1 -1
- package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js +74 -8
- package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/context.d.ts +30 -0
- package/dist/components/VButton/context.js +6 -0
- package/dist/components/VButton/context.js.map +1 -0
- package/dist/components/VCalendar/VCalendar.css +1 -1
- package/dist/components/VCalendar/VCalendar.d.ts +50 -36
- package/dist/components/VCalendar/VCalendar.js.map +1 -1
- package/dist/components/VCalendar/VCalendar.vue_vue_type_script_setup_true_lang.js +99 -85
- package/dist/components/VCalendar/VCalendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarEvent.css +1 -1
- package/dist/components/VCalendar/VCalendarEvent.d.ts +5 -11
- package/dist/components/VCalendar/VCalendarEvent.js.map +1 -1
- package/dist/components/VCalendar/VCalendarEvent.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/VCalendar/VCalendarEvent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarMonth.css +1 -1
- package/dist/components/VCalendar/VCalendarMonth.d.ts +10 -13
- package/dist/components/VCalendar/VCalendarMonth.js.map +1 -1
- package/dist/components/VCalendar/VCalendarMonth.vue_vue_type_script_setup_true_lang.js +183 -244
- package/dist/components/VCalendar/VCalendarMonth.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarTimeGrid.css +1 -1
- package/dist/components/VCalendar/VCalendarTimeGrid.d.ts +15 -20
- package/dist/components/VCalendar/VCalendarTimeGrid.js.map +1 -1
- package/dist/components/VCalendar/VCalendarTimeGrid.vue_vue_type_script_setup_true_lang.js +385 -448
- package/dist/components/VCalendar/VCalendarTimeGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarYear.css +1 -1
- package/dist/components/VCalendar/VCalendarYear.js.map +1 -1
- package/dist/components/VCalendar/VCalendarYear.vue_vue_type_script_setup_true_lang.js +53 -49
- package/dist/components/VCalendar/VCalendarYear.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/gesture.d.ts +158 -0
- package/dist/components/VCalendar/gesture.js +170 -0
- package/dist/components/VCalendar/gesture.js.map +1 -0
- package/dist/components/VCalendar/keyboard.d.ts +9 -3
- package/dist/components/VCalendar/keyboard.js +2 -6
- package/dist/components/VCalendar/keyboard.js.map +1 -1
- package/dist/components/VCalendar/layout.d.ts +67 -54
- package/dist/components/VCalendar/layout.js +77 -69
- package/dist/components/VCalendar/layout.js.map +1 -1
- package/dist/components/VCalendar/timeGrid.d.ts +55 -0
- package/dist/components/VCalendar/timeGrid.js +71 -0
- package/dist/components/VCalendar/timeGrid.js.map +1 -0
- package/dist/components/VCalendar/types.d.ts +41 -16
- package/dist/components/VCarousel/VCarousel.css +1 -1
- package/dist/components/VCarousel/VCarousel.d.ts +21 -41
- package/dist/components/VCarousel/VCarousel.js.map +1 -1
- package/dist/components/VCarousel/VCarousel.vue_vue_type_script_setup_true_lang.js +157 -129
- package/dist/components/VCarousel/VCarousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCarousel/VCarouselItem.d.ts +0 -17
- package/dist/components/VCarousel/VCarouselItem.js.map +1 -1
- package/dist/components/VCarousel/VCarouselItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCarousel/context.d.ts +0 -12
- package/dist/components/VCarousel/context.js.map +1 -1
- package/dist/components/VCheckbox/VCheckbox.css +1 -1
- package/dist/components/VCheckbox/VCheckbox.d.ts +31 -16
- package/dist/components/VCheckbox/VCheckbox.js.map +1 -1
- package/dist/components/VCheckbox/VCheckbox.vue_vue_type_script_setup_true_lang.js +62 -29
- package/dist/components/VCheckbox/VCheckbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VChip/VChip.css +1 -1
- package/dist/components/VChip/VChip.d.ts +36 -26
- package/dist/components/VChip/VChip.js.map +1 -1
- package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js +57 -48
- package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VCombobox.css +1 -1
- package/dist/components/VCombobox/VCombobox.d.ts +127 -31
- package/dist/components/VCombobox/VCombobox.js.map +1 -1
- package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js +336 -247
- package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VComboboxGroup.css +1 -1
- package/dist/components/VCombobox/VComboboxGroup.d.ts +0 -9
- package/dist/components/VCombobox/VComboboxGroup.js.map +1 -1
- package/dist/components/VCombobox/VComboboxGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VCombobox/VComboboxGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VComboboxOption.css +1 -1
- package/dist/components/VCombobox/VComboboxOption.d.ts +0 -15
- package/dist/components/VCombobox/VComboboxOption.js.map +1 -1
- package/dist/components/VCombobox/VComboboxOption.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/VCombobox/VComboboxOption.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VComboboxSeparator.js.map +1 -1
- package/dist/components/VCombobox/VComboboxSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/infiniteScroll.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.css +1 -1
- package/dist/components/VDataTable/VDataTable.d.ts +50 -28
- package/dist/components/VDataTable/VDataTable.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +183 -194
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDateInput/VDateInput.css +1 -1
- package/dist/components/VDateInput/VDateInput.d.ts +90 -42
- package/dist/components/VDateInput/VDateInput.js.map +1 -1
- package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js +159 -191
- package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDatePicker/VDatePicker.css +1 -1
- package/dist/components/VDatePicker/VDatePicker.d.ts +61 -30
- package/dist/components/VDatePicker/VDatePicker.js.map +1 -1
- package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js +243 -221
- package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDialog/VDialog.css +1 -1
- package/dist/components/VDialog/VDialog.d.ts +45 -33
- package/dist/components/VDialog/VDialog.js.map +1 -1
- package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js +65 -64
- package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDialog/VDialogAlert.d.ts +24 -20
- package/dist/components/VDialog/VDialogAlert.js.map +1 -1
- package/dist/components/VDialog/VDialogAlert.vue_vue_type_script_setup_true_lang.js +36 -25
- package/dist/components/VDialog/VDialogAlert.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VFileInput/VFileInput.css +1 -1
- package/dist/components/VFileInput/VFileInput.d.ts +78 -26
- package/dist/components/VFileInput/VFileInput.js.map +1 -1
- package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js +144 -132
- package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VFilePicker/VFilePicker.css +1 -1
- package/dist/components/VFilePicker/VFilePicker.d.ts +47 -30
- package/dist/components/VFilePicker/VFilePicker.js.map +1 -1
- package/dist/components/VFilePicker/VFilePicker.vue_vue_type_script_setup_true_lang.js +166 -163
- package/dist/components/VFilePicker/VFilePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VFilePicker/fileKind.d.ts +2 -27
- package/dist/components/VFilePicker/fileKind.js +9 -8
- package/dist/components/VFilePicker/fileKind.js.map +1 -1
- package/dist/components/VHotkeys/VHotkeys.css +1 -1
- package/dist/components/VHotkeys/VHotkeys.d.ts +8 -30
- package/dist/components/VHotkeys/VHotkeys.js.map +1 -1
- package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VHotkeys/platform.js.map +1 -1
- package/dist/components/VIcon/VIcon.css +1 -1
- package/dist/components/VIcon/VIcon.d.ts +15 -6
- package/dist/components/VIcon/VIcon.js.map +1 -1
- package/dist/components/VIcon/VIcon.vue_vue_type_script_setup_true_lang.js +45 -37
- package/dist/components/VIcon/VIcon.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VIcon/iconProps.js.map +1 -1
- package/dist/components/VIcon/icons/index.d.ts +1 -1
- package/dist/components/VIcon/icons/index.js.map +1 -1
- package/dist/components/VIcon/icons/names.d.ts +1 -1
- package/dist/components/VIcon/icons/names.js.map +1 -1
- package/dist/components/VIcon/resolver.d.ts +3 -3
- package/dist/components/VIcon/resolver.js.map +1 -1
- package/dist/components/VIcon/types.d.ts +12 -12
- package/dist/components/VIconButton/VIconButton.css +1 -1
- package/dist/components/VIconButton/VIconButton.d.ts +28 -11
- package/dist/components/VIconButton/VIconButton.js.map +1 -1
- package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js +26 -20
- package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/VInput.css +1 -1
- package/dist/components/VInput/VInput.d.ts +26 -7
- package/dist/components/VInput/VInput.js.map +1 -1
- package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js +86 -75
- package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/VInputGroup.css +2 -0
- package/dist/components/VInput/VInputGroup.d.ts +47 -0
- package/dist/components/VInput/VInputGroup.js +9 -0
- package/dist/components/VInput/VInputGroup.js.map +1 -0
- package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/VInput/context.d.ts +11 -0
- package/dist/components/VInput/context.js +6 -0
- package/dist/components/VInput/context.js.map +1 -0
- package/dist/components/VInputOTP/VInputOTP.css +1 -1
- package/dist/components/VInputOTP/VInputOTP.d.ts +37 -22
- package/dist/components/VInputOTP/VInputOTP.js.map +1 -1
- package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js +98 -61
- package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenu.d.ts +23 -30
- package/dist/components/VMenu/VMenu.js.map +1 -1
- package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js +31 -27
- package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuGroup.css +1 -1
- package/dist/components/VMenu/VMenuGroup.d.ts +12 -8
- package/dist/components/VMenu/VMenuGroup.js.map +1 -1
- package/dist/components/VMenu/VMenuGroup.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/VMenu/VMenuGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuItem.css +1 -1
- package/dist/components/VMenu/VMenuItem.d.ts +11 -19
- package/dist/components/VMenu/VMenuItem.js.map +1 -1
- package/dist/components/VMenu/VMenuItem.vue_vue_type_script_setup_true_lang.js +65 -57
- package/dist/components/VMenu/VMenuItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuPanel.d.ts +14 -30
- package/dist/components/VMenu/VMenuPanel.js.map +1 -1
- package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js +43 -44
- package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/context.d.ts +2 -6
- package/dist/components/VMenu/context.js.map +1 -1
- package/dist/components/VPagination/VPagination.css +1 -1
- package/dist/components/VPagination/VPagination.d.ts +60 -22
- package/dist/components/VPagination/VPagination.js.map +1 -1
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js +113 -161
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VPopover/VPopover.css +1 -1
- package/dist/components/VPopover/VPopover.d.ts +26 -7
- package/dist/components/VPopover/VPopover.js.map +1 -1
- package/dist/components/VPopover/VPopover.vue_vue_type_script_setup_true_lang.js +43 -37
- package/dist/components/VPopover/VPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VProgressCircular/VProgressCircular.css +1 -1
- package/dist/components/VProgressCircular/VProgressCircular.d.ts +15 -4
- package/dist/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/dist/components/VProgressCircular/VProgressCircular.vue_vue_type_script_setup_true_lang.js +32 -30
- package/dist/components/VProgressCircular/VProgressCircular.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VProgressLinear/VProgressLinear.css +1 -1
- package/dist/components/VProgressLinear/VProgressLinear.d.ts +23 -8
- package/dist/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js +34 -32
- package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VRadio/VRadio.css +1 -1
- package/dist/components/VRadio/VRadio.d.ts +36 -18
- package/dist/components/VRadio/VRadio.js.map +1 -1
- package/dist/components/VRadio/VRadio.vue_vue_type_script_setup_true_lang.js +55 -26
- package/dist/components/VRadio/VRadio.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSeparator/VSeparator.d.ts +4 -2
- package/dist/components/VSeparator/VSeparator.js.map +1 -1
- package/dist/components/VSeparator/VSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigation.css +1 -1
- package/dist/components/VSideNavigation/VSideNavigation.d.ts +5 -19
- package/dist/components/VSideNavigation/VSideNavigation.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationGroup.css +1 -1
- package/dist/components/VSideNavigation/VSideNavigationGroup.d.ts +9 -17
- package/dist/components/VSideNavigation/VSideNavigationGroup.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/VSideNavigation/VSideNavigationGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationItem.css +1 -1
- package/dist/components/VSideNavigation/VSideNavigationItem.d.ts +22 -30
- package/dist/components/VSideNavigation/VSideNavigationItem.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js +77 -87
- package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/context.d.ts +0 -14
- package/dist/components/VSideNavigation/context.js.map +1 -1
- package/dist/components/VSkeletonLoader/VSkeletonLoader.css +1 -1
- package/dist/components/VSkeletonLoader/VSkeletonLoader.d.ts +9 -9
- package/dist/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/dist/components/VSkeletonLoader/VSkeletonLoader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSlider/VSlider.css +1 -1
- package/dist/components/VSlider/VSlider.d.ts +52 -27
- package/dist/components/VSlider/VSlider.js.map +1 -1
- package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js +202 -118
- package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSnackbar/VSnackbar.css +1 -1
- package/dist/components/VSnackbar/VSnackbar.d.ts +0 -23
- package/dist/components/VSnackbar/VSnackbar.js.map +1 -1
- package/dist/components/VSnackbar/VSnackbar.vue_vue_type_script_setup_true_lang.js +38 -38
- package/dist/components/VSnackbar/VSnackbar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSnackbar/state.d.ts +0 -27
- package/dist/components/VSnackbar/state.js.map +1 -1
- package/dist/components/VSpinner/VSpinner.css +1 -1
- package/dist/components/VSpinner/VSpinner.d.ts +6 -6
- package/dist/components/VSpinner/VSpinner.js.map +1 -1
- package/dist/components/VSpinner/VSpinner.vue_vue_type_script_setup_true_lang.js +10 -9
- package/dist/components/VSpinner/VSpinner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSwitch/VSwitch.css +1 -1
- package/dist/components/VSwitch/VSwitch.d.ts +35 -13
- package/dist/components/VSwitch/VSwitch.js.map +1 -1
- package/dist/components/VSwitch/VSwitch.vue_vue_type_script_setup_true_lang.js +62 -21
- package/dist/components/VSwitch/VSwitch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTab.css +1 -1
- package/dist/components/VTabs/VTab.d.ts +12 -12
- package/dist/components/VTabs/VTab.js.map +1 -1
- package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js +36 -24
- package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTabPanel.d.ts +2 -10
- package/dist/components/VTabs/VTabPanel.js.map +1 -1
- package/dist/components/VTabs/VTabPanel.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/VTabs/VTabPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTabs.css +1 -1
- package/dist/components/VTabs/VTabs.d.ts +27 -18
- package/dist/components/VTabs/VTabs.js.map +1 -1
- package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js +92 -81
- package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/context.d.ts +9 -19
- package/dist/components/VTabs/context.js +1 -1
- package/dist/components/VTabs/context.js.map +1 -1
- package/dist/components/VTextarea/VTextarea.css +1 -1
- package/dist/components/VTextarea/VTextarea.d.ts +34 -6
- package/dist/components/VTextarea/VTextarea.js.map +1 -1
- package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js +91 -74
- package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimeInput/VTimeInput.css +1 -1
- package/dist/components/VTimeInput/VTimeInput.d.ts +123 -33
- package/dist/components/VTimeInput/VTimeInput.js.map +1 -1
- package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js +294 -291
- package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimeInput/search.d.ts +24 -0
- package/dist/components/VTimeInput/search.js +22 -0
- package/dist/components/VTimeInput/search.js.map +1 -0
- package/dist/components/VTimePicker/VTimePicker.css +1 -1
- package/dist/components/VTimePicker/VTimePicker.d.ts +51 -30
- package/dist/components/VTimePicker/VTimePicker.js.map +1 -1
- package/dist/components/VTimePicker/VTimePicker.vue_vue_type_script_setup_true_lang.js +216 -151
- package/dist/components/VTimePicker/VTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimePicker/limits.d.ts +88 -0
- package/dist/components/VTimePicker/limits.js +70 -0
- package/dist/components/VTimePicker/limits.js.map +1 -0
- package/dist/components/VToast/VToast.css +1 -1
- package/dist/components/VToast/VToast.d.ts +0 -10
- package/dist/components/VToast/VToast.js.map +1 -1
- package/dist/components/VToast/VToast.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/components/VToast/VToast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToast/VToaster.css +1 -1
- package/dist/components/VToast/VToaster.d.ts +0 -17
- package/dist/components/VToast/VToaster.js.map +1 -1
- package/dist/components/VToast/VToaster.vue_vue_type_script_setup_true_lang.js +29 -28
- package/dist/components/VToast/VToaster.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToast/state.d.ts +10 -19
- package/dist/components/VToast/state.js +1 -1
- package/dist/components/VToast/state.js.map +1 -1
- package/dist/components/VToggle/VToggle.css +1 -1
- package/dist/components/VToggle/VToggle.d.ts +56 -11
- package/dist/components/VToggle/VToggle.js.map +1 -1
- package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js +80 -46
- package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToggle/VToggleItem.d.ts +16 -2
- package/dist/components/VToggle/VToggleItem.js +0 -2
- package/dist/components/VToggle/VToggleItem.js.map +1 -1
- package/dist/components/VToggle/VToggleItem.vue_vue_type_script_setup_true_lang.js +23 -15
- package/dist/components/VToggle/VToggleItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToggle/context.d.ts +4 -24
- package/dist/components/VToggle/context.js.map +1 -1
- package/dist/components/VTooltip/VTooltip.css +1 -1
- package/dist/components/VTooltip/VTooltip.d.ts +9 -33
- package/dist/components/VTooltip/VTooltip.js.map +1 -1
- package/dist/components/VTooltip/VTooltip.vue_vue_type_script_setup_true_lang.js +28 -24
- package/dist/components/VTooltip/VTooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTypography/VTypography.js.map +1 -1
- package/dist/components/VTypography/VTypography.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useAriaLabel.d.ts +0 -17
- package/dist/composables/useAriaLabel.js.map +1 -1
- package/dist/composables/useClearable.d.ts +42 -0
- package/dist/composables/useClearable.js +19 -0
- package/dist/composables/useClearable.js.map +1 -0
- package/dist/composables/useControlShape.d.ts +22 -0
- package/dist/composables/useControlShape.js +13 -0
- package/dist/composables/useControlShape.js.map +1 -0
- package/dist/composables/useDetailsOpen.d.ts +22 -0
- package/dist/composables/useDetailsOpen.js +21 -0
- package/dist/composables/useDetailsOpen.js.map +1 -0
- package/dist/composables/useFieldIds.d.ts +0 -15
- package/dist/composables/useFieldIds.js +8 -7
- package/dist/composables/useFieldIds.js.map +1 -1
- package/dist/composables/useFieldPanel.d.ts +21 -18
- package/dist/composables/useFieldPanel.js +43 -23
- package/dist/composables/useFieldPanel.js.map +1 -1
- package/dist/composables/useFileDrop.d.ts +0 -22
- package/dist/composables/useFileDrop.js.map +1 -1
- package/dist/composables/useFileField.d.ts +45 -17
- package/dist/composables/useFileField.js +40 -20
- package/dist/composables/useFileField.js.map +1 -1
- package/dist/composables/useFocusoutDismiss.d.ts +0 -15
- package/dist/composables/useFocusoutDismiss.js.map +1 -1
- package/dist/composables/useIconClickHandlers.d.ts +29 -14
- package/dist/composables/useIconClickHandlers.js +15 -5
- package/dist/composables/useIconClickHandlers.js.map +1 -1
- package/dist/composables/useInertLink.d.ts +20 -0
- package/dist/composables/useInertLink.js +23 -0
- package/dist/composables/useInertLink.js.map +1 -0
- package/dist/composables/useMaskedField.d.ts +33 -10
- package/dist/composables/useMaskedField.js +45 -1
- package/dist/composables/useMaskedField.js.map +1 -1
- package/dist/composables/usePopover.d.ts +15 -1
- package/dist/composables/usePopover.js +23 -8
- package/dist/composables/usePopover.js.map +1 -1
- package/dist/composables/useProgressValue.d.ts +5 -8
- package/dist/composables/useProgressValue.js +6 -3
- package/dist/composables/useProgressValue.js.map +1 -1
- package/dist/composables/useRootAttrs.d.ts +12 -19
- package/dist/composables/useRootAttrs.js.map +1 -1
- package/dist/composables/useTimer.d.ts +8 -10
- package/dist/composables/useTimer.js.map +1 -1
- package/dist/i18n/en.d.ts +2 -10
- package/dist/i18n/en.js +18 -19
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/fr.d.ts +2 -18
- package/dist/i18n/fr.js +18 -19
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/state.d.ts +44 -47
- package/dist/i18n/state.js +20 -17
- package/dist/i18n/state.js.map +1 -1
- package/dist/i18n/types.d.ts +53 -44
- package/dist/icons.d.ts +3 -3
- package/dist/index.d.ts +43 -17
- package/dist/index.js +45 -44
- package/dist/styles.css +1 -1
- package/dist/tokens/css.js.map +1 -1
- package/dist/tokens/index.d.ts +5 -1
- package/dist/tokens/primitives.js.map +1 -1
- package/dist/tokens/semantic.d.ts +5 -1
- package/dist/tokens/semantic.js +6 -2
- package/dist/tokens/semantic.js.map +1 -1
- package/dist/tokens/themes/dark.js.map +1 -1
- package/dist/tokens/types.d.ts +7 -15
- package/dist/tokens/types.js.map +1 -1
- package/dist/tokens.json +25 -5
- package/dist/types.d.ts +24 -0
- package/dist/utils/array.d.ts +3 -6
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/arrowNav.d.ts +17 -17
- package/dist/utils/arrowNav.js +5 -3
- package/dist/utils/arrowNav.js.map +1 -1
- package/dist/utils/chip.d.ts +11 -15
- package/dist/utils/chip.js.map +1 -1
- package/dist/utils/css.d.ts +22 -11
- package/dist/utils/css.js +5 -2
- package/dist/utils/css.js.map +1 -1
- package/dist/utils/date.d.ts +42 -19
- package/dist/utils/date.js +97 -98
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/direction.d.ts +6 -12
- package/dist/utils/direction.js.map +1 -1
- package/dist/utils/env.d.ts +5 -6
- package/dist/utils/file.d.ts +46 -58
- package/dist/utils/file.js +43 -36
- package/dist/utils/file.js.map +1 -1
- package/dist/utils/focus.d.ts +8 -17
- package/dist/utils/focus.js.map +1 -1
- package/dist/utils/hostWarns.d.ts +12 -0
- package/dist/utils/hostWarns.js +6 -0
- package/dist/utils/hostWarns.js.map +1 -0
- package/dist/utils/ids.d.ts +10 -0
- package/dist/utils/ids.js +8 -0
- package/dist/utils/ids.js.map +1 -0
- package/dist/utils/matcher.d.ts +5 -9
- package/dist/utils/matcher.js.map +1 -1
- package/dist/utils/memo.d.ts +12 -0
- package/dist/utils/memo.js +9 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/number.d.ts +3 -4
- package/dist/utils/number.js.map +1 -1
- package/dist/utils/text.d.ts +20 -9
- package/dist/utils/text.js +17 -3
- package/dist/utils/text.js.map +1 -1
- package/dist/utils/time.d.ts +53 -61
- package/dist/utils/time.js +49 -45
- package/dist/utils/time.js.map +1 -1
- package/dist/utils/vnode.d.ts +8 -15
- package/dist/utils/vnode.js.map +1 -1
- package/package.json +6 -6
- package/dist/components/VToggle/VToggleItem.css +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","names":[],"sources":["../../../src/components/VCalendar/keyboard.ts"],"sourcesContent":["// @keyboard @a11y\n/**\n * The pure half of VCalendar's keyboard: it answers the single question \"what does this\n * key mean here?\", and does nothing else. Moving the focus, writing to the model, calling\n * `preventDefault` and announcing the result all stay in the component, where the reactive\n * state lives.\n *\n * It sits in VCalendar's own folder rather than in `utils/` because it has exactly one\n * consumer, which fails the admission rule for shared code (the same reasoning as\n * `VDatePicker/keyboard.ts` and `VHotkeys/platform.ts`). Being pure is also what makes the\n * whole keyboard testable without mounting anything, since the environment the tests run\n * in lays nothing out and the handlers in the component only ever move DOM focus.\n *\n * `utils/arrowNav` is deliberately not used. It navigates a flat DOM list of controls; this\n * navigates a two-dimensional space of DATES AND TIMES whose edges are a domain clamp, not\n * a list end — the same reason VDatePicker, VCombobox and VTimePicker stay out of it.\n *\n * WHY A GRAB MODE, and not arrows that move an event outright. Every gesture the pointer\n * offers has to have a keyboard equivalent (WCAG 2.1.1), and a card is reached by the\n * arrows in the first place — so if the arrows also moved it, arriving at an event and\n * nudging it would be the same keystroke, and there would be no way to pass over one\n * without dragging it. Entering a mode separates the two, and Escape gives back the one\n * thing a pointer drag has that a keypress does not: the chance to change your mind.\n */\n\n/** What one key means, given where the focus is. */\nexport type CalendarIntent =\n /** Move the focused cell by whole days and whole hours. */\n | { kind: 'moveFocus'; days: number; minutes: number }\n /** Jump to the first or last day of the row. */\n | { kind: 'rowEdge'; edge: 'start' | 'end' }\n /** Show the previous or next period, as the toolbar's buttons do. */\n | { kind: 'period'; delta: -1 | 1 }\n /** Take up what is focused:
|
|
1
|
+
{"version":3,"file":"keyboard.js","names":[],"sources":["../../../src/components/VCalendar/keyboard.ts"],"sourcesContent":["// @keyboard @a11y\n/**\n * The pure half of VCalendar's keyboard: it answers the single question \"what does this\n * key mean here?\", and does nothing else. Moving the focus, writing to the model, calling\n * `preventDefault` and announcing the result all stay in the component, where the reactive\n * state lives.\n *\n * It sits in VCalendar's own folder rather than in `utils/` because it has exactly one\n * consumer, which fails the admission rule for shared code (the same reasoning as\n * `VDatePicker/keyboard.ts` and `VHotkeys/platform.ts`). Being pure is also what makes the\n * whole keyboard testable without mounting anything, since the environment the tests run\n * in lays nothing out and the handlers in the component only ever move DOM focus.\n *\n * `utils/arrowNav` is deliberately not used. It navigates a flat DOM list of controls; this\n * navigates a two-dimensional space of DATES AND TIMES whose edges are a domain clamp, not\n * a list end — the same reason VDatePicker, VCombobox and VTimePicker stay out of it.\n *\n * WHY A GRAB MODE, and not arrows that move an event outright. Every gesture the pointer\n * offers has to have a keyboard equivalent (WCAG 2.1.1), and a card is reached by the\n * arrows in the first place — so if the arrows also moved it, arriving at an event and\n * nudging it would be the same keystroke, and there would be no way to pass over one\n * without dragging it. Entering a mode separates the two, and Escape gives back the one\n * thing a pointer drag has that a keypress does not: the chance to change your mind.\n */\n\nimport { MINUTES_PER_HOUR } from './layout'\n\n/** What one key means, given where the focus is. */\nexport type CalendarIntent =\n /** Move the focused cell by whole days and whole hours. */\n | { kind: 'moveFocus'; days: number; minutes: number }\n /** Jump to the first or last day of the row. */\n | { kind: 'rowEdge'; edge: 'start' | 'end' }\n /** Show the previous or next period, as the toolbar's buttons do. */\n | { kind: 'period'; delta: -1 | 1 }\n /** Take up what is focused: report an empty cell, or commit a move under way. */\n | { kind: 'activate' }\n /** Take hold of a card, so the arrows move it. */\n | { kind: 'grab' }\n /** Abandon a move under way and put the event back. */\n | { kind: 'cancel' }\n /** Move the grabbed event. */\n | { kind: 'grabMove'; days: number; minutes: number }\n /** Change how long the grabbed event lasts. */\n | { kind: 'grabResize'; minutes: number }\n\n/**\n * Where the focus is when the key arrives, which is what decides the answer:\n *\n * - `cell` — an empty part of the grid. The arrows travel, Enter creates.\n * - `event` — a card, at rest. Space takes hold of it; every other key is the browser's,\n * Enter included, which presses the card as a button and so opens the event. Enter is the\n * one a reader tries first on a button, and `event-activate` has no other keyboard route.\n * - `grabbed` — a card being moved. The arrows now move the EVENT, Enter commits, Escape\n * puts it back where it was.\n */\nexport type CalendarFocus = 'cell' | 'event' | 'grabbed'\n\n/**\n * What a key means. Returning nothing says the key is none of this table's business and\n * the event must be left entirely alone — which is what keeps Tab, the browser's own\n * shortcuts and anything a consumer has bound working.\n *\n * `rtl` is passed in rather than read here: which way is \"forward\" is a property of the\n * document, and a pure table has no business consulting one.\n */\nexport function calendarIntent(\n key: string,\n shiftKey: boolean,\n focus: CalendarFocus,\n slotMinutes: number,\n rtl: boolean,\n): CalendarIntent | undefined {\n const step = slotMinutes > 0 ? slotMinutes : 1\n // The inline arrows follow the reading direction; the block ones never do, because down\n // is later in the day in every script.\n const inline = rtl ? -1 : 1\n\n if (focus === 'grabbed') {\n switch (key) {\n case 'ArrowLeft':\n return { kind: 'grabMove', days: -inline, minutes: 0 }\n case 'ArrowRight':\n return { kind: 'grabMove', days: inline, minutes: 0 }\n case 'ArrowUp':\n return shiftKey\n ? { kind: 'grabResize', minutes: -step }\n : { kind: 'grabMove', days: 0, minutes: -step }\n case 'ArrowDown':\n return shiftKey\n ? { kind: 'grabResize', minutes: step }\n : { kind: 'grabMove', days: 0, minutes: step }\n case 'Enter':\n case ' ':\n return { kind: 'activate' }\n case 'Escape':\n return { kind: 'cancel' }\n default:\n return undefined\n }\n }\n\n if (focus === 'event') return key === ' ' ? { kind: 'grab' } : undefined\n\n switch (key) {\n case 'ArrowLeft':\n return { kind: 'moveFocus', days: -inline, minutes: 0 }\n case 'ArrowRight':\n return { kind: 'moveFocus', days: inline, minutes: 0 }\n case 'ArrowUp':\n return { kind: 'moveFocus', days: 0, minutes: -MINUTES_PER_HOUR }\n case 'ArrowDown':\n return { kind: 'moveFocus', days: 0, minutes: MINUTES_PER_HOUR }\n case 'Home':\n return { kind: 'rowEdge', edge: 'start' }\n case 'End':\n return { kind: 'rowEdge', edge: 'end' }\n case 'PageUp':\n return { kind: 'period', delta: -1 }\n case 'PageDown':\n return { kind: 'period', delta: 1 }\n case 'Enter':\n case ' ':\n return { kind: 'activate' }\n default:\n return undefined\n }\n}\n"],"mappings":";AAkEA,SAAgB,EACd,GACA,GACA,GACA,GACA,GAC4B;CAC5B,IAAM,IAAO,IAAc,IAAI,IAAc,GAGvC,IAAS,IAAM,KAAK;CAE1B,IAAI,MAAU,WACZ,QAAQ,GAAR;EACE,KAAK,aACH,OAAO;GAAE,MAAM;GAAY,MAAM,CAAC;GAAQ,SAAS;EAAE;EACvD,KAAK,cACH,OAAO;GAAE,MAAM;GAAY,MAAM;GAAQ,SAAS;EAAE;EACtD,KAAK,WACH,OAAO,IACH;GAAE,MAAM;GAAc,SAAS,CAAC;EAAK,IACrC;GAAE,MAAM;GAAY,MAAM;GAAG,SAAS,CAAC;EAAK;EAClD,KAAK,aACH,OAAO,IACH;GAAE,MAAM;GAAc,SAAS;EAAK,IACpC;GAAE,MAAM;GAAY,MAAM;GAAG,SAAS;EAAK;EACjD,KAAK;EACL,KAAK,KACH,OAAO,EAAE,MAAM,WAAW;EAC5B,KAAK,UACH,OAAO,EAAE,MAAM,SAAS;EAC1B,SACE;CACJ;CAGF,IAAI,MAAU,SAAS,OAAO,MAAQ,MAAM,EAAE,MAAM,OAAO,IAAI,KAAA;CAE/D,QAAQ,GAAR;EACE,KAAK,aACH,OAAO;GAAE,MAAM;GAAa,MAAM,CAAC;GAAQ,SAAS;EAAE;EACxD,KAAK,cACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAQ,SAAS;EAAE;EACvD,KAAK,WACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAG,SAAS;EAAkB;EAClE,KAAK,aACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAG,SAAA;EAA0B;EACjE,KAAK,QACH,OAAO;GAAE,MAAM;GAAW,MAAM;EAAQ;EAC1C,KAAK,OACH,OAAO;GAAE,MAAM;GAAW,MAAM;EAAM;EACxC,KAAK,UACH,OAAO;GAAE,MAAM;GAAU,OAAO;EAAG;EACrC,KAAK,YACH,OAAO;GAAE,MAAM;GAAU,OAAO;EAAE;EACpC,KAAK;EACL,KAAK,KACH,OAAO,EAAE,MAAM,WAAW;EAC5B,SACE;CACJ;AACF"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { MonthCell } from '../../utils/date.js';
|
|
2
2
|
import { CalendarEvent, CalendarEventId, CalendarEventTimes, CalendarView } from './types.js';
|
|
3
|
+
/** An hour, in the minutes every time here is counted in: one row of a time grid. */
|
|
4
|
+
export declare const MINUTES_PER_HOUR = 60;
|
|
5
|
+
/** How many minutes a day holds. The upper bound of every time computed here. */
|
|
6
|
+
export declare const MINUTES_PER_DAY: number;
|
|
3
7
|
/**
|
|
4
8
|
* How far the pointer must travel before a press becomes a drag rather than a click.
|
|
5
9
|
*
|
|
6
|
-
* It is what keeps click
|
|
7
|
-
* far writes nothing on release and is handled as a plain activation. Without it, the
|
|
10
|
+
* It is what keeps a click a click, on a card as on an empty cell: a press that never moves
|
|
11
|
+
* this far writes nothing on release and is handled as a plain activation. Without it, the
|
|
8
12
|
* hand's natural tremor during a click would register as a one-pixel drag and every click
|
|
9
13
|
* would silently move its event.
|
|
10
14
|
*/
|
|
@@ -22,9 +26,9 @@ export declare function windowOf(startHour: number, endHour: number): TimeWindow
|
|
|
22
26
|
* TRAP — the value is held one minute short of midnight rather than allowed to reach it.
|
|
23
27
|
* A day's last moment is 1440 in this arithmetic, but `24:00` is not a time any of the
|
|
24
28
|
* design system's helpers accept (`isValidTime` rejects it), and the alternative — writing
|
|
25
|
-
* `00:00` on the following day — would turn an ordinary evening appointment into
|
|
26
|
-
*
|
|
27
|
-
* this component offers;
|
|
29
|
+
* `00:00` on the following day — would turn an ordinary evening appointment into one that
|
|
30
|
+
* runs past midnight, which every gesture then treats differently. One minute is invisible at
|
|
31
|
+
* every zoom this component offers; an event that changed kind under the pointer is not.
|
|
28
32
|
*/
|
|
29
33
|
export declare function timeOf(minutes: number): string;
|
|
30
34
|
/** An `HH:mm` string into minutes since midnight; `fallback` when it is not one. */
|
|
@@ -32,10 +36,10 @@ export declare function minutesAt(time: string | undefined, fallback: number): n
|
|
|
32
36
|
/**
|
|
33
37
|
* The weekdays a calendar shows, in reading order.
|
|
34
38
|
*
|
|
35
|
-
* The array does double duty
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
+
* The array does double duty: it says which days are VISIBLE — `[1,2,3,4,5]` hides the
|
|
40
|
+
* weekend everywhere — and its first entry is the day a week starts on. Given nothing, the
|
|
41
|
+
* seven days rotated to `firstDayOfWeek`, which the calendar takes from its prop of that
|
|
42
|
+
* name or from the locale.
|
|
39
43
|
*/
|
|
40
44
|
export declare function normalizeWeekdays(weekdays: readonly number[] | undefined, firstDayOfWeek: number): number[];
|
|
41
45
|
/** Whether a date falls on one of the visible weekdays. */
|
|
@@ -78,14 +82,32 @@ export declare function visibleRange(anchor: string, view: CalendarView, weekday
|
|
|
78
82
|
start: string;
|
|
79
83
|
end: string;
|
|
80
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* How long an event lasts, in minutes, counting the days between its dates.
|
|
87
|
+
*
|
|
88
|
+
* A time that is not one reads as the far end of its day — midnight for a start, the next
|
|
89
|
+
* midnight for an end — so a malformed event errs towards being long, and towards the band.
|
|
90
|
+
*/
|
|
91
|
+
export declare function durationOf(times: CalendarEventTimes): number;
|
|
92
|
+
/** Whether an event runs from one day into the next without lasting a whole day. */
|
|
93
|
+
export declare function spansMidnight(times: CalendarEventTimes): boolean;
|
|
81
94
|
/**
|
|
82
95
|
* Whether an event belongs in the band above the grid rather than in a day's column.
|
|
83
96
|
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
97
|
+
* A day's column holds up to twenty-four hours, so an event running past midnight for less
|
|
98
|
+
* than that is drawn as two cards — the evening in one column, the early morning in the next —
|
|
99
|
+
* and only one lasting a whole day or more becomes a bar. Exactly twenty-four hours is a bar:
|
|
100
|
+
* two cards covering the same hours of two columns would read as two events.
|
|
101
|
+
*
|
|
102
|
+
* An event whose end comes before its start has no column to go in either, so it goes to the
|
|
103
|
+
* band, where `packAllDay` finds no day it covers and draws nothing.
|
|
87
104
|
*/
|
|
88
105
|
export declare function isAllDayEvent(event: CalendarEvent): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Which piece of its event a box is: the whole of it, or one side of midnight for an event
|
|
108
|
+
* that runs from one day into the next.
|
|
109
|
+
*/
|
|
110
|
+
export type SegmentPart = 'whole' | 'head' | 'tail';
|
|
89
111
|
/** One event's box in one day column, in minutes since midnight. */
|
|
90
112
|
export interface EventSegment {
|
|
91
113
|
id: CalendarEventId;
|
|
@@ -93,9 +115,17 @@ export interface EventSegment {
|
|
|
93
115
|
dayIndex: number;
|
|
94
116
|
start: number;
|
|
95
117
|
end: number;
|
|
96
|
-
/**
|
|
118
|
+
/**
|
|
119
|
+
* Whether the card carries on past its top or bottom edge: the window cut it off, or
|
|
120
|
+
* midnight did. Both are drawn the same way.
|
|
121
|
+
*/
|
|
97
122
|
clippedStart: boolean;
|
|
98
123
|
clippedEnd: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* `head` is the evening of an event running past midnight and `tail` its morning. Only a
|
|
126
|
+
* `whole` or a `tail` holds the event's real end, which is what its resize strip drags.
|
|
127
|
+
*/
|
|
128
|
+
part: SegmentPart;
|
|
99
129
|
}
|
|
100
130
|
/**
|
|
101
131
|
* Cuts the timed events into the boxes the day columns draw. All-day events produce none —
|
|
@@ -107,7 +137,7 @@ export interface EventSegment {
|
|
|
107
137
|
* during packing instead, two events fifteen minutes apart would be laid out as though
|
|
108
138
|
* they did not overlap and then drawn as though they did.
|
|
109
139
|
*/
|
|
110
|
-
export declare function timedSegments(events: readonly CalendarEvent[], days: readonly string[],
|
|
140
|
+
export declare function timedSegments(events: readonly CalendarEvent[], days: readonly string[], timeWindow: TimeWindow, minDuration: number): EventSegment[];
|
|
111
141
|
/** A segment once it knows how much of its column's width it gets. */
|
|
112
142
|
export interface PlacedSegment extends EventSegment {
|
|
113
143
|
/** Which column of its cluster it sits in, counted from zero. */
|
|
@@ -162,26 +192,19 @@ export declare function monthsOfYear(anchor: string): string[];
|
|
|
162
192
|
/** Whether an event covers a given day at all, all-day or timed. */
|
|
163
193
|
export declare function coversDay(event: CalendarEvent, iso: string): boolean;
|
|
164
194
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*/
|
|
169
|
-
export declare function eventsOnDay<T extends CalendarEvent>(events: readonly T[], iso: string): T[];
|
|
170
|
-
/**
|
|
171
|
-
* Every visible day's events at once, in one pass over the list.
|
|
195
|
+
* Every visible day's events, in the order a summary lists them: the all-day ones first, since
|
|
196
|
+
* they frame the day rather than sit inside it, then the rest by when they start, the last tie
|
|
197
|
+
* broken by id so the list cannot reshuffle for no reason.
|
|
172
198
|
*
|
|
173
|
-
* WHY
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* that is roughly half a frame spent rebuilding lists
|
|
199
|
+
* WHY ONE PASS RATHER THAN A FILTER PER DAY. The month view needs all 42 squares filled, and
|
|
200
|
+
* filtering and sorting the list once per square walks the whole event list 42 times and sorts
|
|
201
|
+
* it 42 times — `cells × events`, with a sort each. Measured on the bench: 7.8 ms per render at
|
|
202
|
+
* 2000 events, and the month view rebuilds it every time a drag carries a chip onto another
|
|
203
|
+
* day, so that is roughly half a frame spent rebuilding lists the gesture left alone.
|
|
178
204
|
*
|
|
179
205
|
* Here each event is placed once, into the days it actually covers, and each day is sorted
|
|
180
206
|
* once — `events × span + cells × k log k`. The walk is bounded to the grid on both ends, so
|
|
181
207
|
* an event running from last year costs its visible part and nothing more.
|
|
182
|
-
*
|
|
183
|
-
* The ORDER is identical to `eventsOnDay`'s, because both sort with `compareForDay`. That
|
|
184
|
-
* matters: it is the order chips are listed in, so a difference would be visible.
|
|
185
208
|
*/
|
|
186
209
|
export declare function eventsByDay<T extends CalendarEvent>(events: readonly T[], days: readonly string[]): Map<string, T[]>;
|
|
187
210
|
/** One bar in the all-day band: the columns it covers, and the row it sits on. */
|
|
@@ -212,7 +235,7 @@ export interface AllDaySpan {
|
|
|
212
235
|
*/
|
|
213
236
|
export declare function packAllDay(events: readonly CalendarEvent[], days: readonly string[]): AllDaySpan[];
|
|
214
237
|
/** Where a moment sits in the visible window, as a unitless fraction the stylesheet scales. */
|
|
215
|
-
export declare function fractionOf(minutes: number,
|
|
238
|
+
export declare function fractionOf(minutes: number, timeWindow: TimeWindow): number;
|
|
216
239
|
/** The measurements of the grid a pointer is being read against, in viewport coordinates. */
|
|
217
240
|
export interface GridGeometry {
|
|
218
241
|
top: number;
|
|
@@ -233,29 +256,14 @@ export interface GridGeometry {
|
|
|
233
256
|
export declare function pointToCell(point: {
|
|
234
257
|
x: number;
|
|
235
258
|
y: number;
|
|
236
|
-
}, geometry: GridGeometry,
|
|
259
|
+
}, geometry: GridGeometry, timeWindow: TimeWindow, rtl: boolean): {
|
|
237
260
|
columnIndex: number;
|
|
238
261
|
minutes: number;
|
|
239
262
|
};
|
|
240
263
|
/** Rounds a moment to the nearest step the calendar allows. */
|
|
241
264
|
export declare function snapToSlot(minutes: number, step: number): number;
|
|
242
|
-
/** Rounds a moment DOWN to the step containing it — where a
|
|
265
|
+
/** Rounds a moment DOWN to the step containing it — where a drawn slot begins. */
|
|
243
266
|
export declare function floorToSlot(minutes: number, step: number): number;
|
|
244
|
-
/**
|
|
245
|
-
* Where an event lands when it is dragged or nudged: it keeps its length and moves by whole
|
|
246
|
-
* days and whole steps.
|
|
247
|
-
*
|
|
248
|
-
* An event pushed past the end of the window is held against it rather than having its tail
|
|
249
|
-
* cut off — moving something must never change how long it is, which is the other gesture's
|
|
250
|
-
* job.
|
|
251
|
-
*/
|
|
252
|
-
export declare function moveEvent(origin: CalendarEventTimes, dayDelta: number, minuteDelta: number, window: TimeWindow, weekdays?: readonly number[]): CalendarEventTimes;
|
|
253
|
-
/**
|
|
254
|
-
* Where the end of an event lands when its bottom edge is dragged. It can never cross the
|
|
255
|
-
* start: the shortest an event may become is one step, which is also the length a new one
|
|
256
|
-
* is created at.
|
|
257
|
-
*/
|
|
258
|
-
export declare function resizeEvent(origin: CalendarEventTimes, endMinutes: number, minDuration: number, window: TimeWindow): CalendarEventTimes;
|
|
259
267
|
/**
|
|
260
268
|
* How many whole days an event covers beyond its first — zero for one that starts and ends
|
|
261
269
|
* on the same day, two for a trip from Monday to Wednesday.
|
|
@@ -264,7 +272,7 @@ export declare function daySpan(times: CalendarEventTimes): number;
|
|
|
264
272
|
/**
|
|
265
273
|
* Moves an event to another day, KEEPING its length in days as well as its times.
|
|
266
274
|
*
|
|
267
|
-
* This is the counterpart of `moveEvent`, and the two must not be confused: that one is for
|
|
275
|
+
* This is the counterpart of `timeGrid.ts`'s `moveEvent`, and the two must not be confused: that one is for
|
|
268
276
|
* a timed move INSIDE a single day and deliberately collapses `end` onto `start`, so putting
|
|
269
277
|
* a three-day trip through it would silently squash it into one Tuesday. This one is for the
|
|
270
278
|
* whole-day gestures — an all-day bar dragged along the band, a chip dragged across a month —
|
|
@@ -272,12 +280,7 @@ export declare function daySpan(times: CalendarEventTimes): number;
|
|
|
272
280
|
*/
|
|
273
281
|
export declare function moveEventToDay(origin: CalendarEventTimes, target: string): CalendarEventTimes;
|
|
274
282
|
/** The measurements of a month grid — the same struct, with rows where a time window was. */
|
|
275
|
-
export interface MonthGeometry {
|
|
276
|
-
top: number;
|
|
277
|
-
height: number;
|
|
278
|
-
inlineStart: number;
|
|
279
|
-
inlineSize: number;
|
|
280
|
-
columns: number;
|
|
283
|
+
export interface MonthGeometry extends GridGeometry {
|
|
281
284
|
rows: number;
|
|
282
285
|
}
|
|
283
286
|
/**
|
|
@@ -351,5 +354,15 @@ export declare function pointWithin(point: {
|
|
|
351
354
|
}): boolean;
|
|
352
355
|
/** The times of an event, as the shape the move and resize events carry. */
|
|
353
356
|
export declare function timesOf(event: CalendarEvent): CalendarEventTimes;
|
|
357
|
+
/**
|
|
358
|
+
* Whether two placements are the same, field for field.
|
|
359
|
+
*
|
|
360
|
+
* It is what a drag asks before it writes its preview. A slot is a quarter of an hour, some
|
|
361
|
+
* sixteen pixels at the default hour height, so most pointer moves land on the times already
|
|
362
|
+
* shown — and the gesture state is deeply reactive, so an EQUAL but new object would still
|
|
363
|
+
* re-run the whole layout and re-render every cell of the grid for a picture that did not
|
|
364
|
+
* change.
|
|
365
|
+
*/
|
|
366
|
+
export declare function sameTimes(a: CalendarEventTimes, b: CalendarEventTimes): boolean;
|
|
354
367
|
/** Today, as the calendar reads it. Kept here so the component has one place to call. */
|
|
355
368
|
export declare function todayISO(): string;
|
|
@@ -2,7 +2,6 @@ import { clamp as e } from "../../utils/number.js";
|
|
|
2
2
|
import { pad2 as t } from "../../utils/text.js";
|
|
3
3
|
import { addDays as n, addMonths as r, buildMonthGrid as i, compareISO as a, daysInMonth as o, formatISO as s, isoOf as c, parseISO as l } from "../../utils/date.js";
|
|
4
4
|
import { minutesOf as u } from "../../utils/time.js";
|
|
5
|
-
//#region src/components/VCalendar/layout.ts
|
|
6
5
|
var d = 1440, f = 7, p = 1440 * 60 * 1e3;
|
|
7
6
|
function m(e, t) {
|
|
8
7
|
let n = String(e), r = String(t);
|
|
@@ -97,35 +96,55 @@ function T(e, t, n, r) {
|
|
|
97
96
|
};
|
|
98
97
|
}
|
|
99
98
|
function E(e) {
|
|
100
|
-
return e
|
|
101
|
-
}
|
|
102
|
-
function D(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
99
|
+
return V(e) * d + _(e.endTime, d) - _(e.startTime, 0);
|
|
100
|
+
}
|
|
101
|
+
function D(e) {
|
|
102
|
+
return a(e.start, e.end) < 0 && E(e) < 1440;
|
|
103
|
+
}
|
|
104
|
+
function O(e) {
|
|
105
|
+
if (e.allDay === !0) return !0;
|
|
106
|
+
let t = a(e.start, e.end);
|
|
107
|
+
return t === 0 ? !1 : t > 0 || !D(e);
|
|
108
|
+
}
|
|
109
|
+
function k(t, n, r, i) {
|
|
110
|
+
let o = new Map(n.map((e, t) => [e, t])), s = [], c = (t, n, a, o, c) => {
|
|
111
|
+
if (n === void 0 || o <= r.start || a >= r.end) return;
|
|
112
|
+
let l = e(a, r.start, r.end - 1), u = e(Math.max(o, l + i), l + 1, r.end);
|
|
113
|
+
s.push({
|
|
114
|
+
id: t,
|
|
115
|
+
dayIndex: n,
|
|
114
116
|
start: l,
|
|
115
117
|
end: u,
|
|
116
|
-
clippedStart:
|
|
117
|
-
clippedEnd: c > r.end
|
|
118
|
+
clippedStart: c === "tail" || a < r.start,
|
|
119
|
+
clippedEnd: c === "head" || o > r.end,
|
|
120
|
+
part: c
|
|
118
121
|
});
|
|
122
|
+
};
|
|
123
|
+
for (let e of t) {
|
|
124
|
+
if (O(e)) continue;
|
|
125
|
+
let t = _(e.startTime, r.start);
|
|
126
|
+
if (a(e.start, e.end) === 0) {
|
|
127
|
+
let n = Math.max(_(e.endTime, t + i), t + 1);
|
|
128
|
+
c(e.id, o.get(e.start), t, n, "whole");
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
let n = _(e.endTime, 0);
|
|
132
|
+
if (n === 0) {
|
|
133
|
+
c(e.id, o.get(e.start), t, d, "whole");
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
c(e.id, o.get(e.start), t, d, "head"), c(e.id, o.get(e.end), 0, n, "tail");
|
|
119
137
|
}
|
|
120
|
-
return
|
|
138
|
+
return s;
|
|
121
139
|
}
|
|
122
|
-
function
|
|
140
|
+
function A(e) {
|
|
123
141
|
let t = [...e].sort((e, t) => e.start - t.start || t.end - t.start - (e.end - e.start) || m(e.id, t.id)), n = [], r = [], i = [], a = -Infinity, o = () => {
|
|
124
|
-
let e = i.length;
|
|
125
|
-
for (let
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
t.
|
|
142
|
+
let e = i.length, t = Array.from({ length: e }, () => []);
|
|
143
|
+
for (let e of r) t[e.column].push(e);
|
|
144
|
+
for (let n of r) {
|
|
145
|
+
let r = 1;
|
|
146
|
+
for (; n.column + r < e && !t[n.column + r].some((e) => e.start < n.end && n.start < e.end);) r++;
|
|
147
|
+
n.span = r, n.columns = e;
|
|
129
148
|
}
|
|
130
149
|
n.push(...r), r = [], i = [], a = -Infinity;
|
|
131
150
|
};
|
|
@@ -141,7 +160,7 @@ function O(e) {
|
|
|
141
160
|
}
|
|
142
161
|
return r.length > 0 && o(), n;
|
|
143
162
|
}
|
|
144
|
-
function
|
|
163
|
+
function j(e, t) {
|
|
145
164
|
let n = l(e);
|
|
146
165
|
if (!n || t.length === 0) return [];
|
|
147
166
|
let r = i(n.getFullYear(), n.getMonth(), t[0]), a = [];
|
|
@@ -151,16 +170,16 @@ function k(e, t) {
|
|
|
151
170
|
}
|
|
152
171
|
return a;
|
|
153
172
|
}
|
|
154
|
-
function
|
|
173
|
+
function M(e) {
|
|
155
174
|
let t = l(e);
|
|
156
175
|
if (!t) return [];
|
|
157
176
|
let n = t.getFullYear();
|
|
158
177
|
return Array.from({ length: 12 }, (e, t) => c(n, t, 1));
|
|
159
178
|
}
|
|
160
|
-
function
|
|
179
|
+
function N(e, t) {
|
|
161
180
|
return a(t, e.start) >= 0 && a(t, e.end) <= 0;
|
|
162
181
|
}
|
|
163
|
-
function
|
|
182
|
+
function P(e, t) {
|
|
164
183
|
let r = /* @__PURE__ */ new Map();
|
|
165
184
|
for (let e of t) r.set(e, []);
|
|
166
185
|
if (t.length === 0) return /* @__PURE__ */ new Map();
|
|
@@ -170,25 +189,25 @@ function M(e, t) {
|
|
|
170
189
|
if (a(e, s) > 0) continue;
|
|
171
190
|
let c = {
|
|
172
191
|
event: t,
|
|
173
|
-
allDay: +!
|
|
192
|
+
allDay: +!O(t),
|
|
174
193
|
minutes: _(t.startTime, 0),
|
|
175
194
|
id: String(t.id)
|
|
176
195
|
};
|
|
177
196
|
for (let t = e; a(t, s) <= 0; t = n(t, 1)) r.get(t)?.push(c);
|
|
178
197
|
}
|
|
179
198
|
let s = /* @__PURE__ */ new Map();
|
|
180
|
-
for (let [e, t] of r) t.sort(
|
|
199
|
+
for (let [e, t] of r) t.sort(F), s.set(e, t.map((e) => e.event));
|
|
181
200
|
return s;
|
|
182
201
|
}
|
|
183
|
-
function
|
|
184
|
-
return e.allDay - t.allDay || e.minutes - t.minutes || (e.id
|
|
202
|
+
function F(e, t) {
|
|
203
|
+
return e.allDay - t.allDay || e.minutes - t.minutes || m(e.id, t.id);
|
|
185
204
|
}
|
|
186
|
-
function
|
|
205
|
+
function I(e, t) {
|
|
187
206
|
let n = [];
|
|
188
207
|
for (let r of e) {
|
|
189
|
-
if (!
|
|
208
|
+
if (!O(r)) continue;
|
|
190
209
|
let e = -1, i = -1;
|
|
191
|
-
for (let n = 0; n < t.length; n++)
|
|
210
|
+
for (let n = 0; n < t.length; n++) N(r, t[n]) && (e === -1 && (e = n), i = n);
|
|
192
211
|
e !== -1 && n.push({
|
|
193
212
|
id: r.id,
|
|
194
213
|
startIndex: e,
|
|
@@ -206,43 +225,25 @@ function P(e, t) {
|
|
|
206
225
|
}
|
|
207
226
|
return n;
|
|
208
227
|
}
|
|
209
|
-
function
|
|
228
|
+
function L(t, n) {
|
|
210
229
|
let r = n.end - n.start;
|
|
211
230
|
return r > 0 ? e((t - n.start) / r, 0, 1) : 0;
|
|
212
231
|
}
|
|
213
|
-
function
|
|
214
|
-
let a =
|
|
232
|
+
function R(t, n, r, i) {
|
|
233
|
+
let a = U(t.x, n, i), o = n.height > 0 ? (t.y - n.top) / n.height : 0;
|
|
215
234
|
return {
|
|
216
|
-
columnIndex:
|
|
217
|
-
minutes: e(r.start +
|
|
235
|
+
columnIndex: a,
|
|
236
|
+
minutes: e(r.start + o * (r.end - r.start), r.start, r.end)
|
|
218
237
|
};
|
|
219
238
|
}
|
|
220
|
-
function
|
|
239
|
+
function z(t, n) {
|
|
221
240
|
let r = n > 0 ? n : 1;
|
|
222
241
|
return e(Math.round(t / r) * r, 0, d);
|
|
223
242
|
}
|
|
224
|
-
function
|
|
243
|
+
function B(t, n) {
|
|
225
244
|
let r = n > 0 ? n : 1;
|
|
226
245
|
return e(Math.floor(t / r) * r, 0, d);
|
|
227
246
|
}
|
|
228
|
-
function z(t, r, i, a, o) {
|
|
229
|
-
let s = _(t.startTime, a.start), c = Math.max(_(t.endTime, s), s + 1) - s, l = o && o.length > 0 ? x(t.start, r, o) : n(t.start, r), u = e(s + i, a.start, Math.max(a.start, a.end - c));
|
|
230
|
-
return {
|
|
231
|
-
start: l,
|
|
232
|
-
end: l,
|
|
233
|
-
startTime: g(u),
|
|
234
|
-
endTime: g(u + c)
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function B(t, n, r, i) {
|
|
238
|
-
let a = _(t.startTime, i.start), o = e(n, a + Math.max(r, 1), i.end);
|
|
239
|
-
return {
|
|
240
|
-
start: t.start,
|
|
241
|
-
end: t.start,
|
|
242
|
-
startTime: g(a),
|
|
243
|
-
endTime: g(o)
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
247
|
function V(e) {
|
|
247
248
|
let t = l(e.start), n = l(e.end);
|
|
248
249
|
return !t || !n ? 0 : Math.max(0, Math.round((n.getTime() - t.getTime()) / p));
|
|
@@ -256,26 +257,30 @@ function H(e, t) {
|
|
|
256
257
|
};
|
|
257
258
|
}
|
|
258
259
|
function U(t, n, r) {
|
|
259
|
-
let i = Math.max(1, n.columns), a =
|
|
260
|
+
let i = Math.max(1, n.columns), a = n.inlineSize / i, o = r ? n.inlineStart - t : t - n.inlineStart;
|
|
261
|
+
return e(a > 0 ? Math.floor(o / a) : 0, 0, i - 1);
|
|
262
|
+
}
|
|
263
|
+
function W(t, n, r) {
|
|
264
|
+
let i = Math.max(1, n.rows), a = U(t.x, n, r), o = n.height / i;
|
|
260
265
|
return {
|
|
261
|
-
columnIndex:
|
|
262
|
-
rowIndex: e(
|
|
266
|
+
columnIndex: a,
|
|
267
|
+
rowIndex: e(o > 0 ? Math.floor((t.y - n.top) / o) : 0, 0, i - 1)
|
|
263
268
|
};
|
|
264
269
|
}
|
|
265
|
-
function
|
|
270
|
+
function G(e, t, n, r) {
|
|
266
271
|
if (n <= 0 || t.inlineSize <= 0) return null;
|
|
267
272
|
let i = r ? t.inlineStart - e : e - t.inlineStart;
|
|
268
273
|
return i < n ? -1 : i > t.inlineSize - n ? 1 : null;
|
|
269
274
|
}
|
|
270
|
-
function
|
|
275
|
+
function K(t, n, r) {
|
|
271
276
|
if (r <= 0 || n.height <= 0) return 0;
|
|
272
277
|
let i = t - n.top, a = n.top + n.height - t;
|
|
273
278
|
return i < r ? -e((r - i) / r, 0, 1) : a < r ? e((r - a) / r, 0, 1) : 0;
|
|
274
279
|
}
|
|
275
|
-
function
|
|
280
|
+
function q(e, t) {
|
|
276
281
|
return t.width <= 0 || t.height <= 0 || e.x >= t.left && e.x <= t.left + t.width && e.y >= t.top && e.y <= t.top + t.height;
|
|
277
282
|
}
|
|
278
|
-
function
|
|
283
|
+
function J(e) {
|
|
279
284
|
return {
|
|
280
285
|
start: e.start,
|
|
281
286
|
end: e.end,
|
|
@@ -283,10 +288,13 @@ function q(e) {
|
|
|
283
288
|
endTime: e.endTime
|
|
284
289
|
};
|
|
285
290
|
}
|
|
286
|
-
function
|
|
291
|
+
function Y(e, t) {
|
|
292
|
+
return e.start === t.start && e.end === t.end && e.startTime === t.startTime && e.endTime === t.endTime;
|
|
293
|
+
}
|
|
294
|
+
function X() {
|
|
287
295
|
return s(/* @__PURE__ */ new Date());
|
|
288
296
|
}
|
|
289
297
|
//#endregion
|
|
290
|
-
export { x as advanceVisibleDays,
|
|
298
|
+
export { d as MINUTES_PER_DAY, x as advanceVisibleDays, K as blockEdgeAt, S as columnCount, N as coversDay, V as daySpan, E as durationOf, P as eventsByDay, B as floorToSlot, L as fractionOf, G as inlineEdgeAt, O as isAllDayEvent, y as isVisibleDay, _ as minutesAt, j as monthWeeks, M as monthsOfYear, H as moveEventToDay, v as normalizeWeekdays, I as packAllDay, A as packDayColumn, R as pointToCell, W as pointToMonthCell, q as pointWithin, Y as sameTimes, z as snapToSlot, b as snapToVisibleDay, D as spansMidnight, w as stepAnchor, g as timeOf, k as timedSegments, J as timesOf, X as todayISO, C as visibleDays, T as visibleRange, h as windowOf };
|
|
291
299
|
|
|
292
300
|
//# sourceMappingURL=layout.js.map
|