vlite3 1.1.9 → 1.1.11

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 (48) hide show
  1. package/components/AppShell/AppShell.vue.d.ts +39 -0
  2. package/components/AppShell/AppShellLayoutClassic.vue.d.ts +64 -0
  3. package/components/AppShell/AppShellLayoutDashboard.vue.d.ts +40 -0
  4. package/components/AppShell/AppShellLayoutDock.vue.d.ts +40 -0
  5. package/components/AppShell/AppShellLayoutHeaderShell.vue.d.ts +40 -0
  6. package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +40 -0
  7. package/components/AppShell/index.d.ts +2 -0
  8. package/components/AppShell/useAppShell.d.ts +37 -0
  9. package/components/Chart/BarChart.vue.js +201 -188
  10. package/components/Chart/LineChart.vue.js +2 -2
  11. package/components/Chart/LineChart.vue2.js +169 -156
  12. package/components/Chart/PieChart.vue.js +45 -45
  13. package/components/Chart/SegmentBarChart.vue.d.ts +24 -0
  14. package/components/Chart/SegmentBarChart.vue.js +163 -0
  15. package/components/Chart/SegmentBarChart.vue2.js +4 -0
  16. package/components/Chart/StatCardChart.vue.d.ts +11 -0
  17. package/components/Chart/StatCardChart.vue.js +7 -0
  18. package/components/Chart/StatCardChart.vue2.js +91 -0
  19. package/components/Chart/TimelineChart.vue.d.ts +24 -0
  20. package/components/Chart/TimelineChart.vue.js +198 -0
  21. package/components/Chart/TimelineChart.vue2.js +4 -0
  22. package/components/Chart/WaffleChart.vue.d.ts +28 -0
  23. package/components/Chart/WaffleChart.vue.js +134 -0
  24. package/components/Chart/WaffleChart.vue2.js +4 -0
  25. package/components/Chart/index.d.ts +5 -1
  26. package/components/Chart/types.d.ts +100 -0
  27. package/components/Chart/utils.js +41 -40
  28. package/components/ColorPicker/ColorIro.vue.js +41 -40
  29. package/components/Dropdown/Dropdown.vue.d.ts +1 -1
  30. package/components/Dropdown/Dropdown.vue.js +69 -69
  31. package/components/Dropdown/DropdownMenu.vue.d.ts +2 -0
  32. package/components/Dropdown/DropdownMenu.vue.js +2 -2
  33. package/components/Dropdown/DropdownMenu.vue2.js +21 -20
  34. package/components/Kanban/KanbanBoard.vue.js +1 -1
  35. package/components/Kanban/KanbanBoard.vue2.js +50 -49
  36. package/components/Navbar/Navbar.vue.d.ts +11 -71
  37. package/components/Navbar/Navbar.vue.js +83 -548
  38. package/components/Navbar/useNavbar.d.ts +17 -0
  39. package/components/Navbar/useNavbar.js +79 -0
  40. package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
  41. package/components/SidebarMenu/SidebarMenuItem.vue.js +138 -122
  42. package/components/Splitter/Splitter.vue.js +3 -3
  43. package/index.js +124 -116
  44. package/package.json +1 -1
  45. package/style.css +1 -1
  46. package/types/appshell.type.d.ts +35 -0
  47. package/types/navbar.type.d.ts +1 -20
  48. package/composables/useBreadcrumb.js +0 -27
