x-essential-lib 0.10.36 → 0.10.38
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.
|
@@ -4,7 +4,7 @@ import { t as __exportAll } from "./rolldown-runtime.c6i0pdwe.js";
|
|
|
4
4
|
var en_exports = /* @__PURE__ */ __exportAll({ default: () => en_default });
|
|
5
5
|
var en_default = {
|
|
6
6
|
"dlg": { common: {
|
|
7
|
-
ask: "Do you want {verb} {object} '{name}'",
|
|
7
|
+
ask: "Do you want {verb} {object} '{name}' ?",
|
|
8
8
|
cancel: "Cancel",
|
|
9
9
|
confirm: "Confirm",
|
|
10
10
|
responding: "Responding..."
|
|
@@ -4,7 +4,7 @@ import { t as __exportAll } from "./rolldown-runtime.c6i0pdwe.js";
|
|
|
4
4
|
var zhHans_exports = /* @__PURE__ */ __exportAll({ default: () => zhHans_default });
|
|
5
5
|
var zhHans_default = {
|
|
6
6
|
"dlg": { common: {
|
|
7
|
-
ask: "你想要{verb}{object}'{name}'",
|
|
7
|
+
ask: "你想要{verb}{object}'{name}'?",
|
|
8
8
|
cancel: "取消",
|
|
9
9
|
confirm: "确定",
|
|
10
10
|
responding: "响应中..."
|
package/dist/index.d.ts
CHANGED
|
@@ -1,41 +1,11 @@
|
|
|
1
|
-
import { n as EventType, t as Emitter } from "./vendor.
|
|
1
|
+
import { n as EventType, t as Emitter } from "./vendor.dqdzrw43.js";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
import { AxiosInstance } from "axios";
|
|
4
4
|
|
|
5
5
|
//#region src/composables/color.d.ts
|
|
6
6
|
declare function useColor(): {
|
|
7
|
-
primaryColor: import("vue").ComputedRef<string
|
|
8
|
-
|
|
9
|
-
readonly s: number;
|
|
10
|
-
readonly v: number;
|
|
11
|
-
readonly a?: number | undefined;
|
|
12
|
-
} | {
|
|
13
|
-
readonly r: number;
|
|
14
|
-
readonly g: number;
|
|
15
|
-
readonly b: number;
|
|
16
|
-
readonly a?: number | undefined;
|
|
17
|
-
} | {
|
|
18
|
-
readonly h: number;
|
|
19
|
-
readonly s: number;
|
|
20
|
-
readonly l: number;
|
|
21
|
-
readonly a?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
secondaryColor: import("vue").ComputedRef<string | number | {
|
|
24
|
-
readonly h: number;
|
|
25
|
-
readonly s: number;
|
|
26
|
-
readonly v: number;
|
|
27
|
-
readonly a?: number | undefined;
|
|
28
|
-
} | {
|
|
29
|
-
readonly r: number;
|
|
30
|
-
readonly g: number;
|
|
31
|
-
readonly b: number;
|
|
32
|
-
readonly a?: number | undefined;
|
|
33
|
-
} | {
|
|
34
|
-
readonly h: number;
|
|
35
|
-
readonly s: number;
|
|
36
|
-
readonly l: number;
|
|
37
|
-
readonly a?: number | undefined;
|
|
38
|
-
}>;
|
|
7
|
+
primaryColor: import("vue").ComputedRef<string>;
|
|
8
|
+
secondaryColor: import("vue").ComputedRef<string>;
|
|
39
9
|
backgroundColor0: import("vue").ComputedRef<"#2e2e2e" | "#bdbdbd">;
|
|
40
10
|
backgroundColor1: import("vue").ComputedRef<"#272727" | "#eeeeee">;
|
|
41
11
|
backgroundColor2: import("vue").ComputedRef<"#1e1e1e" | "#ffffff">;
|
|
@@ -106,136 +76,6 @@ declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interv
|
|
|
106
76
|
declare function appAppear(name: string, diff: number): void;
|
|
107
77
|
//#endregion
|
|
108
78
|
//#region src/utils/permission.d.ts
|
|
109
|
-
declare enum Permission {
|
|
110
|
-
list_app_group = "list_app_group",
|
|
111
|
-
create_app_group = "create_app_group",
|
|
112
|
-
delete_app_group = "delete_app_group",
|
|
113
|
-
update_app_group = "update_app_group",
|
|
114
|
-
arrange_app_group = "arrange_app_group",
|
|
115
|
-
list_app = "list_app",
|
|
116
|
-
get_app = "get_app",
|
|
117
|
-
create_app = "create_app",
|
|
118
|
-
delete_app = "delete_app",
|
|
119
|
-
update_app = "update_app",
|
|
120
|
-
list_app_release = "list_app_release",
|
|
121
|
-
get_app_release = "get_app_release",
|
|
122
|
-
create_app_release = "create_app_release",
|
|
123
|
-
delete_app_release = "delete_app_release",
|
|
124
|
-
deploy_app_release = "deploy_app_release",
|
|
125
|
-
open_app_layer = "open_app_layer",
|
|
126
|
-
open_app = "open_app",
|
|
127
|
-
list_compute_space = "list_compute_space",
|
|
128
|
-
get_compute_space = "get_compute_space",
|
|
129
|
-
create_compute_space = "create_compute_space",
|
|
130
|
-
delete_compute_space = "delete_compute_space",
|
|
131
|
-
update_compute_space = "update_compute_space",
|
|
132
|
-
arrange_compute_space = "arrange_compute_space",
|
|
133
|
-
list_func_group = "list_func_group",
|
|
134
|
-
create_func_group = "create_func_group",
|
|
135
|
-
delete_func_group = "delete_func_group",
|
|
136
|
-
update_func_group = "update_func_group",
|
|
137
|
-
arrange_func_group = "arrange_func_group",
|
|
138
|
-
list_func = "list_func",
|
|
139
|
-
get_func = "get_func",
|
|
140
|
-
create_func = "create_func",
|
|
141
|
-
delete_func = "delete_func",
|
|
142
|
-
update_func = "update_func",
|
|
143
|
-
debug_func = "debug_func",
|
|
144
|
-
call_func = "call_func",
|
|
145
|
-
list_func_release = "list_func_release",
|
|
146
|
-
get_func_release = "get_func_release",
|
|
147
|
-
create_func_release = "create_func_release",
|
|
148
|
-
delete_func_release = "delete_func_release",
|
|
149
|
-
deploy_func_release = "deploy_func_release",
|
|
150
|
-
list_flow_group = "list_flow_group",
|
|
151
|
-
create_flow_group = "create_flow_group",
|
|
152
|
-
delete_flow_group = "delete_flow_group",
|
|
153
|
-
update_flow_group = "update_flow_group",
|
|
154
|
-
arrange_flow_group = "arrange_flow_group",
|
|
155
|
-
list_flow = "list_flow",
|
|
156
|
-
get_flow = "get_flow",
|
|
157
|
-
create_flow = "create_flow",
|
|
158
|
-
delete_flow = "delete_flow",
|
|
159
|
-
update_flow = "update_flow",
|
|
160
|
-
debug_flow = "debug_flow",
|
|
161
|
-
call_flow = "call_flow",
|
|
162
|
-
list_flow_release = "list_flow_release",
|
|
163
|
-
get_flow_release = "get_flow_release",
|
|
164
|
-
create_flow_release = "create_flow_release",
|
|
165
|
-
delete_flow_release = "delete_flow_release",
|
|
166
|
-
deploy_flow_release = "deploy_flow_release",
|
|
167
|
-
list_task_group = "list_task_group",
|
|
168
|
-
create_task_group = "create_task_group",
|
|
169
|
-
delete_task_group = "delete_task_group",
|
|
170
|
-
update_task_group = "update_task_group",
|
|
171
|
-
arrange_task_group = "arrange_task_group",
|
|
172
|
-
list_task = "list_task",
|
|
173
|
-
create_task = "create_task",
|
|
174
|
-
delete_task = "delete_task",
|
|
175
|
-
update_task = "update_task",
|
|
176
|
-
open_compute_layer = "open_compute_layer",
|
|
177
|
-
open_task = "open_task",
|
|
178
|
-
list_data_space = "list_data_space",
|
|
179
|
-
get_data_space = "get_data_space",
|
|
180
|
-
create_data_space = "create_data_space",
|
|
181
|
-
delete_data_space = "delete_data_space",
|
|
182
|
-
update_data_space = "update_data_space",
|
|
183
|
-
arrange_data_space = "arrange_data_space",
|
|
184
|
-
list_table_group = "list_table_group",
|
|
185
|
-
create_table_group = "create_table_group",
|
|
186
|
-
delete_table_group = "delete_table_group",
|
|
187
|
-
update_table_group = "update_table_group",
|
|
188
|
-
arrange_table_group = "arrange_table_group",
|
|
189
|
-
list_table = "list_table",
|
|
190
|
-
get_table = "get_table",
|
|
191
|
-
create_table = "create_table",
|
|
192
|
-
delete_table = "delete_table",
|
|
193
|
-
update_table = "update_table",
|
|
194
|
-
get_data = "get_data",
|
|
195
|
-
create_data = "create_data",
|
|
196
|
-
delete_data = "delete_data",
|
|
197
|
-
update_data = "update_data",
|
|
198
|
-
get_relation_graph = "get_relation_graph",
|
|
199
|
-
update_relation_graph = "update_relation_graph",
|
|
200
|
-
list_change = "list_change",
|
|
201
|
-
apply_change = "apply_change",
|
|
202
|
-
open_data_layer = "open_data_layer",
|
|
203
|
-
list_resource_space = "list_resource_space",
|
|
204
|
-
get_resource_space = "get_resource_space",
|
|
205
|
-
create_resource_space = "create_resource_space",
|
|
206
|
-
delete_resource_space = "delete_resource_space",
|
|
207
|
-
update_resource_space = "update_resource_space",
|
|
208
|
-
arrange_resource_space = "arrange_resource_space",
|
|
209
|
-
list_dir = "list_dir",
|
|
210
|
-
create_dir = "create_dir",
|
|
211
|
-
delete_dir = "delete_dir",
|
|
212
|
-
update_dir = "update_dir",
|
|
213
|
-
move_dir = "move_dir",
|
|
214
|
-
list_resource = "list_resource",
|
|
215
|
-
get_resource = "get_resource",
|
|
216
|
-
create_resource = "create_resource",
|
|
217
|
-
delete_resource = "delete_resource",
|
|
218
|
-
update_resource = "update_resource",
|
|
219
|
-
move_resource = "move_resource",
|
|
220
|
-
open_resource_layer = "open_resource_layer",
|
|
221
|
-
list_org_member = "list_org_member",
|
|
222
|
-
add_org_member = "add_org_member",
|
|
223
|
-
remove_org_member = "remove_org_member",
|
|
224
|
-
update_org_member = "update_org_member",
|
|
225
|
-
list_org_role_group = "list_org_role_group",
|
|
226
|
-
create_org_role_group = "create_org_role_group",
|
|
227
|
-
delete_org_role_group = "delete_org_role_group",
|
|
228
|
-
update_org_role_group = "update_org_role_group",
|
|
229
|
-
arrange_org_role_group = "arrange_org_role_group",
|
|
230
|
-
list_org_role = "list_org_role",
|
|
231
|
-
get_org_role = "get_org_role",
|
|
232
|
-
create_org_role = "create_org_role",
|
|
233
|
-
delete_org_role = "delete_org_role",
|
|
234
|
-
update_org_role = "update_org_role",
|
|
235
|
-
get_org_structure = "get_org_structure",
|
|
236
|
-
update_org_structure = "update_org_structure",
|
|
237
|
-
filter_table = "filter_table"
|
|
238
|
-
}
|
|
239
79
|
type InstanceTree = {
|
|
240
80
|
[key: string]: InstanceTree;
|
|
241
81
|
};
|
|
@@ -250,7 +90,7 @@ declare function toPermissionObjects(permissions: {
|
|
|
250
90
|
[key: string]: string;
|
|
251
91
|
}): PermissionObjects;
|
|
252
92
|
declare function isExist(instanceTree: InstanceTree | undefined, instance: string): boolean;
|
|
253
|
-
declare function verifyPermission(permissionObjects: PermissionObjects, permission:
|
|
93
|
+
declare function verifyPermission(permissionObjects: PermissionObjects, permission: string, instance: string): boolean;
|
|
254
94
|
//#endregion
|
|
255
95
|
//#region src/utils/provideInject.d.ts
|
|
256
96
|
declare function provideDark(dark: Ref<boolean>): void;
|
|
@@ -315,7 +155,7 @@ declare function usePageRoute(onRouteChange?: () => Promise<void>): {
|
|
|
315
155
|
//#endregion
|
|
316
156
|
//#region src/composables/permission.d.ts
|
|
317
157
|
declare function usePermission(): {
|
|
318
|
-
verifyPermission: (permission:
|
|
158
|
+
verifyPermission: (permission: string, instance?: string) => boolean;
|
|
319
159
|
};
|
|
320
160
|
//#endregion
|
|
321
161
|
//#region src/composables/system.d.ts
|
|
@@ -558,4 +398,4 @@ declare const _default: {
|
|
|
558
398
|
install: (app: import("vue").App) => void;
|
|
559
399
|
};
|
|
560
400
|
//#endregion
|
|
561
|
-
export { GlobalStates,
|
|
401
|
+
export { GlobalStates, PermissionObjects, RouteMeta, Type, addView, appAppear, clearViews, closeWaitDlg, createAxios, _default as default, delView, eventBus, getTypeColor, getTypeDefault, globalObjects, hasView, injectDark, injectLocale, injectPermissionObjects, injectViews, isEmpty, isExist, lastView, loadLocaleMessageEssential, matchRouteMeta, messageError, messageInfo, messageSuccess, messageWarning, onBeforeEnter, openConfirmDlg, openNumberDlg, openPromptDlg, openWaitDlg, popView, provideDark, provideLocale, providePermissionObjects, provideViews, routeTransName, toPermissionObjects, types, useColor, useGlobalStates, useMicroApp, usePageRoute, usePermission, useSystem, useViewStack, verifyPermission, waitMs, waitUtil };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){try{document.getElementById(`x-essential-lib`)?.remove();const e = document.createElement(`style`);e.setAttribute(`id`, `x-essential-lib`);const t = document.createTextNode(`.fade-leave-active[data-v-x-essential-lib-c3545c8d]{transition:opacity .5s}.fade-leave-to[data-v-x-essential-lib-c3545c8d]{opacity:0}.x-cont[data-v-x-essential-lib-c3545c8d]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lds-spinner[data-v-x-essential-lib-c3545c8d]{color:official;width:40px;height:40px;display:inline-block;position:relative}.lds-spinner div[data-v-x-essential-lib-c3545c8d]{transform-origin:20px 20px;animation:1.2s linear infinite lds-spinner-x-essential-lib-c3545c8d}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:after{content:" ";background:#9e9e9e;border-radius:5%;width:2px;height:6px;display:block;position:absolute;top:3px;left:18px}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-x-essential-lib-c3545c8d{0%{opacity:1}to{opacity:0}}.x-item[data-v-x-essential-lib-cfcda9d9]{width:600px}@media (width<=600px){.x-item[data-v-x-essential-lib-cfcda9d9]{width:calc(100vw - 16px)}}.x-cont[data-v-x-essential-lib-b973907d]{z-index:9999;position:fixed;bottom:
|
|
2
|
-
import { a as api, i as mitt_default, o as usePreferredDark, r as toLower } from "./vendor.
|
|
1
|
+
(function(){try{document.getElementById(`x-essential-lib`)?.remove();const e = document.createElement(`style`);e.setAttribute(`id`, `x-essential-lib`);const t = document.createTextNode(`.fade-leave-active[data-v-x-essential-lib-c3545c8d]{transition:opacity .5s}.fade-leave-to[data-v-x-essential-lib-c3545c8d]{opacity:0}.x-cont[data-v-x-essential-lib-c3545c8d]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lds-spinner[data-v-x-essential-lib-c3545c8d]{color:official;width:40px;height:40px;display:inline-block;position:relative}.lds-spinner div[data-v-x-essential-lib-c3545c8d]{transform-origin:20px 20px;animation:1.2s linear infinite lds-spinner-x-essential-lib-c3545c8d}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:after{content:" ";background:#9e9e9e;border-radius:5%;width:2px;height:6px;display:block;position:absolute;top:3px;left:18px}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-x-essential-lib-c3545c8d{0%{opacity:1}to{opacity:0}}.x-item[data-v-x-essential-lib-cfcda9d9]{width:600px}@media (width<=600px){.x-item[data-v-x-essential-lib-cfcda9d9]{width:calc(100vw - 16px)}}.x-cont[data-v-x-essential-lib-b973907d]{z-index:9999;position:fixed;bottom:50px;left:50%;transform:translate(-50%)}`);e.appendChild(t);document.head.appendChild(e);}catch(e){console.error('rolldown-plugin-inject-css', e);}})()
|
|
2
|
+
import { a as api, i as mitt_default, o as usePreferredDark, r as toLower } from "./vendor.dqdzrw43.js";
|
|
3
3
|
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, isRef, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, resolveComponent, toDisplayString, unref, useTemplateRef, watch, watchEffect, withCtx, withKeys, withModifiers } from "vue";
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
import { useDisplay, useTheme } from "vuetify";
|
|
@@ -13,10 +13,10 @@ function useColor() {
|
|
|
13
13
|
const theme = useTheme();
|
|
14
14
|
return {
|
|
15
15
|
primaryColor: computed(() => {
|
|
16
|
-
return theme.global.current.value.colors.primary;
|
|
16
|
+
return theme.global.current.value.colors.primary.toString();
|
|
17
17
|
}),
|
|
18
18
|
secondaryColor: computed(() => {
|
|
19
|
-
return theme.global.current.value.colors.secondary;
|
|
19
|
+
return theme.global.current.value.colors.secondary.toString();
|
|
20
20
|
}),
|
|
21
21
|
backgroundColor0: computed(() => {
|
|
22
22
|
return theme.current.value.dark ? "#2e2e2e" : "#bdbdbd";
|
|
@@ -247,137 +247,6 @@ function messageWarning(text, timeout) {
|
|
|
247
247
|
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region src/utils/permission.ts
|
|
250
|
-
let Permission = /* @__PURE__ */ function(Permission) {
|
|
251
|
-
Permission["list_app_group"] = "list_app_group";
|
|
252
|
-
Permission["create_app_group"] = "create_app_group";
|
|
253
|
-
Permission["delete_app_group"] = "delete_app_group";
|
|
254
|
-
Permission["update_app_group"] = "update_app_group";
|
|
255
|
-
Permission["arrange_app_group"] = "arrange_app_group";
|
|
256
|
-
Permission["list_app"] = "list_app";
|
|
257
|
-
Permission["get_app"] = "get_app";
|
|
258
|
-
Permission["create_app"] = "create_app";
|
|
259
|
-
Permission["delete_app"] = "delete_app";
|
|
260
|
-
Permission["update_app"] = "update_app";
|
|
261
|
-
Permission["list_app_release"] = "list_app_release";
|
|
262
|
-
Permission["get_app_release"] = "get_app_release";
|
|
263
|
-
Permission["create_app_release"] = "create_app_release";
|
|
264
|
-
Permission["delete_app_release"] = "delete_app_release";
|
|
265
|
-
Permission["deploy_app_release"] = "deploy_app_release";
|
|
266
|
-
Permission["open_app_layer"] = "open_app_layer";
|
|
267
|
-
Permission["open_app"] = "open_app";
|
|
268
|
-
Permission["list_compute_space"] = "list_compute_space";
|
|
269
|
-
Permission["get_compute_space"] = "get_compute_space";
|
|
270
|
-
Permission["create_compute_space"] = "create_compute_space";
|
|
271
|
-
Permission["delete_compute_space"] = "delete_compute_space";
|
|
272
|
-
Permission["update_compute_space"] = "update_compute_space";
|
|
273
|
-
Permission["arrange_compute_space"] = "arrange_compute_space";
|
|
274
|
-
Permission["list_func_group"] = "list_func_group";
|
|
275
|
-
Permission["create_func_group"] = "create_func_group";
|
|
276
|
-
Permission["delete_func_group"] = "delete_func_group";
|
|
277
|
-
Permission["update_func_group"] = "update_func_group";
|
|
278
|
-
Permission["arrange_func_group"] = "arrange_func_group";
|
|
279
|
-
Permission["list_func"] = "list_func";
|
|
280
|
-
Permission["get_func"] = "get_func";
|
|
281
|
-
Permission["create_func"] = "create_func";
|
|
282
|
-
Permission["delete_func"] = "delete_func";
|
|
283
|
-
Permission["update_func"] = "update_func";
|
|
284
|
-
Permission["debug_func"] = "debug_func";
|
|
285
|
-
Permission["call_func"] = "call_func";
|
|
286
|
-
Permission["list_func_release"] = "list_func_release";
|
|
287
|
-
Permission["get_func_release"] = "get_func_release";
|
|
288
|
-
Permission["create_func_release"] = "create_func_release";
|
|
289
|
-
Permission["delete_func_release"] = "delete_func_release";
|
|
290
|
-
Permission["deploy_func_release"] = "deploy_func_release";
|
|
291
|
-
Permission["list_flow_group"] = "list_flow_group";
|
|
292
|
-
Permission["create_flow_group"] = "create_flow_group";
|
|
293
|
-
Permission["delete_flow_group"] = "delete_flow_group";
|
|
294
|
-
Permission["update_flow_group"] = "update_flow_group";
|
|
295
|
-
Permission["arrange_flow_group"] = "arrange_flow_group";
|
|
296
|
-
Permission["list_flow"] = "list_flow";
|
|
297
|
-
Permission["get_flow"] = "get_flow";
|
|
298
|
-
Permission["create_flow"] = "create_flow";
|
|
299
|
-
Permission["delete_flow"] = "delete_flow";
|
|
300
|
-
Permission["update_flow"] = "update_flow";
|
|
301
|
-
Permission["debug_flow"] = "debug_flow";
|
|
302
|
-
Permission["call_flow"] = "call_flow";
|
|
303
|
-
Permission["list_flow_release"] = "list_flow_release";
|
|
304
|
-
Permission["get_flow_release"] = "get_flow_release";
|
|
305
|
-
Permission["create_flow_release"] = "create_flow_release";
|
|
306
|
-
Permission["delete_flow_release"] = "delete_flow_release";
|
|
307
|
-
Permission["deploy_flow_release"] = "deploy_flow_release";
|
|
308
|
-
Permission["list_task_group"] = "list_task_group";
|
|
309
|
-
Permission["create_task_group"] = "create_task_group";
|
|
310
|
-
Permission["delete_task_group"] = "delete_task_group";
|
|
311
|
-
Permission["update_task_group"] = "update_task_group";
|
|
312
|
-
Permission["arrange_task_group"] = "arrange_task_group";
|
|
313
|
-
Permission["list_task"] = "list_task";
|
|
314
|
-
Permission["create_task"] = "create_task";
|
|
315
|
-
Permission["delete_task"] = "delete_task";
|
|
316
|
-
Permission["update_task"] = "update_task";
|
|
317
|
-
Permission["open_compute_layer"] = "open_compute_layer";
|
|
318
|
-
Permission["open_task"] = "open_task";
|
|
319
|
-
Permission["list_data_space"] = "list_data_space";
|
|
320
|
-
Permission["get_data_space"] = "get_data_space";
|
|
321
|
-
Permission["create_data_space"] = "create_data_space";
|
|
322
|
-
Permission["delete_data_space"] = "delete_data_space";
|
|
323
|
-
Permission["update_data_space"] = "update_data_space";
|
|
324
|
-
Permission["arrange_data_space"] = "arrange_data_space";
|
|
325
|
-
Permission["list_table_group"] = "list_table_group";
|
|
326
|
-
Permission["create_table_group"] = "create_table_group";
|
|
327
|
-
Permission["delete_table_group"] = "delete_table_group";
|
|
328
|
-
Permission["update_table_group"] = "update_table_group";
|
|
329
|
-
Permission["arrange_table_group"] = "arrange_table_group";
|
|
330
|
-
Permission["list_table"] = "list_table";
|
|
331
|
-
Permission["get_table"] = "get_table";
|
|
332
|
-
Permission["create_table"] = "create_table";
|
|
333
|
-
Permission["delete_table"] = "delete_table";
|
|
334
|
-
Permission["update_table"] = "update_table";
|
|
335
|
-
Permission["get_data"] = "get_data";
|
|
336
|
-
Permission["create_data"] = "create_data";
|
|
337
|
-
Permission["delete_data"] = "delete_data";
|
|
338
|
-
Permission["update_data"] = "update_data";
|
|
339
|
-
Permission["get_relation_graph"] = "get_relation_graph";
|
|
340
|
-
Permission["update_relation_graph"] = "update_relation_graph";
|
|
341
|
-
Permission["list_change"] = "list_change";
|
|
342
|
-
Permission["apply_change"] = "apply_change";
|
|
343
|
-
Permission["open_data_layer"] = "open_data_layer";
|
|
344
|
-
Permission["list_resource_space"] = "list_resource_space";
|
|
345
|
-
Permission["get_resource_space"] = "get_resource_space";
|
|
346
|
-
Permission["create_resource_space"] = "create_resource_space";
|
|
347
|
-
Permission["delete_resource_space"] = "delete_resource_space";
|
|
348
|
-
Permission["update_resource_space"] = "update_resource_space";
|
|
349
|
-
Permission["arrange_resource_space"] = "arrange_resource_space";
|
|
350
|
-
Permission["list_dir"] = "list_dir";
|
|
351
|
-
Permission["create_dir"] = "create_dir";
|
|
352
|
-
Permission["delete_dir"] = "delete_dir";
|
|
353
|
-
Permission["update_dir"] = "update_dir";
|
|
354
|
-
Permission["move_dir"] = "move_dir";
|
|
355
|
-
Permission["list_resource"] = "list_resource";
|
|
356
|
-
Permission["get_resource"] = "get_resource";
|
|
357
|
-
Permission["create_resource"] = "create_resource";
|
|
358
|
-
Permission["delete_resource"] = "delete_resource";
|
|
359
|
-
Permission["update_resource"] = "update_resource";
|
|
360
|
-
Permission["move_resource"] = "move_resource";
|
|
361
|
-
Permission["open_resource_layer"] = "open_resource_layer";
|
|
362
|
-
Permission["list_org_member"] = "list_org_member";
|
|
363
|
-
Permission["add_org_member"] = "add_org_member";
|
|
364
|
-
Permission["remove_org_member"] = "remove_org_member";
|
|
365
|
-
Permission["update_org_member"] = "update_org_member";
|
|
366
|
-
Permission["list_org_role_group"] = "list_org_role_group";
|
|
367
|
-
Permission["create_org_role_group"] = "create_org_role_group";
|
|
368
|
-
Permission["delete_org_role_group"] = "delete_org_role_group";
|
|
369
|
-
Permission["update_org_role_group"] = "update_org_role_group";
|
|
370
|
-
Permission["arrange_org_role_group"] = "arrange_org_role_group";
|
|
371
|
-
Permission["list_org_role"] = "list_org_role";
|
|
372
|
-
Permission["get_org_role"] = "get_org_role";
|
|
373
|
-
Permission["create_org_role"] = "create_org_role";
|
|
374
|
-
Permission["delete_org_role"] = "delete_org_role";
|
|
375
|
-
Permission["update_org_role"] = "update_org_role";
|
|
376
|
-
Permission["get_org_structure"] = "get_org_structure";
|
|
377
|
-
Permission["update_org_structure"] = "update_org_structure";
|
|
378
|
-
Permission["filter_table"] = "filter_table";
|
|
379
|
-
return Permission;
|
|
380
|
-
}({});
|
|
381
250
|
function toPermissionObjects(permissions) {
|
|
382
251
|
const permissionObjects = {};
|
|
383
252
|
for (const key in permissions) {
|
|
@@ -1170,15 +1039,15 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
1170
1039
|
onBeforeUnmount(() => {
|
|
1171
1040
|
eventBus.off("message", onMessage);
|
|
1172
1041
|
});
|
|
1173
|
-
|
|
1042
|
+
function onMessage(params) {
|
|
1174
1043
|
const { type, text, timeout } = params;
|
|
1175
1044
|
addItem(type, text, timeout);
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1045
|
+
}
|
|
1046
|
+
function onItemTimeout(id) {
|
|
1178
1047
|
removeItem(id);
|
|
1179
|
-
}
|
|
1048
|
+
}
|
|
1180
1049
|
let seq = 0;
|
|
1181
|
-
|
|
1050
|
+
function addItem(type, text, timeout) {
|
|
1182
1051
|
const id = seq++;
|
|
1183
1052
|
items.value.push({
|
|
1184
1053
|
id,
|
|
@@ -1186,11 +1055,11 @@ var index_vue_vue_type_script_setup_true_lang_default$4 = /*@__PURE__*/ defineCo
|
|
|
1186
1055
|
text,
|
|
1187
1056
|
timeout
|
|
1188
1057
|
});
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1058
|
+
}
|
|
1059
|
+
function removeItem(id) {
|
|
1191
1060
|
const idx = items.value.findIndex((item) => item.id === id);
|
|
1192
1061
|
if (idx >= 0) items.value.splice(idx, 1);
|
|
1193
|
-
}
|
|
1062
|
+
}
|
|
1194
1063
|
return (_ctx, _cache) => {
|
|
1195
1064
|
return openBlock(), createElementBlock("div", {
|
|
1196
1065
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
@@ -1587,8 +1456,8 @@ const install = (app) => {
|
|
|
1587
1456
|
//#endregion
|
|
1588
1457
|
//#region src/i18n/index.ts
|
|
1589
1458
|
async function loadLocaleMessageEssential(locale) {
|
|
1590
|
-
if (locale === "en") return (await import("./i18n-en.
|
|
1591
|
-
else if (locale === "zhHans") return (await import("./i18n-zhHans.
|
|
1459
|
+
if (locale === "en") return (await import("./i18n-en.abhkfjnr.js").then((n) => n.t)).default;
|
|
1460
|
+
else if (locale === "zhHans") return (await import("./i18n-zhHans.hng3by2g.js").then((n) => n.t)).default;
|
|
1592
1461
|
else throw new Error(`invalid locale=${locale}`);
|
|
1593
1462
|
}
|
|
1594
1463
|
|
|
@@ -1597,4 +1466,4 @@ async function loadLocaleMessageEssential(locale) {
|
|
|
1597
1466
|
var src_default = { install };
|
|
1598
1467
|
|
|
1599
1468
|
//#endregion
|
|
1600
|
-
export {
|
|
1469
|
+
export { addView, appAppear, clearViews, closeWaitDlg, createAxios, src_default as default, delView, eventBus, getTypeColor, getTypeDefault, globalObjects, hasView, injectDark, injectLocale, injectPermissionObjects, injectViews, isEmpty, isExist, lastView, loadLocaleMessageEssential, matchRouteMeta, messageError, messageInfo, messageSuccess, messageWarning, onBeforeEnter, openConfirmDlg, openNumberDlg, openPromptDlg, openWaitDlg, popView, provideDark, provideLocale, providePermissionObjects, provideViews, routeTransName, toPermissionObjects, types, useColor, useGlobalStates, useMicroApp, usePageRoute, usePermission, useSystem, useViewStack, verifyPermission, waitMs, waitUtil };
|
|
@@ -577,12 +577,12 @@ function toLower(value) {
|
|
|
577
577
|
//#endregion
|
|
578
578
|
//#region node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/index.d.ts
|
|
579
579
|
var EventType = [
|
|
580
|
-
|
|
580
|
+
60,
|
|
581
581
|
() => [],
|
|
582
582
|
[]
|
|
583
583
|
];
|
|
584
584
|
var Handler = [
|
|
585
|
-
|
|
585
|
+
61,
|
|
586
586
|
(T) => [T],
|
|
587
587
|
[
|
|
588
588
|
"",
|
|
@@ -591,7 +591,7 @@ var Handler = [
|
|
|
591
591
|
]
|
|
592
592
|
];
|
|
593
593
|
var WildcardHandler = [
|
|
594
|
-
|
|
594
|
+
62,
|
|
595
595
|
(T) => [
|
|
596
596
|
Record,
|
|
597
597
|
T,
|
|
@@ -609,7 +609,7 @@ var WildcardHandler = [
|
|
|
609
609
|
]
|
|
610
610
|
];
|
|
611
611
|
var EventHandlerList = [
|
|
612
|
-
|
|
612
|
+
63,
|
|
613
613
|
(T) => [
|
|
614
614
|
T,
|
|
615
615
|
Handler,
|
|
@@ -623,7 +623,7 @@ var EventHandlerList = [
|
|
|
623
623
|
]
|
|
624
624
|
];
|
|
625
625
|
var WildCardEventHandlerList = [
|
|
626
|
-
|
|
626
|
+
64,
|
|
627
627
|
(T) => [
|
|
628
628
|
Record,
|
|
629
629
|
T,
|
|
@@ -639,7 +639,7 @@ var WildCardEventHandlerList = [
|
|
|
639
639
|
]
|
|
640
640
|
];
|
|
641
641
|
var EventHandlerMap = [
|
|
642
|
-
|
|
642
|
+
65,
|
|
643
643
|
(Events) => [
|
|
644
644
|
EventType,
|
|
645
645
|
Record,
|
|
@@ -665,7 +665,7 @@ var EventHandlerMap = [
|
|
|
665
665
|
]
|
|
666
666
|
];
|
|
667
667
|
var Emitter = [
|
|
668
|
-
|
|
668
|
+
66,
|
|
669
669
|
(Key, Events) => [
|
|
670
670
|
EventType,
|
|
671
671
|
Record,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.38",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepare": "husky"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"x-error-lib": "^0.6.
|
|
27
|
+
"x-error-lib": "^0.6.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/js-cookie": "^3.0.6",
|