x-essential-lib 0.5.9 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +125 -126
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,84 +1,11 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.inner-left-enter-active,.inner-right-enter-active{transition:transform .35s ease}.inner-left-enter-from{transform:translate(-100%)}.inner-right-enter-from{transform:translate(100%)}.inner-left-enter-to,.inner-right-enter-to{transform:translate(0)}.x-cont[data-v-f4ad116e]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-f4ad116e]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-f4ad116e]{transform-origin:20px 20px;animation:lds-spinner-f4ad116e 1.2s linear infinite}.lds-spinner div[data-v-f4ad116e]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-f4ad116e]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f4ad116e]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f4ad116e]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f4ad116e]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f4ad116e]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f4ad116e]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f4ad116e]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f4ad116e]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f4ad116e]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f4ad116e]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f4ad116e{0%{opacity:1}to{opacity:0}}.x-cont[data-v-70ed4b89]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import { ref as i, watch as F, computed as g, onMounted as V, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as R, createBlock as
|
|
2
|
+
import { ref as i, watch as F, computed as g, onMounted as V, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as R, createBlock as B, unref as z, isRef as G, withKeys as L, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as A, toDisplayString as T, createElementBlock as J, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as m, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
|
|
3
3
|
import { useTheme as H, useLocale as Q, useDisplay as be } from "vuetify";
|
|
4
4
|
import { defineStore as re } from "pinia";
|
|
5
5
|
import Ce from "axios";
|
|
6
6
|
import { useRouter as le, useRoute as De } from "vue-router";
|
|
7
|
-
const ne = re(
|
|
8
|
-
"global",
|
|
9
|
-
() => {
|
|
10
|
-
const e = H(), a = i(!0), t = i(1), r = i(), o = i("en"), n = i({}), l = i("");
|
|
11
|
-
return F(
|
|
12
|
-
r,
|
|
13
|
-
() => {
|
|
14
|
-
const c = !!r.value;
|
|
15
|
-
StatusBar !== void 0 && (c ? StatusBar.styleLightContent() : StatusBar.styleDefault()), e.global.name.value = c ? "dark" : "light";
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
immediate: !0
|
|
19
|
-
}
|
|
20
|
-
), {
|
|
21
|
-
running: a,
|
|
22
|
-
mainActive: t,
|
|
23
|
-
dark: r,
|
|
24
|
-
locale: o,
|
|
25
|
-
permissionObjects: n,
|
|
26
|
-
permissionChecksum: l
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
persist: [
|
|
31
|
-
{
|
|
32
|
-
storage: localStorage,
|
|
33
|
-
paths: [
|
|
34
|
-
"mainActive",
|
|
35
|
-
"dark",
|
|
36
|
-
"locale",
|
|
37
|
-
"permissionObjects",
|
|
38
|
-
"permissionChecksum"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
), ce = re("viewMgr", () => {
|
|
44
|
-
const e = i([]);
|
|
45
|
-
function a() {
|
|
46
|
-
return e.value.length <= 0;
|
|
47
|
-
}
|
|
48
|
-
function t() {
|
|
49
|
-
const u = e.value.length;
|
|
50
|
-
if (u > 0)
|
|
51
|
-
return e.value[u - 1];
|
|
52
|
-
}
|
|
53
|
-
function r(u) {
|
|
54
|
-
return e.value.find((_) => _ === u) !== void 0;
|
|
55
|
-
}
|
|
56
|
-
function o(u) {
|
|
57
|
-
e.value.push(u);
|
|
58
|
-
}
|
|
59
|
-
function n(u) {
|
|
60
|
-
const _ = e.value.findIndex((v) => v === u);
|
|
61
|
-
_ !== -1 && e.value.splice(_, e.value.length - _);
|
|
62
|
-
}
|
|
63
|
-
function l() {
|
|
64
|
-
console.assert(e.value.length > 0), e.value.pop();
|
|
65
|
-
}
|
|
66
|
-
function c() {
|
|
67
|
-
e.value = [];
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
views: e,
|
|
71
|
-
isEmpty: a,
|
|
72
|
-
lastView: t,
|
|
73
|
-
hasView: r,
|
|
74
|
-
addView: o,
|
|
75
|
-
delView: n,
|
|
76
|
-
popView: l,
|
|
77
|
-
clearViews: c
|
|
78
|
-
};
|
|
79
|
-
});
|
|
80
7
|
/*! js-cookie v3.0.5 | MIT */
|
|
81
|
-
function
|
|
8
|
+
function W(e) {
|
|
82
9
|
for (var a = 1; a < arguments.length; a++) {
|
|
83
10
|
var t = arguments[a];
|
|
84
11
|
for (var r in t)
|
|
@@ -100,7 +27,7 @@ var Se = {
|
|
|
100
27
|
function X(e, a) {
|
|
101
28
|
function t(o, n, l) {
|
|
102
29
|
if (!(typeof document > "u")) {
|
|
103
|
-
l =
|
|
30
|
+
l = W({}, a, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
104
31
|
var c = "";
|
|
105
32
|
for (var u in l)
|
|
106
33
|
l[u] && (c += "; " + u, l[u] !== !0 && (c += "=" + l[u].split(";")[0]));
|
|
@@ -129,16 +56,16 @@ function X(e, a) {
|
|
|
129
56
|
t(
|
|
130
57
|
o,
|
|
131
58
|
"",
|
|
132
|
-
|
|
59
|
+
W({}, n, {
|
|
133
60
|
expires: -1
|
|
134
61
|
})
|
|
135
62
|
);
|
|
136
63
|
},
|
|
137
64
|
withAttributes: function(o) {
|
|
138
|
-
return X(this.converter,
|
|
65
|
+
return X(this.converter, W({}, this.attributes, o));
|
|
139
66
|
},
|
|
140
67
|
withConverter: function(o) {
|
|
141
|
-
return X(
|
|
68
|
+
return X(W({}, this.converter, o), this.attributes);
|
|
142
69
|
}
|
|
143
70
|
},
|
|
144
71
|
{
|
|
@@ -147,7 +74,7 @@ function X(e, a) {
|
|
|
147
74
|
}
|
|
148
75
|
);
|
|
149
76
|
}
|
|
150
|
-
var
|
|
77
|
+
var E = X(Se, { path: "/" });
|
|
151
78
|
function rt(e) {
|
|
152
79
|
const a = Ce.create({
|
|
153
80
|
timeout: 6e3
|
|
@@ -163,7 +90,7 @@ function rt(e) {
|
|
|
163
90
|
), a;
|
|
164
91
|
}
|
|
165
92
|
function qe(e) {
|
|
166
|
-
const a =
|
|
93
|
+
const a = E.get("accessToken") ?? "";
|
|
167
94
|
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
168
95
|
}
|
|
169
96
|
function Ve(e, a) {
|
|
@@ -185,7 +112,7 @@ function Oe(e, a) {
|
|
|
185
112
|
}), a(r), Promise.reject(e);
|
|
186
113
|
}
|
|
187
114
|
function Te() {
|
|
188
|
-
|
|
115
|
+
E.remove("accessToken"), E.remove("refreshToken"), E.remove("activeOrg"), le().replace({ path: "/passport/login" });
|
|
189
116
|
}
|
|
190
117
|
function je(e) {
|
|
191
118
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
@@ -219,30 +146,30 @@ async function Y(e, a, t) {
|
|
|
219
146
|
});
|
|
220
147
|
}
|
|
221
148
|
let ee = Date.now();
|
|
222
|
-
function
|
|
149
|
+
function ne() {
|
|
223
150
|
const e = Date.now();
|
|
224
151
|
return e - ee > 500 ? (ee = e, !0) : !1;
|
|
225
152
|
}
|
|
226
153
|
let Ie = 0;
|
|
227
|
-
function
|
|
154
|
+
function ce() {
|
|
228
155
|
return ++Ie;
|
|
229
156
|
}
|
|
230
157
|
async function nt(e) {
|
|
231
|
-
if (!
|
|
158
|
+
if (!ne())
|
|
232
159
|
return;
|
|
233
160
|
let a = !1, t;
|
|
234
161
|
const r = (n) => {
|
|
235
162
|
t = n, a = !0;
|
|
236
|
-
}, o =
|
|
163
|
+
}, o = ce();
|
|
237
164
|
return s.on("confirmDlgResult" + o, r), s.emit("confirmDlg", { ...e, seq: o }), await Y(() => a), s.off("confirmDlgResult" + o, r), t;
|
|
238
165
|
}
|
|
239
166
|
async function ct(e) {
|
|
240
|
-
if (!
|
|
167
|
+
if (!ne())
|
|
241
168
|
return;
|
|
242
169
|
let a = !1, t;
|
|
243
170
|
const r = (n) => {
|
|
244
171
|
t = n, a = !0;
|
|
245
|
-
}, o =
|
|
172
|
+
}, o = ce();
|
|
246
173
|
return s.on("promptDlgResult" + o, r), s.emit("promptDlg", { ...e, seq: o }), await Y(() => a), s.off("promptDlgResult" + o, r), t;
|
|
247
174
|
}
|
|
248
175
|
function ut() {
|
|
@@ -274,7 +201,7 @@ function ft(e) {
|
|
|
274
201
|
t.add("app-reset");
|
|
275
202
|
}, 0));
|
|
276
203
|
}
|
|
277
|
-
var
|
|
204
|
+
var Ae = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_calc_space = "list_calc_space", e.get_calc_space = "get_calc_space", e.create_calc_space = "create_calc_space", e.delete_calc_space = "delete_calc_space", e.update_calc_space = "update_calc_space", e.arrange_calc_space = "arrange_calc_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_calc_layer = "open_calc_layer", e.list_db_space = "list_db_space", e.get_db_space = "get_db_space", e.create_db_space = "create_db_space", e.delete_db_space = "delete_db_space", e.update_db_space = "update_db_space", e.arrange_db_space = "arrange_db_space", e.list_model_group = "list_model_group", e.create_model_group = "create_model_group", e.delete_model_group = "delete_model_group", e.update_model_group = "update_model_group", e.arrange_model_group = "arrange_model_group", e.list_model = "list_model", e.get_model = "get_model", e.create_model = "create_model", e.delete_model = "delete_model", e.update_model = "update_model", e.get_model_data = "get_model_data", e.create_model_data = "create_model_data", e.delete_model_data = "delete_model_data", e.update_model_data = "update_model_data", e.get_graph = "get_graph", e.update_graph = "update_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_asset_space = "list_asset_space", e.get_asset_space = "get_asset_space", e.create_asset_space = "create_asset_space", e.delete_asset_space = "delete_asset_space", e.update_asset_space = "update_asset_space", e.arrange_asset_space = "arrange_asset_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_asset = "list_asset", e.get_asset = "get_asset", e.create_asset = "create_asset", e.delete_asset = "delete_asset", e.update_asset = "update_asset", e.move_asset = "move_asset", e.open_asset_layer = "open_asset_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_model = "filter_model", e))(Ae || {});
|
|
278
205
|
function te(e, a) {
|
|
279
206
|
if (!e)
|
|
280
207
|
return !1;
|
|
@@ -288,7 +215,7 @@ function te(e, a) {
|
|
|
288
215
|
return !1;
|
|
289
216
|
}), Object.keys(t).length <= 0);
|
|
290
217
|
}
|
|
291
|
-
const
|
|
218
|
+
const Ee = [
|
|
292
219
|
{ path: "/passport/login", level: 0 },
|
|
293
220
|
{ path: "/passport/loginAccount", level: 1 },
|
|
294
221
|
{ path: "/passport/register", level: 1 },
|
|
@@ -310,7 +237,7 @@ const Ae = [
|
|
|
310
237
|
function N(e) {
|
|
311
238
|
let a, t = 0;
|
|
312
239
|
const r = e.split("/").filter((o) => o.trim() !== "");
|
|
313
|
-
return
|
|
240
|
+
return Ee.forEach((o) => {
|
|
314
241
|
const n = o.path.split("/").filter((c) => c.trim() !== "");
|
|
315
242
|
let l = 0;
|
|
316
243
|
for (let c = 0; c < r.length && !(c >= n.length || r[c] !== n[c]); c++)
|
|
@@ -334,14 +261,14 @@ function q(e, a) {
|
|
|
334
261
|
`~~~~before route change~~~~ ${r.path} -> ${t.path} inner=${o} forward=${l}`
|
|
335
262
|
), o ? n ? oe.value = "" : oe.value = l ? "inner-left" : "inner-right" : window.routeExtras = { forward: l };
|
|
336
263
|
}
|
|
337
|
-
function
|
|
338
|
-
return !!
|
|
264
|
+
function Be() {
|
|
265
|
+
return !!E.get("accessToken");
|
|
339
266
|
}
|
|
340
267
|
function Me() {
|
|
341
|
-
return !!
|
|
268
|
+
return !!E.get("activeOrg");
|
|
342
269
|
}
|
|
343
270
|
function gt(e, a, t) {
|
|
344
|
-
const r =
|
|
271
|
+
const r = Be(), o = Me(), n = N(e.path);
|
|
345
272
|
if (!n) {
|
|
346
273
|
t();
|
|
347
274
|
return;
|
|
@@ -380,8 +307,80 @@ function gt(e, a, t) {
|
|
|
380
307
|
else
|
|
381
308
|
q(e.path, a.path), t();
|
|
382
309
|
}
|
|
310
|
+
const ue = re(
|
|
311
|
+
"global",
|
|
312
|
+
() => {
|
|
313
|
+
const e = H(), a = i(!0), t = i(1), r = i(), o = i("en"), n = i({}), l = i("");
|
|
314
|
+
return F(
|
|
315
|
+
r,
|
|
316
|
+
() => {
|
|
317
|
+
s.emit("darkchange", r.value), e.global.name.value = r.value ? "dark" : "light";
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
immediate: !0
|
|
321
|
+
}
|
|
322
|
+
), {
|
|
323
|
+
running: a,
|
|
324
|
+
mainActive: t,
|
|
325
|
+
dark: r,
|
|
326
|
+
locale: o,
|
|
327
|
+
permissionObjects: n,
|
|
328
|
+
permissionChecksum: l
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
persist: [
|
|
333
|
+
{
|
|
334
|
+
storage: localStorage,
|
|
335
|
+
paths: [
|
|
336
|
+
"mainActive",
|
|
337
|
+
"dark",
|
|
338
|
+
"locale",
|
|
339
|
+
"permissionObjects",
|
|
340
|
+
"permissionChecksum"
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
), se = re("viewMgr", () => {
|
|
346
|
+
const e = i([]);
|
|
347
|
+
function a() {
|
|
348
|
+
return e.value.length <= 0;
|
|
349
|
+
}
|
|
350
|
+
function t() {
|
|
351
|
+
const u = e.value.length;
|
|
352
|
+
if (u > 0)
|
|
353
|
+
return e.value[u - 1];
|
|
354
|
+
}
|
|
355
|
+
function r(u) {
|
|
356
|
+
return e.value.find((_) => _ === u) !== void 0;
|
|
357
|
+
}
|
|
358
|
+
function o(u) {
|
|
359
|
+
e.value.push(u);
|
|
360
|
+
}
|
|
361
|
+
function n(u) {
|
|
362
|
+
const _ = e.value.findIndex((v) => v === u);
|
|
363
|
+
_ !== -1 && e.value.splice(_, e.value.length - _);
|
|
364
|
+
}
|
|
365
|
+
function l() {
|
|
366
|
+
console.assert(e.value.length > 0), e.value.pop();
|
|
367
|
+
}
|
|
368
|
+
function c() {
|
|
369
|
+
e.value = [];
|
|
370
|
+
}
|
|
371
|
+
return {
|
|
372
|
+
views: e,
|
|
373
|
+
isEmpty: a,
|
|
374
|
+
lastView: t,
|
|
375
|
+
hasView: r,
|
|
376
|
+
addView: o,
|
|
377
|
+
delView: n,
|
|
378
|
+
popView: l,
|
|
379
|
+
clearViews: c
|
|
380
|
+
};
|
|
381
|
+
});
|
|
383
382
|
function Z(e, a) {
|
|
384
|
-
const t =
|
|
383
|
+
const t = se(), r = g({
|
|
385
384
|
get() {
|
|
386
385
|
return t.hasView(e);
|
|
387
386
|
},
|
|
@@ -429,12 +428,12 @@ const Ue = /* @__PURE__ */ M({
|
|
|
429
428
|
!p && !b && (s.emit("confirmDlgResult" + D, !1), b = !0);
|
|
430
429
|
}), (p, y) => {
|
|
431
430
|
const C = h("v-card-text"), S = h("v-btn"), I = h("v-card-actions"), d = h("v-card"), x = h("v-dialog");
|
|
432
|
-
return R(),
|
|
433
|
-
modelValue:
|
|
431
|
+
return R(), B(x, {
|
|
432
|
+
modelValue: z(t),
|
|
434
433
|
"onUpdate:modelValue": y[1] || (y[1] = (U) => G(t) ? t.value = U : null),
|
|
435
434
|
onKeydown: [
|
|
436
|
-
y[2] || (y[2] =
|
|
437
|
-
|
|
435
|
+
y[2] || (y[2] = L(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
436
|
+
L(K(f, ["stop", "prevent"]), ["enter"])
|
|
438
437
|
],
|
|
439
438
|
transition: "dialog-top-transition",
|
|
440
439
|
"max-width": "600px"
|
|
@@ -444,7 +443,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
444
443
|
default: w(() => [
|
|
445
444
|
k(C, null, {
|
|
446
445
|
default: w(() => [
|
|
447
|
-
|
|
446
|
+
A(T(o.value), 1)
|
|
448
447
|
]),
|
|
449
448
|
_: 1
|
|
450
449
|
}),
|
|
@@ -456,7 +455,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
456
455
|
variant: "text"
|
|
457
456
|
}, {
|
|
458
457
|
default: w(() => [
|
|
459
|
-
|
|
458
|
+
A(T(u.value), 1)
|
|
460
459
|
]),
|
|
461
460
|
_: 1
|
|
462
461
|
}, 8, ["color"]),
|
|
@@ -466,7 +465,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
466
465
|
variant: "text"
|
|
467
466
|
}, {
|
|
468
467
|
default: w(() => [
|
|
469
|
-
|
|
468
|
+
A(T(v.value), 1)
|
|
470
469
|
]),
|
|
471
470
|
_: 1
|
|
472
471
|
}, 8, ["color"])
|
|
@@ -494,9 +493,9 @@ const Ue = /* @__PURE__ */ M({
|
|
|
494
493
|
/* @__PURE__ */ m("div"),
|
|
495
494
|
/* @__PURE__ */ m("div"),
|
|
496
495
|
/* @__PURE__ */ m("div")
|
|
497
|
-
], -1)),
|
|
496
|
+
], -1)), We = [
|
|
498
497
|
Ke
|
|
499
|
-
],
|
|
498
|
+
], ze = /* @__PURE__ */ M({
|
|
500
499
|
__name: "index",
|
|
501
500
|
props: {
|
|
502
501
|
zIndex: {
|
|
@@ -512,14 +511,14 @@ const Ue = /* @__PURE__ */ M({
|
|
|
512
511
|
return (o, n) => (R(), J("div", {
|
|
513
512
|
class: "x-cont",
|
|
514
513
|
style: ve(r.value)
|
|
515
|
-
},
|
|
514
|
+
}, We, 4));
|
|
516
515
|
}
|
|
517
516
|
}), pe = (e, a) => {
|
|
518
517
|
const t = e.__vccOpts || e;
|
|
519
518
|
for (const [r, o] of a)
|
|
520
519
|
t[r] = o;
|
|
521
520
|
return t;
|
|
522
|
-
},
|
|
521
|
+
}, Le = /* @__PURE__ */ pe(ze, [["__scopeId", "data-v-f4ad116e"]]), Ne = /* @__PURE__ */ M({
|
|
523
522
|
__name: "item",
|
|
524
523
|
props: {
|
|
525
524
|
id: {
|
|
@@ -567,7 +566,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
567
566
|
l || o("timeout", t.id);
|
|
568
567
|
}), (l, c) => {
|
|
569
568
|
const u = h("v-alert");
|
|
570
|
-
return R(),
|
|
569
|
+
return R(), B(u, {
|
|
571
570
|
modelValue: r.value,
|
|
572
571
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => r.value = _),
|
|
573
572
|
class: "mt-2",
|
|
@@ -609,7 +608,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
609
608
|
}, ["stop"])),
|
|
610
609
|
class: "x-cont d-flex flex-column-reverse align-center"
|
|
611
610
|
}, [
|
|
612
|
-
(R(!0), J(ye, null, xe(a.items, (_) => (R(),
|
|
611
|
+
(R(!0), J(ye, null, xe(a.items, (_) => (R(), B(Ne, {
|
|
613
612
|
onTimeout: r,
|
|
614
613
|
id: _.id,
|
|
615
614
|
type: _.type,
|
|
@@ -652,12 +651,12 @@ const Ue = /* @__PURE__ */ M({
|
|
|
652
651
|
!d && !C && (s.emit("promptDlgResult" + y, void 0), C = !0);
|
|
653
652
|
}), (d, x) => {
|
|
654
653
|
const U = h("v-card-text"), _e = h("v-text-field"), de = h("v-form"), P = h("v-btn"), ie = h("v-card-actions"), fe = h("v-card"), ge = h("v-dialog");
|
|
655
|
-
return R(),
|
|
656
|
-
modelValue:
|
|
654
|
+
return R(), B(ge, {
|
|
655
|
+
modelValue: z(t),
|
|
657
656
|
"onUpdate:modelValue": x[2] || (x[2] = ($) => G(t) ? t.value = $ : null),
|
|
658
657
|
onKeydown: [
|
|
659
|
-
x[3] || (x[3] =
|
|
660
|
-
|
|
658
|
+
x[3] || (x[3] = L(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
659
|
+
L(K(I, ["stop", "prevent"]), ["enter"])
|
|
661
660
|
],
|
|
662
661
|
transition: "dialog-top-transition",
|
|
663
662
|
"max-width": "600px"
|
|
@@ -665,9 +664,9 @@ const Ue = /* @__PURE__ */ M({
|
|
|
665
664
|
default: w(() => [
|
|
666
665
|
k(fe, { title: r.value }, {
|
|
667
666
|
default: w(() => [
|
|
668
|
-
o.value ? (R(),
|
|
667
|
+
o.value ? (R(), B(U, { key: 0 }, {
|
|
669
668
|
default: w(() => [
|
|
670
|
-
|
|
669
|
+
A(T(o.value), 1)
|
|
671
670
|
]),
|
|
672
671
|
_: 1
|
|
673
672
|
})) : ke("", !0),
|
|
@@ -693,7 +692,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
693
692
|
variant: "text"
|
|
694
693
|
}, {
|
|
695
694
|
default: w(() => [
|
|
696
|
-
|
|
695
|
+
A(T(b.value), 1)
|
|
697
696
|
]),
|
|
698
697
|
_: 1
|
|
699
698
|
}, 8, ["color"]),
|
|
@@ -703,7 +702,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
703
702
|
variant: "text"
|
|
704
703
|
}, {
|
|
705
704
|
default: w(() => [
|
|
706
|
-
|
|
705
|
+
A(T(f.value), 1)
|
|
707
706
|
]),
|
|
708
707
|
_: 1
|
|
709
708
|
}, 8, ["color"])
|
|
@@ -732,8 +731,8 @@ const Ue = /* @__PURE__ */ M({
|
|
|
732
731
|
s.off("openWaitDlg", r), s.off("closeWaitDlg", o);
|
|
733
732
|
}), (n, l) => {
|
|
734
733
|
const c = h("v-card"), u = h("v-dialog");
|
|
735
|
-
return R(),
|
|
736
|
-
modelValue:
|
|
734
|
+
return R(), B(u, {
|
|
735
|
+
modelValue: z(t),
|
|
737
736
|
"onUpdate:modelValue": l[0] || (l[0] = (_) => G(t) ? t.value = _ : null),
|
|
738
737
|
persistent: "",
|
|
739
738
|
"no-click-animation": "",
|
|
@@ -748,7 +747,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
748
747
|
}, {
|
|
749
748
|
default: w(() => [
|
|
750
749
|
m("div", Ge, [
|
|
751
|
-
m("span", null, T(
|
|
750
|
+
m("span", null, T(z(a).t("waitingResponse")), 1)
|
|
752
751
|
])
|
|
753
752
|
]),
|
|
754
753
|
_: 1
|
|
@@ -760,7 +759,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
760
759
|
};
|
|
761
760
|
}
|
|
762
761
|
}), Ye = (e) => {
|
|
763
|
-
e.component("x-confirm-dlg", Ue), e.component("x-loading",
|
|
762
|
+
e.component("x-confirm-dlg", Ue), e.component("x-loading", Le), e.component("x-message", He), e.component("x-prompt-dlg", Je), e.component("x-wait-dlg", Qe);
|
|
764
763
|
};
|
|
765
764
|
function vt() {
|
|
766
765
|
const e = H(), a = g(() => e.global.current.value.colors.primary), t = g(() => e.global.current.value.colors.secondary), r = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), l = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
@@ -778,7 +777,7 @@ function Ze(e, a) {
|
|
|
778
777
|
return e.post("pullPermission", a);
|
|
779
778
|
}
|
|
780
779
|
function mt(e, a) {
|
|
781
|
-
const t = De(), r = le(), o =
|
|
780
|
+
const t = De(), r = le(), o = ue(), n = se(), l = () => {
|
|
782
781
|
o.running = !1;
|
|
783
782
|
}, c = () => {
|
|
784
783
|
o.running = !0;
|
|
@@ -857,7 +856,7 @@ function mt(e, a) {
|
|
|
857
856
|
});
|
|
858
857
|
}
|
|
859
858
|
function ht() {
|
|
860
|
-
const e =
|
|
859
|
+
const e = ue();
|
|
861
860
|
function a(t, r) {
|
|
862
861
|
const o = e.permissionObjects[t];
|
|
863
862
|
return o ? r ? !(!te(o.includes, r) || te(o.excludes, r)) : !0 : !1;
|
|
@@ -870,7 +869,7 @@ function wt() {
|
|
|
870
869
|
}
|
|
871
870
|
const yt = { install: Ye };
|
|
872
871
|
export {
|
|
873
|
-
|
|
872
|
+
Ae as Permission,
|
|
874
873
|
ft as appAppear,
|
|
875
874
|
st as closeWaitDlg,
|
|
876
875
|
rt as createAxios,
|
|
@@ -888,11 +887,11 @@ export {
|
|
|
888
887
|
ut as openWaitDlg,
|
|
889
888
|
oe as routeTransName,
|
|
890
889
|
vt as useColor,
|
|
891
|
-
|
|
890
|
+
ue as useGlobalStore,
|
|
892
891
|
mt as useMicroApp,
|
|
893
892
|
ht as usePermission,
|
|
894
893
|
wt as useSystem,
|
|
895
|
-
|
|
894
|
+
se as useViewMgrStore,
|
|
896
895
|
Z as useViewStack,
|
|
897
896
|
lt as waitMs,
|
|
898
897
|
Y as waitUtil
|