x-essential-lib 0.10.37 → 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,4 +1,4 @@
|
|
|
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
|
|
|
@@ -76,136 +76,6 @@ declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interv
|
|
|
76
76
|
declare function appAppear(name: string, diff: number): void;
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region src/utils/permission.d.ts
|
|
79
|
-
declare enum Permission {
|
|
80
|
-
list_app_group = "list_app_group",
|
|
81
|
-
create_app_group = "create_app_group",
|
|
82
|
-
delete_app_group = "delete_app_group",
|
|
83
|
-
update_app_group = "update_app_group",
|
|
84
|
-
arrange_app_group = "arrange_app_group",
|
|
85
|
-
list_app = "list_app",
|
|
86
|
-
get_app = "get_app",
|
|
87
|
-
create_app = "create_app",
|
|
88
|
-
delete_app = "delete_app",
|
|
89
|
-
update_app = "update_app",
|
|
90
|
-
list_app_release = "list_app_release",
|
|
91
|
-
get_app_release = "get_app_release",
|
|
92
|
-
create_app_release = "create_app_release",
|
|
93
|
-
delete_app_release = "delete_app_release",
|
|
94
|
-
deploy_app_release = "deploy_app_release",
|
|
95
|
-
open_app_layer = "open_app_layer",
|
|
96
|
-
open_app = "open_app",
|
|
97
|
-
list_compute_space = "list_compute_space",
|
|
98
|
-
get_compute_space = "get_compute_space",
|
|
99
|
-
create_compute_space = "create_compute_space",
|
|
100
|
-
delete_compute_space = "delete_compute_space",
|
|
101
|
-
update_compute_space = "update_compute_space",
|
|
102
|
-
arrange_compute_space = "arrange_compute_space",
|
|
103
|
-
list_func_group = "list_func_group",
|
|
104
|
-
create_func_group = "create_func_group",
|
|
105
|
-
delete_func_group = "delete_func_group",
|
|
106
|
-
update_func_group = "update_func_group",
|
|
107
|
-
arrange_func_group = "arrange_func_group",
|
|
108
|
-
list_func = "list_func",
|
|
109
|
-
get_func = "get_func",
|
|
110
|
-
create_func = "create_func",
|
|
111
|
-
delete_func = "delete_func",
|
|
112
|
-
update_func = "update_func",
|
|
113
|
-
debug_func = "debug_func",
|
|
114
|
-
call_func = "call_func",
|
|
115
|
-
list_func_release = "list_func_release",
|
|
116
|
-
get_func_release = "get_func_release",
|
|
117
|
-
create_func_release = "create_func_release",
|
|
118
|
-
delete_func_release = "delete_func_release",
|
|
119
|
-
deploy_func_release = "deploy_func_release",
|
|
120
|
-
list_flow_group = "list_flow_group",
|
|
121
|
-
create_flow_group = "create_flow_group",
|
|
122
|
-
delete_flow_group = "delete_flow_group",
|
|
123
|
-
update_flow_group = "update_flow_group",
|
|
124
|
-
arrange_flow_group = "arrange_flow_group",
|
|
125
|
-
list_flow = "list_flow",
|
|
126
|
-
get_flow = "get_flow",
|
|
127
|
-
create_flow = "create_flow",
|
|
128
|
-
delete_flow = "delete_flow",
|
|
129
|
-
update_flow = "update_flow",
|
|
130
|
-
debug_flow = "debug_flow",
|
|
131
|
-
call_flow = "call_flow",
|
|
132
|
-
list_flow_release = "list_flow_release",
|
|
133
|
-
get_flow_release = "get_flow_release",
|
|
134
|
-
create_flow_release = "create_flow_release",
|
|
135
|
-
delete_flow_release = "delete_flow_release",
|
|
136
|
-
deploy_flow_release = "deploy_flow_release",
|
|
137
|
-
list_task_group = "list_task_group",
|
|
138
|
-
create_task_group = "create_task_group",
|
|
139
|
-
delete_task_group = "delete_task_group",
|
|
140
|
-
update_task_group = "update_task_group",
|
|
141
|
-
arrange_task_group = "arrange_task_group",
|
|
142
|
-
list_task = "list_task",
|
|
143
|
-
create_task = "create_task",
|
|
144
|
-
delete_task = "delete_task",
|
|
145
|
-
update_task = "update_task",
|
|
146
|
-
open_compute_layer = "open_compute_layer",
|
|
147
|
-
open_task = "open_task",
|
|
148
|
-
list_data_space = "list_data_space",
|
|
149
|
-
get_data_space = "get_data_space",
|
|
150
|
-
create_data_space = "create_data_space",
|
|
151
|
-
delete_data_space = "delete_data_space",
|
|
152
|
-
update_data_space = "update_data_space",
|
|
153
|
-
arrange_data_space = "arrange_data_space",
|
|
154
|
-
list_table_group = "list_table_group",
|
|
155
|
-
create_table_group = "create_table_group",
|
|
156
|
-
delete_table_group = "delete_table_group",
|
|
157
|
-
update_table_group = "update_table_group",
|
|
158
|
-
arrange_table_group = "arrange_table_group",
|
|
159
|
-
list_table = "list_table",
|
|
160
|
-
get_table = "get_table",
|
|
161
|
-
create_table = "create_table",
|
|
162
|
-
delete_table = "delete_table",
|
|
163
|
-
update_table = "update_table",
|
|
164
|
-
get_data = "get_data",
|
|
165
|
-
create_data = "create_data",
|
|
166
|
-
delete_data = "delete_data",
|
|
167
|
-
update_data = "update_data",
|
|
168
|
-
get_relation_graph = "get_relation_graph",
|
|
169
|
-
update_relation_graph = "update_relation_graph",
|
|
170
|
-
list_change = "list_change",
|
|
171
|
-
apply_change = "apply_change",
|
|
172
|
-
open_data_layer = "open_data_layer",
|
|
173
|
-
list_resource_space = "list_resource_space",
|
|
174
|
-
get_resource_space = "get_resource_space",
|
|
175
|
-
create_resource_space = "create_resource_space",
|
|
176
|
-
delete_resource_space = "delete_resource_space",
|
|
177
|
-
update_resource_space = "update_resource_space",
|
|
178
|
-
arrange_resource_space = "arrange_resource_space",
|
|
179
|
-
list_dir = "list_dir",
|
|
180
|
-
create_dir = "create_dir",
|
|
181
|
-
delete_dir = "delete_dir",
|
|
182
|
-
update_dir = "update_dir",
|
|
183
|
-
move_dir = "move_dir",
|
|
184
|
-
list_resource = "list_resource",
|
|
185
|
-
get_resource = "get_resource",
|
|
186
|
-
create_resource = "create_resource",
|
|
187
|
-
delete_resource = "delete_resource",
|
|
188
|
-
update_resource = "update_resource",
|
|
189
|
-
move_resource = "move_resource",
|
|
190
|
-
open_resource_layer = "open_resource_layer",
|
|
191
|
-
list_org_member = "list_org_member",
|
|
192
|
-
add_org_member = "add_org_member",
|
|
193
|
-
remove_org_member = "remove_org_member",
|
|
194
|
-
update_org_member = "update_org_member",
|
|
195
|
-
list_org_role_group = "list_org_role_group",
|
|
196
|
-
create_org_role_group = "create_org_role_group",
|
|
197
|
-
delete_org_role_group = "delete_org_role_group",
|
|
198
|
-
update_org_role_group = "update_org_role_group",
|
|
199
|
-
arrange_org_role_group = "arrange_org_role_group",
|
|
200
|
-
list_org_role = "list_org_role",
|
|
201
|
-
get_org_role = "get_org_role",
|
|
202
|
-
create_org_role = "create_org_role",
|
|
203
|
-
delete_org_role = "delete_org_role",
|
|
204
|
-
update_org_role = "update_org_role",
|
|
205
|
-
get_org_structure = "get_org_structure",
|
|
206
|
-
update_org_structure = "update_org_structure",
|
|
207
|
-
filter_table = "filter_table"
|
|
208
|
-
}
|
|
209
79
|
type InstanceTree = {
|
|
210
80
|
[key: string]: InstanceTree;
|
|
211
81
|
};
|
|
@@ -220,7 +90,7 @@ declare function toPermissionObjects(permissions: {
|
|
|
220
90
|
[key: string]: string;
|
|
221
91
|
}): PermissionObjects;
|
|
222
92
|
declare function isExist(instanceTree: InstanceTree | undefined, instance: string): boolean;
|
|
223
|
-
declare function verifyPermission(permissionObjects: PermissionObjects, permission:
|
|
93
|
+
declare function verifyPermission(permissionObjects: PermissionObjects, permission: string, instance: string): boolean;
|
|
224
94
|
//#endregion
|
|
225
95
|
//#region src/utils/provideInject.d.ts
|
|
226
96
|
declare function provideDark(dark: Ref<boolean>): void;
|
|
@@ -285,7 +155,7 @@ declare function usePageRoute(onRouteChange?: () => Promise<void>): {
|
|
|
285
155
|
//#endregion
|
|
286
156
|
//#region src/composables/permission.d.ts
|
|
287
157
|
declare function usePermission(): {
|
|
288
|
-
verifyPermission: (permission:
|
|
158
|
+
verifyPermission: (permission: string, instance?: string) => boolean;
|
|
289
159
|
};
|
|
290
160
|
//#endregion
|
|
291
161
|
//#region src/composables/system.d.ts
|
|
@@ -528,4 +398,4 @@ declare const _default: {
|
|
|
528
398
|
install: (app: import("vue").App) => void;
|
|
529
399
|
};
|
|
530
400
|
//#endregion
|
|
531
|
-
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";
|
|
@@ -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",
|