@wow-two-beta/fe 0.0.43 → 0.0.45

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.
@@ -16,6 +16,10 @@ export interface BffPerson {
16
16
  /** Defines the organization the session acts in, and the person's role there. */
17
17
  export interface BffOrganization {
18
18
  readonly id: string;
19
+ /** The organization's display name (the token's `org_name`); `null` when the token names none. */
20
+ readonly name: string | null;
21
+ /** The organization's handle (the token's `org_slug`), as it appears in a link; `null` when the token names none. */
22
+ readonly slug: string | null;
19
23
  readonly role: string;
20
24
  }
21
25
  /**
@@ -3,7 +3,7 @@ import { ResultExtensions } from "../foundation/results/ResultExtensions.js";
3
3
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
4
4
  const isText = (value) => typeof value === "string" && value !== "";
5
5
  const optionalText = (value) => typeof value === "string" ? value : null;
6
- const optionalLink = (value) => typeof value === "string" && value.trim() !== "" ? value.trim() : null;
6
+ const optionalLabel = (value) => typeof value === "string" && value.trim() !== "" ? value.trim() : null;
7
7
  const protocol = () => ApiFailureFactory.create("protocol");
8
8
  function decodeBffSession(value) {
9
9
  if (!isRecord(value) || typeof value["isAuthenticated"] !== "boolean") return ResultExtensions.fail(protocol());
@@ -25,11 +25,16 @@ function decodeBffSession(value) {
25
25
  person: {
26
26
  sub: person["sub"],
27
27
  name: optionalText(person["name"]),
28
- picture: optionalLink(person["picture"]),
28
+ picture: optionalLabel(person["picture"]),
29
29
  email: optionalText(person["email"]),
30
30
  phoneNumber: optionalText(person["phoneNumber"])
31
31
  },
32
- organization: isRecord(organization) ? { id: organization["id"], role: optionalText(organization["role"]) ?? "" } : null,
32
+ organization: isRecord(organization) ? {
33
+ id: organization["id"],
34
+ name: optionalLabel(organization["name"]),
35
+ slug: optionalLabel(organization["slug"]),
36
+ role: optionalText(organization["role"]) ?? ""
37
+ } : null,
33
38
  permissions: Object.freeze([...permissions]),
34
39
  expiresAt: typeof expiresAt === "string" && Number.isFinite(Date.parse(expiresAt)) ? expiresAt : null
35
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BffSession.js","sources":["../../src/auth/BffSession.ts"],"sourcesContent":["import { ApiFailureFactory, type ApiFailure } from '../foundation/http';\nimport { ResultExtensions, type Result } from '../foundation/results';\n\n/** Defines the signed-in person a BFF session names. */\nexport interface BffPerson {\n /** The stable subject id — the identity key, never the display name. */\n readonly sub: string;\n readonly name: string | null;\n /**\n * The link to the person's picture (the ID token's `picture`); `null` without one or without the `profile` scope.\n * Bind it to `AccountMenu`'s `avatarSrc` as is — the avatar shows initials while it is `null` or fails to load.\n */\n readonly picture: string | null;\n readonly email: string | null;\n readonly phoneNumber: string | null;\n}\n\n/** Defines the organization the session acts in, and the person's role there. */\nexport interface BffOrganization {\n readonly id: string;\n readonly role: string;\n}\n\n/**\n * Defines the user a BFF session resolves to. The CSRF token is deliberately absent: it never renders, so the\n * strategy keeps it and the HTTP layer echoes it.\n */\nexport interface BffUser {\n readonly person: BffPerson;\n /** `null` for a person acting in no organization. */\n readonly organization: BffOrganization | null;\n readonly permissions: readonly string[];\n /** When the session ends (ISO 8601); `null` when the server sent none that parses. */\n readonly expiresAt: string | null;\n}\n\n/** Defines one decoded `GET {prefix}/session` response. */\nexport interface BffSessionSnapshot {\n /** `null` while signed out. */\n readonly user: BffUser | null;\n /** The token unsafe requests echo; `null` while signed out. */\n readonly csrfToken: string | null;\n}\n\n/** Defines one decoded `POST {prefix}/sign-out` response. */\nexport interface BffSignOut {\n /** Where the page navigates to end the identity provider's session. */\n readonly endSessionUrl: string;\n}\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && value !== null && !Array.isArray(value);\nconst isText = (value: unknown): value is string => typeof value === 'string' && value !== '';\n/** Reads an optional text field; anything but text reads as absent. */\nconst optionalText = (value: unknown): string | null => (typeof value === 'string' ? value : null);\n/** Reads an optional link; anything but non-blank text reads as absent, since an empty link names no resource. */\nconst optionalLink = (value: unknown): string | null =>\n typeof value === 'string' && value.trim() !== '' ? value.trim() : null;\nconst protocol = (): ApiFailure => ApiFailureFactory.create('protocol');\n\n/** Decodes the session response; a payload that breaks the contract is a `protocol` failure. */\nexport function decodeBffSession(value: unknown): Result<BffSessionSnapshot, ApiFailure> {\n if (!isRecord(value) || typeof value['isAuthenticated'] !== 'boolean') return ResultExtensions.fail(protocol());\n if (!value['isAuthenticated']) return ResultExtensions.ok({ user: null, csrfToken: null });\n\n const person = value['person'];\n const organization = value['organization'];\n const permissions = value['permissions'] ?? [];\n const expiresAt = value['expiresAt'];\n if (!isRecord(person) || !isText(person['sub']) || !isText(value['csrfToken'])) {\n return ResultExtensions.fail(protocol());\n }\n if (organization != null && (!isRecord(organization) || !isText(organization['id']))) {\n return ResultExtensions.fail(protocol());\n }\n if (!Array.isArray(permissions) || !permissions.every(isText)) return ResultExtensions.fail(protocol());\n\n return ResultExtensions.ok({\n csrfToken: value['csrfToken'],\n user: {\n person: {\n sub: person['sub'],\n name: optionalText(person['name']),\n picture: optionalLink(person['picture']),\n email: optionalText(person['email']),\n phoneNumber: optionalText(person['phoneNumber']),\n },\n organization: isRecord(organization)\n ? { id: organization['id'] as string, role: optionalText(organization['role']) ?? '' }\n : null,\n permissions: Object.freeze([...(permissions as string[])]),\n expiresAt: typeof expiresAt === 'string' && Number.isFinite(Date.parse(expiresAt)) ? expiresAt : null,\n },\n });\n}\n\n/** Whether a page may navigate to `url` to end the provider session: a local path, or an absolute http(s) URL. */\nfunction isNavigable(url: string): boolean {\n if (url.startsWith('/')) return !url.startsWith('//') && !url.includes('\\\\');\n try {\n const { protocol: scheme } = new URL(url);\n return scheme === 'https:' || scheme === 'http:';\n } catch {\n return false;\n }\n}\n\n/** Decodes the logout response; an end-session URL the page may not navigate to is a `protocol` failure. */\nexport function decodeBffSignOut(value: unknown): Result<BffSignOut, ApiFailure> {\n if (!isRecord(value) || !isText(value['endSessionUrl']) || !isNavigable(value['endSessionUrl'])) {\n return ResultExtensions.fail(protocol());\n }\n return ResultExtensions.ok({ endSessionUrl: value['endSessionUrl'] });\n}\n\n/** Extends a {@link BffUser} with the checks a screen and a bridge need. */\nexport const BffSessionExtensions = {\n /** Whether the user holds `permission`; `false` while signed out. */\n hasPermission(user: BffUser | null | undefined, permission: string): boolean {\n return user?.permissions.includes(permission) ?? false;\n },\n\n /**\n * The stable user-and-organization key: pass it as `createAuthBridge({ getIdentity })` so a refreshed session\n * keeps its caches and a person or organization switch drops them.\n */\n identity(user: BffUser): string {\n return `${user.person.sub}\\u0000${user.organization?.id ?? ''}`;\n },\n\n /** The session end as epoch milliseconds; `null` when the server sent none that parses. */\n expiresAtMs(user: BffUser): number | null {\n return user.expiresAt === null ? null : Date.parse(user.expiresAt);\n },\n} as const;\n"],"names":[],"mappings":";;AAkDA,MAAM,WAAW,CAAC,UAChB,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AACrE,MAAM,SAAS,CAAC,UAAoC,OAAO,UAAU,YAAY,UAAU;AAE3F,MAAM,eAAe,CAAC,UAAmC,OAAO,UAAU,WAAW,QAAQ;AAE7F,MAAM,eAAe,CAAC,UACpB,OAAO,UAAU,YAAY,MAAM,KAAA,MAAW,KAAK,MAAM,KAAA,IAAS;AACpE,MAAM,WAAW,MAAkB,kBAAkB,OAAO,UAAU;AAG/D,SAAS,iBAAiB,OAAwD;AACvF,MAAI,CAAC,SAAS,KAAK,KAAK,OAAO,MAAM,iBAAiB,MAAM,UAAW,QAAO,iBAAiB,KAAK,UAAU;AAC9G,MAAI,CAAC,MAAM,iBAAiB,EAAG,QAAO,iBAAiB,GAAG,EAAE,MAAM,MAAM,WAAW,KAAA,CAAM;AAEzF,QAAM,SAAS,MAAM,QAAQ;AAC7B,QAAM,eAAe,MAAM,cAAc;AACzC,QAAM,cAAc,MAAM,aAAa,KAAK,CAAA;AAC5C,QAAM,YAAY,MAAM,WAAW;AACnC,MAAI,CAAC,SAAS,MAAM,KAAK,CAAC,OAAO,OAAO,KAAK,CAA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KAAK,CAAC,OAAO,MAAM,eAAe,CAAC,KAAK,CAAC,YAAY,MAAM,eAAe,CAAC,GAAG;AAC/F,WAAO,iBAAiB,KAAK,UAAU;AAAA,EACzC;AACA,SAAO,iBAAiB,GAAG,EAAE,eAAe,MAAM,eAAe,GAAG;AACtE;AAGO,MAAM,uBAAuB;AAAA;AAAA,EAElC,cAAc,MAAkC,YAA6B;AAC3E,WAAO,MAAM,YAAY,SAAS,UAAU,KAAK;AAAA,EACnD;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAS,MAAuB;AAC9B,WAAO,GAAG,KAAK,OAAO,GAAG,KAAS,KAAK,cAAc,MAAM,EAAE;AAAA,EAC/D;AAAA;AAAA,EAGA,YAAY,MAA8B;AACxC,WAAO,KAAK,cAAc,OAAO,OAAO,KAAK,MAAM,KAAK,SAAS;AAAA,EACnE;AACF;"}
1
+ {"version":3,"file":"BffSession.js","sources":["../../src/auth/BffSession.ts"],"sourcesContent":["import { ApiFailureFactory, type ApiFailure } from '../foundation/http';\nimport { ResultExtensions, type Result } from '../foundation/results';\n\n/** Defines the signed-in person a BFF session names. */\nexport interface BffPerson {\n /** The stable subject id — the identity key, never the display name. */\n readonly sub: string;\n readonly name: string | null;\n /**\n * The link to the person's picture (the ID token's `picture`); `null` without one or without the `profile` scope.\n * Bind it to `AccountMenu`'s `avatarSrc` as is — the avatar shows initials while it is `null` or fails to load.\n */\n readonly picture: string | null;\n readonly email: string | null;\n readonly phoneNumber: string | null;\n}\n\n/** Defines the organization the session acts in, and the person's role there. */\nexport interface BffOrganization {\n readonly id: string;\n /** The organization's display name (the token's `org_name`); `null` when the token names none. */\n readonly name: string | null;\n /** The organization's handle (the token's `org_slug`), as it appears in a link; `null` when the token names none. */\n readonly slug: string | null;\n readonly role: string;\n}\n\n/**\n * Defines the user a BFF session resolves to. The CSRF token is deliberately absent: it never renders, so the\n * strategy keeps it and the HTTP layer echoes it.\n */\nexport interface BffUser {\n readonly person: BffPerson;\n /** `null` for a person acting in no organization. */\n readonly organization: BffOrganization | null;\n readonly permissions: readonly string[];\n /** When the session ends (ISO 8601); `null` when the server sent none that parses. */\n readonly expiresAt: string | null;\n}\n\n/** Defines one decoded `GET {prefix}/session` response. */\nexport interface BffSessionSnapshot {\n /** `null` while signed out. */\n readonly user: BffUser | null;\n /** The token unsafe requests echo; `null` while signed out. */\n readonly csrfToken: string | null;\n}\n\n/** Defines one decoded `POST {prefix}/sign-out` response. */\nexport interface BffSignOut {\n /** Where the page navigates to end the identity provider's session. */\n readonly endSessionUrl: string;\n}\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && value !== null && !Array.isArray(value);\nconst isText = (value: unknown): value is string => typeof value === 'string' && value !== '';\n/** Reads an optional text field; anything but text reads as absent. */\nconst optionalText = (value: unknown): string | null => (typeof value === 'string' ? value : null);\n/**\n * Reads an optional link, name or handle, trimmed; anything but non-blank text reads as absent, since an empty one\n * names nothing.\n */\nconst optionalLabel = (value: unknown): string | null =>\n typeof value === 'string' && value.trim() !== '' ? value.trim() : null;\nconst protocol = (): ApiFailure => ApiFailureFactory.create('protocol');\n\n/** Decodes the session response; a payload that breaks the contract is a `protocol` failure. */\nexport function decodeBffSession(value: unknown): Result<BffSessionSnapshot, ApiFailure> {\n if (!isRecord(value) || typeof value['isAuthenticated'] !== 'boolean') return ResultExtensions.fail(protocol());\n if (!value['isAuthenticated']) return ResultExtensions.ok({ user: null, csrfToken: null });\n\n const person = value['person'];\n const organization = value['organization'];\n const permissions = value['permissions'] ?? [];\n const expiresAt = value['expiresAt'];\n if (!isRecord(person) || !isText(person['sub']) || !isText(value['csrfToken'])) {\n return ResultExtensions.fail(protocol());\n }\n if (organization != null && (!isRecord(organization) || !isText(organization['id']))) {\n return ResultExtensions.fail(protocol());\n }\n if (!Array.isArray(permissions) || !permissions.every(isText)) return ResultExtensions.fail(protocol());\n\n return ResultExtensions.ok({\n csrfToken: value['csrfToken'],\n user: {\n person: {\n sub: person['sub'],\n name: optionalText(person['name']),\n picture: optionalLabel(person['picture']),\n email: optionalText(person['email']),\n phoneNumber: optionalText(person['phoneNumber']),\n },\n organization: isRecord(organization)\n ? {\n id: organization['id'] as string,\n name: optionalLabel(organization['name']),\n slug: optionalLabel(organization['slug']),\n role: optionalText(organization['role']) ?? '',\n }\n : null,\n permissions: Object.freeze([...(permissions as string[])]),\n expiresAt: typeof expiresAt === 'string' && Number.isFinite(Date.parse(expiresAt)) ? expiresAt : null,\n },\n });\n}\n\n/** Whether a page may navigate to `url` to end the provider session: a local path, or an absolute http(s) URL. */\nfunction isNavigable(url: string): boolean {\n if (url.startsWith('/')) return !url.startsWith('//') && !url.includes('\\\\');\n try {\n const { protocol: scheme } = new URL(url);\n return scheme === 'https:' || scheme === 'http:';\n } catch {\n return false;\n }\n}\n\n/** Decodes the logout response; an end-session URL the page may not navigate to is a `protocol` failure. */\nexport function decodeBffSignOut(value: unknown): Result<BffSignOut, ApiFailure> {\n if (!isRecord(value) || !isText(value['endSessionUrl']) || !isNavigable(value['endSessionUrl'])) {\n return ResultExtensions.fail(protocol());\n }\n return ResultExtensions.ok({ endSessionUrl: value['endSessionUrl'] });\n}\n\n/** Extends a {@link BffUser} with the checks a screen and a bridge need. */\nexport const BffSessionExtensions = {\n /** Whether the user holds `permission`; `false` while signed out. */\n hasPermission(user: BffUser | null | undefined, permission: string): boolean {\n return user?.permissions.includes(permission) ?? false;\n },\n\n /**\n * The stable user-and-organization key: pass it as `createAuthBridge({ getIdentity })` so a refreshed session\n * keeps its caches and a person or organization switch drops them.\n */\n identity(user: BffUser): string {\n return `${user.person.sub}\\u0000${user.organization?.id ?? ''}`;\n },\n\n /** The session end as epoch milliseconds; `null` when the server sent none that parses. */\n expiresAtMs(user: BffUser): number | null {\n return user.expiresAt === null ? null : Date.parse(user.expiresAt);\n },\n} as const;\n"],"names":[],"mappings":";;AAsDA,MAAM,WAAW,CAAC,UAChB,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,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GA,YAAY,MAA8B;AACxC,WAAO,KAAK,cAAc,OAAO,OAAO,KAAK,MAAM,KAAK,SAAS;AAAA,EACnE;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RefreshButton.vue.js","sources":["../../../../src/presentation/actions/refreshButton/RefreshButton.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ButtonProps } from '../button';\n\n/** @internal The `ButtonProps` this preset decides itself. */\ntype OwnedButtonProp = keyof Pick<ButtonProps, 'isLoading' | 'shape' | 'leadingSlot'>;\n\n/** Defines the forwarded `ButtonProps`, minus the ones the refresh preset sets. */\ntype RefreshButtonAttributes = Omit<ButtonProps, OwnedButtonProp>;\n\n/** Defines props for the one refresh control a region shows. */\nexport interface RefreshButtonProps extends /* @vue-ignore */ RefreshButtonAttributes {\n /** True from the click until the refresh settles — `useRefresh`'s `refreshing`; the icon spins and clicks wait. */\n readonly isRefreshing?: boolean;\n\n /** The visible label, or the accessible name of an icon-only button. Default `\"Refresh\"`, localized. */\n readonly label?: string;\n\n /** Renders the icon alone, square at its size, named by `label`. */\n readonly isIconOnly?: boolean;\n\n /** The visual surface style. Default `outline`; `ghost` inside a panel header. */\n readonly variant?: ButtonProps['variant'];\n\n /** The size step. Default `sm`; `md` beside page-level controls. */\n readonly size?: ButtonProps['size'];\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport { RefreshCw } from 'lucide-vue-next';\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { Icon } from '../../../foundation/icons';\nimport Button from '../button/Button.vue';\n\n/**\n * Renders the refresh control a region reruns its reads with — a `Button` preset that swaps the refresh icon for the\n * spinner while `isRefreshing`, keeps its label and width, and swallows repeat clicks until the refresh settles. Pair\n * it with `useRefresh` from `@wow-two-beta/fe/query`, which also drives the region's placeholders.\n */\ndefineOptions({ name: 'RefreshButton', inheritAttrs: false });\n\nconst componentProps = withDefaults(defineProps<RefreshButtonProps>(), {\n isRefreshing: false,\n label: undefined,\n isIconOnly: false,\n variant: 'outline',\n size: 'sm',\n});\nconst props = useLocaleDefaults(componentProps, 'RefreshButton', { label: 'Refresh' });\n\nconst attrs = useAttrs();\n\n/** The icon-only form names itself through `aria-label`, and `title` shows the name on hover. */\nconst naming = computed(() =>\n props.isIconOnly ? { 'aria-label': props.label, title: props.label } : ({} as Record<string, string>),\n);\n</script>\n\n<template>\n <Button\n tone=\"neutral\"\n :variant=\"props.variant\"\n :size=\"props.size\"\n :shape=\"props.isIconOnly ? 'square' : 'default'\"\n :is-loading=\"props.isRefreshing\"\n v-bind=\"{ ...naming, ...attrs }\"\n >\n <template #leading><Icon :icon=\"RefreshCw\" :size=\"14\" /></template>\n <template v-if=\"!props.isIconOnly\">{{ props.label }}</template>\n </Button>\n</template>\n"],"names":["_openBlock","_createBlock","Button","_mergeProps","_unref","_createVNode","Icon","_createElementBlock","_Fragment","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;AA0CA,UAAM,iBAAiB;AAOvB,UAAM,QAAQ,kBAAkB,gBAAgB,iBAAiB,EAAE,OAAO,WAAW;AAErF,UAAM,QAAQ,SAAA;AAGd,UAAM,SAAS;AAAA,MAAS,MACtB,MAAM,aAAa,EAAE,cAAc,MAAM,OAAO,OAAO,MAAM,UAAW,CAAA;AAAA,IAAC;;AAKzE,aAAAA,UAAA,GAAAC,YAUSC,aAVTC,WAUS;AAAA,QATP,MAAK;AAAA,QACJ,SAASC,MAAA,KAAA,EAAM;AAAA,QACf,MAAMA,MAAA,KAAA,EAAM;AAAA,QACZ,OAAOA,MAAA,KAAA,EAAM,aAAU,WAAA;AAAA,QACvB,cAAYA,MAAA,KAAA,EAAM;AAAA,MAAA,GACN,EAAA,GAAA,OAAA,UAAWA,MAAA,KAAA,EAAA,CAAK,GAAA;AAAA,QAElB,iBAAQ,MAAqC;AAAA,UAArCC,YAAqCD,MAAAE,WAAA,GAAA;AAAA,YAA9B,MAAMF,MAAA,SAAA;AAAA,YAAY,MAAM;AAAA,UAAA;;yBAClD,MAA+D;AAAA,UAA9C,CAAAA,MAAA,KAAA,EAAM,2BAAvBG,mBAA+DC,UAAA,EAAA,KAAA,KAAA;AAAA,YAAzBC,gBAAAC,gBAAAN,MAAA,KAAA,EAAM,KAAK,GAAA,CAAA;AAAA,UAAA;;;;;;;"}
1
+ {"version":3,"file":"RefreshButton.vue.js","sources":["../../../../src/presentation/actions/refreshButton/RefreshButton.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ButtonProps } from '../button';\n\n/** @internal The `ButtonProps` this preset decides itself. */\ntype OwnedButtonProp = keyof Pick<ButtonProps, 'isLoading' | 'shape' | 'leadingSlot'>;\n\n/** Defines the forwarded `ButtonProps`, minus the ones the refresh preset sets. */\ntype RefreshButtonAttributes = Omit<ButtonProps, OwnedButtonProp>;\n\n/** Defines props for the one refresh control a region shows. */\nexport interface RefreshButtonProps extends /* @vue-ignore */ RefreshButtonAttributes {\n /** True from the click until the refresh settles — `useRefresh`'s `refreshing`; the icon spins and clicks wait. */\n readonly isRefreshing?: boolean;\n\n /** The visible label, or the accessible name of an icon-only button. Default `\"Refresh\"`, localized. */\n readonly label?: string;\n\n /** Renders the icon alone, square at its size, named by `label`. */\n readonly isIconOnly?: boolean;\n\n /** The visual surface style. Default `outline`; `ghost` inside a panel header. */\n readonly variant?: ButtonProps['variant'];\n\n /** The size step. Default `sm`; `md` beside page-level controls. */\n readonly size?: ButtonProps['size'];\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport { RefreshCw } from 'lucide-vue-next';\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { Icon } from '../../../foundation/icons';\nimport Button from '../button/Button.vue';\n\n/**\n * Renders the refresh control a region reruns its reads with — a `Button` preset that swaps the refresh icon for the\n * spinner while `isRefreshing`, keeps its label and width, and swallows repeat clicks until the refresh settles. Pair\n * it with `useRefresh` from `@wow-two-beta/fe/query`, which also drives the region's placeholders.\n */\ndefineOptions({ name: 'RefreshButton', inheritAttrs: false });\n\nconst componentProps = withDefaults(defineProps<RefreshButtonProps>(), {\n isRefreshing: false,\n label: undefined,\n isIconOnly: false,\n variant: 'outline',\n size: 'sm',\n});\nconst props = useLocaleDefaults(componentProps, 'RefreshButton', { label: 'Refresh' });\n\nconst attrs = useAttrs();\n\n/** The icon-only form names itself through `aria-label`, and `title` shows the name on hover. */\nconst naming = computed(() =>\n props.isIconOnly ? { 'aria-label': props.label, title: props.label } : ({} as Record<string, string>),\n);\n</script>\n\n<template>\n <Button\n tone=\"neutral\"\n :variant=\"props.variant\"\n :size=\"props.size\"\n :shape=\"props.isIconOnly ? 'square' : 'default'\"\n :is-loading=\"props.isRefreshing\"\n v-bind=\"{ ...naming, ...attrs }\"\n >\n <template #leading><Icon :icon=\"RefreshCw\" :size=\"14\" /></template>\n <template v-if=\"!props.isIconOnly\">{{ props.label }}</template>\n </Button>\n</template>\n"],"names":["_openBlock","_createBlock","Button","_mergeProps","_unref","_createVNode","Icon","_createElementBlock","_Fragment","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;AA0CA,UAAM,iBAAiB;AAOvB,UAAM,QAAQ,kBAAkB,gBAAgB,iBAAiB,EAAE,OAAO,WAAW;AAErF,UAAM,QAAQ,SAAA;AAGd,UAAM,SAAS;AAAA,MAAS,MACtB,MAAM,aAAa,EAAE,cAAc,MAAM,OAAO,OAAO,MAAM,UAAW,CAAA;AAAA,IAAC;;AAKzE,aAAAA,UAAA,GAAAC,YAUSC,aAVTC,WAUS;AAAA,QATP,MAAK;AAAA,QACJ,SAASC,MAAA,KAAA,EAAM;AAAA,QACf,MAAMA,MAAA,KAAA,EAAM;AAAA,QACZ,OAAOA,MAAA,KAAA,EAAM,aAAU,WAAA;AAAA,QACvB,cAAYA,MAAA,KAAA,EAAM;AAAA,MAAA,GACN,EAAA,GAAA,OAAA,UAAWA,MAAA,KAAA,EAAA,CAAK,GAAA;AAAA,QAElB,iBAAQ,MAAqC;AAAA,UAArCC,YAAqCD,MAAAE,WAAA,GAAA;AAAA,YAA9B,MAAMF,MAAA,SAAA;AAAA,YAAY,MAAM;AAAA,UAAA;;yBATuC,MAGjF;AAAA,UAOS,CAAAA,MAAA,KAAA,EAAM,2BAAvBG,mBAA+DC,UAAA,EAAA,KAAA,KAAA;AAAA,YAAzBC,gBAAAC,gBAAAN,MAAA,KAAA,EAAM,KAAK,GAAA,CAAA;AAAA,UAAA;;;;;;;"}
@@ -1,6 +1,9 @@
1
1
  import { AccountMenuProps } from '../../nav/accountMenu/AccountMenu.vue';
2
2
  import { AppSwitcherItem, AppSwitcherMenuProps } from '../../nav/appSwitcherMenu/AppSwitcherMenu.vue';
3
+ import { HTMLAttributes } from 'vue';
4
+ import { SizeValue } from '../../../foundation/styles';
3
5
  import { BreadcrumbItem } from '../../nav/breadcrumb/Breadcrumb.vue';
6
+ import { ContainerLayoutSize } from '../containerLayout/ContainerLayout.variants';
4
7
  /** Defines how wide an `AppFrame` lets its page run. */
5
8
  export declare const AppFrameContentWidth: {
6
9
  /** Refers to the shared page column: the frame's gutter, capped at `--frame-content-max` and centred. */
@@ -38,7 +41,9 @@ export interface AppFrameProps {
38
41
  */
39
42
  readonly onReload?: () => unknown;
40
43
  /** The trail to the current place, the last item the place itself. Empty or omitted, the bar shows none. */
41
- readonly crumbs?: ReadonlyArray<BreadcrumbItem>;
44
+ readonly crumbs?: ReadonlyArray<BreadcrumbItem | string>;
45
+ /** The trail landmark's accessible name. Default `"Breadcrumb"`, localized. */
46
+ readonly trailLabel?: string;
42
47
  /**
43
48
  * Opens a trail link through the app's router: a plain left click on a link whose `href` starts with `/` calls
44
49
  * this instead of loading the page. Modified clicks keep the browser's behaviour.
@@ -78,6 +83,19 @@ export interface AppFrameProps {
78
83
  readonly isCollapsedByDefault?: boolean;
79
84
  /** How wide the page runs. Default `default`. */
80
85
  readonly contentWidth?: AppFrameContentWidth;
86
+ /**
87
+ * The cap on the page column under `contentWidth="default"`: a `ContainerLayoutSize` step or any CSS length
88
+ * (number = px). Default `--frame-content-max`, 1536px — the width every app shares unless its pages need another.
89
+ */
90
+ readonly contentMaxWidth?: ContainerLayoutSize | SizeValue;
91
+ /** Extra classes on the bar. */
92
+ readonly barClass?: HTMLAttributes['class'];
93
+ /** Extra classes on the sidebar. */
94
+ readonly sidebarClass?: HTMLAttributes['class'];
95
+ /** Extra classes on the scrolling main region. */
96
+ readonly mainClass?: HTMLAttributes['class'];
97
+ /** Extra classes on the page column; unused under `contentWidth="full"`, which renders none. */
98
+ readonly contentClass?: HTMLAttributes['class'];
81
99
  /** The chrome's surface. Default `glass`. */
82
100
  readonly variant?: AppFrameVariant;
83
101
  /** The toggle's name while the desktop sidebar is open. Default `"Collapse sidebar"`, localized. */
@@ -88,6 +106,12 @@ export interface AppFrameProps {
88
106
  readonly openNavigationLabel?: string;
89
107
  /** The navigation drawer's accessible title. Default `"Navigation"`, localized. */
90
108
  readonly navigationLabel?: string;
109
+ /** The version badge's tooltip; `{version}` is the shown version. Default `"Version {version}"`, localized. */
110
+ readonly versionLabel?: string;
111
+ /** The stale version badge's name; `{version}` is the loaded release, `{running}` the served one. Localized. */
112
+ readonly versionUpdateLabel?: string;
113
+ /** The skip link's text. Default `"Skip to content"`, localized. */
114
+ readonly skipToContentLabel?: string;
91
115
  }
92
116
  /** What the `brand` slot receives. */
93
117
  export interface AppFrameBrandSlotProps {
@@ -108,6 +132,7 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<AppFramePr
108
132
  isCollapsed: import('vue').Ref<boolean, boolean>;
109
133
  toggleSidebar: () => void;
110
134
  closeNavigation: () => void;
135
+ scrollToTop: () => void;
111
136
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
112
137
  collapse: (isCollapsed: boolean) => any;
113
138
  "update:locale": (locale: string) => any;
@@ -122,11 +147,15 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<AppFramePr
122
147
  readonly variant: AppFrameVariant;
123
148
  readonly version: string;
124
149
  readonly locale: string;
150
+ readonly skipToContentLabel: string;
151
+ readonly barClass: string | false | Record<string, any> | import('vue').ClassValue[] | null;
125
152
  readonly organization: string;
126
153
  readonly runningVersion: string | null;
127
154
  readonly onReload: () => unknown;
155
+ readonly contentClass: string | false | Record<string, any> | import('vue').ClassValue[] | null;
128
156
  readonly apps: ReadonlyArray<AppSwitcherItem>;
129
- readonly crumbs: ReadonlyArray<BreadcrumbItem>;
157
+ readonly crumbs: ReadonlyArray<BreadcrumbItem | string>;
158
+ readonly trailLabel: string;
130
159
  readonly onNavigate: (href: string, event: MouseEvent) => unknown;
131
160
  readonly currentApp: string;
132
161
  readonly appLabel: string;
@@ -138,6 +167,11 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<AppFramePr
138
167
  readonly collapseStorageKey: string;
139
168
  readonly isCollapsedByDefault: boolean;
140
169
  readonly contentWidth: AppFrameContentWidth;
170
+ readonly contentMaxWidth: ContainerLayoutSize | SizeValue;
171
+ readonly sidebarClass: string | false | Record<string, any> | import('vue').ClassValue[] | null;
172
+ readonly mainClass: string | false | Record<string, any> | import('vue').ClassValue[] | null;
173
+ readonly versionLabel: string;
174
+ readonly versionUpdateLabel: string;
141
175
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
142
176
  /** The page. */
143
177
  default?(): unknown;
@@ -145,6 +179,8 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<AppFramePr
145
179
  brand?(props: AppFrameBrandSlotProps): unknown;
146
180
  /** The sidebar's navigation — a `SidebarMenu` bound to `isRail`. Omitted, the frame has no sidebar. */
147
181
  nav?(props: AppFrameNavSlotProps): unknown;
182
+ /** What stands at the sidebar's foot, under a hairline — a home link, a help link. */
183
+ 'nav-footer'?(props: Pick<AppFrameNavSlotProps, "isRail">): unknown;
148
184
  /** Controls between the toggle and the trail. */
149
185
  'bar-start'?(): unknown;
150
186
  /** Replaces the trail — a portal target, or a trail that carries a page's actions. */
@@ -64,6 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  runningVersion: { default: void 0 },
65
65
  onReload: { type: Function, default: void 0 },
66
66
  crumbs: { default: () => [] },
67
+ trailLabel: { default: void 0 },
67
68
  onNavigate: { type: Function, default: void 0 },
68
69
  apps: { default: void 0 },
69
70
  currentApp: { default: void 0 },
@@ -78,11 +79,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
79
  collapseStorageKey: { default: DefaultCollapseStorageKey },
79
80
  isCollapsedByDefault: { type: Boolean, default: false },
80
81
  contentWidth: { default: AppFrameContentWidth.Default },
82
+ contentMaxWidth: { default: void 0 },
83
+ barClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
84
+ sidebarClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
85
+ mainClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
86
+ contentClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
81
87
  variant: { default: AppFrameVariant.Glass },
82
88
  collapseLabel: {},
83
89
  expandLabel: {},
84
90
  openNavigationLabel: {},
85
- navigationLabel: {}
91
+ navigationLabel: {},
92
+ versionLabel: { default: void 0 },
93
+ versionUpdateLabel: { default: void 0 },
94
+ skipToContentLabel: { default: void 0 }
86
95
  },
87
96
  emits: ["update:accountOpen", "update:locale", "update:organization", "collapse"],
88
97
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -180,7 +189,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
189
  });
181
190
  const el = computed(() => shell.value?.el ?? null);
182
191
  const mainEl = computed(() => main.value?.el ?? null);
183
- __expose({ el, mainEl, isRail, isCollapsed, toggleSidebar, closeNavigation });
192
+ function scrollToTop() {
193
+ mainEl.value?.scrollTo?.({ top: 0 });
194
+ }
195
+ const trail = computed(
196
+ () => props.crumbs.map((crumb) => typeof crumb === "string" ? { label: crumb } : crumb)
197
+ );
198
+ const trailAttrs = computed(() => props.trailLabel === void 0 ? {} : { "aria-label": props.trailLabel });
199
+ __expose({ el, mainEl, isRail, isCollapsed, toggleSidebar, closeNavigation, scrollToTop });
184
200
  return (_ctx, _cache) => {
185
201
  return openBlock(), createElementBlock(Fragment, null, [
186
202
  createVNode(_sfc_main$1, mergeProps({
@@ -194,13 +210,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
194
210
  "sidebar-width": sidebarWidth.value,
195
211
  navigation: navigation.value,
196
212
  "sidebar-open": unref(isPhone) && isDrawerOpen.value,
213
+ "skip-to-content-label": unref(props).skipToContentLabel,
197
214
  "onUpdate:sidebarOpen": setDrawerOpen
198
215
  }), {
199
216
  default: withCtx(() => [
200
217
  createVNode(_sfc_main$2, {
201
218
  height: "md",
202
219
  variant: unref(props).variant,
203
- class: normalizeClass(headerClasses),
220
+ class: normalizeClass([headerClasses, unref(props).barClass]),
204
221
  "data-app-frame-bar": ""
205
222
  }, {
206
223
  default: withCtx(() => [
@@ -231,8 +248,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
231
248
  key: 2,
232
249
  version: unref(props).version,
233
250
  "running-version": unref(props).runningVersion,
251
+ label: unref(props).versionLabel,
252
+ "update-label": unref(props).versionUpdateLabel,
234
253
  onReload: reload
235
- }, null, 8, ["version", "running-version"])) : createCommentVNode("", true)
254
+ }, null, 8, ["version", "running-version", "label", "update-label"])) : createCommentVNode("", true)
236
255
  ], 6)) : createCommentVNode("", true),
237
256
  createElementVNode("div", _hoisted_2, [
238
257
  !hasSidebar.value || unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_3, [
@@ -256,8 +275,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
256
275
  key: 2,
257
276
  version: unref(props).version,
258
277
  "running-version": unref(props).runningVersion,
278
+ label: unref(props).versionLabel,
279
+ "update-label": unref(props).versionUpdateLabel,
259
280
  onReload: reload
260
- }, null, 8, ["version", "running-version"])) : createCommentVNode("", true)
281
+ }, null, 8, ["version", "running-version", "label", "update-label"])) : createCommentVNode("", true)
261
282
  ])) : createCommentVNode("", true),
