@ditari/store 5.1.4 → 5.1.6

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.
Files changed (39) hide show
  1. package/dist/cjs/index.cjs +2 -0
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.d.ts +11 -0
  4. package/dist/cjs/modules/useAppStore.d.ts +36 -0
  5. package/dist/cjs/modules/useBreadStore.d.ts +11 -0
  6. package/dist/cjs/modules/useDeviceStore.cjs +32 -0
  7. package/dist/cjs/modules/useDeviceStore.cjs.map +1 -0
  8. package/dist/cjs/modules/useDeviceStore.d.ts +17 -0
  9. package/dist/cjs/modules/useDicStore.d.ts +46 -0
  10. package/dist/cjs/modules/useKeepAliveStore.d.ts +26 -0
  11. package/dist/cjs/modules/useMenuStore.d.ts +15 -0
  12. package/dist/cjs/modules/useNavTabStore.d.ts +52 -0
  13. package/dist/cjs/modules/useUserStore.d.ts +23 -0
  14. package/dist/cjs/types.cjs +2 -0
  15. package/dist/cjs/types.cjs.map +1 -1
  16. package/dist/cjs/types.d.ts +10 -0
  17. package/dist/esm/index.d.ts +11 -0
  18. package/dist/esm/index.mjs +1 -0
  19. package/dist/esm/index.mjs.map +1 -1
  20. package/dist/esm/modules/useAppStore.d.ts +36 -0
  21. package/dist/esm/modules/useBreadStore.d.ts +11 -0
  22. package/dist/esm/modules/useDeviceStore.d.ts +17 -0
  23. package/dist/esm/modules/useDeviceStore.mjs +30 -0
  24. package/dist/esm/modules/useDeviceStore.mjs.map +1 -0
  25. package/dist/esm/modules/useDicStore.d.ts +46 -0
  26. package/dist/esm/modules/useKeepAliveStore.d.ts +26 -0
  27. package/dist/esm/modules/useMenuStore.d.ts +15 -0
  28. package/dist/esm/modules/useNavTabStore.d.ts +52 -0
  29. package/dist/esm/modules/useUserStore.d.ts +23 -0
  30. package/dist/esm/types.d.ts +10 -0
  31. package/dist/esm/types.mjs +2 -1
  32. package/dist/esm/types.mjs.map +1 -1
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/index.d.ts.map +1 -1
  35. package/dist/types/modules/useDeviceStore.d.ts +17 -0
  36. package/dist/types/modules/useDeviceStore.d.ts.map +1 -0
  37. package/dist/types/types.d.ts +1 -0
  38. package/dist/types/types.d.ts.map +1 -1
  39. package/package.json +1 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  var useAppStore = require('./modules/useAppStore.cjs');
4
4
  var useBreadStore = require('./modules/useBreadStore.cjs');
5
+ var useDeviceStore = require('./modules/useDeviceStore.cjs');
5
6
  var useDicStore = require('./modules/useDicStore.cjs');
6
7
  var useKeepAliveStore = require('./modules/useKeepAliveStore.cjs');
7
8
  var useMenuStore = require('./modules/useMenuStore.cjs');
@@ -12,6 +13,7 @@ var useUserStore = require('./modules/useUserStore.cjs');
12
13
 
13
14
  exports.useAppStore = useAppStore.default;
14
15
  exports.useBreadStore = useBreadStore.useBreadStore;
16
+ exports.useDeviceStore = useDeviceStore.useDeviceStore;
15
17
  exports.useDicStore = useDicStore.default;
16
18
  exports.useKeepAliveStore = useKeepAliveStore.default;
17
19
  exports.useMenuStore = useMenuStore.default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ export type { App } from "./modules/useAppStore";
