x-essential-lib 0.8.24 → 0.8.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/components/confirmDlg/index.vue.d.ts +1 -1
- package/dist/components/loading/index.vue.d.ts +1 -1
- package/dist/components/message/index.vue.d.ts +1 -1
- package/dist/components/message/item.vue.d.ts +1 -1
- package/dist/components/numberDlg/index.vue.d.ts +1 -1
- package/dist/components/promptDlg/index.vue.d.ts +1 -1
- package/dist/components/waitDlg/index.vue.d.ts +1 -1
- package/dist/{i18n-en.g2u6ybqk.js → i18n-en.is028vmn.js} +1 -1
- package/dist/{i18n-zhHans.m6y1by9n.js → i18n-zhHans.bda4v4ye.js} +1 -1
- package/dist/index.js +32 -29
- package/dist/utils/router.d.ts +1 -1
- package/dist/{vendor.detlzgps.js → vendor.ohp5twbt.js} +8 -4
- package/package.json +16 -16
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -2,5 +2,5 @@ interface Props {
|
|
|
2
2
|
open?: boolean;
|
|
3
3
|
zIndex?: number;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -5,7 +5,7 @@ interface Props {
|
|
|
5
5
|
text: string;
|
|
6
6
|
timeout?: number;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
8
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
timeout: (...args: any[]) => void;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
11
11
|
onTimeout?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 N, onBeforeUnmount as K, onBeforeMount as xe, defineComponent 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 A, watch as F, resolveComponent as v, createBlock as T, openBlock as q, withKeys as z, unref as I, withModifiers as M, 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";
|
|
6
6
|
import je from "axios";
|
|
7
|
-
import { a as E, m as Re, u as Se } from "./vendor.
|
|
7
|
+
import { a as E, m as Re, u as Se } from "./vendor.ohp5twbt.js";
|
|
8
8
|
function Oe() {
|
|
9
9
|
const e = se(), t = C(() => e.global.current.value.colors.primary), a = C(() => e.global.current.value.colors.secondary), o = C(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = C(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = C(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = C(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = C(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
10
|
return {
|
|
@@ -43,12 +43,12 @@ function Be(e) {
|
|
|
43
43
|
}
|
|
44
44
|
function Me(e, t) {
|
|
45
45
|
const o = e.response;
|
|
46
|
-
return o && (o.status === 401 &&
|
|
46
|
+
return o && (o.status === 401 && Ae(), o.data?.message ? t(o.data?.message) : t({
|
|
47
47
|
code: o.status,
|
|
48
48
|
message: o.statusText
|
|
49
49
|
})), Promise.reject(e);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ae() {
|
|
52
52
|
E.remove("accessToken"), E.remove("refreshToken"), E.remove("activeOrg"), pe().replace({ path: "/passport/login" });
|
|
53
53
|
}
|
|
54
54
|
const Dt = function() {
|
|
@@ -73,7 +73,7 @@ async function X(e, t, a) {
|
|
|
73
73
|
r();
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ie(e, t) {
|
|
77
77
|
const a = document.getElementById("single-spa-application:" + e);
|
|
78
78
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
79
79
|
a.classList.add("app-reset");
|
|
@@ -161,7 +161,7 @@ function Mt() {
|
|
|
161
161
|
function Ne(e) {
|
|
162
162
|
U(de, e);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function At() {
|
|
165
165
|
return $(de);
|
|
166
166
|
}
|
|
167
167
|
function We(e) {
|
|
@@ -173,7 +173,7 @@ function Xe() {
|
|
|
173
173
|
function ze(e) {
|
|
174
174
|
U(fe, e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function It() {
|
|
177
177
|
return $(fe);
|
|
178
178
|
}
|
|
179
179
|
function He(e) {
|
|
@@ -192,17 +192,20 @@ const Je = [
|
|
|
192
192
|
{
|
|
193
193
|
app: "x-passport-mf",
|
|
194
194
|
path: "/passport/login",
|
|
195
|
-
level: 0
|
|
195
|
+
level: 0,
|
|
196
|
+
mainActive: 1
|
|
196
197
|
},
|
|
197
198
|
{
|
|
198
199
|
app: "x-passport-mf",
|
|
199
200
|
path: "/passport/loginAccount",
|
|
200
|
-
level: 1
|
|
201
|
+
level: 1,
|
|
202
|
+
mainActive: 1
|
|
201
203
|
},
|
|
202
204
|
{
|
|
203
205
|
app: "x-passport-mf",
|
|
204
206
|
path: "/passport/register",
|
|
205
|
-
level: 1
|
|
207
|
+
level: 1,
|
|
208
|
+
mainActive: 1
|
|
206
209
|
},
|
|
207
210
|
{
|
|
208
211
|
app: "x-org-mf",
|
|
@@ -318,7 +321,7 @@ function O(e, t, a) {
|
|
|
318
321
|
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !l)
|
|
319
322
|
return;
|
|
320
323
|
const r = o.app === l.app, c = o.path === l.path, n = o.level >= l.level;
|
|
321
|
-
r ? c ? Z.value = "" : Z.value = n ? "inner-left" : "inner-right" : (Z.value = "",
|
|
324
|
+
r ? c ? Z.value = "" : Z.value = n ? "inner-left" : "inner-right" : (Z.value = "", Ie(o.app, n));
|
|
322
325
|
}
|
|
323
326
|
function Qe() {
|
|
324
327
|
return !!E.get("accessToken");
|
|
@@ -482,7 +485,7 @@ function J(e, t) {
|
|
|
482
485
|
u.off(e, l);
|
|
483
486
|
}), { open: o };
|
|
484
487
|
}
|
|
485
|
-
const at = /* @__PURE__ */
|
|
488
|
+
const at = /* @__PURE__ */ A({
|
|
486
489
|
__name: "index",
|
|
487
490
|
setup(e) {
|
|
488
491
|
const { t } = G(), a = p(""), o = p(""), l = p(""), r = p(""), c = p(""), n = p("");
|
|
@@ -498,7 +501,7 @@ const at = /* @__PURE__ */ I({
|
|
|
498
501
|
}), (h, i) => {
|
|
499
502
|
const x = v("v-card-text"), d = v("v-btn"), j = v("v-card-actions"), f = v("v-card"), m = v("v-dialog");
|
|
500
503
|
return q(), T(m, {
|
|
501
|
-
modelValue:
|
|
504
|
+
modelValue: I(D),
|
|
502
505
|
"onUpdate:modelValue": i[1] || (i[1] = (V) => W(D) ? D.value = V : null),
|
|
503
506
|
attach: "",
|
|
504
507
|
"max-width": "600px",
|
|
@@ -550,7 +553,7 @@ const at = /* @__PURE__ */ I({
|
|
|
550
553
|
}, 8, ["modelValue", "onKeydown"]);
|
|
551
554
|
};
|
|
552
555
|
}
|
|
553
|
-
}), ot = /* @__PURE__ */
|
|
556
|
+
}), ot = /* @__PURE__ */ A({
|
|
554
557
|
__name: "index",
|
|
555
558
|
props: {
|
|
556
559
|
open: { type: Boolean, default: !0 },
|
|
@@ -593,7 +596,7 @@ const at = /* @__PURE__ */ I({
|
|
|
593
596
|
for (const [o, l] of t)
|
|
594
597
|
a[o] = l;
|
|
595
598
|
return a;
|
|
596
|
-
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-0c686889"]]), nt = /* @__PURE__ */
|
|
599
|
+
}, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-0c686889"]]), nt = /* @__PURE__ */ A({
|
|
597
600
|
__name: "item",
|
|
598
601
|
props: {
|
|
599
602
|
id: {},
|
|
@@ -652,7 +655,7 @@ const at = /* @__PURE__ */ I({
|
|
|
652
655
|
}, 8, ["color"]);
|
|
653
656
|
};
|
|
654
657
|
}
|
|
655
|
-
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */
|
|
658
|
+
}), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */ A({
|
|
656
659
|
__name: "index",
|
|
657
660
|
setup(e) {
|
|
658
661
|
const t = p([]);
|
|
@@ -690,7 +693,7 @@ const at = /* @__PURE__ */ I({
|
|
|
690
693
|
}, null, 8, ["id", "text", "timeout", "type"]))), 128))
|
|
691
694
|
]));
|
|
692
695
|
}
|
|
693
|
-
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-3543886b"]]), st = /* @__PURE__ */
|
|
696
|
+
}), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-3543886b"]]), st = /* @__PURE__ */ A({
|
|
694
697
|
__name: "index",
|
|
695
698
|
setup(e) {
|
|
696
699
|
const { t } = G(), a = p(""), o = p(0), l = p(), r = p(-1 / 0), c = p(1 / 0), n = p(1);
|
|
@@ -705,7 +708,7 @@ const at = /* @__PURE__ */ I({
|
|
|
705
708
|
}), (x, d) => {
|
|
706
709
|
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
710
|
return q(), T(Y, {
|
|
708
|
-
modelValue:
|
|
711
|
+
modelValue: I(y),
|
|
709
712
|
"onUpdate:modelValue": d[3] || (d[3] = (R) => W(y) ? y.value = R : null),
|
|
710
713
|
attach: "",
|
|
711
714
|
"max-width": "600px",
|
|
@@ -741,7 +744,7 @@ const at = /* @__PURE__ */ I({
|
|
|
741
744
|
onClick: d[1] || (d[1] = (R) => y.value = !1)
|
|
742
745
|
}, {
|
|
743
746
|
default: g(() => [
|
|
744
|
-
L(S(
|
|
747
|
+
L(S(I(t)("dlg.common.cancel")), 1)
|
|
745
748
|
]),
|
|
746
749
|
_: 1
|
|
747
750
|
}),
|
|
@@ -752,7 +755,7 @@ const at = /* @__PURE__ */ I({
|
|
|
752
755
|
variant: "text"
|
|
753
756
|
}, {
|
|
754
757
|
default: g(() => [
|
|
755
|
-
L(S(
|
|
758
|
+
L(S(I(t)("dlg.common.confirm")), 1)
|
|
756
759
|
]),
|
|
757
760
|
_: 1
|
|
758
761
|
}, 8, ["disabled"])
|
|
@@ -770,7 +773,7 @@ const at = /* @__PURE__ */ I({
|
|
|
770
773
|
}, 8, ["modelValue"]);
|
|
771
774
|
};
|
|
772
775
|
}
|
|
773
|
-
}), pt = /* @__PURE__ */
|
|
776
|
+
}), pt = /* @__PURE__ */ A({
|
|
774
777
|
__name: "index",
|
|
775
778
|
setup(e) {
|
|
776
779
|
const { t } = G(), a = p(""), o = p(""), l = p(""), r = p(""), c = p(), n = p(""), _ = p(""), s = p(""), w = p(""), D = p("");
|
|
@@ -785,7 +788,7 @@ const at = /* @__PURE__ */ I({
|
|
|
785
788
|
}), (m, V) => {
|
|
786
789
|
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
790
|
return q(), T(he, {
|
|
788
|
-
modelValue:
|
|
791
|
+
modelValue: I(d),
|
|
789
792
|
"onUpdate:modelValue": V[3] || (V[3] = (B) => W(d) ? d.value = B : null),
|
|
790
793
|
attach: "",
|
|
791
794
|
"max-width": "600px",
|
|
@@ -854,12 +857,12 @@ const at = /* @__PURE__ */ I({
|
|
|
854
857
|
}, 8, ["modelValue"]);
|
|
855
858
|
};
|
|
856
859
|
}
|
|
857
|
-
}), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */
|
|
860
|
+
}), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */ A({
|
|
858
861
|
__name: "index",
|
|
859
862
|
setup(e) {
|
|
860
863
|
const { t } = G(), a = p(""), o = (c) => {
|
|
861
864
|
const n = c;
|
|
862
|
-
a.value = n.text ?? t("dlg.common.
|
|
865
|
+
a.value = n.text ?? t("dlg.common.responding"), r.value = !0;
|
|
863
866
|
}, l = () => {
|
|
864
867
|
r.value = !1;
|
|
865
868
|
}, { open: r } = J("waitDlg", o);
|
|
@@ -870,7 +873,7 @@ const at = /* @__PURE__ */ I({
|
|
|
870
873
|
}), (c, n) => {
|
|
871
874
|
const _ = v("v-card"), s = v("v-dialog");
|
|
872
875
|
return q(), T(s, {
|
|
873
|
-
modelValue:
|
|
876
|
+
modelValue: I(r),
|
|
874
877
|
"onUpdate:modelValue": n[0] || (n[0] = (w) => W(r) ? r.value = w : null),
|
|
875
878
|
attach: "",
|
|
876
879
|
fullscreen: "",
|
|
@@ -906,13 +909,13 @@ const at = /* @__PURE__ */ I({
|
|
|
906
909
|
});
|
|
907
910
|
};
|
|
908
911
|
async function zt(e) {
|
|
909
|
-
return (await vt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.
|
|
912
|
+
return (await vt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.is028vmn.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.bda4v4ye.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
910
913
|
}
|
|
911
914
|
const Ht = { install: gt };
|
|
912
915
|
export {
|
|
913
916
|
Ue as Permission,
|
|
914
917
|
Pe as addView,
|
|
915
|
-
|
|
918
|
+
Ie as appAppear,
|
|
916
919
|
Kt as clearViews,
|
|
917
920
|
St as closeWaitDlg,
|
|
918
921
|
kt as createAxios,
|
|
@@ -923,8 +926,8 @@ export {
|
|
|
923
926
|
me as hasView,
|
|
924
927
|
Mt as injectDark,
|
|
925
928
|
Et as injectLastAppPath,
|
|
926
|
-
|
|
927
|
-
|
|
929
|
+
At as injectLocale,
|
|
930
|
+
It as injectPermissionChecksum,
|
|
928
931
|
Xe as injectPermissionObjects,
|
|
929
932
|
Ge as injectViews,
|
|
930
933
|
Ze as isEmpty,
|
package/dist/utils/router.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface RouteMeta {
|
|
|
4
4
|
path: string;
|
|
5
5
|
level: number;
|
|
6
6
|
requiredState?: 'auth' | 'org';
|
|
7
|
-
mainActive?: 2 | 3 | 4;
|
|
7
|
+
mainActive?: 1 | 2 | 3 | 4;
|
|
8
8
|
}
|
|
9
9
|
export declare function matchRouteMeta(path: string): RouteMeta | undefined;
|
|
10
10
|
export declare const routeTransName: import("vue").Ref<string, string>;
|
|
@@ -2,7 +2,7 @@ import { getCurrentInstance as M, hasInjectionContext as x, inject as b, watch a
|
|
|
2
2
|
function U(e) {
|
|
3
3
|
return E() ? (I(e), !0) : !1;
|
|
4
4
|
}
|
|
5
|
-
const y = /* @__PURE__ */ new WeakMap(), A = (...e) => {
|
|
5
|
+
const y = /* @__PURE__ */ new WeakMap(), A = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
6
6
|
var n;
|
|
7
7
|
const t = e[0], o = (n = M()) == null ? void 0 : n.proxy;
|
|
8
8
|
if (o == null && !x())
|
|
@@ -68,23 +68,26 @@ function T(...e) {
|
|
|
68
68
|
};
|
|
69
69
|
return U(t), u;
|
|
70
70
|
}
|
|
71
|
+
// @__NO_SIDE_EFFECTS__
|
|
71
72
|
function G() {
|
|
72
73
|
const e = g(!1), n = M();
|
|
73
74
|
return n && R(() => {
|
|
74
75
|
e.value = !0;
|
|
75
76
|
}, n), e;
|
|
76
77
|
}
|
|
78
|
+
// @__NO_SIDE_EFFECTS__
|
|
77
79
|
function Q(e) {
|
|
78
|
-
const n = G();
|
|
80
|
+
const n = /* @__PURE__ */ G();
|
|
79
81
|
return S(() => (n.value, !!e()));
|
|
80
82
|
}
|
|
81
83
|
const V = Symbol("vueuse-ssr-width");
|
|
84
|
+
// @__NO_SIDE_EFFECTS__
|
|
82
85
|
function $() {
|
|
83
|
-
const e = x() ? A(V, null) : null;
|
|
86
|
+
const e = x() ? /* @__PURE__ */ A(V, null) : null;
|
|
84
87
|
return typeof e == "number" ? e : void 0;
|
|
85
88
|
}
|
|
86
89
|
function H(e, n = {}) {
|
|
87
|
-
const { window: t = W, ssrWidth: o = $() } = n, r = Q(() => t && "matchMedia" in t && typeof t.matchMedia == "function"), a = g(typeof o == "number"), u = g(), i = g(!1), c = (s) => {
|
|
90
|
+
const { window: t = W, ssrWidth: o = /* @__PURE__ */ $() } = n, r = /* @__PURE__ */ Q(() => t && "matchMedia" in t && typeof t.matchMedia == "function"), a = g(typeof o == "number"), u = g(), i = g(!1), c = (s) => {
|
|
88
91
|
i.value = s.matches;
|
|
89
92
|
};
|
|
90
93
|
return O(() => {
|
|
@@ -101,6 +104,7 @@ function H(e, n = {}) {
|
|
|
101
104
|
r.value && (u.value = t.matchMedia(d(e)), i.value = u.value.matches);
|
|
102
105
|
}), T(u, "change", c, { passive: !0 }), S(() => i.value);
|
|
103
106
|
}
|
|
107
|
+
// @__NO_SIDE_EFFECTS__
|
|
104
108
|
function X(e) {
|
|
105
109
|
return H("(prefers-color-scheme: dark)", e);
|
|
106
110
|
}
|
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.26",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"*": "prettier --write ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@vueuse/core": "^13.
|
|
26
|
-
"axios": "^1.
|
|
25
|
+
"@vueuse/core": "^13.6.0",
|
|
26
|
+
"axios": "^1.11.0",
|
|
27
27
|
"js-cookie": "^3.0.5",
|
|
28
28
|
"mitt": "^3.0.1",
|
|
29
|
-
"vue": "^3.5.
|
|
30
|
-
"vue-i18n": "^11.1.
|
|
29
|
+
"vue": "^3.5.18",
|
|
30
|
+
"vue-i18n": "^11.1.11",
|
|
31
31
|
"vue-router": "^4.5.1",
|
|
32
|
-
"vuetify": "^3.9.
|
|
32
|
+
"vuetify": "^3.9.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint/js": "^9.
|
|
35
|
+
"@eslint/js": "^9.32.0",
|
|
36
36
|
"@types/js-cookie": "^3.0.6",
|
|
37
|
-
"@types/node": "^24.0
|
|
38
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
39
|
-
"eslint": "^9.
|
|
40
|
-
"eslint-config-prettier": "^10.1.
|
|
41
|
-
"eslint-plugin-prettier": "^5.5.
|
|
37
|
+
"@types/node": "^24.1.0",
|
|
38
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
39
|
+
"eslint": "^9.32.0",
|
|
40
|
+
"eslint-config-prettier": "^10.1.8",
|
|
41
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
42
42
|
"eslint-plugin-vue": "^10.3.0",
|
|
43
43
|
"globals": "^16.3.0",
|
|
44
44
|
"husky": "^9.1.7",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"prettier": "3.6.2",
|
|
47
47
|
"sass": "^1.89.2",
|
|
48
48
|
"typescript": "^5.8.3",
|
|
49
|
-
"typescript-eslint": "^8.
|
|
50
|
-
"vite": "^7.0.
|
|
49
|
+
"typescript-eslint": "^8.38.0",
|
|
50
|
+
"vite": "^7.0.6",
|
|
51
51
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
52
|
-
"vite-plugin-vuetify": "^2.1.
|
|
52
|
+
"vite-plugin-vuetify": "^2.1.2",
|
|
53
53
|
"vue-eslint-parser": "^10.2.0",
|
|
54
|
-
"vue-tsc": "^3.0.
|
|
54
|
+
"vue-tsc": "^3.0.4"
|
|
55
55
|
}
|
|
56
56
|
}
|