262
283
  hasToggle.value ? (openBlock(), createBlock(_sfc_main$5, {
263
284
  key: 1,
@@ -282,13 +303,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
282
303
  }, 8, ["aria-label", "aria-expanded", "title"])) : createCommentVNode("", true),
283
304
  renderSlot(_ctx.$slots, "bar-start"),
284
305
  renderSlot(_ctx.$slots, "trail", {}, () => [
285
- unref(props).crumbs.length > 0 ? (openBlock(), createBlock(_sfc_main$7, {
306
+ trail.value.length > 0 ? (openBlock(), createBlock(_sfc_main$7, mergeProps({
286
307
  key: 0,
287
- items: unref(props).crumbs,
288
- "is-single-line": "",
308
+ items: trail.value,
309
+ "is-single-line": ""
310
+ }, trailAttrs.value, {
289
311
  class: "flex-1",
290
312
  onClick: onTrailClick
291
- }, null, 8, ["items"])) : (openBlock(), createElementBlock("span", _hoisted_4))
313
+ }), null, 16, ["items"])) : (openBlock(), createElementBlock("span", _hoisted_4))
292
314
  ]),
293
315
  renderSlot(_ctx.$slots, "bar-end"),
294
316
  renderSlot(_ctx.$slots, "account", {}, () => [
@@ -314,11 +336,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
314
336
  ])
