x-essential-lib 0.4.4 → 0.4.5

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.
@@ -1 +1 @@
1
- export declare function useHotkey(): {};
1
+ export declare function useHotkey(prod: boolean): {};
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 v, openBlock as b, createBlock as j, unref as W, isRef as X, withKeys as z, withModifiers as B, withCtx as m, createVNode as y, createTextVNode as O, toDisplayString as q, createElementBlock as F, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as g, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
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 c = e.value.length;
43
- if (c > 0)
44
- return e.value[c - 1];
42
+ const u = e.value.length;
43
+ if (u > 0)
44
+ return e.value[u - 1];
45
45
  }
46
- function l(c) {
47
- return e.value.find((s) => s === c) !== void 0;
46
+ function l(u) {
47
+ return e.value.find((s) => s === u) !== void 0;
48
48
  }
49
- function o(c) {
50
- n(c), e.value.push(c);
49
+ function o(u) {
50
+ n(u), e.value.push(u);
51
51
  }
52
- function n(c) {
53
- const s = e.value.findIndex((h) => h === c);
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 u() {
59
+ function c() {
60
60
  e.value = [];
61
61
  }
62
- return { isEmpty: a, lastView: t, hasView: l, addView: o, delView: n, popView: r, clearViews: u };
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 u = "";
89
- for (var c in r)
90
- r[c] && (u += "; " + c, r[c] !== !0 && (u += "=" + r[c].split(";")[0]));
91
- return document.cookie = o + "=" + e.write(n, o) + u;
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 = {}, u = 0; u < n.length; u++) {
97
- var c = n[u].split("="), s = c.slice(1).join("=");
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 h = decodeURIComponent(c[0]);
100
- if (r[h] = e.read(s, h), o === h)
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 u = 0; u < l.length && !(u >= n.length || l[u] !== n[u]); u++)
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(), u = i(() => {
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
- }), c = i(() => {
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
- }), h = i(() => {
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 = v("v-card-text"), E = v("v-btn"), L = v("v-card-actions"), _ = v("v-card"), w = v("v-dialog");
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: m(() => [
427
+ default: h(() => [
428
428
  y(_, { title: l.value }, {
429
- default: m(() => [
429
+ default: h(() => [
430
430
  y(S, null, {
431
- default: m(() => [
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: m(() => [
437
+ default: h(() => [
438
438
  y(E, {
439
439
  onClick: x[0] || (x[0] = (U) => t.value = !1),
440
- color: u.value,
440
+ color: c.value,
441
441
  variant: "text"
442
442
  }, {
443
- default: m(() => [
444
- O(q(c.value), 1)
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: m(() => [
454
- O(q(h.value), 1)
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__ */ g("div", { class: "lds-spinner" }, [
470
- /* @__PURE__ */ g("div"),
471
- /* @__PURE__ */ g("div"),
472
- /* @__PURE__ */ g("div"),
473
- /* @__PURE__ */ g("div"),
474
- /* @__PURE__ */ g("div"),
475
- /* @__PURE__ */ g("div"),
476
- /* @__PURE__ */ g("div"),
477
- /* @__PURE__ */ g("div"),
478
- /* @__PURE__ */ g("div"),
479
- /* @__PURE__ */ g("div"),
480
- /* @__PURE__ */ g("div"),
481
- /* @__PURE__ */ g("div")
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, u) => {
554
- const c = v("v-alert");
555
- return b(), j(c, {
553
+ }), (r, c) => {
554
+ const u = m("v-alert");
555
+ return b(), j(u, {
556
556
  modelValue: l.value,
557
- "onUpdate:modelValue": u[0] || (u[0] = (s) => l.value = s),
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 = (u) => {
580
- n(u.type, u.text, u.timeout);
581
- }, l = (u) => {
582
- r(u);
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 = (u, c, s) => {
586
- const h = o++;
587
- a.items.push({ id: h, type: u, text: c, timeout: s });
588
- }, r = (u) => {
589
- const c = a.items.findIndex((s) => s.id === u);
590
- c >= 0 && a.items.splice(c, 1);
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 (u, c) => (b(), F("div", {
593
- onClick: c[0] || (c[0] = B(() => {
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(), u = f(), c = f(""), s = f(), h = f(), R = i(() => {
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 ((_ = h.value) == null ? void 0 : _.color) ?? "primary";
618
+ return ((_ = g.value) == null ? void 0 : _.color) ?? "primary";
619
619
  }), $ = i(() => {
620
620
  var _;
621
- return ((_ = h.value) == null ? void 0 : _.text) ?? a.t("confirm");
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, u.value = _.rules, c.value = _.value, s.value = _.cancel, h.value = _.confirm, x = _.seq, S = !1, t.value = !0, await Y(() => d.value !== void 0, 1e3), (w = d.value) == null || w.focus();
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, c.value ?? ""), S = !0);
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 = v("v-card-text"), _e = v("v-text-field"), de = v("v-form"), ee = v("v-btn"), ie = v("v-card-actions"), fe = v("v-card"), ge = v("v-dialog");
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: m(() => [
650
+ default: h(() => [
651
651
  y(fe, { title: l.value }, {
652
- default: m(() => [
652
+ default: h(() => [
653
653
  o.value ? (b(), j(U, { key: 0 }, {
654
- default: m(() => [
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: m(() => [
660
+ default: h(() => [
661
661
  y(_e, {
662
- modelValue: c.value,
663
- "onUpdate:modelValue": w[0] || (w[0] = (A) => c.value = 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: u.value,
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: m(() => [
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: m(() => [
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: m(() => [
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 u = v("v-card"), c = v("v-dialog");
720
- return b(), j(c, {
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: m(() => [
728
- g("div", Xe, [
729
- y(u, {
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: m(() => [
735
- g("div", Ge, [
736
- g("span", null, q(W(a).t("waitingResponse")), 1)
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"), u = i(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
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,45 +756,45 @@ function vt() {
756
756
  backgroundColor1: o,
757
757
  backgroundColor2: n,
758
758
  highlightColor: r,
759
- borderColor: u
759
+ borderColor: c
760
760
  };
761
761
  }
762
- function mt() {
763
- const e = De(), a = ne(), t = Q(), l = ce(), o = (c) => {
764
- if (c.key === "Escape") {
765
- n();
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 (c.ctrlKey && c.shiftKey && c.key.toLowerCase() === "d") {
769
- r();
768
+ if (!e && s.ctrlKey && s.shiftKey && s.key.toLowerCase() === "d") {
769
+ c();
770
770
  return;
771
771
  }
772
- if (c.ctrlKey && c.shiftKey && c.key.toLowerCase() === "l") {
772
+ if (!e && s.ctrlKey && s.shiftKey && s.key.toLowerCase() === "l") {
773
773
  u();
774
774
  return;
775
775
  }
776
- }, n = () => {
777
- var s;
778
- if (!l.isEmpty()) {
779
- l.hasView("waitDlg") || l.popView();
776
+ }, r = () => {
777
+ var g;
778
+ if (!o.isEmpty()) {
779
+ o.hasView("waitDlg") || o.popView();
780
780
  return;
781
781
  }
782
- const c = Z(e.path);
783
- (c == null ? void 0 : c.level) === 0 ? (s = navigator == null ? void 0 : navigator.Backbutton) == null || s.goHome(
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
- ) : a.back();
789
- }, r = () => {
790
- t.dark = !t.dark;
788
+ ) : t.back();
789
+ }, c = () => {
790
+ l.dark = !l.dark;
791
791
  }, u = () => {
792
- t.locale === "en" ? t.locale = "zhHans" : t.locale = "en";
792
+ l.locale === "en" ? l.locale = "zhHans" : l.locale = "en";
793
793
  };
794
794
  return C(() => {
795
- window.addEventListener("keydown", o, !1);
795
+ window.addEventListener("keydown", n, !1);
796
796
  }), V(() => {
797
- window.removeEventListener("keydown", o, !1);
797
+ window.removeEventListener("keydown", n, !1);
798
798
  }), {};
799
799
  }
800
800
  function ht() {
@@ -822,14 +822,14 @@ function wt(e) {
822
822
  });
823
823
  if (!n)
824
824
  return;
825
- const u = {};
826
- for (const c in r) {
827
- if (c === "checksum")
825
+ const c = {};
826
+ for (const u in r) {
827
+ if (u === "checksum")
828
828
  continue;
829
- const s = r[c];
830
- u[c] = JSON.parse(s);
829
+ const s = r[u];
830
+ c[u] = JSON.parse(s);
831
831
  }
832
- a.permissionObjects = u, a.permissionChecksum = r.checksum ?? "";
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",
4
+ "version": "0.4.5",
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.27",
31
+ "vue": "^3.4.29",
32
32
  "vue-i18n": "^9.13.1",
33
33
  "vue-router": "^4.3.2",
34
- "vuetify": "^3.6.8"
34
+ "vuetify": "^3.6.9"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@rushstack/eslint-patch": "^1.8.0",