@wow-two-beta/fe 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/auth/AuthBridge.d.ts +15 -0
  2. package/dist/auth/index.d.ts +1 -1
  3. package/dist/auth/index.js +47 -8
  4. package/dist/auth/index.js.map +1 -1
  5. package/dist/auth/providers/AuthProvider.vue.d.ts +1 -1
  6. package/dist/chunks/{SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js → AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js} +641 -226
  7. package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +1 -0
  8. package/dist/chunks/Breakpoints-CltjxN0E.js +32 -0
  9. package/dist/chunks/Breakpoints-CltjxN0E.js.map +1 -0
  10. package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js → DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js} +4 -12
  11. package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map +1 -0
  12. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js} +2 -2
  13. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map} +1 -1
  14. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js → LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js} +71 -477
  15. package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map +1 -0
  16. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +44 -0
  17. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +1 -0
  18. package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js} +2 -2
  19. package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js.map} +1 -1
  20. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-vfxAeyB7.js → MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js} +197 -130
  21. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +1 -0
  22. package/dist/chunks/OverlayChrome-BqRpuYX5.js +13 -0
  23. package/dist/chunks/OverlayChrome-BqRpuYX5.js.map +1 -0
  24. package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js +429 -0
  25. package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map +1 -0
  26. package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js → PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js} +2 -43
  27. package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map +1 -0
  28. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js} +2 -1
  29. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js.map → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map} +1 -1
  30. package/dist/feedback/FeedbackQueryErrors.d.ts +4 -3
  31. package/dist/feedback/FeedbackSessionExpiry.d.ts +5 -0
  32. package/dist/feedback/index.d.ts +1 -0
  33. package/dist/feedback/index.js +13 -1
  34. package/dist/feedback/index.js.map +1 -1
  35. package/dist/foundation/device/index.js +3 -27
  36. package/dist/foundation/device/index.js.map +1 -1
  37. package/dist/foundation/http/CreateApiClient.d.ts +1 -0
  38. package/dist/foundation/http/index.js +5 -1
  39. package/dist/foundation/http/index.js.map +1 -1
  40. package/dist/index.js +220 -216
  41. package/dist/index.js.map +1 -1
  42. package/dist/presentation/feedback/index.js +2 -2
  43. package/dist/presentation/feedback/toastHost/index.js +1 -1
  44. package/dist/presentation/forms/OptionCollection.d.ts +24 -0
  45. package/dist/presentation/forms/index.js +2 -2
  46. package/dist/presentation/forms/multiSelectPicker/MultiSelectPicker.vue.d.ts +3 -4
  47. package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +3 -5
  48. package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +4 -0
  49. package/dist/presentation/forms/selectPicker/SelectPicker.vue.d.ts +5 -8
  50. package/dist/presentation/forms/selectPicker/SelectPickerContext.d.ts +6 -2
  51. package/dist/presentation/layout/index.js +1 -1
  52. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +81 -0
  53. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuExtensions.d.ts +8 -0
  54. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuPanel.vue.d.ts +25 -0
  55. package/dist/presentation/nav/appSwitcherMenu/index.d.ts +1 -0
  56. package/dist/presentation/nav/index.d.ts +1 -0
  57. package/dist/presentation/nav/index.js +72 -70
  58. package/dist/presentation/overlays/index.js +55 -54
  59. package/dist/presentation/overlays/index.js.map +1 -1
  60. package/dist/router/adapters/vueRouter/Guards.d.ts +6 -1
  61. package/dist/router/adapters/vueRouter/index.d.ts +1 -1
  62. package/dist/router/index.js +8 -0
  63. package/dist/router/index.js.map +1 -1
  64. package/package.json +1 -1
  65. package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js.map +0 -1
  66. package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js.map +0 -1
  67. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-vfxAeyB7.js.map +0 -1
  68. package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js.map +0 -1
  69. package/dist/chunks/SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js.map +0 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
- import { D, _, a, b, T, t, u } from "../../chunks/ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js";
2
- import { _ as _2, a as a2, b as b2, c, d, e, f, D as D2, g, h, i, j, k, l, m, n, o, P, p, q, r, s, t as t2, u as u2, v, w, x, y, z, T as T2, A, B, C, E, F, G, H } from "../../chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js";
1
+ import { D, _, a, b, T, t, u } from "../../chunks/ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js";
2
+ import { _ as _2, a as a2, b as b2, c, d, e, f, D as D2, g, h, i, j, k, l, m, n, o, P, p, q, r, s, t as t2, u as u2, v, w, x, y, z, T as T2, A, B, C, E, F, G, H } from "../../chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js";
3
3
  import { _ as _3 } from "../../chunks/FieldErrorCallout.vue_vue_type_script_setup_true_lang-BRcaaXCd.js";
