x-essential-lib 0.9.9 → 0.9.10
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 +0 -1
- package/dist/composables/system.d.ts +2 -0
- package/dist/index.js +266 -273
- package/package.json +1 -1
- package/dist/composables/nameHelper.d.ts +0 -5
|
@@ -3,4 +3,6 @@ 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[], stack?: boolean, instance?: string) => string;
|
|
7
|
+
nameOfAsk: (verb: string, object: string, name: string) => string;
|
|
6
8
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
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 j, provide as
|
|
2
|
+
import { computed as j, provide as $, inject as K, ref as p, watchEffect as ne, onMounted as W, onBeforeUnmount as N, onBeforeMount as De, defineComponent as E, watch as J, resolveComponent as y, createBlock as A, openBlock as q, withKeys as F, unref as U, withModifiers as I, isRef as X, withCtx as v, createVNode as w, 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
|
|
5
|
-
import { useRouter as de, useRoute as
|
|
4
|
+
import { useTheme as _e, useDisplay as qe } from "vuetify";
|
|
5
|
+
import { useRouter as de, useRoute as Oe } 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 = 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"),
|
|
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"), s = 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: s,
|
|
17
17
|
borderColor: n
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ct(e) {
|
|
21
21
|
const t = Se.create({
|
|
22
22
|
timeout: 6e3
|
|
23
23
|
});
|
|
24
24
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
25
25
|
(a) => Ae(a),
|
|
26
26
|
(a) => {
|
|
27
|
-
|
|
27
|
+
Me(a, e.onError);
|
|
28
28
|
}
|
|
29
29
|
), t.interceptors.response.use(
|
|
30
|
-
(a) =>
|
|
31
|
-
(a) =>
|
|
30
|
+
(a) => Be(a),
|
|
31
|
+
(a) => Ie(a, e.onError)
|
|
32
32
|
), t;
|
|
33
33
|
}
|
|
34
34
|
function Ae(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 Me(e, t) {
|
|
39
39
|
console.error(e), t("request timeout");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Be(e) {
|
|
42
42
|
return e.data;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ie(e, t) {
|
|
45
45
|
const o = e.response;
|
|
46
|
-
return o && (o.status === 401 &&
|
|
46
|
+
return o && (o.status === 401 && Ee(), 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 Ee() {
|
|
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
|
-
const
|
|
54
|
+
const Vt = (function() {
|
|
55
55
|
return window.globalObjects || (window.globalObjects = {
|
|
56
56
|
router: null,
|
|
57
57
|
i18n: null
|
|
58
58
|
}, console.log("globalObjects created")), window.globalObjects;
|
|
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
|
});
|
|
@@ -73,7 +73,7 @@ async function H(e, t, a) {
|
|
|
73
73
|
r();
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ue(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,27 +84,27 @@ function ae() {
|
|
|
84
84
|
const e = Date.now();
|
|
85
85
|
return e - ue > 500 ? (ue = e, !0) : !1;
|
|
86
86
|
}
|
|
87
|
-
let
|
|
87
|
+
let $e = 0;
|
|
88
88
|
function oe() {
|
|
89
|
-
return
|
|
89
|
+
return ++$e;
|
|
90
90
|
}
|
|
91
|
-
async function
|
|
91
|
+
async function qt(e) {
|
|
92
92
|
if (!ae())
|
|
93
93
|
return;
|
|
94
94
|
let t = !1, a;
|
|
95
95
|
const o = (r) => {
|
|
96
96
|
a = r, t = !0;
|
|
97
97
|
}, l = oe();
|
|
98
|
-
return
|
|
98
|
+
return u.on("confirmDlgResult" + l, o), u.emit("confirmDlg", { ...e, seq: l }), await H(() => t), u.off("confirmDlgResult" + l, o), a;
|
|
99
99
|
}
|
|
100
|
-
async function
|
|
100
|
+
async function Ot(e) {
|
|
101
101
|
if (!ae())
|
|
102
102
|
return;
|
|
103
103
|
let t = !1, a;
|
|
104
104
|
const o = (r) => {
|
|
105
105
|
a = r, t = !0;
|
|
106
106
|
}, l = oe();
|
|
107
|
-
return
|
|
107
|
+
return u.on("numberDlgResult" + l, o), u.emit("numberDlg", { ...e, seq: l }), await H(() => t), u.off("numberDlgResult" + l, o), a;
|
|
108
108
|
}
|
|
109
109
|
async function St(e) {
|
|
110
110
|
if (!ae())
|
|
@@ -113,25 +113,25 @@ async function St(e) {
|
|
|
113
113
|
const o = (r) => {
|
|
114
114
|
a = r, t = !0;
|
|
115
115
|
}, l = oe();
|
|
116
|
-
return
|
|
116
|
+
return u.on("promptDlgResult" + l, o), u.emit("promptDlg", { ...e, seq: l }), await H(() => t), u.off("promptDlgResult" + l, o), a;
|
|
117
117
|
}
|
|
118
118
|
function Rt(e) {
|
|
119
|
-
|
|
119
|
+
u.emit("waitDlg", { text: e });
|
|
120
120
|
}
|
|
121
121
|
function Lt() {
|
|
122
|
-
|
|
122
|
+
u.emit("closeWaitDlg");
|
|
123
123
|
}
|
|
124
124
|
function Tt(e, t) {
|
|
125
|
-
|
|
125
|
+
u.emit("message", { type: "error", text: e, timeout: t });
|
|
126
126
|
}
|
|
127
127
|
function At(e, t) {
|
|
128
|
-
|
|
128
|
+
u.emit("message", { type: "info", text: e, timeout: t });
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
130
|
+
function Mt(e, t) {
|
|
131
|
+
u.emit("message", { type: "success", text: e, timeout: t });
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function Bt(e, t) {
|
|
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 || {});
|
|
137
137
|
function ce(e, t) {
|
|
@@ -153,37 +153,37 @@ function Ne(e, t, a) {
|
|
|
153
153
|
}
|
|
154
154
|
const ie = "essentialDark", fe = "essentialLocale", ge = "essentialPermissionObjects", ve = "essentialPermissionChecksum", me = "essentialLastAppPath", be = "essentialViews";
|
|
155
155
|
function We(e) {
|
|
156
|
-
|
|
156
|
+
$(ie, e);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function It() {
|
|
159
159
|
return K(ie);
|
|
160
160
|
}
|
|
161
161
|
function Xe(e) {
|
|
162
|
-
|
|
162
|
+
$(fe, e);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Et() {
|
|
165
165
|
return K(fe);
|
|
166
166
|
}
|
|
167
167
|
function ze(e) {
|
|
168
|
-
|
|
168
|
+
$(ge, e);
|
|
169
169
|
}
|
|
170
170
|
function He() {
|
|
171
171
|
return K(ge);
|
|
172
172
|
}
|
|
173
173
|
function Fe(e) {
|
|
174
|
-
|
|
174
|
+
$(ve, e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Ut() {
|
|
177
177
|
return K(ve);
|
|
178
178
|
}
|
|
179
179
|
function Ge(e) {
|
|
180
|
-
|
|
180
|
+
$(me, e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function $t() {
|
|
183
183
|
return K(me);
|
|
184
184
|
}
|
|
185
185
|
function Je(e) {
|
|
186
|
-
|
|
186
|
+
$(be, e);
|
|
187
187
|
}
|
|
188
188
|
function Qe() {
|
|
189
189
|
return K(be);
|
|
@@ -304,10 +304,10 @@ function G(e) {
|
|
|
304
304
|
const o = e.split("/").filter((l) => l.trim() !== "");
|
|
305
305
|
return Ye.forEach((l) => {
|
|
306
306
|
const r = l.path.split("/").filter((n) => n.trim() !== "");
|
|
307
|
-
let
|
|
307
|
+
let s = 0;
|
|
308
308
|
for (let n = 0; n < o.length && !(n >= r.length || o[n] !== r[n]); n++)
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
s++;
|
|
310
|
+
s > 0 && s > a && (t = l, a = s);
|
|
311
311
|
}), t;
|
|
312
312
|
}
|
|
313
313
|
const P = p("");
|
|
@@ -320,8 +320,8 @@ function L(e, t, a) {
|
|
|
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, s = o.path === l.path, n = o.level >= l.level;
|
|
324
|
+
r ? s ? P.value = "" : P.value = n ? "inner-left" : "inner-right" : (P.value = "", Ue(o.app, n));
|
|
325
325
|
}
|
|
326
326
|
function Ze() {
|
|
327
327
|
return !!T.get("accessToken");
|
|
@@ -330,12 +330,12 @@ function Pe() {
|
|
|
330
330
|
return !!T.get("activeOrg");
|
|
331
331
|
}
|
|
332
332
|
function Kt(e, t, a, o) {
|
|
333
|
-
const l = Ze(), r = Pe(),
|
|
334
|
-
if (!
|
|
333
|
+
const l = Ze(), r = Pe(), s = G(e.path);
|
|
334
|
+
if (!s) {
|
|
335
335
|
console.assert(!1), a();
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
if (
|
|
338
|
+
if (s.requiredState === "auth")
|
|
339
339
|
if (l)
|
|
340
340
|
if (r) {
|
|
341
341
|
const n = "/main";
|
|
@@ -346,7 +346,7 @@ function Kt(e, t, a, o) {
|
|
|
346
346
|
const n = "/passport/login";
|
|
347
347
|
L(n, t.path, o), a({ path: n });
|
|
348
348
|
}
|
|
349
|
-
else if (
|
|
349
|
+
else if (s.requiredState === "org")
|
|
350
350
|
if (l)
|
|
351
351
|
if (r)
|
|
352
352
|
L(e.path, t.path, o), a();
|
|
@@ -394,79 +394,61 @@ function Wt(e) {
|
|
|
394
394
|
e.value = [];
|
|
395
395
|
}
|
|
396
396
|
function Xt(e, t, a, o, l, r) {
|
|
397
|
-
const
|
|
397
|
+
const s = Oe(), n = de(), _ = Le(), c = p(!1);
|
|
398
398
|
ne(() => {
|
|
399
|
-
let
|
|
400
|
-
typeof e.value == "boolean" ?
|
|
401
|
-
}), We(
|
|
402
|
-
const
|
|
399
|
+
let g = !1;
|
|
400
|
+
typeof e.value == "boolean" ? g = e.value : g = _.value, c.value = g;
|
|
401
|
+
}), We(c), Xe(t), ze(a), Fe(o), Ge(l), Je(r);
|
|
402
|
+
const d = _e();
|
|
403
403
|
ne(() => {
|
|
404
|
-
|
|
404
|
+
d.change(c.value ? "dark" : "light");
|
|
405
405
|
});
|
|
406
|
-
const
|
|
406
|
+
const k = () => {
|
|
407
407
|
if (!et(r)) {
|
|
408
408
|
ye(r, "waitDlg") || ot(r);
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
|
-
const
|
|
412
|
-
if (!
|
|
411
|
+
const g = G(s.path);
|
|
412
|
+
if (!g) {
|
|
413
413
|
console.assert(!1);
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
|
|
416
|
+
g.level === 0 ? navigator?.Backbutton?.goHome(
|
|
417
417
|
() => {
|
|
418
418
|
},
|
|
419
419
|
() => {
|
|
420
420
|
}
|
|
421
421
|
) : n.back();
|
|
422
|
-
},
|
|
423
|
-
if (
|
|
424
|
-
|
|
422
|
+
}, m = (g) => {
|
|
423
|
+
if (g.key === "Escape") {
|
|
424
|
+
k();
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
|
-
},
|
|
428
|
-
|
|
427
|
+
}, b = () => {
|
|
428
|
+
k();
|
|
429
429
|
};
|
|
430
430
|
W(() => {
|
|
431
|
-
window.addEventListener("keydown",
|
|
431
|
+
window.addEventListener("keydown", m), u.on("backbutton", b);
|
|
432
432
|
}), N(() => {
|
|
433
|
-
window.removeEventListener("keydown",
|
|
433
|
+
window.removeEventListener("keydown", m), u.off("backbutton", b);
|
|
434
434
|
});
|
|
435
|
-
const i = (
|
|
436
|
-
e.value =
|
|
437
|
-
}, V = (
|
|
438
|
-
t.value =
|
|
439
|
-
}, h = (
|
|
440
|
-
const R =
|
|
435
|
+
const i = (g) => {
|
|
436
|
+
e.value = g;
|
|
437
|
+
}, V = (g) => {
|
|
438
|
+
t.value = g;
|
|
439
|
+
}, h = (g) => {
|
|
440
|
+
const R = g;
|
|
441
441
|
a.value = R[0], o.value = R[1];
|
|
442
|
-
},
|
|
443
|
-
l.value =
|
|
442
|
+
}, f = (g) => {
|
|
443
|
+
l.value = g;
|
|
444
444
|
};
|
|
445
445
|
De(() => {
|
|
446
|
-
|
|
446
|
+
u.on("updateDark", i), u.on("updateLocale", V), u.on("updatePermission", h), u.on("updateLastAppPath", f), u.emit("syncGlobalState");
|
|
447
447
|
}), N(() => {
|
|
448
|
-
|
|
448
|
+
u.off("updateDark", i), u.off("updateLocale", V), u.off("updatePermission", h), u.off("updateLastAppPath", f);
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function zt() {
|
|
452
|
-
const { locale: e, t } = z();
|
|
453
|
-
return {
|
|
454
|
-
nameOfVerbObject: (r, u) => e.value === "en" ? `${t(r)} ${t(u)}` : `${t(r)}${t(u)}`,
|
|
455
|
-
nameOfObjects: (r, u) => {
|
|
456
|
-
const n = [];
|
|
457
|
-
for (const s of r)
|
|
458
|
-
n.push(t(s));
|
|
459
|
-
let _ = n.join(" / ");
|
|
460
|
-
return u && (_ += ` <${u}>`), _;
|
|
461
|
-
},
|
|
462
|
-
nameOfAsk: (r, u, n) => e.value === "en" ? t("dlg.common.ask", {
|
|
463
|
-
verb: re(t(r)),
|
|
464
|
-
object: re(t(u)),
|
|
465
|
-
name: n
|
|
466
|
-
}) : t("dlg.common.ask", { verb: t(r), object: t(u), name: n })
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
function Ht() {
|
|
470
452
|
const e = He();
|
|
471
453
|
function t(a, o) {
|
|
472
454
|
return Ne(
|
|
@@ -477,14 +459,26 @@ function Ht() {
|
|
|
477
459
|
}
|
|
478
460
|
return { verifyPermission: t };
|
|
479
461
|
}
|
|
480
|
-
function
|
|
481
|
-
const e = j(() => !!window.cordova),
|
|
482
|
-
|
|
483
|
-
|
|
462
|
+
function Ht() {
|
|
463
|
+
const { locale: e, t } = z(), a = j(() => !!window.cordova), o = qe(), 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
|
+
return {
|
|
465
|
+
sysBarAvail: a,
|
|
466
|
+
compactWidth: l,
|
|
467
|
+
isCurvedScreen: r,
|
|
468
|
+
isMobile: () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
484
469
|
navigator.userAgent
|
|
485
|
-
)
|
|
486
|
-
|
|
487
|
-
|
|
470
|
+
),
|
|
471
|
+
nameOfList: (c, d, k) => {
|
|
472
|
+
let m = "";
|
|
473
|
+
const b = c.map((i) => t(i));
|
|
474
|
+
return d ? m = b.join(" / ") : e.value === "en" ? m = b.join(" ") : m = b.join(""), k && (m += ` <${k}>`), m;
|
|
475
|
+
},
|
|
476
|
+
nameOfAsk: (c, d, k) => e.value === "en" ? t("dlg.common.ask", {
|
|
477
|
+
verb: re(t(c)),
|
|
478
|
+
object: re(t(d)),
|
|
479
|
+
name: k
|
|
480
|
+
}) : t("dlg.common.ask", { verb: t(c), object: t(d), name: k })
|
|
481
|
+
};
|
|
488
482
|
}
|
|
489
483
|
function Q(e, t) {
|
|
490
484
|
const a = Qe(), o = j({
|
|
@@ -498,67 +492,67 @@ function Q(e, t) {
|
|
|
498
492
|
t?.(r), o.value = !0;
|
|
499
493
|
};
|
|
500
494
|
return W(() => {
|
|
501
|
-
|
|
495
|
+
u.on(e, l);
|
|
502
496
|
}), N(() => {
|
|
503
|
-
|
|
497
|
+
u.off(e, l);
|
|
504
498
|
}), { open: o };
|
|
505
499
|
}
|
|
506
|
-
const lt = /* @__PURE__ */
|
|
500
|
+
const lt = /* @__PURE__ */ E({
|
|
507
501
|
__name: "index",
|
|
508
502
|
setup(e) {
|
|
509
|
-
const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""),
|
|
510
|
-
let
|
|
511
|
-
const
|
|
512
|
-
a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text, r.value = i.cancel?.color ?? "primary",
|
|
513
|
-
}, { open:
|
|
514
|
-
|
|
503
|
+
const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""), s = p(""), n = p(""), _ = p("");
|
|
504
|
+
let c = 0, d = !1;
|
|
505
|
+
const k = (i) => {
|
|
506
|
+
a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text, r.value = i.cancel?.color ?? "primary", s.value = i.cancel?.text ?? t("dlg.common.cancel"), n.value = i.confirm?.color ?? "primary", _.value = i.confirm?.text ?? t("dlg.common.confirm"), c = i.seq, d = !1, m.value = !0;
|
|
507
|
+
}, { open: m } = Q("confirmDlg", k), b = () => {
|
|
508
|
+
m.value = !1, d || (u.emit("confirmDlgResult" + c, !0), d = !0);
|
|
515
509
|
};
|
|
516
|
-
return J(
|
|
517
|
-
!i && !
|
|
510
|
+
return J(m, (i) => {
|
|
511
|
+
!i && !d && (u.emit("confirmDlgResult" + c, !1), d = !0);
|
|
518
512
|
}), (i, V) => {
|
|
519
|
-
const h =
|
|
520
|
-
return
|
|
521
|
-
modelValue:
|
|
522
|
-
"onUpdate:modelValue": V[1] || (V[1] = (
|
|
513
|
+
const h = y("v-card-text"), f = y("v-btn"), g = y("v-card-actions"), R = y("v-card"), x = y("v-dialog");
|
|
514
|
+
return q(), A(x, {
|
|
515
|
+
modelValue: U(m),
|
|
516
|
+
"onUpdate:modelValue": V[1] || (V[1] = (C) => X(m) ? m.value = C : null),
|
|
523
517
|
attach: "",
|
|
524
518
|
"max-width": "600px",
|
|
525
519
|
transition: "dialog-top-transition",
|
|
526
520
|
onKeydown: [
|
|
527
|
-
F(
|
|
528
|
-
V[2] || (V[2] = F(
|
|
521
|
+
F(I(b, ["stop", "prevent"]), ["enter"]),
|
|
522
|
+
V[2] || (V[2] = F(I((C) => m.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
529
523
|
]
|
|
530
524
|
}, {
|
|
531
525
|
default: v(() => [
|
|
532
|
-
|
|
526
|
+
w(R, {
|
|
533
527
|
subtitle: o.value,
|
|
534
528
|
title: a.value
|
|
535
529
|
}, {
|
|
536
530
|
default: v(() => [
|
|
537
|
-
|
|
531
|
+
w(h, null, {
|
|
538
532
|
default: v(() => [
|
|
539
|
-
|
|
533
|
+
M(S(l.value), 1)
|
|
540
534
|
]),
|
|
541
535
|
_: 1
|
|
542
536
|
}),
|
|
543
|
-
|
|
537
|
+
w(g, { class: "d-flex justify-end" }, {
|
|
544
538
|
default: v(() => [
|
|
545
|
-
|
|
539
|
+
w(f, {
|
|
546
540
|
color: r.value,
|
|
547
541
|
variant: "text",
|
|
548
|
-
onClick: V[0] || (V[0] = (
|
|
542
|
+
onClick: V[0] || (V[0] = (C) => m.value = !1)
|
|
549
543
|
}, {
|
|
550
544
|
default: v(() => [
|
|
551
|
-
|
|
545
|
+
M(S(s.value), 1)
|
|
552
546
|
]),
|
|
553
547
|
_: 1
|
|
554
548
|
}, 8, ["color"]),
|
|
555
|
-
|
|
549
|
+
w(f, {
|
|
556
550
|
color: n.value,
|
|
557
551
|
variant: "text",
|
|
558
|
-
onClick:
|
|
552
|
+
onClick: b
|
|
559
553
|
}, {
|
|
560
554
|
default: v(() => [
|
|
561
|
-
|
|
555
|
+
M(S(_.value), 1)
|
|
562
556
|
]),
|
|
563
557
|
_: 1
|
|
564
558
|
}, 8, ["color"])
|
|
@@ -573,7 +567,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
573
567
|
}, 8, ["modelValue", "onKeydown"]);
|
|
574
568
|
};
|
|
575
569
|
}
|
|
576
|
-
}), nt = /* @__PURE__ */
|
|
570
|
+
}), nt = /* @__PURE__ */ E({
|
|
577
571
|
__name: "index",
|
|
578
572
|
props: {
|
|
579
573
|
open: { type: Boolean, default: !0 },
|
|
@@ -585,26 +579,26 @@ const lt = /* @__PURE__ */ $({
|
|
|
585
579
|
zIndex: e.zIndex
|
|
586
580
|
}));
|
|
587
581
|
let o = 0;
|
|
588
|
-
return (l, r) => (
|
|
582
|
+
return (l, r) => (q(), A(Ce, { name: "fade" }, {
|
|
589
583
|
default: v(() => [
|
|
590
|
-
e.open ? (
|
|
584
|
+
e.open ? (q(), ee("div", {
|
|
591
585
|
key: X(o) ? ++o.value : ++o,
|
|
592
586
|
class: "x-cont",
|
|
593
587
|
style: se(a.value)
|
|
594
588
|
}, [...r[0] || (r[0] = [
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
589
|
+
D("div", { class: "lds-spinner" }, [
|
|
590
|
+
D("div"),
|
|
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")
|
|
608
602
|
], -1)
|
|
609
603
|
])], 4)) : te("", !0)
|
|
610
604
|
]),
|
|
@@ -616,7 +610,7 @@ const lt = /* @__PURE__ */ $({
|
|
|
616
610
|
for (const [o, l] of t)
|
|
617
611
|
a[o] = l;
|
|
618
612
|
return a;
|
|
619
|
-
}, rt = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-83c3cd1d"]]), ut = /* @__PURE__ */
|
|
613
|
+
}, rt = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-83c3cd1d"]]), ut = /* @__PURE__ */ E({
|
|
620
614
|
__name: "item",
|
|
621
615
|
props: {
|
|
622
616
|
id: {},
|
|
@@ -647,135 +641,135 @@ const lt = /* @__PURE__ */ $({
|
|
|
647
641
|
setTimeout(() => {
|
|
648
642
|
r("timeout", e.id);
|
|
649
643
|
}, e.timeout);
|
|
650
|
-
}), J(l, (
|
|
651
|
-
|
|
652
|
-
}), (
|
|
653
|
-
const _ =
|
|
654
|
-
return
|
|
644
|
+
}), J(l, (s) => {
|
|
645
|
+
s || r("timeout", e.id);
|
|
646
|
+
}), (s, n) => {
|
|
647
|
+
const _ = y("v-icon"), c = y("v-sheet");
|
|
648
|
+
return q(), A(c, {
|
|
655
649
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
656
650
|
color: e.type,
|
|
657
651
|
elevation: 1
|
|
658
652
|
}, {
|
|
659
653
|
default: v(() => [
|
|
660
|
-
o.value ? (
|
|
654
|
+
o.value ? (q(), A(_, {
|
|
661
655
|
key: 0,
|
|
662
656
|
class: "mx-1",
|
|
663
657
|
icon: o.value
|
|
664
658
|
}, null, 8, ["icon"])) : te("", !0),
|
|
665
|
-
|
|
659
|
+
D("div", {
|
|
666
660
|
style: se(a.value)
|
|
667
661
|
}, S(e.text), 5),
|
|
668
|
-
|
|
662
|
+
w(_, {
|
|
669
663
|
class: "mx-1",
|
|
670
664
|
icon: "mdi-close",
|
|
671
|
-
onClick: n[0] || (n[0] = (
|
|
665
|
+
onClick: n[0] || (n[0] = (d) => r("timeout", e.id))
|
|
672
666
|
})
|
|
673
667
|
]),
|
|
674
668
|
_: 1
|
|
675
669
|
}, 8, ["color"]);
|
|
676
670
|
};
|
|
677
671
|
}
|
|
678
|
-
}), ct = /* @__PURE__ */ le(ut, [["__scopeId", "data-v-f1f60167"]]), st = /* @__PURE__ */
|
|
672
|
+
}), ct = /* @__PURE__ */ le(ut, [["__scopeId", "data-v-f1f60167"]]), st = /* @__PURE__ */ E({
|
|
679
673
|
__name: "index",
|
|
680
674
|
setup(e) {
|
|
681
675
|
const t = p([]);
|
|
682
676
|
W(() => {
|
|
683
|
-
|
|
677
|
+
u.on("message", a);
|
|
684
678
|
}), N(() => {
|
|
685
|
-
|
|
679
|
+
u.off("message", a);
|
|
686
680
|
});
|
|
687
681
|
const a = (n) => {
|
|
688
|
-
const { type: _, text:
|
|
689
|
-
r(_,
|
|
682
|
+
const { type: _, text: c, timeout: d } = n;
|
|
683
|
+
r(_, c, d);
|
|
690
684
|
}, o = (n) => {
|
|
691
|
-
|
|
685
|
+
s(n);
|
|
692
686
|
};
|
|
693
687
|
let l = 0;
|
|
694
|
-
const r = (n, _,
|
|
695
|
-
const
|
|
696
|
-
t.value.push({ id:
|
|
697
|
-
},
|
|
698
|
-
const _ = t.value.findIndex((
|
|
688
|
+
const r = (n, _, c) => {
|
|
689
|
+
const d = l++;
|
|
690
|
+
t.value.push({ id: d, type: n, text: _, timeout: c });
|
|
691
|
+
}, s = (n) => {
|
|
692
|
+
const _ = t.value.findIndex((c) => c.id === n);
|
|
699
693
|
_ >= 0 && t.value.splice(_, 1);
|
|
700
694
|
};
|
|
701
|
-
return (n, _) => (
|
|
695
|
+
return (n, _) => (q(), ee("div", {
|
|
702
696
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
703
|
-
onClick: _[0] || (_[0] =
|
|
697
|
+
onClick: _[0] || (_[0] = I(() => {
|
|
704
698
|
}, ["stop"]))
|
|
705
699
|
}, [
|
|
706
|
-
(
|
|
707
|
-
id:
|
|
708
|
-
key:
|
|
709
|
-
text:
|
|
710
|
-
timeout:
|
|
711
|
-
type:
|
|
700
|
+
(q(!0), ee(Ve, null, je(t.value, (c) => (q(), A(ct, {
|
|
701
|
+
id: c.id,
|
|
702
|
+
key: c.id,
|
|
703
|
+
text: c.text,
|
|
704
|
+
timeout: c.timeout,
|
|
705
|
+
type: c.type,
|
|
712
706
|
onTimeout: o
|
|
713
707
|
}, null, 8, ["id", "text", "timeout", "type"]))), 128))
|
|
714
708
|
]));
|
|
715
709
|
}
|
|
716
|
-
}), pt = /* @__PURE__ */ le(st, [["__scopeId", "data-v-b482df18"]]), _t = /* @__PURE__ */
|
|
710
|
+
}), pt = /* @__PURE__ */ le(st, [["__scopeId", "data-v-b482df18"]]), _t = /* @__PURE__ */ E({
|
|
717
711
|
__name: "index",
|
|
718
712
|
setup(e) {
|
|
719
|
-
const { t } = z(), a = p(""), o = p(""), l = p(0), r = p(),
|
|
720
|
-
let
|
|
721
|
-
const
|
|
722
|
-
a.value = h.title, o.value = h.subtitle ?? "", l.value = h.value, r.value = h.precision,
|
|
723
|
-
}, { open:
|
|
724
|
-
|
|
713
|
+
const { t } = z(), a = p(""), o = p(""), l = p(0), r = p(), s = p(-1 / 0), n = p(1 / 0), _ = p(1);
|
|
714
|
+
let c = 0, d = !1;
|
|
715
|
+
const k = pe("target"), m = async (h) => {
|
|
716
|
+
a.value = h.title, o.value = h.subtitle ?? "", l.value = h.value, r.value = h.precision, s.value = h.min, n.value = h.max, _.value = h.step, c = h.seq, d = !1, b.value = !0, await H(() => !!k.value), k.value.focus();
|
|
717
|
+
}, { open: b } = Q("numberDlg", m), i = p(!1), V = () => {
|
|
718
|
+
b.value = !1, d || (u.emit(`numberDlgResult${c}`, l.value), d = !0);
|
|
725
719
|
};
|
|
726
|
-
return J(
|
|
727
|
-
!h && !
|
|
728
|
-
}), (h,
|
|
729
|
-
const
|
|
730
|
-
return
|
|
731
|
-
modelValue:
|
|
732
|
-
"onUpdate:modelValue":
|
|
720
|
+
return J(b, (h) => {
|
|
721
|
+
!h && !d && (u.emit(`numberDlgResult${c}`, void 0), d = !0);
|
|
722
|
+
}), (h, f) => {
|
|
723
|
+
const g = y("v-number-input"), R = y("v-btn"), x = y("v-card-actions"), C = y("v-form"), Y = y("v-card"), Z = y("v-dialog");
|
|
724
|
+
return q(), A(Z, {
|
|
725
|
+
modelValue: U(b),
|
|
726
|
+
"onUpdate:modelValue": f[3] || (f[3] = (O) => X(b) ? b.value = O : null),
|
|
733
727
|
attach: "",
|
|
734
728
|
"max-width": "600px",
|
|
735
729
|
transition: "dialog-top-transition",
|
|
736
|
-
onKeydown:
|
|
730
|
+
onKeydown: f[4] || (f[4] = F(I((O) => b.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
737
731
|
}, {
|
|
738
732
|
default: v(() => [
|
|
739
|
-
|
|
733
|
+
w(Y, { title: a.value }, {
|
|
740
734
|
default: v(() => [
|
|
741
|
-
|
|
735
|
+
w(C, {
|
|
742
736
|
modelValue: i.value,
|
|
743
|
-
"onUpdate:modelValue":
|
|
737
|
+
"onUpdate:modelValue": f[2] || (f[2] = (O) => i.value = O),
|
|
744
738
|
class: "mx-3",
|
|
745
|
-
onSubmit:
|
|
739
|
+
onSubmit: I(V, ["prevent"])
|
|
746
740
|
}, {
|
|
747
741
|
default: v(() => [
|
|
748
|
-
|
|
742
|
+
w(g, {
|
|
749
743
|
ref_key: "target",
|
|
750
|
-
ref:
|
|
744
|
+
ref: k,
|
|
751
745
|
modelValue: l.value,
|
|
752
|
-
"onUpdate:modelValue":
|
|
746
|
+
"onUpdate:modelValue": f[0] || (f[0] = (O) => l.value = O),
|
|
753
747
|
"control-variant": "stacked",
|
|
754
748
|
max: n.value,
|
|
755
|
-
min:
|
|
749
|
+
min: s.value,
|
|
756
750
|
precision: r.value,
|
|
757
751
|
step: _.value
|
|
758
752
|
}, null, 8, ["modelValue", "max", "min", "precision", "step"]),
|
|
759
|
-
|
|
753
|
+
w(x, { class: "d-flex justify-end" }, {
|
|
760
754
|
default: v(() => [
|
|
761
|
-
|
|
755
|
+
w(R, {
|
|
762
756
|
color: "primary",
|
|
763
757
|
variant: "text",
|
|
764
|
-
onClick:
|
|
758
|
+
onClick: f[1] || (f[1] = (O) => b.value = !1)
|
|
765
759
|
}, {
|
|
766
760
|
default: v(() => [
|
|
767
|
-
|
|
761
|
+
M(S(U(t)("dlg.common.cancel")), 1)
|
|
768
762
|
]),
|
|
769
763
|
_: 1
|
|
770
764
|
}),
|
|
771
|
-
|
|
765
|
+
w(R, {
|
|
772
766
|
color: "primary",
|
|
773
767
|
disabled: !i.value,
|
|
774
768
|
type: "submit",
|
|
775
769
|
variant: "text"
|
|
776
770
|
}, {
|
|
777
771
|
default: v(() => [
|
|
778
|
-
|
|
772
|
+
M(S(U(t)("dlg.common.confirm")), 1)
|
|
779
773
|
]),
|
|
780
774
|
_: 1
|
|
781
775
|
}, 8, ["disabled"])
|
|
@@ -793,73 +787,73 @@ const lt = /* @__PURE__ */ $({
|
|
|
793
787
|
}, 8, ["modelValue"]);
|
|
794
788
|
};
|
|
795
789
|
}
|
|
796
|
-
}), dt = /* @__PURE__ */
|
|
790
|
+
}), dt = /* @__PURE__ */ E({
|
|
797
791
|
__name: "index",
|
|
798
792
|
setup(e) {
|
|
799
|
-
const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""),
|
|
800
|
-
let
|
|
801
|
-
const V = pe("target"), h = async (
|
|
802
|
-
a.value =
|
|
803
|
-
}, { open:
|
|
804
|
-
|
|
793
|
+
const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""), s = p(""), n = p(), _ = p(""), c = p(""), d = p(""), k = p(""), m = p("");
|
|
794
|
+
let b = 0, i = !1;
|
|
795
|
+
const V = pe("target"), h = async (x) => {
|
|
796
|
+
a.value = x.title, o.value = x.subtitle ?? "", l.value = x.text, r.value = x.label, s.value = x.placeholder, n.value = x.rules, _.value = x.value, c.value = x.cancel?.color ?? "primary", d.value = x.cancel?.text ?? t("dlg.common.cancel"), k.value = x.confirm?.color ?? "primary", m.value = x.confirm?.text ?? t("dlg.common.confirm"), b = x.seq, i = !1, f.value = !0, await H(() => !!V.value), V.value.focus();
|
|
797
|
+
}, { open: f } = Q("promptDlg", h), g = p(!1), R = () => {
|
|
798
|
+
f.value = !1, i || (u.emit("promptDlgResult" + b, _.value ?? ""), i = !0);
|
|
805
799
|
};
|
|
806
|
-
return J(
|
|
807
|
-
!
|
|
808
|
-
}), (
|
|
809
|
-
const Y =
|
|
810
|
-
return
|
|
811
|
-
modelValue:
|
|
812
|
-
"onUpdate:modelValue":
|
|
800
|
+
return J(f, (x) => {
|
|
801
|
+
!x && !i && (u.emit("promptDlgResult" + b, void 0), i = !0);
|
|
802
|
+
}), (x, C) => {
|
|
803
|
+
const Y = y("v-card-text"), Z = y("v-text-field"), O = y("v-btn"), xe = y("v-card-actions"), we = y("v-form"), he = y("v-card"), ke = y("v-dialog");
|
|
804
|
+
return q(), A(ke, {
|
|
805
|
+
modelValue: U(f),
|
|
806
|
+
"onUpdate:modelValue": C[3] || (C[3] = (B) => X(f) ? f.value = B : null),
|
|
813
807
|
attach: "",
|
|
814
808
|
"max-width": "600px",
|
|
815
809
|
transition: "dialog-top-transition",
|
|
816
|
-
onKeydown:
|
|
810
|
+
onKeydown: C[4] || (C[4] = F(I((B) => f.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
817
811
|
}, {
|
|
818
812
|
default: v(() => [
|
|
819
|
-
|
|
813
|
+
w(he, { title: a.value }, {
|
|
820
814
|
default: v(() => [
|
|
821
|
-
l.value ? (
|
|
815
|
+
l.value ? (q(), A(Y, { key: 0 }, {
|
|
822
816
|
default: v(() => [
|
|
823
|
-
|
|
817
|
+
M(S(l.value), 1)
|
|
824
818
|
]),
|
|
825
819
|
_: 1
|
|
826
820
|
})) : te("", !0),
|
|
827
|
-
|
|
828
|
-
modelValue:
|
|
829
|
-
"onUpdate:modelValue":
|
|
821
|
+
w(we, {
|
|
822
|
+
modelValue: g.value,
|
|
823
|
+
"onUpdate:modelValue": C[2] || (C[2] = (B) => g.value = B),
|
|
830
824
|
class: "mx-3",
|
|
831
|
-
onSubmit:
|
|
825
|
+
onSubmit: I(R, ["prevent"])
|
|
832
826
|
}, {
|
|
833
827
|
default: v(() => [
|
|
834
|
-
|
|
828
|
+
w(Z, {
|
|
835
829
|
ref_key: "target",
|
|
836
830
|
ref: V,
|
|
837
831
|
modelValue: _.value,
|
|
838
|
-
"onUpdate:modelValue":
|
|
832
|
+
"onUpdate:modelValue": C[0] || (C[0] = (B) => _.value = B),
|
|
839
833
|
label: r.value,
|
|
840
|
-
placeholder:
|
|
834
|
+
placeholder: s.value,
|
|
841
835
|
rules: n.value
|
|
842
836
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
843
|
-
|
|
837
|
+
w(xe, { class: "d-flex justify-end" }, {
|
|
844
838
|
default: v(() => [
|
|
845
|
-
|
|
846
|
-
color:
|
|
839
|
+
w(O, {
|
|
840
|
+
color: c.value,
|
|
847
841
|
variant: "text",
|
|
848
|
-
onClick:
|
|
842
|
+
onClick: C[1] || (C[1] = (B) => f.value = !1)
|
|
849
843
|
}, {
|
|
850
844
|
default: v(() => [
|
|
851
|
-
|
|
845
|
+
M(S(d.value), 1)
|
|
852
846
|
]),
|
|
853
847
|
_: 1
|
|
854
848
|
}, 8, ["color"]),
|
|
855
|
-
|
|
856
|
-
color:
|
|
857
|
-
disabled: !
|
|
849
|
+
w(O, {
|
|
850
|
+
color: k.value,
|
|
851
|
+
disabled: !g.value,
|
|
858
852
|
type: "submit",
|
|
859
853
|
variant: "text"
|
|
860
854
|
}, {
|
|
861
855
|
default: v(() => [
|
|
862
|
-
|
|
856
|
+
M(S(m.value), 1)
|
|
863
857
|
]),
|
|
864
858
|
_: 1
|
|
865
859
|
}, 8, ["color", "disabled"])
|
|
@@ -877,39 +871,39 @@ const lt = /* @__PURE__ */ $({
|
|
|
877
871
|
}, 8, ["modelValue"]);
|
|
878
872
|
};
|
|
879
873
|
}
|
|
880
|
-
}), it = { class: "ma-auto" }, ft = { class: "w-100 h-100 d-flex align-center justify-center" }, gt = { class: "text-body-1" }, vt = /* @__PURE__ */
|
|
874
|
+
}), it = { class: "ma-auto" }, ft = { class: "w-100 h-100 d-flex align-center justify-center" }, gt = { class: "text-body-1" }, vt = /* @__PURE__ */ E({
|
|
881
875
|
__name: "index",
|
|
882
876
|
setup(e) {
|
|
883
|
-
const { t } = z(), a = p(""), o = (
|
|
884
|
-
const n =
|
|
877
|
+
const { t } = z(), a = p(""), o = (s) => {
|
|
878
|
+
const n = s;
|
|
885
879
|
a.value = n.text ?? t("dlg.common.responding"), r.value = !0;
|
|
886
880
|
}, l = () => {
|
|
887
881
|
r.value = !1;
|
|
888
882
|
}, { open: r } = Q("waitDlg", o);
|
|
889
883
|
return W(() => {
|
|
890
|
-
|
|
884
|
+
u.on("closeWaitDlg", l);
|
|
891
885
|
}), N(() => {
|
|
892
|
-
|
|
893
|
-
}), (
|
|
894
|
-
const _ =
|
|
895
|
-
return
|
|
896
|
-
modelValue:
|
|
897
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
886
|
+
u.off("closeWaitDlg", l);
|
|
887
|
+
}), (s, n) => {
|
|
888
|
+
const _ = y("v-card"), c = y("v-dialog");
|
|
889
|
+
return q(), A(c, {
|
|
890
|
+
modelValue: U(r),
|
|
891
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => X(r) ? r.value = d : null),
|
|
898
892
|
attach: "",
|
|
899
893
|
fullscreen: "",
|
|
900
894
|
"no-click-animation": "",
|
|
901
895
|
persistent: ""
|
|
902
896
|
}, {
|
|
903
897
|
default: v(() => [
|
|
904
|
-
|
|
905
|
-
|
|
898
|
+
D("div", it, [
|
|
899
|
+
w(_, {
|
|
906
900
|
height: "80px",
|
|
907
901
|
loading: "",
|
|
908
902
|
width: "300px"
|
|
909
903
|
}, {
|
|
910
904
|
default: v(() => [
|
|
911
|
-
|
|
912
|
-
|
|
905
|
+
D("div", ft, [
|
|
906
|
+
D("span", gt, S(a.value), 1)
|
|
913
907
|
])
|
|
914
908
|
]),
|
|
915
909
|
_: 1
|
|
@@ -928,40 +922,40 @@ const lt = /* @__PURE__ */ $({
|
|
|
928
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." : ""))));
|
|
929
923
|
});
|
|
930
924
|
};
|
|
931
|
-
async function
|
|
925
|
+
async function Ft(e) {
|
|
932
926
|
return (await bt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.opwoswgc.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.e8snb93i.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
933
927
|
}
|
|
934
|
-
const
|
|
928
|
+
const Gt = { install: mt };
|
|
935
929
|
export {
|
|
936
930
|
Ke as Permission,
|
|
937
931
|
tt as addView,
|
|
938
|
-
|
|
932
|
+
Ue as appAppear,
|
|
939
933
|
Wt as clearViews,
|
|
940
934
|
Lt as closeWaitDlg,
|
|
941
|
-
|
|
942
|
-
|
|
935
|
+
Ct as createAxios,
|
|
936
|
+
Gt as default,
|
|
943
937
|
at as delView,
|
|
944
|
-
|
|
945
|
-
|
|
938
|
+
u as eventBus,
|
|
939
|
+
Vt as globalObjects,
|
|
946
940
|
ye as hasView,
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
941
|
+
It as injectDark,
|
|
942
|
+
$t as injectLastAppPath,
|
|
943
|
+
Et as injectLocale,
|
|
944
|
+
Ut as injectPermissionChecksum,
|
|
951
945
|
He as injectPermissionObjects,
|
|
952
946
|
Qe as injectViews,
|
|
953
947
|
et as isEmpty,
|
|
954
948
|
ce as isExist,
|
|
955
949
|
Nt as lastView,
|
|
956
|
-
|
|
950
|
+
Ft as loadLocaleMessageEssential,
|
|
957
951
|
G as matchRouteMeta,
|
|
958
952
|
Tt as messageError,
|
|
959
953
|
At as messageInfo,
|
|
960
|
-
|
|
961
|
-
|
|
954
|
+
Mt as messageSuccess,
|
|
955
|
+
Bt as messageWarning,
|
|
962
956
|
Kt as onBeforeEach,
|
|
963
|
-
|
|
964
|
-
|
|
957
|
+
qt as openConfirmDlg,
|
|
958
|
+
Ot as openNumberDlg,
|
|
965
959
|
St as openPromptDlg,
|
|
966
960
|
Rt as openWaitDlg,
|
|
967
961
|
ot as popView,
|
|
@@ -974,11 +968,10 @@ export {
|
|
|
974
968
|
P as routeTransName,
|
|
975
969
|
Te as useColor,
|
|
976
970
|
Xt as useMicroApp,
|
|
977
|
-
zt as
|
|
978
|
-
Ht as
|
|
979
|
-
Ft as useSystem,
|
|
971
|
+
zt as usePermission,
|
|
972
|
+
Ht as useSystem,
|
|
980
973
|
Q as useViewStack,
|
|
981
974
|
Ne as verifyPermission,
|
|
982
|
-
|
|
975
|
+
jt as waitMs,
|
|
983
976
|
H as waitUtil
|
|
984
977
|
};
|
package/package.json
CHANGED