x-essential-lib 0.5.23 → 0.5.25
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 +55 -61
- package/dist/store/global.d.ts +4 -7
- 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 j, 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
|
() => {
|
|
@@ -19,8 +19,7 @@ const ne = le(
|
|
|
19
19
|
locale: t,
|
|
20
20
|
permissionObjects: l,
|
|
21
21
|
permissionChecksum: o,
|
|
22
|
-
|
|
23
|
-
mainActive: r
|
|
22
|
+
lastAppPath: n
|
|
24
23
|
};
|
|
25
24
|
},
|
|
26
25
|
{
|
|
@@ -31,17 +30,12 @@ const ne = le(
|
|
|
31
30
|
},
|
|
32
31
|
{
|
|
33
32
|
storage: sessionStorage,
|
|
34
|
-
paths: [
|
|
35
|
-
"permissionObjects",
|
|
36
|
-
"permissionChecksum",
|
|
37
|
-
"lastPath",
|
|
38
|
-
"mainActive"
|
|
39
|
-
]
|
|
33
|
+
paths: ["permissionObjects", "permissionChecksum", "lastAppPath"]
|
|
40
34
|
}
|
|
41
35
|
]
|
|
42
36
|
}
|
|
43
37
|
), ce = le("viewMgr", () => {
|
|
44
|
-
const e =
|
|
38
|
+
const e = i([]);
|
|
45
39
|
function a() {
|
|
46
40
|
return e.value.length <= 0;
|
|
47
41
|
}
|
|
@@ -147,7 +141,7 @@ function X(e, a) {
|
|
|
147
141
|
}
|
|
148
142
|
);
|
|
149
143
|
}
|
|
150
|
-
var
|
|
144
|
+
var B = X(Se, { path: "/" });
|
|
151
145
|
function lt(e) {
|
|
152
146
|
const a = Ce.create({
|
|
153
147
|
timeout: 6e3
|
|
@@ -163,7 +157,7 @@ function lt(e) {
|
|
|
163
157
|
), a;
|
|
164
158
|
}
|
|
165
159
|
function Ve(e) {
|
|
166
|
-
const a =
|
|
160
|
+
const a = B.get("accessToken") ?? "";
|
|
167
161
|
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
168
162
|
}
|
|
169
163
|
function Re(e, a) {
|
|
@@ -185,7 +179,7 @@ function Oe(e, a) {
|
|
|
185
179
|
}), a(l), Promise.reject(e);
|
|
186
180
|
}
|
|
187
181
|
function Te() {
|
|
188
|
-
|
|
182
|
+
B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"), re().replace({ path: "/passport/login" });
|
|
189
183
|
}
|
|
190
184
|
function je(e) {
|
|
191
185
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
@@ -236,9 +230,9 @@ function ue() {
|
|
|
236
230
|
const e = Date.now();
|
|
237
231
|
return e - ee > 500 ? (ee = e, !0) : !1;
|
|
238
232
|
}
|
|
239
|
-
let
|
|
233
|
+
let Ae = 0;
|
|
240
234
|
function se() {
|
|
241
|
-
return ++
|
|
235
|
+
return ++Ae;
|
|
242
236
|
}
|
|
243
237
|
async function ct(e) {
|
|
244
238
|
if (!ue())
|
|
@@ -270,13 +264,13 @@ function _t(e, a) {
|
|
|
270
264
|
function dt(e, a) {
|
|
271
265
|
p.emit("message", { type: "info", text: e, timeout: a });
|
|
272
266
|
}
|
|
273
|
-
function
|
|
267
|
+
function it(e, a) {
|
|
274
268
|
p.emit("message", { type: "success", text: e, timeout: a });
|
|
275
269
|
}
|
|
276
|
-
function
|
|
270
|
+
function ft(e, a) {
|
|
277
271
|
p.emit("message", { type: "warning", text: e, timeout: a });
|
|
278
272
|
}
|
|
279
|
-
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 || {});
|
|
280
274
|
function te(e, a) {
|
|
281
275
|
if (!e)
|
|
282
276
|
return !1;
|
|
@@ -290,29 +284,29 @@ function te(e, a) {
|
|
|
290
284
|
return !1;
|
|
291
285
|
}), Object.keys(t).length <= 0);
|
|
292
286
|
}
|
|
293
|
-
const
|
|
287
|
+
const Be = [
|
|
294
288
|
{ path: "/passport/login", level: 0 },
|
|
295
289
|
{ path: "/passport/loginAccount", level: 1 },
|
|
296
290
|
{ path: "/passport/register", level: 1 },
|
|
297
291
|
{ path: "/org/joinOrCreate", level: 1, requiredState: "auth" },
|
|
298
|
-
{ path: "/org/manager", level: 1, requiredState: "org" },
|
|
292
|
+
{ path: "/org/manager", level: 1, requiredState: "org", mainActive: 2 },
|
|
299
293
|
{ path: "/main", level: 0, requiredState: "org" },
|
|
300
|
-
{ path: "/mine/personalInfo", level: 1, requiredState: "org" },
|
|
294
|
+
{ path: "/mine/personalInfo", level: 1, requiredState: "org", mainActive: 4 },
|
|
301
295
|
{ path: "/mine/accountSecurity", level: 2, requiredState: "org" },
|
|
302
|
-
{ path: "/mine/settings", level: 1, requiredState: "org" },
|
|
296
|
+
{ path: "/mine/settings", level: 1, requiredState: "org", mainActive: 4 },
|
|
303
297
|
{ path: "/mine/general", level: 2, requiredState: "org" },
|
|
304
298
|
{ path: "/mine/general/darkMode", level: 3, requiredState: "org" },
|
|
305
299
|
{ path: "/mine/general/language", level: 3, requiredState: "org" },
|
|
306
300
|
{ path: "/app/manager", level: 1, requiredState: "org" },
|
|
307
301
|
{ path: "/app/editor", level: 2, requiredState: "org" },
|
|
308
|
-
{ path: "/asset", level: 1, requiredState: "org" },
|
|
309
|
-
{ path: "/calc", level: 1, requiredState: "org" },
|
|
310
|
-
{ 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 }
|
|
311
305
|
];
|
|
312
306
|
function F(e) {
|
|
313
307
|
let a, t = 0;
|
|
314
308
|
const l = e.split("/").filter((o) => o.trim() !== "");
|
|
315
|
-
return
|
|
309
|
+
return Be.forEach((o) => {
|
|
316
310
|
const n = o.path.split("/").filter((c) => c.trim() !== "");
|
|
317
311
|
let r = 0;
|
|
318
312
|
for (let c = 0; c < l.length && !(c >= n.length || l[c] !== n[c]); c++)
|
|
@@ -329,7 +323,7 @@ function ae(e) {
|
|
|
329
323
|
const t = e.split("/");
|
|
330
324
|
return console.assert(t.length >= 2), { app: t[1], path: a.path, level: a.level };
|
|
331
325
|
}
|
|
332
|
-
const oe =
|
|
326
|
+
const oe = i("");
|
|
333
327
|
function D(e, a) {
|
|
334
328
|
const t = ae(e), l = ae(a), o = t.app === l.app, n = t.path === l.path, r = t.level >= l.level;
|
|
335
329
|
console.info(
|
|
@@ -337,10 +331,10 @@ function D(e, a) {
|
|
|
337
331
|
), o ? n ? oe.value = "" : oe.value = r ? "inner-left" : "inner-right" : window.routeExtras = { forward: r };
|
|
338
332
|
}
|
|
339
333
|
function Ee() {
|
|
340
|
-
return !!
|
|
334
|
+
return !!B.get("accessToken");
|
|
341
335
|
}
|
|
342
336
|
function Me() {
|
|
343
|
-
return !!
|
|
337
|
+
return !!B.get("activeOrg");
|
|
344
338
|
}
|
|
345
339
|
function gt(e, a, t) {
|
|
346
340
|
const l = Ee(), o = Me(), n = F(e.path);
|
|
@@ -383,7 +377,7 @@ function gt(e, a, t) {
|
|
|
383
377
|
D(e.path, a.path), t();
|
|
384
378
|
}
|
|
385
379
|
function Z(e, a) {
|
|
386
|
-
const t = ce(), l =
|
|
380
|
+
const t = ce(), l = f({
|
|
387
381
|
get() {
|
|
388
382
|
return t.hasView(e);
|
|
389
383
|
},
|
|
@@ -402,16 +396,16 @@ function Z(e, a) {
|
|
|
402
396
|
const Ue = /* @__PURE__ */ M({
|
|
403
397
|
__name: "index",
|
|
404
398
|
setup(e) {
|
|
405
|
-
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(() => {
|
|
406
400
|
var u;
|
|
407
401
|
return ((u = n.value) == null ? void 0 : u.color) ?? "primary";
|
|
408
|
-
}), s =
|
|
402
|
+
}), s = f(() => {
|
|
409
403
|
var u;
|
|
410
404
|
return ((u = n.value) == null ? void 0 : u.text) ?? a.t("cancel");
|
|
411
|
-
}), _ =
|
|
405
|
+
}), _ = f(() => {
|
|
412
406
|
var u;
|
|
413
407
|
return ((u = r.value) == null ? void 0 : u.color) ?? "primary";
|
|
414
|
-
}), v =
|
|
408
|
+
}), v = f(() => {
|
|
415
409
|
var u;
|
|
416
410
|
return ((u = r.value) == null ? void 0 : u.text) ?? a.t("confirm");
|
|
417
411
|
});
|
|
@@ -424,7 +418,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
424
418
|
}), O(() => {
|
|
425
419
|
p.off("confirmDlg", T);
|
|
426
420
|
});
|
|
427
|
-
const
|
|
421
|
+
const A = () => {
|
|
428
422
|
t.value = !1, C || (p.emit("confirmDlgResult" + x, !0), C = !0);
|
|
429
423
|
};
|
|
430
424
|
return N(t, (u) => {
|
|
@@ -436,7 +430,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
436
430
|
"onUpdate:modelValue": g[1] || (g[1] = (U) => G(t) ? t.value = U : null),
|
|
437
431
|
onKeydown: [
|
|
438
432
|
g[2] || (g[2] = L(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
439
|
-
L(K(
|
|
433
|
+
L(K(A, ["stop", "prevent"]), ["enter"])
|
|
440
434
|
],
|
|
441
435
|
transition: "dialog-top-transition",
|
|
442
436
|
"max-width": "600px"
|
|
@@ -446,7 +440,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
446
440
|
default: w(() => [
|
|
447
441
|
k(b, null, {
|
|
448
442
|
default: w(() => [
|
|
449
|
-
|
|
443
|
+
I(j(o.value), 1)
|
|
450
444
|
]),
|
|
451
445
|
_: 1
|
|
452
446
|
}),
|
|
@@ -458,17 +452,17 @@ const Ue = /* @__PURE__ */ M({
|
|
|
458
452
|
variant: "text"
|
|
459
453
|
}, {
|
|
460
454
|
default: w(() => [
|
|
461
|
-
|
|
455
|
+
I(j(s.value), 1)
|
|
462
456
|
]),
|
|
463
457
|
_: 1
|
|
464
458
|
}, 8, ["color"]),
|
|
465
459
|
k(R, {
|
|
466
|
-
onClick:
|
|
460
|
+
onClick: A,
|
|
467
461
|
color: _.value,
|
|
468
462
|
variant: "text"
|
|
469
463
|
}, {
|
|
470
464
|
default: w(() => [
|
|
471
|
-
|
|
465
|
+
I(j(v.value), 1)
|
|
472
466
|
]),
|
|
473
467
|
_: 1
|
|
474
468
|
}, 8, ["color"])
|
|
@@ -507,7 +501,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
507
501
|
}
|
|
508
502
|
},
|
|
509
503
|
setup(e) {
|
|
510
|
-
const a = H(), t = e, l =
|
|
504
|
+
const a = H(), t = e, l = f(() => ({
|
|
511
505
|
background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
512
506
|
zIndex: t.zIndex
|
|
513
507
|
}));
|
|
@@ -531,7 +525,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
531
525
|
},
|
|
532
526
|
emits: ["timeout"],
|
|
533
527
|
setup(e, { emit: a }) {
|
|
534
|
-
const t = e, l =
|
|
528
|
+
const t = e, l = i(!0), o = a;
|
|
535
529
|
return S(() => {
|
|
536
530
|
setTimeout(() => {
|
|
537
531
|
o("timeout", t.id);
|
|
@@ -594,19 +588,19 @@ const Ue = /* @__PURE__ */ M({
|
|
|
594
588
|
}), He = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-8c2268ea"]]), Je = /* @__PURE__ */ M({
|
|
595
589
|
__name: "index",
|
|
596
590
|
setup(e) {
|
|
597
|
-
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(() => {
|
|
598
592
|
var d;
|
|
599
593
|
return ((d = _.value) == null ? void 0 : d.color) ?? "primary";
|
|
600
|
-
}), C =
|
|
594
|
+
}), C = f(() => {
|
|
601
595
|
var d;
|
|
602
596
|
return ((d = _.value) == null ? void 0 : d.text) ?? a.t("cancel");
|
|
603
|
-
}), T =
|
|
597
|
+
}), T = f(() => {
|
|
604
598
|
var d;
|
|
605
599
|
return ((d = v.value) == null ? void 0 : d.color) ?? "primary";
|
|
606
|
-
}),
|
|
600
|
+
}), A = f(() => {
|
|
607
601
|
var d;
|
|
608
602
|
return ((d = v.value) == null ? void 0 : d.text) ?? a.t("confirm");
|
|
609
|
-
}), u =
|
|
603
|
+
}), u = i();
|
|
610
604
|
let g = 0, b = !1;
|
|
611
605
|
const R = async (d) => {
|
|
612
606
|
var y;
|
|
@@ -623,7 +617,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
623
617
|
return N(t, (d) => {
|
|
624
618
|
!d && !b && (p.emit("promptDlgResult" + g, void 0), b = !0);
|
|
625
619
|
}), (d, y) => {
|
|
626
|
-
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");
|
|
627
621
|
return V(), E(ge, {
|
|
628
622
|
modelValue: z(t),
|
|
629
623
|
"onUpdate:modelValue": y[2] || (y[2] = ($) => G(t) ? t.value = $ : null),
|
|
@@ -635,11 +629,11 @@ const Ue = /* @__PURE__ */ M({
|
|
|
635
629
|
"max-width": "600px"
|
|
636
630
|
}, {
|
|
637
631
|
default: w(() => [
|
|
638
|
-
k(
|
|
632
|
+
k(fe, { title: l.value }, {
|
|
639
633
|
default: w(() => [
|
|
640
634
|
o.value ? (V(), E(U, { key: 0 }, {
|
|
641
635
|
default: w(() => [
|
|
642
|
-
|
|
636
|
+
I(j(o.value), 1)
|
|
643
637
|
]),
|
|
644
638
|
_: 1
|
|
645
639
|
})) : ke("", !0),
|
|
@@ -657,7 +651,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
657
651
|
]),
|
|
658
652
|
_: 1
|
|
659
653
|
}),
|
|
660
|
-
k(
|
|
654
|
+
k(ie, { class: "d-flex justify-end" }, {
|
|
661
655
|
default: w(() => [
|
|
662
656
|
k(P, {
|
|
663
657
|
onClick: y[1] || (y[1] = ($) => t.value = !1),
|
|
@@ -665,7 +659,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
665
659
|
variant: "text"
|
|
666
660
|
}, {
|
|
667
661
|
default: w(() => [
|
|
668
|
-
|
|
662
|
+
I(j(C.value), 1)
|
|
669
663
|
]),
|
|
670
664
|
_: 1
|
|
671
665
|
}, 8, ["color"]),
|
|
@@ -675,7 +669,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
675
669
|
variant: "text"
|
|
676
670
|
}, {
|
|
677
671
|
default: w(() => [
|
|
678
|
-
|
|
672
|
+
I(j(A.value), 1)
|
|
679
673
|
]),
|
|
680
674
|
_: 1
|
|
681
675
|
}, 8, ["color"])
|
|
@@ -735,7 +729,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
735
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);
|
|
736
730
|
};
|
|
737
731
|
function vt() {
|
|
738
|
-
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");
|
|
739
733
|
return {
|
|
740
734
|
primaryColor: a,
|
|
741
735
|
secondaryColor: t,
|
|
@@ -821,13 +815,13 @@ function mt(e, a) {
|
|
|
821
815
|
u && await C(), clearTimeout(x), x = setTimeout(async () => {
|
|
822
816
|
await C(), x && T();
|
|
823
817
|
}, 3e3);
|
|
824
|
-
},
|
|
818
|
+
}, A = () => {
|
|
825
819
|
clearTimeout(x), x = void 0;
|
|
826
820
|
};
|
|
827
821
|
S(() => {
|
|
828
822
|
a && T(!0);
|
|
829
823
|
}), O(() => {
|
|
830
|
-
|
|
824
|
+
A();
|
|
831
825
|
});
|
|
832
826
|
}
|
|
833
827
|
function ht() {
|
|
@@ -839,12 +833,12 @@ function ht() {
|
|
|
839
833
|
return { verifyPermission: a };
|
|
840
834
|
}
|
|
841
835
|
function wt() {
|
|
842
|
-
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");
|
|
843
837
|
return { dark: t, sysBarAvail: l, compactWidth: o };
|
|
844
838
|
}
|
|
845
839
|
const yt = { install: Ye };
|
|
846
840
|
export {
|
|
847
|
-
|
|
841
|
+
Ie as Permission,
|
|
848
842
|
nt as appAppear,
|
|
849
843
|
pt as closeWaitDlg,
|
|
850
844
|
lt as createAxios,
|
|
@@ -854,8 +848,8 @@ export {
|
|
|
854
848
|
F as matchRouteMeta,
|
|
855
849
|
_t as messageError,
|
|
856
850
|
dt as messageInfo,
|
|
857
|
-
|
|
858
|
-
|
|
851
|
+
it as messageSuccess,
|
|
852
|
+
ft as messageWarning,
|
|
859
853
|
gt as onBeforeEach,
|
|
860
854
|
ct as openConfirmDlg,
|
|
861
855
|
ut as openPromptDlg,
|
package/dist/store/global.d.ts
CHANGED
|
@@ -4,20 +4,17 @@ export declare const useGlobalStore: import("pinia").StoreDefinition<"global", i
|
|
|
4
4
|
locale: import("vue").Ref<string>;
|
|
5
5
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
6
6
|
permissionChecksum: import("vue").Ref<string>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, "dark" | "locale" | "permissionObjects" | "permissionChecksum" | "lastPath" | "mainActive">>, Pick<{
|
|
7
|
+
lastAppPath: import("vue").Ref<string>;
|
|
8
|
+
}, "dark" | "locale" | "permissionObjects" | "permissionChecksum" | "lastAppPath">>, Pick<{
|
|
10
9
|
dark: import("vue").Ref<boolean | undefined>;
|
|
11
10
|
locale: import("vue").Ref<string>;
|
|
12
11
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
13
12
|
permissionChecksum: import("vue").Ref<string>;
|
|
14
|
-
|
|
15
|
-
mainActive: import("vue").Ref<0 | 1 | 2 | 3 | 4>;
|
|
13
|
+
lastAppPath: import("vue").Ref<string>;
|
|
16
14
|
}, never>, Pick<{
|
|
17
15
|
dark: import("vue").Ref<boolean | undefined>;
|
|
18
16
|
locale: import("vue").Ref<string>;
|
|
19
17
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
20
18
|
permissionChecksum: import("vue").Ref<string>;
|
|
21
|
-
|
|
22
|
-
mainActive: import("vue").Ref<0 | 1 | 2 | 3 | 4>;
|
|
19
|
+
lastAppPath: import("vue").Ref<string>;
|
|
23
20
|
}, never>>;
|
package/dist/utils/router.d.ts
CHANGED