315
337
  ]),
316
338
  _: 3
317
- }, 8, ["variant"]),
339
+ }, 8, ["variant", "class"]),
318
340
  hasSidebar.value ? (openBlock(), createBlock(_sfc_main$9, {
319
341
  key: 0,
320
342
  variant: unref(props).variant,
321
- class: normalizeClass([edgeClass.value, "print:hidden"])
343
+ class: normalizeClass([edgeClass.value, "print:hidden", unref(props).sidebarClass])
322
344
  }, {
323
345
  default: withCtx(() => [
324
346
  createElementVNode("div", {
@@ -329,40 +351,48 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
329
351
  isRail: isRail.value,
330
352
  close: closeNavigation
331
353
  })
332
- ])
354
+ ]),
355
+ slots["nav-footer"] ? (openBlock(), createElementBlock("div", {
356
+ key: 0,
357
+ class: normalizeClass(["mt-2 shrink-0 border-t pt-2", edgeClass.value]),
358
+ "data-app-frame-nav-footer": "",
359
+ onClick: onNavClick
360
+ }, [
361
+ renderSlot(_ctx.$slots, "nav-footer", { isRail: isRail.value })
362
+ ], 2)) : createCommentVNode("", true)
333
363
  ]),
334
364
  _: 3
335
365
  }, 8, ["variant", "class"])) : createCommentVNode("", true),
