x-essential-lib 0.9.25 → 0.9.27
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/composables/color.d.ts +32 -2
- package/dist/index.js +3 -3
- package/package.json +13 -13
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
export declare function useColor(): {
|
|
2
|
-
primaryColor: import("vue").ComputedRef<string
|
|
3
|
-
|
|
2
|
+
primaryColor: import("vue").ComputedRef<string | number | {
|
|
3
|
+
readonly h: number;
|
|
4
|
+
readonly s: number;
|
|
5
|
+
readonly v: number;
|
|
6
|
+
readonly a?: number | undefined;
|
|
7
|
+
} | {
|
|
8
|
+
readonly r: number;
|
|
9
|
+
readonly g: number;
|
|
10
|
+
readonly b: number;
|
|
11
|
+
readonly a?: number | undefined;
|
|
12
|
+
} | {
|
|
13
|
+
readonly h: number;
|
|
14
|
+
readonly s: number;
|
|
15
|
+
readonly l: number;
|
|
16
|
+
readonly a?: number | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
secondaryColor: import("vue").ComputedRef<string | number | {
|
|
19
|
+
readonly h: number;
|
|
20
|
+
readonly s: number;
|
|
21
|
+
readonly v: number;
|
|
22
|
+
readonly a?: number | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
readonly r: number;
|
|
25
|
+
readonly g: number;
|
|
26
|
+
readonly b: number;
|
|
27
|
+
readonly a?: number | undefined;
|
|
28
|
+
} | {
|
|
29
|
+
readonly h: number;
|
|
30
|
+
readonly s: number;
|
|
31
|
+
readonly l: number;
|
|
32
|
+
readonly a?: number | undefined;
|
|
33
|
+
}>;
|
|
4
34
|
backgroundColor0: import("vue").ComputedRef<"#2e2e2e" | "#bdbdbd">;
|
|
5
35
|
backgroundColor1: import("vue").ComputedRef<"#272727" | "#eeeeee">;
|
|
6
36
|
backgroundColor2: import("vue").ComputedRef<"#1e1e1e" | "#ffffff">;
|
package/dist/index.js
CHANGED
|
@@ -420,7 +420,7 @@ function clearViews(e) {
|
|
|
420
420
|
function useMicroApp(T, E, D, O, k, A) {
|
|
421
421
|
let j = useRoute(), M = useRouter(), N = usePreferredDark(), P = ref(!1);
|
|
422
422
|
watchEffect(() => {
|
|
423
|
-
let e
|
|
423
|
+
let e;
|
|
424
424
|
e = typeof T.value == "boolean" ? T.value : N.value, P.value = e;
|
|
425
425
|
}), provideDark(P), provideLocale(E), providePermissionObjects(D), providePermissionChecksum(O), provideLastAppPath(k), provideViews(A);
|
|
426
426
|
let F = useTheme();
|
|
@@ -482,7 +482,7 @@ function useSystem() {
|
|
|
482
482
|
isCurvedScreen: computed(() => O.xs.value),
|
|
483
483
|
isMobile: () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),
|
|
484
484
|
nameList: (E, D) => {
|
|
485
|
-
let O
|
|
485
|
+
let O, k = E.map((e) => T(e));
|
|
486
486
|
return O = D ? `${k.join("/")} <${D.join("/")}>` : e.value === "en" ? k.join(" ") : k.join(""), O;
|
|
487
487
|
},
|
|
488
488
|
sentenceOfAsk: (E, O, k) => e.value === "en" ? T("dlg.common.ask", {
|
|
@@ -842,7 +842,7 @@ var confirmDlg_default = /* @__PURE__ */ defineComponent({
|
|
|
842
842
|
}, 8, ["modelValue"]);
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
}), _hoisted_1 = { class: "ma-auto" }, _hoisted_2 = { class: "w-100 h-100 d-flex align-center justify-center" }, _hoisted_3 = { class: "text-body-
|
|
845
|
+
}), _hoisted_1 = { class: "ma-auto" }, _hoisted_2 = { class: "w-100 h-100 d-flex align-center justify-center" }, _hoisted_3 = { class: "text-body-large" }, waitDlg_default = /* @__PURE__ */ defineComponent({
|
|
846
846
|
__name: "index",
|
|
847
847
|
setup(e) {
|
|
848
848
|
let { t: T } = useI18n(), E = ref(""), D = (e) => {
|
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.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -22,38 +22,38 @@
|
|
|
22
22
|
"*": "prettier --write ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@vueuse/core": "^14.2.
|
|
26
|
-
"axios": "^1.13.
|
|
25
|
+
"@vueuse/core": "^14.2.1",
|
|
26
|
+
"axios": "^1.13.5",
|
|
27
27
|
"js-cookie": "^3.0.5",
|
|
28
28
|
"lodash-es": "^4.17.23",
|
|
29
29
|
"mitt": "^3.0.1",
|
|
30
|
-
"vue": "^3.5.
|
|
30
|
+
"vue": "^3.5.29",
|
|
31
31
|
"vue-i18n": "^11.2.8",
|
|
32
|
-
"vue-router": "^5.0.
|
|
33
|
-
"vuetify": "^
|
|
32
|
+
"vue-router": "^5.0.3",
|
|
33
|
+
"vuetify": "^4.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@eslint/js": "^
|
|
36
|
+
"@eslint/js": "^10.0.1",
|
|
37
37
|
"@types/js-cookie": "^3.0.6",
|
|
38
38
|
"@types/lodash-es": "^4.17.12",
|
|
39
|
-
"@types/node": "^25.
|
|
39
|
+
"@types/node": "^25.3.0",
|
|
40
40
|
"@vitejs/plugin-vue": "^6.0.4",
|
|
41
|
-
"eslint": "^
|
|
41
|
+
"eslint": "^10.0.2",
|
|
42
42
|
"eslint-config-prettier": "^10.1.8",
|
|
43
43
|
"eslint-plugin-prettier": "^5.5.5",
|
|
44
|
-
"eslint-plugin-vue": "^10.
|
|
44
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
45
45
|
"globals": "^17.3.0",
|
|
46
46
|
"husky": "^9.1.7",
|
|
47
47
|
"lint-staged": "^16.2.7",
|
|
48
48
|
"prettier": "3.8.1",
|
|
49
49
|
"sass": "^1.97.3",
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
|
-
"typescript-eslint": "^8.
|
|
51
|
+
"typescript-eslint": "^8.56.1",
|
|
52
52
|
"vite": "npm:rolldown-vite@7.3.1",
|
|
53
53
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
54
54
|
"vite-plugin-vuetify": "^2.1.3",
|
|
55
|
-
"vue-eslint-parser": "^10.
|
|
56
|
-
"vue-tsc": "^3.2.
|
|
55
|
+
"vue-eslint-parser": "^10.4.0",
|
|
56
|
+
"vue-tsc": "^3.2.5"
|
|
57
57
|
},
|
|
58
58
|
"overrides": {
|
|
59
59
|
"vite": "npm:rolldown-vite@7.3.1"
|