@@ -0,0 +1,39 @@
1
+ import { AppShellProps } from '../../types/appshell.type';
2
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<AppShellProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ "toggle-mobile": () => any;
4
+ }, string, import('vue').PublicProps, Readonly<AppShellProps> & Readonly<{
5
+ "onToggle-mobile"?: () => any;
6
+ }>, {
7
+ class: string;
8
+ height: string;
9
+ border: boolean;
10
+ variant: import('../../types/appshell.type').AppShellVariant;
11
+ floating: boolean;
12
+ compact: boolean;
13
+ position: import('../../types/appshell.type').AppShellPosition;
14
+ contentClass: string;
15
+ centerPosition: import('../../types/appshell.type').AppShellCenterPosition;
16
+ glass: boolean;
17
+ mobileBreakpoint: "sm" | "md" | "lg" | "xl";
18
+ menuClass: string;
19
+ rightClass: string;
20
+ mobileTriggerClass: string;
21
+ mobileMenuVariant: "sidepanel" | "dropdown";
22
+ breadcrumb: boolean;
23
+ renderNestedTabs: boolean;
24
+ logoClass: string;
25
+ sidebarToggle: boolean;
26
+ breadcrumbVariant: import('../Breadcrumb').BreadcrumbVariant;
27
+ breadcrumbSeparator: import('../Breadcrumb').BreadcrumbSeparator;
28
+ breadcrumbSize: import('../Breadcrumb').BreadcrumbSize;
29
+ breadcrumbHomeIcon: string;
30
+ breadcrumbPosition: "header" | "main";
31
+ breadcrumbClass: string;
32
+ layoutMode: import('../../types/appshell.type').AppShellLayoutMode;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<number, (_: any) => any>>>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,64 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ header?(_: {
5
+ isOpen: boolean;
6
+ toggle: () => boolean;
7
+ sidebarVisible: boolean;
8
+ toggleSidebar: () => void;
9
+ breadcrumbItems: any[];
10
+ pageTitle: string;
11
+ }): any;
12
+ 'mobile-trigger'?(_: {
13
+ isOpen: boolean;
14
+ toggle: () => boolean;
15
+ }): any;
16
+ 'mobile-trigger'?(_: {
17
+ isOpen: boolean;
18
+ toggle: () => boolean;
19
+ }): any;
20
+ left?(_: {}): any;
21
+ left?(_: {}): any;
22
+ left?(_: {}): any;
23
+ left?(_: {}): any;
24
+ left?(_: {}): any;
25
+ center?(_: {}): any;
26
+ center?(_: {}): any;
27
+ center?(_: {}): any;
28
+ center?(_: {}): any;
29
+ center?(_: {}): any;
30
+ right?(_: {}): any;
31
+ sidebar?(_: {}): any;
32
+ sidebar?(_: {}): any;
33
+ 'sidebar-footer'?(_: {}): any;
34
+ 'sidebar-footer'?(_: {}): any;
35
+ main?(_: {}): any;
36
+ 'mobile-menu'?(_: {}): any;
37
+ 'mobile-menu'?(_: {}): any;
38
+ 'mobile-sidebar-header'?(_: {}): any;
39
+ 'sidebar-header'?(_: {}): any;
40
+ 'mobile-sidebar'?(_: {}): any;
41
+ 'mobile-sidebar-footer'?(_: {}): any;
42
+ };
43
+ refs: {
44
+ mobileTriggerRef: HTMLButtonElement;
45
+ layoutMainRef: HTMLElement;
46
+ mainScrollRef: HTMLDivElement;
47
+ mobileMenuRef: HTMLDivElement;
48
+ };
49
+ rootEl: HTMLDivElement;
50
+ };
51
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
52
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
53
+ mobileTriggerRef: HTMLButtonElement;
54
+ layoutMainRef: HTMLElement;
55
+ mainScrollRef: HTMLDivElement;
56
+ mobileMenuRef: HTMLDivElement;
57
+ }, HTMLDivElement>;
58
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
+ export default _default;
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,40 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ 'sidebar-header'?(_: {}): any;
5
+ 'sidebar-header'?(_: {}): any;
6
+ sidebar?(_: {}): any;
7
+ sidebar?(_: {}): any;
8
+ 'sidebar-footer'?(_: {}): any;
9
+ 'sidebar-footer'?(_: {}): any;
10
+ header?(_: {
11
+ isOpen: boolean;
12
+ toggle: () => boolean;
13
+ sidebarVisible: boolean;
14
+ toggleSidebar: () => void;
15
+ breadcrumbItems: any[];
16
+ pageTitle: string;
17
+ }): any;
18
+ main?(_: {}): any;
19
+ 'mobile-sidebar-header'?(_: {}): any;
20
+ 'mobile-sidebar'?(_: {}): any;
21
+ 'mobile-sidebar-footer'?(_: {}): any;
22
+ };
23
+ refs: {
24
+ layoutMainRef: HTMLElement;
25
+ mainScrollRef: HTMLDivElement;
26
+ };
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
31
+ layoutMainRef: HTMLElement;
32
+ mainScrollRef: HTMLDivElement;
33
+ }, HTMLDivElement>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,40 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ 'sidebar-header'?(_: {}): any;
5
+ 'sidebar-header'?(_: {}): any;
6
+ sidebar?(_: {}): any;
7
+ sidebar?(_: {}): any;
8
+ 'sidebar-footer'?(_: {}): any;
9
+ 'sidebar-footer'?(_: {}): any;
10
+ header?(_: {
11
+ isOpen: boolean;
12
+ toggle: () => boolean;
13
+ sidebarVisible: boolean;
14
+ toggleSidebar: () => void;
15
+ breadcrumbItems: any[];
16
+ pageTitle: string;
17
+ }): any;
18
+ main?(_: {}): any;
19
+ 'mobile-sidebar-header'?(_: {}): any;
20
+ 'mobile-sidebar'?(_: {}): any;
21
+ 'mobile-sidebar-footer'?(_: {}): any;
22
+ };
23
+ refs: {
24
+ layoutMainRef: HTMLElement;
25
+ mainScrollRef: HTMLDivElement;
26
+ };
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
31
+ layoutMainRef: HTMLElement;
32
+ mainScrollRef: HTMLDivElement;
33
+ }, HTMLDivElement>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,40 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ 'sidebar-header'?(_: {}): any;
5
+ 'sidebar-header'?(_: {}): any;
6
+ sidebar?(_: {}): any;
7
+ sidebar?(_: {}): any;
8
+ 'sidebar-footer'?(_: {}): any;
9
+ 'sidebar-footer'?(_: {}): any;
10
+ header?(_: {
11
+ isOpen: boolean;
12
+ toggle: () => boolean;
13
+ sidebarVisible: boolean;
14
+ toggleSidebar: () => void;
15
+ breadcrumbItems: any[];
16
+ pageTitle: string;
17
+ }): any;
18
+ main?(_: {}): any;
19
+ 'mobile-sidebar-header'?(_: {}): any;
20
+ 'mobile-sidebar'?(_: {}): any;
21
+ 'mobile-sidebar-footer'?(_: {}): any;
22
+ };
23
+ refs: {
24
+ layoutMainRef: HTMLElement;
25
+ mainScrollRef: HTMLDivElement;
26
+ };
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
31
+ layoutMainRef: HTMLElement;
32
+ mainScrollRef: HTMLDivElement;
33
+ }, HTMLDivElement>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,40 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ 'sidebar-header'?(_: {}): any;
5
+ 'sidebar-header'?(_: {}): any;
6
+ sidebar?(_: {}): any;
7
+ sidebar?(_: {}): any;
8
+ 'sidebar-footer'?(_: {}): any;
9
+ 'sidebar-footer'?(_: {}): any;
10
+ header?(_: {
11
+ isOpen: boolean;
12
+ toggle: () => boolean;
13
+ sidebarVisible: boolean;
14
+ toggleSidebar: () => void;
15
+ breadcrumbItems: any[];
16
+ pageTitle: string;
17
+ }): any;
18
+ main?(_: {}): any;
19
+ 'mobile-sidebar-header'?(_: {}): any;
20
+ 'mobile-sidebar'?(_: {}): any;
21
+ 'mobile-sidebar-footer'?(_: {}): any;
22
+ };
23
+ refs: {
24
+ layoutMainRef: HTMLElement;
25
+ mainScrollRef: HTMLDivElement;
26
+ };
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
31
+ layoutMainRef: HTMLElement;
32
+ mainScrollRef: HTMLDivElement;
33
+ }, HTMLDivElement>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,2 @@
1
+ export { default as AppShell } from './AppShell.vue';
2
+ export type { AppShellProps, AppShellLayoutMode } from '../../types/appshell.type';
@@ -0,0 +1,37 @@
1
+ import { Ref, ComputedRef, ShallowRef, InjectionKey } from 'vue';
2
+ import { NavbarTabItem } from '../../types/navbar.type';
3
+ import { AppShellProps } from '../../types/appshell.type';
4
+ export interface AppShellLayoutContext {
5
+ /** Original reactive props object */
6
+ props: AppShellProps;
7
+ /** Whether layout mode is active (header/main slots provided) */
8
+ isLayoutMode: boolean;
9
+ isMobileMenuOpen: Ref<boolean>;
10
+ isSidebarVisible: Ref<boolean>;
11
+ sidebarHidden: ComputedRef<boolean>;
12
+ pageTitle: ComputedRef<string>;
13
+ isScrolled: Ref<boolean>;
14
+ mainScrollRef: Ref<HTMLElement | null>;
15
+ layoutMainRef: Ref<HTMLElement | null>;
16
+ toggleSidebar: () => void;
17
+ handleNestedTabClick: (val: string | number) => void;
18
+ breakpointClasses: ComputedRef<{
19
+ mobileTrigger: string;
20
+ desktopContent: string;
21
+ sidebarLayout: string;
22
+ mobileHeader: string;
23
+ desktopSidebar: string;
24
+ desktopOnly: string;
25
+ }>;
26
+ /** Container classes — used by classic / standalone layouts */
27
+ containerClasses: ComputedRef<string>;
28
+ /** Center slot alignment classes */
29
+ centerClasses: ComputedRef<string | undefined>;
30
+ breadcrumbData: {
31
+ items: ComputedRef<any[]>;
32
+ };
33
+ nestedTabsItems: ShallowRef<NavbarTabItem[]>;
34
+ activeNestedTab: Ref<string | number>;
35
+ }
36
+ export declare const APPSHELL_LAYOUT_KEY: InjectionKey<AppShellLayoutContext>;
37
+ export declare function useAppShell(props: AppShellProps, isLayoutMode: boolean): AppShellLayoutContext;