x-essential-lib 0.7.13 → 0.7.14

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,5 +1,5 @@
1
1
  interface Props {
2
2
  zIndex?: number;
3
3
  }
4
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
4
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
5
  export default _default;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-essential-lib",e.appendChild(document.createTextNode('.x-cont[data-v-ee4ce2cf]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-ee4ce2cf]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-ee4ce2cf]{transform-origin:20px 20px;animation:lds-spinner-ee4ce2cf 1.2s linear infinite}.lds-spinner div[data-v-ee4ce2cf]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-ee4ce2cf]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-ee4ce2cf{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as xe, onScopeDispose as be, unref as H, watchEffect as ke, getCurrentInstance as Ce, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as q, isRef as Y, withKeys as F, withModifiers as $, withCtx as w, createVNode as b, createTextVNode as V, toDisplayString as R, createElementBlock as Q, normalizeStyle as re, createElementVNode as m, createCommentVNode as le, Fragment as De, renderList as Me, useTemplateRef as Se } from "vue";
3
- import { useI18n as P } from "vue-i18n";
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.x-cont[data-v-4a0b025f]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-4a0b025f]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-4a0b025f]{transform-origin:20px 20px;animation:lds-spinner-4a0b025f 1.2s linear infinite}.lds-spinner div[data-v-4a0b025f]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-4a0b025f]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-4a0b025f]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-4a0b025f]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-4a0b025f]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-4a0b025f]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-4a0b025f]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-4a0b025f]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-4a0b025f]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-4a0b025f]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-4a0b025f]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-4a0b025f]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-4a0b025f]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-4a0b025f{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as xe, onScopeDispose as be, unref as H, watchEffect as ke, getCurrentInstance as Ce, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as q, isRef as J, withKeys as F, withModifiers as $, withCtx as w, createVNode as b, createTextVNode as V, toDisplayString as R, createElementVNode as v, normalizeStyle as re, createCommentVNode as le, createElementBlock as ae, Fragment as De, renderList as Me, useTemplateRef as Se } from "vue";
3
+ import { useI18n as Y } from "vue-i18n";
4
4
  import { useTheme as ce, useDisplay as je } from "vuetify";
5
5
  import { useRouter as ue, useRoute as Re } from "vue-router";
6
6
  import qe from "axios";
@@ -36,7 +36,7 @@ var Ae = {
36
36
  );
37
37
  }
38
38
  };