2
+ export { default as useAppStore } from "./modules/useAppStore";
3
+ export * from "./modules/useBreadStore";
4
+ export * from "./modules/useDeviceStore";
5
+ export { default as useDicStore } from "./modules/useDicStore";
6
+ export { default as useKeepAliveStore } from "./modules/useKeepAliveStore";
7
+ export { default as useMenuStore } from "./modules/useMenuStore";
8
+ export type { NavTabsState } from "./modules/useNavTabStore";
9
+ export { default as useNavTabStore } from "./modules/useNavTabStore";
10
+ export { default as useUserStore } from "./modules/useUserStore";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,36 @@
1
+ import type { ThemeConfig } from "ant-design-vue/es/config-provider/context";
2
+ export interface HeaderStyle {
3
+ colorBgHeader: string;
4
+ }
5
+ export interface TabsStyle {
6
+ colorBgActive: string;
7
+ colorTextActive: string;
8
+ colorSplit: string;
9
+ colorShadowActive: string;
10
+ colorTabsText: string;
11
+ }
12
+ export interface App {
13
+ theme: ThemeConfig;
14
+ modeConfig: Mode;
15
+ layout: {
16
+ sideWidth: number;
17
+ headerHeight: number;
18
+ collapsedWidth: number;
19
+ collapsed: boolean;
20
+ };
21
+ isCompact: boolean;
22
+ headerTokenStyle: HeaderStyle;
23
+ tabsTokenStyle?: TabsStyle;
24
+ sideTokenStyle: Record<string, string>;
25
+ refresh: boolean;
26
+ }
27
+ export interface Mode {
28
+ mode: string;
29
+ list: {
30
+ value: string;
31
+ label: string;
32
+ }[];
33
+ }
34
+ declare const useAppStore: import("pinia").StoreDefinition<"_STORE_APP_ID", App, {}, {}>;
35
+ export default useAppStore;
36
+ //# sourceMappingURL=useAppStore.d.ts.map
@@ -0,0 +1,11 @@
1
+ export interface BreadcrumbState {
2
+ breadcrumbs: [];
3
+ }
4
+ export declare const useBreadStore: import("pinia").StoreDefinition<"_STORE_BREADCRUMB_ID", BreadcrumbState, {
5
+ getBreadcrumb: (state: {
6
+ breadcrumbs: [];
7
+ } & import("pinia").PiniaCustomStateProperties<BreadcrumbState>) => [];
8
+ }, {
9
+ saveBreadcrumb(data: never): void;
10
+ }>;
11
+ //# sourceMappingURL=useBreadStore.d.ts.map
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var pinia = require('pinia');
5
+ var core = require('@vueuse/core');
6
+ var types = require('../types.cjs');
7
+
8
+ "use strict";
9
+ const useDeviceStore = pinia.defineStore(types.DEVICE_ID, () => {
10
+ const breakpoints = core.useBreakpoints(core.breakpointsTailwind);
11
+ const isAdaptive = vue.ref(false);
12
+ const isMobile = vue.computed(
13
+ () => isAdaptive.value ? breakpoints.smaller("md").value : false
14
+ );
15
+ const isTablet = vue.computed(
16
+ () => isAdaptive.value ? breakpoints.between("md", "lg").value : false
17
+ );
18
+ const isDesktop = vue.computed(() => {
19
+ if (!isAdaptive.value) return true;
20
+ return breakpoints.greaterOrEqual("lg").value;
21
+ });
22
+ return {
23
+ isAdaptive,
24
+ // 暴露开关,允许手动控制
25
+ isMobile,
26
+ isTablet,
27
+ isDesktop
28
+ };
29
+ });
30
+
31
+ exports.useDeviceStore = useDeviceStore;
32
+ //# sourceMappingURL=useDeviceStore.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeviceStore.cjs","sources":["../../../src/modules/useDeviceStore.ts"],"sourcesContent":["import { computed, ref } from \"vue\";\r\nimport { defineStore } from \"pinia\";\r\nimport {\r\n breakpointsTailwind,\r\n useBreakpoints\r\n} from \"@vueuse/core\";\r\n\r\nimport { DEVICE_ID } from \"../types\";\r\n\r\nexport const useDeviceStore = defineStore(DEVICE_ID, () => {\r\n const breakpoints = useBreakpoints(breakpointsTailwind);\r\n\r\n // 1. 定义开关属性 (默认为 false 或根据业务逻辑设置)\r\n const isAdaptive = ref(false);\r\n\r\n // 2. 只有在 isAdaptive 为 true 时,才返回真实的断点判断\r\n // 否则可以强制返回 false 或某个固定值\r\n const isMobile = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.smaller(\"md\").value\r\n : false\r\n );\r\n const isTablet = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.between(\"md\", \"lg\").value\r\n : false\r\n );\r\n const isDesktop = computed(() => {\r\n if (!isAdaptive.value) return true; // 如果不开启适配,默认当成 PC 端处理\r\n return breakpoints.greaterOrEqual(\"lg\").value;\r\n });\r\n\r\n return {\r\n isAdaptive, // 暴露开关,允许手动控制\r\n isMobile,\r\n isTablet,\r\n isDesktop\r\n };\r\n});\r\n"],"names":["defineStore","DEVICE_ID","useBreakpoints","breakpointsTailwind","ref","computed"],"mappings":";;;;;;;;AASO,MAAM,cAAA,GAAiBA,iBAAA,CAAYC,eAAA,EAAW,MAAM;AACzD,EAAA,MAAM,WAAA,GAAcC,oBAAeC,wBAAmB,CAAA;AAGtD,EAAA,MAAM,UAAA,GAAaC,QAAI,KAAK,CAAA;AAI5B,EAAA,MAAM,QAAA,GAAWC,YAAA;AAAA,IAAS,MACxB,UAAA,CAAW,KAAA,GACP,YAAY,OAAA,CAAQ,IAAI,EAAE,KAAA,GAC1B;AAAA,GACN;AACA,EAAA,MAAM,QAAA,GAAWA,YAAA;AAAA,IAAS,MACxB,WAAW,KAAA,GACP,WAAA,CAAY,QAAQ,IAAA,EAAM,IAAI,EAAE,KAAA,GAChC;AAAA,GACN;AACA,EAAA,MAAM,SAAA,GAAYA,aAAS,MAAM;AAC/B,IAAA,IAAI,CAAC,UAAA,CAAW,KAAA,EAAO,OAAO,IAAA;AAC9B,IAAA,OAAO,WAAA,CAAY,cAAA,CAAe,IAAI,CAAA,CAAE,KAAA;AAAA,EAC1C,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,UAAA;AAAA;AAAA,IACA,QAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,GACF;AACF,CAAC;;;;"}
@@ -0,0 +1,17 @@
1
+ export declare const useDeviceStore: import("pinia").StoreDefinition<"_STORE_DEVICE_ID", Pick<{
2
+ isAdaptive: import("vue").Ref<boolean, boolean>;
3
+ isMobile: import("vue").ComputedRef<boolean>;
4
+ isTablet: import("vue").ComputedRef<boolean>;
5
+ isDesktop: import("vue").ComputedRef<boolean>;
6
+ }, "isAdaptive">, Pick<{
7
+ isAdaptive: import("vue").Ref<boolean, boolean>;
8
+ isMobile: import("vue").ComputedRef<boolean>;
9
+ isTablet: import("vue").ComputedRef<boolean>;
10
+ isDesktop: import("vue").ComputedRef<boolean>;
11
+ }, "isMobile" | "isTablet" | "isDesktop">, Pick<{
12
+ isAdaptive: import("vue").Ref<boolean, boolean>;
13
+ isMobile: import("vue").ComputedRef<boolean>;
14
+ isTablet: import("vue").ComputedRef<boolean>;
15
+ isDesktop: import("vue").ComputedRef<boolean>;
16
+ }, never>>;
17
+ //# sourceMappingURL=useDeviceStore.d.ts.map
@@ -0,0 +1,46 @@
1
+ export interface DictionaryItem {
2
+ value: string;
3
+ label: string;
4
+ }
5
+ export interface Dictionary {
6
+ [key: string]: {
7
+ value: DictionaryItem[];
8
+ timestamp: number;
9
+ };
10
+ }
11
+ /**
12
+ * {key:[]}
13
+ */
14
+ export interface DictionaryList {
15
+ [key: string]: DictionaryItem[];
16
+ }
17
+ export interface DataDictionaryState {
18
+ dataDic: Dictionary;
19
+ cacheDuration: number;
20
+ }
21
+ declare const useDicStore: import("pinia").StoreDefinition<"_STORE_DATA_DICTIONARY_ID", DataDictionaryState, {}, {
22
+ isCacheExpired(name: string): boolean;
23
+ saveDicByKey(key: string, data: DictionaryItem[]): void;
24
+ saveAll(data: DictionaryList): void;
25
+ /**
26
+ * 1. 根据 key 获取字典列表 (原 getDicByKey)
27
+ * @param key 字典的 key
28
+ */
29
+ getDicByKey(key: string): DictionaryItem[];
30
+ /**
31
+ * 2. 返回 value 匹配到的整个对象 (原 getDicObjByValue)
32
+ * @param key 字典的 key
33
+ * @param value 字典项的值
34
+ */
35
+ getDicObjByValue(key: string, value: string | number): DictionaryItem | null;
36
+ /**
37
+ * 3. 根据字典名称和字典的 value 获取对应的中文 (原 getDicTextByValue)
38
+ */
39
+ getDicTextByValue(key: string, value: string | number): string;
40
+ /**
41
+ * 4. 根据文字匹配对应的 value (原 getDicValueByText)
42
+ */
43
+ getDicValueByText(key: string, text: string): string;
44
+ }>;
45
+ export default useDicStore;
46
+ //# sourceMappingURL=useDicStore.d.ts.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 缓存组件name数据
3
+ */
4
+ import { type RouteLocationNormalized } from "vue-router";
5
+ declare const useKeepAliveStore: import("pinia").StoreDefinition<"_STORE_KEEP_ALIVE_ID", {
6
+ list: string[];
7
+ }, {
8
+ get: (state: {
9
+ list: string[];
10
+ } & import("pinia").PiniaCustomStateProperties<{
11
+ list: string[];
12
+ }>) => string[];
13
+ }, {
14
+ /**
15
+ * 删除已经缓存的组件
16
+ * @param name 组件名称(必须唯一)
17
+ */
18
+ deleteKeepAlive(name: string): void;
19
+ /**
20
+ * 保存要缓存的组件名称
21
+ * @param route
22
+ */
23
+ save(route: RouteLocationNormalized): void;
24
+ }>;
25
+ export default useKeepAliveStore;
26
+ //# sourceMappingURL=useKeepAliveStore.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { ItemType } from "ant-design-vue";
2
+ export type ExtendedItemType = ItemType & {
3
+ id?: string;
4
+ parentId?: string;
5
+ };
6
+ export interface Menu {
7
+ openKeys: string[];
8
+ selectedKeys: string[];
9
+ data: ExtendedItemType[];
10
+ }
11
+ declare const useMenuStore: import("pinia").StoreDefinition<"_STORE_MENU_ID", Menu, {}, {
12
+ save(data: ExtendedItemType[]): void;
13
+ }>;
14
+ export default useMenuStore;
15
+ //# sourceMappingURL=useMenuStore.d.ts.map
@@ -0,0 +1,52 @@
1
+ import type { LocationQuery, RouteLocationNormalized, RouteMeta, RouteParams } from "vue-router";
2
+ export interface NavTabsState {
3
+ path?: string;
4
+ fullPath?: string;
5
+ query?: LocationQuery;
6
+ params?: RouteParams;
7
+ meta?: RouteMeta;
8
+ name?: string;
9
+ openTime?: number | undefined;
10
+ }
11
+ export declare const useNavTabStore: import("pinia").StoreDefinition<"_STORE_NAV_TABS_ID", {
12
+ list: NavTabsState[];
13
+ activeKey: string;
14
+ }, {
15
+ getList: (state: {
16
+ list: {
17
+ path?: string | undefined;
18
+ fullPath?: string | undefined;
19
+ query?: LocationQuery | undefined;
20
+ params?: RouteParams | undefined;
21
+ meta?: RouteMeta | undefined;
22
+ name?: string | undefined;
23
+ openTime?: number | undefined | undefined;
24
+ }[];
25
+ activeKey: string;
26
+ } & import("pinia").PiniaCustomStateProperties<{
27
+ list: NavTabsState[];
28
+ activeKey: string;
29
+ }>) => NavTabsState[];
30
+ }, {
31
+ /**
32
+ * 保存标签信息
33
+ * @param route
34
+ */
35
+ save(route: RouteLocationNormalized): void;
36
+ /**
37
+ * 删除标签
38
+ * @param key url路径
39
+ */
40
+ deleteTabs(key: string): void;
41
+ /**
42
+ * 设置标题
43
+ * @param title 标题
44
+ * @param path url
45
+ */
46
+ setNavTitle(title: string, path: string): void;
47
+ closeOtherTabs(fullPath: string): void;
48
+ closeLeftTabs(fullPath: string): void;
49
+ closeRightTabs(fullPath: string): void;
50
+ }>;
51
+ export default useNavTabStore;
52
+ //# sourceMappingURL=useNavTabStore.d.ts.map
@@ -0,0 +1,23 @@
1
+ export interface UserState {
2
+ token: string | undefined;
3
+ userInfo: unknown;
4
+ }
5
+ declare const useUserStore: import("pinia").StoreDefinition<"_STORE_USER_ID", UserState, {
6
+ getToken: (state: {
7
+ token: string | undefined;
8
+ userInfo: unknown;
9
+ } & import("pinia").PiniaCustomStateProperties<UserState>) => string | undefined;
10
+ getUserInfo: (state: {
11
+ token: string | undefined;
12
+ userInfo: unknown;
13
+ } & import("pinia").PiniaCustomStateProperties<UserState>) => unknown;
14
+ }, {
15
+ /**
16
+ * 保存token
17
+ * @param token
18
+ */
19
+ saveToken(token: string): void;
20
+ saveUserInfo(data: unknown): void;
21
+ }>;
22
+ export default useUserStore;
23
+ //# sourceMappingURL=useUserStore.d.ts.map
@@ -10,10 +10,12 @@ const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;
10
10
  const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;
