@youcan/celeste 0.9.3 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/celeste.css +1030 -634
- package/dist/cjs/bar-chart.cjs +2 -0
- package/dist/cjs/chart-card.cjs +2 -0
- package/dist/cjs/chart-legend.cjs +2 -0
- package/dist/cjs/chart-plot.cjs +2 -0
- package/dist/cjs/chart-tooltip.cjs +25 -0
- package/dist/cjs/chart.cjs +38 -0
- package/dist/cjs/chunks/BubbleSelect.cjs +5 -6
- package/dist/cjs/chunks/CollapsibleRoot.cjs +3 -4
- package/dist/cjs/chunks/Collection.cjs +3 -4
- package/dist/cjs/chunks/ComboboxContent.cjs +7 -7
- package/dist/cjs/chunks/ComboboxGroup.cjs +4 -5
- package/dist/cjs/chunks/ComboboxInput.cjs +3 -4
- package/dist/cjs/chunks/ComboboxItem.cjs +7 -7
- package/dist/cjs/chunks/ComboboxLabel.cjs +1 -2
- package/dist/cjs/chunks/ComboboxRoot.cjs +17 -14
- package/dist/cjs/chunks/ComboboxSeparator.cjs +1 -2
- package/dist/cjs/chunks/ConfigProvider.cjs +2 -2
- package/dist/cjs/chunks/DialogClose.cjs +1 -2
- package/dist/cjs/chunks/DialogDescription.cjs +1 -2
- package/dist/cjs/chunks/DialogPortal.cjs +10 -10
- package/dist/cjs/chunks/DialogRoot.cjs +3 -4
- package/dist/cjs/chunks/DialogTitle.cjs +1 -2
- package/dist/cjs/chunks/DialogTrigger.cjs +1 -2
- package/dist/cjs/chunks/DismissableLayer.cjs +5 -5
- package/dist/cjs/chunks/DropdownMenuPortal.cjs +2 -3
- package/dist/cjs/chunks/DropdownMenuRoot.cjs +3 -4
- package/dist/cjs/chunks/FocusScope.cjs +7 -7
- package/dist/cjs/chunks/Label.cjs +1 -2
- package/dist/cjs/chunks/MenuAnchor.cjs +1 -2
- package/dist/cjs/chunks/MenuContentImpl.cjs +4 -4
- package/dist/cjs/chunks/MenuGroup.cjs +2 -3
- package/dist/cjs/chunks/MenuItemImpl.cjs +1 -2
- package/dist/cjs/chunks/MenuRoot.cjs +8 -8
- package/dist/cjs/chunks/MenuSub.cjs +3 -4
- package/dist/cjs/chunks/PaginationRoot.cjs +3 -4
- package/dist/cjs/chunks/PinInputRoot.cjs +3 -4
- package/dist/cjs/chunks/PopoverRoot.cjs +3 -4
- package/dist/cjs/chunks/PopperAnchor.cjs +1 -2
- package/dist/cjs/chunks/PopperArrow.cjs +2 -3
- package/dist/cjs/chunks/PopperContent.cjs +263 -298
- package/dist/cjs/chunks/PopperRoot.cjs +2 -3
- package/dist/cjs/chunks/Presence.cjs +7 -7
- package/dist/cjs/chunks/Primitive.cjs +5 -6
- package/dist/cjs/chunks/ProgressIndicator.cjs +4 -5
- package/dist/cjs/chunks/RadioGroupRoot.cjs +3 -4
- package/dist/cjs/chunks/RovingFocusGroup.cjs +6 -6
- package/dist/cjs/chunks/RovingFocusItem.cjs +1 -2
- package/dist/cjs/chunks/SelectGroup.cjs +2 -3
- package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +9 -9
- package/dist/cjs/chunks/TabsRoot.cjs +4 -5
- package/dist/cjs/chunks/Teleport.cjs +2 -3
- package/dist/cjs/chunks/ToggleGroupRoot.cjs +4 -5
- package/dist/cjs/chunks/TooltipProvider.cjs +2 -3
- package/dist/cjs/chunks/TooltipRoot.cjs +5 -5
- package/dist/cjs/chunks/VisuallyHidden.cjs +1 -2
- package/dist/cjs/chunks/VisuallyHiddenInput.cjs +4 -4
- package/dist/cjs/chunks/alert.cjs +17 -12
- package/dist/cjs/chunks/alpha-slider.cjs +1 -4
- package/dist/cjs/chunks/badge.cjs +18 -13
- package/dist/cjs/chunks/bar-chart.cjs +10322 -0
- package/dist/cjs/chunks/button.cjs +12 -7
- package/dist/cjs/chunks/calendar.cjs +39 -33
- package/dist/cjs/chunks/chart-card.cjs +69 -0
- package/dist/cjs/chunks/chart-legend.cjs +88 -0
- package/dist/cjs/chunks/chart-plot.cjs +92 -0
- package/dist/cjs/chunks/checkbox-card.cjs +15 -10
- package/dist/cjs/chunks/checkbox-label.cjs +11 -6
- package/dist/cjs/chunks/checkbox.cjs +18 -12
- package/dist/cjs/chunks/clamp.cjs +1 -1
- package/dist/cjs/chunks/collapsible-content.cjs +9 -4
- package/dist/cjs/chunks/collapsible-trigger.cjs +1 -2
- package/dist/cjs/chunks/collapsible.cjs +0 -1
- package/dist/cjs/chunks/color-area.cjs +3 -4
- package/dist/cjs/chunks/color-picker.cjs +69 -42
- package/dist/cjs/chunks/color-swatch.cjs +4 -5
- package/dist/cjs/chunks/combobox-anchor.cjs +11 -5
- package/dist/cjs/chunks/combobox-empty.cjs +10 -5
- package/dist/cjs/chunks/combobox-group.cjs +11 -6
- package/dist/cjs/chunks/combobox-input.cjs +11 -6
- package/dist/cjs/chunks/combobox-item.cjs +23 -17
- package/dist/cjs/chunks/combobox-list.cjs +14 -8
- package/dist/cjs/chunks/combobox-root.cjs +2 -3
- package/dist/cjs/chunks/combobox-separator.cjs +9 -4
- package/dist/cjs/chunks/combobox-trigger.cjs +14 -8
- package/dist/cjs/chunks/combobox.cjs +14 -14
- package/dist/cjs/chunks/compact-button.cjs +13 -8
- package/dist/cjs/chunks/components.cjs +20 -4
- package/dist/cjs/chunks/content-divider.cjs +14 -9
- package/dist/cjs/chunks/counter-input.cjs +145 -111
- package/dist/cjs/chunks/createContext.cjs +1 -2
- package/dist/cjs/chunks/date-picker.cjs +14 -9
- package/dist/cjs/chunks/digit-input-group.cjs +12 -6
- package/dist/cjs/chunks/digit-input-slot.cjs +13 -7
- package/dist/cjs/chunks/digit-input.cjs +13 -7
- package/dist/cjs/chunks/dist.cjs +120 -230
- package/dist/cjs/chunks/dist2.cjs +459 -15492
- package/dist/cjs/chunks/dist3.cjs +16177 -0
- package/dist/cjs/chunks/dropdown-menu-content.cjs +15 -9
- package/dist/cjs/chunks/dropdown-menu-group.cjs +3 -4
- package/dist/cjs/chunks/dropdown-menu-item.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-label.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-separator.cjs +11 -6
- package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-sub.cjs +2 -3
- package/dist/cjs/chunks/dropdown-menu-trigger.cjs +3 -4
- package/dist/cjs/chunks/dropdown-menu.cjs +11 -5
- package/dist/cjs/chunks/extra-settings.cjs +3 -7
- package/dist/cjs/chunks/fancy-button.cjs +12 -7
- package/dist/cjs/chunks/file-upload-area.cjs +24 -17
- package/dist/cjs/chunks/getActiveElement.cjs +1 -1
- package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +1 -1
- package/dist/cjs/chunks/hint-text.cjs +13 -8
- package/dist/cjs/chunks/hue-slider.cjs +3 -6
- package/dist/cjs/chunks/isValueEqualOrExist.cjs +1 -1
- package/dist/cjs/chunks/label2.cjs +15 -10
- package/dist/cjs/chunks/link-bubble.cjs +12 -15
- package/dist/cjs/chunks/link-button.cjs +14 -9
- package/dist/cjs/chunks/menus.cjs +236 -42
- package/dist/cjs/chunks/modal-body.cjs +9 -4
- package/dist/cjs/chunks/modal-close.cjs +0 -1
- package/dist/cjs/chunks/modal-content.cjs +18 -6
- package/dist/cjs/chunks/modal-footer.cjs +9 -4
- package/dist/cjs/chunks/modal-header.cjs +18 -13
- package/dist/cjs/chunks/modal-trigger.cjs +0 -1
- package/dist/cjs/chunks/modal.cjs +0 -1
- package/dist/cjs/chunks/nullish.cjs +1 -1
- package/dist/cjs/chunks/ohash.D__AXeF1.cjs +1 -1
- package/dist/cjs/chunks/pagination-content.cjs +14 -9
- package/dist/cjs/chunks/pagination-ellipsis.cjs +12 -7
- package/dist/cjs/chunks/pagination-first.cjs +11 -5
- package/dist/cjs/chunks/pagination-item.cjs +10 -5
- package/dist/cjs/chunks/pagination-last.cjs +11 -5
- package/dist/cjs/chunks/pagination-next.cjs +11 -5
- package/dist/cjs/chunks/pagination-previous.cjs +11 -5
- package/dist/cjs/chunks/pagination.cjs +12 -6
- package/dist/cjs/chunks/popover-content.cjs +27 -21
- package/dist/cjs/chunks/popover-trigger.cjs +3 -4
- package/dist/cjs/chunks/popover.cjs +0 -1
- package/dist/cjs/chunks/progress-bar.cjs +14 -9
- package/dist/cjs/chunks/progress-circle.cjs +10 -5
- package/dist/cjs/chunks/radio-group-card.cjs +15 -10
- package/dist/cjs/chunks/radio-group-item.cjs +15 -9
- package/dist/cjs/chunks/radio-group-label.cjs +11 -6
- package/dist/cjs/chunks/radio-group.cjs +9 -3
- package/dist/cjs/chunks/range-calendar.cjs +56 -47
- package/dist/cjs/chunks/range-picker.cjs +19 -14
- package/dist/cjs/chunks/rich-editor.cjs +1130 -262
- package/dist/cjs/chunks/{chunk.cjs → rolldown-runtime.cjs} +8 -1
- package/dist/cjs/chunks/scroll-area.cjs +13 -8
- package/dist/cjs/chunks/scroll-bar.cjs +43 -29
- package/dist/cjs/chunks/segmented-control-item.cjs +12 -7
- package/dist/cjs/chunks/segmented-control.cjs +11 -5
- package/dist/cjs/chunks/select-content.cjs +16 -10
- package/dist/cjs/chunks/select-group.cjs +0 -1
- package/dist/cjs/chunks/select-icon.cjs +9 -4
- package/dist/cjs/chunks/select-item.cjs +17 -11
- package/dist/cjs/chunks/select-label.cjs +10 -5
- package/dist/cjs/chunks/select-separator.cjs +10 -5
- package/dist/cjs/chunks/select-trigger.cjs +12 -7
- package/dist/cjs/chunks/select-value.cjs +10 -5
- package/dist/cjs/chunks/select.cjs +9 -3
- package/dist/cjs/chunks/sheet-close.cjs +9 -4
- package/dist/cjs/chunks/sheet-content.cjs +13 -7
- package/dist/cjs/chunks/sheet-description.cjs +11 -6
- package/dist/cjs/chunks/sheet-footer.cjs +9 -4
- package/dist/cjs/chunks/sheet-header.cjs +9 -4
- package/dist/cjs/chunks/sheet-title.cjs +11 -6
- package/dist/cjs/chunks/sheet-trigger.cjs +0 -1
- package/dist/cjs/chunks/sheet.cjs +0 -1
- package/dist/cjs/chunks/sidebar-content.cjs +7 -2
- package/dist/cjs/chunks/sidebar-element.cjs +8 -3
- package/dist/cjs/chunks/sidebar-footer.cjs +7 -2
- package/dist/cjs/chunks/sidebar-group-content.cjs +9 -4
- package/dist/cjs/chunks/sidebar-group-label.cjs +9 -4
- package/dist/cjs/chunks/sidebar-group.cjs +7 -2
- package/dist/cjs/chunks/sidebar-header.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu-action.cjs +10 -5
- package/dist/cjs/chunks/sidebar-menu-badge.cjs +11 -6
- package/dist/cjs/chunks/sidebar-menu-button.cjs +11 -6
- package/dist/cjs/chunks/sidebar-menu-item.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +12 -7
- package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu-sub.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu.cjs +7 -2
- package/dist/cjs/chunks/sidebar-provider.cjs +14 -8
- package/dist/cjs/chunks/sidebar-trigger.cjs +10 -5
- package/dist/cjs/chunks/sidebar.cjs +11 -6
- package/dist/cjs/chunks/slider.cjs +38 -24
- package/dist/cjs/chunks/social-button.cjs +5 -6
- package/dist/cjs/chunks/sonner-alert.cjs +2 -3
- package/dist/cjs/chunks/sonner.cjs +4 -4
- package/dist/cjs/chunks/status-badge.cjs +13 -8
- package/dist/cjs/chunks/switch.cjs +13 -7
- package/dist/cjs/chunks/tab-menu-content.cjs +10 -5
- package/dist/cjs/chunks/tab-menu-item.cjs +12 -6
- package/dist/cjs/chunks/tab-menu-list.cjs +10 -5
- package/dist/cjs/chunks/tab-menu.cjs +2 -3
- package/dist/cjs/chunks/table-body.cjs +9 -4
- package/dist/cjs/chunks/table-caption.cjs +9 -4
- package/dist/cjs/chunks/table-cell.cjs +9 -4
- package/dist/cjs/chunks/table-footer.cjs +9 -4
- package/dist/cjs/chunks/table-head.cjs +9 -4
- package/dist/cjs/chunks/table-header.cjs +7 -2
- package/dist/cjs/chunks/table-row.cjs +9 -4
- package/dist/cjs/chunks/table.cjs +9 -4
- package/dist/cjs/chunks/table2.cjs +9 -4
- package/dist/cjs/chunks/tag.cjs +16 -11
- package/dist/cjs/chunks/text-input-affix.cjs +9 -4
- package/dist/cjs/chunks/text-input-button.cjs +9 -4
- package/dist/cjs/chunks/text-input.cjs +10 -10
- package/dist/cjs/chunks/textarea.cjs +15 -10
- package/dist/cjs/chunks/tooltip-content.cjs +38 -32
- package/dist/cjs/chunks/tooltip-provider.cjs +0 -1
- package/dist/cjs/chunks/tooltip-root.cjs +2 -2
- package/dist/cjs/chunks/tooltip-trigger.cjs +1 -2
- package/dist/cjs/chunks/tooltip.cjs +17 -11
- package/dist/cjs/chunks/use-color-model.cjs +7 -12
- package/dist/cjs/chunks/useArrowNavigation.cjs +1 -1
- package/dist/cjs/chunks/useCalendar.cjs +669 -598
- package/dist/cjs/chunks/useComposing.cjs +1 -2
- package/dist/cjs/chunks/useDirection.cjs +1 -2
- package/dist/cjs/chunks/useEmitAsProps.cjs +1 -2
- package/dist/cjs/chunks/useFocusGuards.cjs +1 -2
- package/dist/cjs/chunks/useFormControl.cjs +2 -3
- package/dist/cjs/chunks/useForwardExpose.cjs +2 -3
- package/dist/cjs/chunks/useForwardProps.cjs +1 -2
- package/dist/cjs/chunks/useForwardPropsEmits.cjs +1 -2
- package/dist/cjs/chunks/useForwardScopeId.cjs +1 -2
- package/dist/cjs/chunks/useHideOthers.cjs +4 -5
- package/dist/cjs/chunks/useId.cjs +3 -3
- package/dist/cjs/chunks/useKbd.cjs +1 -1
- package/dist/cjs/chunks/useLocale.cjs +1 -2
- package/dist/cjs/chunks/useNonce.cjs +1 -2
- package/dist/cjs/chunks/usePrimitiveElement.cjs +2 -3
- package/dist/cjs/chunks/useSize.cjs +2 -3
- package/dist/cjs/chunks/useTypeahead.cjs +1 -1
- package/dist/cjs/chunks/utils.cjs +1 -1
- package/dist/cjs/chunks/utils2.cjs +1 -1
- package/dist/cjs/chunks/utils3.cjs +1 -1
- package/dist/cjs/color.cjs +1 -3
- package/dist/cjs/command-group.cjs +11 -6
- package/dist/cjs/command-input.cjs +12 -6
- package/dist/cjs/command-item.cjs +10 -4
- package/dist/cjs/command-list.cjs +10 -4
- package/dist/cjs/command-root.cjs +10 -4
- package/dist/cjs/command-separator.cjs +9 -4
- package/dist/cjs/config.cjs +0 -1
- package/dist/cjs/index.cjs +21 -1
- package/dist/cjs/use-chart-motion.cjs +17 -0
- package/dist/cjs/use-delegated-props.cjs +0 -1
- package/dist/cjs/use-locale.cjs +8 -0
- package/dist/cjs/use-sidebar.cjs +1 -1
- package/dist/cjs/use-user-select.cjs +0 -1
- package/dist/components/chart/bar-chart.d.ts +39 -0
- package/dist/components/chart/chart-card.d.ts +26 -0
- package/dist/components/chart/chart-legend.d.ts +32 -0
- package/dist/components/chart/chart-plot.d.ts +35 -0
- package/dist/components/chart/chart-tooltip.d.ts +11 -0
- package/dist/components/chart/index.d.ts +9 -0
- package/dist/components/color-picker/hue-slider.d.ts +1 -4
- package/dist/components/digit-input/digit-input.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/popover/popover-content.d.ts +1 -1
- package/dist/components/progress/progress-bar.d.ts +1 -1
- package/dist/components/text-input/text-input.d.ts +1 -0
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/use-chart-motion.d.ts +7 -0
- package/dist/composables/use-locale.d.ts +2 -0
- package/dist/es/bar-chart.js +2 -0
- package/dist/es/chart-card.js +2 -0
- package/dist/es/chart-legend.js +2 -0
- package/dist/es/chart-plot.js +2 -0
- package/dist/es/chart-tooltip.js +24 -0
- package/dist/es/chart.js +33 -0
- package/dist/es/chunks/BubbleSelect.js +5 -5
- package/dist/es/chunks/CollapsibleRoot.js +3 -3
- package/dist/es/chunks/Collection.js +3 -3
- package/dist/es/chunks/ComboboxContent.js +9 -8
- package/dist/es/chunks/ComboboxGroup.js +4 -4
- package/dist/es/chunks/ComboboxInput.js +3 -3
- package/dist/es/chunks/ComboboxItem.js +7 -6
- package/dist/es/chunks/ComboboxLabel.js +1 -1
- package/dist/es/chunks/ComboboxRoot.js +15 -11
- package/dist/es/chunks/ComboboxSeparator.js +1 -1
- package/dist/es/chunks/ConfigProvider.js +2 -2
- package/dist/es/chunks/DialogClose.js +1 -1
- package/dist/es/chunks/DialogDescription.js +1 -1
- package/dist/es/chunks/DialogPortal.js +10 -9
- package/dist/es/chunks/DialogRoot.js +3 -3
- package/dist/es/chunks/DialogTitle.js +1 -1
- package/dist/es/chunks/DialogTrigger.js +1 -1
- package/dist/es/chunks/DismissableLayer.js +5 -4
- package/dist/es/chunks/DropdownMenuPortal.js +2 -2
- package/dist/es/chunks/DropdownMenuRoot.js +3 -3
- package/dist/es/chunks/FocusScope.js +7 -6
- package/dist/es/chunks/Label.js +1 -1
- package/dist/es/chunks/MenuAnchor.js +1 -1
- package/dist/es/chunks/MenuContentImpl.js +5 -4
- package/dist/es/chunks/MenuGroup.js +2 -2
- package/dist/es/chunks/MenuItemImpl.js +1 -1
- package/dist/es/chunks/MenuRoot.js +6 -5
- package/dist/es/chunks/MenuSub.js +3 -3
- package/dist/es/chunks/PaginationRoot.js +3 -3
- package/dist/es/chunks/PinInputRoot.js +3 -3
- package/dist/es/chunks/PopoverRoot.js +3 -3
- package/dist/es/chunks/PopperAnchor.js +1 -1
- package/dist/es/chunks/PopperArrow.js +3 -3
- package/dist/es/chunks/PopperContent.js +261 -321
- package/dist/es/chunks/PopperRoot.js +2 -2
- package/dist/es/chunks/Presence.js +6 -5
- package/dist/es/chunks/Primitive.js +5 -5
- package/dist/es/chunks/ProgressIndicator.js +4 -4
- package/dist/es/chunks/RadioGroupRoot.js +3 -3
- package/dist/es/chunks/RovingFocusGroup.js +6 -5
- package/dist/es/chunks/RovingFocusItem.js +1 -1
- package/dist/es/chunks/SelectGroup.js +2 -2
- package/dist/es/chunks/SelectItemAlignedPosition.js +10 -9
- package/dist/es/chunks/TabsRoot.js +4 -4
- package/dist/es/chunks/Teleport.js +2 -2
- package/dist/es/chunks/ToggleGroupRoot.js +4 -4
- package/dist/es/chunks/TooltipProvider.js +2 -2
- package/dist/es/chunks/TooltipRoot.js +5 -4
- package/dist/es/chunks/VisuallyHidden.js +1 -1
- package/dist/es/chunks/VisuallyHiddenInput.js +4 -3
- package/dist/es/chunks/alert.js +16 -10
- package/dist/es/chunks/alpha-slider.js +1 -3
- package/dist/es/chunks/badge.js +17 -11
- package/dist/es/chunks/bar-chart.js +10314 -0
- package/dist/es/chunks/button.js +11 -5
- package/dist/es/chunks/calendar.js +39 -32
- package/dist/es/chunks/chart-card.js +63 -0
- package/dist/es/chunks/chart-legend.js +82 -0
- package/dist/es/chunks/chart-plot.js +87 -0
- package/dist/es/chunks/checkbox-card.js +14 -8
- package/dist/es/chunks/checkbox-label.js +10 -4
- package/dist/es/chunks/checkbox.js +18 -11
- package/dist/es/chunks/clamp.js +1 -1
- package/dist/es/chunks/collapsible-content.js +9 -3
- package/dist/es/chunks/collapsible-trigger.js +1 -1
- package/dist/es/chunks/color-area.js +7 -5
- package/dist/es/chunks/color-picker.js +68 -40
- package/dist/es/chunks/color-swatch.js +3 -3
- package/dist/es/chunks/combobox-anchor.js +11 -4
- package/dist/es/chunks/combobox-empty.js +9 -3
- package/dist/es/chunks/combobox-group.js +10 -4
- package/dist/es/chunks/combobox-input.js +10 -4
- package/dist/es/chunks/combobox-item.js +22 -15
- package/dist/es/chunks/combobox-list.js +13 -6
- package/dist/es/chunks/combobox-root.js +1 -1
- package/dist/es/chunks/combobox-separator.js +8 -2
- package/dist/es/chunks/combobox-trigger.js +13 -6
- package/dist/es/chunks/combobox.js +13 -12
- package/dist/es/chunks/compact-button.js +12 -6
- package/dist/es/chunks/components.js +19 -3
- package/dist/es/chunks/content-divider.js +14 -8
- package/dist/es/chunks/counter-input.js +141 -106
- package/dist/es/chunks/createContext.js +1 -1
- package/dist/es/chunks/date-picker.js +13 -7
- package/dist/es/chunks/digit-input-group.js +11 -4
- package/dist/es/chunks/digit-input-slot.js +12 -5
- package/dist/es/chunks/digit-input.js +12 -5
- package/dist/es/chunks/dist.js +90 -205
- package/dist/es/chunks/dist2.js +434 -15275
- package/dist/es/chunks/dist3.js +15890 -0
- package/dist/es/chunks/dropdown-menu-content.js +14 -7
- package/dist/es/chunks/dropdown-menu-group.js +2 -2
- package/dist/es/chunks/dropdown-menu-item.js +12 -5
- package/dist/es/chunks/dropdown-menu-label.js +12 -5
- package/dist/es/chunks/dropdown-menu-separator.js +10 -4
- package/dist/es/chunks/dropdown-menu-sub-content.js +12 -5
- package/dist/es/chunks/dropdown-menu-sub-trigger.js +12 -5
- package/dist/es/chunks/dropdown-menu-sub.js +2 -2
- package/dist/es/chunks/dropdown-menu-trigger.js +2 -2
- package/dist/es/chunks/dropdown-menu.js +10 -3
- package/dist/es/chunks/extra-settings.js +2 -5
- package/dist/es/chunks/fancy-button.js +11 -5
- package/dist/es/chunks/file-upload-area.js +23 -15
- package/dist/es/chunks/getActiveElement.js +1 -1
- package/dist/es/chunks/handleAndDispatchCustomEvent.js +1 -1
- package/dist/es/chunks/hint-text.js +12 -6
- package/dist/es/chunks/hue-slider.js +3 -5
- package/dist/es/chunks/isValueEqualOrExist.js +1 -1
- package/dist/es/chunks/label2.js +14 -8
- package/dist/es/chunks/link-bubble.js +11 -13
- package/dist/es/chunks/link-button.js +13 -7
- package/dist/es/chunks/menus.js +236 -41
- package/dist/es/chunks/modal-body.js +8 -2
- package/dist/es/chunks/modal-content.js +17 -4
- package/dist/es/chunks/modal-footer.js +8 -2
- package/dist/es/chunks/modal-header.js +17 -11
- package/dist/es/chunks/nullish.js +1 -1
- package/dist/es/chunks/ohash.D__AXeF1.js +1 -1
- package/dist/es/chunks/pagination-content.js +12 -6
- package/dist/es/chunks/pagination-ellipsis.js +10 -4
- package/dist/es/chunks/pagination-first.js +11 -4
- package/dist/es/chunks/pagination-item.js +9 -3
- package/dist/es/chunks/pagination-last.js +11 -4
- package/dist/es/chunks/pagination-next.js +11 -4
- package/dist/es/chunks/pagination-previous.js +11 -4
- package/dist/es/chunks/pagination.js +11 -4
- package/dist/es/chunks/popover-content.js +28 -21
- package/dist/es/chunks/popover-trigger.js +2 -2
- package/dist/es/chunks/progress-bar.js +13 -7
- package/dist/es/chunks/progress-circle.js +9 -3
- package/dist/es/chunks/radio-group-card.js +14 -8
- package/dist/es/chunks/radio-group-item.js +15 -8
- package/dist/es/chunks/radio-group-label.js +10 -4
- package/dist/es/chunks/radio-group.js +9 -2
- package/dist/es/chunks/range-calendar.js +56 -46
- package/dist/es/chunks/range-picker.js +19 -13
- package/dist/es/chunks/rich-editor.js +1129 -260
- package/dist/es/chunks/rolldown-runtime.js +34 -0
- package/dist/es/chunks/scroll-area.js +12 -6
- package/dist/es/chunks/scroll-bar.js +39 -24
- package/dist/es/chunks/segmented-control-item.js +11 -5
- package/dist/es/chunks/segmented-control.js +10 -3
- package/dist/es/chunks/select-content.js +15 -8
- package/dist/es/chunks/select-icon.js +8 -2
- package/dist/es/chunks/select-item.js +16 -9
- package/dist/es/chunks/select-label.js +9 -3
- package/dist/es/chunks/select-separator.js +9 -3
- package/dist/es/chunks/select-trigger.js +11 -5
- package/dist/es/chunks/select-value.js +9 -3
- package/dist/es/chunks/select.js +9 -2
- package/dist/es/chunks/sheet-close.js +8 -2
- package/dist/es/chunks/sheet-content.js +12 -5
- package/dist/es/chunks/sheet-description.js +9 -3
- package/dist/es/chunks/sheet-footer.js +8 -2
- package/dist/es/chunks/sheet-header.js +8 -2
- package/dist/es/chunks/sheet-title.js +9 -3
- package/dist/es/chunks/sidebar-content.js +7 -1
- package/dist/es/chunks/sidebar-element.js +8 -2
- package/dist/es/chunks/sidebar-footer.js +7 -1
- package/dist/es/chunks/sidebar-group-content.js +8 -2
- package/dist/es/chunks/sidebar-group-label.js +9 -3
- package/dist/es/chunks/sidebar-group.js +7 -1
- package/dist/es/chunks/sidebar-header.js +7 -1
- package/dist/es/chunks/sidebar-menu-action.js +10 -4
- package/dist/es/chunks/sidebar-menu-badge.js +11 -5
- package/dist/es/chunks/sidebar-menu-button.js +10 -4
- package/dist/es/chunks/sidebar-menu-item.js +7 -1
- package/dist/es/chunks/sidebar-menu-sub-button.js +12 -6
- package/dist/es/chunks/sidebar-menu-sub-item.js +7 -1
- package/dist/es/chunks/sidebar-menu-sub.js +7 -1
- package/dist/es/chunks/sidebar-menu.js +7 -1
- package/dist/es/chunks/sidebar-provider.js +10 -3
- package/dist/es/chunks/sidebar-trigger.js +9 -3
- package/dist/es/chunks/sidebar.js +11 -5
- package/dist/es/chunks/slider.js +38 -23
- package/dist/es/chunks/social-button.js +4 -4
- package/dist/es/chunks/sonner-alert.js +1 -1
- package/dist/es/chunks/sonner.js +4 -3
- package/dist/es/chunks/status-badge.js +12 -6
- package/dist/es/chunks/switch.js +13 -6
- package/dist/es/chunks/tab-menu-content.js +9 -3
- package/dist/es/chunks/tab-menu-item.js +11 -4
- package/dist/es/chunks/tab-menu-list.js +9 -3
- package/dist/es/chunks/tab-menu.js +1 -1
- package/dist/es/chunks/table-body.js +8 -2
- package/dist/es/chunks/table-caption.js +8 -2
- package/dist/es/chunks/table-cell.js +8 -2
- package/dist/es/chunks/table-footer.js +8 -2
- package/dist/es/chunks/table-head.js +8 -2
- package/dist/es/chunks/table-header.js +7 -1
- package/dist/es/chunks/table-row.js +8 -2
- package/dist/es/chunks/table.js +8 -2
- package/dist/es/chunks/table2.js +8 -2
- package/dist/es/chunks/tag.js +15 -9
- package/dist/es/chunks/text-input-affix.js +8 -2
- package/dist/es/chunks/text-input-button.js +8 -2
- package/dist/es/chunks/text-input.js +10 -9
- package/dist/es/chunks/textarea.js +14 -8
- package/dist/es/chunks/tooltip-content.js +38 -31
- package/dist/es/chunks/tooltip-root.js +2 -1
- package/dist/es/chunks/tooltip-trigger.js +1 -1
- package/dist/es/chunks/tooltip.js +17 -10
- package/dist/es/chunks/use-color-model.js +7 -11
- package/dist/es/chunks/useArrowNavigation.js +1 -1
- package/dist/es/chunks/useCalendar.js +656 -584
- package/dist/es/chunks/useComposing.js +1 -1
- package/dist/es/chunks/useDirection.js +1 -1
- package/dist/es/chunks/useEmitAsProps.js +1 -1
- package/dist/es/chunks/useFocusGuards.js +2 -2
- package/dist/es/chunks/useFormControl.js +2 -2
- package/dist/es/chunks/useForwardExpose.js +2 -2
- package/dist/es/chunks/useForwardProps.js +1 -1
- package/dist/es/chunks/useForwardPropsEmits.js +1 -1
- package/dist/es/chunks/useForwardScopeId.js +1 -1
- package/dist/es/chunks/useHideOthers.js +4 -4
- package/dist/es/chunks/useId.js +1 -1
- package/dist/es/chunks/useKbd.js +1 -1
- package/dist/es/chunks/useLocale.js +1 -1
- package/dist/es/chunks/useNonce.js +1 -1
- package/dist/es/chunks/usePrimitiveElement.js +2 -2
- package/dist/es/chunks/useSize.js +2 -2
- package/dist/es/chunks/useTypeahead.js +2 -2
- package/dist/es/chunks/utils.js +1 -1
- package/dist/es/chunks/utils2.js +1 -1
- package/dist/es/chunks/utils3.js +1 -1
- package/dist/es/color.js +1 -3
- package/dist/es/command-group.js +10 -4
- package/dist/es/command-input.js +11 -4
- package/dist/es/command-item.js +10 -3
- package/dist/es/command-list.js +10 -3
- package/dist/es/command-root.js +10 -3
- package/dist/es/command-separator.js +8 -2
- package/dist/es/index.js +9 -1
- package/dist/es/use-chart-motion.js +15 -0
- package/dist/es/use-locale.js +8 -0
- package/dist/es/use-sidebar.js +1 -1
- package/dist/utils/chart.d.ts +6 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +46 -44
- package/src/components/chart/bar-chart.vue +383 -0
- package/src/components/chart/chart-card.vue +99 -0
- package/src/components/chart/chart-legend.vue +164 -0
- package/src/components/chart/chart-plot.vue +350 -0
- package/src/components/chart/chart-tooltip.ts +35 -0
- package/src/components/chart/index.ts +13 -0
- package/src/components/chart/stories/bar-chart.stories.ts +319 -0
- package/src/components/color-picker/hue-slider.vue +1 -1
- package/src/components/file-upload/file-upload-area.vue +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/text-input/text-input.vue +1 -0
- package/src/components/tooltip/tooltip-content.vue +5 -1
- package/src/composables/index.ts +2 -0
- package/src/composables/use-chart-motion.ts +18 -0
- package/src/composables/use-locale.ts +8 -0
- package/src/utils/chart.ts +42 -0
- package/src/utils/index.ts +1 -0
- package/dist/cjs/chunks/core.cjs +0 -325
- package/dist/es/chunks/core.js +0 -289
|
@@ -3,7 +3,8 @@ import { n as snapValueToStep, t as clamp } from "./clamp.js";
|
|
|
3
3
|
import { t as createContext } from "./createContext.js";
|
|
4
4
|
import { t as getActiveElement } from "./getActiveElement.js";
|
|
5
5
|
import { t as isNullish } from "./nullish.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a as isClient, d as reactiveComputed, t as createEventHook } from "./dist.js";
|
|
7
|
+
import { f as useVModel, i as unrefElement, s as useEventListener } from "./dist2.js";
|
|
7
8
|
import { t as Primitive } from "./Primitive.js";
|
|
8
9
|
import { t as useComposing } from "./useComposing.js";
|
|
9
10
|
import { t as useFormControl } from "./useFormControl.js";
|
|
@@ -15,35 +16,41 @@ import { t as VisuallyHiddenInput_default } from "./VisuallyHiddenInput.js";
|
|
|
15
16
|
import { t as compact_button_default } from "./compact-button.js";
|
|
16
17
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
17
18
|
import { computed, createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, onMounted, openBlock, ref, renderSlot, toRefs, unref, watch, withCtx, withModifiers } from "vue";
|
|
18
|
-
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.
|
|
19
|
-
var $
|
|
20
|
-
var $
|
|
19
|
+
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.7/node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
|
|
20
|
+
var $1dfb119a85e764e5$var$formatterCache = /* @__PURE__ */ new Map();
|
|
21
|
+
var $1dfb119a85e764e5$var$supportsSignDisplay = false;
|
|
21
22
|
try {
|
|
22
|
-
$
|
|
23
|
+
$1dfb119a85e764e5$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
23
24
|
} catch {}
|
|
24
|
-
var $
|
|
25
|
+
var $1dfb119a85e764e5$var$supportsUnit = false;
|
|
25
26
|
try {
|
|
26
|
-
$
|
|
27
|
+
$1dfb119a85e764e5$var$supportsUnit = new Intl.NumberFormat("de-DE", {
|
|
27
28
|
style: "unit",
|
|
28
29
|
unit: "degree"
|
|
29
30
|
}).resolvedOptions().style === "unit";
|
|
30
31
|
} catch {}
|
|
31
|
-
var $
|
|
32
|
+
var $1dfb119a85e764e5$var$UNITS = { degree: { narrow: {
|
|
32
33
|
default: "°",
|
|
33
34
|
"ja-JP": " 度",
|
|
34
35
|
"zh-TW": "度",
|
|
35
36
|
"sl-SI": " °"
|
|
36
37
|
} } };
|
|
37
|
-
var $
|
|
38
|
-
|
|
38
|
+
var $1dfb119a85e764e5$export$cc77c4ff7e8673c5 = class {
|
|
39
|
+
constructor(locale, options = {}) {
|
|
40
|
+
this.numberFormatter = $1dfb119a85e764e5$var$getCachedNumberFormatter(locale, options);
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Formats a number value as a string, according to the locale and options provided to the
|
|
45
|
+
* constructor.
|
|
46
|
+
*/ format(value) {
|
|
39
47
|
let res = "";
|
|
40
|
-
if (!$
|
|
48
|
+
if (!$1dfb119a85e764e5$var$supportsSignDisplay && this.options.signDisplay != null) res = $1dfb119a85e764e5$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value);
|
|
41
49
|
else res = this.numberFormatter.format(value);
|
|
42
|
-
if (this.options.style === "unit" && !$
|
|
43
|
-
var _UNITS_unit;
|
|
50
|
+
if (this.options.style === "unit" && !$1dfb119a85e764e5$var$supportsUnit) {
|
|
44
51
|
let { unit, unitDisplay = "short", locale } = this.resolvedOptions();
|
|
45
52
|
if (!unit) return res;
|
|
46
|
-
let values =
|
|
53
|
+
let values = $1dfb119a85e764e5$var$UNITS[unit]?.[unitDisplay];
|
|
47
54
|
res += values[locale] || values.default;
|
|
48
55
|
}
|
|
49
56
|
return res;
|
|
@@ -79,11 +86,11 @@ var $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
|
|
|
79
86
|
}
|
|
80
87
|
/** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
|
|
81
88
|
let options = this.numberFormatter.resolvedOptions();
|
|
82
|
-
if (!$
|
|
89
|
+
if (!$1dfb119a85e764e5$var$supportsSignDisplay && this.options.signDisplay != null) options = {
|
|
83
90
|
...options,
|
|
84
91
|
signDisplay: this.options.signDisplay
|
|
85
92
|
};
|
|
86
|
-
if (!$
|
|
93
|
+
if (!$1dfb119a85e764e5$var$supportsUnit && this.options.style === "unit") options = {
|
|
87
94
|
...options,
|
|
88
95
|
style: "unit",
|
|
89
96
|
unit: this.options.unit,
|
|
@@ -91,41 +98,38 @@ var $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
|
|
|
91
98
|
};
|
|
92
99
|
return options;
|
|
93
100
|
}
|
|
94
|
-
constructor(locale, options = {}) {
|
|
95
|
-
this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options);
|
|
96
|
-
this.options = options;
|
|
97
|
-
}
|
|
98
101
|
};
|
|
99
|
-
function $
|
|
102
|
+
function $1dfb119a85e764e5$var$getCachedNumberFormatter(locale, options = {}) {
|
|
100
103
|
let { numberingSystem } = options;
|
|
101
104
|
if (numberingSystem && locale.includes("-nu-")) {
|
|
102
105
|
if (!locale.includes("-u-")) locale += "-u-";
|
|
103
106
|
locale += `-nu-${numberingSystem}`;
|
|
104
107
|
}
|
|
105
|
-
if (options.style === "unit" && !$
|
|
106
|
-
var _UNITS_unit;
|
|
108
|
+
if (options.style === "unit" && !$1dfb119a85e764e5$var$supportsUnit) {
|
|
107
109
|
let { unit, unitDisplay = "short" } = options;
|
|
108
110
|
if (!unit) throw new Error("unit option must be provided with style: \"unit\"");
|
|
109
|
-
if (
|
|
111
|
+
if (!$1dfb119a85e764e5$var$UNITS[unit]?.[unitDisplay]) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);
|
|
110
112
|
options = {
|
|
111
113
|
...options,
|
|
112
114
|
style: "decimal"
|
|
113
115
|
};
|
|
114
116
|
}
|
|
115
117
|
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
116
|
-
if ($
|
|
118
|
+
if ($1dfb119a85e764e5$var$formatterCache.has(cacheKey)) return $1dfb119a85e764e5$var$formatterCache.get(cacheKey);
|
|
117
119
|
let numberFormatter = new Intl.NumberFormat(locale, options);
|
|
118
|
-
$
|
|
120
|
+
$1dfb119a85e764e5$var$formatterCache.set(cacheKey, numberFormatter);
|
|
119
121
|
return numberFormatter;
|
|
120
122
|
}
|
|
121
|
-
function $
|
|
123
|
+
function $1dfb119a85e764e5$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {
|
|
122
124
|
if (signDisplay === "auto") return numberFormat.format(num);
|
|
123
125
|
else if (signDisplay === "never") return numberFormat.format(Math.abs(num));
|
|
124
126
|
else {
|
|
125
127
|
let needsPositiveSign = false;
|
|
126
128
|
if (signDisplay === "always") needsPositiveSign = num > 0 || Object.is(num, 0);
|
|
127
|
-
else if (signDisplay === "exceptZero")
|
|
128
|
-
|
|
129
|
+
else if (signDisplay === "exceptZero") {
|
|
130
|
+
if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);
|
|
131
|
+
else needsPositiveSign = num > 0;
|
|
132
|
+
}
|
|
129
133
|
if (needsPositiveSign) {
|
|
130
134
|
let negative = numberFormat.format(-num);
|
|
131
135
|
let noSign = numberFormat.format(num);
|
|
@@ -136,70 +140,88 @@ function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, nu
|
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
142
|
//#endregion
|
|
139
|
-
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.
|
|
140
|
-
var $
|
|
141
|
-
var $
|
|
143
|
+
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.7/node_modules/@internationalized/number/dist/private/NumberParser.mjs
|
|
144
|
+
var $eb76cf4feb040f77$var$CURRENCY_SIGN_REGEX = /* @__PURE__ */ new RegExp("^.*\\(.*\\).*$");
|
|
145
|
+
var $eb76cf4feb040f77$var$NUMBERING_SYSTEMS = [
|
|
142
146
|
"latn",
|
|
143
147
|
"arab",
|
|
144
148
|
"hanidec",
|
|
145
149
|
"deva",
|
|
146
|
-
"beng"
|
|
150
|
+
"beng",
|
|
151
|
+
"fullwide"
|
|
147
152
|
];
|
|
148
|
-
var $
|
|
153
|
+
var $eb76cf4feb040f77$export$cd11ab140839f11d = class {
|
|
154
|
+
constructor(locale, options = {}) {
|
|
155
|
+
this.locale = locale;
|
|
156
|
+
this.options = options;
|
|
157
|
+
}
|
|
149
158
|
/**
|
|
150
159
|
* Parses the given string to a number. Returns NaN if a valid number could not be parsed.
|
|
151
160
|
*/ parse(value) {
|
|
152
|
-
return $
|
|
161
|
+
return $eb76cf4feb040f77$var$getNumberParserImpl(this.locale, this.options, value).parse(value);
|
|
153
162
|
}
|
|
154
163
|
/**
|
|
155
164
|
* Returns whether the given string could potentially be a valid number. This should be used to
|
|
156
165
|
* validate user input as the user types. If a `minValue` or `maxValue` is provided, the validity
|
|
157
166
|
* of the minus/plus sign characters can be checked.
|
|
158
167
|
*/ isValidPartialNumber(value, minValue, maxValue) {
|
|
159
|
-
return $
|
|
168
|
+
return $eb76cf4feb040f77$var$getNumberParserImpl(this.locale, this.options, value).isValidPartialNumber(value, minValue, maxValue);
|
|
160
169
|
}
|
|
161
170
|
/**
|
|
162
171
|
* Returns a numbering system for which the given string is valid in the current locale.
|
|
163
172
|
* If no numbering system could be detected, the default numbering system for the current
|
|
164
173
|
* locale is returned.
|
|
165
174
|
*/ getNumberingSystem(value) {
|
|
166
|
-
return $
|
|
167
|
-
}
|
|
168
|
-
constructor(locale, options = {}) {
|
|
169
|
-
this.locale = locale;
|
|
170
|
-
this.options = options;
|
|
175
|
+
return $eb76cf4feb040f77$var$getNumberParserImpl(this.locale, this.options, value).options.numberingSystem;
|
|
171
176
|
}
|
|
172
177
|
};
|
|
173
|
-
var $
|
|
174
|
-
function $
|
|
175
|
-
let defaultParser = $
|
|
178
|
+
var $eb76cf4feb040f77$var$numberParserCache = /* @__PURE__ */ new Map();
|
|
179
|
+
function $eb76cf4feb040f77$var$getNumberParserImpl(locale, options, value) {
|
|
180
|
+
let defaultParser = $eb76cf4feb040f77$var$getCachedNumberParser(locale, options);
|
|
176
181
|
if (!locale.includes("-nu-") && !defaultParser.isValidPartialNumber(value)) {
|
|
177
|
-
for (let numberingSystem of $
|
|
178
|
-
let parser = $
|
|
182
|
+
for (let numberingSystem of $eb76cf4feb040f77$var$NUMBERING_SYSTEMS) if (numberingSystem !== defaultParser.options.numberingSystem) {
|
|
183
|
+
let parser = $eb76cf4feb040f77$var$getCachedNumberParser(locale + (locale.includes("-u-") ? "-nu-" : "-u-nu-") + numberingSystem, options);
|
|
179
184
|
if (parser.isValidPartialNumber(value)) return parser;
|
|
180
185
|
}
|
|
181
186
|
}
|
|
182
187
|
return defaultParser;
|
|
183
188
|
}
|
|
184
|
-
function $
|
|
189
|
+
function $eb76cf4feb040f77$var$getCachedNumberParser(locale, options) {
|
|
185
190
|
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
186
|
-
let parser = $
|
|
191
|
+
let parser = $eb76cf4feb040f77$var$numberParserCache.get(cacheKey);
|
|
187
192
|
if (!parser) {
|
|
188
|
-
parser = new $
|
|
189
|
-
$
|
|
193
|
+
parser = new $eb76cf4feb040f77$var$NumberParserImpl(locale, options);
|
|
194
|
+
$eb76cf4feb040f77$var$numberParserCache.set(cacheKey, parser);
|
|
190
195
|
}
|
|
191
196
|
return parser;
|
|
192
197
|
}
|
|
193
|
-
var $
|
|
198
|
+
var $eb76cf4feb040f77$var$NumberParserImpl = class {
|
|
199
|
+
constructor(locale, options = {}) {
|
|
200
|
+
this.locale = locale;
|
|
201
|
+
if (options.roundingIncrement !== 1 && options.roundingIncrement != null) {
|
|
202
|
+
if (options.maximumFractionDigits == null && options.minimumFractionDigits == null) {
|
|
203
|
+
options.maximumFractionDigits = 0;
|
|
204
|
+
options.minimumFractionDigits = 0;
|
|
205
|
+
} else if (options.maximumFractionDigits == null) options.maximumFractionDigits = options.minimumFractionDigits;
|
|
206
|
+
else if (options.minimumFractionDigits == null) options.minimumFractionDigits = options.maximumFractionDigits;
|
|
207
|
+
}
|
|
208
|
+
this.formatter = new Intl.NumberFormat(locale, options);
|
|
209
|
+
this.options = this.formatter.resolvedOptions();
|
|
210
|
+
this.symbols = $eb76cf4feb040f77$var$getSymbols(locale, this.formatter, this.options, options);
|
|
211
|
+
if (this.options.style === "percent" && ((this.options.minimumFractionDigits ?? 0) > 18 || (this.options.maximumFractionDigits ?? 0) > 18)) console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
|
|
212
|
+
}
|
|
194
213
|
parse(value) {
|
|
214
|
+
let isGroupSymbolAllowed = this.formatter.resolvedOptions().useGrouping;
|
|
195
215
|
let fullySanitizedValue = this.sanitize(value);
|
|
196
|
-
if (this.symbols.group
|
|
216
|
+
if (!isGroupSymbolAllowed && this.symbols.group && fullySanitizedValue.includes(this.symbols.group)) return NaN;
|
|
217
|
+
else if (this.symbols.group) fullySanitizedValue = fullySanitizedValue.replaceAll(this.symbols.group, "");
|
|
197
218
|
if (this.symbols.decimal) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.decimal, ".");
|
|
198
219
|
if (this.symbols.minusSign) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.minusSign, "-");
|
|
199
220
|
fullySanitizedValue = fullySanitizedValue.replace(this.symbols.numeral, this.symbols.index);
|
|
200
221
|
if (this.options.style === "percent") {
|
|
201
222
|
let isNegative = fullySanitizedValue.indexOf("-");
|
|
202
223
|
fullySanitizedValue = fullySanitizedValue.replace("-", "");
|
|
224
|
+
fullySanitizedValue = fullySanitizedValue.replace("+", "");
|
|
203
225
|
let index = fullySanitizedValue.indexOf(".");
|
|
204
226
|
if (index === -1) index = fullySanitizedValue.length;
|
|
205
227
|
fullySanitizedValue = fullySanitizedValue.replace(".", "");
|
|
@@ -212,52 +234,50 @@ var $6c7bd7858deea686$var$NumberParserImpl = class {
|
|
|
212
234
|
let newValue = fullySanitizedValue ? +fullySanitizedValue : NaN;
|
|
213
235
|
if (isNaN(newValue)) return NaN;
|
|
214
236
|
if (this.options.style === "percent") {
|
|
215
|
-
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
216
237
|
let options = {
|
|
217
238
|
...this.options,
|
|
218
239
|
style: "decimal",
|
|
219
|
-
minimumFractionDigits: Math.min((
|
|
220
|
-
maximumFractionDigits: Math.min((
|
|
240
|
+
minimumFractionDigits: Math.min((this.options.minimumFractionDigits ?? 0) + 2, 20),
|
|
241
|
+
maximumFractionDigits: Math.min((this.options.maximumFractionDigits ?? 0) + 2, 20)
|
|
221
242
|
};
|
|
222
|
-
return new $
|
|
243
|
+
return new $eb76cf4feb040f77$export$cd11ab140839f11d(this.locale, options).parse(new $1dfb119a85e764e5$export$cc77c4ff7e8673c5(this.locale, options).format(newValue));
|
|
223
244
|
}
|
|
224
|
-
if (this.options.currencySign === "accounting" && $
|
|
245
|
+
if (this.options.currencySign === "accounting" && $eb76cf4feb040f77$var$CURRENCY_SIGN_REGEX.test(value)) newValue = -1 * newValue;
|
|
225
246
|
return newValue;
|
|
226
247
|
}
|
|
227
248
|
sanitize(value) {
|
|
249
|
+
let isGroupSymbolAllowed = this.formatter.resolvedOptions().useGrouping;
|
|
250
|
+
if (this.symbols.noNumeralUnits.length > 0 && this.symbols.noNumeralUnits.find((obj) => obj.unit === value)) return this.symbols.noNumeralUnits.find((obj) => obj.unit === value).value.toString();
|
|
228
251
|
value = value.replace(this.symbols.literals, "");
|
|
229
252
|
if (this.symbols.minusSign) value = value.replace("-", this.symbols.minusSign);
|
|
230
253
|
if (this.options.numberingSystem === "arab") {
|
|
231
254
|
if (this.symbols.decimal) {
|
|
232
|
-
value = value
|
|
233
|
-
value = value
|
|
255
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, ",", this.symbols.decimal);
|
|
256
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, String.fromCharCode(1548), this.symbols.decimal);
|
|
234
257
|
}
|
|
235
|
-
if (this.symbols.group) value = $
|
|
258
|
+
if (this.symbols.group && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, ".", this.symbols.group);
|
|
259
|
+
}
|
|
260
|
+
if (this.symbols.group === "’" && value.includes("'") && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, "'", this.symbols.group);
|
|
261
|
+
if (this.symbols.group === "'" && value.includes("’") && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, "’", this.symbols.group);
|
|
262
|
+
if (this.options.locale === "fr-FR" && this.symbols.group && isGroupSymbolAllowed) {
|
|
263
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, " ", this.symbols.group);
|
|
264
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, /\u00A0/g, this.symbols.group);
|
|
236
265
|
}
|
|
237
|
-
if (this.options.locale === "fr-FR") value = $6c7bd7858deea686$var$replaceAll(value, ".", String.fromCharCode(8239));
|
|
238
266
|
return value;
|
|
239
267
|
}
|
|
240
268
|
isValidPartialNumber(value, minValue = -Infinity, maxValue = Infinity) {
|
|
269
|
+
let isGroupSymbolAllowed = this.formatter.resolvedOptions().useGrouping;
|
|
241
270
|
value = this.sanitize(value);
|
|
242
271
|
if (this.symbols.minusSign && value.startsWith(this.symbols.minusSign) && minValue < 0) value = value.slice(this.symbols.minusSign.length);
|
|
243
272
|
else if (this.symbols.plusSign && value.startsWith(this.symbols.plusSign) && maxValue > 0) value = value.slice(this.symbols.plusSign.length);
|
|
244
|
-
if (this.symbols.group && value.startsWith(this.symbols.group)) return false;
|
|
245
273
|
if (this.symbols.decimal && value.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0) return false;
|
|
246
|
-
if (this.symbols.group) value = $
|
|
274
|
+
if (this.symbols.group && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, this.symbols.group, "");
|
|
247
275
|
value = value.replace(this.symbols.numeral, "");
|
|
248
276
|
if (this.symbols.decimal) value = value.replace(this.symbols.decimal, "");
|
|
249
277
|
return value.length === 0;
|
|
250
278
|
}
|
|
251
|
-
constructor(locale, options = {}) {
|
|
252
|
-
this.locale = locale;
|
|
253
|
-
this.formatter = new Intl.NumberFormat(locale, options);
|
|
254
|
-
this.options = this.formatter.resolvedOptions();
|
|
255
|
-
this.symbols = $6c7bd7858deea686$var$getSymbols(locale, this.formatter, this.options, options);
|
|
256
|
-
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
257
|
-
if (this.options.style === "percent" && (((_this_options_minimumFractionDigits = this.options.minimumFractionDigits) !== null && _this_options_minimumFractionDigits !== void 0 ? _this_options_minimumFractionDigits : 0) > 18 || ((_this_options_maximumFractionDigits = this.options.maximumFractionDigits) !== null && _this_options_maximumFractionDigits !== void 0 ? _this_options_maximumFractionDigits : 0) > 18)) console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
|
|
258
|
-
}
|
|
259
279
|
};
|
|
260
|
-
var $
|
|
280
|
+
var $eb76cf4feb040f77$var$nonLiteralParts = /* @__PURE__ */ new Set([
|
|
261
281
|
"decimal",
|
|
262
282
|
"fraction",
|
|
263
283
|
"integer",
|
|
@@ -265,7 +285,7 @@ var $6c7bd7858deea686$var$nonLiteralParts = new Set([
|
|
|
265
285
|
"plusSign",
|
|
266
286
|
"group"
|
|
267
287
|
]);
|
|
268
|
-
var $
|
|
288
|
+
var $eb76cf4feb040f77$var$pluralNumbers = [
|
|
269
289
|
0,
|
|
270
290
|
4,
|
|
271
291
|
2,
|
|
@@ -279,33 +299,40 @@ var $6c7bd7858deea686$var$pluralNumbers = [
|
|
|
279
299
|
.1,
|
|
280
300
|
1.1
|
|
281
301
|
];
|
|
282
|
-
function $
|
|
283
|
-
var _allParts_find, _posAllParts_find, _decimalParts_find, _allParts_find1;
|
|
302
|
+
function $eb76cf4feb040f77$var$getSymbols(locale, formatter, intlOptions, originalOptions) {
|
|
284
303
|
let symbolFormatter = new Intl.NumberFormat(locale, {
|
|
285
304
|
...intlOptions,
|
|
286
305
|
minimumSignificantDigits: 1,
|
|
287
306
|
maximumSignificantDigits: 21,
|
|
288
307
|
roundingIncrement: 1,
|
|
289
308
|
roundingPriority: "auto",
|
|
290
|
-
roundingMode: "halfExpand"
|
|
309
|
+
roundingMode: "halfExpand",
|
|
310
|
+
useGrouping: true
|
|
291
311
|
});
|
|
292
312
|
let allParts = symbolFormatter.formatToParts(-10000.111);
|
|
293
313
|
let posAllParts = symbolFormatter.formatToParts(10000.111);
|
|
294
|
-
let pluralParts = $
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
314
|
+
let pluralParts = $eb76cf4feb040f77$var$pluralNumbers.map((n) => symbolFormatter.formatToParts(n));
|
|
315
|
+
let noNumeralUnits = pluralParts.map((p, i) => {
|
|
316
|
+
let unit = p.find((p) => p.type === "unit");
|
|
317
|
+
if (unit && !p.some((p) => p.type === "integer" || p.type === "fraction")) return {
|
|
318
|
+
unit: unit.value,
|
|
319
|
+
value: $eb76cf4feb040f77$var$pluralNumbers[i]
|
|
320
|
+
};
|
|
321
|
+
return null;
|
|
322
|
+
}).filter((p) => !!p);
|
|
323
|
+
let minusSign = allParts.find((p) => p.type === "minusSign")?.value ?? "-";
|
|
324
|
+
let plusSign = posAllParts.find((p) => p.type === "plusSign")?.value;
|
|
325
|
+
if (!plusSign && (originalOptions?.signDisplay === "exceptZero" || originalOptions?.signDisplay === "always")) plusSign = "+";
|
|
326
|
+
let decimal = new Intl.NumberFormat(locale, {
|
|
300
327
|
...intlOptions,
|
|
301
328
|
minimumFractionDigits: 2,
|
|
302
329
|
maximumFractionDigits: 2
|
|
303
|
-
}).formatToParts(.001).find((p) => p.type === "decimal")
|
|
304
|
-
let group =
|
|
305
|
-
let allPartsLiterals = allParts.filter((p) => !$
|
|
306
|
-
let pluralPartsLiterals = pluralParts.flatMap((p) => p.filter((p) => !$
|
|
307
|
-
let sortedLiterals = [
|
|
308
|
-
let literals = sortedLiterals.length === 0 ? /* @__PURE__ */ new RegExp("
|
|
330
|
+
}).formatToParts(.001).find((p) => p.type === "decimal")?.value;
|
|
331
|
+
let group = allParts.find((p) => p.type === "group")?.value;
|
|
332
|
+
let allPartsLiterals = allParts.filter((p) => !$eb76cf4feb040f77$var$nonLiteralParts.has(p.type)).map((p) => $eb76cf4feb040f77$var$escapeRegex(p.value));
|
|
333
|
+
let pluralPartsLiterals = pluralParts.flatMap((p) => p.filter((p) => !$eb76cf4feb040f77$var$nonLiteralParts.has(p.type)).map((p) => $eb76cf4feb040f77$var$escapeRegex(p.value)));
|
|
334
|
+
let sortedLiterals = [.../* @__PURE__ */ new Set([...allPartsLiterals, ...pluralPartsLiterals])].sort((a, b) => b.length - a.length);
|
|
335
|
+
let literals = sortedLiterals.length === 0 ? /* @__PURE__ */ new RegExp("\\p{White_Space}|\\p{Cf}", "gu") : new RegExp(`${sortedLiterals.join("|")}|\\p{White_Space}|\\p{Cf}`, "gu");
|
|
309
336
|
let numerals = [...new Intl.NumberFormat(intlOptions.locale, { useGrouping: false }).format(9876543210)].reverse();
|
|
310
337
|
let indexes = new Map(numerals.map((d, i) => [d, i]));
|
|
311
338
|
let numeral = new RegExp(`[${numerals.join("")}]`, "g");
|
|
@@ -317,18 +344,20 @@ function $6c7bd7858deea686$var$getSymbols(locale, formatter, intlOptions, origin
|
|
|
317
344
|
group,
|
|
318
345
|
literals,
|
|
319
346
|
numeral,
|
|
320
|
-
|
|
347
|
+
numerals,
|
|
348
|
+
index,
|
|
349
|
+
noNumeralUnits
|
|
321
350
|
};
|
|
322
351
|
}
|
|
323
|
-
function $
|
|
352
|
+
function $eb76cf4feb040f77$var$replaceAll(str, find, replace) {
|
|
324
353
|
if (str.replaceAll) return str.replaceAll(find, replace);
|
|
325
354
|
return str.split(find).join(replace);
|
|
326
355
|
}
|
|
327
|
-
function $
|
|
356
|
+
function $eb76cf4feb040f77$var$escapeRegex(string) {
|
|
328
357
|
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
329
358
|
}
|
|
330
359
|
//#endregion
|
|
331
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
360
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/utils.js
|
|
332
361
|
function usePressedHold(options) {
|
|
333
362
|
const { disabled } = options;
|
|
334
363
|
const timeout = ref();
|
|
@@ -371,10 +400,10 @@ function usePressedHold(options) {
|
|
|
371
400
|
};
|
|
372
401
|
}
|
|
373
402
|
function useNumberFormatter(locale, options = ref({})) {
|
|
374
|
-
return reactiveComputed(() => new $
|
|
403
|
+
return reactiveComputed(() => new $1dfb119a85e764e5$export$cc77c4ff7e8673c5(locale.value, options.value));
|
|
375
404
|
}
|
|
376
405
|
function useNumberParser(locale, options = ref({})) {
|
|
377
|
-
return reactiveComputed(() => new $
|
|
406
|
+
return reactiveComputed(() => new $eb76cf4feb040f77$export$cd11ab140839f11d(locale.value, options.value));
|
|
378
407
|
}
|
|
379
408
|
function handleDecimalOperation(operator, value1, value2) {
|
|
380
409
|
let result = operator === "+" ? value1 + value2 : value1 - value2;
|
|
@@ -392,8 +421,8 @@ function handleDecimalOperation(operator, value1, value2) {
|
|
|
392
421
|
return result;
|
|
393
422
|
}
|
|
394
423
|
//#endregion
|
|
395
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
396
|
-
var [injectNumberFieldRootContext, provideNumberFieldRootContext] =
|
|
424
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldRoot.js
|
|
425
|
+
var [injectNumberFieldRootContext, provideNumberFieldRootContext] = /*#__PURE__*/ createContext("NumberFieldRoot");
|
|
397
426
|
var NumberFieldRoot_default = /* @__PURE__ */ defineComponent({
|
|
398
427
|
inheritAttrs: false,
|
|
399
428
|
__name: "NumberFieldRoot",
|
|
@@ -619,7 +648,7 @@ var NumberFieldRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
619
648
|
}
|
|
620
649
|
});
|
|
621
650
|
//#endregion
|
|
622
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
651
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldDecrement.js
|
|
623
652
|
var NumberFieldDecrement_default = /* @__PURE__ */ defineComponent({
|
|
624
653
|
__name: "NumberFieldDecrement",
|
|
625
654
|
props: {
|
|
@@ -675,7 +704,7 @@ var NumberFieldDecrement_default = /* @__PURE__ */ defineComponent({
|
|
|
675
704
|
}
|
|
676
705
|
});
|
|
677
706
|
//#endregion
|
|
678
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
707
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldIncrement.js
|
|
679
708
|
var NumberFieldIncrement_default = /* @__PURE__ */ defineComponent({
|
|
680
709
|
__name: "NumberFieldIncrement",
|
|
681
710
|
props: {
|
|
@@ -731,7 +760,7 @@ var NumberFieldIncrement_default = /* @__PURE__ */ defineComponent({
|
|
|
731
760
|
}
|
|
732
761
|
});
|
|
733
762
|
//#endregion
|
|
734
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
763
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldInput.js
|
|
735
764
|
var NumberFieldInput_default = /* @__PURE__ */ defineComponent({
|
|
736
765
|
__name: "NumberFieldInput",
|
|
737
766
|
props: {
|
|
@@ -778,9 +807,7 @@ var NumberFieldInput_default = /* @__PURE__ */ defineComponent({
|
|
|
778
807
|
event.preventDefault();
|
|
779
808
|
rootContext.handleMinMaxValue("max");
|
|
780
809
|
break;
|
|
781
|
-
case kbd.ENTER:
|
|
782
|
-
rootContext.applyInputValue(event.target?.value);
|
|
783
|
-
break;
|
|
810
|
+
case kbd.ENTER: rootContext.applyInputValue(event.target?.value);
|
|
784
811
|
}
|
|
785
812
|
}
|
|
786
813
|
function handleWheelEvent(event) {
|
|
@@ -836,7 +863,8 @@ var NumberFieldInput_default = /* @__PURE__ */ defineComponent({
|
|
|
836
863
|
if (!unref(rootContext).validate(nextValue)) event.preventDefault();
|
|
837
864
|
}),
|
|
838
865
|
onInput: _cache[1] || (_cache[1] = (event) => {
|
|
839
|
-
|
|
866
|
+
const target = event.target;
|
|
867
|
+
inputValue.value = target.value;
|
|
840
868
|
}),
|
|
841
869
|
onChange: handleChange,
|
|
842
870
|
onBlur: _cache[2] || (_cache[2] = ($event) => unref(rootContext).applyInputValue($event.target?.value)),
|
|
@@ -885,7 +913,13 @@ var counter_input_default = /* @__PURE__ */ defineComponent({
|
|
|
885
913
|
as: {},
|
|
886
914
|
name: {},
|
|
887
915
|
required: { type: Boolean },
|
|
888
|
-
class: {
|
|
916
|
+
class: { type: [
|
|
917
|
+
Boolean,
|
|
918
|
+
null,
|
|
919
|
+
String,
|
|
920
|
+
Object,
|
|
921
|
+
Array
|
|
922
|
+
] },
|
|
889
923
|
size: { default: "md" },
|
|
890
924
|
hasError: {
|
|
891
925
|
type: Boolean,
|
|
@@ -896,10 +930,11 @@ var counter_input_default = /* @__PURE__ */ defineComponent({
|
|
|
896
930
|
setup(__props, { emit: __emit }) {
|
|
897
931
|
const props = __props;
|
|
898
932
|
const emits = __emit;
|
|
899
|
-
const
|
|
933
|
+
const delegatedProps = useDelegatedProps(props, "class");
|
|
934
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
900
935
|
return (_ctx, _cache) => {
|
|
901
936
|
return openBlock(), createBlock(unref(NumberFieldRoot_default), mergeProps(unref(forwarded), {
|
|
902
|
-
"has-error":
|
|
937
|
+
"has-error": __props.hasError,
|
|
903
938
|
class: unref(clsx)("celeste-counter-input-wrapper", props.class)
|
|
904
939
|
}), {
|
|
905
940
|
default: withCtx(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, provide } from "vue";
|
|
2
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
2
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/createContext.js
|
|
3
3
|
/**
|
|
4
4
|
* @param providerComponentName - The name(s) of the component(s) providing the context.
|
|
5
5
|
*
|
|
@@ -12,16 +12,22 @@ var _hoisted_2 = {
|
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/components/date-picker/date-picker.vue
|
|
15
|
-
var date_picker_default =
|
|
15
|
+
var date_picker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
16
16
|
__name: "date-picker",
|
|
17
|
-
props:
|
|
17
|
+
props: /*@__PURE__*/ mergeModels({
|
|
18
18
|
footer: {
|
|
19
19
|
type: Boolean,
|
|
20
20
|
default: true
|
|
21
21
|
},
|
|
22
22
|
cancelLabel: { default: "Cancel" },
|
|
23
23
|
applyLabel: { default: "Apply" },
|
|
24
|
-
class: {
|
|
24
|
+
class: { type: [
|
|
25
|
+
Boolean,
|
|
26
|
+
null,
|
|
27
|
+
String,
|
|
28
|
+
Object,
|
|
29
|
+
Array
|
|
30
|
+
] },
|
|
25
31
|
markedDates: {},
|
|
26
32
|
defaultValue: {},
|
|
27
33
|
defaultPlaceholder: {},
|
|
@@ -52,7 +58,7 @@ var date_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
52
58
|
"modelValue": {},
|
|
53
59
|
"modelModifiers": {}
|
|
54
60
|
}),
|
|
55
|
-
emits:
|
|
61
|
+
emits: /*@__PURE__*/ mergeModels(["apply", "cancel"], ["update:modelValue"]),
|
|
56
62
|
setup(__props, { emit: __emit }) {
|
|
57
63
|
const props = __props;
|
|
58
64
|
const emits = __emit;
|
|
@@ -68,13 +74,13 @@ var date_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
68
74
|
return openBlock(), createElementBlock("div", { class: normalizeClass(cardClass.value) }, [createElementVNode("div", _hoisted_1, [createVNode(calendar_default, mergeProps({
|
|
69
75
|
modelValue: modelValue.value,
|
|
70
76
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
71
|
-
}, unref(calendarProps)), null, 16, ["modelValue"])]),
|
|
77
|
+
}, unref(calendarProps)), null, 16, ["modelValue"])]), __props.footer ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(button_default, {
|
|
72
78
|
class: "celeste-date-picker-action",
|
|
73
79
|
variant: "stroke",
|
|
74
80
|
intent: "neutral",
|
|
75
81
|
onClick: _cache[1] || (_cache[1] = ($event) => emits("cancel"))
|
|
76
82
|
}, {
|
|
77
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
83
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.cancelLabel), 1)]),
|
|
78
84
|
_: 1
|
|
79
85
|
}), createVNode(button_default, {
|
|
80
86
|
class: "celeste-date-picker-action",
|
|
@@ -82,7 +88,7 @@ var date_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
82
88
|
intent: "primary",
|
|
83
89
|
onClick: _cache[2] || (_cache[2] = ($event) => emits("apply", modelValue.value))
|
|
84
90
|
}, {
|
|
85
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
91
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.applyLabel), 1)]),
|
|
86
92
|
_: 1
|
|
87
93
|
})])) : createCommentVNode("", true)], 2);
|
|
88
94
|
};
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx.js";
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { f as reactiveOmit } from "./dist.js";
|
|
3
4
|
import { t as Primitive } from "./Primitive.js";
|
|
4
5
|
import { t as useForwardProps } from "./useForwardProps.js";
|
|
5
|
-
import { o as reactiveOmit } from "./core.js";
|
|
6
6
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/components/digit-input/digit-input-group.vue
|
|
9
|
-
var digit_input_group_default =
|
|
9
|
+
var digit_input_group_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "digit-input-group",
|
|
11
11
|
props: {
|
|
12
12
|
asChild: { type: Boolean },
|
|
13
13
|
as: {},
|
|
14
|
-
class: {
|
|
14
|
+
class: { type: [
|
|
15
|
+
Boolean,
|
|
16
|
+
null,
|
|
17
|
+
String,
|
|
18
|
+
Object,
|
|
19
|
+
Array
|
|
20
|
+
] }
|
|
15
21
|
},
|
|
16
22
|
setup(__props) {
|
|
17
23
|
const props = __props;
|
|
18
|
-
const
|
|
24
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
25
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
19
26
|
return (_ctx, _cache) => {
|
|
20
27
|
return openBlock(), createBlock(unref(Primitive), mergeProps(unref(forwardedProps), { class: unref(clsx)("celeste-digit-input-group", props.class) }), {
|
|
21
28
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|