x-essential-lib 0.9.5 → 0.9.6
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
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
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
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useTheme as se, useDisplay as
|
|
5
|
-
import { useRouter as pe, useRoute as
|
|
6
|
-
import
|
|
7
|
-
import { a as T, m as
|
|
8
|
-
function
|
|
9
|
-
const e = se(), t =
|
|
2
|
+
import { computed as j, provide as E, inject as U, ref as _, watchEffect as le, onMounted as N, onBeforeUnmount as K, onBeforeMount as we, defineComponent as $, watch as G, resolveComponent as v, createBlock as I, openBlock as V, withKeys as H, unref as A, withModifiers as M, isRef as W, withCtx as g, createVNode as b, createTextVNode as L, toDisplayString as S, Transition as ke, createElementBlock as P, createCommentVNode as ee, normalizeStyle as ue, createElementVNode as k, Fragment as De, renderList as Oe, useTemplateRef as ce } from "vue";
|
|
3
|
+
import { useI18n as X } from "vue-i18n";
|
|
4
|
+
import { useTheme as se, useDisplay as je } from "vuetify";
|
|
5
|
+
import { useRouter as pe, useRoute as Ve } from "vue-router";
|
|
6
|
+
import Ce from "axios";
|
|
7
|
+
import { a as T, m as qe, u as Se } from "./vendor.waod39c6.js";
|
|
8
|
+
function Re() {
|
|
9
|
+
const e = se(), 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"), u = 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,
|
|
13
13
|
backgroundColor0: o,
|
|
14
14
|
backgroundColor1: l,
|
|
15
15
|
backgroundColor2: r,
|
|
16
|
-
highlightColor:
|
|
16
|
+
highlightColor: u,
|
|
17
17
|
borderColor: n
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
function kt(e) {
|
|
21
|
-
const t =
|
|
21
|
+
const t = Ce.create({
|
|
22
22
|
timeout: 6e3
|
|
23
23
|
});
|
|
24
24
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
25
25
|
(a) => Te(a),
|
|
26
26
|
(a) => {
|
|
27
|
-
|
|
27
|
+
Ie(a, e.onError);
|
|
28
28
|
}
|
|
29
29
|
), t.interceptors.response.use(
|
|
30
|
-
(a) =>
|
|
31
|
-
(a) =>
|
|
30
|
+
(a) => Le(a),
|
|
31
|
+
(a) => Be(a, e.onError)
|
|
32
32
|
), t;
|
|
33
33
|
}
|
|
34
34
|
function Te(e) {
|
|
35
35
|
const t = T.get("accessToken") ?? "";
|
|
36
36
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ie(e, t) {
|
|
39
39
|
console.error(e), t("request timeout");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Le(e) {
|
|
42
42
|
return e.data;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Be(e, t) {
|
|
45
45
|
const o = e.response;
|
|
46
46
|
return o && (o.status === 401 && Me(), o.data?.message ? t(o.data?.message) : t({
|
|
47
47
|
code: o.status,
|
|
@@ -56,15 +56,15 @@ const Dt = (function() {
|
|
|
56
56
|
router: null,
|
|
57
57
|
i18n: null
|
|
58
58
|
}, console.log("globalObjects created")), window.globalObjects;
|
|
59
|
-
})(),
|
|
60
|
-
return window.eventBus || (window.eventBus =
|
|
59
|
+
})(), c = (function() {
|
|
60
|
+
return window.eventBus || (window.eventBus = qe(), console.log("eventBus created")), window.eventBus;
|
|
61
61
|
})();
|
|
62
|
-
async function
|
|
62
|
+
async function Ot(e) {
|
|
63
63
|
return new Promise((t) => {
|
|
64
64
|
setTimeout(t, e);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
async function
|
|
67
|
+
async function z(e, t, a) {
|
|
68
68
|
const o = Date.now();
|
|
69
69
|
return new Promise((l) => {
|
|
70
70
|
const r = async () => {
|
|
@@ -73,7 +73,7 @@ async function X(e, t, a) {
|
|
|
73
73
|
r();
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function $e(e, t) {
|
|
77
77
|
const a = document.getElementById("single-spa-application:" + e);
|
|
78
78
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
79
79
|
a.classList.add("app-reset");
|
|
@@ -84,56 +84,56 @@ function te() {
|
|
|
84
84
|
const e = Date.now();
|
|
85
85
|
return e - ne > 500 ? (ne = e, !0) : !1;
|
|
86
86
|
}
|
|
87
|
-
let
|
|
87
|
+
let Ae = 0;
|
|
88
88
|
function ae() {
|
|
89
|
-
return ++
|
|
89
|
+
return ++Ae;
|
|
90
90
|
}
|
|
91
|
-
async function
|
|
91
|
+
async function jt(e) {
|
|
92
92
|
if (!te())
|
|
93
93
|
return;
|
|
94
94
|
let t = !1, a;
|
|
95
95
|
const o = (r) => {
|
|
96
96
|
a = r, t = !0;
|
|
97
97
|
}, l = ae();
|
|
98
|
-
return
|
|
98
|
+
return c.on("confirmDlgResult" + l, o), c.emit("confirmDlg", { ...e, seq: l }), await z(() => t), c.off("confirmDlgResult" + l, o), a;
|
|
99
99
|
}
|
|
100
|
-
async function
|
|
100
|
+
async function Vt(e) {
|
|
101
101
|
if (!te())
|
|
102
102
|
return;
|
|
103
103
|
let t = !1, a;
|
|
104
104
|
const o = (r) => {
|
|
105
105
|
a = r, t = !0;
|
|
106
106
|
}, l = ae();
|
|
107
|
-
return
|
|
107
|
+
return c.on("numberDlgResult" + l, o), c.emit("numberDlg", { ...e, seq: l }), await z(() => t), c.off("numberDlgResult" + l, o), a;
|
|
108
108
|
}
|
|
109
|
-
async function
|
|
109
|
+
async function Ct(e) {
|
|
110
110
|
if (!te())
|
|
111
111
|
return;
|
|
112
112
|
let t = !1, a;
|
|
113
113
|
const o = (r) => {
|
|
114
114
|
a = r, t = !0;
|
|
115
115
|
}, l = ae();
|
|
116
|
-
return
|
|
116
|
+
return c.on("promptDlgResult" + l, o), c.emit("promptDlg", { ...e, seq: l }), await z(() => t), c.off("promptDlgResult" + l, o), a;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
|
|
118
|
+
function qt(e) {
|
|
119
|
+
c.emit("waitDlg", { text: e });
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
121
|
+
function St() {
|
|
122
|
+
c.emit("closeWaitDlg");
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function Rt(e, t) {
|
|
125
|
+
c.emit("message", { type: "error", text: e, timeout: t });
|
|
126
126
|
}
|
|
127
127
|
function Tt(e, t) {
|
|
128
|
-
|
|
128
|
+
c.emit("message", { type: "info", text: e, timeout: t });
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
130
|
+
function It(e, t) {
|
|
131
|
+
c.emit("message", { type: "success", text: e, timeout: t });
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function Lt(e, t) {
|
|
134
|
+
c.emit("message", { type: "warning", text: e, timeout: t });
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var Ee = /* @__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))(Ee || {});
|
|
137
137
|
function re(e, t) {
|
|
138
138
|
if (!e)
|
|
139
139
|
return !1;
|
|
@@ -147,46 +147,46 @@ function re(e, t) {
|
|
|
147
147
|
return !1;
|
|
148
148
|
}), Object.keys(a).length <= 0);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ue(e, t, a) {
|
|
151
151
|
const o = e[t];
|
|
152
152
|
return o ? a ? !(!re(o.includes, a) || re(o.excludes, a)) : !0 : !1;
|
|
153
153
|
}
|
|
154
154
|
const _e = "essentialDark", de = "essentialLocale", ie = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
|
|
155
155
|
function Ke(e) {
|
|
156
|
-
|
|
156
|
+
E(_e, e);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
158
|
+
function Bt() {
|
|
159
|
+
return U(_e);
|
|
160
160
|
}
|
|
161
161
|
function Ne(e) {
|
|
162
|
-
|
|
162
|
+
E(de, e);
|
|
163
163
|
}
|
|
164
164
|
function Mt() {
|
|
165
|
-
return
|
|
165
|
+
return U(de);
|
|
166
166
|
}
|
|
167
167
|
function We(e) {
|
|
168
|
-
|
|
168
|
+
E(ie, e);
|
|
169
169
|
}
|
|
170
170
|
function Xe() {
|
|
171
|
-
return
|
|
171
|
+
return U(ie);
|
|
172
172
|
}
|
|
173
173
|
function ze(e) {
|
|
174
|
-
|
|
174
|
+
E(fe, e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
176
|
+
function $t() {
|
|
177
|
+
return U(fe);
|
|
178
178
|
}
|
|
179
179
|
function He(e) {
|
|
180
|
-
|
|
180
|
+
E(ge, e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
182
|
+
function At() {
|
|
183
|
+
return U(ge);
|
|
184
184
|
}
|
|
185
185
|
function Fe(e) {
|
|
186
|
-
|
|
186
|
+
E(ve, e);
|
|
187
187
|
}
|
|
188
188
|
function Ge() {
|
|
189
|
-
return
|
|
189
|
+
return U(ve);
|
|
190
190
|
}
|
|
191
191
|
const Je = [
|
|
192
192
|
{
|
|
@@ -299,29 +299,29 @@ const Je = [
|
|
|
299
299
|
mainActive: 2
|
|
300
300
|
}
|
|
301
301
|
];
|
|
302
|
-
function
|
|
302
|
+
function F(e) {
|
|
303
303
|
let t, a = 0;
|
|
304
304
|
const o = e.split("/").filter((l) => l.trim() !== "");
|
|
305
305
|
return Je.forEach((l) => {
|
|
306
306
|
const r = l.path.split("/").filter((n) => n.trim() !== "");
|
|
307
|
-
let
|
|
307
|
+
let u = 0;
|
|
308
308
|
for (let n = 0; n < o.length && !(n >= r.length || o[n] !== r[n]); n++)
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
u++;
|
|
310
|
+
u > 0 && u > a && (t = l, a = u);
|
|
311
311
|
}), t;
|
|
312
312
|
}
|
|
313
|
-
const Z =
|
|
314
|
-
function
|
|
313
|
+
const Z = _("");
|
|
314
|
+
function R(e, t, a) {
|
|
315
315
|
t === "/" && (t = a);
|
|
316
|
-
const o =
|
|
316
|
+
const o = F(e), l = F(t);
|
|
317
317
|
if (!o) {
|
|
318
318
|
console.assert(!1);
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
321
|
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !l)
|
|
322
322
|
return;
|
|
323
|
-
const r = o.app === l.app,
|
|
324
|
-
r ?
|
|
323
|
+
const r = o.app === l.app, u = o.path === l.path, n = o.level >= l.level;
|
|
324
|
+
r ? u ? Z.value = "" : Z.value = n ? "inner-left" : "inner-right" : (Z.value = "", $e(o.app, n));
|
|
325
325
|
}
|
|
326
326
|
function Qe() {
|
|
327
327
|
return !!T.get("accessToken");
|
|
@@ -329,50 +329,50 @@ function Qe() {
|
|
|
329
329
|
function Ye() {
|
|
330
330
|
return !!T.get("activeOrg");
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
const l = Qe(), r = Ye(),
|
|
334
|
-
if (!
|
|
332
|
+
function Et(e, t, a, o) {
|
|
333
|
+
const l = Qe(), r = Ye(), u = F(e.path);
|
|
334
|
+
if (!u) {
|
|
335
335
|
console.assert(!1), a();
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
if (
|
|
338
|
+
if (u.requiredState === "auth")
|
|
339
339
|
if (l)
|
|
340
340
|
if (r) {
|
|
341
341
|
const n = "/main";
|
|
342
|
-
|
|
342
|
+
R(n, t.path, o), a({ path: n });
|
|
343
343
|
} else
|
|
344
|
-
|
|
344
|
+
R(e.path, t.path, o), a();
|
|
345
345
|
else {
|
|
346
346
|
const n = "/passport/login";
|
|
347
|
-
|
|
347
|
+
R(n, t.path, o), a({ path: n });
|
|
348
348
|
}
|
|
349
|
-
else if (
|
|
349
|
+
else if (u.requiredState === "org")
|
|
350
350
|
if (l)
|
|
351
351
|
if (r)
|
|
352
|
-
|
|
352
|
+
R(e.path, t.path, o), a();
|
|
353
353
|
else {
|
|
354
354
|
const n = "/org/joinOrCreate";
|
|
355
|
-
|
|
355
|
+
R(n, t.path, o), a({ path: n });
|
|
356
356
|
}
|
|
357
357
|
else {
|
|
358
358
|
const n = "/passport/login";
|
|
359
|
-
|
|
359
|
+
R(n, t.path, o), a({ path: n });
|
|
360
360
|
}
|
|
361
361
|
else if (l)
|
|
362
362
|
if (r) {
|
|
363
363
|
const n = "/main";
|
|
364
|
-
|
|
364
|
+
R(n, t.path, o), a({ path: n });
|
|
365
365
|
} else {
|
|
366
366
|
const n = "/org/joinOrCreate";
|
|
367
|
-
|
|
367
|
+
R(n, t.path, o), a({ path: n });
|
|
368
368
|
}
|
|
369
369
|
else
|
|
370
|
-
|
|
370
|
+
R(e.path, t.path, o), a();
|
|
371
371
|
}
|
|
372
372
|
function Ze(e) {
|
|
373
373
|
return e.value.length <= 0;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Ut(e) {
|
|
376
376
|
if (e.value.length > 0)
|
|
377
377
|
return e.value[e.value.length - 1];
|
|
378
378
|
}
|
|
@@ -394,21 +394,21 @@ function Kt(e) {
|
|
|
394
394
|
e.value = [];
|
|
395
395
|
}
|
|
396
396
|
function Nt(e, t, a, o, l, r) {
|
|
397
|
-
const
|
|
397
|
+
const u = Ve(), n = pe(), p = Se(), s = _(!1);
|
|
398
398
|
le(() => {
|
|
399
399
|
let f = !1;
|
|
400
|
-
typeof e.value == "boolean" ? f = e.value : f =
|
|
401
|
-
}), Ke(
|
|
400
|
+
typeof e.value == "boolean" ? f = e.value : f = p.value, s.value = f;
|
|
401
|
+
}), Ke(s), Ne(t), We(a), ze(o), He(l), Fe(r);
|
|
402
402
|
const x = se();
|
|
403
403
|
le(() => {
|
|
404
|
-
x.change(
|
|
404
|
+
x.change(s.value ? "dark" : "light");
|
|
405
405
|
});
|
|
406
406
|
const D = () => {
|
|
407
407
|
if (!Ze(r)) {
|
|
408
408
|
me(r, "waitDlg") || tt(r);
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
|
-
const f =
|
|
411
|
+
const f = F(u.path);
|
|
412
412
|
if (!f) {
|
|
413
413
|
console.assert(!1);
|
|
414
414
|
return;
|
|
@@ -428,9 +428,9 @@ function Nt(e, t, a, o, l, r) {
|
|
|
428
428
|
D();
|
|
429
429
|
};
|
|
430
430
|
N(() => {
|
|
431
|
-
window.addEventListener("keydown", y),
|
|
431
|
+
window.addEventListener("keydown", y), c.on("backbutton", h);
|
|
432
432
|
}), K(() => {
|
|
433
|
-
window.removeEventListener("keydown", y),
|
|
433
|
+
window.removeEventListener("keydown", y), c.off("backbutton", h);
|
|
434
434
|
});
|
|
435
435
|
const i = (f) => {
|
|
436
436
|
e.value = f;
|
|
@@ -439,19 +439,33 @@ function Nt(e, t, a, o, l, r) {
|
|
|
439
439
|
}, d = (f) => {
|
|
440
440
|
const m = f;
|
|
441
441
|
a.value = m[0], o.value = m[1];
|
|
442
|
-
},
|
|
442
|
+
}, C = (f) => {
|
|
443
443
|
l.value = f;
|
|
444
444
|
};
|
|
445
445
|
we(() => {
|
|
446
|
-
|
|
446
|
+
c.on("updateDark", i), c.on("updateLocale", w), c.on("updatePermission", d), c.on("updateLastAppPath", C), c.emit("syncGlobalState");
|
|
447
447
|
}), K(() => {
|
|
448
|
-
|
|
448
|
+
c.off("updateDark", i), c.off("updateLocale", w), c.off("updatePermission", d), c.off("updateLastAppPath", C);
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function Wt() {
|
|
452
|
+
const { locale: e, t } = X();
|
|
453
|
+
return {
|
|
454
|
+
nameOfVerbObject: (r, u) => e.value === "en" ? `${t(r)} ${t(u)}` : `${t(r)}${t(u)}`,
|
|
455
|
+
nameOfObjectsInstance: (r, u) => {
|
|
456
|
+
const n = [];
|
|
457
|
+
for (const s of r)
|
|
458
|
+
n.push(t(s));
|
|
459
|
+
let p = n.join(" / ");
|
|
460
|
+
return u && (p += ` <${u}>`), p;
|
|
461
|
+
},
|
|
462
|
+
nameOfDeleteObjectText: (r) => t("dlg.common.deleteObjectText", { name: t(r) })
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
function Xt() {
|
|
452
466
|
const e = Xe();
|
|
453
467
|
function t(a, o) {
|
|
454
|
-
return
|
|
468
|
+
return Ue(
|
|
455
469
|
e.value,
|
|
456
470
|
a,
|
|
457
471
|
o ?? ""
|
|
@@ -459,8 +473,8 @@ function Wt() {
|
|
|
459
473
|
}
|
|
460
474
|
return { verifyPermission: t };
|
|
461
475
|
}
|
|
462
|
-
function
|
|
463
|
-
const e =
|
|
476
|
+
function zt() {
|
|
477
|
+
const e = j(() => !!window.cordova), t = je(), a = j(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px"), o = j(() => t.xs.value);
|
|
464
478
|
function l() {
|
|
465
479
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
466
480
|
navigator.userAgent
|
|
@@ -469,7 +483,7 @@ function Xt() {
|
|
|
469
483
|
return { sysBarAvail: e, compactWidth: a, isCurvedScreen: o, isMobile: l };
|
|
470
484
|
}
|
|
471
485
|
function J(e, t) {
|
|
472
|
-
const a = Ge(), o =
|
|
486
|
+
const a = Ge(), o = j({
|
|
473
487
|
get() {
|
|
474
488
|
return me(a, e);
|
|
475
489
|
},
|
|
@@ -480,35 +494,35 @@ function J(e, t) {
|
|
|
480
494
|
t?.(r), o.value = !0;
|
|
481
495
|
};
|
|
482
496
|
return N(() => {
|
|
483
|
-
|
|
497
|
+
c.on(e, l);
|
|
484
498
|
}), K(() => {
|
|
485
|
-
|
|
499
|
+
c.off(e, l);
|
|
486
500
|
}), { open: o };
|
|
487
501
|
}
|
|
488
|
-
const at = /* @__PURE__ */
|
|
502
|
+
const at = /* @__PURE__ */ $({
|
|
489
503
|
__name: "index",
|
|
490
504
|
setup(e) {
|
|
491
|
-
const { t } =
|
|
492
|
-
let
|
|
505
|
+
const { t } = X(), a = _(""), o = _(""), l = _(""), r = _(""), u = _(""), n = _("");
|
|
506
|
+
let p = 0, s = !1;
|
|
493
507
|
const x = (h) => {
|
|
494
508
|
const i = h;
|
|
495
|
-
a.value = i.title, o.value = i.text, l.value = i.cancel?.color ?? "primary", r.value = i.cancel?.text ?? t("dlg.common.cancel"),
|
|
509
|
+
a.value = i.title, o.value = i.text, l.value = i.cancel?.color ?? "primary", r.value = i.cancel?.text ?? t("dlg.common.cancel"), u.value = i.confirm?.color ?? "primary", n.value = i.confirm?.text ?? t("dlg.common.confirm"), p = i.seq, s = !1, D.value = !0;
|
|
496
510
|
}, { open: D } = J("confirmDlg", x), y = () => {
|
|
497
|
-
D.value = !1,
|
|
511
|
+
D.value = !1, s || (c.emit("confirmDlgResult" + p, !0), s = !0);
|
|
498
512
|
};
|
|
499
|
-
return
|
|
500
|
-
!h && !
|
|
513
|
+
return G(D, (h) => {
|
|
514
|
+
!h && !s && (c.emit("confirmDlgResult" + p, !1), s = !0);
|
|
501
515
|
}), (h, i) => {
|
|
502
|
-
const w = v("v-card-text"), d = v("v-btn"),
|
|
503
|
-
return
|
|
504
|
-
modelValue:
|
|
505
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
516
|
+
const w = v("v-card-text"), d = v("v-btn"), C = v("v-card-actions"), f = v("v-card"), m = v("v-dialog");
|
|
517
|
+
return V(), I(m, {
|
|
518
|
+
modelValue: A(D),
|
|
519
|
+
"onUpdate:modelValue": i[1] || (i[1] = (O) => W(D) ? D.value = O : null),
|
|
506
520
|
attach: "",
|
|
507
521
|
"max-width": "600px",
|
|
508
522
|
transition: "dialog-top-transition",
|
|
509
523
|
onKeydown: [
|
|
510
|
-
|
|
511
|
-
i[2] || (i[2] =
|
|
524
|
+
H(M(y, ["stop", "prevent"]), ["enter"]),
|
|
525
|
+
i[2] || (i[2] = H(M((O) => D.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
512
526
|
]
|
|
513
527
|
}, {
|
|
514
528
|
default: g(() => [
|
|
@@ -516,29 +530,29 @@ const at = /* @__PURE__ */ A({
|
|
|
516
530
|
default: g(() => [
|
|
517
531
|
b(w, null, {
|
|
518
532
|
default: g(() => [
|
|
519
|
-
|
|
533
|
+
L(S(o.value), 1)
|
|
520
534
|
]),
|
|
521
535
|
_: 1
|
|
522
536
|
}),
|
|
523
|
-
b(
|
|
537
|
+
b(C, { class: "d-flex justify-end" }, {
|
|
524
538
|
default: g(() => [
|
|
525
539
|
b(d, {
|
|
526
540
|
color: l.value,
|
|
527
541
|
variant: "text",
|
|
528
|
-
onClick: i[0] || (i[0] = (
|
|
542
|
+
onClick: i[0] || (i[0] = (O) => D.value = !1)
|
|
529
543
|
}, {
|
|
530
544
|
default: g(() => [
|
|
531
|
-
|
|
545
|
+
L(S(r.value), 1)
|
|
532
546
|
]),
|
|
533
547
|
_: 1
|
|
534
548
|
}, 8, ["color"]),
|
|
535
549
|
b(d, {
|
|
536
|
-
color:
|
|
550
|
+
color: u.value,
|
|
537
551
|
variant: "text",
|
|
538
552
|
onClick: y
|
|
539
553
|
}, {
|
|
540
554
|
default: g(() => [
|
|
541
|
-
|
|
555
|
+
L(S(n.value), 1)
|
|
542
556
|
]),
|
|
543
557
|
_: 1
|
|
544
558
|
}, 8, ["color"])
|
|
@@ -553,21 +567,21 @@ const at = /* @__PURE__ */ A({
|
|
|
553
567
|
}, 8, ["modelValue", "onKeydown"]);
|
|
554
568
|
};
|
|
555
569
|
}
|
|
556
|
-
}), ot = /* @__PURE__ */
|
|
570
|
+
}), ot = /* @__PURE__ */ $({
|
|
557
571
|
__name: "index",
|
|
558
572
|
props: {
|
|
559
573
|
open: { type: Boolean, default: !0 },
|
|
560
574
|
zIndex: { default: 1 }
|
|
561
575
|
},
|
|
562
576
|
setup(e) {
|
|
563
|
-
const { backgroundColor2: t } =
|
|
577
|
+
const { backgroundColor2: t } = Re(), a = j(() => ({
|
|
564
578
|
background: t.value,
|
|
565
579
|
zIndex: e.zIndex
|
|
566
580
|
}));
|
|
567
581
|
let o = 0;
|
|
568
|
-
return (l, r) => (
|
|
582
|
+
return (l, r) => (V(), I(ke, { name: "fade" }, {
|
|
569
583
|
default: g(() => [
|
|
570
|
-
e.open ? (
|
|
584
|
+
e.open ? (V(), P("div", {
|
|
571
585
|
key: W(o) ? ++o.value : ++o,
|
|
572
586
|
class: "x-cont",
|
|
573
587
|
style: ue(a.value)
|
|
@@ -596,7 +610,7 @@ const at = /* @__PURE__ */ A({
|
|
|
596
610
|
for (const [o, l] of t)
|
|
597
611
|
a[o] = l;
|
|
598
612
|
return a;
|
|
599
|
-
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-83c3cd1d"]]), nt = /* @__PURE__ */
|
|
613
|
+
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-83c3cd1d"]]), nt = /* @__PURE__ */ $({
|
|
600
614
|
__name: "item",
|
|
601
615
|
props: {
|
|
602
616
|
id: {},
|
|
@@ -606,10 +620,10 @@ const at = /* @__PURE__ */ A({
|
|
|
606
620
|
},
|
|
607
621
|
emits: ["timeout"],
|
|
608
622
|
setup(e, { emit: t }) {
|
|
609
|
-
const a =
|
|
623
|
+
const a = j(() => ({
|
|
610
624
|
width: "calc(100% - 64px)",
|
|
611
625
|
overflowWrap: "break-word"
|
|
612
|
-
})), o =
|
|
626
|
+
})), o = j(() => {
|
|
613
627
|
switch (e.type) {
|
|
614
628
|
case "success":
|
|
615
629
|
return "mdi-check-circle";
|
|
@@ -622,30 +636,30 @@ const at = /* @__PURE__ */ A({
|
|
|
622
636
|
default:
|
|
623
637
|
return "";
|
|
624
638
|
}
|
|
625
|
-
}), l =
|
|
639
|
+
}), l = _(!0), r = t;
|
|
626
640
|
return N(() => {
|
|
627
641
|
setTimeout(() => {
|
|
628
642
|
r("timeout", e.id);
|
|
629
643
|
}, e.timeout);
|
|
630
|
-
}),
|
|
631
|
-
|
|
632
|
-
}), (
|
|
633
|
-
const
|
|
634
|
-
return
|
|
644
|
+
}), G(l, (u) => {
|
|
645
|
+
u || r("timeout", e.id);
|
|
646
|
+
}), (u, n) => {
|
|
647
|
+
const p = v("v-icon"), s = v("v-sheet");
|
|
648
|
+
return V(), I(s, {
|
|
635
649
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
636
650
|
color: e.type,
|
|
637
651
|
elevation: 1
|
|
638
652
|
}, {
|
|
639
653
|
default: g(() => [
|
|
640
|
-
o.value ? (
|
|
654
|
+
o.value ? (V(), I(p, {
|
|
641
655
|
key: 0,
|
|
642
656
|
class: "mx-1",
|
|
643
657
|
icon: o.value
|
|
644
658
|
}, null, 8, ["icon"])) : ee("", !0),
|
|
645
659
|
k("div", {
|
|
646
660
|
style: ue(a.value)
|
|
647
|
-
},
|
|
648
|
-
b(
|
|
661
|
+
}, S(e.text), 5),
|
|
662
|
+
b(p, {
|
|
649
663
|
class: "mx-1",
|
|
650
664
|
icon: "mdi-close",
|
|
651
665
|
onClick: n[0] || (n[0] = (x) => r("timeout", e.id))
|
|
@@ -655,83 +669,83 @@ const at = /* @__PURE__ */ A({
|
|
|
655
669
|
}, 8, ["color"]);
|
|
656
670
|
};
|
|
657
671
|
}
|
|
658
|
-
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */
|
|
672
|
+
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */ $({
|
|
659
673
|
__name: "index",
|
|
660
674
|
setup(e) {
|
|
661
|
-
const t =
|
|
675
|
+
const t = _([]);
|
|
662
676
|
N(() => {
|
|
663
|
-
|
|
677
|
+
c.on("message", a);
|
|
664
678
|
}), K(() => {
|
|
665
|
-
|
|
679
|
+
c.off("message", a);
|
|
666
680
|
});
|
|
667
681
|
const a = (n) => {
|
|
668
|
-
const { type:
|
|
669
|
-
r(
|
|
682
|
+
const { type: p, text: s, timeout: x } = n;
|
|
683
|
+
r(p, s, x);
|
|
670
684
|
}, o = (n) => {
|
|
671
|
-
|
|
685
|
+
u(n);
|
|
672
686
|
};
|
|
673
687
|
let l = 0;
|
|
674
|
-
const r = (n,
|
|
688
|
+
const r = (n, p, s) => {
|
|
675
689
|
const x = l++;
|
|
676
|
-
t.value.push({ id: x, type: n, text:
|
|
677
|
-
},
|
|
678
|
-
const
|
|
679
|
-
|
|
690
|
+
t.value.push({ id: x, type: n, text: p, timeout: s });
|
|
691
|
+
}, u = (n) => {
|
|
692
|
+
const p = t.value.findIndex((s) => s.id === n);
|
|
693
|
+
p >= 0 && t.value.splice(p, 1);
|
|
680
694
|
};
|
|
681
|
-
return (n,
|
|
695
|
+
return (n, p) => (V(), P("div", {
|
|
682
696
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
683
|
-
onClick:
|
|
697
|
+
onClick: p[0] || (p[0] = M(() => {
|
|
684
698
|
}, ["stop"]))
|
|
685
699
|
}, [
|
|
686
|
-
(
|
|
687
|
-
id:
|
|
688
|
-
key:
|
|
689
|
-
text:
|
|
690
|
-
timeout:
|
|
691
|
-
type:
|
|
700
|
+
(V(!0), P(De, null, Oe(t.value, (s) => (V(), I(rt, {
|
|
701
|
+
id: s.id,
|
|
702
|
+
key: s.id,
|
|
703
|
+
text: s.text,
|
|
704
|
+
timeout: s.timeout,
|
|
705
|
+
type: s.type,
|
|
692
706
|
onTimeout: o
|
|
693
707
|
}, null, 8, ["id", "text", "timeout", "type"]))), 128))
|
|
694
708
|
]));
|
|
695
709
|
}
|
|
696
|
-
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-b482df18"]]), st = /* @__PURE__ */
|
|
710
|
+
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-b482df18"]]), st = /* @__PURE__ */ $({
|
|
697
711
|
__name: "index",
|
|
698
712
|
setup(e) {
|
|
699
|
-
const { t } =
|
|
700
|
-
let
|
|
713
|
+
const { t } = X(), a = _(""), o = _(0), l = _(), r = _(-1 / 0), u = _(1 / 0), n = _(1);
|
|
714
|
+
let p = 0, s = !1;
|
|
701
715
|
const x = ce("target"), D = async (w) => {
|
|
702
|
-
a.value = w.title, o.value = w.value, l.value = w.precision, r.value = w.min,
|
|
703
|
-
}, { open: y } = J("numberDlg", D), h =
|
|
704
|
-
y.value = !1,
|
|
716
|
+
a.value = w.title, o.value = w.value, l.value = w.precision, r.value = w.min, u.value = w.max, n.value = w.step, p = w.seq, s = !1, y.value = !0, await z(() => !!x.value), x.value.focus();
|
|
717
|
+
}, { open: y } = J("numberDlg", D), h = _(!1), i = () => {
|
|
718
|
+
y.value = !1, s || (c.emit(`numberDlgResult${p}`, o.value), s = !0);
|
|
705
719
|
};
|
|
706
|
-
return
|
|
707
|
-
!w && !
|
|
720
|
+
return G(y, (w) => {
|
|
721
|
+
!w && !s && (c.emit(`numberDlgResult${p}`, void 0), s = !0);
|
|
708
722
|
}), (w, d) => {
|
|
709
|
-
const
|
|
710
|
-
return
|
|
711
|
-
modelValue:
|
|
712
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
723
|
+
const C = v("v-number-input"), f = v("v-btn"), m = v("v-card-actions"), O = v("v-form"), Q = v("v-card"), Y = v("v-dialog");
|
|
724
|
+
return V(), I(Y, {
|
|
725
|
+
modelValue: A(y),
|
|
726
|
+
"onUpdate:modelValue": d[3] || (d[3] = (q) => W(y) ? y.value = q : null),
|
|
713
727
|
attach: "",
|
|
714
728
|
"max-width": "600px",
|
|
715
729
|
transition: "dialog-top-transition",
|
|
716
|
-
onKeydown: d[4] || (d[4] =
|
|
730
|
+
onKeydown: d[4] || (d[4] = H(M((q) => y.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
717
731
|
}, {
|
|
718
732
|
default: g(() => [
|
|
719
733
|
b(Q, { title: a.value }, {
|
|
720
734
|
default: g(() => [
|
|
721
|
-
b(
|
|
735
|
+
b(O, {
|
|
722
736
|
modelValue: h.value,
|
|
723
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
737
|
+
"onUpdate:modelValue": d[2] || (d[2] = (q) => h.value = q),
|
|
724
738
|
class: "mx-3",
|
|
725
739
|
onSubmit: M(i, ["prevent"])
|
|
726
740
|
}, {
|
|
727
741
|
default: g(() => [
|
|
728
|
-
b(
|
|
742
|
+
b(C, {
|
|
729
743
|
ref_key: "target",
|
|
730
744
|
ref: x,
|
|
731
745
|
modelValue: o.value,
|
|
732
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
746
|
+
"onUpdate:modelValue": d[0] || (d[0] = (q) => o.value = q),
|
|
733
747
|
"control-variant": "stacked",
|
|
734
|
-
max:
|
|
748
|
+
max: u.value,
|
|
735
749
|
min: r.value,
|
|
736
750
|
precision: l.value,
|
|
737
751
|
step: n.value
|
|
@@ -741,10 +755,10 @@ const at = /* @__PURE__ */ A({
|
|
|
741
755
|
b(f, {
|
|
742
756
|
color: "primary",
|
|
743
757
|
variant: "text",
|
|
744
|
-
onClick: d[1] || (d[1] = (
|
|
758
|
+
onClick: d[1] || (d[1] = (q) => y.value = !1)
|
|
745
759
|
}, {
|
|
746
760
|
default: g(() => [
|
|
747
|
-
|
|
761
|
+
L(S(A(t)("dlg.common.cancel")), 1)
|
|
748
762
|
]),
|
|
749
763
|
_: 1
|
|
750
764
|
}),
|
|
@@ -755,7 +769,7 @@ const at = /* @__PURE__ */ A({
|
|
|
755
769
|
variant: "text"
|
|
756
770
|
}, {
|
|
757
771
|
default: g(() => [
|
|
758
|
-
|
|
772
|
+
L(S(A(t)("dlg.common.confirm")), 1)
|
|
759
773
|
]),
|
|
760
774
|
_: 1
|
|
761
775
|
}, 8, ["disabled"])
|
|
@@ -773,40 +787,40 @@ const at = /* @__PURE__ */ A({
|
|
|
773
787
|
}, 8, ["modelValue"]);
|
|
774
788
|
};
|
|
775
789
|
}
|
|
776
|
-
}), pt = /* @__PURE__ */
|
|
790
|
+
}), pt = /* @__PURE__ */ $({
|
|
777
791
|
__name: "index",
|
|
778
792
|
setup(e) {
|
|
779
|
-
const { t } =
|
|
793
|
+
const { t } = X(), a = _(""), o = _(""), l = _(""), r = _(""), u = _(), n = _(""), p = _(""), s = _(""), x = _(""), D = _("");
|
|
780
794
|
let y = 0, h = !1;
|
|
781
795
|
const i = ce("target"), w = async (m) => {
|
|
782
|
-
a.value = m.title, o.value = m.text, l.value = m.label, r.value = m.placeholder,
|
|
783
|
-
}, { open: d } = J("promptDlg", w),
|
|
784
|
-
d.value = !1, h || (
|
|
796
|
+
a.value = m.title, o.value = m.text, l.value = m.label, r.value = m.placeholder, u.value = m.rules, n.value = m.value, p.value = m.cancel?.color ?? "primary", s.value = m.cancel?.text ?? t("dlg.common.cancel"), x.value = m.confirm?.color ?? "primary", D.value = m.confirm?.text ?? t("dlg.common.confirm"), y = m.seq, h = !1, d.value = !0, await z(() => !!i.value), i.value.focus();
|
|
797
|
+
}, { open: d } = J("promptDlg", w), C = _(!1), f = () => {
|
|
798
|
+
d.value = !1, h || (c.emit("promptDlgResult" + y, n.value ?? ""), h = !0);
|
|
785
799
|
};
|
|
786
|
-
return
|
|
787
|
-
!m && !h && (
|
|
788
|
-
}), (m,
|
|
789
|
-
const Q = v("v-card-text"), Y = v("v-text-field"),
|
|
790
|
-
return
|
|
791
|
-
modelValue:
|
|
792
|
-
"onUpdate:modelValue":
|
|
800
|
+
return G(d, (m) => {
|
|
801
|
+
!m && !h && (c.emit("promptDlgResult" + y, void 0), h = !0);
|
|
802
|
+
}), (m, O) => {
|
|
803
|
+
const Q = v("v-card-text"), Y = v("v-text-field"), q = v("v-btn"), be = v("v-card-actions"), ye = v("v-form"), xe = v("v-card"), he = v("v-dialog");
|
|
804
|
+
return V(), I(he, {
|
|
805
|
+
modelValue: A(d),
|
|
806
|
+
"onUpdate:modelValue": O[3] || (O[3] = (B) => W(d) ? d.value = B : null),
|
|
793
807
|
attach: "",
|
|
794
808
|
"max-width": "600px",
|
|
795
809
|
transition: "dialog-top-transition",
|
|
796
|
-
onKeydown:
|
|
810
|
+
onKeydown: O[4] || (O[4] = H(M((B) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
797
811
|
}, {
|
|
798
812
|
default: g(() => [
|
|
799
813
|
b(xe, { title: a.value }, {
|
|
800
814
|
default: g(() => [
|
|
801
|
-
o.value ? (
|
|
815
|
+
o.value ? (V(), I(Q, { key: 0 }, {
|
|
802
816
|
default: g(() => [
|
|
803
|
-
|
|
817
|
+
L(S(o.value), 1)
|
|
804
818
|
]),
|
|
805
819
|
_: 1
|
|
806
820
|
})) : ee("", !0),
|
|
807
821
|
b(ye, {
|
|
808
|
-
modelValue:
|
|
809
|
-
"onUpdate:modelValue":
|
|
822
|
+
modelValue: C.value,
|
|
823
|
+
"onUpdate:modelValue": O[2] || (O[2] = (B) => C.value = B),
|
|
810
824
|
class: "mx-3",
|
|
811
825
|
onSubmit: M(f, ["prevent"])
|
|
812
826
|
}, {
|
|
@@ -815,31 +829,31 @@ const at = /* @__PURE__ */ A({
|
|
|
815
829
|
ref_key: "target",
|
|
816
830
|
ref: i,
|
|
817
831
|
modelValue: n.value,
|
|
818
|
-
"onUpdate:modelValue":
|
|
832
|
+
"onUpdate:modelValue": O[0] || (O[0] = (B) => n.value = B),
|
|
819
833
|
label: l.value,
|
|
820
834
|
placeholder: r.value,
|
|
821
|
-
rules:
|
|
835
|
+
rules: u.value
|
|
822
836
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
823
837
|
b(be, { class: "d-flex justify-end" }, {
|
|
824
838
|
default: g(() => [
|
|
825
|
-
b(
|
|
826
|
-
color:
|
|
839
|
+
b(q, {
|
|
840
|
+
color: p.value,
|
|
827
841
|
variant: "text",
|
|
828
|
-
onClick:
|
|
842
|
+
onClick: O[1] || (O[1] = (B) => d.value = !1)
|
|
829
843
|
}, {
|
|
830
844
|
default: g(() => [
|
|
831
|
-
|
|
845
|
+
L(S(s.value), 1)
|
|
832
846
|
]),
|
|
833
847
|
_: 1
|
|
834
848
|
}, 8, ["color"]),
|
|
835
|
-
b(
|
|
849
|
+
b(q, {
|
|
836
850
|
color: x.value,
|
|
837
|
-
disabled: !
|
|
851
|
+
disabled: !C.value,
|
|
838
852
|
type: "submit",
|
|
839
853
|
variant: "text"
|
|
840
854
|
}, {
|
|
841
855
|
default: g(() => [
|
|
842
|
-
|
|
856
|
+
L(S(D.value), 1)
|
|
843
857
|
]),
|
|
844
858
|
_: 1
|
|
845
859
|
}, 8, ["color", "disabled"])
|
|
@@ -857,23 +871,23 @@ const at = /* @__PURE__ */ A({
|
|
|
857
871
|
}, 8, ["modelValue"]);
|
|
858
872
|
};
|
|
859
873
|
}
|
|
860
|
-
}), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */
|
|
874
|
+
}), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */ $({
|
|
861
875
|
__name: "index",
|
|
862
876
|
setup(e) {
|
|
863
|
-
const { t } =
|
|
864
|
-
const n =
|
|
877
|
+
const { t } = X(), a = _(""), o = (u) => {
|
|
878
|
+
const n = u;
|
|
865
879
|
a.value = n.text ?? t("dlg.common.responding"), r.value = !0;
|
|
866
880
|
}, l = () => {
|
|
867
881
|
r.value = !1;
|
|
868
882
|
}, { open: r } = J("waitDlg", o);
|
|
869
883
|
return N(() => {
|
|
870
|
-
|
|
884
|
+
c.on("closeWaitDlg", l);
|
|
871
885
|
}), K(() => {
|
|
872
|
-
|
|
873
|
-
}), (
|
|
874
|
-
const
|
|
875
|
-
return
|
|
876
|
-
modelValue:
|
|
886
|
+
c.off("closeWaitDlg", l);
|
|
887
|
+
}), (u, n) => {
|
|
888
|
+
const p = v("v-card"), s = v("v-dialog");
|
|
889
|
+
return V(), I(s, {
|
|
890
|
+
modelValue: A(r),
|
|
877
891
|
"onUpdate:modelValue": n[0] || (n[0] = (x) => W(r) ? r.value = x : null),
|
|
878
892
|
attach: "",
|
|
879
893
|
fullscreen: "",
|
|
@@ -882,14 +896,14 @@ const at = /* @__PURE__ */ A({
|
|
|
882
896
|
}, {
|
|
883
897
|
default: g(() => [
|
|
884
898
|
k("div", _t, [
|
|
885
|
-
b(
|
|
899
|
+
b(p, {
|
|
886
900
|
height: "80px",
|
|
887
901
|
loading: "",
|
|
888
902
|
width: "300px"
|
|
889
903
|
}, {
|
|
890
904
|
default: g(() => [
|
|
891
905
|
k("div", dt, [
|
|
892
|
-
k("span", it,
|
|
906
|
+
k("span", it, S(a.value), 1)
|
|
893
907
|
])
|
|
894
908
|
]),
|
|
895
909
|
_: 1
|
|
@@ -908,42 +922,42 @@ const at = /* @__PURE__ */ A({
|
|
|
908
922
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : ""))));
|
|
909
923
|
});
|
|
910
924
|
};
|
|
911
|
-
async function
|
|
912
|
-
return (await vt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.
|
|
925
|
+
async function Ht(e) {
|
|
926
|
+
return (await vt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.b4pdkbnt.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.jx2nrjh0.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
913
927
|
}
|
|
914
|
-
const
|
|
928
|
+
const Ft = { install: gt };
|
|
915
929
|
export {
|
|
916
|
-
|
|
930
|
+
Ee as Permission,
|
|
917
931
|
Pe as addView,
|
|
918
|
-
|
|
932
|
+
$e as appAppear,
|
|
919
933
|
Kt as clearViews,
|
|
920
|
-
|
|
934
|
+
St as closeWaitDlg,
|
|
921
935
|
kt as createAxios,
|
|
922
|
-
|
|
936
|
+
Ft as default,
|
|
923
937
|
et as delView,
|
|
924
|
-
|
|
938
|
+
c as eventBus,
|
|
925
939
|
Dt as globalObjects,
|
|
926
940
|
me as hasView,
|
|
927
|
-
|
|
928
|
-
|
|
941
|
+
Bt as injectDark,
|
|
942
|
+
At as injectLastAppPath,
|
|
929
943
|
Mt as injectLocale,
|
|
930
|
-
|
|
944
|
+
$t as injectPermissionChecksum,
|
|
931
945
|
Xe as injectPermissionObjects,
|
|
932
946
|
Ge as injectViews,
|
|
933
947
|
Ze as isEmpty,
|
|
934
948
|
re as isExist,
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
949
|
+
Ut as lastView,
|
|
950
|
+
Ht as loadLocaleMessageEssential,
|
|
951
|
+
F as matchRouteMeta,
|
|
952
|
+
Rt as messageError,
|
|
939
953
|
Tt as messageInfo,
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
954
|
+
It as messageSuccess,
|
|
955
|
+
Lt as messageWarning,
|
|
956
|
+
Et as onBeforeEach,
|
|
957
|
+
jt as openConfirmDlg,
|
|
958
|
+
Vt as openNumberDlg,
|
|
959
|
+
Ct as openPromptDlg,
|
|
960
|
+
qt as openWaitDlg,
|
|
947
961
|
tt as popView,
|
|
948
962
|
Ke as provideDark,
|
|
949
963
|
He as provideLastAppPath,
|
|
@@ -952,12 +966,13 @@ export {
|
|
|
952
966
|
We as providePermissionObjects,
|
|
953
967
|
Fe as provideViews,
|
|
954
968
|
Z as routeTransName,
|
|
955
|
-
|
|
969
|
+
Re as useColor,
|
|
956
970
|
Nt as useMicroApp,
|
|
957
|
-
Wt as
|
|
958
|
-
Xt as
|
|
971
|
+
Wt as useNameHelper,
|
|
972
|
+
Xt as usePermission,
|
|
973
|
+
zt as useSystem,
|
|
959
974
|
J as useViewStack,
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
975
|
+
Ue as verifyPermission,
|
|
976
|
+
Ot as waitMs,
|
|
977
|
+
z as waitUtil
|
|
963
978
|
};
|