@choubo/kerthus-web-admin-shell 0.0.0-stage → 0.1.0

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 (47) hide show
  1. package/README.md +51 -2
  2. package/dist/agent/AgentApprovalCard.vue.d.ts +34 -0
  3. package/dist/agent/AgentAttachmentList.vue.d.ts +42 -0
  4. package/dist/agent/AgentComposer.vue.d.ts +120 -0
  5. package/dist/agent/AgentModelSelect.vue.d.ts +53 -0
  6. package/dist/agent/types.d.ts +21 -0
  7. package/dist/application/AdminAppSwitcher.vue.d.ts +69 -0
  8. package/dist/application/AdminFullscreenButton.vue.d.ts +34 -0
  9. package/dist/application/AdminNotificationCenter.vue.d.ts +63 -0
  10. package/dist/application/AdminUserMenu.vue.d.ts +33 -0
  11. package/dist/application/AppDarkModeToggle.vue.d.ts +35 -0
  12. package/dist/application/AppLocalePicker.vue.d.ts +39 -0
  13. package/dist/application/AppLogo.vue.d.ts +35 -0
  14. package/dist/application/AppProvider.vue.d.ts +45 -0
  15. package/dist/application/AppSearch.vue.d.ts +2 -0
  16. package/dist/application/useAppContext.d.ts +9 -0
  17. package/dist/index.d.ts +50 -0
  18. package/dist/index.js +2631 -0
  19. package/dist/layout/AdminLayout.vue.d.ts +146 -0
  20. package/dist/locales/index.d.ts +62 -0
  21. package/dist/locales/legacy-messages.d.ts +367 -0
  22. package/dist/menu/AdminMenuNode.d.ts +17 -0
  23. package/dist/menu/BasicMenu.vue.d.ts +65 -0
  24. package/dist/menu/SimpleMenu.vue.d.ts +55 -0
  25. package/dist/menu/SimpleMenuTag.vue.d.ts +38 -0
  26. package/dist/menu/paths.d.ts +3 -0
  27. package/dist/menu/runtime.d.ts +8 -0
  28. package/dist/menu/types.d.ts +39 -0
  29. package/dist/pages/AdminAboutView.vue.d.ts +66 -0
  30. package/dist/pages/AdminBreadcrumb.vue.d.ts +23 -0
  31. package/dist/pages/AdminErrorLogView.vue.d.ts +77 -0
  32. package/dist/pages/AdminExceptionView.vue.d.ts +25 -0
  33. package/dist/pages/AdminIframeView.vue.d.ts +51 -0
  34. package/dist/pages/AdminLockView.vue.d.ts +64 -0
  35. package/dist/pages/AdminLoginView.vue.d.ts +77 -0
  36. package/dist/pages/AdminPasswordForm.vue.d.ts +96 -0
  37. package/dist/pages/AdminProfileForm.vue.d.ts +94 -0
  38. package/dist/pages/AdminProfileTabs.vue.d.ts +55 -0
  39. package/dist/pages/AdminSecuritySettings.vue.d.ts +41 -0
  40. package/dist/settings/AdminSettingsDrawer.vue.d.ts +56 -0
  41. package/dist/settings/SettingsPanel.vue.d.ts +21 -0
  42. package/dist/settings/types.d.ts +38 -0
  43. package/dist/style.css +1 -0
  44. package/dist/tabs/AdminTabs.vue.d.ts +47 -0
  45. package/dist/tabs/actions.d.ts +4 -0
  46. package/dist/tabs/types.d.ts +16 -0
  47. package/package.json +37 -4
