@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,18 +1,9 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
2
|
export interface UseMenuExpandedReturn {
|
|
3
3
|
isExpanded: Ref<boolean>;
|
|
4
4
|
toggleExpanded: () => void;
|
|
5
5
|
isHoverExpanded: Ref<boolean>;
|
|
6
6
|
toggleHoverExpanded: (shouldExpand?: boolean) => void;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
9
|
-
* Sidebar pinned/hover state with localStorage persistence.
|
|
10
|
-
*
|
|
11
|
-
* @deprecated Use `useSidebarState()`. Will be removed in the next major.
|
|
12
|
-
*
|
|
13
|
-
* Each call builds its own instance, so the returned `isHoverExpanded` is NOT the
|
|
14
|
-
* one the sidebar renders from - only the pinned state is shared, through the
|
|
15
|
-
* localStorage key. `useSidebarState()` returns the single provided instance.
|
|
16
|
-
*/
|
|
17
8
|
export declare const useMenuExpanded: () => UseMenuExpandedReturn;
|
|
18
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useMenuExpanded/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useMenuExpanded/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAEpD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9B,mBAAmB,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD;AAgBD,eAAO,MAAM,eAAe,QAAO,qBA8ClC,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
|
|
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;
|
|
4
25
|
/**
|
|
5
26
|
* Provides sidebar state to the component tree. Must be called once in VcApp setup.
|
|
6
|
-
* Idempotent: returns
|
|
27
|
+
* Idempotent: returns existing instance if already provided in the current tree.
|
|
28
|
+
* Internally delegates to useMenuExpanded() for shared reactive state,
|
|
29
|
+
* ensuring UserDropdownButton (which uses useMenuExpanded directly) stays in sync.
|
|
7
30
|
*/
|
|
8
31
|
export declare function provideSidebarState(): UseSidebarStateReturn;
|
|
9
32
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSidebarState/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSidebarState/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAgB,MAAM,KAAK,CAAC;AAG1D,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;AAIvD;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,qBAAqB,CAoC3D;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,qBAAqB,CAMvD"}
|