@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
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
require("./chunk.cjs");
|
|
2
1
|
const require_PopperContent = require("./PopperContent.cjs");
|
|
3
|
-
const require_dist = require("./
|
|
2
|
+
const require_dist = require("./dist3.cjs");
|
|
4
3
|
let vue = require("vue");
|
|
5
|
-
//#region ../../node_modules/.pnpm/prosemirror-tables@1.
|
|
4
|
+
//#region ../../node_modules/.pnpm/prosemirror-tables@1.8.5/node_modules/prosemirror-tables/dist/index.js
|
|
6
5
|
var readFromCache;
|
|
7
6
|
var addToCache;
|
|
8
7
|
if (typeof WeakMap != "undefined") {
|
|
@@ -25,6 +24,14 @@ if (typeof WeakMap != "undefined") {
|
|
|
25
24
|
return cache[cachePos++] = value;
|
|
26
25
|
};
|
|
27
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* A table map describes the structure of a given table. To avoid
|
|
29
|
+
* recomputing them all the time, they are cached per table node. To
|
|
30
|
+
* be able to do that, positions saved in the map are relative to the
|
|
31
|
+
* start of the table, rather than the start of the document.
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
28
35
|
var TableMap = class {
|
|
29
36
|
constructor(width, height, map, problems) {
|
|
30
37
|
this.width = width;
|
|
@@ -219,6 +226,9 @@ function freshColWidth(attrs) {
|
|
|
219
226
|
for (let i = 0; i < attrs.colspan; i++) result.push(0);
|
|
220
227
|
return result;
|
|
221
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
222
232
|
function tableNodeTypes(schema) {
|
|
223
233
|
let result = schema.cached.tableNodeTypes;
|
|
224
234
|
if (!result) {
|
|
@@ -231,15 +241,24 @@ function tableNodeTypes(schema) {
|
|
|
231
241
|
return result;
|
|
232
242
|
}
|
|
233
243
|
new require_dist.PluginKey("selectingCells");
|
|
244
|
+
/**
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
234
247
|
function cellAround($pos) {
|
|
235
248
|
for (let d = $pos.depth - 1; d > 0; d--) if ($pos.node(d).type.spec.tableRole == "row") return $pos.node(0).resolve($pos.before(d + 1));
|
|
236
249
|
return null;
|
|
237
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
238
254
|
function isInTable(state) {
|
|
239
255
|
const $head = state.selection.$head;
|
|
240
256
|
for (let d = $head.depth; d > 0; d--) if ($head.node(d).type.spec.tableRole == "row") return true;
|
|
241
257
|
return false;
|
|
242
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
243
262
|
function selectionCell(state) {
|
|
244
263
|
const sel = state.selection;
|
|
245
264
|
if ("$anchorCell" in sel && sel.$anchorCell) return sel.$anchorCell.pos > sel.$headCell.pos ? sel.$anchorCell : sel.$headCell;
|
|
@@ -248,6 +267,9 @@ function selectionCell(state) {
|
|
|
248
267
|
if ($cell) return $cell;
|
|
249
268
|
throw new RangeError(`No cell found around position ${sel.head}`);
|
|
250
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
251
273
|
function cellNear($pos) {
|
|
252
274
|
for (let after = $pos.nodeAfter, pos = $pos.pos; after; after = after.firstChild, pos++) {
|
|
253
275
|
const role = after.type.spec.tableRole;
|
|
@@ -258,12 +280,21 @@ function cellNear($pos) {
|
|
|
258
280
|
if (role == "cell" || role == "header_cell") return $pos.doc.resolve(pos - before.nodeSize);
|
|
259
281
|
}
|
|
260
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* @public
|
|
285
|
+
*/
|
|
261
286
|
function pointsAtCell($pos) {
|
|
262
287
|
return $pos.parent.type.spec.tableRole == "row" && !!$pos.nodeAfter;
|
|
263
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
264
292
|
function inSameTable($cellA, $cellB) {
|
|
265
293
|
return $cellA.depth == $cellB.depth && $cellA.pos >= $cellB.start(-1) && $cellA.pos <= $cellB.end(-1);
|
|
266
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* @public
|
|
297
|
+
*/
|
|
267
298
|
function nextCell($pos, axis, dir) {
|
|
268
299
|
const table = $pos.node(-1);
|
|
269
300
|
const map = TableMap.get(table);
|
|
@@ -271,6 +302,9 @@ function nextCell($pos, axis, dir) {
|
|
|
271
302
|
const moved = map.nextCell($pos.pos - tableStart, axis, dir);
|
|
272
303
|
return moved == null ? null : $pos.node(0).resolve(tableStart + moved);
|
|
273
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
274
308
|
function removeColSpan(attrs, pos, n = 1) {
|
|
275
309
|
const result = {
|
|
276
310
|
...attrs,
|
|
@@ -283,7 +317,16 @@ function removeColSpan(attrs, pos, n = 1) {
|
|
|
283
317
|
}
|
|
284
318
|
return result;
|
|
285
319
|
}
|
|
286
|
-
|
|
320
|
+
/**
|
|
321
|
+
* A [`Selection`](http://prosemirror.net/docs/ref/#state.Selection)
|
|
322
|
+
* subclass that represents a cell selection spanning part of a table.
|
|
323
|
+
* With the plugin enabled, these will be created when the user
|
|
324
|
+
* selects across cells, and will be drawn by giving selected cells a
|
|
325
|
+
* `selectedCell` CSS class.
|
|
326
|
+
*
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
var CellSelection = class CellSelection extends require_dist.Selection {
|
|
287
330
|
constructor($anchorCell, $headCell = $anchorCell) {
|
|
288
331
|
const table = $anchorCell.node(-1);
|
|
289
332
|
const map = TableMap.get(table);
|
|
@@ -294,7 +337,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
294
337
|
cells.unshift($headCell.pos - tableStart);
|
|
295
338
|
const ranges = cells.map((pos) => {
|
|
296
339
|
const cell = table.nodeAt(pos);
|
|
297
|
-
if (!cell) throw RangeError(`No cell with offset ${pos} found`);
|
|
340
|
+
if (!cell) throw new RangeError(`No cell with offset ${pos} found`);
|
|
298
341
|
const from = tableStart + pos + 1;
|
|
299
342
|
return new require_dist.SelectionRange(doc.resolve(from), doc.resolve(from + cell.content.size));
|
|
300
343
|
});
|
|
@@ -307,9 +350,9 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
307
350
|
const $headCell = doc.resolve(mapping.map(this.$headCell.pos));
|
|
308
351
|
if (pointsAtCell($anchorCell) && pointsAtCell($headCell) && inSameTable($anchorCell, $headCell)) {
|
|
309
352
|
const tableChanged = this.$anchorCell.node(-1) != $anchorCell.node(-1);
|
|
310
|
-
if (tableChanged && this.isRowSelection()) return
|
|
311
|
-
else if (tableChanged && this.isColSelection()) return
|
|
312
|
-
else return new
|
|
353
|
+
if (tableChanged && this.isRowSelection()) return CellSelection.rowSelection($anchorCell, $headCell);
|
|
354
|
+
else if (tableChanged && this.isColSelection()) return CellSelection.colSelection($anchorCell, $headCell);
|
|
355
|
+
else return new CellSelection($anchorCell, $headCell);
|
|
313
356
|
}
|
|
314
357
|
return require_dist.TextSelection.between($anchorCell, $headCell);
|
|
315
358
|
}
|
|
@@ -328,7 +371,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
328
371
|
seen[pos] = true;
|
|
329
372
|
const cellRect = map.findCell(pos);
|
|
330
373
|
let cell = table.nodeAt(pos);
|
|
331
|
-
if (!cell) throw RangeError(`No cell with offset ${pos} found`);
|
|
374
|
+
if (!cell) throw new RangeError(`No cell with offset ${pos} found`);
|
|
332
375
|
const extraLeft = rect.left - cellRect.left;
|
|
333
376
|
const extraRight = cellRect.right - rect.right;
|
|
334
377
|
if (extraLeft > 0 || extraRight > 0) {
|
|
@@ -337,7 +380,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
337
380
|
if (extraRight > 0) attrs = removeColSpan(attrs, attrs.colspan - extraRight, extraRight);
|
|
338
381
|
if (cellRect.left < rect.left) {
|
|
339
382
|
cell = cell.type.createAndFill(attrs);
|
|
340
|
-
if (!cell) throw RangeError(`Could not create cell with attrs ${JSON.stringify(attrs)}`);
|
|
383
|
+
if (!cell) throw new RangeError(`Could not create cell with attrs ${JSON.stringify(attrs)}`);
|
|
341
384
|
} else cell = cell.type.create(attrs, cell.content);
|
|
342
385
|
}
|
|
343
386
|
if (cellRect.top < rect.top || cellRect.bottom > rect.bottom) {
|
|
@@ -396,7 +439,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
396
439
|
if (headRect.top > 0) $headCell = doc.resolve(tableStart + map.map[headRect.left]);
|
|
397
440
|
if (anchorRect.bottom < map.height) $anchorCell = doc.resolve(tableStart + map.map[map.width * (map.height - 1) + anchorRect.right - 1]);
|
|
398
441
|
}
|
|
399
|
-
return new
|
|
442
|
+
return new CellSelection($anchorCell, $headCell);
|
|
400
443
|
}
|
|
401
444
|
isRowSelection() {
|
|
402
445
|
const table = this.$anchorCell.node(-1);
|
|
@@ -410,7 +453,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
410
453
|
return Math.max(anchorRight, headRight) == map.width;
|
|
411
454
|
}
|
|
412
455
|
eq(other) {
|
|
413
|
-
return other instanceof
|
|
456
|
+
return other instanceof CellSelection && other.$anchorCell.pos == this.$anchorCell.pos && other.$headCell.pos == this.$headCell.pos;
|
|
414
457
|
}
|
|
415
458
|
static rowSelection($anchorCell, $headCell = $anchorCell) {
|
|
416
459
|
const table = $anchorCell.node(-1);
|
|
@@ -426,7 +469,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
426
469
|
if (headRect.left > 0) $headCell = doc.resolve(tableStart + map.map[headRect.top * map.width]);
|
|
427
470
|
if (anchorRect.right < map.width) $anchorCell = doc.resolve(tableStart + map.map[map.width * (anchorRect.top + 1) - 1]);
|
|
428
471
|
}
|
|
429
|
-
return new
|
|
472
|
+
return new CellSelection($anchorCell, $headCell);
|
|
430
473
|
}
|
|
431
474
|
toJSON() {
|
|
432
475
|
return {
|
|
@@ -436,10 +479,10 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
436
479
|
};
|
|
437
480
|
}
|
|
438
481
|
static fromJSON(doc, json) {
|
|
439
|
-
return new
|
|
482
|
+
return new CellSelection(doc.resolve(json.anchor), doc.resolve(json.head));
|
|
440
483
|
}
|
|
441
484
|
static create(doc, anchorCell, headCell = anchorCell) {
|
|
442
|
-
return new
|
|
485
|
+
return new CellSelection(doc.resolve(anchorCell), doc.resolve(headCell));
|
|
443
486
|
}
|
|
444
487
|
getBookmark() {
|
|
445
488
|
return new CellBookmark(this.$anchorCell.pos, this.$headCell.pos);
|
|
@@ -447,13 +490,16 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
|
|
|
447
490
|
};
|
|
448
491
|
CellSelection.prototype.visible = false;
|
|
449
492
|
require_dist.Selection.jsonID("cell", CellSelection);
|
|
450
|
-
|
|
493
|
+
/**
|
|
494
|
+
* @public
|
|
495
|
+
*/
|
|
496
|
+
var CellBookmark = class CellBookmark {
|
|
451
497
|
constructor(anchor, head) {
|
|
452
498
|
this.anchor = anchor;
|
|
453
499
|
this.head = head;
|
|
454
500
|
}
|
|
455
501
|
map(mapping) {
|
|
456
|
-
return new
|
|
502
|
+
return new CellBookmark(mapping.map(this.anchor), mapping.map(this.head));
|
|
457
503
|
}
|
|
458
504
|
resolve(doc) {
|
|
459
505
|
const $anchorCell = doc.resolve(this.anchor), $headCell = doc.resolve(this.head);
|
|
@@ -462,6 +508,13 @@ var CellBookmark = class _CellBookmark {
|
|
|
462
508
|
}
|
|
463
509
|
};
|
|
464
510
|
new require_dist.PluginKey("fix-tables");
|
|
511
|
+
/**
|
|
512
|
+
* Helper to get the selected rectangle in a table, if any. Adds table
|
|
513
|
+
* map, table node, and table start offset to the object for
|
|
514
|
+
* convenience.
|
|
515
|
+
*
|
|
516
|
+
* @public
|
|
517
|
+
*/
|
|
465
518
|
function selectedRect(state) {
|
|
466
519
|
const sel = state.selection;
|
|
467
520
|
const $pos = selectionCell(state);
|
|
@@ -494,7 +547,7 @@ function deprecated_toggleHeader(type) {
|
|
|
494
547
|
} : rect);
|
|
495
548
|
const nodes = cells.map((pos) => rect.table.nodeAt(pos));
|
|
496
549
|
for (let i = 0; i < cells.length; i++) if (nodes[i].type == types.header_cell) tr.setNodeMarkup(rect.tableStart + cells[i], types.cell, nodes[i].attrs);
|
|
497
|
-
if (tr.steps.length
|
|
550
|
+
if (tr.steps.length === 0) for (let i = 0; i < cells.length; i++) tr.setNodeMarkup(rect.tableStart + cells[i], types.header_cell, nodes[i].attrs);
|
|
498
551
|
dispatch(tr);
|
|
499
552
|
}
|
|
500
553
|
return true;
|
|
@@ -513,6 +566,12 @@ function isHeaderEnabledByType(type, rect, types) {
|
|
|
513
566
|
}
|
|
514
567
|
return true;
|
|
515
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* Toggles between row/column header and normal cells (Only applies to first row/column).
|
|
571
|
+
* For deprecated behavior pass `useDeprecatedLogic` in options with true.
|
|
572
|
+
*
|
|
573
|
+
* @public
|
|
574
|
+
*/
|
|
516
575
|
function toggleHeader(type, options) {
|
|
517
576
|
options = options || { useDeprecatedLogic: false };
|
|
518
577
|
if (options.useDeprecatedLogic) return deprecated_toggleHeader(type);
|
|
@@ -549,6 +608,11 @@ function toggleHeader(type, options) {
|
|
|
549
608
|
toggleHeader("row", { useDeprecatedLogic: true });
|
|
550
609
|
toggleHeader("column", { useDeprecatedLogic: true });
|
|
551
610
|
toggleHeader("cell", { useDeprecatedLogic: true });
|
|
611
|
+
/**
|
|
612
|
+
* Deletes the content of the selected cells, if they are not empty.
|
|
613
|
+
*
|
|
614
|
+
* @public
|
|
615
|
+
*/
|
|
552
616
|
function deleteCellSelection(state, dispatch) {
|
|
553
617
|
const sel = state.selection;
|
|
554
618
|
if (!(sel instanceof CellSelection)) return false;
|
|
@@ -581,6 +645,9 @@ function maybeSetSelection(state, dispatch, selection) {
|
|
|
581
645
|
if (dispatch) dispatch(state.tr.setSelection(selection).scrollIntoView());
|
|
582
646
|
return true;
|
|
583
647
|
}
|
|
648
|
+
/**
|
|
649
|
+
* @internal
|
|
650
|
+
*/
|
|
584
651
|
function arrow(axis, dir) {
|
|
585
652
|
return (state, dispatch, view) => {
|
|
586
653
|
if (!view) return false;
|
|
@@ -633,7 +700,7 @@ function atEndOfCell(view, axis, dir) {
|
|
|
633
700
|
}
|
|
634
701
|
new require_dist.PluginKey("tableColumnResizing");
|
|
635
702
|
//#endregion
|
|
636
|
-
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.
|
|
703
|
+
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.29.2_@floating-ui+dom@1.8.0_@tiptap+core@3.29.2_@tiptap+pm@3.29.2__@tip_82ae703f9716de2fe82106636b634245/node_modules/@tiptap/vue-3/dist/menus/index.js
|
|
637
704
|
function combineDOMRects(rect1, rect2) {
|
|
638
705
|
const top = Math.min(rect1.top, rect2.top);
|
|
639
706
|
const bottom = Math.max(rect1.bottom, rect2.bottom);
|
|
@@ -643,7 +710,7 @@ function combineDOMRects(rect1, rect2) {
|
|
|
643
710
|
return new DOMRect(left, top, width, height);
|
|
644
711
|
}
|
|
645
712
|
var BubbleMenuView = class {
|
|
646
|
-
constructor({ editor, element, view, updateDelay = 250, resizeDelay = 60, shouldShow, appendTo, getReferencedVirtualElement, options }) {
|
|
713
|
+
constructor({ editor, element, view, pluginKey = "bubbleMenu", updateDelay = 250, resizeDelay = 60, shouldShow, appendTo, getReferencedVirtualElement, options }) {
|
|
647
714
|
this.preventHide = false;
|
|
648
715
|
this.isVisible = false;
|
|
649
716
|
this.scrollTarget = window;
|
|
@@ -721,16 +788,30 @@ var BubbleMenuView = class {
|
|
|
721
788
|
this.hide();
|
|
722
789
|
return;
|
|
723
790
|
}
|
|
724
|
-
this.updatePosition();
|
|
725
791
|
this.show();
|
|
792
|
+
this.updatePosition();
|
|
726
793
|
};
|
|
794
|
+
/**
|
|
795
|
+
* Handles the transaction event to update the position of the bubble menu.
|
|
796
|
+
* This allows external code to trigger a position update via:
|
|
797
|
+
* `editor.view.dispatch(editor.state.tr.setMeta(pluginKey, 'updatePosition'))`
|
|
798
|
+
* The `pluginKey` defaults to `bubbleMenu`
|
|
799
|
+
*/
|
|
727
800
|
this.transactionHandler = ({ transaction: tr }) => {
|
|
728
|
-
|
|
801
|
+
const meta = tr.getMeta(this.pluginKey);
|
|
802
|
+
if (meta === "updatePosition") this.updatePosition();
|
|
803
|
+
else if (meta && typeof meta === "object" && meta.type === "updateOptions") this.updateOptions(meta.options);
|
|
804
|
+
else if (meta === "hide") this.hide();
|
|
805
|
+
else if (meta === "show") {
|
|
806
|
+
this.updatePosition();
|
|
807
|
+
this.show();
|
|
808
|
+
}
|
|
729
809
|
};
|
|
730
810
|
var _a;
|
|
731
811
|
this.editor = editor;
|
|
732
812
|
this.element = element;
|
|
733
813
|
this.view = view;
|
|
814
|
+
this.pluginKey = pluginKey;
|
|
734
815
|
this.updateDelay = updateDelay;
|
|
735
816
|
this.resizeDelay = resizeDelay;
|
|
736
817
|
this.appendTo = appendTo;
|
|
@@ -768,10 +849,11 @@ var BubbleMenuView = class {
|
|
|
768
849
|
return middlewares;
|
|
769
850
|
}
|
|
770
851
|
get virtualElement() {
|
|
771
|
-
var _a;
|
|
852
|
+
var _a, _b, _c;
|
|
772
853
|
const { selection } = this.editor.state;
|
|
773
854
|
const referencedVirtualElement = (_a = this.getReferencedVirtualElement) == null ? void 0 : _a.call(this);
|
|
774
855
|
if (referencedVirtualElement) return referencedVirtualElement;
|
|
856
|
+
if (!((_c = (_b = this.view) == null ? void 0 : _b.dom) == null ? void 0 : _c.parentNode)) return;
|
|
775
857
|
const domRect = require_dist.posToDOMRect(this.view, selection.from, selection.to);
|
|
776
858
|
let virtualElement = {
|
|
777
859
|
getBoundingClientRect: () => domRect,
|
|
@@ -802,13 +884,21 @@ var BubbleMenuView = class {
|
|
|
802
884
|
return virtualElement;
|
|
803
885
|
}
|
|
804
886
|
updatePosition() {
|
|
887
|
+
if (!this.isVisible) return;
|
|
805
888
|
const virtualElement = this.virtualElement;
|
|
806
889
|
if (!virtualElement) return;
|
|
807
890
|
require_PopperContent.computePosition(virtualElement, this.element, {
|
|
808
891
|
placement: this.floatingUIOptions.placement,
|
|
809
892
|
strategy: this.floatingUIOptions.strategy,
|
|
810
893
|
middleware: this.middlewares
|
|
811
|
-
}).then(({ x, y, strategy }) => {
|
|
894
|
+
}).then(({ x, y, strategy, middlewareData }) => {
|
|
895
|
+
var _a, _b;
|
|
896
|
+
if (!this.isVisible || this.editor.isDestroyed || !this.element.isConnected) return;
|
|
897
|
+
if (((_a = middlewareData.hide) == null ? void 0 : _a.referenceHidden) || ((_b = middlewareData.hide) == null ? void 0 : _b.escaped)) {
|
|
898
|
+
this.element.style.visibility = "hidden";
|
|
899
|
+
return;
|
|
900
|
+
}
|
|
901
|
+
this.element.style.visibility = "visible";
|
|
812
902
|
this.element.style.width = "max-content";
|
|
813
903
|
this.element.style.position = strategy;
|
|
814
904
|
this.element.style.left = `${x}px`;
|
|
@@ -862,6 +952,28 @@ var BubbleMenuView = class {
|
|
|
862
952
|
if (this.floatingUIOptions.onHide) this.floatingUIOptions.onHide();
|
|
863
953
|
this.isVisible = false;
|
|
864
954
|
}
|
|
955
|
+
updateOptions(newProps) {
|
|
956
|
+
var _a;
|
|
957
|
+
if (newProps.updateDelay !== void 0) this.updateDelay = newProps.updateDelay;
|
|
958
|
+
if (newProps.resizeDelay !== void 0) this.resizeDelay = newProps.resizeDelay;
|
|
959
|
+
if (newProps.appendTo !== void 0) this.appendTo = newProps.appendTo;
|
|
960
|
+
if (newProps.getReferencedVirtualElement !== void 0) this.getReferencedVirtualElement = newProps.getReferencedVirtualElement;
|
|
961
|
+
if (newProps.shouldShow !== void 0) {
|
|
962
|
+
if (newProps.shouldShow) this.shouldShow = newProps.shouldShow;
|
|
963
|
+
}
|
|
964
|
+
if (newProps.options !== void 0) {
|
|
965
|
+
const newScrollTarget = (_a = newProps.options.scrollTarget) != null ? _a : window;
|
|
966
|
+
if (newScrollTarget !== this.scrollTarget) {
|
|
967
|
+
this.scrollTarget.removeEventListener("scroll", this.resizeHandler);
|
|
968
|
+
this.scrollTarget = newScrollTarget;
|
|
969
|
+
this.scrollTarget.addEventListener("scroll", this.resizeHandler);
|
|
970
|
+
}
|
|
971
|
+
this.floatingUIOptions = {
|
|
972
|
+
...this.floatingUIOptions,
|
|
973
|
+
...newProps.options
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
}
|
|
865
977
|
destroy() {
|
|
866
978
|
this.hide();
|
|
867
979
|
this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: true });
|
|
@@ -889,7 +1001,7 @@ var BubbleMenu = (0, vue.defineComponent)({
|
|
|
889
1001
|
props: {
|
|
890
1002
|
pluginKey: {
|
|
891
1003
|
type: [String, Object],
|
|
892
|
-
default:
|
|
1004
|
+
default: void 0
|
|
893
1005
|
},
|
|
894
1006
|
editor: {
|
|
895
1007
|
type: Object,
|
|
@@ -908,7 +1020,7 @@ var BubbleMenu = (0, vue.defineComponent)({
|
|
|
908
1020
|
default: () => ({})
|
|
909
1021
|
},
|
|
910
1022
|
appendTo: {
|
|
911
|
-
type: Object,
|
|
1023
|
+
type: [Object, Function],
|
|
912
1024
|
default: void 0
|
|
913
1025
|
},
|
|
914
1026
|
shouldShow: {
|
|
@@ -921,9 +1033,11 @@ var BubbleMenu = (0, vue.defineComponent)({
|
|
|
921
1033
|
}
|
|
922
1034
|
},
|
|
923
1035
|
setup(props, { slots, attrs }) {
|
|
1036
|
+
var _a;
|
|
924
1037
|
const root = (0, vue.ref)(null);
|
|
1038
|
+
const resolvedPluginKey = (_a = props.pluginKey) != null ? _a : new require_dist.PluginKey("bubbleMenu");
|
|
925
1039
|
(0, vue.onMounted)(() => {
|
|
926
|
-
const { editor, options,
|
|
1040
|
+
const { editor, options, resizeDelay, appendTo, shouldShow, getReferencedVirtualElement, updateDelay } = props;
|
|
927
1041
|
const el = root.value;
|
|
928
1042
|
if (!el) return;
|
|
929
1043
|
el.style.visibility = "hidden";
|
|
@@ -934,7 +1048,7 @@ var BubbleMenu = (0, vue.defineComponent)({
|
|
|
934
1048
|
editor,
|
|
935
1049
|
element: el,
|
|
936
1050
|
options,
|
|
937
|
-
pluginKey,
|
|
1051
|
+
pluginKey: resolvedPluginKey,
|
|
938
1052
|
resizeDelay,
|
|
939
1053
|
appendTo,
|
|
940
1054
|
shouldShow,
|
|
@@ -944,22 +1058,23 @@ var BubbleMenu = (0, vue.defineComponent)({
|
|
|
944
1058
|
});
|
|
945
1059
|
});
|
|
946
1060
|
(0, vue.onBeforeUnmount)(() => {
|
|
947
|
-
const {
|
|
948
|
-
editor.unregisterPlugin(
|
|
1061
|
+
const { editor } = props;
|
|
1062
|
+
editor.unregisterPlugin(resolvedPluginKey);
|
|
949
1063
|
});
|
|
950
1064
|
return () => {
|
|
951
|
-
var
|
|
1065
|
+
var _a2;
|
|
952
1066
|
return (0, vue.h)("div", {
|
|
953
1067
|
ref: root,
|
|
954
1068
|
...attrs
|
|
955
|
-
}, (
|
|
1069
|
+
}, (_a2 = slots.default) == null ? void 0 : _a2.call(slots));
|
|
956
1070
|
};
|
|
957
1071
|
}
|
|
958
1072
|
});
|
|
959
1073
|
var FloatingMenuView = class {
|
|
960
|
-
constructor({ editor, element, view, options, appendTo, shouldShow }) {
|
|
1074
|
+
constructor({ editor, element, view, pluginKey = "floatingMenu", updateDelay = 250, resizeDelay = 60, options, appendTo, shouldShow }) {
|
|
961
1075
|
this.preventHide = false;
|
|
962
1076
|
this.isVisible = false;
|
|
1077
|
+
this.scrollTarget = window;
|
|
963
1078
|
this.shouldShow = ({ view, state }) => {
|
|
964
1079
|
const { selection } = state;
|
|
965
1080
|
const { $anchor, empty } = selection;
|
|
@@ -1006,10 +1121,42 @@ var FloatingMenuView = class {
|
|
|
1006
1121
|
if ((event == null ? void 0 : event.relatedTarget) === this.editor.view.dom) return;
|
|
1007
1122
|
this.hide();
|
|
1008
1123
|
};
|
|
1124
|
+
/**
|
|
1125
|
+
* Handles the transaction event to update the position of the floating menu.
|
|
1126
|
+
* This allows external code to trigger a position update via:
|
|
1127
|
+
* `editor.view.dispatch(editor.state.tr.setMeta(pluginKey, 'updatePosition'))`
|
|
1128
|
+
* The `pluginKey` defaults to `floatingMenu`
|
|
1129
|
+
*/
|
|
1130
|
+
this.transactionHandler = ({ transaction: tr }) => {
|
|
1131
|
+
const meta = tr.getMeta(this.pluginKey);
|
|
1132
|
+
if (meta === "updatePosition") this.updatePosition();
|
|
1133
|
+
else if (meta && typeof meta === "object" && meta.type === "updateOptions") this.updateOptions(meta.options);
|
|
1134
|
+
else if (meta === "hide") this.hide();
|
|
1135
|
+
else if (meta === "show") {
|
|
1136
|
+
this.updatePosition();
|
|
1137
|
+
this.show();
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Handles the window resize event to update the position of the floating menu.
|
|
1142
|
+
* It uses a debounce mechanism to prevent excessive updates.
|
|
1143
|
+
* The delay is defined by the `resizeDelay` property.
|
|
1144
|
+
*/
|
|
1145
|
+
this.resizeHandler = () => {
|
|
1146
|
+
if (this.resizeDebounceTimer) clearTimeout(this.resizeDebounceTimer);
|
|
1147
|
+
this.resizeDebounceTimer = window.setTimeout(() => {
|
|
1148
|
+
this.updatePosition();
|
|
1149
|
+
}, this.resizeDelay);
|
|
1150
|
+
};
|
|
1151
|
+
var _a;
|
|
1009
1152
|
this.editor = editor;
|
|
1010
1153
|
this.element = element;
|
|
1011
1154
|
this.view = view;
|
|
1155
|
+
this.pluginKey = pluginKey;
|
|
1156
|
+
this.updateDelay = updateDelay;
|
|
1157
|
+
this.resizeDelay = resizeDelay;
|
|
1012
1158
|
this.appendTo = appendTo;
|
|
1159
|
+
this.scrollTarget = (_a = options == null ? void 0 : options.scrollTarget) != null ? _a : window;
|
|
1013
1160
|
this.floatingUIOptions = {
|
|
1014
1161
|
...this.floatingUIOptions,
|
|
1015
1162
|
...options
|
|
@@ -1019,6 +1166,9 @@ var FloatingMenuView = class {
|
|
|
1019
1166
|
this.element.addEventListener("mousedown", this.mousedownHandler, { capture: true });
|
|
1020
1167
|
this.editor.on("focus", this.focusHandler);
|
|
1021
1168
|
this.editor.on("blur", this.blurHandler);
|
|
1169
|
+
this.editor.on("transaction", this.transactionHandler);
|
|
1170
|
+
window.addEventListener("resize", this.resizeHandler);
|
|
1171
|
+
this.scrollTarget.addEventListener("scroll", this.resizeHandler);
|
|
1022
1172
|
this.update(view, view.state);
|
|
1023
1173
|
if (this.getShouldShow()) {
|
|
1024
1174
|
this.show();
|
|
@@ -1056,7 +1206,30 @@ var FloatingMenuView = class {
|
|
|
1056
1206
|
to
|
|
1057
1207
|
});
|
|
1058
1208
|
}
|
|
1209
|
+
updateOptions(newProps) {
|
|
1210
|
+
var _a;
|
|
1211
|
+
if (newProps.updateDelay !== void 0) this.updateDelay = newProps.updateDelay;
|
|
1212
|
+
if (newProps.resizeDelay !== void 0) this.resizeDelay = newProps.resizeDelay;
|
|
1213
|
+
if (newProps.appendTo !== void 0) this.appendTo = newProps.appendTo;
|
|
1214
|
+
if (newProps.shouldShow !== void 0) {
|
|
1215
|
+
if (newProps.shouldShow) this.shouldShow = newProps.shouldShow;
|
|
1216
|
+
}
|
|
1217
|
+
if (newProps.options !== void 0) {
|
|
1218
|
+
const newScrollTarget = (_a = newProps.options.scrollTarget) != null ? _a : window;
|
|
1219
|
+
if (newScrollTarget !== this.scrollTarget) {
|
|
1220
|
+
this.scrollTarget.removeEventListener("scroll", this.resizeHandler);
|
|
1221
|
+
this.scrollTarget = newScrollTarget;
|
|
1222
|
+
this.scrollTarget.addEventListener("scroll", this.resizeHandler);
|
|
1223
|
+
}
|
|
1224
|
+
this.floatingUIOptions = {
|
|
1225
|
+
...this.floatingUIOptions,
|
|
1226
|
+
...newProps.options
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1059
1230
|
updatePosition() {
|
|
1231
|
+
var _a, _b;
|
|
1232
|
+
if (!((_b = (_a = this.view) == null ? void 0 : _a.dom) == null ? void 0 : _b.parentNode)) return;
|
|
1060
1233
|
const { selection } = this.editor.state;
|
|
1061
1234
|
const domRect = require_dist.posToDOMRect(this.view, selection.from, selection.to);
|
|
1062
1235
|
require_PopperContent.computePosition({
|
|
@@ -1066,7 +1239,13 @@ var FloatingMenuView = class {
|
|
|
1066
1239
|
placement: this.floatingUIOptions.placement,
|
|
1067
1240
|
strategy: this.floatingUIOptions.strategy,
|
|
1068
1241
|
middleware: this.middlewares
|
|
1069
|
-
}).then(({ x, y, strategy }) => {
|
|
1242
|
+
}).then(({ x, y, strategy, middlewareData }) => {
|
|
1243
|
+
var _a2, _b2;
|
|
1244
|
+
if (((_a2 = middlewareData.hide) == null ? void 0 : _a2.referenceHidden) || ((_b2 = middlewareData.hide) == null ? void 0 : _b2.escaped)) {
|
|
1245
|
+
this.element.style.visibility = "hidden";
|
|
1246
|
+
return;
|
|
1247
|
+
}
|
|
1248
|
+
this.element.style.visibility = "visible";
|
|
1070
1249
|
this.element.style.width = "max-content";
|
|
1071
1250
|
this.element.style.position = strategy;
|
|
1072
1251
|
this.element.style.left = `${x}px`;
|
|
@@ -1100,8 +1279,11 @@ var FloatingMenuView = class {
|
|
|
1100
1279
|
destroy() {
|
|
1101
1280
|
this.hide();
|
|
1102
1281
|
this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: true });
|
|
1282
|
+
window.removeEventListener("resize", this.resizeHandler);
|
|
1283
|
+
this.scrollTarget.removeEventListener("scroll", this.resizeHandler);
|
|
1103
1284
|
this.editor.off("focus", this.focusHandler);
|
|
1104
1285
|
this.editor.off("blur", this.blurHandler);
|
|
1286
|
+
this.editor.off("transaction", this.transactionHandler);
|
|
1105
1287
|
if (this.floatingUIOptions.onDestroy) this.floatingUIOptions.onDestroy();
|
|
1106
1288
|
}
|
|
1107
1289
|
};
|
|
@@ -1120,18 +1302,26 @@ var FloatingMenuPlugin = (options) => {
|
|
|
1120
1302
|
props: {
|
|
1121
1303
|
pluginKey: {
|
|
1122
1304
|
type: null,
|
|
1123
|
-
default:
|
|
1305
|
+
default: void 0
|
|
1124
1306
|
},
|
|
1125
1307
|
editor: {
|
|
1126
1308
|
type: Object,
|
|
1127
1309
|
required: true
|
|
1128
1310
|
},
|
|
1311
|
+
updateDelay: {
|
|
1312
|
+
type: Number,
|
|
1313
|
+
default: void 0
|
|
1314
|
+
},
|
|
1315
|
+
resizeDelay: {
|
|
1316
|
+
type: Number,
|
|
1317
|
+
default: void 0
|
|
1318
|
+
},
|
|
1129
1319
|
options: {
|
|
1130
1320
|
type: Object,
|
|
1131
1321
|
default: () => ({})
|
|
1132
1322
|
},
|
|
1133
1323
|
appendTo: {
|
|
1134
|
-
type: Object,
|
|
1324
|
+
type: [Object, Function],
|
|
1135
1325
|
default: void 0
|
|
1136
1326
|
},
|
|
1137
1327
|
shouldShow: {
|
|
@@ -1140,33 +1330,37 @@ var FloatingMenuPlugin = (options) => {
|
|
|
1140
1330
|
}
|
|
1141
1331
|
},
|
|
1142
1332
|
setup(props, { slots, attrs }) {
|
|
1333
|
+
var _a;
|
|
1143
1334
|
const root = (0, vue.ref)(null);
|
|
1335
|
+
const resolvedPluginKey = (_a = props.pluginKey) != null ? _a : new require_dist.PluginKey("floatingMenu");
|
|
1144
1336
|
(0, vue.onMounted)(() => {
|
|
1145
|
-
const {
|
|
1337
|
+
const { editor, updateDelay, resizeDelay, options, appendTo, shouldShow } = props;
|
|
1146
1338
|
const el = root.value;
|
|
1147
1339
|
if (!el) return;
|
|
1148
1340
|
el.style.visibility = "hidden";
|
|
1149
1341
|
el.style.position = "absolute";
|
|
1150
1342
|
el.remove();
|
|
1151
1343
|
editor.registerPlugin(FloatingMenuPlugin({
|
|
1152
|
-
pluginKey,
|
|
1344
|
+
pluginKey: resolvedPluginKey,
|
|
1153
1345
|
editor,
|
|
1154
1346
|
element: el,
|
|
1347
|
+
updateDelay,
|
|
1348
|
+
resizeDelay,
|
|
1155
1349
|
options,
|
|
1156
1350
|
appendTo,
|
|
1157
1351
|
shouldShow
|
|
1158
1352
|
}));
|
|
1159
1353
|
});
|
|
1160
1354
|
(0, vue.onBeforeUnmount)(() => {
|
|
1161
|
-
const {
|
|
1162
|
-
editor.unregisterPlugin(
|
|
1355
|
+
const { editor } = props;
|
|
1356
|
+
editor.unregisterPlugin(resolvedPluginKey);
|
|
1163
1357
|
});
|
|
1164
1358
|
return () => {
|
|
1165
|
-
var
|
|
1359
|
+
var _a2;
|
|
1166
1360
|
return (0, vue.h)("div", {
|
|
1167
1361
|
ref: root,
|
|
1168
1362
|
...attrs
|
|
1169
|
-
}, (
|
|
1363
|
+
}, (_a2 = slots.default) == null ? void 0 : _a2.call(slots));
|
|
1170
1364
|
};
|
|
1171
1365
|
}
|
|
1172
1366
|
});
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
require("./chunk.cjs");
|
|
2
1
|
const require_clsx = require("./clsx.cjs");
|
|
3
2
|
const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper.cjs");
|
|
4
3
|
let vue = require("vue");
|
|
5
4
|
//#region src/components/modal/modal-body.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var modal_body_vue_vue_type_script_setup_true_lang_default =
|
|
5
|
+
var modal_body_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
7
6
|
__name: "modal-body",
|
|
8
|
-
props: { class: {
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
9
14
|
setup(__props) {
|
|
10
15
|
const props = __props;
|
|
11
16
|
return (_ctx, _cache) => {
|
|
@@ -15,7 +20,7 @@ var modal_body_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0,
|
|
|
15
20
|
});
|
|
16
21
|
//#endregion
|
|
17
22
|
//#region src/components/modal/modal-body.vue
|
|
18
|
-
var modal_body_default =
|
|
23
|
+
var modal_body_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(modal_body_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8872ed90"]]);
|
|
19
24
|
//#endregion
|
|
20
25
|
Object.defineProperty(exports, "modal_body_default", {
|
|
21
26
|
enumerable: true,
|