11
11
  const USER_ID = `${id_prefix}USER_ID`;
12
12
  const APP_ID = `${id_prefix}APP_ID`;
13
+ const DEVICE_ID = `${id_prefix}DEVICE_ID`;
13
14
 
14
15
  exports.APP_ID = APP_ID;
15
16
  exports.BREADCRUMB_ID = BREADCRUMB_ID;
16
17
  exports.DATA_DICTIONARY_ID = DATA_DICTIONARY_ID;
18
+ exports.DEVICE_ID = DEVICE_ID;
17
19
  exports.KEEP_ALIVE_ID = KEEP_ALIVE_ID;
18
20
  exports.MENU_ID = MENU_ID;
19
21
  exports.NAV_TAB_ID = NAV_TAB_ID;
@@ -1 +1 @@
1
- {"version":3,"file":"types.cjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\n//面包屑\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\n//字典ID\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\n//缓存组件ID\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\n//菜单ID\nexport const MENU_ID = `${id_prefix}MENU_ID`;\n//多标签ID\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\n//用户信息ID\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\n//用户信息ID\nexport const USER_ID = `${id_prefix}USER_ID`;\n//存储APP配置信息\nexport const APP_ID = `${id_prefix}APP_ID`;\n"],"names":[],"mappings":";;;AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"types.cjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\r\n//面包屑\r\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\r\n//字典ID\r\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\r\n//缓存组件ID\r\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\r\n//菜单ID\r\nexport const MENU_ID = `${id_prefix}MENU_ID`;\r\n//多标签ID\r\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\r\n//用户信息ID\r\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\r\n//用户信息ID\r\nexport const USER_ID = `${id_prefix}USER_ID`;\r\n//存储APP配置信息\r\nexport const APP_ID = `${id_prefix}APP_ID`;\r\nexport const DEVICE_ID = `${id_prefix}DEVICE_ID`;\r\n"],"names":[],"mappings":";;;AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA;AAC3B,MAAM,SAAA,GAAY,GAAG,SAAS,CAAA,SAAA;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ export declare const BREADCRUMB_ID = "_STORE_BREADCRUMB_ID";
2
+ export declare const DATA_DICTIONARY_ID = "_STORE_DATA_DICTIONARY_ID";
3
+ export declare const KEEP_ALIVE_ID = "_STORE_KEEP_ALIVE_ID";
4
+ export declare const MENU_ID = "_STORE_MENU_ID";
5
+ export declare const NAV_TAB_ID = "_STORE_NAV_TABS_ID";
6
+ export declare const SETTINGS_ID = "_STORE_SETTINGS_ID";
7
+ export declare const USER_ID = "_STORE_USER_ID";
8
+ export declare const APP_ID = "_STORE_APP_ID";
9
+ export declare const DEVICE_ID = "_STORE_DEVICE_ID";
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,11 @@
1
+ export type { App } from "./modules/useAppStore";
2
+ export { default as useAppStore } from "./modules/useAppStore";
3
+ export * from "./modules/useBreadStore";
4
+ export * from "./modules/useDeviceStore";
5
+ export { default as useDicStore } from "./modules/useDicStore";
6
+ export { default as useKeepAliveStore } from "./modules/useKeepAliveStore";
7
+ export { default as useMenuStore } from "./modules/useMenuStore";
8
+ export type { NavTabsState } from "./modules/useNavTabStore";
9
+ export { default as useNavTabStore } from "./modules/useNavTabStore";
10
+ export { default as useUserStore } from "./modules/useUserStore";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,6 @@
1
1
  export { default as useAppStore } from './modules/useAppStore.mjs';