336
366
  createVNode(_sfc_main$a, {
337
367
  ref_key: "main",
338
368
  ref: main,
339
- class: "min-w-0 print:block print:overflow-visible"
369
+ class: normalizeClass(["min-w-0 print:block print:overflow-visible", unref(props).mainClass])
340
370
  }, {
341
371
  default: withCtx(() => [
342
372
  unref(props).contentWidth === "default" ? (openBlock(), createBlock(_sfc_main$b, {
343
373
  key: 0,
344
374
  gutter: "lg",
345
- "max-width": "var(--frame-content-max)",
346
- class: "lg:px-6 xl:px-8 print:p-0 print:*:max-w-none"
375
+ "max-width": unref(props).contentMaxWidth ?? "var(--frame-content-max)",
376
+ class: normalizeClass(["lg:px-6 xl:px-8 print:p-0 print:*:max-w-none", unref(props).contentClass])
347
377
  }, {
348
378
  default: withCtx(() => [
349
379
  renderSlot(_ctx.$slots, "notice"),
350
380
  renderSlot(_ctx.$slots, "default")
351
381
  ]),
352
382
  _: 3
353
- })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
383
+ }, 8, ["max-width", "class"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
354
384
  renderSlot(_ctx.$slots, "notice"),
355
385
  renderSlot(_ctx.$slots, "default")
356
386
  ], 64))
357
387
  ]),