4
4
  import { _ as _4, R, t as t3 } from "../../chunks/ReportAction.vue_vue_type_script_setup_true_lang-l4DjtcpM.js";
5
5
  import { _ as _5, S, s as s2 } from "../../chunks/Spinner.vue_vue_type_script_setup_true_lang-CPor3q8_.js";
@@ -1,4 +1,4 @@
1
- import { D, a, T, t, u } from "../../../chunks/ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js";
1
+ import { D, a, T, t, u } from "../../../chunks/ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js";
2
2
  export {
3
3
  D as DefaultToastDurations,
4
4
  a as ToastHost,
@@ -0,0 +1,24 @@
1
+ /** Reports whether an option renders inside a closed picker's collection: it registers and renders nothing. */
2
+ export declare function useOptionCollection(): boolean;
3
+ /**
4
+ * Mounts a closed picker's option slot into a detached element, so each option registers its label before
5
+ * the first open. The panel unmounts its rows while closed, which left the trigger with the raw key.
6
+ *
7
+ * Client-only: the server render and the hydration pass render nothing here. The collection is best-effort,
8
+ * so an option subtree that cannot render outside its panel stops the collection instead of the page.
9
+ */
10
+ export declare const OptionCollection: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ /** Renders the slot into the detached element while true; the picker passes its closed state. */
12
+ isActive: {
13
+ type: BooleanConstructor;
14
+ required: true;
15
+ };
16
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
17
+ [key: string]: any;
18
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ /** Renders the slot into the detached element while true; the picker passes its closed state. */
20
+ isActive: {
21
+ type: BooleanConstructor;
22
+ required: true;
23
+ };
24
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,8 +1,8 @@
1
- import { A, _, B, a, b, C, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, a7 as a72, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_ } from "../../chunks/MentionInput.vue_vue_type_script_setup_true_lang-vfxAeyB7.js";
1
+ import { A, _, B, a, b, C, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, a7 as a72, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_ } from "../../chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js";
2
2
  import { _ as _2 } from "../../chunks/PointControl.vue_vue_type_script_setup_true_lang-akWl2-sE.js";
3
3
  import { _ as _3, C as C2 } from "../../chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js";
4
4
  import { ImageEditRecipeExtensions } from "../../domain/imageEditing/index.js";
5
- import { L as L2 } from "../../chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js";
5
+ import { L as L2 } from "../../chunks/ListboxPicker.variants-hiMcl66_.js";
6
6
  export {
7
7
  A as AddressCountries,
8
8
  _ as AddressEditor,
@@ -19,11 +19,10 @@ export interface MultiSelectPickerProps {
19
19
  /** The floating placement of the dropdown. */
20
20
  readonly placement?: Placement;
21
21
  /**
22
- * Resolves a chip label for a value whose row has not mounted yet — `null` when unknown.
22
+ * Resolves a chip label for a value no row carries, and for the server render — `null` when unknown.
23
23
  *
24
- * `MultiSelectPickerItem` registers its label only while the panel is open, so a preselected
25
- * value renders as its raw key until the first open. Supply this (or open the panel) to
26
- * label a closed trigger. The mirror of `SelectPicker`'s prop of the same name.
24
+ * A closed panel mounts its `MultiSelectPickerItem` rows off-document, so rows already label a
25
+ * preselected value before the first open. The mirror of `SelectPicker`'s prop of the same name.
27
26
  */
28
27
  readonly getOptionLabel?: (value: string) => string | number | null;
29
28
  }
@@ -25,12 +25,10 @@ export interface MultiSelectPickerContextValue {
25
25
  registerLabel: (value: string, label: string | number) => void;
26
26
  unregisterLabel: (value: string) => void;
27
27
  /**
28
- * Resolves a chip label for a value the registry has never seen — `null` when it cannot.
28
+ * Resolves a chip label for a value no row carries, and for the server render — `null` when it cannot.
29
29
  *
30
- * Rows only register while the panel is mounted, so a preselected value has no registered
31
- * label until the dropdown has been opened once and the trigger shows the raw key. Same
32
- * gap `SelectPicker` closes with `getOptionLabel`; this is that escape hatch, and the registry
33
- * still wins where it has an entry.
30
+ * A closed panel mounts its rows off-document, so rows label a preselected value before the first
31
+ * open; the registry wins where it has an entry.
34
32
  */
35
33
  getOptionLabel: (value: string) => string | number | null;
36
34
  readonly isDisabled: boolean;
@@ -7,6 +7,10 @@ export interface PasswordInputProps extends /* @vue-ignore */ NativeInputAttribu
7
7
  readonly state?: InputState;
8
8
  /** The visibility-toggle button's presence. Default true. */
9
9
  readonly hasToggle?: boolean;
10
+ /** The toggle's name while the password is hidden. Default `"Show password"`, localized. */
11
+ readonly revealLabel?: string;
12
+ /** The toggle's name while the password is visible. Default `"Hide password"`, localized. */
13
+ readonly concealLabel?: string;
10
14
  /** The value, controlled. The `v-model` binding target. */
11
15
  readonly modelValue?: string | number;
12
16
  /** The initial value when uncontrolled. */
@@ -25,15 +25,12 @@ export interface SelectPickerProps<K, V = K> {
25
25
  readonly name?: string;
26
26
  /** The key serializer for the hidden form input; defaults to `String(key)`. */
27
27
  readonly serializeKey?: (key: K) => string;
28
- /** The label resolver for a `modelValue`/`defaultValue` before items register
29
- * (the trigger otherwise shows the raw serialized key until the first open). */
28
+ /** The label resolver for a key no option carries, and for the server render; options win when present.
29
+ * Slotted `SelectPickerItem`s label a closed trigger on their own. */
30
30
  readonly getOptionLabel?: (key: K) => string | number | null;
31
- /** The option set seeded eagerly into the item registry + label cache on mount — before the
32
- * popover ever opens. Lets `SelectPickerValue` resolve the selected label and closed-trigger
33
- * typeahead work without a first open, so `getOptionLabel` is unnecessary. Compound
34
- * `<SelectPickerItem>` children still render the list and remain fully supported; `options` is an
35
- * alternative/supplement. When both supply the same key, the mounted child wins (deduped via
36
- * `keyEquals`). Each entry mirrors what a `SelectPickerItem` registers. */
31
+ /** The option set seeded into the item registry + label cache on mount, server render included.
32
+ * `<SelectPickerItem>` children still render the list; a mounted child wins on a shared key (via
33
+ * `keyEquals`). When it labels the selection, the closed panel skips its off-document item mount. */
37
34
  readonly options?: ReadonlyArray<SelectPickerOption<K, V>>;
38
35
  /** The invalid state, styling the trigger as invalid (red border, error ring). */
39
36
  readonly isInvalid?: boolean;
@@ -42,9 +42,13 @@ export interface SelectPickerContextValue {
42
42
  onSelect: (entry: ItemRegistryEntry) => void;
43
43
  onClear: () => void;
44
44
  readonly keyEquals: EqualityComparer<unknown>;
45
+ /** The registered options, one per key. A closed panel's options register from an off-document collection. */
45
46
  readonly items: ReadonlyArray<ItemRegistryEntry>;
46
- registerItem: (entry: ItemRegistryEntry) => void;
47
- unregisterItem: (itemKey: unknown) => void;
47
+ /** Registers or replaces the entry of one mounted option; `owner` identifies the option instance. */
48
+ registerItem: (owner: symbol, entry: ItemRegistryEntry) => void;
49
+ unregisterItem: (owner: symbol) => void;
50
+ /** Reports whether a closed panel mounts its options off-document — false when `options` labels the selection. */
51
+ readonly needsOptionCollection: boolean;
48
52
  /** Resolves a label last seen for a key from the persistent cache (survives unmount). */
49
53
  getCachedLabel: (key: unknown) => string | number | undefined;
50
54
  readonly query: string;
@@ -1,4 +1,4 @@
1
- import { _, A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, B, p, C, q, r, s, t, u, v, w, x, F, y, G, z, D, E, H, I, J, N, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae } from "../../chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js";
1
+ import { _, A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, B, p, C, q, r, s, t, u, v, w, x, F, y, G, z, D, E, H, I, J, N, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae } from "../../chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js";
2
2
  import { _ as _2, a as a10, S as S2, b as b2, c as c2, d as d2, s as s2 } from "../../chunks/StackLayout.vue_vue_type_script_setup_true_lang-DuAFfjSc.js";
3
3
  import { _ as _3, I as I2 } from "../../chunks/InlineLayout.vue_vue_type_script_setup_true_lang-c_IaJYJj.js";
4
4
  import { _ as _4 } from "../../chunks/PageHeader.vue_vue_type_script_setup_true_lang-DdwVPgFR.js";
@@ -0,0 +1,81 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { IconAdapter } from '../../../foundation/icons';
3
+ import { SurfaceVariant } from '../../../foundation/styles';
4
+ import { Breakpoint } from '../../layout/appShell/AppShell.vue';
5
+ /** Defines which group of an `AppSwitcherMenu` a destination joins. */
6
+ export declare const AppSwitcherKind: {
7
+ /** Refers to a workspace app — a tile that opens in the same tab. */
8
+ readonly App: "app";
9
+ /** Refers to a public site — a link under the divider that opens in a new tab. */
10
+ readonly Site: "site";
11
+ };
12
+ export type AppSwitcherKind = (typeof AppSwitcherKind)[keyof typeof AppSwitcherKind];
13
+ /** Represents one destination in an `AppSwitcherMenu`. */
14
+ export interface AppSwitcherItem {
15
+ /** The stable identity; `current` names the open app by it. */
16
+ readonly key: string;
17
+ /** The app or site name, already translated. */
18
+ readonly label: string;
19
+ /** One line under an app's label naming what it is for. */
20
+ readonly description?: string;
21
+ /** The address: an absolute HTTPS URL without credentials, query or fragment, else the menu drops the item. */
22
+ readonly href: string;
23
+ /** An app tile's glyph. Default the label's first character. */
24
+ readonly icon?: IconAdapter;
25
+ /** The group — `app` tiles or `site` links. */
26
+ readonly kind: AppSwitcherKind;
27
+ }
28
+ /** Defines props for the control that names the current app and opens the others. */
29
+ export interface AppSwitcherMenuProps<T extends AppSwitcherItem = AppSwitcherItem> {
30
+ /** Every destination, in display order; each group keeps this order. */
31
+ readonly items: ReadonlyArray<T>;
32
+ /** The key of the open app or site; that entry renders as the current marker. */
33
+ readonly current: string;
34
+ /** The app name on the trigger. Default the current item's label, else `title`. */
35
+ readonly label?: string;
36
+ /** A second line on the trigger — the organisation or workspace. Hidden below `breakpoint`. */
37
+ readonly subtitle?: string;
38
+ /** The open state, controlled. The `v-model:open` binding target. */
39
+ readonly open?: boolean;
40
+ /** The initial open state when uncontrolled. Default `false`. */
41
+ readonly defaultOpen?: boolean;
42
+ /** From this breakpoint up the menu is a popover; below it, a dialog. Default `md`. */
43
+ readonly breakpoint?: Breakpoint;
44
+ /** The menu heading. Default `"Apps"`, localized. */
45
+ readonly title?: string;
46
+ /** The sites group heading. Default `"Sites"`, localized. */
47
+ readonly sitesLabel?: string;
48
+ /** The dialog's close button name. Default `"Close"`, localized. */
49
+ readonly closeLabel?: string;
50
+ /** The screen-reader text after each site link. Default `"(opens in a new tab)"`, localized. */
51
+ readonly newTabLabel?: string;
52
+ /** The trigger's accessible name; `{app}` becomes the app name. Default `"{app} — switch app"`, localized. */
53
+ readonly triggerLabel?: string;
54
+ /** The panel's surface recipe — `glass` or `glass-outline` for translucent chrome. Default the overlay's own. */
55
+ readonly variant?: SurfaceVariant;
56
+ /** The popover and dialog panel class — the hook for an app's own material. */
57
+ readonly panelClass?: HTMLAttributes['class'];
58
+ }
59
+ declare const _default: <T extends AppSwitcherItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
60
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
61
+ readonly onSelect?: ((item: T, event: MouseEvent) => any) | undefined;
62
+ readonly "onUpdate:open"?: ((open: boolean) => any) | undefined;
63
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:open"> & AppSwitcherMenuProps<T> & Partial<{}>> & import('vue').PublicProps;
64
+ expose(exposed: import('vue').ShallowUnwrapRef<{
65
+ el: import('vue').ComputedRef<HTMLElement | null>;
66
+ }>): void;
67
+ attrs: any;
68
+ slots: {
69
+ /** The brand mark at the trigger's start. Default a grid glyph on the primary colour. */
70
+ mark?(props: {
71
+ current: T | undefined;
72
+ }): unknown;
73
+ };
74
+ emit: ((evt: "select", item: T, event: MouseEvent) => void) & ((evt: "update:open", open: boolean) => void);
75
+ }>) => import('vue').VNode & {
76
+ __ctx?: Awaited<typeof __VLS_setup>;
77
+ };
78
+ export default _default;
79
+ type __VLS_PrettifyLocal<T> = {
80
+ [K in keyof T]: T[K];
81
+ } & {};
@@ -0,0 +1,8 @@
1
+ /** Extends `appSwitcherMenu/` with the destination check its menu applies to every href. */
2
+ export declare const AppSwitcherMenuExtensions: {
3
+ /**
4
+ * The href as a plain absolute HTTPS URL, else `null`. Credentials, a query or a fragment could carry a token
5
+ * from configuration into another app's address bar and history, so each one rejects the href.
6
+ */
7
+ readonly toSafeHref: (href: string) => string | null;
8
+ };
@@ -0,0 +1,25 @@
1
+ import { AppSwitcherItem } from './AppSwitcherMenu.vue';
2
+ /**
3
+ * @internal Defines props for the app switcher's body, shared by its popover and its phone dialog. The owner
4
+ * passes destinations already split by kind, with checked hrefs.
5
+ */
6
+ export interface AppSwitcherMenuPanelProps {
7
+ /** The workspace apps, drawn as tiles. */
8
+ readonly apps: ReadonlyArray<AppSwitcherItem>;
9
+ /** The public sites, drawn as new-tab links under a divider. */
10
+ readonly sites: ReadonlyArray<AppSwitcherItem>;
11
+ /** The key of the open app or site. */
12
+ readonly current: string;
13
+ /** The sites group heading. */
14
+ readonly sitesLabel: string;
15
+ /** The screen-reader text after each new-tab link. */
16
+ readonly newTabLabel: string;
17
+ }
18
+ declare const _default: import('vue').DefineComponent<AppSwitcherMenuPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ select: (item: AppSwitcherItem, event: MouseEvent) => any;
20
+ close: () => any;
21
+ }, string, import('vue').PublicProps, Readonly<AppSwitcherMenuPanelProps> & Readonly<{
22
+ onSelect?: ((item: AppSwitcherItem, event: MouseEvent) => any) | undefined;
23
+ onClose?: (() => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as AppSwitcherMenu, AppSwitcherKind, type AppSwitcherItem, type AppSwitcherMenuProps, } from './AppSwitcherMenu.vue';
@@ -11,3 +11,4 @@ export * from './tableOfContents';
11
11
  export * from './linkItem';
12
12
  export * from './bottomNavMenu';
13
13
  export * from './sidebarMenu';
14
+ export * from './appSwitcherMenu';
@@ -1,77 +1,79 @@
1
- import { _, a, b, c, d, e, f, g, h, i, L, j, k, l, m, n, M, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, N, O, P, Q, S, R, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag } from "../../chunks/SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js";
1
+ import { A, _, a, b, c, d, e, f, g, h, i, j, L, k, l, m, n, o, M, p, q, r, s, t, u, v, w, x, y, z, B, C, D, E, F, G, H, I, J, K, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai } from "../../chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js";
2
2
  import { _ as _2 } from "../../chunks/NavItem.vue_vue_type_script_setup_true_lang-qaoe6djs.js";
3
3
  export {
4
- _ as BottomNavMenu,
5
- a as BottomNavMenuItem,
6
- b as Breadcrumb,
7
- c as ContextMenu,
8
- d as ContextMenuContent,
9
- e as ContextMenuTrigger,
10
- f as DropdownMenu,
11
- g as DropdownMenuContent,
12
- h as DropdownMenuTrigger,
13
- i as LinkItem,
4
+ A as AppSwitcherKind,
5
+ _ as AppSwitcherMenu,
6
+ a as BottomNavMenu,
7
+ b as BottomNavMenuItem,
8
+ c as Breadcrumb,
9
+ d as ContextMenu,
10
+ e as ContextMenuContent,
11
+ f as ContextMenuTrigger,
12
+ g as DropdownMenu,
13
+ h as DropdownMenuContent,
14
+ i as DropdownMenuTrigger,
15
+ j as LinkItem,
14
16
  L as LinkItemSize,
15
- j as LinkItemVariant,
16
- k as Menu,
17
- l as MenuCheckboxItem,
18
- m as MenuGroup,
19
- n as MenuItem,
17
+ k as LinkItemVariant,
18
+ l as Menu,
19
+ m as MenuCheckboxItem,
20
+ n as MenuGroup,
21
+ o as MenuItem,
20
22
  M as MenuItemState,
21
- o as MenuKey,
22
- p as MenuLabel,
23
- q as MenuRadioGroup,
24
- r as MenuRadioGroupKey,
25
- s as MenuRadioItem,
26
- t as MenuSeparator,
27
- u as MenuSub,
28
- v as MenuSubContent,
29
- w as MenuSubKey,
30
- x as MenuSubOpenReason,
31
- y as MenuSubTrigger,
32
- z as MenuTreeKey,
33
- A as Menubar,
34
- B as MenubarContent,
35
- C as MenubarMenu,
36
- D as MenubarTrigger,
23
+ p as MenuKey,
24
+ q as MenuLabel,
25
+ r as MenuRadioGroup,
26
+ s as MenuRadioGroupKey,
27
+ t as MenuRadioItem,
28
+ u as MenuSeparator,
29
+ v as MenuSub,
30
+ w as MenuSubContent,
31
+ x as MenuSubKey,
32
+ y as MenuSubOpenReason,
33
+ z as MenuSubTrigger,
34
+ B as MenuTreeKey,
35
+ C as Menubar,
36
+ D as MenubarContent,
37
+ E as MenubarMenu,
38
+ F as MenubarTrigger,
37
39
  _2 as NavItem,
38
- E as NavigationMenu,
39
- F as NavigationMenuContent,
40
- G as NavigationMenuItem,
41
- H as NavigationMenuLink,
42
- I as NavigationMenuList,
43
- J as NavigationMenuTrigger,
44
- K as Pagination,
45
- N as ScrollSpy,
46
- O as SidebarMenu,
47
- P as SidebarMenuGroup,
48
- Q as SidebarMenuItem,
49
- S as SidebarMenuKey,
50
- R as SidebarMenuSection,
51
- T as TableOfContents,
52
- U as contextMenuContextKey,
53
- V as dropdownMenuContextKey,
54
- W as linkVariants,
55
- X as menuItemIndicatorVariants,
56
- Y as menuItemVariants,
57
- Z as menuLabelVariants,
58
- $ as menuSeparatorVariants,
59
- a0 as menuSubIndicatorVariants,
60
- a1 as menuVariants,
61
- a2 as menubarContextKey,
62
- a3 as menubarMenuContextKey,
63
- a4 as navigationMenuContextKey,
64
- a5 as navigationMenuItemContextKey,
65
- a6 as useContextMenuContext,
66
- a7 as useDropdownMenuContext,
67
- a8 as useMenuContext,
68
- a9 as useMenuRadioGroupContext,
69
- aa as useMenuSubContext,
70
- ab as useMenubarContext,
71
- ac as useMenubarMenuContext,
72
- ad as useNavigationMenuContext,
73
- ae as useNavigationMenuItemContext,
74
- af as useScrollSpy,
75
- ag as useSidebarMenuContext
40
+ G as NavigationMenu,
41
+ H as NavigationMenuContent,
42
+ I as NavigationMenuItem,
43
+ J as NavigationMenuLink,
44
+ K as NavigationMenuList,
45
+ N as NavigationMenuTrigger,
46
+ O as Pagination,
47
+ P as ScrollSpy,
48
+ Q as SidebarMenu,
49
+ R as SidebarMenuGroup,
50
+ S as SidebarMenuItem,
51
+ T as SidebarMenuKey,
52
+ U as SidebarMenuSection,
53
+ V as TableOfContents,
54
+ W as contextMenuContextKey,
55
+ X as dropdownMenuContextKey,
56
+ Y as linkVariants,
57
+ Z as menuItemIndicatorVariants,
58
+ $ as menuItemVariants,
59
+ a0 as menuLabelVariants,
60
+ a1 as menuSeparatorVariants,
61
+ a2 as menuSubIndicatorVariants,
62
+ a3 as menuVariants,
63
+ a4 as menubarContextKey,
64
+ a5 as menubarMenuContextKey,
65
+ a6 as navigationMenuContextKey,
66
+ a7 as navigationMenuItemContextKey,
67
+ a8 as useContextMenuContext,
68
+ a9 as useDropdownMenuContext,
69
+ aa as useMenuContext,
70
+ ab as useMenuRadioGroupContext,
71
+ ac as useMenuSubContext,
72
+ ad as useMenubarContext,
73
+ ae as useMenubarMenuContext,
74
+ af as useNavigationMenuContext,
75
+ ag as useNavigationMenuItemContext,
76
+ ah as useScrollSpy,
77
+ ai as useSidebarMenuContext
76
78
  };
77
79
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,10 @@
1
1
  import { P, _ } from "../../chunks/TourPopover.vue_vue_type_script_setup_true_lang-BlajHcdp.js";
2
- import { _ as _2, a, b, c, d, e, f, c as c2, d as d2, e as e2, f as f2, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, h as h2, w, x, i as i2, y, t as t2, u as u2, h as h3, w as w2, x as x2, i as i3, z, A, B, C, D, E, s as s2, t as t3, u as u3, v as v2, h as h4, w as w3, x as x3, M, F, G, i as i4, y as y2, H, I, J, K, L } from "../../chunks/LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js";
2
+ import { _ as _2, a, b, c, d, e, f, c as c2, d as d2, e as e2, f as f2, g, h, i, j, k, l, m, n, o, p, q, r, h as h2, s, t, u, r as r2, h as h3, s as s2, t as t2, v, w, x, y, z, A, r as r3, h as h4, s as s3, t as t3, u as u2, B, C, D, E, F } from "../../chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js";
3
3
  import { _ as _3, B as B2 } from "../../chunks/BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
4
- import { _ as _4, a as a2, D as D2 } from "../../chunks/DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js";
5
- import { _ as _5, a as a3, b as b2 } from "../../chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js";
6
- import { _ as _6 } from "../../chunks/Tooltip.vue_vue_type_script_setup_true_lang-AzuqiFWY.js";
4
+ import { _ as _4, a as a2, b as b2, c as c3, _ as _5, b as b3, _ as _6, a as a3, b as b4, c as c4, M, d as d3, e as e3, _ as _7 } from "../../chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js";
5
+ import { _ as _8, a as a4, D as D2 } from "../../chunks/DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js";
6
+ import { _ as _9, a as a5, b as b5 } from "../../chunks/PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js";
7
+ import { _ as _10 } from "../../chunks/Tooltip.vue_vue_type_script_setup_true_lang-AzuqiFWY.js";
7
8
  export {
8
9
  _2 as ActionSheet,
9
10
  a as ActionSheetAction,
@@ -20,62 +21,62 @@ export {
20
21
  B2 as BackdropOverlayPointerEvents,
21
22
  g as BottomSheet,
22
23
  h as BottomSheetDescription,
23
- i as BottomSheetTitle,
24
- j as CommandPaletteModal,
25
- k as CommandPaletteModalContent,
26
- l as CommandPaletteModalEmpty,
27
- m as CommandPaletteModalGroup,
28
- n as CommandPaletteModalInput,
29
- o as CommandPaletteModalItem,
30
- p as CommandPaletteModalList,
31
- q as CommandPaletteModalSeparator,
32
- r as ConfirmPopover,
33
- s as Dialog,
34
- t as DialogBody,
35
- u as DialogClose,
36
- v as DialogContent,
24
+ _4 as BottomSheetTitle,
25
+ i as CommandPaletteModal,
26
+ j as CommandPaletteModalContent,
27
+ k as CommandPaletteModalEmpty,
28
+ l as CommandPaletteModalGroup,
29
+ m as CommandPaletteModalInput,
30
+ n as CommandPaletteModalItem,
31
+ o as CommandPaletteModalList,
32
+ p as CommandPaletteModalSeparator,
33
+ q as ConfirmPopover,
34
+ a2 as Dialog,
35
+ r as DialogBody,
36
+ b2 as DialogClose,
37
+ c3 as DialogContent,
37
38
  h2 as DialogDescription,
38
- w as DialogFooter,
39
- x as DialogHeader,
40
- i2 as DialogTitle,
41
- y as DialogTrigger,
42
- _4 as Drawer,
43
- t2 as DrawerBody,
44
- u2 as DrawerClose,
45
- a2 as DrawerContent,
39
+ s as DialogFooter,
40
+ t as DialogHeader,
41
+ _5 as DialogTitle,
42
+ u as DialogTrigger,
43
+ _8 as Drawer,
44
+ r2 as DrawerBody,
45
+ b3 as DrawerClose,
46
+ a4 as DrawerContent,
46
47
  h3 as DrawerDescription,
47
- w2 as DrawerFooter,
48
- x2 as DrawerHeader,
48
+ s2 as DrawerFooter,
49
+ t2 as DrawerHeader,
49
50
  D2 as DrawerSize,
50
- i3 as DrawerTitle,
51
- z as DrawerTrigger,
52
- A as HoverCard,
53
- B as HoverCardArrow,
54
- C as HoverCardContent,
55
- D as HoverCardTrigger,
56
- E as LightboxModal,
57
- s2 as Modal,
58
- t3 as ModalBody,
59
- u3 as ModalClose,
60
- v2 as ModalContent,
51
+ _6 as DrawerTitle,
52
+ v as DrawerTrigger,
53
+ w as HoverCard,
54
+ x as HoverCardArrow,
55
+ y as HoverCardContent,
56
+ z as HoverCardTrigger,
57
+ A as LightboxModal,
58
+ a3 as Modal,
59
+ r3 as ModalBody,
60
+ b4 as ModalClose,
61
+ c4 as ModalContent,
61
62
  h4 as ModalDescription,
62
- w3 as ModalFooter,
63
- x3 as ModalHeader,
63
+ s3 as ModalFooter,
64
+ t3 as ModalHeader,
64
65
  M as ModalPhoneLayout,
65
- F as ModalRole,
66
- G as ModalSize,
67
- i4 as ModalTitle,
68
- y2 as ModalTrigger,
66
+ d3 as ModalRole,
67
+ e3 as ModalSize,
68
+ _7 as ModalTitle,
69
+ u2 as ModalTrigger,
69
70
  P as Placement,
70
- _5 as Popover,
71
- H as PopoverArrow,
72
- a3 as PopoverContent,
73
- b2 as PopoverTrigger,
74
- _6 as Tooltip,
71
+ _9 as Popover,
72
+ B as PopoverArrow,
73
+ a5 as PopoverContent,
74
+ b5 as PopoverTrigger,
75
+ _10 as Tooltip,
75
76
  _ as TourPopover,
76
- I as commandPaletteContextKey,
77
- J as defaultFilter,
78
- K as useBottomSheet,
79
- L as useCommandPaletteContext
77
+ C as commandPaletteContextKey,
78
+ D as defaultFilter,
79
+ E as useBottomSheet,
80
+ F as useCommandPaletteContext
80
81
  };
81
82
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, MaybeRefOrGetter } from 'vue';
2
- import { LocationQuery } from 'vue-router';
2
+ import { LocationQuery, Router } from 'vue-router';
3
3
  import { RouteGuard } from './RouteConfig';
4
4
  /** The shapes `resolveReturnTo` reads a `returnTo` out of — a query string, parsed params, or `route.query`. */
5
5
  export type ReturnToSource = URLSearchParams | string | LocationQuery;
@@ -20,6 +20,11 @@ export declare function requireAuth(isAuthenticated: () => boolean | Promise<boo
20
20
  * `from` accepts a full URL or a root-relative `fullPath`.
21
21
  */
22
22
  export declare function buildReturnTo(loginPath: string, from: string): string;
23
+ /**
24
+ * Creates a `bridge.subscribeExpired` listener that replaces the current route with `{loginPath}?returnTo=…`.
25
+ * Reads the router's own location, so a base path and memory history stay correct; restore with `useReturnTo`.
26
+ */
27
+ export declare function signInRedirect(router: Pick<Router, 'currentRoute' | 'replace'>, loginPath?: string): () => void;
23
28
  /** Resolves the safe same-origin return path from a `returnTo` param, rejecting open-redirect targets → `fallback`. */
24
29
  export declare function resolveReturnTo(search: ReturnToSource, fallback?: string): string;
25
30
  /**
@@ -16,7 +16,7 @@ export { useRouteNavigating } from './hooks/UseRouteNavigating';
16
16
  export { definePath } from '../../Paths';
17
17
  export type { PathBuilder, PathBuilderArgs, PathParamName, PathParams } from '../../Paths';
18
18
  export { useTypedSearchParams, type TypedSearchParams } from './hooks/UseTypedSearchParams';
19
- export { requireAuth, buildReturnTo, resolveReturnTo, useReturnTo, type ReturnToSource } from './Guards';
19
+ export { requireAuth, buildReturnTo, resolveReturnTo, useReturnTo, signInRedirect, type ReturnToSource, } from './Guards';
20
20
  export { default as AppLink, type AppLinkProps } from './appLink/AppLink.vue';
21
21
  export { default as AppNavLink, type AppNavLinkProps } from './appNavLink/AppNavLink.vue';
22
22
  export { useBreadcrumbs, type Breadcrumb } from './hooks/UseBreadcrumbs';
@@ -173,6 +173,13 @@ function requireAuth(isAuthenticated, loginPath = "/login") {
173
173
  function buildReturnTo(loginPath, from) {
174
174
  return `${loginPath}?returnTo=${encodeURIComponent(toPathAndSearch(from))}`;
175
175
  }
176
+ function signInRedirect(router, loginPath = "/login") {
177
+ return () => {
178
+ const from = router.currentRoute.value;
179
+ if (from.path === loginPath) return;
180
+ router.replace(buildReturnTo(loginPath, from.fullPath)).catch(() => void 0);
181
+ };
182
+ }
176
183
  function resolveReturnTo(search, fallback = "/") {
177
184
  const target = readReturnTo(search);
178
185
  if (target === null) return fallback;
@@ -934,6 +941,7 @@ export {
934
941
  reloadOnChunkError,
935
942
  requireAuth,
936
943
  resolveReturnTo,
944
+ signInRedirect,
937
945
  useBreadcrumbs,
938
946
  useNavigationBlocker,
939
947
  u as useNavigationProgress,