2
2
  export { useBreadStore } from './modules/useBreadStore.mjs';
3
+ export { useDeviceStore } from './modules/useDeviceStore.mjs';
3
4
  export { default as useDicStore } from './modules/useDicStore.mjs';
4
5
  export { default as useKeepAliveStore } from './modules/useKeepAliveStore.mjs';
5
6
  export { default as useMenuStore } from './modules/useMenuStore.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import type { ThemeConfig } from "ant-design-vue/es/config-provider/context";
2
+ export interface HeaderStyle {
3
+ colorBgHeader: string;
4
+ }
5
+ export interface TabsStyle {
6
+ colorBgActive: string;
7
+ colorTextActive: string;
8
+ colorSplit: string;
9
+ colorShadowActive: string;
10
+ colorTabsText: string;
11
+ }
12
+ export interface App {
13
+ theme: ThemeConfig;
14
+ modeConfig: Mode;
15
+ layout: {
16
+ sideWidth: number;
17
+ headerHeight: number;
18
+ collapsedWidth: number;
19
+ collapsed: boolean;
20
+ };
21
+ isCompact: boolean;
22
+ headerTokenStyle: HeaderStyle;
23
+ tabsTokenStyle?: TabsStyle;
24
+ sideTokenStyle: Record<string, string>;
25
+ refresh: boolean;
26
+ }
27
+ export interface Mode {
28
+ mode: string;
29
+ list: {
30
+ value: string;
31
+ label: string;
32
+ }[];
33
+ }
34
+ declare const useAppStore: import("pinia").StoreDefinition<"_STORE_APP_ID", App, {}, {}>;
35
+ export default useAppStore;
36
+ //# sourceMappingURL=useAppStore.d.ts.map
@@ -0,0 +1,11 @@
1
+ export interface BreadcrumbState {
2
+ breadcrumbs: [];
3
+ }
4
+ export declare const useBreadStore: import("pinia").StoreDefinition<"_STORE_BREADCRUMB_ID", BreadcrumbState, {
5
+ getBreadcrumb: (state: {
6
+ breadcrumbs: [];
7
+ } & import("pinia").PiniaCustomStateProperties<BreadcrumbState>) => [];
8
+ }, {
9
+ saveBreadcrumb(data: never): void;
10
+ }>;
11
+ //# sourceMappingURL=useBreadStore.d.ts.map
@@ -0,0 +1,17 @@
1
+ export declare const useDeviceStore: import("pinia").StoreDefinition<"_STORE_DEVICE_ID", Pick<{
2
+ isAdaptive: import("vue").Ref<boolean, boolean>;
3
+ isMobile: import("vue").ComputedRef<boolean>;
4
+ isTablet: import("vue").ComputedRef<boolean>;
5
+ isDesktop: import("vue").ComputedRef<boolean>;
6
+ }, "isAdaptive">, Pick<{
7
+ isAdaptive: import("vue").Ref<boolean, boolean>;
8
+ isMobile: import("vue").ComputedRef<boolean>;
9
+ isTablet: import("vue").ComputedRef<boolean>;
10
+ isDesktop: import("vue").ComputedRef<boolean>;
11
+ }, "isMobile" | "isTablet" | "isDesktop">, Pick<{
12
+ isAdaptive: import("vue").Ref<boolean, boolean>;
13
+ isMobile: import("vue").ComputedRef<boolean>;
14
+ isTablet: import("vue").ComputedRef<boolean>;
15
+ isDesktop: import("vue").ComputedRef<boolean>;
16
+ }, never>>;
17
+ //# sourceMappingURL=useDeviceStore.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { ref, computed } from 'vue';
2
+ import { defineStore } from 'pinia';
3
+ import { useBreakpoints, breakpointsTailwind } from '@vueuse/core';
4
+ import { DEVICE_ID } from '../types.mjs';
5
+
6
+ "use strict";
7
+ const useDeviceStore = defineStore(DEVICE_ID, () => {
8
+ const breakpoints = useBreakpoints(breakpointsTailwind);
9
+ const isAdaptive = ref(false);
10
+ const isMobile = computed(
11
+ () => isAdaptive.value ? breakpoints.smaller("md").value : false
12
+ );
13
+ const isTablet = computed(
14
+ () => isAdaptive.value ? breakpoints.between("md", "lg").value : false
15
+ );
16
+ const isDesktop = computed(() => {
17
+ if (!isAdaptive.value) return true;
18
+ return breakpoints.greaterOrEqual("lg").value;
19
+ });
20
+ return {
21
+ isAdaptive,
22
+ // 暴露开关,允许手动控制
23
+ isMobile,
24
+ isTablet,
25
+ isDesktop
26
+ };
27
+ });
28
+
29
+ export { useDeviceStore };
30
+ //# sourceMappingURL=useDeviceStore.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeviceStore.mjs","sources":["../../../src/modules/useDeviceStore.ts"],"sourcesContent":["import { computed, ref } from \"vue\";\r\nimport { defineStore } from \"pinia\";\r\nimport {\r\n breakpointsTailwind,\r\n useBreakpoints\r\n} from \"@vueuse/core\";\r\n\r\nimport { DEVICE_ID } from \"../types\";\r\n\r\nexport const useDeviceStore = defineStore(DEVICE_ID, () => {\r\n const breakpoints = useBreakpoints(breakpointsTailwind);\r\n\r\n // 1. 定义开关属性 (默认为 false 或根据业务逻辑设置)\r\n const isAdaptive = ref(false);\r\n\r\n // 2. 只有在 isAdaptive 为 true 时,才返回真实的断点判断\r\n // 否则可以强制返回 false 或某个固定值\r\n const isMobile = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.smaller(\"md\").value\r\n : false\r\n );\r\n const isTablet = computed(() =>\r\n isAdaptive.value\r\n ? breakpoints.between(\"md\", \"lg\").value\r\n : false\r\n );\r\n const isDesktop = computed(() => {\r\n if (!isAdaptive.value) return true; // 如果不开启适配,默认当成 PC 端处理\r\n return breakpoints.greaterOrEqual(\"lg\").value;\r\n });\r\n\r\n return {\r\n isAdaptive, // 暴露开关,允许手动控制\r\n isMobile,\r\n isTablet,\r\n isDesktop\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AASO,MAAM,cAAA,GAAiB,WAAA,CAAY,SAAA,EAAW,MAAM;AACzD,EAAA,MAAM,WAAA,GAAc,eAAe,mBAAmB,CAAA;AAGtD,EAAA,MAAM,UAAA,GAAa,IAAI,KAAK,CAAA;AAI5B,EAAA,MAAM,QAAA,GAAW,QAAA;AAAA,IAAS,MACxB,UAAA,CAAW,KAAA,GACP,YAAY,OAAA,CAAQ,IAAI,EAAE,KAAA,GAC1B;AAAA,GACN;AACA,EAAA,MAAM,QAAA,GAAW,QAAA;AAAA,IAAS,MACxB,WAAW,KAAA,GACP,WAAA,CAAY,QAAQ,IAAA,EAAM,IAAI,EAAE,KAAA,GAChC;AAAA,GACN;AACA,EAAA,MAAM,SAAA,GAAY,SAAS,MAAM;AAC/B,IAAA,IAAI,CAAC,UAAA,CAAW,KAAA,EAAO,OAAO,IAAA;AAC9B,IAAA,OAAO,WAAA,CAAY,cAAA,CAAe,IAAI,CAAA,CAAE,KAAA;AAAA,EAC1C,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACL,UAAA;AAAA;AAAA,IACA,QAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,GACF;AACF,CAAC;;;;"}
@@ -0,0 +1,46 @@
1
+ export interface DictionaryItem {
2
+ value: string;
3
+ label: string;
4
+ }
5
+ export interface Dictionary {
6
+ [key: string]: {
7
+ value: DictionaryItem[];
8
+ timestamp: number;
9
+ };
10
+ }
11
+ /**
12
+ * {key:[]}
13
+ */
14
+ export interface DictionaryList {
15
+ [key: string]: DictionaryItem[];
16
+ }
17
+ export interface DataDictionaryState {
18
+ dataDic: Dictionary;
19
+ cacheDuration: number;
20
+ }
21
+ declare const useDicStore: import("pinia").StoreDefinition<"_STORE_DATA_DICTIONARY_ID", DataDictionaryState, {}, {
22
+ isCacheExpired(name: string): boolean;
23
+ saveDicByKey(key: string, data: DictionaryItem[]): void;
24
+ saveAll(data: DictionaryList): void;
25
+ /**
26
+ * 1. 根据 key 获取字典列表 (原 getDicByKey)
27
+ * @param key 字典的 key
28
+ */
29
+ getDicByKey(key: string): DictionaryItem[];
30
+ /**
31
+ * 2. 返回 value 匹配到的整个对象 (原 getDicObjByValue)
32
+ * @param key 字典的 key
33
+ * @param value 字典项的值
34
+ */
35
+ getDicObjByValue(key: string, value: string | number): DictionaryItem | null;
36
+ /**
37
+ * 3. 根据字典名称和字典的 value 获取对应的中文 (原 getDicTextByValue)
38
+ */
39
+ getDicTextByValue(key: string, value: string | number): string;
40
+ /**
41
+ * 4. 根据文字匹配对应的 value (原 getDicValueByText)
42
+ */
43
+ getDicValueByText(key: string, text: string): string;
44
+ }>;
45
+ export default useDicStore;
46
+ //# sourceMappingURL=useDicStore.d.ts.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 缓存组件name数据
3
+ */
4
+ import { type RouteLocationNormalized } from "vue-router";
5
+ declare const useKeepAliveStore: import("pinia").StoreDefinition<"_STORE_KEEP_ALIVE_ID", {
6
+ list: string[];
7
+ }, {
8
+ get: (state: {
9
+ list: string[];
10
+ } & import("pinia").PiniaCustomStateProperties<{
11
+ list: string[];
12
+ }>) => string[];
13
+ }, {
14
+ /**
15
+ * 删除已经缓存的组件
16
+ * @param name 组件名称(必须唯一)
17
+ */
18
+ deleteKeepAlive(name: string): void;
19
+ /**
20
+ * 保存要缓存的组件名称
21
+ * @param route
22
+ */
23
+ save(route: RouteLocationNormalized): void;
24
+ }>;
25
+ export default useKeepAliveStore;
26
+ //# sourceMappingURL=useKeepAliveStore.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { ItemType } from "ant-design-vue";
2
+ export type ExtendedItemType = ItemType & {
3
+ id?: string;
4
+ parentId?: string;
5
+ };
6
+ export interface Menu {
7
+ openKeys: string[];
8
+ selectedKeys: string[];
9
+ data: ExtendedItemType[];
10
+ }
11
+ declare const useMenuStore: import("pinia").StoreDefinition<"_STORE_MENU_ID", Menu, {}, {
12
+ save(data: ExtendedItemType[]): void;
13
+ }>;
14
+ export default useMenuStore;
15
+ //# sourceMappingURL=useMenuStore.d.ts.map
@@ -0,0 +1,52 @@
1
+ import type { LocationQuery, RouteLocationNormalized, RouteMeta, RouteParams } from "vue-router";
2
+ export interface NavTabsState {
3
+ path?: string;
4
+ fullPath?: string;
5
+ query?: LocationQuery;
6
+ params?: RouteParams;
7
+ meta?: RouteMeta;
8
+ name?: string;
9
+ openTime?: number | undefined;
10
+ }
11
+ export declare const useNavTabStore: import("pinia").StoreDefinition<"_STORE_NAV_TABS_ID", {
12
+ list: NavTabsState[];
13
+ activeKey: string;
14
+ }, {
15
+ getList: (state: {
16
+ list: {
17
+ path?: string | undefined;
18
+ fullPath?: string | undefined;
19
+ query?: LocationQuery | undefined;
20
+ params?: RouteParams | undefined;
21
+ meta?: RouteMeta | undefined;
22
+ name?: string | undefined;
23
+ openTime?: number | undefined | undefined;
24
+ }[];
25
+ activeKey: string;
26
+ } & import("pinia").PiniaCustomStateProperties<{
27
+ list: NavTabsState[];
28
+ activeKey: string;
29
+ }>) => NavTabsState[];
30
+ }, {
31
+ /**
32
+ * 保存标签信息
33
+ * @param route
34
+ */
35
+ save(route: RouteLocationNormalized): void;
36
+ /**
37
+ * 删除标签
38
+ * @param key url路径
39
+ */
40
+ deleteTabs(key: string): void;
41
+ /**
42
+ * 设置标题
43
+ * @param title 标题
44
+ * @param path url
45
+ */
46
+ setNavTitle(title: string, path: string): void;
47
+ closeOtherTabs(fullPath: string): void;
48
+ closeLeftTabs(fullPath: string): void;
49
+ closeRightTabs(fullPath: string): void;
50
+ }>;
51
+ export default useNavTabStore;
52
+ //# sourceMappingURL=useNavTabStore.d.ts.map
@@ -0,0 +1,23 @@
1
+ export interface UserState {
2
+ token: string | undefined;
3
+ userInfo: unknown;
4
+ }
5
+ declare const useUserStore: import("pinia").StoreDefinition<"_STORE_USER_ID", UserState, {
6
+ getToken: (state: {
7
+ token: string | undefined;
8
+ userInfo: unknown;
9
+ } & import("pinia").PiniaCustomStateProperties<UserState>) => string | undefined;
10
+ getUserInfo: (state: {
11
+ token: string | undefined;
12
+ userInfo: unknown;
13
+ } & import("pinia").PiniaCustomStateProperties<UserState>) => unknown;
14
+ }, {
15
+ /**
16
+ * 保存token
17
+ * @param token
18
+ */
19
+ saveToken(token: string): void;
20
+ saveUserInfo(data: unknown): void;
21
+ }>;
22
+ export default useUserStore;
23
+ //# sourceMappingURL=useUserStore.d.ts.map
@@ -0,0 +1,10 @@
1
+ export declare const BREADCRUMB_ID = "_STORE_BREADCRUMB_ID";
2
+ export declare const DATA_DICTIONARY_ID = "_STORE_DATA_DICTIONARY_ID";
3
+ export declare const KEEP_ALIVE_ID = "_STORE_KEEP_ALIVE_ID";
4
+ export declare const MENU_ID = "_STORE_MENU_ID";
5
+ export declare const NAV_TAB_ID = "_STORE_NAV_TABS_ID";
6
+ export declare const SETTINGS_ID = "_STORE_SETTINGS_ID";
7
+ export declare const USER_ID = "_STORE_USER_ID";
8
+ export declare const APP_ID = "_STORE_APP_ID";
9
+ export declare const DEVICE_ID = "_STORE_DEVICE_ID";
10
+ //# sourceMappingURL=types.d.ts.map
@@ -8,6 +8,7 @@ const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;
8
8
  const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;
