x-essential-lib 0.8.26 → 0.8.28
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 +77 -77
- package/package.json +13 -13
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('.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;inset: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-f1f60167]{width:600px}@media (max-width: 600px){.x-item[data-v-f1f60167]{width:calc(100vw - 16px)}}.x-cont[data-v-3543886b]{position:fixed;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 C, provide as U, inject as $, ref as p, watchEffect as le, onMounted as N, onBeforeUnmount as K, onBeforeMount as xe, defineComponent as
|
|
2
|
+
import { computed as C, provide as U, inject as $, ref as p, watchEffect as le, onMounted as N, onBeforeUnmount as K, onBeforeMount as xe, defineComponent as I, watch as F, resolveComponent as v, createBlock as L, openBlock as q, withKeys as z, unref as E, withModifiers as A, isRef as W, withCtx as g, createVNode as b, createTextVNode as B, toDisplayString as S, Transition as ke, createElementBlock as P, createCommentVNode as ee, normalizeStyle as ue, createElementVNode as k, Fragment as De, renderList as Ve, useTemplateRef as ce } from "vue";
|
|
3
3
|
import { useI18n as G } from "vue-i18n";
|
|
4
4
|
import { useTheme as se, useDisplay as Ce } from "vuetify";
|
|
5
5
|
import { useRouter as pe, useRoute as qe } from "vue-router";
|
|
6
6
|
import je from "axios";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as T, m as Re, u as Se } from "./vendor.ohp5twbt.js";
|
|
8
8
|
function Oe() {
|
|
9
9
|
const e = se(), t = C(() => e.global.current.value.colors.primary), a = C(() => e.global.current.value.colors.secondary), o = C(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = C(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = C(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = C(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = C(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
10
|
return {
|
|
@@ -32,7 +32,7 @@ function kt(e) {
|
|
|
32
32
|
), t;
|
|
33
33
|
}
|
|
34
34
|
function Te(e) {
|
|
35
|
-
const t =
|
|
35
|
+
const t = T.get("accessToken") ?? "";
|
|
36
36
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
37
37
|
}
|
|
38
38
|
function Le(e, t) {
|
|
@@ -49,7 +49,7 @@ function Me(e, t) {
|
|
|
49
49
|
})), Promise.reject(e);
|
|
50
50
|
}
|
|
51
51
|
function Ae() {
|
|
52
|
-
|
|
52
|
+
T.remove("accessToken"), T.remove("refreshToken"), T.remove("userid"), T.remove("username"), T.remove("phone"), T.remove("activeOrg"), pe().replace({ path: "/passport/login" });
|
|
53
53
|
}
|
|
54
54
|
const Dt = function() {
|
|
55
55
|
return window.globalObjects || (window.globalObjects = {
|
|
@@ -324,10 +324,10 @@ function O(e, t, a) {
|
|
|
324
324
|
r ? c ? Z.value = "" : Z.value = n ? "inner-left" : "inner-right" : (Z.value = "", Ie(o.app, n));
|
|
325
325
|
}
|
|
326
326
|
function Qe() {
|
|
327
|
-
return !!
|
|
327
|
+
return !!T.get("accessToken");
|
|
328
328
|
}
|
|
329
329
|
function Ye() {
|
|
330
|
-
return !!
|
|
330
|
+
return !!T.get("activeOrg");
|
|
331
331
|
}
|
|
332
332
|
function Ut(e, t, a, o) {
|
|
333
333
|
const l = Qe(), r = Ye(), c = H(e.path);
|
|
@@ -399,9 +399,9 @@ function Nt(e, t, a, o, l, r) {
|
|
|
399
399
|
let f = !1;
|
|
400
400
|
typeof e.value == "boolean" ? f = e.value : f = _.value, s.value = f;
|
|
401
401
|
}), Ke(s), Ne(t), We(a), ze(o), He(l), Fe(r);
|
|
402
|
-
const
|
|
402
|
+
const h = se();
|
|
403
403
|
le(() => {
|
|
404
|
-
|
|
404
|
+
h.change(s.value ? "dark" : "light");
|
|
405
405
|
});
|
|
406
406
|
const D = () => {
|
|
407
407
|
if (!Ze(r)) {
|
|
@@ -424,13 +424,13 @@ function Nt(e, t, a, o, l, r) {
|
|
|
424
424
|
D();
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
|
-
},
|
|
427
|
+
}, w = () => {
|
|
428
428
|
D();
|
|
429
429
|
};
|
|
430
430
|
N(() => {
|
|
431
|
-
window.addEventListener("keydown", y), u.on("backbutton",
|
|
431
|
+
window.addEventListener("keydown", y), u.on("backbutton", w);
|
|
432
432
|
}), K(() => {
|
|
433
|
-
window.removeEventListener("keydown", y), u.off("backbutton",
|
|
433
|
+
window.removeEventListener("keydown", y), u.off("backbutton", w);
|
|
434
434
|
});
|
|
435
435
|
const i = (f) => {
|
|
436
436
|
e.value = f;
|
|
@@ -485,30 +485,30 @@ function J(e, t) {
|
|
|
485
485
|
u.off(e, l);
|
|
486
486
|
}), { open: o };
|
|
487
487
|
}
|
|
488
|
-
const at = /* @__PURE__ */
|
|
488
|
+
const at = /* @__PURE__ */ I({
|
|
489
489
|
__name: "index",
|
|
490
490
|
setup(e) {
|
|
491
491
|
const { t } = G(), a = p(""), o = p(""), l = p(""), r = p(""), c = p(""), n = p("");
|
|
492
492
|
let _ = 0, s = !1;
|
|
493
|
-
const
|
|
494
|
-
const i =
|
|
493
|
+
const h = (w) => {
|
|
494
|
+
const i = w;
|
|
495
495
|
a.value = i.title, o.value = i.text, l.value = i.cancel?.color ?? "primary", r.value = i.cancel?.text ?? t("dlg.common.cancel"), c.value = i.confirm?.color ?? "primary", n.value = i.confirm?.text ?? t("dlg.common.confirm"), _ = i.seq, s = !1, D.value = !0;
|
|
496
|
-
}, { open: D } = J("confirmDlg",
|
|
496
|
+
}, { open: D } = J("confirmDlg", h), y = () => {
|
|
497
497
|
D.value = !1, s || (u.emit("confirmDlgResult" + _, !0), s = !0);
|
|
498
498
|
};
|
|
499
|
-
return F(D, (
|
|
500
|
-
!
|
|
501
|
-
}), (
|
|
499
|
+
return F(D, (w) => {
|
|
500
|
+
!w && !s && (u.emit("confirmDlgResult" + _, !1), s = !0);
|
|
501
|
+
}), (w, i) => {
|
|
502
502
|
const x = v("v-card-text"), d = v("v-btn"), j = v("v-card-actions"), f = v("v-card"), m = v("v-dialog");
|
|
503
|
-
return q(),
|
|
504
|
-
modelValue:
|
|
503
|
+
return q(), L(m, {
|
|
504
|
+
modelValue: E(D),
|
|
505
505
|
"onUpdate:modelValue": i[1] || (i[1] = (V) => W(D) ? D.value = V : null),
|
|
506
506
|
attach: "",
|
|
507
507
|
"max-width": "600px",
|
|
508
508
|
transition: "dialog-top-transition",
|
|
509
509
|
onKeydown: [
|
|
510
|
-
z(
|
|
511
|
-
i[2] || (i[2] = z(
|
|
510
|
+
z(A(y, ["stop", "prevent"]), ["enter"]),
|
|
511
|
+
i[2] || (i[2] = z(A((V) => D.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
512
512
|
]
|
|
513
513
|
}, {
|
|
514
514
|
default: g(() => [
|
|
@@ -516,7 +516,7 @@ const at = /* @__PURE__ */ A({
|
|
|
516
516
|
default: g(() => [
|
|
517
517
|
b(x, null, {
|
|
518
518
|
default: g(() => [
|
|
519
|
-
|
|
519
|
+
B(S(o.value), 1)
|
|
520
520
|
]),
|
|
521
521
|
_: 1
|
|
522
522
|
}),
|
|
@@ -528,7 +528,7 @@ const at = /* @__PURE__ */ A({
|
|
|
528
528
|
onClick: i[0] || (i[0] = (V) => D.value = !1)
|
|
529
529
|
}, {
|
|
530
530
|
default: g(() => [
|
|
531
|
-
|
|
531
|
+
B(S(r.value), 1)
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["color"]),
|
|
@@ -538,7 +538,7 @@ const at = /* @__PURE__ */ A({
|
|
|
538
538
|
onClick: y
|
|
539
539
|
}, {
|
|
540
540
|
default: g(() => [
|
|
541
|
-
|
|
541
|
+
B(S(n.value), 1)
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
544
544
|
}, 8, ["color"])
|
|
@@ -553,7 +553,7 @@ const at = /* @__PURE__ */ A({
|
|
|
553
553
|
}, 8, ["modelValue", "onKeydown"]);
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
|
-
}), ot = /* @__PURE__ */
|
|
556
|
+
}), ot = /* @__PURE__ */ I({
|
|
557
557
|
__name: "index",
|
|
558
558
|
props: {
|
|
559
559
|
open: { type: Boolean, default: !0 },
|
|
@@ -565,7 +565,7 @@ const at = /* @__PURE__ */ A({
|
|
|
565
565
|
zIndex: e.zIndex
|
|
566
566
|
}));
|
|
567
567
|
let o = 0;
|
|
568
|
-
return (l, r) => (q(),
|
|
568
|
+
return (l, r) => (q(), L(ke, { name: "fade" }, {
|
|
569
569
|
default: g(() => [
|
|
570
570
|
l.open ? (q(), P("div", {
|
|
571
571
|
key: W(o) ? ++o.value : ++o,
|
|
@@ -596,7 +596,7 @@ const at = /* @__PURE__ */ A({
|
|
|
596
596
|
for (const [o, l] of t)
|
|
597
597
|
a[o] = l;
|
|
598
598
|
return a;
|
|
599
|
-
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-0c686889"]]), nt = /* @__PURE__ */
|
|
599
|
+
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-0c686889"]]), nt = /* @__PURE__ */ I({
|
|
600
600
|
__name: "item",
|
|
601
601
|
props: {
|
|
602
602
|
id: {},
|
|
@@ -631,13 +631,13 @@ const at = /* @__PURE__ */ A({
|
|
|
631
631
|
c || r("timeout", e.id);
|
|
632
632
|
}), (c, n) => {
|
|
633
633
|
const _ = v("v-icon"), s = v("v-sheet");
|
|
634
|
-
return q(),
|
|
634
|
+
return q(), L(s, {
|
|
635
635
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
636
636
|
color: c.type,
|
|
637
637
|
elevation: 1
|
|
638
638
|
}, {
|
|
639
639
|
default: g(() => [
|
|
640
|
-
o.value ? (q(),
|
|
640
|
+
o.value ? (q(), L(_, {
|
|
641
641
|
key: 0,
|
|
642
642
|
class: "mx-1",
|
|
643
643
|
icon: o.value
|
|
@@ -648,14 +648,14 @@ const at = /* @__PURE__ */ A({
|
|
|
648
648
|
b(_, {
|
|
649
649
|
class: "mx-1",
|
|
650
650
|
icon: "mdi-close",
|
|
651
|
-
onClick: n[0] || (n[0] = (
|
|
651
|
+
onClick: n[0] || (n[0] = (h) => r("timeout", c.id))
|
|
652
652
|
})
|
|
653
653
|
]),
|
|
654
654
|
_: 1
|
|
655
655
|
}, 8, ["color"]);
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */
|
|
658
|
+
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */ I({
|
|
659
659
|
__name: "index",
|
|
660
660
|
setup(e) {
|
|
661
661
|
const t = p([]);
|
|
@@ -665,25 +665,25 @@ const at = /* @__PURE__ */ A({
|
|
|
665
665
|
u.off("message", a);
|
|
666
666
|
});
|
|
667
667
|
const a = (n) => {
|
|
668
|
-
const { type: _, text: s, timeout:
|
|
669
|
-
r(_, s,
|
|
668
|
+
const { type: _, text: s, timeout: h } = n;
|
|
669
|
+
r(_, s, h);
|
|
670
670
|
}, o = (n) => {
|
|
671
671
|
c(n);
|
|
672
672
|
};
|
|
673
673
|
let l = 0;
|
|
674
674
|
const r = (n, _, s) => {
|
|
675
|
-
const
|
|
676
|
-
t.value.push({ id:
|
|
675
|
+
const h = l++;
|
|
676
|
+
t.value.push({ id: h, type: n, text: _, timeout: s });
|
|
677
677
|
}, c = (n) => {
|
|
678
678
|
const _ = t.value.findIndex((s) => s.id === n);
|
|
679
679
|
_ >= 0 && t.value.splice(_, 1);
|
|
680
680
|
};
|
|
681
681
|
return (n, _) => (q(), P("div", {
|
|
682
682
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
683
|
-
onClick: _[0] || (_[0] =
|
|
683
|
+
onClick: _[0] || (_[0] = A(() => {
|
|
684
684
|
}, ["stop"]))
|
|
685
685
|
}, [
|
|
686
|
-
(q(!0), P(De, null, Ve(t.value, (s) => (q(),
|
|
686
|
+
(q(!0), P(De, null, Ve(t.value, (s) => (q(), L(rt, {
|
|
687
687
|
id: s.id,
|
|
688
688
|
key: s.id,
|
|
689
689
|
text: s.text,
|
|
@@ -693,41 +693,41 @@ const at = /* @__PURE__ */ A({
|
|
|
693
693
|
}, null, 8, ["id", "text", "timeout", "type"]))), 128))
|
|
694
694
|
]));
|
|
695
695
|
}
|
|
696
|
-
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-3543886b"]]), st = /* @__PURE__ */
|
|
696
|
+
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-3543886b"]]), st = /* @__PURE__ */ I({
|
|
697
697
|
__name: "index",
|
|
698
698
|
setup(e) {
|
|
699
699
|
const { t } = G(), a = p(""), o = p(0), l = p(), r = p(-1 / 0), c = p(1 / 0), n = p(1);
|
|
700
700
|
let _ = 0, s = !1;
|
|
701
|
-
const
|
|
702
|
-
a.value = x.title, o.value = x.value, l.value = x.precision, r.value = x.min, c.value = x.max, n.value = x.step, _ = x.seq, s = !1, y.value = !0, await X(() => !!
|
|
703
|
-
}, { open: y } = J("numberDlg", D),
|
|
701
|
+
const h = ce("target"), D = async (x) => {
|
|
702
|
+
a.value = x.title, o.value = x.value, l.value = x.precision, r.value = x.min, c.value = x.max, n.value = x.step, _ = x.seq, s = !1, y.value = !0, await X(() => !!h.value), h.value.focus();
|
|
703
|
+
}, { open: y } = J("numberDlg", D), w = p(!1), i = () => {
|
|
704
704
|
y.value = !1, s || (u.emit(`numberDlgResult${_}`, o.value), s = !0);
|
|
705
705
|
};
|
|
706
706
|
return F(y, (x) => {
|
|
707
707
|
!x && !s && (u.emit(`numberDlgResult${_}`, void 0), s = !0);
|
|
708
708
|
}), (x, d) => {
|
|
709
709
|
const j = v("v-number-input"), f = v("v-btn"), m = v("v-card-actions"), V = v("v-form"), Q = v("v-card"), Y = v("v-dialog");
|
|
710
|
-
return q(),
|
|
711
|
-
modelValue:
|
|
710
|
+
return q(), L(Y, {
|
|
711
|
+
modelValue: E(y),
|
|
712
712
|
"onUpdate:modelValue": d[3] || (d[3] = (R) => W(y) ? y.value = R : null),
|
|
713
713
|
attach: "",
|
|
714
714
|
"max-width": "600px",
|
|
715
715
|
transition: "dialog-top-transition",
|
|
716
|
-
onKeydown: d[4] || (d[4] = z(
|
|
716
|
+
onKeydown: d[4] || (d[4] = z(A((R) => y.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
717
717
|
}, {
|
|
718
718
|
default: g(() => [
|
|
719
719
|
b(Q, { title: a.value }, {
|
|
720
720
|
default: g(() => [
|
|
721
721
|
b(V, {
|
|
722
|
-
modelValue:
|
|
723
|
-
"onUpdate:modelValue": d[2] || (d[2] = (R) =>
|
|
722
|
+
modelValue: w.value,
|
|
723
|
+
"onUpdate:modelValue": d[2] || (d[2] = (R) => w.value = R),
|
|
724
724
|
class: "mx-3",
|
|
725
|
-
onSubmit:
|
|
725
|
+
onSubmit: A(i, ["prevent"])
|
|
726
726
|
}, {
|
|
727
727
|
default: g(() => [
|
|
728
728
|
b(j, {
|
|
729
729
|
ref_key: "target",
|
|
730
|
-
ref:
|
|
730
|
+
ref: h,
|
|
731
731
|
modelValue: o.value,
|
|
732
732
|
"onUpdate:modelValue": d[0] || (d[0] = (R) => o.value = R),
|
|
733
733
|
"control-variant": "stacked",
|
|
@@ -744,18 +744,18 @@ const at = /* @__PURE__ */ A({
|
|
|
744
744
|
onClick: d[1] || (d[1] = (R) => y.value = !1)
|
|
745
745
|
}, {
|
|
746
746
|
default: g(() => [
|
|
747
|
-
|
|
747
|
+
B(S(E(t)("dlg.common.cancel")), 1)
|
|
748
748
|
]),
|
|
749
749
|
_: 1
|
|
750
750
|
}),
|
|
751
751
|
b(f, {
|
|
752
752
|
color: "primary",
|
|
753
|
-
disabled: !
|
|
753
|
+
disabled: !w.value,
|
|
754
754
|
type: "submit",
|
|
755
755
|
variant: "text"
|
|
756
756
|
}, {
|
|
757
757
|
default: g(() => [
|
|
758
|
-
|
|
758
|
+
B(S(E(t)("dlg.common.confirm")), 1)
|
|
759
759
|
]),
|
|
760
760
|
_: 1
|
|
761
761
|
}, 8, ["disabled"])
|
|
@@ -773,49 +773,49 @@ const at = /* @__PURE__ */ A({
|
|
|
773
773
|
}, 8, ["modelValue"]);
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
|
-
}), pt = /* @__PURE__ */
|
|
776
|
+
}), pt = /* @__PURE__ */ I({
|
|
777
777
|
__name: "index",
|
|
778
778
|
setup(e) {
|
|
779
|
-
const { t } = G(), a = p(""), o = p(""), l = p(""), r = p(""), c = p(), n = p(""), _ = p(""), s = p(""),
|
|
780
|
-
let y = 0,
|
|
779
|
+
const { t } = G(), a = p(""), o = p(""), l = p(""), r = p(""), c = p(), n = p(""), _ = p(""), s = p(""), h = p(""), D = p("");
|
|
780
|
+
let y = 0, w = !1;
|
|
781
781
|
const i = ce("target"), x = async (m) => {
|
|
782
|
-
a.value = m.title, o.value = m.text, l.value = m.label, r.value = m.placeholder, c.value = m.rules, n.value = m.value, _.value = m.cancel?.color ?? "primary", s.value = m.cancel?.text ?? t("dlg.common.cancel"),
|
|
782
|
+
a.value = m.title, o.value = m.text, l.value = m.label, r.value = m.placeholder, c.value = m.rules, n.value = m.value, _.value = m.cancel?.color ?? "primary", s.value = m.cancel?.text ?? t("dlg.common.cancel"), h.value = m.confirm?.color ?? "primary", D.value = m.confirm?.text ?? t("dlg.common.confirm"), y = m.seq, w = !1, d.value = !0, await X(() => !!i.value), i.value.focus();
|
|
783
783
|
}, { open: d } = J("promptDlg", x), j = p(!1), f = () => {
|
|
784
|
-
d.value = !1,
|
|
784
|
+
d.value = !1, w || (u.emit("promptDlgResult" + y, n.value ?? ""), w = !0);
|
|
785
785
|
};
|
|
786
786
|
return F(d, (m) => {
|
|
787
|
-
!m && !
|
|
787
|
+
!m && !w && (u.emit("promptDlgResult" + y, void 0), w = !0);
|
|
788
788
|
}), (m, V) => {
|
|
789
|
-
const Q = v("v-card-text"), Y = v("v-text-field"), R = v("v-btn"), be = v("v-card-actions"), ye = v("v-form"),
|
|
790
|
-
return q(),
|
|
791
|
-
modelValue:
|
|
792
|
-
"onUpdate:modelValue": V[3] || (V[3] = (
|
|
789
|
+
const Q = v("v-card-text"), Y = v("v-text-field"), R = v("v-btn"), be = v("v-card-actions"), ye = v("v-form"), he = v("v-card"), we = v("v-dialog");
|
|
790
|
+
return q(), L(we, {
|
|
791
|
+
modelValue: E(d),
|
|
792
|
+
"onUpdate:modelValue": V[3] || (V[3] = (M) => W(d) ? d.value = M : null),
|
|
793
793
|
attach: "",
|
|
794
794
|
"max-width": "600px",
|
|
795
795
|
transition: "dialog-top-transition",
|
|
796
|
-
onKeydown: V[4] || (V[4] = z(
|
|
796
|
+
onKeydown: V[4] || (V[4] = z(A((M) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
797
797
|
}, {
|
|
798
798
|
default: g(() => [
|
|
799
|
-
b(
|
|
799
|
+
b(he, { title: a.value }, {
|
|
800
800
|
default: g(() => [
|
|
801
|
-
o.value ? (q(),
|
|
801
|
+
o.value ? (q(), L(Q, { key: 0 }, {
|
|
802
802
|
default: g(() => [
|
|
803
|
-
|
|
803
|
+
B(S(o.value), 1)
|
|
804
804
|
]),
|
|
805
805
|
_: 1
|
|
806
806
|
})) : ee("", !0),
|
|
807
807
|
b(ye, {
|
|
808
808
|
modelValue: j.value,
|
|
809
|
-
"onUpdate:modelValue": V[2] || (V[2] = (
|
|
809
|
+
"onUpdate:modelValue": V[2] || (V[2] = (M) => j.value = M),
|
|
810
810
|
class: "mx-3",
|
|
811
|
-
onSubmit:
|
|
811
|
+
onSubmit: A(f, ["prevent"])
|
|
812
812
|
}, {
|
|
813
813
|
default: g(() => [
|
|
814
814
|
b(Y, {
|
|
815
815
|
ref_key: "target",
|
|
816
816
|
ref: i,
|
|
817
817
|
modelValue: n.value,
|
|
818
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
818
|
+
"onUpdate:modelValue": V[0] || (V[0] = (M) => n.value = M),
|
|
819
819
|
label: l.value,
|
|
820
820
|
placeholder: r.value,
|
|
821
821
|
rules: c.value
|
|
@@ -825,21 +825,21 @@ const at = /* @__PURE__ */ A({
|
|
|
825
825
|
b(R, {
|
|
826
826
|
color: _.value,
|
|
827
827
|
variant: "text",
|
|
828
|
-
onClick: V[1] || (V[1] = (
|
|
828
|
+
onClick: V[1] || (V[1] = (M) => d.value = !1)
|
|
829
829
|
}, {
|
|
830
830
|
default: g(() => [
|
|
831
|
-
|
|
831
|
+
B(S(s.value), 1)
|
|
832
832
|
]),
|
|
833
833
|
_: 1
|
|
834
834
|
}, 8, ["color"]),
|
|
835
835
|
b(R, {
|
|
836
|
-
color:
|
|
836
|
+
color: h.value,
|
|
837
837
|
disabled: !j.value,
|
|
838
838
|
type: "submit",
|
|
839
839
|
variant: "text"
|
|
840
840
|
}, {
|
|
841
841
|
default: g(() => [
|
|
842
|
-
|
|
842
|
+
B(S(D.value), 1)
|
|
843
843
|
]),
|
|
844
844
|
_: 1
|
|
845
845
|
}, 8, ["color", "disabled"])
|
|
@@ -857,7 +857,7 @@ const at = /* @__PURE__ */ A({
|
|
|
857
857
|
}, 8, ["modelValue"]);
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
}), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */
|
|
860
|
+
}), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */ I({
|
|
861
861
|
__name: "index",
|
|
862
862
|
setup(e) {
|
|
863
863
|
const { t } = G(), a = p(""), o = (c) => {
|
|
@@ -872,9 +872,9 @@ const at = /* @__PURE__ */ A({
|
|
|
872
872
|
u.off("closeWaitDlg", l);
|
|
873
873
|
}), (c, n) => {
|
|
874
874
|
const _ = v("v-card"), s = v("v-dialog");
|
|
875
|
-
return q(),
|
|
876
|
-
modelValue:
|
|
877
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
875
|
+
return q(), L(s, {
|
|
876
|
+
modelValue: E(r),
|
|
877
|
+
"onUpdate:modelValue": n[0] || (n[0] = (h) => W(r) ? r.value = h : null),
|
|
878
878
|
attach: "",
|
|
879
879
|
fullscreen: "",
|
|
880
880
|
"no-click-animation": "",
|
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.28",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -29,28 +29,28 @@
|
|
|
29
29
|
"vue": "^3.5.18",
|
|
30
30
|
"vue-i18n": "^11.1.11",
|
|
31
31
|
"vue-router": "^4.5.1",
|
|
32
|
-
"vuetify": "^3.9.
|
|
32
|
+
"vuetify": "^3.9.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint/js": "^9.
|
|
35
|
+
"@eslint/js": "^9.33.0",
|
|
36
36
|
"@types/js-cookie": "^3.0.6",
|
|
37
|
-
"@types/node": "^24.1
|
|
37
|
+
"@types/node": "^24.2.1",
|
|
38
38
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
39
|
-
"eslint": "^9.
|
|
39
|
+
"eslint": "^9.33.0",
|
|
40
40
|
"eslint-config-prettier": "^10.1.8",
|
|
41
|
-
"eslint-plugin-prettier": "^5.5.
|
|
42
|
-
"eslint-plugin-vue": "^10.
|
|
41
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
42
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
43
43
|
"globals": "^16.3.0",
|
|
44
44
|
"husky": "^9.1.7",
|
|
45
|
-
"lint-staged": "^16.1.
|
|
45
|
+
"lint-staged": "^16.1.5",
|
|
46
46
|
"prettier": "3.6.2",
|
|
47
|
-
"sass": "^1.
|
|
48
|
-
"typescript": "^5.
|
|
49
|
-
"typescript-eslint": "^8.
|
|
50
|
-
"vite": "^7.
|
|
47
|
+
"sass": "^1.90.0",
|
|
48
|
+
"typescript": "^5.9.2",
|
|
49
|
+
"typescript-eslint": "^8.39.1",
|
|
50
|
+
"vite": "^7.1.2",
|
|
51
51
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
52
52
|
"vite-plugin-vuetify": "^2.1.2",
|
|
53
53
|
"vue-eslint-parser": "^10.2.0",
|
|
54
|
-
"vue-tsc": "^3.0.
|
|
54
|
+
"vue-tsc": "^3.0.5"
|
|
55
55
|
}
|
|
56
56
|
}
|