x-essential-lib 0.5.25 → 0.5.26
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 +19 -19
- 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 V, createBlock as E, unref as z, isRef as G, withKeys as L, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as
|
|
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 V, createBlock as E, unref as z, isRef as G, withKeys as L, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as A, createElementBlock as J, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as m, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
|
|
3
3
|
import { useTheme as H, useLocale as Q, useDisplay as be } from "vuetify";
|
|
4
4
|
import { defineStore as le } from "pinia";
|
|
5
5
|
import Ce from "axios";
|
|
@@ -181,7 +181,7 @@ function Oe(e, a) {
|
|
|
181
181
|
function Te() {
|
|
182
182
|
B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"), re().replace({ path: "/passport/login" });
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ae(e) {
|
|
185
185
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
186
186
|
var l = e.get(a);
|
|
187
187
|
l ? l.push(t) : e.set(a, [t]);
|
|
@@ -198,7 +198,7 @@ function je(e) {
|
|
|
198
198
|
} };
|
|
199
199
|
}
|
|
200
200
|
const p = function() {
|
|
201
|
-
return window.eventBus || (window.eventBus =
|
|
201
|
+
return window.eventBus || (window.eventBus = Ae()), window.eventBus;
|
|
202
202
|
}();
|
|
203
203
|
async function rt(e) {
|
|
204
204
|
return new Promise((a) => {
|
|
@@ -230,9 +230,9 @@ function ue() {
|
|
|
230
230
|
const e = Date.now();
|
|
231
231
|
return e - ee > 500 ? (ee = e, !0) : !1;
|
|
232
232
|
}
|
|
233
|
-
let
|
|
233
|
+
let je = 0;
|
|
234
234
|
function se() {
|
|
235
|
-
return ++
|
|
235
|
+
return ++je;
|
|
236
236
|
}
|
|
237
237
|
async function ct(e) {
|
|
238
238
|
if (!ue())
|
|
@@ -297,7 +297,7 @@ const Be = [
|
|
|
297
297
|
{ path: "/mine/general", level: 2, requiredState: "org" },
|
|
298
298
|
{ path: "/mine/general/darkMode", level: 3, requiredState: "org" },
|
|
299
299
|
{ path: "/mine/general/language", level: 3, requiredState: "org" },
|
|
300
|
-
{ path: "/app/manager", level: 1, requiredState: "org" },
|
|
300
|
+
{ path: "/app/manager", level: 1, requiredState: "org", mainActive: 2 },
|
|
301
301
|
{ path: "/app/editor", level: 2, requiredState: "org" },
|
|
302
302
|
{ path: "/asset", level: 1, requiredState: "org", mainActive: 2 },
|
|
303
303
|
{ path: "/calc", level: 1, requiredState: "org", mainActive: 2 },
|
|
@@ -418,7 +418,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
418
418
|
}), O(() => {
|
|
419
419
|
p.off("confirmDlg", T);
|
|
420
420
|
});
|
|
421
|
-
const
|
|
421
|
+
const j = () => {
|
|
422
422
|
t.value = !1, C || (p.emit("confirmDlgResult" + x, !0), C = !0);
|
|
423
423
|
};
|
|
424
424
|
return N(t, (u) => {
|
|
@@ -430,7 +430,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
430
430
|
"onUpdate:modelValue": g[1] || (g[1] = (U) => G(t) ? t.value = U : null),
|
|
431
431
|
onKeydown: [
|
|
432
432
|
g[2] || (g[2] = L(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
433
|
-
L(K(
|
|
433
|
+
L(K(j, ["stop", "prevent"]), ["enter"])
|
|
434
434
|
],
|
|
435
435
|
transition: "dialog-top-transition",
|
|
436
436
|
"max-width": "600px"
|
|
@@ -440,7 +440,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
440
440
|
default: w(() => [
|
|
441
441
|
k(b, null, {
|
|
442
442
|
default: w(() => [
|
|
443
|
-
I(
|
|
443
|
+
I(A(o.value), 1)
|
|
444
444
|
]),
|
|
445
445
|
_: 1
|
|
446
446
|
}),
|
|
@@ -452,17 +452,17 @@ const Ue = /* @__PURE__ */ M({
|
|
|
452
452
|
variant: "text"
|
|
453
453
|
}, {
|
|
454
454
|
default: w(() => [
|
|
455
|
-
I(
|
|
455
|
+
I(A(s.value), 1)
|
|
456
456
|
]),
|
|
457
457
|
_: 1
|
|
458
458
|
}, 8, ["color"]),
|
|
459
459
|
k(R, {
|
|
460
|
-
onClick:
|
|
460
|
+
onClick: j,
|
|
461
461
|
color: _.value,
|
|
462
462
|
variant: "text"
|
|
463
463
|
}, {
|
|
464
464
|
default: w(() => [
|
|
465
|
-
I(
|
|
465
|
+
I(A(v.value), 1)
|
|
466
466
|
]),
|
|
467
467
|
_: 1
|
|
468
468
|
}, 8, ["color"])
|
|
@@ -597,7 +597,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
597
597
|
}), T = f(() => {
|
|
598
598
|
var d;
|
|
599
599
|
return ((d = v.value) == null ? void 0 : d.color) ?? "primary";
|
|
600
|
-
}),
|
|
600
|
+
}), j = f(() => {
|
|
601
601
|
var d;
|
|
602
602
|
return ((d = v.value) == null ? void 0 : d.text) ?? a.t("confirm");
|
|
603
603
|
}), u = i();
|
|
@@ -633,7 +633,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
633
633
|
default: w(() => [
|
|
634
634
|
o.value ? (V(), E(U, { key: 0 }, {
|
|
635
635
|
default: w(() => [
|
|
636
|
-
I(
|
|
636
|
+
I(A(o.value), 1)
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
})) : ke("", !0),
|
|
@@ -659,7 +659,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
659
659
|
variant: "text"
|
|
660
660
|
}, {
|
|
661
661
|
default: w(() => [
|
|
662
|
-
I(
|
|
662
|
+
I(A(C.value), 1)
|
|
663
663
|
]),
|
|
664
664
|
_: 1
|
|
665
665
|
}, 8, ["color"]),
|
|
@@ -669,7 +669,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
669
669
|
variant: "text"
|
|
670
670
|
}, {
|
|
671
671
|
default: w(() => [
|
|
672
|
-
I(j
|
|
672
|
+
I(A(j.value), 1)
|
|
673
673
|
]),
|
|
674
674
|
_: 1
|
|
675
675
|
}, 8, ["color"])
|
|
@@ -714,7 +714,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
714
714
|
}, {
|
|
715
715
|
default: w(() => [
|
|
716
716
|
m("div", Ge, [
|
|
717
|
-
m("span", null,
|
|
717
|
+
m("span", null, A(z(a).t("waitingResponse")), 1)
|
|
718
718
|
])
|
|
719
719
|
]),
|
|
720
720
|
_: 1
|
|
@@ -815,13 +815,13 @@ function mt(e, a) {
|
|
|
815
815
|
u && await C(), clearTimeout(x), x = setTimeout(async () => {
|
|
816
816
|
await C(), x && T();
|
|
817
817
|
}, 3e3);
|
|
818
|
-
},
|
|
818
|
+
}, j = () => {
|
|
819
819
|
clearTimeout(x), x = void 0;
|
|
820
820
|
};
|
|
821
821
|
S(() => {
|
|
822
822
|
a && T(!0);
|
|
823
823
|
}), O(() => {
|
|
824
|
-
|
|
824
|
+
j();
|
|
825
825
|
});
|
|
826
826
|
}
|
|
827
827
|
function ht() {
|