9
9
  const USER_ID = `${id_prefix}USER_ID`;
10
10
  const APP_ID = `${id_prefix}APP_ID`;
11
+ const DEVICE_ID = `${id_prefix}DEVICE_ID`;
11
12
 
12
- export { APP_ID, BREADCRUMB_ID, DATA_DICTIONARY_ID, KEEP_ALIVE_ID, MENU_ID, NAV_TAB_ID, SETTINGS_ID, USER_ID };
13
+ export { APP_ID, BREADCRUMB_ID, DATA_DICTIONARY_ID, DEVICE_ID, KEEP_ALIVE_ID, MENU_ID, NAV_TAB_ID, SETTINGS_ID, USER_ID };
13
14
  //# sourceMappingURL=types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\n//面包屑\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\n//字典ID\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\n//缓存组件ID\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\n//菜单ID\nexport const MENU_ID = `${id_prefix}MENU_ID`;\n//多标签ID\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\n//用户信息ID\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\n//用户信息ID\nexport const USER_ID = `${id_prefix}USER_ID`;\n//存储APP配置信息\nexport const APP_ID = `${id_prefix}APP_ID`;\n"],"names":[],"mappings":";AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA;;;;"}
1
+ {"version":3,"file":"types.mjs","sources":["../../src/types.ts"],"sourcesContent":["const id_prefix = \"_STORE_\";\r\n//面包屑\r\nexport const BREADCRUMB_ID = `${id_prefix}BREADCRUMB_ID`;\r\n//字典ID\r\nexport const DATA_DICTIONARY_ID = `${id_prefix}DATA_DICTIONARY_ID`;\r\n//缓存组件ID\r\nexport const KEEP_ALIVE_ID = `${id_prefix}KEEP_ALIVE_ID`;\r\n//菜单ID\r\nexport const MENU_ID = `${id_prefix}MENU_ID`;\r\n//多标签ID\r\nexport const NAV_TAB_ID = `${id_prefix}NAV_TABS_ID`;\r\n//用户信息ID\r\nexport const SETTINGS_ID = `${id_prefix}SETTINGS_ID`;\r\n//用户信息ID\r\nexport const USER_ID = `${id_prefix}USER_ID`;\r\n//存储APP配置信息\r\nexport const APP_ID = `${id_prefix}APP_ID`;\r\nexport const DEVICE_ID = `${id_prefix}DEVICE_ID`;\r\n"],"names":[],"mappings":";AAAA,MAAM,SAAA,GAAY,SAAA;AAEX,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,kBAAA,GAAqB,GAAG,SAAS,CAAA,kBAAA;AAEvC,MAAM,aAAA,GAAgB,GAAG,SAAS,CAAA,aAAA;AAElC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,UAAA,GAAa,GAAG,SAAS,CAAA,WAAA;AAE/B,MAAM,WAAA,GAAc,GAAG,SAAS,CAAA,WAAA;AAEhC,MAAM,OAAA,GAAU,GAAG,SAAS,CAAA,OAAA;AAE5B,MAAM,MAAA,GAAS,GAAG,SAAS,CAAA,MAAA;AAC3B,MAAM,SAAA,GAAY,GAAG,SAAS,CAAA,SAAA;;;;"}
@@ -1,6 +1,7 @@
1
1
  export type { App } from "./modules/useAppStore";
