aq-fe-framework 0.1.646 → 0.1.648

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.
@@ -76,8 +76,25 @@ function useStore_Permission() {
76
76
  return __spreadValues({}, store);
77
77
  }
78
78
 
79
+ // src/stores/useStore_TenantSettings.ts
80
+ var useStore2 = createGenericStore({
81
+ initialState: {},
82
+ storageKey: "useStore_TenantSettings"
83
+ });
84
+ function useStore_TenantSettings() {
85
+ const store = useStore2();
86
+ function getSetting(settingKey) {
87
+ var _a, _b, _c;
88
+ return (_c = (_b = (_a = store.state.currentTenantSetting) == null ? void 0 : _a.tenantSettings) == null ? void 0 : _b.find((s) => s.settingKey === settingKey)) == null ? void 0 : _c.settingValue;
89
+ }
90
+ return __spreadProps(__spreadValues({}, store), {
91
+ getSetting
92
+ });
93
+ }
94
+
79
95
  export {
80
96
  createGenericStore,
81
97
  createStateStore,
82
- useStore_Permission
98
+ useStore_Permission,
99
+ useStore_TenantSettings
83
100
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createGenericStore,
3
3
  useStore_Permission
4
- } from "./chunk-PW6WTEVB.mjs";
4
+ } from "./chunk-HYERLZ3G.mjs";
5
5
  import {
6
6
  U0MyValidateEmail,
7
7
  updateEnableList,
@@ -2148,7 +2148,7 @@ function MyDataTable(_a) {
2148
2148
  }
2149
2149
  } : {}),
2150
2150
  initialState: __spreadValues(__spreadValues({
2151
- density: "xl",
2151
+ density: "md",
2152
2152
  columnPinning: { right: ["mrt-row-actions"] },
2153
2153
  columnVisibility: {
2154
2154
  modifiedWhen: false,
@@ -70,8 +70,8 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-3YIUNQCB.mjs";
74
- import "../chunk-PW6WTEVB.mjs";
73
+ } from "../chunk-MVCG3NOH.mjs";
74
+ import "../chunk-HYERLZ3G.mjs";
75
75
  import "../chunk-GMM6RIVS.mjs";
76
76
  import "../chunk-7PUDC2WF.mjs";
77
77
  import "../chunk-EWDS5IOF.mjs";
@@ -23,8 +23,8 @@ import {
23
23
  MyStatsCard,
24
24
  MyTextInput2 as MyTextInput,
25
25
  MyWeeklySessionSchedulerPicker
26
- } from "../chunk-3YIUNQCB.mjs";
27
- import "../chunk-PW6WTEVB.mjs";
26
+ } from "../chunk-MVCG3NOH.mjs";
27
+ import "../chunk-HYERLZ3G.mjs";
28
28
  import "../chunk-GMM6RIVS.mjs";
29
29
  import "../chunk-7PUDC2WF.mjs";
30
30
  import "../chunk-EWDS5IOF.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-3YIUNQCB.mjs";
4
- import "../chunk-PW6WTEVB.mjs";
3
+ } from "../chunk-MVCG3NOH.mjs";
4
+ import "../chunk-HYERLZ3G.mjs";
5
5
  import "../chunk-GMM6RIVS.mjs";
6
6
  import "../chunk-7PUDC2WF.mjs";
7
7
  import "../chunk-EWDS5IOF.mjs";
@@ -106,8 +106,8 @@ import {
106
106
  Feat_accessControlLevel,
107
107
  useS_authenticate,
108
108
  useS_moduleConfig
109
- } from "../chunk-3YIUNQCB.mjs";
110
- import "../chunk-PW6WTEVB.mjs";
109
+ } from "../chunk-MVCG3NOH.mjs";
110
+ import "../chunk-HYERLZ3G.mjs";
111
111
  import "../chunk-GMM6RIVS.mjs";
112
112
  import "../chunk-7PUDC2WF.mjs";
113
113
  import "../chunk-EWDS5IOF.mjs";
@@ -25,15 +25,35 @@ declare function createStateStore<T extends Record<string, any>>({ initialState,
25
25
  storageKey?: string;
26
26
  }): zustand.UseBoundStore<zustand.StoreApi<GenericStore<T>>>;
27
27
 
28
- interface I {
28
+ interface I$1 {
29
29
  permission?: IPagePermission[];
30
30
  currentPermissionPage?: IPagePermission;
31
31
  }
32
32
  declare function useStore_Permission(): {
33
+ state: I$1;
34
+ setState: (newState: I$1) => void;
35
+ setProperty: <K extends keyof I$1>(key: K, value: I$1[K]) => void;
36
+ resetState: () => void;
37
+ };
38
+
39
+ interface ITenantSetting {
40
+ pageId?: number;
41
+ tenantSettings?: {
42
+ settingKey?: string;
43
+ settingValue?: string | number | boolean;
44
+ description?: string;
45
+ }[];
46
+ }
47
+ interface I {
48
+ allTenantSetting?: ITenantSetting[];
49
+ currentTenantSetting?: ITenantSetting;
50
+ }
51
+ declare function useStore_TenantSettings(): {
52
+ getSetting: (settingKey: string) => string | number | boolean | undefined;
33
53
  state: I;
34
54
  setState: (newState: I) => void;
35
55
  setProperty: <K extends keyof I>(key: K, value: I[K]) => void;
36
56
  resetState: () => void;
37
57
  };
38
58
 
39
- export { createGenericStore, createStateStore, useStore_Permission };
59
+ export { createGenericStore, createStateStore, useStore_Permission, useStore_TenantSettings };
@@ -1,11 +1,13 @@
1
1
  import {
2
2
  createGenericStore,
3
3
  createStateStore,
4
- useStore_Permission
5
- } from "../chunk-PW6WTEVB.mjs";
4
+ useStore_Permission,
5
+ useStore_TenantSettings
6
+ } from "../chunk-HYERLZ3G.mjs";
6
7
  import "../chunk-FWCSY2DS.mjs";
7
8
  export {
8
9
  createGenericStore,
9
10
  createStateStore,
10
- useStore_Permission
11
+ useStore_Permission,
12
+ useStore_TenantSettings
11
13
  };
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "types": "./dist/types/index.d.mts"
51
51
  }
52
52
  },
53
- "version": "0.1.646",
53
+ "version": "0.1.648",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"