x-essential-lib 0.7.5 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/system.d.ts +0 -1
- package/dist/index.js +300 -299
- package/package.json +1 -1
- package/dist/store/global.d.ts +0 -20
- package/dist/store/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.x-cont[data-v-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { computed as y,
|
|
2
|
+
import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as Ce, onScopeDispose as Le, unref as $, watchEffect as De, getCurrentInstance as Ae, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Me, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as R, isRef as Y, withKeys as F, withModifiers as H, withCtx as w, createVNode as k, createTextVNode as q, toDisplayString as j, createElementBlock as Q, normalizeStyle as le, createElementVNode as m, createCommentVNode as ce, Fragment as Se, renderList as je, useTemplateRef as Re } from "vue";
|
|
3
3
|
import { useI18n as P } from "vue-i18n";
|
|
4
|
-
import { useTheme as ee, useDisplay as
|
|
5
|
-
import { useRouter as ue, useRoute as
|
|
6
|
-
import
|
|
7
|
-
function
|
|
4
|
+
import { useTheme as ee, useDisplay as qe } from "vuetify";
|
|
5
|
+
import { useRouter as ue, useRoute as Ve } from "vue-router";
|
|
6
|
+
import Oe from "axios";
|
|
7
|
+
function Vt() {
|
|
8
8
|
const e = ee(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), n = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
9
9
|
return {
|
|
10
10
|
primaryColor: t,
|
|
@@ -16,42 +16,6 @@ function Ot() {
|
|
|
16
16
|
borderColor: c
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
function Te(e) {
|
|
20
|
-
return Le() ? (De(e), !0) : !1;
|
|
21
|
-
}
|
|
22
|
-
function Ee(e) {
|
|
23
|
-
return typeof e == "function" ? e() : $(e);
|
|
24
|
-
}
|
|
25
|
-
const Be = typeof window < "u" && typeof document < "u";
|
|
26
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
27
|
-
const Ue = Be ? window : void 0;
|
|
28
|
-
function We() {
|
|
29
|
-
const e = f(!1), t = Me();
|
|
30
|
-
return t && O(() => {
|
|
31
|
-
e.value = !0;
|
|
32
|
-
}, t), e;
|
|
33
|
-
}
|
|
34
|
-
function He(e) {
|
|
35
|
-
const t = We();
|
|
36
|
-
return y(() => (t.value, !!e()));
|
|
37
|
-
}
|
|
38
|
-
function $e(e, t = {}) {
|
|
39
|
-
const { window: a = Ue } = t, n = He(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
|
|
40
|
-
let o;
|
|
41
|
-
const l = f(!1), r = (p) => {
|
|
42
|
-
l.value = p.matches;
|
|
43
|
-
}, c = () => {
|
|
44
|
-
o && ("removeEventListener" in o ? o.removeEventListener("change", r) : o.removeListener(r));
|
|
45
|
-
}, u = Ae(() => {
|
|
46
|
-
n.value && (c(), o = a.matchMedia(Ee(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
|
|
47
|
-
});
|
|
48
|
-
return Te(() => {
|
|
49
|
-
u(), c(), o = void 0;
|
|
50
|
-
}), l;
|
|
51
|
-
}
|
|
52
|
-
function Ke(e) {
|
|
53
|
-
return $e("(prefers-color-scheme: dark)", e);
|
|
54
|
-
}
|
|
55
19
|
/*! js-cookie v3.0.5 | MIT */
|
|
56
20
|
function X(e) {
|
|
57
21
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -61,7 +25,7 @@ function X(e) {
|
|
|
61
25
|
}
|
|
62
26
|
return e;
|
|
63
27
|
}
|
|
64
|
-
var
|
|
28
|
+
var Ie = {
|
|
65
29
|
read: function(e) {
|
|
66
30
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
67
31
|
},
|
|
@@ -85,10 +49,10 @@ function J(e, t) {
|
|
|
85
49
|
function n(o) {
|
|
86
50
|
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
87
51
|
for (var l = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < l.length; c++) {
|
|
88
|
-
var u = l[c].split("="),
|
|
52
|
+
var u = l[c].split("="), _ = u.slice(1).join("=");
|
|
89
53
|
try {
|
|
90
54
|
var g = decodeURIComponent(u[0]);
|
|
91
|
-
if (r[g] = e.read(
|
|
55
|
+
if (r[g] = e.read(_, g), o === g)
|
|
92
56
|
break;
|
|
93
57
|
} catch {
|
|
94
58
|
}
|
|
@@ -122,43 +86,43 @@ function J(e, t) {
|
|
|
122
86
|
}
|
|
123
87
|
);
|
|
124
88
|
}
|
|
125
|
-
var V = J(
|
|
126
|
-
function
|
|
127
|
-
const t =
|
|
89
|
+
var V = J(Ie, { path: "/" });
|
|
90
|
+
function Ot(e) {
|
|
91
|
+
const t = Oe.create({
|
|
128
92
|
timeout: 6e3
|
|
129
93
|
});
|
|
130
94
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
131
|
-
(a) =>
|
|
95
|
+
(a) => Te(a),
|
|
132
96
|
(a) => {
|
|
133
|
-
|
|
97
|
+
Ee(a, e.onError);
|
|
134
98
|
}
|
|
135
99
|
), t.interceptors.response.use(
|
|
136
|
-
(a) =>
|
|
137
|
-
(a) =>
|
|
100
|
+
(a) => Be(a),
|
|
101
|
+
(a) => Ue(a, e.onError)
|
|
138
102
|
), t;
|
|
139
103
|
}
|
|
140
|
-
function
|
|
104
|
+
function Te(e) {
|
|
141
105
|
const t = V.get("accessToken") ?? "";
|
|
142
106
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
143
107
|
}
|
|
144
|
-
function
|
|
108
|
+
function Ee(e, t) {
|
|
145
109
|
console.error(e), t("request timeout");
|
|
146
110
|
}
|
|
147
|
-
function
|
|
111
|
+
function Be(e) {
|
|
148
112
|
return e.data;
|
|
149
113
|
}
|
|
150
|
-
function
|
|
114
|
+
function Ue(e, t) {
|
|
151
115
|
var o, l;
|
|
152
116
|
const n = e.response;
|
|
153
|
-
return n && (n.status === 401 &&
|
|
117
|
+
return n && (n.status === 401 && We(), (o = n.data) != null && o.message ? t((l = n.data) == null ? void 0 : l.message) : t({
|
|
154
118
|
code: n.status,
|
|
155
119
|
message: n.statusText
|
|
156
120
|
})), Promise.reject(e);
|
|
157
121
|
}
|
|
158
|
-
function
|
|
122
|
+
function We() {
|
|
159
123
|
V.remove("accessToken"), V.remove("refreshToken"), V.remove("activeOrg"), ue().replace({ path: "/passport/login" });
|
|
160
124
|
}
|
|
161
|
-
function
|
|
125
|
+
function He(e) {
|
|
162
126
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
|
|
163
127
|
var n = e.get(t);
|
|
164
128
|
n ? n.push(a) : e.set(t, [a]);
|
|
@@ -175,9 +139,9 @@ function Qe(e) {
|
|
|
175
139
|
} };
|
|
176
140
|
}
|
|
177
141
|
const s = function() {
|
|
178
|
-
return window.eventBus || (window.eventBus =
|
|
142
|
+
return window.eventBus || (window.eventBus = He()), window.eventBus;
|
|
179
143
|
}();
|
|
180
|
-
async function
|
|
144
|
+
async function It(e) {
|
|
181
145
|
return new Promise((t) => {
|
|
182
146
|
setTimeout(t, e);
|
|
183
147
|
});
|
|
@@ -191,7 +155,7 @@ async function te(e, t, a) {
|
|
|
191
155
|
l();
|
|
192
156
|
});
|
|
193
157
|
}
|
|
194
|
-
function
|
|
158
|
+
function $e(e, t) {
|
|
195
159
|
const a = document.getElementById("single-spa-application:" + e);
|
|
196
160
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
197
161
|
a.classList.add("app-reset");
|
|
@@ -202,11 +166,11 @@ function se() {
|
|
|
202
166
|
const e = Date.now();
|
|
203
167
|
return e - ne > 500 ? (ne = e, !0) : !1;
|
|
204
168
|
}
|
|
205
|
-
let
|
|
169
|
+
let Ke = 0;
|
|
206
170
|
function pe() {
|
|
207
|
-
return ++
|
|
171
|
+
return ++Ke;
|
|
208
172
|
}
|
|
209
|
-
async function
|
|
173
|
+
async function Tt(e) {
|
|
210
174
|
if (!se())
|
|
211
175
|
return;
|
|
212
176
|
let t = !1, a;
|
|
@@ -215,7 +179,7 @@ async function Et(e) {
|
|
|
215
179
|
}, o = pe();
|
|
216
180
|
return s.on("confirmDlgResult" + o, n), s.emit("confirmDlg", { ...e, seq: o }), await te(() => t), s.off("confirmDlgResult" + o, n), a;
|
|
217
181
|
}
|
|
218
|
-
async function
|
|
182
|
+
async function Et(e) {
|
|
219
183
|
if (!se())
|
|
220
184
|
return;
|
|
221
185
|
let t = !1, a;
|
|
@@ -224,25 +188,25 @@ async function Bt(e) {
|
|
|
224
188
|
}, o = pe();
|
|
225
189
|
return s.on("promptDlgResult" + o, n), s.emit("promptDlg", { ...e, seq: o }), await te(() => t), s.off("promptDlgResult" + o, n), a;
|
|
226
190
|
}
|
|
227
|
-
function
|
|
191
|
+
function Bt(e) {
|
|
228
192
|
s.emit("openWaitDlg", { text: e });
|
|
229
193
|
}
|
|
230
|
-
function
|
|
194
|
+
function Ut() {
|
|
231
195
|
s.emit("closeWaitDlg");
|
|
232
196
|
}
|
|
233
|
-
function
|
|
197
|
+
function Wt(e, t) {
|
|
234
198
|
s.emit("message", { type: "error", text: e, timeout: t });
|
|
235
199
|
}
|
|
236
|
-
function
|
|
200
|
+
function Ht(e, t) {
|
|
237
201
|
s.emit("message", { type: "info", text: e, timeout: t });
|
|
238
202
|
}
|
|
239
|
-
function
|
|
203
|
+
function $t(e, t) {
|
|
240
204
|
s.emit("message", { type: "success", text: e, timeout: t });
|
|
241
205
|
}
|
|
242
|
-
function
|
|
206
|
+
function Kt(e, t) {
|
|
243
207
|
s.emit("message", { type: "warning", text: e, timeout: t });
|
|
244
208
|
}
|
|
245
|
-
var
|
|
209
|
+
var ze = /* @__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.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 = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(ze || {});
|
|
246
210
|
function re(e, t) {
|
|
247
211
|
if (!e)
|
|
248
212
|
return !1;
|
|
@@ -257,43 +221,43 @@ function re(e, t) {
|
|
|
257
221
|
}), Object.keys(a).length <= 0);
|
|
258
222
|
}
|
|
259
223
|
const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
|
|
224
|
+
function zt(e) {
|
|
225
|
+
O(_e, e);
|
|
226
|
+
}
|
|
227
|
+
function Xe() {
|
|
228
|
+
return I(_e);
|
|
229
|
+
}
|
|
260
230
|
function Xt(e) {
|
|
261
|
-
|
|
231
|
+
O(ie, e);
|
|
262
232
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
233
|
+
function Fe() {
|
|
234
|
+
return I(ie);
|
|
265
235
|
}
|
|
266
236
|
function Ft(e) {
|
|
267
|
-
|
|
237
|
+
O(de, e);
|
|
268
238
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
239
|
+
function me() {
|
|
240
|
+
return I(de);
|
|
271
241
|
}
|
|
272
242
|
function Zt(e) {
|
|
273
|
-
|
|
243
|
+
O(fe, e);
|
|
274
244
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
245
|
+
function Ze() {
|
|
246
|
+
return I(fe);
|
|
277
247
|
}
|
|
278
248
|
function Nt(e) {
|
|
279
|
-
|
|
249
|
+
O(ge, e);
|
|
280
250
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
251
|
+
function he() {
|
|
252
|
+
return I(ge);
|
|
283
253
|
}
|
|
284
254
|
function Gt(e) {
|
|
285
|
-
|
|
255
|
+
O(ve, e);
|
|
286
256
|
}
|
|
287
257
|
function we() {
|
|
288
|
-
return
|
|
289
|
-
}
|
|
290
|
-
function Qt(e) {
|
|
291
|
-
I(ve, e);
|
|
258
|
+
return I(ve);
|
|
292
259
|
}
|
|
293
|
-
|
|
294
|
-
return T(ve);
|
|
295
|
-
}
|
|
296
|
-
const at = [
|
|
260
|
+
const Ne = [
|
|
297
261
|
{
|
|
298
262
|
app: "x-passport-mf",
|
|
299
263
|
path: "/passport/login",
|
|
@@ -404,7 +368,7 @@ const at = [
|
|
|
404
368
|
function Z(e) {
|
|
405
369
|
let t, a = 0;
|
|
406
370
|
const n = e.split("/").filter((o) => o.trim() !== "");
|
|
407
|
-
return
|
|
371
|
+
return Ne.forEach((o) => {
|
|
408
372
|
const l = o.path.split("/").filter((c) => c.trim() !== "");
|
|
409
373
|
let r = 0;
|
|
410
374
|
for (let c = 0; c < n.length && !(c >= l.length || n[c] !== l[c]); c++)
|
|
@@ -413,8 +377,8 @@ function Z(e) {
|
|
|
413
377
|
}), t;
|
|
414
378
|
}
|
|
415
379
|
const G = f("");
|
|
416
|
-
function
|
|
417
|
-
const a =
|
|
380
|
+
function M(e, t) {
|
|
381
|
+
const a = he();
|
|
418
382
|
t === "/" && (t = a.value);
|
|
419
383
|
const n = Z(e), o = Z(t);
|
|
420
384
|
if (!n) {
|
|
@@ -424,16 +388,16 @@ function A(e, t) {
|
|
|
424
388
|
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !o)
|
|
425
389
|
return;
|
|
426
390
|
const l = n.app === o.app, r = n.path === o.path, c = n.level >= o.level;
|
|
427
|
-
l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "",
|
|
391
|
+
l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", $e(n.app, c));
|
|
428
392
|
}
|
|
429
|
-
function
|
|
393
|
+
function Ge() {
|
|
430
394
|
return !!V.get("accessToken");
|
|
431
395
|
}
|
|
432
|
-
function
|
|
396
|
+
function Qe() {
|
|
433
397
|
return !!V.get("activeOrg");
|
|
434
398
|
}
|
|
435
|
-
function
|
|
436
|
-
const n =
|
|
399
|
+
function Qt(e, t, a) {
|
|
400
|
+
const n = Ge(), o = Qe(), l = Z(e.path);
|
|
437
401
|
if (!l) {
|
|
438
402
|
console.assert(!1), a();
|
|
439
403
|
return;
|
|
@@ -442,190 +406,227 @@ function Jt(e, t, a) {
|
|
|
442
406
|
if (n)
|
|
443
407
|
if (o) {
|
|
444
408
|
const r = "/main";
|
|
445
|
-
|
|
409
|
+
M(r, t.path), a({ path: r });
|
|
446
410
|
} else
|
|
447
|
-
|
|
411
|
+
M(e.path, t.path), a();
|
|
448
412
|
else {
|
|
449
413
|
const r = "/passport/login";
|
|
450
|
-
|
|
414
|
+
M(r, t.path), a({ path: r });
|
|
451
415
|
}
|
|
452
416
|
else if (l.requiredState === "org")
|
|
453
417
|
if (n)
|
|
454
418
|
if (o)
|
|
455
|
-
|
|
419
|
+
M(e.path, t.path), a();
|
|
456
420
|
else {
|
|
457
421
|
const r = "/org/joinOrCreate";
|
|
458
|
-
|
|
422
|
+
M(r, t.path), a({ path: r });
|
|
459
423
|
}
|
|
460
424
|
else {
|
|
461
425
|
const r = "/passport/login";
|
|
462
|
-
|
|
426
|
+
M(r, t.path), a({ path: r });
|
|
463
427
|
}
|
|
464
428
|
else if (n)
|
|
465
429
|
if (o) {
|
|
466
430
|
const r = "/main";
|
|
467
|
-
|
|
431
|
+
M(r, t.path), a({ path: r });
|
|
468
432
|
} else {
|
|
469
433
|
const r = "/org/joinOrCreate";
|
|
470
|
-
|
|
434
|
+
M(r, t.path), a({ path: r });
|
|
471
435
|
}
|
|
472
436
|
else
|
|
473
|
-
|
|
437
|
+
M(e.path, t.path), a();
|
|
474
438
|
}
|
|
475
|
-
function
|
|
439
|
+
function Je(e) {
|
|
476
440
|
return e.value.length <= 0;
|
|
477
441
|
}
|
|
478
|
-
function
|
|
442
|
+
function Jt(e) {
|
|
479
443
|
return e.value.at(-1);
|
|
480
444
|
}
|
|
481
|
-
function
|
|
445
|
+
function ye(e, t) {
|
|
482
446
|
return !!e.value.find((a) => a === t);
|
|
483
447
|
}
|
|
484
|
-
function
|
|
448
|
+
function Ye(e, t) {
|
|
485
449
|
const a = e.value.findIndex((n) => n === t);
|
|
486
450
|
a >= 0 && e.value.splice(a, 1), e.value.push(t);
|
|
487
451
|
}
|
|
488
|
-
function
|
|
452
|
+
function Pe(e, t) {
|
|
489
453
|
const a = e.value.findIndex((n) => n === t);
|
|
490
454
|
a >= 0 && e.value.splice(a, 1);
|
|
491
455
|
}
|
|
492
|
-
function
|
|
456
|
+
function et(e) {
|
|
493
457
|
console.assert(e.value.length > 0), e.value.pop();
|
|
494
458
|
}
|
|
495
|
-
function
|
|
459
|
+
function Yt(e) {
|
|
496
460
|
e.value = [];
|
|
497
461
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
return { finalDark: a, sysBarAvail: n, compactWidth: l };
|
|
462
|
+
function tt(e) {
|
|
463
|
+
return Ce() ? (Le(e), !0) : !1;
|
|
501
464
|
}
|
|
502
|
-
function
|
|
503
|
-
|
|
465
|
+
function at(e) {
|
|
466
|
+
return typeof e == "function" ? e() : $(e);
|
|
467
|
+
}
|
|
468
|
+
const ot = typeof window < "u" && typeof document < "u";
|
|
469
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
470
|
+
const nt = ot ? window : void 0;
|
|
471
|
+
function rt() {
|
|
472
|
+
const e = f(!1), t = Ae();
|
|
473
|
+
return t && T(() => {
|
|
474
|
+
e.value = !0;
|
|
475
|
+
}, t), e;
|
|
476
|
+
}
|
|
477
|
+
function lt(e) {
|
|
478
|
+
const t = rt();
|
|
479
|
+
return y(() => (t.value, !!e()));
|
|
480
|
+
}
|
|
481
|
+
function ct(e, t = {}) {
|
|
482
|
+
const { window: a = nt } = t, n = lt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
|
|
483
|
+
let o;
|
|
484
|
+
const l = f(!1), r = (_) => {
|
|
485
|
+
l.value = _.matches;
|
|
486
|
+
}, c = () => {
|
|
487
|
+
o && ("removeEventListener" in o ? o.removeEventListener("change", r) : o.removeListener(r));
|
|
488
|
+
}, u = De(() => {
|
|
489
|
+
n.value && (c(), o = a.matchMedia(at(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
|
|
490
|
+
});
|
|
491
|
+
return tt(() => {
|
|
492
|
+
u(), c(), o = void 0;
|
|
493
|
+
}), l;
|
|
494
|
+
}
|
|
495
|
+
function ut(e) {
|
|
496
|
+
return ct("(prefers-color-scheme: dark)", e);
|
|
497
|
+
}
|
|
498
|
+
function Pt() {
|
|
499
|
+
const e = Ve(), t = ue(), a = Xe(), n = Fe(), o = me(), l = Ze(), r = he(), c = we(), u = ee(), _ = ut();
|
|
504
500
|
N(
|
|
505
|
-
|
|
506
|
-
(
|
|
507
|
-
|
|
501
|
+
a,
|
|
502
|
+
() => {
|
|
503
|
+
let p = !1;
|
|
504
|
+
typeof a.value == "boolean" ? p = a.value : p = _.value, u.global.name.value = p ? "dark" : "light";
|
|
508
505
|
},
|
|
509
506
|
{ immediate: !0 }
|
|
510
507
|
);
|
|
511
|
-
const
|
|
512
|
-
if (
|
|
513
|
-
|
|
508
|
+
const g = (p) => {
|
|
509
|
+
if (p.key === "Escape") {
|
|
510
|
+
v();
|
|
514
511
|
return;
|
|
515
512
|
}
|
|
516
|
-
},
|
|
513
|
+
}, v = () => {
|
|
517
514
|
var x;
|
|
518
|
-
if (!
|
|
519
|
-
|
|
515
|
+
if (!Je(c)) {
|
|
516
|
+
ye(c, "waitDlg") || et(c);
|
|
520
517
|
return;
|
|
521
518
|
}
|
|
522
|
-
const
|
|
523
|
-
(
|
|
519
|
+
const p = Z(e.path);
|
|
520
|
+
(p == null ? void 0 : p.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
|
|
524
521
|
() => {
|
|
525
522
|
},
|
|
526
523
|
() => {
|
|
527
524
|
}
|
|
528
525
|
) : t.back();
|
|
529
526
|
};
|
|
530
|
-
|
|
531
|
-
window.addEventListener("keydown",
|
|
527
|
+
T(() => {
|
|
528
|
+
window.addEventListener("keydown", g), s.on("backbutton", v);
|
|
532
529
|
}), W(() => {
|
|
533
|
-
window.removeEventListener("keydown",
|
|
530
|
+
window.removeEventListener("keydown", g), s.off("backbutton", v);
|
|
534
531
|
});
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
},
|
|
540
|
-
const x =
|
|
541
|
-
|
|
542
|
-
},
|
|
543
|
-
|
|
532
|
+
const L = (p) => {
|
|
533
|
+
a.value = p;
|
|
534
|
+
}, b = (p) => {
|
|
535
|
+
n.value = p;
|
|
536
|
+
}, i = (p) => {
|
|
537
|
+
const x = p;
|
|
538
|
+
o.value = x[0], l.value = x[1];
|
|
539
|
+
}, D = (p) => {
|
|
540
|
+
r.value = p;
|
|
544
541
|
};
|
|
545
|
-
|
|
546
|
-
s.on("updateDark",
|
|
542
|
+
Me(() => {
|
|
543
|
+
s.on("updateDark", L), s.on("updateLocale", b), s.on("updatePermission", i), s.on("updateLastAppPath", D), s.emit("syncGlobalState");
|
|
547
544
|
}), W(() => {
|
|
548
|
-
s.off("updateDark",
|
|
545
|
+
s.off("updateDark", L), s.off("updateLocale", b), s.off("updatePermission", i), s.off("updateLastAppPath", D);
|
|
549
546
|
});
|
|
550
547
|
}
|
|
551
|
-
function
|
|
552
|
-
const e =
|
|
548
|
+
function ea() {
|
|
549
|
+
const e = me();
|
|
553
550
|
function t(a, n) {
|
|
554
551
|
const o = e.value[a];
|
|
555
552
|
return o ? n ? !(!re(o.includes, n) || re(o.excludes, n)) : !0 : !1;
|
|
556
553
|
}
|
|
557
554
|
return { verifyPermission: t };
|
|
558
555
|
}
|
|
556
|
+
function ta() {
|
|
557
|
+
const e = y(() => !!window.cordova), t = qe(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
558
|
+
return { sysBarAvail: e, compactWidth: a };
|
|
559
|
+
}
|
|
559
560
|
function ae(e, t) {
|
|
560
|
-
const a =
|
|
561
|
+
const a = we(), n = y({
|
|
561
562
|
get() {
|
|
562
|
-
return
|
|
563
|
+
return ye(a, e);
|
|
563
564
|
},
|
|
564
565
|
set(l) {
|
|
565
|
-
l ?
|
|
566
|
+
l ? Ye(a, e) : Pe(a, e);
|
|
566
567
|
}
|
|
567
568
|
}), o = (l) => {
|
|
568
569
|
t == null || t(l), n.value = !0;
|
|
569
570
|
};
|
|
570
|
-
return
|
|
571
|
+
return T(() => {
|
|
571
572
|
s.on(e, o);
|
|
572
573
|
}), W(() => {
|
|
573
574
|
s.off(e, o);
|
|
574
575
|
}), { open: n };
|
|
575
576
|
}
|
|
576
|
-
const
|
|
577
|
+
const st = /* @__PURE__ */ E({
|
|
577
578
|
__name: "index",
|
|
578
579
|
setup(e) {
|
|
579
580
|
const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(""), c = f("");
|
|
580
|
-
let u = 0,
|
|
581
|
+
let u = 0, _ = !1;
|
|
581
582
|
const g = (b) => {
|
|
582
|
-
var
|
|
583
|
+
var D, p, x, A;
|
|
583
584
|
const i = b;
|
|
584
|
-
a.value = i.title, n.value = i.text, o.value = ((
|
|
585
|
-
}, { open:
|
|
586
|
-
|
|
585
|
+
a.value = i.title, n.value = i.text, o.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((p = i.cancel) == null ? void 0 : p.text) ?? t("dlg.common.cancel"), r.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", c.value = ((A = i.confirm) == null ? void 0 : A.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
|
|
586
|
+
}, { open: v } = ae("confirmDlg", g), L = () => {
|
|
587
|
+
v.value = !1, _ || (s.emit("confirmDlgResult" + u, !0), _ = !0);
|
|
587
588
|
};
|
|
588
|
-
return N(
|
|
589
|
-
!b && !
|
|
589
|
+
return N(v, (b) => {
|
|
590
|
+
!b && !_ && (s.emit("confirmDlgResult" + u, !1), _ = !0);
|
|
590
591
|
}), (b, i) => {
|
|
591
|
-
const
|
|
592
|
+
const D = h("v-card-text"), p = h("v-btn"), x = h("v-card-actions"), A = h("v-card"), d = h("v-dialog");
|
|
592
593
|
return C(), R(d, {
|
|
593
|
-
modelValue: $(
|
|
594
|
-
"onUpdate:modelValue": i[1] || (i[1] = (S) => Y(
|
|
594
|
+
modelValue: $(v),
|
|
595
|
+
"onUpdate:modelValue": i[1] || (i[1] = (S) => Y(v) ? v.value = S : null),
|
|
595
596
|
transition: "dialog-top-transition",
|
|
596
597
|
"max-width": "600px",
|
|
597
598
|
onKeydown: [
|
|
598
|
-
i[2] || (i[2] = F(H((S) =>
|
|
599
|
-
F(H(
|
|
599
|
+
i[2] || (i[2] = F(H((S) => v.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
600
|
+
F(H(L, ["stop", "prevent"]), ["enter"])
|
|
600
601
|
]
|
|
601
602
|
}, {
|
|
602
|
-
default:
|
|
603
|
-
k(
|
|
604
|
-
default:
|
|
605
|
-
k(
|
|
606
|
-
default:
|
|
603
|
+
default: w(() => [
|
|
604
|
+
k(A, { title: a.value }, {
|
|
605
|
+
default: w(() => [
|
|
606
|
+
k(D, null, {
|
|
607
|
+
default: w(() => [
|
|
607
608
|
q(j(n.value), 1)
|
|
608
609
|
]),
|
|
609
610
|
_: 1
|
|
610
611
|
}),
|
|
611
612
|
k(x, { class: "d-flex justify-end" }, {
|
|
612
|
-
default:
|
|
613
|
-
k(
|
|
613
|
+
default: w(() => [
|
|
614
|
+
k(p, {
|
|
614
615
|
color: o.value,
|
|
615
616
|
variant: "text",
|
|
616
|
-
onClick: i[0] || (i[0] = (S) =>
|
|
617
|
+
onClick: i[0] || (i[0] = (S) => v.value = !1)
|
|
617
618
|
}, {
|
|
618
|
-
default:
|
|
619
|
+
default: w(() => [
|
|
619
620
|
q(j(l.value), 1)
|
|
620
621
|
]),
|
|
621
622
|
_: 1
|
|
622
623
|
}, 8, ["color"]),
|
|
623
|
-
k(
|
|
624
|
+
k(p, {
|
|
624
625
|
color: r.value,
|
|
625
626
|
variant: "text",
|
|
626
|
-
onClick:
|
|
627
|
+
onClick: L
|
|
627
628
|
}, {
|
|
628
|
-
default:
|
|
629
|
+
default: w(() => [
|
|
629
630
|
q(j(c.value), 1)
|
|
630
631
|
]),
|
|
631
632
|
_: 1
|
|
@@ -641,7 +642,7 @@ const pt = /* @__PURE__ */ E({
|
|
|
641
642
|
}, 8, ["modelValue", "onKeydown"]);
|
|
642
643
|
};
|
|
643
644
|
}
|
|
644
|
-
}),
|
|
645
|
+
}), pt = /* @__PURE__ */ E({
|
|
645
646
|
__name: "index",
|
|
646
647
|
props: {
|
|
647
648
|
zIndex: { default: 1 }
|
|
@@ -655,19 +656,19 @@ const pt = /* @__PURE__ */ E({
|
|
|
655
656
|
class: "x-cont",
|
|
656
657
|
style: le(n.value)
|
|
657
658
|
}, l[0] || (l[0] = [
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
659
|
+
m("div", { class: "lds-spinner" }, [
|
|
660
|
+
m("div"),
|
|
661
|
+
m("div"),
|
|
662
|
+
m("div"),
|
|
663
|
+
m("div"),
|
|
664
|
+
m("div"),
|
|
665
|
+
m("div"),
|
|
666
|
+
m("div"),
|
|
667
|
+
m("div"),
|
|
668
|
+
m("div"),
|
|
669
|
+
m("div"),
|
|
670
|
+
m("div"),
|
|
671
|
+
m("div")
|
|
671
672
|
], -1)
|
|
672
673
|
]), 4));
|
|
673
674
|
}
|
|
@@ -676,9 +677,9 @@ const pt = /* @__PURE__ */ E({
|
|
|
676
677
|
for (const [n, o] of t)
|
|
677
678
|
a[n] = o;
|
|
678
679
|
return a;
|
|
679
|
-
},
|
|
680
|
-
var
|
|
681
|
-
const
|
|
680
|
+
}, _t = /* @__PURE__ */ oe(pt, [["__scopeId", "data-v-7ab74c70"]]);
|
|
681
|
+
var it = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", dt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", ft = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", gt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", vt = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
|
|
682
|
+
const mt = /* @__PURE__ */ E({
|
|
682
683
|
__name: "item",
|
|
683
684
|
props: {
|
|
684
685
|
id: {},
|
|
@@ -694,70 +695,70 @@ const ht = /* @__PURE__ */ E({
|
|
|
694
695
|
})), o = y(() => {
|
|
695
696
|
switch (a.type) {
|
|
696
697
|
case "success":
|
|
697
|
-
return
|
|
698
|
+
return dt;
|
|
698
699
|
case "info":
|
|
699
|
-
return mt;
|
|
700
|
-
case "error":
|
|
701
700
|
return vt;
|
|
701
|
+
case "error":
|
|
702
|
+
return gt;
|
|
702
703
|
case "warning":
|
|
703
|
-
return
|
|
704
|
+
return it;
|
|
704
705
|
default:
|
|
705
706
|
return "";
|
|
706
707
|
}
|
|
707
708
|
}), l = f(!0), r = t;
|
|
708
|
-
return
|
|
709
|
+
return T(() => {
|
|
709
710
|
setTimeout(() => {
|
|
710
711
|
r("timeout", a.id);
|
|
711
712
|
}, a.timeout);
|
|
712
713
|
}), N(l, (c) => {
|
|
713
714
|
c || r("timeout", a.id);
|
|
714
715
|
}), (c, u) => {
|
|
715
|
-
const
|
|
716
|
+
const _ = h("v-icon"), g = h("v-sheet");
|
|
716
717
|
return C(), R(g, {
|
|
717
718
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
718
719
|
color: a.type,
|
|
719
720
|
elevation: 1
|
|
720
721
|
}, {
|
|
721
|
-
default:
|
|
722
|
-
o.value ? (C(), R(
|
|
722
|
+
default: w(() => [
|
|
723
|
+
o.value ? (C(), R(_, {
|
|
723
724
|
key: 0,
|
|
724
725
|
class: "mx-1",
|
|
725
726
|
icon: o.value
|
|
726
727
|
}, null, 8, ["icon"])) : ce("", !0),
|
|
727
|
-
|
|
728
|
+
m("div", {
|
|
728
729
|
style: le(n.value)
|
|
729
730
|
}, j(a.text), 5),
|
|
730
|
-
k(
|
|
731
|
+
k(_, {
|
|
731
732
|
class: "mx-1",
|
|
732
|
-
icon: $(
|
|
733
|
-
onClick: u[0] || (u[0] = (
|
|
733
|
+
icon: $(ft),
|
|
734
|
+
onClick: u[0] || (u[0] = (v) => r("timeout", a.id))
|
|
734
735
|
}, null, 8, ["icon"])
|
|
735
736
|
]),
|
|
736
737
|
_: 1
|
|
737
738
|
}, 8, ["color"]);
|
|
738
739
|
};
|
|
739
740
|
}
|
|
740
|
-
}),
|
|
741
|
+
}), ht = /* @__PURE__ */ oe(mt, [["__scopeId", "data-v-d5cfe252"]]), wt = /* @__PURE__ */ E({
|
|
741
742
|
__name: "index",
|
|
742
743
|
setup(e) {
|
|
743
744
|
const t = f([]);
|
|
744
|
-
|
|
745
|
+
T(() => {
|
|
745
746
|
s.on("message", a);
|
|
746
747
|
}), W(() => {
|
|
747
748
|
s.off("message", a);
|
|
748
749
|
});
|
|
749
750
|
const a = (c) => {
|
|
750
|
-
const { type: u, text:
|
|
751
|
-
l(u,
|
|
751
|
+
const { type: u, text: _, timeout: g } = c;
|
|
752
|
+
l(u, _, g);
|
|
752
753
|
}, n = (c) => {
|
|
753
754
|
r(c);
|
|
754
755
|
};
|
|
755
756
|
let o = 0;
|
|
756
|
-
const l = (c, u,
|
|
757
|
+
const l = (c, u, _) => {
|
|
757
758
|
const g = o++;
|
|
758
|
-
t.value.push({ id: g, type: c, text: u, timeout:
|
|
759
|
+
t.value.push({ id: g, type: c, text: u, timeout: _ });
|
|
759
760
|
}, r = (c) => {
|
|
760
|
-
const u = t.value.findIndex((
|
|
761
|
+
const u = t.value.findIndex((_) => _.id === c);
|
|
761
762
|
u >= 0 && t.value.splice(u, 1);
|
|
762
763
|
};
|
|
763
764
|
return (c, u) => (C(), Q("div", {
|
|
@@ -765,56 +766,56 @@ const ht = /* @__PURE__ */ E({
|
|
|
765
766
|
onClick: u[0] || (u[0] = H(() => {
|
|
766
767
|
}, ["stop"]))
|
|
767
768
|
}, [
|
|
768
|
-
(C(!0), Q(
|
|
769
|
-
id:
|
|
770
|
-
key:
|
|
771
|
-
type:
|
|
772
|
-
text:
|
|
773
|
-
timeout:
|
|
769
|
+
(C(!0), Q(Se, null, je(t.value, (_) => (C(), R(ht, {
|
|
770
|
+
id: _.id,
|
|
771
|
+
key: _.id,
|
|
772
|
+
type: _.type,
|
|
773
|
+
text: _.text,
|
|
774
|
+
timeout: _.timeout,
|
|
774
775
|
onTimeout: n
|
|
775
776
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
776
777
|
]));
|
|
777
778
|
}
|
|
778
|
-
}),
|
|
779
|
+
}), yt = /* @__PURE__ */ oe(wt, [["__scopeId", "data-v-8fd5d800"]]), xt = /* @__PURE__ */ E({
|
|
779
780
|
__name: "index",
|
|
780
781
|
setup(e) {
|
|
781
|
-
const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(), c = f(""), u = f(""),
|
|
782
|
+
const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(), c = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Re("target");
|
|
782
783
|
let b = 0, i = !1;
|
|
783
|
-
const
|
|
784
|
+
const D = async (A) => {
|
|
784
785
|
var S, K, z, B;
|
|
785
|
-
const d =
|
|
786
|
-
a.value = d.title, n.value = d.text, o.value = d.label, l.value = d.placeholder, r.value = d.rules, c.value = d.value, u.value = ((S = d.cancel) == null ? void 0 : S.color) ?? "primary",
|
|
787
|
-
}, { open:
|
|
788
|
-
|
|
786
|
+
const d = A;
|
|
787
|
+
a.value = d.title, n.value = d.text, o.value = d.label, l.value = d.placeholder, r.value = d.rules, c.value = d.value, u.value = ((S = d.cancel) == null ? void 0 : S.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), b = d.seq, i = !1, p.value = !0, await te(() => !!L.value), L.value.focus();
|
|
788
|
+
}, { open: p } = ae("promptDlg", D), x = () => {
|
|
789
|
+
p.value = !1, i || (s.emit("promptDlgResult" + b, c.value ?? ""), i = !0);
|
|
789
790
|
};
|
|
790
|
-
return N(
|
|
791
|
-
!
|
|
792
|
-
}), (
|
|
793
|
-
const S =
|
|
794
|
-
return C(), R(
|
|
795
|
-
modelValue: $(
|
|
796
|
-
"onUpdate:modelValue": d[2] || (d[2] = (U) => Y(
|
|
791
|
+
return N(p, (A) => {
|
|
792
|
+
!A && !i && (s.emit("promptDlgResult" + b, void 0), i = !0);
|
|
793
|
+
}), (A, d) => {
|
|
794
|
+
const S = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), B = h("v-btn"), xe = h("v-card-actions"), ke = h("v-card"), be = h("v-dialog");
|
|
795
|
+
return C(), R(be, {
|
|
796
|
+
modelValue: $(p),
|
|
797
|
+
"onUpdate:modelValue": d[2] || (d[2] = (U) => Y(p) ? p.value = U : null),
|
|
797
798
|
transition: "dialog-top-transition",
|
|
798
799
|
"max-width": "600px",
|
|
799
800
|
onKeydown: [
|
|
800
|
-
d[3] || (d[3] = F(H((U) =>
|
|
801
|
+
d[3] || (d[3] = F(H((U) => p.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
801
802
|
F(H(x, ["stop", "prevent"]), ["enter"])
|
|
802
803
|
]
|
|
803
804
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
k(
|
|
806
|
-
default:
|
|
805
|
+
default: w(() => [
|
|
806
|
+
k(ke, { title: a.value }, {
|
|
807
|
+
default: w(() => [
|
|
807
808
|
n.value ? (C(), R(S, { key: 0 }, {
|
|
808
|
-
default:
|
|
809
|
+
default: w(() => [
|
|
809
810
|
q(j(n.value), 1)
|
|
810
811
|
]),
|
|
811
812
|
_: 1
|
|
812
813
|
})) : ce("", !0),
|
|
813
814
|
k(z, { class: "mx-3" }, {
|
|
814
|
-
default:
|
|
815
|
+
default: w(() => [
|
|
815
816
|
k(K, {
|
|
816
817
|
ref_key: "target",
|
|
817
|
-
ref:
|
|
818
|
+
ref: L,
|
|
818
819
|
modelValue: c.value,
|
|
819
820
|
"onUpdate:modelValue": d[0] || (d[0] = (U) => c.value = U),
|
|
820
821
|
label: o.value,
|
|
@@ -824,15 +825,15 @@ const ht = /* @__PURE__ */ E({
|
|
|
824
825
|
]),
|
|
825
826
|
_: 1
|
|
826
827
|
}),
|
|
827
|
-
k(
|
|
828
|
-
default:
|
|
828
|
+
k(xe, { class: "d-flex justify-end" }, {
|
|
829
|
+
default: w(() => [
|
|
829
830
|
k(B, {
|
|
830
831
|
color: u.value,
|
|
831
832
|
variant: "text",
|
|
832
|
-
onClick: d[1] || (d[1] = (U) =>
|
|
833
|
+
onClick: d[1] || (d[1] = (U) => p.value = !1)
|
|
833
834
|
}, {
|
|
834
|
-
default:
|
|
835
|
-
q(j(
|
|
835
|
+
default: w(() => [
|
|
836
|
+
q(j(_.value), 1)
|
|
836
837
|
]),
|
|
837
838
|
_: 1
|
|
838
839
|
}, 8, ["color"]),
|
|
@@ -841,8 +842,8 @@ const ht = /* @__PURE__ */ E({
|
|
|
841
842
|
variant: "text",
|
|
842
843
|
onClick: x
|
|
843
844
|
}, {
|
|
844
|
-
default:
|
|
845
|
-
q(j(
|
|
845
|
+
default: w(() => [
|
|
846
|
+
q(j(v.value), 1)
|
|
846
847
|
]),
|
|
847
848
|
_: 1
|
|
848
849
|
}, 8, ["color"])
|
|
@@ -857,7 +858,7 @@ const ht = /* @__PURE__ */ E({
|
|
|
857
858
|
}, 8, ["modelValue", "onKeydown"]);
|
|
858
859
|
};
|
|
859
860
|
}
|
|
860
|
-
}),
|
|
861
|
+
}), kt = { class: "mx-auto my-auto" }, bt = { class: "w-100 h-100 d-flex align-center justify-center" }, Ct = { class: "text-body-1" }, Lt = /* @__PURE__ */ E({
|
|
861
862
|
__name: "index",
|
|
862
863
|
setup(e) {
|
|
863
864
|
const { t } = P(), a = f(""), n = (r) => {
|
|
@@ -866,29 +867,29 @@ const ht = /* @__PURE__ */ E({
|
|
|
866
867
|
}, o = () => {
|
|
867
868
|
l.value = !1;
|
|
868
869
|
}, { open: l } = ae("waitDlg", n);
|
|
869
|
-
return
|
|
870
|
+
return T(() => {
|
|
870
871
|
s.on("closeWaitDlg", o);
|
|
871
872
|
}), W(() => {
|
|
872
873
|
s.off("closeWaitDlg", o);
|
|
873
874
|
}), (r, c) => {
|
|
874
|
-
const u =
|
|
875
|
-
return C(), R(
|
|
875
|
+
const u = h("v-card"), _ = h("v-dialog");
|
|
876
|
+
return C(), R(_, {
|
|
876
877
|
modelValue: $(l),
|
|
877
878
|
"onUpdate:modelValue": c[0] || (c[0] = (g) => Y(l) ? l.value = g : null),
|
|
878
879
|
persistent: "",
|
|
879
880
|
"no-click-animation": "",
|
|
880
881
|
fullscreen: ""
|
|
881
882
|
}, {
|
|
882
|
-
default:
|
|
883
|
-
|
|
883
|
+
default: w(() => [
|
|
884
|
+
m("div", kt, [
|
|
884
885
|
k(u, {
|
|
885
886
|
width: "300px",
|
|
886
887
|
height: "80px",
|
|
887
888
|
loading: ""
|
|
888
889
|
}, {
|
|
889
|
-
default:
|
|
890
|
-
|
|
891
|
-
|
|
890
|
+
default: w(() => [
|
|
891
|
+
m("div", bt, [
|
|
892
|
+
m("span", Ct, j(a.value), 1)
|
|
892
893
|
])
|
|
893
894
|
]),
|
|
894
895
|
_: 1
|
|
@@ -899,9 +900,9 @@ const ht = /* @__PURE__ */ E({
|
|
|
899
900
|
}, 8, ["modelValue"]);
|
|
900
901
|
};
|
|
901
902
|
}
|
|
902
|
-
}),
|
|
903
|
-
e.component("XConfirmDlg",
|
|
904
|
-
},
|
|
903
|
+
}), Dt = (e) => {
|
|
904
|
+
e.component("XConfirmDlg", st), e.component("XLoading", _t), e.component("XMessage", yt), e.component("XPromptDlg", xt), e.component("XWaitDlg", Lt);
|
|
905
|
+
}, At = (e, t, a) => {
|
|
905
906
|
const n = e[t];
|
|
906
907
|
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, l) => {
|
|
907
908
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -915,52 +916,52 @@ const ht = /* @__PURE__ */ E({
|
|
|
915
916
|
});
|
|
916
917
|
};
|
|
917
918
|
async function aa(e) {
|
|
918
|
-
return (await
|
|
919
|
+
return (await At(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
919
920
|
}
|
|
920
|
-
const oa = { install:
|
|
921
|
+
const oa = { install: Dt };
|
|
921
922
|
export {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
923
|
+
ze as Permission,
|
|
924
|
+
Ye as addView,
|
|
925
|
+
$e as appAppear,
|
|
926
|
+
Yt as clearViews,
|
|
927
|
+
Ut as closeWaitDlg,
|
|
928
|
+
Ot as createAxios,
|
|
928
929
|
oa as default,
|
|
929
|
-
|
|
930
|
+
Pe as delView,
|
|
930
931
|
s as eventBus,
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
932
|
+
ye as hasView,
|
|
933
|
+
Xe as injectDark,
|
|
934
|
+
he as injectLastAppPath,
|
|
935
|
+
Fe as injectLocale,
|
|
936
|
+
Ze as injectPermissionChecksum,
|
|
937
|
+
me as injectPermissionObjects,
|
|
938
|
+
we as injectViews,
|
|
939
|
+
Je as isEmpty,
|
|
939
940
|
re as isExist,
|
|
940
|
-
|
|
941
|
+
Jt as lastView,
|
|
941
942
|
aa as loadLocaleMessageEssential,
|
|
942
943
|
Z as matchRouteMeta,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
944
|
+
Wt as messageError,
|
|
945
|
+
Ht as messageInfo,
|
|
946
|
+
$t as messageSuccess,
|
|
947
|
+
Kt as messageWarning,
|
|
948
|
+
Qt as onBeforeEach,
|
|
949
|
+
Tt as openConfirmDlg,
|
|
950
|
+
Et as openPromptDlg,
|
|
951
|
+
Bt as openWaitDlg,
|
|
952
|
+
et as popView,
|
|
953
|
+
zt as provideDark,
|
|
954
|
+
Nt as provideLastAppPath,
|
|
955
|
+
Xt as provideLocale,
|
|
956
|
+
Zt as providePermissionChecksum,
|
|
957
|
+
Ft as providePermissionObjects,
|
|
958
|
+
Gt as provideViews,
|
|
958
959
|
G as routeTransName,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
960
|
+
Vt as useColor,
|
|
961
|
+
Pt as useMicroApp,
|
|
962
|
+
ea as usePermission,
|
|
963
|
+
ta as useSystem,
|
|
963
964
|
ae as useViewStack,
|
|
964
|
-
|
|
965
|
+
It as waitMs,
|
|
965
966
|
te as waitUtil
|
|
966
967
|
};
|
package/package.json
CHANGED
package/dist/store/global.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PermissionObjects } from '../utils';
|
|
2
|
-
export declare const useGlobalStore: import("pinia").StoreDefinition<"global", Pick<{
|
|
3
|
-
dark: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
4
|
-
locale: import("vue").Ref<string, string>;
|
|
5
|
-
permissionObjects: import("vue").Ref<PermissionObjects, PermissionObjects>;
|
|
6
|
-
permissionChecksum: import("vue").Ref<string, string>;
|
|
7
|
-
lastAppPath: import("vue").Ref<string, string>;
|
|
8
|
-
}, "dark" | "locale" | "permissionObjects" | "permissionChecksum" | "lastAppPath">, Pick<{
|
|
9
|
-
dark: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
10
|
-
locale: import("vue").Ref<string, string>;
|
|
11
|
-
permissionObjects: import("vue").Ref<PermissionObjects, PermissionObjects>;
|
|
12
|
-
permissionChecksum: import("vue").Ref<string, string>;
|
|
13
|
-
lastAppPath: import("vue").Ref<string, string>;
|
|
14
|
-
}, never>, Pick<{
|
|
15
|
-
dark: import("vue").Ref<boolean | undefined, boolean | undefined>;
|
|
16
|
-
locale: import("vue").Ref<string, string>;
|
|
17
|
-
permissionObjects: import("vue").Ref<PermissionObjects, PermissionObjects>;
|
|
18
|
-
permissionChecksum: import("vue").Ref<string, string>;
|
|
19
|
-
lastAppPath: import("vue").Ref<string, string>;
|
|
20
|
-
}, never>>;
|
package/dist/store/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './global';
|