@bridge-ui/vue 0.24.0 → 0.25.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/ai/AGENTS.md +1 -1
- package/ai/README.md +3 -4
- package/ai/guidelines/core.md +1 -1
- package/ai/llms.txt +1 -1
- package/ai/skills/bridge-ui-setup/SKILL.md +1 -1
- package/bin/__tests__/ai.test.ts +3 -1
- package/bin/ai.mjs +2 -2
- package/dist/Actions/BridgeUIHosts.vue.d.ts +5 -3
- package/dist/Actions/Dialog/BridgeDialogAction.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Actions/Dialog/BridgeDialogHost.vue.d.ts +5 -3
- package/dist/Actions/Dialog/BridgeDialogItem.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Actions/Drawer/BridgeDrawerHost.vue.d.ts +5 -3
- package/dist/Actions/Drawer/BridgeDrawerHost.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Actions/Modal/BridgeModalHost.vue.d.ts +5 -3
- package/dist/Actions/Modal/BridgeModalHost.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue.d.ts +6 -4
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Actions/index.js +10 -10
- package/dist/Components/Accordion/index.js +4 -4
- package/dist/Components/AccordionItem/AccordionItem.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/AccordionItem/index.js +3 -3
- package/dist/Components/ActionFooter/index.js +3 -3
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +17 -13
- package/dist/Components/Alert/composables/useAlert.js +9 -9
- package/dist/Components/Alert/index.js +3 -3
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +98 -97
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +205 -199
- package/dist/Components/Autocomplete/index.js +4 -4
- package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/Badge/Badge.vue.d.ts +5 -3
- package/dist/Components/Badge/index.js +3 -3
- package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/BaseField/BaseFieldCorner.vue.d.ts +5 -3
- package/dist/Components/BaseField/BaseFieldCorner.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/BaseField/BaseFieldLabel.vue.d.ts +5 -3
- package/dist/Components/BaseField/BaseFieldLabel.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/Breadcrumb/Breadcrumb.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/Components/Breadcrumb/composables/useBreadcrumb.js +9 -9
- package/dist/Components/Breadcrumb/index.js +4 -4
- package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.js +19 -19
- package/dist/Components/BreadcrumbItem/index.js +3 -3
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/Components/Button/composables/useButton.js +14 -14
- package/dist/Components/Button/index.js +3 -3
- package/dist/Components/ButtonGroup/composables/useButtonGroup.js +10 -10
- package/dist/Components/ButtonGroup/index.js +4 -4
- package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +26 -22
- package/dist/Components/Calendar/index.js +3 -3
- package/dist/Components/CalendarDate/CalendarDate.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/CalendarDate/index.js +3 -3
- package/dist/Components/CalendarMonth/CalendarMonth.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/CalendarMonth/index.js +3 -3
- package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +104 -100
- package/dist/Components/CalendarRange/index.js +3 -3
- package/dist/Components/CalendarYear/CalendarYear.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/CalendarYear/index.js +3 -3
- package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/Card/index.js +3 -3
- package/dist/Components/Carousel/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/Carousel/composables/useCarousel.js +27 -27
- package/dist/Components/Carousel/index.js +4 -4
- package/dist/Components/CarouselSlide/composables/useCarouselSlide.js +6 -6
- package/dist/Components/CarouselSlide/index.js +3 -3
- package/dist/Components/ChartAxis/index.js +3 -3
- package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartBar/index.js +3 -3
- package/dist/Components/ChartBarSeries/index.js +3 -3
- package/dist/Components/ChartFunnel/ChartFunnel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartFunnel/index.js +3 -3
- package/dist/Components/ChartLegend/index.js +3 -3
- package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartLine/index.js +3 -3
- package/dist/Components/ChartLineSeries/index.js +3 -3
- package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/ChartPie/index.js +3 -3
- package/dist/Components/ChartScatter/ChartScatter.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartScatter/composables/useChartScatter.js +11 -11
- package/dist/Components/ChartScatter/index.js +3 -3
- package/dist/Components/ChartScatterSeries/index.js +3 -3
- package/dist/Components/ChartTooltip/index.js +3 -3
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/Checkbox/composables/useCheckbox.js +61 -57
- package/dist/Components/Checkbox/index.js +3 -3
- package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Chip/index.js +3 -3
- package/dist/Components/ColorField/ColorField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/ColorField/composables/useColorField.d.ts +96 -95
- package/dist/Components/ColorField/composables/useColorField.js +102 -98
- package/dist/Components/ColorField/index.js +3 -3
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/ColorPicker/composables/useColorPicker.js +12 -12
- package/dist/Components/ColorPicker/index.js +3 -3
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +73 -73
- package/dist/Components/DataTable/DataTableCellContent.vue.d.ts +7 -5
- package/dist/Components/DataTable/DataTableColumnsMenu.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DataTable/DataTablePagination.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/DataTable/DataTableToolbarButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DateField/DateField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateField/composables/useDateField.d.ts +96 -95
- package/dist/Components/DateField/composables/useDateField.js +97 -90
- package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/DatePicker/composables/useDatePicker.js +9 -9
- package/dist/Components/DateRangeField/DateRangeField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +96 -95
- package/dist/Components/DateRangeField/composables/useDateRangeField.js +91 -84
- package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.js +9 -9
- package/dist/Components/DateTimeField/DateTimeField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +96 -95
- package/dist/Components/DateTimeField/composables/useDateTimeField.js +92 -85
- package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.js +7 -7
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +96 -95
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.js +88 -81
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.js +7 -7
- package/dist/Components/Drawer/Drawer.vue.d.ts +3 -3
- package/dist/Components/EmptyState/EmptyState.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FieldOverlay/FieldOverlay.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/FieldOverlay/composables/useFieldOverlay.js +4 -4
- package/dist/Components/FieldOverlay/index.js +3 -3
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +61 -61
- package/dist/Components/FileUpload/composables/useFileUpload.js +14 -14
- package/dist/Components/FileUploadItem/FileUploadItem.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/FormControl/FormControlLabel.vue.d.ts +6 -3
- package/dist/Components/FormControl/FormControlLabel.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/FormControl/composables/useFormControl.js +61 -61
- package/dist/Components/FormField/FilledFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/FormField.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/Components/FormField/FormFieldCorner.vue.d.ts +5 -3
- package/dist/Components/FormField/FormFieldCorner.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/FormField/FormFieldLabel.vue.d.ts +5 -3
- package/dist/Components/FormField/FormFieldLabel.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/FormField/NotchedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/FormField/OutlinedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/StackedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/composables/useFormField.d.ts +116 -96
- package/dist/Components/FormField/composables/useFormField.js +187 -171
- package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Label/Label.vue.d.ts +5 -3
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/List/List.vue.d.ts +6 -4
- package/dist/Components/List/composables/useList.js +6 -6
- package/dist/Components/List/index.js +4 -4
- package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/ListItem/composables/useListItem.js +15 -15
- package/dist/Components/ListSection/ListSection.vue.d.ts +1 -1
- package/dist/Components/ListSection/ListSection.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/ListSection/composables/useListSection.js +9 -9
- package/dist/Components/Listbox/Listbox.vue.d.ts +1 -1
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +49 -49
- package/dist/Components/Listbox/composables/useListbox.js +11 -11
- package/dist/Components/Listbox/index.js +5 -5
- package/dist/Components/Menu/Menu.vue.d.ts +4 -4
- package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/Menu/composables/useMenu.js +10 -10
- package/dist/Components/Modal/Modal.vue.d.ts +2 -2
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/Components/NumberField/composables/useNumberField.d.ts +96 -95
- package/dist/Components/NumberField/composables/useNumberField.js +6 -6
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/OtpField/composables/useOtpField.js +17 -17
- package/dist/Components/PasswordField/PasswordField.vue.d.ts +1 -1
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +96 -95
- package/dist/Components/PasswordField/composables/usePasswordField.js +6 -6
- package/dist/Components/Popover/Popover.vue.d.ts +4 -4
- package/dist/Components/Popover/Popover.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Popover/composables/usePopover.js +12 -12
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/Radio/composables/useRadio.js +66 -62
- package/dist/Components/Rating/Rating.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Rating/composables/useRating.js +18 -18
- package/dist/Components/Resizable/composables/useResizable.js +6 -6
- package/dist/Components/Resizable/index.js +4 -4
- package/dist/Components/ResizableHandle/composables/useResizableHandle.js +10 -10
- package/dist/Components/ResizablePanel/composables/useResizablePanel.js +8 -8
- package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +95 -94
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +107 -96
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/Select/composables/useSelect.d.ts +98 -97
- package/dist/Components/Select/composables/useSelect.js +221 -215
- package/dist/Components/Sidebar/Sidebar.vue.d.ts +3 -3
- package/dist/Components/Sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Sidebar/SidebarList.vue.d.ts +5 -3
- package/dist/Components/Sidebar/SidebarListItem.vue_vue_type_script_setup_true_lang.js +33 -29
- package/dist/Components/Sidebar/composables/useSidebarInset.js +5 -5
- package/dist/Components/Sidebar/composables/useSidebarListItem.js +9 -9
- package/dist/Components/Sidebar/composables/useSidebarProvider.js +6 -6
- package/dist/Components/Sidebar/composables/useSidebarShell.js +14 -14
- package/dist/Components/Sidebar/composables/useSidebarTrigger.js +4 -4
- package/dist/Components/Sidebar/index.js +10 -10
- package/dist/Components/Slider/Slider.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Slider/composables/useSlider.js +24 -24
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +3 -3
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +79 -79
- package/dist/Components/Snackbar/composables/useSnackbar.js +15 -15
- package/dist/Components/Step/Step.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/Step/composables/useStep.js +13 -13
- package/dist/Components/Stepper/composables/useStepper.js +7 -7
- package/dist/Components/Stepper/index.js +4 -4
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/Switch/composables/useSwitch.js +61 -57
- package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Tab/composables/useTab.js +20 -20
- package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/TabList/composables/useTabList.js +11 -11
- package/dist/Components/TabPanel/composables/useTabPanel.js +11 -11
- package/dist/Components/Table/composables/useTable.js +10 -10
- package/dist/Components/Table/composables/useTableCell.js +7 -7
- package/dist/Components/Table/composables/useTablePart.js +11 -11
- package/dist/Components/Table/composables/useTableRow.js +9 -9
- package/dist/Components/Table/index.js +13 -13
- package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +25 -25
- package/dist/Components/Tabs/composables/useTabs.js +6 -6
- package/dist/Components/Tabs/index.js +4 -4
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/TextField/composables/useTextField.d.ts +96 -95
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/Textarea/composables/useTextarea.d.ts +96 -95
- package/dist/Components/Textarea/composables/useTextarea.js +6 -6
- package/dist/Components/TimeField/TimeField.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/TimeField/composables/useTimeField.d.ts +96 -95
- package/dist/Components/TimeField/composables/useTimeField.js +93 -86
- package/dist/Components/TimePanel/TimePanel.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/TimePicker/composables/useTimePicker.js +9 -9
- package/dist/Components/TimeRangeField/TimeRangeField.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +96 -95
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.js +89 -82
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +10 -10
- package/dist/Components/ToggleGroup/composables/useToggleGroup.js +6 -6
- package/dist/Components/ToggleGroup/index.js +4 -4
- package/dist/Components/ToggleItem/ToggleItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/ToggleItem/composables/useToggleItem.js +11 -11
- package/dist/Components/Tooltip/Tooltip.vue.d.ts +4 -4
- package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Provider/BridgeUIProvider.vue.d.ts +5 -3
- package/dist/Provider/BridgeUIProvider.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Provider/createBridgeUI.js +4 -4
- package/dist/Provider/index.js +4 -4
- package/dist/Utils/Charts/ChartFrame.vue.d.ts +11 -9
- package/dist/Utils/index.d.ts +5 -0
- package/dist/Utils/index.js +26 -21
- package/dist/index.js +193 -193
- package/docs/components/Autocomplete.md +4 -0
- package/docs/components/ColorField.md +4 -0
- package/docs/components/DateField.md +4 -0
- package/docs/components/DateRangeField.md +4 -0
- package/docs/components/DateTimeField.md +4 -0
- package/docs/components/DateTimeRangeField.md +4 -0
- package/docs/components/Drawer.md +8 -5
- package/docs/components/Modal.md +8 -5
- package/docs/components/RichTextEditor.md +4 -0
- package/docs/components/Select.md +4 -0
- package/docs/components/TimeField.md +4 -0
- package/docs/components/TimeRangeField.md +4 -0
- package/package.json +36 -36
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "../
|
|
3
|
-
import
|
|
4
|
-
import r from "../
|
|
5
|
-
import i from "../
|
|
6
|
-
import a from "
|
|
1
|
+
import { useCalendar as e } from "./composables/useCalendar.js";
|
|
2
|
+
import t from "../CalendarDate/CalendarDate.js";
|
|
3
|
+
import n from "../CalendarMonth/CalendarMonth.js";
|
|
4
|
+
import r from "../CalendarYear/CalendarYear.js";
|
|
5
|
+
import i from "../Icon/Icon.js";
|
|
6
|
+
import { useOptionalModel as a } from "../../Utils/useOptionalModel.js";
|
|
7
7
|
import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeModels as m, mergeProps as h, normalizeProps as g, openBlock as _, ref as v, renderSlot as y, toDisplayString as b, toValue as x, unref as S, useModel as C, withCtx as w } from "vue";
|
|
8
8
|
import { isString as T } from "es-toolkit/compat";
|
|
9
|
-
import { cn as
|
|
9
|
+
import { cn as E } from "@bridge-ui/core/Utils";
|
|
10
10
|
// src/Components/Calendar/Calendar.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var
|
|
11
|
+
var ee = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex items-center"
|
|
14
14
|
}, O = /*@__PURE__*/ f({
|
|
@@ -21,7 +21,11 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
21
21
|
defaultValue: {},
|
|
22
22
|
defaultView: {},
|
|
23
23
|
disabled: { type: Boolean },
|
|
24
|
-
disableDates: {
|
|
24
|
+
disableDates: { type: [
|
|
25
|
+
Date,
|
|
26
|
+
Array,
|
|
27
|
+
Function
|
|
28
|
+
] },
|
|
25
29
|
disableMonths: {},
|
|
26
30
|
disableYears: {},
|
|
27
31
|
error: { type: Boolean },
|
|
@@ -54,7 +58,7 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
54
58
|
"viewDateChange"
|
|
55
59
|
], ["update:modelValue"]),
|
|
56
60
|
setup(f, { emit: m }) {
|
|
57
|
-
let O = m, k = C(f, "modelValue"), A = f, j = v(A.defaultValue ?? null), M =
|
|
61
|
+
let O = m, k = C(f, "modelValue"), A = f, j = v(A.defaultValue ?? null), M = a(k, j), { view: N, merged: P, shared: F, showNav: I, rootBind: L, viewDate: R, viewYear: z, bodyBind: B, viewMonth: V, yearLabel: H, monthLabel: te, headerBind: U, navIconBind: W, setViewDate: G, granularity: K, handleChange: q, yearPageSize: J, yearPageStart: Y, nextButtonBind: X, todayButtonBind: Z, yearSelectorBind: Q, handleYearSelect: ne, showYearSelector: re, monthSelectorBind: ie, handleMonthSelect: ae, showMonthSelector: oe, previousButtonBind: se } = e(A, {
|
|
58
62
|
rounded: "md",
|
|
59
63
|
startOfWeek: 0,
|
|
60
64
|
color: "primary",
|
|
@@ -62,29 +66,29 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
62
66
|
}, M, O);
|
|
63
67
|
function $(e) {
|
|
64
68
|
let t = x(W)?.class;
|
|
65
|
-
return
|
|
69
|
+
return E({
|
|
66
70
|
"size-3 transition-all duration-200 ease-in-out": !0,
|
|
67
71
|
[T(t) ? t : ""]: !0,
|
|
68
72
|
"rotate-180": e
|
|
69
73
|
});
|
|
70
74
|
}
|
|
71
|
-
return (e,
|
|
75
|
+
return (e, a) => (_(), c("div", g(p(S(L))), [l("div", g(p(S(U))), [l("div", ee, [S(re) ? (_(), c("button", g(h({ key: 0 }, S(Q))), [l("span", null, b(S(H)), 1), d(S(i), h({
|
|
72
76
|
size: "2xs",
|
|
73
77
|
icon: "chevronDown"
|
|
74
|
-
}, S(W), { class: $(S(N) === "year") }), null, 16, ["class"])], 16)) : s("", !0), S(oe) ? (_(), c("button", g(h({ key: 1 }, S(ie))), [l("span", null, b(S(
|
|
78
|
+
}, S(W), { class: $(S(N) === "year") }), null, 16, ["class"])], 16)) : s("", !0), S(oe) ? (_(), c("button", g(h({ key: 1 }, S(ie))), [l("span", null, b(S(te)), 1), d(S(i), h({
|
|
75
79
|
size: "2xs",
|
|
76
80
|
icon: "chevronDown"
|
|
77
81
|
}, S(W), { class: $(S(N) === "month") }), null, 16, ["class"])], 16)) : s("", !0)]), S(I) ? (_(), c("div", D, [
|
|
78
|
-
l("button", g(p(S(se))), [d(S(
|
|
82
|
+
l("button", g(p(S(se))), [d(S(i), h({
|
|
79
83
|
size: "sm",
|
|
80
84
|
icon: "chevronLeft"
|
|
81
85
|
}, S(W)), null, 16)], 16),
|
|
82
|
-
l("button", g(p(S(Z))), [...
|
|
83
|
-
l("button", g(p(S(X))), [d(S(
|
|
86
|
+
l("button", g(p(S(Z))), [...a[3] ||= [l("span", { class: "size-2 rounded-full bg-dark-600 dark:bg-dark-300" }, null, -1)]], 16),
|
|
87
|
+
l("button", g(p(S(X))), [d(S(i), h({
|
|
84
88
|
size: "sm",
|
|
85
89
|
icon: "chevronRight"
|
|
86
90
|
}, S(W)), null, 16)], 16)
|
|
87
|
-
])) : s("", !0)], 16), l("div", g(p(S(B))), [S(N) === "date" ? (_(), o(
|
|
91
|
+
])) : s("", !0)], 16), l("div", g(p(S(B))), [S(N) === "date" ? (_(), o(t, h({ key: 0 }, S(F), {
|
|
88
92
|
"model-value": S(M),
|
|
89
93
|
range: S(P).range,
|
|
90
94
|
"view-date": S(R),
|
|
@@ -98,7 +102,7 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
98
102
|
"hide-weekdays": S(P).hideWeekdays,
|
|
99
103
|
"disable-months": S(P).disableMonths,
|
|
100
104
|
"hide-outside-days": S(P).hideOutsideDays,
|
|
101
|
-
onPreviewDateChange:
|
|
105
|
+
onPreviewDateChange: a[0] ||= (e) => O("previewDateChange", e)
|
|
102
106
|
}), {
|
|
103
107
|
day: w((t) => [y(e.$slots, "day", g(p(t)), () => [u(b(t.label), 1)])]),
|
|
104
108
|
_: 3
|
|
@@ -116,7 +120,7 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
116
120
|
"hide-weekdays",
|
|
117
121
|
"disable-months",
|
|
118
122
|
"hide-outside-days"
|
|
119
|
-
])) : S(N) === "month" ? (_(), o(
|
|
123
|
+
])) : S(N) === "month" ? (_(), o(n, h({ key: 1 }, S(F), {
|
|
120
124
|
year: S(z),
|
|
121
125
|
range: S(P).range,
|
|
122
126
|
"model-value": S(V),
|
|
@@ -127,7 +131,7 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
127
131
|
"disable-years": S(P).disableYears,
|
|
128
132
|
"disable-months": S(P).disableMonths,
|
|
129
133
|
selection: S(K) === "month" ? S(M) : void 0,
|
|
130
|
-
onPreviewDateChange:
|
|
134
|
+
onPreviewDateChange: a[1] ||= (e) => O("previewDateChange", e)
|
|
131
135
|
}), null, 16, [
|
|
132
136
|
"year",
|
|
133
137
|
"range",
|
|
@@ -139,7 +143,7 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
139
143
|
"disable-years",
|
|
140
144
|
"disable-months",
|
|
141
145
|
"selection"
|
|
142
|
-
])) : S(N) === "year" ? (_(), o(
|
|
146
|
+
])) : S(N) === "year" ? (_(), o(r, h({ key: 2 }, S(F), {
|
|
143
147
|
range: S(P).range,
|
|
144
148
|
"model-value": S(z),
|
|
145
149
|
"page-size": S(J),
|
|
@@ -150,7 +154,7 @@ var E = { class: "flex w-full min-w-0 items-center gap-x-2" }, D = {
|
|
|
150
154
|
"disable-dates": S(P).disableDates,
|
|
151
155
|
"disable-years": S(P).disableYears,
|
|
152
156
|
selection: S(K) === "year" ? S(M) : void 0,
|
|
153
|
-
onPreviewDateChange:
|
|
157
|
+
onPreviewDateChange: a[2] ||= (e) => O("previewDateChange", e)
|
|
154
158
|
}), null, 16, [
|
|
155
159
|
"range",
|
|
156
160
|
"model-value",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./Calendar.js";
|
|
2
|
+
import { useCalendar as t } from "./composables/useCalendar.js";
|
|
3
|
+
export { e as Calendar, t as useCalendar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useCalendarDate as e } from "./composables/useCalendarDate.js";
|
|
2
|
+
import { useOptionalModel as t } from "../../Utils/useOptionalModel.js";
|
|
3
3
|
import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, guardReactiveProps as c, mergeModels as l, mergeProps as u, normalizeProps as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useModel as v } from "vue";
|
|
4
4
|
// src/Components/CalendarDate/CalendarDate.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var y = {
|
|
@@ -15,7 +15,11 @@ var y = {
|
|
|
15
15
|
customProps: {},
|
|
16
16
|
defaultValue: {},
|
|
17
17
|
disabled: { type: Boolean },
|
|
18
|
-
disableDates: {
|
|
18
|
+
disableDates: { type: [
|
|
19
|
+
Date,
|
|
20
|
+
Array,
|
|
21
|
+
Function
|
|
22
|
+
] },
|
|
19
23
|
disableMonths: {},
|
|
20
24
|
disableYears: {},
|
|
21
25
|
error: { type: Boolean },
|
|
@@ -42,7 +46,7 @@ var y = {
|
|
|
42
46
|
"viewDateChange"
|
|
43
47
|
], ["update:modelValue"]),
|
|
44
48
|
setup(s, { emit: l }) {
|
|
45
|
-
let b = v(s, "modelValue"), x = l, S = s, C = p(S.defaultValue ?? null), w =
|
|
49
|
+
let b = v(s, "modelValue"), x = l, S = s, C = p(S.defaultValue ?? null), w = t(b, C), { days: T, rootBind: E, gridBind: D, weekdays: O, getDayBind: k, hideWeekdays: A, getWeekdayBind: j, hideOutsideDays: M } = e(S, {
|
|
46
50
|
rounded: "sm",
|
|
47
51
|
startOfWeek: 0,
|
|
48
52
|
color: "primary"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./CalendarDate.js";
|
|
2
|
+
import { useCalendarDate as t } from "./composables/useCalendarDate.js";
|
|
3
|
+
export { e as CalendarDate, t as useCalendarDate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useCalendarMonth as e } from "./composables/useCalendarMonth.js";
|
|
2
|
+
import { useOptionalModel as t } from "../../Utils/useOptionalModel.js";
|
|
3
3
|
import { Fragment as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeModels as s, mergeProps as c, normalizeProps as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, useModel as h } from "vue";
|
|
4
4
|
// src/Components/CalendarMonth/CalendarMonth.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var g = /*@__PURE__*/ a({
|
|
@@ -10,7 +10,11 @@ var g = /*@__PURE__*/ a({
|
|
|
10
10
|
color: {},
|
|
11
11
|
customProps: {},
|
|
12
12
|
disabled: { type: Boolean },
|
|
13
|
-
disableDates: {
|
|
13
|
+
disableDates: { type: [
|
|
14
|
+
Date,
|
|
15
|
+
Array,
|
|
16
|
+
Function
|
|
17
|
+
] },
|
|
14
18
|
disableMonths: {},
|
|
15
19
|
disableYears: {},
|
|
16
20
|
error: { type: Boolean },
|
|
@@ -34,7 +38,7 @@ var g = /*@__PURE__*/ a({
|
|
|
34
38
|
"update:modelValue"
|
|
35
39
|
], ["update:modelValue"]),
|
|
36
40
|
setup(a, { emit: s }) {
|
|
37
|
-
let g = h(a, "modelValue"), _ = s, v = a, y = d(void 0), b =
|
|
41
|
+
let g = h(a, "modelValue"), _ = s, v = a, y = d(void 0), b = t(g, y), { months: x, rootBind: S, gridBind: C, getMonthBind: w } = e(v, {
|
|
38
42
|
rounded: "md",
|
|
39
43
|
color: "primary"
|
|
40
44
|
}, b, _);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./CalendarMonth.js";
|
|
2
|
+
import { useCalendarMonth as t } from "./composables/useCalendarMonth.js";
|
|
3
|
+
export { e as CalendarMonth, t as useCalendarMonth };
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../
|
|
3
|
-
import n from "
|
|
4
|
-
import ee from "../
|
|
5
|
-
import te from "../
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { isString as
|
|
1
|
+
import e from "../CalendarDate/CalendarDate.js";
|
|
2
|
+
import t from "../CalendarMonth/CalendarMonth.js";
|
|
3
|
+
import { useCalendarRange as n } from "./composables/useCalendarRange.js";
|
|
4
|
+
import ee from "../CalendarYear/CalendarYear.js";
|
|
5
|
+
import te from "../Divider/Divider.js";
|
|
6
|
+
import r from "../Icon/Icon.js";
|
|
7
|
+
import { useOptionalModel as i } from "../../Utils/useOptionalModel.js";
|
|
8
|
+
import { Fragment as ne, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeModels as f, mergeProps as p, normalizeClass as m, normalizeProps as h, openBlock as g, ref as re, renderSlot as _, toDisplayString as v, toValue as ie, unref as y, useModel as ae, withCtx as b } from "vue";
|
|
9
|
+
import { isString as oe } from "es-toolkit/compat";
|
|
10
10
|
import { cn as x } from "@bridge-ui/core/Utils";
|
|
11
11
|
// src/Components/CalendarRange/CalendarRange.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var S = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "grid w-full grid-cols-[1fr_auto_1fr] items-center"
|
|
15
|
-
},
|
|
15
|
+
}, se = { class: "flex justify-start" }, ce = { class: "flex justify-end" }, le = { class: "flex shrink-0 items-center" }, ue = { class: "ml-auto" }, de = { class: "ml-auto" }, fe = { class: "flex shrink-0 items-center" }, pe = { class: "flex min-w-max flex-1 items-stretch" }, C = /*@__PURE__*/ u({
|
|
16
16
|
inheritAttrs: !1,
|
|
17
17
|
__name: "CalendarRange",
|
|
18
|
-
props: /*@__PURE__*/
|
|
18
|
+
props: /*@__PURE__*/ f({
|
|
19
19
|
classes: {},
|
|
20
20
|
color: {},
|
|
21
21
|
customProps: {},
|
|
22
22
|
defaultValue: {},
|
|
23
23
|
defaultView: {},
|
|
24
24
|
disabled: { type: Boolean },
|
|
25
|
-
disableDates: {
|
|
25
|
+
disableDates: { type: [
|
|
26
|
+
Date,
|
|
27
|
+
Array,
|
|
28
|
+
Function
|
|
29
|
+
] },
|
|
26
30
|
disableMonths: {},
|
|
27
31
|
disableYears: {},
|
|
28
32
|
error: { type: Boolean },
|
|
@@ -45,83 +49,83 @@ var se = {
|
|
|
45
49
|
modelValue: {},
|
|
46
50
|
modelModifiers: {}
|
|
47
51
|
}),
|
|
48
|
-
emits: /*@__PURE__*/
|
|
52
|
+
emits: /*@__PURE__*/ f([
|
|
49
53
|
"change",
|
|
50
54
|
"previewDateChange",
|
|
51
55
|
"update:modelValue",
|
|
52
56
|
"viewDateChange"
|
|
53
57
|
], ["update:modelValue"]),
|
|
54
|
-
setup(
|
|
55
|
-
let
|
|
58
|
+
setup(u, { emit: f }) {
|
|
59
|
+
let C = f, me = ae(u, "modelValue"), w = u, he = re(w.defaultValue ?? null), T = i(me, he), { view: E, shared: D, merged: O, endBind: ge, rootBind: _e, bodyBind: k, viewDate: ve, viewYear: A, startBind: j, yearLabel: M, monthLabel: N, headerBind: P, monthsBind: F, panelsBind: ye, isVertical: I, endViewDate: be, previewDate: L, navIconBind: R, granularity: z, handleChange: B, yearPageSize: xe, endMonthLabel: V, yearPageStart: Se, endHeaderBind: H, monthYearBind: U, nextButtonBind: W, monthPanelYear: Ce, todayButtonBind: G, monthPanelValue: we, startHeaderBind: Te, yearSelectorBind: K, handleYearSelect: Ee, showYearSelector: q, monthSelectorBind: J, handleMonthSelect: De, showMonthSelector: Y, previousButtonBind: X, endMonthSelectorBind: Z, handleEndViewDateChange: Oe, handlePreviewDateChange: Q, handleStartViewDateChange: ke } = n(w, {
|
|
56
60
|
rounded: "md",
|
|
57
61
|
startOfWeek: 0,
|
|
58
62
|
color: "primary",
|
|
59
63
|
orientation: "horizontal"
|
|
60
|
-
},
|
|
64
|
+
}, T, C);
|
|
61
65
|
function $(e) {
|
|
62
|
-
let t =
|
|
66
|
+
let t = ie(R)?.class;
|
|
63
67
|
return x({
|
|
64
68
|
"size-3 transition-all duration-200 ease-in-out": !0,
|
|
65
|
-
[
|
|
69
|
+
[oe(t) ? t : ""]: !0,
|
|
66
70
|
"rotate-180": e
|
|
67
71
|
});
|
|
68
72
|
}
|
|
69
|
-
return (
|
|
70
|
-
|
|
73
|
+
return (n, i) => (g(), o("div", h(d(y(_e))), [s("div", h(d(y(P))), [y(E) === "year" || y(I) && y(E) === "date" ? (g(), o("div", S, [
|
|
74
|
+
s("div", se, [y(q) ? (g(), o("button", h(p({ key: 0 }, y(K))), [s("span", null, v(y(M)), 1), l(y(r), p({
|
|
71
75
|
size: "2xs",
|
|
72
76
|
icon: "chevronDown"
|
|
73
|
-
},
|
|
74
|
-
|
|
77
|
+
}, y(R), { class: $(y(E) === "year") }), null, 16, ["class"])], 16)) : a("", !0)]),
|
|
78
|
+
s("div", h(d(y(F))), [y(Y) && y(E) === "date" ? (g(), o("button", h(p({ key: 0 }, y(J))), [s("span", null, v(y(N)), 1), l(y(r), p({
|
|
75
79
|
size: "2xs",
|
|
76
80
|
icon: "chevronDown"
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
}, y(R), { class: $(!1) }), null, 16, ["class"])], 16)) : a("", !0)], 16),
|
|
82
|
+
s("div", ce, [s("div", le, [
|
|
83
|
+
s("button", h(d(y(X))), [l(y(r), p({
|
|
80
84
|
size: "sm",
|
|
81
85
|
icon: "chevronLeft"
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
}, y(R)), null, 16)], 16),
|
|
87
|
+
s("button", h(d(y(G))), [...i[0] ||= [s("span", { class: "size-2 rounded-full bg-dark-600 dark:bg-dark-300" }, null, -1)]], 16),
|
|
88
|
+
s("button", h(d(y(W))), [l(y(r), p({
|
|
85
89
|
size: "sm",
|
|
86
90
|
icon: "chevronRight"
|
|
87
|
-
},
|
|
91
|
+
}, y(R)), null, 16)], 16)
|
|
88
92
|
])])
|
|
89
|
-
])) : (
|
|
93
|
+
])) : (g(), o(ne, { key: 1 }, [s("div", h(d(y(Te))), [y(q) ? (g(), o("button", h(p({ key: 0 }, y(K))), [s("span", null, v(y(M)), 1), l(y(r), p({
|
|
90
94
|
size: "2xs",
|
|
91
95
|
icon: "chevronDown"
|
|
92
|
-
},
|
|
96
|
+
}, y(R), { class: $(!1) }), null, 16, ["class"])], 16)) : a("", !0), s("div", ue, [y(Y) ? (g(), o("button", h(p({ key: 0 }, y(J))), [s("span", null, v(y(N)), 1), l(y(r), p({
|
|
93
97
|
size: "2xs",
|
|
94
98
|
icon: "chevronDown"
|
|
95
|
-
},
|
|
99
|
+
}, y(R), { class: $(y(E) === "month") }), null, 16, ["class"])], 16)) : a("", !0)])], 16), s("div", h(d(y(H))), [y(Y) ? (g(), o("button", h(p({ key: 0 }, y(Z))), [s("span", null, v(y(V)), 1), l(y(r), p({
|
|
96
100
|
size: "2xs",
|
|
97
101
|
icon: "chevronDown"
|
|
98
|
-
},
|
|
99
|
-
|
|
102
|
+
}, y(R), { class: $(y(E) === "month") }), null, 16, ["class"])], 16)) : a("", !0), s("div", de, [s("div", fe, [
|
|
103
|
+
s("button", h(d(y(X))), [l(y(r), p({
|
|
100
104
|
size: "sm",
|
|
101
105
|
icon: "chevronLeft"
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
}, y(R)), null, 16)], 16),
|
|
107
|
+
s("button", h(d(y(G))), [...i[1] ||= [s("span", { class: "size-2 rounded-full bg-dark-600 dark:bg-dark-300" }, null, -1)]], 16),
|
|
108
|
+
s("button", h(d(y(W))), [l(y(r), p({
|
|
105
109
|
size: "sm",
|
|
106
110
|
icon: "chevronRight"
|
|
107
|
-
},
|
|
108
|
-
])])], 16)], 64))], 16),
|
|
109
|
-
|
|
111
|
+
}, y(R)), null, 16)], 16)
|
|
112
|
+
])])], 16)], 64))], 16), s("div", h(d(y(k))), [s("div", h(d(y(ye))), [
|
|
113
|
+
s("div", { class: m([y(I) ? "pb-2.5" : void 0, "flex min-w-max flex-1 items-stretch"]) }, [s("div", h(d(y(j))), [l(e, p(y(D), {
|
|
110
114
|
range: "",
|
|
111
|
-
"model-value":
|
|
112
|
-
"view-date":
|
|
113
|
-
onChange:
|
|
114
|
-
"preview-date":
|
|
115
|
-
"start-of-week":
|
|
116
|
-
"disable-dates":
|
|
117
|
-
"disable-years":
|
|
118
|
-
"hide-weekdays":
|
|
119
|
-
"disable-months":
|
|
120
|
-
"hide-outside-days":
|
|
121
|
-
onViewDateChange:
|
|
122
|
-
onPreviewDateChange:
|
|
115
|
+
"model-value": y(T),
|
|
116
|
+
"view-date": y(ve),
|
|
117
|
+
onChange: y(B),
|
|
118
|
+
"preview-date": y(L),
|
|
119
|
+
"start-of-week": y(O).startOfWeek,
|
|
120
|
+
"disable-dates": y(O).disableDates,
|
|
121
|
+
"disable-years": y(O).disableYears,
|
|
122
|
+
"hide-weekdays": y(O).hideWeekdays,
|
|
123
|
+
"disable-months": y(O).disableMonths,
|
|
124
|
+
"hide-outside-days": y(O).hideOutsideDays,
|
|
125
|
+
onViewDateChange: y(ke),
|
|
126
|
+
onPreviewDateChange: y(Q)
|
|
123
127
|
}), {
|
|
124
|
-
day:
|
|
128
|
+
day: b((e) => [_(n.$slots, "day", h(d(e)), () => [c(v(e.label), 1)])]),
|
|
125
129
|
_: 3
|
|
126
130
|
}, 16, [
|
|
127
131
|
"model-value",
|
|
@@ -136,30 +140,30 @@ var se = {
|
|
|
136
140
|
"hide-outside-days",
|
|
137
141
|
"onViewDateChange",
|
|
138
142
|
"onPreviewDateChange"
|
|
139
|
-
])], 16),
|
|
140
|
-
|
|
141
|
-
class:
|
|
142
|
-
orientation:
|
|
143
|
+
])], 16), _(n.$slots, "startAside")], 2),
|
|
144
|
+
l(y(te), {
|
|
145
|
+
class: m(y(I) ? "mx-2.5" : void 0),
|
|
146
|
+
orientation: y(I) ? "horizontal" : "vertical"
|
|
143
147
|
}, null, 8, ["class", "orientation"]),
|
|
144
|
-
|
|
148
|
+
s("div", { class: m(["flex min-w-max flex-1 flex-col", y(I) ? "pt-2.5" : void 0]) }, [y(I) && y(E) === "date" && y(Y) ? (g(), o("div", h(p({ key: 0 }, y(H))), [s("button", h(d(y(Z))), [s("span", null, v(y(V)), 1), l(y(r), p({
|
|
145
149
|
size: "2xs",
|
|
146
150
|
icon: "chevronDown"
|
|
147
|
-
},
|
|
151
|
+
}, y(R), { class: $(!1) }), null, 16, ["class"])], 16)], 16)) : a("", !0), s("div", pe, [s("div", h(d(y(ge))), [l(e, p(y(D), {
|
|
148
152
|
range: "",
|
|
149
|
-
"model-value":
|
|
150
|
-
"view-date":
|
|
151
|
-
onChange:
|
|
152
|
-
"preview-date":
|
|
153
|
-
"start-of-week":
|
|
154
|
-
"disable-dates":
|
|
155
|
-
"disable-years":
|
|
156
|
-
"hide-weekdays":
|
|
157
|
-
"disable-months":
|
|
158
|
-
"hide-outside-days":
|
|
159
|
-
onViewDateChange:
|
|
160
|
-
onPreviewDateChange:
|
|
153
|
+
"model-value": y(T),
|
|
154
|
+
"view-date": y(be),
|
|
155
|
+
onChange: y(B),
|
|
156
|
+
"preview-date": y(L),
|
|
157
|
+
"start-of-week": y(O).startOfWeek,
|
|
158
|
+
"disable-dates": y(O).disableDates,
|
|
159
|
+
"disable-years": y(O).disableYears,
|
|
160
|
+
"hide-weekdays": y(O).hideWeekdays,
|
|
161
|
+
"disable-months": y(O).disableMonths,
|
|
162
|
+
"hide-outside-days": y(O).hideOutsideDays,
|
|
163
|
+
onViewDateChange: y(Oe),
|
|
164
|
+
onPreviewDateChange: y(Q)
|
|
161
165
|
}), {
|
|
162
|
-
day:
|
|
166
|
+
day: b((e) => [_(n.$slots, "day", h(d(e)), () => [c(v(e.label), 1)])]),
|
|
163
167
|
_: 3
|
|
164
168
|
}, 16, [
|
|
165
169
|
"model-value",
|
|
@@ -174,21 +178,21 @@ var se = {
|
|
|
174
178
|
"hide-outside-days",
|
|
175
179
|
"onViewDateChange",
|
|
176
180
|
"onPreviewDateChange"
|
|
177
|
-
])], 16),
|
|
178
|
-
], 16),
|
|
181
|
+
])], 16), _(n.$slots, "endAside")])], 2)
|
|
182
|
+
], 16), y(E) === "month" ? (g(), o("div", {
|
|
179
183
|
key: 0,
|
|
180
|
-
class:
|
|
181
|
-
}, [
|
|
184
|
+
class: m(y(U))
|
|
185
|
+
}, [l(t, p(y(D), {
|
|
182
186
|
range: "",
|
|
183
|
-
year:
|
|
184
|
-
"preview-date":
|
|
185
|
-
"model-value":
|
|
186
|
-
onChange:
|
|
187
|
-
"disable-dates":
|
|
188
|
-
"disable-years":
|
|
189
|
-
"disable-months":
|
|
190
|
-
onPreviewDateChange:
|
|
191
|
-
selection:
|
|
187
|
+
year: y(Ce),
|
|
188
|
+
"preview-date": y(L),
|
|
189
|
+
"model-value": y(we),
|
|
190
|
+
onChange: y(De),
|
|
191
|
+
"disable-dates": y(O).disableDates,
|
|
192
|
+
"disable-years": y(O).disableYears,
|
|
193
|
+
"disable-months": y(O).disableMonths,
|
|
194
|
+
onPreviewDateChange: y(Q),
|
|
195
|
+
selection: y(z) === "month" ? y(T) : void 0,
|
|
192
196
|
classes: {
|
|
193
197
|
root: "h-full min-h-0 flex-1",
|
|
194
198
|
grid: "h-full auto-rows-fr",
|
|
@@ -204,20 +208,20 @@ var se = {
|
|
|
204
208
|
"disable-months",
|
|
205
209
|
"onPreviewDateChange",
|
|
206
210
|
"selection"
|
|
207
|
-
])], 2)) :
|
|
211
|
+
])], 2)) : y(E) === "year" ? (g(), o("div", {
|
|
208
212
|
key: 1,
|
|
209
|
-
class:
|
|
210
|
-
}, [
|
|
213
|
+
class: m(y(U))
|
|
214
|
+
}, [l(ee, p(y(D), {
|
|
211
215
|
range: "",
|
|
212
|
-
"model-value":
|
|
213
|
-
"page-size":
|
|
214
|
-
"start-year":
|
|
215
|
-
"preview-date":
|
|
216
|
-
onChange:
|
|
217
|
-
"disable-dates":
|
|
218
|
-
"disable-years":
|
|
219
|
-
onPreviewDateChange:
|
|
220
|
-
selection:
|
|
216
|
+
"model-value": y(A),
|
|
217
|
+
"page-size": y(xe),
|
|
218
|
+
"start-year": y(Se),
|
|
219
|
+
"preview-date": y(L),
|
|
220
|
+
onChange: y(Ee),
|
|
221
|
+
"disable-dates": y(O).disableDates,
|
|
222
|
+
"disable-years": y(O).disableYears,
|
|
223
|
+
onPreviewDateChange: y(Q),
|
|
224
|
+
selection: y(z) === "year" ? y(T) : void 0,
|
|
221
225
|
classes: {
|
|
222
226
|
root: "h-full min-h-0 flex-1",
|
|
223
227
|
grid: "h-full auto-rows-fr",
|
|
@@ -233,7 +237,7 @@ var se = {
|
|
|
233
237
|
"disable-years",
|
|
234
238
|
"onPreviewDateChange",
|
|
235
239
|
"selection"
|
|
236
|
-
])], 2)) :
|
|
240
|
+
])], 2)) : a("", !0)], 16)], 16));
|
|
237
241
|
}
|
|
238
242
|
});
|
|
239
|
-
export {
|
|
243
|
+
export { C as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./CalendarRange.js";
|
|
2
|
+
import { useCalendarRange as t } from "./composables/useCalendarRange.js";
|
|
3
|
+
export { e as CalendarRange, t as useCalendarRange };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useCalendarYear as e } from "./composables/useCalendarYear.js";
|
|
2
|
+
import { useOptionalModel as t } from "../../Utils/useOptionalModel.js";
|
|
3
3
|
import { Fragment as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeModels as s, mergeProps as c, normalizeProps as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, useModel as h } from "vue";
|
|
4
4
|
// src/Components/CalendarYear/CalendarYear.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var g = /*@__PURE__*/ a({
|
|
@@ -10,7 +10,11 @@ var g = /*@__PURE__*/ a({
|
|
|
10
10
|
color: {},
|
|
11
11
|
customProps: {},
|
|
12
12
|
disabled: { type: Boolean },
|
|
13
|
-
disableDates: {
|
|
13
|
+
disableDates: { type: [
|
|
14
|
+
Date,
|
|
15
|
+
Array,
|
|
16
|
+
Function
|
|
17
|
+
] },
|
|
14
18
|
disableYears: {},
|
|
15
19
|
error: { type: Boolean },
|
|
16
20
|
maxDate: {},
|
|
@@ -34,7 +38,7 @@ var g = /*@__PURE__*/ a({
|
|
|
34
38
|
"update:modelValue"
|
|
35
39
|
], ["update:modelValue"]),
|
|
36
40
|
setup(a, { emit: s }) {
|
|
37
|
-
let g = h(a, "modelValue"), _ = s, v = a, y = d(void 0), b =
|
|
41
|
+
let g = h(a, "modelValue"), _ = s, v = a, y = d(void 0), b = t(g, y), { years: x, rootBind: S, gridBind: C, getYearBind: w } = e(v, {
|
|
38
42
|
pageSize: 15,
|
|
39
43
|
rounded: "md",
|
|
40
44
|
color: "primary"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./CalendarYear.js";
|
|
2
|
+
import { useCalendarYear as t } from "./composables/useCalendarYear.js";
|
|
3
|
+
export { e as CalendarYear, t as useCalendarYear };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { useCard as e } from "./composables/useCard.js";
|
|
2
|
+
import t from "../Text/Text.js";
|
|
3
|
+
import { hasNamedSlot as n, hasSlotOrProp as r, isPropPresent as i } from "../../Utils/slotOrProp.js";
|
|
4
4
|
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeProps as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
5
5
|
// src/Components/Card/Card.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = /*@__PURE__*/ d({
|
|
@@ -17,29 +17,29 @@ var b = /*@__PURE__*/ d({
|
|
|
17
17
|
variant: {}
|
|
18
18
|
},
|
|
19
19
|
setup(d) {
|
|
20
|
-
let { slots: b, merged: x, bodyBind: S, rootBind: C, titleBind: w, footerBind: T, headerBind: E, hasDefaultBody: D } =
|
|
20
|
+
let { slots: b, merged: x, bodyBind: S, rootBind: C, titleBind: w, footerBind: T, headerBind: E, hasDefaultBody: D } = e(d, {
|
|
21
21
|
shadow: "sm",
|
|
22
22
|
rounded: "sm",
|
|
23
23
|
padding: "medium",
|
|
24
24
|
variant: "elevated"
|
|
25
25
|
});
|
|
26
|
-
return (
|
|
27
|
-
v(
|
|
26
|
+
return (e, d) => (h(), c("div", m(f(v(C))), [
|
|
27
|
+
v(n)(v(b), "header") ? g(e.$slots, "header", {}, void 0, void 0, 0) : v(r)(v(b), "title", v(x).title) ? (h(), c("div", m(p({ key: 1 }, v(E))), [u(v(t), p({
|
|
28
28
|
as: "div",
|
|
29
29
|
color: "inherit"
|
|
30
30
|
}, v(w)), {
|
|
31
|
-
default: y(() => [v(
|
|
31
|
+
default: y(() => [v(n)(v(b), "title") ? g(e.$slots, "title", {}, void 0, void 0, 0) : v(i)(v(x).title) ? (h(), c(a, { key: 1 }, [l(_(v(x).title), 1)], 64)) : s("", !0)]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16), g(
|
|
34
|
-
v(D) ? (h(), o(v(
|
|
33
|
+
}, 16), g(e.$slots, "action")], 16)) : s("", !0),
|
|
34
|
+
v(D) ? (h(), o(v(t), p({
|
|
35
35
|
key: 2,
|
|
36
36
|
as: "div",
|
|
37
37
|
color: "inherit"
|
|
38
38
|
}, v(S)), {
|
|
39
|
-
default: y(() => [g(
|
|
39
|
+
default: y(() => [g(e.$slots, "default")]),
|
|
40
40
|
_: 3
|
|
41
41
|
}, 16)) : s("", !0),
|
|
42
|
-
v(
|
|
42
|
+
v(n)(v(b), "footer") ? (h(), c("div", m(p({ key: 3 }, v(T))), [g(e.$slots, "footer")], 16)) : s("", !0)
|
|
43
43
|
], 16));
|
|
44
44
|
}
|
|
45
45
|
});
|