x-essential-lib 0.5.19 → 0.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +262 -254
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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-f4ad116e]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-f4ad116e]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-f4ad116e]{transform-origin:20px 20px;animation:lds-spinner-f4ad116e 1.2s linear infinite}.lds-spinner div[data-v-f4ad116e]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-f4ad116e]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f4ad116e]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f4ad116e]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f4ad116e]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f4ad116e]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f4ad116e]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f4ad116e]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f4ad116e]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f4ad116e]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f4ad116e]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f4ad116e{0%{opacity:1}to{opacity:0}}.x-cont[data-v-8c2268ea]{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 { ref as
|
|
3
|
-
import { useLocale as J, useTheme as
|
|
4
|
-
import { defineStore as le } from "pinia";
|
|
5
|
-
import
|
|
6
|
-
import { useRouter as re, useRoute as
|
|
2
|
+
import { ref as f, computed as i, onMounted as O, onBeforeUnmount as B, defineComponent as E, watch as K, resolveComponent as h, openBlock as S, createBlock as T, unref as z, isRef as G, withKeys as F, withModifiers as $, withCtx as w, createVNode as x, createTextVNode as j, toDisplayString as q, createElementBlock as H, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as m, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
|
|
3
|
+
import { useLocale as J, useTheme as N, useDisplay as be } from "vuetify";
|
|
4
|
+
import { defineStore as le, storeToRefs as Ce } from "pinia";
|
|
5
|
+
import De from "axios";
|
|
6
|
+
import { useRouter as re, useRoute as Se } from "vue-router";
|
|
7
7
|
const ne = le(
|
|
8
8
|
"global",
|
|
9
9
|
() => {
|
|
10
|
-
const e =
|
|
10
|
+
const e = f(), a = f("en"), t = f({}), l = f("");
|
|
11
11
|
return {
|
|
12
12
|
dark: e,
|
|
13
13
|
locale: a,
|
|
@@ -24,7 +24,7 @@ const ne = le(
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
), ce = le("viewMgr", () => {
|
|
27
|
-
const e =
|
|
27
|
+
const e = f([]);
|
|
28
28
|
function a() {
|
|
29
29
|
return e.value.length <= 0;
|
|
30
30
|
}
|
|
@@ -40,7 +40,7 @@ const ne = le(
|
|
|
40
40
|
e.value.push(u);
|
|
41
41
|
}
|
|
42
42
|
function n(u) {
|
|
43
|
-
const s = e.value.findIndex((
|
|
43
|
+
const s = e.value.findIndex((v) => v === u);
|
|
44
44
|
s !== -1 && e.value.splice(s, e.value.length - s);
|
|
45
45
|
}
|
|
46
46
|
function r() {
|
|
@@ -69,7 +69,7 @@ function L(e) {
|
|
|
69
69
|
}
|
|
70
70
|
return e;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var Ve = {
|
|
73
73
|
read: function(e) {
|
|
74
74
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
75
75
|
},
|
|
@@ -80,7 +80,7 @@ var Se = {
|
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
-
function
|
|
83
|
+
function X(e, a) {
|
|
84
84
|
function t(o, n, r) {
|
|
85
85
|
if (!(typeof document > "u")) {
|
|
86
86
|
r = L({}, a, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -95,8 +95,8 @@ function H(e, a) {
|
|
|
95
95
|
for (var n = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < n.length; c++) {
|
|
96
96
|
var u = n[c].split("="), s = u.slice(1).join("=");
|
|
97
97
|
try {
|
|
98
|
-
var
|
|
99
|
-
if (r[
|
|
98
|
+
var v = decodeURIComponent(u[0]);
|
|
99
|
+
if (r[v] = e.read(s, v), o === v)
|
|
100
100
|
break;
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
@@ -118,10 +118,10 @@ function H(e, a) {
|
|
|
118
118
|
);
|
|
119
119
|
},
|
|
120
120
|
withAttributes: function(o) {
|
|
121
|
-
return
|
|
121
|
+
return X(this.converter, L({}, this.attributes, o));
|
|
122
122
|
},
|
|
123
123
|
withConverter: function(o) {
|
|
124
|
-
return
|
|
124
|
+
return X(L({}, this.converter, o), this.attributes);
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
{
|
|
@@ -130,47 +130,47 @@ function H(e, a) {
|
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
135
|
-
const a =
|
|
133
|
+
var I = X(Ve, { path: "/" });
|
|
134
|
+
function lt(e) {
|
|
135
|
+
const a = De.create({
|
|
136
136
|
timeout: 6e3
|
|
137
137
|
});
|
|
138
138
|
return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
|
|
139
|
-
(t) =>
|
|
139
|
+
(t) => Re(t),
|
|
140
140
|
(t) => {
|
|
141
|
-
|
|
141
|
+
qe(t, e.onError);
|
|
142
142
|
}
|
|
143
143
|
), a.interceptors.response.use(
|
|
144
|
-
(t) =>
|
|
145
|
-
(t) =>
|
|
144
|
+
(t) => Oe(t),
|
|
145
|
+
(t) => je(t, e.onError)
|
|
146
146
|
), a;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
const a =
|
|
148
|
+
function Re(e) {
|
|
149
|
+
const a = I.get("accessToken") ?? "";
|
|
150
150
|
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function qe(e, a) {
|
|
153
153
|
console.error(e), a("request timeout");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Oe(e) {
|
|
156
156
|
return e.data;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function je(e, a) {
|
|
159
159
|
var o;
|
|
160
160
|
const t = e.response;
|
|
161
161
|
if (!t)
|
|
162
162
|
return Promise.reject(e);
|
|
163
|
-
t.status === 401 &&
|
|
163
|
+
t.status === 401 && Ie();
|
|
164
164
|
let l = (o = t.data) == null ? void 0 : o.message;
|
|
165
165
|
return l || (l = {
|
|
166
166
|
code: t.status,
|
|
167
167
|
message: t.statusText
|
|
168
168
|
}), a(l), Promise.reject(e);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
170
|
+
function Ie() {
|
|
171
|
+
I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), re().replace({ path: "/passport/login" });
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Te(e) {
|
|
174
174
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
175
175
|
var l = e.get(a);
|
|
176
176
|
l ? l.push(t) : e.set(a, [t]);
|
|
@@ -187,9 +187,9 @@ function Ie(e) {
|
|
|
187
187
|
} };
|
|
188
188
|
}
|
|
189
189
|
const p = function() {
|
|
190
|
-
return window.eventBus || (window.eventBus =
|
|
190
|
+
return window.eventBus || (window.eventBus = Te()), window.eventBus;
|
|
191
191
|
}();
|
|
192
|
-
async function
|
|
192
|
+
async function rt(e) {
|
|
193
193
|
return new Promise((a) => {
|
|
194
194
|
setTimeout(a, e);
|
|
195
195
|
});
|
|
@@ -203,7 +203,7 @@ async function Q(e, a, t) {
|
|
|
203
203
|
n();
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function nt(e) {
|
|
207
207
|
var l, o;
|
|
208
208
|
if (!window.appAppear) {
|
|
209
209
|
window.appAppear = !0;
|
|
@@ -219,11 +219,11 @@ function ue() {
|
|
|
219
219
|
const e = Date.now();
|
|
220
220
|
return e - ee > 500 ? (ee = e, !0) : !1;
|
|
221
221
|
}
|
|
222
|
-
let
|
|
222
|
+
let Be = 0;
|
|
223
223
|
function pe() {
|
|
224
|
-
return ++
|
|
224
|
+
return ++Be;
|
|
225
225
|
}
|
|
226
|
-
async function
|
|
226
|
+
async function ct(e) {
|
|
227
227
|
if (!ue())
|
|
228
228
|
return;
|
|
229
229
|
let a = !1, t;
|
|
@@ -232,7 +232,7 @@ async function nt(e) {
|
|
|
232
232
|
}, o = pe();
|
|
233
233
|
return p.on("confirmDlgResult" + o, l), p.emit("confirmDlg", { ...e, seq: o }), await Q(() => a), p.off("confirmDlgResult" + o, l), t;
|
|
234
234
|
}
|
|
235
|
-
async function
|
|
235
|
+
async function ut(e) {
|
|
236
236
|
if (!ue())
|
|
237
237
|
return;
|
|
238
238
|
let a = !1, t;
|
|
@@ -241,25 +241,25 @@ async function ct(e) {
|
|
|
241
241
|
}, o = pe();
|
|
242
242
|
return p.on("promptDlgResult" + o, l), p.emit("promptDlg", { ...e, seq: o }), await Q(() => a), p.off("promptDlgResult" + o, l), t;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function pt() {
|
|
245
245
|
p.emit("openWaitDlg");
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function st() {
|
|
248
248
|
p.emit("closeWaitDlg");
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function _t(e, a) {
|
|
251
251
|
p.emit("message", { type: "error", text: e, timeout: a });
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function dt(e, a) {
|
|
254
254
|
p.emit("message", { type: "info", text: e, timeout: a });
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function ft(e, a) {
|
|
257
257
|
p.emit("message", { type: "success", text: e, timeout: a });
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function it(e, a) {
|
|
260
260
|
p.emit("message", { type: "warning", text: e, timeout: a });
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
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_calc_space = "list_calc_space", e.get_calc_space = "get_calc_space", e.create_calc_space = "create_calc_space", e.delete_calc_space = "delete_calc_space", e.update_calc_space = "update_calc_space", e.arrange_calc_space = "arrange_calc_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_calc_layer = "open_calc_layer", e.list_db_space = "list_db_space", e.get_db_space = "get_db_space", e.create_db_space = "create_db_space", e.delete_db_space = "delete_db_space", e.update_db_space = "update_db_space", e.arrange_db_space = "arrange_db_space", e.list_model_group = "list_model_group", e.create_model_group = "create_model_group", e.delete_model_group = "delete_model_group", e.update_model_group = "update_model_group", e.arrange_model_group = "arrange_model_group", e.list_model = "list_model", e.get_model = "get_model", e.create_model = "create_model", e.delete_model = "delete_model", e.update_model = "update_model", e.get_model_data = "get_model_data", e.create_model_data = "create_model_data", e.delete_model_data = "delete_model_data", e.update_model_data = "update_model_data", e.get_graph = "get_graph", e.update_graph = "update_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_asset_space = "list_asset_space", e.get_asset_space = "get_asset_space", e.create_asset_space = "create_asset_space", e.delete_asset_space = "delete_asset_space", e.update_asset_space = "update_asset_space", e.arrange_asset_space = "arrange_asset_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_asset = "list_asset", e.get_asset = "get_asset", e.create_asset = "create_asset", e.delete_asset = "delete_asset", e.update_asset = "update_asset", e.move_asset = "move_asset", e.open_asset_layer = "open_asset_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_model = "filter_model", e))(Ee || {});
|
|
263
263
|
function te(e, a) {
|
|
264
264
|
if (!e)
|
|
265
265
|
return !1;
|
|
@@ -273,7 +273,7 @@ function te(e, a) {
|
|
|
273
273
|
return !1;
|
|
274
274
|
}), Object.keys(t).length <= 0);
|
|
275
275
|
}
|
|
276
|
-
const
|
|
276
|
+
const Ae = [
|
|
277
277
|
{ path: "/passport/login", level: 0 },
|
|
278
278
|
{ path: "/passport/loginAccount", level: 1 },
|
|
279
279
|
{ path: "/passport/register", level: 1 },
|
|
@@ -295,7 +295,7 @@ const Ee = [
|
|
|
295
295
|
function Y(e) {
|
|
296
296
|
let a, t = 0;
|
|
297
297
|
const l = e.split("/").filter((o) => o.trim() !== "");
|
|
298
|
-
return
|
|
298
|
+
return Ae.forEach((o) => {
|
|
299
299
|
const n = o.path.split("/").filter((c) => c.trim() !== "");
|
|
300
300
|
let r = 0;
|
|
301
301
|
for (let c = 0; c < l.length && !(c >= n.length || l[c] !== n[c]); c++)
|
|
@@ -312,21 +312,21 @@ function ae(e) {
|
|
|
312
312
|
const t = e.split("/");
|
|
313
313
|
return console.assert(t.length >= 2), { app: t[1], path: a.path, level: a.level };
|
|
314
314
|
}
|
|
315
|
-
const oe =
|
|
316
|
-
function
|
|
315
|
+
const oe = f("");
|
|
316
|
+
function D(e, a) {
|
|
317
317
|
const t = ae(e), l = ae(a), o = t.app === l.app, n = t.path === l.path, r = t.level >= l.level;
|
|
318
318
|
console.info(
|
|
319
319
|
`~~~~before route change~~~~ ${l.path} -> ${t.path} inner=${o} forward=${r}`
|
|
320
320
|
), o ? n ? oe.value = "" : oe.value = r ? "inner-left" : "inner-right" : window.routeExtras = { forward: r };
|
|
321
321
|
}
|
|
322
|
-
function Ae() {
|
|
323
|
-
return !!O.get("accessToken");
|
|
324
|
-
}
|
|
325
322
|
function Ue() {
|
|
326
|
-
return !!
|
|
323
|
+
return !!I.get("accessToken");
|
|
327
324
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
325
|
+
function Me() {
|
|
326
|
+
return !!I.get("activeOrg");
|
|
327
|
+
}
|
|
328
|
+
function gt(e, a, t) {
|
|
329
|
+
const l = Ue(), o = Me(), n = Y(e.path);
|
|
330
330
|
if (!n) {
|
|
331
331
|
t();
|
|
332
332
|
return;
|
|
@@ -335,38 +335,38 @@ function it(e, a, t) {
|
|
|
335
335
|
if (l)
|
|
336
336
|
if (o) {
|
|
337
337
|
const r = "/main";
|
|
338
|
-
|
|
338
|
+
D(r, a.path), t({ path: r });
|
|
339
339
|
} else
|
|
340
|
-
|
|
340
|
+
D(e.path, a.path), t();
|
|
341
341
|
else {
|
|
342
342
|
const r = "/passport/login";
|
|
343
|
-
|
|
343
|
+
D(r, a.path), t({ path: r });
|
|
344
344
|
}
|
|
345
345
|
else if (n.requiredState === "org")
|
|
346
346
|
if (l)
|
|
347
347
|
if (o)
|
|
348
|
-
|
|
348
|
+
D(e.path, a.path), t();
|
|
349
349
|
else {
|
|
350
350
|
const r = "/org/joinOrCreate";
|
|
351
|
-
|
|
351
|
+
D(r, a.path), t({ path: r });
|
|
352
352
|
}
|
|
353
353
|
else {
|
|
354
354
|
const r = "/passport/login";
|
|
355
|
-
|
|
355
|
+
D(r, a.path), t({ path: r });
|
|
356
356
|
}
|
|
357
357
|
else if (l)
|
|
358
358
|
if (o) {
|
|
359
359
|
const r = "/main";
|
|
360
|
-
|
|
360
|
+
D(r, a.path), t({ path: r });
|
|
361
361
|
} else {
|
|
362
362
|
const r = "/org/joinOrCreate";
|
|
363
|
-
|
|
363
|
+
D(r, a.path), t({ path: r });
|
|
364
364
|
}
|
|
365
365
|
else
|
|
366
|
-
|
|
366
|
+
D(e.path, a.path), t();
|
|
367
367
|
}
|
|
368
368
|
function Z(e, a) {
|
|
369
|
-
const t = ce(), l =
|
|
369
|
+
const t = ce(), l = i({
|
|
370
370
|
get() {
|
|
371
371
|
return t.hasView(e);
|
|
372
372
|
},
|
|
@@ -376,82 +376,82 @@ function Z(e, a) {
|
|
|
376
376
|
}), o = (n) => {
|
|
377
377
|
a == null || a(n), l.value = !0;
|
|
378
378
|
};
|
|
379
|
-
return
|
|
379
|
+
return O(() => {
|
|
380
380
|
p.on(e, o);
|
|
381
|
-
}),
|
|
381
|
+
}), B(() => {
|
|
382
382
|
p.off(e, o);
|
|
383
383
|
}), { open: l };
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const $e = /* @__PURE__ */ E({
|
|
386
386
|
__name: "index",
|
|
387
387
|
setup(e) {
|
|
388
|
-
const a = J(), { open: t } = Z("confirmDlg"), l =
|
|
389
|
-
var
|
|
390
|
-
return ((
|
|
391
|
-
}), u =
|
|
392
|
-
var
|
|
393
|
-
return ((
|
|
394
|
-
}), s =
|
|
395
|
-
var
|
|
396
|
-
return ((
|
|
397
|
-
}),
|
|
398
|
-
var
|
|
399
|
-
return ((
|
|
388
|
+
const a = J(), { open: t } = Z("confirmDlg"), l = f(""), o = f(""), n = f(), r = f(), c = i(() => {
|
|
389
|
+
var d;
|
|
390
|
+
return ((d = n.value) == null ? void 0 : d.color) ?? "primary";
|
|
391
|
+
}), u = i(() => {
|
|
392
|
+
var d;
|
|
393
|
+
return ((d = n.value) == null ? void 0 : d.text) ?? a.t("cancel");
|
|
394
|
+
}), s = i(() => {
|
|
395
|
+
var d;
|
|
396
|
+
return ((d = r.value) == null ? void 0 : d.color) ?? "primary";
|
|
397
|
+
}), v = i(() => {
|
|
398
|
+
var d;
|
|
399
|
+
return ((d = r.value) == null ? void 0 : d.text) ?? a.t("confirm");
|
|
400
400
|
});
|
|
401
|
-
let
|
|
402
|
-
const
|
|
403
|
-
l.value =
|
|
401
|
+
let C = 0, k = !1;
|
|
402
|
+
const V = (d) => {
|
|
403
|
+
l.value = d.title, o.value = d.text, n.value = d.cancel, r.value = d.confirm, C = d.seq, k = !1, t.value = !0;
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
p.on("confirmDlg",
|
|
407
|
-
}),
|
|
408
|
-
p.off("confirmDlg",
|
|
405
|
+
O(() => {
|
|
406
|
+
p.on("confirmDlg", V);
|
|
407
|
+
}), B(() => {
|
|
408
|
+
p.off("confirmDlg", V);
|
|
409
409
|
});
|
|
410
|
-
const
|
|
411
|
-
t.value = !1,
|
|
410
|
+
const g = () => {
|
|
411
|
+
t.value = !1, k || (p.emit("confirmDlgResult" + C, !0), k = !0);
|
|
412
412
|
};
|
|
413
|
-
return
|
|
414
|
-
!
|
|
415
|
-
}), (
|
|
416
|
-
const
|
|
417
|
-
return
|
|
413
|
+
return K(t, (d) => {
|
|
414
|
+
!d && !k && (p.emit("confirmDlgResult" + C, !1), k = !0);
|
|
415
|
+
}), (d, b) => {
|
|
416
|
+
const R = h("v-card-text"), A = h("v-btn"), W = h("v-card-actions"), _ = h("v-card"), y = h("v-dialog");
|
|
417
|
+
return S(), T(y, {
|
|
418
418
|
modelValue: z(t),
|
|
419
|
-
"onUpdate:modelValue":
|
|
419
|
+
"onUpdate:modelValue": b[1] || (b[1] = (U) => G(t) ? t.value = U : null),
|
|
420
420
|
onKeydown: [
|
|
421
|
-
|
|
422
|
-
F(
|
|
421
|
+
b[2] || (b[2] = F($((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
422
|
+
F($(g, ["stop", "prevent"]), ["enter"])
|
|
423
423
|
],
|
|
424
424
|
transition: "dialog-top-transition",
|
|
425
425
|
"max-width": "600px"
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
|
|
429
|
-
default:
|
|
430
|
-
|
|
431
|
-
default:
|
|
432
|
-
q(
|
|
427
|
+
default: w(() => [
|
|
428
|
+
x(_, { title: l.value }, {
|
|
429
|
+
default: w(() => [
|
|
430
|
+
x(R, null, {
|
|
431
|
+
default: w(() => [
|
|
432
|
+
j(q(o.value), 1)
|
|
433
433
|
]),
|
|
434
434
|
_: 1
|
|
435
435
|
}),
|
|
436
|
-
|
|
437
|
-
default:
|
|
438
|
-
|
|
439
|
-
onClick:
|
|
436
|
+
x(W, { class: "d-flex justify-end" }, {
|
|
437
|
+
default: w(() => [
|
|
438
|
+
x(A, {
|
|
439
|
+
onClick: b[0] || (b[0] = (U) => t.value = !1),
|
|
440
440
|
color: c.value,
|
|
441
441
|
variant: "text"
|
|
442
442
|
}, {
|
|
443
|
-
default:
|
|
444
|
-
q(
|
|
443
|
+
default: w(() => [
|
|
444
|
+
j(q(u.value), 1)
|
|
445
445
|
]),
|
|
446
446
|
_: 1
|
|
447
447
|
}, 8, ["color"]),
|
|
448
|
-
|
|
449
|
-
onClick:
|
|
448
|
+
x(A, {
|
|
449
|
+
onClick: g,
|
|
450
450
|
color: s.value,
|
|
451
451
|
variant: "text"
|
|
452
452
|
}, {
|
|
453
|
-
default:
|
|
454
|
-
q(
|
|
453
|
+
default: w(() => [
|
|
454
|
+
j(q(v.value), 1)
|
|
455
455
|
]),
|
|
456
456
|
_: 1
|
|
457
457
|
}, 8, ["color"])
|
|
@@ -466,22 +466,22 @@ const Me = /* @__PURE__ */ T({
|
|
|
466
466
|
}, 8, ["modelValue", "onKeydown"]);
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
}),
|
|
470
|
-
/* @__PURE__ */
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
/* @__PURE__ */
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
/* @__PURE__ */
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
], -1)),
|
|
483
|
-
|
|
484
|
-
],
|
|
469
|
+
}), We = (e) => (me("data-v-f4ad116e"), e = e(), he(), e), Le = /* @__PURE__ */ We(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
|
|
470
|
+
/* @__PURE__ */ m("div"),
|
|
471
|
+
/* @__PURE__ */ m("div"),
|
|
472
|
+
/* @__PURE__ */ m("div"),
|
|
473
|
+
/* @__PURE__ */ m("div"),
|
|
474
|
+
/* @__PURE__ */ m("div"),
|
|
475
|
+
/* @__PURE__ */ m("div"),
|
|
476
|
+
/* @__PURE__ */ m("div"),
|
|
477
|
+
/* @__PURE__ */ m("div"),
|
|
478
|
+
/* @__PURE__ */ m("div"),
|
|
479
|
+
/* @__PURE__ */ m("div"),
|
|
480
|
+
/* @__PURE__ */ m("div"),
|
|
481
|
+
/* @__PURE__ */ m("div")
|
|
482
|
+
], -1)), ze = [
|
|
483
|
+
Le
|
|
484
|
+
], Fe = /* @__PURE__ */ E({
|
|
485
485
|
__name: "index",
|
|
486
486
|
props: {
|
|
487
487
|
zIndex: {
|
|
@@ -490,21 +490,21 @@ const Me = /* @__PURE__ */ T({
|
|
|
490
490
|
}
|
|
491
491
|
},
|
|
492
492
|
setup(e) {
|
|
493
|
-
const a =
|
|
493
|
+
const a = N(), t = e, l = i(() => ({
|
|
494
494
|
background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
495
495
|
zIndex: t.zIndex
|
|
496
496
|
}));
|
|
497
|
-
return (o, n) => (
|
|
497
|
+
return (o, n) => (S(), H("div", {
|
|
498
498
|
class: "x-cont",
|
|
499
499
|
style: ve(l.value)
|
|
500
|
-
},
|
|
500
|
+
}, ze, 4));
|
|
501
501
|
}
|
|
502
502
|
}), se = (e, a) => {
|
|
503
503
|
const t = e.__vccOpts || e;
|
|
504
504
|
for (const [l, o] of a)
|
|
505
505
|
t[l] = o;
|
|
506
506
|
return t;
|
|
507
|
-
},
|
|
507
|
+
}, Ke = /* @__PURE__ */ se(Fe, [["__scopeId", "data-v-f4ad116e"]]), Ne = /* @__PURE__ */ E({
|
|
508
508
|
__name: "item",
|
|
509
509
|
props: {
|
|
510
510
|
id: {},
|
|
@@ -514,16 +514,16 @@ const Me = /* @__PURE__ */ T({
|
|
|
514
514
|
},
|
|
515
515
|
emits: ["timeout"],
|
|
516
516
|
setup(e, { emit: a }) {
|
|
517
|
-
const t = e, l =
|
|
518
|
-
return
|
|
517
|
+
const t = e, l = f(!0), o = a;
|
|
518
|
+
return O(() => {
|
|
519
519
|
setTimeout(() => {
|
|
520
520
|
o("timeout", t.id);
|
|
521
521
|
}, t.timeout);
|
|
522
|
-
}),
|
|
522
|
+
}), K(l, (n) => {
|
|
523
523
|
n || o("timeout", t.id);
|
|
524
524
|
}), (n, r) => {
|
|
525
|
-
const c =
|
|
526
|
-
return
|
|
525
|
+
const c = h("v-alert");
|
|
526
|
+
return S(), T(c, {
|
|
527
527
|
modelValue: l.value,
|
|
528
528
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
|
|
529
529
|
class: "mt-2",
|
|
@@ -537,13 +537,13 @@ const Me = /* @__PURE__ */ T({
|
|
|
537
537
|
}, null, 8, ["modelValue", "type", "text"]);
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
}),
|
|
540
|
+
}), He = /* @__PURE__ */ E({
|
|
541
541
|
__name: "index",
|
|
542
542
|
setup(e) {
|
|
543
543
|
const a = we({ items: [] });
|
|
544
|
-
|
|
544
|
+
O(() => {
|
|
545
545
|
p.on("message", t);
|
|
546
|
-
}),
|
|
546
|
+
}), B(() => {
|
|
547
547
|
p.off("message", t);
|
|
548
548
|
});
|
|
549
549
|
const t = (c) => {
|
|
@@ -553,18 +553,18 @@ const Me = /* @__PURE__ */ T({
|
|
|
553
553
|
};
|
|
554
554
|
let o = 0;
|
|
555
555
|
const n = (c, u, s) => {
|
|
556
|
-
const
|
|
557
|
-
a.items.push({ id:
|
|
556
|
+
const v = o++;
|
|
557
|
+
a.items.push({ id: v, type: c, text: u, timeout: s });
|
|
558
558
|
}, r = (c) => {
|
|
559
559
|
const u = a.items.findIndex((s) => s.id === c);
|
|
560
560
|
u >= 0 && a.items.splice(u, 1);
|
|
561
561
|
};
|
|
562
|
-
return (c, u) => (
|
|
563
|
-
onClick: u[0] || (u[0] =
|
|
562
|
+
return (c, u) => (S(), H("div", {
|
|
563
|
+
onClick: u[0] || (u[0] = $(() => {
|
|
564
564
|
}, ["stop"])),
|
|
565
565
|
class: "x-cont d-flex flex-column-reverse align-center"
|
|
566
566
|
}, [
|
|
567
|
-
(
|
|
567
|
+
(S(!0), H(ye, null, xe(a.items, (s) => (S(), T(Ne, {
|
|
568
568
|
onTimeout: l,
|
|
569
569
|
id: s.id,
|
|
570
570
|
type: s.type,
|
|
@@ -574,91 +574,91 @@ const Me = /* @__PURE__ */ T({
|
|
|
574
574
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
575
575
|
]));
|
|
576
576
|
}
|
|
577
|
-
}),
|
|
577
|
+
}), Xe = /* @__PURE__ */ se(He, [["__scopeId", "data-v-8c2268ea"]]), Ge = /* @__PURE__ */ E({
|
|
578
578
|
__name: "index",
|
|
579
579
|
setup(e) {
|
|
580
|
-
const a = J(), { open: t } = Z("promptDlg"), l =
|
|
581
|
-
var
|
|
582
|
-
return ((
|
|
583
|
-
}),
|
|
584
|
-
var
|
|
585
|
-
return ((
|
|
586
|
-
}),
|
|
587
|
-
var
|
|
588
|
-
return ((
|
|
589
|
-
}),
|
|
590
|
-
var
|
|
591
|
-
return ((
|
|
592
|
-
}),
|
|
593
|
-
let
|
|
594
|
-
const
|
|
595
|
-
var
|
|
596
|
-
l.value =
|
|
580
|
+
const a = J(), { open: t } = Z("promptDlg"), l = f(""), o = f(""), n = f(), r = f(), c = f(), u = f(""), s = f(), v = f(), C = i(() => {
|
|
581
|
+
var _;
|
|
582
|
+
return ((_ = s.value) == null ? void 0 : _.color) ?? "primary";
|
|
583
|
+
}), k = i(() => {
|
|
584
|
+
var _;
|
|
585
|
+
return ((_ = s.value) == null ? void 0 : _.text) ?? a.t("cancel");
|
|
586
|
+
}), V = i(() => {
|
|
587
|
+
var _;
|
|
588
|
+
return ((_ = v.value) == null ? void 0 : _.color) ?? "primary";
|
|
589
|
+
}), g = i(() => {
|
|
590
|
+
var _;
|
|
591
|
+
return ((_ = v.value) == null ? void 0 : _.text) ?? a.t("confirm");
|
|
592
|
+
}), d = f();
|
|
593
|
+
let b = 0, R = !1;
|
|
594
|
+
const A = async (_) => {
|
|
595
|
+
var y;
|
|
596
|
+
l.value = _.title, o.value = _.text, n.value = _.label, r.value = _.placeholder, c.value = _.rules, u.value = _.value, s.value = _.cancel, v.value = _.confirm, b = _.seq, R = !1, t.value = !0, await Q(() => d.value !== void 0, 1e3), (y = d.value) == null || y.focus();
|
|
597
597
|
};
|
|
598
|
-
|
|
599
|
-
p.on("promptDlg",
|
|
600
|
-
}),
|
|
601
|
-
p.off("promptDlg",
|
|
598
|
+
O(() => {
|
|
599
|
+
p.on("promptDlg", A);
|
|
600
|
+
}), B(() => {
|
|
601
|
+
p.off("promptDlg", A);
|
|
602
602
|
});
|
|
603
603
|
const W = () => {
|
|
604
|
-
t.value = !1,
|
|
604
|
+
t.value = !1, R || (p.emit("promptDlgResult" + b, u.value ?? ""), R = !0);
|
|
605
605
|
};
|
|
606
|
-
return
|
|
607
|
-
!
|
|
608
|
-
}), (
|
|
609
|
-
const
|
|
610
|
-
return
|
|
606
|
+
return K(t, (_) => {
|
|
607
|
+
!_ && !R && (p.emit("promptDlgResult" + b, void 0), R = !0);
|
|
608
|
+
}), (_, y) => {
|
|
609
|
+
const U = h("v-card-text"), _e = h("v-text-field"), de = h("v-form"), P = h("v-btn"), fe = h("v-card-actions"), ie = h("v-card"), ge = h("v-dialog");
|
|
610
|
+
return S(), T(ge, {
|
|
611
611
|
modelValue: z(t),
|
|
612
|
-
"onUpdate:modelValue":
|
|
612
|
+
"onUpdate:modelValue": y[2] || (y[2] = (M) => G(t) ? t.value = M : null),
|
|
613
613
|
onKeydown: [
|
|
614
|
-
|
|
615
|
-
F(
|
|
614
|
+
y[3] || (y[3] = F($((M) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
615
|
+
F($(W, ["stop", "prevent"]), ["enter"])
|
|
616
616
|
],
|
|
617
617
|
transition: "dialog-top-transition",
|
|
618
618
|
"max-width": "600px"
|
|
619
619
|
}, {
|
|
620
|
-
default:
|
|
621
|
-
|
|
622
|
-
default:
|
|
623
|
-
o.value ? (
|
|
624
|
-
default:
|
|
625
|
-
q(
|
|
620
|
+
default: w(() => [
|
|
621
|
+
x(ie, { title: l.value }, {
|
|
622
|
+
default: w(() => [
|
|
623
|
+
o.value ? (S(), T(U, { key: 0 }, {
|
|
624
|
+
default: w(() => [
|
|
625
|
+
j(q(o.value), 1)
|
|
626
626
|
]),
|
|
627
627
|
_: 1
|
|
628
628
|
})) : ke("", !0),
|
|
629
|
-
|
|
630
|
-
default:
|
|
631
|
-
|
|
629
|
+
x(de, { class: "mx-3" }, {
|
|
630
|
+
default: w(() => [
|
|
631
|
+
x(_e, {
|
|
632
632
|
modelValue: u.value,
|
|
633
|
-
"onUpdate:modelValue":
|
|
633
|
+
"onUpdate:modelValue": y[0] || (y[0] = (M) => u.value = M),
|
|
634
634
|
label: n.value,
|
|
635
635
|
placeholder: r.value,
|
|
636
636
|
rules: c.value,
|
|
637
637
|
ref_key: "target",
|
|
638
|
-
ref:
|
|
638
|
+
ref: d
|
|
639
639
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
640
640
|
]),
|
|
641
641
|
_: 1
|
|
642
642
|
}),
|
|
643
|
-
|
|
644
|
-
default:
|
|
645
|
-
|
|
646
|
-
onClick:
|
|
647
|
-
color:
|
|
643
|
+
x(fe, { class: "d-flex justify-end" }, {
|
|
644
|
+
default: w(() => [
|
|
645
|
+
x(P, {
|
|
646
|
+
onClick: y[1] || (y[1] = (M) => t.value = !1),
|
|
647
|
+
color: C.value,
|
|
648
648
|
variant: "text"
|
|
649
649
|
}, {
|
|
650
|
-
default:
|
|
651
|
-
q(
|
|
650
|
+
default: w(() => [
|
|
651
|
+
j(q(k.value), 1)
|
|
652
652
|
]),
|
|
653
653
|
_: 1
|
|
654
654
|
}, 8, ["color"]),
|
|
655
|
-
|
|
655
|
+
x(P, {
|
|
656
656
|
onClick: W,
|
|
657
|
-
color:
|
|
657
|
+
color: V.value,
|
|
658
658
|
variant: "text"
|
|
659
659
|
}, {
|
|
660
|
-
default:
|
|
661
|
-
q(
|
|
660
|
+
default: w(() => [
|
|
661
|
+
j(q(g.value), 1)
|
|
662
662
|
]),
|
|
663
663
|
_: 1
|
|
664
664
|
}, 8, ["color"])
|
|
@@ -673,7 +673,7 @@ const Me = /* @__PURE__ */ T({
|
|
|
673
673
|
}, 8, ["modelValue", "onKeydown"]);
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
}),
|
|
676
|
+
}), Je = { class: "mx-auto my-auto" }, Qe = { class: "d-flex align-center justify-center w-100 h-100" }, Ye = /* @__PURE__ */ E({
|
|
677
677
|
__name: "index",
|
|
678
678
|
setup(e) {
|
|
679
679
|
const a = J(), { open: t } = Z("waitDlg"), l = () => {
|
|
@@ -681,29 +681,29 @@ const Me = /* @__PURE__ */ T({
|
|
|
681
681
|
}, o = () => {
|
|
682
682
|
t.value = !1;
|
|
683
683
|
};
|
|
684
|
-
return
|
|
684
|
+
return O(() => {
|
|
685
685
|
p.on("openWaitDlg", l), p.on("closeWaitDlg", o);
|
|
686
|
-
}),
|
|
686
|
+
}), B(() => {
|
|
687
687
|
p.off("openWaitDlg", l), p.off("closeWaitDlg", o);
|
|
688
688
|
}), (n, r) => {
|
|
689
|
-
const c =
|
|
690
|
-
return
|
|
689
|
+
const c = h("v-card"), u = h("v-dialog");
|
|
690
|
+
return S(), T(u, {
|
|
691
691
|
modelValue: z(t),
|
|
692
692
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => G(t) ? t.value = s : null),
|
|
693
693
|
persistent: "",
|
|
694
694
|
"no-click-animation": "",
|
|
695
695
|
fullscreen: ""
|
|
696
696
|
}, {
|
|
697
|
-
default:
|
|
698
|
-
|
|
699
|
-
|
|
697
|
+
default: w(() => [
|
|
698
|
+
m("div", Je, [
|
|
699
|
+
x(c, {
|
|
700
700
|
width: "300px",
|
|
701
701
|
height: "80px",
|
|
702
702
|
loading: ""
|
|
703
703
|
}, {
|
|
704
|
-
default:
|
|
705
|
-
|
|
706
|
-
|
|
704
|
+
default: w(() => [
|
|
705
|
+
m("div", Qe, [
|
|
706
|
+
m("span", null, q(z(a).t("waitingResponse")), 1)
|
|
707
707
|
])
|
|
708
708
|
]),
|
|
709
709
|
_: 1
|
|
@@ -714,11 +714,11 @@ const Me = /* @__PURE__ */ T({
|
|
|
714
714
|
}, 8, ["modelValue"]);
|
|
715
715
|
};
|
|
716
716
|
}
|
|
717
|
-
}),
|
|
718
|
-
e.component("x-confirm-dlg",
|
|
717
|
+
}), Ze = (e) => {
|
|
718
|
+
e.component("x-confirm-dlg", $e), e.component("x-loading", Ke), e.component("x-message", Xe), e.component("x-prompt-dlg", Ge), e.component("x-wait-dlg", Ye);
|
|
719
719
|
};
|
|
720
|
-
function
|
|
721
|
-
const e =
|
|
720
|
+
function vt() {
|
|
721
|
+
const e = N(), a = i(() => e.global.current.value.colors.primary), t = i(() => e.global.current.value.colors.secondary), l = i(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = i(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = i(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = i(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = i(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
722
722
|
return {
|
|
723
723
|
primaryColor: a,
|
|
724
724
|
secondaryColor: t,
|
|
@@ -729,33 +729,41 @@ function gt() {
|
|
|
729
729
|
borderColor: c
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
const e =
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
732
|
+
function mt() {
|
|
733
|
+
const e = Se(), a = re(), t = N(), l = ne(), { dark: o, locale: n, permissionObjects: r, permissionChecksum: c } = Ce(l), u = ce();
|
|
734
|
+
K(
|
|
735
|
+
o,
|
|
736
|
+
() => {
|
|
737
|
+
t.global.name.value = l.dark ? "dark" : "light";
|
|
738
|
+
},
|
|
739
|
+
{ immediate: !0 }
|
|
740
|
+
);
|
|
741
|
+
const s = (g) => {
|
|
742
|
+
o.value = g;
|
|
743
|
+
}, v = (g) => {
|
|
744
|
+
n.value = g;
|
|
745
|
+
}, C = (g) => {
|
|
746
|
+
r.value = g.permissionObjects, c.value = g.permissionChecksum;
|
|
747
|
+
}, k = () => {
|
|
748
|
+
if (!u.isEmpty()) {
|
|
749
|
+
u.hasView("waitDlg") || u.popView();
|
|
742
750
|
return;
|
|
743
751
|
}
|
|
744
|
-
const
|
|
745
|
-
(
|
|
746
|
-
},
|
|
747
|
-
if (
|
|
748
|
-
|
|
752
|
+
const g = Y(e.path);
|
|
753
|
+
(g == null ? void 0 : g.level) === 0 || a.back();
|
|
754
|
+
}, V = (g) => {
|
|
755
|
+
if (g.key === "Escape") {
|
|
756
|
+
k();
|
|
749
757
|
return;
|
|
750
758
|
}
|
|
751
759
|
};
|
|
752
|
-
|
|
753
|
-
p.on("darkchange",
|
|
754
|
-
}),
|
|
755
|
-
p.off("darkchange",
|
|
760
|
+
O(() => {
|
|
761
|
+
p.on("darkchange", s), p.on("localechange", v), p.on("permissionchange", C), p.on("backbutton", k), window.addEventListener("keydown", V);
|
|
762
|
+
}), B(() => {
|
|
763
|
+
p.off("darkchange", s), p.off("localechange", v), p.off("permissionchange", C), p.off("backbutton", k), window.removeEventListener("keydown", V);
|
|
756
764
|
});
|
|
757
765
|
}
|
|
758
|
-
function
|
|
766
|
+
function ht() {
|
|
759
767
|
const e = ne();
|
|
760
768
|
function a(t, l) {
|
|
761
769
|
const o = e.permissionObjects[t];
|
|
@@ -763,36 +771,36 @@ function mt() {
|
|
|
763
771
|
}
|
|
764
772
|
return { verifyPermission: a };
|
|
765
773
|
}
|
|
766
|
-
function
|
|
767
|
-
const e =
|
|
774
|
+
function wt() {
|
|
775
|
+
const e = N(), a = be(), t = i(() => e.current.value.dark), l = i(() => !!window.cordova), o = i(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
768
776
|
return { dark: t, sysBarAvail: l, compactWidth: o };
|
|
769
777
|
}
|
|
770
|
-
const
|
|
778
|
+
const yt = { install: Ze };
|
|
771
779
|
export {
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
780
|
+
Ee as Permission,
|
|
781
|
+
nt as appAppear,
|
|
782
|
+
st as closeWaitDlg,
|
|
783
|
+
lt as createAxios,
|
|
784
|
+
yt as default,
|
|
777
785
|
p as eventBus,
|
|
778
786
|
te as isExist,
|
|
779
787
|
Y as matchRouteMeta,
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
+
_t as messageError,
|
|
789
|
+
dt as messageInfo,
|
|
790
|
+
ft as messageSuccess,
|
|
791
|
+
it as messageWarning,
|
|
792
|
+
gt as onBeforeEach,
|
|
793
|
+
ct as openConfirmDlg,
|
|
794
|
+
ut as openPromptDlg,
|
|
795
|
+
pt as openWaitDlg,
|
|
788
796
|
oe as routeTransName,
|
|
789
|
-
|
|
797
|
+
vt as useColor,
|
|
790
798
|
ne as useGlobalStore,
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
799
|
+
mt as useMicroApp,
|
|
800
|
+
ht as usePermission,
|
|
801
|
+
wt as useSystem,
|
|
794
802
|
ce as useViewMgrStore,
|
|
795
803
|
Z as useViewStack,
|
|
796
|
-
|
|
804
|
+
rt as waitMs,
|
|
797
805
|
Q as waitUtil
|
|
798
806
|
};
|