x-essential-lib 0.9.13 → 0.9.14
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/composables/system.d.ts +1 -1
- package/dist/index.js +111 -111
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export declare function useSystem(): {
|
|
|
3
3
|
compactWidth: import("vue").ComputedRef<string>;
|
|
4
4
|
isCurvedScreen: import("vue").ComputedRef<boolean>;
|
|
5
5
|
isMobile: () => boolean;
|
|
6
|
-
nameOfList: (entries: string[],
|
|
6
|
+
nameOfList: (entries: string[], instances?: string[]) => string;
|
|
7
7
|
sentenceOfAsk: (verb: string, object: string, name: string) => string;
|
|
8
8
|
sentenceOfOperate: (operate: string, result: string) => string;
|
|
9
9
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var d=document.createElement("style");d.id="x-essential-lib",d.appendChild(document.createTextNode('.fade-leave-active[data-v-83c3cd1d]{transition:opacity .5s ease}.fade-leave-to[data-v-83c3cd1d]{opacity:0}.x-cont[data-v-83c3cd1d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-83c3cd1d]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-83c3cd1d]{transform-origin:20px 20px;animation:lds-spinner-83c3cd1d 1.2s linear infinite}.lds-spinner div[data-v-83c3cd1d]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-83c3cd1d]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-83c3cd1d]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-83c3cd1d]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-83c3cd1d]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-83c3cd1d]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-83c3cd1d]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-83c3cd1d]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-83c3cd1d]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-83c3cd1d]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-83c3cd1d{0%{opacity:1}to{opacity:0}}.x-item[data-v-f1f60167]{width:600px}@media (max-width: 600px){.x-item[data-v-f1f60167]{width:calc(100vw - 16px)}}.x-cont[data-v-b482df18]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(d)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import { computed as
|
|
2
|
+
import { computed as j, provide as U, inject as K, ref as s, watchEffect as ne, onMounted as W, onBeforeUnmount as N, onBeforeMount as De, defineComponent as I, watch as J, resolveComponent as y, createBlock as A, openBlock as O, withKeys as F, unref as E, withModifiers as B, isRef as X, withCtx as m, createVNode as h, createTextVNode as M, toDisplayString as S, Transition as Ce, createElementBlock as ee, createCommentVNode as te, normalizeStyle as se, createElementVNode as D, Fragment as Ve, renderList as je, useTemplateRef as pe } from "vue";
|
|
3
3
|
import { useI18n as z } from "vue-i18n";
|
|
4
|
-
import { useTheme as _e, useDisplay as
|
|
4
|
+
import { useTheme as _e, useDisplay as Oe } from "vuetify";
|
|
5
5
|
import { useRouter as de, useRoute as qe } from "vue-router";
|
|
6
6
|
import Se from "axios";
|
|
7
7
|
import { a as T, m as Re, u as Le, t as re } from "./vendor.evicfx58.js";
|
|
8
8
|
function Te() {
|
|
9
|
-
const e = _e(), t =
|
|
9
|
+
const e = _e(), t = j(() => e.global.current.value.colors.primary), a = j(() => e.global.current.value.colors.secondary), o = j(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = j(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = j(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = j(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = j(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
10
|
return {
|
|
11
11
|
primaryColor: t,
|
|
12
12
|
secondaryColor: a,
|
|
@@ -27,8 +27,8 @@ function Ct(e) {
|
|
|
27
27
|
Me(a, e.onError);
|
|
28
28
|
}
|
|
29
29
|
), t.interceptors.response.use(
|
|
30
|
-
(a) =>
|
|
31
|
-
(a) =>
|
|
30
|
+
(a) => $e(a),
|
|
31
|
+
(a) => Be(a, e.onError)
|
|
32
32
|
), t;
|
|
33
33
|
}
|
|
34
34
|
function Ae(e) {
|
|
@@ -38,17 +38,17 @@ function Ae(e) {
|
|
|
38
38
|
function Me(e, t) {
|
|
39
39
|
console.error(e), t("request timeout");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function $e(e) {
|
|
42
42
|
return e.data;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Be(e, t) {
|
|
45
45
|
const o = e.response;
|
|
46
|
-
return o && (o.status === 401 &&
|
|
46
|
+
return o && (o.status === 401 && Ie(), o.data?.message ? t(o.data?.message) : t({
|
|
47
47
|
code: o.status,
|
|
48
48
|
message: o.statusText
|
|
49
49
|
})), Promise.reject(e);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ie() {
|
|
52
52
|
T.remove("accessToken"), T.remove("refreshToken"), T.remove("userId"), T.remove("userName"), T.remove("phone"), T.remove("activeOrg"), de().replace({ path: "/passport/login" });
|
|
53
53
|
}
|
|
54
54
|
const Vt = (function() {
|
|
@@ -59,7 +59,7 @@ const Vt = (function() {
|
|
|
59
59
|
})(), u = (function() {
|
|
60
60
|
return window.eventBus || (window.eventBus = Re(), console.log("eventBus created")), window.eventBus;
|
|
61
61
|
})();
|
|
62
|
-
async function
|
|
62
|
+
async function jt(e) {
|
|
63
63
|
return new Promise((t) => {
|
|
64
64
|
setTimeout(t, e);
|
|
65
65
|
});
|
|
@@ -88,7 +88,7 @@ let Ue = 0;
|
|
|
88
88
|
function oe() {
|
|
89
89
|
return ++Ue;
|
|
90
90
|
}
|
|
91
|
-
async function
|
|
91
|
+
async function Ot(e) {
|
|
92
92
|
if (!ae())
|
|
93
93
|
return;
|
|
94
94
|
let t = !1, a;
|
|
@@ -130,7 +130,7 @@ function At(e, t) {
|
|
|
130
130
|
function Mt(e, t) {
|
|
131
131
|
u.emit("message", { type: "success", text: e, timeout: t });
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function $t(e, t) {
|
|
134
134
|
u.emit("message", { type: "warning", text: e, timeout: t });
|
|
135
135
|
}
|
|
136
136
|
var Ke = /* @__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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_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.debug_flow = "debug_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_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_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_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_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_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", 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.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(Ke || {});
|
|
@@ -155,13 +155,13 @@ const ie = "essentialDark", fe = "essentialLocale", ge = "essentialPermissionObj
|
|
|
155
155
|
function We(e) {
|
|
156
156
|
U(ie, e);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Bt() {
|
|
159
159
|
return K(ie);
|
|
160
160
|
}
|
|
161
161
|
function Xe(e) {
|
|
162
162
|
U(fe, e);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function It() {
|
|
165
165
|
return K(fe);
|
|
166
166
|
}
|
|
167
167
|
function ze(e) {
|
|
@@ -419,22 +419,22 @@ function Xt(e, t, a, o, l, r) {
|
|
|
419
419
|
() => {
|
|
420
420
|
}
|
|
421
421
|
) : n.back();
|
|
422
|
-
},
|
|
422
|
+
}, g = (v) => {
|
|
423
423
|
if (v.key === "Escape") {
|
|
424
424
|
x();
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
|
-
},
|
|
427
|
+
}, b = () => {
|
|
428
428
|
x();
|
|
429
429
|
};
|
|
430
430
|
W(() => {
|
|
431
|
-
window.addEventListener("keydown",
|
|
431
|
+
window.addEventListener("keydown", g), u.on("backbutton", b);
|
|
432
432
|
}), N(() => {
|
|
433
|
-
window.removeEventListener("keydown",
|
|
433
|
+
window.removeEventListener("keydown", g), u.off("backbutton", b);
|
|
434
434
|
});
|
|
435
435
|
const i = (v) => {
|
|
436
436
|
e.value = v;
|
|
437
|
-
},
|
|
437
|
+
}, V = (v) => {
|
|
438
438
|
t.value = v;
|
|
439
439
|
}, k = (v) => {
|
|
440
440
|
const R = v;
|
|
@@ -443,9 +443,9 @@ function Xt(e, t, a, o, l, r) {
|
|
|
443
443
|
l.value = v;
|
|
444
444
|
};
|
|
445
445
|
De(() => {
|
|
446
|
-
u.on("updateDark", i), u.on("updateLocale",
|
|
446
|
+
u.on("updateDark", i), u.on("updateLocale", V), u.on("updatePermission", k), u.on("updateLastAppPath", f), u.emit("syncGlobalState");
|
|
447
447
|
}), N(() => {
|
|
448
|
-
u.off("updateDark", i), u.off("updateLocale",
|
|
448
|
+
u.off("updateDark", i), u.off("updateLocale", V), u.off("updatePermission", k), u.off("updateLastAppPath", f);
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function zt() {
|
|
@@ -460,7 +460,7 @@ function zt() {
|
|
|
460
460
|
return { verifyPermission: t };
|
|
461
461
|
}
|
|
462
462
|
function Ht() {
|
|
463
|
-
const { locale: e, t } = z(), a =
|
|
463
|
+
const { locale: e, t } = z(), a = j(() => !!window.cordova), o = Oe(), l = j(() => o.width.value <= 1280 ? o.width.value + "px" : o.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px"), r = j(() => o.xs.value);
|
|
464
464
|
return {
|
|
465
465
|
sysBarAvail: a,
|
|
466
466
|
compactWidth: l,
|
|
@@ -468,21 +468,21 @@ function Ht() {
|
|
|
468
468
|
isMobile: () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
469
469
|
navigator.userAgent
|
|
470
470
|
),
|
|
471
|
-
nameOfList: (_, x
|
|
471
|
+
nameOfList: (_, x) => {
|
|
472
472
|
let g = "";
|
|
473
|
-
const
|
|
474
|
-
return x ? g =
|
|
473
|
+
const b = _.map((i) => t(i));
|
|
474
|
+
return x ? g = `${b.join(" / ")} <${x.join(" / ")}>` : e.value === "en" ? g = b.join(" ") : g = b.join(""), g;
|
|
475
475
|
},
|
|
476
|
-
sentenceOfAsk: (_, x,
|
|
476
|
+
sentenceOfAsk: (_, x, g) => e.value === "en" ? t("dlg.common.ask", {
|
|
477
477
|
verb: re(t(_)),
|
|
478
478
|
object: re(t(x)),
|
|
479
|
-
name:
|
|
480
|
-
}) : t("dlg.common.ask", { verb: t(_), object: t(x), name:
|
|
479
|
+
name: g
|
|
480
|
+
}) : t("dlg.common.ask", { verb: t(_), object: t(x), name: g }),
|
|
481
481
|
sentenceOfOperate: (_, x) => e.value === "en" ? `${t(_)} ${t(x)}` : `${t(_)}${t(x)}`
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
function Q(e, t) {
|
|
485
|
-
const a = Qe(), o =
|
|
485
|
+
const a = Qe(), o = j({
|
|
486
486
|
get() {
|
|
487
487
|
return ye(a, e);
|
|
488
488
|
},
|
|
@@ -498,29 +498,29 @@ function Q(e, t) {
|
|
|
498
498
|
u.off(e, l);
|
|
499
499
|
}), { open: o };
|
|
500
500
|
}
|
|
501
|
-
const lt = /* @__PURE__ */
|
|
501
|
+
const lt = /* @__PURE__ */ I({
|
|
502
502
|
__name: "index",
|
|
503
503
|
setup(e) {
|
|
504
504
|
const { t } = z(), a = s(""), o = s(""), l = s(""), r = s(""), c = s(""), n = s(""), d = s("");
|
|
505
505
|
let p = 0, _ = !1;
|
|
506
506
|
const x = (i) => {
|
|
507
|
-
a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text, r.value = i.cancel?.color ?? "primary", c.value = i.cancel?.text ?? t("dlg.common.cancel"), n.value = i.confirm?.color ?? "primary", d.value = i.confirm?.text ?? t("dlg.common.confirm"), p = i.seq, _ = !1,
|
|
508
|
-
}, { open:
|
|
509
|
-
|
|
507
|
+
a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text, r.value = i.cancel?.color ?? "primary", c.value = i.cancel?.text ?? t("dlg.common.cancel"), n.value = i.confirm?.color ?? "primary", d.value = i.confirm?.text ?? t("dlg.common.confirm"), p = i.seq, _ = !1, g.value = !0;
|
|
508
|
+
}, { open: g } = Q("confirmDlg", x), b = () => {
|
|
509
|
+
g.value = !1, _ || (u.emit("confirmDlgResult" + p, !0), _ = !0);
|
|
510
510
|
};
|
|
511
|
-
return J(
|
|
511
|
+
return J(g, (i) => {
|
|
512
512
|
!i && !_ && (u.emit("confirmDlgResult" + p, !1), _ = !0);
|
|
513
|
-
}), (i,
|
|
513
|
+
}), (i, V) => {
|
|
514
514
|
const k = y("v-card-text"), f = y("v-btn"), v = y("v-card-actions"), R = y("v-card"), w = y("v-dialog");
|
|
515
|
-
return
|
|
516
|
-
modelValue: E(
|
|
517
|
-
"onUpdate:modelValue":
|
|
515
|
+
return O(), A(w, {
|
|
516
|
+
modelValue: E(g),
|
|
517
|
+
"onUpdate:modelValue": V[1] || (V[1] = (C) => X(g) ? g.value = C : null),
|
|
518
518
|
attach: "",
|
|
519
519
|
"max-width": "600px",
|
|
520
520
|
transition: "dialog-top-transition",
|
|
521
521
|
onKeydown: [
|
|
522
|
-
F(
|
|
523
|
-
|
|
522
|
+
F(B(b, ["stop", "prevent"]), ["enter"]),
|
|
523
|
+
V[2] || (V[2] = F(B((C) => g.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
524
524
|
]
|
|
525
525
|
}, {
|
|
526
526
|
default: m(() => [
|
|
@@ -540,7 +540,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
540
540
|
h(f, {
|
|
541
541
|
color: r.value,
|
|
542
542
|
variant: "text",
|
|
543
|
-
onClick:
|
|
543
|
+
onClick: V[0] || (V[0] = (C) => g.value = !1)
|
|
544
544
|
}, {
|
|
545
545
|
default: m(() => [
|
|
546
546
|
M(S(c.value), 1)
|
|
@@ -550,7 +550,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
550
550
|
h(f, {
|
|
551
551
|
color: n.value,
|
|
552
552
|
variant: "text",
|
|
553
|
-
onClick:
|
|
553
|
+
onClick: b
|
|
554
554
|
}, {
|
|
555
555
|
default: m(() => [
|
|
556
556
|
M(S(d.value), 1)
|
|
@@ -568,38 +568,38 @@ const lt = /* @__PURE__ */ $({
|
|
|
568
568
|
}, 8, ["modelValue", "onKeydown"]);
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
}), nt = /* @__PURE__ */
|
|
571
|
+
}), nt = /* @__PURE__ */ I({
|
|
572
572
|
__name: "index",
|
|
573
573
|
props: {
|
|
574
574
|
open: { type: Boolean, default: !0 },
|
|
575
575
|
zIndex: { default: 1 }
|
|
576
576
|
},
|
|
577
577
|
setup(e) {
|
|
578
|
-
const { backgroundColor2: t } = Te(), a =
|
|
578
|
+
const { backgroundColor2: t } = Te(), a = j(() => ({
|
|
579
579
|
background: t.value,
|
|
580
580
|
zIndex: e.zIndex
|
|
581
581
|
}));
|
|
582
582
|
let o = 0;
|
|
583
|
-
return (l, r) => (
|
|
583
|
+
return (l, r) => (O(), A(Ce, { name: "fade" }, {
|
|
584
584
|
default: m(() => [
|
|
585
|
-
e.open ? (
|
|
585
|
+
e.open ? (O(), ee("div", {
|
|
586
586
|
key: X(o) ? ++o.value : ++o,
|
|
587
587
|
class: "x-cont",
|
|
588
588
|
style: se(a.value)
|
|
589
589
|
}, [...r[0] || (r[0] = [
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
590
|
+
D("div", { class: "lds-spinner" }, [
|
|
591
|
+
D("div"),
|
|
592
|
+
D("div"),
|
|
593
|
+
D("div"),
|
|
594
|
+
D("div"),
|
|
595
|
+
D("div"),
|
|
596
|
+
D("div"),
|
|
597
|
+
D("div"),
|
|
598
|
+
D("div"),
|
|
599
|
+
D("div"),
|
|
600
|
+
D("div"),
|
|
601
|
+
D("div"),
|
|
602
|
+
D("div")
|
|
603
603
|
], -1)
|
|
604
604
|
])], 4)) : te("", !0)
|
|
605
605
|
]),
|
|
@@ -611,7 +611,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
611
611
|
for (const [o, l] of t)
|
|
612
612
|
a[o] = l;
|
|
613
613
|
return a;
|
|
614
|
-
}, rt = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-83c3cd1d"]]), ut = /* @__PURE__ */
|
|
614
|
+
}, rt = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-83c3cd1d"]]), ut = /* @__PURE__ */ I({
|
|
615
615
|
__name: "item",
|
|
616
616
|
props: {
|
|
617
617
|
id: {},
|
|
@@ -621,10 +621,10 @@ const lt = /* @__PURE__ */ $({
|
|
|
621
621
|
},
|
|
622
622
|
emits: ["timeout"],
|
|
623
623
|
setup(e, { emit: t }) {
|
|
624
|
-
const a =
|
|
624
|
+
const a = j(() => ({
|
|
625
625
|
width: "calc(100% - 64px)",
|
|
626
626
|
overflowWrap: "break-word"
|
|
627
|
-
})), o =
|
|
627
|
+
})), o = j(() => {
|
|
628
628
|
switch (e.type) {
|
|
629
629
|
case "success":
|
|
630
630
|
return "mdi-check-circle";
|
|
@@ -646,18 +646,18 @@ const lt = /* @__PURE__ */ $({
|
|
|
646
646
|
c || r("timeout", e.id);
|
|
647
647
|
}), (c, n) => {
|
|
648
648
|
const d = y("v-icon"), p = y("v-sheet");
|
|
649
|
-
return
|
|
649
|
+
return O(), A(p, {
|
|
650
650
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
651
651
|
color: e.type,
|
|
652
652
|
elevation: 1
|
|
653
653
|
}, {
|
|
654
654
|
default: m(() => [
|
|
655
|
-
o.value ? (
|
|
655
|
+
o.value ? (O(), A(d, {
|
|
656
656
|
key: 0,
|
|
657
657
|
class: "mx-1",
|
|
658
658
|
icon: o.value
|
|
659
659
|
}, null, 8, ["icon"])) : te("", !0),
|
|
660
|
-
|
|
660
|
+
D("div", {
|
|
661
661
|
style: se(a.value)
|
|
662
662
|
}, S(e.text), 5),
|
|
663
663
|
h(d, {
|
|
@@ -670,7 +670,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
670
670
|
}, 8, ["color"]);
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
}), ct = /* @__PURE__ */ le(ut, [["__scopeId", "data-v-f1f60167"]]), st = /* @__PURE__ */
|
|
673
|
+
}), ct = /* @__PURE__ */ le(ut, [["__scopeId", "data-v-f1f60167"]]), st = /* @__PURE__ */ I({
|
|
674
674
|
__name: "index",
|
|
675
675
|
setup(e) {
|
|
676
676
|
const t = s([]);
|
|
@@ -693,12 +693,12 @@ const lt = /* @__PURE__ */ $({
|
|
|
693
693
|
const d = t.value.findIndex((p) => p.id === n);
|
|
694
694
|
d >= 0 && t.value.splice(d, 1);
|
|
695
695
|
};
|
|
696
|
-
return (n, d) => (
|
|
696
|
+
return (n, d) => (O(), ee("div", {
|
|
697
697
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
698
|
-
onClick: d[0] || (d[0] =
|
|
698
|
+
onClick: d[0] || (d[0] = B(() => {
|
|
699
699
|
}, ["stop"]))
|
|
700
700
|
}, [
|
|
701
|
-
(
|
|
701
|
+
(O(!0), ee(Ve, null, je(t.value, (p) => (O(), A(ct, {
|
|
702
702
|
id: p.id,
|
|
703
703
|
key: p.id,
|
|
704
704
|
text: p.text,
|
|
@@ -708,36 +708,36 @@ const lt = /* @__PURE__ */ $({
|
|
|
708
708
|
}, null, 8, ["id", "text", "timeout", "type"]))), 128))
|
|
709
709
|
]));
|
|
710
710
|
}
|
|
711
|
-
}), pt = /* @__PURE__ */ le(st, [["__scopeId", "data-v-b482df18"]]), _t = /* @__PURE__ */
|
|
711
|
+
}), pt = /* @__PURE__ */ le(st, [["__scopeId", "data-v-b482df18"]]), _t = /* @__PURE__ */ I({
|
|
712
712
|
__name: "index",
|
|
713
713
|
setup(e) {
|
|
714
714
|
const { t } = z(), a = s(""), o = s(""), l = s(0), r = s(), c = s(-1 / 0), n = s(1 / 0), d = s(1);
|
|
715
715
|
let p = 0, _ = !1;
|
|
716
|
-
const x = pe("target"),
|
|
717
|
-
a.value = k.title, o.value = k.subtitle ?? "", l.value = k.value, r.value = k.precision, c.value = k.min, n.value = k.max, d.value = k.step, p = k.seq, _ = !1,
|
|
718
|
-
}, { open:
|
|
719
|
-
|
|
716
|
+
const x = pe("target"), g = async (k) => {
|
|
717
|
+
a.value = k.title, o.value = k.subtitle ?? "", l.value = k.value, r.value = k.precision, c.value = k.min, n.value = k.max, d.value = k.step, p = k.seq, _ = !1, b.value = !0, await H(() => !!x.value), x.value.focus();
|
|
718
|
+
}, { open: b } = Q("numberDlg", g), i = s(!1), V = () => {
|
|
719
|
+
b.value = !1, _ || (u.emit(`numberDlgResult${p}`, l.value), _ = !0);
|
|
720
720
|
};
|
|
721
|
-
return J(
|
|
721
|
+
return J(b, (k) => {
|
|
722
722
|
!k && !_ && (u.emit(`numberDlgResult${p}`, void 0), _ = !0);
|
|
723
723
|
}), (k, f) => {
|
|
724
|
-
const v = y("v-number-input"), R = y("v-btn"), w = y("v-card-actions"),
|
|
725
|
-
return
|
|
726
|
-
modelValue: E(
|
|
727
|
-
"onUpdate:modelValue": f[3] || (f[3] = (q) => X(
|
|
724
|
+
const v = y("v-number-input"), R = y("v-btn"), w = y("v-card-actions"), C = y("v-form"), Y = y("v-card"), Z = y("v-dialog");
|
|
725
|
+
return O(), A(Z, {
|
|
726
|
+
modelValue: E(b),
|
|
727
|
+
"onUpdate:modelValue": f[3] || (f[3] = (q) => X(b) ? b.value = q : null),
|
|
728
728
|
attach: "",
|
|
729
729
|
"max-width": "600px",
|
|
730
730
|
transition: "dialog-top-transition",
|
|
731
|
-
onKeydown: f[4] || (f[4] = F(
|
|
731
|
+
onKeydown: f[4] || (f[4] = F(B((q) => b.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
732
732
|
}, {
|
|
733
733
|
default: m(() => [
|
|
734
734
|
h(Y, { title: a.value }, {
|
|
735
735
|
default: m(() => [
|
|
736
|
-
h(
|
|
736
|
+
h(C, {
|
|
737
737
|
modelValue: i.value,
|
|
738
738
|
"onUpdate:modelValue": f[2] || (f[2] = (q) => i.value = q),
|
|
739
739
|
class: "mx-3",
|
|
740
|
-
onSubmit:
|
|
740
|
+
onSubmit: B(V, ["prevent"])
|
|
741
741
|
}, {
|
|
742
742
|
default: m(() => [
|
|
743
743
|
h(v, {
|
|
@@ -756,7 +756,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
756
756
|
h(R, {
|
|
757
757
|
color: "primary",
|
|
758
758
|
variant: "text",
|
|
759
|
-
onClick: f[1] || (f[1] = (q) =>
|
|
759
|
+
onClick: f[1] || (f[1] = (q) => b.value = !1)
|
|
760
760
|
}, {
|
|
761
761
|
default: m(() => [
|
|
762
762
|
M(S(E(t)("dlg.common.cancel")), 1)
|
|
@@ -788,27 +788,27 @@ const lt = /* @__PURE__ */ $({
|
|
|
788
788
|
}, 8, ["modelValue"]);
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
}), dt = /* @__PURE__ */
|
|
791
|
+
}), dt = /* @__PURE__ */ I({
|
|
792
792
|
__name: "index",
|
|
793
793
|
setup(e) {
|
|
794
|
-
const { t } = z(), a = s(""), o = s(""), l = s(""), r = s(""), c = s(""), n = s(), d = s(""), p = s(""), _ = s(""), x = s(""),
|
|
795
|
-
let
|
|
796
|
-
const
|
|
797
|
-
a.value = w.title, o.value = w.subtitle ?? "", l.value = w.text, r.value = w.label, c.value = w.placeholder, n.value = w.rules, d.value = w.value, p.value = w.cancel?.color ?? "primary", _.value = w.cancel?.text ?? t("dlg.common.cancel"), x.value = w.confirm?.color ?? "primary",
|
|
794
|
+
const { t } = z(), a = s(""), o = s(""), l = s(""), r = s(""), c = s(""), n = s(), d = s(""), p = s(""), _ = s(""), x = s(""), g = s("");
|
|
795
|
+
let b = 0, i = !1;
|
|
796
|
+
const V = pe("target"), k = async (w) => {
|
|
797
|
+
a.value = w.title, o.value = w.subtitle ?? "", l.value = w.text, r.value = w.label, c.value = w.placeholder, n.value = w.rules, d.value = w.value, p.value = w.cancel?.color ?? "primary", _.value = w.cancel?.text ?? t("dlg.common.cancel"), x.value = w.confirm?.color ?? "primary", g.value = w.confirm?.text ?? t("dlg.common.confirm"), b = w.seq, i = !1, f.value = !0, await H(() => !!V.value), V.value.focus();
|
|
798
798
|
}, { open: f } = Q("promptDlg", k), v = s(!1), R = () => {
|
|
799
|
-
f.value = !1, i || (u.emit("promptDlgResult" +
|
|
799
|
+
f.value = !1, i || (u.emit("promptDlgResult" + b, d.value ?? ""), i = !0);
|
|
800
800
|
};
|
|
801
801
|
return J(f, (w) => {
|
|
802
|
-
!w && !i && (u.emit("promptDlgResult" +
|
|
803
|
-
}), (w,
|
|
802
|
+
!w && !i && (u.emit("promptDlgResult" + b, void 0), i = !0);
|
|
803
|
+
}), (w, C) => {
|
|
804
804
|
const Y = y("v-card-text"), Z = y("v-text-field"), q = y("v-btn"), xe = y("v-card-actions"), we = y("v-form"), he = y("v-card"), ke = y("v-dialog");
|
|
805
|
-
return
|
|
805
|
+
return O(), A(ke, {
|
|
806
806
|
modelValue: E(f),
|
|
807
|
-
"onUpdate:modelValue":
|
|
807
|
+
"onUpdate:modelValue": C[3] || (C[3] = ($) => X(f) ? f.value = $ : null),
|
|
808
808
|
attach: "",
|
|
809
809
|
"max-width": "600px",
|
|
810
810
|
transition: "dialog-top-transition",
|
|
811
|
-
onKeydown:
|
|
811
|
+
onKeydown: C[4] || (C[4] = F(B(($) => f.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
812
812
|
}, {
|
|
813
813
|
default: m(() => [
|
|
814
814
|
h(he, {
|
|
@@ -816,7 +816,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
816
816
|
title: a.value
|
|
817
817
|
}, {
|
|
818
818
|
default: m(() => [
|
|
819
|
-
l.value ? (
|
|
819
|
+
l.value ? (O(), A(Y, { key: 0 }, {
|
|
820
820
|
default: m(() => [
|
|
821
821
|
M(S(l.value), 1)
|
|
822
822
|
]),
|
|
@@ -824,16 +824,16 @@ const lt = /* @__PURE__ */ $({
|
|
|
824
824
|
})) : te("", !0),
|
|
825
825
|
h(we, {
|
|
826
826
|
modelValue: v.value,
|
|
827
|
-
"onUpdate:modelValue":
|
|
827
|
+
"onUpdate:modelValue": C[2] || (C[2] = ($) => v.value = $),
|
|
828
828
|
class: "mx-3",
|
|
829
|
-
onSubmit:
|
|
829
|
+
onSubmit: B(R, ["prevent"])
|
|
830
830
|
}, {
|
|
831
831
|
default: m(() => [
|
|
832
832
|
h(Z, {
|
|
833
833
|
ref_key: "target",
|
|
834
|
-
ref:
|
|
834
|
+
ref: V,
|
|
835
835
|
modelValue: d.value,
|
|
836
|
-
"onUpdate:modelValue":
|
|
836
|
+
"onUpdate:modelValue": C[0] || (C[0] = ($) => d.value = $),
|
|
837
837
|
label: r.value,
|
|
838
838
|
placeholder: c.value,
|
|
839
839
|
rules: n.value
|
|
@@ -843,7 +843,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
843
843
|
h(q, {
|
|
844
844
|
color: p.value,
|
|
845
845
|
variant: "text",
|
|
846
|
-
onClick:
|
|
846
|
+
onClick: C[1] || (C[1] = ($) => f.value = !1)
|
|
847
847
|
}, {
|
|
848
848
|
default: m(() => [
|
|
849
849
|
M(S(_.value), 1)
|
|
@@ -857,7 +857,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
857
857
|
variant: "text"
|
|
858
858
|
}, {
|
|
859
859
|
default: m(() => [
|
|
860
|
-
M(S(
|
|
860
|
+
M(S(g.value), 1)
|
|
861
861
|
]),
|
|
862
862
|
_: 1
|
|
863
863
|
}, 8, ["color", "disabled"])
|
|
@@ -875,7 +875,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
875
875
|
}, 8, ["modelValue"]);
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
|
-
}), it = { class: "ma-auto" }, ft = { class: "w-100 h-100 d-flex align-center justify-center" }, gt = { class: "text-body-1" }, vt = /* @__PURE__ */
|
|
878
|
+
}), it = { class: "ma-auto" }, ft = { class: "w-100 h-100 d-flex align-center justify-center" }, gt = { class: "text-body-1" }, vt = /* @__PURE__ */ I({
|
|
879
879
|
__name: "index",
|
|
880
880
|
setup(e) {
|
|
881
881
|
const { t } = z(), a = s(""), o = (c) => {
|
|
@@ -890,7 +890,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
890
890
|
u.off("closeWaitDlg", l);
|
|
891
891
|
}), (c, n) => {
|
|
892
892
|
const d = y("v-card"), p = y("v-dialog");
|
|
893
|
-
return
|
|
893
|
+
return O(), A(p, {
|
|
894
894
|
modelValue: E(r),
|
|
895
895
|
"onUpdate:modelValue": n[0] || (n[0] = (_) => X(r) ? r.value = _ : null),
|
|
896
896
|
attach: "",
|
|
@@ -899,15 +899,15 @@ const lt = /* @__PURE__ */ $({
|
|
|
899
899
|
persistent: ""
|
|
900
900
|
}, {
|
|
901
901
|
default: m(() => [
|
|
902
|
-
|
|
902
|
+
D("div", it, [
|
|
903
903
|
h(d, {
|
|
904
904
|
height: "80px",
|
|
905
905
|
loading: "",
|
|
906
906
|
width: "300px"
|
|
907
907
|
}, {
|
|
908
908
|
default: m(() => [
|
|
909
|
-
|
|
910
|
-
|
|
909
|
+
D("div", ft, [
|
|
910
|
+
D("span", gt, S(a.value), 1)
|
|
911
911
|
])
|
|
912
912
|
]),
|
|
913
913
|
_: 1
|
|
@@ -942,9 +942,9 @@ export {
|
|
|
942
942
|
u as eventBus,
|
|
943
943
|
Vt as globalObjects,
|
|
944
944
|
ye as hasView,
|
|
945
|
-
|
|
945
|
+
Bt as injectDark,
|
|
946
946
|
Ut as injectLastAppPath,
|
|
947
|
-
|
|
947
|
+
It as injectLocale,
|
|
948
948
|
Et as injectPermissionChecksum,
|
|
949
949
|
He as injectPermissionObjects,
|
|
950
950
|
Qe as injectViews,
|
|
@@ -956,9 +956,9 @@ export {
|
|
|
956
956
|
Tt as messageError,
|
|
957
957
|
At as messageInfo,
|
|
958
958
|
Mt as messageSuccess,
|
|
959
|
-
|
|
959
|
+
$t as messageWarning,
|
|
960
960
|
Kt as onBeforeEach,
|
|
961
|
-
|
|
961
|
+
Ot as openConfirmDlg,
|
|
962
962
|
qt as openNumberDlg,
|
|
963
963
|
St as openPromptDlg,
|
|
964
964
|
Rt as openWaitDlg,
|
|
@@ -976,6 +976,6 @@ export {
|
|
|
976
976
|
Ht as useSystem,
|
|
977
977
|
Q as useViewStack,
|
|
978
978
|
Ne as verifyPermission,
|
|
979
|
-
|
|
979
|
+
jt as waitMs,
|
|
980
980
|
H as waitUtil
|
|
981
981
|
};
|