vectis-ui 0.10.1 → 0.10.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/dist/components/VAccordion/VAccordion.js.map +1 -1
- package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAccordion/VAccordionItem.d.ts +6 -21
- package/dist/components/VAccordion/VAccordionItem.js.map +1 -1
- package/dist/components/VAccordion/VAccordionItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAccordion/context.js.map +1 -1
- package/dist/components/VAvatar/VAvatar.d.ts +2 -12
- package/dist/components/VAvatar/VAvatar.js.map +1 -1
- package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAvatar/VAvatarGroup.d.ts +2 -2
- package/dist/components/VAvatar/VAvatarGroup.js.map +1 -1
- package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAvatar/context.d.ts +1 -5
- package/dist/components/VAvatar/context.js.map +1 -1
- package/dist/components/VBadge/VBadge.d.ts +13 -27
- package/dist/components/VBadge/VBadge.js.map +1 -1
- package/dist/components/VBadge/VBadge.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VBreadcrumb/VBreadcrumb.d.ts +3 -9
- package/dist/components/VBreadcrumb/VBreadcrumb.js.map +1 -1
- package/dist/components/VBreadcrumb/VBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/VButton.d.ts +10 -17
- package/dist/components/VButton/VButton.js.map +1 -1
- package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/VButtonGroup.d.ts +6 -15
- package/dist/components/VButton/VButtonGroup.js.map +1 -1
- package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/context.d.ts +1 -9
- package/dist/components/VButton/context.js.map +1 -1
- package/dist/components/VCalendar/VCalendar.d.ts +9 -24
- package/dist/components/VCalendar/VCalendar.js.map +1 -1
- package/dist/components/VCalendar/VCalendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarEvent.d.ts +4 -13
- package/dist/components/VCalendar/VCalendarEvent.js.map +1 -1
- package/dist/components/VCalendar/VCalendarEvent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarMonth.js.map +1 -1
- package/dist/components/VCalendar/VCalendarMonth.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarTimeGrid.d.ts +1 -5
- package/dist/components/VCalendar/VCalendarTimeGrid.js.map +1 -1
- package/dist/components/VCalendar/VCalendarTimeGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/VCalendarYear.js.map +1 -1
- package/dist/components/VCalendar/VCalendarYear.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCalendar/color.d.ts +1 -7
- package/dist/components/VCalendar/color.js.map +1 -1
- package/dist/components/VCalendar/edgeStep.d.ts +5 -15
- package/dist/components/VCalendar/edgeStep.js.map +1 -1
- package/dist/components/VCalendar/gesture.d.ts +12 -36
- package/dist/components/VCalendar/gesture.js.map +1 -1
- package/dist/components/VCalendar/keyboard.d.ts +5 -42
- package/dist/components/VCalendar/keyboard.js.map +1 -1
- package/dist/components/VCalendar/layout.d.ts +38 -199
- package/dist/components/VCalendar/layout.js.map +1 -1
- package/dist/components/VCalendar/timeGrid.d.ts +3 -25
- package/dist/components/VCalendar/timeGrid.js.map +1 -1
- package/dist/components/VCalendar/types.d.ts +6 -23
- package/dist/components/VCarousel/VCarousel.d.ts +25 -96
- package/dist/components/VCarousel/VCarousel.js.map +1 -1
- package/dist/components/VCarousel/VCarousel.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/VCarousel/VCarousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCarousel/VCarouselItem.d.ts +1 -6
- 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.js.map +1 -1
- package/dist/components/VCheckbox/VCheckbox.d.ts +1 -5
- package/dist/components/VCheckbox/VCheckbox.js.map +1 -1
- package/dist/components/VCheckbox/VCheckbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VChip/VChip.d.ts +2 -8
- package/dist/components/VChip/VChip.js.map +1 -1
- package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VCombobox.d.ts +21 -59
- package/dist/components/VCombobox/VCombobox.js.map +1 -1
- package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js +117 -119
- package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VComboboxGroup.js.map +1 -1
- package/dist/components/VCombobox/VComboboxGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VComboboxOption.js.map +1 -1
- 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.d.ts +4 -10
- package/dist/components/VCombobox/infiniteScroll.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.d.ts +11 -36
- package/dist/components/VDataTable/VDataTable.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +23 -20
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDateInput/VDateInput.d.ts +12 -21
- package/dist/components/VDateInput/VDateInput.js.map +1 -1
- package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDateInput/mask.d.ts +14 -59
- package/dist/components/VDateInput/mask.js.map +1 -1
- package/dist/components/VDatePicker/VDatePicker.d.ts +6 -12
- package/dist/components/VDatePicker/VDatePicker.js.map +1 -1
- package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDatePicker/keyboard.d.ts +10 -42
- package/dist/components/VDatePicker/keyboard.js.map +1 -1
- package/dist/components/VDatePicker/names.d.ts +8 -22
- package/dist/components/VDatePicker/names.js.map +1 -1
- package/dist/components/VDialog/VDialog.d.ts +5 -10
- package/dist/components/VDialog/VDialog.js.map +1 -1
- package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js +51 -53
- package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDialog/VDialogAlert.d.ts +2 -3
- package/dist/components/VDialog/VDialogAlert.js.map +1 -1
- package/dist/components/VDialog/VDialogAlert.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VFileInput/VFileInput.d.ts +11 -37
- package/dist/components/VFileInput/VFileInput.js.map +1 -1
- package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VFileInput/truncate.d.ts +3 -23
- package/dist/components/VFileInput/truncate.js.map +1 -1
- package/dist/components/VFilePicker/VFilePicker.d.ts +15 -65
- package/dist/components/VFilePicker/VFilePicker.js.map +1 -1
- package/dist/components/VFilePicker/VFilePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VFilePicker/fileKind.js.map +1 -1
- package/dist/components/VHotkeys/VHotkeys.d.ts +6 -15
- package/dist/components/VHotkeys/VHotkeys.js.map +1 -1
- package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VHotkeys/platform.d.ts +10 -49
- package/dist/components/VHotkeys/platform.js.map +1 -1
- package/dist/components/VIcon/VIcon.d.ts +7 -19
- package/dist/components/VIcon/VIcon.js.map +1 -1
- package/dist/components/VIcon/VIcon.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VIcon/iconProps.d.ts +5 -19
- package/dist/components/VIcon/iconProps.js.map +1 -1
- package/dist/components/VIcon/resolver.d.ts +15 -43
- package/dist/components/VIcon/resolver.js.map +1 -1
- package/dist/components/VIcon/types.d.ts +7 -34
- package/dist/components/VIconButton/VIconButton.d.ts +2 -3
- package/dist/components/VIconButton/VIconButton.js.map +1 -1
- package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/VInput.d.ts +14 -29
- package/dist/components/VInput/VInput.js.map +1 -1
- package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/VInputGroup.js.map +1 -1
- package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js +34 -50
- package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/context.js.map +1 -1
- package/dist/components/VInputOTP/VInputOTP.d.ts +8 -16
- package/dist/components/VInputOTP/VInputOTP.js.map +1 -1
- package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js +55 -63
- package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenu.js.map +1 -1
- package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuGroup.d.ts +1 -6
- package/dist/components/VMenu/VMenuGroup.js.map +1 -1
- package/dist/components/VMenu/VMenuGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuItem.d.ts +0 -5
- package/dist/components/VMenu/VMenuItem.js.map +1 -1
- package/dist/components/VMenu/VMenuItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuPanel.d.ts +1 -6
- package/dist/components/VMenu/VMenuPanel.js.map +1 -1
- package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuSeparator.js.map +1 -1
- package/dist/components/VMenu/VMenuSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/context.d.ts +3 -11
- package/dist/components/VMenu/context.js.map +1 -1
- package/dist/components/VPagination/VPagination.d.ts +9 -20
- package/dist/components/VPagination/VPagination.js.map +1 -1
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VPopover/VPopover.d.ts +7 -18
- package/dist/components/VPopover/VPopover.js.map +1 -1
- package/dist/components/VPopover/VPopover.vue_vue_type_script_setup_true_lang.js +23 -27
- package/dist/components/VPopover/VPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VProgressCircular/VProgressCircular.d.ts +2 -6
- package/dist/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/dist/components/VProgressCircular/VProgressCircular.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VProgressLinear/VProgressLinear.d.ts +4 -15
- package/dist/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VRadio/VRadio.d.ts +1 -5
- package/dist/components/VRadio/VRadio.js.map +1 -1
- package/dist/components/VRadio/VRadio.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSeparator/VSeparator.d.ts +2 -15
- 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.d.ts +1 -1
- package/dist/components/VSideNavigation/VSideNavigation.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationGroup.d.ts +1 -5
- package/dist/components/VSideNavigation/VSideNavigationGroup.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationItem.d.ts +1 -5
- package/dist/components/VSideNavigation/VSideNavigationItem.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js +80 -75
- package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigationSeparator.js.map +1 -1
- package/dist/components/VSideNavigation/context.js.map +1 -1
- package/dist/components/VSkeletonLoader/VSkeletonLoader.d.ts +6 -19
- 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.d.ts +5 -13
- package/dist/components/VSlider/VSlider.js.map +1 -1
- package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSnackbar/VSnackbar.js.map +1 -1
- package/dist/components/VSnackbar/VSnackbar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSnackbar/state.d.ts +4 -17
- package/dist/components/VSnackbar/state.js.map +1 -1
- package/dist/components/VSpinner/VSpinner.d.ts +3 -5
- package/dist/components/VSpinner/VSpinner.js.map +1 -1
- package/dist/components/VSpinner/VSpinner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSwitch/VSwitch.js.map +1 -1
- package/dist/components/VSwitch/VSwitch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTab.d.ts +1 -5
- package/dist/components/VTabs/VTab.js.map +1 -1
- package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTabPanel.js.map +1 -1
- package/dist/components/VTabs/VTabPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTabs.d.ts +5 -17
- package/dist/components/VTabs/VTabs.js.map +1 -1
- package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/context.js.map +1 -1
- package/dist/components/VTextarea/VTextarea.d.ts +13 -20
- package/dist/components/VTextarea/VTextarea.js.map +1 -1
- package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimeInput/VTimeInput.d.ts +8 -21
- package/dist/components/VTimeInput/VTimeInput.js.map +1 -1
- package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimeInput/search.d.ts +3 -34
- package/dist/components/VTimeInput/search.js.map +1 -1
- package/dist/components/VTimePicker/VTimePicker.d.ts +9 -31
- package/dist/components/VTimePicker/VTimePicker.js.map +1 -1
- package/dist/components/VTimePicker/VTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimePicker/limits.d.ts +18 -45
- package/dist/components/VTimePicker/limits.js.map +1 -1
- package/dist/components/VToast/VToast.js.map +1 -1
- package/dist/components/VToast/VToast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToast/VToaster.js.map +1 -1
- package/dist/components/VToast/VToaster.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToast/state.d.ts +2 -7
- package/dist/components/VToast/state.js.map +1 -1
- package/dist/components/VToggle/VToggle.d.ts +5 -9
- package/dist/components/VToggle/VToggle.js.map +1 -1
- package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToggle/VToggleItem.d.ts +1 -9
- package/dist/components/VToggle/VToggleItem.js.map +1 -1
- package/dist/components/VToggle/VToggleItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToggle/context.js.map +1 -1
- package/dist/components/VTooltip/VTooltip.d.ts +3 -16
- package/dist/components/VTooltip/VTooltip.js.map +1 -1
- package/dist/components/VTooltip/VTooltip.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/VTooltip/VTooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTypography/VTypography.d.ts +4 -8
- 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.js.map +1 -1
- package/dist/composables/useClearable.d.ts +2 -8
- package/dist/composables/useClearable.js.map +1 -1
- package/dist/composables/useControlShape.js.map +1 -1
- package/dist/composables/useDetailsOpen.d.ts +2 -10
- package/dist/composables/useDetailsOpen.js.map +1 -1
- package/dist/composables/useFieldIds.js.map +1 -1
- package/dist/composables/useFieldPanel.d.ts +4 -17
- package/dist/composables/useFieldPanel.js.map +1 -1
- package/dist/composables/useFileDrop.js.map +1 -1
- package/dist/composables/useFileField.d.ts +1 -5
- package/dist/composables/useFileField.js.map +1 -1
- package/dist/composables/useFocusoutDismiss.js.map +1 -1
- package/dist/composables/useIconClickHandlers.d.ts +4 -19
- package/dist/composables/useIconClickHandlers.js.map +1 -1
- package/dist/composables/useInertLink.d.ts +1 -1
- package/dist/composables/useInertLink.js.map +1 -1
- package/dist/composables/useLiveAnnouncer.js.map +1 -1
- package/dist/composables/useMaskedField.d.ts +12 -27
- package/dist/composables/useMaskedField.js.map +1 -1
- package/dist/composables/usePopover.d.ts +3 -11
- package/dist/composables/usePopover.js.map +1 -1
- package/dist/composables/useProgressValue.js.map +1 -1
- package/dist/composables/useRootAttrs.d.ts +0 -9
- package/dist/composables/useRootAttrs.js +11 -4
- package/dist/composables/useRootAttrs.js.map +1 -1
- package/dist/composables/useSlotNodes.d.ts +3 -14
- package/dist/composables/useSlotNodes.js.map +1 -1
- package/dist/composables/useTextLimit.d.ts +4 -16
- package/dist/composables/useTextLimit.js.map +1 -1
- package/dist/composables/useTimer.d.ts +2 -15
- package/dist/composables/useTimer.js.map +1 -1
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/state.d.ts +9 -38
- package/dist/i18n/state.js.map +1 -1
- package/dist/i18n/types.d.ts +19 -81
- package/dist/icons.d.ts +2 -12
- package/dist/tokens/css.d.ts +3 -16
- package/dist/tokens/css.js.map +1 -1
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/primitives.js.map +1 -1
- package/dist/tokens/semantic.d.ts +1 -23
- package/dist/tokens/semantic.js.map +1 -1
- package/dist/tokens/themes/dark.js.map +1 -1
- package/dist/tokens/types.d.ts +2 -12
- package/dist/tokens/types.js.map +1 -1
- package/dist/types.d.ts +3 -21
- package/dist/utils/array.d.ts +2 -4
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/arrowNav.d.ts +2 -26
- package/dist/utils/arrowNav.js.map +1 -1
- package/dist/utils/chip.d.ts +1 -8
- package/dist/utils/chip.js.map +1 -1
- package/dist/utils/clock.d.ts +16 -39
- package/dist/utils/clock.js.map +1 -1
- package/dist/utils/css.d.ts +5 -16
- package/dist/utils/css.js.map +1 -1
- package/dist/utils/date.d.ts +17 -60
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/direction.d.ts +2 -9
- package/dist/utils/direction.js.map +1 -1
- package/dist/utils/env.d.ts +2 -15
- package/dist/utils/env.js.map +1 -1
- package/dist/utils/file.d.ts +8 -46
- package/dist/utils/file.js.map +1 -1
- package/dist/utils/focus.d.ts +1 -14
- package/dist/utils/focus.js +1 -6
- package/dist/utils/focus.js.map +1 -1
- package/dist/utils/hostWarns.d.ts +3 -8
- package/dist/utils/hostWarns.js.map +1 -1
- package/dist/utils/ids.d.ts +2 -7
- package/dist/utils/ids.js.map +1 -1
- package/dist/utils/matcher.d.ts +1 -8
- package/dist/utils/matcher.js.map +1 -1
- package/dist/utils/memo.d.ts +1 -11
- package/dist/utils/memo.js.map +1 -1
- package/dist/utils/number.d.ts +1 -7
- package/dist/utils/number.js.map +1 -1
- package/dist/utils/text.d.ts +4 -23
- package/dist/utils/text.js.map +1 -1
- package/dist/utils/time.d.ts +4 -12
- package/dist/utils/time.js.map +1 -1
- package/dist/utils/vnode.d.ts +0 -10
- package/dist/utils/vnode.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeGrid.js","names":[],"sources":["../../../src/components/VCalendar/timeGrid.ts"],"sourcesContent":["// @core\n/**\n * Where a timed event lands when a time grid's gesture lets go of it: moved, stretched, or drawn\n * out of an empty slot.\n *\n * It is `layout.ts`'s arithmetic, pure and tested over plain numbers the same way, and it sits in\n * a module of its own for the size gate alone. The month and year views import `layout.ts` too,\n * and a module is weighed whole in every closure that reaches it: kept there, these functions\n * were paid for by two views that never move an event by the minute (the `VTimePicker/limits.ts`\n * argument).\n */\nimport { addDays } from '../../utils/date'\nimport { clamp } from '../../utils/number'\n\nimport {\n MINUTES_PER_DAY,\n daySpan,\n durationOf,\n floorToSlot,\n minutesAt,\n timeOf,\n type TimeWindow,\n} from './layout'\nimport type { CalendarEventTimes } from './types'\n\n/**\n * Rounds a moment to the nearest step WITHOUT holding it inside the day, for a start that a\n * move may push past either midnight.\n */\nexport function roundToSlot(minutes: number, step: number): number {\n const size = step > 0 ? step : 1\n return Math.round(minutes / size) * size\n}\n\n/**\n * Where an event lands when it is dragged or nudged along its day: it keeps its length and\n * moves by `minuteDelta`. Which DAY it lands on is the caller's to set, read from the days on\n * show rather than counted here, so a hidden weekday is never landed on.\n *\n * An event pushed past the end of the window is held against it rather than having its tail\n * cut off: moving something must never change how long it is, which is the other gesture's\n * job.\n */\nexport function moveEvent(\n origin: CalendarEventTimes,\n minuteDelta: number,\n timeWindow: TimeWindow,\n): CalendarEventTimes {\n const startMinutes = minutesAt(origin.startTime, timeWindow.start)\n const endMinutes = Math.max(minutesAt(origin.endTime, startMinutes), startMinutes + 1)\n const duration = endMinutes - startMinutes\n\n const nextStart = clamp(\n startMinutes + minuteDelta,\n timeWindow.start,\n Math.max(timeWindow.start, timeWindow.end - duration),\n )\n\n return {\n start: origin.start,\n end: origin.start,\n startTime: timeOf(nextStart),\n endTime: timeOf(nextStart + duration),\n }\n}\n\n/**\n * Where the end of an event lands when its bottom edge is dragged. It can never cross the\n * start: the shortest an event may become is one step.\n */\nexport function resizeEvent(\n origin: CalendarEventTimes,\n endMinutes: number,\n minDuration: number,\n timeWindow: TimeWindow,\n): CalendarEventTimes {\n const startMinutes = minutesAt(origin.startTime, timeWindow.start)\n const floor = Math.max(minDuration, 1)\n const end = clamp(endMinutes, startMinutes + floor, timeWindow.end)\n\n return {\n start: origin.start,\n end: origin.start,\n startTime: timeOf(startMinutes),\n endTime: timeOf(end),\n }\n}\n\n/**\n * Where a timed event lands when it is dragged or nudged: it starts at `startMinutes` counted\n * from the midnight that begins `day`, and keeps its length.\n *\n * `crossMidnight` says which of two rules applies, and it is read off the event as the gesture\n * FOUND it rather than off the times being written. An event that ran past midnight when it was\n * taken hold of may go on doing so, or come back inside one day, or cross again: its start may\n * be pushed into the day before or after `day`, and its end lands wherever its length takes it.\n * Any other event is `moveEvent`'s, held inside `day`, so a drag never turns an ordinary\n * appointment into an overnight one by accident.\n */\nexport function moveTimedEvent(\n times: CalendarEventTimes,\n day: string,\n startMinutes: number,\n timeWindow: TimeWindow,\n crossMidnight: boolean,\n): CalendarEventTimes {\n if (!crossMidnight) {\n const from = minutesAt(times.startTime, timeWindow.start)\n return { ...moveEvent(times, startMinutes - from, timeWindow), start: day, end: day }\n }\n\n const duration = clamp(durationOf(times), 1, MINUTES_PER_DAY - 1)\n const dayShift = Math.floor(startMinutes / MINUTES_PER_DAY)\n const wanted = startMinutes - dayShift * MINUTES_PER_DAY\n /*\n * The start is held inside the window only when it was taken from inside it. An overnight\n * event may begin after the window closes (a 22:00 shift on a calendar showing 08:00 to\n * 20:00, whose morning card alone is drawn): pulled into the window, its start jumped hours\n * and left the slot grid at the first nudge. Left where it was asked to go, it cannot\n * vanish either, since moving it later lengthens its morning and moving it earlier brings\n * its evening into view.\n */\n const from = minutesAt(times.startTime, timeWindow.start)\n const start =\n from >= timeWindow.start && from < timeWindow.end\n ? clamp(wanted, timeWindow.start, timeWindow.end - 1)\n : wanted\n const startDay = addDays(day, dayShift)\n const end = start + duration\n return {\n start: startDay,\n end: end >= MINUTES_PER_DAY ? addDays(startDay, 1) : startDay,\n startTime: timeOf(start),\n endTime: timeOf(end % MINUTES_PER_DAY),\n }\n}\n\n/**\n * Where a timed event's end lands when it is dragged or nudged: `endMinutes` counted from the\n * midnight that begins `endDay`.\n *\n * With `crossMidnight` false this is `resizeEvent`, and `endDay` is ignored. With it true: an\n * event that ran past midnight when the gesture began: the end may sit on the event's first\n * day or on the next one, whichever `endDay` names (anything else is held to the nearer of the\n * two), and it stays at least `minDuration` after the start and short of a whole day after it,\n * so the event never turns into a bar under the pointer.\n */\nexport function resizeTimedEvent(\n times: CalendarEventTimes,\n endDay: string,\n endMinutes: number,\n minDuration: number,\n timeWindow: TimeWindow,\n crossMidnight: boolean,\n): CalendarEventTimes {\n if (!crossMidnight) return resizeEvent(times, endMinutes, minDuration, timeWindow)\n\n const startMinutes = minutesAt(times.startTime, timeWindow.start)\n // `daySpan` already reads a day before the start as zero.\n const dayOffset = Math.min(daySpan({ ...times, end: endDay }), 1)\n const end = clamp(\n dayOffset * MINUTES_PER_DAY + endMinutes,\n startMinutes + Math.max(minDuration, 1),\n startMinutes + MINUTES_PER_DAY - 1,\n )\n\n // Back inside the first day, the end obeys the window like any other; the `timeOf` clamp\n // then writes midnight as 23:59 of that day rather than 00:00 of the next.\n if (end <= MINUTES_PER_DAY) {\n return {\n start: times.start,\n end: times.start,\n startTime: timeOf(startMinutes),\n // The window caps the end, never below the shortest length: a start after the window\n // closes would otherwise be given an end before it.\n endTime: timeOf(\n Math.max(Math.min(end, timeWindow.end), startMinutes + Math.max(minDuration, 1)),\n ),\n }\n }\n return {\n start: times.start,\n end: addDays(times.start, 1),\n startTime: timeOf(startMinutes),\n endTime: timeOf(end - MINUTES_PER_DAY),\n }\n}\n\n/**\n * The stretch of a day drawn out by a press at `anchor` and a pointer now at `pointer`, both in\n * minutes since midnight.\n *\n * It covers every slot from the one pressed to the one under the pointer, both included, so it\n * reads the same whichever way the pointer went: down from 10:00 to 11:10 is 10:00–11:15, up\n * from 10:00 to 9:10 is 9:00–10:15. The pressed slot is never given up, which is what keeps the\n * box from flipping over as the pointer crosses its own starting point.\n */\nexport function drawnSlot(\n day: string,\n anchor: number,\n pointer: number,\n step: number,\n timeWindow: TimeWindow,\n): CalendarEventTimes {\n const size = step > 0 ? step : 1\n const from = floorToSlot(anchor, size)\n const at = floorToSlot(pointer, size)\n const start = Math.max(timeWindow.start, Math.min(from, at))\n const end = clamp(Math.max(from, at) + size, start + 1, timeWindow.end)\n return { start: day, end: day, startTime: timeOf(start), endTime: timeOf(end) }\n}\n"],"mappings":";;;;AA6BA,SAAgB,EAAY,GAAiB,GAAsB;CACjE,IAAM,IAAO,IAAO,IAAI,IAAO;CAC/B,OAAO,KAAK,MAAM,IAAU,CAAI,IAAI;AACtC;AAWA,SAAgB,EACd,GACA,GACA,GACoB;CACpB,IAAM,IAAe,EAAU,EAAO,WAAW,EAAW,KAAK,GAE3D,IADa,KAAK,IAAI,EAAU,EAAO,SAAS,CAAY,GAAG,IAAe,CACnE,IAAa,GAExB,IAAY,EAChB,IAAe,GACf,EAAW,OACX,KAAK,IAAI,EAAW,OAAO,EAAW,MAAM,CAAQ,CACtD;CAEA,OAAO;EACL,OAAO,EAAO;EACd,KAAK,EAAO;EACZ,WAAW,EAAO,CAAS;EAC3B,SAAS,EAAO,IAAY,CAAQ;CAC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I,KAAA,OACK;EACL,OAAO,EAAM;EACb,KAAK,EAAM;EACX,WAAW,EAAO,CAAY;EAG9B,SAAS,EACP,KAAK,IAAI,KAAK,IAAI,GAAK,EAAW,GAAG,GAAG,IAAe,KAAK,IAAI,GAAa,CAAC,CAAC,CACjF;CACF,IAEK;EACL,OAAO,EAAM;EACb,KAAK,EAAQ,EAAM,OAAO,CAAC;EAC3B,WAAW,EAAO,CAAY;EAC9B,SAAS,EAAO,IAAM,CAAe;CACvC;AACF;AAWA,SAAgB,EACd,GACA,GACA,GACA,GACA,GACoB;CACpB,IAAM,IAAO,IAAO,IAAI,IAAO,GACzB,IAAO,EAAY,GAAQ,CAAI,GAC/B,IAAK,EAAY,GAAS,CAAI,GAC9B,IAAQ,KAAK,IAAI,EAAW,OAAO,KAAK,IAAI,GAAM,CAAE,CAAC,GACrD,IAAM,EAAM,KAAK,IAAI,GAAM,CAAE,IAAI,GAAM,IAAQ,GAAG,EAAW,GAAG;CACtE,OAAO;EAAE,OAAO;EAAK,KAAK;EAAK,WAAW,EAAO,CAAK;EAAG,SAAS,EAAO,CAAG;CAAE;AAChF"}
|
|
1
|
+
{"version":3,"file":"timeGrid.js","names":[],"sources":["../../../src/components/VCalendar/timeGrid.ts"],"sourcesContent":["// @core\n/**\n * Keep minute-based placement separate from common layout so month and year views do not import\n * unused time-grid arithmetic.\n */\nimport { addDays } from '../../utils/date'\nimport { clamp } from '../../utils/number'\n\nimport {\n MINUTES_PER_DAY,\n daySpan,\n durationOf,\n floorToSlot,\n minutesAt,\n timeOf,\n type TimeWindow,\n} from './layout'\nimport type { CalendarEventTimes } from './types'\n\n/**\n * Rounds a moment to the nearest step WITHOUT holding it inside the day, for a start that a\n * move may push past either midnight.\n */\nexport function roundToSlot(minutes: number, step: number): number {\n const size = step > 0 ? step : 1\n return Math.round(minutes / size) * size\n}\n\n/**\n * Where an event lands when it is dragged or nudged along its day: it keeps its length and\n * moves by `minuteDelta`.\n */\nexport function moveEvent(\n origin: CalendarEventTimes,\n minuteDelta: number,\n timeWindow: TimeWindow,\n): CalendarEventTimes {\n const startMinutes = minutesAt(origin.startTime, timeWindow.start)\n const endMinutes = Math.max(minutesAt(origin.endTime, startMinutes), startMinutes + 1)\n const duration = endMinutes - startMinutes\n\n const nextStart = clamp(\n startMinutes + minuteDelta,\n timeWindow.start,\n Math.max(timeWindow.start, timeWindow.end - duration),\n )\n\n return {\n start: origin.start,\n end: origin.start,\n startTime: timeOf(nextStart),\n endTime: timeOf(nextStart + duration),\n }\n}\n\n/**\n * Where the end of an event lands when its bottom edge is dragged. It can never cross the\n * start: the shortest an event may become is one step.\n */\nexport function resizeEvent(\n origin: CalendarEventTimes,\n endMinutes: number,\n minDuration: number,\n timeWindow: TimeWindow,\n): CalendarEventTimes {\n const startMinutes = minutesAt(origin.startTime, timeWindow.start)\n const floor = Math.max(minDuration, 1)\n const end = clamp(endMinutes, startMinutes + floor, timeWindow.end)\n\n return {\n start: origin.start,\n end: origin.start,\n startTime: timeOf(startMinutes),\n endTime: timeOf(end),\n }\n}\n\n/**\n * Where a timed event lands when it is dragged or nudged: it starts at `startMinutes` counted\n * from the midnight that begins `day`, and keeps its length.\n */\nexport function moveTimedEvent(\n times: CalendarEventTimes,\n day: string,\n startMinutes: number,\n timeWindow: TimeWindow,\n crossMidnight: boolean,\n): CalendarEventTimes {\n if (!crossMidnight) {\n const from = minutesAt(times.startTime, timeWindow.start)\n return { ...moveEvent(times, startMinutes - from, timeWindow), start: day, end: day }\n }\n\n const duration = clamp(durationOf(times), 1, MINUTES_PER_DAY - 1)\n const dayShift = Math.floor(startMinutes / MINUTES_PER_DAY)\n const wanted = startMinutes - dayShift * MINUTES_PER_DAY\n /*\n * Left where it was asked to go, it cannot vanish either, since moving it later lengthens its\n * morning and moving it earlier brings its evening into view.\n */\n const from = minutesAt(times.startTime, timeWindow.start)\n const start =\n from >= timeWindow.start && from < timeWindow.end\n ? clamp(wanted, timeWindow.start, timeWindow.end - 1)\n : wanted\n const startDay = addDays(day, dayShift)\n const end = start + duration\n return {\n start: startDay,\n end: end >= MINUTES_PER_DAY ? addDays(startDay, 1) : startDay,\n startTime: timeOf(start),\n endTime: timeOf(end % MINUTES_PER_DAY),\n }\n}\n\n/**\n * Where a timed event's end lands when it is dragged or nudged: `endMinutes` counted from the\n * midnight that begins `endDay`. With `crossMidnight` false this is `resizeEvent`, and `endDay`\n * is ignored.\n */\nexport function resizeTimedEvent(\n times: CalendarEventTimes,\n endDay: string,\n endMinutes: number,\n minDuration: number,\n timeWindow: TimeWindow,\n crossMidnight: boolean,\n): CalendarEventTimes {\n if (!crossMidnight) return resizeEvent(times, endMinutes, minDuration, timeWindow)\n\n const startMinutes = minutesAt(times.startTime, timeWindow.start)\n const dayOffset = Math.min(daySpan({ ...times, end: endDay }), 1)\n const end = clamp(\n dayOffset * MINUTES_PER_DAY + endMinutes,\n startMinutes + Math.max(minDuration, 1),\n startMinutes + MINUTES_PER_DAY - 1,\n )\n\n // Back inside the first day, the end obeys the window like any other; the `timeOf` clamp\n // then writes midnight as 23:59 of that day rather than 00:00 of the next.\n if (end <= MINUTES_PER_DAY) {\n return {\n start: times.start,\n end: times.start,\n startTime: timeOf(startMinutes),\n // The window caps the end, never below the shortest length: a start after the window\n // closes would otherwise be given an end before it.\n endTime: timeOf(\n Math.max(Math.min(end, timeWindow.end), startMinutes + Math.max(minDuration, 1)),\n ),\n }\n }\n return {\n start: times.start,\n end: addDays(times.start, 1),\n startTime: timeOf(startMinutes),\n endTime: timeOf(end - MINUTES_PER_DAY),\n }\n}\n\n/**\n * The stretch of a day drawn out by a press at `anchor` and a pointer now at `pointer`, both in\n * minutes since midnight.\n */\nexport function drawnSlot(\n day: string,\n anchor: number,\n pointer: number,\n step: number,\n timeWindow: TimeWindow,\n): CalendarEventTimes {\n const size = step > 0 ? step : 1\n const from = floorToSlot(anchor, size)\n const at = floorToSlot(pointer, size)\n const start = Math.max(timeWindow.start, Math.min(from, at))\n const end = clamp(Math.max(from, at) + size, start + 1, time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"}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
import { HourFormat } from '../../utils/time.js';
|
|
2
2
|
/** What identifies one event, and what the move and resize events refer back to. */
|
|
3
3
|
export type CalendarEventId = string | number;
|
|
4
|
-
/**
|
|
5
|
-
* One entry in the calendar.
|
|
6
|
-
*
|
|
7
|
-
* The seven fields below are the contract. A consumer needing more of their own writes an
|
|
8
|
-
* interface extending this one and hands it to the component, which carries the type
|
|
9
|
-
* through to the `#event` slot, so extra fields arrive typed rather than as `unknown`.
|
|
10
|
-
*/
|
|
4
|
+
/** One entry in the calendar. */
|
|
11
5
|
export interface CalendarEvent {
|
|
12
|
-
/**
|
|
13
|
-
* What identifies this event. It must be unique among the events given and stable
|
|
14
|
-
* across renders: it is what the drag writes back to, what gives a card its key, and
|
|
15
|
-
* what decides the colour of an event that names none, so an event keeps its colour
|
|
16
|
-
* as the list is filtered or re-sorted.
|
|
17
|
-
*/
|
|
6
|
+
/** What identifies this event. */
|
|
18
7
|
id: CalendarEventId;
|
|
19
8
|
/** What the event is called. It is the accessible name of its card. */
|
|
20
9
|
title: string;
|
|
@@ -29,22 +18,16 @@ export interface CalendarEvent {
|
|
|
29
18
|
/** A second line under the title, shown where the card is tall enough to hold one. */
|
|
30
19
|
description?: string;
|
|
31
20
|
/**
|
|
32
|
-
* Any CSS colour. Left out, one is derived from the id, so the same event is always
|
|
33
|
-
*
|
|
34
|
-
* set on top of it, which is what keeps an arbitrary colour readable.
|
|
21
|
+
* Any CSS colour. Left out, one is derived from the id, so the same event is always drawn the
|
|
22
|
+
* same way.
|
|
35
23
|
*/
|
|
36
24
|
color?: string;
|
|
37
25
|
/**
|
|
38
26
|
* The name of a time zone, shown beside the times as an annotation: "09:00 – 10:00
|
|
39
|
-
* (Europe/Paris)".
|
|
40
|
-
* from the dates and times above, read as local time.
|
|
27
|
+
* (Europe/Paris)".
|
|
41
28
|
*/
|
|
42
29
|
timezone?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Keeps the event in the band above the grid rather than in a day's column. An event
|
|
45
|
-
* lasting twenty-four hours or more is already shown there without this. One running past
|
|
46
|
-
* midnight for less than that stays in the grid, as a card in each of its two days.
|
|
47
|
-
*/
|
|
30
|
+
/** Keeps the event in the band above the grid rather than in a day's column. */
|
|
48
31
|
allDay?: boolean;
|
|
49
32
|
}
|
|
50
33
|
/**
|
|
@@ -46,102 +46,53 @@ export interface CarouselIndicatorSlotProps {
|
|
|
46
46
|
export type CarouselIndicators = false | 'inside' | 'outside';
|
|
47
47
|
/** Where the previous and next buttons go: nowhere, over the slides, or beside them. */
|
|
48
48
|
export type CarouselControls = false | 'inside' | 'outside';
|
|
49
|
-
/**
|
|
50
|
-
* When those buttons are visible. It is a named choice rather than a yes-or-no, because
|
|
51
|
-
* "on hover" would misname what actually happens: they also appear on keyboard focus, and
|
|
52
|
-
* they stay permanently visible where there is no pointer to hover with.
|
|
53
|
-
*/
|
|
49
|
+
/** When those buttons are visible. */
|
|
54
50
|
export type CarouselControlsVisibility = 'always' | 'hover';
|
|
55
51
|
interface CarouselProps {
|
|
56
52
|
/**
|
|
57
|
-
* How many slides may be visible at once. It is a MAXIMUM and not a target: the floor
|
|
58
|
-
*
|
|
59
|
-
*
|
|
53
|
+
* How many slides may be visible at once. It is a MAXIMUM and not a target: the floor below
|
|
54
|
+
* decides how many actually fit, which makes the whole thing responsive without a single
|
|
55
|
+
* breakpoint.
|
|
60
56
|
*/
|
|
61
57
|
itemsPerView?: number;
|
|
62
58
|
/**
|
|
63
59
|
* How small a slide is allowed to get. Once an equal share would fall below this, fewer
|
|
64
|
-
* slides fit and the carousel simply scrolls further instead.
|
|
65
|
-
* pixels; anything else is used as given, so `'20vw'` works.
|
|
60
|
+
* slides fit and the carousel simply scrolls further instead.
|
|
66
61
|
*/
|
|
67
62
|
itemMinSize?: number | string;
|
|
68
|
-
/**
|
|
69
|
-
* How much of the NEXT slide is left showing, as a hint that there is more. It includes
|
|
70
|
-
* the gap before it, which is what keeps the sizing formula free of special cases.
|
|
71
|
-
*
|
|
72
|
-
* It cannot be combined with the fade transition: fading assumes a slide exactly fills
|
|
73
|
-
* the view.
|
|
74
|
-
*/
|
|
63
|
+
/** How much of the NEXT slide is left showing, as a hint that there is more. */
|
|
75
64
|
peek?: number | string;
|
|
76
65
|
/** The space between two slides. */
|
|
77
66
|
gap?: number | string;
|
|
78
67
|
/** Whether the carousel scrolls across the page or down it. */
|
|
79
68
|
orientation?: CarouselOrientation;
|
|
80
69
|
/**
|
|
81
|
-
* How one slide gives way to the next, driven by the scroll itself.
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* Fading requires ONE slide at a time and no peek: it works by holding each slide in
|
|
85
|
-
* place while the scroll moves under it, which only lands correctly when a slide fills
|
|
86
|
-
* the view exactly. Asked for otherwise, it falls back to sliding rather than degrading.
|
|
70
|
+
* How one slide gives way to the next, driven by the scroll itself. Asked for otherwise, it
|
|
71
|
+
* falls back to sliding rather than degrading.
|
|
87
72
|
*/
|
|
88
73
|
effect?: CarouselEffect;
|
|
89
|
-
/**
|
|
90
|
-
* The height of the visible area.
|
|
91
|
-
*
|
|
92
|
-
* GIVE ONE when the carousel scrolls downwards: a slide sized as a share of the height
|
|
93
|
-
* needs a height to take a share OF, and without it every slide collapses onto its own
|
|
94
|
-
* content. Scrolling across the page, the height comes from the slides themselves.
|
|
95
|
-
*/
|
|
74
|
+
/** The height of the visible area. */
|
|
96
75
|
height?: number | string;
|
|
97
76
|
/**
|
|
98
|
-
* Whether the carousel comes back round: past the last position it returns to the first,
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* Nothing is cloned to achieve it: the real track goes back to the beginning. Being a
|
|
102
|
-
* move of more than one page, it goes there at once and plays the transition on
|
|
103
|
-
* arrival, rather than rewinding past every slide in between, unless `noJump` puts
|
|
104
|
-
* that rewind back.
|
|
105
|
-
*
|
|
106
|
-
* It has no effect where there is only one position to rest on, and the buttons stay
|
|
107
|
-
* disabled there rather than becoming two controls that do nothing. The dots always go
|
|
108
|
-
* straight to the position they name, and so do the Home and End keys.
|
|
77
|
+
* Whether the carousel comes back round: past the last position it returns to the first, and
|
|
78
|
+
* before the first it goes to the last. Off by default, which stops it at both ends.
|
|
109
79
|
*/
|
|
110
80
|
loop?: boolean;
|
|
111
81
|
/**
|
|
112
82
|
* Whether a move of more than one page keeps the whole scroll instead of going straight
|
|
113
|
-
* there. Off by default: a dot five pages away lands at once and plays the transition
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* Turn it on when the travel is the point: a short carousel where watching the track
|
|
117
|
-
* run past says something about how far the reader has moved. Every route is covered,
|
|
118
|
-
* the dots, the Home and End keys and a `loop` carousel coming back round, so the
|
|
119
|
-
* component moves the way it did before there was a shortcut at all.
|
|
120
|
-
*
|
|
121
|
-
* It changes nothing for a reader who has asked for less motion: that preference makes
|
|
122
|
-
* every scroll instant on its own.
|
|
83
|
+
* there. Off by default: a dot five pages away lands at once and plays the transition once,
|
|
84
|
+
* on arrival.
|
|
123
85
|
*/
|
|
124
86
|
noJump?: boolean;
|
|
125
87
|
/**
|
|
126
|
-
* How long each slide is shown before the next one, in milliseconds; zero means it does
|
|
127
|
-
*
|
|
128
|
-
* case it goes round for as long as the page is open), pauses while the pointer rests on
|
|
129
|
-
* it or the KEYBOARD focus is inside it, and never runs at all for a reader who has asked
|
|
130
|
-
* for less motion.
|
|
131
|
-
*
|
|
132
|
-
* The component deliberately renders NO pause button. This prop is reactive and setting
|
|
133
|
-
* it to zero cancels the timer at once, so a stop control is a one-line binding on your
|
|
134
|
-
* side, and it is worth adding: the guideline asks for a way to stop content that moves
|
|
135
|
-
* on its own, and hover and focus leave a touch user with none. Looping makes that
|
|
136
|
-
* binding MANDATORY rather than advisable, the movement no longer ending on its own.
|
|
88
|
+
* How long each slide is shown before the next one, in milliseconds; zero means it does not
|
|
89
|
+
* advance by itself.
|
|
137
90
|
*/
|
|
138
91
|
autoplay?: number;
|
|
139
92
|
/**
|
|
140
|
-
* Where the previous and next buttons go: over the slides, beside them, or nowhere.
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* as padding, so the component's footprint is unchanged and the slides narrow instead.
|
|
144
|
-
* Either way they are centred on the SLIDES and never on the slides plus the dots.
|
|
93
|
+
* Where the previous and next buttons go: over the slides, beside them, or nowhere. Placed
|
|
94
|
+
* beside, they sit at the ends of the scrolling axis and their room is reserved as padding,
|
|
95
|
+
* so the component's footprint is unchanged and the slides narrow instead.
|
|
145
96
|
*/
|
|
146
97
|
controls?: CarouselControls;
|
|
147
98
|
/**
|
|
@@ -150,9 +101,8 @@ interface CarouselProps {
|
|
|
150
101
|
*/
|
|
151
102
|
indicators?: CarouselIndicators;
|
|
152
103
|
/**
|
|
153
|
-
* Whether those buttons are always visible, or appear when the pointer is over the
|
|
154
|
-
*
|
|
155
|
-
* they stay visible whatever this says. The dots are never hidden.
|
|
104
|
+
* Whether those buttons are always visible, or appear when the pointer is over the carousel
|
|
105
|
+
* or the keyboard focus is inside it.
|
|
156
106
|
*/
|
|
157
107
|
controlsVisibility?: CarouselControlsVisibility;
|
|
158
108
|
/** The icon of the previous button. It follows the orientation by default. */
|
|
@@ -163,35 +113,15 @@ interface CarouselProps {
|
|
|
163
113
|
prevLabel?: string;
|
|
164
114
|
/** What the next button does, in words. It falls back to the dictionary. */
|
|
165
115
|
nextLabel?: string;
|
|
166
|
-
/**
|
|
167
|
-
* What screen readers announce for the carousel as a whole.
|
|
168
|
-
*
|
|
169
|
-
* Give a DISTINCT one to every carousel on a page: this is a landmark of the page, and
|
|
170
|
-
* two landmarks bearing the same name cannot be told apart by someone navigating between
|
|
171
|
-
* them.
|
|
172
|
-
*/
|
|
116
|
+
/** What screen readers announce for the carousel as a whole. */
|
|
173
117
|
label?: string;
|
|
174
118
|
}
|
|
175
119
|
type __VLS_Props = CarouselProps;
|
|
176
120
|
type __VLS_Slots = {
|
|
177
|
-
/**
|
|
178
|
-
* The slides. How many there are is read from what this slot RENDERS, so a `v-for` is
|
|
179
|
-
* perfectly fine, but the slot must not depend on something only true in a browser, or
|
|
180
|
-
* the server and the client would count differently.
|
|
181
|
-
*/
|
|
121
|
+
/** The slides. */
|
|
182
122
|
default(): unknown;
|
|
183
|
-
/**
|
|
184
|
-
* Replaces the previous and next buttons entirely, their placement included: custom
|
|
185
|
-
* content positions itself, and the visibility setting no longer applies to it.
|
|
186
|
-
*/
|
|
187
123
|
controls?(props: CarouselControlsSlotProps): unknown;
|
|
188
|
-
/**
|
|
189
|
-
* Replaces the whole bar of dots.
|
|
190
|
-
*
|
|
191
|
-
* Render one control per POSITION (`pageCount`) and not per slide. A position past the
|
|
192
|
-
* last one cannot be reached, so a bar built on the number of slides offers dots that
|
|
193
|
-
* scroll nowhere. The slide count is passed as well, for wording such as "3 of 8".
|
|
194
|
-
*/
|
|
124
|
+
/** Replaces the whole bar of dots. */
|
|
195
125
|
indicators?(props: CarouselIndicatorsSlotProps): unknown;
|
|
196
126
|
/**
|
|
197
127
|
* Replaces what is drawn INSIDE one dot. The button itself, and everything that makes it
|
|
@@ -201,9 +131,8 @@ type __VLS_Slots = {
|
|
|
201
131
|
};
|
|
202
132
|
type __VLS_ModelProps = {
|
|
203
133
|
/**
|
|
204
|
-
* Which slide is current: the first one fully visible when several fit at once, which is
|
|
205
|
-
*
|
|
206
|
-
* carousel can rest on is brought back into range.
|
|
134
|
+
* Which slide is current: the first one fully visible when several fit at once, which is also
|
|
135
|
+
* the position the carousel has come to rest on.
|
|
207
136
|
*/
|
|
208
137
|
modelValue?: number;
|
|
209
138
|
};
|