x-essential-lib 0.3.14 → 0.3.15
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/system.d.ts +1 -1
- package/dist/index.js +14 -11
- package/dist/store/global.d.ts +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -473,22 +473,22 @@ function it() {
|
|
|
473
473
|
const Y = oe(
|
|
474
474
|
"global",
|
|
475
475
|
() => {
|
|
476
|
-
const e =
|
|
476
|
+
const e = i();
|
|
477
477
|
H(
|
|
478
|
-
|
|
479
|
-
(
|
|
480
|
-
|
|
478
|
+
e,
|
|
479
|
+
(o) => {
|
|
480
|
+
K().global.name.value = o ? "dark" : "light";
|
|
481
481
|
},
|
|
482
482
|
{
|
|
483
483
|
immediate: !0
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
|
-
const
|
|
486
|
+
const a = i("en"), t = i({}), l = i("");
|
|
487
487
|
return {
|
|
488
|
-
dark:
|
|
489
|
-
locale:
|
|
490
|
-
permissionObjects:
|
|
491
|
-
permissionChecksum:
|
|
488
|
+
dark: e,
|
|
489
|
+
locale: a,
|
|
490
|
+
permissionObjects: t,
|
|
491
|
+
permissionChecksum: l
|
|
492
492
|
};
|
|
493
493
|
},
|
|
494
494
|
{
|
|
@@ -784,8 +784,11 @@ function St(e) {
|
|
|
784
784
|
}), {};
|
|
785
785
|
}
|
|
786
786
|
function Tt() {
|
|
787
|
-
const e =
|
|
788
|
-
|
|
787
|
+
const e = f(() => K().current.value.dark), a = f(() => !!window.cordova), t = f(() => {
|
|
788
|
+
const { width: l } = je();
|
|
789
|
+
return l.value <= 1280 ? l.value + "px" : l.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px";
|
|
790
|
+
});
|
|
791
|
+
return { dark: e, sysBarAvail: a, compactWidth: t };
|
|
789
792
|
}
|
|
790
793
|
const Ot = { install: Ge };
|
|
791
794
|
export {
|
package/dist/store/global.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { PermissionObjects } from '../utils/permission';
|
|
2
2
|
export declare const useGlobalStore: import("pinia").StoreDefinition<"global", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
-
dark: import("vue").Ref<boolean>;
|
|
3
|
+
dark: import("vue").Ref<boolean | undefined>;
|
|
4
4
|
locale: import("vue").Ref<string>;
|
|
5
5
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
6
6
|
permissionChecksum: import("vue").Ref<string>;
|
|
7
7
|
}, "dark" | "locale" | "permissionObjects" | "permissionChecksum">>, Pick<{
|
|
8
|
-
dark: import("vue").Ref<boolean>;
|
|
8
|
+
dark: import("vue").Ref<boolean | undefined>;
|
|
9
9
|
locale: import("vue").Ref<string>;
|
|
10
10
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
11
11
|
permissionChecksum: import("vue").Ref<string>;
|
|
12
12
|
}, never>, Pick<{
|
|
13
|
-
dark: import("vue").Ref<boolean>;
|
|
13
|
+
dark: import("vue").Ref<boolean | undefined>;
|
|
14
14
|
locale: import("vue").Ref<string>;
|
|
15
15
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
16
16
|
permissionChecksum: import("vue").Ref<string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vue": "^3.4.26",
|
|
32
32
|
"vue-i18n": "^9.13.1",
|
|
33
33
|
"vue-router": "^4.3.2",
|
|
34
|
-
"vuetify": "^3.6.
|
|
34
|
+
"vuetify": "^3.6.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@rushstack/eslint-patch": "^1.8.0",
|