@vc-shell/framework 2.5.0-pr314.ce6b912 → 2.5.0-pr315.e9a6975
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/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-Cj_xmgb8.js → VcScheduler.vue_vue_type_script_setup_true_lang-BmlVL_rn.js} +723 -718
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BmlVL_rn.js.map +1 -0
- package/dist/core/composables/useMenuExpanded/index.d.ts +1 -10
- package/dist/core/composables/useMenuExpanded/index.d.ts.map +1 -1
- package/dist/core/composables/useSidebarState/index.d.ts +27 -4
- package/dist/core/composables/useSidebarState/index.d.ts.map +1 -1
- package/dist/framework.js +627 -636
- package/dist/framework.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-Cj_xmgb8.js.map +0 -1
- package/dist/core/composables/useSidebarState/_internal.d.ts +0 -47
- package/dist/core/composables/useSidebarState/_internal.d.ts.map +0 -1
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Ref, ComputedRef } from "vue";
|
|
2
|
-
export interface SidebarState {
|
|
3
|
-
/** Sidebar is pinned open by user (persisted to localStorage) */
|
|
4
|
-
isPinned: Ref<boolean>;
|
|
5
|
-
/** Sidebar is temporarily expanded on mouse hover (desktop only) */
|
|
6
|
-
isHoverExpanded: Ref<boolean>;
|
|
7
|
-
/** Mobile menu overlay is visible */
|
|
8
|
-
isMenuOpen: Ref<boolean>;
|
|
9
|
-
/** Derived: sidebar content should render in expanded mode (pinned OR hovered) */
|
|
10
|
-
isExpanded: ComputedRef<boolean>;
|
|
11
|
-
}
|
|
12
|
-
export interface SidebarActions {
|
|
13
|
-
/** Toggle the pinned state (persists to localStorage) */
|
|
14
|
-
togglePin: () => void;
|
|
15
|
-
/** Set hover expansion state with delay for opening */
|
|
16
|
-
setHoverExpanded: (value: boolean) => void;
|
|
17
|
-
/** Open the mobile menu / widget overlay */
|
|
18
|
-
openMenu: () => void;
|
|
19
|
-
/** Close the mobile menu / widget overlay */
|
|
20
|
-
closeMenu: () => void;
|
|
21
|
-
}
|
|
22
|
-
export type UseSidebarStateReturn = SidebarState & SidebarActions;
|
|
23
|
-
/** @deprecated Use UseSidebarStateReturn instead */
|
|
24
|
-
export type SidebarStateReturn = UseSidebarStateReturn;
|
|
25
|
-
/**
|
|
26
|
-
* Shape of a freshly built instance. Identical to `UseSidebarStateReturn` except that
|
|
27
|
-
* `setHoverExpanded` also accepts `undefined` as a no-op, which the deprecated
|
|
28
|
-
* `useMenuExpanded` adapter forwards. Assignable to `UseSidebarStateReturn`.
|
|
29
|
-
*/
|
|
30
|
-
export type SidebarStateInstance = Omit<UseSidebarStateReturn, "setHoverExpanded"> & {
|
|
31
|
-
setHoverExpanded: (value?: boolean) => void;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* localStorage key holding the pinned state, scoped per application.
|
|
35
|
-
* The app name defaults to the first segment of `window.location.pathname`
|
|
36
|
-
* ("/vendor-portal/" -> "vendor-portal"), so several vc-shell apps on one
|
|
37
|
-
* domain keep independent sidebar states.
|
|
38
|
-
*/
|
|
39
|
-
export declare function sidebarStorageKey(appName?: string): string;
|
|
40
|
-
/**
|
|
41
|
-
* Builds a standalone sidebar state instance. Not provided, not shared:
|
|
42
|
-
* `provideSidebarState()` owns the one instance the component tree sees, and the
|
|
43
|
-
* deprecated `useMenuExpanded()` builds its own because it may be called outside
|
|
44
|
-
* the VcApp tree, where no provider exists.
|
|
45
|
-
*/
|
|
46
|
-
export declare function createSidebarStateInstance(): SidebarStateInstance;
|
|
47
|
-
//# sourceMappingURL=_internal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSidebarState/_internal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAG5C,MAAM,WAAW,YAAY;IAC3B,iEAAiE;IACjE,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,oEAAoE;IACpE,eAAe,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9B,qCAAqC;IACrC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB,kFAAkF;IAClF,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,cAAc;IAC7B,yDAAyD;IACzD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,uDAAuD;IACvD,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,cAAc,CAAC;AAElE,oDAAoD;AACpD,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,GAAG;IACnF,gBAAgB,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C,CAAC;AAKF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,IAAI,oBAAoB,CA0DjE"}
|