@wow-two-beta/fe 0.0.42 → 0.0.43

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.
Files changed (43) hide show
  1. package/README.md +21 -3
  2. package/dist/foundation/net/hooks/UseRunningVersion.d.ts +30 -0
  3. package/dist/foundation/net/hooks/UseRunningVersion.js +19 -0
  4. package/dist/foundation/net/hooks/UseRunningVersion.js.map +1 -0
  5. package/dist/foundation/net/index.d.ts +1 -0
  6. package/dist/foundation/net/index.js +2 -0
  7. package/dist/foundation/net/index.js.map +1 -1
  8. package/dist/foundation/themes/constants/Authored.js +21 -0
  9. package/dist/foundation/themes/constants/Authored.js.map +1 -1
  10. package/dist/index.css +16 -0
  11. package/dist/index.js +812 -806
  12. package/dist/index.js.map +1 -1
  13. package/dist/presentation/display/index.d.ts +1 -0
  14. package/dist/presentation/display/index.js +6 -4
  15. package/dist/presentation/display/index.js.map +1 -1
  16. package/dist/presentation/display/versionBadge/VersionBadge.vue.d.ts +27 -0
  17. package/dist/presentation/display/versionBadge/VersionBadge.vue.js +80 -0
  18. package/dist/presentation/display/versionBadge/VersionBadge.vue.js.map +1 -0
  19. package/dist/presentation/display/versionBadge/VersionBadge2.vue.js +5 -0
  20. package/dist/presentation/display/versionBadge/VersionBadge2.vue.js.map +1 -0
  21. package/dist/presentation/display/versionBadge/VersionBadgeExtensions.d.ts +9 -0
  22. package/dist/presentation/display/versionBadge/VersionBadgeExtensions.js +21 -0
  23. package/dist/presentation/display/versionBadge/VersionBadgeExtensions.js.map +1 -0
  24. package/dist/presentation/display/versionBadge/index.d.ts +1 -0
  25. package/dist/presentation/forms/imageEditor/ImageEditor.vue.d.ts +1 -1
  26. package/dist/presentation/layout/appFrame/AppFrame.vue.d.ts +168 -0
  27. package/dist/presentation/layout/appFrame/AppFrame.vue.js +408 -0
  28. package/dist/presentation/layout/appFrame/AppFrame.vue.js.map +1 -0
  29. package/dist/presentation/layout/appFrame/AppFrame2.vue.js +8 -0
  30. package/dist/presentation/layout/appFrame/AppFrame2.vue.js.map +1 -0
  31. package/dist/presentation/layout/appFrame/index.d.ts +1 -0
  32. package/dist/presentation/layout/index.d.ts +1 -0
  33. package/dist/presentation/layout/index.js +90 -86
  34. package/dist/presentation/layout/index.js.map +1 -1
  35. package/dist/presentation/nav/accountMenu/AccountMenu.vue.d.ts +2 -2
  36. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +2 -0
  37. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.js +15 -8
  38. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.js.map +1 -1
  39. package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.d.ts +8 -1
  40. package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.js +38 -19
  41. package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.js.map +1 -1
  42. package/dist/themes.css +14 -0
  43. package/package.json +1 -1
