aq-fe-framework 0.1.647 → 0.1.649
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/{chunk-NFSUFJEO.mjs → chunk-5HU4DEXC.mjs} +1 -1
- package/dist/{chunk-3SZWWNH4.mjs → chunk-PEZLOH7T.mjs} +17 -8
- package/dist/components/index.mjs +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/coreService/index.mjs +2 -2
- package/dist/modules-features/index.mjs +2 -2
- package/dist/stores/index.d.mts +18 -15
- package/dist/stores/index.mjs +5 -5
- package/package.json +1 -1
|
@@ -77,18 +77,27 @@ function useStore_Permission() {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// src/stores/useStore_TenantSettings.ts
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
function createTenantSettingsStore() {
|
|
81
|
+
const useStore2 = createGenericStore({
|
|
82
|
+
initialState: {},
|
|
83
|
+
storageKey: "useStore_TenantSettings"
|
|
84
|
+
});
|
|
85
|
+
function useStore_TenantSettings() {
|
|
86
|
+
const store = useStore2();
|
|
87
|
+
function getSetting(settingKey) {
|
|
88
|
+
var _a, _b, _c;
|
|
89
|
+
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;
|
|
90
|
+
}
|
|
91
|
+
return __spreadProps(__spreadValues({}, store), {
|
|
92
|
+
getSetting
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return useStore_TenantSettings;
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
export {
|
|
90
99
|
createGenericStore,
|
|
91
100
|
createStateStore,
|
|
92
101
|
useStore_Permission,
|
|
93
|
-
|
|
102
|
+
createTenantSettingsStore
|
|
94
103
|
};
|
|
@@ -70,8 +70,8 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
74
|
-
import "../chunk-
|
|
73
|
+
} from "../chunk-5HU4DEXC.mjs";
|
|
74
|
+
import "../chunk-PEZLOH7T.mjs";
|
|
75
75
|
import "../chunk-GMM6RIVS.mjs";
|
|
76
76
|
import "../chunk-7PUDC2WF.mjs";
|
|
77
77
|
import "../chunk-EWDS5IOF.mjs";
|
package/dist/core/index.mjs
CHANGED
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
MyStatsCard,
|
|
24
24
|
MyTextInput2 as MyTextInput,
|
|
25
25
|
MyWeeklySessionSchedulerPicker
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-5HU4DEXC.mjs";
|
|
27
|
+
import "../chunk-PEZLOH7T.mjs";
|
|
28
28
|
import "../chunk-GMM6RIVS.mjs";
|
|
29
29
|
import "../chunk-7PUDC2WF.mjs";
|
|
30
30
|
import "../chunk-EWDS5IOF.mjs";
|
|
@@ -106,8 +106,8 @@ import {
|
|
|
106
106
|
Feat_accessControlLevel,
|
|
107
107
|
useS_authenticate,
|
|
108
108
|
useS_moduleConfig
|
|
109
|
-
} from "../chunk-
|
|
110
|
-
import "../chunk-
|
|
109
|
+
} from "../chunk-5HU4DEXC.mjs";
|
|
110
|
+
import "../chunk-PEZLOH7T.mjs";
|
|
111
111
|
import "../chunk-GMM6RIVS.mjs";
|
|
112
112
|
import "../chunk-7PUDC2WF.mjs";
|
|
113
113
|
import "../chunk-EWDS5IOF.mjs";
|
package/dist/stores/index.d.mts
CHANGED
|
@@ -25,33 +25,36 @@ 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 {
|
|
29
29
|
permission?: IPagePermission[];
|
|
30
30
|
currentPermissionPage?: IPagePermission;
|
|
31
31
|
}
|
|
32
32
|
declare function useStore_Permission(): {
|
|
33
|
-
state: I
|
|
34
|
-
setState: (newState: I
|
|
35
|
-
setProperty: <K extends keyof I
|
|
33
|
+
state: I;
|
|
34
|
+
setState: (newState: I) => void;
|
|
35
|
+
setProperty: <K extends keyof I>(key: K, value: I[K]) => void;
|
|
36
36
|
resetState: () => void;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
type TenantSettingValue = string | number | boolean | string[] | number[] | Record<string, any>;
|
|
40
|
+
interface ITenantSetting<TSettingKey> {
|
|
40
41
|
pageId?: number;
|
|
41
42
|
tenantSettings?: {
|
|
42
|
-
settingKey?:
|
|
43
|
-
settingValue?:
|
|
43
|
+
settingKey?: TSettingKey;
|
|
44
|
+
settingValue?: TenantSettingValue;
|
|
45
|
+
description?: string;
|
|
44
46
|
}[];
|
|
45
47
|
}
|
|
46
|
-
interface
|
|
47
|
-
allTenantSetting?:
|
|
48
|
-
currentTenantSetting?:
|
|
48
|
+
interface ITenantSettingStore<TSettingKey> {
|
|
49
|
+
allTenantSetting?: ITenantSetting<TSettingKey>[];
|
|
50
|
+
currentTenantSetting?: ITenantSetting<TSettingKey>;
|
|
49
51
|
}
|
|
50
|
-
declare function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
declare function createTenantSettingsStore<TSettingKey extends string>(): () => {
|
|
53
|
+
getSetting: (settingKey: TSettingKey) => TenantSettingValue | undefined;
|
|
54
|
+
state: ITenantSettingStore<TSettingKey>;
|
|
55
|
+
setState: (newState: ITenantSettingStore<TSettingKey>) => void;
|
|
56
|
+
setProperty: <K extends keyof ITenantSettingStore<TSettingKey>>(key: K, value: ITenantSettingStore<TSettingKey>[K]) => void;
|
|
54
57
|
resetState: () => void;
|
|
55
58
|
};
|
|
56
59
|
|
|
57
|
-
export { createGenericStore, createStateStore,
|
|
60
|
+
export { type TenantSettingValue, createGenericStore, createStateStore, createTenantSettingsStore, useStore_Permission };
|
package/dist/stores/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createGenericStore,
|
|
3
3
|
createStateStore,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../chunk-
|
|
4
|
+
createTenantSettingsStore,
|
|
5
|
+
useStore_Permission
|
|
6
|
+
} from "../chunk-PEZLOH7T.mjs";
|
|
7
7
|
import "../chunk-FWCSY2DS.mjs";
|
|
8
8
|
export {
|
|
9
9
|
createGenericStore,
|
|
10
10
|
createStateStore,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
createTenantSettingsStore,
|
|
12
|
+
useStore_Permission
|
|
13
13
|
};
|