halov 0.26.316 → 0.26.414

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/index.d.ts CHANGED
@@ -69,6 +69,7 @@ export * from './store/Account';
69
69
  export * from './store/Common';
70
70
  export * from './store/Tabs';
71
71
  export * from './store/fontSizeStore';
72
+ export * from './store/UserConfig';
72
73
  export { AppLogoBox, AppTabs, AutoScrollView, BarcodeImage, ChangePassword, ColorInput, DefaultPropertyForm, DetailPage, ExportModal, EmptyDetailView, FormInput, FullscreenSwitch, GridConfigModal, HaloButtonSelect, HaloDatePicker, HaloForm, HaloGrid, HaloModal, HaloModalInput, HaloSelect, HaloTagsInput, HaloTimePicker, HaloTransfer, ImportModal, InputModal, ListInputModal, MainDetailPanel, MenuIcon, NullableBooleanInput, NumberInputModal, ObjectTreeView, PhotoBox, PrintModal, PropertyGrid, QrModal, SearchCard, SearchForm, SearchModal, SearchPanel, SelectIconBox, SelectObjectModal, SideMenu, SystemIconInput, TagsView, ToolButton, TopMenu, TreeView, UserMenu, TabMenu };
73
74
  declare const halovLibrary: {
74
75
  install(app: App, options?: HalovOptions): void;
@@ -6,23 +6,119 @@ interface UserMessage {
6
6
  createTime: number;
7
7
  isNew: boolean;
8
8
  }
9
- export declare const useAccountStore: import('pinia').StoreDefinition<"account", {
9
+ export declare const useAccountStore: import('pinia').StoreDefinition<"account", Pick<{
10
+ setSession: (data: string | null) => void;
11
+ setLastUserName: (data: string | null) => void;
12
+ setUser: (data: Record<string, any> | null) => void;
13
+ setAvatar: (data: string) => void;
14
+ clearUser: () => void;
15
+ setMenus: (data: Array<SystemMenu> | null) => void;
16
+ setIsLoadingMenu: (data: boolean) => void;
17
+ logout: () => void;
18
+ loadMenus: (rootMenuName?: string) => Promise<void>;
19
+ addMessage: (message: UserMessage) => void;
10
20
  userInfo: Record<string, any> | null;
11
21
  lastUserName: string | null;
12
22
  sessionToken: string | null;
13
23
  isLoadingMenu: boolean;
14
- menus: Array<SystemMenu> | null;
15
- messages: Array<UserMessage>;
16
- }, {}, {
17
- setSession(data: string | null): void;
18
- setLastUserName(data: string | null): void;
19
- setUser(data: Record<string, any> | null): void;
20
- setAvatar(data: string): void;
21
- clearUser(): void;
22
- setMenus(data: Array<SystemMenu> | null): void;
23
- setIsLoadingMenu(data: boolean): void;
24
- logout(): void;
25
- loadMenus(rootMenuName?: string): Promise<void>;
26
- addMessage(message: UserMessage): void;
27
- }>;
24
+ menus: {
25
+ guid: string;
26
+ title: string;
27
+ icon?: string | undefined;
28
+ color?: string | undefined;
29
+ url?: string | undefined;
30
+ isSeparator: boolean;
31
+ isEnabled: boolean;
32
+ groupName?: string | undefined;
33
+ description?: string | undefined;
34
+ items?: /*elided*/ any[] | undefined;
35
+ tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
36
+ closable?: {
37
+ valueOf: () => boolean;
38
+ } | undefined;
39
+ }[] | null;
40
+ messages: {
41
+ type: string;
42
+ subject: string;
43
+ content?: string | undefined;
44
+ createTime: number;
45
+ isNew: boolean;
46
+ }[];
47
+ }, "sessionToken" | "userInfo" | "lastUserName" | "isLoadingMenu" | "menus" | "messages">, Pick<{
48
+ setSession: (data: string | null) => void;
49
+ setLastUserName: (data: string | null) => void;
50
+ setUser: (data: Record<string, any> | null) => void;
51
+ setAvatar: (data: string) => void;
52
+ clearUser: () => void;
53
+ setMenus: (data: Array<SystemMenu> | null) => void;
54
+ setIsLoadingMenu: (data: boolean) => void;
55
+ logout: () => void;
56
+ loadMenus: (rootMenuName?: string) => Promise<void>;
57
+ addMessage: (message: UserMessage) => void;
58
+ userInfo: Record<string, any> | null;
59
+ lastUserName: string | null;
60
+ sessionToken: string | null;
61
+ isLoadingMenu: boolean;
62
+ menus: {
63
+ guid: string;
64
+ title: string;
65
+ icon?: string | undefined;
66
+ color?: string | undefined;
67
+ url?: string | undefined;
68
+ isSeparator: boolean;
69
+ isEnabled: boolean;
70
+ groupName?: string | undefined;
71
+ description?: string | undefined;
72
+ items?: /*elided*/ any[] | undefined;
73
+ tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
74
+ closable?: {
75
+ valueOf: () => boolean;
76
+ } | undefined;
77
+ }[] | null;
78
+ messages: {
79
+ type: string;
80
+ subject: string;
81
+ content?: string | undefined;
82
+ createTime: number;
83
+ isNew: boolean;
84
+ }[];
85
+ }, never>, Pick<{
86
+ setSession: (data: string | null) => void;
87
+ setLastUserName: (data: string | null) => void;
88
+ setUser: (data: Record<string, any> | null) => void;
89
+ setAvatar: (data: string) => void;
90
+ clearUser: () => void;
91
+ setMenus: (data: Array<SystemMenu> | null) => void;
92
+ setIsLoadingMenu: (data: boolean) => void;
93
+ logout: () => void;
94
+ loadMenus: (rootMenuName?: string) => Promise<void>;
95
+ addMessage: (message: UserMessage) => void;
96
+ userInfo: Record<string, any> | null;
97
+ lastUserName: string | null;
98
+ sessionToken: string | null;
99
+ isLoadingMenu: boolean;
100
+ menus: {
101
+ guid: string;
102
+ title: string;
103
+ icon?: string | undefined;
104
+ color?: string | undefined;
105
+ url?: string | undefined;
106
+ isSeparator: boolean;
107
+ isEnabled: boolean;
108
+ groupName?: string | undefined;
109
+ description?: string | undefined;
110
+ items?: /*elided*/ any[] | undefined;
111
+ tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
112
+ closable?: {
113
+ valueOf: () => boolean;
114
+ } | undefined;
115
+ }[] | null;
116
+ messages: {
117
+ type: string;
118
+ subject: string;
119
+ content?: string | undefined;
120
+ createTime: number;
121
+ isNew: boolean;
122
+ }[];
123
+ }, "setSession" | "setLastUserName" | "setUser" | "setAvatar" | "clearUser" | "setMenus" | "setIsLoadingMenu" | "logout" | "loadMenus" | "addMessage">>;
28
124
  export {};
@@ -0,0 +1,37 @@
1
+ export declare const useUserConfigStore: import('pinia').StoreDefinition<"userConfig", Pick<{
2
+ config: Record<string, any>;
3
+ getConfig: import('vue').ComputedRef<(key: string) => any>;
4
+ getAllConfig: import('vue').ComputedRef<{
5
+ [x: string]: any;
6
+ }>;
7
+ setConfig: (key: string, value: any) => void;
8
+ setMultipleConfig: (newConfig: Record<string, any>) => void;
9
+ getConfigValue: (key: string, defaultValue?: any) => any;
10
+ removeConfig: (key: string) => void;
11
+ clearAllConfig: () => void;
12
+ loadFromLocalStorage: () => void;
13
+ }, "config">, Pick<{
14
+ config: Record<string, any>;
15
+ getConfig: import('vue').ComputedRef<(key: string) => any>;
16
+ getAllConfig: import('vue').ComputedRef<{
17
+ [x: string]: any;
18
+ }>;
19
+ setConfig: (key: string, value: any) => void;
20
+ setMultipleConfig: (newConfig: Record<string, any>) => void;
21
+ getConfigValue: (key: string, defaultValue?: any) => any;
22
+ removeConfig: (key: string) => void;
23
+ clearAllConfig: () => void;
24
+ loadFromLocalStorage: () => void;
25
+ }, "getConfig" | "getAllConfig">, Pick<{
26
+ config: Record<string, any>;
27
+ getConfig: import('vue').ComputedRef<(key: string) => any>;
28
+ getAllConfig: import('vue').ComputedRef<{
29
+ [x: string]: any;
30
+ }>;
31
+ setConfig: (key: string, value: any) => void;
32
+ setMultipleConfig: (newConfig: Record<string, any>) => void;
33
+ getConfigValue: (key: string, defaultValue?: any) => any;
34
+ removeConfig: (key: string) => void;
35
+ clearAllConfig: () => void;
36
+ loadFromLocalStorage: () => void;
37
+ }, "setConfig" | "setMultipleConfig" | "getConfigValue" | "removeConfig" | "clearAllConfig" | "loadFromLocalStorage">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halov",
3
- "version": "0.26.0316",
3
+ "version": "0.26.0414",
4
4
  "type": "module",
5
5
  "main": "dist/halov.umd.cjs",
6
6
  "module": "dist/halov.es.js",