halov 0.26.401 → 0.26.415
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/README.md +8 -8
- package/dist/composables/httpTools.d.ts +1 -0
- package/dist/composables/useKeyedMutex.d.ts +9 -0
- package/dist/halov.es.js +3304 -3205
- package/dist/halov.umd.cjs +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/store/Account.d.ts +178 -19
- package/dist/store/UserConfig.d.ts +37 -0
- package/package.json +1 -1
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;
|
package/dist/store/Account.d.ts
CHANGED
|
@@ -6,23 +6,182 @@ interface UserMessage {
|
|
|
6
6
|
createTime: number;
|
|
7
7
|
isNew: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const useAccountStore: import('pinia').StoreDefinition<"account", {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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;
|
|
20
|
+
userInfo: import('vue').Ref<Record<string, any> | null, Record<string, any> | null>;
|
|
21
|
+
lastUserName: import('vue').Ref<string | null, string | null>;
|
|
22
|
+
sessionToken: import('vue').Ref<string | null, string | null>;
|
|
23
|
+
isLoadingMenu: import('vue').Ref<boolean, boolean>;
|
|
24
|
+
menus: import('vue').Ref<{
|
|
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
|
+
guid: string;
|
|
41
|
+
title: string;
|
|
42
|
+
icon?: string | undefined;
|
|
43
|
+
color?: string | undefined;
|
|
44
|
+
url?: string | undefined;
|
|
45
|
+
isSeparator: boolean;
|
|
46
|
+
isEnabled: boolean;
|
|
47
|
+
groupName?: string | undefined;
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
items?: /*elided*/ any[] | undefined;
|
|
50
|
+
tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
|
|
51
|
+
closable?: {
|
|
52
|
+
valueOf: () => boolean;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}[] | null>;
|
|
55
|
+
messages: import('vue').Ref<{
|
|
56
|
+
type: string;
|
|
57
|
+
subject: string;
|
|
58
|
+
content?: string | undefined;
|
|
59
|
+
createTime: number;
|
|
60
|
+
isNew: boolean;
|
|
61
|
+
}[], {
|
|
62
|
+
type: string;
|
|
63
|
+
subject: string;
|
|
64
|
+
content?: string | undefined;
|
|
65
|
+
createTime: number;
|
|
66
|
+
isNew: boolean;
|
|
67
|
+
}[]>;
|
|
68
|
+
}, "sessionToken" | "userInfo" | "lastUserName" | "isLoadingMenu" | "menus" | "messages">, Pick<{
|
|
69
|
+
setSession: (data: string | null) => void;
|
|
70
|
+
setLastUserName: (data: string | null) => void;
|
|
71
|
+
setUser: (data: Record<string, any> | null) => void;
|
|
72
|
+
setAvatar: (data: string) => void;
|
|
73
|
+
clearUser: () => void;
|
|
74
|
+
setMenus: (data: Array<SystemMenu> | null) => void;
|
|
75
|
+
setIsLoadingMenu: (data: boolean) => void;
|
|
76
|
+
logout: () => void;
|
|
77
|
+
loadMenus: (rootMenuName?: string) => Promise<void>;
|
|
78
|
+
addMessage: (message: UserMessage) => void;
|
|
79
|
+
userInfo: import('vue').Ref<Record<string, any> | null, Record<string, any> | null>;
|
|
80
|
+
lastUserName: import('vue').Ref<string | null, string | null>;
|
|
81
|
+
sessionToken: import('vue').Ref<string | null, string | null>;
|
|
82
|
+
isLoadingMenu: import('vue').Ref<boolean, boolean>;
|
|
83
|
+
menus: import('vue').Ref<{
|
|
84
|
+
guid: string;
|
|
85
|
+
title: string;
|
|
86
|
+
icon?: string | undefined;
|
|
87
|
+
color?: string | undefined;
|
|
88
|
+
url?: string | undefined;
|
|
89
|
+
isSeparator: boolean;
|
|
90
|
+
isEnabled: boolean;
|
|
91
|
+
groupName?: string | undefined;
|
|
92
|
+
description?: string | undefined;
|
|
93
|
+
items?: /*elided*/ any[] | undefined;
|
|
94
|
+
tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
|
|
95
|
+
closable?: {
|
|
96
|
+
valueOf: () => boolean;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}[] | null, {
|
|
99
|
+
guid: string;
|
|
100
|
+
title: string;
|
|
101
|
+
icon?: string | undefined;
|
|
102
|
+
color?: string | undefined;
|
|
103
|
+
url?: string | undefined;
|
|
104
|
+
isSeparator: boolean;
|
|
105
|
+
isEnabled: boolean;
|
|
106
|
+
groupName?: string | undefined;
|
|
107
|
+
description?: string | undefined;
|
|
108
|
+
items?: /*elided*/ any[] | undefined;
|
|
109
|
+
tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
|
|
110
|
+
closable?: {
|
|
111
|
+
valueOf: () => boolean;
|
|
112
|
+
} | undefined;
|
|
113
|
+
}[] | null>;
|
|
114
|
+
messages: import('vue').Ref<{
|
|
115
|
+
type: string;
|
|
116
|
+
subject: string;
|
|
117
|
+
content?: string | undefined;
|
|
118
|
+
createTime: number;
|
|
119
|
+
isNew: boolean;
|
|
120
|
+
}[], {
|
|
121
|
+
type: string;
|
|
122
|
+
subject: string;
|
|
123
|
+
content?: string | undefined;
|
|
124
|
+
createTime: number;
|
|
125
|
+
isNew: boolean;
|
|
126
|
+
}[]>;
|
|
127
|
+
}, never>, Pick<{
|
|
128
|
+
setSession: (data: string | null) => void;
|
|
129
|
+
setLastUserName: (data: string | null) => void;
|
|
130
|
+
setUser: (data: Record<string, any> | null) => void;
|
|
131
|
+
setAvatar: (data: string) => void;
|
|
132
|
+
clearUser: () => void;
|
|
133
|
+
setMenus: (data: Array<SystemMenu> | null) => void;
|
|
134
|
+
setIsLoadingMenu: (data: boolean) => void;
|
|
135
|
+
logout: () => void;
|
|
136
|
+
loadMenus: (rootMenuName?: string) => Promise<void>;
|
|
137
|
+
addMessage: (message: UserMessage) => void;
|
|
138
|
+
userInfo: import('vue').Ref<Record<string, any> | null, Record<string, any> | null>;
|
|
139
|
+
lastUserName: import('vue').Ref<string | null, string | null>;
|
|
140
|
+
sessionToken: import('vue').Ref<string | null, string | null>;
|
|
141
|
+
isLoadingMenu: import('vue').Ref<boolean, boolean>;
|
|
142
|
+
menus: import('vue').Ref<{
|
|
143
|
+
guid: string;
|
|
144
|
+
title: string;
|
|
145
|
+
icon?: string | undefined;
|
|
146
|
+
color?: string | undefined;
|
|
147
|
+
url?: string | undefined;
|
|
148
|
+
isSeparator: boolean;
|
|
149
|
+
isEnabled: boolean;
|
|
150
|
+
groupName?: string | undefined;
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
items?: /*elided*/ any[] | undefined;
|
|
153
|
+
tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
|
|
154
|
+
closable?: {
|
|
155
|
+
valueOf: () => boolean;
|
|
156
|
+
} | undefined;
|
|
157
|
+
}[] | null, {
|
|
158
|
+
guid: string;
|
|
159
|
+
title: string;
|
|
160
|
+
icon?: string | undefined;
|
|
161
|
+
color?: string | undefined;
|
|
162
|
+
url?: string | undefined;
|
|
163
|
+
isSeparator: boolean;
|
|
164
|
+
isEnabled: boolean;
|
|
165
|
+
groupName?: string | undefined;
|
|
166
|
+
description?: string | undefined;
|
|
167
|
+
items?: /*elided*/ any[] | undefined;
|
|
168
|
+
tabBehavior?: "Stay" | "NewTab" | "NamedTab" | undefined;
|
|
169
|
+
closable?: {
|
|
170
|
+
valueOf: () => boolean;
|
|
171
|
+
} | undefined;
|
|
172
|
+
}[] | null>;
|
|
173
|
+
messages: import('vue').Ref<{
|
|
174
|
+
type: string;
|
|
175
|
+
subject: string;
|
|
176
|
+
content?: string | undefined;
|
|
177
|
+
createTime: number;
|
|
178
|
+
isNew: boolean;
|
|
179
|
+
}[], {
|
|
180
|
+
type: string;
|
|
181
|
+
subject: string;
|
|
182
|
+
content?: string | undefined;
|
|
183
|
+
createTime: number;
|
|
184
|
+
isNew: boolean;
|
|
185
|
+
}[]>;
|
|
186
|
+
}, "setSession" | "setLastUserName" | "setUser" | "setAvatar" | "clearUser" | "setMenus" | "setIsLoadingMenu" | "logout" | "loadMenus" | "addMessage">>;
|
|
28
187
|
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">>;
|