@mkbabb/glass-ui 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CardFooter-Yi0xtLLd.js → CardFooter-CSGcJkqa.js} +1 -1
- package/dist/{CommandShortcut-BNDzfFnB.js → CommandShortcut-DWT19a2Y.js} +3 -3
- package/dist/{ContextMenuSubContent-DLEyeqbh.js → ContextMenuSubContent-gAFxJ-qi.js} +4 -4
- package/dist/{DataTable-Ce00dbHD.js → DataTable-R8-Zidms.js} +3 -3
- package/dist/{DialogContent-DSo7PKlU.js → DialogContent-2fALDSvc.js} +3 -3
- package/dist/{DialogFooter-D5KY6sCX.js → DialogFooter-ClrNEOVU.js} +2 -2
- package/dist/{DiscoGlyph-wRA02zAJ.js → DiscoGlyph-C3JfMnRV.js} +1 -1
- package/dist/{GlyphFace-BnPMUZ16.js → GlyphFace-BRS8vUb7.js} +1 -1
- package/dist/HoverPopover-CWFCfLx3.js +96 -0
- package/dist/{IconTooltip-GIeWdo64.js → IconTooltip-BkaA7tZ2.js} +1 -1
- package/dist/{Input-CBvqW8kZ.js → Input-DDpFn568.js} +3 -5
- package/dist/Label-DJty89bp.js +36 -0
- package/dist/{MetricBadge-DRBB18Xq.js → MetricBadge-DmAihkXd.js} +1 -1
- package/dist/{Notification-D97JO0fK.js → Notification-OqIpADml.js} +3 -3
- package/dist/NumberFieldContent-DTH9gb_N.js +141 -0
- package/dist/{PopoverContent-BCH4eYs8.js → PopoverContent-EiklFrna.js} +1 -1
- package/dist/{Progress-CCH-2UBR.js → Progress-FApA9fm_.js} +1 -1
- package/dist/{ScrollingText-7P8skg5W.js → ScrollingText-BFd0i2zJ.js} +2 -2
- package/dist/{SelectScrollDownButton-BwTexKeY.js → SelectScrollDownButton-Dth8-wXQ.js} +4 -4
- package/dist/{Toaster-CY8gJu9E.js → Toaster-Bjlunvq4.js} +1 -1
- package/dist/UnderlineTabs-DAWMLmJG.js +37 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +2 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +3 -3
- package/dist/badge.js +1 -1
- package/dist/{button-BlOW34DT.js → button-C0aHmBbt.js} +2 -0
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +5 -5
- package/dist/{check-Nuw7H9Yh.js → check-dwgetki8.js} +1 -1
- package/dist/{chevron-down-Du2b9vY_.js → chevron-down-DILQA1t6.js} +1 -1
- package/dist/{chevron-right-CtDxpE3w.js → chevron-right-fS7fal2t.js} +1 -1
- package/dist/{chevron-up-CenYokvI.js → chevron-up-BtYjYQOS.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +57 -0
- package/dist/components/custom/dialog-native/index.d.ts +1 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +20 -10
- package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +26 -4
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +16 -2
- package/dist/components/custom/labeled-field/LabeledInput.vue.d.ts +17 -1
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +2 -0
- package/dist/components/ui/input/Input.vue.d.ts +10 -7
- package/dist/components/ui/label/Label.vue.d.ts +8 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +45 -8
- package/dist/composables/dom/index.d.ts +1 -0
- package/dist/composables/dom/useUserInvalidAria.d.ts +32 -0
- package/dist/composables/motion/core/index.d.ts +2 -0
- package/dist/composables/motion/supportsCssTimeline.d.ts +8 -0
- package/dist/composables/motion/useRAFLoop.d.ts +7 -0
- package/dist/composables/motion/useScrollProgress.d.ts +6 -2
- package/dist/composables/motion/useStaggerReveal.d.ts +6 -0
- package/dist/composables/motion/useViewTransition.d.ts +31 -0
- package/dist/composables/motion/useYieldToMain.d.ts +29 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/{createLucideIcon-rHu18UQW.js → createLucideIcon-Bn9a1b70.js} +2 -2
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +215 -196
- package/dist/dom.js +5 -4
- package/dist/{dropdown-menu-gHSkffW7.js → dropdown-menu-BvRUamNs.js} +4 -4
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +4 -4
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +47 -42
- package/dist/glass-carousel.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +156 -275
- package/dist/glyph-face.js +2 -2
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +96 -57
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/{minimize-2-C_oyKVwZ.js → minimize-2-LsCJ_eNt.js} +1 -1
- package/dist/motion-core.js +135 -98
- package/dist/motion.js +3 -3
- package/dist/notification.js +1 -1
- package/dist/number-field.d.ts +1 -0
- package/dist/number-field.js +2 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +3 -3
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-7XEx_6hq.js → search-DBAiUABx.js} +1 -1
- package/dist/search.js +7 -7
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-BsBdO5jq.js → sheet-CukNDezz.js} +53 -53
- package/dist/sheet.js +1 -1
- package/dist/{slider-BQaLYFLh.js → slider-DJvHkTRe.js} +3 -3
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +2 -2
- package/dist/styles/animations.css +77 -0
- package/dist/styles/cards.css +6 -2
- package/dist/styles/dock.css +37 -14
- package/dist/styles/glass.css +89 -6
- package/dist/styles/index.css +10 -1
- package/dist/styles/scroll-driven.css +72 -0
- package/dist/styles/theme.css +3 -0
- package/dist/styles/tokens.css +237 -24
- package/dist/styles/typography.css +21 -0
- package/dist/styles/utilities.css +176 -23
- package/dist/styles/view-transition.css +62 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +2 -0
- package/dist/tabs.js +40 -36
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-2l13GibX.js → useAnimatedNumber-DKQYVB7s.js} +1 -1
- package/dist/{useConfiguratorState-BpZi8QJu.js → useConfiguratorState-CtRBE0m_.js} +8 -6
- package/dist/{useIdleReady-DlzJicQH.js → useIdleReady-Cmkhm03v.js} +1 -1
- package/dist/{useTouchGate-BhhEMlwJ.js → useTouchGate-D9Zvrzyc.js} +1 -1
- package/dist/useUserInvalidAria-DVu1eTXG.js +29 -0
- package/dist/useViewTransition-DYIK6Gzb.js +16 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/moveBefore.d.ts +15 -0
- package/dist/{x-Cb3NE2Ne.js → x-q7pJa83X.js} +1 -1
- package/package.json +19 -4
- package/src/styles/animations.css +77 -0
- package/src/styles/cards.css +6 -2
- package/src/styles/dock.css +37 -14
- package/src/styles/glass.css +89 -6
- package/src/styles/index.css +10 -1
- package/src/styles/scroll-driven.css +72 -0
- package/src/styles/theme.css +3 -0
- package/src/styles/tokens.css +237 -24
- package/src/styles/typography.css +21 -0
- package/src/styles/utilities.css +176 -23
- package/src/styles/view-transition.css +62 -0
- package/dist/HoverPopover-Btv4RQfv.js +0 -80
- package/dist/Label-C8QMJSsf.js +0 -32
- package/dist/UnderlineTabs-BtrUcXn-.js +0 -64
- /package/dist/{CollapsibleContent-DHRuXE3P.js → CollapsibleContent-CVMOcYlV.js} +0 -0
- /package/dist/{ContextMenuContent-CvXfU5qz.js → ContextMenuContent-otjFIu8v.js} +0 -0
- /package/dist/{HoverCardContent-4nN5-5bz.js → HoverCardContent-DaGrgJBO.js} +0 -0
- /package/dist/{InstrumentChassis-DOaVYyWq.js → InstrumentChassis-CnHTMxds.js} +0 -0
- /package/dist/{InstrumentRail-jHDqXj70.js → InstrumentRail-C6dEbi8E.js} +0 -0
- /package/dist/{ModalOverlay-DKLVY-cj.js → ModalOverlay-iWiAgbYH.js} +0 -0
- /package/dist/{PaperBackdrop-Bc2drCqJ.js → PaperBackdrop-CeZ-w0R0.js} +0 -0
- /package/dist/{SelectGroup-O69GTQ77.js → SelectGroup-DdR4tdDY.js} +0 -0
- /package/dist/{SelectSeparator-GTHxKO0a.js → SelectSeparator-CXm_hlqA.js} +0 -0
- /package/dist/{Separator-_NCypg_C.js → Separator-D8AUMhxY.js} +0 -0
- /package/dist/{Switch-CL0uxu8F.js → Switch-Cr1t_F_U.js} +0 -0
- /package/dist/{ToggleGroupItem-BYG_8M9M.js → ToggleGroupItem-OesUouE7.js} +0 -0
- /package/dist/{TooltipProvider-C5QLSPto.js → TooltipProvider-DE78vbEP.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-n-_DRHWS.js → _plugin-vue_export-helper-Dq1MygBL.js} +0 -0
- /package/dist/{badge-BbxVKZfw.js → badge-x46my_Fo.js} +0 -0
- /package/dist/{constants-D-8FN28s.js → constants-DwBwnG8N.js} +0 -0
- /package/dist/{dockContext-BDGSrwsV.js → dockContext-D5NZCWJs.js} +0 -0
- /package/dist/{keys-DVkcUktU.js → keys-CaTQS-vx.js} +0 -0
- /package/dist/{menuItemVariants-B2nDL7zH.js → menuItemVariants-BsbGNq9C.js} +0 -0
- /package/dist/{presets-BMzCDrmR.js → presets-a-D93K1S.js} +0 -0
- /package/dist/{useGlassRenderer-DMDdMH55.js → useGlassRenderer-Ds-nmrGz.js} +0 -0
- /package/dist/{useGlobalDark-PMiP5Jku.js → useGlobalDark-B0WvLJE3.js} +0 -0
- /package/dist/{useIntersectionPause-CXYfYg_C.js → useIntersectionPause-IY2CwPQb.js} +0 -0
- /package/dist/{useInterval-COlTCeVa.js → useInterval-DVgGUf_y.js} +0 -0
- /package/dist/{useKeyboardShortcuts-CPO4AhLx.js → useKeyboardShortcuts-Dpw_RUcB.js} +0 -0
- /package/dist/{useResizeObserver-F4aRR4Cj.js → useResizeObserver-Cg9npuM3.js} +0 -0
- /package/dist/{useSortable-Ck0rBJ4g.js → useSortable-Cq2Y1JLO.js} +0 -0
- /package/dist/{useSpringMount-BTRBNzXP.js → useSpringMount-Cfk1XK1R.js} +0 -0
- /package/dist/{useTimer-lp5NlH4w.js → useTimer-NAaj9zNq.js} +0 -0
package/dist/dock.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./chevron-down-
|
|
3
|
-
import { i as n, n as r, r as i, t as a } from "./dockContext-
|
|
4
|
-
import { t as o } from "./useTouchGate-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { t } from "./chevron-down-DILQA1t6.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "./dockContext-D5NZCWJs.js";
|
|
4
|
+
import { t as o } from "./useTouchGate-D9Zvrzyc.js";
|
|
5
|
+
import { t as s } from "./useViewTransition-DYIK6Gzb.js";
|
|
6
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, openBlock as T, provide as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, toDisplayString as j, unref as M, useAttrs as N, useId as P, useModel as F, useTemplateRef as I, watch as L, withCtx as R } from "vue";
|
|
7
|
+
import { DropdownMenuTrigger as z, Primitive as B, SelectIcon as V, SelectTrigger as H, useForwardProps as U } from "reka-ui";
|
|
7
8
|
//#region src/components/custom/dock/composables/isTeleportedTarget.ts
|
|
8
|
-
function
|
|
9
|
+
function W(e, t) {
|
|
9
10
|
if (!(e instanceof Element)) return !1;
|
|
10
11
|
let n = e.closest("[data-glass-dock-portal]");
|
|
11
12
|
return n ? t ? n.getAttribute("data-glass-dock-owner") === t : !0 : !1;
|
|
@@ -13,7 +14,7 @@ function H(e, t) {
|
|
|
13
14
|
//#endregion
|
|
14
15
|
//#region src/components/custom/dock/composables/useDockState.ts
|
|
15
16
|
function ee(e) {
|
|
16
|
-
let { collapseDelay: t = 2500, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value,
|
|
17
|
+
let { collapseDelay: t = 2500, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), u = D(c ? "pinned" : "collapsed"), d = D(c), f = D(c), p = null, m = D(0), h = l(() => m.value > 0), g = null, _ = null, v = !1, y = u.value;
|
|
17
18
|
function b() {
|
|
18
19
|
s() && (u.value = "pinned"), d.value = u.value !== "collapsed", f.value = u.value === "pinned", o && y !== u.value && o(u.value, y), y = u.value;
|
|
19
20
|
}
|
|
@@ -23,15 +24,15 @@ function ee(e) {
|
|
|
23
24
|
function S() {
|
|
24
25
|
_ !== null && (cancelAnimationFrame(_), _ = null);
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function C() {
|
|
27
28
|
S(), g?.();
|
|
28
29
|
}
|
|
29
30
|
function T() {
|
|
30
31
|
s() || m.value > 0 || (x(), p = setTimeout(() => {
|
|
31
|
-
|
|
32
|
+
E(), u.value = "collapsed", b();
|
|
32
33
|
}, t));
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function E() {
|
|
35
36
|
typeof document > "u" || typeof PointerEvent > "u" || document.body.dispatchEvent(new PointerEvent("pointerdown", {
|
|
36
37
|
bubbles: !0,
|
|
37
38
|
composed: !0
|
|
@@ -42,7 +43,7 @@ function ee(e) {
|
|
|
42
43
|
u.value = "pinned", b();
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
45
|
-
v ||= (v = !0, x(),
|
|
46
|
+
v ||= (v = !0, x(), E(), u.value = "collapsed", b(), !1);
|
|
46
47
|
}
|
|
47
48
|
function k() {
|
|
48
49
|
if (s()) {
|
|
@@ -59,7 +60,7 @@ function ee(e) {
|
|
|
59
60
|
if (m.value > 0) return;
|
|
60
61
|
if (e) {
|
|
61
62
|
let t = n.value;
|
|
62
|
-
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) ||
|
|
63
|
+
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || W(e.relatedTarget, a)) return;
|
|
63
64
|
}
|
|
64
65
|
T();
|
|
65
66
|
}
|
|
@@ -70,7 +71,7 @@ function ee(e) {
|
|
|
70
71
|
function N(e) {
|
|
71
72
|
if (s() || u.value !== "hover" || m.value > 0) return;
|
|
72
73
|
let t = e.currentTarget;
|
|
73
|
-
e.relatedTarget && t.contains(e.relatedTarget) ||
|
|
74
|
+
e.relatedTarget && t.contains(e.relatedTarget) || W(e.relatedTarget, a) || T();
|
|
74
75
|
}
|
|
75
76
|
function P() {
|
|
76
77
|
if (s()) {
|
|
@@ -79,10 +80,10 @@ function ee(e) {
|
|
|
79
80
|
}
|
|
80
81
|
x(), u.value = "pinned", b();
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function F() {
|
|
83
84
|
m.value++, x();
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function I() {
|
|
86
87
|
m.value = Math.max(0, m.value - 1), m.value === 0 && u.value === "hover" && (x(), p = setTimeout(() => {
|
|
87
88
|
m.value === 0 && u.value === "hover" && T();
|
|
88
89
|
}, Math.min(t, 800)));
|
|
@@ -90,22 +91,22 @@ function ee(e) {
|
|
|
90
91
|
function R(e) {
|
|
91
92
|
if (s() || i?.value) return;
|
|
92
93
|
let t = n.value;
|
|
93
|
-
!t || t.contains(e.target) ||
|
|
94
|
+
!t || t.contains(e.target) || W(e.target, a) || O();
|
|
94
95
|
}
|
|
95
|
-
return
|
|
96
|
-
e ? (
|
|
96
|
+
return L(d, (e) => {
|
|
97
|
+
e ? (C(), _ = requestAnimationFrame(() => {
|
|
97
98
|
_ = null, d.value && (document.addEventListener("pointerdown", R, !0), g = () => {
|
|
98
99
|
document.removeEventListener("pointerdown", R, !0), g = null;
|
|
99
100
|
});
|
|
100
|
-
})) :
|
|
101
|
-
}), typeof r == "boolean" ? r && (u.value = "pinned", b()) :
|
|
101
|
+
})) : C();
|
|
102
|
+
}), typeof r == "boolean" ? r && (u.value = "pinned", b()) : L(r, (e) => {
|
|
102
103
|
if (e) {
|
|
103
104
|
x(), u.value = "pinned", b();
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
106
107
|
u.value = "collapsed", b();
|
|
107
|
-
}, { immediate: !0 }),
|
|
108
|
-
x(),
|
|
108
|
+
}, { immediate: !0 }), w(() => {
|
|
109
|
+
x(), C();
|
|
109
110
|
}), {
|
|
110
111
|
state: u,
|
|
111
112
|
expanded: d,
|
|
@@ -116,68 +117,78 @@ function ee(e) {
|
|
|
116
117
|
onFocusIn: M,
|
|
117
118
|
onFocusOut: N,
|
|
118
119
|
onClickCollapsed: P,
|
|
119
|
-
keepOpen:
|
|
120
|
-
release:
|
|
120
|
+
keepOpen: F,
|
|
121
|
+
release: I,
|
|
121
122
|
expand: k,
|
|
122
123
|
collapse: O
|
|
123
124
|
};
|
|
124
125
|
}
|
|
125
126
|
//#endregion
|
|
126
127
|
//#region src/components/custom/dock/composables/useLayerTransition.ts
|
|
127
|
-
function
|
|
128
|
-
let { containerEl: t, activeLayer: n, axis: r } = e, i =
|
|
129
|
-
function
|
|
128
|
+
function G(e) {
|
|
129
|
+
let { containerEl: t, activeLayer: n, axis: r } = e, i = typeof document < "u" && "startViewTransition" in document, a = l(() => r?.value === "vertical" ? "height" : "width"), o = (e) => e.getBoundingClientRect()[a.value], c = D(n.value), u = D(null), d = 0, f = null;
|
|
130
|
+
function p(e) {
|
|
130
131
|
let t = e.trim();
|
|
131
132
|
return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
-
let t = getComputedStyle(e), n = t.transitionProperty.split(",").map((e) => e.trim()), r = t.transitionDuration.split(",").map(
|
|
134
|
+
function m(e) {
|
|
135
|
+
let t = getComputedStyle(e), n = t.transitionProperty.split(",").map((e) => e.trim()), r = t.transitionDuration.split(",").map(p), i = t.transitionDelay.split(",").map(p), o = r.map((e, t) => {
|
|
135
136
|
let r = n[t] ?? n[0] ?? "all";
|
|
136
|
-
return r !== "all" && r !==
|
|
137
|
+
return r !== "all" && r !== a.value ? 0 : e + (i[t] ?? i[0] ?? 0);
|
|
137
138
|
});
|
|
138
139
|
return Math.max(0, ...o) + 50;
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
141
|
+
function h() {
|
|
142
|
+
f &&= (clearTimeout(f), null);
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
-
e.style.setProperty(
|
|
144
|
+
function g(e, t) {
|
|
145
|
+
e.style.setProperty(a.value, t);
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
-
e.style.removeProperty(
|
|
147
|
+
function _(e) {
|
|
148
|
+
e.style.removeProperty(a.value);
|
|
148
149
|
}
|
|
149
|
-
|
|
150
|
+
L(n, (e, n) => {
|
|
150
151
|
if (e === n) return;
|
|
151
152
|
let r = t.value;
|
|
152
153
|
if (!r) {
|
|
153
|
-
|
|
154
|
+
c.value = e, u.value = null;
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
if (i) {
|
|
158
|
+
h();
|
|
159
|
+
let t = ++d, { finished: r } = s(() => {
|
|
160
|
+
u.value = n, c.value = e;
|
|
161
|
+
});
|
|
162
|
+
r.finally(() => {
|
|
163
|
+
t === d && (u.value = null);
|
|
164
|
+
});
|
|
154
165
|
return;
|
|
155
166
|
}
|
|
156
|
-
|
|
157
|
-
let
|
|
158
|
-
|
|
159
|
-
if (
|
|
160
|
-
r.style.transition = "none",
|
|
161
|
-
let e =
|
|
162
|
-
if (
|
|
163
|
-
|
|
164
|
-
}), Math.abs(e -
|
|
165
|
-
|
|
167
|
+
h();
|
|
168
|
+
let a = ++d, l = o(r);
|
|
169
|
+
g(r, `${l}px`), u.value = n, c.value = e, y(() => {
|
|
170
|
+
if (a !== d || !r) return;
|
|
171
|
+
r.style.transition = "none", _(r);
|
|
172
|
+
let e = o(r);
|
|
173
|
+
if (g(r, `${l}px`), r.offsetWidth, r.style.transition = "", requestAnimationFrame(() => {
|
|
174
|
+
a === d && g(r, `${e}px`);
|
|
175
|
+
}), Math.abs(e - l) < .5) {
|
|
176
|
+
_(r), u.value = null;
|
|
166
177
|
return;
|
|
167
178
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
},
|
|
179
|
+
f = setTimeout(() => {
|
|
180
|
+
a === d && (_(r), u.value = null);
|
|
181
|
+
}, m(r));
|
|
171
182
|
});
|
|
172
183
|
});
|
|
173
|
-
function
|
|
184
|
+
function v(e) {
|
|
174
185
|
let n = t.value;
|
|
175
|
-
n && e.target === n && e.propertyName ===
|
|
186
|
+
n && e.target === n && e.propertyName === a.value && (h(), _(n), u.value = null);
|
|
176
187
|
}
|
|
177
|
-
return
|
|
178
|
-
onTransitionEnd:
|
|
179
|
-
currentLayer:
|
|
180
|
-
leavingLayer:
|
|
188
|
+
return w(h), {
|
|
189
|
+
onTransitionEnd: v,
|
|
190
|
+
currentLayer: c,
|
|
191
|
+
leavingLayer: u
|
|
181
192
|
};
|
|
182
193
|
}
|
|
183
194
|
//#endregion
|
|
@@ -186,7 +197,7 @@ var te = [
|
|
|
186
197
|
"data-density",
|
|
187
198
|
"data-held",
|
|
188
199
|
"data-container-name"
|
|
189
|
-
], ne = ["inert"], re = ["inert"],
|
|
200
|
+
], ne = ["inert"], re = ["inert"], K = /* @__PURE__ */ h({
|
|
190
201
|
__name: "GlassDock",
|
|
191
202
|
props: {
|
|
192
203
|
collapseDelay: { default: 2e3 },
|
|
@@ -214,147 +225,151 @@ var te = [
|
|
|
214
225
|
containerName: {}
|
|
215
226
|
},
|
|
216
227
|
setup(e, { expose: t }) {
|
|
217
|
-
let n =
|
|
218
|
-
if (
|
|
228
|
+
let n = e, i = l(() => {
|
|
229
|
+
if (n.containerName) return {
|
|
219
230
|
"container-type": "inline-size",
|
|
220
|
-
"container-name":
|
|
231
|
+
"container-name": n.containerName,
|
|
221
232
|
overflow: "visible"
|
|
222
233
|
};
|
|
223
|
-
}),
|
|
224
|
-
collapseDelay:
|
|
225
|
-
rootEl:
|
|
226
|
-
alwaysExpanded:
|
|
227
|
-
isTransitioning:
|
|
228
|
-
dockId:
|
|
234
|
+
}), a = I("dockEl"), s = I("layersEl"), c = l(() => n.variant), u = l(() => n.shape), d = l(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation), m = l(() => n.density), h = l(() => n.alwaysExpanded || d.value === "vertical"), g = l(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), _ = D(!1), v = o(n.collapseDelay), y = `glass-dock-${P()}`, w = null, { expanded: E, isPinned: O, isHeld: A, onMouseEnter: j, onMouseLeave: N, onFocusIn: F, onFocusOut: R, onClickCollapsed: z, keepOpen: B, release: V, expand: H, collapse: U } = ee({
|
|
235
|
+
collapseDelay: n.collapseDelay,
|
|
236
|
+
rootEl: a,
|
|
237
|
+
alwaysExpanded: h,
|
|
238
|
+
isTransitioning: _,
|
|
239
|
+
dockId: y
|
|
229
240
|
});
|
|
230
241
|
r({
|
|
231
|
-
id:
|
|
232
|
-
orientation:
|
|
242
|
+
id: y,
|
|
243
|
+
orientation: d,
|
|
233
244
|
keepOpen: B,
|
|
234
245
|
release: V,
|
|
235
|
-
held:
|
|
246
|
+
held: A
|
|
236
247
|
});
|
|
237
|
-
let
|
|
238
|
-
containerEl:
|
|
239
|
-
activeLayer:
|
|
240
|
-
axis:
|
|
241
|
-
})
|
|
242
|
-
|
|
248
|
+
let W = l(() => h.value || E.value), { onTransitionEnd: K } = G({
|
|
249
|
+
containerEl: s,
|
|
250
|
+
activeLayer: l(() => W.value ? "full" : "summary"),
|
|
251
|
+
axis: l(() => "horizontal")
|
|
252
|
+
}), q = typeof document < "u" && "startViewTransition" in document, J = l(() => q ? {
|
|
253
|
+
"view-transition-name": y.replace(/[^a-zA-Z0-9_-]/g, "-"),
|
|
254
|
+
"view-transition-class": "gl-dock-layer"
|
|
255
|
+
} : void 0);
|
|
256
|
+
function Y(e) {
|
|
243
257
|
let t = e.trim();
|
|
244
258
|
return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
|
|
245
259
|
}
|
|
246
|
-
function
|
|
247
|
-
let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(
|
|
260
|
+
function X(e) {
|
|
261
|
+
let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(Y), r = t.transitionDelay.split(",").map(Y);
|
|
248
262
|
return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
|
|
249
263
|
}
|
|
250
|
-
function
|
|
251
|
-
|
|
264
|
+
function Z() {
|
|
265
|
+
w &&= (clearTimeout(w), null);
|
|
252
266
|
}
|
|
253
|
-
function
|
|
254
|
-
let e =
|
|
255
|
-
e && (
|
|
256
|
-
|
|
257
|
-
},
|
|
267
|
+
function ie() {
|
|
268
|
+
let e = a.value;
|
|
269
|
+
e && (Z(), _.value = !0, w = setTimeout(() => {
|
|
270
|
+
_.value = !1, w = null;
|
|
271
|
+
}, X(e) + 50));
|
|
258
272
|
}
|
|
259
|
-
function
|
|
260
|
-
e.target ===
|
|
273
|
+
function Q(e) {
|
|
274
|
+
e.target === a.value && (Z(), _.value = !1);
|
|
261
275
|
}
|
|
262
|
-
|
|
263
|
-
(
|
|
276
|
+
C(() => {
|
|
277
|
+
(n.alwaysExpanded || !n.startCollapsed) && H();
|
|
264
278
|
});
|
|
265
|
-
function
|
|
266
|
-
return
|
|
279
|
+
function $() {
|
|
280
|
+
return d.value === "horizontal" && !h.value;
|
|
267
281
|
}
|
|
268
|
-
function
|
|
269
|
-
if (
|
|
270
|
-
let t =
|
|
271
|
-
!t || !n ||
|
|
282
|
+
function ae(e) {
|
|
283
|
+
if (!$() || W.value) return;
|
|
284
|
+
let t = a.value, n = e.touches[0];
|
|
285
|
+
!t || !n || v.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
|
|
272
286
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
287
|
+
function oe(e) {
|
|
288
|
+
$() && v.handleScrollCheck(e);
|
|
275
289
|
}
|
|
276
|
-
function
|
|
277
|
-
if (
|
|
278
|
-
let t =
|
|
279
|
-
|
|
290
|
+
function se(e) {
|
|
291
|
+
if (!$()) return;
|
|
292
|
+
let t = v.isActive.value;
|
|
293
|
+
v.handleTouchEnd(), !t && v.isActive.value && !W.value && (e.preventDefault(), e.stopPropagation(), H());
|
|
280
294
|
}
|
|
281
|
-
return
|
|
282
|
-
!e &&
|
|
283
|
-
}),
|
|
284
|
-
|
|
285
|
-
}),
|
|
286
|
-
expanded:
|
|
287
|
-
isPinned:
|
|
288
|
-
isHeld:
|
|
289
|
-
isTransitioning:
|
|
295
|
+
return L(v.isActive, (e) => {
|
|
296
|
+
!e && E.value && !O.value && !h.value && U();
|
|
297
|
+
}), L(W, (e) => {
|
|
298
|
+
ie(), e || v.deactivate();
|
|
299
|
+
}), S(Z), t({
|
|
300
|
+
expanded: E,
|
|
301
|
+
isPinned: O,
|
|
302
|
+
isHeld: A,
|
|
303
|
+
isTransitioning: _,
|
|
290
304
|
expand: H,
|
|
291
|
-
collapse:
|
|
305
|
+
collapse: U,
|
|
292
306
|
keepOpen: B,
|
|
293
307
|
release: V
|
|
294
|
-
}), (t, n) => (
|
|
308
|
+
}), (t, n) => (T(), f("div", {
|
|
295
309
|
ref_key: "dockEl",
|
|
296
|
-
ref:
|
|
297
|
-
class:
|
|
298
|
-
|
|
299
|
-
`variant-${
|
|
300
|
-
`shape-${
|
|
310
|
+
ref: a,
|
|
311
|
+
class: b(["glass-dock", [
|
|
312
|
+
d.value,
|
|
313
|
+
`variant-${c.value}`,
|
|
314
|
+
`shape-${u.value}`,
|
|
301
315
|
{
|
|
302
|
-
expanded:
|
|
303
|
-
collapsed: !
|
|
304
|
-
pinned:
|
|
305
|
-
"fit-content":
|
|
306
|
-
"always-expanded":
|
|
316
|
+
expanded: W.value,
|
|
317
|
+
collapsed: !W.value,
|
|
318
|
+
pinned: M(O),
|
|
319
|
+
"fit-content": g.value,
|
|
320
|
+
"always-expanded": h.value,
|
|
307
321
|
"dock-wrap": e.wrap
|
|
308
322
|
},
|
|
309
323
|
e.position === "fixed" ? "fixed bottom-[var(--dock-pos)] left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
310
324
|
]]),
|
|
311
|
-
"data-density":
|
|
312
|
-
"data-held":
|
|
325
|
+
"data-density": m.value,
|
|
326
|
+
"data-held": M(A) || void 0,
|
|
313
327
|
"data-container-name": e.containerName || void 0,
|
|
314
|
-
style:
|
|
315
|
-
onMouseenter: n[2] ||= (...e) => j
|
|
316
|
-
onMouseleave: n[3] ||= (e) =>
|
|
317
|
-
onFocusin: n[4] ||= (...e) =>
|
|
318
|
-
onFocusout: n[5] ||= (...e) =>
|
|
319
|
-
onTouchstart:
|
|
320
|
-
onTouchmove:
|
|
321
|
-
onTouchend:
|
|
322
|
-
onTransitionend:
|
|
323
|
-
onTransitioncancel:
|
|
324
|
-
}, [
|
|
328
|
+
style: x(i.value),
|
|
329
|
+
onMouseenter: n[2] ||= (...e) => M(j) && M(j)(...e),
|
|
330
|
+
onMouseleave: n[3] ||= (e) => M(N)(e),
|
|
331
|
+
onFocusin: n[4] ||= (...e) => M(F) && M(F)(...e),
|
|
332
|
+
onFocusout: n[5] ||= (...e) => M(R) && M(R)(...e),
|
|
333
|
+
onTouchstart: ae,
|
|
334
|
+
onTouchmove: oe,
|
|
335
|
+
onTouchend: se,
|
|
336
|
+
onTransitionend: Q,
|
|
337
|
+
onTransitioncancel: Q
|
|
338
|
+
}, [d.value === "horizontal" ? (T(), f("div", {
|
|
325
339
|
key: 0,
|
|
326
340
|
ref_key: "layersEl",
|
|
327
|
-
ref:
|
|
341
|
+
ref: s,
|
|
328
342
|
class: "dock-layers",
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
343
|
+
style: x(J.value),
|
|
344
|
+
onTransitionend: n[1] ||= (...e) => M(K) && M(K)(...e)
|
|
345
|
+
}, [p("div", {
|
|
346
|
+
class: b(["dock-layer dock-layer--full", { "layer-active": W.value }]),
|
|
347
|
+
inert: !M(E) || void 0
|
|
348
|
+
}, [k(t.$slots, "default")], 10, ne), p("div", {
|
|
349
|
+
class: b(["dock-layer dock-layer--summary", { "layer-active": !W.value }]),
|
|
350
|
+
inert: M(E) || void 0,
|
|
351
|
+
onClick: n[0] ||= (...e) => M(z) && M(z)(...e)
|
|
352
|
+
}, [k(t.$slots, "collapsed")], 10, re)], 36)) : k(t.$slots, "default", { key: 1 })], 46, te));
|
|
338
353
|
}
|
|
339
|
-
}),
|
|
340
|
-
function
|
|
341
|
-
|
|
354
|
+
}), q = Symbol("glass-ui:dock-layer-group");
|
|
355
|
+
function J(e) {
|
|
356
|
+
E(q, e);
|
|
342
357
|
}
|
|
343
|
-
function
|
|
344
|
-
let e =
|
|
358
|
+
function Y() {
|
|
359
|
+
let e = g(q);
|
|
345
360
|
if (!e) throw Error("[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>");
|
|
346
361
|
return e;
|
|
347
362
|
}
|
|
348
363
|
//#endregion
|
|
349
364
|
//#region src/components/custom/dock/DockLayerGroup.vue?vue&type=script&setup=true&lang.ts
|
|
350
|
-
var
|
|
365
|
+
var X = [
|
|
351
366
|
"title",
|
|
352
367
|
"aria-label",
|
|
353
368
|
"aria-pressed",
|
|
354
369
|
"onClick"
|
|
355
|
-
],
|
|
370
|
+
], Z = { key: 1 }, ie = { key: 2 }, Q = /* @__PURE__ */ h({
|
|
356
371
|
__name: "DockLayerGroup",
|
|
357
|
-
props: /* @__PURE__ */
|
|
372
|
+
props: /* @__PURE__ */ _({
|
|
358
373
|
orientation: {},
|
|
359
374
|
showRail: {
|
|
360
375
|
type: Boolean,
|
|
@@ -367,49 +382,53 @@ var J = [
|
|
|
367
382
|
}),
|
|
368
383
|
emits: ["update:active"],
|
|
369
384
|
setup(e) {
|
|
370
|
-
let t = e, r =
|
|
371
|
-
function
|
|
385
|
+
let t = e, r = F(e, "active"), i = n(), a = D([]), o = I("containerEl");
|
|
386
|
+
function s(e) {
|
|
372
387
|
a.value.find((t) => t.id === e.id) || a.value.push(e);
|
|
373
388
|
}
|
|
374
389
|
function m(e) {
|
|
375
390
|
a.value = a.value.filter((t) => t.id !== e);
|
|
376
391
|
}
|
|
377
|
-
let h =
|
|
392
|
+
let h = l(() => t.orientation ?? i?.orientation.value ?? "horizontal"), { onTransitionEnd: g, currentLayer: _, leavingLayer: v } = G({
|
|
378
393
|
containerEl: o,
|
|
379
394
|
activeLayer: r,
|
|
380
395
|
axis: h
|
|
381
|
-
})
|
|
382
|
-
|
|
383
|
-
|
|
396
|
+
}), y = typeof document < "u" && "startViewTransition" in document, S = P(), C = l(() => y ? {
|
|
397
|
+
"view-transition-name": `gl-dock-stack-${(S ?? "0").replace(/[^a-zA-Z0-9_-]/g, "-")}`,
|
|
398
|
+
"view-transition-class": "gl-dock-layer"
|
|
399
|
+
} : void 0);
|
|
400
|
+
J({
|
|
401
|
+
register: s,
|
|
384
402
|
unregister: m,
|
|
385
403
|
currentLayerId: _,
|
|
386
404
|
leavingLayerId: v
|
|
387
405
|
});
|
|
388
|
-
function
|
|
406
|
+
function w(e) {
|
|
389
407
|
return typeof e == "object" && !!e;
|
|
390
408
|
}
|
|
391
|
-
return (t, n) => (
|
|
409
|
+
return (t, n) => (T(), f("div", { class: b(["dock-layer-group", [h.value, `rail-${e.railPosition}`]]) }, [e.showRail && a.value.length > 1 ? (T(), f("nav", {
|
|
392
410
|
key: 0,
|
|
393
|
-
class:
|
|
394
|
-
}, [(
|
|
411
|
+
class: b(["dock-layer-rail", e.railPosition])
|
|
412
|
+
}, [(T(!0), f(c, null, O(a.value, (e) => (T(), f("button", {
|
|
395
413
|
key: e.id,
|
|
396
414
|
type: "button",
|
|
397
|
-
class:
|
|
415
|
+
class: b(["dock-layer-tab", { "is-active": r.value === e.id }]),
|
|
398
416
|
title: e.label,
|
|
399
417
|
"aria-label": e.label ?? e.id,
|
|
400
418
|
"aria-pressed": r.value === e.id,
|
|
401
419
|
onClick: (t) => r.value = e.id
|
|
402
|
-
}, [
|
|
420
|
+
}, [w(e.icon) ? (T(), u(A(e.icon), {
|
|
403
421
|
key: 0,
|
|
404
422
|
class: "size-4"
|
|
405
|
-
})) : typeof e.icon == "string" ? (
|
|
423
|
+
})) : typeof e.icon == "string" ? (T(), f("span", Z, j(e.icon), 1)) : (T(), f("span", ie, j((e.label ?? e.id).charAt(0)), 1))], 10, X))), 128))], 2)) : d("", !0), p("div", {
|
|
406
424
|
ref_key: "containerEl",
|
|
407
425
|
ref: o,
|
|
408
426
|
class: "dock-layer-stack",
|
|
409
|
-
|
|
410
|
-
|
|
427
|
+
style: x(C.value),
|
|
428
|
+
onTransitionend: n[0] ||= (...e) => M(g) && M(g)(...e)
|
|
429
|
+
}, [k(t.$slots, "default")], 36)], 2));
|
|
411
430
|
}
|
|
412
|
-
}),
|
|
431
|
+
}), $ = ["inert"], ae = /* @__PURE__ */ h({
|
|
413
432
|
__name: "DockLayer",
|
|
414
433
|
props: {
|
|
415
434
|
id: {},
|
|
@@ -417,26 +436,26 @@ var J = [
|
|
|
417
436
|
icon: {}
|
|
418
437
|
},
|
|
419
438
|
setup(e) {
|
|
420
|
-
let t = e, n =
|
|
421
|
-
|
|
439
|
+
let t = e, n = Y();
|
|
440
|
+
C(() => {
|
|
422
441
|
n.register({
|
|
423
442
|
id: t.id,
|
|
424
443
|
label: t.label,
|
|
425
444
|
icon: t.icon
|
|
426
445
|
});
|
|
427
|
-
}),
|
|
446
|
+
}), S(() => {
|
|
428
447
|
n.unregister(t.id);
|
|
429
448
|
});
|
|
430
|
-
let r =
|
|
431
|
-
return (e, t) => (
|
|
432
|
-
class:
|
|
449
|
+
let r = l(() => n.currentLayerId.value === t.id), i = l(() => n.leavingLayerId.value === t.id);
|
|
450
|
+
return (e, t) => (T(), f("div", {
|
|
451
|
+
class: b(["dock-layer-item-host", {
|
|
433
452
|
"is-active": r.value,
|
|
434
453
|
"is-leaving": i.value
|
|
435
454
|
}]),
|
|
436
455
|
inert: r.value ? void 0 : !0
|
|
437
|
-
}, [
|
|
456
|
+
}, [k(e.$slots, "default")], 10, $));
|
|
438
457
|
}
|
|
439
|
-
}),
|
|
458
|
+
}), oe = ["type"], se = /* @__PURE__ */ h({
|
|
440
459
|
__name: "DockIconButton",
|
|
441
460
|
props: {
|
|
442
461
|
compact: {
|
|
@@ -453,13 +472,13 @@ var J = [
|
|
|
453
472
|
] }
|
|
454
473
|
},
|
|
455
474
|
setup(t) {
|
|
456
|
-
let n = t, r =
|
|
457
|
-
return (e, n) => (
|
|
475
|
+
let n = t, r = l(() => e("dock-icon-button", { "dock-icon-button--compact": n.compact }, n.class));
|
|
476
|
+
return (e, n) => (T(), f("button", {
|
|
458
477
|
type: t.type,
|
|
459
|
-
class:
|
|
460
|
-
}, [
|
|
478
|
+
class: b(r.value)
|
|
479
|
+
}, [k(e.$slots, "default")], 10, oe));
|
|
461
480
|
}
|
|
462
|
-
}),
|
|
481
|
+
}), ce = /* @__PURE__ */ h({
|
|
463
482
|
__name: "DockTabButton",
|
|
464
483
|
props: {
|
|
465
484
|
as: { default: "button" },
|
|
@@ -476,13 +495,13 @@ var J = [
|
|
|
476
495
|
] }
|
|
477
496
|
},
|
|
478
497
|
setup(t) {
|
|
479
|
-
let n = t, r =
|
|
480
|
-
return (e, n) => (
|
|
498
|
+
let n = t, r = N(), i = l(() => r["data-tier"] === "primary"), a = l(() => e("dock-tab-button", i.value && "btn-audacious", n.class));
|
|
499
|
+
return (e, n) => (T(), u(M(B), {
|
|
481
500
|
as: t.as,
|
|
482
501
|
"as-child": t.asChild,
|
|
483
|
-
class:
|
|
502
|
+
class: b(a.value)
|
|
484
503
|
}, {
|
|
485
|
-
default:
|
|
504
|
+
default: R(() => [k(e.$slots, "default")]),
|
|
486
505
|
_: 3
|
|
487
506
|
}, 8, [
|
|
488
507
|
"as",
|
|
@@ -490,7 +509,7 @@ var J = [
|
|
|
490
509
|
"class"
|
|
491
510
|
]));
|
|
492
511
|
}
|
|
493
|
-
}),
|
|
512
|
+
}), le = /* @__PURE__ */ h({
|
|
494
513
|
__name: "DockSelectTrigger",
|
|
495
514
|
props: {
|
|
496
515
|
disabled: { type: Boolean },
|
|
@@ -506,19 +525,19 @@ var J = [
|
|
|
506
525
|
] }
|
|
507
526
|
},
|
|
508
527
|
setup(n) {
|
|
509
|
-
let r = n, i =
|
|
528
|
+
let r = n, i = U(l(() => {
|
|
510
529
|
let { class: e, ...t } = r;
|
|
511
530
|
return t;
|
|
512
531
|
}));
|
|
513
|
-
return (n, a) => (
|
|
514
|
-
default:
|
|
515
|
-
default:
|
|
532
|
+
return (n, a) => (T(), u(M(H), v(M(i), { class: M(e)("dock-select-trigger", r.class) }), {
|
|
533
|
+
default: R(() => [k(n.$slots, "default"), m(M(V), { "as-child": "" }, {
|
|
534
|
+
default: R(() => [k(n.$slots, "icon", {}, () => [m(M(t), { class: "dock-select-trigger__chevron" })])]),
|
|
516
535
|
_: 3
|
|
517
536
|
})]),
|
|
518
537
|
_: 3
|
|
519
538
|
}, 16, ["class"]));
|
|
520
539
|
}
|
|
521
|
-
}),
|
|
540
|
+
}), ue = /* @__PURE__ */ h({
|
|
522
541
|
__name: "DockDropdownTrigger",
|
|
523
542
|
props: {
|
|
524
543
|
disabled: { type: Boolean },
|
|
@@ -534,15 +553,15 @@ var J = [
|
|
|
534
553
|
] }
|
|
535
554
|
},
|
|
536
555
|
setup(t) {
|
|
537
|
-
let n = t, r =
|
|
556
|
+
let n = t, r = U(l(() => {
|
|
538
557
|
let { class: e, ...t } = n;
|
|
539
558
|
return t;
|
|
540
559
|
}));
|
|
541
|
-
return (t, i) => (
|
|
542
|
-
default:
|
|
560
|
+
return (t, i) => (T(), u(M(z), v(M(r), { class: M(e)("dock-dropdown-trigger", n.class) }), {
|
|
561
|
+
default: R(() => [k(t.$slots, "default")]),
|
|
543
562
|
_: 3
|
|
544
563
|
}, 16, ["class"]));
|
|
545
564
|
}
|
|
546
565
|
});
|
|
547
566
|
//#endregion
|
|
548
|
-
export { a as DOCK_CONTEXT_KEY,
|
|
567
|
+
export { a as DOCK_CONTEXT_KEY, ue as DockDropdownTrigger, se as DockIconButton, ae as DockLayer, Q as DockLayerGroup, le as DockSelectTrigger, ce as DockTabButton, K as GlassDock, r as provideDockContext, i as useDockContext, n as useOptionalDockContext };
|