x-essential-lib 0.8.4 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/message/item.vue.d.ts +2 -4
- package/dist/index.js +283 -281
- package/package.json +22 -20
|
@@ -3,13 +3,11 @@ interface Props {
|
|
|
3
3
|
id: number;
|
|
4
4
|
type: Type;
|
|
5
5
|
text: string;
|
|
6
|
-
timeout
|
|
6
|
+
timeout?: number;
|
|
7
7
|
}
|
|
8
8
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
timeout: (...args: any[]) => void;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
11
11
|
onTimeout?: ((...args: any[]) => any) | undefined;
|
|
12
|
-
}>, {
|
|
13
|
-
timeout: number;
|
|
14
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
13
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-
|
|
2
|
-
import { computed as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-74835a85]{width:600px}@media (max-width: 600px){.x-item[data-v-74835a85]{width:calc(100vw - 16px)}}.x-cont[data-v-c6a59757]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { computed as x, provide as T, inject as A, ref as g, getCurrentInstance as _e, hasInjectionContext as ie, watch as K, getCurrentScope as je, onScopeDispose as Re, shallowRef as Z, watchEffect as Ve, toValue as q, onMounted as B, unref as z, onBeforeUnmount as $, onBeforeMount as Ae, defineComponent as E, resolveComponent as b, createBlock as V, openBlock as D, withKeys as G, withModifiers as H, isRef as J, withCtx as w, createVNode as L, createTextVNode as O, toDisplayString as R, Transition as qe, createElementBlock as te, createCommentVNode as oe, normalizeStyle as de, createElementVNode as y, Fragment as Oe, renderList as Ie, useTemplateRef as Te } from "vue";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
|
-
import { useTheme as fe, useDisplay as
|
|
5
|
-
import { useRouter as ge, useRoute as
|
|
4
|
+
import { useTheme as fe, useDisplay as Be } from "vuetify";
|
|
5
|
+
import { useRouter as ge, useRoute as Ee } from "vue-router";
|
|
6
6
|
import We from "axios";
|
|
7
7
|
function Ue() {
|
|
8
|
-
const e = fe(), t =
|
|
8
|
+
const e = fe(), t = x(() => e.global.current.value.colors.primary), a = x(() => e.global.current.value.colors.secondary), o = x(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = x(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = x(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = x(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = x(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
9
9
|
return {
|
|
10
10
|
primaryColor: t,
|
|
11
11
|
secondaryColor: a,
|
|
12
12
|
backgroundColor0: o,
|
|
13
|
-
backgroundColor1:
|
|
13
|
+
backgroundColor1: n,
|
|
14
14
|
backgroundColor2: l,
|
|
15
15
|
highlightColor: c,
|
|
16
|
-
borderColor:
|
|
16
|
+
borderColor: r
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
/*! js-cookie v3.0.5 | MIT */
|
|
@@ -37,47 +37,47 @@ var $e = {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
function ae(e, t) {
|
|
40
|
-
function a(
|
|
40
|
+
function a(n, l, c) {
|
|
41
41
|
if (!(typeof document > "u")) {
|
|
42
|
-
c = N({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()),
|
|
43
|
-
var
|
|
42
|
+
c = N({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
43
|
+
var r = "";
|
|
44
44
|
for (var u in c)
|
|
45
|
-
c[u] && (
|
|
46
|
-
return document.cookie =
|
|
45
|
+
c[u] && (r += "; " + u, c[u] !== !0 && (r += "=" + c[u].split(";")[0]));
|
|
46
|
+
return document.cookie = n + "=" + e.write(l, n) + r;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function o(
|
|
50
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
51
|
-
for (var l = document.cookie ? document.cookie.split("; ") : [], c = {},
|
|
52
|
-
var u = l[
|
|
49
|
+
function o(n) {
|
|
50
|
+
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
51
|
+
for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, r = 0; r < l.length; r++) {
|
|
52
|
+
var u = l[r].split("="), s = u.slice(1).join("=");
|
|
53
53
|
try {
|
|
54
|
-
var
|
|
55
|
-
if (c[
|
|
54
|
+
var i = decodeURIComponent(u[0]);
|
|
55
|
+
if (c[i] = e.read(s, i), n === i)
|
|
56
56
|
break;
|
|
57
57
|
} catch {
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
return
|
|
60
|
+
return n ? c[n] : c;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return Object.create(
|
|
64
64
|
{
|
|
65
65
|
set: a,
|
|
66
66
|
get: o,
|
|
67
|
-
remove: function(
|
|
67
|
+
remove: function(n, l) {
|
|
68
68
|
a(
|
|
69
|
-
|
|
69
|
+
n,
|
|
70
70
|
"",
|
|
71
71
|
N({}, l, {
|
|
72
72
|
expires: -1
|
|
73
73
|
})
|
|
74
74
|
);
|
|
75
75
|
},
|
|
76
|
-
withAttributes: function(
|
|
77
|
-
return ae(this.converter, N({}, this.attributes,
|
|
76
|
+
withAttributes: function(n) {
|
|
77
|
+
return ae(this.converter, N({}, this.attributes, n));
|
|
78
78
|
},
|
|
79
|
-
withConverter: function(
|
|
80
|
-
return ae(N({}, this.converter,
|
|
79
|
+
withConverter: function(n) {
|
|
80
|
+
return ae(N({}, this.converter, n), this.attributes);
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -112,9 +112,9 @@ function ze(e) {
|
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
114
|
function Fe(e, t) {
|
|
115
|
-
var
|
|
115
|
+
var n, l;
|
|
116
116
|
const o = e.response;
|
|
117
|
-
return o && (o.status === 401 && Xe(), (
|
|
117
|
+
return o && (o.status === 401 && Xe(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
|
|
118
118
|
code: o.status,
|
|
119
119
|
message: o.statusText
|
|
120
120
|
})), Promise.reject(e);
|
|
@@ -131,10 +131,10 @@ function Ne(e) {
|
|
|
131
131
|
o && (a ? o.splice(o.indexOf(a) >>> 0, 1) : e.set(t, []));
|
|
132
132
|
}, emit: function(t, a) {
|
|
133
133
|
var o = e.get(t);
|
|
134
|
-
o && o.slice().map(function(
|
|
135
|
-
|
|
136
|
-
}), (o = e.get("*")) && o.slice().map(function(
|
|
137
|
-
|
|
134
|
+
o && o.slice().map(function(n) {
|
|
135
|
+
n(a);
|
|
136
|
+
}), (o = e.get("*")) && o.slice().map(function(n) {
|
|
137
|
+
n(t, a);
|
|
138
138
|
});
|
|
139
139
|
} };
|
|
140
140
|
}
|
|
@@ -148,9 +148,9 @@ async function Yt(e) {
|
|
|
148
148
|
}
|
|
149
149
|
async function re(e, t, a) {
|
|
150
150
|
const o = Date.now();
|
|
151
|
-
return new Promise((
|
|
151
|
+
return new Promise((n) => {
|
|
152
152
|
const l = async () => {
|
|
153
|
-
e() ?
|
|
153
|
+
e() ? n(!0) : t && Date.now() - o > t ? n(!1) : setTimeout(l, a ?? 30);
|
|
154
154
|
};
|
|
155
155
|
l();
|
|
156
156
|
});
|
|
@@ -176,8 +176,8 @@ async function Pt(e) {
|
|
|
176
176
|
let t = !1, a;
|
|
177
177
|
const o = (l) => {
|
|
178
178
|
a = l, t = !0;
|
|
179
|
-
},
|
|
180
|
-
return p.on("confirmDlgResult" +
|
|
179
|
+
}, n = me();
|
|
180
|
+
return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await re(() => t), p.off("confirmDlgResult" + n, o), a;
|
|
181
181
|
}
|
|
182
182
|
async function ea(e) {
|
|
183
183
|
if (!ve())
|
|
@@ -185,8 +185,8 @@ async function ea(e) {
|
|
|
185
185
|
let t = !1, a;
|
|
186
186
|
const o = (l) => {
|
|
187
187
|
a = l, t = !0;
|
|
188
|
-
},
|
|
189
|
-
return p.on("promptDlgResult" +
|
|
188
|
+
}, n = me();
|
|
189
|
+
return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await re(() => t), p.off("promptDlgResult" + n, o), a;
|
|
190
190
|
}
|
|
191
191
|
function ta(e) {
|
|
192
192
|
p.emit("openWaitDlg", { text: e });
|
|
@@ -211,11 +211,11 @@ function se(e, t) {
|
|
|
211
211
|
if (!e)
|
|
212
212
|
return !1;
|
|
213
213
|
let a = e;
|
|
214
|
-
return Object.keys(a).length <= 0 || (t.split("/").forEach((
|
|
214
|
+
return Object.keys(a).length <= 0 || (t.split("/").forEach((n) => {
|
|
215
215
|
if (Object.keys(a).length <= 0)
|
|
216
216
|
return !0;
|
|
217
|
-
if (a[
|
|
218
|
-
a = a[
|
|
217
|
+
if (a[n])
|
|
218
|
+
a = a[n];
|
|
219
219
|
else
|
|
220
220
|
return !1;
|
|
221
221
|
}), Object.keys(a).length <= 0);
|
|
@@ -369,29 +369,29 @@ const lt = [
|
|
|
369
369
|
mainActive: 2
|
|
370
370
|
}
|
|
371
371
|
];
|
|
372
|
-
function
|
|
372
|
+
function Q(e) {
|
|
373
373
|
let t, a = 0;
|
|
374
|
-
const o = e.split("/").filter((
|
|
375
|
-
return lt.forEach((
|
|
376
|
-
const l =
|
|
374
|
+
const o = e.split("/").filter((n) => n.trim() !== "");
|
|
375
|
+
return lt.forEach((n) => {
|
|
376
|
+
const l = n.path.split("/").filter((r) => r.trim() !== "");
|
|
377
377
|
let c = 0;
|
|
378
|
-
for (let
|
|
378
|
+
for (let r = 0; r < o.length && !(r >= l.length || o[r] !== l[r]); r++)
|
|
379
379
|
c++;
|
|
380
|
-
c > 0 && c > a && (t =
|
|
380
|
+
c > 0 && c > a && (t = n, a = c);
|
|
381
381
|
}), t;
|
|
382
382
|
}
|
|
383
|
-
const
|
|
383
|
+
const Y = g("");
|
|
384
384
|
function S(e, t, a) {
|
|
385
385
|
t === "/" && (t = a);
|
|
386
|
-
const o =
|
|
386
|
+
const o = Q(e), n = Q(t);
|
|
387
387
|
if (!o) {
|
|
388
388
|
console.assert(!1);
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !
|
|
391
|
+
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !n)
|
|
392
392
|
return;
|
|
393
|
-
const l = o.app ===
|
|
394
|
-
l ? c ?
|
|
393
|
+
const l = o.app === n.app, c = o.path === n.path, r = o.level >= n.level;
|
|
394
|
+
l ? c ? Y.value = "" : Y.value = r ? "inner-left" : "inner-right" : (Y.value = "", Ze(o.app, r));
|
|
395
395
|
}
|
|
396
396
|
function ct() {
|
|
397
397
|
return !!I.get("accessToken");
|
|
@@ -400,41 +400,41 @@ function ut() {
|
|
|
400
400
|
return !!I.get("activeOrg");
|
|
401
401
|
}
|
|
402
402
|
function _a(e, t, a, o) {
|
|
403
|
-
const
|
|
403
|
+
const n = ct(), l = ut(), c = Q(e.path);
|
|
404
404
|
if (!c) {
|
|
405
405
|
console.assert(!1), a();
|
|
406
406
|
return;
|
|
407
407
|
}
|
|
408
408
|
if (c.requiredState === "auth")
|
|
409
|
-
if (
|
|
409
|
+
if (n)
|
|
410
410
|
if (l) {
|
|
411
|
-
const
|
|
412
|
-
S(
|
|
411
|
+
const r = "/main";
|
|
412
|
+
S(r, t.path, o), a({ path: r });
|
|
413
413
|
} else
|
|
414
414
|
S(e.path, t.path, o), a();
|
|
415
415
|
else {
|
|
416
|
-
const
|
|
417
|
-
S(
|
|
416
|
+
const r = "/passport/login";
|
|
417
|
+
S(r, t.path, o), a({ path: r });
|
|
418
418
|
}
|
|
419
419
|
else if (c.requiredState === "org")
|
|
420
|
-
if (
|
|
420
|
+
if (n)
|
|
421
421
|
if (l)
|
|
422
422
|
S(e.path, t.path, o), a();
|
|
423
423
|
else {
|
|
424
|
-
const
|
|
425
|
-
S(
|
|
424
|
+
const r = "/org/joinOrCreate";
|
|
425
|
+
S(r, t.path, o), a({ path: r });
|
|
426
426
|
}
|
|
427
427
|
else {
|
|
428
|
-
const
|
|
429
|
-
S(
|
|
428
|
+
const r = "/passport/login";
|
|
429
|
+
S(r, t.path, o), a({ path: r });
|
|
430
430
|
}
|
|
431
|
-
else if (
|
|
431
|
+
else if (n)
|
|
432
432
|
if (l) {
|
|
433
|
-
const
|
|
434
|
-
S(
|
|
433
|
+
const r = "/main";
|
|
434
|
+
S(r, t.path, o), a({ path: r });
|
|
435
435
|
} else {
|
|
436
|
-
const
|
|
437
|
-
S(
|
|
436
|
+
const r = "/org/joinOrCreate";
|
|
437
|
+
S(r, t.path, o), a({ path: r });
|
|
438
438
|
}
|
|
439
439
|
else
|
|
440
440
|
S(e.path, t.path, o), a();
|
|
@@ -465,19 +465,19 @@ function da(e) {
|
|
|
465
465
|
function dt(e) {
|
|
466
466
|
return je() ? (Re(e), !0) : !1;
|
|
467
467
|
}
|
|
468
|
-
const
|
|
468
|
+
const P = /* @__PURE__ */ new WeakMap(), ft = (...e) => {
|
|
469
469
|
var t;
|
|
470
470
|
const a = e[0], o = (t = _e()) == null ? void 0 : t.proxy;
|
|
471
471
|
if (o == null && !ie())
|
|
472
472
|
throw new Error("injectLocal must be called in setup");
|
|
473
|
-
return o &&
|
|
473
|
+
return o && P.has(o) && a in P.get(o) ? P.get(o)[a] : A(...e);
|
|
474
474
|
}, gt = typeof window < "u" && typeof document < "u";
|
|
475
475
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
476
476
|
const vt = Object.prototype.toString, mt = (e) => vt.call(e) === "[object Object]";
|
|
477
477
|
function pe(e) {
|
|
478
478
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function ee(e) {
|
|
481
481
|
return Array.isArray(e) ? e : [e];
|
|
482
482
|
}
|
|
483
483
|
function ht(e, t, a) {
|
|
@@ -498,29 +498,29 @@ function yt(e) {
|
|
|
498
498
|
}
|
|
499
499
|
function wt(...e) {
|
|
500
500
|
const t = [], a = () => {
|
|
501
|
-
t.forEach((
|
|
502
|
-
}, o = (
|
|
503
|
-
const
|
|
504
|
-
return
|
|
501
|
+
t.forEach((r) => r()), t.length = 0;
|
|
502
|
+
}, o = (r, u, s, i) => (r.addEventListener(u, s, i), () => r.removeEventListener(u, s, i)), n = x(() => {
|
|
503
|
+
const r = ee(q(e[0])).filter((u) => u != null);
|
|
504
|
+
return r.every((u) => typeof u != "string") ? r : void 0;
|
|
505
505
|
}), l = ht(
|
|
506
506
|
() => {
|
|
507
|
-
var
|
|
507
|
+
var r, u;
|
|
508
508
|
return [
|
|
509
|
-
(u = (
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
(u = (r = n.value) == null ? void 0 : r.map((s) => yt(s))) != null ? u : [Le].filter((s) => s != null),
|
|
510
|
+
ee(q(n.value ? e[1] : e[0])),
|
|
511
|
+
ee(z(n.value ? e[2] : e[1])),
|
|
512
512
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
513
|
-
q(
|
|
513
|
+
q(n.value ? e[3] : e[2])
|
|
514
514
|
];
|
|
515
515
|
},
|
|
516
|
-
([
|
|
517
|
-
if (a(), !(
|
|
516
|
+
([r, u, s, i]) => {
|
|
517
|
+
if (a(), !(r != null && r.length) || !(u != null && u.length) || !(s != null && s.length))
|
|
518
518
|
return;
|
|
519
|
-
const
|
|
519
|
+
const v = mt(i) ? { ...i } : i;
|
|
520
520
|
t.push(
|
|
521
|
-
...
|
|
522
|
-
(
|
|
523
|
-
(m) => s.map((_) => o(
|
|
521
|
+
...r.flatMap(
|
|
522
|
+
(k) => u.flatMap(
|
|
523
|
+
(m) => s.map((_) => o(k, m, _, v))
|
|
524
524
|
)
|
|
525
525
|
)
|
|
526
526
|
);
|
|
@@ -532,14 +532,14 @@ function wt(...e) {
|
|
|
532
532
|
return dt(a), c;
|
|
533
533
|
}
|
|
534
534
|
function xt() {
|
|
535
|
-
const e =
|
|
536
|
-
return t &&
|
|
535
|
+
const e = Z(!1), t = _e();
|
|
536
|
+
return t && B(() => {
|
|
537
537
|
e.value = !0;
|
|
538
538
|
}, t), e;
|
|
539
539
|
}
|
|
540
540
|
function bt(e) {
|
|
541
541
|
const t = xt();
|
|
542
|
-
return
|
|
542
|
+
return x(() => (t.value, !!e()));
|
|
543
543
|
}
|
|
544
544
|
const kt = Symbol("vueuse-ssr-width");
|
|
545
545
|
function Ct() {
|
|
@@ -547,80 +547,82 @@ function Ct() {
|
|
|
547
547
|
return typeof e == "number" ? e : void 0;
|
|
548
548
|
}
|
|
549
549
|
function Lt(e, t = {}) {
|
|
550
|
-
const { window: a = Le, ssrWidth: o = Ct() } = t,
|
|
551
|
-
|
|
550
|
+
const { window: a = Le, ssrWidth: o = Ct() } = t, n = bt(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = Z(typeof o == "number"), c = Z(), r = Z(!1), u = (s) => {
|
|
551
|
+
r.value = s.matches;
|
|
552
552
|
};
|
|
553
553
|
return Ve(() => {
|
|
554
554
|
if (l.value) {
|
|
555
|
-
l.value = !
|
|
555
|
+
l.value = !n.value;
|
|
556
556
|
const s = q(e).split(",");
|
|
557
|
-
|
|
558
|
-
const
|
|
559
|
-
let _ = !!(
|
|
560
|
-
return
|
|
557
|
+
r.value = s.some((i) => {
|
|
558
|
+
const v = i.includes("not all"), k = i.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = i.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
559
|
+
let _ = !!(k || m);
|
|
560
|
+
return k && _ && (_ = o >= pe(k[1])), m && _ && (_ = o <= pe(m[1])), v ? !_ : _;
|
|
561
561
|
});
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
|
-
|
|
565
|
-
}), wt(c, "change", u, { passive: !0 }),
|
|
564
|
+
n.value && (c.value = a.matchMedia(q(e)), r.value = c.value.matches);
|
|
565
|
+
}), wt(c, "change", u, { passive: !0 }), x(() => r.value);
|
|
566
566
|
}
|
|
567
567
|
function Dt(e) {
|
|
568
568
|
return Lt("(prefers-color-scheme: dark)", e);
|
|
569
569
|
}
|
|
570
|
-
function fa(e, t, a, o,
|
|
571
|
-
const c =
|
|
572
|
-
Ye(e), Pe(t), et(a), at(o), ot(
|
|
570
|
+
function fa(e, t, a, o, n, l) {
|
|
571
|
+
const c = Ee(), r = ge();
|
|
572
|
+
Ye(e), Pe(t), et(a), at(o), ot(n), nt(l);
|
|
573
573
|
const u = fe(), s = Dt();
|
|
574
574
|
K(
|
|
575
575
|
e,
|
|
576
576
|
() => {
|
|
577
|
-
let
|
|
578
|
-
typeof e.value == "boolean" ?
|
|
577
|
+
let d = !1;
|
|
578
|
+
typeof e.value == "boolean" ? d = e.value : d = s.value, u.global.name.value = d ? "dark" : "light";
|
|
579
579
|
},
|
|
580
580
|
{ immediate: !0 }
|
|
581
581
|
);
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
g();
|
|
585
|
-
return;
|
|
586
|
-
}
|
|
587
|
-
}, g = () => {
|
|
588
|
-
var k;
|
|
582
|
+
const i = () => {
|
|
583
|
+
var C;
|
|
589
584
|
if (!st(l)) {
|
|
590
585
|
Ce(l, "waitDlg") || it(l);
|
|
591
586
|
return;
|
|
592
587
|
}
|
|
593
|
-
const
|
|
594
|
-
if (!
|
|
588
|
+
const d = Q(c.path);
|
|
589
|
+
if (!d) {
|
|
595
590
|
console.assert(!1);
|
|
596
591
|
return;
|
|
597
592
|
}
|
|
598
|
-
|
|
593
|
+
d.level === 0 ? (C = navigator == null ? void 0 : navigator.Backbutton) == null || C.goHome(
|
|
599
594
|
() => {
|
|
600
595
|
},
|
|
601
596
|
() => {
|
|
602
597
|
}
|
|
603
|
-
) :
|
|
598
|
+
) : r.back();
|
|
599
|
+
}, v = (d) => {
|
|
600
|
+
if (d.key === "Escape") {
|
|
601
|
+
i();
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
}, k = () => {
|
|
605
|
+
i();
|
|
604
606
|
};
|
|
605
|
-
|
|
606
|
-
window.addEventListener("keydown",
|
|
607
|
+
B(() => {
|
|
608
|
+
window.addEventListener("keydown", v), p.on("backbutton", k);
|
|
607
609
|
}), $(() => {
|
|
608
|
-
window.removeEventListener("keydown",
|
|
610
|
+
window.removeEventListener("keydown", v), p.off("backbutton", k);
|
|
609
611
|
});
|
|
610
|
-
const
|
|
611
|
-
e.value =
|
|
612
|
-
},
|
|
613
|
-
t.value =
|
|
614
|
-
},
|
|
615
|
-
const
|
|
616
|
-
a.value =
|
|
617
|
-
},
|
|
618
|
-
|
|
612
|
+
const m = (d) => {
|
|
613
|
+
e.value = d;
|
|
614
|
+
}, _ = (d) => {
|
|
615
|
+
t.value = d;
|
|
616
|
+
}, M = (d) => {
|
|
617
|
+
const C = d;
|
|
618
|
+
a.value = C[0], o.value = C[1];
|
|
619
|
+
}, h = (d) => {
|
|
620
|
+
n.value = d;
|
|
619
621
|
};
|
|
620
622
|
Ae(() => {
|
|
621
|
-
p.on("updateDark",
|
|
623
|
+
p.on("updateDark", m), p.on("updateLocale", _), p.on("updatePermission", M), p.on("updateLastAppPath", h), p.emit("syncGlobalState");
|
|
622
624
|
}), $(() => {
|
|
623
|
-
p.off("updateDark",
|
|
625
|
+
p.off("updateDark", m), p.off("updateLocale", _), p.off("updatePermission", M), p.off("updateLastAppPath", h);
|
|
624
626
|
});
|
|
625
627
|
}
|
|
626
628
|
function ga() {
|
|
@@ -635,81 +637,81 @@ function ga() {
|
|
|
635
637
|
return { verifyPermission: t };
|
|
636
638
|
}
|
|
637
639
|
function va() {
|
|
638
|
-
const e =
|
|
640
|
+
const e = x(() => !!window.cordova), t = Be(), a = x(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
639
641
|
return { sysBarAvail: e, compactWidth: a };
|
|
640
642
|
}
|
|
641
643
|
function le(e, t) {
|
|
642
|
-
const a = rt(), o =
|
|
644
|
+
const a = rt(), o = x({
|
|
643
645
|
get() {
|
|
644
646
|
return Ce(a, e);
|
|
645
647
|
},
|
|
646
648
|
set(l) {
|
|
647
649
|
l ? pt(a, e) : _t(a, e);
|
|
648
650
|
}
|
|
649
|
-
}),
|
|
651
|
+
}), n = (l) => {
|
|
650
652
|
t == null || t(l), o.value = !0;
|
|
651
653
|
};
|
|
652
|
-
return
|
|
653
|
-
p.on(e,
|
|
654
|
+
return B(() => {
|
|
655
|
+
p.on(e, n);
|
|
654
656
|
}), $(() => {
|
|
655
|
-
p.off(e,
|
|
657
|
+
p.off(e, n);
|
|
656
658
|
}), { open: o };
|
|
657
659
|
}
|
|
658
|
-
const Mt = /* @__PURE__ */
|
|
660
|
+
const Mt = /* @__PURE__ */ E({
|
|
659
661
|
__name: "index",
|
|
660
662
|
setup(e) {
|
|
661
|
-
const { t } = ne(), a =
|
|
663
|
+
const { t } = ne(), a = g(""), o = g(""), n = g(""), l = g(""), c = g(""), r = g("");
|
|
662
664
|
let u = 0, s = !1;
|
|
663
|
-
const
|
|
664
|
-
var
|
|
665
|
+
const i = (m) => {
|
|
666
|
+
var M, h, d, C;
|
|
665
667
|
const _ = m;
|
|
666
|
-
a.value = _.title, o.value = _.text,
|
|
667
|
-
}, { open:
|
|
668
|
-
|
|
668
|
+
a.value = _.title, o.value = _.text, n.value = ((M = _.cancel) == null ? void 0 : M.color) ?? "primary", l.value = ((h = _.cancel) == null ? void 0 : h.text) ?? t("dlg.common.cancel"), c.value = ((d = _.confirm) == null ? void 0 : d.color) ?? "primary", r.value = ((C = _.confirm) == null ? void 0 : C.text) ?? t("dlg.common.confirm"), u = _.seq, s = !1, v.value = !0;
|
|
669
|
+
}, { open: v } = le("confirmDlg", i), k = () => {
|
|
670
|
+
v.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
|
|
669
671
|
};
|
|
670
|
-
return K(
|
|
672
|
+
return K(v, (m) => {
|
|
671
673
|
!m && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
|
|
672
674
|
}), (m, _) => {
|
|
673
|
-
const
|
|
674
|
-
return
|
|
675
|
-
modelValue: z(
|
|
676
|
-
"onUpdate:modelValue": _[1] || (_[1] = (j) =>
|
|
675
|
+
const M = b("v-card-text"), h = b("v-btn"), d = b("v-card-actions"), C = b("v-card"), f = b("v-dialog");
|
|
676
|
+
return D(), V(f, {
|
|
677
|
+
modelValue: z(v),
|
|
678
|
+
"onUpdate:modelValue": _[1] || (_[1] = (j) => J(v) ? v.value = j : null),
|
|
677
679
|
transition: "dialog-top-transition",
|
|
678
680
|
"max-width": "600px",
|
|
679
681
|
attach: "",
|
|
680
682
|
onKeydown: [
|
|
681
|
-
_[2] || (_[2] =
|
|
682
|
-
|
|
683
|
+
_[2] || (_[2] = G(H((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
684
|
+
G(H(k, ["stop", "prevent"]), ["enter"])
|
|
683
685
|
]
|
|
684
686
|
}, {
|
|
685
|
-
default:
|
|
686
|
-
C
|
|
687
|
-
default:
|
|
688
|
-
|
|
689
|
-
default:
|
|
687
|
+
default: w(() => [
|
|
688
|
+
L(C, { title: a.value }, {
|
|
689
|
+
default: w(() => [
|
|
690
|
+
L(M, null, {
|
|
691
|
+
default: w(() => [
|
|
690
692
|
O(R(o.value), 1)
|
|
691
693
|
]),
|
|
692
694
|
_: 1
|
|
693
695
|
}),
|
|
694
|
-
|
|
695
|
-
default:
|
|
696
|
-
|
|
697
|
-
color:
|
|
696
|
+
L(d, { class: "d-flex justify-end" }, {
|
|
697
|
+
default: w(() => [
|
|
698
|
+
L(h, {
|
|
699
|
+
color: n.value,
|
|
698
700
|
variant: "text",
|
|
699
|
-
onClick: _[0] || (_[0] = (j) =>
|
|
701
|
+
onClick: _[0] || (_[0] = (j) => v.value = !1)
|
|
700
702
|
}, {
|
|
701
|
-
default:
|
|
703
|
+
default: w(() => [
|
|
702
704
|
O(R(l.value), 1)
|
|
703
705
|
]),
|
|
704
706
|
_: 1
|
|
705
707
|
}, 8, ["color"]),
|
|
706
|
-
|
|
708
|
+
L(h, {
|
|
707
709
|
color: c.value,
|
|
708
710
|
variant: "text",
|
|
709
|
-
onClick:
|
|
711
|
+
onClick: k
|
|
710
712
|
}, {
|
|
711
|
-
default:
|
|
712
|
-
O(R(
|
|
713
|
+
default: w(() => [
|
|
714
|
+
O(R(r.value), 1)
|
|
713
715
|
]),
|
|
714
716
|
_: 1
|
|
715
717
|
}, 8, ["color"])
|
|
@@ -724,38 +726,38 @@ const Mt = /* @__PURE__ */ B({
|
|
|
724
726
|
}, 8, ["modelValue", "onKeydown"]);
|
|
725
727
|
};
|
|
726
728
|
}
|
|
727
|
-
}), St = /* @__PURE__ */
|
|
729
|
+
}), St = /* @__PURE__ */ E({
|
|
728
730
|
__name: "index",
|
|
729
731
|
props: {
|
|
730
732
|
open: { type: Boolean, default: !0 },
|
|
731
733
|
zIndex: { default: 1 }
|
|
732
734
|
},
|
|
733
735
|
setup(e) {
|
|
734
|
-
const { backgroundColor2: t } = Ue(), a =
|
|
736
|
+
const { backgroundColor2: t } = Ue(), a = x(() => ({
|
|
735
737
|
background: t.value,
|
|
736
738
|
zIndex: e.zIndex
|
|
737
739
|
}));
|
|
738
740
|
let o = 0;
|
|
739
|
-
return (
|
|
740
|
-
default:
|
|
741
|
-
|
|
742
|
-
key:
|
|
741
|
+
return (n, l) => (D(), V(qe, { name: "fade" }, {
|
|
742
|
+
default: w(() => [
|
|
743
|
+
n.open ? (D(), te("div", {
|
|
744
|
+
key: J(o) ? ++o.value : ++o,
|
|
743
745
|
class: "x-cont",
|
|
744
746
|
style: de(a.value)
|
|
745
747
|
}, l[0] || (l[0] = [
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
748
|
+
y("div", { class: "lds-spinner" }, [
|
|
749
|
+
y("div"),
|
|
750
|
+
y("div"),
|
|
751
|
+
y("div"),
|
|
752
|
+
y("div"),
|
|
753
|
+
y("div"),
|
|
754
|
+
y("div"),
|
|
755
|
+
y("div"),
|
|
756
|
+
y("div"),
|
|
757
|
+
y("div"),
|
|
758
|
+
y("div"),
|
|
759
|
+
y("div"),
|
|
760
|
+
y("div")
|
|
759
761
|
], -1)
|
|
760
762
|
]), 4)) : oe("", !0)
|
|
761
763
|
]),
|
|
@@ -764,12 +766,12 @@ const Mt = /* @__PURE__ */ B({
|
|
|
764
766
|
}
|
|
765
767
|
}), ce = (e, t) => {
|
|
766
768
|
const a = e.__vccOpts || e;
|
|
767
|
-
for (const [o,
|
|
768
|
-
a[o] =
|
|
769
|
+
for (const [o, n] of t)
|
|
770
|
+
a[o] = n;
|
|
769
771
|
return a;
|
|
770
772
|
}, jt = /* @__PURE__ */ ce(St, [["__scopeId", "data-v-0c686889"]]);
|
|
771
773
|
var Rt = "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", Vt = "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", At = "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", qt = "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", Ot = "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";
|
|
772
|
-
const It = /* @__PURE__ */
|
|
774
|
+
const It = /* @__PURE__ */ E({
|
|
773
775
|
__name: "item",
|
|
774
776
|
props: {
|
|
775
777
|
id: {},
|
|
@@ -779,11 +781,11 @@ const It = /* @__PURE__ */ B({
|
|
|
779
781
|
},
|
|
780
782
|
emits: ["timeout"],
|
|
781
783
|
setup(e, { emit: t }) {
|
|
782
|
-
const a =
|
|
784
|
+
const a = x(() => ({
|
|
783
785
|
width: "calc(100% - 64px)",
|
|
784
786
|
overflowWrap: "break-word"
|
|
785
|
-
})),
|
|
786
|
-
switch (
|
|
787
|
+
})), o = x(() => {
|
|
788
|
+
switch (e.type) {
|
|
787
789
|
case "success":
|
|
788
790
|
return Vt;
|
|
789
791
|
case "info":
|
|
@@ -795,68 +797,68 @@ const It = /* @__PURE__ */ B({
|
|
|
795
797
|
default:
|
|
796
798
|
return "";
|
|
797
799
|
}
|
|
798
|
-
}),
|
|
799
|
-
return
|
|
800
|
+
}), n = g(!0), l = t;
|
|
801
|
+
return B(() => {
|
|
800
802
|
setTimeout(() => {
|
|
801
|
-
|
|
802
|
-
},
|
|
803
|
-
}), K(
|
|
804
|
-
|
|
805
|
-
}), (
|
|
806
|
-
const
|
|
807
|
-
return
|
|
803
|
+
l("timeout", e.id);
|
|
804
|
+
}, e.timeout);
|
|
805
|
+
}), K(n, (c) => {
|
|
806
|
+
c || l("timeout", e.id);
|
|
807
|
+
}), (c, r) => {
|
|
808
|
+
const u = b("v-icon"), s = b("v-sheet");
|
|
809
|
+
return D(), V(s, {
|
|
808
810
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
809
|
-
color:
|
|
811
|
+
color: c.type,
|
|
810
812
|
elevation: 1
|
|
811
813
|
}, {
|
|
812
|
-
default:
|
|
813
|
-
|
|
814
|
+
default: w(() => [
|
|
815
|
+
o.value ? (D(), V(u, {
|
|
814
816
|
key: 0,
|
|
815
817
|
class: "mx-1",
|
|
816
|
-
icon:
|
|
818
|
+
icon: o.value
|
|
817
819
|
}, null, 8, ["icon"])) : oe("", !0),
|
|
818
|
-
|
|
819
|
-
style: de(
|
|
820
|
-
}, R(
|
|
821
|
-
|
|
820
|
+
y("div", {
|
|
821
|
+
style: de(a.value)
|
|
822
|
+
}, R(c.text), 5),
|
|
823
|
+
L(u, {
|
|
822
824
|
class: "mx-1",
|
|
823
825
|
icon: z(At),
|
|
824
|
-
onClick:
|
|
826
|
+
onClick: r[0] || (r[0] = (i) => l("timeout", c.id))
|
|
825
827
|
}, null, 8, ["icon"])
|
|
826
828
|
]),
|
|
827
829
|
_: 1
|
|
828
830
|
}, 8, ["color"]);
|
|
829
831
|
};
|
|
830
832
|
}
|
|
831
|
-
}), Tt = /* @__PURE__ */ ce(It, [["__scopeId", "data-v-
|
|
833
|
+
}), Tt = /* @__PURE__ */ ce(It, [["__scopeId", "data-v-74835a85"]]), Bt = /* @__PURE__ */ E({
|
|
832
834
|
__name: "index",
|
|
833
835
|
setup(e) {
|
|
834
|
-
const t =
|
|
835
|
-
|
|
836
|
+
const t = g([]);
|
|
837
|
+
B(() => {
|
|
836
838
|
p.on("message", a);
|
|
837
839
|
}), $(() => {
|
|
838
840
|
p.off("message", a);
|
|
839
841
|
});
|
|
840
|
-
const a = (
|
|
841
|
-
const { type: u, text: s, timeout:
|
|
842
|
-
l(u, s,
|
|
843
|
-
}, o = (
|
|
844
|
-
c(
|
|
842
|
+
const a = (r) => {
|
|
843
|
+
const { type: u, text: s, timeout: i } = r;
|
|
844
|
+
l(u, s, i);
|
|
845
|
+
}, o = (r) => {
|
|
846
|
+
c(r);
|
|
845
847
|
};
|
|
846
|
-
let
|
|
847
|
-
const l = (
|
|
848
|
-
const
|
|
849
|
-
t.value.push({ id:
|
|
850
|
-
}, c = (
|
|
851
|
-
const u = t.value.findIndex((s) => s.id ===
|
|
848
|
+
let n = 0;
|
|
849
|
+
const l = (r, u, s) => {
|
|
850
|
+
const i = n++;
|
|
851
|
+
t.value.push({ id: i, type: r, text: u, timeout: s });
|
|
852
|
+
}, c = (r) => {
|
|
853
|
+
const u = t.value.findIndex((s) => s.id === r);
|
|
852
854
|
u >= 0 && t.value.splice(u, 1);
|
|
853
855
|
};
|
|
854
|
-
return (
|
|
856
|
+
return (r, u) => (D(), te("div", {
|
|
855
857
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
856
858
|
onClick: u[0] || (u[0] = H(() => {
|
|
857
859
|
}, ["stop"]))
|
|
858
860
|
}, [
|
|
859
|
-
(
|
|
861
|
+
(D(!0), te(Oe, null, Ie(t.value, (s) => (D(), V(Tt, {
|
|
860
862
|
id: s.id,
|
|
861
863
|
key: s.id,
|
|
862
864
|
type: s.type,
|
|
@@ -866,75 +868,75 @@ const It = /* @__PURE__ */ B({
|
|
|
866
868
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
867
869
|
]));
|
|
868
870
|
}
|
|
869
|
-
}),
|
|
871
|
+
}), Et = /* @__PURE__ */ ce(Bt, [["__scopeId", "data-v-c6a59757"]]), Wt = /* @__PURE__ */ E({
|
|
870
872
|
__name: "index",
|
|
871
873
|
setup(e) {
|
|
872
|
-
const { t } = ne(), a =
|
|
874
|
+
const { t } = ne(), a = g(""), o = g(""), n = g(""), l = g(""), c = g(), r = g(""), u = g(""), s = g(""), i = g(""), v = g(""), k = Te("target");
|
|
873
875
|
let m = 0, _ = !1;
|
|
874
|
-
const
|
|
876
|
+
const M = async (C) => {
|
|
875
877
|
var j, F, X, W;
|
|
876
|
-
const f =
|
|
877
|
-
a.value = f.title, o.value = f.text,
|
|
878
|
-
}, { open:
|
|
879
|
-
|
|
878
|
+
const f = C;
|
|
879
|
+
a.value = f.title, o.value = f.text, n.value = f.label, l.value = f.placeholder, c.value = f.rules, r.value = f.value, u.value = ((j = f.cancel) == null ? void 0 : j.color) ?? "primary", s.value = ((F = f.cancel) == null ? void 0 : F.text) ?? t("dlg.common.cancel"), i.value = ((X = f.confirm) == null ? void 0 : X.color) ?? "primary", v.value = ((W = f.confirm) == null ? void 0 : W.text) ?? t("dlg.common.confirm"), m = f.seq, _ = !1, h.value = !0, await re(() => !!k.value), k.value.focus();
|
|
880
|
+
}, { open: h } = le("promptDlg", M), d = () => {
|
|
881
|
+
h.value = !1, _ || (p.emit("promptDlgResult" + m, r.value ?? ""), _ = !0);
|
|
880
882
|
};
|
|
881
|
-
return K(
|
|
882
|
-
!
|
|
883
|
-
}), (
|
|
884
|
-
const j =
|
|
885
|
-
return
|
|
886
|
-
modelValue: z(
|
|
887
|
-
"onUpdate:modelValue": f[2] || (f[2] = (U) =>
|
|
883
|
+
return K(h, (C) => {
|
|
884
|
+
!C && !_ && (p.emit("promptDlgResult" + m, void 0), _ = !0);
|
|
885
|
+
}), (C, f) => {
|
|
886
|
+
const j = b("v-card-text"), F = b("v-text-field"), X = b("v-form"), W = b("v-btn"), De = b("v-card-actions"), Me = b("v-card"), Se = b("v-dialog");
|
|
887
|
+
return D(), V(Se, {
|
|
888
|
+
modelValue: z(h),
|
|
889
|
+
"onUpdate:modelValue": f[2] || (f[2] = (U) => J(h) ? h.value = U : null),
|
|
888
890
|
transition: "dialog-top-transition",
|
|
889
891
|
"max-width": "600px",
|
|
890
892
|
attach: "",
|
|
891
893
|
onKeydown: [
|
|
892
|
-
f[3] || (f[3] =
|
|
893
|
-
|
|
894
|
+
f[3] || (f[3] = G(H((U) => h.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
895
|
+
G(H(d, ["stop", "prevent"]), ["enter"])
|
|
894
896
|
]
|
|
895
897
|
}, {
|
|
896
|
-
default:
|
|
897
|
-
|
|
898
|
-
default:
|
|
899
|
-
o.value ? (
|
|
900
|
-
default:
|
|
898
|
+
default: w(() => [
|
|
899
|
+
L(Me, { title: a.value }, {
|
|
900
|
+
default: w(() => [
|
|
901
|
+
o.value ? (D(), V(j, { key: 0 }, {
|
|
902
|
+
default: w(() => [
|
|
901
903
|
O(R(o.value), 1)
|
|
902
904
|
]),
|
|
903
905
|
_: 1
|
|
904
906
|
})) : oe("", !0),
|
|
905
|
-
|
|
906
|
-
default:
|
|
907
|
-
|
|
907
|
+
L(X, { class: "mx-3" }, {
|
|
908
|
+
default: w(() => [
|
|
909
|
+
L(F, {
|
|
908
910
|
ref_key: "target",
|
|
909
|
-
ref:
|
|
910
|
-
modelValue:
|
|
911
|
-
"onUpdate:modelValue": f[0] || (f[0] = (U) =>
|
|
912
|
-
label:
|
|
911
|
+
ref: k,
|
|
912
|
+
modelValue: r.value,
|
|
913
|
+
"onUpdate:modelValue": f[0] || (f[0] = (U) => r.value = U),
|
|
914
|
+
label: n.value,
|
|
913
915
|
placeholder: l.value,
|
|
914
916
|
rules: c.value
|
|
915
917
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
916
918
|
]),
|
|
917
919
|
_: 1
|
|
918
920
|
}),
|
|
919
|
-
|
|
920
|
-
default:
|
|
921
|
-
|
|
921
|
+
L(De, { class: "d-flex justify-end" }, {
|
|
922
|
+
default: w(() => [
|
|
923
|
+
L(W, {
|
|
922
924
|
color: u.value,
|
|
923
925
|
variant: "text",
|
|
924
|
-
onClick: f[1] || (f[1] = (U) =>
|
|
926
|
+
onClick: f[1] || (f[1] = (U) => h.value = !1)
|
|
925
927
|
}, {
|
|
926
|
-
default:
|
|
928
|
+
default: w(() => [
|
|
927
929
|
O(R(s.value), 1)
|
|
928
930
|
]),
|
|
929
931
|
_: 1
|
|
930
932
|
}, 8, ["color"]),
|
|
931
|
-
|
|
932
|
-
color:
|
|
933
|
+
L(W, {
|
|
934
|
+
color: i.value,
|
|
933
935
|
variant: "text",
|
|
934
|
-
onClick:
|
|
936
|
+
onClick: d
|
|
935
937
|
}, {
|
|
936
|
-
default:
|
|
937
|
-
O(R(
|
|
938
|
+
default: w(() => [
|
|
939
|
+
O(R(v.value), 1)
|
|
938
940
|
]),
|
|
939
941
|
_: 1
|
|
940
942
|
}, 8, ["color"])
|
|
@@ -949,39 +951,39 @@ const It = /* @__PURE__ */ B({
|
|
|
949
951
|
}, 8, ["modelValue", "onKeydown"]);
|
|
950
952
|
};
|
|
951
953
|
}
|
|
952
|
-
}), Ut = { class: "mx-auto my-auto" }, $t = { class: "w-100 h-100 d-flex align-center justify-center" }, Ht = { class: "text-body-1" }, Kt = /* @__PURE__ */
|
|
954
|
+
}), Ut = { class: "mx-auto my-auto" }, $t = { class: "w-100 h-100 d-flex align-center justify-center" }, Ht = { class: "text-body-1" }, Kt = /* @__PURE__ */ E({
|
|
953
955
|
__name: "index",
|
|
954
956
|
setup(e) {
|
|
955
|
-
const { t } = ne(), a =
|
|
956
|
-
const
|
|
957
|
-
a.value =
|
|
958
|
-
},
|
|
957
|
+
const { t } = ne(), a = g(""), o = (c) => {
|
|
958
|
+
const r = c;
|
|
959
|
+
a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
|
|
960
|
+
}, n = () => {
|
|
959
961
|
l.value = !1;
|
|
960
962
|
}, { open: l } = le("waitDlg", o);
|
|
961
|
-
return
|
|
962
|
-
p.on("closeWaitDlg",
|
|
963
|
+
return B(() => {
|
|
964
|
+
p.on("closeWaitDlg", n);
|
|
963
965
|
}), $(() => {
|
|
964
|
-
p.off("closeWaitDlg",
|
|
965
|
-
}), (c,
|
|
966
|
-
const u =
|
|
967
|
-
return
|
|
966
|
+
p.off("closeWaitDlg", n);
|
|
967
|
+
}), (c, r) => {
|
|
968
|
+
const u = b("v-card"), s = b("v-dialog");
|
|
969
|
+
return D(), V(s, {
|
|
968
970
|
modelValue: z(l),
|
|
969
|
-
"onUpdate:modelValue":
|
|
971
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => J(l) ? l.value = i : null),
|
|
970
972
|
persistent: "",
|
|
971
973
|
"no-click-animation": "",
|
|
972
974
|
fullscreen: "",
|
|
973
975
|
attach: ""
|
|
974
976
|
}, {
|
|
975
|
-
default:
|
|
976
|
-
|
|
977
|
-
|
|
977
|
+
default: w(() => [
|
|
978
|
+
y("div", Ut, [
|
|
979
|
+
L(u, {
|
|
978
980
|
width: "300px",
|
|
979
981
|
height: "80px",
|
|
980
982
|
loading: ""
|
|
981
983
|
}, {
|
|
982
|
-
default:
|
|
983
|
-
|
|
984
|
-
|
|
984
|
+
default: w(() => [
|
|
985
|
+
y("div", $t, [
|
|
986
|
+
y("span", Ht, R(a.value), 1)
|
|
985
987
|
])
|
|
986
988
|
]),
|
|
987
989
|
_: 1
|
|
@@ -993,10 +995,10 @@ const It = /* @__PURE__ */ B({
|
|
|
993
995
|
};
|
|
994
996
|
}
|
|
995
997
|
}), zt = (e) => {
|
|
996
|
-
e.component("XConfirmDlg", Mt), e.component("XLoading", jt), e.component("XMessage",
|
|
998
|
+
e.component("XConfirmDlg", Mt), e.component("XLoading", jt), e.component("XMessage", Et), e.component("XPromptDlg", Wt), e.component("XWaitDlg", Kt);
|
|
997
999
|
}, Ft = (e, t, a) => {
|
|
998
1000
|
const o = e[t];
|
|
999
|
-
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((
|
|
1001
|
+
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
|
|
1000
1002
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
1001
1003
|
l.bind(
|
|
1002
1004
|
null,
|
|
@@ -1032,7 +1034,7 @@ export {
|
|
|
1032
1034
|
se as isExist,
|
|
1033
1035
|
ia as lastView,
|
|
1034
1036
|
ma as loadLocaleMessageEssential,
|
|
1035
|
-
|
|
1037
|
+
Q as matchRouteMeta,
|
|
1036
1038
|
oa as messageError,
|
|
1037
1039
|
na as messageInfo,
|
|
1038
1040
|
ra as messageSuccess,
|
|
@@ -1048,7 +1050,7 @@ export {
|
|
|
1048
1050
|
at as providePermissionChecksum,
|
|
1049
1051
|
et as providePermissionObjects,
|
|
1050
1052
|
nt as provideViews,
|
|
1051
|
-
|
|
1053
|
+
Y as routeTransName,
|
|
1052
1054
|
Ue as useColor,
|
|
1053
1055
|
fa as useMicroApp,
|
|
1054
1056
|
ga as usePermission,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -22,34 +22,36 @@
|
|
|
22
22
|
"*": "prettier --write ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@vueuse/core": "^
|
|
26
|
-
"axios": "^1.
|
|
25
|
+
"@vueuse/core": "^13.0.0",
|
|
26
|
+
"axios": "^1.8.4",
|
|
27
27
|
"js-cookie": "^3.0.5",
|
|
28
28
|
"mitt": "^3.0.1",
|
|
29
29
|
"vue": "^3.5.13",
|
|
30
|
-
"vue-i18n": "^11.1.
|
|
30
|
+
"vue-i18n": "^11.1.3",
|
|
31
31
|
"vue-router": "^4.5.0",
|
|
32
|
-
"vuetify": "^3.
|
|
32
|
+
"vuetify": "^3.8.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint/js": "^9.
|
|
35
|
+
"@eslint/js": "^9.24.0",
|
|
36
36
|
"@mdi/js": "^7.4.47",
|
|
37
37
|
"@types/js-cookie": "^3.0.6",
|
|
38
|
-
"@types/node": "^22.
|
|
39
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
40
|
-
"eslint": "^9.
|
|
41
|
-
"eslint-config-prettier": "^10.
|
|
42
|
-
"eslint-plugin-prettier": "^5.2.
|
|
43
|
-
"eslint-plugin-vue": "^
|
|
38
|
+
"@types/node": "^22.14.0",
|
|
39
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
40
|
+
"eslint": "^9.24.0",
|
|
41
|
+
"eslint-config-prettier": "^10.1.1",
|
|
42
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
43
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
44
|
+
"globals": "^16.0.0",
|
|
44
45
|
"husky": "^9.1.7",
|
|
45
|
-
"lint-staged": "^15.
|
|
46
|
-
"prettier": "3.5.
|
|
47
|
-
"sass": "^1.
|
|
48
|
-
"typescript": "^5.
|
|
49
|
-
"typescript-eslint": "^8.
|
|
50
|
-
"vite": "^6.2.
|
|
46
|
+
"lint-staged": "^15.5.0",
|
|
47
|
+
"prettier": "3.5.3",
|
|
48
|
+
"sass": "^1.86.3",
|
|
49
|
+
"typescript": "^5.8.3",
|
|
50
|
+
"typescript-eslint": "^8.29.1",
|
|
51
|
+
"vite": "^6.2.5",
|
|
51
52
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
52
|
-
"vite-plugin-vuetify": "^2.1.
|
|
53
|
-
"vue-
|
|
53
|
+
"vite-plugin-vuetify": "^2.1.1",
|
|
54
|
+
"vue-eslint-parser": "^10.1.3",
|
|
55
|
+
"vue-tsc": "^2.2.8"
|
|
54
56
|
}
|
|
55
57
|
}
|