@@ -0,0 +1,408 @@
1
+ import { defineComponent, useSlots, useAttrs, useTemplateRef, shallowRef, onBeforeUpdate, computed, watch, openBlock, createElementBlock, Fragment, createVNode, mergeProps, unref, withCtx, normalizeClass, createElementVNode, normalizeStyle, createBlock, createSlots, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
+ import { PanelLeft } from "lucide-vue-next";
3
+ import { TailwindBreakpoints } from "../../../foundation/device/Breakpoints.js";
4
+ import { useBreakpointBelow, useBreakpointUp } from "../../../foundation/device/hooks/UseBreakpointRange.js";
5
+ import { dataAttr } from "../../../foundation/dom/DataAttr.js";
6
+ import { useLocaleDefaults } from "../../../foundation/i18n/UseLocaleDefaults.js";
7
+ import { createPersistentRef } from "../../../foundation/storage/PersistentRef.js";
8
+ import { cn } from "../../../foundation/styles/Cn.js";
9
+ import { SurfaceVariant } from "../../../foundation/styles/SurfaceStyles.js";
10
+ import _sfc_main$5 from "../../actions/button/Button.vue.js";
11
+ import _sfc_main$4 from "../../display/versionBadge/VersionBadge.vue.js";
12
+ import _sfc_main$8 from "../../nav/accountMenu/AccountMenu.vue.js";
13
+ import _sfc_main$3 from "../../nav/appSwitcherMenu/AppSwitcherMenu.vue.js";
14
+ import _sfc_main$7 from "../../nav/breadcrumb/Breadcrumb.vue.js";
15
+ import _sfc_main$c from "../../overlays/drawer/Drawer.vue.js";
16
+ import _sfc_main$d from "../../overlays/drawer/DrawerContent.vue.js";
17
+ import _sfc_main$e from "../../overlays/OverlayTitle.vue.js";
18
+ import _sfc_main$1, { AppShellNavigation } from "../appShell/AppShell.vue.js";
19
+ import _sfc_main$b from "../appShell/AppShellContent.vue.js";
20
+ import _sfc_main$2 from "../appShell/AppShellHeader.vue.js";
21
+ import _sfc_main$a from "../appShell/AppShellMain.vue.js";
22
+ import _sfc_main$9 from "../appShell/AppShellSidebar.vue.js";
23
+ import _sfc_main$6 from "../../../foundation/icons/icon/Icon.vue.js";
24
+ const _hoisted_1 = { class: "flex h-full w-full min-w-0 items-stretch" };
25
+ const _hoisted_2 = {
26
+ class: "flex min-w-0 flex-1 items-center gap-2 px-3 sm:gap-3 sm:px-4 lg:px-6",
27
+ "data-app-frame-row": ""
28
+ };
29
+ const _hoisted_3 = {
30
+ key: 0,
31
+ class: "flex shrink-0 items-center gap-2",
32
+ "data-app-frame-brand": ""
33
+ };
34
+ const _hoisted_4 = {
35
+ key: 1,
36
+ class: "flex-1"
37
+ };
38
+ const _hoisted_5 = {
39
+ key: 1,
40
+ class: "z-sticky [grid-area:footer] print:hidden",
41
+ "data-app-frame-phone-nav": ""
42
+ };
43
+ const AppFrameContentWidth = {
44
+ /** Refers to the shared page column: the frame's gutter, capped at `--frame-content-max` and centred. */
45
+ Default: "default",
46
+ /** Refers to a page that fills the main region edge to edge — an editor, a canvas, a map. */
47
+ Full: "full"
48
+ };
49
+ const AppFrameVariant = {
50
+ /** Refers to the theme's glass: a translucent bar and sidebar over the ambient backdrop. The default. */
51
+ Glass: "glass",
52
+ /** Refers to opaque chrome on the card colour — a dense data tool or a print-first product. */
53
+ Solid: "solid"
54
+ };
55
+ const DefaultCollapseStorageKey = "wow-two.app-frame.sidebar-collapsed";
56
+ function decodeCollapsed(stored) {
57
+ return typeof stored === "boolean" ? stored : void 0;
58
+ }
59
+ const _sfc_main = /* @__PURE__ */ defineComponent({
60
+ ...{ name: "AppFrame", inheritAttrs: false },
61
+ __name: "AppFrame",
62
+ props: {
63
+ version: { default: void 0 },
64
+ runningVersion: { default: void 0 },
65
+ onReload: { type: Function, default: void 0 },
66
+ crumbs: { default: () => [] },
67
+ onNavigate: { type: Function, default: void 0 },
68
+ apps: { default: void 0 },
69
+ currentApp: { default: void 0 },
70
+ appLabel: { default: void 0 },
71
+ appSubtitle: { default: void 0 },
72
+ appSwitcher: { default: void 0 },
73
+ account: { default: void 0 },
74
+ accountOpen: { type: Boolean, default: void 0 },
75
+ locale: { default: void 0 },
76
+ organization: { default: void 0 },
77
+ hasNavigation: { type: Boolean, default: void 0 },
78
+ collapseStorageKey: { default: DefaultCollapseStorageKey },
79
+ isCollapsedByDefault: { type: Boolean, default: false },
80
+ contentWidth: { default: AppFrameContentWidth.Default },
81
+ variant: { default: AppFrameVariant.Glass },
82
+ collapseLabel: {},
83
+ expandLabel: {},
84
+ openNavigationLabel: {},
85
+ navigationLabel: {}
86
+ },
87
+ emits: ["update:accountOpen", "update:locale", "update:organization", "collapse"],
88
+ setup(__props, { expose: __expose, emit: __emit }) {
89
+ const slots = useSlots();
90
+ const componentProps = __props;
91
+ const props = useLocaleDefaults(componentProps, "AppFrame", {
92
+ collapseLabel: "Collapse sidebar",
93
+ expandLabel: "Expand sidebar",
94
+ openNavigationLabel: "Open navigation",
95
+ navigationLabel: "Navigation"
96
+ });
97
+ const emit = __emit;
98
+ const attrs = useAttrs();
99
+ const liveSlots = useSlots();
100
+ const shell = useTemplateRef("shell");
101
+ const main = useTemplateRef("main");
102
+ const isPhone = useBreakpointBelow(TailwindBreakpoints, "md");
103
+ const isDesktop = useBreakpointUp(TailwindBreakpoints, "lg");
104
+ const isCollapsed = createPersistentRef(props.collapseStorageKey, props.isCollapsedByDefault, {
105
+ decode: decodeCollapsed
106
+ });
107
+ const isDrawerOpen = shallowRef(false);
108
+ const hasNavSlot = shallowRef(Boolean(liveSlots["nav"]));
109
+ const hasPhoneNav = shallowRef(Boolean(liveSlots["phone-nav"]));
110
+ onBeforeUpdate(() => {
111
+ hasNavSlot.value = Boolean(liveSlots["nav"]);
112
+ hasPhoneNav.value = Boolean(liveSlots["phone-nav"]);
113
+ });
114
+ const hasSidebar = computed(() => props.hasNavigation ?? hasNavSlot.value);
115
+ const isTablet = computed(() => !isPhone.value && !isDesktop.value);
116
+ const isRail = computed(() => hasSidebar.value && !isPhone.value && (!isDesktop.value || isCollapsed.value));
117
+ const hasToggle = computed(() => hasSidebar.value && !(isPhone.value && hasPhoneNav.value));
118
+ const sidebarWidth = computed(() => isRail.value ? "var(--frame-rail-width)" : "var(--frame-sidebar-width)");
119
+ const navigation = computed(() => hasSidebar.value ? AppShellNavigation.Vertical : AppShellNavigation.Horizontal);
120
+ const toggleLabel = computed(() => {
121
+ if (!isDesktop.value) return props.openNavigationLabel;
122
+ return isCollapsed.value ? props.expandLabel : props.collapseLabel;
123
+ });
124
+ function toggleSidebar() {
125
+ if (isDesktop.value) {
126
+ isCollapsed.value = !isCollapsed.value;
127
+ emit("collapse", isCollapsed.value);
128
+ } else {
129
+ isDrawerOpen.value = true;
130
+ }
131
+ }
132
+ function setDrawerOpen(open) {
133
+ isDrawerOpen.value = open;
134
+ }
135
+ function closeNavigation() {
136
+ isDrawerOpen.value = false;
137
+ }
138
+ watch(isDesktop, (desktop) => {
139
+ if (desktop) closeNavigation();
140
+ });
141
+ function onNavClick(event) {
142
+ if (event.target?.closest?.("a[href]")) closeNavigation();
143
+ }
144
+ function onTrailClick(event) {
145
+ if (!props.onNavigate || event.defaultPrevented || event.button !== 0) return;
146
+ if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
147
+ const href = event.target?.closest?.("a")?.getAttribute("href");
148
+ if (!href || !href.startsWith("/") || href.startsWith("//")) return;
149
+ event.preventDefault();
150
+ props.onNavigate(href, event);
151
+ }
152
+ function reload() {
153
+ if (props.onReload) props.onReload();
154
+ else if (typeof window !== "undefined") window.location.reload();
155
+ }
156
+ const isGlass = computed(() => props.variant === AppFrameVariant.Glass);
157
+ const menuVariant = computed(() => isGlass.value ? SurfaceVariant.GlassMenu : void 0);
158
+ const accountProps = computed(() => ({ variant: menuVariant.value, ...props.account }));
159
+ const switcherProps = computed(() => ({ variant: menuVariant.value, ...props.appSwitcher }));
160
+ const shellClasses = computed(
161
+ () => cn(
162
+ "surface-ambient transition-[grid-template-columns] duration-200 ease-out motion-reduce:transition-none",
163
+ "print:block print:h-auto print:overflow-visible",
164
+ attrs.class
165
+ )
166
+ );
167
+ const headerClasses = "h-[calc(var(--frame-bar-height)+env(safe-area-inset-top,0px))] gap-0 px-0 pt-[env(safe-area-inset-top,0px)] print:hidden";
168
+ const edgeClass = computed(() => isGlass.value ? "border-glass-edge" : "border-border");
169
+ const brandCellClasses = computed(
170
+ () => cn(
171
+ "flex shrink-0 items-center gap-2 overflow-hidden border-e",
172
+ edgeClass.value,
173
+ "transition-[width] duration-200 ease-out motion-reduce:transition-none",
174
+ isRail.value ? "justify-center" : "px-3"
175
+ )
176
+ );
177
+ const rest = computed(() => {
178
+ const { class: _class, ...others } = attrs;
179
+ return others;
180
+ });
181
+ const el = computed(() => shell.value?.el ?? null);
182
+ const mainEl = computed(() => main.value?.el ?? null);
183
+ __expose({ el, mainEl, isRail, isCollapsed, toggleSidebar, closeNavigation });
184
+ return (_ctx, _cache) => {
185
+ return openBlock(), createElementBlock(Fragment, null, [
186
+ createVNode(_sfc_main$1, mergeProps({
187
+ ref_key: "shell",
188
+ ref: shell,
189
+ "data-app-frame": "",
190
+ "data-rail": unref(dataAttr)(isRail.value)
191
+ }, rest.value, {
192
+ class: shellClasses.value,
193
+ "sidebar-breakpoint": "md",
194
+ "sidebar-width": sidebarWidth.value,
195
+ navigation: navigation.value,
196
+ "sidebar-open": unref(isPhone) && isDrawerOpen.value,
197
+ "onUpdate:sidebarOpen": setDrawerOpen
198
+ }), {
199
+ default: withCtx(() => [
200
+ createVNode(_sfc_main$2, {
201
+ height: "md",
202
+ variant: unref(props).variant,
203
+ class: normalizeClass(headerClasses),
204
+ "data-app-frame-bar": ""
205
+ }, {
206
+ default: withCtx(() => [
207
+ createElementVNode("div", _hoisted_1, [
208
+ hasSidebar.value && !unref(isPhone) ? (openBlock(), createElementBlock("div", {
209
+ key: 0,
210
+ class: normalizeClass(brandCellClasses.value),
211
+ style: normalizeStyle({ width: sidebarWidth.value }),
212
+ "data-app-frame-brand": ""
213
+ }, [
214
+ unref(props).apps ? (openBlock(), createBlock(_sfc_main$3, mergeProps({
215
+ key: 0,
216
+ items: unref(props).apps,
217
+ current: unref(props).currentApp ?? "",
218
+ label: unref(props).appLabel,
219
+ subtitle: unref(props).appSubtitle,
220
+ "is-compact": isRail.value
221
+ }, switcherProps.value, { class: "shrink" }), createSlots({ _: 2 }, [
222
+ slots.brand ? {
223
+ name: "mark",
224
+ fn: withCtx(() => [
225
+ renderSlot(_ctx.$slots, "brand", { isRail: true })
226
+ ]),
227
+ key: "0"
228
+ } : void 0
229
+ ]), 1040, ["items", "current", "label", "subtitle", "is-compact"])) : renderSlot(_ctx.$slots, "brand", { isRail: isRail.value }, void 0, void 0, 1),
230
+ unref(props).version && !isRail.value ? (openBlock(), createBlock(_sfc_main$4, {
231
+ key: 2,
232
+ version: unref(props).version,
233
+ "running-version": unref(props).runningVersion,
234
+ onReload: reload
235
+ }, null, 8, ["version", "running-version"])) : createCommentVNode("", true)
236
+ ], 6)) : createCommentVNode("", true),
237
+ createElementVNode("div", _hoisted_2, [
238
+ !hasSidebar.value || unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_3, [
239
+ unref(props).apps ? (openBlock(), createBlock(_sfc_main$3, mergeProps({
240
+ key: 0,
241
+ items: unref(props).apps,
242
+ current: unref(props).currentApp ?? "",
243
+ label: unref(props).appLabel,
244
+ subtitle: unref(props).appSubtitle,
245
+ "is-compact": unref(isPhone)
246
+ }, switcherProps.value), createSlots({ _: 2 }, [
247
+ slots.brand ? {
248
+ name: "mark",
249
+ fn: withCtx(() => [
250
+ renderSlot(_ctx.$slots, "brand", { isRail: true })
251
+ ]),
252
+ key: "0"
253
+ } : void 0
254
+ ]), 1040, ["items", "current", "label", "subtitle", "is-compact"])) : renderSlot(_ctx.$slots, "brand", { isRail: unref(isPhone) }, void 0, void 0, 1),
255
+ unref(props).version && !unref(isPhone) ? (openBlock(), createBlock(_sfc_main$4, {
256
+ key: 2,
257
+ version: unref(props).version,
258
+ "running-version": unref(props).runningVersion,
259
+ onReload: reload
260
+ }, null, 8, ["version", "running-version"])) : createCommentVNode("", true)
261
+ ])) : createCommentVNode("", true),
262
+ hasToggle.value ? (openBlock(), createBlock(_sfc_main$5, {
263
+ key: 1,
264
+ variant: "ghost",
265
+ tone: "neutral",
266
+ size: "md",
267
+ shape: "square",
268
+ class: "shrink-0",
269
+ "data-app-frame-toggle": "",
270
+ "aria-label": toggleLabel.value,
271
+ "aria-expanded": unref(isDesktop) ? !unref(isCollapsed) : isDrawerOpen.value,
272
+ title: toggleLabel.value,
273
+ onClick: toggleSidebar
274
+ }, {
275
+ default: withCtx(() => [
276
+ createVNode(unref(_sfc_main$6), {
277
+ icon: unref(PanelLeft),
278
+ size: 18
279
+ }, null, 8, ["icon"])
280
+ ]),
281
+ _: 1
282
+ }, 8, ["aria-label", "aria-expanded", "title"])) : createCommentVNode("", true),
283
+ renderSlot(_ctx.$slots, "bar-start"),
284
+ renderSlot(_ctx.$slots, "trail", {}, () => [
285
+ unref(props).crumbs.length > 0 ? (openBlock(), createBlock(_sfc_main$7, {
286
+ key: 0,
287
+ items: unref(props).crumbs,
288
+ "is-single-line": "",
289
+ class: "flex-1",
290
+ onClick: onTrailClick
291
+ }, null, 8, ["items"])) : (openBlock(), createElementBlock("span", _hoisted_4))
292
+ ]),
293
+ renderSlot(_ctx.$slots, "bar-end"),
294
+ renderSlot(_ctx.$slots, "account", {}, () => [
295
+ unref(props).account ? (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 0 }, accountProps.value, {
296
+ open: unref(props).accountOpen,
297
+ locale: unref(props).locale,
298
+ organization: unref(props).organization,
299
+ class: "shrink-0",
300
+ "onUpdate:open": _cache[0] || (_cache[0] = ($event) => emit("update:accountOpen", $event)),
301
+ "onUpdate:locale": _cache[1] || (_cache[1] = ($event) => emit("update:locale", $event)),
302
+ "onUpdate:organization": _cache[2] || (_cache[2] = ($event) => emit("update:organization", $event))
303
+ }), createSlots({ _: 2 }, [
304
+ slots["account-items"] ? {
305
+ name: "items",
306
+ fn: withCtx(() => [
307
+ renderSlot(_ctx.$slots, "account-items")
308
+ ]),
309
+ key: "0"
310
+ } : void 0
311
+ ]), 1040, ["open", "locale", "organization"])) : createCommentVNode("", true)
312
+ ])
313
+ ])
314
+ ])
315
+ ]),
316
+ _: 3
317
+ }, 8, ["variant"]),
318
+ hasSidebar.value ? (openBlock(), createBlock(_sfc_main$9, {
319
+ key: 0,
320
+ variant: unref(props).variant,
321
+ class: normalizeClass([edgeClass.value, "print:hidden"])
322
+ }, {
323
+ default: withCtx(() => [
324
+ createElementVNode("div", {
325
+ class: "flex min-h-0 flex-1 flex-col",
326
+ onClick: onNavClick
327
+ }, [
328
+ renderSlot(_ctx.$slots, "nav", {
329
+ isRail: isRail.value,
330
+ close: closeNavigation
331
+ })
332
+ ])
333
+ ]),
334
+ _: 3
335
+ }, 8, ["variant", "class"])) : createCommentVNode("", true),
336
+ createVNode(_sfc_main$a, {
337
+ ref_key: "main",
338
+ ref: main,
339
+ class: "min-w-0 print:block print:overflow-visible"
340
+ }, {
341
+ default: withCtx(() => [
342
+ unref(props).contentWidth === "default" ? (openBlock(), createBlock(_sfc_main$b, {
343
+ key: 0,
344
+ gutter: "lg",
345
+ "max-width": "var(--frame-content-max)",
346
+ class: "lg:px-6 xl:px-8 print:p-0 print:*:max-w-none"
347
+ }, {
348
+ default: withCtx(() => [
349
+ renderSlot(_ctx.$slots, "notice"),
350
+ renderSlot(_ctx.$slots, "default")
351
+ ]),
352
+ _: 3
353
+ })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
354
+ renderSlot(_ctx.$slots, "notice"),
355
+ renderSlot(_ctx.$slots, "default")
356
+ ], 64))
357
+ ]),
358
+ _: 3
359
+ }, 512),
360
+ hasPhoneNav.value && unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_5, [
361
+ renderSlot(_ctx.$slots, "phone-nav")
362
+ ])) : createCommentVNode("", true)
363
+ ]),
364
+ _: 3
365
+ }, 16, ["data-rail", "class", "sidebar-width", "navigation", "sidebar-open"]),
366
+ hasSidebar.value && isTablet.value ? (openBlock(), createBlock(_sfc_main$c, {
367
+ key: 0,
368
+ open: isDrawerOpen.value,
369
+ side: "left",
370
+ "onUpdate:open": setDrawerOpen
371
+ }, {
372
+ default: withCtx(() => [
373
+ createVNode(_sfc_main$d, {
374
+ class: "w-72 max-w-[80%]",
375
+ variant: menuVariant.value
376
+ }, {
377
+ default: withCtx(() => [
378
+ createVNode(_sfc_main$e, { class: "sr-only" }, {
379
+ default: withCtx(() => [
380
+ createTextVNode(toDisplayString(unref(props).navigationLabel), 1)
381
+ ]),
382
+ _: 1
383
+ }),
384
+ createElementVNode("div", {
385
+ class: "flex min-h-0 flex-1 flex-col",
386
+ onClick: onNavClick
387
+ }, [
388
+ renderSlot(_ctx.$slots, "nav", {
389
+ isRail: false,
390
+ close: closeNavigation
391
+ })
392
+ ])
393
+ ]),
394
+ _: 3
395
+ }, 8, ["variant"])
396
+ ]),
397
+ _: 3
398
+ }, 8, ["open"])) : createCommentVNode("", true)
399
+ ], 64);
400
+ };
401
+ }
402
+ });
403
+ export {
404
+ AppFrameContentWidth,
405
+ AppFrameVariant,
406
+ _sfc_main as default
407
+ };
408
+ //# sourceMappingURL=AppFrame.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppFrame.vue.js","sources":["../../../../src/presentation/layout/appFrame/AppFrame.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { AccountMenuProps } from '../../nav/accountMenu/AccountMenu.vue';\nimport type { AppSwitcherItem, AppSwitcherMenuProps } from '../../nav/appSwitcherMenu/AppSwitcherMenu.vue';\nimport type { BreadcrumbItem } from '../../nav/breadcrumb/Breadcrumb.vue';\n\n/** Defines how wide an `AppFrame` lets its page run. */\nexport const AppFrameContentWidth = {\n /** Refers to the shared page column: the frame's gutter, capped at `--frame-content-max` and centred. */\n Default: 'default',\n /** Refers to a page that fills the main region edge to edge — an editor, a canvas, a map. */\n Full: 'full',\n} as const;\n\nexport type AppFrameContentWidth = (typeof AppFrameContentWidth)[keyof typeof AppFrameContentWidth];\n\n/** Defines the surface an `AppFrame` paints its chrome with. */\nexport const AppFrameVariant = {\n /** Refers to the theme's glass: a translucent bar and sidebar over the ambient backdrop. The default. */\n Glass: 'glass',\n /** Refers to opaque chrome on the card colour — a dense data tool or a print-first product. */\n Solid: 'solid',\n} as const;\n\nexport type AppFrameVariant = (typeof AppFrameVariant)[keyof typeof AppFrameVariant];\n\n/**\n * Who is signed in and what the account menu offers: every `AccountMenu` prop except the three the frame binds as\n * models (`open`, `locale`, `organization`).\n */\nexport type AppFrameAccount = Omit<AccountMenuProps, 'open' | 'defaultOpen' | 'locale' | 'organization'>;\n\n/** The app switcher's own strings and breakpoint, passed through to `AppSwitcherMenu`. */\nexport type AppFrameSwitcher = Pick<\n AppSwitcherMenuProps,\n 'title' | 'sitesLabel' | 'closeLabel' | 'newTabLabel' | 'triggerLabel' | 'breakpoint'\n>;\n\n/** Defines props for the frame every app renders its places inside. */\nexport interface AppFrameProps {\n /** The version this tab loaded, shown beside the brand — `0.15.4`, `0.15.4+abc1234` or `dev`. Omitted, no badge. */\n readonly version?: string;\n\n /** The version the host serves now, from `useRunningVersion`; when it differs the badge offers a reload. */\n readonly runningVersion?: string | null;\n\n /**\n * Fires when the reader asks for the newer release. Default reloads the page.\n *\n * Kept a PROP, not an emit: its presence replaces the built-in reload, and Vue strips a declared emit's listener\n * out of `useAttrs()`, so an emit could never be detected. Bind it as `@reload`.\n */\n readonly onReload?: () => unknown;\n\n /** The trail to the current place, the last item the place itself. Empty or omitted, the bar shows none. */\n readonly crumbs?: ReadonlyArray<BreadcrumbItem>;\n\n /**\n * Opens a trail link through the app's router: a plain left click on a link whose `href` starts with `/` calls\n * this instead of loading the page. Modified clicks keep the browser's behaviour.\n *\n * Kept a PROP, not an emit, for the reason `onReload` is. Bind it as `@navigate`.\n */\n readonly onNavigate?: (href: string, event: MouseEvent) => unknown;\n\n /** The suite's apps and sites. Given, the brand becomes the app switcher; omitted, the `brand` slot stands alone. */\n readonly apps?: ReadonlyArray<AppSwitcherItem>;\n\n /** The key of this app among `apps`. */\n readonly currentApp?: string;\n\n /** The app name on the switcher. Default the current app's label. */\n readonly appLabel?: string;\n\n /** The switcher's second line — the suite or the organization. */\n readonly appSubtitle?: string;\n\n /** The switcher's own strings and breakpoint. */\n readonly appSwitcher?: AppFrameSwitcher;\n\n /** The account menu that ends the bar. Omitted, the bar ends with the `account` slot, or with nothing. */\n readonly account?: AppFrameAccount;\n\n /** The account menu's open state, controlled. The `v-model:accountOpen` binding target. */\n readonly accountOpen?: boolean;\n\n /** The current interface language. The `v-model:locale` binding target. */\n readonly locale?: string;\n\n /** The current organization's id. The `v-model:organization` binding target. */\n readonly organization?: string;\n\n /**\n * Whether the frame has a sidebar. Default follows the `nav` slot; `false` drops the sidebar, the brand cell and the\n * toggle while the slot stays declared — an app whose navigation waits for a choice.\n */\n readonly hasNavigation?: boolean;\n\n /**\n * Where this browser remembers the desktop sidebar's collapse. Read once, when the frame is created. Default\n * `wow-two.app-frame.sidebar-collapsed`; an app that kept a key of its own passes it and keeps its readers' choice.\n */\n readonly collapseStorageKey?: string;\n\n /** Whether the desktop sidebar starts as the icon rail until the reader chooses. Default `false`. */\n readonly isCollapsedByDefault?: boolean;\n\n /** How wide the page runs. Default `default`. */\n readonly contentWidth?: AppFrameContentWidth;\n\n /** The chrome's surface. Default `glass`. */\n readonly variant?: AppFrameVariant;\n\n /** The toggle's name while the desktop sidebar is open. Default `\"Collapse sidebar\"`, localized. */\n readonly collapseLabel?: string;\n\n /** The toggle's name while the desktop sidebar is the rail. Default `\"Expand sidebar\"`, localized. */\n readonly expandLabel?: string;\n\n /** The toggle's name where it opens the navigation drawer. Default `\"Open navigation\"`, localized. */\n readonly openNavigationLabel?: string;\n\n /** The navigation drawer's accessible title. Default `\"Navigation\"`, localized. */\n readonly navigationLabel?: string;\n}\n\n/** What the `brand` slot receives. */\nexport interface AppFrameBrandSlotProps {\n /** True where only the mark fits: above the icon rail and in a phone's bar. */\n readonly isRail: boolean;\n}\n\n/** What the `nav` slot receives. */\nexport interface AppFrameNavSlotProps {\n /** True in the icon rail; false in the open sidebar and in the drawer. */\n readonly isRail: boolean;\n\n /** Closes the navigation drawer. A click on any link inside the slot already does. */\n readonly close: () => void;\n}\n\n/** @internal The default slot of the collapse choice in `localStorage`. */\nconst DefaultCollapseStorageKey = 'wow-two.app-frame.sidebar-collapsed';\n\n/** @internal Accepts only a stored boolean; anything else reads as the default. */\nfunction decodeCollapsed(stored: unknown): boolean | undefined {\n return typeof stored === 'boolean' ? stored : undefined;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUpdate, shallowRef, useAttrs, useSlots, useTemplateRef, watch } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { PanelLeft } from 'lucide-vue-next';\nimport { TailwindBreakpoints, useBreakpointBelow, useBreakpointUp } from '../../../foundation/device';\nimport { dataAttr } from '../../../foundation/dom';\nimport { Icon } from '../../../foundation/icons';\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { createPersistentRef } from '../../../foundation/storage';\nimport { cn, SurfaceVariant } from '../../../foundation/styles';\nimport Button from '../../actions/button/Button.vue';\nimport VersionBadge from '../../display/versionBadge/VersionBadge.vue';\nimport AccountMenu from '../../nav/accountMenu/AccountMenu.vue';\nimport AppSwitcherMenu from '../../nav/appSwitcherMenu/AppSwitcherMenu.vue';\nimport Breadcrumb from '../../nav/breadcrumb/Breadcrumb.vue';\nimport Drawer from '../../overlays/drawer/Drawer.vue';\nimport DrawerContent from '../../overlays/drawer/DrawerContent.vue';\nimport OverlayTitle from '../../overlays/OverlayTitle.vue';\nimport AppShell, { AppShellNavigation } from '../appShell/AppShell.vue';\nimport AppShellContent from '../appShell/AppShellContent.vue';\nimport AppShellHeader from '../appShell/AppShellHeader.vue';\nimport AppShellMain from '../appShell/AppShellMain.vue';\nimport AppShellSidebar from '../appShell/AppShellSidebar.vue';\n\n/**\n * Renders the frame every app shares: a 56px bar with the brand or app switcher and the version above the sidebar,\n * the sidebar toggle, the trail, the app's own bar controls and the account menu; a sidebar that collapses to an\n * icon rail and is remembered; and the page column. The dimensions are the `--frame-*` tokens and the edges are the\n * theme's glass hairlines, so two apps on two themes hold the same frame. An app passes its brand, its navigation,\n * its app list and its slots.\n */\ndefineOptions({ name: 'AppFrame', inheritAttrs: false });\n\nconst slots = defineSlots<{\n /** The page. */\n default?(): unknown;\n\n /** The brand: a home link around the wordmark, or the mark where `isRail`. With `apps`, the switcher's mark. */\n brand?(props: AppFrameBrandSlotProps): unknown;\n\n /** The sidebar's navigation — a `SidebarMenu` bound to `isRail`. Omitted, the frame has no sidebar. */\n nav?(props: AppFrameNavSlotProps): unknown;\n\n /** Controls between the toggle and the trail. */\n 'bar-start'?(): unknown;\n\n /** Replaces the trail — a portal target, or a trail that carries a page's actions. */\n trail?(): unknown;\n\n /** The app's own bar controls, before the account menu. */\n 'bar-end'?(): unknown;\n\n /** Replaces the account menu. */\n account?(): unknown;\n\n /** The account-level destinations inside the account menu — `MenuItem` rows. */\n 'account-items'?(): unknown;\n\n /** A phone's bottom bar, below `md`. Given, a phone has no drawer and the toggle hides there. */\n 'phone-nav'?(): unknown;\n\n /** What stands above every page — a notice, a connection banner. */\n notice?(): unknown;\n}>();\n\nconst componentProps = withDefaults(defineProps<AppFrameProps>(), {\n version: undefined,\n runningVersion: undefined,\n onReload: undefined,\n crumbs: () => [],\n onNavigate: undefined,\n apps: undefined,\n currentApp: undefined,\n appLabel: undefined,\n appSubtitle: undefined,\n appSwitcher: undefined,\n account: undefined,\n accountOpen: undefined,\n locale: undefined,\n organization: undefined,\n hasNavigation: undefined,\n collapseStorageKey: DefaultCollapseStorageKey,\n isCollapsedByDefault: false,\n contentWidth: AppFrameContentWidth.Default,\n variant: AppFrameVariant.Glass,\n});\n\nconst props = useLocaleDefaults(componentProps, 'AppFrame', {\n collapseLabel: 'Collapse sidebar',\n expandLabel: 'Expand sidebar',\n openNavigationLabel: 'Open navigation',\n navigationLabel: 'Navigation',\n});\n\nconst emit = defineEmits<{\n /** Fires when the account menu opens or closes — the `v-model:accountOpen` half. */\n 'update:accountOpen': [open: boolean];\n\n /** Fires when the reader picks another interface language — the `v-model:locale` half. */\n 'update:locale': [locale: string];\n\n /** Fires when the reader picks another organization — the `v-model:organization` half. */\n 'update:organization': [organization: string];\n\n /** Fires when the reader collapses or expands the desktop sidebar. */\n collapse: [isCollapsed: boolean];\n}>();\n\nconst attrs = useAttrs();\nconst liveSlots = useSlots();\nconst shell = useTemplateRef<InstanceType<typeof AppShell>>('shell');\nconst main = useTemplateRef<InstanceType<typeof AppShellMain>>('main');\n\n/* Mobile-first on the server and in the first render: a phone until mounted, then the real viewport. */\nconst isPhone = useBreakpointBelow(TailwindBreakpoints, 'md');\nconst isDesktop = useBreakpointUp(TailwindBreakpoints, 'lg');\n\n/* The stored choice is read as the ref is created, so a collapsed sidebar never animates in from the open one. */\nconst isCollapsed = createPersistentRef<boolean>(props.collapseStorageKey, props.isCollapsedByDefault, {\n decode: decodeCollapsed,\n});\nconst isDrawerOpen = shallowRef(false);\n\n/* Slots are not reactive: their presence is read at setup and again before each update, so a slot an app adds or\n drops with `v-if` moves the layout in the same render. */\nconst hasNavSlot = shallowRef(Boolean(liveSlots['nav']));\nconst hasPhoneNav = shallowRef(Boolean(liveSlots['phone-nav']));\nonBeforeUpdate(() => {\n hasNavSlot.value = Boolean(liveSlots['nav']);\n hasPhoneNav.value = Boolean(liveSlots['phone-nav']);\n});\n\nconst hasSidebar = computed(() => props.hasNavigation ?? hasNavSlot.value);\n\n/** Between `md` and `lg`: the rail beside the page, the full navigation in a drawer. */\nconst isTablet = computed(() => !isPhone.value && !isDesktop.value);\n\n/** The sidebar shows as the icon rail: always on tablets, by choice on desktops. */\nconst isRail = computed(() => hasSidebar.value && !isPhone.value && (!isDesktop.value || isCollapsed.value));\n\n/** A phone with a bottom bar already holds its navigation, so the toggle has nothing to open there. */\nconst hasToggle = computed(() => hasSidebar.value && !(isPhone.value && hasPhoneNav.value));\n\nconst sidebarWidth = computed(() => (isRail.value ? 'var(--frame-rail-width)' : 'var(--frame-sidebar-width)'));\nconst navigation = computed(() => (hasSidebar.value ? AppShellNavigation.Vertical : AppShellNavigation.Horizontal));\n\nconst toggleLabel = computed(() => {\n if (!isDesktop.value) return props.openNavigationLabel;\n return isCollapsed.value ? props.expandLabel : props.collapseLabel;\n});\n\n/** Desktop: collapse or expand the sidebar. Tablet and phone: open the full navigation over the page. */\nfunction toggleSidebar(): void {\n if (isDesktop.value) {\n isCollapsed.value = !isCollapsed.value;\n emit('collapse', isCollapsed.value);\n } else {\n isDrawerOpen.value = true;\n }\n}\n\nfunction setDrawerOpen(open: boolean): void {\n isDrawerOpen.value = open;\n}\n\nfunction closeNavigation(): void {\n isDrawerOpen.value = false;\n}\n\n/* Growing to a desktop puts the sidebar back beside the page; a drawer left open would cover it. */\nwatch(isDesktop, (desktop) => {\n if (desktop) closeNavigation();\n});\n\n/** Picking a destination closes the drawer; the link itself navigates. */\nfunction onNavClick(event: MouseEvent): void {\n if ((event.target as Element | null)?.closest?.('a[href]')) closeNavigation();\n}\n\n/** Hands a plain left click on a same-origin trail link to the app's router. */\nfunction onTrailClick(event: MouseEvent): void {\n if (!props.onNavigate || event.defaultPrevented || event.button !== 0) return;\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n const href = (event.target as Element | null)?.closest?.('a')?.getAttribute('href');\n if (!href || !href.startsWith('/') || href.startsWith('//')) return;\n event.preventDefault();\n props.onNavigate(href, event);\n}\n\nfunction reload(): void {\n if (props.onReload) props.onReload();\n else if (typeof window !== 'undefined') window.location.reload();\n}\n\nconst isGlass = computed(() => props.variant === AppFrameVariant.Glass);\n\n/* A glass frame's menus float over the page, so they take the theme's menu glass unless the caller chose. */\nconst menuVariant = computed(() => (isGlass.value ? SurfaceVariant.GlassMenu : undefined));\nconst accountProps = computed(() => ({ variant: menuVariant.value, ...props.account }));\nconst switcherProps = computed(() => ({ variant: menuVariant.value, ...props.appSwitcher }));\n\nconst shellClasses = computed(() =>\n cn(\n 'surface-ambient transition-[grid-template-columns] duration-200 ease-out motion-reduce:transition-none',\n 'print:block print:h-auto print:overflow-visible',\n attrs.class as ClassValue,\n ),\n);\n\n/* The bar is the token's height, hairline included, plus the device's top inset; its row fills what is left. */\nconst headerClasses =\n 'h-[calc(var(--frame-bar-height)+env(safe-area-inset-top,0px))] gap-0 px-0 pt-[env(safe-area-inset-top,0px)] print:hidden';\n\n/* A glass frame draws its lines in the theme's glass edge; a solid one in the border colour its bar already uses. */\nconst edgeClass = computed(() => (isGlass.value ? 'border-glass-edge' : 'border-border'));\n\nconst brandCellClasses = computed(() =>\n cn(\n 'flex shrink-0 items-center gap-2 overflow-hidden border-e',\n edgeClass.value,\n 'transition-[width] duration-200 ease-out motion-reduce:transition-none',\n isRail.value ? 'justify-center' : 'px-3',\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** The frame's root element. */\nconst el = computed(() => shell.value?.el ?? null);\n\n/** The scrolling main region — the element a caller scrolls back to its top. */\nconst mainEl = computed(() => main.value?.el ?? null);\n\ndefineExpose({ el, mainEl, isRail, isCollapsed, toggleSidebar, closeNavigation });\n</script>\n\n<template>\n <AppShell\n ref=\"shell\"\n data-app-frame\n :data-rail=\"dataAttr(isRail)\"\n v-bind=\"rest\"\n :class=\"shellClasses\"\n sidebar-breakpoint=\"md\"\n :sidebar-width=\"sidebarWidth\"\n :navigation=\"navigation\"\n :sidebar-open=\"isPhone && isDrawerOpen\"\n @update:sidebar-open=\"setDrawerOpen\"\n >\n <AppShellHeader height=\"md\" :variant=\"props.variant\" :class=\"headerClasses\" data-app-frame-bar>\n <div class=\"flex h-full w-full min-w-0 items-stretch\">\n <!-- From tablets up the brand sits above the sidebar, as wide as it, divided from the bar by a hairline. -->\n <div\n v-if=\"hasSidebar && !isPhone\"\n :class=\"brandCellClasses\"\n :style=\"{ width: sidebarWidth }\"\n data-app-frame-brand\n >\n <AppSwitcherMenu\n v-if=\"props.apps\"\n :items=\"props.apps\"\n :current=\"props.currentApp ?? ''\"\n :label=\"props.appLabel\"\n :subtitle=\"props.appSubtitle\"\n :is-compact=\"isRail\"\n v-bind=\"switcherProps\"\n class=\"shrink\"\n >\n <template v-if=\"slots.brand\" #mark><slot name=\"brand\" :is-rail=\"true\" /></template>\n </AppSwitcherMenu>\n <slot v-else name=\"brand\" :is-rail=\"isRail\" />\n <VersionBadge\n v-if=\"props.version && !isRail\"\n :version=\"props.version\"\n :running-version=\"props.runningVersion\"\n @reload=\"reload\"\n />\n </div>\n <div class=\"flex min-w-0 flex-1 items-center gap-2 px-3 sm:gap-3 sm:px-4 lg:px-6\" data-app-frame-row>\n <!-- A phone's bar, and a frame without a sidebar, carry the brand inline. -->\n <div v-if=\"!hasSidebar || isPhone\" class=\"flex shrink-0 items-center gap-2\" data-app-frame-brand>\n <AppSwitcherMenu\n v-if=\"props.apps\"\n :items=\"props.apps\"\n :current=\"props.currentApp ?? ''\"\n :label=\"props.appLabel\"\n :subtitle=\"props.appSubtitle\"\n :is-compact=\"isPhone\"\n v-bind=\"switcherProps\"\n >\n <template v-if=\"slots.brand\" #mark><slot name=\"brand\" :is-rail=\"true\" /></template>\n </AppSwitcherMenu>\n <slot v-else name=\"brand\" :is-rail=\"isPhone\" />\n <VersionBadge\n v-if=\"props.version && !isPhone\"\n :version=\"props.version\"\n :running-version=\"props.runningVersion\"\n @reload=\"reload\"\n />\n </div>\n <Button\n v-if=\"hasToggle\"\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"md\"\n shape=\"square\"\n class=\"shrink-0\"\n data-app-frame-toggle\n :aria-label=\"toggleLabel\"\n :aria-expanded=\"isDesktop ? !isCollapsed : isDrawerOpen\"\n :title=\"toggleLabel\"\n @click=\"toggleSidebar\"\n >\n <Icon :icon=\"PanelLeft\" :size=\"18\" />\n </Button>\n <slot name=\"bar-start\" />\n <slot name=\"trail\">\n <Breadcrumb\n v-if=\"props.crumbs.length > 0\"\n :items=\"props.crumbs\"\n is-single-line\n class=\"flex-1\"\n @click=\"onTrailClick\"\n />\n <span v-else class=\"flex-1\" />\n </slot>\n <slot name=\"bar-end\" />\n <slot name=\"account\">\n <AccountMenu\n v-if=\"props.account\"\n v-bind=\"accountProps\"\n :open=\"props.accountOpen\"\n :locale=\"props.locale\"\n :organization=\"props.organization\"\n class=\"shrink-0\"\n @update:open=\"emit('update:accountOpen', $event)\"\n @update:locale=\"emit('update:locale', $event)\"\n @update:organization=\"emit('update:organization', $event)\"\n >\n <template v-if=\"slots['account-items']\" #items><slot name=\"account-items\" /></template>\n </AccountMenu>\n </slot>\n </div>\n </div>\n </AppShellHeader>\n <AppShellSidebar v-if=\"hasSidebar\" :variant=\"props.variant\" :class=\"[edgeClass, 'print:hidden']\">\n <div class=\"flex min-h-0 flex-1 flex-col\" @click=\"onNavClick\">\n <slot name=\"nav\" :is-rail=\"isRail\" :close=\"closeNavigation\" />\n </div>\n </AppShellSidebar>\n <AppShellMain ref=\"main\" class=\"min-w-0 print:block print:overflow-visible\">\n <AppShellContent\n v-if=\"props.contentWidth === 'default'\"\n gutter=\"lg\"\n max-width=\"var(--frame-content-max)\"\n class=\"lg:px-6 xl:px-8 print:p-0 print:*:max-w-none\"\n >\n <slot name=\"notice\" />\n <slot />\n </AppShellContent>\n <template v-else>\n <slot name=\"notice\" />\n <slot />\n </template>\n </AppShellMain>\n <div v-if=\"hasPhoneNav && isPhone\" class=\"z-sticky [grid-area:footer] print:hidden\" data-app-frame-phone-nav>\n <slot name=\"phone-nav\" />\n </div>\n </AppShell>\n <!-- A tablet keeps the rail beside the page; the full navigation opens over it. -->\n <Drawer v-if=\"hasSidebar && isTablet\" :open=\"isDrawerOpen\" side=\"left\" @update:open=\"setDrawerOpen\">\n <DrawerContent class=\"w-72 max-w-[80%]\" :variant=\"menuVariant\">\n <OverlayTitle class=\"sr-only\">{{ props.navigationLabel }}</OverlayTitle>\n <div class=\"flex min-h-0 flex-1 flex-col\" @click=\"onNavClick\">\n <slot name=\"nav\" :is-rail=\"false\" :close=\"closeNavigation\" />\n </div>\n </DrawerContent>\n </Drawer>\n</template>\n"],"names":["_useSlots","_createVNode","AppShell","_mergeProps","_unref","AppShellHeader","_createElementVNode","_createElementBlock","_openBlock","_createBlock","AppSwitcherMenu","_createSlots","_renderSlot","VersionBadge","Button","Icon","Breadcrumb","AccountMenu","AppShellSidebar","AppShellMain","AppShellContent","_Fragment","Drawer","DrawerContent","OverlayTitle","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAM,uBAAuB;AAAA;AAAA,EAElC,SAAS;AAAA;AAAA,EAET,MAAM;AACR;AAKO,MAAM,kBAAkB;AAAA;AAAA,EAE7B,OAAO;AAAA;AAAA,EAEP,OAAO;AACT;AAwHA,MAAM,4BAA4B;AAGlC,SAAS,gBAAgB,QAAsC;AAC7D,SAAO,OAAO,WAAW,YAAY,SAAS;AAChD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,QAAQA,SAAA;AAgCd,UAAM,iBAAiB;AAsBvB,UAA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,mBAGWc,UAAA,EAAA,KAAA,KAAA;AAAA,kBAFTT,WAAsB,KAAA,QAAA,QAAA;AAAA,kBACtBA,WAAQ,KAAA,QAAA,SAAA;AAAA,gBAAA;;;;YAGD,YAAA,SAAeR,MAAA,OAAA,KAA1BI,aAAAD,mBAEM,OAFN,YAEM;AAAA,cADJK,WAAyB,KAAA,QAAA,WAAA;AAAA,YAAA;;;;QAIf,WAAA,SAAc,SAAA,sBAA5BH,YAOSa,aAAA;AAAA;UAP8B,MAAM,aAAA;AAAA,UAAc,MAAK;AAAA,UAAQ,iBAAa;AAAA,QAAA;2BACnF,MAKgB;AAAA,YALhBrB,YAKgBsB,aAAA;AAAA,cALD,OAAM;AAAA,cAAoB,SAAS,YAAA;AAAA,YAAA;+BAChD,MAAwE;AAAA,gBAAxEtB,YAAwEuB,aAAA,EAA1D,OAAM,aAAS;AAAA,mCAAC,MAA2B;AAAA,oBAAxBC,gBAAAC,gBAAAtB,MAAA,KAAA,EAAM,eAAe,GAAA,CAAA;AAAA,kBAAA;;;gBACtDE,mBAEM,OAAA;AAAA,kBAFD,OAAM;AAAA,kBAAgC,SAAO;AAAA,gBAAA;kBAChDM,WAA6D,KAAA,QAAA,OAAA;AAAA,oBAA3C,QAAS;AAAA,oBAAQ,OAAO;AAAA,kBAAA;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import _sfc_main from "./AppFrame.vue.js";
2
+ import { AppFrameContentWidth, AppFrameVariant } from "./AppFrame.vue.js";
3
+ export {
4
+ AppFrameContentWidth,
5
+ AppFrameVariant,
6
+ _sfc_main as default
7
+ };
8
+ //# sourceMappingURL=AppFrame2.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppFrame2.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1 @@
1
+ export { default as AppFrame, AppFrameContentWidth, AppFrameVariant, type AppFrameAccount, type AppFrameBrandSlotProps, type AppFrameNavSlotProps, type AppFrameProps, type AppFrameSwitcher, } from './AppFrame.vue';
@@ -19,6 +19,7 @@ export * from './listDetailLayout';
19
19
  export * from './resizablePanelsLayout';
20
20
  export * from './pullToRefreshLayout';
21
21
  export * from './appShell';
22
+ export * from './appFrame';
22
23
  export * from './pageHeader';
23
24
  export * from './anchorLayout';
24
25
  export * from './surfaceLayout';