x-essential-lib 0.5.67 → 0.5.73
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 +523 -452
- package/dist/store/global.d.ts +3 -3
- package/dist/utils/globalState.d.ts +16 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/store/global.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PermissionObjects } from '../utils';
|
|
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
|
lastAppPath: import("vue").Ref<string>;
|
|
8
8
|
}, "dark" | "locale" | "permissionObjects" | "permissionChecksum" | "lastAppPath">>, Pick<{
|
|
9
|
-
dark: import("vue").Ref<boolean>;
|
|
9
|
+
dark: import("vue").Ref<boolean | undefined>;
|
|
10
10
|
locale: import("vue").Ref<string>;
|
|
11
11
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
12
12
|
permissionChecksum: import("vue").Ref<string>;
|
|
13
13
|
lastAppPath: import("vue").Ref<string>;
|
|
14
14
|
}, never>, Pick<{
|
|
15
|
-
dark: import("vue").Ref<boolean>;
|
|
15
|
+
dark: import("vue").Ref<boolean | undefined>;
|
|
16
16
|
locale: import("vue").Ref<string>;
|
|
17
17
|
permissionObjects: import("vue").Ref<PermissionObjects>;
|
|
18
18
|
permissionChecksum: import("vue").Ref<string>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type LocaleHook = (val: any) => Promise<void>;
|
|
2
|
+
export declare class GlobalState {
|
|
3
|
+
private master;
|
|
4
|
+
private localeHook;
|
|
5
|
+
private alreadySync;
|
|
6
|
+
private handlers;
|
|
7
|
+
constructor(master: boolean, localeHook?: LocaleHook);
|
|
8
|
+
sync(): Promise<void>;
|
|
9
|
+
dispose(): void;
|
|
10
|
+
private onDarkChange;
|
|
11
|
+
private onLocaleChange;
|
|
12
|
+
private onPermissionChange;
|
|
13
|
+
private onLastAppPathChange;
|
|
14
|
+
private onSync;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/dist/utils/index.d.ts
CHANGED