@wow-two-beta/fe 0.0.21 → 0.0.23
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/auth/AuthBridge.d.ts +15 -0
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +47 -8
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/providers/AuthProvider.vue.d.ts +1 -1
- package/dist/chunks/{SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js → AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js} +641 -226
- package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +1 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js +32 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js.map +1 -0
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js → DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js} +4 -12
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map +1 -0
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js} +2 -2
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map} +1 -1
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js → LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js} +71 -477
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map +1 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +44 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +1 -0
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js} +2 -2
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js.map} +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-vfxAeyB7.js → MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js} +197 -130
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +1 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js +13 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js.map +1 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js +429 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map +1 -0
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js → PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js} +2 -43
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map +1 -0
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js} +2 -1
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js.map → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map} +1 -1
- package/dist/feedback/FeedbackQueryErrors.d.ts +4 -3
- package/dist/feedback/FeedbackSessionExpiry.d.ts +5 -0
- package/dist/feedback/index.d.ts +1 -0
- package/dist/feedback/index.js +13 -1
- package/dist/feedback/index.js.map +1 -1
- package/dist/foundation/device/index.js +3 -27
- package/dist/foundation/device/index.js.map +1 -1
- package/dist/foundation/http/CreateApiClient.d.ts +1 -0
- package/dist/foundation/http/index.js +5 -1
- package/dist/foundation/http/index.js.map +1 -1
- package/dist/index.js +220 -216
- package/dist/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +2 -2
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/OptionCollection.d.ts +24 -0
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/forms/multiSelectPicker/MultiSelectPicker.vue.d.ts +3 -4
- package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +3 -5
- package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +4 -0
- package/dist/presentation/forms/selectPicker/SelectPicker.vue.d.ts +5 -8
- package/dist/presentation/forms/selectPicker/SelectPickerContext.d.ts +6 -2
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +81 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuExtensions.d.ts +8 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuPanel.vue.d.ts +25 -0
- package/dist/presentation/nav/appSwitcherMenu/index.d.ts +1 -0
- package/dist/presentation/nav/index.d.ts +1 -0
- package/dist/presentation/nav/index.js +72 -70
- package/dist/presentation/overlays/index.js +55 -54
- package/dist/presentation/overlays/index.js.map +1 -1
- package/dist/router/adapters/vueRouter/Guards.d.ts +6 -1
- package/dist/router/adapters/vueRouter/index.d.ts +1 -1
- package/dist/router/index.js +8 -0
- package/dist/router/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js.map +0 -1
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-vfxAeyB7.js.map +0 -1
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js.map +0 -1
- package/dist/chunks/SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js.map +0 -1
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode, normalizeClass, inject, provide, onScopeDispose, createBlock, withCtx, shallowRef, watch, useSlots, nextTick, onMounted, toValue, normalizeProps, guardReactiveProps, normalizeStyle, withDirectives, vShow } from "vue";
|
|
2
2
|
import { u as useLocale } from "./LocaleContext-B7vUZmX-.js";
|
|
3
3
|
import { U as UrlExtensions } from "./UrlExtensions-DqgLm0KY.js";
|
|
4
|
-
import { ChevronRight, ChevronsLeft, ChevronLeft, ChevronsRight, Minus, Check, ChevronDown } from "lucide-vue-next";
|
|
4
|
+
import { ChevronRight, ChevronsLeft, ChevronLeft, ChevronsRight, Minus, Check, ChevronDown, ExternalLink, LayoutGrid } from "lucide-vue-next";
|
|
5
5
|
import { c as cn } from "./Cn-C7De6POU.js";
|
|
6
|
-
import { _ as _sfc_main$
|
|
6
|
+
import { _ as _sfc_main$E } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
7
7
|
import { d as dataAttr } from "./DataAttr-7BR67dTj.js";
|
|
8
8
|
import { u as useId } from "./UseId-CtgAhGrn.js";
|
|
9
9
|
import { u as useControlled } from "./UseControlled-BQneb7BW.js";
|
|
10
10
|
import { r as resolveElement } from "./ResolveElement-CyRfM82x.js";
|
|
11
11
|
import { P as Primitive } from "./Primitive-D-9ShOm7.js";
|
|
12
|
-
import { u as useReducedMotion } from "./UseReducedMotion-NZ5fg-Xb.js";
|
|
12
|
+
import { u as useReducedMotion, a as useMediaQuery } from "./UseReducedMotion-NZ5fg-Xb.js";
|
|
13
13
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
14
14
|
import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
|
|
15
|
-
import { _ as _sfc_main$
|
|
15
|
+
import { _ as _sfc_main$J, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
|
|
16
16
|
import { tv } from "tailwind-variants";
|
|
17
17
|
import { s as surfaceVariants } from "./SurfaceStyles-B8KNkFsm.js";
|
|
18
18
|
import { u as useTypeahead } from "./UseTypeahead-C-y7nBo2.js";
|
|
19
|
-
import { _ as _sfc_main$
|
|
20
|
-
import { _ as _sfc_main$
|
|
21
|
-
import { _ as _sfc_main$
|
|
22
|
-
import { _ as _sfc_main$
|
|
19
|
+
import { _ as _sfc_main$F } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
|
|
20
|
+
import { _ as _sfc_main$G } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
|
|
21
|
+
import { _ as _sfc_main$H } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
|
|
22
|
+
import { _ as _sfc_main$I } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
|
|
23
23
|
import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
|
|
24
24
|
import { H as HtmlElement } from "./HtmlValues-jlKY5f9C.js";
|
|
25
25
|
import { S as Slottable } from "./Slot-BGJ_Mr_j.js";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
26
|
+
import { T as TailwindBreakpoints } from "./Breakpoints-CltjxN0E.js";
|
|
27
|
+
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
28
|
+
import { a as _sfc_main$N, c as _sfc_main$O, _ as _sfc_main$P, b as _sfc_main$Q } from "./OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js";
|
|
29
|
+
import { _ as _sfc_main$K, b as _sfc_main$L, a as _sfc_main$M } from "./PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js";
|
|
30
|
+
const _hoisted_1$l = ["aria-label"];
|
|
31
|
+
const _hoisted_2$d = { class: "flex flex-wrap items-center gap-1.5" };
|
|
32
|
+
const _hoisted_3$7 = ["href"];
|
|
33
|
+
const _hoisted_4$5 = ["aria-current"];
|
|
34
|
+
const _hoisted_5$3 = {
|
|
31
35
|
key: 0,
|
|
32
36
|
"aria-hidden": "true",
|
|
33
37
|
class: "text-subtle-foreground"
|
|
34
38
|
};
|
|
35
|
-
const _sfc_main$
|
|
39
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
36
40
|
...{ name: "Breadcrumb", inheritAttrs: false },
|
|
37
41
|
__name: "Breadcrumb",
|
|
38
42
|
props: {
|
|
@@ -56,7 +60,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
56
60
|
ref: el,
|
|
57
61
|
"aria-label": unref(locale).t("Breadcrumb.breadcrumb", void 0, "Breadcrumb")
|
|
58
62
|
}, rest.value, { class: classes.value }), [
|
|
59
|
-
createElementVNode("ol", _hoisted_2$
|
|
63
|
+
createElementVNode("ol", _hoisted_2$d, [
|
|
60
64
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item, i) => {
|
|
61
65
|
return openBlock(), createElementBlock(Fragment, {
|
|
62
66
|
key: item.href ?? item.label
|
|
@@ -73,7 +77,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
73
77
|
}, () => [
|
|
74
78
|
createTextVNode(toDisplayString(item.label), 1)
|
|
75
79
|
])
|
|
76
|
-
], 8, _hoisted_3$
|
|
80
|
+
], 8, _hoisted_3$7)) : (openBlock(), createElementBlock("span", {
|
|
77
81
|
key: 1,
|
|
78
82
|
"aria-current": i === lastIndex.value ? "page" : void 0,
|
|
79
83
|
class: "text-foreground"
|
|
@@ -84,11 +88,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
84
88
|
}, () => [
|
|
85
89
|
createTextVNode(toDisplayString(item.label), 1)
|
|
86
90
|
])
|
|
87
|
-
], 8, _hoisted_4$
|
|
91
|
+
], 8, _hoisted_4$5))
|
|
88
92
|
]),
|
|
89
|
-
i !== lastIndex.value ? (openBlock(), createElementBlock("li", _hoisted_5$
|
|
93
|
+
i !== lastIndex.value ? (openBlock(), createElementBlock("li", _hoisted_5$3, [
|
|
90
94
|
renderSlot(_ctx.$slots, "separator", {}, () => [
|
|
91
|
-
createVNode(unref(_sfc_main$
|
|
95
|
+
createVNode(unref(_sfc_main$E), {
|
|
92
96
|
icon: unref(ChevronRight),
|
|
93
97
|
size: 14
|
|
94
98
|
}, null, 8, ["icon"])
|
|
@@ -97,16 +101,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
97
101
|
], 64);
|
|
98
102
|
}), 128))
|
|
99
103
|
])
|
|
100
|
-
], 16, _hoisted_1$
|
|
104
|
+
], 16, _hoisted_1$l);
|
|
101
105
|
};
|
|
102
106
|
}
|
|
103
107
|
});
|
|
104
|
-
const _hoisted_1$
|
|
105
|
-
const _hoisted_2$
|
|
106
|
-
const _hoisted_3$
|
|
107
|
-
const _hoisted_4$
|
|
108
|
-
const _hoisted_5 = ["aria-label", "disabled"];
|
|
109
|
-
const _hoisted_6 = ["aria-label", "disabled"];
|
|
108
|
+
const _hoisted_1$k = ["aria-label"];
|
|
109
|
+
const _hoisted_2$c = ["aria-label", "disabled"];
|
|
110
|
+
const _hoisted_3$6 = ["aria-label", "disabled"];
|
|
111
|
+
const _hoisted_4$4 = ["aria-current", "onClick"];
|
|
112
|
+
const _hoisted_5$2 = ["aria-label", "disabled"];
|
|
113
|
+
const _hoisted_6$2 = ["aria-label", "disabled"];
|
|
110
114
|
function range(start, end) {
|
|
111
115
|
return Array.from({ length: Math.max(0, end - start + 1) }, (_, i) => start + i);
|
|
112
116
|
}
|
|
@@ -122,7 +126,7 @@ function buildPages(total, page, siblings) {
|
|
|
122
126
|
return pages;
|
|
123
127
|
}
|
|
124
128
|
const BaseButton = "inline-flex h-8 min-w-8 items-center justify-center rounded-md border border-transparent px-2 text-sm transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
125
|
-
const _sfc_main$
|
|
129
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
126
130
|
...{ name: "Pagination", inheritAttrs: false },
|
|
127
131
|
__name: "Pagination",
|
|
128
132
|
props: {
|
|
@@ -173,11 +177,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
173
177
|
class: normalizeClass(unref(cn)(BaseButton, "hover:bg-muted")),
|
|
174
178
|
onClick: _cache[0] || (_cache[0] = ($event) => go(1))
|
|
175
179
|
}, [
|
|
176
|
-
createVNode(unref(_sfc_main$
|
|
180
|
+
createVNode(unref(_sfc_main$E), {
|
|
177
181
|
icon: unref(ChevronsLeft),
|
|
178
182
|
size: 16
|
|
179
183
|
}, null, 8, ["icon"])
|
|
180
|
-
], 10, _hoisted_2$
|
|
184
|
+
], 10, _hoisted_2$c)) : createCommentVNode("", true),
|
|
181
185
|
createElementVNode("button", {
|
|
182
186
|
type: "button",
|
|
183
187
|
"aria-label": unref(locale).t("Pagination.previousPage", void 0, "Previous page"),
|
|
@@ -185,11 +189,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
185
189
|
class: normalizeClass(unref(cn)(BaseButton, "hover:bg-muted")),
|
|
186
190
|
onClick: _cache[1] || (_cache[1] = ($event) => go(page.value - 1))
|
|
187
191
|
}, [
|
|
188
|
-
createVNode(unref(_sfc_main$
|
|
192
|
+
createVNode(unref(_sfc_main$E), {
|
|
189
193
|
icon: unref(ChevronLeft),
|
|
190
194
|
size: 16
|
|
191
195
|
}, null, 8, ["icon"])
|
|
192
|
-
], 10, _hoisted_3$
|
|
196
|
+
], 10, _hoisted_3$6),
|
|
193
197
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (p, i) => {
|
|
194
198
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
195
199
|
p === "ellipsis" ? (openBlock(), createElementBlock("span", {
|
|
@@ -201,7 +205,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
201
205
|
"aria-current": p === page.value ? "page" : void 0,
|
|
202
206
|
class: normalizeClass(unref(cn)(BaseButton, p === page.value ? "border-primary bg-primary text-primary-foreground" : "hover:bg-muted")),
|
|
203
207
|
onClick: ($event) => go(p)
|
|
204
|
-
}, toDisplayString(p), 11, _hoisted_4$
|
|
208
|
+
}, toDisplayString(p), 11, _hoisted_4$4))
|
|
205
209
|
], 64);
|
|
206
210
|
}), 256)),
|
|
207
211
|
createElementVNode("button", {
|
|
@@ -211,11 +215,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
211
215
|
class: normalizeClass(unref(cn)(BaseButton, "hover:bg-muted")),
|
|
212
216
|
onClick: _cache[2] || (_cache[2] = ($event) => go(page.value + 1))
|
|
213
217
|
}, [
|
|
214
|
-
createVNode(unref(_sfc_main$
|
|
218
|
+
createVNode(unref(_sfc_main$E), {
|
|
215
219
|
icon: unref(ChevronRight),
|
|
216
220
|
size: 16
|
|
217
221
|
}, null, 8, ["icon"])
|
|
218
|
-
], 10, _hoisted_5),
|
|
222
|
+
], 10, _hoisted_5$2),
|
|
219
223
|
hasFirstLast.value ? (openBlock(), createElementBlock("button", {
|
|
220
224
|
key: 1,
|
|
221
225
|
type: "button",
|
|
@@ -224,12 +228,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
224
228
|
class: normalizeClass(unref(cn)(BaseButton, "hover:bg-muted")),
|
|
225
229
|
onClick: _cache[3] || (_cache[3] = ($event) => go(total.value))
|
|
226
230
|
}, [
|
|
227
|
-
createVNode(unref(_sfc_main$
|
|
231
|
+
createVNode(unref(_sfc_main$E), {
|
|
228
232
|
icon: unref(ChevronsRight),
|
|
229
233
|
size: 16
|
|
230
234
|
}, null, 8, ["icon"])
|
|
231
|
-
], 10, _hoisted_6)) : createCommentVNode("", true)
|
|
232
|
-
], 16, _hoisted_1$
|
|
235
|
+
], 10, _hoisted_6$2)) : createCommentVNode("", true)
|
|
236
|
+
], 16, _hoisted_1$k);
|
|
233
237
|
};
|
|
234
238
|
}
|
|
235
239
|
});
|
|
@@ -314,7 +318,7 @@ const MenuItemState = {
|
|
|
314
318
|
Disabled: "disabled"
|
|
315
319
|
};
|
|
316
320
|
const SubmenuCloseDelayMs = 250;
|
|
317
|
-
const _sfc_main$
|
|
321
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
318
322
|
...{ name: "Menu", inheritAttrs: false },
|
|
319
323
|
__name: "Menu",
|
|
320
324
|
props: {
|
|
@@ -525,9 +529,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
525
529
|
}
|
|
526
530
|
}
|
|
527
531
|
return (_ctx, _cache) => {
|
|
528
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
532
|
+
return openBlock(), createBlock(unref(_sfc_main$F), null, {
|
|
529
533
|
default: withCtx(() => [
|
|
530
|
-
createVNode(unref(_sfc_main$
|
|
534
|
+
createVNode(unref(_sfc_main$G), {
|
|
531
535
|
anchor: props.anchor,
|
|
532
536
|
placement: props.placement,
|
|
533
537
|
offset: props.offset,
|
|
@@ -536,7 +540,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
536
540
|
default: withCtx(() => [
|
|
537
541
|
createVNode(unref(Presence), { "is-present": isMenuOpen.value }, {
|
|
538
542
|
default: withCtx(() => [
|
|
539
|
-
createVNode(unref(_sfc_main$
|
|
543
|
+
createVNode(unref(_sfc_main$H), {
|
|
540
544
|
"as-child": "",
|
|
541
545
|
"is-trapped": !unref(isSubmenu),
|
|
542
546
|
"can-loop": "",
|
|
@@ -544,7 +548,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
544
548
|
"on-mount-auto-focus": handleMountAutoFocus
|
|
545
549
|
}, {
|
|
546
550
|
default: withCtx(() => [
|
|
547
|
-
createVNode(unref(_sfc_main$
|
|
551
|
+
createVNode(unref(_sfc_main$I), mergeProps({
|
|
548
552
|
ref_key: "layer",
|
|
549
553
|
ref: layer,
|
|
550
554
|
role: "menu",
|
|
@@ -574,8 +578,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
574
578
|
};
|
|
575
579
|
}
|
|
576
580
|
});
|
|
577
|
-
const _hoisted_1$
|
|
578
|
-
const _sfc_main$
|
|
581
|
+
const _hoisted_1$j = ["disabled", "aria-disabled", "data-disabled"];
|
|
582
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
579
583
|
...{ name: "MenuItem", inheritAttrs: false },
|
|
580
584
|
__name: "MenuItem",
|
|
581
585
|
props: {
|
|
@@ -651,12 +655,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
651
655
|
onPointerleave: handlePointerLeave
|
|
652
656
|
}), [
|
|
653
657
|
renderSlot(_ctx.$slots, "default")
|
|
654
|
-
], 16, _hoisted_1$
|
|
658
|
+
], 16, _hoisted_1$j);
|
|
655
659
|
};
|
|
656
660
|
}
|
|
657
661
|
});
|
|
658
|
-
const _hoisted_1$
|
|
659
|
-
const _sfc_main$
|
|
662
|
+
const _hoisted_1$i = ["aria-checked", "disabled", "aria-disabled", "data-disabled", "data-state"];
|
|
663
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
660
664
|
...{ name: "MenuCheckboxItem", inheritAttrs: false },
|
|
661
665
|
__name: "MenuCheckboxItem",
|
|
662
666
|
props: {
|
|
@@ -754,11 +758,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
754
758
|
checked: unref(isChecked),
|
|
755
759
|
isIndeterminate: __props.isIndeterminate
|
|
756
760
|
}, () => [
|
|
757
|
-
__props.isIndeterminate ? (openBlock(), createBlock(unref(_sfc_main$
|
|
761
|
+
__props.isIndeterminate ? (openBlock(), createBlock(unref(_sfc_main$E), {
|
|
758
762
|
key: 0,
|
|
759
763
|
icon: unref(Minus),
|
|
760
764
|
size: 14
|
|
761
|
-
}, null, 8, ["icon"])) : unref(isChecked) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
765
|
+
}, null, 8, ["icon"])) : unref(isChecked) ? (openBlock(), createBlock(unref(_sfc_main$E), {
|
|
762
766
|
key: 1,
|
|
763
767
|
icon: unref(Check),
|
|
764
768
|
size: 14
|
|
@@ -766,13 +770,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
766
770
|
])
|
|
767
771
|
], 2),
|
|
768
772
|
renderSlot(_ctx.$slots, "default")
|
|
769
|
-
], 16, _hoisted_1$
|
|
773
|
+
], 16, _hoisted_1$i);
|
|
770
774
|
};
|
|
771
775
|
}
|
|
772
776
|
});
|
|
773
|
-
const _hoisted_1$
|
|
774
|
-
const _hoisted_2$
|
|
775
|
-
const _sfc_main$
|
|
777
|
+
const _hoisted_1$h = ["aria-labelledby"];
|
|
778
|
+
const _hoisted_2$b = ["id"];
|
|
779
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
776
780
|
...{ name: "MenuRadioGroup", inheritAttrs: false },
|
|
777
781
|
__name: "MenuRadioGroup",
|
|
778
782
|
props: {
|
|
@@ -818,18 +822,18 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
818
822
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
819
823
|
createTextVNode(toDisplayString(props.label), 1)
|
|
820
824
|
])
|
|
821
|
-
], 10, _hoisted_2$
|
|
825
|
+
], 10, _hoisted_2$b)) : createCommentVNode("", true),
|
|
822
826
|
renderSlot(_ctx.$slots, "default")
|
|
823
|
-
], 16, _hoisted_1$
|
|
827
|
+
], 16, _hoisted_1$h);
|
|
824
828
|
};
|
|
825
829
|
}
|
|
826
830
|
});
|
|
827
|
-
const _hoisted_1$
|
|
828
|
-
const _hoisted_2$
|
|
831
|
+
const _hoisted_1$g = ["aria-checked", "disabled", "aria-disabled", "data-disabled", "data-state"];
|
|
832
|
+
const _hoisted_2$a = {
|
|
829
833
|
key: 0,
|
|
830
834
|
class: "size-2 rounded-full bg-current"
|
|
831
835
|
};
|
|
832
|
-
const _sfc_main$
|
|
836
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
833
837
|
...{ name: "MenuRadioItem", inheritAttrs: false },
|
|
834
838
|
__name: "MenuRadioItem",
|
|
835
839
|
props: {
|
|
@@ -916,15 +920,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
916
920
|
"aria-hidden": "true"
|
|
917
921
|
}, [
|
|
918
922
|
renderSlot(_ctx.$slots, "indicator", { checked: isChecked.value }, () => [
|
|
919
|
-
isChecked.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
923
|
+
isChecked.value ? (openBlock(), createElementBlock("span", _hoisted_2$a)) : createCommentVNode("", true)
|
|
920
924
|
])
|
|
921
925
|
], 2),
|
|
922
926
|
renderSlot(_ctx.$slots, "default")
|
|
923
|
-
], 16, _hoisted_1$
|
|
927
|
+
], 16, _hoisted_1$g);
|
|
924
928
|
};
|
|
925
929
|
}
|
|
926
930
|
});
|
|
927
|
-
const _sfc_main$
|
|
931
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
928
932
|
...{ name: "MenuSub", inheritAttrs: false },
|
|
929
933
|
__name: "MenuSub",
|
|
930
934
|
props: {
|
|
@@ -975,9 +979,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
975
979
|
};
|
|
976
980
|
}
|
|
977
981
|
});
|
|
978
|
-
const _hoisted_1$
|
|
982
|
+
const _hoisted_1$f = ["aria-expanded", "aria-controls", "disabled", "aria-disabled", "data-disabled", "data-state", "id"];
|
|
979
983
|
const OpenDelayMs = 100;
|
|
980
|
-
const _sfc_main$
|
|
984
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
981
985
|
...{ name: "MenuSubTrigger", inheritAttrs: false },
|
|
982
986
|
__name: "MenuSubTrigger",
|
|
983
987
|
props: {
|
|
@@ -1086,16 +1090,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1086
1090
|
onPointerleave: handlePointerLeave
|
|
1087
1091
|
}), [
|
|
1088
1092
|
renderSlot(_ctx.$slots, "default"),
|
|
1089
|
-
createVNode(unref(_sfc_main$
|
|
1093
|
+
createVNode(unref(_sfc_main$E), {
|
|
1090
1094
|
icon: unref(ChevronRight),
|
|
1091
1095
|
size: 14,
|
|
1092
1096
|
class: normalizeClass(unref(menuSubIndicatorVariants)())
|
|
1093
1097
|
}, null, 8, ["icon", "class"])
|
|
1094
|
-
], 16, _hoisted_1$
|
|
1098
|
+
], 16, _hoisted_1$f);
|
|
1095
1099
|
};
|
|
1096
1100
|
}
|
|
1097
1101
|
});
|
|
1098
|
-
const _sfc_main$
|
|
1102
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1099
1103
|
...{ name: "MenuSubContent", inheritAttrs: false },
|
|
1100
1104
|
__name: "MenuSubContent",
|
|
1101
1105
|
props: {
|
|
@@ -1126,7 +1130,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1126
1130
|
return sub.triggerEl.value;
|
|
1127
1131
|
}
|
|
1128
1132
|
return (_ctx, _cache) => {
|
|
1129
|
-
return unref(isOpen) ? (openBlock(), createBlock(_sfc_main$
|
|
1133
|
+
return unref(isOpen) ? (openBlock(), createBlock(_sfc_main$B, mergeProps({
|
|
1130
1134
|
key: 0,
|
|
1131
1135
|
open: unref(isOpen),
|
|
1132
1136
|
anchor: anchor.value,
|
|
@@ -1152,9 +1156,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1152
1156
|
};
|
|
1153
1157
|
}
|
|
1154
1158
|
});
|
|
1155
|
-
const _hoisted_1$
|
|
1156
|
-
const _hoisted_2$
|
|
1157
|
-
const _sfc_main$
|
|
1159
|
+
const _hoisted_1$e = ["aria-labelledby"];
|
|
1160
|
+
const _hoisted_2$9 = ["id"];
|
|
1161
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1158
1162
|
...{ name: "MenuGroup", inheritAttrs: false },
|
|
1159
1163
|
__name: "MenuGroup",
|
|
1160
1164
|
props: {
|
|
@@ -1183,13 +1187,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1183
1187
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
1184
1188
|
createTextVNode(toDisplayString(props.label), 1)
|
|
1185
1189
|
])
|
|
1186
|
-
], 10, _hoisted_2$
|
|
1190
|
+
], 10, _hoisted_2$9)) : createCommentVNode("", true),
|
|
1187
1191
|
renderSlot(_ctx.$slots, "default")
|
|
1188
|
-
], 16, _hoisted_1$
|
|
1192
|
+
], 16, _hoisted_1$e);
|
|
1189
1193
|
};
|
|
1190
1194
|
}
|
|
1191
1195
|
});
|
|
1192
|
-
const _sfc_main$
|
|
1196
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1193
1197
|
...{ name: "MenuLabel", inheritAttrs: false },
|
|
1194
1198
|
__name: "MenuLabel",
|
|
1195
1199
|
setup(__props, { expose: __expose }) {
|
|
@@ -1211,7 +1215,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1211
1215
|
};
|
|
1212
1216
|
}
|
|
1213
1217
|
});
|
|
1214
|
-
const _sfc_main$
|
|
1218
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1215
1219
|
...{ name: "MenuSeparator", inheritAttrs: false },
|
|
1216
1220
|
__name: "MenuSeparator",
|
|
1217
1221
|
setup(__props, { expose: __expose }) {
|
|
@@ -1238,7 +1242,7 @@ function useDropdownMenuContext() {
|
|
|
1238
1242
|
if (!context) throw new Error("DropdownMenu.* must be used inside <DropdownMenu>");
|
|
1239
1243
|
return context;
|
|
1240
1244
|
}
|
|
1241
|
-
const _sfc_main$
|
|
1245
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1242
1246
|
...{ name: "DropdownMenu", inheritAttrs: false },
|
|
1243
1247
|
__name: "DropdownMenu",
|
|
1244
1248
|
props: {
|
|
@@ -1292,7 +1296,7 @@ const NavExtensions = {
|
|
|
1292
1296
|
return !node || node.matches(':disabled,[aria-disabled="true"],[data-disabled]');
|
|
1293
1297
|
}
|
|
1294
1298
|
};
|
|
1295
|
-
const _sfc_main$
|
|
1299
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1296
1300
|
...{ name: "DropdownMenuTrigger", inheritAttrs: false },
|
|
1297
1301
|
__name: "DropdownMenuTrigger",
|
|
1298
1302
|
props: {
|
|
@@ -1347,7 +1351,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1347
1351
|
};
|
|
1348
1352
|
}
|
|
1349
1353
|
});
|
|
1350
|
-
const _sfc_main$
|
|
1354
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1351
1355
|
...{ name: "DropdownMenuContent", inheritAttrs: false },
|
|
1352
1356
|
__name: "DropdownMenuContent",
|
|
1353
1357
|
setup(__props) {
|
|
@@ -1415,7 +1419,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1415
1419
|
return others;
|
|
1416
1420
|
});
|
|
1417
1421
|
return (_ctx, _cache) => {
|
|
1418
|
-
return mounted.value ? (openBlock(), createBlock(_sfc_main$
|
|
1422
|
+
return mounted.value ? (openBlock(), createBlock(_sfc_main$B, mergeProps({
|
|
1419
1423
|
key: 0,
|
|
1420
1424
|
open: mounted.value,
|
|
1421
1425
|
anchor: anchor.value,
|
|
@@ -1447,7 +1451,7 @@ function useContextMenuContext() {
|
|
|
1447
1451
|
if (!context) throw new Error("ContextMenu.* must be used inside <ContextMenu>");
|
|
1448
1452
|
return context;
|
|
1449
1453
|
}
|
|
1450
|
-
const _sfc_main$
|
|
1454
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1451
1455
|
...{ name: "ContextMenu", inheritAttrs: false },
|
|
1452
1456
|
__name: "ContextMenu",
|
|
1453
1457
|
setup(__props) {
|
|
@@ -1490,7 +1494,7 @@ function makeVirtualAnchor(x, y, document2) {
|
|
|
1490
1494
|
document2.body.appendChild(el);
|
|
1491
1495
|
return el;
|
|
1492
1496
|
}
|
|
1493
|
-
const _sfc_main$
|
|
1497
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1494
1498
|
...{ name: "ContextMenuTrigger", inheritAttrs: false },
|
|
1495
1499
|
__name: "ContextMenuTrigger",
|
|
1496
1500
|
props: {
|
|
@@ -1599,7 +1603,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1599
1603
|
};
|
|
1600
1604
|
}
|
|
1601
1605
|
});
|
|
1602
|
-
const _sfc_main$
|
|
1606
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1603
1607
|
...{ name: "ContextMenuContent", inheritAttrs: false },
|
|
1604
1608
|
__name: "ContextMenuContent",
|
|
1605
1609
|
props: {
|
|
@@ -1617,7 +1621,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1617
1621
|
return others;
|
|
1618
1622
|
});
|
|
1619
1623
|
return (_ctx, _cache) => {
|
|
1620
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1624
|
+
return openBlock(), createBlock(_sfc_main$B, mergeProps({
|
|
1621
1625
|
open: unref(isOpen),
|
|
1622
1626
|
anchor: unref(anchor),
|
|
1623
1627
|
"return-focus": () => unref(context).restoreFocus.current,
|
|
@@ -1653,7 +1657,7 @@ const menubarVariants = tv({
|
|
|
1653
1657
|
const menubarTriggerVariants = tv({
|
|
1654
1658
|
base: "inline-flex select-none items-center rounded-sm px-3 py-1 text-sm font-medium text-foreground outline-hidden transition-colors hover:bg-muted focus-visible:bg-muted data-[state=open]:bg-muted"
|
|
1655
1659
|
});
|
|
1656
|
-
const _sfc_main$
|
|
1660
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1657
1661
|
...{ name: "Menubar", inheritAttrs: false },
|
|
1658
1662
|
__name: "Menubar",
|
|
1659
1663
|
props: {
|
|
@@ -1716,7 +1720,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1716
1720
|
});
|
|
1717
1721
|
__expose({ el: rootElement });
|
|
1718
1722
|
return (_ctx, _cache) => {
|
|
1719
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1723
|
+
return openBlock(), createBlock(unref(_sfc_main$J), mergeProps({
|
|
1720
1724
|
ref_key: "el",
|
|
1721
1725
|
ref: el,
|
|
1722
1726
|
orientation: "horizontal",
|
|
@@ -1731,7 +1735,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1731
1735
|
};
|
|
1732
1736
|
}
|
|
1733
1737
|
});
|
|
1734
|
-
const _sfc_main$
|
|
1738
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1735
1739
|
...{ name: "MenubarMenu", inheritAttrs: false },
|
|
1736
1740
|
__name: "MenubarMenu",
|
|
1737
1741
|
props: {
|
|
@@ -1753,8 +1757,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1753
1757
|
};
|
|
1754
1758
|
}
|
|
1755
1759
|
});
|
|
1756
|
-
const _hoisted_1$
|
|
1757
|
-
const _sfc_main$
|
|
1760
|
+
const _hoisted_1$d = ["aria-expanded", "data-state", "tabindex"];
|
|
1761
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1758
1762
|
...{ name: "MenubarTrigger", inheritAttrs: false },
|
|
1759
1763
|
__name: "MenubarTrigger",
|
|
1760
1764
|
setup(__props, { expose: __expose }) {
|
|
@@ -1836,11 +1840,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1836
1840
|
onKeydown: handleKeydown
|
|
1837
1841
|
}), [
|
|
1838
1842
|
renderSlot(_ctx.$slots, "default")
|
|
1839
|
-
], 16, _hoisted_1$
|
|
1843
|
+
], 16, _hoisted_1$d);
|
|
1840
1844
|
};
|
|
1841
1845
|
}
|
|
1842
1846
|
});
|
|
1843
|
-
const _sfc_main$
|
|
1847
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1844
1848
|
...{ name: "MenubarContent", inheritAttrs: false },
|
|
1845
1849
|
__name: "MenubarContent",
|
|
1846
1850
|
props: {
|
|
@@ -1870,7 +1874,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1870
1874
|
}
|
|
1871
1875
|
}
|
|
1872
1876
|
return (_ctx, _cache) => {
|
|
1873
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1877
|
+
return openBlock(), createBlock(_sfc_main$B, mergeProps({
|
|
1874
1878
|
open: unref(isOpen),
|
|
1875
1879
|
anchor: anchor.value,
|
|
1876
1880
|
placement: __props.placement,
|
|
@@ -1901,9 +1905,9 @@ function useNavigationMenuItemContext() {
|
|
|
1901
1905
|
}
|
|
1902
1906
|
return context;
|
|
1903
1907
|
}
|
|
1904
|
-
const _hoisted_1$
|
|
1908
|
+
const _hoisted_1$c = ["aria-label"];
|
|
1905
1909
|
const DefaultAriaLabel = "Main navigation";
|
|
1906
|
-
const _sfc_main$
|
|
1910
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1907
1911
|
...{ name: "NavigationMenu", inheritAttrs: false },
|
|
1908
1912
|
__name: "NavigationMenu",
|
|
1909
1913
|
props: {
|
|
@@ -1939,11 +1943,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1939
1943
|
"aria-label": ariaLabel.value
|
|
1940
1944
|
}, rest.value, { class: classes.value }), [
|
|
1941
1945
|
renderSlot(_ctx.$slots, "default")
|
|
1942
|
-
], 16, _hoisted_1$
|
|
1946
|
+
], 16, _hoisted_1$c);
|
|
1943
1947
|
};
|
|
1944
1948
|
}
|
|
1945
1949
|
});
|
|
1946
|
-
const _sfc_main$
|
|
1950
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1947
1951
|
...{ name: "NavigationMenuList", inheritAttrs: false },
|
|
1948
1952
|
__name: "NavigationMenuList",
|
|
1949
1953
|
setup(__props, { expose: __expose }) {
|
|
@@ -1961,7 +1965,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1961
1965
|
});
|
|
1962
1966
|
__expose({ el: rootElement });
|
|
1963
1967
|
return (_ctx, _cache) => {
|
|
1964
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1968
|
+
return openBlock(), createBlock(unref(_sfc_main$J), mergeProps({
|
|
1965
1969
|
ref_key: "el",
|
|
1966
1970
|
ref: el,
|
|
1967
1971
|
orientation: "horizontal",
|
|
@@ -1976,7 +1980,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1976
1980
|
};
|
|
1977
1981
|
}
|
|
1978
1982
|
});
|
|
1979
|
-
const _sfc_main$
|
|
1983
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1980
1984
|
...{ name: "NavigationMenuItem", inheritAttrs: false },
|
|
1981
1985
|
__name: "NavigationMenuItem",
|
|
1982
1986
|
props: {
|
|
@@ -2013,8 +2017,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2013
2017
|
};
|
|
2014
2018
|
}
|
|
2015
2019
|
});
|
|
2016
|
-
const _hoisted_1$
|
|
2017
|
-
const _sfc_main$
|
|
2020
|
+
const _hoisted_1$b = ["id", "aria-expanded", "aria-controls", "data-state", "tabindex"];
|
|
2021
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2018
2022
|
...{ name: "NavigationMenuTrigger", inheritAttrs: false },
|
|
2019
2023
|
__name: "NavigationMenuTrigger",
|
|
2020
2024
|
setup(__props, { expose: __expose }) {
|
|
@@ -2101,12 +2105,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2101
2105
|
createVNode(unref(ChevronDown), {
|
|
2102
2106
|
class: normalizeClass(unref(cn)("h-4 w-4 transition-transform", unref(isOpen) && "rotate-180"))
|
|
2103
2107
|
}, null, 8, ["class"])
|
|
2104
|
-
], 16, _hoisted_1$
|
|
2108
|
+
], 16, _hoisted_1$b);
|
|
2105
2109
|
};
|
|
2106
2110
|
}
|
|
2107
2111
|
});
|
|
2108
|
-
const _hoisted_1$
|
|
2109
|
-
const _sfc_main$
|
|
2112
|
+
const _hoisted_1$a = ["id", "aria-labelledby"];
|
|
2113
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2110
2114
|
...{ name: "NavigationMenuContent", inheritAttrs: false },
|
|
2111
2115
|
__name: "NavigationMenuContent",
|
|
2112
2116
|
setup(__props, { expose: __expose }) {
|
|
@@ -2166,16 +2170,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2166
2170
|
});
|
|
2167
2171
|
__expose({ el });
|
|
2168
2172
|
return (_ctx, _cache) => {
|
|
2169
|
-
return mounted.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2173
|
+
return mounted.value ? (openBlock(), createBlock(unref(_sfc_main$F), { key: 0 }, {
|
|
2170
2174
|
default: withCtx(() => [
|
|
2171
|
-
createVNode(unref(_sfc_main$
|
|
2175
|
+
createVNode(unref(_sfc_main$G), {
|
|
2172
2176
|
anchor: anchor.value,
|
|
2173
2177
|
placement: "bottom-start",
|
|
2174
2178
|
offset: 6,
|
|
2175
2179
|
class: "z-dropdown"
|
|
2176
2180
|
}, {
|
|
2177
2181
|
default: withCtx(() => [
|
|
2178
|
-
createVNode(unref(_sfc_main$
|
|
2182
|
+
createVNode(unref(_sfc_main$I), {
|
|
2179
2183
|
"on-escape": handleClose,
|
|
2180
2184
|
"on-outside-pointer-down": handleOutsidePointerDown
|
|
2181
2185
|
}, {
|
|
@@ -2191,7 +2195,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2191
2195
|
onAnimationend: handleAnimationEnd
|
|
2192
2196
|
}), [
|
|
2193
2197
|
renderSlot(_ctx.$slots, "default")
|
|
2194
|
-
], 16, _hoisted_1$
|
|
2198
|
+
], 16, _hoisted_1$a)
|
|
2195
2199
|
]),
|
|
2196
2200
|
_: 3
|
|
2197
2201
|
}, 8, ["is-present"])
|
|
@@ -2207,8 +2211,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2207
2211
|
};
|
|
2208
2212
|
}
|
|
2209
2213
|
});
|
|
2210
|
-
const _hoisted_1$
|
|
2211
|
-
const _sfc_main$
|
|
2214
|
+
const _hoisted_1$9 = ["tabindex"];
|
|
2215
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2212
2216
|
...{ name: "NavigationMenuLink", inheritAttrs: false },
|
|
2213
2217
|
__name: "NavigationMenuLink",
|
|
2214
2218
|
setup(__props, { expose: __expose }) {
|
|
@@ -2248,7 +2252,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2248
2252
|
onKeydown: handleKeydown
|
|
2249
2253
|
}), [
|
|
2250
2254
|
renderSlot(_ctx.$slots, "default")
|
|
2251
|
-
], 16, _hoisted_1$
|
|
2255
|
+
], 16, _hoisted_1$9);
|
|
2252
2256
|
};
|
|
2253
2257
|
}
|
|
2254
2258
|
});
|
|
@@ -2313,7 +2317,7 @@ function useScrollSpy(ids, options = {}) {
|
|
|
2313
2317
|
);
|
|
2314
2318
|
return activeId;
|
|
2315
2319
|
}
|
|
2316
|
-
const _sfc_main$
|
|
2320
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2317
2321
|
...{ name: "ScrollSpy" },
|
|
2318
2322
|
__name: "ScrollSpy",
|
|
2319
2323
|
props: {
|
|
@@ -2337,14 +2341,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2337
2341
|
};
|
|
2338
2342
|
}
|
|
2339
2343
|
});
|
|
2340
|
-
const _hoisted_1$
|
|
2341
|
-
const _hoisted_2$
|
|
2342
|
-
const _hoisted_3$
|
|
2344
|
+
const _hoisted_1$8 = ["aria-label"];
|
|
2345
|
+
const _hoisted_2$8 = { class: "space-y-1 text-sm" };
|
|
2346
|
+
const _hoisted_3$5 = ["href", "aria-current", "onClick"];
|
|
2343
2347
|
function depthFromTagName(tag) {
|
|
2344
2348
|
const match = /^H([1-6])$/i.exec(tag);
|
|
2345
2349
|
return match ? Number(match[1]) - 2 : 0;
|
|
2346
2350
|
}
|
|
2347
|
-
const _sfc_main$
|
|
2351
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2348
2352
|
...{ name: "TableOfContents", inheritAttrs: false },
|
|
2349
2353
|
__name: "TableOfContents",
|
|
2350
2354
|
props: {
|
|
@@ -2402,7 +2406,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2402
2406
|
ref: el,
|
|
2403
2407
|
"aria-label": unref(locale).t("TableOfContents.tableOfContents", void 0, "Table of contents")
|
|
2404
2408
|
}, rest.value, { class: classes.value }), [
|
|
2405
|
-
createElementVNode("ul", _hoisted_2$
|
|
2409
|
+
createElementVNode("ul", _hoisted_2$8, [
|
|
2406
2410
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, i) => {
|
|
2407
2411
|
return openBlock(), createElementBlock("li", {
|
|
2408
2412
|
key: item.id,
|
|
@@ -2425,11 +2429,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2425
2429
|
}, () => [
|
|
2426
2430
|
createTextVNode(toDisplayString(item.label), 1)
|
|
2427
2431
|
])
|
|
2428
|
-
], 10, _hoisted_3$
|
|
2432
|
+
], 10, _hoisted_3$5)
|
|
2429
2433
|
], 4);
|
|
2430
2434
|
}), 128))
|
|
2431
2435
|
])
|
|
2432
|
-
], 16, _hoisted_1$
|
|
2436
|
+
], 16, _hoisted_1$8)) : createCommentVNode("", true);
|
|
2433
2437
|
};
|
|
2434
2438
|
}
|
|
2435
2439
|
});
|
|
@@ -2475,7 +2479,7 @@ const linkVariants = tv({
|
|
|
2475
2479
|
size: "md"
|
|
2476
2480
|
}
|
|
2477
2481
|
});
|
|
2478
|
-
const _sfc_main$
|
|
2482
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2479
2483
|
...{ name: "LinkItem", inheritAttrs: false },
|
|
2480
2484
|
__name: "LinkItem",
|
|
2481
2485
|
props: {
|
|
@@ -2516,12 +2520,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2516
2520
|
};
|
|
2517
2521
|
}
|
|
2518
2522
|
});
|
|
2519
|
-
const _hoisted_1$
|
|
2520
|
-
const _hoisted_2$
|
|
2523
|
+
const _hoisted_1$7 = ["aria-label"];
|
|
2524
|
+
const _hoisted_2$7 = {
|
|
2521
2525
|
role: "list",
|
|
2522
2526
|
class: "mx-auto grid max-w-lg auto-cols-fr grid-flow-col"
|
|
2523
2527
|
};
|
|
2524
|
-
const _sfc_main$
|
|
2528
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2525
2529
|
...{ name: "BottomNavMenu", inheritAttrs: false },
|
|
2526
2530
|
__name: "BottomNavMenu",
|
|
2527
2531
|
props: {
|
|
@@ -2550,28 +2554,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2550
2554
|
"aria-label": landmarkName.value,
|
|
2551
2555
|
class: classes.value
|
|
2552
2556
|
}), [
|
|
2553
|
-
createElementVNode("ul", _hoisted_2$
|
|
2557
|
+
createElementVNode("ul", _hoisted_2$7, [
|
|
2554
2558
|
renderSlot(_ctx.$slots, "default")
|
|
2555
2559
|
])
|
|
2556
|
-
], 16, _hoisted_1$
|
|
2560
|
+
], 16, _hoisted_1$7);
|
|
2557
2561
|
};
|
|
2558
2562
|
}
|
|
2559
2563
|
});
|
|
2560
|
-
const _hoisted_1$
|
|
2561
|
-
const _hoisted_2$
|
|
2564
|
+
const _hoisted_1$6 = { class: "flex" };
|
|
2565
|
+
const _hoisted_2$6 = {
|
|
2562
2566
|
key: 0,
|
|
2563
2567
|
class: "relative inline-flex"
|
|
2564
2568
|
};
|
|
2565
|
-
const _hoisted_3$
|
|
2569
|
+
const _hoisted_3$4 = {
|
|
2566
2570
|
key: 0,
|
|
2567
2571
|
class: "inline-flex",
|
|
2568
2572
|
"aria-hidden": "true"
|
|
2569
2573
|
};
|
|
2570
|
-
const _hoisted_4$
|
|
2574
|
+
const _hoisted_4$3 = {
|
|
2571
2575
|
key: 2,
|
|
2572
2576
|
class: "max-w-full truncate"
|
|
2573
2577
|
};
|
|
2574
|
-
const _sfc_main$
|
|
2578
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2575
2579
|
...{ name: "BottomNavMenuItem", inheritAttrs: false },
|
|
2576
2580
|
__name: "BottomNavMenuItem",
|
|
2577
2581
|
props: {
|
|
@@ -2598,7 +2602,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2598
2602
|
const el = computed(() => resolveElement(inner.value));
|
|
2599
2603
|
__expose({ el });
|
|
2600
2604
|
return (_ctx, _cache) => {
|
|
2601
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
2605
|
+
return openBlock(), createElementBlock("li", _hoisted_1$6, [
|
|
2602
2606
|
createVNode(unref(Primitive), mergeProps({
|
|
2603
2607
|
ref_key: "inner",
|
|
2604
2608
|
ref: inner,
|
|
@@ -2608,8 +2612,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2608
2612
|
"data-active": unref(dataAttr)(props.isActive)
|
|
2609
2613
|
}, rest.value, { class: classes.value }), {
|
|
2610
2614
|
default: withCtx(() => [
|
|
2611
|
-
_ctx.$slots.icon || _ctx.$slots.badge ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2612
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2615
|
+
_ctx.$slots.icon || _ctx.$slots.badge ? (openBlock(), createElementBlock("span", _hoisted_2$6, [
|
|
2616
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
|
|
2613
2617
|
renderSlot(_ctx.$slots, "icon")
|
|
2614
2618
|
])) : createCommentVNode("", true),
|
|
2615
2619
|
_ctx.$slots.badge ? (openBlock(), createElementBlock("span", {
|
|
@@ -2624,7 +2628,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2624
2628
|
renderSlot(_ctx.$slots, "default")
|
|
2625
2629
|
]),
|
|
2626
2630
|
_: 3
|
|
2627
|
-
})) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2631
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_4$3, [
|
|
2628
2632
|
renderSlot(_ctx.$slots, "default")
|
|
2629
2633
|
]))
|
|
2630
2634
|
]),
|
|
@@ -2639,12 +2643,12 @@ const Standalone = { isCollapsed: false };
|
|
|
2639
2643
|
function useSidebarMenuContext() {
|
|
2640
2644
|
return inject(SidebarMenuKey, Standalone);
|
|
2641
2645
|
}
|
|
2642
|
-
const _hoisted_1$
|
|
2643
|
-
const _hoisted_2$
|
|
2646
|
+
const _hoisted_1$5 = ["aria-label", "data-collapsed"];
|
|
2647
|
+
const _hoisted_2$5 = {
|
|
2644
2648
|
role: "list",
|
|
2645
2649
|
class: "flex flex-col gap-0.5"
|
|
2646
2650
|
};
|
|
2647
|
-
const _sfc_main$
|
|
2651
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2648
2652
|
...{ name: "SidebarMenu", inheritAttrs: false },
|
|
2649
2653
|
__name: "SidebarMenu",
|
|
2650
2654
|
props: {
|
|
@@ -2673,24 +2677,24 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2673
2677
|
"data-collapsed": unref(dataAttr)(props.isCollapsed),
|
|
2674
2678
|
class: classes.value
|
|
2675
2679
|
}), [
|
|
2676
|
-
createElementVNode("ul", _hoisted_2$
|
|
2680
|
+
createElementVNode("ul", _hoisted_2$5, [
|
|
2677
2681
|
renderSlot(_ctx.$slots, "default")
|
|
2678
2682
|
])
|
|
2679
|
-
], 16, _hoisted_1$
|
|
2683
|
+
], 16, _hoisted_1$5);
|
|
2680
2684
|
};
|
|
2681
2685
|
}
|
|
2682
2686
|
});
|
|
2683
|
-
const _hoisted_1$
|
|
2684
|
-
const _hoisted_2$
|
|
2687
|
+
const _hoisted_1$4 = { class: "flex" };
|
|
2688
|
+
const _hoisted_2$4 = {
|
|
2685
2689
|
key: 0,
|
|
2686
2690
|
class: "inline-flex shrink-0 text-muted-foreground group-data-[active]:text-current",
|
|
2687
2691
|
"aria-hidden": "true"
|
|
2688
2692
|
};
|
|
2689
|
-
const _hoisted_3$
|
|
2693
|
+
const _hoisted_3$3 = {
|
|
2690
2694
|
key: 3,
|
|
2691
2695
|
class: "ms-auto shrink-0"
|
|
2692
2696
|
};
|
|
2693
|
-
const _sfc_main$
|
|
2697
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2694
2698
|
...{ name: "SidebarMenuItem", inheritAttrs: false },
|
|
2695
2699
|
__name: "SidebarMenuItem",
|
|
2696
2700
|
props: {
|
|
@@ -2718,7 +2722,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2718
2722
|
const el = computed(() => resolveElement(inner.value));
|
|
2719
2723
|
__expose({ el });
|
|
2720
2724
|
return (_ctx, _cache) => {
|
|
2721
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
2725
|
+
return openBlock(), createElementBlock("li", _hoisted_1$4, [
|
|
2722
2726
|
createVNode(unref(Primitive), mergeProps({
|
|
2723
2727
|
ref_key: "inner",
|
|
2724
2728
|
ref: inner,
|
|
@@ -2728,7 +2732,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2728
2732
|
"data-active": unref(dataAttr)(props.isActive)
|
|
2729
2733
|
}, rest.value, { class: classes.value }), {
|
|
2730
2734
|
default: withCtx(() => [
|
|
2731
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2735
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$4, [
|
|
2732
2736
|
renderSlot(_ctx.$slots, "icon")
|
|
2733
2737
|
])) : createCommentVNode("", true),
|
|
2734
2738
|
props.asChild ? (openBlock(), createBlock(unref(Slottable), { key: 1 }, {
|
|
@@ -2742,7 +2746,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2742
2746
|
}, [
|
|
2743
2747
|
renderSlot(_ctx.$slots, "default")
|
|
2744
2748
|
], 2)),
|
|
2745
|
-
_ctx.$slots.trailing && !unref(context).isCollapsed ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2749
|
+
_ctx.$slots.trailing && !unref(context).isCollapsed ? (openBlock(), createElementBlock("span", _hoisted_3$3, [
|
|
2746
2750
|
renderSlot(_ctx.$slots, "trailing")
|
|
2747
2751
|
])) : createCommentVNode("", true)
|
|
2748
2752
|
]),
|
|
@@ -2752,15 +2756,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2752
2756
|
};
|
|
2753
2757
|
}
|
|
2754
2758
|
});
|
|
2755
|
-
const _hoisted_1$
|
|
2756
|
-
const _hoisted_2$
|
|
2757
|
-
const _hoisted_3 = {
|
|
2759
|
+
const _hoisted_1$3 = ["data-state"];
|
|
2760
|
+
const _hoisted_2$3 = ["aria-expanded", "aria-controls"];
|
|
2761
|
+
const _hoisted_3$2 = {
|
|
2758
2762
|
key: 0,
|
|
2759
2763
|
class: "inline-flex shrink-0 text-muted-foreground",
|
|
2760
2764
|
"aria-hidden": "true"
|
|
2761
2765
|
};
|
|
2762
|
-
const _hoisted_4 = ["id", "aria-label"];
|
|
2763
|
-
const _sfc_main$
|
|
2766
|
+
const _hoisted_4$2 = ["id", "aria-label"];
|
|
2767
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2764
2768
|
...{ name: "SidebarMenuGroup", inheritAttrs: false },
|
|
2765
2769
|
__name: "SidebarMenuGroup",
|
|
2766
2770
|
props: {
|
|
@@ -2814,7 +2818,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2814
2818
|
class: normalizeClass(toggleClasses.value),
|
|
2815
2819
|
onClick: toggle
|
|
2816
2820
|
}, [
|
|
2817
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
2821
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_3$2, [
|
|
2818
2822
|
renderSlot(_ctx.$slots, "icon")
|
|
2819
2823
|
])) : createCommentVNode("", true),
|
|
2820
2824
|
createElementVNode("span", {
|
|
@@ -2825,7 +2829,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2825
2829
|
class: normalizeClass(unref(cn)("size-4 shrink-0 text-muted-foreground transition-transform", unref(isOpen) && "rotate-90")),
|
|
2826
2830
|
"aria-hidden": "true"
|
|
2827
2831
|
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
2828
|
-
], 10, _hoisted_2$
|
|
2832
|
+
], 10, _hoisted_2$3),
|
|
2829
2833
|
withDirectives(createElementVNode("ul", {
|
|
2830
2834
|
id: unref(listId),
|
|
2831
2835
|
role: "list",
|
|
@@ -2833,16 +2837,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2833
2837
|
class: normalizeClass(listClasses.value)
|
|
2834
2838
|
}, [
|
|
2835
2839
|
renderSlot(_ctx.$slots, "default")
|
|
2836
|
-
], 10, _hoisted_4), [
|
|
2840
|
+
], 10, _hoisted_4$2), [
|
|
2837
2841
|
[vShow, isShown.value]
|
|
2838
2842
|
])
|
|
2839
|
-
], 16, _hoisted_1$
|
|
2843
|
+
], 16, _hoisted_1$3);
|
|
2840
2844
|
};
|
|
2841
2845
|
}
|
|
2842
2846
|
});
|
|
2843
|
-
const _hoisted_1 = ["id"];
|
|
2844
|
-
const _hoisted_2 = ["aria-labelledby"];
|
|
2845
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2847
|
+
const _hoisted_1$2 = ["id"];
|
|
2848
|
+
const _hoisted_2$2 = ["aria-labelledby"];
|
|
2849
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2846
2850
|
...{ name: "SidebarMenuSection", inheritAttrs: false },
|
|
2847
2851
|
__name: "SidebarMenuSection",
|
|
2848
2852
|
props: {
|
|
@@ -2869,89 +2873,500 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2869
2873
|
createElementVNode("span", {
|
|
2870
2874
|
id: unref(labelId),
|
|
2871
2875
|
class: normalizeClass(unref(context).isCollapsed ? "sr-only" : "px-2.5 pb-1 text-xs font-medium text-muted-foreground")
|
|
2872
|
-
}, toDisplayString(props.label), 11, _hoisted_1),
|
|
2876
|
+
}, toDisplayString(props.label), 11, _hoisted_1$2),
|
|
2873
2877
|
createElementVNode("ul", {
|
|
2874
2878
|
role: "list",
|
|
2875
2879
|
"aria-labelledby": unref(labelId),
|
|
2876
2880
|
class: "flex flex-col gap-0.5"
|
|
2877
2881
|
}, [
|
|
2878
2882
|
renderSlot(_ctx.$slots, "default")
|
|
2879
|
-
], 8, _hoisted_2)
|
|
2883
|
+
], 8, _hoisted_2$2)
|
|
2880
2884
|
], 16);
|
|
2881
2885
|
};
|
|
2882
2886
|
}
|
|
2883
2887
|
});
|
|
2888
|
+
const _hoisted_1$1 = { class: "flex flex-col gap-3" };
|
|
2889
|
+
const _hoisted_2$1 = {
|
|
2890
|
+
key: 0,
|
|
2891
|
+
role: "list",
|
|
2892
|
+
class: "grid grid-cols-1 gap-1 sm:grid-cols-2"
|
|
2893
|
+
};
|
|
2894
|
+
const _hoisted_3$1 = { class: "min-w-0" };
|
|
2895
|
+
const _hoisted_4$1 = { class: "block truncate text-sm font-semibold text-primary-soft-foreground" };
|
|
2896
|
+
const _hoisted_5$1 = {
|
|
2897
|
+
key: 0,
|
|
2898
|
+
class: "block truncate text-xs text-muted-foreground"
|
|
2899
|
+
};
|
|
2900
|
+
const _hoisted_6$1 = ["href", "onClick"];
|
|
2901
|
+
const _hoisted_7$1 = { class: "min-w-0" };
|
|
2902
|
+
const _hoisted_8 = { class: "block truncate text-sm font-semibold text-foreground" };
|
|
2903
|
+
const _hoisted_9 = {
|
|
2904
|
+
key: 0,
|
|
2905
|
+
class: "block truncate text-xs text-muted-foreground"
|
|
2906
|
+
};
|
|
2907
|
+
const _hoisted_10 = {
|
|
2908
|
+
key: 0,
|
|
2909
|
+
"aria-hidden": "true",
|
|
2910
|
+
class: "h-px bg-border",
|
|
2911
|
+
"data-app-switcher-divider": ""
|
|
2912
|
+
};
|
|
2913
|
+
const _hoisted_11 = ["id"];
|
|
2914
|
+
const _hoisted_12 = ["aria-labelledby"];
|
|
2915
|
+
const _hoisted_13 = ["href", "onClick"];
|
|
2916
|
+
const _hoisted_14 = { class: "sr-only" };
|
|
2917
|
+
const FocusClass = "outline-hidden focus-visible:ring-2 focus-visible:ring-ring";
|
|
2918
|
+
const TileClass = `flex min-h-14 w-full items-center gap-3 rounded-xl px-2.5 py-2 text-start transition-colors motion-reduce:transition-none ${FocusClass}`;
|
|
2919
|
+
const TileIconClass = "grid size-9 shrink-0 place-items-center rounded-lg border text-sm font-semibold forced-colors:border-[CanvasText]";
|
|
2920
|
+
const SiteClass = `inline-flex min-h-9 items-center gap-1.5 rounded-lg border px-3 text-sm transition-colors motion-reduce:transition-none ${FocusClass}`;
|
|
2921
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2922
|
+
...{ name: "AppSwitcherMenuPanel", inheritAttrs: false },
|
|
2923
|
+
__name: "AppSwitcherMenuPanel",
|
|
2924
|
+
props: {
|
|
2925
|
+
apps: {},
|
|
2926
|
+
sites: {},
|
|
2927
|
+
current: {},
|
|
2928
|
+
sitesLabel: {},
|
|
2929
|
+
newTabLabel: {}
|
|
2930
|
+
},
|
|
2931
|
+
emits: ["select", "close"],
|
|
2932
|
+
setup(__props, { emit: __emit }) {
|
|
2933
|
+
const props = __props;
|
|
2934
|
+
const emit = __emit;
|
|
2935
|
+
const sitesId = useId("app-switcher-sites");
|
|
2936
|
+
function initialOf(label) {
|
|
2937
|
+
return (Array.from(label.trim())[0] ?? "").toLocaleUpperCase();
|
|
2938
|
+
}
|
|
2939
|
+
function pick(item, event) {
|
|
2940
|
+
emit("select", item, event);
|
|
2941
|
+
emit("close");
|
|
2942
|
+
}
|
|
2943
|
+
function close() {
|
|
2944
|
+
emit("close");
|
|
2945
|
+
}
|
|
2946
|
+
return (_ctx, _cache) => {
|
|
2947
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
2948
|
+
props.apps.length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_2$1, [
|
|
2949
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.apps, (app) => {
|
|
2950
|
+
return openBlock(), createElementBlock("li", {
|
|
2951
|
+
key: app.key
|
|
2952
|
+
}, [
|
|
2953
|
+
app.key === props.current ? (openBlock(), createElementBlock("button", {
|
|
2954
|
+
key: 0,
|
|
2955
|
+
type: "button",
|
|
2956
|
+
"aria-current": "true",
|
|
2957
|
+
class: normalizeClass(unref(cn)(TileClass, "bg-primary-soft")),
|
|
2958
|
+
onClick: close
|
|
2959
|
+
}, [
|
|
2960
|
+
createElementVNode("span", {
|
|
2961
|
+
"aria-hidden": "true",
|
|
2962
|
+
class: normalizeClass(unref(cn)(TileIconClass, "border-transparent bg-primary text-primary-foreground")),
|
|
2963
|
+
"data-app-switcher-icon": ""
|
|
2964
|
+
}, [
|
|
2965
|
+
app.icon ? (openBlock(), createBlock(unref(_sfc_main$E), {
|
|
2966
|
+
key: 0,
|
|
2967
|
+
icon: app.icon,
|
|
2968
|
+
size: 18
|
|
2969
|
+
}, null, 8, ["icon"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2970
|
+
createTextVNode(toDisplayString(initialOf(app.label)), 1)
|
|
2971
|
+
], 64))
|
|
2972
|
+
], 2),
|
|
2973
|
+
createElementVNode("span", _hoisted_3$1, [
|
|
2974
|
+
createElementVNode("span", _hoisted_4$1, toDisplayString(app.label), 1),
|
|
2975
|
+
app.description ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(app.description), 1)) : createCommentVNode("", true)
|
|
2976
|
+
])
|
|
2977
|
+
], 2)) : (openBlock(), createElementBlock("a", {
|
|
2978
|
+
key: 1,
|
|
2979
|
+
href: app.href,
|
|
2980
|
+
class: normalizeClass(unref(cn)(TileClass, "hover:bg-muted")),
|
|
2981
|
+
onClick: ($event) => pick(app, $event)
|
|
2982
|
+
}, [
|
|
2983
|
+
createElementVNode("span", {
|
|
2984
|
+
"aria-hidden": "true",
|
|
2985
|
+
class: normalizeClass(unref(cn)(TileIconClass, "border-primary/10 bg-primary-soft/70 text-primary-soft-foreground")),
|
|
2986
|
+
"data-app-switcher-icon": ""
|
|
2987
|
+
}, [
|
|
2988
|
+
app.icon ? (openBlock(), createBlock(unref(_sfc_main$E), {
|
|
2989
|
+
key: 0,
|
|
2990
|
+
icon: app.icon,
|
|
2991
|
+
size: 18
|
|
2992
|
+
}, null, 8, ["icon"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2993
|
+
createTextVNode(toDisplayString(initialOf(app.label)), 1)
|
|
2994
|
+
], 64))
|
|
2995
|
+
], 2),
|
|
2996
|
+
createElementVNode("span", _hoisted_7$1, [
|
|
2997
|
+
createElementVNode("span", _hoisted_8, toDisplayString(app.label), 1),
|
|
2998
|
+
app.description ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(app.description), 1)) : createCommentVNode("", true)
|
|
2999
|
+
])
|
|
3000
|
+
], 10, _hoisted_6$1))
|
|
3001
|
+
]);
|
|
3002
|
+
}), 128))
|
|
3003
|
+
])) : createCommentVNode("", true),
|
|
3004
|
+
props.sites.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3005
|
+
props.apps.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_10)) : createCommentVNode("", true),
|
|
3006
|
+
createElementVNode("h3", {
|
|
3007
|
+
id: unref(sitesId),
|
|
3008
|
+
class: "px-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground"
|
|
3009
|
+
}, toDisplayString(props.sitesLabel), 9, _hoisted_11),
|
|
3010
|
+
createElementVNode("ul", {
|
|
3011
|
+
role: "list",
|
|
3012
|
+
"aria-labelledby": unref(sitesId),
|
|
3013
|
+
class: "flex flex-wrap gap-2 px-1"
|
|
3014
|
+
}, [
|
|
3015
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.sites, (site) => {
|
|
3016
|
+
return openBlock(), createElementBlock("li", {
|
|
3017
|
+
key: site.key
|
|
3018
|
+
}, [
|
|
3019
|
+
site.key === props.current ? (openBlock(), createElementBlock("button", {
|
|
3020
|
+
key: 0,
|
|
3021
|
+
type: "button",
|
|
3022
|
+
"aria-current": "true",
|
|
3023
|
+
class: normalizeClass(unref(cn)(SiteClass, "border-primary/15 bg-primary-soft text-primary-soft-foreground")),
|
|
3024
|
+
onClick: close
|
|
3025
|
+
}, toDisplayString(site.label), 3)) : (openBlock(), createElementBlock("a", {
|
|
3026
|
+
key: 1,
|
|
3027
|
+
href: site.href,
|
|
3028
|
+
target: "_blank",
|
|
3029
|
+
rel: "noopener noreferrer",
|
|
3030
|
+
class: normalizeClass(unref(cn)(SiteClass, "border-border text-muted-foreground hover:border-input hover:text-foreground")),
|
|
3031
|
+
onClick: ($event) => pick(site, $event)
|
|
3032
|
+
}, [
|
|
3033
|
+
createTextVNode(toDisplayString(site.label), 1),
|
|
3034
|
+
createVNode(unref(_sfc_main$E), {
|
|
3035
|
+
icon: unref(ExternalLink),
|
|
3036
|
+
size: 14
|
|
3037
|
+
}, null, 8, ["icon"]),
|
|
3038
|
+
createElementVNode("span", _hoisted_14, toDisplayString(` ${props.newTabLabel}`), 1)
|
|
3039
|
+
], 10, _hoisted_13))
|
|
3040
|
+
]);
|
|
3041
|
+
}), 128))
|
|
3042
|
+
], 8, _hoisted_12)
|
|
3043
|
+
], 64)) : createCommentVNode("", true)
|
|
3044
|
+
]);
|
|
3045
|
+
};
|
|
3046
|
+
}
|
|
3047
|
+
});
|
|
3048
|
+
const AppSwitcherMenuExtensions = {
|
|
3049
|
+
/**
|
|
3050
|
+
* The href as a plain absolute HTTPS URL, else `null`. Credentials, a query or a fragment could carry a token
|
|
3051
|
+
* from configuration into another app's address bar and history, so each one rejects the href.
|
|
3052
|
+
*/
|
|
3053
|
+
toSafeHref(href) {
|
|
3054
|
+
try {
|
|
3055
|
+
const url = new URL(href);
|
|
3056
|
+
if (url.protocol !== "https:" || url.username || url.password || url.search || url.hash) return null;
|
|
3057
|
+
return `${url.origin}${url.pathname}`;
|
|
3058
|
+
} catch {
|
|
3059
|
+
return null;
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
};
|
|
3063
|
+
const _hoisted_1 = ["aria-expanded", "aria-label", "data-state"];
|
|
3064
|
+
const _hoisted_2 = {
|
|
3065
|
+
"aria-hidden": "true",
|
|
3066
|
+
class: "flex shrink-0",
|
|
3067
|
+
"data-app-switcher-mark": ""
|
|
3068
|
+
};
|
|
3069
|
+
const _hoisted_3 = { class: "grid size-9 place-items-center rounded-lg bg-primary text-primary-foreground" };
|
|
3070
|
+
const _hoisted_4 = { class: "min-w-0" };
|
|
3071
|
+
const _hoisted_5 = { class: "block truncate text-sm font-semibold leading-tight" };
|
|
3072
|
+
const _hoisted_6 = ["id"];
|
|
3073
|
+
const _hoisted_7 = { class: "mb-4 flex shrink-0 items-center justify-between gap-3" };
|
|
3074
|
+
const AppSwitcherKind = {
|
|
3075
|
+
/** Refers to a workspace app — a tile that opens in the same tab. */
|
|
3076
|
+
App: "app",
|
|
3077
|
+
/** Refers to a public site — a link under the divider that opens in a new tab. */
|
|
3078
|
+
Site: "site"
|
|
3079
|
+
};
|
|
3080
|
+
const NarrowHiddenClass = {
|
|
3081
|
+
sm: "max-sm:hidden",
|
|
3082
|
+
md: "max-md:hidden",
|
|
3083
|
+
lg: "max-lg:hidden",
|
|
3084
|
+
xl: "max-xl:hidden",
|
|
3085
|
+
"2xl": "max-2xl:hidden"
|
|
3086
|
+
};
|
|
3087
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3088
|
+
...{ name: "AppSwitcherMenu", inheritAttrs: false },
|
|
3089
|
+
__name: "AppSwitcherMenu",
|
|
3090
|
+
props: {
|
|
3091
|
+
items: {},
|
|
3092
|
+
current: {},
|
|
3093
|
+
label: { default: void 0 },
|
|
3094
|
+
subtitle: { default: void 0 },
|
|
3095
|
+
open: { type: Boolean, default: void 0 },
|
|
3096
|
+
defaultOpen: { type: Boolean, default: false },
|
|
3097
|
+
breakpoint: { default: "md" },
|
|
3098
|
+
title: {},
|
|
3099
|
+
sitesLabel: {},
|
|
3100
|
+
closeLabel: {},
|
|
3101
|
+
newTabLabel: {},
|
|
3102
|
+
triggerLabel: { default: void 0 },
|
|
3103
|
+
variant: { default: void 0 },
|
|
3104
|
+
panelClass: { type: [Boolean, null, String, Object, Array], default: void 0 }
|
|
3105
|
+
},
|
|
3106
|
+
emits: ["update:open", "select"],
|
|
3107
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
3108
|
+
const componentProps = __props;
|
|
3109
|
+
const props = useLocaleDefaults(componentProps, "AppSwitcherMenu", {
|
|
3110
|
+
title: "Apps",
|
|
3111
|
+
sitesLabel: "Sites",
|
|
3112
|
+
closeLabel: "Close",
|
|
3113
|
+
newTabLabel: "(opens in a new tab)"
|
|
3114
|
+
});
|
|
3115
|
+
const emit = __emit;
|
|
3116
|
+
const attrs = useAttrs();
|
|
3117
|
+
const locale = useLocale();
|
|
3118
|
+
const titleId = useId("app-switcher-title");
|
|
3119
|
+
const trigger = useTemplateRef("trigger");
|
|
3120
|
+
const controlled = useControlled({
|
|
3121
|
+
controlled: () => props.open,
|
|
3122
|
+
default: () => props.defaultOpen,
|
|
3123
|
+
onChange: (value) => {
|
|
3124
|
+
emit("update:open", value);
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
const isOpen = controlled.value;
|
|
3128
|
+
function setOpen(open) {
|
|
3129
|
+
controlled.setValue(open);
|
|
3130
|
+
}
|
|
3131
|
+
function close() {
|
|
3132
|
+
controlled.setValue(false);
|
|
3133
|
+
}
|
|
3134
|
+
const isWide = useMediaQuery(() => `(min-width: ${TailwindBreakpoints[props.breakpoint]}px)`);
|
|
3135
|
+
onMounted(() => {
|
|
3136
|
+
watch(isWide, () => {
|
|
3137
|
+
if (isOpen.value) close();
|
|
3138
|
+
});
|
|
3139
|
+
});
|
|
3140
|
+
const currentItem = computed(() => props.items.find((item) => item.key === props.current));
|
|
3141
|
+
const appName = computed(() => props.label ?? currentItem.value?.label ?? props.title);
|
|
3142
|
+
const triggerName = computed(
|
|
3143
|
+
() => props.triggerLabel === void 0 ? locale.t("AppSwitcherMenu.triggerLabel", { app: appName.value }, "{app} — switch app") : props.triggerLabel.replaceAll("{app}", appName.value)
|
|
3144
|
+
);
|
|
3145
|
+
const destinations = computed(
|
|
3146
|
+
() => props.items.flatMap((item) => {
|
|
3147
|
+
if (item.key === props.current) return [item];
|
|
3148
|
+
const href = AppSwitcherMenuExtensions.toSafeHref(item.href);
|
|
3149
|
+
return href === null ? [] : [{ ...item, href }];
|
|
3150
|
+
})
|
|
3151
|
+
);
|
|
3152
|
+
const apps = computed(() => destinations.value.filter((item) => item.kind === AppSwitcherKind.App));
|
|
3153
|
+
const sites = computed(() => destinations.value.filter((item) => item.kind === AppSwitcherKind.Site));
|
|
3154
|
+
function select(item, event) {
|
|
3155
|
+
const original = props.items.find((entry) => entry.key === item.key);
|
|
3156
|
+
if (original) emit("select", original, event);
|
|
3157
|
+
}
|
|
3158
|
+
const triggerClasses = computed(
|
|
3159
|
+
() => cn(
|
|
3160
|
+
"group/app-switcher inline-flex min-h-11 min-w-0 max-w-full shrink-0 items-center gap-2.5 rounded-xl border",
|
|
3161
|
+
"border-transparent py-1 ps-1 pe-2 text-start text-foreground transition-colors motion-reduce:transition-none",
|
|
3162
|
+
"hover:border-primary/15 hover:bg-primary-soft data-[state=open]:border-primary/15 data-[state=open]:bg-primary-soft",
|
|
3163
|
+
"outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
3164
|
+
attrs.class
|
|
3165
|
+
)
|
|
3166
|
+
);
|
|
3167
|
+
const subtitleClasses = computed(
|
|
3168
|
+
() => cn("block max-w-40 truncate text-xs leading-tight text-muted-foreground", NarrowHiddenClass[props.breakpoint])
|
|
3169
|
+
);
|
|
3170
|
+
const popoverClasses = computed(() => cn("w-[min(28rem,calc(100vw-2rem))]", props.panelClass));
|
|
3171
|
+
const rest = computed(() => {
|
|
3172
|
+
const { class: _class, ...others } = attrs;
|
|
3173
|
+
return others;
|
|
3174
|
+
});
|
|
3175
|
+
const el = computed(() => trigger.value?.el ?? null);
|
|
3176
|
+
__expose({ el });
|
|
3177
|
+
return (_ctx, _cache) => {
|
|
3178
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
3179
|
+
createVNode(_sfc_main$K, {
|
|
3180
|
+
open: unref(isOpen) && unref(isWide),
|
|
3181
|
+
placement: "bottom-start",
|
|
3182
|
+
"onUpdate:open": setOpen
|
|
3183
|
+
}, {
|
|
3184
|
+
default: withCtx(() => [
|
|
3185
|
+
createVNode(_sfc_main$L, {
|
|
3186
|
+
ref_key: "trigger",
|
|
3187
|
+
ref: trigger,
|
|
3188
|
+
"as-child": ""
|
|
3189
|
+
}, {
|
|
3190
|
+
default: withCtx(() => [
|
|
3191
|
+
createElementVNode("button", mergeProps({
|
|
3192
|
+
type: "button",
|
|
3193
|
+
"aria-haspopup": "dialog",
|
|
3194
|
+
"aria-expanded": unref(isOpen),
|
|
3195
|
+
"aria-label": triggerName.value,
|
|
3196
|
+
"data-state": unref(isOpen) ? "open" : "closed"
|
|
3197
|
+
}, rest.value, { class: triggerClasses.value }), [
|
|
3198
|
+
createElementVNode("span", _hoisted_2, [
|
|
3199
|
+
renderSlot(_ctx.$slots, "mark", { current: currentItem.value }, () => [
|
|
3200
|
+
createElementVNode("span", _hoisted_3, [
|
|
3201
|
+
createVNode(unref(_sfc_main$E), {
|
|
3202
|
+
icon: unref(LayoutGrid),
|
|
3203
|
+
size: 18
|
|
3204
|
+
}, null, 8, ["icon"])
|
|
3205
|
+
])
|
|
3206
|
+
])
|
|
3207
|
+
]),
|
|
3208
|
+
createElementVNode("span", _hoisted_4, [
|
|
3209
|
+
createElementVNode("span", _hoisted_5, toDisplayString(appName.value), 1),
|
|
3210
|
+
unref(props).subtitle ? (openBlock(), createElementBlock("span", {
|
|
3211
|
+
key: 0,
|
|
3212
|
+
class: normalizeClass(subtitleClasses.value),
|
|
3213
|
+
"data-app-switcher-subtitle": ""
|
|
3214
|
+
}, toDisplayString(unref(props).subtitle), 3)) : createCommentVNode("", true)
|
|
3215
|
+
]),
|
|
3216
|
+
createVNode(unref(_sfc_main$E), {
|
|
3217
|
+
icon: unref(ChevronDown),
|
|
3218
|
+
size: 16,
|
|
3219
|
+
class: "shrink-0 text-muted-foreground transition-transform duration-200 group-data-[state=open]/app-switcher:rotate-180 motion-reduce:transition-none",
|
|
3220
|
+
"data-app-switcher-chevron": ""
|
|
3221
|
+
}, null, 8, ["icon"])
|
|
3222
|
+
], 16, _hoisted_1)
|
|
3223
|
+
]),
|
|
3224
|
+
_: 3
|
|
3225
|
+
}, 512),
|
|
3226
|
+
unref(isWide) ? (openBlock(), createBlock(_sfc_main$M, {
|
|
3227
|
+
key: 0,
|
|
3228
|
+
"aria-labelledby": unref(titleId),
|
|
3229
|
+
variant: unref(props).variant,
|
|
3230
|
+
radius: "xl",
|
|
3231
|
+
class: normalizeClass(popoverClasses.value)
|
|
3232
|
+
}, {
|
|
3233
|
+
default: withCtx(() => [
|
|
3234
|
+
createElementVNode("h2", {
|
|
3235
|
+
id: unref(titleId),
|
|
3236
|
+
class: "mb-3 px-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground"
|
|
3237
|
+
}, toDisplayString(unref(props).title), 9, _hoisted_6),
|
|
3238
|
+
createVNode(_sfc_main$1, {
|
|
3239
|
+
apps: apps.value,
|
|
3240
|
+
sites: sites.value,
|
|
3241
|
+
current: unref(props).current,
|
|
3242
|
+
"sites-label": unref(props).sitesLabel,
|
|
3243
|
+
"new-tab-label": unref(props).newTabLabel,
|
|
3244
|
+
onSelect: select,
|
|
3245
|
+
onClose: close
|
|
3246
|
+
}, null, 8, ["apps", "sites", "current", "sites-label", "new-tab-label"])
|
|
3247
|
+
]),
|
|
3248
|
+
_: 1
|
|
3249
|
+
}, 8, ["aria-labelledby", "variant", "class"])) : createCommentVNode("", true)
|
|
3250
|
+
]),
|
|
3251
|
+
_: 3
|
|
3252
|
+
}, 8, ["open"]),
|
|
3253
|
+
!unref(isWide) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
3254
|
+
key: 0,
|
|
3255
|
+
open: unref(isOpen),
|
|
3256
|
+
"onUpdate:open": setOpen
|
|
3257
|
+
}, {
|
|
3258
|
+
default: withCtx(() => [
|
|
3259
|
+
createVNode(_sfc_main$O, {
|
|
3260
|
+
variant: unref(props).variant,
|
|
3261
|
+
radius: "xl",
|
|
3262
|
+
padding: "lg",
|
|
3263
|
+
class: normalizeClass(unref(props).panelClass)
|
|
3264
|
+
}, {
|
|
3265
|
+
default: withCtx(() => [
|
|
3266
|
+
createElementVNode("div", _hoisted_7, [
|
|
3267
|
+
createVNode(_sfc_main$P, null, {
|
|
3268
|
+
default: withCtx(() => [
|
|
3269
|
+
createTextVNode(toDisplayString(unref(props).title), 1)
|
|
3270
|
+
]),
|
|
3271
|
+
_: 1
|
|
3272
|
+
}),
|
|
3273
|
+
createVNode(_sfc_main$Q, {
|
|
3274
|
+
"aria-label": unref(props).closeLabel,
|
|
3275
|
+
class: "static -me-2 h-11 w-11 rounded-xl"
|
|
3276
|
+
}, null, 8, ["aria-label"])
|
|
3277
|
+
]),
|
|
3278
|
+
createVNode(_sfc_main$1, {
|
|
3279
|
+
apps: apps.value,
|
|
3280
|
+
sites: sites.value,
|
|
3281
|
+
current: unref(props).current,
|
|
3282
|
+
"sites-label": unref(props).sitesLabel,
|
|
3283
|
+
"new-tab-label": unref(props).newTabLabel,
|
|
3284
|
+
onSelect: select,
|
|
3285
|
+
onClose: close
|
|
3286
|
+
}, null, 8, ["apps", "sites", "current", "sites-label", "new-tab-label"])
|
|
3287
|
+
]),
|
|
3288
|
+
_: 1
|
|
3289
|
+
}, 8, ["variant", "class"])
|
|
3290
|
+
]),
|
|
3291
|
+
_: 1
|
|
3292
|
+
}, 8, ["open"])) : createCommentVNode("", true)
|
|
3293
|
+
], 64);
|
|
3294
|
+
};
|
|
3295
|
+
}
|
|
3296
|
+
});
|
|
2884
3297
|
export {
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
_sfc_main$
|
|
2889
|
-
_sfc_main$
|
|
2890
|
-
_sfc_main$
|
|
2891
|
-
_sfc_main$
|
|
2892
|
-
_sfc_main$
|
|
2893
|
-
_sfc_main$
|
|
2894
|
-
_sfc_main$
|
|
3298
|
+
menuItemVariants as $,
|
|
3299
|
+
AppSwitcherKind as A,
|
|
3300
|
+
MenuTreeKey as B,
|
|
3301
|
+
_sfc_main$k as C,
|
|
3302
|
+
_sfc_main$h as D,
|
|
3303
|
+
_sfc_main$j as E,
|
|
3304
|
+
_sfc_main$i as F,
|
|
3305
|
+
_sfc_main$g as G,
|
|
3306
|
+
_sfc_main$c as H,
|
|
3307
|
+
_sfc_main$e as I,
|
|
2895
3308
|
_sfc_main$b as J,
|
|
2896
|
-
_sfc_main$
|
|
3309
|
+
_sfc_main$f as K,
|
|
2897
3310
|
LinkItemSize as L,
|
|
2898
3311
|
MenuItemState as M,
|
|
2899
|
-
_sfc_main$
|
|
2900
|
-
_sfc_main$
|
|
2901
|
-
_sfc_main$
|
|
2902
|
-
_sfc_main$
|
|
2903
|
-
_sfc_main as R,
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
_sfc_main
|
|
2913
|
-
_sfc_main$
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
_sfc_main$
|
|
2934
|
-
_sfc_main$
|
|
2935
|
-
_sfc_main$
|
|
2936
|
-
_sfc_main$
|
|
2937
|
-
_sfc_main$
|
|
2938
|
-
_sfc_main$
|
|
2939
|
-
|
|
2940
|
-
_sfc_main$
|
|
2941
|
-
_sfc_main$
|
|
2942
|
-
|
|
2943
|
-
_sfc_main$
|
|
2944
|
-
|
|
2945
|
-
_sfc_main$
|
|
2946
|
-
_sfc_main$
|
|
2947
|
-
|
|
2948
|
-
_sfc_main$
|
|
2949
|
-
_sfc_main$
|
|
2950
|
-
|
|
2951
|
-
_sfc_main$
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
_sfc_main$
|
|
2955
|
-
|
|
3312
|
+
_sfc_main$d as N,
|
|
3313
|
+
_sfc_main$C as O,
|
|
3314
|
+
_sfc_main$a as P,
|
|
3315
|
+
_sfc_main$5 as Q,
|
|
3316
|
+
_sfc_main$3 as R,
|
|
3317
|
+
_sfc_main$4 as S,
|
|
3318
|
+
SidebarMenuKey as T,
|
|
3319
|
+
_sfc_main$2 as U,
|
|
3320
|
+
_sfc_main$9 as V,
|
|
3321
|
+
contextMenuContextKey as W,
|
|
3322
|
+
dropdownMenuContextKey as X,
|
|
3323
|
+
linkVariants as Y,
|
|
3324
|
+
menuItemIndicatorVariants as Z,
|
|
3325
|
+
_sfc_main as _,
|
|
3326
|
+
_sfc_main$7 as a,
|
|
3327
|
+
menuLabelVariants as a0,
|
|
3328
|
+
menuSeparatorVariants as a1,
|
|
3329
|
+
menuSubIndicatorVariants as a2,
|
|
3330
|
+
menuVariants as a3,
|
|
3331
|
+
menubarContextKey as a4,
|
|
3332
|
+
menubarMenuContextKey as a5,
|
|
3333
|
+
navigationMenuContextKey as a6,
|
|
3334
|
+
navigationMenuItemContextKey as a7,
|
|
3335
|
+
useContextMenuContext as a8,
|
|
3336
|
+
useDropdownMenuContext as a9,
|
|
3337
|
+
useMenuContext as aa,
|
|
3338
|
+
useMenuRadioGroupContext as ab,
|
|
3339
|
+
useMenuSubContext as ac,
|
|
3340
|
+
useMenubarContext as ad,
|
|
3341
|
+
useMenubarMenuContext as ae,
|
|
3342
|
+
useNavigationMenuContext as af,
|
|
3343
|
+
useNavigationMenuItemContext as ag,
|
|
3344
|
+
useScrollSpy as ah,
|
|
3345
|
+
useSidebarMenuContext as ai,
|
|
3346
|
+
_sfc_main$6 as b,
|
|
3347
|
+
_sfc_main$D as c,
|
|
3348
|
+
_sfc_main$n as d,
|
|
3349
|
+
_sfc_main$l as e,
|
|
3350
|
+
_sfc_main$m as f,
|
|
3351
|
+
_sfc_main$q as g,
|
|
3352
|
+
_sfc_main$o as h,
|
|
3353
|
+
_sfc_main$p as i,
|
|
3354
|
+
_sfc_main$8 as j,
|
|
3355
|
+
LinkItemVariant as k,
|
|
3356
|
+
_sfc_main$B as l,
|
|
3357
|
+
_sfc_main$z as m,
|
|
3358
|
+
_sfc_main$t as n,
|
|
3359
|
+
_sfc_main$A as o,
|
|
3360
|
+
MenuKey as p,
|
|
3361
|
+
_sfc_main$s as q,
|
|
3362
|
+
_sfc_main$y as r,
|
|
3363
|
+
MenuRadioGroupKey as s,
|
|
3364
|
+
_sfc_main$x as t,
|
|
3365
|
+
_sfc_main$r as u,
|
|
3366
|
+
_sfc_main$w as v,
|
|
3367
|
+
_sfc_main$u as w,
|
|
3368
|
+
MenuSubKey as x,
|
|
3369
|
+
MenuSubOpenReason as y,
|
|
3370
|
+
_sfc_main$v as z
|
|
2956
3371
|
};
|
|
2957
|
-
//# sourceMappingURL=
|
|
3372
|
+
//# sourceMappingURL=AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map
|