358
388
  _: 3
359
- }, 512),
389
+ }, 8, ["class"]),
360
390
  hasPhoneNav.value && unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_5, [
361
391
  renderSlot(_ctx.$slots, "phone-nav")
362
392
  ])) : createCommentVNode("", true)
363
393
  ]),
364
394
  _: 3
365
- }, 16, ["data-rail", "class", "sidebar-width", "navigation", "sidebar-open"]),
395
+ }, 16, ["data-rail", "class", "sidebar-width", "navigation", "sidebar-open", "skip-to-content-label"]),
366
396
  hasSidebar.value && isTablet.value ? (openBlock(), createBlock(_sfc_main$c, {
367
397
  key: 0,
368
398
  open: isDrawerOpen.value,
@@ -389,7 +419,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
389
419
  isRail: false,
390
420
  close: closeNavigation
391
421
  })
392
- ])
422
+ ]),
423
+ slots["nav-footer"] ? (openBlock(), createElementBlock("div", {
424
+ key: 0,
425
+ class: normalizeClass(["mt-2 shrink-0 border-t pt-2", edgeClass.value]),
426
+ "data-app-frame-nav-footer": "",
427
+ onClick: onNavClick
428
+ }, [
429
+ renderSlot(_ctx.$slots, "nav-footer", { isRail: false })
430
+ ], 2)) : createCommentVNode("", true)
393
431
  ]),
394
432
  _: 3
395
433
  }, 8, ["variant"])
