x-essential-lib 0.9.4 → 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/composables/index.d.ts +1 -0
- package/dist/composables/nameHelper.d.ts +5 -0
- package/dist/composables/system.d.ts +1 -1
- package/dist/{i18n-en.is028vmn.js → i18n-en.b4pdkbnt.js} +1 -0
- package/dist/{i18n-zhHans.bda4v4ye.js → i18n-zhHans.jx2nrjh0.js} +1 -0
- package/dist/index.js +255 -243
- package/package.json +1 -1
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,20 +473,17 @@ function Wt() {
|
|
|
459
473
|
}
|
|
460
474
|
return { verifyPermission: t };
|
|
461
475
|
}
|
|
462
|
-
function
|
|
463
|
-
const e =
|
|
464
|
-
function
|
|
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);
|
|
478
|
+
function l() {
|
|
465
479
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
466
480
|
navigator.userAgent
|
|
467
481
|
);
|
|
468
482
|
}
|
|
469
|
-
|
|
470
|
-
return !!t.xs.value;
|
|
471
|
-
}
|
|
472
|
-
return { sysBarAvail: e, compactWidth: a, isMobile: o, isCurvedScreen: l };
|
|
483
|
+
return { sysBarAvail: e, compactWidth: a, isCurvedScreen: o, isMobile: l };
|
|
473
484
|
}
|
|
474
485
|
function J(e, t) {
|
|
475
|
-
const a = Ge(), o =
|
|
486
|
+
const a = Ge(), o = j({
|
|
476
487
|
get() {
|
|
477
488
|
return me(a, e);
|
|
478
489
|
},
|
|
@@ -483,35 +494,35 @@ function J(e, t) {
|
|
|
483
494
|
t?.(r), o.value = !0;
|
|
484
495
|
};
|
|
485
496
|
return N(() => {
|
|
486
|
-
|
|
497
|
+
c.on(e, l);
|
|
487
498
|
}), K(() => {
|
|
488
|
-
|
|
499
|
+
c.off(e, l);
|
|
489
500
|
}), { open: o };
|
|
490
501
|
}
|
|
491
|
-
const at = /* @__PURE__ */
|
|
502
|
+
const at = /* @__PURE__ */ $({
|
|
492
503
|
__name: "index",
|
|
493
504
|
setup(e) {
|
|
494
|
-
const { t } =
|
|
495
|
-
let
|
|
505
|
+
const { t } = X(), a = _(""), o = _(""), l = _(""), r = _(""), u = _(""), n = _("");
|
|
506
|
+
let p = 0, s = !1;
|
|
496
507
|
const x = (h) => {
|
|
497
508
|
const i = h;
|
|
498
|
-
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;
|
|
499
510
|
}, { open: D } = J("confirmDlg", x), y = () => {
|
|
500
|
-
D.value = !1,
|
|
511
|
+
D.value = !1, s || (c.emit("confirmDlgResult" + p, !0), s = !0);
|
|
501
512
|
};
|
|
502
|
-
return
|
|
503
|
-
!h && !
|
|
513
|
+
return G(D, (h) => {
|
|
514
|
+
!h && !s && (c.emit("confirmDlgResult" + p, !1), s = !0);
|
|
504
515
|
}), (h, i) => {
|
|
505
|
-
const w = v("v-card-text"), d = v("v-btn"),
|
|
506
|
-
return
|
|
507
|
-
modelValue:
|
|
508
|
-
"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),
|
|
509
520
|
attach: "",
|
|
510
521
|
"max-width": "600px",
|
|
511
522
|
transition: "dialog-top-transition",
|
|
512
523
|
onKeydown: [
|
|
513
|
-
|
|
514
|
-
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"]))
|
|
515
526
|
]
|
|
516
527
|
}, {
|
|
517
528
|
default: g(() => [
|
|
@@ -519,29 +530,29 @@ const at = /* @__PURE__ */ A({
|
|
|
519
530
|
default: g(() => [
|
|
520
531
|
b(w, null, {
|
|
521
532
|
default: g(() => [
|
|
522
|
-
|
|
533
|
+
L(S(o.value), 1)
|
|
523
534
|
]),
|
|
524
535
|
_: 1
|
|
525
536
|
}),
|
|
526
|
-
b(
|
|
537
|
+
b(C, { class: "d-flex justify-end" }, {
|
|
527
538
|
default: g(() => [
|
|
528
539
|
b(d, {
|
|
529
540
|
color: l.value,
|
|
530
541
|
variant: "text",
|
|
531
|
-
onClick: i[0] || (i[0] = (
|
|
542
|
+
onClick: i[0] || (i[0] = (O) => D.value = !1)
|
|
532
543
|
}, {
|
|
533
544
|
default: g(() => [
|
|
534
|
-
|
|
545
|
+
L(S(r.value), 1)
|
|
535
546
|
]),
|
|
536
547
|
_: 1
|
|
537
548
|
}, 8, ["color"]),
|
|
538
549
|
b(d, {
|
|
539
|
-
color:
|
|
550
|
+
color: u.value,
|
|
540
551
|
variant: "text",
|
|
541
552
|
onClick: y
|
|
542
553
|
}, {
|
|
543
554
|
default: g(() => [
|
|
544
|
-
|
|
555
|
+
L(S(n.value), 1)
|
|
545
556
|
]),
|
|
546
557
|
_: 1
|
|
547
558
|
}, 8, ["color"])
|
|
@@ -556,21 +567,21 @@ const at = /* @__PURE__ */ A({
|
|
|
556
567
|
}, 8, ["modelValue", "onKeydown"]);
|
|
557
568
|
};
|
|
558
569
|
}
|
|
559
|
-
}), ot = /* @__PURE__ */
|
|
570
|
+
}), ot = /* @__PURE__ */ $({
|
|
560
571
|
__name: "index",
|
|
561
572
|
props: {
|
|
562
573
|
open: { type: Boolean, default: !0 },
|
|
563
574
|
zIndex: { default: 1 }
|
|
564
575
|
},
|
|
565
576
|
setup(e) {
|
|
566
|
-
const { backgroundColor2: t } =
|
|
577
|
+
const { backgroundColor2: t } = Re(), a = j(() => ({
|
|
567
578
|
background: t.value,
|
|
568
579
|
zIndex: e.zIndex
|
|
569
580
|
}));
|
|
570
581
|
let o = 0;
|
|
571
|
-
return (l, r) => (
|
|
582
|
+
return (l, r) => (V(), I(ke, { name: "fade" }, {
|
|
572
583
|
default: g(() => [
|
|
573
|
-
e.open ? (
|
|
584
|
+
e.open ? (V(), P("div", {
|
|
574
585
|
key: W(o) ? ++o.value : ++o,
|
|
575
586
|
class: "x-cont",
|
|
576
587
|
style: ue(a.value)
|
|
@@ -599,7 +610,7 @@ const at = /* @__PURE__ */ A({
|
|
|
599
610
|
for (const [o, l] of t)
|
|
600
611
|
a[o] = l;
|
|
601
612
|
return a;
|
|
602
|
-
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-83c3cd1d"]]), nt = /* @__PURE__ */
|
|
613
|
+
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-83c3cd1d"]]), nt = /* @__PURE__ */ $({
|
|
603
614
|
__name: "item",
|
|
604
615
|
props: {
|
|
605
616
|
id: {},
|
|
@@ -609,10 +620,10 @@ const at = /* @__PURE__ */ A({
|
|
|
609
620
|
},
|
|
610
621
|
emits: ["timeout"],
|
|
611
622
|
setup(e, { emit: t }) {
|
|
612
|
-
const a =
|
|
623
|
+
const a = j(() => ({
|
|
613
624
|
width: "calc(100% - 64px)",
|
|
614
625
|
overflowWrap: "break-word"
|
|
615
|
-
})), o =
|
|
626
|
+
})), o = j(() => {
|
|
616
627
|
switch (e.type) {
|
|
617
628
|
case "success":
|
|
618
629
|
return "mdi-check-circle";
|
|
@@ -625,30 +636,30 @@ const at = /* @__PURE__ */ A({
|
|
|
625
636
|
default:
|
|
626
637
|
return "";
|
|
627
638
|
}
|
|
628
|
-
}), l =
|
|
639
|
+
}), l = _(!0), r = t;
|
|
629
640
|
return N(() => {
|
|
630
641
|
setTimeout(() => {
|
|
631
642
|
r("timeout", e.id);
|
|
632
643
|
}, e.timeout);
|
|
633
|
-
}),
|
|
634
|
-
|
|
635
|
-
}), (
|
|
636
|
-
const
|
|
637
|
-
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, {
|
|
638
649
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
639
650
|
color: e.type,
|
|
640
651
|
elevation: 1
|
|
641
652
|
}, {
|
|
642
653
|
default: g(() => [
|
|
643
|
-
o.value ? (
|
|
654
|
+
o.value ? (V(), I(p, {
|
|
644
655
|
key: 0,
|
|
645
656
|
class: "mx-1",
|
|
646
657
|
icon: o.value
|
|
647
658
|
}, null, 8, ["icon"])) : ee("", !0),
|
|
648
659
|
k("div", {
|
|
649
660
|
style: ue(a.value)
|
|
650
|
-
},
|
|
651
|
-
b(
|
|
661
|
+
}, S(e.text), 5),
|
|
662
|
+
b(p, {
|
|
652
663
|
class: "mx-1",
|
|
653
664
|
icon: "mdi-close",
|
|
654
665
|
onClick: n[0] || (n[0] = (x) => r("timeout", e.id))
|
|
@@ -658,83 +669,83 @@ const at = /* @__PURE__ */ A({
|
|
|
658
669
|
}, 8, ["color"]);
|
|
659
670
|
};
|
|
660
671
|
}
|
|
661
|
-
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */
|
|
672
|
+
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */ $({
|
|
662
673
|
__name: "index",
|
|
663
674
|
setup(e) {
|
|
664
|
-
const t =
|
|
675
|
+
const t = _([]);
|
|
665
676
|
N(() => {
|
|
666
|
-
|
|
677
|
+
c.on("message", a);
|
|
667
678
|
}), K(() => {
|
|
668
|
-
|
|
679
|
+
c.off("message", a);
|
|
669
680
|
});
|
|
670
681
|
const a = (n) => {
|
|
671
|
-
const { type:
|
|
672
|
-
r(
|
|
682
|
+
const { type: p, text: s, timeout: x } = n;
|
|
683
|
+
r(p, s, x);
|
|
673
684
|
}, o = (n) => {
|
|
674
|
-
|
|
685
|
+
u(n);
|
|
675
686
|
};
|
|
676
687
|
let l = 0;
|
|
677
|
-
const r = (n,
|
|
688
|
+
const r = (n, p, s) => {
|
|
678
689
|
const x = l++;
|
|
679
|
-
t.value.push({ id: x, type: n, text:
|
|
680
|
-
},
|
|
681
|
-
const
|
|
682
|
-
|
|
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);
|
|
683
694
|
};
|
|
684
|
-
return (n,
|
|
695
|
+
return (n, p) => (V(), P("div", {
|
|
685
696
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
686
|
-
onClick:
|
|
697
|
+
onClick: p[0] || (p[0] = M(() => {
|
|
687
698
|
}, ["stop"]))
|
|
688
699
|
}, [
|
|
689
|
-
(
|
|
690
|
-
id:
|
|
691
|
-
key:
|
|
692
|
-
text:
|
|
693
|
-
timeout:
|
|
694
|
-
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,
|
|
695
706
|
onTimeout: o
|
|
696
707
|
}, null, 8, ["id", "text", "timeout", "type"]))), 128))
|
|
697
708
|
]));
|
|
698
709
|
}
|
|
699
|
-
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-b482df18"]]), st = /* @__PURE__ */
|
|
710
|
+
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-b482df18"]]), st = /* @__PURE__ */ $({
|
|
700
711
|
__name: "index",
|
|
701
712
|
setup(e) {
|
|
702
|
-
const { t } =
|
|
703
|
-
let
|
|
713
|
+
const { t } = X(), a = _(""), o = _(0), l = _(), r = _(-1 / 0), u = _(1 / 0), n = _(1);
|
|
714
|
+
let p = 0, s = !1;
|
|
704
715
|
const x = ce("target"), D = async (w) => {
|
|
705
|
-
a.value = w.title, o.value = w.value, l.value = w.precision, r.value = w.min,
|
|
706
|
-
}, { open: y } = J("numberDlg", D), h =
|
|
707
|
-
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);
|
|
708
719
|
};
|
|
709
|
-
return
|
|
710
|
-
!w && !
|
|
720
|
+
return G(y, (w) => {
|
|
721
|
+
!w && !s && (c.emit(`numberDlgResult${p}`, void 0), s = !0);
|
|
711
722
|
}), (w, d) => {
|
|
712
|
-
const
|
|
713
|
-
return
|
|
714
|
-
modelValue:
|
|
715
|
-
"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),
|
|
716
727
|
attach: "",
|
|
717
728
|
"max-width": "600px",
|
|
718
729
|
transition: "dialog-top-transition",
|
|
719
|
-
onKeydown: d[4] || (d[4] =
|
|
730
|
+
onKeydown: d[4] || (d[4] = H(M((q) => y.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
720
731
|
}, {
|
|
721
732
|
default: g(() => [
|
|
722
733
|
b(Q, { title: a.value }, {
|
|
723
734
|
default: g(() => [
|
|
724
|
-
b(
|
|
735
|
+
b(O, {
|
|
725
736
|
modelValue: h.value,
|
|
726
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
737
|
+
"onUpdate:modelValue": d[2] || (d[2] = (q) => h.value = q),
|
|
727
738
|
class: "mx-3",
|
|
728
739
|
onSubmit: M(i, ["prevent"])
|
|
729
740
|
}, {
|
|
730
741
|
default: g(() => [
|
|
731
|
-
b(
|
|
742
|
+
b(C, {
|
|
732
743
|
ref_key: "target",
|
|
733
744
|
ref: x,
|
|
734
745
|
modelValue: o.value,
|
|
735
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
746
|
+
"onUpdate:modelValue": d[0] || (d[0] = (q) => o.value = q),
|
|
736
747
|
"control-variant": "stacked",
|
|
737
|
-
max:
|
|
748
|
+
max: u.value,
|
|
738
749
|
min: r.value,
|
|
739
750
|
precision: l.value,
|
|
740
751
|
step: n.value
|
|
@@ -744,10 +755,10 @@ const at = /* @__PURE__ */ A({
|
|
|
744
755
|
b(f, {
|
|
745
756
|
color: "primary",
|
|
746
757
|
variant: "text",
|
|
747
|
-
onClick: d[1] || (d[1] = (
|
|
758
|
+
onClick: d[1] || (d[1] = (q) => y.value = !1)
|
|
748
759
|
}, {
|
|
749
760
|
default: g(() => [
|
|
750
|
-
|
|
761
|
+
L(S(A(t)("dlg.common.cancel")), 1)
|
|
751
762
|
]),
|
|
752
763
|
_: 1
|
|
753
764
|
}),
|
|
@@ -758,7 +769,7 @@ const at = /* @__PURE__ */ A({
|
|
|
758
769
|
variant: "text"
|
|
759
770
|
}, {
|
|
760
771
|
default: g(() => [
|
|
761
|
-
|
|
772
|
+
L(S(A(t)("dlg.common.confirm")), 1)
|
|
762
773
|
]),
|
|
763
774
|
_: 1
|
|
764
775
|
}, 8, ["disabled"])
|
|
@@ -776,40 +787,40 @@ const at = /* @__PURE__ */ A({
|
|
|
776
787
|
}, 8, ["modelValue"]);
|
|
777
788
|
};
|
|
778
789
|
}
|
|
779
|
-
}), pt = /* @__PURE__ */
|
|
790
|
+
}), pt = /* @__PURE__ */ $({
|
|
780
791
|
__name: "index",
|
|
781
792
|
setup(e) {
|
|
782
|
-
const { t } =
|
|
793
|
+
const { t } = X(), a = _(""), o = _(""), l = _(""), r = _(""), u = _(), n = _(""), p = _(""), s = _(""), x = _(""), D = _("");
|
|
783
794
|
let y = 0, h = !1;
|
|
784
795
|
const i = ce("target"), w = async (m) => {
|
|
785
|
-
a.value = m.title, o.value = m.text, l.value = m.label, r.value = m.placeholder,
|
|
786
|
-
}, { open: d } = J("promptDlg", w),
|
|
787
|
-
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);
|
|
788
799
|
};
|
|
789
|
-
return
|
|
790
|
-
!m && !h && (
|
|
791
|
-
}), (m,
|
|
792
|
-
const Q = v("v-card-text"), Y = v("v-text-field"),
|
|
793
|
-
return
|
|
794
|
-
modelValue:
|
|
795
|
-
"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),
|
|
796
807
|
attach: "",
|
|
797
808
|
"max-width": "600px",
|
|
798
809
|
transition: "dialog-top-transition",
|
|
799
|
-
onKeydown:
|
|
810
|
+
onKeydown: O[4] || (O[4] = H(M((B) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
800
811
|
}, {
|
|
801
812
|
default: g(() => [
|
|
802
813
|
b(xe, { title: a.value }, {
|
|
803
814
|
default: g(() => [
|
|
804
|
-
o.value ? (
|
|
815
|
+
o.value ? (V(), I(Q, { key: 0 }, {
|
|
805
816
|
default: g(() => [
|
|
806
|
-
|
|
817
|
+
L(S(o.value), 1)
|
|
807
818
|
]),
|
|
808
819
|
_: 1
|
|
809
820
|
})) : ee("", !0),
|
|
810
821
|
b(ye, {
|
|
811
|
-
modelValue:
|
|
812
|
-
"onUpdate:modelValue":
|
|
822
|
+
modelValue: C.value,
|
|
823
|
+
"onUpdate:modelValue": O[2] || (O[2] = (B) => C.value = B),
|
|
813
824
|
class: "mx-3",
|
|
814
825
|
onSubmit: M(f, ["prevent"])
|
|
815
826
|
}, {
|
|
@@ -818,31 +829,31 @@ const at = /* @__PURE__ */ A({
|
|
|
818
829
|
ref_key: "target",
|
|
819
830
|
ref: i,
|
|
820
831
|
modelValue: n.value,
|
|
821
|
-
"onUpdate:modelValue":
|
|
832
|
+
"onUpdate:modelValue": O[0] || (O[0] = (B) => n.value = B),
|
|
822
833
|
label: l.value,
|
|
823
834
|
placeholder: r.value,
|
|
824
|
-
rules:
|
|
835
|
+
rules: u.value
|
|
825
836
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
826
837
|
b(be, { class: "d-flex justify-end" }, {
|
|
827
838
|
default: g(() => [
|
|
828
|
-
b(
|
|
829
|
-
color:
|
|
839
|
+
b(q, {
|
|
840
|
+
color: p.value,
|
|
830
841
|
variant: "text",
|
|
831
|
-
onClick:
|
|
842
|
+
onClick: O[1] || (O[1] = (B) => d.value = !1)
|
|
832
843
|
}, {
|
|
833
844
|
default: g(() => [
|
|
834
|
-
|
|
845
|
+
L(S(s.value), 1)
|
|
835
846
|
]),
|
|
836
847
|
_: 1
|
|
837
848
|
}, 8, ["color"]),
|
|
838
|
-
b(
|
|
849
|
+
b(q, {
|
|
839
850
|
color: x.value,
|
|
840
|
-
disabled: !
|
|
851
|
+
disabled: !C.value,
|
|
841
852
|
type: "submit",
|
|
842
853
|
variant: "text"
|
|
843
854
|
}, {
|
|
844
855
|
default: g(() => [
|
|
845
|
-
|
|
856
|
+
L(S(D.value), 1)
|
|
846
857
|
]),
|
|
847
858
|
_: 1
|
|
848
859
|
}, 8, ["color", "disabled"])
|
|
@@ -860,23 +871,23 @@ const at = /* @__PURE__ */ A({
|
|
|
860
871
|
}, 8, ["modelValue"]);
|
|
861
872
|
};
|
|
862
873
|
}
|
|
863
|
-
}), _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__ */ $({
|
|
864
875
|
__name: "index",
|
|
865
876
|
setup(e) {
|
|
866
|
-
const { t } =
|
|
867
|
-
const n =
|
|
877
|
+
const { t } = X(), a = _(""), o = (u) => {
|
|
878
|
+
const n = u;
|
|
868
879
|
a.value = n.text ?? t("dlg.common.responding"), r.value = !0;
|
|
869
880
|
}, l = () => {
|
|
870
881
|
r.value = !1;
|
|
871
882
|
}, { open: r } = J("waitDlg", o);
|
|
872
883
|
return N(() => {
|
|
873
|
-
|
|
884
|
+
c.on("closeWaitDlg", l);
|
|
874
885
|
}), K(() => {
|
|
875
|
-
|
|
876
|
-
}), (
|
|
877
|
-
const
|
|
878
|
-
return
|
|
879
|
-
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),
|
|
880
891
|
"onUpdate:modelValue": n[0] || (n[0] = (x) => W(r) ? r.value = x : null),
|
|
881
892
|
attach: "",
|
|
882
893
|
fullscreen: "",
|
|
@@ -885,14 +896,14 @@ const at = /* @__PURE__ */ A({
|
|
|
885
896
|
}, {
|
|
886
897
|
default: g(() => [
|
|
887
898
|
k("div", _t, [
|
|
888
|
-
b(
|
|
899
|
+
b(p, {
|
|
889
900
|
height: "80px",
|
|
890
901
|
loading: "",
|
|
891
902
|
width: "300px"
|
|
892
903
|
}, {
|
|
893
904
|
default: g(() => [
|
|
894
905
|
k("div", dt, [
|
|
895
|
-
k("span", it,
|
|
906
|
+
k("span", it, S(a.value), 1)
|
|
896
907
|
])
|
|
897
908
|
]),
|
|
898
909
|
_: 1
|
|
@@ -911,42 +922,42 @@ const at = /* @__PURE__ */ A({
|
|
|
911
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." : ""))));
|
|
912
923
|
});
|
|
913
924
|
};
|
|
914
|
-
async function
|
|
915
|
-
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;
|
|
916
927
|
}
|
|
917
|
-
const
|
|
928
|
+
const Ft = { install: gt };
|
|
918
929
|
export {
|
|
919
|
-
|
|
930
|
+
Ee as Permission,
|
|
920
931
|
Pe as addView,
|
|
921
|
-
|
|
932
|
+
$e as appAppear,
|
|
922
933
|
Kt as clearViews,
|
|
923
|
-
|
|
934
|
+
St as closeWaitDlg,
|
|
924
935
|
kt as createAxios,
|
|
925
|
-
|
|
936
|
+
Ft as default,
|
|
926
937
|
et as delView,
|
|
927
|
-
|
|
938
|
+
c as eventBus,
|
|
928
939
|
Dt as globalObjects,
|
|
929
940
|
me as hasView,
|
|
930
|
-
|
|
931
|
-
|
|
941
|
+
Bt as injectDark,
|
|
942
|
+
At as injectLastAppPath,
|
|
932
943
|
Mt as injectLocale,
|
|
933
|
-
|
|
944
|
+
$t as injectPermissionChecksum,
|
|
934
945
|
Xe as injectPermissionObjects,
|
|
935
946
|
Ge as injectViews,
|
|
936
947
|
Ze as isEmpty,
|
|
937
948
|
re as isExist,
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
949
|
+
Ut as lastView,
|
|
950
|
+
Ht as loadLocaleMessageEssential,
|
|
951
|
+
F as matchRouteMeta,
|
|
952
|
+
Rt as messageError,
|
|
942
953
|
Tt as messageInfo,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
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,
|
|
950
961
|
tt as popView,
|
|
951
962
|
Ke as provideDark,
|
|
952
963
|
He as provideLastAppPath,
|
|
@@ -955,12 +966,13 @@ export {
|
|
|
955
966
|
We as providePermissionObjects,
|
|
956
967
|
Fe as provideViews,
|
|
957
968
|
Z as routeTransName,
|
|
958
|
-
|
|
969
|
+
Re as useColor,
|
|
959
970
|
Nt as useMicroApp,
|
|
960
|
-
Wt as
|
|
961
|
-
Xt as
|
|
971
|
+
Wt as useNameHelper,
|
|
972
|
+
Xt as usePermission,
|
|
973
|
+
zt as useSystem,
|
|
962
974
|
J as useViewStack,
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
975
|
+
Ue as verifyPermission,
|
|
976
|
+
Ot as waitMs,
|
|
977
|
+
z as waitUtil
|
|
966
978
|
};
|