@mkbabb/glass-ui 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -27
- package/dist/DropdownMenuTrigger-BzQtd9lt.js +65 -0
- package/dist/{FadingScroll-BSRLqQCx.js → FadingScroll-C1ZWEjmG.js} +32 -25
- package/dist/{Input-DKf-XwUM.js → Input-B4WQ_CMc.js} +1 -1
- package/dist/{PagerDots-BP6jh7z4.js → PagerDots-BoTQ7g5l.js} +123 -95
- package/dist/{accent-tone-solve-CBw3L0cy.js → accent-tone-solve-Dii9ePhK.js} +1 -1
- package/dist/animated-digit.js +1 -1
- package/dist/aurora.js +324 -314
- package/dist/blob-config.d.ts +0 -4
- package/dist/blob-config.js +1 -1
- package/dist/blob.js +280 -261
- package/dist/{button-BXzhydVB.js → button-32mg6xA8.js} +63 -56
- package/dist/button.js +1 -1
- package/dist/canvas.js +1 -1
- package/dist/{CardAction-2uUvjMQK.js → card-16xmzIr3.js} +29 -11
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -2
- package/dist/carousel.js +26 -95
- package/dist/chip.d.ts +0 -9
- package/dist/chip.js +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-swatch.js +1 -0
- package/dist/color.js +87 -3
- package/dist/{CommandShortcut-fmdbsEJL.js → command-BjPjUU9z.js} +56 -51
- package/dist/command.js +1 -1
- package/dist/completion-seal.js +64 -55
- package/dist/components/_shared/ModalOverlay.vue.d.ts +5 -52
- package/dist/components/_shared/field-surfaces.css +1 -0
- package/dist/components/_shared/menuItemVariants.d.ts +2 -2
- package/dist/components/_shared/useMotionAxis.d.ts +2 -2
- package/dist/components/_shared/valueDomain.d.ts +6 -0
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +1 -1
- package/dist/components/aurora/Aurora.vue.d.ts +7 -1
- package/dist/components/aurora/composables/runtime.d.ts +5 -3
- package/dist/components/aurora/composables/useAurora.d.ts +4 -2
- package/dist/components/avatar/AvatarImage.vue.d.ts +3 -1
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/blob/Blob.vue.d.ts +11 -0
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +2 -0
- package/dist/components/button/Button.vue.d.ts +4 -2
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/card/Card.vue.d.ts +4 -4
- package/dist/components/card/ScrollCard.vue.d.ts +1 -1
- package/dist/components/card/styles.css +1 -0
- package/dist/components/carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/carousel/index.d.ts +0 -1
- package/dist/components/carousel/useCarousel.d.ts +2 -2
- package/dist/components/combobox/ComboboxList.vue.d.ts +1 -1
- package/dist/components/combobox/index.d.ts +1 -3
- package/dist/components/command/Command.vue.d.ts +1 -1
- package/dist/components/command/CommandDialog.vue.d.ts +9 -6
- package/dist/components/completion-seal/styles.css +1 -0
- package/dist/components/constellation/Constellation.vue.d.ts +6 -1
- package/dist/components/constellation/composables/useConstellation.d.ts +3 -16
- package/dist/components/constellation/constants.d.ts +6 -16
- package/dist/components/constellation/constellationField.d.ts +3 -5
- package/dist/components/constellation/constellationInteraction.d.ts +1 -1
- package/dist/components/constellation/constellationRender.d.ts +11 -21
- package/dist/components/constellation/constellationTypes.d.ts +12 -9
- package/dist/components/constellation/index.d.ts +1 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -2
- package/dist/components/data-table/DataTable.vue.d.ts +14 -2
- package/dist/components/data-table/index.d.ts +1 -2
- package/dist/components/data-table/types.d.ts +26 -1
- package/dist/components/deck/constants.d.ts +0 -10
- package/dist/components/deck/index.d.ts +0 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +7 -1
- package/dist/components/dialog/index.d.ts +0 -1
- package/dist/components/dock/DockControl.vue.d.ts +4 -4
- package/dist/components/dock/DockStack.vue.d.ts +2 -2
- package/dist/components/dock/GlassDock.vue.d.ts +1 -0
- package/dist/components/dock/composables/dockMorphContext.d.ts +2 -0
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +11 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +4 -0
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +3 -3
- package/dist/components/dock/composables/useDockPopover.d.ts +2 -0
- package/dist/components/dock/composables/useDockShellProps.d.ts +7 -0
- package/dist/components/dock/composables/useDockState.d.ts +2 -2
- package/dist/components/dock/constants.d.ts +0 -12
- package/dist/components/dock/index.d.ts +1 -0
- package/dist/components/dock/styles/adaptive-legibility.css +1 -0
- package/dist/components/dock/styles/controls/icon-button.css +1 -0
- package/dist/{styles/dock-controls → components/dock/styles/controls}/touch-floor.css +1 -1
- package/dist/components/dock/styles/controls.css +1 -0
- package/dist/{styles/dock → components/dock/styles}/density.css +1 -1
- package/dist/components/dock/styles/dock.css +1 -0
- package/dist/components/dock/styles/index.css +1 -0
- package/dist/components/dock/styles/layer-group.css +1 -0
- package/dist/components/dock/styles/layers.css +1 -0
- package/dist/components/dock/styles/overflow.css +1 -0
- package/dist/components/dock/styles/popover.css +1 -0
- package/dist/components/dock/styles/shape.css +1 -0
- package/dist/components/dock/styles/shell.css +1 -0
- package/dist/components/drawer/Drawer.vue.d.ts +3 -3
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +3 -1
- package/dist/components/drawer/constants.d.ts +6 -6
- package/dist/components/drawer/index.d.ts +4 -6
- package/dist/components/drawer/styles.css +1 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +9 -3
- package/dist/components/dropdown-menu/index.d.ts +0 -1
- package/dist/components/easing/EasingConfigurator.vue.d.ts +1 -1
- package/dist/components/easing/EasingPicker.vue.d.ts +2 -2
- package/dist/components/easing/composables/useEasingPicker.d.ts +4 -0
- package/dist/components/easing/constants.d.ts +2 -0
- package/dist/components/fading-scroll/composables/useFadingScroll.d.ts +3 -3
- package/dist/components/fourier-field/FourierField.vue.d.ts +7 -1
- package/dist/components/fourier-field/composables/useFourierField.d.ts +2 -1
- package/dist/components/handmark/HandMark.vue.d.ts +1 -1
- package/dist/components/handmark/geometry.d.ts +1 -1
- package/dist/components/handmark/index.d.ts +4 -6
- package/dist/components/icon-chip/styles.css +1 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/infinite-scroll/index.d.ts +1 -0
- package/dist/components/instrument-chassis/styles.css +1 -0
- package/dist/components/labeled-field/LabeledField.vue.d.ts +12 -2
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +10 -3
- package/dist/components/liquid-grid/LiquidGrid.vue.d.ts +4 -0
- package/dist/components/liquid-grid/composables/useLiquidGrid.d.ts +2 -1
- package/dist/components/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/pager-dots/PagerDots.vue.d.ts +1 -1
- package/dist/components/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +5 -40
- package/dist/components/progress/ProgressDefault.vue.d.ts +1 -17
- package/dist/components/progress/ProgressGradient.vue.d.ts +1 -0
- package/dist/components/progress/ProgressLiquid.vue.d.ts +1 -0
- package/dist/components/progress/index.d.ts +0 -5
- package/dist/components/progress/valueMarks.css +1 -0
- package/dist/components/pulse/Pulse.vue.d.ts +2 -2
- package/dist/components/scroll-progress-rim/styles.css +1 -0
- package/dist/components/search/FuzzySearch.vue.d.ts +4 -2
- package/dist/components/search/SearchBar.vue.d.ts +2 -2
- package/dist/components/search/searchVariants.d.ts +1 -1
- package/dist/components/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/slider/Slider.vue.d.ts +2 -0
- package/dist/components/split-chars/SplitChars.vue.d.ts +1 -1
- package/dist/components/surface/Surface.vue.d.ts +1 -1
- package/dist/components/table/Table.vue.d.ts +4 -0
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +10 -0
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/styles/drag.css +1 -0
- package/dist/components/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +1 -1
- package/dist/components/timeline/GlassTimeline.vue.d.ts +4 -4
- package/dist/components/toast/Toast.vue.d.ts +3 -3
- package/dist/components/toast/use-toast.d.ts +4 -4
- package/dist/components/typewriter/TypewriterText.vue.d.ts +1 -4
- package/dist/components/typewriter/composables/useTypewriter.d.ts +0 -1
- package/dist/components/typewriter/utils/graphemes.d.ts +1 -0
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +2 -2
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +31 -0
- package/dist/composables/glass/webgpu/rendererStatus.d.ts +13 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +3 -0
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +2 -0
- package/dist/composables/motion/springProjection.d.ts +16 -0
- package/dist/composables/motion/useAnimatedNumber.d.ts +1 -6
- package/dist/composables/motion/useCountup.d.ts +1 -6
- package/dist/composables/motion/useDockCtaReceive.d.ts +55 -0
- package/dist/composables/motion/useElementMorph.d.ts +8 -0
- package/dist/composables/motion/useLiquidPress.d.ts +12 -4
- package/dist/composables/motion/useNumericTransition.d.ts +2 -0
- package/dist/composables/motion/useTextHighlight.d.ts +2 -1
- package/dist/configurator-CSENXXSy.js +311 -0
- package/dist/configurator.js +2 -3
- package/dist/constellation.js +235 -571
- package/dist/controls.js +55 -63
- package/dist/{createCanvasLifecycle-DlrcvWbb.js → createCanvasLifecycle-hsFkQVdl.js} +32 -32
- package/dist/dark-DIH-blY1.js +70 -0
- package/dist/dark.d.ts +1 -2
- package/dist/dark.js +2 -20
- package/dist/{DataTable-Bxya8nBn.js → data-table-DveMdgBM.js} +231 -120
- package/dist/data-table.js +2 -2
- package/dist/deck.js +10 -21
- package/dist/dialog-BzQxKrUr.js +281 -0
- package/dist/dialog.js +2 -3
- package/dist/dock.js +561 -428
- package/dist/{dockContext-d-WpJN2Z.js → dockContext-4S9qP0Z4.js} +1 -1
- package/dist/dom.js +196 -7
- package/dist/drawer.js +111 -66
- package/dist/dropdown-menu-DORIA52F.js +378 -0
- package/dist/dropdown-menu.js +3 -2
- package/dist/easing.d.ts +0 -9
- package/dist/easing.js +334 -187
- package/dist/expandable-container.js +12 -4
- package/dist/fading-scroll.js +1 -1
- package/dist/focus-scope.js +1 -1
- package/dist/forms.js +37 -78
- package/dist/fourier-field.js +273 -263
- package/dist/fourier-math.d.ts +0 -6
- package/dist/fourier-math.js +112 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +131 -195
- package/dist/handmark.d.ts +0 -2
- package/dist/handmark.js +82 -82
- package/dist/header-ribbon.js +41 -30
- package/dist/{IconChip-CwLmBJ_K.js → icon-chip-BWuxz1-u.js} +1 -1
- package/dist/icon-chip.js +1 -1
- package/dist/{IconTooltip-D9sbK-Mk.js → icon-tooltip-CO6rw0dZ.js} +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/infinite-scroll.d.ts +0 -1
- package/dist/infinite-scroll.js +17 -15
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +104 -2
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +95 -69
- package/dist/liquid-grid.js +173 -162
- package/dist/metric-badge.js +3 -3
- package/dist/metric-cell.js +2 -2
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +15 -16
- package/dist/motion-curves.d.ts +0 -20
- package/dist/motion.js +59 -58
- package/dist/{Notification-DQv2cOh9.js → notification-DVs7ODMg.js} +17 -8
- package/dist/notification.js +1 -1
- package/dist/{NumberFieldContent-BkE7xPS9.js → number-field-PvkGedHk.js} +2 -2
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +1 -1
- package/dist/paper-backdrop.js +31 -2
- package/dist/{PopoverContent-DOtszFWK.js → popover-WMgyRSyN.js} +7 -2
- package/dist/popover.js +1 -1
- package/dist/procedural-color.wgsl-B9mLK7v0.js +377 -0
- package/dist/progress-C-HHuFZy.js +192 -0
- package/dist/progress.js +2 -2
- package/dist/pulse.js +3 -1
- package/dist/reactive.js +19 -3
- package/dist/rendererStatus-C2-zC2Q-.js +40 -0
- package/dist/{resolveCanvasColor-B3L-akX0.js → resolveCanvasColor-yarP5bdk.js} +1 -1
- package/dist/scroll-progress-rim.js +1 -1
- package/dist/search.js +187 -146
- package/dist/{SelectScrollDownButton-CDtwaWkZ.js → select-BIv4R3Ir.js} +109 -44
- package/dist/select.js +2 -4
- package/dist/separator-CBU94kTM.js +62 -0
- package/dist/separator.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/slider-Cc_qw6GA.js +166 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +43 -43
- package/dist/styles/accessibility.css +1 -0
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/control-surfaces.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/liquid-fill.css +1 -1
- package/dist/styles/glass/material-roles.css +1 -0
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/surface-axis.css +1 -1
- package/dist/styles/glass/surfaces-pager.css +1 -1
- package/dist/styles/glass/surfaces.css +1 -1
- package/dist/styles/glass.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/theme/bridges.css +1 -1
- package/dist/styles/tokens/glass-fx.css +1 -1
- package/dist/styles/tokens/glass.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/tokens/scheme-spring.css +1 -1
- package/dist/styles/tokens/shadow.css +1 -1
- package/dist/styles/tokens.d.ts +53 -0
- package/dist/styles/tokens.ts +58 -0
- package/dist/styles/typography/scale.css +1 -1
- package/dist/styles/typography/semantic.css +1 -1
- package/dist/styles/typography/utilities.css +1 -1
- package/dist/styles/utilities/base.css +1 -1
- package/dist/styles/utilities/btn.css +1 -1
- package/dist/styles/utilities/components.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/{Switch-BPBfhMU3.js → switch-Boj4Ucn5.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +51 -45
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/{ToggleGroupItem-DNWx2aSW.js → toggle-group-BPchFsns.js} +10 -7
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -53
- package/dist/tokens.js +1 -1
- package/dist/{TooltipProvider-GtfYdSVf.js → tooltip-BmOQJzh0.js} +1 -0
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +151 -166
- package/dist/{useAccentTone-D25DxviG.js → useAccentTone-C-p6WdPe.js} +1 -1
- package/dist/{useAnimatedNumber-2XC4aRB6.js → useAnimatedNumber-BRVVaFFc.js} +1 -1
- package/dist/useDockCtaReceive-CK-RLASa.js +257 -0
- package/dist/{useGooMorph-CU1pwuC6.js → useGooMorph-D1F6QJlH.js} +140 -59
- package/dist/{useIntersectionPause-Cmt5Tnv9.js → useIntersectionPause-B-dbxl9w.js} +1 -1
- package/dist/useLiquidPress-BYcwwGQV.js +68 -0
- package/dist/{useRAFLoop-CvOo_kgb.js → useRAFLoop-BtwQ9DyY.js} +1 -1
- package/dist/{useScrollProgress-C-yImzhU.js → useScrollProgress-DZI4nf4v.js} +1 -1
- package/dist/{useSelectionGroup-Btpf24aY.js → useSelectionGroup-LDzBdR1Y.js} +3 -3
- package/dist/{useTabRovingFocus-CG1H1k1J.js → useTabRovingFocus-DkLYwo4L.js} +1 -1
- package/dist/{useTouchGate-BlegwvwL.js → useTouchGate-Cj5fOkTv.js} +1 -1
- package/dist/valueDomain-B8L04u3U.js +13 -0
- package/dist/watercolor-dot.js +5 -3
- package/package.json +5 -12
- package/src/styles/accessibility.css +48 -0
- package/src/styles/glass/glass-capsule.css +2 -2
- package/src/styles/glass/ladder.css +1 -1
- package/src/styles/glass/material-roles.css +18 -0
- package/src/styles/glass/material.css +18 -12
- package/src/styles/glass.css +5 -5
- package/src/styles/index.css +38 -30
- package/src/styles/theme/bridges.css +0 -6
- package/src/styles/tokens/glass-fx.css +1 -5
- package/src/styles/tokens/glass.css +1 -2
- package/src/styles/tokens/offsets.css +0 -1
- package/src/styles/tokens/property-regs.css +11 -10
- package/src/styles/tokens/scale-paper.css +0 -1
- package/src/styles/tokens/scheme-motion.css +3 -0
- package/src/styles/tokens/scheme-spring.css +0 -10
- package/src/styles/tokens/shadow.css +3 -29
- package/src/styles/tokens.ts +58 -0
- package/src/styles/typography/scale.css +5 -2
- package/src/styles/typography/semantic.css +5 -5
- package/src/styles/typography/utilities.css +5 -5
- package/src/styles/utilities/base.css +5 -5
- package/src/styles/utilities/btn.css +6 -27
- package/src/styles/utilities.css +4 -6
- package/dist/ConfiguratorRow-BV6zPjTM.js +0 -151
- package/dist/DialogContent-Bl4v10AC.js +0 -192
- package/dist/DialogFooter-C0v4Hz2F.js +0 -168
- package/dist/PaperBackdrop-BYwE8_kg.js +0 -31
- package/dist/Progress-uWLyXE7J.js +0 -308
- package/dist/SelectGroup-BuEptUsa.js +0 -31
- package/dist/SelectSeparator-4QGephvr.js +0 -49
- package/dist/Separator-DqJ6PfOd.js +0 -44
- package/dist/color-Bp5jmv4Z.js +0 -86
- package/dist/components/carousel/GlassCarouselPager.vue.d.ts +0 -50
- package/dist/components/combobox/ComboboxSeparator.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxViewport.vue.d.ts +0 -18
- package/dist/components/constellation/composables/constellationGLSetup.d.ts +0 -10
- package/dist/components/constellation/composables/constellationWGPUSetup.d.ts +0 -19
- package/dist/components/constellation/composables/uniformBridgeWGPU.d.ts +0 -66
- package/dist/components/constellation/shaders/constellation-lines.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-lines.wgsl.d.ts +0 -1
- package/dist/components/constellation/shaders/constellation-points.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-points.wgsl.d.ts +0 -1
- package/dist/components/deck/composables/useDeckSpring.d.ts +0 -22
- package/dist/components/dialog/DialogScrollContent.vue.d.ts +0 -33
- package/dist/components/progress/ProgressSectioned.vue.d.ts +0 -47
- package/dist/components/progress/useProgressGeometry.d.ts +0 -60
- package/dist/components/section/Section.vue.d.ts +0 -73
- package/dist/components/section/index.d.ts +0 -1
- package/dist/components/stacked-icons/StackedIconGroup.vue.d.ts +0 -30
- package/dist/components/stacked-icons/index.d.ts +0 -2
- package/dist/components/stacked-icons/types.d.ts +0 -19
- package/dist/dropdown-menu-DaGlVdp9.js +0 -421
- package/dist/math-CIEcwsYi.js +0 -112
- package/dist/procedural-color.wgsl-ByduxnzV.js +0 -4
- package/dist/slider-Cxuj_W_H.js +0 -151
- package/dist/stacked-icons.d.ts +0 -1
- package/dist/stacked-icons.js +0 -98
- package/dist/styles/cards.css +0 -1
- package/dist/styles/completion-seal.css +0 -1
- package/dist/styles/dock/adaptive-legibility.css +0 -1
- package/dist/styles/dock/dock.css +0 -1
- package/dist/styles/dock/layer-group.css +0 -1
- package/dist/styles/dock/layers.css +0 -1
- package/dist/styles/dock/overflow.css +0 -1
- package/dist/styles/dock/popover.css +0 -1
- package/dist/styles/dock/shape.css +0 -1
- package/dist/styles/dock/shell.css +0 -1
- package/dist/styles/dock-controls/icon-button.css +0 -1
- package/dist/styles/dock-controls.css +0 -1
- package/dist/styles/dock.css +0 -1
- package/dist/styles/drawer.css +0 -1
- package/dist/styles/icon-chip.css +0 -1
- package/dist/styles/instrument-chassis.css +0 -1
- package/dist/styles/scroll-progress-rim.css +0 -1
- package/dist/styles/select.css +0 -1
- package/dist/styles/tabs/segmented-tabs-drag.css +0 -1
- package/dist/styles/utilities/animate.css +0 -0
- package/dist/useConfiguratorState-Dq35N_7t.js +0 -167
- package/dist/useDockCtaReceive-BgMmeINo.js +0 -161
- package/dist/useGlobalDark-DjKMEQE2.js +0 -53
- package/dist/useGpuSubstrate-DcY584kE.js +0 -347
- package/dist/useInterval-ZATRi-1T.js +0 -18
- package/dist/useKeyboardShortcuts-ynVmNFo3.js +0 -104
- package/dist/useLiquidPress-BXNHydZh.js +0 -40
- package/dist/useTextHighlight-C46Le9u_.js +0 -72
- package/dist/useViewportReady-c0isoKL8.js +0 -191
- package/src/styles/card-scroll.css +0 -189
- package/src/styles/cards.css +0 -485
- package/src/styles/completion-seal.css +0 -205
- package/src/styles/configurator.css +0 -359
- package/src/styles/dialog-placement.css +0 -68
- package/src/styles/dock/adaptive-legibility.css +0 -119
- package/src/styles/dock/crossfade.css +0 -139
- package/src/styles/dock/cta-seat.css +0 -87
- package/src/styles/dock/density.css +0 -458
- package/src/styles/dock/dock.css +0 -199
- package/src/styles/dock/fisheye.css +0 -81
- package/src/styles/dock/layer-group.css +0 -329
- package/src/styles/dock/layers.css +0 -438
- package/src/styles/dock/morph.css +0 -455
- package/src/styles/dock/overflow.css +0 -332
- package/src/styles/dock/popover.css +0 -249
- package/src/styles/dock/search.css +0 -68
- package/src/styles/dock/section.css +0 -59
- package/src/styles/dock/shape.css +0 -188
- package/src/styles/dock/shell-regions.css +0 -73
- package/src/styles/dock/shell.css +0 -500
- package/src/styles/dock-controls/dark-mode-toggle.css +0 -123
- package/src/styles/dock-controls/icon-button.css +0 -221
- package/src/styles/dock-controls/tab-button.css +0 -143
- package/src/styles/dock-controls/touch-floor.css +0 -119
- package/src/styles/dock-controls/triggers.css +0 -157
- package/src/styles/dock-controls.css +0 -92
- package/src/styles/dock.css +0 -219
- package/src/styles/drawer.css +0 -434
- package/src/styles/feedback-tone.css +0 -104
- package/src/styles/icon-chip.css +0 -256
- package/src/styles/instrument-chassis.css +0 -449
- package/src/styles/menu.css +0 -187
- package/src/styles/scroll-progress-rim.css +0 -87
- package/src/styles/segmented-tabs.css +0 -424
- package/src/styles/select.css +0 -201
- package/src/styles/tabs/segmented-tabs-drag.css +0 -200
- package/src/styles/utilities/animate.css +0 -29
- /package/dist/{coalesce-metric-B8o7zT9u.js → coalesce-metric-znAcLzkB.js} +0 -0
- /package/dist/{CollapsibleContent-DiHcB_HH.js → collapsible-bPzS1aQk.js} +0 -0
- /package/dist/{compile-C55K3P9g.js → compile-DK3Fri1B.js} +0 -0
- /package/dist/{styles → components/_shared}/feedback-tone.css +0 -0
- /package/dist/{styles → components/_shared}/menu.css +0 -0
- /package/dist/{styles → components/card}/card-scroll.css +0 -0
- /package/dist/{styles/configurator.css → components/configurator/styles.css} +0 -0
- /package/dist/{styles/dock-controls → components/controls}/dark-mode-toggle.css +0 -0
- /package/dist/{styles/dialog-placement.css → components/dialog/placement.css} +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/tab-button.css +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/triggers.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/crossfade.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/cta-seat.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/fisheye.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/morph.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/search.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/section.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/shell-regions.css +0 -0
- /package/dist/{styles/segmented-tabs.css → components/tabs/styles/segmented.css} +0 -0
- /package/dist/{constants-D8lSMkOz.js → constants-DRZmNIY-.js} +0 -0
- /package/dist/{createContext-BQ1Gy_LB.js → createContext-FU0n5MGK.js} +0 -0
- /package/dist/{flow.glsl-CVqPSj8_.js → flow.glsl-DEGFGE11.js} +0 -0
- /package/dist/{FocusScope-BzKwhsBn.js → focus-scope-DUTKveod.js} +0 -0
- /package/dist/{InstrumentChassis-Dss5Tjcm.js → instrument-chassis-Cvstg4_U.js} +0 -0
- /package/dist/{Label-C84TaQiw.js → label-Cj38tJKG.js} +0 -0
- /package/dist/{menuItemVariants-DbO-Fr74.js → menuItemVariants-D6AOzzND.js} +0 -0
- /package/dist/{pointerFieldMappings-4VtmkOWv.js → pointerFieldMappings-CZojkgKj.js} +0 -0
- /package/dist/{presets-B07HzyKd.js → presets-CxeNvxuO.js} +0 -0
- /package/dist/{prng-B0PLRmR6.js → prng-Dz2_9RJu.js} +0 -0
- /package/dist/{scrollReader-DzYqPQ6V.js → scrollReader-C2oK9Hb8.js} +0 -0
- /package/dist/{supportsCssTimeline-Ie4xJFbD.js → supportsCssTimeline-Dz-GVxXM.js} +0 -0
- /package/dist/{Toaster-C_-WeU9W.js → toast-kAbchIN2.js} +0 -0
- /package/dist/{useControlSize-DJwe-7ZQ.js → useControlSize-CFfOk8I-.js} +0 -0
- /package/dist/{useDocumentVisibility-CpJGUgcJ.js → useDocumentVisibility-YeBDGqtI.js} +0 -0
- /package/dist/{useDragMorph-65ihHePq.js → useDragMorph-7ygF9O0m.js} +0 -0
- /package/dist/{useDragVelocity-BWcNMCux.js → useDragVelocity-CbMZEBaC.js} +0 -0
- /package/dist/{useFuzzySearch-KslRxiJY.js → useFuzzySearch-BOgep7RE.js} +0 -0
- /package/dist/{useLeadTrail-DOH4XkL1.js → useLeadTrail-BYu8dq4G.js} +0 -0
- /package/dist/{usePointerVelocityField-CwXyeW0Z.js → usePointerVelocityField-BdvnO0py.js} +0 -0
- /package/dist/{useResizeObserver-DDuoBeBo.js → useResizeObserver-BcUTquV7.js} +0 -0
- /package/dist/{useResolveTokenColor-DVT5kwv6.js → useResolveTokenColor-C07e-qaT.js} +0 -0
- /package/dist/{useRoutePointer-DL7I0gY4.js → useRoutePointer-BDNMFN73.js} +0 -0
- /package/dist/{useSpringMount-CNvvgGiC.js → useSpringMount-C6-DBx4e.js} +0 -0
- /package/dist/{useTimer-CkDV8SC2.js → useTimer-D8koDvJS.js} +0 -0
- /package/dist/{useUserInvalidAria-Bkruei7M.js → useUserInvalidAria-Cr4nR3tu.js} +0 -0
- /package/dist/{vReveal-DUmiEkX_.js → vReveal-DZfWl9XI.js} +0 -0
- /package/dist/{vSpecular-DlYN0UZy.js → vSpecular-CQFmLNzA.js} +0 -0
- /package/dist/{writeVelocityWeight-D1rvdxJu.js → writeVelocityWeight-D_AcvTsE.js} +0 -0
package/dist/dock.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
2
|
import { t } from "./motionTempo-CMS5b0Vu.js";
|
|
3
3
|
import { n } from "./springPresets-h5VKJQqG.js";
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import { t as i } from "./
|
|
4
|
+
import { t as r } from "./useLiquidPress-BYcwwGQV.js";
|
|
5
|
+
import { t as i } from "./vSpecular-CQFmLNzA.js";
|
|
6
6
|
import { t as a } from "./useMotionAxis-DCCXMC-i.js";
|
|
7
7
|
import { t as o } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
8
|
-
import { t as s } from "./useResizeObserver-
|
|
9
|
-
import { t as c } from "./useTouchGate-
|
|
10
|
-
import { n as l } from "./useResolveTokenColor-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as y } from "./
|
|
14
|
-
import { t as b } from "./
|
|
15
|
-
import { t as x } from "./
|
|
16
|
-
import {
|
|
17
|
-
import { t as C } from "./
|
|
18
|
-
import {
|
|
19
|
-
import { t as E } from "./
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
8
|
+
import { t as s } from "./useResizeObserver-BcUTquV7.js";
|
|
9
|
+
import { t as c } from "./useTouchGate-Cj5fOkTv.js";
|
|
10
|
+
import { n as l } from "./useResolveTokenColor-C07e-qaT.js";
|
|
11
|
+
import { t as u } from "./DropdownMenuTrigger-BzQtd9lt.js";
|
|
12
|
+
import { n as d, t as f } from "./createContext-FU0n5MGK.js";
|
|
13
|
+
import { a as p, i as m, n as h, o as g, r as _, s as v, t as y } from "./dockContext-4S9qP0Z4.js";
|
|
14
|
+
import { t as b } from "./FadingScroll-C1ZWEjmG.js";
|
|
15
|
+
import { t as x } from "./useDragMorph-7ygF9O0m.js";
|
|
16
|
+
import { n as S } from "./useDockCtaReceive-CK-RLASa.js";
|
|
17
|
+
import { t as C } from "./useRAFLoop-BtwQ9DyY.js";
|
|
18
|
+
import { t as w } from "./useIntersectionPause-B-dbxl9w.js";
|
|
19
|
+
import { n as T, t as E } from "./useSelectionGroup-LDzBdR1Y.js";
|
|
20
|
+
import { t as D } from "./useFuzzySearch-BOgep7RE.js";
|
|
21
|
+
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createVNode as P, defineComponent as F, mergeModels as I, mergeProps as L, nextTick as ee, normalizeClass as R, normalizeStyle as z, onBeforeUnmount as B, onMounted as te, onScopeDispose as V, onUnmounted as ne, openBlock as H, readonly as U, ref as W, renderList as G, renderSlot as K, resolveDynamicComponent as q, toDisplayString as re, toValue as ie, unref as J, useId as ae, useModel as oe, useTemplateRef as Y, watch as X, withCtx as Z, withDirectives as Q, withKeys as se } from "vue";
|
|
22
|
+
import { PopoverTrigger as ce, Primitive as le, SelectIcon as ue, SelectTrigger as de } from "reka-ui";
|
|
22
23
|
import { ChevronDown as fe, Layers as pe, Pause as me, Play as he } from "@lucide/vue";
|
|
23
24
|
import { SpringProgress as ge } from "@mkbabb/keyframes.js";
|
|
24
|
-
import {
|
|
25
|
+
import { useMediaQuery as _e } from "@vueuse/core";
|
|
26
|
+
import { rawOklabToOklch as ve, srgbToOKLab as ye } from "@mkbabb/value.js";
|
|
25
27
|
//#region src/composables/glass/backdropSampleMath.ts
|
|
26
|
-
function
|
|
28
|
+
function be(e) {
|
|
27
29
|
let t = e / 255;
|
|
28
30
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
29
31
|
}
|
|
30
|
-
function
|
|
31
|
-
return .2126 *
|
|
32
|
+
function xe(e, t, n) {
|
|
33
|
+
return .2126 * be(e) + .7152 * be(t) + .0722 * be(n);
|
|
32
34
|
}
|
|
33
|
-
function
|
|
35
|
+
function Se(e) {
|
|
34
36
|
let t = e.match(/rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/i);
|
|
35
37
|
return t ? [
|
|
36
38
|
Number(t[1]),
|
|
@@ -39,13 +41,13 @@ function xe(e) {
|
|
|
39
41
|
t[4] === void 0 ? 1 : Number(t[4])
|
|
40
42
|
] : null;
|
|
41
43
|
}
|
|
42
|
-
function
|
|
44
|
+
function Ce(e) {
|
|
43
45
|
return typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement;
|
|
44
46
|
}
|
|
45
47
|
//#endregion
|
|
46
48
|
//#region src/composables/glass/ambientHueHistogram.ts
|
|
47
|
-
var $ = 12,
|
|
48
|
-
function
|
|
49
|
+
var $ = 12, we = .72, Te = .06, Ee = .004;
|
|
50
|
+
function De() {
|
|
49
51
|
return {
|
|
50
52
|
weight: new Float64Array($),
|
|
51
53
|
sumCos: new Float64Array($),
|
|
@@ -54,45 +56,45 @@ function Ee() {
|
|
|
54
56
|
n: 0
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
|
-
function
|
|
59
|
+
function Oe(e, t, n, r, i) {
|
|
58
60
|
e.n++;
|
|
59
|
-
let [a, o, s] =
|
|
61
|
+
let [a, o, s] = ye(t, n, r), [, c, l] = ve(a, o, s);
|
|
60
62
|
if (!Number.isFinite(c) || !Number.isFinite(l) || c <= 0) return;
|
|
61
63
|
let u = c * i;
|
|
62
64
|
if (u <= 0) return;
|
|
63
65
|
let d = l * Math.PI / 180, f = Math.floor(l / 360 * $) % $;
|
|
64
66
|
f < 0 && (f += $), e.weight[f] += u, e.sumCos[f] += u * Math.cos(d), e.sumSin[f] += u * Math.sin(d), e.totalMass += u;
|
|
65
67
|
}
|
|
66
|
-
function
|
|
67
|
-
if (e.n === 0 || e.totalMass / e.n <
|
|
68
|
+
function ke(e) {
|
|
69
|
+
if (e.n === 0 || e.totalMass / e.n < Ee) return "transparent";
|
|
68
70
|
let t = 0;
|
|
69
71
|
for (let n = 1; n < $; n++) e.weight[n] > e.weight[t] && (t = n);
|
|
70
72
|
if (e.weight[t] <= 0) return "transparent";
|
|
71
73
|
let n = Math.atan2(e.sumSin[t], e.sumCos[t]) * 180 / Math.PI;
|
|
72
|
-
return n < 0 && (n += 360), `oklch(${
|
|
74
|
+
return n < 0 && (n += 360), `oklch(${we} ${Te} ${n.toFixed(1)})`;
|
|
73
75
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
+
var Ae = "[data-glass-field-canvas] canvas, canvas[data-glass-field-canvas]";
|
|
77
|
+
function je(e) {
|
|
76
78
|
if (!e) {
|
|
77
79
|
if (typeof document < "u") {
|
|
78
|
-
let e = document.querySelector(
|
|
79
|
-
if (
|
|
80
|
+
let e = document.querySelector(Ae);
|
|
81
|
+
if (Ce(e)) return e;
|
|
80
82
|
}
|
|
81
83
|
return null;
|
|
82
84
|
}
|
|
83
|
-
if (
|
|
85
|
+
if (Ce(e)) return e;
|
|
84
86
|
if (typeof e == "function") {
|
|
85
87
|
let t = e();
|
|
86
|
-
return
|
|
88
|
+
return Ce(t) ? t : null;
|
|
87
89
|
}
|
|
88
90
|
if (typeof e == "string" && typeof document < "u") {
|
|
89
91
|
let t = document.querySelector(e);
|
|
90
|
-
return
|
|
92
|
+
return Ce(t) ? t : null;
|
|
91
93
|
}
|
|
92
94
|
return null;
|
|
93
95
|
}
|
|
94
|
-
function
|
|
95
|
-
let n =
|
|
96
|
+
function Me(e, t) {
|
|
97
|
+
let n = Se(e);
|
|
96
98
|
if (n) return n;
|
|
97
99
|
if (!t) return null;
|
|
98
100
|
try {
|
|
@@ -108,7 +110,7 @@ function je(e, t) {
|
|
|
108
110
|
return null;
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
|
-
function
|
|
113
|
+
function Ne(e, t, n) {
|
|
112
114
|
if (!t || t.width === 0 || t.height === 0 || !n) return null;
|
|
113
115
|
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
114
116
|
if (i.width === 0 || i.height === 0) return null;
|
|
@@ -116,132 +118,159 @@ function Me(e, t, n) {
|
|
|
116
118
|
if (l <= 0 || u <= 0) return null;
|
|
117
119
|
try {
|
|
118
120
|
n.clearRect(0, 0, 32, 32), n.drawImage(t, s, c, l, u, 0, 0, 32, 32);
|
|
119
|
-
let e = n.getImageData(0, 0, 32, 32).data, r = 0, i = 0, a = 0, o =
|
|
121
|
+
let e = n.getImageData(0, 0, 32, 32).data, r = 0, i = 0, a = 0, o = De();
|
|
120
122
|
for (let t = 0; t < e.length; t += 4) {
|
|
121
123
|
let n = e[t + 3] / 255, s = e[t] * n + 255 * (1 - n), c = e[t + 1] * n + 255 * (1 - n), l = e[t + 2] * n + 255 * (1 - n);
|
|
122
|
-
r +=
|
|
124
|
+
r += xe(s, c, l), i += n, Oe(o, s, c, l, n), a++;
|
|
123
125
|
}
|
|
124
126
|
return a === 0 || i / a < .02 ? null : {
|
|
125
127
|
luma: r / a,
|
|
126
|
-
ambientHue:
|
|
128
|
+
ambientHue: ke(o)
|
|
127
129
|
};
|
|
128
130
|
} catch {
|
|
129
131
|
return null;
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
|
-
function
|
|
134
|
+
function Pe(e, t) {
|
|
133
135
|
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = document.elementsFromPoint(r, i);
|
|
134
136
|
for (let n of a) {
|
|
135
137
|
if (!(n instanceof HTMLElement) || n === e || e.contains(n)) continue;
|
|
136
|
-
let r = getComputedStyle(n).backgroundColor, i =
|
|
137
|
-
if (i && !(i[3] < .5)) return
|
|
138
|
+
let r = getComputedStyle(n).backgroundColor, i = Me(l(r, e), t);
|
|
139
|
+
if (i && !(i[3] < .5)) return Fe(i);
|
|
138
140
|
}
|
|
139
|
-
let o =
|
|
140
|
-
return o ?
|
|
141
|
+
let o = Me(l(getComputedStyle(document.body).backgroundColor, e), t);
|
|
142
|
+
return o ? Fe(o) : null;
|
|
141
143
|
}
|
|
142
|
-
function
|
|
143
|
-
let t =
|
|
144
|
-
return
|
|
145
|
-
luma:
|
|
146
|
-
ambientHue:
|
|
144
|
+
function Fe(e) {
|
|
145
|
+
let t = De();
|
|
146
|
+
return Oe(t, e[0], e[1], e[2], e[3]), {
|
|
147
|
+
luma: xe(e[0], e[1], e[2]),
|
|
148
|
+
ambientHue: ke(t)
|
|
147
149
|
};
|
|
148
150
|
}
|
|
149
151
|
//#endregion
|
|
150
152
|
//#region src/composables/glass/useGlassBackdropLuminance.ts
|
|
151
|
-
var
|
|
152
|
-
function
|
|
153
|
+
var Ie = "(prefers-reduced-motion: reduce)", Le = "data-glass-backdrop-shared", Re = "8%";
|
|
154
|
+
function ze(e, t = {}) {
|
|
153
155
|
let { lightThreshold: n = .6, minSampleIntervalMs: r = 250, writeBucket: i = !0 } = t, a = Math.max(250, r), o = t.shared === !0;
|
|
154
156
|
function c(e) {
|
|
155
|
-
return o ? !1 : e.closest(`[${
|
|
157
|
+
return o ? !1 : e.closest(`[${Le}]`) !== null;
|
|
156
158
|
}
|
|
157
|
-
let l = W(null), u = W(null)
|
|
159
|
+
let l = W(null), u = W(null), d = W({
|
|
160
|
+
state: "pending",
|
|
161
|
+
mode: t.live === !0 ? "live" : "static",
|
|
162
|
+
source: t.live === !0 ? "canvas" : "elements"
|
|
163
|
+
});
|
|
158
164
|
if (typeof window > "u") return {
|
|
159
165
|
luma: U(l),
|
|
160
166
|
bucket: U(u),
|
|
167
|
+
sample: U(d),
|
|
161
168
|
sampleNow: () => {},
|
|
162
169
|
dispose: () => {}
|
|
163
170
|
};
|
|
164
|
-
let
|
|
165
|
-
function h() {
|
|
166
|
-
return p || (p = document.createElement("canvas"), p.width = 32, p.height = 32), m ||= p.getContext("2d", { willReadFrequently: !0 }), m;
|
|
167
|
-
}
|
|
171
|
+
let f = window.matchMedia(Ie), p = f.matches, m = null, h = null;
|
|
168
172
|
function g() {
|
|
169
|
-
return
|
|
173
|
+
return m || (m = document.createElement("canvas"), m.width = 32, m.height = 32), h ||= m.getContext("2d", { willReadFrequently: !0 }), h;
|
|
170
174
|
}
|
|
171
175
|
function _() {
|
|
172
|
-
return t.live === void 0 ? e.value?.dataset.glassSample === "live" || t.backgroundCanvas != null ? !0 :
|
|
173
|
-
}
|
|
174
|
-
function v(
|
|
175
|
-
let
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
176
|
+
return t.live === void 0 ? e.value?.dataset.glassSample === "live" || t.backgroundCanvas != null ? !0 : je(void 0) !== null : t.live;
|
|
177
|
+
}
|
|
178
|
+
function v(e) {
|
|
179
|
+
let t = e.getBoundingClientRect();
|
|
180
|
+
return {
|
|
181
|
+
x: t.x,
|
|
182
|
+
y: t.y,
|
|
183
|
+
width: t.width,
|
|
184
|
+
height: t.height
|
|
185
|
+
};
|
|
182
186
|
}
|
|
183
|
-
|
|
184
|
-
|
|
187
|
+
function y(e, t, r, a) {
|
|
188
|
+
let o = e.luma;
|
|
189
|
+
l.value = o;
|
|
190
|
+
let s = o >= n ? "light" : "dark";
|
|
191
|
+
u.value = s, d.value = {
|
|
192
|
+
state: "sampled",
|
|
193
|
+
mode: r,
|
|
194
|
+
source: r === "live" ? "canvas" : "elements",
|
|
195
|
+
luma: o,
|
|
196
|
+
ambientHue: e.ambientHue,
|
|
197
|
+
sampledAt: a,
|
|
198
|
+
targetRect: v(t)
|
|
199
|
+
}, t.style.setProperty("--glass-backdrop-luma", o.toFixed(3)), t.style.setProperty("--glass-ambient-hue", e.ambientHue), t.style.setProperty("--glass-ambient-strength", e.ambientHue === "transparent" ? "0%" : Re), t.setAttribute("data-backdrop-sampled", ""), t.setAttribute("data-backdrop-sample-state", "sampled"), t.setAttribute("data-backdrop-sample-source", r === "live" ? "canvas" : "elements"), t.removeAttribute("data-backdrop-sample-reason"), t.style.setProperty("--glass-backdrop-sampled", "1"), i && t.style.setProperty("--glass-backdrop", s);
|
|
200
|
+
}
|
|
201
|
+
function b(e, t, n, r) {
|
|
202
|
+
l.value = null, u.value = null, d.value = {
|
|
203
|
+
state: "unavailable",
|
|
204
|
+
mode: t,
|
|
205
|
+
source: t === "live" ? "canvas" : "elements",
|
|
206
|
+
reason: n,
|
|
207
|
+
sampledAt: r,
|
|
208
|
+
targetRect: v(e)
|
|
209
|
+
}, e.style.removeProperty("--glass-backdrop-luma"), e.style.removeProperty("--glass-ambient-hue"), e.style.removeProperty("--glass-ambient-strength"), e.style.removeProperty("--glass-backdrop-sampled"), i && e.style.removeProperty("--glass-backdrop"), e.removeAttribute("data-backdrop-sampled"), e.setAttribute("data-backdrop-sample-state", "unavailable"), e.setAttribute("data-backdrop-sample-source", t === "live" ? "canvas" : "elements"), e.setAttribute("data-backdrop-sample-reason", n);
|
|
210
|
+
}
|
|
211
|
+
let x = 0;
|
|
212
|
+
function S() {
|
|
185
213
|
let n = e.value;
|
|
186
214
|
if (!n || c(n)) return;
|
|
187
|
-
let r =
|
|
188
|
-
i
|
|
215
|
+
let r = g(), i = _() ? "live" : "static", a = i === "live" ? je(t.backgroundCanvas) : null, o = i === "live" ? Ne(n, a, r) : Pe(n, r), s = Date.now();
|
|
216
|
+
o ? y(o, n, i, s) : b(n, i, i === "live" && !a ? "source-unavailable" : "sample-unavailable", s), x = typeof performance < "u" ? performance.now() : s;
|
|
189
217
|
}
|
|
190
|
-
let
|
|
191
|
-
|
|
218
|
+
let T = C(({ now: e }) => {
|
|
219
|
+
p || e - x < a || S();
|
|
192
220
|
}, {
|
|
193
221
|
immediate: !1,
|
|
194
222
|
pauseWhenHidden: !0,
|
|
195
223
|
respectReducedMotion: !0
|
|
196
|
-
}),
|
|
197
|
-
pause: () =>
|
|
224
|
+
}), E = w(() => e.value, {
|
|
225
|
+
pause: () => T.pause(),
|
|
198
226
|
resume: () => {
|
|
199
227
|
let t = e.value;
|
|
200
|
-
t && c(t) || _() && !
|
|
228
|
+
t && c(t) || _() && !p && T.resume();
|
|
201
229
|
}
|
|
202
|
-
}, { rootMargin: "200px" }),
|
|
203
|
-
function
|
|
204
|
-
|
|
230
|
+
}, { rootMargin: "200px" }), D = s(e, () => S());
|
|
231
|
+
function O() {
|
|
232
|
+
p = f.matches;
|
|
205
233
|
let t = e.value;
|
|
206
234
|
if (t && c(t)) {
|
|
207
|
-
|
|
235
|
+
T.stop();
|
|
208
236
|
return;
|
|
209
237
|
}
|
|
210
|
-
|
|
238
|
+
p ? (T.stop(), S()) : _() && T.start();
|
|
211
239
|
}
|
|
212
|
-
let
|
|
213
|
-
typeof
|
|
214
|
-
let
|
|
240
|
+
let k = () => O();
|
|
241
|
+
typeof f.addEventListener == "function" && f.addEventListener("change", k);
|
|
242
|
+
let A = X(() => e.value, (e) => {
|
|
215
243
|
if (e) {
|
|
216
|
-
if (o) e.setAttribute(
|
|
244
|
+
if (o) e.setAttribute(Le, "");
|
|
217
245
|
else if (c(e)) return;
|
|
218
|
-
|
|
246
|
+
S(), O();
|
|
219
247
|
}
|
|
220
248
|
}, {
|
|
221
249
|
immediate: !0,
|
|
222
250
|
flush: "post"
|
|
223
251
|
});
|
|
224
|
-
function
|
|
225
|
-
|
|
252
|
+
function j() {
|
|
253
|
+
A(), T.dispose(), E.dispose(), D.stop(), typeof f.removeEventListener == "function" && f.removeEventListener("change", k), m = null, h = null;
|
|
226
254
|
}
|
|
227
|
-
return
|
|
255
|
+
return V(j), {
|
|
228
256
|
luma: U(l),
|
|
229
257
|
bucket: U(u),
|
|
230
|
-
|
|
231
|
-
|
|
258
|
+
sample: U(d),
|
|
259
|
+
sampleNow: S,
|
|
260
|
+
dispose: j
|
|
232
261
|
};
|
|
233
262
|
}
|
|
234
263
|
//#endregion
|
|
235
264
|
//#region src/components/dock/composables/isTeleportedTarget.ts
|
|
236
|
-
function
|
|
265
|
+
function Be(e, t) {
|
|
237
266
|
if (!(e instanceof Element)) return !1;
|
|
238
267
|
let n = e.closest("[data-glass-dock-portal]");
|
|
239
268
|
return n ? t ? n.getAttribute("data-glass-dock-owner") === t : !0 : !1;
|
|
240
269
|
}
|
|
241
270
|
//#endregion
|
|
242
271
|
//#region src/components/dock/composables/useDockState.ts
|
|
243
|
-
function
|
|
244
|
-
let { collapseDelay: t = 3600, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), l = W(c ? "pinned" : "collapsed"), u = W(c), d = W(c), f = null, p = W(0), m =
|
|
272
|
+
function Ve(e) {
|
|
273
|
+
let { collapseDelay: t = 3600, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), l = W(c ? "pinned" : "collapsed"), u = W(c), d = W(c), f = null, p = W(0), m = k(() => p.value > 0), h = null, g = null, _ = !1, v = null;
|
|
245
274
|
function y() {
|
|
246
275
|
v &&= (clearTimeout(v), null);
|
|
247
276
|
}
|
|
@@ -277,7 +306,7 @@ function Be(e) {
|
|
|
277
306
|
}
|
|
278
307
|
S(), y(), l.value = "hover", x();
|
|
279
308
|
}
|
|
280
|
-
function
|
|
309
|
+
function O() {
|
|
281
310
|
s() || (S(), l.value === "collapsed" && (y(), v = setTimeout(() => {
|
|
282
311
|
v = null, !s() && l.value === "collapsed" && (l.value = "hover", x());
|
|
283
312
|
}, 60)));
|
|
@@ -287,7 +316,7 @@ function Be(e) {
|
|
|
287
316
|
if (p.value > 0) return;
|
|
288
317
|
if (e) {
|
|
289
318
|
let t = n.value;
|
|
290
|
-
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) ||
|
|
319
|
+
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || Be(e.relatedTarget, a)) return;
|
|
291
320
|
}
|
|
292
321
|
T();
|
|
293
322
|
}
|
|
@@ -298,7 +327,7 @@ function Be(e) {
|
|
|
298
327
|
function M(e) {
|
|
299
328
|
if (s() || l.value !== "hover" || p.value > 0) return;
|
|
300
329
|
let t = e.currentTarget;
|
|
301
|
-
e.relatedTarget && t.contains(e.relatedTarget) ||
|
|
330
|
+
e.relatedTarget && t.contains(e.relatedTarget) || Be(e.relatedTarget, a) || T();
|
|
302
331
|
}
|
|
303
332
|
function N() {
|
|
304
333
|
if (s()) {
|
|
@@ -316,9 +345,9 @@ function Be(e) {
|
|
|
316
345
|
}, Math.min(t, 800)));
|
|
317
346
|
}
|
|
318
347
|
function I(e) {
|
|
319
|
-
if (s() || i?.value) return;
|
|
348
|
+
if (s() || p.value > 0 || i?.value) return;
|
|
320
349
|
let t = n.value;
|
|
321
|
-
!t || t.contains(e.target) ||
|
|
350
|
+
!t || t.contains(e.target) || Be(e.target, a) || E();
|
|
322
351
|
}
|
|
323
352
|
return X(u, (e) => {
|
|
324
353
|
e ? (w(), g = requestAnimationFrame(() => {
|
|
@@ -332,14 +361,14 @@ function Be(e) {
|
|
|
332
361
|
return;
|
|
333
362
|
}
|
|
334
363
|
l.value = "collapsed", x();
|
|
335
|
-
}, { immediate: !0 }),
|
|
364
|
+
}, { immediate: !0 }), ne(() => {
|
|
336
365
|
S(), y(), w();
|
|
337
366
|
}), {
|
|
338
367
|
state: l,
|
|
339
368
|
expanded: u,
|
|
340
369
|
isPinned: d,
|
|
341
370
|
isHeld: m,
|
|
342
|
-
onMouseEnter:
|
|
371
|
+
onMouseEnter: O,
|
|
343
372
|
onMouseLeave: A,
|
|
344
373
|
onFocusIn: j,
|
|
345
374
|
onFocusOut: M,
|
|
@@ -352,7 +381,7 @@ function Be(e) {
|
|
|
352
381
|
}
|
|
353
382
|
//#endregion
|
|
354
383
|
//#region src/components/dock/composables/useDockSpring.ts
|
|
355
|
-
function
|
|
384
|
+
function He(e) {
|
|
356
385
|
let n = null, r = () => n !== null && !n.settled;
|
|
357
386
|
function i() {
|
|
358
387
|
n &&= (n.dispose(), null);
|
|
@@ -387,56 +416,59 @@ function Ve(e) {
|
|
|
387
416
|
}
|
|
388
417
|
//#endregion
|
|
389
418
|
//#region src/components/dock/composables/dockMorphContext.ts
|
|
390
|
-
var
|
|
391
|
-
function We(e) {
|
|
392
|
-
He.provide(e);
|
|
393
|
-
}
|
|
394
|
-
He.use;
|
|
419
|
+
var Ue = f(g), { KEY: We } = Ue;
|
|
395
420
|
function Ge(e) {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
421
|
+
Ue.provide(e);
|
|
422
|
+
}
|
|
423
|
+
Ue.use;
|
|
424
|
+
function Ke(e) {
|
|
425
|
+
let { rootEl: t, outerEl: n, outerActiveLayer: r, outerAxis: i } = e, a = He({
|
|
426
|
+
response: v.response,
|
|
427
|
+
dampingFraction: v.dampingFraction
|
|
428
|
+
}), o = _e("(prefers-reduced-motion: reduce)"), s = /* @__PURE__ */ new Set();
|
|
429
|
+
function c() {
|
|
401
430
|
return t.value;
|
|
402
431
|
}
|
|
403
|
-
function
|
|
404
|
-
let e =
|
|
432
|
+
function l() {
|
|
433
|
+
let e = c();
|
|
405
434
|
return !!e && e.hasAttribute("data-morphing");
|
|
406
435
|
}
|
|
407
|
-
function
|
|
436
|
+
function u(e) {
|
|
408
437
|
e.leavingLayer.value = null;
|
|
409
438
|
}
|
|
410
|
-
function
|
|
411
|
-
let t =
|
|
439
|
+
function d() {
|
|
440
|
+
let t = c();
|
|
412
441
|
t && (t.removeAttribute("data-morphing"), t.removeAttribute("data-pane-swap"), t.style.removeProperty("--dock-morph-t")), e.onMorphActiveChange?.(!1), a.dispose();
|
|
413
442
|
}
|
|
414
|
-
function
|
|
415
|
-
for (let e of
|
|
416
|
-
|
|
443
|
+
function f() {
|
|
444
|
+
for (let e of s) u(e);
|
|
445
|
+
d();
|
|
417
446
|
}
|
|
418
|
-
|
|
419
|
-
|
|
447
|
+
X(o, (e) => {
|
|
448
|
+
e && l() && f();
|
|
449
|
+
});
|
|
450
|
+
function p(t = !1) {
|
|
451
|
+
let n = c();
|
|
420
452
|
n && (e.onMorphActiveChange?.(!0), n.setAttribute("data-morphing", ""), t ? n.setAttribute("data-pane-swap", "") : n.removeAttribute("data-pane-swap"), n.style.setProperty("--dock-morph-t", "0"), a.playTo(0, 1, {
|
|
421
453
|
onFrame: (e) => {
|
|
422
|
-
let t =
|
|
454
|
+
let t = c();
|
|
423
455
|
t && t.style.setProperty("--dock-morph-t", `${e}`);
|
|
424
456
|
},
|
|
425
457
|
onSettle: () => {
|
|
426
|
-
|
|
458
|
+
f();
|
|
427
459
|
}
|
|
428
460
|
}));
|
|
429
461
|
}
|
|
430
|
-
function
|
|
462
|
+
function m(e, t, n) {
|
|
431
463
|
if (t !== n) {
|
|
432
|
-
if (!
|
|
464
|
+
if (!c()) {
|
|
433
465
|
e.currentLayer.value = t, e.leavingLayer.value = null;
|
|
434
466
|
return;
|
|
435
467
|
}
|
|
436
|
-
e.leavingLayer.value = n, e.currentLayer.value = t,
|
|
468
|
+
e.leavingLayer.value = n, e.currentLayer.value = t, p(!e.isOuter);
|
|
437
469
|
}
|
|
438
470
|
}
|
|
439
|
-
function
|
|
471
|
+
function h(e, t = !1) {
|
|
440
472
|
let n = {
|
|
441
473
|
containerEl: e.containerEl,
|
|
442
474
|
axis: e.axis,
|
|
@@ -447,147 +479,188 @@ function Ge(e) {
|
|
|
447
479
|
stop: () => {}
|
|
448
480
|
};
|
|
449
481
|
return n.stop = X(e.activeLayer, (e, t) => {
|
|
450
|
-
|
|
451
|
-
}),
|
|
482
|
+
m(n, e, t);
|
|
483
|
+
}), s.add(n), n;
|
|
452
484
|
}
|
|
453
|
-
function
|
|
454
|
-
e.stop(),
|
|
485
|
+
function g(e) {
|
|
486
|
+
e.stop(), s.delete(e), l() || a.dispose();
|
|
455
487
|
}
|
|
456
|
-
let
|
|
488
|
+
let _ = h({
|
|
457
489
|
containerEl: n,
|
|
458
490
|
activeLayer: r,
|
|
459
491
|
axis: i
|
|
460
492
|
}, !0);
|
|
461
|
-
return
|
|
462
|
-
for (let e of
|
|
463
|
-
|
|
493
|
+
return ne(() => {
|
|
494
|
+
for (let e of s) e.stop();
|
|
495
|
+
s.clear(), a.dispose();
|
|
464
496
|
}), {
|
|
465
497
|
context: { registerGroup(e) {
|
|
466
|
-
let t =
|
|
498
|
+
let t = h(e);
|
|
467
499
|
return {
|
|
468
500
|
currentLayer: U(t.currentLayer),
|
|
469
501
|
leavingLayer: U(t.leavingLayer),
|
|
470
|
-
release: () =>
|
|
502
|
+
release: () => g(t)
|
|
471
503
|
};
|
|
472
504
|
} },
|
|
473
|
-
outerCurrentLayer: U(
|
|
505
|
+
outerCurrentLayer: U(_.currentLayer),
|
|
506
|
+
outerLeavingLayer: U(_.leavingLayer)
|
|
474
507
|
};
|
|
475
508
|
}
|
|
476
509
|
//#endregion
|
|
477
510
|
//#region src/components/dock/composables/dockMorphMeasure.ts
|
|
478
|
-
function
|
|
511
|
+
function qe(e) {
|
|
479
512
|
return e === "vertical" ? "height" : "width";
|
|
480
513
|
}
|
|
481
|
-
function
|
|
482
|
-
return e.getBoundingClientRect()[
|
|
483
|
-
}
|
|
484
|
-
function Je(e) {
|
|
485
|
-
if (!e || typeof getComputedStyle != "function") return 44;
|
|
486
|
-
let t = getComputedStyle(e).getPropertyValue("--dock-morph-min").trim(), n = Number.parseFloat(t);
|
|
487
|
-
return Number.isFinite(n) && n > 0 ? n : 44;
|
|
514
|
+
function Je(e, t) {
|
|
515
|
+
return e.getBoundingClientRect()[qe(t)];
|
|
488
516
|
}
|
|
489
517
|
function Ye(e) {
|
|
490
|
-
let
|
|
491
|
-
|
|
518
|
+
let t = e.ownerDocument.createElement("i");
|
|
519
|
+
t.style.cssText = "position:absolute;visibility:hidden;pointer-events:none;contain:strict;inline-size:var(--dock-morph-min);block-size:0", e.append(t);
|
|
520
|
+
let n = Number.parseFloat(e.ownerDocument.defaultView?.getComputedStyle(t).inlineSize ?? "");
|
|
521
|
+
return t.remove(), Number.isFinite(n) && n > 0 ? n : null;
|
|
522
|
+
}
|
|
523
|
+
function Xe(e) {
|
|
524
|
+
let { rootEl: t, contentEl: n, axis: r, expanded: i } = e, a = W(null), o = null, s = 0, c = 0, l = !1;
|
|
525
|
+
function u(e) {
|
|
492
526
|
return e.hasAttribute("data-morphing");
|
|
493
527
|
}
|
|
494
|
-
function
|
|
495
|
-
let e = t.value,
|
|
496
|
-
if (!e || !
|
|
497
|
-
let
|
|
498
|
-
if (
|
|
499
|
-
let t =
|
|
500
|
-
|
|
528
|
+
function d() {
|
|
529
|
+
let e = t.value, o = n.value;
|
|
530
|
+
if (!e || !o) return;
|
|
531
|
+
let d = r.value, f = Ye(e);
|
|
532
|
+
if (f === null) {
|
|
533
|
+
let t = e.ownerDocument.defaultView?.getComputedStyle(e).getPropertyValue("--dock-morph-min").trim() ?? "";
|
|
534
|
+
a.value?.token !== t && (a.value = {
|
|
535
|
+
code: "invalid-morph-min",
|
|
536
|
+
token: t
|
|
537
|
+
}), e.style.removeProperty("--dock-collapsed-px"), e.style.removeProperty("--dock-expanded-px");
|
|
538
|
+
return;
|
|
501
539
|
}
|
|
502
|
-
|
|
503
|
-
|
|
540
|
+
if (a.value = null, l || (c = f), !u(e)) {
|
|
541
|
+
let t = Je(e, d);
|
|
542
|
+
t > 0 && (i.value ? s = t : (c = t, l = !0));
|
|
543
|
+
}
|
|
544
|
+
let p = s > 0 ? s : Math.max(Je(o, d), c), m = Math.max(p, c);
|
|
545
|
+
e.style.setProperty("--dock-collapsed-px", `${c}px`), e.style.setProperty("--dock-expanded-px", `${m}px`);
|
|
504
546
|
}
|
|
505
|
-
function
|
|
506
|
-
|
|
547
|
+
function f(e) {
|
|
548
|
+
o &&= (o.disconnect(), null), !(!e || typeof ResizeObserver > "u") && (o = new ResizeObserver(() => d()), n.value && o.observe(n.value), o.observe(e), d());
|
|
507
549
|
}
|
|
508
|
-
X(t, (e) =>
|
|
509
|
-
let
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
});
|
|
550
|
+
X(t, (e) => f(e), { immediate: !0 }), X(n, () => f(t.value)), X(i, () => d());
|
|
551
|
+
let p = typeof document < "u" ? document.fonts : void 0;
|
|
552
|
+
return p && p.ready.then(() => d()), V(() => {
|
|
553
|
+
o && o.disconnect(), o = null;
|
|
554
|
+
}), { failure: U(a) };
|
|
513
555
|
}
|
|
514
556
|
//#endregion
|
|
515
557
|
//#region src/components/dock/composables/useDockShellProps.ts
|
|
516
|
-
function
|
|
517
|
-
let t =
|
|
558
|
+
function Ze(e) {
|
|
559
|
+
let t = k(() => {
|
|
518
560
|
if (e.containerName) return {
|
|
519
561
|
"container-type": "inline-size",
|
|
520
562
|
"container-name": e.containerName
|
|
521
563
|
};
|
|
522
|
-
}), n =
|
|
564
|
+
}), n = k(() => e.collapseDelay ?? 3600), r = k(() => e.layout ?? "linear"), i = k(() => e.shape ?? "pill"), a = k(() => e.orientation ?? "horizontal"), o = k(() => e.size ?? "md"), s = k(() => a.value === "vertical" || e.overflow === "wrap" ? null : "dock-scroll-x"), c = k(() => e.alwaysExpanded || r.value === "grid");
|
|
523
565
|
return {
|
|
524
566
|
containerStyle: t,
|
|
525
567
|
collapseDelay: n,
|
|
526
|
-
startCollapsed:
|
|
568
|
+
startCollapsed: k(() => c.value ? !1 : e.startCollapsed ?? !0),
|
|
527
569
|
layoutValue: r,
|
|
528
570
|
shape: i,
|
|
529
571
|
orientation: a,
|
|
530
572
|
size: o,
|
|
531
573
|
scrollClass: s,
|
|
532
574
|
alwaysExpanded: c,
|
|
533
|
-
fitContent:
|
|
575
|
+
fitContent: k(() => e.fitContent ?? !1)
|
|
534
576
|
};
|
|
535
577
|
}
|
|
536
578
|
//#endregion
|
|
537
579
|
//#region src/components/dock/composables/useDockClickIntegrity.ts
|
|
538
|
-
function
|
|
539
|
-
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null;
|
|
540
|
-
function
|
|
580
|
+
function Qe(e) {
|
|
581
|
+
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null, s = W(null), c = null, l = [];
|
|
582
|
+
function u() {
|
|
583
|
+
c?.removeAttribute("data-dock-press-origin"), c = null;
|
|
584
|
+
for (let { element: e, wasInert: t } of l.splice(0)) e.toggleAttribute("inert", t);
|
|
585
|
+
s.value = null;
|
|
586
|
+
}
|
|
587
|
+
function d(e) {
|
|
588
|
+
let n = (e instanceof Element ? e : null)?.closest("button, a[href], input, select, textarea, [role='button'], [tabindex]"), r = n?.closest(".dock-layer--full");
|
|
589
|
+
if (!(!n || !r || !t.value?.contains(r))) {
|
|
590
|
+
c = n, n.setAttribute("data-dock-press-origin", ""), s.value = "full";
|
|
591
|
+
for (let e = n; e !== r;) {
|
|
592
|
+
let t = e.parentElement;
|
|
593
|
+
if (!t) break;
|
|
594
|
+
for (let n of t.children) n === e || !(n instanceof HTMLElement) || (l.push({
|
|
595
|
+
element: n,
|
|
596
|
+
wasInert: n.inert
|
|
597
|
+
}), n.inert = !0);
|
|
598
|
+
e = t;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
function f() {
|
|
541
603
|
o !== null && (clearTimeout(o), o = null);
|
|
542
604
|
}
|
|
543
|
-
function
|
|
544
|
-
a =
|
|
605
|
+
function p() {
|
|
606
|
+
a = m() + 840, f(), o = setTimeout(() => {
|
|
545
607
|
o = null;
|
|
546
608
|
}, 840);
|
|
547
609
|
}
|
|
548
|
-
function
|
|
610
|
+
function m() {
|
|
549
611
|
return typeof performance < "u" && typeof performance.now == "function" ? performance.now() : Date.now();
|
|
550
612
|
}
|
|
551
|
-
function
|
|
613
|
+
function h() {
|
|
552
614
|
let e = t.value;
|
|
553
|
-
return e && e.hasAttribute("data-morphing") ? !0 :
|
|
615
|
+
return e && e.hasAttribute("data-morphing") ? !0 : m() < a;
|
|
554
616
|
}
|
|
555
|
-
function
|
|
617
|
+
function g() {
|
|
556
618
|
let e = t.value;
|
|
557
619
|
return !!e && e.hasAttribute("data-morphing");
|
|
558
620
|
}
|
|
559
|
-
function
|
|
560
|
-
r = e.target, n.value, i =
|
|
621
|
+
function _(e) {
|
|
622
|
+
u(), r = e.target, n.value, i = g();
|
|
561
623
|
}
|
|
562
|
-
|
|
624
|
+
X(n, (e, t) => {
|
|
625
|
+
t && !e && r && d(r);
|
|
626
|
+
});
|
|
627
|
+
function v() {
|
|
628
|
+
u(), r = null, i = !1;
|
|
629
|
+
}
|
|
630
|
+
function y(e) {
|
|
563
631
|
if (!r || !e) return !1;
|
|
564
632
|
if (e === r) return !0;
|
|
565
633
|
let t = r instanceof Node ? r : null, n = e instanceof Node ? e : null;
|
|
566
634
|
return !t || !n ? !1 : t.contains(n) || n.contains(t);
|
|
567
635
|
}
|
|
568
|
-
function
|
|
636
|
+
function b(e) {
|
|
637
|
+
u();
|
|
569
638
|
let t = i;
|
|
570
|
-
if (i = !1, !
|
|
639
|
+
if (i = !1, !h()) {
|
|
571
640
|
r = null;
|
|
572
641
|
return;
|
|
573
642
|
}
|
|
574
643
|
if (!(!r && !t)) {
|
|
575
|
-
if (!t &&
|
|
644
|
+
if (!t && y(e.target)) {
|
|
576
645
|
r = null;
|
|
577
646
|
return;
|
|
578
647
|
}
|
|
579
648
|
e.stopPropagation(), e.preventDefault(), r = null;
|
|
580
649
|
}
|
|
581
650
|
}
|
|
582
|
-
return
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
651
|
+
return B(() => {
|
|
652
|
+
f(), u();
|
|
653
|
+
}), {
|
|
654
|
+
onPointerDownCapture: _,
|
|
655
|
+
onPointerCancelCapture: v,
|
|
656
|
+
onClickCapture: b,
|
|
657
|
+
markExpandFlip: p,
|
|
658
|
+
pressKeepaliveLayer: U(s)
|
|
586
659
|
};
|
|
587
660
|
}
|
|
588
661
|
//#endregion
|
|
589
662
|
//#region src/components/dock/composables/useDockTouchGate.ts
|
|
590
|
-
function
|
|
663
|
+
function $e(e) {
|
|
591
664
|
let { collapseDelay: t, rootEl: n, alwaysExpanded: r, visualExpanded: i, expanded: a, isPinned: o, expand: s, collapse: l } = e, u = c(t);
|
|
592
665
|
function d() {
|
|
593
666
|
return !r.value;
|
|
@@ -616,7 +689,7 @@ function Qe(e) {
|
|
|
616
689
|
}
|
|
617
690
|
//#endregion
|
|
618
691
|
//#region src/components/dock/composables/useDockOverflowFit.ts
|
|
619
|
-
function
|
|
692
|
+
function et(e) {
|
|
620
693
|
let t = null, n = null, r = 0;
|
|
621
694
|
function i() {
|
|
622
695
|
return e.value?.querySelector(".dock-layer--full") ?? null;
|
|
@@ -624,45 +697,49 @@ function $e(e) {
|
|
|
624
697
|
function a() {
|
|
625
698
|
let t = e.value, n = i();
|
|
626
699
|
if (!t || !n) return;
|
|
627
|
-
let r = n.scrollWidth -
|
|
628
|
-
t.toggleAttribute("data-dock-overflow",
|
|
700
|
+
let r = t.classList.contains("vertical"), a = r ? t : n, o = r ? a.scrollHeight - a.clientHeight > 1 : a.scrollWidth - a.clientWidth > 1;
|
|
701
|
+
t.toggleAttribute("data-dock-overflow", o);
|
|
629
702
|
}
|
|
630
703
|
function o() {
|
|
631
704
|
cancelAnimationFrame(r), r = requestAnimationFrame(a);
|
|
632
705
|
}
|
|
633
706
|
return te(() => {
|
|
634
707
|
let r = e.value, a = i();
|
|
635
|
-
o(), r && (t = new ResizeObserver(o), t.observe(r), a && t.observe(a)),
|
|
708
|
+
o(), r && (t = new ResizeObserver(o), t.observe(r), a && t.observe(a)), r && (n = new MutationObserver(o), n.observe(r, {
|
|
636
709
|
childList: !0,
|
|
637
710
|
subtree: !0,
|
|
638
|
-
characterData: !0
|
|
711
|
+
characterData: !0,
|
|
712
|
+
attributes: !0,
|
|
713
|
+
attributeFilter: ["class", "hidden"]
|
|
639
714
|
}));
|
|
640
|
-
}), X(() => e.value, () => o()),
|
|
715
|
+
}), X(() => e.value, () => o()), ne(() => {
|
|
641
716
|
t?.disconnect(), n?.disconnect(), cancelAnimationFrame(r);
|
|
642
717
|
}), { measure: a };
|
|
643
718
|
}
|
|
644
719
|
//#endregion
|
|
645
720
|
//#region src/components/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
|
|
646
|
-
var
|
|
721
|
+
var tt = [
|
|
647
722
|
"data-size",
|
|
723
|
+
"data-backdrop-mode",
|
|
648
724
|
"data-held",
|
|
649
725
|
"data-search",
|
|
650
726
|
"data-container-name"
|
|
651
|
-
],
|
|
727
|
+
], nt = { class: "dock-controls" }, rt = {
|
|
652
728
|
key: 0,
|
|
653
729
|
class: "dock-persistent"
|
|
654
|
-
},
|
|
730
|
+
}, it = ["inert"], at = ["inert"], ot = {
|
|
655
731
|
key: 0,
|
|
656
732
|
class: "dock-search-field"
|
|
657
|
-
},
|
|
733
|
+
}, st = {
|
|
658
734
|
key: 1,
|
|
659
735
|
class: "dock-persistent dock-persistent-end"
|
|
660
|
-
},
|
|
736
|
+
}, ct = /* @__PURE__ */ F({
|
|
661
737
|
inheritAttrs: !1,
|
|
662
738
|
__name: "GlassDock",
|
|
663
739
|
props: {
|
|
664
740
|
fitContent: { type: Boolean },
|
|
665
741
|
position: {},
|
|
742
|
+
backdropMode: { default: "live" },
|
|
666
743
|
alwaysExpanded: { type: Boolean },
|
|
667
744
|
shape: {},
|
|
668
745
|
orientation: {},
|
|
@@ -680,72 +757,72 @@ var et = [
|
|
|
680
757
|
search: { type: Boolean }
|
|
681
758
|
},
|
|
682
759
|
setup(e, { expose: t }) {
|
|
683
|
-
let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: a, layoutValue: o, shape: s, orientation: c, size: l, scrollClass: u, alwaysExpanded: d, fitContent: f } =
|
|
684
|
-
|
|
760
|
+
let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: a, layoutValue: o, shape: s, orientation: c, size: l, scrollClass: u, alwaysExpanded: d, fitContent: f } = Ze(n), p = o, m = Y("dockEl"), g = Y("layersEl");
|
|
761
|
+
et(m), n.backdropMode === "live" && n.autoLuminance !== !1 && ze(m, { backgroundCanvas: () => {
|
|
685
762
|
let e = n.backgroundCanvas;
|
|
686
763
|
return typeof e == "function" ? e() : e instanceof HTMLCanvasElement ? e : null;
|
|
687
764
|
} });
|
|
688
|
-
let _ = W(!1), v = `glass-dock-${
|
|
765
|
+
let _ = W(!1), v = `glass-dock-${ae()}`, { expanded: y, isPinned: b, isHeld: x, onMouseEnter: S, onMouseLeave: C, onFocusIn: w, onFocusOut: T, onClickCollapsed: E, keepOpen: D, release: O, expand: A, collapse: P } = Ve({
|
|
689
766
|
collapseDelay: i.value,
|
|
690
|
-
rootEl:
|
|
767
|
+
rootEl: m,
|
|
691
768
|
alwaysExpanded: d,
|
|
692
769
|
isTransitioning: _,
|
|
693
770
|
dockId: v
|
|
694
771
|
});
|
|
695
|
-
|
|
772
|
+
h({
|
|
696
773
|
id: v,
|
|
697
774
|
orientation: c,
|
|
698
775
|
layout: p,
|
|
699
776
|
keepOpen: D,
|
|
700
|
-
release:
|
|
777
|
+
release: O,
|
|
701
778
|
held: x
|
|
702
779
|
});
|
|
703
|
-
let F =
|
|
704
|
-
rootEl:
|
|
780
|
+
let F = k(() => d.value || y.value), I = k(() => F.value ? "full" : "summary"), ee = k(() => c.value), { context: z, outerCurrentLayer: B, outerLeavingLayer: V } = Ke({
|
|
781
|
+
rootEl: m,
|
|
705
782
|
outerEl: g,
|
|
706
|
-
outerActiveLayer:
|
|
707
|
-
outerAxis:
|
|
783
|
+
outerActiveLayer: I,
|
|
784
|
+
outerAxis: ee,
|
|
708
785
|
onMorphActiveChange: (e) => {
|
|
709
786
|
_.value = e;
|
|
710
787
|
}
|
|
711
788
|
});
|
|
712
|
-
|
|
713
|
-
rootEl:
|
|
789
|
+
Ge(z), Xe({
|
|
790
|
+
rootEl: m,
|
|
714
791
|
contentEl: g,
|
|
715
|
-
axis:
|
|
792
|
+
axis: ee,
|
|
716
793
|
expanded: F
|
|
717
794
|
});
|
|
718
|
-
let
|
|
719
|
-
rootEl:
|
|
795
|
+
let ne = k(() => ({ "view-transition-name": v.replace(/[^a-zA-Z0-9_-]/g, "-") })), { onPointerDownCapture: U, onPointerCancelCapture: G, onClickCapture: q, markExpandFlip: re, pressKeepaliveLayer: ie } = Qe({
|
|
796
|
+
rootEl: m,
|
|
720
797
|
visualExpanded: F
|
|
721
798
|
});
|
|
722
799
|
te(() => {
|
|
723
|
-
(n.alwaysExpanded || !a.value) &&
|
|
800
|
+
(n.alwaysExpanded || !a.value) && A();
|
|
724
801
|
});
|
|
725
|
-
let { onTouchStart:
|
|
802
|
+
let { onTouchStart: oe, onTouchMove: Z, onTouchEnd: Q, deactivate: se } = $e({
|
|
726
803
|
collapseDelay: i.value,
|
|
727
|
-
rootEl:
|
|
804
|
+
rootEl: m,
|
|
728
805
|
alwaysExpanded: d,
|
|
729
806
|
visualExpanded: F,
|
|
730
807
|
expanded: y,
|
|
731
808
|
isPinned: b,
|
|
732
|
-
expand:
|
|
809
|
+
expand: A,
|
|
733
810
|
collapse: P
|
|
734
811
|
});
|
|
735
812
|
return X(F, (e) => {
|
|
736
|
-
e ?
|
|
813
|
+
e ? re() : se();
|
|
737
814
|
}), t({
|
|
738
815
|
expanded: y,
|
|
739
816
|
isPinned: b,
|
|
740
817
|
isHeld: x,
|
|
741
818
|
isTransitioning: _,
|
|
742
|
-
expand:
|
|
819
|
+
expand: A,
|
|
743
820
|
collapse: P,
|
|
744
821
|
keepOpen: D,
|
|
745
|
-
release:
|
|
746
|
-
}), (t,
|
|
822
|
+
release: O
|
|
823
|
+
}), (t, i) => (H(), M("div", L({
|
|
747
824
|
ref_key: "dockEl",
|
|
748
|
-
ref:
|
|
825
|
+
ref: m
|
|
749
826
|
}, t.$attrs, {
|
|
750
827
|
class: ["glass-dock", [
|
|
751
828
|
J(c),
|
|
@@ -762,60 +839,70 @@ var et = [
|
|
|
762
839
|
},
|
|
763
840
|
e.position === "fixed" ? "fixed bottom-(--dock-pos) inset-x-0 mx-auto w-max" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
764
841
|
]],
|
|
842
|
+
"data-material": "functional-glass",
|
|
765
843
|
"data-size": J(l),
|
|
844
|
+
"data-backdrop-mode": n.backdropMode,
|
|
766
845
|
"data-held": J(x) || void 0,
|
|
767
846
|
"data-search": e.search || void 0,
|
|
768
847
|
"data-container-name": e.containerName || void 0,
|
|
769
|
-
style: [J(r),
|
|
770
|
-
onMouseenter:
|
|
771
|
-
onMouseleave:
|
|
772
|
-
onFocusin:
|
|
773
|
-
onFocusout:
|
|
774
|
-
onTouchstart:
|
|
775
|
-
onTouchmove:
|
|
776
|
-
onTouchend:
|
|
777
|
-
onPointerdownCapture:
|
|
778
|
-
|
|
779
|
-
|
|
848
|
+
style: [J(r), ne.value],
|
|
849
|
+
onMouseenter: i[1] ||= (...e) => J(S) && J(S)(...e),
|
|
850
|
+
onMouseleave: i[2] ||= (e) => J(C)(e),
|
|
851
|
+
onFocusin: i[3] ||= (...e) => J(w) && J(w)(...e),
|
|
852
|
+
onFocusout: i[4] ||= (...e) => J(T) && J(T)(...e),
|
|
853
|
+
onTouchstart: i[5] ||= (...e) => J(oe) && J(oe)(...e),
|
|
854
|
+
onTouchmove: i[6] ||= (...e) => J(Z) && J(Z)(...e),
|
|
855
|
+
onTouchend: i[7] ||= (...e) => J(Q) && J(Q)(...e),
|
|
856
|
+
onPointerdownCapture: i[8] ||= (...e) => J(U) && J(U)(...e),
|
|
857
|
+
onPointercancelCapture: i[9] ||= (...e) => J(G) && J(G)(...e),
|
|
858
|
+
onClickCapture: i[10] ||= (...e) => J(q) && J(q)(...e)
|
|
859
|
+
}), [i[11] ||= N("div", {
|
|
780
860
|
class: "dock-plate",
|
|
781
861
|
"aria-hidden": "true"
|
|
782
|
-
}, null, -1),
|
|
783
|
-
t.$slots.persistent ? (H(),
|
|
784
|
-
|
|
862
|
+
}, null, -1), N("div", nt, [
|
|
863
|
+
t.$slots.persistent ? (H(), M("div", rt, [K(t.$slots, "persistent")])) : j("", !0),
|
|
864
|
+
N("div", {
|
|
785
865
|
ref_key: "layersEl",
|
|
786
866
|
ref: g,
|
|
787
867
|
class: "dock-layers"
|
|
788
868
|
}, [
|
|
789
|
-
|
|
790
|
-
class: R(["dock-layer dock-layer--full", {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
inert:
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
869
|
+
N("div", {
|
|
870
|
+
class: R(["dock-layer dock-layer--full", {
|
|
871
|
+
"is-active": J(B) === "full",
|
|
872
|
+
"is-leaving": J(V) === "full" || J(ie) === "full" && J(B) !== "full",
|
|
873
|
+
"is-press-keepalive": J(ie) === "full"
|
|
874
|
+
}]),
|
|
875
|
+
inert: J(B) !== "full" && J(ie) !== "full" || void 0
|
|
876
|
+
}, [K(t.$slots, "default")], 10, it),
|
|
877
|
+
N("div", {
|
|
878
|
+
class: R(["dock-layer dock-layer--summary", {
|
|
879
|
+
"is-active": J(B) === "summary",
|
|
880
|
+
"is-leaving": J(V) === "summary"
|
|
881
|
+
}]),
|
|
882
|
+
inert: J(B) !== "summary" || void 0,
|
|
883
|
+
onClick: i[0] ||= (...e) => J(E) && J(E)(...e)
|
|
884
|
+
}, [K(t.$slots, "collapsed")], 10, at),
|
|
885
|
+
e.search ? (H(), M("div", ot, [K(t.$slots, "search")])) : j("", !0)
|
|
799
886
|
], 512),
|
|
800
|
-
t.$slots["persistent-end"] ? (H(),
|
|
801
|
-
])], 16,
|
|
887
|
+
t.$slots["persistent-end"] ? (H(), M("div", st, [K(t.$slots, "persistent-end")])) : j("", !0)
|
|
888
|
+
])], 16, tt));
|
|
802
889
|
}
|
|
803
|
-
}),
|
|
804
|
-
function
|
|
805
|
-
|
|
890
|
+
}), lt = d(p, "[glass-ui:dock] <DockLayer> must be used inside <DockCrossfade> (or <DockLayerGroup>)"), { KEY: ut } = lt;
|
|
891
|
+
function dt(e) {
|
|
892
|
+
lt.provide(e);
|
|
806
893
|
}
|
|
807
|
-
var
|
|
808
|
-
|
|
894
|
+
var ft = lt.use;
|
|
895
|
+
lt.useOptional;
|
|
809
896
|
//#endregion
|
|
810
897
|
//#region src/components/dock/DockCrossfade.vue
|
|
811
|
-
var
|
|
898
|
+
var pt = /* @__PURE__ */ F({
|
|
812
899
|
__name: "DockCrossfade",
|
|
813
900
|
props: {
|
|
814
901
|
active: {},
|
|
815
902
|
reserve: { default: "block" }
|
|
816
903
|
},
|
|
817
904
|
setup(e, { expose: t }) {
|
|
818
|
-
let n = e, r = W(null), i = W(/* @__PURE__ */ new Map()), a =
|
|
905
|
+
let n = e, r = W(null), i = W(/* @__PURE__ */ new Map()), a = k(() => [...i.value.values()].map(({ id: e, label: t, icon: n }) => ({
|
|
819
906
|
id: e,
|
|
820
907
|
label: t,
|
|
821
908
|
icon: n
|
|
@@ -829,15 +916,15 @@ var ft = /* @__PURE__ */ P({
|
|
|
829
916
|
let t = new Map(i.value);
|
|
830
917
|
t.delete(e), i.value = t, p();
|
|
831
918
|
}
|
|
832
|
-
let l =
|
|
833
|
-
|
|
919
|
+
let l = k(() => n.active), u = W(null);
|
|
920
|
+
dt({
|
|
834
921
|
register: o,
|
|
835
922
|
unregister: c,
|
|
836
923
|
activeId: l,
|
|
837
924
|
leavingId: u,
|
|
838
925
|
faces: a
|
|
839
926
|
});
|
|
840
|
-
let d = W(0), f =
|
|
927
|
+
let d = W(0), f = k(() => n.reserve === "inline" ? "min-inline-size" : "min-block-size");
|
|
841
928
|
function p() {
|
|
842
929
|
let e = 0;
|
|
843
930
|
for (let { el: t } of i.value.values()) {
|
|
@@ -846,19 +933,19 @@ var ft = /* @__PURE__ */ P({
|
|
|
846
933
|
}
|
|
847
934
|
e > d.value && (d.value = e);
|
|
848
935
|
}
|
|
849
|
-
let m =
|
|
936
|
+
let m = k(() => d.value > 0 ? {
|
|
850
937
|
[f.value]: `${d.value}px`,
|
|
851
938
|
"--dock-crossfade-peak": `${d.value}px`
|
|
852
939
|
} : void 0);
|
|
853
940
|
s(r, () => p());
|
|
854
|
-
let h =
|
|
855
|
-
response:
|
|
856
|
-
dampingFraction:
|
|
941
|
+
let h = He({
|
|
942
|
+
response: v.response,
|
|
943
|
+
dampingFraction: v.dampingFraction
|
|
857
944
|
});
|
|
858
945
|
function g(e) {
|
|
859
946
|
return e ? i.value.get(e)?.el : void 0;
|
|
860
947
|
}
|
|
861
|
-
function
|
|
948
|
+
function _(e, t) {
|
|
862
949
|
g(e)?.style.setProperty("--dock-t", `${t}`);
|
|
863
950
|
}
|
|
864
951
|
function y(e) {
|
|
@@ -867,13 +954,14 @@ var ft = /* @__PURE__ */ P({
|
|
|
867
954
|
function b(e) {
|
|
868
955
|
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
869
956
|
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
957
|
+
let x = _e("(prefers-reduced-motion: reduce)"), S = null;
|
|
958
|
+
X(x, (e) => {
|
|
959
|
+
e && (h.dispose(), S?.());
|
|
960
|
+
});
|
|
961
|
+
async function C(e, t) {
|
|
874
962
|
if (typeof document > "u") return;
|
|
875
963
|
let n = g(e), r = document.activeElement;
|
|
876
|
-
!n || !r || !n.contains(r) || (await
|
|
964
|
+
!n || !r || !n.contains(r) || (await ee(), (g(t) ?? document.body).focus?.());
|
|
877
965
|
}
|
|
878
966
|
return X(l, (e, t) => {
|
|
879
967
|
if (e === t) return;
|
|
@@ -886,36 +974,38 @@ var ft = /* @__PURE__ */ P({
|
|
|
886
974
|
let a = u.value;
|
|
887
975
|
a && a !== e && a !== t && y(a), u.value = t;
|
|
888
976
|
let o = typeof getComputedStyle == "function" ? b(parseFloat(getComputedStyle(n).opacity) || 0) : 0;
|
|
889
|
-
|
|
977
|
+
_(e, o), _(t, o), C(t, e), r.value?.setAttribute("data-crossfading", "");
|
|
890
978
|
let s = () => {
|
|
891
|
-
y(e), y(t), r.value?.removeAttribute("data-crossfading"), u.value = null;
|
|
979
|
+
y(e), y(t), r.value?.removeAttribute("data-crossfading"), u.value = null, S === s && (S = null);
|
|
892
980
|
};
|
|
893
|
-
if (x
|
|
981
|
+
if (S = s, x.value) {
|
|
894
982
|
s();
|
|
895
983
|
return;
|
|
896
984
|
}
|
|
897
985
|
h.playTo(o, 1, {
|
|
898
986
|
onFrame: (n) => {
|
|
899
987
|
let r = b(n);
|
|
900
|
-
|
|
988
|
+
_(e, r), _(t, r);
|
|
901
989
|
},
|
|
902
990
|
onSettle: s
|
|
903
991
|
});
|
|
904
|
-
}),
|
|
992
|
+
}), B(() => {
|
|
993
|
+
h.dispose(), S = null;
|
|
994
|
+
}), t({ faces: a }), (e, t) => (H(), M("div", {
|
|
905
995
|
ref_key: "rootEl",
|
|
906
996
|
ref: r,
|
|
907
997
|
class: "dock-crossfade",
|
|
908
998
|
style: z(m.value)
|
|
909
999
|
}, [K(e.$slots, "default")], 4));
|
|
910
1000
|
}
|
|
911
|
-
}),
|
|
1001
|
+
}), mt = ["data-motion"], ht = ["aria-orientation"], gt = [
|
|
912
1002
|
"tabindex",
|
|
913
1003
|
"title",
|
|
914
1004
|
"aria-label",
|
|
915
1005
|
"onClick"
|
|
916
|
-
],
|
|
1006
|
+
], _t = { key: 1 }, vt = { key: 2 }, yt = /* @__PURE__ */ F({
|
|
917
1007
|
__name: "DockLayerGroup",
|
|
918
|
-
props: /* @__PURE__ */
|
|
1008
|
+
props: /* @__PURE__ */ I({
|
|
919
1009
|
orientation: {},
|
|
920
1010
|
showRail: {
|
|
921
1011
|
type: Boolean,
|
|
@@ -929,16 +1019,16 @@ var ft = /* @__PURE__ */ P({
|
|
|
929
1019
|
}),
|
|
930
1020
|
emits: ["update:active"],
|
|
931
1021
|
setup(e) {
|
|
932
|
-
let t = e, n = a(() => t.motion), r =
|
|
933
|
-
options:
|
|
1022
|
+
let t = e, n = a(() => t.motion), r = oe(e, "active"), i = m(), o = k(() => t.orientation ?? i?.orientation.value ?? "horizontal"), s = Y("crossfade"), c = k(() => s.value?.faces ?? []), l = k(() => o.value === "vertical" ? "horizontal" : "vertical"), u = k(() => l.value === "vertical"), d = W(null), f = W(null), p = W([]), h = E({
|
|
1023
|
+
options: k(() => c.value.map((e) => ({ value: e.id }))),
|
|
934
1024
|
model: r,
|
|
935
1025
|
mode: "single",
|
|
936
1026
|
role: "tablist",
|
|
937
1027
|
vertical: u,
|
|
938
1028
|
containerRef: d,
|
|
939
1029
|
indicatorRef: f,
|
|
940
|
-
buttonRefs:
|
|
941
|
-
}), g =
|
|
1030
|
+
buttonRefs: p
|
|
1031
|
+
}), g = k(() => u.value ? "y" : "x");
|
|
942
1032
|
function _() {
|
|
943
1033
|
let e = d.value;
|
|
944
1034
|
if (!e) return [];
|
|
@@ -951,7 +1041,7 @@ var ft = /* @__PURE__ */ P({
|
|
|
951
1041
|
};
|
|
952
1042
|
});
|
|
953
1043
|
}
|
|
954
|
-
let v =
|
|
1044
|
+
let v = x({
|
|
955
1045
|
el: d,
|
|
956
1046
|
axis: () => g.value,
|
|
957
1047
|
snapTargets: _,
|
|
@@ -964,26 +1054,28 @@ var ft = /* @__PURE__ */ P({
|
|
|
964
1054
|
l.value,
|
|
965
1055
|
n.armed.value
|
|
966
1056
|
], () => {
|
|
967
|
-
n.armed.value &&
|
|
1057
|
+
n.armed.value && ee(() => v.refresh());
|
|
968
1058
|
}), te(() => {
|
|
969
|
-
n.armed.value &&
|
|
1059
|
+
n.armed.value && ee(() => v.refresh());
|
|
970
1060
|
});
|
|
971
1061
|
function y(e) {
|
|
972
1062
|
return typeof e == "object" && !!e || typeof e == "function";
|
|
973
1063
|
}
|
|
974
|
-
let
|
|
1064
|
+
let b = W(!1);
|
|
975
1065
|
function S() {
|
|
976
|
-
|
|
1066
|
+
b.value || (b.value = !0, i?.keepOpen());
|
|
977
1067
|
}
|
|
978
1068
|
function C(e) {
|
|
979
1069
|
let t = e.relatedTarget, n = e.currentTarget;
|
|
980
|
-
t && n?.contains(t) ||
|
|
1070
|
+
t && n?.contains(t) || b.value && (b.value = !1, i?.release());
|
|
981
1071
|
}
|
|
982
|
-
return (
|
|
1072
|
+
return B(() => {
|
|
1073
|
+
b.value && i?.release();
|
|
1074
|
+
}), (t, i) => (H(), M("div", {
|
|
983
1075
|
class: R(["dock-layer-group", [o.value, `rail-${e.railPosition}`]]),
|
|
984
1076
|
"data-motion": J(n).dataMotion.value,
|
|
985
1077
|
style: z(J(n).hostStyle.value)
|
|
986
|
-
}, [e.showRail && c.value.length > 1 ? (H(),
|
|
1078
|
+
}, [e.showRail && c.value.length > 1 ? (H(), M("div", {
|
|
987
1079
|
key: 0,
|
|
988
1080
|
ref_key: "railListEl",
|
|
989
1081
|
ref: d,
|
|
@@ -998,11 +1090,11 @@ var ft = /* @__PURE__ */ P({
|
|
|
998
1090
|
onKeydown: i[0] ||= (...e) => J(h).onKeydown && J(h).onKeydown(...e),
|
|
999
1091
|
onFocusin: S,
|
|
1000
1092
|
onFocusout: C
|
|
1001
|
-
}, [(H(!0),
|
|
1093
|
+
}, [(H(!0), M(O, null, G(c.value, (e, t) => (H(), M("button", L({
|
|
1002
1094
|
key: e.id,
|
|
1003
1095
|
ref_for: !0,
|
|
1004
1096
|
ref: (e) => {
|
|
1005
|
-
e && (
|
|
1097
|
+
e && (p.value[t] = e);
|
|
1006
1098
|
},
|
|
1007
1099
|
type: "button",
|
|
1008
1100
|
class: "dock-layer-tab",
|
|
@@ -1011,16 +1103,16 @@ var ft = /* @__PURE__ */ P({
|
|
|
1011
1103
|
title: e.label,
|
|
1012
1104
|
"aria-label": e.label ?? e.id,
|
|
1013
1105
|
onClick: (n) => J(h).select(e.id, t)
|
|
1014
|
-
}), [y(e.icon) ? (H(),
|
|
1106
|
+
}), [y(e.icon) ? (H(), A(q(e.icon), {
|
|
1015
1107
|
key: 0,
|
|
1016
1108
|
class: "size-4"
|
|
1017
|
-
})) : typeof e.icon == "string" ? (H(),
|
|
1109
|
+
})) : typeof e.icon == "string" ? (H(), M("span", _t, re(e.icon), 1)) : (H(), M("span", vt, re((e.label ?? e.id).charAt(0)), 1))], 16, gt))), 128)), N("div", {
|
|
1018
1110
|
ref_key: "railIndicatorEl",
|
|
1019
1111
|
ref: f,
|
|
1020
1112
|
class: "dock-layer-tab-indicator",
|
|
1021
1113
|
style: z(J(h).singleSliderStyle.value),
|
|
1022
1114
|
"aria-hidden": "true"
|
|
1023
|
-
}, null, 4)], 46,
|
|
1115
|
+
}, null, 4)], 46, ht)) : j("", !0), P(pt, {
|
|
1024
1116
|
ref_key: "crossfade",
|
|
1025
1117
|
ref: s,
|
|
1026
1118
|
active: r.value,
|
|
@@ -1028,13 +1120,13 @@ var ft = /* @__PURE__ */ P({
|
|
|
1028
1120
|
}, {
|
|
1029
1121
|
default: Z(() => [K(t.$slots, "default")]),
|
|
1030
1122
|
_: 3
|
|
1031
|
-
}, 8, ["active"])], 14,
|
|
1123
|
+
}, 8, ["active"])], 14, mt));
|
|
1032
1124
|
}
|
|
1033
|
-
}),
|
|
1125
|
+
}), bt = [
|
|
1034
1126
|
"inert",
|
|
1035
1127
|
"aria-hidden",
|
|
1036
1128
|
"tabindex"
|
|
1037
|
-
],
|
|
1129
|
+
], xt = { class: "dock-face-content" }, St = /* @__PURE__ */ F({
|
|
1038
1130
|
__name: "DockLayer",
|
|
1039
1131
|
props: {
|
|
1040
1132
|
id: {},
|
|
@@ -1042,7 +1134,7 @@ var ft = /* @__PURE__ */ P({
|
|
|
1042
1134
|
icon: {}
|
|
1043
1135
|
},
|
|
1044
1136
|
setup(e) {
|
|
1045
|
-
let t = e, n =
|
|
1137
|
+
let t = e, n = ft(), r = Y("hostEl");
|
|
1046
1138
|
te(() => {
|
|
1047
1139
|
r.value && n.register({
|
|
1048
1140
|
id: t.id,
|
|
@@ -1061,9 +1153,9 @@ var ft = /* @__PURE__ */ P({
|
|
|
1061
1153
|
icon: t.icon,
|
|
1062
1154
|
el: r.value
|
|
1063
1155
|
});
|
|
1064
|
-
}),
|
|
1065
|
-
let i =
|
|
1066
|
-
return (e, t) => (H(),
|
|
1156
|
+
}), B(() => n.unregister(t.id));
|
|
1157
|
+
let i = k(() => n.activeId.value === t.id), a = k(() => n.leavingId.value === t.id);
|
|
1158
|
+
return (e, t) => (H(), M("div", {
|
|
1067
1159
|
ref_key: "hostEl",
|
|
1068
1160
|
ref: r,
|
|
1069
1161
|
class: R(["dock-face", {
|
|
@@ -1073,9 +1165,9 @@ var ft = /* @__PURE__ */ P({
|
|
|
1073
1165
|
inert: i.value ? void 0 : !0,
|
|
1074
1166
|
"aria-hidden": i.value ? void 0 : !0,
|
|
1075
1167
|
tabindex: i.value ? -1 : void 0
|
|
1076
|
-
}, [
|
|
1168
|
+
}, [N("div", xt, [K(e.$slots, "default")])], 10, bt));
|
|
1077
1169
|
}
|
|
1078
|
-
}),
|
|
1170
|
+
}), Ct = /* @__PURE__ */ F({
|
|
1079
1171
|
__name: "DockControl",
|
|
1080
1172
|
props: {
|
|
1081
1173
|
shape: { default: "icon" },
|
|
@@ -1106,7 +1198,7 @@ var ft = /* @__PURE__ */ P({
|
|
|
1106
1198
|
] }
|
|
1107
1199
|
},
|
|
1108
1200
|
setup(t) {
|
|
1109
|
-
let a = t, o =
|
|
1201
|
+
let a = t, o = k(() => a.shape === "tab"), s = k(() => o.value ? e("dock-tab-button glass-specular-track", a.class) : e("dock-icon-button glass-specular-track glass-capsule-hover", { "glass-capsule": a.active }, { "dock-icon-button--compact": a.compact }, a.class)), c = k(() => ({
|
|
1110
1202
|
...a.active ? {
|
|
1111
1203
|
"aria-pressed": "true",
|
|
1112
1204
|
"data-active": ""
|
|
@@ -1115,15 +1207,19 @@ var ft = /* @__PURE__ */ P({
|
|
|
1115
1207
|
...a.as === "button" && !a.asChild ? { disabled: !0 } : {},
|
|
1116
1208
|
"aria-disabled": "true"
|
|
1117
1209
|
} : {}
|
|
1118
|
-
})), l =
|
|
1210
|
+
})), l = k(() => !a.asChild && a.as === "button" ? { type: a.type } : {}), u = n("press"), d = r({
|
|
1211
|
+
disabled: () => a.disabled || o.value,
|
|
1119
1212
|
squish: !0,
|
|
1120
1213
|
response: u.response,
|
|
1121
1214
|
dampingFraction: u.dampingFraction,
|
|
1122
1215
|
pressVar: "--dock-press-t",
|
|
1123
1216
|
shrinkDepth: .04,
|
|
1124
1217
|
maxStretch: 1.03
|
|
1125
|
-
}), f =
|
|
1126
|
-
|
|
1218
|
+
}), f = k(() => o.value ? {} : { ...d.pressStyle.value });
|
|
1219
|
+
function p(e) {
|
|
1220
|
+
a.disabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
1221
|
+
}
|
|
1222
|
+
return (e, n) => Q((H(), A(J(le), L({
|
|
1127
1223
|
as: t.as,
|
|
1128
1224
|
"as-child": t.asChild
|
|
1129
1225
|
}, {
|
|
@@ -1132,10 +1228,16 @@ var ft = /* @__PURE__ */ P({
|
|
|
1132
1228
|
}, {
|
|
1133
1229
|
class: s.value,
|
|
1134
1230
|
style: f.value,
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1231
|
+
"data-press-armed": !o.value && J(d).armed ? "" : void 0,
|
|
1232
|
+
onPointerdown: J(d).handlers.onPointerdown,
|
|
1233
|
+
onPointerup: J(d).handlers.onPointerup,
|
|
1234
|
+
onPointercancel: J(d).handlers.onPointercancel,
|
|
1235
|
+
onPointerleave: J(d).handlers.onPointerleave,
|
|
1236
|
+
onPointerenter: J(d).handlers.onPointerenter,
|
|
1237
|
+
onKeydown: J(d).handlers.onKeydown,
|
|
1238
|
+
onKeyup: J(d).handlers.onKeyup,
|
|
1239
|
+
onBlur: J(d).handlers.onBlur,
|
|
1240
|
+
onClickCapture: p
|
|
1139
1241
|
}), {
|
|
1140
1242
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1141
1243
|
_: 3
|
|
@@ -1143,10 +1245,19 @@ var ft = /* @__PURE__ */ P({
|
|
|
1143
1245
|
"as",
|
|
1144
1246
|
"as-child",
|
|
1145
1247
|
"class",
|
|
1146
|
-
"style"
|
|
1147
|
-
|
|
1248
|
+
"style",
|
|
1249
|
+
"data-press-armed",
|
|
1250
|
+
"onPointerdown",
|
|
1251
|
+
"onPointerup",
|
|
1252
|
+
"onPointercancel",
|
|
1253
|
+
"onPointerleave",
|
|
1254
|
+
"onPointerenter",
|
|
1255
|
+
"onKeydown",
|
|
1256
|
+
"onKeyup",
|
|
1257
|
+
"onBlur"
|
|
1258
|
+
])), [[J(i)]]);
|
|
1148
1259
|
}
|
|
1149
|
-
}),
|
|
1260
|
+
}), wt = /* @__PURE__ */ F({
|
|
1150
1261
|
inheritAttrs: !1,
|
|
1151
1262
|
__name: "DockTrigger",
|
|
1152
1263
|
props: {
|
|
@@ -1160,22 +1271,28 @@ var ft = /* @__PURE__ */ P({
|
|
|
1160
1271
|
] }
|
|
1161
1272
|
},
|
|
1162
1273
|
setup(t) {
|
|
1163
|
-
let n = t,
|
|
1164
|
-
return (e, t) => n.for === "select" ? Q((H(),
|
|
1165
|
-
default: Z(() => [K(e.$slots, "default"),
|
|
1166
|
-
default: Z(() => [K(e.$slots, "icon", {}, () => [
|
|
1274
|
+
let n = t, r = k(() => e("dock-trigger", n.for === "select" && "dock-select-trigger", n.for !== "select" && "dock-dropdown-trigger", n.class));
|
|
1275
|
+
return (e, t) => n.for === "select" ? Q((H(), A(J(de), L({ key: 0 }, e.$attrs, { class: r.value }), {
|
|
1276
|
+
default: Z(() => [K(e.$slots, "default"), P(J(ue), { "as-child": "" }, {
|
|
1277
|
+
default: Z(() => [K(e.$slots, "icon", {}, () => [P(J(fe), {
|
|
1278
|
+
class: "dock-select-trigger__chevron",
|
|
1279
|
+
"aria-hidden": "true"
|
|
1280
|
+
})])]),
|
|
1167
1281
|
_: 3
|
|
1168
1282
|
})]),
|
|
1169
1283
|
_: 3
|
|
1170
|
-
}, 16, ["class"])), [[J(
|
|
1284
|
+
}, 16, ["class"])), [[J(i)]]) : n.for === "dropdown" ? Q((H(), A(u, L({ key: 1 }, e.$attrs, {
|
|
1285
|
+
action: "pointerdown",
|
|
1286
|
+
class: r.value
|
|
1287
|
+
}), {
|
|
1171
1288
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1172
1289
|
_: 3
|
|
1173
|
-
}, 16, ["class"])), [[J(
|
|
1290
|
+
}, 16, ["class"])), [[J(i)]]) : Q((H(), A(J(ce), L({ key: 2 }, e.$attrs, { class: r.value }), {
|
|
1174
1291
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1175
1292
|
_: 3
|
|
1176
|
-
}, 16, ["class"])), [[J(
|
|
1293
|
+
}, 16, ["class"])), [[J(i)]]);
|
|
1177
1294
|
}
|
|
1178
|
-
}),
|
|
1295
|
+
}), Tt = /* @__PURE__ */ F({
|
|
1179
1296
|
__name: "DockBackgroundToggle",
|
|
1180
1297
|
props: {
|
|
1181
1298
|
paused: {
|
|
@@ -1187,68 +1304,70 @@ var ft = /* @__PURE__ */ P({
|
|
|
1187
1304
|
},
|
|
1188
1305
|
emits: ["update:paused"],
|
|
1189
1306
|
setup(e, { emit: t }) {
|
|
1190
|
-
let n = e, r = t, i =
|
|
1307
|
+
let n = e, r = t, i = k(() => n.paused ? n.playLabel : n.pauseLabel);
|
|
1191
1308
|
function a() {
|
|
1192
1309
|
r("update:paused", !n.paused);
|
|
1193
1310
|
}
|
|
1194
|
-
return (t, n) => (H(),
|
|
1311
|
+
return (t, n) => (H(), A(Ct, {
|
|
1195
1312
|
type: "button",
|
|
1313
|
+
active: e.paused,
|
|
1196
1314
|
"aria-pressed": e.paused,
|
|
1197
1315
|
"aria-label": i.value,
|
|
1198
1316
|
title: i.value,
|
|
1199
1317
|
onClick: a
|
|
1200
1318
|
}, {
|
|
1201
|
-
default: Z(() => [e.paused ? (H(),
|
|
1319
|
+
default: Z(() => [e.paused ? (H(), A(J(he), {
|
|
1202
1320
|
key: 0,
|
|
1203
1321
|
size: 18,
|
|
1204
1322
|
"aria-hidden": "true"
|
|
1205
|
-
})) : (H(),
|
|
1323
|
+
})) : (H(), A(J(me), {
|
|
1206
1324
|
key: 1,
|
|
1207
1325
|
size: 18,
|
|
1208
1326
|
"aria-hidden": "true"
|
|
1209
1327
|
}))]),
|
|
1210
1328
|
_: 1
|
|
1211
1329
|
}, 8, [
|
|
1330
|
+
"active",
|
|
1212
1331
|
"aria-pressed",
|
|
1213
1332
|
"aria-label",
|
|
1214
1333
|
"title"
|
|
1215
1334
|
]));
|
|
1216
1335
|
}
|
|
1217
|
-
}),
|
|
1336
|
+
}), Et = [
|
|
1218
1337
|
"data-orientation",
|
|
1219
1338
|
"data-rail-anchor",
|
|
1220
1339
|
"aria-orientation"
|
|
1221
|
-
],
|
|
1340
|
+
], Dt = /* @__PURE__ */ F({
|
|
1222
1341
|
__name: "DockSeparator",
|
|
1223
1342
|
props: { anchor: {
|
|
1224
1343
|
type: Boolean,
|
|
1225
1344
|
default: !1
|
|
1226
1345
|
} },
|
|
1227
1346
|
setup(e) {
|
|
1228
|
-
let t =
|
|
1229
|
-
return (t, n) => (H(),
|
|
1347
|
+
let t = m(), n = k(() => t?.orientation.value ?? "horizontal"), r = k(() => n.value), i = k(() => n.value === "vertical" ? "horizontal" : "vertical");
|
|
1348
|
+
return (t, n) => (H(), M("div", {
|
|
1230
1349
|
class: R(["dock-separator", { "dock-separator--anchor": e.anchor }]),
|
|
1231
1350
|
role: "separator",
|
|
1232
1351
|
"data-orientation": r.value,
|
|
1233
1352
|
"data-rail-anchor": e.anchor || void 0,
|
|
1234
1353
|
"aria-orientation": i.value
|
|
1235
|
-
}, null, 10,
|
|
1354
|
+
}, null, 10, Et));
|
|
1236
1355
|
}
|
|
1237
1356
|
});
|
|
1238
1357
|
//#endregion
|
|
1239
1358
|
//#region src/components/dock/composables/useDockPopover.ts
|
|
1240
|
-
function
|
|
1241
|
-
let t = W(!1), n = e.gap ?? 8, r = e.viewportMargin ?? 8, i = e.hoverIntentMs ?? 60, a = e.hoverGraceMs ?? 120, o = null, s = null, c = !1;
|
|
1242
|
-
function
|
|
1359
|
+
function Ot(e) {
|
|
1360
|
+
let t = W(!1), n = e.gap ?? 8, r = e.viewportMargin ?? 8, i = e.hoverIntentMs ?? 60, a = e.hoverGraceMs ?? 120, o = null, s = null, c = !1, l = !1;
|
|
1361
|
+
function u() {
|
|
1243
1362
|
o != null && (clearTimeout(o), o = null);
|
|
1244
1363
|
}
|
|
1245
|
-
function
|
|
1364
|
+
function d() {
|
|
1246
1365
|
s != null && (clearTimeout(s), s = null);
|
|
1247
1366
|
}
|
|
1248
|
-
function
|
|
1367
|
+
function f() {
|
|
1249
1368
|
let t = e.anchor(), i = e.popover.value;
|
|
1250
1369
|
if (!t || !i) return;
|
|
1251
|
-
let a = t.getBoundingClientRect(), o = i.offsetWidth, s = i.offsetHeight, c =
|
|
1370
|
+
let a = t.getBoundingClientRect(), o = i.offsetWidth, s = i.offsetHeight, c = ie(e.side) ?? "top", l = ie(e.align) ?? "center", u = (e, t, n) => l === "start" ? e : l === "end" ? e + t - n : e + t / 2 - n / 2, d = 0, f = 0;
|
|
1252
1371
|
switch (c) {
|
|
1253
1372
|
case "bottom":
|
|
1254
1373
|
d = a.bottom + n, f = u(a.left, a.width, o);
|
|
@@ -1266,93 +1385,106 @@ function Dt(e) {
|
|
|
1266
1385
|
let p = Math.max(r, window.innerWidth - o - r), m = Math.max(r, window.innerHeight - s - r);
|
|
1267
1386
|
f = Math.min(Math.max(f, r), p), d = Math.min(Math.max(d, r), m), i.style.position = "fixed", i.style.margin = "0", i.style.inset = "auto", i.style.top = `${Math.round(d)}px`, i.style.left = `${Math.round(f)}px`;
|
|
1268
1387
|
}
|
|
1269
|
-
function
|
|
1270
|
-
|
|
1388
|
+
function p() {
|
|
1389
|
+
f();
|
|
1271
1390
|
}
|
|
1272
|
-
function
|
|
1391
|
+
function m(t) {
|
|
1273
1392
|
let n = t.target, r = e.popover.value, i = e.anchor();
|
|
1274
|
-
n && (r && r.contains(n) || i && i.contains(n)) ||
|
|
1275
|
-
}
|
|
1276
|
-
function m() {
|
|
1277
|
-
c || (c = !0, window.addEventListener("resize", f), window.addEventListener("scroll", f, !0), document.addEventListener("pointerdown", p, !0));
|
|
1393
|
+
n && (r && r.contains(n) || i && i.contains(n)) || v();
|
|
1278
1394
|
}
|
|
1279
1395
|
function h() {
|
|
1280
|
-
c
|
|
1396
|
+
c || (c = !0, window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), document.addEventListener("pointerdown", m, !0));
|
|
1281
1397
|
}
|
|
1282
1398
|
function g() {
|
|
1283
|
-
|
|
1399
|
+
c && (c = !1, window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0), document.removeEventListener("pointerdown", m, !0));
|
|
1400
|
+
}
|
|
1401
|
+
function _() {
|
|
1402
|
+
u(), d();
|
|
1284
1403
|
let n = e.popover.value;
|
|
1285
1404
|
if (!(!n || t.value)) {
|
|
1286
1405
|
try {
|
|
1287
1406
|
n.showPopover();
|
|
1288
|
-
} catch {
|
|
1289
|
-
|
|
1407
|
+
} catch {
|
|
1408
|
+
return;
|
|
1409
|
+
}
|
|
1410
|
+
t.value = !0, f(), h();
|
|
1290
1411
|
}
|
|
1291
1412
|
}
|
|
1292
|
-
function
|
|
1293
|
-
|
|
1413
|
+
function v() {
|
|
1414
|
+
u(), d();
|
|
1294
1415
|
let n = e.popover.value;
|
|
1295
1416
|
if (!n || !t.value) return;
|
|
1296
1417
|
let r = n.contains(document.activeElement);
|
|
1297
1418
|
try {
|
|
1298
1419
|
n.hidePopover();
|
|
1299
1420
|
} catch {}
|
|
1300
|
-
t.value = !1,
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1421
|
+
if (t.value = !1, g(), r) {
|
|
1422
|
+
l = !0;
|
|
1423
|
+
try {
|
|
1424
|
+
e.anchor()?.focus();
|
|
1425
|
+
} finally {
|
|
1426
|
+
l = !1;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1304
1429
|
}
|
|
1305
1430
|
function y() {
|
|
1306
|
-
|
|
1307
|
-
o = null, g();
|
|
1308
|
-
}, i));
|
|
1431
|
+
t.value ? v() : _();
|
|
1309
1432
|
}
|
|
1310
1433
|
function b() {
|
|
1311
|
-
|
|
1434
|
+
d(), !t.value && (u(), o = setTimeout(() => {
|
|
1435
|
+
o = null, _();
|
|
1436
|
+
}, i));
|
|
1312
1437
|
}
|
|
1313
1438
|
function x() {
|
|
1314
|
-
|
|
1439
|
+
u(), D();
|
|
1315
1440
|
}
|
|
1316
1441
|
function S() {
|
|
1317
|
-
|
|
1442
|
+
u(), d();
|
|
1318
1443
|
}
|
|
1319
1444
|
function C() {
|
|
1320
|
-
|
|
1445
|
+
D();
|
|
1321
1446
|
}
|
|
1322
|
-
function w(
|
|
1447
|
+
function w() {
|
|
1448
|
+
l || (u(), d(), _());
|
|
1449
|
+
}
|
|
1450
|
+
function T(t) {
|
|
1323
1451
|
let n = t.relatedTarget, r = e.popover.value, i = e.anchor();
|
|
1324
|
-
n && (r && r.contains(n) || i && i.contains(n)) ||
|
|
1452
|
+
n && (r && r.contains(n) || i && i.contains(n)) || v();
|
|
1325
1453
|
}
|
|
1326
|
-
function
|
|
1327
|
-
|
|
1328
|
-
|
|
1454
|
+
function E(e) {
|
|
1455
|
+
t.value && (e.preventDefault(), e.stopPropagation(), v());
|
|
1456
|
+
}
|
|
1457
|
+
function D() {
|
|
1458
|
+
d(), s = setTimeout(() => {
|
|
1459
|
+
s = null, v();
|
|
1329
1460
|
}, a);
|
|
1330
1461
|
}
|
|
1331
|
-
return
|
|
1332
|
-
|
|
1462
|
+
return V(() => {
|
|
1463
|
+
u(), d(), g();
|
|
1333
1464
|
let n = e.popover.value;
|
|
1334
1465
|
if (n && t.value) try {
|
|
1335
1466
|
n.hidePopover();
|
|
1336
1467
|
} catch {}
|
|
1337
1468
|
}), {
|
|
1338
1469
|
open: t,
|
|
1339
|
-
show:
|
|
1340
|
-
hide:
|
|
1341
|
-
toggle:
|
|
1342
|
-
place:
|
|
1343
|
-
onAnchorEnter:
|
|
1344
|
-
onAnchorLeave:
|
|
1345
|
-
onPopoverEnter:
|
|
1346
|
-
onPopoverLeave:
|
|
1347
|
-
onFocusIn:
|
|
1348
|
-
onFocusOut:
|
|
1470
|
+
show: _,
|
|
1471
|
+
hide: v,
|
|
1472
|
+
toggle: y,
|
|
1473
|
+
place: f,
|
|
1474
|
+
onAnchorEnter: b,
|
|
1475
|
+
onAnchorLeave: x,
|
|
1476
|
+
onPopoverEnter: S,
|
|
1477
|
+
onPopoverLeave: C,
|
|
1478
|
+
onFocusIn: w,
|
|
1479
|
+
onFocusOut: T,
|
|
1480
|
+
onEscape: E
|
|
1349
1481
|
};
|
|
1350
1482
|
}
|
|
1351
1483
|
//#endregion
|
|
1352
1484
|
//#region src/components/dock/DockStack.vue?vue&type=script&setup=true&lang.ts
|
|
1353
|
-
var
|
|
1485
|
+
var kt = ["data-orientation", "data-mode"], At = ["data-scrolls", "data-wrap"], jt = /* @__PURE__ */ F({
|
|
1354
1486
|
__name: "DockStack",
|
|
1355
|
-
props: /* @__PURE__ */
|
|
1487
|
+
props: /* @__PURE__ */ I({
|
|
1356
1488
|
items: {},
|
|
1357
1489
|
mode: { default: "stack" },
|
|
1358
1490
|
core: {},
|
|
@@ -1367,18 +1499,18 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1367
1499
|
selected: {},
|
|
1368
1500
|
selectedModifiers: {}
|
|
1369
1501
|
}),
|
|
1370
|
-
emits: /* @__PURE__ */
|
|
1502
|
+
emits: /* @__PURE__ */ I(["select"], ["update:selected"]),
|
|
1371
1503
|
setup(e, { emit: t }) {
|
|
1372
|
-
let n = e, r = t, i =
|
|
1504
|
+
let n = e, r = t, i = oe(e, "selected"), a = m(), o = k(() => a?.orientation.value ?? "vertical"), s = k(() => n.core ?? pe), c = k(() => [...n.items]), l = k(() => n.mode === "facets"), u = k(() => c.value.length > n.visibleCount), d = `dock-stack-fan-${ae()}`, f = Y("stackRoot"), p = Y("fanEl"), h = Ot({
|
|
1373
1505
|
anchor: () => f.value?.querySelector(".dock-stack-core") ?? null,
|
|
1374
|
-
popover:
|
|
1506
|
+
popover: p,
|
|
1375
1507
|
side: () => o.value === "vertical" ? "right" : "top",
|
|
1376
|
-
align:
|
|
1508
|
+
align: k(() => n.position === "start" ? "start" : "end")
|
|
1377
1509
|
});
|
|
1378
1510
|
function g(e) {
|
|
1379
1511
|
i.value = e.id, e.onSelect?.(), r("select", e.id), h.hide();
|
|
1380
1512
|
}
|
|
1381
|
-
return (t, n) => (H(),
|
|
1513
|
+
return (t, n) => (H(), M("div", {
|
|
1382
1514
|
ref_key: "stackRoot",
|
|
1383
1515
|
ref: f,
|
|
1384
1516
|
class: R(["dock-stack", [
|
|
@@ -1388,9 +1520,10 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1388
1520
|
]]),
|
|
1389
1521
|
"data-orientation": o.value,
|
|
1390
1522
|
"data-mode": e.mode,
|
|
1391
|
-
onFocusin: n[
|
|
1392
|
-
onFocusout: n[
|
|
1393
|
-
|
|
1523
|
+
onFocusin: n[2] ||= (...e) => J(h).onFocusIn && J(h).onFocusIn(...e),
|
|
1524
|
+
onFocusout: n[3] ||= (e) => J(h).onFocusOut(e),
|
|
1525
|
+
onKeydown: n[4] ||= se((...e) => J(h).onEscape && J(h).onEscape(...e), ["escape"])
|
|
1526
|
+
}, [P(Ct, {
|
|
1394
1527
|
type: "button",
|
|
1395
1528
|
class: "dock-stack-core",
|
|
1396
1529
|
"aria-label": e.coreLabel,
|
|
@@ -1401,7 +1534,7 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1401
1534
|
onPointerleave: J(h).onAnchorLeave,
|
|
1402
1535
|
onClick: J(h).toggle
|
|
1403
1536
|
}, {
|
|
1404
|
-
default: Z(() => [(H(),
|
|
1537
|
+
default: Z(() => [(H(), A(q(s.value), {
|
|
1405
1538
|
class: "size-4",
|
|
1406
1539
|
"aria-hidden": "true"
|
|
1407
1540
|
}))]),
|
|
@@ -1413,10 +1546,10 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1413
1546
|
"onPointerenter",
|
|
1414
1547
|
"onPointerleave",
|
|
1415
1548
|
"onClick"
|
|
1416
|
-
]),
|
|
1549
|
+
]), N("div", {
|
|
1417
1550
|
id: d,
|
|
1418
1551
|
ref_key: "fanEl",
|
|
1419
|
-
ref:
|
|
1552
|
+
ref: p,
|
|
1420
1553
|
popover: "manual",
|
|
1421
1554
|
class: R(["dock-stack-fan", [
|
|
1422
1555
|
o.value,
|
|
@@ -1426,15 +1559,14 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1426
1559
|
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1427
1560
|
"data-wrap": e.wrap || void 0,
|
|
1428
1561
|
onPointerenter: n[0] ||= (...e) => J(h).onPopoverEnter && J(h).onPopoverEnter(...e),
|
|
1429
|
-
onPointerleave: n[1] ||= (...e) => J(h).onPopoverLeave && J(h).onPopoverLeave(...e)
|
|
1430
|
-
|
|
1431
|
-
}, [N(y, {
|
|
1562
|
+
onPointerleave: n[1] ||= (...e) => J(h).onPopoverLeave && J(h).onPopoverLeave(...e)
|
|
1563
|
+
}, [P(b, {
|
|
1432
1564
|
axis: o.value === "vertical" ? "x" : "y",
|
|
1433
1565
|
class: "dock-stack-fan-scroll",
|
|
1434
1566
|
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1435
1567
|
"data-wrap": e.wrap || void 0
|
|
1436
1568
|
}, {
|
|
1437
|
-
default: Z(() => [(H(!0),
|
|
1569
|
+
default: Z(() => [(H(!0), M(O, null, G(c.value, (e, t) => (H(), A(Ct, {
|
|
1438
1570
|
key: e.id,
|
|
1439
1571
|
type: "button",
|
|
1440
1572
|
class: R(["dock-stack-member", {
|
|
@@ -1453,7 +1585,7 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1453
1585
|
title: e.label,
|
|
1454
1586
|
onClick: (t) => g(e)
|
|
1455
1587
|
}, {
|
|
1456
|
-
default: Z(() => [(H(),
|
|
1588
|
+
default: Z(() => [(H(), A(q(e.icon ?? s.value), {
|
|
1457
1589
|
class: "size-4",
|
|
1458
1590
|
"aria-hidden": "true"
|
|
1459
1591
|
}))]),
|
|
@@ -1471,13 +1603,13 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1471
1603
|
"axis",
|
|
1472
1604
|
"data-scrolls",
|
|
1473
1605
|
"data-wrap"
|
|
1474
|
-
])], 42,
|
|
1606
|
+
])], 42, At)], 42, kt));
|
|
1475
1607
|
}
|
|
1476
|
-
}),
|
|
1608
|
+
}), Mt = ["aria-label"], Nt = [
|
|
1477
1609
|
"data-kind",
|
|
1478
1610
|
"data-section-id",
|
|
1479
1611
|
"aria-label"
|
|
1480
|
-
],
|
|
1612
|
+
], Pt = /* @__PURE__ */ F({
|
|
1481
1613
|
__name: "DockSection",
|
|
1482
1614
|
props: {
|
|
1483
1615
|
sections: {},
|
|
@@ -1485,7 +1617,7 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1485
1617
|
ariaLabel: { default: "Dock sections" }
|
|
1486
1618
|
},
|
|
1487
1619
|
setup(e) {
|
|
1488
|
-
let t = e, n =
|
|
1620
|
+
let t = e, n = k(() => {
|
|
1489
1621
|
if (t.anchorId) return t.anchorId;
|
|
1490
1622
|
let e = t.sections.find((e) => e.kind === "nav");
|
|
1491
1623
|
return e ? e.id : t.sections.find((e) => e.kind !== "rail-core")?.id;
|
|
@@ -1499,33 +1631,34 @@ var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"],
|
|
|
1499
1631
|
function a(e) {
|
|
1500
1632
|
return `dock-section-zone--${e === "rail-core" ? "core" : e}`;
|
|
1501
1633
|
}
|
|
1502
|
-
return (t, n) => (H(),
|
|
1634
|
+
return (t, n) => (H(), M("div", {
|
|
1503
1635
|
class: "dock-section",
|
|
1504
1636
|
role: "group",
|
|
1505
1637
|
"aria-label": e.ariaLabel
|
|
1506
|
-
}, [(H(!0),
|
|
1638
|
+
}, [(H(!0), M(O, null, G(e.sections, (e, n) => (H(), M(O, { key: e.id }, [r(n) ? (H(), A(Dt, {
|
|
1507
1639
|
key: 0,
|
|
1508
1640
|
anchor: i(e)
|
|
1509
|
-
}, null, 8, ["anchor"])) :
|
|
1641
|
+
}, null, 8, ["anchor"])) : j("", !0), N("div", {
|
|
1510
1642
|
class: R(["dock-section-zone", a(e.kind)]),
|
|
1511
1643
|
"data-kind": e.kind,
|
|
1512
1644
|
"data-section-id": e.id,
|
|
1645
|
+
role: "group",
|
|
1513
1646
|
"aria-label": e.label || void 0
|
|
1514
1647
|
}, [K(t.$slots, e.id, {
|
|
1515
1648
|
section: e,
|
|
1516
1649
|
kind: e.kind
|
|
1517
|
-
})], 10,
|
|
1650
|
+
})], 10, Nt)], 64))), 128))], 8, Mt));
|
|
1518
1651
|
}
|
|
1519
1652
|
});
|
|
1520
1653
|
//#endregion
|
|
1521
1654
|
//#region src/components/dock/composables/useDockSearch.ts
|
|
1522
|
-
function
|
|
1655
|
+
function Ft(e) {
|
|
1523
1656
|
let { dockState: t } = e, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i = W([]), a = null, o = e.items ? e.items : () => i.value;
|
|
1524
1657
|
function s(t) {
|
|
1525
1658
|
let n = t.item.id;
|
|
1526
1659
|
e.ensureTargetWindow?.(n), e.scrollTo?.(n), e.onResultSelect?.(t);
|
|
1527
1660
|
}
|
|
1528
|
-
let c =
|
|
1661
|
+
let c = D({
|
|
1529
1662
|
items: o,
|
|
1530
1663
|
debounceMs: n,
|
|
1531
1664
|
maxResults: r,
|
|
@@ -1546,7 +1679,7 @@ function Pt(e) {
|
|
|
1546
1679
|
});
|
|
1547
1680
|
});
|
|
1548
1681
|
}
|
|
1549
|
-
let l =
|
|
1682
|
+
let l = k(() => {
|
|
1550
1683
|
let e = c.query.value;
|
|
1551
1684
|
if (!e) return "";
|
|
1552
1685
|
let t = c.results.value[0];
|
|
@@ -1566,11 +1699,11 @@ function Pt(e) {
|
|
|
1566
1699
|
d.value && (d.value = !1, c.close(), t.release());
|
|
1567
1700
|
}
|
|
1568
1701
|
let m = null;
|
|
1569
|
-
return e.collapseOnScroll && e.scrollContainer && (m =
|
|
1702
|
+
return e.collapseOnScroll && e.scrollContainer && (m = T(e.scrollContainer, {
|
|
1570
1703
|
collapseOnScroll: !0,
|
|
1571
1704
|
chromeRef: e.chromeRef
|
|
1572
|
-
})),
|
|
1573
|
-
a?.abort(), a = null;
|
|
1705
|
+
})), V(() => {
|
|
1706
|
+
d.value && t.release(), a?.abort(), a = null;
|
|
1574
1707
|
}), {
|
|
1575
1708
|
fuzzy: c,
|
|
1576
1709
|
autocompleteText: l,
|
|
@@ -1583,13 +1716,13 @@ function Pt(e) {
|
|
|
1583
1716
|
}
|
|
1584
1717
|
//#endregion
|
|
1585
1718
|
//#region src/components/goo-filter/GooFilter.vue?vue&type=script&setup=true&lang.ts
|
|
1586
|
-
var
|
|
1719
|
+
var It = {
|
|
1587
1720
|
class: "goo-filter-host",
|
|
1588
1721
|
"aria-hidden": "true",
|
|
1589
1722
|
focusable: "false",
|
|
1590
1723
|
width: "1",
|
|
1591
1724
|
height: "1"
|
|
1592
|
-
},
|
|
1725
|
+
}, Lt = ["id"], Rt = ["stdDeviation"], zt = ["values"], Bt = /* @__PURE__ */ o(/* @__PURE__ */ F({
|
|
1593
1726
|
__name: "GooFilter",
|
|
1594
1727
|
props: { extra: { default: () => [] } },
|
|
1595
1728
|
setup(e) {
|
|
@@ -1624,8 +1757,8 @@ var Ft = {
|
|
|
1624
1757
|
slope: 18,
|
|
1625
1758
|
offset: -7
|
|
1626
1759
|
}
|
|
1627
|
-
], n = e, r = [...t, ...n.extra];
|
|
1628
|
-
return (e, t) => (H(),
|
|
1760
|
+
], n = e, r = k(() => [...t, ...n.extra]);
|
|
1761
|
+
return (e, t) => (H(), M("svg", It, [N("defs", null, [(H(!0), M(O, null, G(r.value, (e) => (H(), M("filter", {
|
|
1629
1762
|
key: e.id,
|
|
1630
1763
|
id: e.id,
|
|
1631
1764
|
"color-interpolation-filters": "sRGB",
|
|
@@ -1634,24 +1767,24 @@ var Ft = {
|
|
|
1634
1767
|
width: "200%",
|
|
1635
1768
|
height: "200%"
|
|
1636
1769
|
}, [
|
|
1637
|
-
|
|
1770
|
+
N("feGaussianBlur", {
|
|
1638
1771
|
in: "SourceGraphic",
|
|
1639
1772
|
stdDeviation: e.blur,
|
|
1640
1773
|
result: "blur"
|
|
1641
|
-
}, null, 8,
|
|
1642
|
-
|
|
1774
|
+
}, null, 8, Rt),
|
|
1775
|
+
N("feColorMatrix", {
|
|
1643
1776
|
in: "blur",
|
|
1644
1777
|
mode: "matrix",
|
|
1645
1778
|
values: `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${e.slope} ${e.offset}`,
|
|
1646
1779
|
result: "goo"
|
|
1647
|
-
}, null, 8,
|
|
1648
|
-
t[0] ||=
|
|
1780
|
+
}, null, 8, zt),
|
|
1781
|
+
t[0] ||= N("feComposite", {
|
|
1649
1782
|
in: "SourceGraphic",
|
|
1650
1783
|
in2: "goo",
|
|
1651
1784
|
operator: "atop"
|
|
1652
1785
|
}, null, -1)
|
|
1653
|
-
], 8,
|
|
1786
|
+
], 8, Lt))), 128))])]));
|
|
1654
1787
|
}
|
|
1655
|
-
}), [["__scopeId", "data-v-
|
|
1788
|
+
}), [["__scopeId", "data-v-0a04b2a9"]]);
|
|
1656
1789
|
//#endregion
|
|
1657
|
-
export {
|
|
1790
|
+
export { y as DOCK_CONTEXT_KEY, Tt as DockBackgroundToggle, Ct as DockControl, pt as DockCrossfade, St as DockLayer, yt as DockLayerGroup, Pt as DockSection, Dt as DockSeparator, jt as DockStack, wt as DockTrigger, ct as GlassDock, Bt as GooFilter, h as provideDockContext, _ as useDockContext, S as useDockCtaReceive, Ft as useDockSearch, m as useOptionalDockContext };
|