@@ -1 +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","_createText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
+ {"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 { HTMLAttributes } from 'vue';\nimport type { SizeValue } from '../../../foundation/styles';\nimport type { BreadcrumbItem } from '../../nav/breadcrumb/Breadcrumb.vue';\nimport type { ContainerLayoutSize } from '../containerLayout/ContainerLayout.variants';\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 | string>;\n\n /** The trail landmark's accessible name. Default `\"Breadcrumb\"`, localized. */\n readonly trailLabel?: string;\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 /**\n * The cap on the page column under `contentWidth=\"default\"`: a `ContainerLayoutSize` step or any CSS length\n * (number = px). Default `--frame-content-max`, 1536px — the width every app shares unless its pages need another.\n */\n readonly contentMaxWidth?: ContainerLayoutSize | SizeValue;\n\n /** Extra classes on the bar. */\n readonly barClass?: HTMLAttributes['class'];\n\n /** Extra classes on the sidebar. */\n readonly sidebarClass?: HTMLAttributes['class'];\n\n /** Extra classes on the scrolling main region. */\n readonly mainClass?: HTMLAttributes['class'];\n\n /** Extra classes on the page column; unused under `contentWidth=\"full\"`, which renders none. */\n readonly contentClass?: HTMLAttributes['class'];\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 /** The version badge's tooltip; `{version}` is the shown version. Default `\"Version {version}\"`, localized. */\n readonly versionLabel?: string;\n\n /** The stale version badge's name; `{version}` is the loaded release, `{running}` the served one. Localized. */\n readonly versionUpdateLabel?: string;\n\n /** The skip link's text. Default `\"Skip to content\"`, localized. */\n readonly skipToContentLabel?: 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 /** What stands at the sidebar's foot, under a hairline — a home link, a help link. */\n 'nav-footer'?(props: Pick<AppFrameNavSlotProps, 'isRail'>): 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 contentMaxWidth: undefined,\n barClass: undefined,\n sidebarClass: undefined,\n mainClass: undefined,\n contentClass: undefined,\n trailLabel: undefined,\n versionLabel: undefined,\n versionUpdateLabel: undefined,\n skipToContentLabel: undefined,\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. */\nconst mainEl = computed(() => main.value?.el ?? null);\n\n/** Returns the main region to its top — for an app whose router does not reset a region's scroll. */\nfunction scrollToTop(): void {\n mainEl.value?.scrollTo?.({ top: 0 });\n}\n\n/** Plain labels become trail items, so an app without links passes its translated strings as they are. */\nconst trail = computed<BreadcrumbItem[]>(() =>\n props.crumbs.map((crumb) => (typeof crumb === 'string' ? { label: crumb } : crumb)),\n);\n\n/* Bound only when given: an `aria-label` of `undefined` would strip the breadcrumb's own localized name. */\nconst trailAttrs = computed(() => (props.trailLabel === undefined ? {} : { 'aria-label': props.trailLabel }));\n\ndefineExpose({ el, mainEl, isRail, isCollapsed, toggleSidebar, closeNavigation, scrollToTop });\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 :skip-to-content-label=\"props.skipToContentLabel\"\n @update:sidebar-open=\"setDrawerOpen\"\n >\n <AppShellHeader height=\"md\" :variant=\"props.variant\" :class=\"[headerClasses, props.barClass]\" 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 :label=\"props.versionLabel\"\n :update-label=\"props.versionUpdateLabel\"\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 :label=\"props.versionLabel\"\n :update-label=\"props.versionUpdateLabel\"\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=\"trail.length > 0\"\n :items=\"trail\"\n is-single-line\n v-bind=\"trailAttrs\"\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\n v-if=\"hasSidebar\"\n :variant=\"props.variant\"\n :class=\"[edgeClass, 'print:hidden', props.sidebarClass]\"\n >\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 <div\n v-if=\"slots['nav-footer']\"\n :class=\"['mt-2 shrink-0 border-t pt-2', edgeClass]\"\n data-app-frame-nav-footer\n @click=\"onNavClick\"\n >\n <slot name=\"nav-footer\" :is-rail=\"isRail\" />\n </div>\n </AppShellSidebar>\n <AppShellMain ref=\"main\" :class=\"['min-w-0 print:block print:overflow-visible', props.mainClass]\">\n <AppShellContent\n v-if=\"props.contentWidth === 'default'\"\n gutter=\"lg\"\n :max-width=\"props.contentMaxWidth ?? 'var(--frame-content-max)'\"\n :class=\"['lg:px-6 xl:px-8 print:p-0 print:*:max-w-none', props.contentClass]\"\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 <div\n v-if=\"slots['nav-footer']\"\n :class=\"['mt-2 shrink-0 border-t pt-2', edgeClass]\"\n data-app-frame-nav-footer\n @click=\"onNavClick\"\n >\n <slot name=\"nav-footer\" :is-rail=\"false\" />\n </div>\n </DrawerContent>\n </Drawer>\n</template>\n"],"names":["_useSlots","_createVNode","AppShell","_mergeProps","_unref","AppShellHeader","_normalizeClass","_createElementVNode","_createElementBlock","_openBlock","_createBlock","AppSwitcherMenu","_createSlots","_renderSlot","VersionBadge","Button","Icon","Breadcrumb","AccountMenu","AppShellSidebar","AppShellMain","AppShellContent","_Fragment","Drawer","DrawerContent","OverlayTitle","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASO,MAAM,uBAAuB;AAAA;AAAA,EAElC,SAAS;AAAA;AAAA,EAET,MAAM;AACR;AAKO,MAAM,kBAAkB;AAAA;AAAA,EAE7B,OAAO;AAAA;AAAA,EAEP,OAAO;AACT;AAsJA,MAAM,4BAA4B;AAGlC,SAAS,gBAAgB,QAAsC;AAC7D,SAAO,OAAO,WAAW,YAAY,SAAS;AAChD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,QAAQA,SAAA;AAmCd,UAAM,iBAAiB;AA+BvB,UAAM,QAAQ,kBAAkB,gBAAgB,YAAY;AAAA,MAC1D,eAAe;AAAA,MACf,aAAa;AAAA,MACb,qBAAqB;AAAA,MACrB,iBAAiB;AAAA,IAAA,CAClB;AAED,UAAM,OAAO;AAcb,UAAM,QAAQ,SAAA;AACd,UAAM,YAAY,SAAA;AAClB,UAAM,QAAQ,eAA8C,OAAO;AACnE,UAAM,OAAO,eAAkD,MAAM;AAGrE,UAAM,UAAU,mBAAmB,qBAAqB,IAAI;AAC5D,UAAM,YAAY,gBAAgB,qBAAqB,IAAI;AAG3D,UAAM,cAAc,oBAA6B,MAAM,oBAAoB,MAAM,sBAAsB;AAAA,MACrG,QAAQ;AAAA,IAAA,CACT;AACD,UAAM,eAAe,WAAW,KAAK;AAIrC,UAAM,aAAa,WAAW,QAAQ,UAAU,KAAK,CAAC,CAAC;AACvD,UAAM,cAAc,WAAW,QAAQ,UAAU,WAAW,CAAC,CAAC;AAC9D,mBAAe,MAAM;AACnB,iBAAW,QAAQ,QAAQ,UAAU,KAAK,CAAC;AAC3C,kBAAY,QAAQ,QA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cAAA,EAAlB,QAAS,OAAK;AAAA,gBAAA;;;;;;;;;;;"}
@@ -78,6 +78,8 @@ export interface AppShellProps {
78
78
  * `vertical`, none makes it `horizontal`, so a top-bar app never reserves an empty sidebar column.
79
79
  */
80
80
  readonly navigation?: AppShellNavigation;
81
+ /** The skip link's text. Default `"Skip to content"`, localized. */
82
+ readonly skipToContentLabel?: string;
81
83
  }
82
84
  declare const _default: __VLS_WithSlots<import('vue').DefineComponent<AppShellProps, {
83
85
  el: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
@@ -94,6 +96,7 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<AppShellPr
94
96
  readonly asideBreakpoint: Breakpoint;
95
97
  readonly sidebarOpen: boolean;
96
98
  readonly defaultSidebarOpen: boolean;
99
+ readonly skipToContentLabel: string;
97
100
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
98
101
  default(): unknown;
99
102
  }>;
@@ -58,7 +58,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  sidebarOpen: { type: Boolean, default: void 0 },
59
59
  defaultSidebarOpen: { type: Boolean, default: false },
60
60
  scroll: { default: AppShellScroll.Region },
61
- navigation: { default: void 0 }
61
+ navigation: { default: void 0 },
62
+ skipToContentLabel: { default: void 0 }
62
63
  },
63
64
  emits: ["update:sidebarOpen"],
64
65
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -123,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
124
  style: rootStyle.value,
124
125
  class: classes.value
125
126
  }), [
126
- createElementVNode("a", _hoisted_1, toDisplayString(unref(locale).t("AppShell.skipToContent", void 0, "Skip to content")), 1),
127
+ createElementVNode("a", _hoisted_1, toDisplayString(props.skipToContentLabel ?? unref(locale).t("AppShell.skipToContent", void 0, "Skip to content")), 1),
127
128
  renderSlot(_ctx.$slots, "default")
128
129
  ], 16);