package/README.md CHANGED
@@ -1,3 +1,52 @@
1
- # Temporary Holding Version
1
+ # @choubo/kerthus-web-admin-shell
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Shared admin navigation and application shell for Kerthus and Evolis. The host
4
+ provides current route, route-change subscription, menu settings, navigation,
5
+ locale, and brand data through explicit ports. Host API methods, business views,
6
+ and FableX modules remain in their applications.
7
+
8
+ Install `createAdminMenuPlugin` after the Vue runtime. `BasicMenu` and
9
+ `SimpleMenu` consume that port; `AppSearch` also calls its optional `getItems`
10
+ method. `AppProvider` reports mobile breakpoint changes through
11
+ `onMobileChange`, leaving menu-state updates with the host. Import
12
+ `@choubo/kerthus-web-admin-shell/style.css` once in the host.
13
+
14
+ `AdminLayout` supplies a responsive sidebar, header, content, tabs, and footer
15
+ frame. `mode="sidebar" | "top" | "mixed"` selects the navigation arrangement;
16
+ mixed mode accepts `topMenus` for the top row and `menus` for the sidebar.
17
+ `fullContent` hides the navigation chrome, while `resizableSidebar` emits
18
+ `update:sidebarWidth` for pointer or keyboard resizing.
19
+ It renders `BasicMenu` by default and accepts slots for host navigation,
20
+ branding, actions, and application content. Menu clicks use the host navigation
21
+ port and emit `menuClick`; collapsed state is controlled through
22
+ `v-model:collapsed`.
23
+
24
+ `AdminTabs` displays host supplied tabs with refresh and close actions.
25
+ `closeTabs` preserves affixed tabs for close current, left, right, others, and
26
+ all operations. The host owns tab persistence and refresh behavior.
27
+
28
+ `SettingsPanel` and `AdminSettingsDrawer` render controlled switch, select,
29
+ number, color, and layout controls. The host supplies section data and handles
30
+ `change` and `reset` events; no application store is imported.
31
+
32
+ `AdminBreadcrumb`, `AdminIframeView`, `AdminLoginView`, `AdminLockView`, and
33
+ `AdminExceptionView` cover common navigation and public page shells. Login and
34
+ lock forms emit credentials to the host; the host owns authentication calls,
35
+ errors, and redirect behavior. `AgentAttachmentList`, `AgentModelSelect`,
36
+ `AgentComposer`, and `AgentApprovalCard` accept data and emit actions. Agent
37
+ session loading, streaming, uploads, and approval execution remain host ports.
38
+
39
+ `AdminUserMenu` and `AdminNotificationCenter` render host supplied header data.
40
+ `AdminAppSwitcher` and `AdminFullscreenButton` supply generic header controls.
41
+ `AdminProfileTabs`, `AdminProfileForm`, `AdminPasswordForm`, and
42
+ `AdminSecuritySettings` expose account UI while the host owns save, upload,
43
+ password mutation, and logout. The profile form's `avatar` slot accepts the
44
+ host-configured `CropperAvatar`. `AdminErrorLogView`
45
+ shows shared runtime error entries, while `AdminAboutView` renders package
46
+ metadata and validated external links. Product dashboards and account API
47
+ methods stay with the host.
48
+
49
+ `adminShellMessages` contains the shared `en-US` and `zh-CN` labels, and
50
+ `legacyAdminMessages` contains generic legacy layout/system messages. Hosts can
51
+ merge these keys into their localization resources or pass translated component
52
+ props. The shell stylesheet includes gray and color-weak appearance modes.
@@ -0,0 +1,34 @@
1
+ import { AgentApproval } from './types';
2
+
3
+ interface ApprovalLabels {
4
+ status: Partial<Record<AgentApproval['status'], string>>;
5
+ risk: Partial<Record<NonNullable<AgentApproval['riskLevel']>, string>>;
6
+ tool: string;
7
+ details: string;
8
+ expires: string;
9
+ reject: string;
10
+ approve: string;
11
+ }
12
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ approval: AgentApproval;
14
+ busy?: boolean;
15
+ labels?: Partial<ApprovalLabels>;
16
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ resolve: (decision: "reject" | "approve") => void;
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
19
+ approval: AgentApproval;
20
+ busy?: boolean;
21
+ labels?: Partial<ApprovalLabels>;
22
+ }>>> & Readonly<{
23
+ onResolve?: ((decision: "reject" | "approve") => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
@@ -0,0 +1,42 @@
1
+ import { AgentAttachment } from './types';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ attachments: AgentAttachment[];
5
+ label?: string;
6
+ removeLabel?: string;
7
+ }>, {
8
+ label: string;
9
+ removeLabel: string;
10
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ remove: (id: string) => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ attachments: AgentAttachment[];
14
+ label?: string;
15
+ removeLabel?: string;
16
+ }>, {
17
+ label: string;
18
+ removeLabel: string;
19
+ }>>> & Readonly<{
20
+ onRemove?: ((id: string) => any) | undefined;
21
+ }>, {
22
+ label: string;
23
+ removeLabel: string;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
@@ -0,0 +1,120 @@
1
+ import { AgentAttachment, AgentModel } from './types';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ draft: string;
5
+ loading?: boolean;
6
+ disabled?: boolean;
7
+ waitingApproval?: boolean;
8
+ model?: string;
9
+ models?: AgentModel[];
10
+ modelsLoading?: boolean;
11
+ approvalMode?: string;
12
+ approvalModes?: {
13
+ value: string;
14
+ label: string;
15
+ }[];
16
+ attachments?: AgentAttachment[];
17
+ placeholder?: string;
18
+ waitingLabel?: string;
19
+ attachLabel?: string;
20
+ attachmentsLabel?: string;
21
+ approvalLabel?: string;
22
+ modelLabel?: string;
23
+ sendLabel?: string;
24
+ stopLabel?: string;
25
+ }>, {
26
+ models: () => never[];
27
+ attachments: () => never[];
28
+ approvalModes: () => never[];
29
+ placeholder: string;
30
+ waitingLabel: string;
31
+ attachLabel: string;
32
+ attachmentsLabel: string;
33
+ approvalLabel: string;
34
+ modelLabel: string;
35
+ sendLabel: string;
36
+ stopLabel: string;
37
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
+ "update:draft": (value: string) => void;
39
+ "update:model": (value: string) => void;
40
+ "update:approvalMode": (value: string) => void;
41
+ files: (files: File[]) => void;
42
+ removeAttachment: (id: string) => void;
43
+ stop: () => void;
44
+ send: () => void;
45
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
46
+ draft: string;
47
+ loading?: boolean;
48
+ disabled?: boolean;
49
+ waitingApproval?: boolean;
50
+ model?: string;
51
+ models?: AgentModel[];
52
+ modelsLoading?: boolean;
53
+ approvalMode?: string;
54
+ approvalModes?: {
55
+ value: string;
56
+ label: string;
57
+ }[];
58
+ attachments?: AgentAttachment[];
59
+ placeholder?: string;
60
+ waitingLabel?: string;
61
+ attachLabel?: string;
62
+ attachmentsLabel?: string;
63
+ approvalLabel?: string;
64
+ modelLabel?: string;
65
+ sendLabel?: string;
66
+ stopLabel?: string;
67
+ }>, {
68
+ models: () => never[];
69
+ attachments: () => never[];
70
+ approvalModes: () => never[];
71
+ placeholder: string;
72
+ waitingLabel: string;
73
+ attachLabel: string;
74
+ attachmentsLabel: string;
75
+ approvalLabel: string;
76
+ modelLabel: string;
77
+ sendLabel: string;
78
+ stopLabel: string;
79
+ }>>> & Readonly<{
80
+ onStop?: (() => any) | undefined;
81
+ "onUpdate:model"?: ((value: string) => any) | undefined;
82
+ "onUpdate:draft"?: ((value: string) => any) | undefined;
83
+ "onUpdate:approvalMode"?: ((value: string) => any) | undefined;
84
+ onFiles?: ((files: File[]) => any) | undefined;
85
+ onRemoveAttachment?: ((id: string) => any) | undefined;
86
+ onSend?: (() => any) | undefined;
87
+ }>, {
88
+ attachments: AgentAttachment[];
89
+ placeholder: string;
90
+ models: AgentModel[];
91
+ approvalModes: {
92
+ value: string;
93
+ label: string;
94
+ }[];
95
+ waitingLabel: string;
96
+ attachLabel: string;
97
+ attachmentsLabel: string;
98
+ approvalLabel: string;
99
+ modelLabel: string;
100
+ sendLabel: string;
101
+ stopLabel: string;
102
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
103
+ export default _default;
104
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
105
+ type __VLS_TypePropsToRuntimeProps<T> = {
106
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
107
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
108
+ } : {
109
+ type: import('vue').PropType<T[K]>;
110
+ required: true;
111
+ };
112
+ };
113
+ type __VLS_WithDefaults<P, D> = {
114
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
115
+ default: D[K];
116
+ }> : P[K];
117
+ };
118
+ type __VLS_Prettify<T> = {
119
+ [K in keyof T]: T[K];
120
+ } & {};
@@ -0,0 +1,53 @@
1
+ import { AgentModel } from './types';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ model?: string;
5
+ models: AgentModel[];
6
+ disabled?: boolean;
7
+ loading?: boolean;
8
+ label?: string;
9
+ placeholder?: string;
10
+ loadingLabel?: string;
11
+ }>, {
12
+ label: string;
13
+ placeholder: string;
14
+ loadingLabel: string;
15
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:model": (id: string) => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
+ model?: string;
19
+ models: AgentModel[];
20
+ disabled?: boolean;
21
+ loading?: boolean;
22
+ label?: string;
23
+ placeholder?: string;
24
+ loadingLabel?: string;
25
+ }>, {
26
+ label: string;
27
+ placeholder: string;
28
+ loadingLabel: string;
29
+ }>>> & Readonly<{
30
+ "onUpdate:model"?: ((id: string) => any) | undefined;
31
+ }>, {
32
+ label: string;
33
+ placeholder: string;
34
+ loadingLabel: string;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
+ export default _default;
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToRuntimeProps<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: import('vue').PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
+ default: D[K];
49
+ }> : P[K];
50
+ };
51
+ type __VLS_Prettify<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
@@ -0,0 +1,21 @@
1
+ export interface AgentAttachment {
2
+ id: string;
3
+ name: string;
4
+ size: number;
5
+ status?: 'uploading' | 'ready' | 'failed';
6
+ }
7
+ export interface AgentModel {
8
+ id: string;
9
+ name: string;
10
+ provider?: string;
11
+ }
12
+ export interface AgentApproval {
13
+ id: string;
14
+ status: 'pending' | 'approved' | 'executing' | 'succeeded' | 'completed' | 'rejected' | 'expired' | 'failed';
15
+ riskLevel?: 'read' | 'write' | 'export' | 'delete' | 'permission';
16
+ toolName?: string;
17
+ summary?: string;
18
+ details?: string;
19
+ reason?: string;
20
+ expiresAt?: string;
21
+ }
@@ -0,0 +1,69 @@
1
+ export interface AdminAppItem {
2
+ id: string;
3
+ name: string;
4
+ description?: string;
5
+ icon?: string;
6
+ url?: string;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ apps: AdminAppItem[];
10
+ currentId?: string;
11
+ loading?: boolean;
12
+ error?: string;
13
+ label?: string;
14
+ emptyLabel?: string;
15
+ loadingLabel?: string;
16
+ invalidUrlLabel?: string;
17
+ confirmSwitch?: (app: AdminAppItem) => boolean | Promise<boolean>;
18
+ }>, {
19
+ label: string;
20
+ emptyLabel: string;
21
+ loadingLabel: string;
22
+ invalidUrlLabel: string;
23
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ open: () => void;
25
+ switch: (app: AdminAppItem) => void;
26
+ error: (error: unknown) => void;
27
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
28
+ apps: AdminAppItem[];
29
+ currentId?: string;
30
+ loading?: boolean;
31
+ error?: string;
32
+ label?: string;
33
+ emptyLabel?: string;
34
+ loadingLabel?: string;
35
+ invalidUrlLabel?: string;
36
+ confirmSwitch?: (app: AdminAppItem) => boolean | Promise<boolean>;
37
+ }>, {
38
+ label: string;
39
+ emptyLabel: string;
40
+ loadingLabel: string;
41
+ invalidUrlLabel: string;
42
+ }>>> & Readonly<{
43
+ onSwitch?: ((app: AdminAppItem) => any) | undefined;
44
+ onError?: ((error: unknown) => any) | undefined;
45
+ onOpen?: (() => any) | undefined;
46
+ }>, {
47
+ label: string;
48
+ loadingLabel: string;
49
+ emptyLabel: string;
50
+ invalidUrlLabel: string;
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
52
+ export default _default;
53
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ type __VLS_TypePropsToRuntimeProps<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: import('vue').PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
62
+ type __VLS_WithDefaults<P, D> = {
63
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
+ default: D[K];
65
+ }> : P[K];
66
+ };
67
+ type __VLS_Prettify<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
@@ -0,0 +1,34 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ enterLabel?: string;
3
+ exitLabel?: string;
4
+ }>, {
5
+ enterLabel: string;
6
+ exitLabel: string;
7
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ enterLabel?: string;
9
+ exitLabel?: string;
10
+ }>, {
11
+ enterLabel: string;
12
+ exitLabel: string;
13
+ }>>> & Readonly<{}>, {
14
+ enterLabel: string;
15
+ exitLabel: string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,63 @@
1
+ export interface AdminNotification {
2
+ id: string;
3
+ category: string;
4
+ title: string;
5
+ description?: string;
6
+ time?: string;
7
+ read?: boolean;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ items: AdminNotification[];
11
+ categories: {
12
+ key: string;
13
+ label: string;
14
+ }[];
15
+ label?: string;
16
+ emptyLabel?: string;
17
+ markAllLabel?: string;
18
+ }>, {
19
+ label: string;
20
+ emptyLabel: string;
21
+ markAllLabel: string;
22
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ open: (item: AdminNotification) => void;
24
+ markAllRead: () => void;
25
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
+ items: AdminNotification[];
27
+ categories: {
28
+ key: string;
29
+ label: string;
30
+ }[];
31
+ label?: string;
32
+ emptyLabel?: string;
33
+ markAllLabel?: string;
34
+ }>, {
35
+ label: string;
36
+ emptyLabel: string;
37
+ markAllLabel: string;
38
+ }>>> & Readonly<{
39
+ onOpen?: ((item: AdminNotification) => any) | undefined;
40
+ onMarkAllRead?: (() => any) | undefined;
41
+ }>, {
42
+ label: string;
43
+ emptyLabel: string;
44
+ markAllLabel: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
47
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
48
+ type __VLS_TypePropsToRuntimeProps<T> = {
49
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
50
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
51
+ } : {
52
+ type: import('vue').PropType<T[K]>;
53
+ required: true;
54
+ };
55
+ };
56
+ type __VLS_WithDefaults<P, D> = {
57
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
58
+ default: D[K];
59
+ }> : P[K];
60
+ };
61
+ type __VLS_Prettify<T> = {
62
+ [K in keyof T]: T[K];
63
+ } & {};
@@ -0,0 +1,33 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ name: string;
3
+ avatar?: string;
4
+ label?: string;
5
+ items: {
6
+ key: string;
7
+ label: string;
8
+ icon?: string;
9
+ }[];
10
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ select: (key: string) => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ name: string;
14
+ avatar?: string;
15
+ label?: string;
16
+ items: {
17
+ key: string;
18
+ label: string;
19
+ icon?: string;
20
+ }[];
21
+ }>>> & Readonly<{
22
+ onSelect?: ((key: string) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
@@ -0,0 +1,35 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ darkMode: boolean;
3
+ visible?: boolean;
4
+ }>, {
5
+ visible: boolean;
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:darkMode": (value: boolean) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ darkMode: boolean;
10
+ visible?: boolean;
11
+ }>, {
12
+ visible: boolean;
13
+ }>>> & Readonly<{
14
+ "onUpdate:darkMode"?: ((value: boolean) => any) | undefined;
15
+ }>, {
16
+ visible: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
+ default: D[K];
31
+ }> : P[K];
32
+ };
33
+ type __VLS_Prettify<T> = {
34
+ [K in keyof T]: T[K];
35
+ } & {};
@@ -0,0 +1,39 @@
1
+ export interface LocaleOption {
2
+ event: string;
3
+ text: string;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ locales: LocaleOption[];
7
+ locale?: string;
8
+ showText?: boolean;
9
+ reload?: boolean;
10
+ }>, {
11
+ showText: boolean;
12
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ locales: LocaleOption[];
14
+ locale?: string;
15
+ showText?: boolean;
16
+ reload?: boolean;
17
+ }>, {
18
+ showText: boolean;
19
+ }>>> & Readonly<{}>, {
20
+ showText: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ export default _default;
23
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
+ type __VLS_TypePropsToRuntimeProps<T> = {
25
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
26
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
+ } : {
28
+ type: import('vue').PropType<T[K]>;
29
+ required: true;
30
+ };
31
+ };
32
+ type __VLS_WithDefaults<P, D> = {
33
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
34
+ default: D[K];
35
+ }> : P[K];
36
+ };
37
+ type __VLS_Prettify<T> = {
38
+ [K in keyof T]: T[K];
39
+ } & {};
@@ -0,0 +1,35 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ theme?: "light" | "dark";
3
+ showTitle?: boolean;
4
+ alwaysShowTitle?: boolean;
5
+ collapsedShowTitle?: boolean;
6
+ }>, {
7
+ showTitle: boolean;
8
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ theme?: "light" | "dark";
10
+ showTitle?: boolean;
11
+ alwaysShowTitle?: boolean;
12
+ collapsedShowTitle?: boolean;
13
+ }>, {
14
+ showTitle: boolean;
15
+ }>>> & Readonly<{}>, {
16
+ showTitle: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
+ default: D[K];
31
+ }> : P[K];
32
+ };
33
+ type __VLS_Prettify<T> = {
34
+ [K in keyof T]: T[K];
35
+ } & {};