@wow-two-beta/fe 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/AuthBridge.d.ts +15 -0
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +47 -8
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/providers/AuthProvider.vue.d.ts +1 -1
- package/dist/chunks/{SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js → AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js} +641 -226
- package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +1 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js +32 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js.map +1 -0
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js → DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js} +4 -12
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map +1 -0
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js} +2 -2
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map} +1 -1
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js → LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js} +71 -477
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map +1 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +44 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +1 -0
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js} +2 -2
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js.map} +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-C7X9NYpR.js → MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js} +12 -5
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +1 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js +13 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js.map +1 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js +429 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map +1 -0
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js → PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js} +2 -43
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map +1 -0
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js} +2 -1
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js.map → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map} +1 -1
- package/dist/feedback/FeedbackQueryErrors.d.ts +4 -3
- package/dist/feedback/FeedbackSessionExpiry.d.ts +5 -0
- package/dist/feedback/index.d.ts +1 -0
- package/dist/feedback/index.js +13 -1
- package/dist/feedback/index.js.map +1 -1
- package/dist/foundation/device/index.js +3 -27
- package/dist/foundation/device/index.js.map +1 -1
- package/dist/foundation/http/CreateApiClient.d.ts +1 -0
- package/dist/foundation/http/index.js +5 -1
- package/dist/foundation/http/index.js.map +1 -1
- package/dist/index.js +220 -216
- package/dist/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +2 -2
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +4 -0
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +81 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuExtensions.d.ts +8 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuPanel.vue.d.ts +25 -0
- package/dist/presentation/nav/appSwitcherMenu/index.d.ts +1 -0
- package/dist/presentation/nav/index.d.ts +1 -0
- package/dist/presentation/nav/index.js +72 -70
- package/dist/presentation/overlays/index.js +55 -54
- package/dist/presentation/overlays/index.js.map +1 -1
- package/dist/router/adapters/vueRouter/Guards.d.ts +6 -1
- package/dist/router/adapters/vueRouter/index.d.ts +1 -1
- package/dist/router/index.js +8 -0
- package/dist/router/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js.map +0 -1
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-C7X9NYpR.js.map +0 -1
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js.map +0 -1
- package/dist/chunks/SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js.map +0 -1
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-
|
|
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-
|
|
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-
|
|
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,
|
|
@@ -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-
|
|
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/
|
|
5
|
+
import { L as L2 } from "../../chunks/ListboxPicker.variants-hiMcl66_.js";
|
|
6
6
|
export {
|
|
7
7
|
A as AddressCountries,
|
|
8
8
|
_ as AddressEditor,
|
|
@@ -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. */
|
|
@@ -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-
|
|
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';
|
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
import { _, a, b, c, d, e, f, g, h, i,
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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,
|
|
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,
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
48
|
-
|
|
48
|
+
s2 as DrawerFooter,
|
|
49
|
+
t2 as DrawerHeader,
|
|
49
50
|
D2 as DrawerSize,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
63
|
-
|
|
63
|
+
s3 as ModalFooter,
|
|
64
|
+
t3 as ModalHeader,
|
|
64
65
|
M as ModalPhoneLayout,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
d3 as ModalRole,
|
|
67
|
+
e3 as ModalSize,
|
|
68
|
+
_7 as ModalTitle,
|
|
69
|
+
u2 as ModalTrigger,
|
|
69
70
|
P as Placement,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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';
|
package/dist/router/index.js
CHANGED
|
@@ -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,
|