39
- function J(e, t) {
39
+ function Q(e, t) {
40
40
  function a(n, l, c) {
41
41
  if (!(typeof document > "u")) {
42
42
  c = X({}, 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);
@@ -74,10 +74,10 @@ function J(e, t) {
74
74
  );
75
75
  },
76
76
  withAttributes: function(n) {
77
- return J(this.converter, X({}, this.attributes, n));
77
+ return Q(this.converter, X({}, this.attributes, n));
78
78
  },
79
79
  withConverter: function(n) {
80
- return J(X({}, this.converter, n), this.attributes);
80
+ return Q(X({}, this.converter, n), this.attributes);
81
81
  }
82
82
  },
83
83
  {
@@ -86,7 +86,7 @@ function J(e, t) {
86
86
  }
87
87
  );
88
88
  }
89
- var A = J(Ae, { path: "/" });
89
+ var A = Q(Ae, { path: "/" });
90
90
  function Et(e) {
91
91
  const t = qe.create({
92
92
  timeout: 6e3
@@ -146,7 +146,7 @@ async function Bt(e) {
146
146
  setTimeout(t, e);
147
147
  });
148
148
  }
149
- async function ee(e, t, a) {
149
+ async function P(e, t, a) {
150
150
  const o = Date.now();
151
151
  return new Promise((n) => {
152
152
  const l = async () => {
@@ -177,7 +177,7 @@ async function Ut(e) {
177
177
  const o = (l) => {
178
178
  a = l, t = !0;
179
179
  }, n = pe();
180
- return s.on("confirmDlgResult" + n, o), s.emit("confirmDlg", { ...e, seq: n }), await ee(() => t), s.off("confirmDlgResult" + n, o), a;
180
+ return s.on("confirmDlgResult" + n, o), s.emit("confirmDlg", { ...e, seq: n }), await P(() => t), s.off("confirmDlgResult" + n, o), a;
181
181
  }
182
182
  async function Wt(e) {
183
183
  if (!se())
@@ -186,7 +186,7 @@ async function Wt(e) {
186
186
  const o = (l) => {
187
187
  a = l, t = !0;
188
188
  }, n = pe();
189
- return s.on("promptDlgResult" + n, o), s.emit("promptDlg", { ...e, seq: n }), await ee(() => t), s.off("promptDlgResult" + n, o), a;
189
+ return s.on("promptDlgResult" + n, o), s.emit("promptDlg", { ...e, seq: n }), await P(() => t), s.off("promptDlgResult" + n, o), a;
190
190
  }
191
191
  function $t(e) {
192
192
  s.emit("openWaitDlg", { text: e });
@@ -512,10 +512,10 @@ function ea(e, t, a, o, n, l) {
512
512
  );
513
513
  const g = (p) => {
514
514
  if (p.key === "Escape") {
515
- v();
515
+ m();
516
516
  return;
517
517
  }
518
- }, v = () => {
518
+ }, m = () => {
519
519
  var x;
520
520
  if (!tt(l)) {
521
521
  me(l, "waitDlg") || nt(l);
@@ -530,9 +530,9 @@ function ea(e, t, a, o, n, l) {
530
530
  ) : r.back();
531
531
  };
532
532
  T(() => {
533
- window.addEventListener("keydown", g), s.on("backbutton", v);
533
+ window.addEventListener("keydown", g), s.on("backbutton", m);
534
534
  }), W(() => {
535
- window.removeEventListener("keydown", g), s.off("backbutton", v);
535
+ window.removeEventListener("keydown", g), s.off("backbutton", m);
536
536
  });
537
537
  const L = (p) => {
538
538
  e.value = p;
@@ -565,7 +565,7 @@ function aa() {
565
565
  const e = y(() => !!window.cordova), t = je(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
566
566
  return { sysBarAvail: e, compactWidth: a };
567
567
  }
568
- function te(e, t) {
568
+ function ee(e, t) {
569
569
  const a = Je(), o = y({
570
570
  get() {
571
571
  return me(a, e);
@@ -585,26 +585,26 @@ function te(e, t) {
585
585
  const dt = /* @__PURE__ */ E({
586
586
  __name: "index",
587
587
  setup(e) {
588
- const { t } = P(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(""), r = f("");
588
+ const { t } = Y(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(""), r = f("");
589
589
  let u = 0, _ = !1;
590
590
  const g = (k) => {
591
591
  var D, p, x, M;
592
592
  const i = k;
593
- a.value = i.title, o.value = i.text, n.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((p = i.cancel) == null ? void 0 : p.text) ?? t("dlg.common.cancel"), c.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", r.value = ((M = i.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
594
- }, { open: v } = te("confirmDlg", g), L = () => {
595
- v.value = !1, _ || (s.emit("confirmDlgResult" + u, !0), _ = !0);
593
+ a.value = i.title, o.value = i.text, n.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((p = i.cancel) == null ? void 0 : p.text) ?? t("dlg.common.cancel"), c.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", r.value = ((M = i.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, m.value = !0;
594
+ }, { open: m } = ee("confirmDlg", g), L = () => {
595
+ m.value = !1, _ || (s.emit("confirmDlgResult" + u, !0), _ = !0);
596
596
  };
597
- return N(v, (k) => {
597
+ return N(m, (k) => {
598
598
  !k && !_ && (s.emit("confirmDlgResult" + u, !1), _ = !0);
599
599
  }), (k, i) => {
600
600
  const D = h("v-card-text"), p = h("v-btn"), x = h("v-card-actions"), M = h("v-card"), d = h("v-dialog");
601
601
  return C(), q(d, {
602
- modelValue: H(v),
603
- "onUpdate:modelValue": i[1] || (i[1] = (j) => Y(v) ? v.value = j : null),
602
+ modelValue: H(m),
603
+ "onUpdate:modelValue": i[1] || (i[1] = (j) => J(m) ? m.value = j : null),
604
604
  transition: "dialog-top-transition",
605
605
  "max-width": "600px",
606
606
  onKeydown: [
607
- i[2] || (i[2] = F($((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
607
+ i[2] || (i[2] = F($((j) => m.value = !1, ["stop", "prevent"]), ["esc"])),
608
608
  F($(L, ["stop", "prevent"]), ["enter"])
609
609
  ]
610
610
  }, {
@@ -622,7 +622,7 @@ const dt = /* @__PURE__ */ E({
622
622
  b(p, {
623
623
  color: n.value,
624
624
  variant: "text",
625
- onClick: i[0] || (i[0] = (j) => v.value = !1)
625
+ onClick: i[0] || (i[0] = (j) => m.value = !1)
626
626
  }, {
627
627
  default: w(() => [
628
628
  V(R(l.value), 1)
@@ -660,32 +660,40 @@ const dt = /* @__PURE__ */ E({
660
660
  background: t.value,
661
661
  zIndex: e.zIndex
662
662
  }));
663
- return (o, n) => (C(), Q("div", {
664
- class: "x-cont",
665
- style: re(a.value)
666
- }, n[0] || (n[0] = [
667
- m("div", { class: "lds-spinner" }, [
668
- m("div"),
669
- m("div"),
670
- m("div"),
671
- m("div"),
672
- m("div"),
673
- m("div"),
674
- m("div"),
675
- m("div"),
676
- m("div"),
677
- m("div"),
678
- m("div"),
679
- m("div")
680
- ], -1)
681
- ]), 4));
663
+ return (o, n) => {
664
+ const l = h("v-fade-transition");
665
+ return C(), q(l, null, {
666
+ default: w(() => [
667
+ v("div", {
668
+ class: "x-cont",
669
+ style: re(a.value)
670
+ }, n[0] || (n[0] = [
671
+ v("div", { class: "lds-spinner" }, [
672
+ v("div"),
673
+ v("div"),
674
+ v("div"),
675
+ v("div"),
676
+ v("div"),
677
+ v("div"),
678
+ v("div"),
679
+ v("div"),
680
+ v("div"),
681
+ v("div"),
682
+ v("div"),
683
+ v("div")
684
+ ], -1)
685
+ ]), 4)
686
+ ]),
687
+ _: 1
688
+ });
689
+ };
682
690
  }
683
- }), ae = (e, t) => {
691
+ }), te = (e, t) => {
684
692
  const a = e.__vccOpts || e;
685
693
  for (const [o, n] of t)
686
694
  a[o] = n;
687
695
  return a;
688
- }, gt = /* @__PURE__ */ ae(ft, [["__scopeId", "data-v-ee4ce2cf"]]);
696
+ }, gt = /* @__PURE__ */ te(ft, [["__scopeId", "data-v-4a0b025f"]]);
689
697
  var vt = "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", mt = "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", ht = "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", wt = "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", yt = "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";
690
698
  const xt = /* @__PURE__ */ E({
691
699
  __name: "item",
@@ -733,20 +741,20 @@ const xt = /* @__PURE__ */ E({
733
741
  class: "mx-1",
734
742
  icon: n.value
735
743
  }, null, 8, ["icon"])) : le("", !0),
736
- m("div", {
744
+ v("div", {
737
745
  style: re(o.value)
738
746
  }, R(a.text), 5),
739
747
  b(_, {
740
748
  class: "mx-1",
741
749
  icon: H(ht),
742
- onClick: u[0] || (u[0] = (v) => c("timeout", a.id))
750
+ onClick: u[0] || (u[0] = (m) => c("timeout", a.id))
743
751
  }, null, 8, ["icon"])
744
752
  ]),
745
753
  _: 1
746
754
  }, 8, ["color"]);
747
755
  };
748
756
  }
749
- }), bt = /* @__PURE__ */ ae(xt, [["__scopeId", "data-v-d5cfe252"]]), kt = /* @__PURE__ */ E({
757
+ }), bt = /* @__PURE__ */ te(xt, [["__scopeId", "data-v-d5cfe252"]]), kt = /* @__PURE__ */ E({
750
758
  __name: "index",
751
759
  setup(e) {
752
760
  const t = f([]);
@@ -769,12 +777,12 @@ const xt = /* @__PURE__ */ E({
769
777
  const u = t.value.findIndex((_) => _.id === r);
770
778
  u >= 0 && t.value.splice(u, 1);
771
779
  };
772
- return (r, u) => (C(), Q("div", {
780
+ return (r, u) => (C(), ae("div", {
773
781
  class: "x-cont d-flex flex-column-reverse align-center",
774
782
  onClick: u[0] || (u[0] = $(() => {
775
783
  }, ["stop"]))
776
784
  }, [
777
- (C(!0), Q(De, null, Me(t.value, (_) => (C(), q(bt, {
785
+ (C(!0), ae(De, null, Me(t.value, (_) => (C(), q(bt, {
778
786
  id: _.id,
779
787
  key: _.id,
780
788
  type: _.type,
@@ -784,16 +792,16 @@ const xt = /* @__PURE__ */ E({
784
792
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
785
793
  ]));
786
794
  }
787
- }), Ct = /* @__PURE__ */ ae(kt, [["__scopeId", "data-v-8fd5d800"]]), Lt = /* @__PURE__ */ E({
795
+ }), Ct = /* @__PURE__ */ te(kt, [["__scopeId", "data-v-8fd5d800"]]), Lt = /* @__PURE__ */ E({
788
796
  __name: "index",
789
797
  setup(e) {
790
- const { t } = P(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(), r = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Se("target");
798
+ const { t } = Y(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(), r = f(""), u = f(""), _ = f(""), g = f(""), m = f(""), L = Se("target");
791
799
  let k = 0, i = !1;
792
800
  const D = async (M) => {
793
801
  var j, K, z, B;
794
802
  const d = M;
795
- a.value = d.title, o.value = d.text, n.value = d.label, l.value = d.placeholder, c.value = d.rules, r.value = d.value, u.value = ((j = d.cancel) == null ? void 0 : j.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), k = d.seq, i = !1, p.value = !0, await ee(() => !!L.value), L.value.focus();
796
- }, { open: p } = te("promptDlg", D), x = () => {
803
+ a.value = d.title, o.value = d.text, n.value = d.label, l.value = d.placeholder, c.value = d.rules, r.value = d.value, u.value = ((j = d.cancel) == null ? void 0 : j.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", m.value = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), k = d.seq, i = !1, p.value = !0, await P(() => !!L.value), L.value.focus();
804
+ }, { open: p } = ee("promptDlg", D), x = () => {
797
805
  p.value = !1, i || (s.emit("promptDlgResult" + k, r.value ?? ""), i = !0);
798
806
  };
799
807
  return N(p, (M) => {
@@ -802,7 +810,7 @@ const xt = /* @__PURE__ */ E({
802
810
  const j = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), B = h("v-btn"), he = h("v-card-actions"), we = h("v-card"), ye = h("v-dialog");
803
811
  return C(), q(ye, {
804
812
  modelValue: H(p),
805
- "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(p) ? p.value = U : null),
813
+ "onUpdate:modelValue": d[2] || (d[2] = (U) => J(p) ? p.value = U : null),
806
814
  transition: "dialog-top-transition",
807
815
  "max-width": "600px",
808
816
  onKeydown: [
@@ -851,7 +859,7 @@ const xt = /* @__PURE__ */ E({
851
859
  onClick: x
852
860
  }, {
853
861
  default: w(() => [
854
- V(R(v.value), 1)
862
+ V(R(m.value), 1)
855
863
  ]),
856
864
  _: 1
857
865
  }, 8, ["color"])
@@ -869,12 +877,12 @@ const xt = /* @__PURE__ */ E({
869
877
  }), Dt = { class: "mx-auto my-auto" }, Mt = { class: "w-100 h-100 d-flex align-center justify-center" }, St = { class: "text-body-1" }, jt = /* @__PURE__ */ E({
870
878
  __name: "index",
871
879
  setup(e) {
872
- const { t } = P(), a = f(""), o = (c) => {
880
+ const { t } = Y(), a = f(""), o = (c) => {
873
881
  const r = c;
874
882
  a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
875
883
  }, n = () => {
876
884
  l.value = !1;
877
- }, { open: l } = te("waitDlg", o);
885
+ }, { open: l } = ee("waitDlg", o);
878
886
  return T(() => {
879
887
  s.on("closeWaitDlg", n);
880
888
  }), W(() => {
@@ -883,21 +891,21 @@ const xt = /* @__PURE__ */ E({
883
891
  const u = h("v-card"), _ = h("v-dialog");
884
892
  return C(), q(_, {
885
893
  modelValue: H(l),
886
- "onUpdate:modelValue": r[0] || (r[0] = (g) => Y(l) ? l.value = g : null),
894
+ "onUpdate:modelValue": r[0] || (r[0] = (g) => J(l) ? l.value = g : null),
887
895
  persistent: "",
888
896
  "no-click-animation": "",
889
897
  fullscreen: ""
890
898
  }, {
891
899
  default: w(() => [
892
- m("div", Dt, [
900
+ v("div", Dt, [
893
901
  b(u, {
894
902
  width: "300px",
895
903
  height: "80px",
896
904
  loading: ""
897
905
  }, {
898
906
  default: w(() => [
899
- m("div", Mt, [
900
- m("span", St, R(a.value), 1)
907
+ v("div", Mt, [
908
+ v("span", St, R(a.value), 1)
901
909
  ])
902
910
  ]),
903
911
  _: 1
@@ -969,8 +977,8 @@ export {
969
977
  ea as useMicroApp,
970
978
  ta as usePermission,
971
979
  aa as useSystem,
972
- te as useViewStack,
980
+ ee as useViewStack,
973
981
  Ke as verifyPermission,
974
982
  Bt as waitMs,
975
- ee as waitUtil
983
+ P as waitUtil
976
984
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.7.13",
4
+ "version": "0.7.14",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",