129
130
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.vue.js","sources":["../../../../src/presentation/layout/appShell/AppShell.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { inject, type ComputedRef, type InjectionKey, type Ref } from 'vue';\n\n/** Defines the responsive breakpoint at which `AppShell` collapses its sidebar / aside. */\nexport const Breakpoint = {\n /** Refers to the `sm` (640px) breakpoint. */\n Sm: 'sm',\n /** Refers to the `md` (768px) breakpoint. */\n Md: 'md',\n /** Refers to the `lg` (1024px) breakpoint. */\n Lg: 'lg',\n /** Refers to the `xl` (1280px) breakpoint. */\n Xl: 'xl',\n /** Refers to the `2xl` (1536px) breakpoint. */\n Xxl: '2xl',\n} as const;\n\nexport type Breakpoint = (typeof Breakpoint)[keyof typeof Breakpoint];\n\n/** Defines what scrolls inside an `AppShell`. */\nexport const AppShellScroll = {\n /** The main region scrolls; the header, sidebar and footer span the full window and hold still. */\n Region: 'region',\n /** The whole document scrolls, as a page does; the header sticks to the top. */\n Document: 'document',\n} as const;\n\nexport type AppShellScroll = (typeof AppShellScroll)[keyof typeof AppShellScroll];\n\n/** Defines where an `AppShell` places its navigation. */\nexport const AppShellNavigation = {\n /** A sidebar rail beside the main region. */\n Vertical: 'vertical',\n /** A top bar only; the main region takes the full width. */\n Horizontal: 'horizontal',\n} as const;\n\nexport type AppShellNavigation = (typeof AppShellNavigation)[keyof typeof AppShellNavigation];\n\nconst BreakpointPx: Record<Breakpoint, number> = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n};\n\n/**\n * The value shared with `AppShellSidebar` / `AppShellAside`.\n *\n * React's context held plain values re-created on every render behind a\n * `useMemo`; here every field stays a ref or a computed, so a child reads the\n * live value and the root never re-renders to publish one.\n */\nexport interface AppShellContextValue {\n sidebarWidth: ComputedRef<string>;\n asideWidth: ComputedRef<string>;\n sidebarBreakpoint: ComputedRef<Breakpoint>;\n /** The resolved mobile-sidebar open state. Writable — an assignment routes through `setSidebarOpen`. */\n isSidebarOpen: Ref<boolean>;\n setSidebarOpen: (open: boolean) => void;\n /** True below `sidebarBreakpoint` — the sidebar renders as a `Drawer`. */\n isSidebarCollapsed: ComputedRef<boolean>;\n /** True below `asideBreakpoint` — the aside renders nothing. */\n isAsideHidden: ComputedRef<boolean>;\n /** What scrolls — the regions size and pin themselves by it. */\n scroll: ComputedRef<AppShellScroll>;\n}\n\nexport const appShellContextKey: InjectionKey<AppShellContextValue> = Symbol('wow-two.appShell');\n\nexport function useAppShellContext(): AppShellContextValue {\n const context = inject(appShellContextKey, null);\n if (!context) throw new Error('AppShell.* must be used inside <AppShell>');\n return context;\n}\n\n/** Reads the enclosing `AppShell`'s state — widths, breakpoint, and the mobile-sidebar toggle. */\nexport function useAppShell(): AppShellContextValue {\n return useAppShellContext();\n}\n\n/** Controlled axes use their canonical Vue model names; each update event requests caller state. */\nexport interface AppShellProps {\n /** The sidebar column width, any CSS length. Default `240px`. */\n readonly sidebarWidth?: string;\n\n /** The aside rail width, any CSS length. Default `280px`. */\n readonly asideWidth?: string;\n\n /** The sidebar collapses below this breakpoint. Default `lg`. */\n readonly sidebarBreakpoint?: Breakpoint;\n\n /** The aside hides below this breakpoint. Default `xl`. */\n readonly asideBreakpoint?: Breakpoint;\n\n /** The mobile-sidebar open state, controlled. The `v-model:sidebarOpen` binding target. */\n readonly sidebarOpen?: boolean;\n\n /** The initial mobile-sidebar state when uncontrolled. Default `false`. */\n readonly defaultSidebarOpen?: boolean;\n\n /**\n * What scrolls. Default `region`: the main region scrolls, so the header spans the full window even where the\n * platform draws a classic scrollbar. `document` scrolls the page, for long public pages with a closing footer.\n */\n readonly scroll?: AppShellScroll;\n\n /**\n * Where the navigation sits. Omit it and the shell reads its children: an `AppShellSidebar` makes it\n * `vertical`, none makes it `horizontal`, so a top-bar app never reserves an empty sidebar column.\n */\n readonly navigation?: AppShellNavigation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, Fragment, normalizeStyle, provide, useAttrs, useSlots, useTemplateRef, type VNode } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { useMediaQuery } from '../../../foundation/device';\n\nconst locale = useLocale();\n\n/**\n * Renders the top-level page frame. Children: `AppShellHeader` / `AppShellSidebar` /\n * `AppShellMain` / `AppShellAside` / `AppShellFooter`. CSS-grid layout; the\n * sidebar collapses to a `Drawer` below `sidebarBreakpoint`.\n */\ndefineOptions({ name: 'AppShell', inheritAttrs: false });\n\n/** The shell's regions — React's required `children`. */\ndefineSlots<{ default(): unknown }>();\n\n/**\n * `sidebarOpen: undefined` / `sidebarOpen: undefined` are load-bearing: Vue\n * coerces an absent `Boolean` prop to `false` unless the declaration *owns* a\n * `default` key, which would strand the uncontrolled path behind a\n * permanently-closed controlled one.\n */\nconst props = withDefaults(defineProps<AppShellProps>(), {\n sidebarWidth: '240px',\n asideWidth: '280px',\n sidebarBreakpoint: 'lg',\n asideBreakpoint: 'xl',\n sidebarOpen: undefined,\n defaultSidebarOpen: false,\n scroll: AppShellScroll.Region,\n navigation: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the mobile sidebar opens or closes — the `v-model:sidebarOpen` half. */\n 'update:sidebarOpen': [open: boolean];\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.sidebarOpen,\n default: () => props.defaultSidebarOpen,\n onChange: (value) => {\n emit('update:sidebarOpen', value);\n },\n});\n\nconst isSidebarWide = useMediaQuery(() => `(min-width: ${BreakpointPx[props.sidebarBreakpoint]}px)`);\nconst isAsideWide = useMediaQuery(() => `(min-width: ${BreakpointPx[props.asideBreakpoint]}px)`);\n\nconst isSidebarCollapsed = computed(() => !isSidebarWide.value);\nconst isAsideHidden = computed(() => !isAsideWide.value);\n\nprovide(appShellContextKey, {\n sidebarWidth: computed(() => props.sidebarWidth),\n asideWidth: computed(() => props.asideWidth),\n sidebarBreakpoint: computed(() => props.sidebarBreakpoint),\n isSidebarOpen: controlled.value,\n setSidebarOpen: controlled.setValue,\n isSidebarCollapsed,\n isAsideHidden,\n scroll: computed(() => props.scroll),\n});\n\nconst slots = useSlots();\n\n/** Whether the rendered children include an `AppShellSidebar`, looking through fragments and `v-for` lists. */\nfunction hasSidebar(nodes: ReadonlyArray<unknown>): boolean {\n return nodes.some((node) => {\n const vnode = node as VNode;\n if ((vnode?.type as { name?: string } | undefined)?.name === 'AppShellSidebar') return true;\n return vnode?.type === Fragment && Array.isArray(vnode.children) && hasSidebar(vnode.children);\n });\n}\n\n/* Read while rendering (the grid style is a render dependency), so the slot call is tracked and warning-free,\n and the server renders the same grid the client hydrates. */\nconst navigation = computed<AppShellNavigation>(\n () =>\n props.navigation ??\n (hasSidebar(slots.default?.() ?? []) ? AppShellNavigation.Vertical : AppShellNavigation.Horizontal),\n);\n\n/**\n * Collapsed drops the sidebar track entirely; header and footer always span the full width. The content column is\n * `minmax(0, 1fr)`: a bare `1fr` keeps an `auto` minimum, so a wide header nav or table would widen the whole shell.\n */\nconst gridTemplate = computed(() =>\n isSidebarCollapsed.value || navigation.value === AppShellNavigation.Horizontal\n ? `'header' auto 'main' 1fr 'footer' auto / minmax(0, 1fr)`\n : `'header header' auto 'sidebar main' 1fr 'sidebar footer' auto / ${props.sidebarWidth} minmax(0, 1fr)`,\n);\n\n/* A region shell owns the viewport: its rows fill the window exactly and only the main region scrolls. */\nconst classes = computed(() =>\n cn(\n 'grid bg-background text-foreground',\n props.scroll === AppShellScroll.Region ? 'h-dvh overflow-hidden' : 'min-h-svh',\n attrs.class as string | undefined,\n ),\n);\n\n/** `gridTemplate` is normalized first so a caller's `style` still wins per-property. */\nconst rootStyle = computed(() => normalizeStyle([{ gridTemplate: gridTemplate.value }, attrs.style]));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :style=\"rootStyle\" :class=\"classes\">\n <a\n href=\"#app-shell-main\"\n class=\"sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-modal focus:rounded-md focus:bg-card focus:px-3 focus:py-2 focus:shadow\"\n >\n {{ locale.t('AppShell.skipToContent', undefined, 'Skip to content') }}\n </a>\n <slot />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_toDisplayString","_unref","_renderSlot"],"mappings":";;;;;;;;;AAIO,MAAM,aAAa;AAAA;AAAA,EAExB,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,KAAK;AACP;AAKO,MAAM,iBAAiB;AAAA;AAAA,EAE5B,QAAQ;AAAA;AAAA,EAER,UAAU;AACZ;AAKO,MAAM,qBAAqB;AAAA;AAAA,EAEhC,UAAU;AAAA;AAAA,EAEV,YAAY;AACd;AAIA,MAAM,eAA2C;AAAA,EAC/C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;AAwBO,MAAM,qBAAyD,OAAO,kBAAkB;AAExF,SAAS,qBAA2C;AACzD,QAAM,UAAU,OAAO,oBAAoB,IAAI;AAC/C,MAAI,CAAC,QAAS,OAAM,IAAI,MAAM,2CAA2C;AACzE,SAAO;AACT;AAGO,SAAS,cAAoC;AAClD,SAAO,mBAAA;AACT;;;;;;;;;;;;;;;;AA2CA,UAAM,SAAS,UAAA;AAkBf,UAAM,QAAQ;AAWd,UAAM,OAAO;AAKb,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA+B,IAAI;AAE9C,UAAM,aAAa,cAAuB;AAAA,MACxC,YAAY,MAAM,MAAM;AAAA,MACxB,SAAS,MAAM,MAAM;AAAA,MACrB,UAAU,CAAC,UAAU;AACnB,aAAK,sBAAsB,KAAK;AAAA,MAClC;AAAA,IAAA,CACD;AAED,UAAM,gB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K,CAAC,CAAC;AAGpG,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,OAAO,QAAQ,GAAG,WAAW;AACpD,aAAO;AAAA,IACT,CAAC;AAED,aAAa,EAAE,IAAI;;AAIjB,aAAAA,UAAA,GAAAC,mBAQM,OARNC,WAQM;AAAA,iBARG;AAAA,QAAJ,KAAI;AAAA,MAAA,GAAa,KAAA,OAAI;AAAA,QAAG,OAAO,UAAA;AAAA,QAAY,OAAO,QAAA;AAAA,MAAA;QACrDC,mBAKI,KALJ,YAKIC,gBADCC,cAAO,4BAA4B,QAAS,iBAAA,CAAA,GAAA,CAAA;AAAA,QAEjDC,WAAQ,KAAA,QAAA,SAAA;AAAA,MAAA;;;;"}
1
+ {"version":3,"file":"AppShell.vue.js","sources":["../../../../src/presentation/layout/appShell/AppShell.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { inject, type ComputedRef, type InjectionKey, type Ref } from 'vue';\n\n/** Defines the responsive breakpoint at which `AppShell` collapses its sidebar / aside. */\nexport const Breakpoint = {\n /** Refers to the `sm` (640px) breakpoint. */\n Sm: 'sm',\n /** Refers to the `md` (768px) breakpoint. */\n Md: 'md',\n /** Refers to the `lg` (1024px) breakpoint. */\n Lg: 'lg',\n /** Refers to the `xl` (1280px) breakpoint. */\n Xl: 'xl',\n /** Refers to the `2xl` (1536px) breakpoint. */\n Xxl: '2xl',\n} as const;\n\nexport type Breakpoint = (typeof Breakpoint)[keyof typeof Breakpoint];\n\n/** Defines what scrolls inside an `AppShell`. */\nexport const AppShellScroll = {\n /** The main region scrolls; the header, sidebar and footer span the full window and hold still. */\n Region: 'region',\n /** The whole document scrolls, as a page does; the header sticks to the top. */\n Document: 'document',\n} as const;\n\nexport type AppShellScroll = (typeof AppShellScroll)[keyof typeof AppShellScroll];\n\n/** Defines where an `AppShell` places its navigation. */\nexport const AppShellNavigation = {\n /** A sidebar rail beside the main region. */\n Vertical: 'vertical',\n /** A top bar only; the main region takes the full width. */\n Horizontal: 'horizontal',\n} as const;\n\nexport type AppShellNavigation = (typeof AppShellNavigation)[keyof typeof AppShellNavigation];\n\nconst BreakpointPx: Record<Breakpoint, number> = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n};\n\n/**\n * The value shared with `AppShellSidebar` / `AppShellAside`.\n *\n * React's context held plain values re-created on every render behind a\n * `useMemo`; here every field stays a ref or a computed, so a child reads the\n * live value and the root never re-renders to publish one.\n */\nexport interface AppShellContextValue {\n sidebarWidth: ComputedRef<string>;\n asideWidth: ComputedRef<string>;\n sidebarBreakpoint: ComputedRef<Breakpoint>;\n /** The resolved mobile-sidebar open state. Writable — an assignment routes through `setSidebarOpen`. */\n isSidebarOpen: Ref<boolean>;\n setSidebarOpen: (open: boolean) => void;\n /** True below `sidebarBreakpoint` — the sidebar renders as a `Drawer`. */\n isSidebarCollapsed: ComputedRef<boolean>;\n /** True below `asideBreakpoint` — the aside renders nothing. */\n isAsideHidden: ComputedRef<boolean>;\n /** What scrolls — the regions size and pin themselves by it. */\n scroll: ComputedRef<AppShellScroll>;\n}\n\nexport const appShellContextKey: InjectionKey<AppShellContextValue> = Symbol('wow-two.appShell');\n\nexport function useAppShellContext(): AppShellContextValue {\n const context = inject(appShellContextKey, null);\n if (!context) throw new Error('AppShell.* must be used inside <AppShell>');\n return context;\n}\n\n/** Reads the enclosing `AppShell`'s state — widths, breakpoint, and the mobile-sidebar toggle. */\nexport function useAppShell(): AppShellContextValue {\n return useAppShellContext();\n}\n\n/** Controlled axes use their canonical Vue model names; each update event requests caller state. */\nexport interface AppShellProps {\n /** The sidebar column width, any CSS length. Default `240px`. */\n readonly sidebarWidth?: string;\n\n /** The aside rail width, any CSS length. Default `280px`. */\n readonly asideWidth?: string;\n\n /** The sidebar collapses below this breakpoint. Default `lg`. */\n readonly sidebarBreakpoint?: Breakpoint;\n\n /** The aside hides below this breakpoint. Default `xl`. */\n readonly asideBreakpoint?: Breakpoint;\n\n /** The mobile-sidebar open state, controlled. The `v-model:sidebarOpen` binding target. */\n readonly sidebarOpen?: boolean;\n\n /** The initial mobile-sidebar state when uncontrolled. Default `false`. */\n readonly defaultSidebarOpen?: boolean;\n\n /**\n * What scrolls. Default `region`: the main region scrolls, so the header spans the full window even where the\n * platform draws a classic scrollbar. `document` scrolls the page, for long public pages with a closing footer.\n */\n readonly scroll?: AppShellScroll;\n\n /**\n * Where the navigation sits. Omit it and the shell reads its children: an `AppShellSidebar` makes it\n * `vertical`, none makes it `horizontal`, so a top-bar app never reserves an empty sidebar column.\n */\n readonly navigation?: AppShellNavigation;\n\n /** The skip link's text. Default `\"Skip to content\"`, localized. */\n readonly skipToContentLabel?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, Fragment, normalizeStyle, provide, useAttrs, useSlots, useTemplateRef, type VNode } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { useMediaQuery } from '../../../foundation/device';\n\nconst locale = useLocale();\n\n/**\n * Renders the top-level page frame. Children: `AppShellHeader` / `AppShellSidebar` /\n * `AppShellMain` / `AppShellAside` / `AppShellFooter`. CSS-grid layout; the\n * sidebar collapses to a `Drawer` below `sidebarBreakpoint`.\n */\ndefineOptions({ name: 'AppShell', inheritAttrs: false });\n\n/** The shell's regions — React's required `children`. */\ndefineSlots<{ default(): unknown }>();\n\n/**\n * `sidebarOpen: undefined` / `sidebarOpen: undefined` are load-bearing: Vue\n * coerces an absent `Boolean` prop to `false` unless the declaration *owns* a\n * `default` key, which would strand the uncontrolled path behind a\n * permanently-closed controlled one.\n */\nconst props = withDefaults(defineProps<AppShellProps>(), {\n sidebarWidth: '240px',\n asideWidth: '280px',\n sidebarBreakpoint: 'lg',\n asideBreakpoint: 'xl',\n sidebarOpen: undefined,\n defaultSidebarOpen: false,\n scroll: AppShellScroll.Region,\n navigation: undefined,\n skipToContentLabel: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the mobile sidebar opens or closes — the `v-model:sidebarOpen` half. */\n 'update:sidebarOpen': [open: boolean];\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.sidebarOpen,\n default: () => props.defaultSidebarOpen,\n onChange: (value) => {\n emit('update:sidebarOpen', value);\n },\n});\n\nconst isSidebarWide = useMediaQuery(() => `(min-width: ${BreakpointPx[props.sidebarBreakpoint]}px)`);\nconst isAsideWide = useMediaQuery(() => `(min-width: ${BreakpointPx[props.asideBreakpoint]}px)`);\n\nconst isSidebarCollapsed = computed(() => !isSidebarWide.value);\nconst isAsideHidden = computed(() => !isAsideWide.value);\n\nprovide(appShellContextKey, {\n sidebarWidth: computed(() => props.sidebarWidth),\n asideWidth: computed(() => props.asideWidth),\n sidebarBreakpoint: computed(() => props.sidebarBreakpoint),\n isSidebarOpen: controlled.value,\n setSidebarOpen: controlled.setValue,\n isSidebarCollapsed,\n isAsideHidden,\n scroll: computed(() => props.scroll),\n});\n\nconst slots = useSlots();\n\n/** Whether the rendered children include an `AppShellSidebar`, looking through fragments and `v-for` lists. */\nfunction hasSidebar(nodes: ReadonlyArray<unknown>): boolean {\n return nodes.some((node) => {\n const vnode = node as VNode;\n if ((vnode?.type as { name?: string } | undefined)?.name === 'AppShellSidebar') return true;\n return vnode?.type === Fragment && Array.isArray(vnode.children) && hasSidebar(vnode.children);\n });\n}\n\n/* Read while rendering (the grid style is a render dependency), so the slot call is tracked and warning-free,\n and the server renders the same grid the client hydrates. */\nconst navigation = computed<AppShellNavigation>(\n () =>\n props.navigation ??\n (hasSidebar(slots.default?.() ?? []) ? AppShellNavigation.Vertical : AppShellNavigation.Horizontal),\n);\n\n/**\n * Collapsed drops the sidebar track entirely; header and footer always span the full width. The content column is\n * `minmax(0, 1fr)`: a bare `1fr` keeps an `auto` minimum, so a wide header nav or table would widen the whole shell.\n */\nconst gridTemplate = computed(() =>\n isSidebarCollapsed.value || navigation.value === AppShellNavigation.Horizontal\n ? `'header' auto 'main' 1fr 'footer' auto / minmax(0, 1fr)`\n : `'header header' auto 'sidebar main' 1fr 'sidebar footer' auto / ${props.sidebarWidth} minmax(0, 1fr)`,\n);\n\n/* A region shell owns the viewport: its rows fill the window exactly and only the main region scrolls. */\nconst classes = computed(() =>\n cn(\n 'grid bg-background text-foreground',\n props.scroll === AppShellScroll.Region ? 'h-dvh overflow-hidden' : 'min-h-svh',\n attrs.class as string | undefined,\n ),\n);\n\n/** `gridTemplate` is normalized first so a caller's `style` still wins per-property. */\nconst rootStyle = computed(() => normalizeStyle([{ gridTemplate: gridTemplate.value }, attrs.style]));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :style=\"rootStyle\" :class=\"classes\">\n <a\n href=\"#app-shell-main\"\n class=\"sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-modal focus:rounded-md focus:bg-card focus:px-3 focus:py-2 focus:shadow\"\n >\n {{ props.skipToContentLabel ?? locale.t('AppShell.skipToContent', undefined, 'Skip to content') }}\n </a>\n <slot />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_toDisplayString","_unref","_renderSlot"],"mappings":";;;;;;;;;AAIO,MAAM,aAAa;AAAA;AAAA,EAExB,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,KAAK;AACP;AAKO,MAAM,iBAAiB;AAAA;AAAA,EAE5B,QAAQ;AAAA;AAAA,EAER,UAAU;AACZ;AAKO,MAAM,qBAAqB;AAAA;AAAA,EAEhC,UAAU;AAAA;AAAA,EAEV,YAAY;AACd;AAIA,MAAM,eAA2C;AAAA,EAC/C,IAAI;AAAA,EACJ,IAAI;A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— components, application adapters and browser capabilities.",
5
5
  "license": "MIT",
6
6
  "repository": {