x-essential-lib 0.4.4 → 0.4.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/composables/hotkey.d.ts +5 -1
- package/dist/index.js +115 -115
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.inner-left-enter-active,.inner-right-enter-active{transition:transform .35s ease}.inner-left-enter-from{transform:translate(-100%)}.inner-right-enter-from{transform:translate(100%)}.inner-left-enter-to,.inner-right-enter-to{transform:translate(0)}.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-70ed4b89]{position:absolute;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 { ref as f, watch as H, computed as i, onMounted as C, onBeforeUnmount as V, defineComponent as I, resolveComponent as
|
|
2
|
+
import { ref as f, watch as H, computed as i, onMounted as C, onBeforeUnmount as V, defineComponent as I, resolveComponent as m, openBlock as b, createBlock as j, unref as W, isRef as X, withKeys as z, withModifiers as B, withCtx as h, createVNode as y, createTextVNode as O, toDisplayString as q, createElementBlock as F, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as v, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
|
|
3
3
|
import { useTheme as N, useLocale as G, useDisplay as be } from "vuetify";
|
|
4
4
|
import { defineStore as re } from "pinia";
|
|
5
5
|
import Ce from "axios";
|
|
@@ -39,27 +39,27 @@ const Q = re(
|
|
|
39
39
|
return e.value.length <= 0;
|
|
40
40
|
}
|
|
41
41
|
function t() {
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
return e.value[
|
|
42
|
+
const u = e.value.length;
|
|
43
|
+
if (u > 0)
|
|
44
|
+
return e.value[u - 1];
|
|
45
45
|
}
|
|
46
|
-
function l(
|
|
47
|
-
return e.value.find((s) => s ===
|
|
46
|
+
function l(u) {
|
|
47
|
+
return e.value.find((s) => s === u) !== void 0;
|
|
48
48
|
}
|
|
49
|
-
function o(
|
|
50
|
-
n(
|
|
49
|
+
function o(u) {
|
|
50
|
+
n(u), e.value.push(u);
|
|
51
51
|
}
|
|
52
|
-
function n(
|
|
53
|
-
const s = e.value.findIndex((
|
|
52
|
+
function n(u) {
|
|
53
|
+
const s = e.value.findIndex((g) => g === u);
|
|
54
54
|
s !== -1 && e.value.splice(s, 1);
|
|
55
55
|
}
|
|
56
56
|
function r() {
|
|
57
57
|
e.value.pop();
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function c() {
|
|
60
60
|
e.value = [];
|
|
61
61
|
}
|
|
62
|
-
return { isEmpty: a, lastView: t, hasView: l, addView: o, delView: n, popView: r, clearViews:
|
|
62
|
+
return { isEmpty: a, lastView: t, hasView: l, addView: o, delView: n, popView: r, clearViews: c };
|
|
63
63
|
});
|
|
64
64
|
/*! js-cookie v3.0.5 | MIT */
|
|
65
65
|
function K(e) {
|
|
@@ -85,19 +85,19 @@ function J(e, a) {
|
|
|
85
85
|
function t(o, n, r) {
|
|
86
86
|
if (!(typeof document > "u")) {
|
|
87
87
|
r = K({}, 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);
|
|
88
|
-
var
|
|
89
|
-
for (var
|
|
90
|
-
r[
|
|
91
|
-
return document.cookie = o + "=" + e.write(n, o) +
|
|
88
|
+
var c = "";
|
|
89
|
+
for (var u in r)
|
|
90
|
+
r[u] && (c += "; " + u, r[u] !== !0 && (c += "=" + r[u].split(";")[0]));
|
|
91
|
+
return document.cookie = o + "=" + e.write(n, o) + c;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
function l(o) {
|
|
95
95
|
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
96
|
-
for (var n = document.cookie ? document.cookie.split("; ") : [], r = {},
|
|
97
|
-
var
|
|
96
|
+
for (var n = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < n.length; c++) {
|
|
97
|
+
var u = n[c].split("="), s = u.slice(1).join("=");
|
|
98
98
|
try {
|
|
99
|
-
var
|
|
100
|
-
if (r[
|
|
99
|
+
var g = decodeURIComponent(u[0]);
|
|
100
|
+
if (r[g] = e.read(s, g), o === g)
|
|
101
101
|
break;
|
|
102
102
|
} catch {
|
|
103
103
|
}
|
|
@@ -298,7 +298,7 @@ function Z(e) {
|
|
|
298
298
|
return Ue.forEach((o) => {
|
|
299
299
|
const n = o.path.split("/");
|
|
300
300
|
let r = 0;
|
|
301
|
-
for (let
|
|
301
|
+
for (let c = 0; c < l.length && !(c >= n.length || l[c] !== n[c]); c++)
|
|
302
302
|
r++;
|
|
303
303
|
r >= t && (a = o, t = r);
|
|
304
304
|
}), a;
|
|
@@ -385,16 +385,16 @@ function P(e, a) {
|
|
|
385
385
|
const Me = /* @__PURE__ */ I({
|
|
386
386
|
__name: "index",
|
|
387
387
|
setup(e) {
|
|
388
|
-
const a = G(), { open: t } = P("confirmDlg"), l = f(""), o = f(""), n = f(), r = f(),
|
|
388
|
+
const a = G(), { open: t } = P("confirmDlg"), l = f(""), o = f(""), n = f(), r = f(), c = i(() => {
|
|
389
389
|
var d;
|
|
390
390
|
return ((d = n.value) == null ? void 0 : d.color) ?? "primary";
|
|
391
|
-
}),
|
|
391
|
+
}), u = i(() => {
|
|
392
392
|
var d;
|
|
393
393
|
return ((d = n.value) == null ? void 0 : d.text) ?? a.t("cancel");
|
|
394
394
|
}), s = i(() => {
|
|
395
395
|
var d;
|
|
396
396
|
return ((d = r.value) == null ? void 0 : d.color) ?? "primary";
|
|
397
|
-
}),
|
|
397
|
+
}), g = i(() => {
|
|
398
398
|
var d;
|
|
399
399
|
return ((d = r.value) == null ? void 0 : d.text) ?? a.t("confirm");
|
|
400
400
|
});
|
|
@@ -413,7 +413,7 @@ const Me = /* @__PURE__ */ I({
|
|
|
413
413
|
return H(t, (d) => {
|
|
414
414
|
!d && !D && (p.emit("confirmDlgResult" + R, !1), D = !0);
|
|
415
415
|
}), (d, x) => {
|
|
416
|
-
const S =
|
|
416
|
+
const S = m("v-card-text"), E = m("v-btn"), L = m("v-card-actions"), _ = m("v-card"), w = m("v-dialog");
|
|
417
417
|
return b(), j(w, {
|
|
418
418
|
modelValue: W(t),
|
|
419
419
|
"onUpdate:modelValue": x[1] || (x[1] = (U) => X(t) ? t.value = U : null),
|
|
@@ -424,24 +424,24 @@ const Me = /* @__PURE__ */ I({
|
|
|
424
424
|
transition: "dialog-top-transition",
|
|
425
425
|
"max-width": "600px"
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
427
|
+
default: h(() => [
|
|
428
428
|
y(_, { title: l.value }, {
|
|
429
|
-
default:
|
|
429
|
+
default: h(() => [
|
|
430
430
|
y(S, null, {
|
|
431
|
-
default:
|
|
431
|
+
default: h(() => [
|
|
432
432
|
O(q(o.value), 1)
|
|
433
433
|
]),
|
|
434
434
|
_: 1
|
|
435
435
|
}),
|
|
436
436
|
y(L, { class: "d-flex justify-end" }, {
|
|
437
|
-
default:
|
|
437
|
+
default: h(() => [
|
|
438
438
|
y(E, {
|
|
439
439
|
onClick: x[0] || (x[0] = (U) => t.value = !1),
|
|
440
|
-
color:
|
|
440
|
+
color: c.value,
|
|
441
441
|
variant: "text"
|
|
442
442
|
}, {
|
|
443
|
-
default:
|
|
444
|
-
O(q(
|
|
443
|
+
default: h(() => [
|
|
444
|
+
O(q(u.value), 1)
|
|
445
445
|
]),
|
|
446
446
|
_: 1
|
|
447
447
|
}, 8, ["color"]),
|
|
@@ -450,8 +450,8 @@ const Me = /* @__PURE__ */ I({
|
|
|
450
450
|
color: s.value,
|
|
451
451
|
variant: "text"
|
|
452
452
|
}, {
|
|
453
|
-
default:
|
|
454
|
-
O(q(
|
|
453
|
+
default: h(() => [
|
|
454
|
+
O(q(g.value), 1)
|
|
455
455
|
]),
|
|
456
456
|
_: 1
|
|
457
457
|
}, 8, ["color"])
|
|
@@ -466,19 +466,19 @@ const Me = /* @__PURE__ */ I({
|
|
|
466
466
|
}, 8, ["modelValue", "onKeydown"]);
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
}), $e = (e) => (me("data-v-f4ad116e"), e = e(), he(), e), Le = /* @__PURE__ */ $e(() => /* @__PURE__ */
|
|
470
|
-
/* @__PURE__ */
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
/* @__PURE__ */
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
/* @__PURE__ */
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */
|
|
469
|
+
}), $e = (e) => (me("data-v-f4ad116e"), e = e(), he(), e), Le = /* @__PURE__ */ $e(() => /* @__PURE__ */ v("div", { class: "lds-spinner" }, [
|
|
470
|
+
/* @__PURE__ */ v("div"),
|
|
471
|
+
/* @__PURE__ */ v("div"),
|
|
472
|
+
/* @__PURE__ */ v("div"),
|
|
473
|
+
/* @__PURE__ */ v("div"),
|
|
474
|
+
/* @__PURE__ */ v("div"),
|
|
475
|
+
/* @__PURE__ */ v("div"),
|
|
476
|
+
/* @__PURE__ */ v("div"),
|
|
477
|
+
/* @__PURE__ */ v("div"),
|
|
478
|
+
/* @__PURE__ */ v("div"),
|
|
479
|
+
/* @__PURE__ */ v("div"),
|
|
480
|
+
/* @__PURE__ */ v("div"),
|
|
481
|
+
/* @__PURE__ */ v("div")
|
|
482
482
|
], -1)), Ke = [
|
|
483
483
|
Le
|
|
484
484
|
], We = /* @__PURE__ */ I({
|
|
@@ -550,11 +550,11 @@ const Me = /* @__PURE__ */ I({
|
|
|
550
550
|
}, t.timeout);
|
|
551
551
|
}), H(l, (r) => {
|
|
552
552
|
r || o("timeout", t.id);
|
|
553
|
-
}), (r,
|
|
554
|
-
const
|
|
555
|
-
return b(), j(
|
|
553
|
+
}), (r, c) => {
|
|
554
|
+
const u = m("v-alert");
|
|
555
|
+
return b(), j(u, {
|
|
556
556
|
modelValue: l.value,
|
|
557
|
-
"onUpdate:modelValue":
|
|
557
|
+
"onUpdate:modelValue": c[0] || (c[0] = (s) => l.value = s),
|
|
558
558
|
class: "mt-2",
|
|
559
559
|
type: e.type,
|
|
560
560
|
icon: n.value,
|
|
@@ -576,21 +576,21 @@ const Me = /* @__PURE__ */ I({
|
|
|
576
576
|
}), V(() => {
|
|
577
577
|
p.off("message", t);
|
|
578
578
|
});
|
|
579
|
-
const t = (
|
|
580
|
-
n(
|
|
581
|
-
}, l = (
|
|
582
|
-
r(
|
|
579
|
+
const t = (c) => {
|
|
580
|
+
n(c.type, c.text, c.timeout);
|
|
581
|
+
}, l = (c) => {
|
|
582
|
+
r(c);
|
|
583
583
|
};
|
|
584
584
|
let o = 0;
|
|
585
|
-
const n = (
|
|
586
|
-
const
|
|
587
|
-
a.items.push({ id:
|
|
588
|
-
}, r = (
|
|
589
|
-
const
|
|
590
|
-
|
|
585
|
+
const n = (c, u, s) => {
|
|
586
|
+
const g = o++;
|
|
587
|
+
a.items.push({ id: g, type: c, text: u, timeout: s });
|
|
588
|
+
}, r = (c) => {
|
|
589
|
+
const u = a.items.findIndex((s) => s.id === c);
|
|
590
|
+
u >= 0 && a.items.splice(u, 1);
|
|
591
591
|
};
|
|
592
|
-
return (
|
|
593
|
-
onClick:
|
|
592
|
+
return (c, u) => (b(), F("div", {
|
|
593
|
+
onClick: u[0] || (u[0] = B(() => {
|
|
594
594
|
}, ["stop"])),
|
|
595
595
|
class: "x-cont d-flex flex-column-reverse align-center"
|
|
596
596
|
}, [
|
|
@@ -607,7 +607,7 @@ const Me = /* @__PURE__ */ I({
|
|
|
607
607
|
}), Fe = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-70ed4b89"]]), Je = /* @__PURE__ */ I({
|
|
608
608
|
__name: "index",
|
|
609
609
|
setup(e) {
|
|
610
|
-
const a = G(), { open: t } = P("promptDlg"), l = f(""), o = f(""), n = f(), r = f(),
|
|
610
|
+
const a = G(), { open: t } = P("promptDlg"), l = f(""), o = f(""), n = f(), r = f(), c = f(), u = f(""), s = f(), g = f(), R = i(() => {
|
|
611
611
|
var _;
|
|
612
612
|
return ((_ = s.value) == null ? void 0 : _.color) ?? "primary";
|
|
613
613
|
}), D = i(() => {
|
|
@@ -615,15 +615,15 @@ const Me = /* @__PURE__ */ I({
|
|
|
615
615
|
return ((_ = s.value) == null ? void 0 : _.text) ?? a.t("cancel");
|
|
616
616
|
}), M = i(() => {
|
|
617
617
|
var _;
|
|
618
|
-
return ((_ =
|
|
618
|
+
return ((_ = g.value) == null ? void 0 : _.color) ?? "primary";
|
|
619
619
|
}), $ = i(() => {
|
|
620
620
|
var _;
|
|
621
|
-
return ((_ =
|
|
621
|
+
return ((_ = g.value) == null ? void 0 : _.text) ?? a.t("confirm");
|
|
622
622
|
}), d = f();
|
|
623
623
|
let x = 0, S = !1;
|
|
624
624
|
const E = async (_) => {
|
|
625
625
|
var w;
|
|
626
|
-
l.value = _.title, o.value = _.text, n.value = _.label, r.value = _.placeholder,
|
|
626
|
+
l.value = _.title, o.value = _.text, n.value = _.label, r.value = _.placeholder, c.value = _.rules, u.value = _.value, s.value = _.cancel, g.value = _.confirm, x = _.seq, S = !1, t.value = !0, await Y(() => d.value !== void 0, 1e3), (w = d.value) == null || w.focus();
|
|
627
627
|
};
|
|
628
628
|
C(() => {
|
|
629
629
|
p.on("promptDlg", E);
|
|
@@ -631,12 +631,12 @@ const Me = /* @__PURE__ */ I({
|
|
|
631
631
|
p.off("promptDlg", E);
|
|
632
632
|
});
|
|
633
633
|
const L = () => {
|
|
634
|
-
t.value = !1, S || (p.emit("promptDlgResult" + x,
|
|
634
|
+
t.value = !1, S || (p.emit("promptDlgResult" + x, u.value ?? ""), S = !0);
|
|
635
635
|
};
|
|
636
636
|
return H(t, (_) => {
|
|
637
637
|
!_ && !S && (p.emit("promptDlgResult" + x, void 0), S = !0);
|
|
638
638
|
}), (_, w) => {
|
|
639
|
-
const U =
|
|
639
|
+
const U = m("v-card-text"), _e = m("v-text-field"), de = m("v-form"), ee = m("v-btn"), ie = m("v-card-actions"), fe = m("v-card"), ge = m("v-dialog");
|
|
640
640
|
return b(), j(ge, {
|
|
641
641
|
modelValue: W(t),
|
|
642
642
|
"onUpdate:modelValue": w[2] || (w[2] = (A) => X(t) ? t.value = A : null),
|
|
@@ -647,23 +647,23 @@ const Me = /* @__PURE__ */ I({
|
|
|
647
647
|
transition: "dialog-top-transition",
|
|
648
648
|
"max-width": "600px"
|
|
649
649
|
}, {
|
|
650
|
-
default:
|
|
650
|
+
default: h(() => [
|
|
651
651
|
y(fe, { title: l.value }, {
|
|
652
|
-
default:
|
|
652
|
+
default: h(() => [
|
|
653
653
|
o.value ? (b(), j(U, { key: 0 }, {
|
|
654
|
-
default:
|
|
654
|
+
default: h(() => [
|
|
655
655
|
O(q(o.value), 1)
|
|
656
656
|
]),
|
|
657
657
|
_: 1
|
|
658
658
|
})) : ke("", !0),
|
|
659
659
|
y(de, { class: "mx-3" }, {
|
|
660
|
-
default:
|
|
660
|
+
default: h(() => [
|
|
661
661
|
y(_e, {
|
|
662
|
-
modelValue:
|
|
663
|
-
"onUpdate:modelValue": w[0] || (w[0] = (A) =>
|
|
662
|
+
modelValue: u.value,
|
|
663
|
+
"onUpdate:modelValue": w[0] || (w[0] = (A) => u.value = A),
|
|
664
664
|
label: n.value,
|
|
665
665
|
placeholder: r.value,
|
|
666
|
-
rules:
|
|
666
|
+
rules: c.value,
|
|
667
667
|
ref_key: "target",
|
|
668
668
|
ref: d
|
|
669
669
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
@@ -671,13 +671,13 @@ const Me = /* @__PURE__ */ I({
|
|
|
671
671
|
_: 1
|
|
672
672
|
}),
|
|
673
673
|
y(ie, { class: "d-flex justify-end" }, {
|
|
674
|
-
default:
|
|
674
|
+
default: h(() => [
|
|
675
675
|
y(ee, {
|
|
676
676
|
onClick: w[1] || (w[1] = (A) => t.value = !1),
|
|
677
677
|
color: R.value,
|
|
678
678
|
variant: "text"
|
|
679
679
|
}, {
|
|
680
|
-
default:
|
|
680
|
+
default: h(() => [
|
|
681
681
|
O(q(D.value), 1)
|
|
682
682
|
]),
|
|
683
683
|
_: 1
|
|
@@ -687,7 +687,7 @@ const Me = /* @__PURE__ */ I({
|
|
|
687
687
|
color: M.value,
|
|
688
688
|
variant: "text"
|
|
689
689
|
}, {
|
|
690
|
-
default:
|
|
690
|
+
default: h(() => [
|
|
691
691
|
O(q($.value), 1)
|
|
692
692
|
]),
|
|
693
693
|
_: 1
|
|
@@ -716,24 +716,24 @@ const Me = /* @__PURE__ */ I({
|
|
|
716
716
|
}), V(() => {
|
|
717
717
|
p.off("openWaitDlg", l), p.off("closeWaitDlg", o);
|
|
718
718
|
}), (n, r) => {
|
|
719
|
-
const
|
|
720
|
-
return b(), j(
|
|
719
|
+
const c = m("v-card"), u = m("v-dialog");
|
|
720
|
+
return b(), j(u, {
|
|
721
721
|
modelValue: W(t),
|
|
722
722
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => X(t) ? t.value = s : null),
|
|
723
723
|
persistent: "",
|
|
724
724
|
"no-click-animation": "",
|
|
725
725
|
fullscreen: ""
|
|
726
726
|
}, {
|
|
727
|
-
default:
|
|
728
|
-
|
|
729
|
-
y(
|
|
727
|
+
default: h(() => [
|
|
728
|
+
v("div", Xe, [
|
|
729
|
+
y(c, {
|
|
730
730
|
width: "300px",
|
|
731
731
|
height: "80px",
|
|
732
732
|
loading: ""
|
|
733
733
|
}, {
|
|
734
|
-
default:
|
|
735
|
-
|
|
736
|
-
|
|
734
|
+
default: h(() => [
|
|
735
|
+
v("div", Ge, [
|
|
736
|
+
v("span", null, q(W(a).t("waitingResponse")), 1)
|
|
737
737
|
])
|
|
738
738
|
]),
|
|
739
739
|
_: 1
|
|
@@ -748,7 +748,7 @@ const Me = /* @__PURE__ */ I({
|
|
|
748
748
|
e.component("x-confirm-dlg", Me), e.component("x-loading", ze), e.component("x-message", Fe), e.component("x-prompt-dlg", Je), e.component("x-wait-dlg", Qe);
|
|
749
749
|
};
|
|
750
750
|
function vt() {
|
|
751
|
-
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"),
|
|
751
|
+
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");
|
|
752
752
|
return {
|
|
753
753
|
primaryColor: a,
|
|
754
754
|
secondaryColor: t,
|
|
@@ -756,46 +756,46 @@ function vt() {
|
|
|
756
756
|
backgroundColor1: o,
|
|
757
757
|
backgroundColor2: n,
|
|
758
758
|
highlightColor: r,
|
|
759
|
-
borderColor:
|
|
759
|
+
borderColor: c
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
|
-
function mt() {
|
|
763
|
-
const
|
|
764
|
-
if (
|
|
765
|
-
|
|
762
|
+
function mt(e) {
|
|
763
|
+
const a = De(), t = ne(), l = Q(), o = ce(), n = (s) => {
|
|
764
|
+
if (s.key === "Escape") {
|
|
765
|
+
r();
|
|
766
766
|
return;
|
|
767
767
|
}
|
|
768
|
-
if (
|
|
769
|
-
|
|
768
|
+
if (!e && s.ctrlKey && s.shiftKey && s.key.toLowerCase() === "d") {
|
|
769
|
+
c();
|
|
770
770
|
return;
|
|
771
771
|
}
|
|
772
|
-
if (
|
|
772
|
+
if (!e && s.ctrlKey && s.shiftKey && s.key.toLowerCase() === "l") {
|
|
773
773
|
u();
|
|
774
774
|
return;
|
|
775
775
|
}
|
|
776
|
-
},
|
|
777
|
-
var
|
|
778
|
-
if (!
|
|
779
|
-
|
|
776
|
+
}, r = () => {
|
|
777
|
+
var g;
|
|
778
|
+
if (!o.isEmpty()) {
|
|
779
|
+
o.hasView("waitDlg") || o.popView();
|
|
780
780
|
return;
|
|
781
781
|
}
|
|
782
|
-
const
|
|
783
|
-
(
|
|
782
|
+
const s = Z(a.path);
|
|
783
|
+
(s == null ? void 0 : s.level) === 0 ? (g = navigator == null ? void 0 : navigator.Backbutton) == null || g.goHome(
|
|
784
784
|
() => {
|
|
785
785
|
},
|
|
786
786
|
() => {
|
|
787
787
|
}
|
|
788
|
-
) :
|
|
789
|
-
},
|
|
790
|
-
|
|
788
|
+
) : t.back();
|
|
789
|
+
}, c = () => {
|
|
790
|
+
l.dark = !l.dark;
|
|
791
791
|
}, u = () => {
|
|
792
|
-
|
|
792
|
+
l.locale === "en" ? l.locale = "zhHans" : l.locale = "en";
|
|
793
793
|
};
|
|
794
794
|
return C(() => {
|
|
795
|
-
window.addEventListener("keydown",
|
|
795
|
+
window.addEventListener("keydown", n, !1);
|
|
796
796
|
}), V(() => {
|
|
797
|
-
window.removeEventListener("keydown",
|
|
798
|
-
}), {};
|
|
797
|
+
window.removeEventListener("keydown", n, !1);
|
|
798
|
+
}), { onHotkeyEscape: r, onHotkeyCtrlShiftD: c, onHotkeyCtrlShiftL: u };
|
|
799
799
|
}
|
|
800
800
|
function ht() {
|
|
801
801
|
const e = Q();
|
|
@@ -822,14 +822,14 @@ function wt(e) {
|
|
|
822
822
|
});
|
|
823
823
|
if (!n)
|
|
824
824
|
return;
|
|
825
|
-
const
|
|
826
|
-
for (const
|
|
827
|
-
if (
|
|
825
|
+
const c = {};
|
|
826
|
+
for (const u in r) {
|
|
827
|
+
if (u === "checksum")
|
|
828
828
|
continue;
|
|
829
|
-
const s = r[
|
|
830
|
-
u
|
|
829
|
+
const s = r[u];
|
|
830
|
+
c[u] = JSON.parse(s);
|
|
831
831
|
}
|
|
832
|
-
a.permissionObjects =
|
|
832
|
+
a.permissionObjects = c, a.permissionChecksum = r.checksum ?? "";
|
|
833
833
|
} catch (n) {
|
|
834
834
|
console.error(n);
|
|
835
835
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"axios": "^1.6.8",
|
|
30
30
|
"pinia": "^2.1.7",
|
|
31
|
-
"vue": "^3.4.
|
|
31
|
+
"vue": "^3.4.29",
|
|
32
32
|
"vue-i18n": "^9.13.1",
|
|
33
33
|
"vue-router": "^4.3.2",
|
|
34
|
-
"vuetify": "^3.6.
|
|
34
|
+
"vuetify": "^3.6.9"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@rushstack/eslint-patch": "^1.8.0",
|