x-essential-lib 0.5.57 → 0.5.58

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.
Files changed (2) hide show
  1. package/dist/index.js +24 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
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-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-8c2268ea]{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 { ref as i, watch as N, computed as f, onMounted as S, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as R, createBlock as E, unref as z, isRef as Q, withKeys as F, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as A, createElementBlock as X, normalizeStyle as ge, pushScopeId as ve, popScopeId as me, createElementVNode as m, reactive as he, Fragment as we, renderList as ye, createCommentVNode as xe } from "vue";
2
+ import { ref as i, watch as N, computed as f, onMounted as S, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as R, createBlock as E, unref as z, isRef as Q, withKeys as F, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as A, createElementBlock as X, normalizeStyle as ge, pushScopeId as ve, popScopeId as me, createElementVNode as m, reactive as he, Fragment as we, renderList as xe, createCommentVNode as ye } from "vue";
3
3
  import { useTheme as H, useLocale as Y, useDisplay as ke } from "vuetify";
4
4
  import { defineStore as le } from "pinia";
5
5
  import be from "axios";
@@ -499,9 +499,9 @@ const $e = /* @__PURE__ */ M({
499
499
  var u;
500
500
  return ((u = n.value) == null ? void 0 : u.text) ?? a.t("confirm");
501
501
  });
502
- let x = 0, C = !1;
502
+ let y = 0, C = !1;
503
503
  const T = (u) => {
504
- l.value = u.title, o.value = u.text, r.value = u.cancel, n.value = u.confirm, x = u.seq, C = !1, t.value = !0;
504
+ l.value = u.title, o.value = u.text, r.value = u.cancel, n.value = u.confirm, y = u.seq, C = !1, t.value = !0;
505
505
  };
506
506
  S(() => {
507
507
  s.on("confirmDlg", T);
@@ -509,13 +509,13 @@ const $e = /* @__PURE__ */ M({
509
509
  s.off("confirmDlg", T);
510
510
  });
511
511
  const j = () => {
512
- t.value = !1, C || (s.emit("confirmDlgResult" + x, !0), C = !0);
512
+ t.value = !1, C || (s.emit("confirmDlgResult" + y, !0), C = !0);
513
513
  };
514
514
  return N(t, (u) => {
515
- !u && !C && (s.emit("confirmDlgResult" + x, !1), C = !0);
515
+ !u && !C && (s.emit("confirmDlgResult" + y, !1), C = !0);
516
516
  }), (u, g) => {
517
- const b = h("v-card-text"), V = h("v-btn"), q = h("v-card-actions"), d = h("v-card"), y = h("v-dialog");
518
- return R(), E(y, {
517
+ const b = h("v-card-text"), V = h("v-btn"), q = h("v-card-actions"), d = h("v-card"), x = h("v-dialog");
518
+ return R(), E(x, {
519
519
  modelValue: z(t),
520
520
  "onUpdate:modelValue": g[1] || (g[1] = (U) => Q(t) ? t.value = U : null),
521
521
  onKeydown: [
@@ -665,7 +665,7 @@ const $e = /* @__PURE__ */ M({
665
665
  }, ["stop"])),
666
666
  class: "x-cont d-flex flex-column-reverse align-center"
667
667
  }, [
668
- (R(!0), X(we, null, ye(a.items, (_) => (R(), E(Ne, {
668
+ (R(!0), X(we, null, xe(a.items, (_) => (R(), E(Ne, {
669
669
  onTimeout: l,
670
670
  id: _.id,
671
671
  type: _.type,
@@ -678,7 +678,7 @@ const $e = /* @__PURE__ */ M({
678
678
  }), Je = /* @__PURE__ */ pe(He, [["__scopeId", "data-v-8c2268ea"]]), Xe = /* @__PURE__ */ M({
679
679
  __name: "index",
680
680
  setup(e) {
681
- const a = Y(), { open: t } = ee("promptDlgInternal"), l = i(""), o = i(""), r = i(), n = i(), c = i(), p = i(""), _ = i(), v = i(), x = f(() => {
681
+ const a = Y(), { open: t } = ee("promptDlgInternal"), l = i(""), o = i(""), r = i(), n = i(), c = i(), p = i(""), _ = i(), v = i(), y = f(() => {
682
682
  var d;
683
683
  return ((d = _.value) == null ? void 0 : d.color) ?? "primary";
684
684
  }), C = f(() => {
@@ -693,8 +693,8 @@ const $e = /* @__PURE__ */ M({
693
693
  }), u = i();
694
694
  let g = 0, b = !1;
695
695
  const V = async (d) => {
696
- var y;
697
- l.value = d.title, o.value = d.text, r.value = d.label, n.value = d.placeholder, c.value = d.rules, p.value = d.value, _.value = d.cancel, v.value = d.confirm, g = d.seq, b = !1, t.value = !0, await P(() => u.value !== void 0, 1e3), (y = u.value) == null || y.focus();
696
+ var x;
697
+ l.value = d.title, o.value = d.text, r.value = d.label, n.value = d.placeholder, c.value = d.rules, p.value = d.value, _.value = d.cancel, v.value = d.confirm, g = d.seq, b = !1, t.value = !0, await P(() => u.value !== void 0, 1e3), (x = u.value) == null || x.focus();
698
698
  };
699
699
  S(() => {
700
700
  s.on("promptDlg", V);
@@ -706,13 +706,13 @@ const $e = /* @__PURE__ */ M({
706
706
  };
707
707
  return N(t, (d) => {
708
708
  !d && !b && (s.emit("promptDlgResult" + g, void 0), b = !0);
709
- }), (d, y) => {
709
+ }), (d, x) => {
710
710
  const U = h("v-card-text"), se = h("v-text-field"), _e = h("v-form"), te = h("v-btn"), de = h("v-card-actions"), ie = h("v-card"), fe = h("v-dialog");
711
711
  return R(), E(fe, {
712
712
  modelValue: z(t),
713
- "onUpdate:modelValue": y[2] || (y[2] = ($) => Q(t) ? t.value = $ : null),
713
+ "onUpdate:modelValue": x[2] || (x[2] = ($) => Q(t) ? t.value = $ : null),
714
714
  onKeydown: [
715
- y[3] || (y[3] = F(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
715
+ x[3] || (x[3] = F(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
716
716
  F(K(q, ["stop", "prevent"]), ["enter"])
717
717
  ],
718
718
  transition: "dialog-top-transition",
@@ -726,12 +726,12 @@ const $e = /* @__PURE__ */ M({
726
726
  I(A(o.value), 1)
727
727
  ]),
728
728
  _: 1
729
- })) : xe("", !0),
729
+ })) : ye("", !0),
730
730
  k(_e, { class: "mx-3" }, {
731
731
  default: w(() => [
732
732
  k(se, {
733
733
  modelValue: p.value,
734
- "onUpdate:modelValue": y[0] || (y[0] = ($) => p.value = $),
734
+ "onUpdate:modelValue": x[0] || (x[0] = ($) => p.value = $),
735
735
  label: r.value,
736
736
  placeholder: n.value,
737
737
  rules: c.value,
@@ -744,8 +744,8 @@ const $e = /* @__PURE__ */ M({
744
744
  k(de, { class: "d-flex justify-end" }, {
745
745
  default: w(() => [
746
746
  k(te, {
747
- onClick: y[1] || (y[1] = ($) => t.value = !1),
748
- color: x.value,
747
+ onClick: x[1] || (x[1] = ($) => t.value = !1),
748
+ color: y.value,
749
749
  variant: "text"
750
750
  }, {
751
751
  default: w(() => [
@@ -835,7 +835,6 @@ function Pe(e, a) {
835
835
  }
836
836
  function mt(e, a) {
837
837
  const t = Ce(), l = ne(), o = Z(), r = re();
838
- o.$hydrate();
839
838
  let n = !0;
840
839
  const c = () => {
841
840
  n = !1;
@@ -879,7 +878,7 @@ function mt(e, a) {
879
878
  }), O(() => {
880
879
  window.removeEventListener("keydown", v);
881
880
  });
882
- let x;
881
+ let y;
883
882
  const C = async () => {
884
883
  if (!n)
885
884
  return;
@@ -903,11 +902,11 @@ function mt(e, a) {
903
902
  console.error(g);
904
903
  }
905
904
  }, T = async (u) => {
906
- u && await C(), clearTimeout(x), x = setTimeout(async () => {
907
- await C(), x && T();
905
+ u && await C(), clearTimeout(y), y = setTimeout(async () => {
906
+ await C(), y && T();
908
907
  }, 3e3);
909
908
  }, j = () => {
910
- clearTimeout(x), x = void 0;
909
+ clearTimeout(y), y = void 0;
911
910
  };
912
911
  S(() => {
913
912
  a && T(!0);
@@ -927,14 +926,14 @@ function wt() {
927
926
  const e = H(), a = ke(), t = f(() => e.current.value.dark), l = f(() => !!window.cordova), o = f(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
928
927
  return { dark: t, sysBarAvail: l, compactWidth: o };
929
928
  }
930
- const yt = { install: Ze };
929
+ const xt = { install: Ze };
931
930
  export {
932
931
  Be as Permission,
933
932
  je as appAppear,
934
933
  Ae as clearAppAppear,
935
934
  st as closeWaitDlg,
936
935
  nt as createAxios,
937
- yt as default,
936
+ xt as default,
938
937
  s as eventBus,
939
938
  oe as isExist,
940
939
  L as matchRouteMeta,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.5.57",
4
+ "version": "0.5.58",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",