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.
@@ -1,5 +1,5 @@
1
1
  export declare function useSystem(): {
2
- dark: import("vue").ComputedRef<string>;
2
+ dark: import("vue").ComputedRef<boolean>;
3
3
  sysBarAvail: import("vue").ComputedRef<boolean>;
4
4
  compactWidth: import("vue").ComputedRef<string>;
5
5
  };
package/dist/index.js CHANGED
@@ -473,22 +473,22 @@ function it() {
473
473
  const Y = oe(
474
474
  "global",
475
475
  () => {
476
- const e = K(), a = i(!1);
476
+ const e = i();
477
477
  H(
478
- a,
479
- (n) => {
480
- e.global.name.value = n ? "dark" : "light";
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 t = i("en"), l = i({}), o = i("");
486
+ const a = i("en"), t = i({}), l = i("");
487
487
  return {
488
- dark: a,
489
- locale: t,
490
- permissionObjects: l,
491
- permissionChecksum: o
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 = K(), { width: a } = je(), t = f(() => e.global.name.value), l = f(() => !!window.cordova), o = f(() => a.value <= 1280 ? a.value + "px" : a.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
788
- return { dark: t, sysBarAvail: l, compactWidth: o };
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 {
@@ -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.14",
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.3"
34
+ "vuetify": "^3.6.5"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@rushstack/eslint-patch": "^1.8.0",