x-essential-lib 0.5.24 → 0.5.26
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 +58 -62
- package/dist/utils/router.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.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-8c2268ea]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as i, watch as N, computed as f, onMounted as S, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as V, createBlock as E, unref as z, isRef as G, withKeys as L, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as A, 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 le } from "pinia";
|
|
5
5
|
import Ce from "axios";
|
|
@@ -7,7 +7,7 @@ import { useRouter as re, useRoute as De } from "vue-router";
|
|
|
7
7
|
const ne = le(
|
|
8
8
|
"global",
|
|
9
9
|
() => {
|
|
10
|
-
const e = H(), a =
|
|
10
|
+
const e = H(), a = i(), t = i("en"), l = i({}), o = i(""), n = i("/");
|
|
11
11
|
return N(
|
|
12
12
|
a,
|
|
13
13
|
() => {
|
|
@@ -30,16 +30,12 @@ const ne = le(
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
storage: sessionStorage,
|
|
33
|
-
paths: [
|
|
34
|
-
"permissionObjects",
|
|
35
|
-
"permissionChecksum",
|
|
36
|
-
"lastAppPath"
|
|
37
|
-
]
|
|
33
|
+
paths: ["permissionObjects", "permissionChecksum", "lastAppPath"]
|
|
38
34
|
}
|
|
39
35
|
]
|
|
40
36
|
}
|
|
41
37
|
), ce = le("viewMgr", () => {
|
|
42
|
-
const e =
|
|
38
|
+
const e = i([]);
|
|
43
39
|
function a() {
|
|
44
40
|
return e.value.length <= 0;
|
|
45
41
|
}
|
|
@@ -145,7 +141,7 @@ function X(e, a) {
|
|
|
145
141
|
}
|
|
146
142
|
);
|
|
147
143
|
}
|
|
148
|
-
var
|
|
144
|
+
var B = X(Se, { path: "/" });
|
|
149
145
|
function lt(e) {
|
|
150
146
|
const a = Ce.create({
|
|
151
147
|
timeout: 6e3
|
|
@@ -161,7 +157,7 @@ function lt(e) {
|
|
|
161
157
|
), a;
|
|
162
158
|
}
|
|
163
159
|
function Ve(e) {
|
|
164
|
-
const a =
|
|
160
|
+
const a = B.get("accessToken") ?? "";
|
|
165
161
|
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
166
162
|
}
|
|
167
163
|
function Re(e, a) {
|
|
@@ -183,9 +179,9 @@ function Oe(e, a) {
|
|
|
183
179
|
}), a(l), Promise.reject(e);
|
|
184
180
|
}
|
|
185
181
|
function Te() {
|
|
186
|
-
|
|
182
|
+
B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"), re().replace({ path: "/passport/login" });
|
|
187
183
|
}
|
|
188
|
-
function
|
|
184
|
+
function Ae(e) {
|
|
189
185
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
190
186
|
var l = e.get(a);
|
|
191
187
|
l ? l.push(t) : e.set(a, [t]);
|
|
@@ -202,7 +198,7 @@ function je(e) {
|
|
|
202
198
|
} };
|
|
203
199
|
}
|
|
204
200
|
const p = function() {
|
|
205
|
-
return window.eventBus || (window.eventBus =
|
|
201
|
+
return window.eventBus || (window.eventBus = Ae()), window.eventBus;
|
|
206
202
|
}();
|
|
207
203
|
async function rt(e) {
|
|
208
204
|
return new Promise((a) => {
|
|
@@ -234,9 +230,9 @@ function ue() {
|
|
|
234
230
|
const e = Date.now();
|
|
235
231
|
return e - ee > 500 ? (ee = e, !0) : !1;
|
|
236
232
|
}
|
|
237
|
-
let
|
|
233
|
+
let je = 0;
|
|
238
234
|
function se() {
|
|
239
|
-
return ++
|
|
235
|
+
return ++je;
|
|
240
236
|
}
|
|
241
237
|
async function ct(e) {
|
|
242
238
|
if (!ue())
|
|
@@ -268,13 +264,13 @@ function _t(e, a) {
|
|
|
268
264
|
function dt(e, a) {
|
|
269
265
|
p.emit("message", { type: "info", text: e, timeout: a });
|
|
270
266
|
}
|
|
271
|
-
function
|
|
267
|
+
function it(e, a) {
|
|
272
268
|
p.emit("message", { type: "success", text: e, timeout: a });
|
|
273
269
|
}
|
|
274
|
-
function
|
|
270
|
+
function ft(e, a) {
|
|
275
271
|
p.emit("message", { type: "warning", text: e, timeout: a });
|
|
276
272
|
}
|
|
277
|
-
var
|
|
273
|
+
var Ie = /* @__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))(Ie || {});
|
|
278
274
|
function te(e, a) {
|
|
279
275
|
if (!e)
|
|
280
276
|
return !1;
|
|
@@ -288,29 +284,29 @@ function te(e, a) {
|
|
|
288
284
|
return !1;
|
|
289
285
|
}), Object.keys(t).length <= 0);
|
|
290
286
|
}
|
|
291
|
-
const
|
|
287
|
+
const Be = [
|
|
292
288
|
{ path: "/passport/login", level: 0 },
|
|
293
289
|
{ path: "/passport/loginAccount", level: 1 },
|
|
294
290
|
{ path: "/passport/register", level: 1 },
|
|
295
291
|
{ path: "/org/joinOrCreate", level: 1, requiredState: "auth" },
|
|
296
|
-
{ path: "/org/manager", level: 1, requiredState: "org" },
|
|
292
|
+
{ path: "/org/manager", level: 1, requiredState: "org", mainActive: 2 },
|
|
297
293
|
{ path: "/main", level: 0, requiredState: "org" },
|
|
298
|
-
{ path: "/mine/personalInfo", level: 1, requiredState: "org" },
|
|
294
|
+
{ path: "/mine/personalInfo", level: 1, requiredState: "org", mainActive: 4 },
|
|
299
295
|
{ path: "/mine/accountSecurity", level: 2, requiredState: "org" },
|
|
300
|
-
{ path: "/mine/settings", level: 1, requiredState: "org" },
|
|
296
|
+
{ path: "/mine/settings", level: 1, requiredState: "org", mainActive: 4 },
|
|
301
297
|
{ path: "/mine/general", level: 2, requiredState: "org" },
|
|
302
298
|
{ path: "/mine/general/darkMode", level: 3, requiredState: "org" },
|
|
303
299
|
{ path: "/mine/general/language", level: 3, requiredState: "org" },
|
|
304
|
-
{ path: "/app/manager", level: 1, requiredState: "org" },
|
|
300
|
+
{ path: "/app/manager", level: 1, requiredState: "org", mainActive: 2 },
|
|
305
301
|
{ path: "/app/editor", level: 2, requiredState: "org" },
|
|
306
|
-
{ path: "/asset", level: 1, requiredState: "org" },
|
|
307
|
-
{ path: "/calc", level: 1, requiredState: "org" },
|
|
308
|
-
{ path: "/data", level: 1, requiredState: "org" }
|
|
302
|
+
{ path: "/asset", level: 1, requiredState: "org", mainActive: 2 },
|
|
303
|
+
{ path: "/calc", level: 1, requiredState: "org", mainActive: 2 },
|
|
304
|
+
{ path: "/data", level: 1, requiredState: "org", mainActive: 2 }
|
|
309
305
|
];
|
|
310
306
|
function F(e) {
|
|
311
307
|
let a, t = 0;
|
|
312
308
|
const l = e.split("/").filter((o) => o.trim() !== "");
|
|
313
|
-
return
|
|
309
|
+
return Be.forEach((o) => {
|
|
314
310
|
const n = o.path.split("/").filter((c) => c.trim() !== "");
|
|
315
311
|
let r = 0;
|
|
316
312
|
for (let c = 0; c < l.length && !(c >= n.length || l[c] !== n[c]); c++)
|
|
@@ -327,7 +323,7 @@ function ae(e) {
|
|
|
327
323
|
const t = e.split("/");
|
|
328
324
|
return console.assert(t.length >= 2), { app: t[1], path: a.path, level: a.level };
|
|
329
325
|
}
|
|
330
|
-
const oe =
|
|
326
|
+
const oe = i("");
|
|
331
327
|
function D(e, a) {
|
|
332
328
|
const t = ae(e), l = ae(a), o = t.app === l.app, n = t.path === l.path, r = t.level >= l.level;
|
|
333
329
|
console.info(
|
|
@@ -335,10 +331,10 @@ function D(e, a) {
|
|
|
335
331
|
), o ? n ? oe.value = "" : oe.value = r ? "inner-left" : "inner-right" : window.routeExtras = { forward: r };
|
|
336
332
|
}
|
|
337
333
|
function Ee() {
|
|
338
|
-
return !!
|
|
334
|
+
return !!B.get("accessToken");
|
|
339
335
|
}
|
|
340
336
|
function Me() {
|
|
341
|
-
return !!
|
|
337
|
+
return !!B.get("activeOrg");
|
|
342
338
|
}
|
|
343
339
|
function gt(e, a, t) {
|
|
344
340
|
const l = Ee(), o = Me(), n = F(e.path);
|
|
@@ -381,7 +377,7 @@ function gt(e, a, t) {
|
|
|
381
377
|
D(e.path, a.path), t();
|
|
382
378
|
}
|
|
383
379
|
function Z(e, a) {
|
|
384
|
-
const t = ce(), l =
|
|
380
|
+
const t = ce(), l = f({
|
|
385
381
|
get() {
|
|
386
382
|
return t.hasView(e);
|
|
387
383
|
},
|
|
@@ -400,16 +396,16 @@ function Z(e, a) {
|
|
|
400
396
|
const Ue = /* @__PURE__ */ M({
|
|
401
397
|
__name: "index",
|
|
402
398
|
setup(e) {
|
|
403
|
-
const a = Q(), { open: t } = Z("confirmDlg"), l =
|
|
399
|
+
const a = Q(), { open: t } = Z("confirmDlg"), l = i(""), o = i(""), n = i(), r = i(), c = f(() => {
|
|
404
400
|
var u;
|
|
405
401
|
return ((u = n.value) == null ? void 0 : u.color) ?? "primary";
|
|
406
|
-
}), s =
|
|
402
|
+
}), s = f(() => {
|
|
407
403
|
var u;
|
|
408
404
|
return ((u = n.value) == null ? void 0 : u.text) ?? a.t("cancel");
|
|
409
|
-
}), _ =
|
|
405
|
+
}), _ = f(() => {
|
|
410
406
|
var u;
|
|
411
407
|
return ((u = r.value) == null ? void 0 : u.color) ?? "primary";
|
|
412
|
-
}), v =
|
|
408
|
+
}), v = f(() => {
|
|
413
409
|
var u;
|
|
414
410
|
return ((u = r.value) == null ? void 0 : u.text) ?? a.t("confirm");
|
|
415
411
|
});
|
|
@@ -422,7 +418,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
422
418
|
}), O(() => {
|
|
423
419
|
p.off("confirmDlg", T);
|
|
424
420
|
});
|
|
425
|
-
const
|
|
421
|
+
const j = () => {
|
|
426
422
|
t.value = !1, C || (p.emit("confirmDlgResult" + x, !0), C = !0);
|
|
427
423
|
};
|
|
428
424
|
return N(t, (u) => {
|
|
@@ -434,7 +430,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
434
430
|
"onUpdate:modelValue": g[1] || (g[1] = (U) => G(t) ? t.value = U : null),
|
|
435
431
|
onKeydown: [
|
|
436
432
|
g[2] || (g[2] = L(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
437
|
-
L(K(
|
|
433
|
+
L(K(j, ["stop", "prevent"]), ["enter"])
|
|
438
434
|
],
|
|
439
435
|
transition: "dialog-top-transition",
|
|
440
436
|
"max-width": "600px"
|
|
@@ -444,7 +440,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
444
440
|
default: w(() => [
|
|
445
441
|
k(b, null, {
|
|
446
442
|
default: w(() => [
|
|
447
|
-
|
|
443
|
+
I(A(o.value), 1)
|
|
448
444
|
]),
|
|
449
445
|
_: 1
|
|
450
446
|
}),
|
|
@@ -456,17 +452,17 @@ const Ue = /* @__PURE__ */ M({
|
|
|
456
452
|
variant: "text"
|
|
457
453
|
}, {
|
|
458
454
|
default: w(() => [
|
|
459
|
-
|
|
455
|
+
I(A(s.value), 1)
|
|
460
456
|
]),
|
|
461
457
|
_: 1
|
|
462
458
|
}, 8, ["color"]),
|
|
463
459
|
k(R, {
|
|
464
|
-
onClick:
|
|
460
|
+
onClick: j,
|
|
465
461
|
color: _.value,
|
|
466
462
|
variant: "text"
|
|
467
463
|
}, {
|
|
468
464
|
default: w(() => [
|
|
469
|
-
|
|
465
|
+
I(A(v.value), 1)
|
|
470
466
|
]),
|
|
471
467
|
_: 1
|
|
472
468
|
}, 8, ["color"])
|
|
@@ -505,7 +501,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
505
501
|
}
|
|
506
502
|
},
|
|
507
503
|
setup(e) {
|
|
508
|
-
const a = H(), t = e, l =
|
|
504
|
+
const a = H(), t = e, l = f(() => ({
|
|
509
505
|
background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
510
506
|
zIndex: t.zIndex
|
|
511
507
|
}));
|
|
@@ -529,7 +525,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
529
525
|
},
|
|
530
526
|
emits: ["timeout"],
|
|
531
527
|
setup(e, { emit: a }) {
|
|
532
|
-
const t = e, l =
|
|
528
|
+
const t = e, l = i(!0), o = a;
|
|
533
529
|
return S(() => {
|
|
534
530
|
setTimeout(() => {
|
|
535
531
|
o("timeout", t.id);
|
|
@@ -592,19 +588,19 @@ const Ue = /* @__PURE__ */ M({
|
|
|
592
588
|
}), He = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-8c2268ea"]]), Je = /* @__PURE__ */ M({
|
|
593
589
|
__name: "index",
|
|
594
590
|
setup(e) {
|
|
595
|
-
const a = Q(), { open: t } = Z("promptDlg"), l =
|
|
591
|
+
const a = Q(), { open: t } = Z("promptDlg"), l = i(""), o = i(""), n = i(), r = i(), c = i(), s = i(""), _ = i(), v = i(), x = f(() => {
|
|
596
592
|
var d;
|
|
597
593
|
return ((d = _.value) == null ? void 0 : d.color) ?? "primary";
|
|
598
|
-
}), C =
|
|
594
|
+
}), C = f(() => {
|
|
599
595
|
var d;
|
|
600
596
|
return ((d = _.value) == null ? void 0 : d.text) ?? a.t("cancel");
|
|
601
|
-
}), T =
|
|
597
|
+
}), T = f(() => {
|
|
602
598
|
var d;
|
|
603
599
|
return ((d = v.value) == null ? void 0 : d.color) ?? "primary";
|
|
604
|
-
}),
|
|
600
|
+
}), j = f(() => {
|
|
605
601
|
var d;
|
|
606
602
|
return ((d = v.value) == null ? void 0 : d.text) ?? a.t("confirm");
|
|
607
|
-
}), u =
|
|
603
|
+
}), u = i();
|
|
608
604
|
let g = 0, b = !1;
|
|
609
605
|
const R = async (d) => {
|
|
610
606
|
var y;
|
|
@@ -621,7 +617,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
621
617
|
return N(t, (d) => {
|
|
622
618
|
!d && !b && (p.emit("promptDlgResult" + g, void 0), b = !0);
|
|
623
619
|
}), (d, y) => {
|
|
624
|
-
const U = h("v-card-text"), _e = h("v-text-field"), de = h("v-form"), P = h("v-btn"),
|
|
620
|
+
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");
|
|
625
621
|
return V(), E(ge, {
|
|
626
622
|
modelValue: z(t),
|
|
627
623
|
"onUpdate:modelValue": y[2] || (y[2] = ($) => G(t) ? t.value = $ : null),
|
|
@@ -633,11 +629,11 @@ const Ue = /* @__PURE__ */ M({
|
|
|
633
629
|
"max-width": "600px"
|
|
634
630
|
}, {
|
|
635
631
|
default: w(() => [
|
|
636
|
-
k(
|
|
632
|
+
k(fe, { title: l.value }, {
|
|
637
633
|
default: w(() => [
|
|
638
634
|
o.value ? (V(), E(U, { key: 0 }, {
|
|
639
635
|
default: w(() => [
|
|
640
|
-
|
|
636
|
+
I(A(o.value), 1)
|
|
641
637
|
]),
|
|
642
638
|
_: 1
|
|
643
639
|
})) : ke("", !0),
|
|
@@ -655,7 +651,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
655
651
|
]),
|
|
656
652
|
_: 1
|
|
657
653
|
}),
|
|
658
|
-
k(
|
|
654
|
+
k(ie, { class: "d-flex justify-end" }, {
|
|
659
655
|
default: w(() => [
|
|
660
656
|
k(P, {
|
|
661
657
|
onClick: y[1] || (y[1] = ($) => t.value = !1),
|
|
@@ -663,7 +659,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
663
659
|
variant: "text"
|
|
664
660
|
}, {
|
|
665
661
|
default: w(() => [
|
|
666
|
-
|
|
662
|
+
I(A(C.value), 1)
|
|
667
663
|
]),
|
|
668
664
|
_: 1
|
|
669
665
|
}, 8, ["color"]),
|
|
@@ -673,7 +669,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
673
669
|
variant: "text"
|
|
674
670
|
}, {
|
|
675
671
|
default: w(() => [
|
|
676
|
-
|
|
672
|
+
I(A(j.value), 1)
|
|
677
673
|
]),
|
|
678
674
|
_: 1
|
|
679
675
|
}, 8, ["color"])
|
|
@@ -718,7 +714,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
718
714
|
}, {
|
|
719
715
|
default: w(() => [
|
|
720
716
|
m("div", Ge, [
|
|
721
|
-
m("span", null,
|
|
717
|
+
m("span", null, A(z(a).t("waitingResponse")), 1)
|
|
722
718
|
])
|
|
723
719
|
]),
|
|
724
720
|
_: 1
|
|
@@ -733,7 +729,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
733
729
|
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);
|
|
734
730
|
};
|
|
735
731
|
function vt() {
|
|
736
|
-
const e = H(), a =
|
|
732
|
+
const e = H(), a = f(() => e.global.current.value.colors.primary), t = f(() => e.global.current.value.colors.secondary), l = f(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = f(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = f(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = f(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = f(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
737
733
|
return {
|
|
738
734
|
primaryColor: a,
|
|
739
735
|
secondaryColor: t,
|
|
@@ -819,13 +815,13 @@ function mt(e, a) {
|
|
|
819
815
|
u && await C(), clearTimeout(x), x = setTimeout(async () => {
|
|
820
816
|
await C(), x && T();
|
|
821
817
|
}, 3e3);
|
|
822
|
-
},
|
|
818
|
+
}, j = () => {
|
|
823
819
|
clearTimeout(x), x = void 0;
|
|
824
820
|
};
|
|
825
821
|
S(() => {
|
|
826
822
|
a && T(!0);
|
|
827
823
|
}), O(() => {
|
|
828
|
-
|
|
824
|
+
j();
|
|
829
825
|
});
|
|
830
826
|
}
|
|
831
827
|
function ht() {
|
|
@@ -837,12 +833,12 @@ function ht() {
|
|
|
837
833
|
return { verifyPermission: a };
|
|
838
834
|
}
|
|
839
835
|
function wt() {
|
|
840
|
-
const e = H(), a = be(), t =
|
|
836
|
+
const e = H(), a = be(), t = f(() => e.current.value.dark), l = f(() => !!window.cordova), o = f(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
841
837
|
return { dark: t, sysBarAvail: l, compactWidth: o };
|
|
842
838
|
}
|
|
843
839
|
const yt = { install: Ye };
|
|
844
840
|
export {
|
|
845
|
-
|
|
841
|
+
Ie as Permission,
|
|
846
842
|
nt as appAppear,
|
|
847
843
|
pt as closeWaitDlg,
|
|
848
844
|
lt as createAxios,
|
|
@@ -852,8 +848,8 @@ export {
|
|
|
852
848
|
F as matchRouteMeta,
|
|
853
849
|
_t as messageError,
|
|
854
850
|
dt as messageInfo,
|
|
855
|
-
|
|
856
|
-
|
|
851
|
+
it as messageSuccess,
|
|
852
|
+
ft as messageWarning,
|
|
857
853
|
gt as onBeforeEach,
|
|
858
854
|
ct as openConfirmDlg,
|
|
859
855
|
ut as openPromptDlg,
|
package/dist/utils/router.d.ts
CHANGED