@ecoma-io/loom 0.1.0 → 0.2.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 +54 -57
- package/dist/blocks/AppHeader/AppHeader.js.map +1 -1
- package/dist/blocks/AppHeader/AppHeader.vue.d.ts +5 -6
- package/dist/blocks/AppHeader/AppHeader.vue.d.ts.map +1 -1
- package/dist/blocks/AppHeader/AppHeader.vue_vue_type_script_setup_true_lang.js +6 -7
- package/dist/blocks/AppHeader/AppHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/blocks/DashboardGrid/DashboardGrid.vue.d.ts +1 -1
- package/dist/blocks/DashboardGrid/DashboardGrid.vue.d.ts.map +1 -1
- package/dist/blocks/DesktopAppShell/DesktopAppShell.js +7 -0
- package/dist/blocks/DesktopAppShell/DesktopAppShell.js.map +1 -0
- package/dist/blocks/DesktopAppShell/DesktopAppShell.vue.d.ts +102 -0
- package/dist/blocks/DesktopAppShell/DesktopAppShell.vue.d.ts.map +1 -0
- package/dist/blocks/DesktopAppShell/DesktopAppShell.vue_vue_type_script_setup_true_lang.js +74 -0
- package/dist/blocks/DesktopAppShell/DesktopAppShell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/blocks/ErrorState/ErrorState.js +7 -0
- package/dist/blocks/ErrorState/ErrorState.js.map +1 -0
- package/dist/blocks/ErrorState/ErrorState.vue.d.ts +44 -0
- package/dist/blocks/ErrorState/ErrorState.vue.d.ts.map +1 -0
- package/dist/blocks/ErrorState/ErrorState.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/blocks/ErrorState/ErrorState.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/blocks/FormActions/FormActions.js +7 -0
- package/dist/blocks/FormActions/FormActions.js.map +1 -0
- package/dist/blocks/FormActions/FormActions.vue.d.ts +51 -0
- package/dist/blocks/FormActions/FormActions.vue.d.ts.map +1 -0
- package/dist/blocks/FormActions/FormActions.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/blocks/FormActions/FormActions.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/blocks/FormSection/FormSection.js +7 -0
- package/dist/blocks/FormSection/FormSection.js.map +1 -0
- package/dist/blocks/FormSection/FormSection.vue.d.ts +85 -0
- package/dist/blocks/FormSection/FormSection.vue.d.ts.map +1 -0
- package/dist/blocks/FormSection/FormSection.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/blocks/FormSection/FormSection.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/blocks/LoadingState/LoadingState.js +7 -0
- package/dist/blocks/LoadingState/LoadingState.js.map +1 -0
- package/dist/blocks/LoadingState/LoadingState.vue.d.ts +22 -0
- package/dist/blocks/LoadingState/LoadingState.vue.d.ts.map +1 -0
- package/dist/blocks/LoadingState/LoadingState.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/blocks/LoadingState/LoadingState.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/blocks/MetricCard/MetricCard.js +7 -0
- package/dist/blocks/MetricCard/MetricCard.js.map +1 -0
- package/dist/blocks/MetricCard/MetricCard.vue.d.ts +59 -0
- package/dist/blocks/MetricCard/MetricCard.vue.d.ts.map +1 -0
- package/dist/blocks/MetricCard/MetricCard.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/blocks/MetricCard/MetricCard.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/blocks/SidebarNav/SidebarNav.js.map +1 -1
- package/dist/blocks/SidebarNav/SidebarNav.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/blocks/TitleBar/TitleBar.js.map +1 -1
- package/dist/blocks/TitleBar/TitleBar.vue.d.ts +37 -3
- package/dist/blocks/TitleBar/TitleBar.vue.d.ts.map +1 -1
- package/dist/blocks/TitleBar/TitleBar.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/blocks/TitleBar/TitleBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/blocks/ToastStack/ToastStack.js.map +1 -1
- package/dist/blocks/ToastStack/ToastStack.vue.d.ts +20 -0
- package/dist/blocks/ToastStack/ToastStack.vue.d.ts.map +1 -1
- package/dist/blocks/ToastStack/ToastStack.vue_vue_type_script_setup_true_lang.js +16 -5
- package/dist/blocks/ToastStack/ToastStack.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composition/Center/Center.js +7 -0
- package/dist/composition/Center/Center.js.map +1 -0
- package/dist/composition/Center/Center.vue.d.ts +40 -0
- package/dist/composition/Center/Center.vue.d.ts.map +1 -0
- package/dist/composition/Center/Center.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/composition/Center/Center.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composition/Frame/Frame.js +7 -0
- package/dist/composition/Frame/Frame.js.map +1 -0
- package/dist/composition/Frame/Frame.vue.d.ts +35 -0
- package/dist/composition/Frame/Frame.vue.d.ts.map +1 -0
- package/dist/composition/Frame/Frame.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/composition/Frame/Frame.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composition/Grid/Grid.js +7 -0
- package/dist/composition/Grid/Grid.js.map +1 -0
- package/dist/composition/Grid/Grid.vue.d.ts +41 -0
- package/dist/composition/Grid/Grid.vue.d.ts.map +1 -0
- package/dist/composition/Grid/Grid.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/composition/Grid/Grid.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composition/Inline/Inline.js +7 -0
- package/dist/composition/Inline/Inline.js.map +1 -0
- package/dist/composition/Inline/Inline.vue.d.ts +46 -0
- package/dist/composition/Inline/Inline.vue.d.ts.map +1 -0
- package/dist/composition/Inline/Inline.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/composition/Inline/Inline.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composition/ScrollReel/ScrollReel.js +7 -0
- package/dist/composition/ScrollReel/ScrollReel.js.map +1 -0
- package/dist/composition/ScrollReel/ScrollReel.vue.d.ts +42 -0
- package/dist/composition/ScrollReel/ScrollReel.vue.d.ts.map +1 -0
- package/dist/composition/ScrollReel/ScrollReel.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/composition/ScrollReel/ScrollReel.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composition/Sidebar/Sidebar.js +7 -0
- package/dist/composition/Sidebar/Sidebar.js.map +1 -0
- package/dist/composition/Sidebar/Sidebar.vue.d.ts +52 -0
- package/dist/composition/Sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/composition/Sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/composition/Sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composition/Split/Split.js +7 -0
- package/dist/composition/Split/Split.js.map +1 -0
- package/dist/composition/Split/Split.vue.d.ts +58 -0
- package/dist/composition/Split/Split.vue.d.ts.map +1 -0
- package/dist/composition/Split/Split.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/composition/Split/Split.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composition/Stack/Stack.js +7 -0
- package/dist/composition/Stack/Stack.js.map +1 -0
- package/dist/composition/Stack/Stack.vue.d.ts +43 -0
- package/dist/composition/Stack/Stack.vue.d.ts.map +1 -0
- package/dist/composition/Stack/Stack.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/composition/Stack/Stack.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/index.d.ts +119 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -5
- package/dist/layouts/AppShell/AppShell.js +7 -0
- package/dist/layouts/AppShell/AppShell.js.map +1 -0
- package/dist/layouts/AppShell/AppShell.vue.d.ts +51 -0
- package/dist/layouts/AppShell/AppShell.vue.d.ts.map +1 -0
- package/dist/layouts/AppShell/AppShell.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/layouts/AppShell/AppShell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/layouts/Centered/Centered.js +7 -0
- package/dist/layouts/Centered/Centered.js.map +1 -0
- package/dist/layouts/Centered/Centered.vue.d.ts +48 -0
- package/dist/layouts/Centered/Centered.vue.d.ts.map +1 -0
- package/dist/layouts/Centered/Centered.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/layouts/Centered/Centered.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/layouts/Dashboard/Dashboard.js +7 -0
- package/dist/layouts/Dashboard/Dashboard.js.map +1 -0
- package/dist/layouts/Dashboard/Dashboard.vue.d.ts +60 -0
- package/dist/layouts/Dashboard/Dashboard.vue.d.ts.map +1 -0
- package/dist/layouts/Dashboard/Dashboard.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/layouts/Dashboard/Dashboard.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/layouts/FormLayout/FormLayout.js +7 -0
- package/dist/layouts/FormLayout/FormLayout.js.map +1 -0
- package/dist/layouts/FormLayout/FormLayout.vue.d.ts +46 -0
- package/dist/layouts/FormLayout/FormLayout.vue.d.ts.map +1 -0
- package/dist/layouts/FormLayout/FormLayout.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/layouts/FormLayout/FormLayout.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/layouts/MasterDetail/MasterDetail.js +7 -0
- package/dist/layouts/MasterDetail/MasterDetail.js.map +1 -0
- package/dist/layouts/MasterDetail/MasterDetail.vue.d.ts +49 -0
- package/dist/layouts/MasterDetail/MasterDetail.vue.d.ts.map +1 -0
- package/dist/layouts/MasterDetail/MasterDetail.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/layouts/MasterDetail/MasterDetail.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/layouts/Reading/Reading.js +7 -0
- package/dist/layouts/Reading/Reading.js.map +1 -0
- package/dist/layouts/Reading/Reading.vue.d.ts +24 -0
- package/dist/layouts/Reading/Reading.vue.d.ts.map +1 -0
- package/dist/layouts/Reading/Reading.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/layouts/Reading/Reading.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/layouts/Settings/Settings.js +7 -0
- package/dist/layouts/Settings/Settings.js.map +1 -0
- package/dist/layouts/Settings/Settings.vue.d.ts +39 -0
- package/dist/layouts/Settings/Settings.vue.d.ts.map +1 -0
- package/dist/layouts/Settings/Settings.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/layouts/Settings/Settings.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/layouts/SplitLayout/SplitLayout.js +7 -0
- package/dist/layouts/SplitLayout/SplitLayout.js.map +1 -0
- package/dist/layouts/SplitLayout/SplitLayout.vue.d.ts +63 -0
- package/dist/layouts/SplitLayout/SplitLayout.vue.d.ts.map +1 -0
- package/dist/layouts/SplitLayout/SplitLayout.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/layouts/SplitLayout/SplitLayout.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/lib/ancestor-disabled.d.ts +35 -0
- package/dist/lib/ancestor-disabled.d.ts.map +1 -0
- package/dist/lib/ancestor-disabled.js +86 -0
- package/dist/lib/ancestor-disabled.js.map +1 -0
- package/dist/lib/cn.d.ts.map +1 -1
- package/dist/lib/cn.js +46 -1
- package/dist/lib/cn.js.map +1 -1
- package/dist/lib/count-labels.d.ts +78 -0
- package/dist/lib/count-labels.d.ts.map +1 -0
- package/dist/lib/count-labels.js +29 -0
- package/dist/lib/count-labels.js.map +1 -0
- package/dist/lib/date-labels.d.ts +278 -0
- package/dist/lib/date-labels.d.ts.map +1 -0
- package/dist/lib/date-labels.js +157 -0
- package/dist/lib/date-labels.js.map +1 -0
- package/dist/lib/field-context.d.ts +178 -0
- package/dist/lib/field-context.d.ts.map +1 -0
- package/dist/lib/field-context.js +106 -0
- package/dist/lib/field-context.js.map +1 -0
- package/dist/lib/label-registry.d.ts +75 -0
- package/dist/lib/label-registry.d.ts.map +1 -0
- package/dist/lib/labels.d.ts +116 -0
- package/dist/lib/labels.d.ts.map +1 -0
- package/dist/lib/labels.js +84 -0
- package/dist/lib/labels.js.map +1 -0
- package/dist/lib/theme.d.ts +68 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +236 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +117 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +142 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +280 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +40 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +69 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +8 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js.map +1 -0
- package/dist/primitives/Accordion/Accordion.js +7 -0
- package/dist/primitives/Accordion/Accordion.js.map +1 -0
- package/dist/primitives/Accordion/Accordion.vue.d.ts +68 -0
- package/dist/primitives/Accordion/Accordion.vue.d.ts.map +1 -0
- package/dist/primitives/Accordion/Accordion.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/primitives/Accordion/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/AlertDialog/AlertDialog.js +7 -0
- package/dist/primitives/AlertDialog/AlertDialog.js.map +1 -0
- package/dist/primitives/AlertDialog/AlertDialog.vue.d.ts +94 -0
- package/dist/primitives/AlertDialog/AlertDialog.vue.d.ts.map +1 -0
- package/dist/primitives/AlertDialog/AlertDialog.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/primitives/AlertDialog/AlertDialog.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Avatar/Avatar.js +2 -2
- package/dist/primitives/Avatar/Avatar.js.map +1 -1
- package/dist/primitives/Avatar/Avatar.vue.d.ts +30 -3
- package/dist/primitives/Avatar/Avatar.vue.d.ts.map +1 -1
- package/dist/primitives/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +95 -14
- package/dist/primitives/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/AvatarGroup/AvatarGroup.js +7 -0
- package/dist/primitives/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/primitives/AvatarGroup/AvatarGroup.vue.d.ts +104 -0
- package/dist/primitives/AvatarGroup/AvatarGroup.vue.d.ts.map +1 -0
- package/dist/primitives/AvatarGroup/AvatarGroup.vue_vue_type_script_setup_true_lang.js +139 -0
- package/dist/primitives/AvatarGroup/AvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Badge/Badge.js.map +1 -1
- package/dist/primitives/Badge/Badge.vue.d.ts +6 -6
- package/dist/primitives/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/primitives/Badge/Badge.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/primitives/Badge/Badge.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Breadcrumb/Breadcrumb.js +7 -0
- package/dist/primitives/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/primitives/Breadcrumb/Breadcrumb.vue.d.ts +25 -0
- package/dist/primitives/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -0
- package/dist/primitives/Breadcrumb/Breadcrumb.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/primitives/Breadcrumb/Breadcrumb.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Button/Button.js +2 -2
- package/dist/primitives/Button/Button.js.map +1 -1
- package/dist/primitives/Button/Button.vue.d.ts +31 -8
- package/dist/primitives/Button/Button.vue.d.ts.map +1 -1
- package/dist/primitives/Button/Button.vue_vue_type_script_setup_true_lang.js +32 -16
- package/dist/primitives/Button/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Checkbox/Checkbox.js.map +1 -1
- package/dist/primitives/Checkbox/Checkbox.vue.d.ts +18 -3
- package/dist/primitives/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/primitives/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +46 -7
- package/dist/primitives/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Chip/Chip.js +7 -0
- package/dist/primitives/Chip/Chip.js.map +1 -0
- package/dist/primitives/Chip/Chip.vue.d.ts +79 -0
- package/dist/primitives/Chip/Chip.vue.d.ts.map +1 -0
- package/dist/primitives/Chip/Chip.vue_vue_type_script_setup_true_lang.js +139 -0
- package/dist/primitives/Chip/Chip.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/ColorPicker/ColorPicker.js +7 -0
- package/dist/primitives/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/primitives/ColorPicker/ColorPicker.vue.d.ts +125 -0
- package/dist/primitives/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
- package/dist/primitives/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +301 -0
- package/dist/primitives/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Combobox/Combobox.js +7 -0
- package/dist/primitives/Combobox/Combobox.js.map +1 -0
- package/dist/primitives/Combobox/Combobox.vue.d.ts +205 -0
- package/dist/primitives/Combobox/Combobox.vue.d.ts.map +1 -0
- package/dist/primitives/Combobox/Combobox.vue_vue_type_script_setup_true_lang.js +345 -0
- package/dist/primitives/Combobox/Combobox.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/ContextMenu/ContextMenu.js +7 -0
- package/dist/primitives/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/primitives/ContextMenu/ContextMenu.vue.d.ts +55 -0
- package/dist/primitives/ContextMenu/ContextMenu.vue.d.ts.map +1 -0
- package/dist/primitives/ContextMenu/ContextMenu.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/primitives/ContextMenu/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/DatePicker/DatePicker.js +7 -0
- package/dist/primitives/DatePicker/DatePicker.js.map +1 -0
- package/dist/primitives/DatePicker/DatePicker.vue.d.ts +102 -0
- package/dist/primitives/DatePicker/DatePicker.vue.d.ts.map +1 -0
- package/dist/primitives/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +292 -0
- package/dist/primitives/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.js +7 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.js.map +1 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.vue.d.ts +173 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.vue.d.ts.map +1 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +412 -0
- package/dist/primitives/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.js +7 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.js.map +1 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.vue.d.ts +113 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.vue.d.ts.map +1 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +358 -0
- package/dist/primitives/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/DateTimeRangePicker/DateTimeRangePicker.js +7 -0
- package/dist/primitives/DateTimeRangePicker/DateTimeRangePicker.js.map +1 -0
- package/dist/primitives/DateTimeRangePicker/DateTimeRangePicker.vue.d.ts +181 -0
- package/dist/primitives/DateTimeRangePicker/DateTimeRangePicker.vue.d.ts.map +1 -0
- package/dist/primitives/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +562 -0
- package/dist/primitives/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Dialog/Dialog.js +2 -2
- package/dist/primitives/Dialog/Dialog.js.map +1 -1
- package/dist/primitives/Dialog/Dialog.vue.d.ts +39 -0
- package/dist/primitives/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/primitives/Dialog/Dialog.vue_vue_type_script_setup_true_lang.js +14 -5
- package/dist/primitives/Dialog/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Drawer/Drawer.js +7 -0
- package/dist/primitives/Drawer/Drawer.js.map +1 -0
- package/dist/primitives/Drawer/Drawer.vue.d.ts +110 -0
- package/dist/primitives/Drawer/Drawer.vue.d.ts.map +1 -0
- package/dist/primitives/Drawer/Drawer.vue_vue_type_script_setup_true_lang.js +223 -0
- package/dist/primitives/Drawer/Drawer.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/primitives/DropdownMenu/DropdownMenu.vue.d.ts.map +1 -1
- package/dist/primitives/DropdownMenu/DropdownMenu.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/primitives/DropdownMenu/DropdownMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Editable/Editable.js +7 -0
- package/dist/primitives/Editable/Editable.js.map +1 -0
- package/dist/primitives/Editable/Editable.vue.d.ts +200 -0
- package/dist/primitives/Editable/Editable.vue.d.ts.map +1 -0
- package/dist/primitives/Editable/Editable.vue_vue_type_script_setup_true_lang.js +275 -0
- package/dist/primitives/Editable/Editable.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Field/Field.js.map +1 -1
- package/dist/primitives/Field/Field.vue.d.ts +32 -17
- package/dist/primitives/Field/Field.vue.d.ts.map +1 -1
- package/dist/primitives/Field/Field.vue_vue_type_script_setup_true_lang.js +51 -18
- package/dist/primitives/Field/Field.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Fieldset/Fieldset.js +7 -0
- package/dist/primitives/Fieldset/Fieldset.js.map +1 -0
- package/dist/primitives/Fieldset/Fieldset.vue.d.ts +91 -0
- package/dist/primitives/Fieldset/Fieldset.vue.d.ts.map +1 -0
- package/dist/primitives/Fieldset/Fieldset.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/primitives/Fieldset/Fieldset.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/FileUpload/FileUpload.js +7 -0
- package/dist/primitives/FileUpload/FileUpload.js.map +1 -0
- package/dist/primitives/FileUpload/FileUpload.vue.d.ts +132 -0
- package/dist/primitives/FileUpload/FileUpload.vue.d.ts.map +1 -0
- package/dist/primitives/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +359 -0
- package/dist/primitives/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/HoverCard/HoverCard.js +7 -0
- package/dist/primitives/HoverCard/HoverCard.js.map +1 -0
- package/dist/primitives/HoverCard/HoverCard.vue.d.ts +68 -0
- package/dist/primitives/HoverCard/HoverCard.vue.d.ts.map +1 -0
- package/dist/primitives/HoverCard/HoverCard.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/primitives/HoverCard/HoverCard.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/IconButton/IconButton.js +7 -0
- package/dist/primitives/IconButton/IconButton.js.map +1 -0
- package/dist/primitives/IconButton/IconButton.vue.d.ts +45 -0
- package/dist/primitives/IconButton/IconButton.vue.d.ts.map +1 -0
- package/dist/primitives/IconButton/IconButton.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/primitives/IconButton/IconButton.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Indicator/Indicator.js +7 -0
- package/dist/primitives/Indicator/Indicator.js.map +1 -0
- package/dist/primitives/Indicator/Indicator.vue.d.ts +144 -0
- package/dist/primitives/Indicator/Indicator.vue.d.ts.map +1 -0
- package/dist/primitives/Indicator/Indicator.vue_vue_type_script_setup_true_lang.js +198 -0
- package/dist/primitives/Indicator/Indicator.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Link/Link.js +7 -0
- package/dist/primitives/Link/Link.js.map +1 -0
- package/dist/primitives/Link/Link.vue.d.ts +46 -0
- package/dist/primitives/Link/Link.vue.d.ts.map +1 -0
- package/dist/primitives/Link/Link.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/primitives/Link/Link.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Menubar/Menubar.js.map +1 -1
- package/dist/primitives/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/primitives/Menubar/Menubar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/primitives/Menubar/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/NumberField/NumberField.js +2 -2
- package/dist/primitives/NumberField/NumberField.js.map +1 -1
- package/dist/primitives/NumberField/NumberField.vue.d.ts +86 -25
- package/dist/primitives/NumberField/NumberField.vue.d.ts.map +1 -1
- package/dist/primitives/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +83 -39
- package/dist/primitives/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/OtpInput/OtpInput.js +7 -0
- package/dist/primitives/OtpInput/OtpInput.js.map +1 -0
- package/dist/primitives/OtpInput/OtpInput.vue.d.ts +110 -0
- package/dist/primitives/OtpInput/OtpInput.vue.d.ts.map +1 -0
- package/dist/primitives/OtpInput/OtpInput.vue_vue_type_script_setup_true_lang.js +130 -0
- package/dist/primitives/OtpInput/OtpInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Pagination/Pagination.js +7 -0
- package/dist/primitives/Pagination/Pagination.js.map +1 -0
- package/dist/primitives/Pagination/Pagination.vue.d.ts +143 -0
- package/dist/primitives/Pagination/Pagination.vue.d.ts.map +1 -0
- package/dist/primitives/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +231 -0
- package/dist/primitives/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Progress/Progress.js +2 -2
- package/dist/primitives/Progress/Progress.js.map +1 -1
- package/dist/primitives/Progress/Progress.vue.d.ts +81 -15
- package/dist/primitives/Progress/Progress.vue.d.ts.map +1 -1
- package/dist/primitives/Progress/Progress.vue_vue_type_script_setup_true_lang.js +88 -22
- package/dist/primitives/Progress/Progress.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/RadialProgress/RadialProgress.js +7 -0
- package/dist/primitives/RadialProgress/RadialProgress.js.map +1 -0
- package/dist/primitives/RadialProgress/RadialProgress.vue.d.ts +96 -0
- package/dist/primitives/RadialProgress/RadialProgress.vue.d.ts.map +1 -0
- package/dist/primitives/RadialProgress/RadialProgress.vue_vue_type_script_setup_true_lang.js +189 -0
- package/dist/primitives/RadialProgress/RadialProgress.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/primitives/RadioGroup/RadioGroup.vue.d.ts +7 -7
- package/dist/primitives/RadioGroup/RadioGroup.vue.d.ts.map +1 -1
- package/dist/primitives/RadioGroup/RadioGroup.vue_vue_type_script_setup_true_lang.js +26 -9
- package/dist/primitives/RadioGroup/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Rating/Rating.js +7 -0
- package/dist/primitives/Rating/Rating.js.map +1 -0
- package/dist/primitives/Rating/Rating.vue.d.ts +113 -0
- package/dist/primitives/Rating/Rating.vue.d.ts.map +1 -0
- package/dist/primitives/Rating/Rating.vue_vue_type_script_setup_true_lang.js +282 -0
- package/dist/primitives/Rating/Rating.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/ScrollArea/ScrollArea.js +7 -0
- package/dist/primitives/ScrollArea/ScrollArea.js.map +1 -0
- package/dist/primitives/ScrollArea/ScrollArea.vue.d.ts +25 -0
- package/dist/primitives/ScrollArea/ScrollArea.vue.d.ts.map +1 -0
- package/dist/primitives/ScrollArea/ScrollArea.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/primitives/ScrollArea/ScrollArea.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/primitives/SegmentedControl/SegmentedControl.vue.d.ts +5 -5
- package/dist/primitives/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/primitives/SegmentedControl/SegmentedControl.vue_vue_type_script_setup_true_lang.js +51 -8
- package/dist/primitives/SegmentedControl/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Select/Select.js.map +1 -1
- package/dist/primitives/Select/Select.vue.d.ts +10 -10
- package/dist/primitives/Select/Select.vue.d.ts.map +1 -1
- package/dist/primitives/Select/Select.vue_vue_type_script_setup_true_lang.js +105 -52
- package/dist/primitives/Select/Select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/primitives/Slider/Slider.js.map +1 -1
- package/dist/primitives/Slider/Slider.vue.d.ts +24 -4
- package/dist/primitives/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/primitives/Slider/Slider.vue_vue_type_script_setup_true_lang.js +79 -9
- package/dist/primitives/Slider/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/SpeedDial/SpeedDial.js +7 -0
- package/dist/primitives/SpeedDial/SpeedDial.js.map +1 -0
- package/dist/primitives/SpeedDial/SpeedDial.vue.d.ts +58 -0
- package/dist/primitives/SpeedDial/SpeedDial.vue.d.ts.map +1 -0
- package/dist/primitives/SpeedDial/SpeedDial.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/primitives/SpeedDial/SpeedDial.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Stepper/Stepper.js +7 -0
- package/dist/primitives/Stepper/Stepper.js.map +1 -0
- package/dist/primitives/Stepper/Stepper.vue.d.ts +119 -0
- package/dist/primitives/Stepper/Stepper.vue.d.ts.map +1 -0
- package/dist/primitives/Stepper/Stepper.vue_vue_type_script_setup_true_lang.js +202 -0
- package/dist/primitives/Stepper/Stepper.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Switch/Switch.js.map +1 -1
- package/dist/primitives/Switch/Switch.vue.d.ts +13 -3
- package/dist/primitives/Switch/Switch.vue.d.ts.map +1 -1
- package/dist/primitives/Switch/Switch.vue_vue_type_script_setup_true_lang.js +34 -5
- package/dist/primitives/Switch/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Tabs/Tabs.js.map +1 -1
- package/dist/primitives/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/primitives/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/primitives/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/TagsInput/TagsInput.js +7 -0
- package/dist/primitives/TagsInput/TagsInput.js.map +1 -0
- package/dist/primitives/TagsInput/TagsInput.vue.d.ts +156 -0
- package/dist/primitives/TagsInput/TagsInput.vue.d.ts.map +1 -0
- package/dist/primitives/TagsInput/TagsInput.vue_vue_type_script_setup_true_lang.js +387 -0
- package/dist/primitives/TagsInput/TagsInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/TextField/TextField.js +2 -2
- package/dist/primitives/TextField/TextField.js.map +1 -1
- package/dist/primitives/TextField/TextField.vue.d.ts +119 -10
- package/dist/primitives/TextField/TextField.vue.d.ts.map +1 -1
- package/dist/primitives/TextField/TextField.vue_vue_type_script_setup_true_lang.js +270 -21
- package/dist/primitives/TextField/TextField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Textarea/Textarea.js +2 -2
- package/dist/primitives/Textarea/Textarea.js.map +1 -1
- package/dist/primitives/Textarea/Textarea.vue.d.ts +114 -14
- package/dist/primitives/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/primitives/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +216 -20
- package/dist/primitives/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/TimePicker/TimePicker.js +7 -0
- package/dist/primitives/TimePicker/TimePicker.js.map +1 -0
- package/dist/primitives/TimePicker/TimePicker.vue.d.ts +111 -0
- package/dist/primitives/TimePicker/TimePicker.vue.d.ts.map +1 -0
- package/dist/primitives/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/primitives/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/primitives/Toast/Toast.js +2 -1
- package/dist/primitives/Toast/Toast.js.map +1 -1
- package/dist/primitives/Toast/Toast.vue.d.ts +29 -3
- package/dist/primitives/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/primitives/Toast/Toast.vue_vue_type_script_setup_true_lang.js +17 -7
- package/dist/primitives/Toast/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Toast/ToastItem.js +2 -2
- package/dist/primitives/Toast/ToastItem.js.map +1 -1
- package/dist/primitives/Toast/ToastItem.vue.d.ts +69 -12
- package/dist/primitives/Toast/ToastItem.vue.d.ts.map +1 -1
- package/dist/primitives/Toast/ToastItem.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/primitives/Toast/ToastItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/primitives/Tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/primitives/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/primitives/WindowControls/WindowControls.js +2 -2
- package/dist/primitives/WindowControls/WindowControls.js.map +1 -1
- package/dist/primitives/WindowControls/WindowControls.vue.d.ts +66 -10
- package/dist/primitives/WindowControls/WindowControls.vue.d.ts.map +1 -1
- package/dist/primitives/WindowControls/WindowControls.vue_vue_type_script_setup_true_lang.js +23 -13
- package/dist/primitives/WindowControls/WindowControls.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/styles/global.css +116 -17
- package/dist/styles/theme.contrast.test.ts +460 -0
- package/dist/styles/theme.css +239 -41
- package/dist/theme.js +171 -0
- package/dist/theme.js.map +1 -0
- package/package.json +14 -4
- package/dist/icons/BrandMark.d.ts +0 -18
- package/dist/icons/BrandMark.d.ts.map +0 -1
- package/dist/icons/BrandMark.js +0 -47
- package/dist/icons/BrandMark.js.map +0 -1
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
import { cn } from "../../lib/cn.js";
|
|
2
|
+
import { optional } from "../../lib/props.js";
|
|
3
|
+
import { useLabels } from "../../lib/labels.js";
|
|
4
|
+
import { getLocalTimeZone as $ad063034c8620db8$export$aa8b41735afcabd2, isSameDay as $ad063034c8620db8$export$ea39ec197993aef0, isToday as $ad063034c8620db8$export$629b0a497aa65267 } from "../../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js";
|
|
5
|
+
import { toCalendarDate as $d07e34cce18680fd$export$93522d1a439f3617, toCalendarDateTime as $d07e34cce18680fd$export$b21e0b124e224484 } from "../../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js";
|
|
6
|
+
import { parseDateTime as $58246871e4652552$export$588937bcd60ade55 } from "../../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js";
|
|
7
|
+
import { CALENDAR_PANEL_LABELS, DATE_SEGMENT_LABELS, RANGE_CELL_LABELS, TIME_SEGMENT_LABELS, emptySegmentValueText, isDateSegmentPart, isTimeSegmentPart } from "../../lib/date-labels.js";
|
|
8
|
+
import { useSplitAttrs } from "../../lib/attrs.js";
|
|
9
|
+
import { useFieldControl } from "../../lib/field-context.js";
|
|
10
|
+
import { useAncestorDisabled } from "../../lib/ancestor-disabled.js";
|
|
11
|
+
import { CalendarRange, ChevronLeft, ChevronRight } from "@lucide/vue";
|
|
12
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
13
|
+
import { DateRangePickerAnchor, DateRangePickerCalendar, DateRangePickerCell, DateRangePickerCellTrigger, DateRangePickerContent, DateRangePickerField, DateRangePickerGrid, DateRangePickerGridBody, DateRangePickerGridHead, DateRangePickerGridRow, DateRangePickerHeadCell, DateRangePickerHeader, DateRangePickerHeading, DateRangePickerInput, DateRangePickerNext, DateRangePickerPrev, DateRangePickerRoot, DateRangePickerTrigger } from "reka-ui";
|
|
14
|
+
//#region src/primitives/DateTimeRangePicker/DateTimeRangePicker.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var _hoisted_1 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
class: "px-1.5 text-muted-foreground"
|
|
19
|
+
};
|
|
20
|
+
var _hoisted_2 = ["aria-label"];
|
|
21
|
+
var _hoisted_3 = {
|
|
22
|
+
role: "status",
|
|
23
|
+
class: "text-xs text-muted-foreground"
|
|
24
|
+
};
|
|
25
|
+
var _hoisted_4 = { class: "flex flex-col gap-3 sm:flex-row sm:gap-5" };
|
|
26
|
+
var _hoisted_5 = {
|
|
27
|
+
key: 0,
|
|
28
|
+
"aria-hidden": "true",
|
|
29
|
+
class: "absolute bottom-1 h-1 w-1 rounded-full bg-primary group-data-[selection-start]:bg-primary-foreground group-data-[selection-end]:bg-primary-foreground"
|
|
30
|
+
};
|
|
31
|
+
var MINUTES_PER_HOUR = 60;
|
|
32
|
+
var MINUTES_PER_DAY = 1440;
|
|
33
|
+
/** A date and a time in the control's locale, at the precision the field is showing. */
|
|
34
|
+
function formatInstant(locale, date, hour12, seconds) {
|
|
35
|
+
return new Intl.DateTimeFormat(locale, {
|
|
36
|
+
dateStyle: "long",
|
|
37
|
+
timeStyle: seconds ? "medium" : "short",
|
|
38
|
+
...optional({ hour12 })
|
|
39
|
+
}).format(date.toDate($ad063034c8620db8$export$aa8b41735afcabd2()));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* English's plural rule, in English's own bag, which is the only place a plural
|
|
43
|
+
* rule belongs. It is not extracted, not shared, and applies to nothing a host
|
|
44
|
+
* supplies: `status` hands over the minutes and receives a finished sentence,
|
|
45
|
+
* so a language with one form or with six selects its own.
|
|
46
|
+
*/
|
|
47
|
+
function englishDuration(minutes) {
|
|
48
|
+
if (minutes === 0) return "no time at all";
|
|
49
|
+
const days = Math.floor(minutes / MINUTES_PER_DAY);
|
|
50
|
+
const hours = Math.floor(minutes % MINUTES_PER_DAY / MINUTES_PER_HOUR);
|
|
51
|
+
const rest = minutes % MINUTES_PER_HOUR;
|
|
52
|
+
return [
|
|
53
|
+
[days, "day"],
|
|
54
|
+
[hours, "hour"],
|
|
55
|
+
[rest, "minute"]
|
|
56
|
+
].filter(([count]) => count > 0).map(([count, name]) => `${String(count)} ${String(name)}${count === 1 ? "" : "s"}`).join(" ");
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Loom's English, co-located with the component so it tree-shakes with it, and
|
|
60
|
+
* exported so a host can build a partial vocabulary against the real thing.
|
|
61
|
+
*/
|
|
62
|
+
var DATE_TIME_RANGE_LABELS = {
|
|
63
|
+
startDate: "Start date and time",
|
|
64
|
+
endDate: "End date and time",
|
|
65
|
+
status: ({ locale, start, end, minutes, hour12, seconds }) => {
|
|
66
|
+
const anchor = start ?? end;
|
|
67
|
+
if (!anchor) return "Nothing chosen. Choose the first day of the range.";
|
|
68
|
+
if (!start || !end || minutes === void 0) return `${formatInstant(locale, anchor, hour12, seconds)} chosen. Choose the last day of the range.`;
|
|
69
|
+
const span = `${formatInstant(locale, start, hour12, seconds)} to ${formatInstant(locale, end, hour12, seconds)}`;
|
|
70
|
+
if (minutes < 0) return `${span}. The end falls before the start.`;
|
|
71
|
+
return `${span}, ${englishDuration(minutes)}.`;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var DateTimeRangePicker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
75
|
+
inheritAttrs: false,
|
|
76
|
+
__name: "DateTimeRangePicker",
|
|
77
|
+
props: {
|
|
78
|
+
modelValue: {},
|
|
79
|
+
min: {},
|
|
80
|
+
max: {},
|
|
81
|
+
granularity: { default: "minute" },
|
|
82
|
+
hourCycle: {},
|
|
83
|
+
locale: { default: "en" },
|
|
84
|
+
months: { default: 2 },
|
|
85
|
+
disabled: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: void 0
|
|
88
|
+
},
|
|
89
|
+
readonly: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: void 0
|
|
92
|
+
},
|
|
93
|
+
invalid: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: void 0
|
|
96
|
+
},
|
|
97
|
+
required: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: void 0
|
|
100
|
+
},
|
|
101
|
+
name: {},
|
|
102
|
+
labels: {}
|
|
103
|
+
},
|
|
104
|
+
emits: ["update:modelValue"],
|
|
105
|
+
setup(__props, { emit: __emit }) {
|
|
106
|
+
const props = __props;
|
|
107
|
+
const emit = __emit;
|
|
108
|
+
const SEGMENT_TYPES = ["start", "end"];
|
|
109
|
+
const dateText = useLabels("dateSegments", DATE_SEGMENT_LABELS, () => props.labels);
|
|
110
|
+
const timeText = useLabels("timeSegments", TIME_SEGMENT_LABELS, () => props.labels);
|
|
111
|
+
const panelText = useLabels("calendarPanel", CALENDAR_PANEL_LABELS, () => props.labels);
|
|
112
|
+
const cellText = useLabels("rangeCell", RANGE_CELL_LABELS, () => props.labels);
|
|
113
|
+
const text = useLabels("dateTimeRange", DATE_TIME_RANGE_LABELS, () => props.labels);
|
|
114
|
+
function segmentLabel(part) {
|
|
115
|
+
if (isDateSegmentPart(part)) return dateText.value[part];
|
|
116
|
+
return isTimeSegmentPart(part) ? timeText.value[part] : void 0;
|
|
117
|
+
}
|
|
118
|
+
function segmentValueText(part, value, monthValue) {
|
|
119
|
+
const empty = isTimeSegmentPart(part) ? timeText.value.empty : dateText.value.empty;
|
|
120
|
+
const emptyResult = emptySegmentValueText(part, value, empty);
|
|
121
|
+
if (emptyResult["aria-valuetext"]) return emptyResult;
|
|
122
|
+
if (part === "month" && monthValue !== void 0) return { "aria-valuetext": dateText.value.filledMonth({
|
|
123
|
+
value: monthValue,
|
|
124
|
+
locale: props.locale
|
|
125
|
+
}) };
|
|
126
|
+
if (part === "dayPeriod") return { "aria-valuetext": timeText.value.filledDayPeriod({ dayPeriod: value }) };
|
|
127
|
+
return {};
|
|
128
|
+
}
|
|
129
|
+
const { attrs, rest: fieldAttrs } = useSplitAttrs();
|
|
130
|
+
function fromIso(value) {
|
|
131
|
+
if (!value) return void 0;
|
|
132
|
+
try {
|
|
133
|
+
return $58246871e4652552$export$588937bcd60ade55(value);
|
|
134
|
+
} catch {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function pad(value) {
|
|
139
|
+
return String(value).padStart(2, "0");
|
|
140
|
+
}
|
|
141
|
+
function toIso(date) {
|
|
142
|
+
const instant = $d07e34cce18680fd$export$b21e0b124e224484(date);
|
|
143
|
+
const stamp = `${$d07e34cce18680fd$export$93522d1a439f3617(instant).toString()}T${pad(instant.hour)}:${pad(instant.minute)}`;
|
|
144
|
+
return props.granularity === "second" ? `${stamp}:${pad(instant.second)}` : stamp;
|
|
145
|
+
}
|
|
146
|
+
function startOfDay(date) {
|
|
147
|
+
return date?.set({
|
|
148
|
+
hour: 0,
|
|
149
|
+
minute: 0,
|
|
150
|
+
second: 0,
|
|
151
|
+
millisecond: 0
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function endOfDay(date) {
|
|
155
|
+
return date?.set({
|
|
156
|
+
hour: 23,
|
|
157
|
+
minute: 59,
|
|
158
|
+
second: 59,
|
|
159
|
+
millisecond: 999
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
const rootValue = computed(() => optional({
|
|
163
|
+
modelValue: props.modelValue ? {
|
|
164
|
+
start: fromIso(props.modelValue.start),
|
|
165
|
+
end: fromIso(props.modelValue.end)
|
|
166
|
+
} : void 0,
|
|
167
|
+
minValue: startOfDay(fromIso(props.min)),
|
|
168
|
+
maxValue: endOfDay(fromIso(props.max)),
|
|
169
|
+
hourCycle: props.hourCycle
|
|
170
|
+
}));
|
|
171
|
+
const outOfRange = computed(() => {
|
|
172
|
+
const lower = fromIso(props.min);
|
|
173
|
+
const upper = fromIso(props.max);
|
|
174
|
+
if (!lower && !upper) return false;
|
|
175
|
+
return SEGMENT_TYPES.some((type) => {
|
|
176
|
+
const value = fromIso(props.modelValue?.[type]);
|
|
177
|
+
if (!value) return false;
|
|
178
|
+
return !!lower && value.compare(lower) < 0 || !!upper && value.compare(upper) > 0;
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
const backwards = computed(() => {
|
|
182
|
+
const start = fromIso(props.modelValue?.start);
|
|
183
|
+
const end = fromIso(props.modelValue?.end);
|
|
184
|
+
return !!start && !!end && end.compare(start) < 0;
|
|
185
|
+
});
|
|
186
|
+
/**
|
|
187
|
+
* The segments are `<div role="spinbutton" tabindex="0">`, and
|
|
188
|
+
* `<fieldset disabled>` reaches only `<input>`, `<button>`, `<select>` and
|
|
189
|
+
* `<textarea>` — so the trigger button inside a disabled group went inert while
|
|
190
|
+
* the segments beside it still typed. Measured on this branch: an empty `mm`
|
|
191
|
+
* segment became `8` on an arrow key. Exactly the defect DatePicker carries,
|
|
192
|
+
* and fixed exactly the way DatePicker fixes it.
|
|
193
|
+
*
|
|
194
|
+
* Read off the DOM rather than taken from the Field context, which publishes no
|
|
195
|
+
* `disabled` on purpose — see `../../lib/ancestor-disabled.ts`.
|
|
196
|
+
*/
|
|
197
|
+
const anchor = useTemplateRef("anchor");
|
|
198
|
+
const groupDisabled = useAncestorDisabled(() => anchor.value?.$el);
|
|
199
|
+
const field = useFieldControl(() => ({
|
|
200
|
+
id: attrs.id,
|
|
201
|
+
describedBy: attrs["aria-describedby"],
|
|
202
|
+
ariaLabelledby: attrs["aria-labelledby"],
|
|
203
|
+
name: props.name,
|
|
204
|
+
disabled: groupDisabled.value ? true : props.disabled,
|
|
205
|
+
readonly: props.readonly,
|
|
206
|
+
invalid: props.invalid,
|
|
207
|
+
required: props.required
|
|
208
|
+
}));
|
|
209
|
+
const groupLabelledBy = computed(() => attrs["aria-label"] || attrs["aria-labelledby"] ? void 0 : field.labelledBy);
|
|
210
|
+
const errored = computed(() => field.invalid || outOfRange.value || backwards.value);
|
|
211
|
+
const open = ref(false);
|
|
212
|
+
/**
|
|
213
|
+
* The time each half last carried.
|
|
214
|
+
*
|
|
215
|
+
* Every calendar cell carries the placeholder's time, and the placeholder
|
|
216
|
+
* follows the *start*. That is the whole round trip in DateTimePicker and it is
|
|
217
|
+
* only half of one here: picking the end's day out of the calendar would give
|
|
218
|
+
* the end the start's time. Worse, Reka's two-click protocol drops the end
|
|
219
|
+
* outright on the click that begins a new range, so by the second click the
|
|
220
|
+
* end's own time is nowhere in the model to be read back.
|
|
221
|
+
*
|
|
222
|
+
* So it is remembered here, and deliberately not as a computed: a computed over
|
|
223
|
+
* `modelValue` is exactly the thing that has already gone. A half is forgotten
|
|
224
|
+
* only when it is cleared while the panel is **closed** — that is a reader
|
|
225
|
+
* emptying the field and meaning it, where a half missing mid-gesture is Reka's
|
|
226
|
+
* protocol and its time still has an owner.
|
|
227
|
+
*/
|
|
228
|
+
const heldTimes = {
|
|
229
|
+
start: void 0,
|
|
230
|
+
end: void 0
|
|
231
|
+
};
|
|
232
|
+
watch(() => [props.modelValue?.start, props.modelValue?.end], ([start, end]) => {
|
|
233
|
+
for (const [type, iso] of [["start", start], ["end", end]]) {
|
|
234
|
+
const value = fromIso(iso);
|
|
235
|
+
heldTimes[type] = value ? {
|
|
236
|
+
hour: value.hour,
|
|
237
|
+
minute: value.minute,
|
|
238
|
+
second: value.second
|
|
239
|
+
} : open.value ? heldTimes[type] : void 0;
|
|
240
|
+
}
|
|
241
|
+
}, { immediate: true });
|
|
242
|
+
function keepTime(type, picked, fromCalendar) {
|
|
243
|
+
if (!fromCalendar) return picked;
|
|
244
|
+
const current = fromIso(props.modelValue?.[type]);
|
|
245
|
+
if (current && $ad063034c8620db8$export$ea39ec197993aef0(current, picked)) return picked;
|
|
246
|
+
const held = heldTimes[type];
|
|
247
|
+
return held ? $d07e34cce18680fd$export$b21e0b124e224484(picked).set(held) : picked;
|
|
248
|
+
}
|
|
249
|
+
function onRangeChange(range) {
|
|
250
|
+
const fromCalendar = open.value;
|
|
251
|
+
if (range.start && range.end) open.value = false;
|
|
252
|
+
emit("update:modelValue", optional({
|
|
253
|
+
start: range.start ? toIso(keepTime("start", range.start, fromCalendar)) : void 0,
|
|
254
|
+
end: range.end ? toIso(keepTime("end", range.end, fromCalendar)) : void 0
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
function isDateToday(date) {
|
|
258
|
+
return $ad063034c8620db8$export$629b0a497aa65267(date, $ad063034c8620db8$export$aa8b41735afcabd2());
|
|
259
|
+
}
|
|
260
|
+
const focusedSegment = ref();
|
|
261
|
+
function segmentKey(type, part) {
|
|
262
|
+
return `${type}:${part}`;
|
|
263
|
+
}
|
|
264
|
+
function segmentTabIndex(type, part, segments) {
|
|
265
|
+
if (field.disabled || part === "literal") return void 0;
|
|
266
|
+
const editable = SEGMENT_TYPES.flatMap((each) => segments[each].filter((segment) => segment.part !== "literal").map((segment) => segmentKey(each, segment.part)));
|
|
267
|
+
const active = focusedSegment.value !== void 0 && editable.includes(focusedSegment.value) ? focusedSegment.value : editable[0];
|
|
268
|
+
return segmentKey(type, part) === active ? 0 : -1;
|
|
269
|
+
}
|
|
270
|
+
const shape = computed(() => `${props.granularity}-${String(props.hourCycle)}`);
|
|
271
|
+
/**
|
|
272
|
+
* The same "13 PM" defect DateTimePicker and TimePicker document, in the same
|
|
273
|
+
* shared Reka segment code: the hour publishes `aria-valuenow` off the internal
|
|
274
|
+
* 24-hour value while declaring its range as 1–12. Rebuilt from what the
|
|
275
|
+
* segment is actually showing, and only under an explicit 12-hour cycle — left
|
|
276
|
+
* to the locale, Reka defers to the formatter and the pair already agrees. It
|
|
277
|
+
* takes one half's segments at a time, because the two hours are two segments
|
|
278
|
+
* showing two different numbers.
|
|
279
|
+
*/
|
|
280
|
+
function hourAnnouncement(segments) {
|
|
281
|
+
if (props.hourCycle !== 12) return void 0;
|
|
282
|
+
const shown = Number(segments.find((segment) => segment.part === "hour")?.value);
|
|
283
|
+
if (!Number.isInteger(shown)) return void 0;
|
|
284
|
+
const period = segments.find((segment) => segment.part === "dayPeriod")?.value;
|
|
285
|
+
return {
|
|
286
|
+
"aria-valuenow": shown,
|
|
287
|
+
"aria-valuetext": period ? `${shown} ${period}` : `${shown}`
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
const headingId = useId();
|
|
291
|
+
const monthFormat = computed(() => new Intl.DateTimeFormat(props.locale, {
|
|
292
|
+
month: "long",
|
|
293
|
+
year: "numeric"
|
|
294
|
+
}));
|
|
295
|
+
function format(formatter, date) {
|
|
296
|
+
return formatter.format(date.toDate($ad063034c8620db8$export$aa8b41735afcabd2()));
|
|
297
|
+
}
|
|
298
|
+
const MS_PER_MINUTE = 6e4;
|
|
299
|
+
/**
|
|
300
|
+
* How long the span is, as a signed count of minutes — a number handed over,
|
|
301
|
+
* never words. The `unit(count, name)` that used to append an `"s"` here was
|
|
302
|
+
* English's plural rule sitting in a control that renders in every language;
|
|
303
|
+
* it is deleted rather than extracted, and English's own copy of it lives in
|
|
304
|
+
* `DATE_TIME_RANGE_LABELS` where nothing else inherits it.
|
|
305
|
+
*
|
|
306
|
+
* DateRangePicker counts **days with both ends included**, because a booking of
|
|
307
|
+
* the 14th to the 20th is seven days. That rule is wrong here, and wrong in the
|
|
308
|
+
* direction that matters most: it reads a meeting from 09:00 to 10:00 as "1
|
|
309
|
+
* day". A span between two instants is the distance between them, so this
|
|
310
|
+
* measures that instead — and signs it, so an end before its start arrives as a
|
|
311
|
+
* negative rather than as a second boolean the label would have to be handed.
|
|
312
|
+
*
|
|
313
|
+
* Measured through UTC rather than the local zone: this value carries no
|
|
314
|
+
* timezone at all, so the honest answer is wall-clock. Converting through the
|
|
315
|
+
* reader's zone would add or drop an hour across a daylight-saving boundary for
|
|
316
|
+
* two instants that never claimed to be in it.
|
|
317
|
+
*/
|
|
318
|
+
function spanMinutes(start, end) {
|
|
319
|
+
const from = $d07e34cce18680fd$export$b21e0b124e224484(start).toDate("UTC").getTime();
|
|
320
|
+
const to = $d07e34cce18680fd$export$b21e0b124e224484(end).toDate("UTC").getTime();
|
|
321
|
+
return Math.round((to - from) / MS_PER_MINUTE);
|
|
322
|
+
}
|
|
323
|
+
function rangeStatus(range) {
|
|
324
|
+
return text.value.status({
|
|
325
|
+
locale: props.locale,
|
|
326
|
+
start: range.start,
|
|
327
|
+
end: range.end,
|
|
328
|
+
minutes: range.start && range.end ? spanMinutes(range.start, range.end) : void 0,
|
|
329
|
+
hour12: props.hourCycle === void 0 ? void 0 : props.hourCycle === 12,
|
|
330
|
+
seconds: props.granularity === "second"
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* A cell's part in the range, or nothing when it has none. DateRangePicker's,
|
|
335
|
+
* unchanged in substance: the first day, the last and the ones between are
|
|
336
|
+
* three states drawn as three shades of one colour, which survives neither a
|
|
337
|
+
* colour deficiency nor forced-colors mode, so the part is named in the cell's
|
|
338
|
+
* accessible name instead.
|
|
339
|
+
*
|
|
340
|
+
* The one-day case is the boundary that matters more here than there. A span
|
|
341
|
+
* from 09:00 to 17:00 on one day is an ordinary meeting rather than a
|
|
342
|
+
* degenerate range, and its single cell is genuinely both ends — announced once
|
|
343
|
+
* as that, not twice as two different things.
|
|
344
|
+
*/
|
|
345
|
+
function rangePart(day, range) {
|
|
346
|
+
const isStart = range.start !== void 0 && $ad063034c8620db8$export$ea39ec197993aef0(day, range.start);
|
|
347
|
+
const isEnd = range.end !== void 0 && $ad063034c8620db8$export$ea39ec197993aef0(day, range.end);
|
|
348
|
+
if (isStart && isEnd) return "both";
|
|
349
|
+
if (isStart) return "start";
|
|
350
|
+
if (isEnd) return "end";
|
|
351
|
+
if (range.start && range.end && day.compare(range.start) > 0 && day.compare(range.end) < 0) return "within";
|
|
352
|
+
}
|
|
353
|
+
function dayLabel(day, range) {
|
|
354
|
+
return cellText.value.cell({
|
|
355
|
+
locale: props.locale,
|
|
356
|
+
date: day,
|
|
357
|
+
part: rangePart(day, range)
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
const panel = ref(null);
|
|
361
|
+
function onOpenAutoFocus(event) {
|
|
362
|
+
const day = panel.value?.querySelector("[data-reka-calendar-cell-trigger][tabindex=\"0\"]");
|
|
363
|
+
if (!day) return;
|
|
364
|
+
event.preventDefault();
|
|
365
|
+
day.focus();
|
|
366
|
+
}
|
|
367
|
+
return (_ctx, _cache) => {
|
|
368
|
+
return openBlock(), createBlock(unref(DateRangePickerRoot), mergeProps({
|
|
369
|
+
open: open.value,
|
|
370
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event)
|
|
371
|
+
}, rootValue.value, {
|
|
372
|
+
locale: __props.locale,
|
|
373
|
+
disabled: unref(field).disabled,
|
|
374
|
+
readonly: unref(field).readonly,
|
|
375
|
+
"number-of-months": __props.months,
|
|
376
|
+
granularity: __props.granularity,
|
|
377
|
+
"prevent-deselect": "",
|
|
378
|
+
"onUpdate:modelValue": onRangeChange
|
|
379
|
+
}), {
|
|
380
|
+
default: withCtx(({ modelValue: range }) => [createVNode(unref(DateRangePickerAnchor), {
|
|
381
|
+
ref_key: "anchor",
|
|
382
|
+
ref: anchor,
|
|
383
|
+
"data-invalid": unref(field).invalid || void 0,
|
|
384
|
+
"data-out-of-range": outOfRange.value || void 0,
|
|
385
|
+
"data-backwards": backwards.value || void 0,
|
|
386
|
+
"data-readonly": unref(field).readonly || void 0,
|
|
387
|
+
class: normalizeClass(unref(cn)("block w-full", unref(attrs).class))
|
|
388
|
+
}, {
|
|
389
|
+
default: withCtx(() => [(openBlock(), createBlock(unref(DateRangePickerField), mergeProps({ key: shape.value }, {
|
|
390
|
+
...unref(fieldAttrs),
|
|
391
|
+
...unref(field).attrs
|
|
392
|
+
}, {
|
|
393
|
+
"aria-labelledby": groupLabelledBy.value,
|
|
394
|
+
"aria-invalid": errored.value || void 0,
|
|
395
|
+
class: unref(cn)("flex h-9 w-full items-center rounded-md border border-input bg-background px-3 text-sm text-foreground", "transition-[color,background-color,border-color,box-shadow] duration-fast ease-out", "focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-ring", !errored.value && "focus-within:shadow-halo", unref(field).readonly && "bg-subtle", unref(field).disabled && "cursor-not-allowed border-border bg-muted text-muted-foreground", errored.value && "border-destructive focus-within:outline-destructive")
|
|
396
|
+
}), {
|
|
397
|
+
default: withCtx(({ segments }) => [(openBlock(), createElementBlock(Fragment, null, renderList(SEGMENT_TYPES, (type, typeIndex) => {
|
|
398
|
+
return openBlock(), createElementBlock(Fragment, { key: type }, [typeIndex > 0 ? (openBlock(), createElementBlock("span", _hoisted_1, "–")) : createCommentVNode("", true), createElementVNode("div", {
|
|
399
|
+
role: "group",
|
|
400
|
+
"aria-label": type === "start" ? unref(text).startDate : unref(text).endDate,
|
|
401
|
+
class: "flex items-center"
|
|
402
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(segments[type], (item, index) => {
|
|
403
|
+
return openBlock(), createBlock(unref(DateRangePickerInput), mergeProps({
|
|
404
|
+
key: index,
|
|
405
|
+
part: item.part,
|
|
406
|
+
type,
|
|
407
|
+
tabindex: segmentTabIndex(type, item.part, segments),
|
|
408
|
+
"aria-label": segmentLabel(item.part)
|
|
409
|
+
}, { ref_for: true }, {
|
|
410
|
+
...segmentValueText(item.part, item.value, (type === "start" ? range.start : range.end)?.month),
|
|
411
|
+
...item.part === "hour" ? hourAnnouncement(segments[type]) : void 0
|
|
412
|
+
}, {
|
|
413
|
+
class: unref(cn)("tabular rounded-sm px-0.5 outline-none", "transition-colors duration-instant ease-out", "focus:bg-primary-muted focus:text-primary", "data-[placeholder]:text-muted-foreground", item.part === "literal" && "text-muted-foreground"),
|
|
414
|
+
onFocusin: ($event) => focusedSegment.value = segmentKey(type, item.part)
|
|
415
|
+
}), {
|
|
416
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.value), 1)]),
|
|
417
|
+
_: 2
|
|
418
|
+
}, 1040, [
|
|
419
|
+
"part",
|
|
420
|
+
"type",
|
|
421
|
+
"tabindex",
|
|
422
|
+
"aria-label",
|
|
423
|
+
"class",
|
|
424
|
+
"onFocusin"
|
|
425
|
+
]);
|
|
426
|
+
}), 128))], 8, _hoisted_2)], 64);
|
|
427
|
+
}), 64)), !unref(field).readonly ? (openBlock(), createBlock(unref(DateRangePickerTrigger), {
|
|
428
|
+
key: 0,
|
|
429
|
+
"aria-label": unref(panelText).openCalendar,
|
|
430
|
+
class: "ml-auto inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-sm text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-not-allowed"
|
|
431
|
+
}, {
|
|
432
|
+
default: withCtx(() => [createVNode(unref(CalendarRange), { class: "h-4 w-4" })]),
|
|
433
|
+
_: 1
|
|
434
|
+
}, 8, ["aria-label"])) : createCommentVNode("", true)]),
|
|
435
|
+
_: 2
|
|
436
|
+
}, 1040, [
|
|
437
|
+
"aria-labelledby",
|
|
438
|
+
"aria-invalid",
|
|
439
|
+
"class"
|
|
440
|
+
]))]),
|
|
441
|
+
_: 2
|
|
442
|
+
}, 1032, [
|
|
443
|
+
"data-invalid",
|
|
444
|
+
"data-out-of-range",
|
|
445
|
+
"data-backwards",
|
|
446
|
+
"data-readonly",
|
|
447
|
+
"class"
|
|
448
|
+
]), createVNode(unref(DateRangePickerContent), {
|
|
449
|
+
align: "start",
|
|
450
|
+
"side-offset": 6,
|
|
451
|
+
class: normalizeClass(unref(cn)("z-50 rounded-md border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none", "data-[state=open]:animate-fade-rise")),
|
|
452
|
+
onOpenAutoFocus
|
|
453
|
+
}, {
|
|
454
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
455
|
+
ref_key: "panel",
|
|
456
|
+
ref: panel,
|
|
457
|
+
class: "flex flex-col gap-3"
|
|
458
|
+
}, [createVNode(unref(DateRangePickerCalendar), { "calendar-label": unref(panelText).calendar }, {
|
|
459
|
+
default: withCtx(({ grid, weekDays }) => [
|
|
460
|
+
createVNode(unref(DateRangePickerHeader), { class: "flex items-center justify-between gap-2" }, {
|
|
461
|
+
default: withCtx(() => [
|
|
462
|
+
createVNode(unref(DateRangePickerPrev), {
|
|
463
|
+
"aria-label": unref(panelText).previousMonth,
|
|
464
|
+
class: "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-sm text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
465
|
+
}, {
|
|
466
|
+
default: withCtx(() => [createVNode(unref(ChevronLeft), { class: "h-4 w-4" })]),
|
|
467
|
+
_: 1
|
|
468
|
+
}, 8, ["aria-label"]),
|
|
469
|
+
createVNode(unref(DateRangePickerHeading), {
|
|
470
|
+
id: unref(headingId),
|
|
471
|
+
"aria-live": "polite",
|
|
472
|
+
class: "text-sm font-medium text-foreground"
|
|
473
|
+
}, null, 8, ["id"]),
|
|
474
|
+
createVNode(unref(DateRangePickerNext), {
|
|
475
|
+
"aria-label": unref(panelText).nextMonth,
|
|
476
|
+
class: "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-sm text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
477
|
+
}, {
|
|
478
|
+
default: withCtx(() => [createVNode(unref(ChevronRight), { class: "h-4 w-4" })]),
|
|
479
|
+
_: 1
|
|
480
|
+
}, 8, ["aria-label"])
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
}),
|
|
484
|
+
createElementVNode("p", _hoisted_3, toDisplayString(rangeStatus(range)), 1),
|
|
485
|
+
createElementVNode("div", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
|
|
486
|
+
return openBlock(), createBlock(unref(DateRangePickerGrid), {
|
|
487
|
+
key: month.value.toString(),
|
|
488
|
+
role: "grid",
|
|
489
|
+
"aria-label": format(monthFormat.value, month.value),
|
|
490
|
+
class: "border-collapse select-none"
|
|
491
|
+
}, {
|
|
492
|
+
default: withCtx(() => [createVNode(unref(DateRangePickerGridHead), null, {
|
|
493
|
+
default: withCtx(() => [createVNode(unref(DateRangePickerGridRow), null, {
|
|
494
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day, index) => {
|
|
495
|
+
return openBlock(), createBlock(unref(DateRangePickerHeadCell), {
|
|
496
|
+
key: index,
|
|
497
|
+
class: "w-9 text-xs font-normal text-muted-foreground"
|
|
498
|
+
}, {
|
|
499
|
+
default: withCtx(() => [createTextVNode(toDisplayString(day), 1)]),
|
|
500
|
+
_: 2
|
|
501
|
+
}, 1024);
|
|
502
|
+
}), 128))]),
|
|
503
|
+
_: 2
|
|
504
|
+
}, 1024)]),
|
|
505
|
+
_: 2
|
|
506
|
+
}, 1024), createVNode(unref(DateRangePickerGridBody), null, {
|
|
507
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (week, weekIndex) => {
|
|
508
|
+
return openBlock(), createBlock(unref(DateRangePickerGridRow), { key: weekIndex }, {
|
|
509
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(week, (day) => {
|
|
510
|
+
return openBlock(), createBlock(unref(DateRangePickerCell), {
|
|
511
|
+
key: day.toString(),
|
|
512
|
+
date: day,
|
|
513
|
+
class: "p-0 text-center"
|
|
514
|
+
}, {
|
|
515
|
+
default: withCtx(() => [createVNode(unref(DateRangePickerCellTrigger), {
|
|
516
|
+
day,
|
|
517
|
+
month: month.value,
|
|
518
|
+
"aria-label": dayLabel(day, range),
|
|
519
|
+
"aria-current": isDateToday(day) ? "date" : void 0,
|
|
520
|
+
class: normalizeClass(unref(cn)("group relative inline-flex h-9 w-9 items-center justify-center rounded-sm text-sm text-foreground", "transition-colors duration-fast ease-out hover:bg-subtle", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:shadow-halo", "data-[outside-view]:text-muted-foreground", "data-[disabled]:pointer-events-none data-[disabled]:line-through", "[&[data-disabled]:not([data-selected])]:text-muted-foreground", "data-[selection-start]:bg-primary data-[selection-start]:text-primary-foreground", "data-[selection-end]:bg-primary data-[selection-end]:text-primary-foreground", "[&[data-selected]:not([data-selection-start]):not([data-selection-end])]:bg-primary-muted", "[&[data-selected]:not([data-selection-start]):not([data-selection-end])]:text-primary", "[&[data-highlighted]:not([data-selected])]:bg-subtle", "[&[data-selected]:not([data-selection-start]):not([data-selection-end])]:rounded-none", "[&[data-highlighted]:not([data-highlighted-start]):not([data-highlighted-end])]:rounded-none"))
|
|
521
|
+
}, {
|
|
522
|
+
default: withCtx(({ dayValue, today }) => [createTextVNode(toDisplayString(dayValue) + " ", 1), today ? (openBlock(), createElementBlock("span", _hoisted_5)) : createCommentVNode("", true)]),
|
|
523
|
+
_: 1
|
|
524
|
+
}, 8, [
|
|
525
|
+
"day",
|
|
526
|
+
"month",
|
|
527
|
+
"aria-label",
|
|
528
|
+
"aria-current",
|
|
529
|
+
"class"
|
|
530
|
+
])]),
|
|
531
|
+
_: 2
|
|
532
|
+
}, 1032, ["date"]);
|
|
533
|
+
}), 128))]),
|
|
534
|
+
_: 2
|
|
535
|
+
}, 1024);
|
|
536
|
+
}), 128))]),
|
|
537
|
+
_: 2
|
|
538
|
+
}, 1024)]),
|
|
539
|
+
_: 2
|
|
540
|
+
}, 1032, ["aria-label"]);
|
|
541
|
+
}), 128))])
|
|
542
|
+
]),
|
|
543
|
+
_: 2
|
|
544
|
+
}, 1032, ["calendar-label"])], 512)]),
|
|
545
|
+
_: 2
|
|
546
|
+
}, 1032, ["class"])]),
|
|
547
|
+
_: 1
|
|
548
|
+
}, 16, [
|
|
549
|
+
"open",
|
|
550
|
+
"locale",
|
|
551
|
+
"disabled",
|
|
552
|
+
"readonly",
|
|
553
|
+
"number-of-months",
|
|
554
|
+
"granularity"
|
|
555
|
+
]);
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
//#endregion
|
|
560
|
+
export { DATE_TIME_RANGE_LABELS, DateTimeRangePicker_vue_vue_type_script_setup_true_lang_default as default };
|
|
561
|
+
|
|
562
|
+
//# sourceMappingURL=DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js.map
|