2
2
  export { default as useAppStore } from "./modules/useAppStore";
3
3
  export * from "./modules/useBreadStore";
4
+ export * from "./modules/useDeviceStore";
4
5
  export { default as useDicStore } from "./modules/useDicStore";
5
6
  export { default as useKeepAliveStore } from "./modules/useKeepAliveStore";
6
7
  export { default as useMenuStore } from "./modules/useMenuStore";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare const useDeviceStore: import("pinia").StoreDefinition<"_STORE_DEVICE_ID", Pick<{
2
+ isAdaptive: import("vue").Ref<boolean, boolean>;
3
+ isMobile: import("vue").ComputedRef<boolean>;
4
+ isTablet: import("vue").ComputedRef<boolean>;
5
+ isDesktop: import("vue").ComputedRef<boolean>;
6
+ }, "isAdaptive">, Pick<{
7
+ isAdaptive: import("vue").Ref<boolean, boolean>;
8
+ isMobile: import("vue").ComputedRef<boolean>;
9
+ isTablet: import("vue").ComputedRef<boolean>;
10
+ isDesktop: import("vue").ComputedRef<boolean>;
11
+ }, "isMobile" | "isTablet" | "isDesktop">, Pick<{
12
+ isAdaptive: import("vue").Ref<boolean, boolean>;
13
+ isMobile: import("vue").ComputedRef<boolean>;
14
+ isTablet: import("vue").ComputedRef<boolean>;
15
+ isDesktop: import("vue").ComputedRef<boolean>;
16
+ }, never>>;
17
+ //# sourceMappingURL=useDeviceStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeviceStore.d.ts","sourceRoot":"","sources":["../../../src/modules/useDeviceStore.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;UA6BzB,CAAC"}
@@ -6,4 +6,5 @@ export declare const NAV_TAB_ID = "_STORE_NAV_TABS_ID";
6
6
  export declare const SETTINGS_ID = "_STORE_SETTINGS_ID";
7
7
  export declare const USER_ID = "_STORE_USER_ID";
8
8
  export declare const APP_ID = "_STORE_APP_ID";
9
+ export declare const DEVICE_ID = "_STORE_DEVICE_ID";
9
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,kBAAkB,8BAAmC,CAAC;AAEnE,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,UAAU,uBAA4B,CAAC;AAEpD,eAAO,MAAM,WAAW,uBAA4B,CAAC;AAErD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,MAAM,kBAAuB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,kBAAkB,8BAAmC,CAAC;AAEnE,eAAO,MAAM,aAAa,yBAA8B,CAAC;AAEzD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,UAAU,uBAA4B,CAAC;AAEpD,eAAO,MAAM,WAAW,uBAA4B,CAAC;AAErD,eAAO,MAAM,OAAO,mBAAwB,CAAC;AAE7C,eAAO,MAAM,MAAM,kBAAuB,CAAC;AAC3C,eAAO,MAAM,SAAS,qBAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditari/store",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"