x-essential-lib 0.9.30 → 0.9.32
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 +44 -11
- package/dist/{vendor.fdumcx9j.js → vendor.muy2hy8m.js} +11 -11
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.id=`x-essential-lib`,e.appendChild(document.createTextNode(`.fade-leave-active[data-v-6874f27f]{transition:opacity .5s}.fade-leave-to[data-v-6874f27f]{opacity:0}.x-cont[data-v-6874f27f]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lds-spinner[data-v-6874f27f]{color:official;width:40px;height:40px;display:inline-block;position:relative}.lds-spinner div[data-v-6874f27f]{transform-origin:20px 20px;animation:1.2s linear infinite lds-spinner-6874f27f}.lds-spinner div[data-v-6874f27f]:after{content:" ";background:#9e9e9e;border-radius:5%;width:2px;height:6px;display:block;position:absolute;top:3px;left:18px}.lds-spinner div[data-v-6874f27f]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-6874f27f]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-6874f27f]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-6874f27f]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-6874f27f]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-6874f27f]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-6874f27f]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-6874f27f]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-6874f27f]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-6874f27f]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-6874f27f]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-6874f27f]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-6874f27f{0%{opacity:1}to{opacity:0}}.x-item[data-v-96fcf38e]{width:600px}@media (width<=600px){.x-item[data-v-96fcf38e]{width:calc(100vw - 16px)}}.x-cont[data-v-3d0e9ceb]{z-index:9999;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}
|
|
2
|
-
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { i as e, n as t, r as n, t as r } from "./vendor.
|
|
2
|
+
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { i as e, n as t, r as n, t as r } from "./vendor.muy2hy8m.js";
|
|
3
3
|
import { Fragment as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, isRef as h, normalizeStyle as g, onBeforeMount as _, onBeforeUnmount as v, onMounted as y, openBlock as b, provide as x, ref as S, renderList as C, resolveComponent as w, toDisplayString as T, unref as E, useTemplateRef as D, watch as O, watchEffect as k, withCtx as A, withKeys as j, withModifiers as M } from "vue";
|
|
4
4
|
import { useI18n as N } from "vue-i18n";
|
|
5
5
|
import { useDisplay as ee, useTheme as P } from "vuetify";
|
|
@@ -876,7 +876,40 @@ var $e = /* @__PURE__ */ p({
|
|
|
876
876
|
}, 8, ["modelValue"]);
|
|
877
877
|
};
|
|
878
878
|
}
|
|
879
|
-
}), ot =
|
|
879
|
+
}), ot = /* @__PURE__ */ p({
|
|
880
|
+
__name: "index",
|
|
881
|
+
props: {
|
|
882
|
+
show: { type: Boolean },
|
|
883
|
+
top: {},
|
|
884
|
+
left: {}
|
|
885
|
+
},
|
|
886
|
+
setup(e) {
|
|
887
|
+
let t = o(() => ({
|
|
888
|
+
position: "fixed",
|
|
889
|
+
backgroundColor: "#ff00cc",
|
|
890
|
+
width: "100vw",
|
|
891
|
+
height: "1px",
|
|
892
|
+
top: `${e.top}px`,
|
|
893
|
+
left: "0px",
|
|
894
|
+
zIndex: 9999
|
|
895
|
+
})), n = o(() => ({
|
|
896
|
+
position: "fixed",
|
|
897
|
+
backgroundColor: "#ff00cc",
|
|
898
|
+
width: "1px",
|
|
899
|
+
height: "100vh",
|
|
900
|
+
top: "0px",
|
|
901
|
+
left: `${e.left}px`,
|
|
902
|
+
zIndex: 9999
|
|
903
|
+
}));
|
|
904
|
+
return (r, a) => (b(), l(i, null, [e.show ? (b(), l("span", {
|
|
905
|
+
key: 0,
|
|
906
|
+
style: g(t.value)
|
|
907
|
+
}, null, 4)) : c("", !0), e.show ? (b(), l("span", {
|
|
908
|
+
key: 1,
|
|
909
|
+
style: g(n.value)
|
|
910
|
+
}, null, 4)) : c("", !0)], 64));
|
|
911
|
+
}
|
|
912
|
+
}), st = { class: "ma-auto" }, ct = { class: "w-100 h-100 d-flex align-center justify-center" }, lt = { class: "text-body-large" }, ut = /* @__PURE__ */ p({
|
|
880
913
|
__name: "index",
|
|
881
914
|
setup(e) {
|
|
882
915
|
let { t } = N(), n = S(""), r = (e) => {
|
|
@@ -898,21 +931,21 @@ var $e = /* @__PURE__ */ p({
|
|
|
898
931
|
"no-click-animation": "",
|
|
899
932
|
persistent: ""
|
|
900
933
|
}, {
|
|
901
|
-
default: A(() => [u("div",
|
|
934
|
+
default: A(() => [u("div", st, [f(r, {
|
|
902
935
|
height: "80px",
|
|
903
936
|
loading: "",
|
|
904
937
|
width: "300px"
|
|
905
938
|
}, {
|
|
906
|
-
default: A(() => [u("div",
|
|
939
|
+
default: A(() => [u("div", ct, [u("span", lt, T(n.value), 1)])]),
|
|
907
940
|
_: 1
|
|
908
941
|
})])]),
|
|
909
942
|
_: 1
|
|
910
943
|
}, 8, ["modelValue"]);
|
|
911
944
|
};
|
|
912
945
|
}
|
|
913
|
-
}),
|
|
914
|
-
e.component("XConfirmDlg", $e), e.component("XLoading", tt), e.component("XMessage", rt), e.component("XNumberDlg", it), e.component("XPromptDlg", at), e.component("XWaitDlg",
|
|
915
|
-
},
|
|
946
|
+
}), dt = (e) => {
|
|
947
|
+
e.component("XConfirmDlg", $e), e.component("XLoading", tt), e.component("XMessage", rt), e.component("XNumberDlg", it), e.component("XPromptDlg", at), e.component("XRefLine", ot), e.component("XWaitDlg", ut);
|
|
948
|
+
}, ft = (e, t, n) => {
|
|
916
949
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
917
950
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
918
951
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
@@ -920,14 +953,14 @@ var $e = /* @__PURE__ */ p({
|
|
|
920
953
|
};
|
|
921
954
|
//#endregion
|
|
922
955
|
//#region src/i18n/index.ts
|
|
923
|
-
async function
|
|
924
|
-
return (await
|
|
956
|
+
async function pt(e) {
|
|
957
|
+
return (await ft(/* @__PURE__ */ Object.assign({
|
|
925
958
|
"./locales/en/index.ts": () => import("./i18n-en.lqadbyvh.js").then((e) => e.t),
|
|
926
959
|
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.jagnyxbk.js").then((e) => e.t)
|
|
927
960
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
928
961
|
}
|
|
929
962
|
//#endregion
|
|
930
963
|
//#region src/index.ts
|
|
931
|
-
var
|
|
964
|
+
var mt = { install: dt };
|
|
932
965
|
//#endregion
|
|
933
|
-
export { we as Permission, Ke as addView, pe as appAppear, Ye as clearViews, ye as closeWaitDlg, ae as createAxios,
|
|
966
|
+
export { we as Permission, Ke as addView, pe as appAppear, Ye as clearViews, ye as closeWaitDlg, ae as createAxios, mt as default, qe as delView, F as eventBus, He as getTypeColor, Ue as getTypeDefault, de as globalObjects, Z as hasView, Ee as injectDark, Pe as injectLastAppPath, Oe as injectLocale, Me as injectPermissionChecksum, Ae as injectPermissionObjects, Ie as injectViews, We as isEmpty, B as isExist, Ge as lastView, pt as loadLocaleMessageEssential, J as matchRouteMeta, be as messageError, xe as messageInfo, Se as messageSuccess, Ce as messageWarning, Be as onBeforeEach, he as openConfirmDlg, ge as openNumberDlg, _e as openPromptDlg, ve as openWaitDlg, Je as popView, Te as provideDark, Ne as provideLastAppPath, De as provideLocale, je as providePermissionChecksum, ke as providePermissionObjects, Fe as provideViews, Y as routeTransName, Ve as types, ie as useColor, Xe as useMicroApp, Ze as usePermission, Qe as useSystem, Q as useViewStack, V as verifyPermission, fe as waitMs, I as waitUtil };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as e, getCurrentInstance as t, getCurrentScope as n, hasInjectionContext as r, inject as i, onMounted as a, shallowRef as o, toValue as s, unref as c, watch as l, watchEffect as u } from "vue";
|
|
2
|
-
//#region node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.
|
|
2
|
+
//#region node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
3
|
var d = /* @__PURE__ */ new WeakMap(), f = (...e) => {
|
|
4
4
|
let a = e[0], o = t()?.proxy ?? n();
|
|
5
5
|
if (o == null && !r()) throw Error("injectLocal must be called in setup");
|
|
@@ -20,7 +20,7 @@ function v(e, t, n) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.
|
|
23
|
+
//#region node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
24
24
|
var y = p ? window : void 0;
|
|
25
25
|
p && window.document, p && window.navigator, p && window.location;
|
|
26
26
|
function b(e) {
|
|
@@ -160,7 +160,7 @@ function j(e) {
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
//#endregion
|
|
163
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
163
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
164
164
|
var M = typeof global == "object" && global && global.Object === Object && global, N = typeof self == "object" && self && self.Object === Object && self, P = (M || N || Function("return this")()).Symbol, F = Object.prototype, I = F.hasOwnProperty, L = F.toString, R = P ? P.toStringTag : void 0;
|
|
165
165
|
function z(e) {
|
|
166
166
|
var t = I.call(e, R), n = e[R];
|
|
@@ -172,36 +172,36 @@ function z(e) {
|
|
|
172
172
|
return r && (t ? e[R] = n : delete e[R]), i;
|
|
173
173
|
}
|
|
174
174
|
//#endregion
|
|
175
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
175
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
176
176
|
var te = Object.prototype.toString;
|
|
177
177
|
function B(e) {
|
|
178
178
|
return te.call(e);
|
|
179
179
|
}
|
|
180
180
|
//#endregion
|
|
181
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
181
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
182
182
|
var V = "[object Null]", H = "[object Undefined]", U = P ? P.toStringTag : void 0;
|
|
183
183
|
function W(e) {
|
|
184
184
|
return e == null ? e === void 0 ? H : V : U && U in Object(e) ? z(e) : B(e);
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
187
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
188
188
|
function G(e) {
|
|
189
189
|
return typeof e == "object" && !!e;
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
192
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
193
193
|
var K = "[object Symbol]";
|
|
194
194
|
function q(e) {
|
|
195
195
|
return typeof e == "symbol" || G(e) && W(e) == K;
|
|
196
196
|
}
|
|
197
197
|
//#endregion
|
|
198
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
198
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
199
199
|
function J(e, t) {
|
|
200
200
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
201
201
|
return i;
|
|
202
202
|
}
|
|
203
203
|
//#endregion
|
|
204
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
204
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
205
205
|
var Y = Array.isArray, X = Infinity, Z = P ? P.prototype : void 0, Q = Z ? Z.toString : void 0;
|
|
206
206
|
function $(e) {
|
|
207
207
|
if (typeof e == "string") return e;
|
|
@@ -211,12 +211,12 @@ function $(e) {
|
|
|
211
211
|
return t == "0" && 1 / e == -X ? "-0" : t;
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
214
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
215
215
|
function ne(e) {
|
|
216
216
|
return e == null ? "" : $(e);
|
|
217
217
|
}
|
|
218
218
|
//#endregion
|
|
219
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
219
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toLower.js
|
|
220
220
|
function re(e) {
|
|
221
221
|
return ne(e).toLowerCase();
|
|
222
222
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.32",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -23,40 +23,40 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@vueuse/core": "^14.2.1",
|
|
26
|
-
"axios": "^1.
|
|
26
|
+
"axios": "^1.15.0",
|
|
27
27
|
"js-cookie": "^3.0.5",
|
|
28
|
-
"lodash-es": "^4.
|
|
28
|
+
"lodash-es": "^4.18.1",
|
|
29
29
|
"mitt": "^3.0.1",
|
|
30
|
-
"vue": "^3.5.
|
|
31
|
-
"vue-i18n": "^11.3.
|
|
32
|
-
"vue-router": "^5.0.
|
|
33
|
-
"vuetify": "^4.0.
|
|
30
|
+
"vue": "^3.5.32",
|
|
31
|
+
"vue-i18n": "^11.3.2",
|
|
32
|
+
"vue-router": "^5.0.4",
|
|
33
|
+
"vuetify": "^4.0.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@eslint/js": "^10.0.1",
|
|
37
37
|
"@tsconfig/node24": "^24.0.4",
|
|
38
38
|
"@types/js-cookie": "^3.0.6",
|
|
39
39
|
"@types/lodash-es": "^4.17.12",
|
|
40
|
-
"@types/node": "^25.
|
|
41
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
40
|
+
"@types/node": "^25.5.2",
|
|
41
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
42
42
|
"@vue/tsconfig": "^0.9.1",
|
|
43
|
-
"eslint": "^10.0
|
|
43
|
+
"eslint": "^10.2.0",
|
|
44
44
|
"eslint-config-prettier": "^10.1.8",
|
|
45
45
|
"eslint-plugin-prettier": "^5.5.5",
|
|
46
|
-
"eslint-plugin-simple-import-sort": "^
|
|
46
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
47
47
|
"eslint-plugin-vue": "^10.8.0",
|
|
48
48
|
"globals": "^17.4.0",
|
|
49
49
|
"husky": "^9.1.7",
|
|
50
|
-
"lint-staged": "^16.
|
|
50
|
+
"lint-staged": "^16.4.0",
|
|
51
51
|
"prettier": "3.8.1",
|
|
52
|
-
"sass": "^1.
|
|
52
|
+
"sass": "^1.99.0",
|
|
53
53
|
"typescript": "^5.9.3",
|
|
54
|
-
"typescript-eslint": "^8.
|
|
55
|
-
"vite": "^8.0.
|
|
54
|
+
"typescript-eslint": "^8.58.1",
|
|
55
|
+
"vite": "^8.0.7",
|
|
56
56
|
"vite-plugin-css-injected-by-js": "^4.0.1",
|
|
57
57
|
"vite-plugin-dts": "^4.5.4",
|
|
58
58
|
"vite-plugin-vuetify": "^2.1.3",
|
|
59
59
|
"vue-eslint-parser": "^10.4.0",
|
|
60
|
-
"vue-tsc": "^3.2.
|
|
60
|
+
"vue-tsc": "^3.2.6"
|
|
61
61
|
}
|
|
62
62
|
}
|