x-essential-lib 0.9.34 → 0.9.36
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/i18n-en.f0pmulir.js +1 -0
- package/dist/i18n-zhHans.ex0oq1u6.js +1 -0
- package/dist/index.d.ts +434 -357
- package/dist/index.js +2 -966
- package/dist/rolldown-runtime.mam1o4z7.js +1 -0
- package/dist/style.css +1 -0
- package/package.json +38 -43
- package/dist/i18n-en.lqadbyvh.js +0 -102
- package/dist/i18n-zhHans.jagnyxbk.js +0 -102
- package/dist/rolldown-runtime.msh1uh5g.js +0 -11
- package/dist/vendor.muy2hy8m.js +0 -224
package/dist/index.d.ts
CHANGED
|
@@ -1,357 +1,434 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Emitter } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
declare
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
declare
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
import { RouteLocationNormalized } from "vue-router";
|
|
3
|
+
import { AxiosInstance } from "axios";
|
|
4
|
+
import { Emitter, EventType } from "mitt";
|
|
5
|
+
|
|
6
|
+
//#region src/composables/color.d.ts
|
|
7
|
+
declare function useColor(): {
|
|
8
|
+
primaryColor: import("vue").ComputedRef<string | number | {
|
|
9
|
+
readonly h: number;
|
|
10
|
+
readonly s: number;
|
|
11
|
+
readonly v: number;
|
|
12
|
+
readonly a?: number | undefined;
|
|
13
|
+
} | {
|
|
14
|
+
readonly r: number;
|
|
15
|
+
readonly g: number;
|
|
16
|
+
readonly b: number;
|
|
17
|
+
readonly a?: number | undefined;
|
|
18
|
+
} | {
|
|
19
|
+
readonly h: number;
|
|
20
|
+
readonly s: number;
|
|
21
|
+
readonly l: number;
|
|
22
|
+
readonly a?: number | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
secondaryColor: import("vue").ComputedRef<string | number | {
|
|
25
|
+
readonly h: number;
|
|
26
|
+
readonly s: number;
|
|
27
|
+
readonly v: number;
|
|
28
|
+
readonly a?: number | undefined;
|
|
29
|
+
} | {
|
|
30
|
+
readonly r: number;
|
|
31
|
+
readonly g: number;
|
|
32
|
+
readonly b: number;
|
|
33
|
+
readonly a?: number | undefined;
|
|
34
|
+
} | {
|
|
35
|
+
readonly h: number;
|
|
36
|
+
readonly s: number;
|
|
37
|
+
readonly l: number;
|
|
38
|
+
readonly a?: number | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
backgroundColor0: import("vue").ComputedRef<"#2e2e2e" | "#bdbdbd">;
|
|
41
|
+
backgroundColor1: import("vue").ComputedRef<"#272727" | "#eeeeee">;
|
|
42
|
+
backgroundColor2: import("vue").ComputedRef<"#1e1e1e" | "#ffffff">;
|
|
43
|
+
highlightColor: import("vue").ComputedRef<"#303030" | "#f6f6f6">;
|
|
44
|
+
borderColor: import("vue").ComputedRef<"#ffffff1f" | "#0000001f">;
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/utils/axios.d.ts
|
|
48
|
+
type OnError = (error: unknown) => void;
|
|
49
|
+
interface Options {
|
|
50
|
+
baseUrl: string;
|
|
51
|
+
onError: OnError;
|
|
52
|
+
}
|
|
53
|
+
declare function createAxios(options: Options): AxiosInstance;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/utils/dialog.d.ts
|
|
56
|
+
interface ButtonOptions {
|
|
57
|
+
color?: string;
|
|
58
|
+
text?: string;
|
|
59
|
+
}
|
|
60
|
+
interface ConfirmParams {
|
|
61
|
+
title: string;
|
|
62
|
+
subtitle?: string;
|
|
63
|
+
text: string;
|
|
64
|
+
cancel?: ButtonOptions;
|
|
65
|
+
confirm?: ButtonOptions;
|
|
66
|
+
}
|
|
67
|
+
declare function openConfirmDlg(params: ConfirmParams): Promise<boolean | undefined>;
|
|
68
|
+
interface NumberParams {
|
|
69
|
+
title: string;
|
|
70
|
+
subtitle?: string;
|
|
71
|
+
value: number;
|
|
72
|
+
precision?: number;
|
|
73
|
+
min?: number;
|
|
74
|
+
max?: number;
|
|
75
|
+
step?: number;
|
|
76
|
+
}
|
|
77
|
+
declare function openNumberDlg(params: NumberParams): Promise<number | undefined>;
|
|
78
|
+
interface PromptParams {
|
|
79
|
+
title: string;
|
|
80
|
+
subtitle?: string;
|
|
81
|
+
text?: string;
|
|
82
|
+
label?: string;
|
|
83
|
+
placeholder?: string;
|
|
84
|
+
rules?: ((val: string) => string | boolean)[];
|
|
85
|
+
value?: string;
|
|
86
|
+
cancel?: ButtonOptions;
|
|
87
|
+
confirm?: ButtonOptions;
|
|
88
|
+
}
|
|
89
|
+
declare function openPromptDlg(params: PromptParams): Promise<string | undefined>;
|
|
90
|
+
declare function openWaitDlg(text?: string): void;
|
|
91
|
+
declare function closeWaitDlg(): void;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/utils/message.d.ts
|
|
94
|
+
declare function messageError(text: string, timeout?: number): void;
|
|
95
|
+
declare function messageInfo(text: string, timeout?: number): void;
|
|
96
|
+
declare function messageSuccess(text: string, timeout?: number): void;
|
|
97
|
+
declare function messageWarning(text: string, timeout?: number): void;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/utils/misc.d.ts
|
|
100
|
+
declare const globalObjects: {
|
|
101
|
+
router: any;
|
|
102
|
+
i18n: any;
|
|
103
|
+
};
|
|
104
|
+
declare const eventBus: Emitter<Record<EventType, unknown>>;
|
|
105
|
+
declare function waitMs(ms: number): Promise<void>;
|
|
106
|
+
declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interval?: number): Promise<boolean>;
|
|
107
|
+
declare function appAppear(name: string, forward: boolean): void;
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/utils/permission.d.ts
|
|
110
|
+
declare enum Permission {
|
|
111
|
+
list_app_group = "list_app_group",
|
|
112
|
+
create_app_group = "create_app_group",
|
|
113
|
+
delete_app_group = "delete_app_group",
|
|
114
|
+
update_app_group = "update_app_group",
|
|
115
|
+
arrange_app_group = "arrange_app_group",
|
|
116
|
+
list_app = "list_app",
|
|
117
|
+
get_app = "get_app",
|
|
118
|
+
create_app = "create_app",
|
|
119
|
+
delete_app = "delete_app",
|
|
120
|
+
update_app = "update_app",
|
|
121
|
+
list_app_release = "list_app_release",
|
|
122
|
+
get_app_release = "get_app_release",
|
|
123
|
+
create_app_release = "create_app_release",
|
|
124
|
+
delete_app_release = "delete_app_release",
|
|
125
|
+
deploy_app_release = "deploy_app_release",
|
|
126
|
+
open_app_layer = "open_app_layer",
|
|
127
|
+
open_app = "open_app",
|
|
128
|
+
list_compute_space = "list_compute_space",
|
|
129
|
+
get_compute_space = "get_compute_space",
|
|
130
|
+
create_compute_space = "create_compute_space",
|
|
131
|
+
delete_compute_space = "delete_compute_space",
|
|
132
|
+
update_compute_space = "update_compute_space",
|
|
133
|
+
arrange_compute_space = "arrange_compute_space",
|
|
134
|
+
list_func_group = "list_func_group",
|
|
135
|
+
create_func_group = "create_func_group",
|
|
136
|
+
delete_func_group = "delete_func_group",
|
|
137
|
+
update_func_group = "update_func_group",
|
|
138
|
+
arrange_func_group = "arrange_func_group",
|
|
139
|
+
list_func = "list_func",
|
|
140
|
+
get_func = "get_func",
|
|
141
|
+
create_func = "create_func",
|
|
142
|
+
delete_func = "delete_func",
|
|
143
|
+
update_func = "update_func",
|
|
144
|
+
debug_func = "debug_func",
|
|
145
|
+
call_func = "call_func",
|
|
146
|
+
list_func_release = "list_func_release",
|
|
147
|
+
get_func_release = "get_func_release",
|
|
148
|
+
create_func_release = "create_func_release",
|
|
149
|
+
delete_func_release = "delete_func_release",
|
|
150
|
+
deploy_func_release = "deploy_func_release",
|
|
151
|
+
list_flow_group = "list_flow_group",
|
|
152
|
+
create_flow_group = "create_flow_group",
|
|
153
|
+
delete_flow_group = "delete_flow_group",
|
|
154
|
+
update_flow_group = "update_flow_group",
|
|
155
|
+
arrange_flow_group = "arrange_flow_group",
|
|
156
|
+
list_flow = "list_flow",
|
|
157
|
+
get_flow = "get_flow",
|
|
158
|
+
create_flow = "create_flow",
|
|
159
|
+
delete_flow = "delete_flow",
|
|
160
|
+
update_flow = "update_flow",
|
|
161
|
+
debug_flow = "debug_flow",
|
|
162
|
+
call_flow = "call_flow",
|
|
163
|
+
list_flow_release = "list_flow_release",
|
|
164
|
+
get_flow_release = "get_flow_release",
|
|
165
|
+
create_flow_release = "create_flow_release",
|
|
166
|
+
delete_flow_release = "delete_flow_release",
|
|
167
|
+
deploy_flow_release = "deploy_flow_release",
|
|
168
|
+
list_task = "list_task",
|
|
169
|
+
get_task = "get_task",
|
|
170
|
+
create_task = "create_task",
|
|
171
|
+
delete_task = "delete_task",
|
|
172
|
+
update_task = "update_task",
|
|
173
|
+
call_task = "call_task",
|
|
174
|
+
open_compute_layer = "open_compute_layer",
|
|
175
|
+
list_data_space = "list_data_space",
|
|
176
|
+
get_data_space = "get_data_space",
|
|
177
|
+
create_data_space = "create_data_space",
|
|
178
|
+
delete_data_space = "delete_data_space",
|
|
179
|
+
update_data_space = "update_data_space",
|
|
180
|
+
arrange_data_space = "arrange_data_space",
|
|
181
|
+
list_table_group = "list_table_group",
|
|
182
|
+
create_table_group = "create_table_group",
|
|
183
|
+
delete_table_group = "delete_table_group",
|
|
184
|
+
update_table_group = "update_table_group",
|
|
185
|
+
arrange_table_group = "arrange_table_group",
|
|
186
|
+
list_table = "list_table",
|
|
187
|
+
get_table = "get_table",
|
|
188
|
+
create_table = "create_table",
|
|
189
|
+
delete_table = "delete_table",
|
|
190
|
+
update_table = "update_table",
|
|
191
|
+
get_data = "get_data",
|
|
192
|
+
create_data = "create_data",
|
|
193
|
+
delete_data = "delete_data",
|
|
194
|
+
update_data = "update_data",
|
|
195
|
+
get_relation_graph = "get_relation_graph",
|
|
196
|
+
update_relation_graph = "update_relation_graph",
|
|
197
|
+
list_change = "list_change",
|
|
198
|
+
apply_change = "apply_change",
|
|
199
|
+
open_data_layer = "open_data_layer",
|
|
200
|
+
list_resource_space = "list_resource_space",
|
|
201
|
+
get_resource_space = "get_resource_space",
|
|
202
|
+
create_resource_space = "create_resource_space",
|
|
203
|
+
delete_resource_space = "delete_resource_space",
|
|
204
|
+
update_resource_space = "update_resource_space",
|
|
205
|
+
arrange_resource_space = "arrange_resource_space",
|
|
206
|
+
list_dir = "list_dir",
|
|
207
|
+
create_dir = "create_dir",
|
|
208
|
+
delete_dir = "delete_dir",
|
|
209
|
+
update_dir = "update_dir",
|
|
210
|
+
move_dir = "move_dir",
|
|
211
|
+
list_resource = "list_resource",
|
|
212
|
+
get_resource = "get_resource",
|
|
213
|
+
create_resource = "create_resource",
|
|
214
|
+
delete_resource = "delete_resource",
|
|
215
|
+
update_resource = "update_resource",
|
|
216
|
+
move_resource = "move_resource",
|
|
217
|
+
open_resource_layer = "open_resource_layer",
|
|
218
|
+
list_org_member = "list_org_member",
|
|
219
|
+
add_org_member = "add_org_member",
|
|
220
|
+
remove_org_member = "remove_org_member",
|
|
221
|
+
update_org_member = "update_org_member",
|
|
222
|
+
list_org_role_group = "list_org_role_group",
|
|
223
|
+
create_org_role_group = "create_org_role_group",
|
|
224
|
+
delete_org_role_group = "delete_org_role_group",
|
|
225
|
+
update_org_role_group = "update_org_role_group",
|
|
226
|
+
arrange_org_role_group = "arrange_org_role_group",
|
|
227
|
+
list_org_role = "list_org_role",
|
|
228
|
+
get_org_role = "get_org_role",
|
|
229
|
+
create_org_role = "create_org_role",
|
|
230
|
+
delete_org_role = "delete_org_role",
|
|
231
|
+
update_org_role = "update_org_role",
|
|
232
|
+
get_org_structure = "get_org_structure",
|
|
233
|
+
update_org_structure = "update_org_structure",
|
|
234
|
+
filter_table = "filter_table"
|
|
235
|
+
}
|
|
236
|
+
type InstanceTree = {
|
|
237
|
+
[key: string]: InstanceTree;
|
|
238
|
+
};
|
|
239
|
+
type PermissionObject = {
|
|
240
|
+
includes: InstanceTree;
|
|
241
|
+
excludes: InstanceTree;
|
|
242
|
+
};
|
|
243
|
+
type PermissionObjects = {
|
|
244
|
+
[key: string]: PermissionObject;
|
|
245
|
+
};
|
|
246
|
+
declare function isExist(instanceTree: InstanceTree | undefined, instance: string): boolean;
|
|
247
|
+
declare function verifyPermission(permissionObjects: PermissionObjects, permission: Permission, instance: string): boolean;
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region src/utils/provideInject.d.ts
|
|
250
|
+
declare function provideDark(dark: Ref<boolean>): void;
|
|
251
|
+
declare function injectDark(): Ref<boolean>;
|
|
252
|
+
declare function provideLocale(locale: Ref<string>): void;
|
|
253
|
+
declare function injectLocale(): Ref<string>;
|
|
254
|
+
declare function providePermissionObjects(permissionObjects: Ref<PermissionObjects>): void;
|
|
255
|
+
declare function injectPermissionObjects(): Ref<PermissionObjects>;
|
|
256
|
+
declare function providePermissionChecksum(permissionChecksum: Ref<string>): void;
|
|
257
|
+
declare function injectPermissionChecksum(): Ref<string>;
|
|
258
|
+
declare function provideLastAppPath(lastAppPath: Ref<string>): void;
|
|
259
|
+
declare function injectLastAppPath(): Ref<string>;
|
|
260
|
+
declare function provideViews(views: Ref<string[]>): void;
|
|
261
|
+
declare function injectViews(): Ref<string[]>;
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/utils/router.d.ts
|
|
264
|
+
interface RouteMeta {
|
|
265
|
+
app: 'x-app-mf' | 'x-compute-mf' | 'x-data-mf' | 'x-main-mf' | 'x-mine-mf' | 'x-org-mf' | 'x-passport-mf' | 'x-resource-mf';
|
|
266
|
+
path: string;
|
|
267
|
+
level: number;
|
|
268
|
+
requiredState?: 'auth' | 'org';
|
|
269
|
+
mainActive?: 1 | 2 | 3 | 4;
|
|
270
|
+
}
|
|
271
|
+
declare function matchRouteMeta(path: string): RouteMeta | undefined;
|
|
272
|
+
declare const routeTransName: import("vue").Ref<string, string>;
|
|
273
|
+
declare function onBeforeEach(to: RouteLocationNormalized, from: RouteLocationNormalized, lastAppPath: string): {
|
|
274
|
+
path: string;
|
|
275
|
+
} | undefined;
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/utils/type.d.ts
|
|
278
|
+
declare const types: readonly ["string", "number", "boolean", "array", "object", "any"];
|
|
279
|
+
type Type = (typeof types)[number];
|
|
280
|
+
declare function getTypeColor(type: Type): string;
|
|
281
|
+
declare function getTypeDefault(type: Type): any;
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region src/utils/viewMgr.d.ts
|
|
284
|
+
declare function isEmpty(views: Ref<string[]>): boolean;
|
|
285
|
+
declare function lastView(views: Ref<string[]>): string | undefined;
|
|
286
|
+
declare function hasView(views: Ref<string[]>, name: string): boolean;
|
|
287
|
+
declare function addView(views: Ref<string[]>, name: string): void;
|
|
288
|
+
declare function delView(views: Ref<string[]>, name: string): void;
|
|
289
|
+
declare function popView(views: Ref<string[]>): void;
|
|
290
|
+
declare function clearViews(views: Ref<string[]>): void;
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region src/composables/microApp.d.ts
|
|
293
|
+
declare function useMicroApp(dark: Ref<boolean | undefined>, locale: Ref<string>, permissionObjects: Ref<PermissionObjects>, permissionChecksum: Ref<string>, lastAppPath: Ref<string>, views: Ref<string[]>): void;
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region src/composables/permission.d.ts
|
|
296
|
+
declare function usePermission(): {
|
|
297
|
+
verifyPermission: (permission: Permission, instance?: string) => boolean;
|
|
298
|
+
};
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/composables/system.d.ts
|
|
301
|
+
declare function useSystem(): {
|
|
302
|
+
sysBarAvail: import("vue").ComputedRef<boolean>;
|
|
303
|
+
compactWidth: import("vue").ComputedRef<string>;
|
|
304
|
+
isCurvedScreen: import("vue").ComputedRef<boolean>;
|
|
305
|
+
isMobile: () => boolean;
|
|
306
|
+
nameList: (entries: string[], instances?: string[]) => string;
|
|
307
|
+
sentenceOfAsk: (verb: string, object: string, name: string) => string;
|
|
308
|
+
};
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/composables/viewStack.d.ts
|
|
311
|
+
declare function useViewStack(name: string, hook?: (params: unknown) => void): {
|
|
312
|
+
open: import("vue").WritableComputedRef<boolean, boolean>;
|
|
313
|
+
};
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region src/i18n/index.d.ts
|
|
316
|
+
declare function loadLocaleMessageEssential(locale: string): Promise<{
|
|
317
|
+
$vuetify: {
|
|
318
|
+
badge: string;
|
|
319
|
+
open: string;
|
|
320
|
+
close: string;
|
|
321
|
+
dismiss: string;
|
|
322
|
+
confirmEdit: {
|
|
323
|
+
ok: string;
|
|
324
|
+
cancel: string;
|
|
325
|
+
};
|
|
326
|
+
dataIterator: {
|
|
327
|
+
noResultsText: string;
|
|
328
|
+
loadingText: string;
|
|
329
|
+
};
|
|
330
|
+
dataTable: {
|
|
331
|
+
itemsPerPageText: string;
|
|
332
|
+
ariaLabel: {
|
|
333
|
+
sortDescending: string;
|
|
334
|
+
sortAscending: string;
|
|
335
|
+
sortNone: string;
|
|
336
|
+
activateNone: string;
|
|
337
|
+
activateDescending: string;
|
|
338
|
+
activateAscending: string;
|
|
339
|
+
};
|
|
340
|
+
sortBy: string;
|
|
341
|
+
};
|
|
342
|
+
dataFooter: {
|
|
343
|
+
itemsPerPageText: string;
|
|
344
|
+
itemsPerPageAll: string;
|
|
345
|
+
nextPage: string;
|
|
346
|
+
prevPage: string;
|
|
347
|
+
firstPage: string;
|
|
348
|
+
lastPage: string;
|
|
349
|
+
pageText: string;
|
|
350
|
+
};
|
|
351
|
+
dateRangeInput: {
|
|
352
|
+
divider: string;
|
|
353
|
+
};
|
|
354
|
+
datePicker: {
|
|
355
|
+
itemsSelected: string;
|
|
356
|
+
range: {
|
|
357
|
+
title: string;
|
|
358
|
+
header: string;
|
|
359
|
+
};
|
|
360
|
+
title: string;
|
|
361
|
+
header: string;
|
|
362
|
+
input: {
|
|
363
|
+
placeholder: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
noDataText: string;
|
|
367
|
+
carousel: {
|
|
368
|
+
prev: string;
|
|
369
|
+
next: string;
|
|
370
|
+
ariaLabel: {
|
|
371
|
+
delimiter: string;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
calendar: {
|
|
375
|
+
moreEvents: string;
|
|
376
|
+
today: string;
|
|
377
|
+
};
|
|
378
|
+
input: {
|
|
379
|
+
clear: string;
|
|
380
|
+
prependAction: string;
|
|
381
|
+
appendAction: string;
|
|
382
|
+
otp: string;
|
|
383
|
+
};
|
|
384
|
+
fileInput: {
|
|
385
|
+
counter: string;
|
|
386
|
+
counterSize: string;
|
|
387
|
+
};
|
|
388
|
+
timePicker: {
|
|
389
|
+
am: string;
|
|
390
|
+
pm: string;
|
|
391
|
+
title: string;
|
|
392
|
+
};
|
|
393
|
+
pagination: {
|
|
394
|
+
ariaLabel: {
|
|
395
|
+
root: string;
|
|
396
|
+
next: string;
|
|
397
|
+
previous: string;
|
|
398
|
+
page: string;
|
|
399
|
+
currentPage: string;
|
|
400
|
+
first: string;
|
|
401
|
+
last: string;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
stepper: {
|
|
405
|
+
next: string;
|
|
406
|
+
prev: string;
|
|
407
|
+
};
|
|
408
|
+
rating: {
|
|
409
|
+
ariaLabel: {
|
|
410
|
+
item: string;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
loading: string;
|
|
414
|
+
infiniteScroll: {
|
|
415
|
+
loadMore: string;
|
|
416
|
+
empty: string;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
dlg: {
|
|
420
|
+
common: {
|
|
421
|
+
ask: string;
|
|
422
|
+
cancel: string;
|
|
423
|
+
confirm: string;
|
|
424
|
+
responding: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
}>;
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/index.d.ts
|
|
430
|
+
declare const _default: {
|
|
431
|
+
install: (app: import("vue").App) => void;
|
|
432
|
+
};
|
|
433
|
+
//#endregion
|
|
434
|
+
export { Permission, PermissionObjects, Type, addView, appAppear, clearViews, closeWaitDlg, createAxios, _default as default, delView, eventBus, getTypeColor, getTypeDefault, globalObjects, hasView, injectDark, injectLastAppPath, injectLocale, injectPermissionChecksum, injectPermissionObjects, injectViews, isEmpty, isExist, lastView, loadLocaleMessageEssential, matchRouteMeta, messageError, messageInfo, messageSuccess, messageWarning, onBeforeEach, openConfirmDlg, openNumberDlg, openPromptDlg, openWaitDlg, popView, provideDark, provideLastAppPath, provideLocale, providePermissionChecksum, providePermissionObjects, provideViews, routeTransName, types, useColor, useMicroApp, usePermission, useSystem, useViewStack, verifyPermission, waitMs, waitUtil };
|