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.
- package/components/AppShell/AppShell.vue.d.ts +39 -0
- package/components/AppShell/AppShellLayoutClassic.vue.d.ts +64 -0
- package/components/AppShell/AppShellLayoutDashboard.vue.d.ts +40 -0
- package/components/AppShell/AppShellLayoutDock.vue.d.ts +40 -0
- package/components/AppShell/AppShellLayoutHeaderShell.vue.d.ts +40 -0
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +40 -0
- package/components/AppShell/index.d.ts +2 -0
- package/components/AppShell/useAppShell.d.ts +37 -0
- package/components/Chart/BarChart.vue.js +201 -188
- package/components/Chart/LineChart.vue.js +2 -2
- package/components/Chart/LineChart.vue2.js +169 -156
- package/components/Chart/PieChart.vue.js +45 -45
- package/components/Chart/SegmentBarChart.vue.d.ts +24 -0
- package/components/Chart/SegmentBarChart.vue.js +163 -0
- package/components/Chart/SegmentBarChart.vue2.js +4 -0
- package/components/Chart/StatCardChart.vue.d.ts +11 -0
- package/components/Chart/StatCardChart.vue.js +7 -0
- package/components/Chart/StatCardChart.vue2.js +91 -0
- package/components/Chart/TimelineChart.vue.d.ts +24 -0
- package/components/Chart/TimelineChart.vue.js +198 -0
- package/components/Chart/TimelineChart.vue2.js +4 -0
- package/components/Chart/WaffleChart.vue.d.ts +28 -0
- package/components/Chart/WaffleChart.vue.js +134 -0
- package/components/Chart/WaffleChart.vue2.js +4 -0
- package/components/Chart/index.d.ts +5 -1
- package/components/Chart/types.d.ts +100 -0
- package/components/Chart/utils.js +41 -40
- package/components/ColorPicker/ColorIro.vue.js +41 -40
- package/components/Dropdown/Dropdown.vue.d.ts +1 -1
- package/components/Dropdown/Dropdown.vue.js +69 -69
- package/components/Dropdown/DropdownMenu.vue.d.ts +2 -0
- package/components/Dropdown/DropdownMenu.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue2.js +21 -20
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +50 -49
- package/components/Navbar/Navbar.vue.d.ts +11 -71
- package/components/Navbar/Navbar.vue.js +83 -548
- package/components/Navbar/useNavbar.d.ts +17 -0
- package/components/Navbar/useNavbar.js +79 -0
- package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
- package/components/SidebarMenu/SidebarMenuItem.vue.js +138 -122
- package/components/Splitter/Splitter.vue.js +3 -3
- package/index.js +124 -116
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/appshell.type.d.ts +35 -0
- package/types/navbar.type.d.ts +1 -20
- 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,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;
|