x-essential-lib 0.8.22 → 0.8.23
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 +22 -22
- package/package.json +4 -4
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('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-f1f60167]{width:600px}@media (max-width: 600px){.x-item[data-v-f1f60167]{width:calc(100vw - 16px)}}.x-cont[data-v-3543886b]{position:fixed;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 C, provide as U, inject as $, ref as p, watchEffect as le, onMounted as
|
|
2
|
+
import { computed as C, provide as U, inject as $, ref as p, watchEffect as le, onMounted as N, onBeforeUnmount as K, onBeforeMount as xe, defineComponent as I, watch as F, resolveComponent as v, createBlock as T, openBlock as q, withKeys as z, unref as A, withModifiers as B, isRef as W, withCtx as g, createVNode as b, createTextVNode as L, toDisplayString as S, Transition as ke, createElementBlock as P, createCommentVNode as ee, normalizeStyle as ue, createElementVNode as k, Fragment as De, renderList as Ve, useTemplateRef as ce } from "vue";
|
|
3
3
|
import { useI18n as G } from "vue-i18n";
|
|
4
4
|
import { useTheme as se, useDisplay as Ce } from "vuetify";
|
|
5
5
|
import { useRouter as pe, useRoute as qe } from "vue-router";
|
|
@@ -116,7 +116,7 @@ async function jt(e) {
|
|
|
116
116
|
return u.on("promptDlgResult" + l, o), u.emit("promptDlg", { ...e, seq: l }), await X(() => t), u.off("promptDlgResult" + l, o), a;
|
|
117
117
|
}
|
|
118
118
|
function Rt(e) {
|
|
119
|
-
u.emit("
|
|
119
|
+
u.emit("waitDlg", { text: e });
|
|
120
120
|
}
|
|
121
121
|
function St() {
|
|
122
122
|
u.emit("closeWaitDlg");
|
|
@@ -158,13 +158,13 @@ function Ke(e) {
|
|
|
158
158
|
function Bt() {
|
|
159
159
|
return $(_e);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Ne(e) {
|
|
162
162
|
U(de, e);
|
|
163
163
|
}
|
|
164
164
|
function It() {
|
|
165
165
|
return $(de);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function We(e) {
|
|
168
168
|
U(ie, e);
|
|
169
169
|
}
|
|
170
170
|
function Xe() {
|
|
@@ -390,12 +390,12 @@ function tt(e) {
|
|
|
390
390
|
function Kt(e) {
|
|
391
391
|
e.value = [];
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Nt(e, t, a, o, l, r) {
|
|
394
394
|
const c = qe(), n = pe(), _ = Se(), s = p(!1);
|
|
395
395
|
le(() => {
|
|
396
396
|
let f = !1;
|
|
397
397
|
typeof e.value == "boolean" ? f = e.value : f = _.value, s.value = f;
|
|
398
|
-
}), Ke(s),
|
|
398
|
+
}), Ke(s), Ne(t), We(a), ze(o), He(l), Fe(r);
|
|
399
399
|
const w = se();
|
|
400
400
|
le(() => {
|
|
401
401
|
w.change(s.value ? "dark" : "light");
|
|
@@ -424,7 +424,7 @@ function Wt(e, t, a, o, l, r) {
|
|
|
424
424
|
}, h = () => {
|
|
425
425
|
D();
|
|
426
426
|
};
|
|
427
|
-
|
|
427
|
+
N(() => {
|
|
428
428
|
window.addEventListener("keydown", y), u.on("backbutton", h);
|
|
429
429
|
}), K(() => {
|
|
430
430
|
window.removeEventListener("keydown", y), u.off("backbutton", h);
|
|
@@ -445,7 +445,7 @@ function Wt(e, t, a, o, l, r) {
|
|
|
445
445
|
u.off("updateDark", i), u.off("updateLocale", x), u.off("updatePermission", d), u.off("updateLastAppPath", j);
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Wt() {
|
|
449
449
|
const e = Xe();
|
|
450
450
|
function t(a, o) {
|
|
451
451
|
return $e(
|
|
@@ -476,7 +476,7 @@ function J(e, t) {
|
|
|
476
476
|
}), l = (r) => {
|
|
477
477
|
t?.(r), o.value = !0;
|
|
478
478
|
};
|
|
479
|
-
return
|
|
479
|
+
return N(() => {
|
|
480
480
|
u.on(e, l);
|
|
481
481
|
}), K(() => {
|
|
482
482
|
u.off(e, l);
|
|
@@ -499,7 +499,7 @@ const at = /* @__PURE__ */ I({
|
|
|
499
499
|
const x = v("v-card-text"), d = v("v-btn"), j = v("v-card-actions"), f = v("v-card"), m = v("v-dialog");
|
|
500
500
|
return q(), T(m, {
|
|
501
501
|
modelValue: A(D),
|
|
502
|
-
"onUpdate:modelValue": i[1] || (i[1] = (V) =>
|
|
502
|
+
"onUpdate:modelValue": i[1] || (i[1] = (V) => W(D) ? D.value = V : null),
|
|
503
503
|
attach: "",
|
|
504
504
|
"max-width": "600px",
|
|
505
505
|
transition: "dialog-top-transition",
|
|
@@ -565,7 +565,7 @@ const at = /* @__PURE__ */ I({
|
|
|
565
565
|
return (l, r) => (q(), T(ke, { name: "fade" }, {
|
|
566
566
|
default: g(() => [
|
|
567
567
|
l.open ? (q(), P("div", {
|
|
568
|
-
key:
|
|
568
|
+
key: W(o) ? ++o.value : ++o,
|
|
569
569
|
class: "x-cont",
|
|
570
570
|
style: ue(a.value)
|
|
571
571
|
}, r[0] || (r[0] = [
|
|
@@ -620,7 +620,7 @@ const at = /* @__PURE__ */ I({
|
|
|
620
620
|
return "";
|
|
621
621
|
}
|
|
622
622
|
}), l = p(!0), r = t;
|
|
623
|
-
return
|
|
623
|
+
return N(() => {
|
|
624
624
|
setTimeout(() => {
|
|
625
625
|
r("timeout", e.id);
|
|
626
626
|
}, e.timeout);
|
|
@@ -656,7 +656,7 @@ const at = /* @__PURE__ */ I({
|
|
|
656
656
|
__name: "index",
|
|
657
657
|
setup(e) {
|
|
658
658
|
const t = p([]);
|
|
659
|
-
|
|
659
|
+
N(() => {
|
|
660
660
|
u.on("message", a);
|
|
661
661
|
}), K(() => {
|
|
662
662
|
u.off("message", a);
|
|
@@ -706,7 +706,7 @@ const at = /* @__PURE__ */ I({
|
|
|
706
706
|
const j = v("v-number-input"), f = v("v-btn"), m = v("v-card-actions"), V = v("v-form"), Q = v("v-card"), Y = v("v-dialog");
|
|
707
707
|
return q(), T(Y, {
|
|
708
708
|
modelValue: A(y),
|
|
709
|
-
"onUpdate:modelValue": d[3] || (d[3] = (R) =>
|
|
709
|
+
"onUpdate:modelValue": d[3] || (d[3] = (R) => W(y) ? y.value = R : null),
|
|
710
710
|
attach: "",
|
|
711
711
|
"max-width": "600px",
|
|
712
712
|
transition: "dialog-top-transition",
|
|
@@ -786,7 +786,7 @@ const at = /* @__PURE__ */ I({
|
|
|
786
786
|
const Q = v("v-card-text"), Y = v("v-text-field"), R = v("v-btn"), be = v("v-card-actions"), ye = v("v-form"), we = v("v-card"), he = v("v-dialog");
|
|
787
787
|
return q(), T(he, {
|
|
788
788
|
modelValue: A(d),
|
|
789
|
-
"onUpdate:modelValue": V[3] || (V[3] = (M) =>
|
|
789
|
+
"onUpdate:modelValue": V[3] || (V[3] = (M) => W(d) ? d.value = M : null),
|
|
790
790
|
attach: "",
|
|
791
791
|
"max-width": "600px",
|
|
792
792
|
transition: "dialog-top-transition",
|
|
@@ -854,7 +854,7 @@ const at = /* @__PURE__ */ I({
|
|
|
854
854
|
}, 8, ["modelValue"]);
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
|
-
}), _t = { class: "
|
|
857
|
+
}), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */ I({
|
|
858
858
|
__name: "index",
|
|
859
859
|
setup(e) {
|
|
860
860
|
const { t } = G(), a = p(""), o = (c) => {
|
|
@@ -863,7 +863,7 @@ const at = /* @__PURE__ */ I({
|
|
|
863
863
|
}, l = () => {
|
|
864
864
|
r.value = !1;
|
|
865
865
|
}, { open: r } = J("waitDlg", o);
|
|
866
|
-
return
|
|
866
|
+
return N(() => {
|
|
867
867
|
u.on("closeWaitDlg", l);
|
|
868
868
|
}), K(() => {
|
|
869
869
|
u.off("closeWaitDlg", l);
|
|
@@ -871,7 +871,7 @@ const at = /* @__PURE__ */ I({
|
|
|
871
871
|
const _ = v("v-card"), s = v("v-dialog");
|
|
872
872
|
return q(), T(s, {
|
|
873
873
|
modelValue: A(r),
|
|
874
|
-
"onUpdate:modelValue": n[0] || (n[0] = (w) =>
|
|
874
|
+
"onUpdate:modelValue": n[0] || (n[0] = (w) => W(r) ? r.value = w : null),
|
|
875
875
|
attach: "",
|
|
876
876
|
fullscreen: "",
|
|
877
877
|
"no-click-animation": "",
|
|
@@ -944,14 +944,14 @@ export {
|
|
|
944
944
|
tt as popView,
|
|
945
945
|
Ke as provideDark,
|
|
946
946
|
He as provideLastAppPath,
|
|
947
|
-
|
|
947
|
+
Ne as provideLocale,
|
|
948
948
|
ze as providePermissionChecksum,
|
|
949
|
-
|
|
949
|
+
We as providePermissionObjects,
|
|
950
950
|
Fe as provideViews,
|
|
951
951
|
Z as routeTransName,
|
|
952
952
|
Oe as useColor,
|
|
953
|
-
|
|
954
|
-
|
|
953
|
+
Nt as useMicroApp,
|
|
954
|
+
Wt as usePermission,
|
|
955
955
|
Xt as useSystem,
|
|
956
956
|
J as useViewStack,
|
|
957
957
|
$e as verifyPermission,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.23",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"vue": "^3.5.17",
|
|
30
30
|
"vue-i18n": "^11.1.10",
|
|
31
31
|
"vue-router": "^4.5.1",
|
|
32
|
-
"vuetify": "^3.9.
|
|
32
|
+
"vuetify": "^3.9.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "^9.31.0",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"sass": "^1.89.2",
|
|
48
48
|
"typescript": "^5.8.3",
|
|
49
49
|
"typescript-eslint": "^8.37.0",
|
|
50
|
-
"vite": "^7.0.
|
|
50
|
+
"vite": "^7.0.5",
|
|
51
51
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
52
52
|
"vite-plugin-vuetify": "^2.1.1",
|
|
53
53
|
"vue-eslint-parser": "^10.2.0",
|
|
54
|
-
"vue-tsc": "^3.0.
|
|
54
|
+
"vue-tsc": "^3.0.2"
|
|
55
55
|
}
|
|
56
56
|
}
|