aq-fe-framework 0.1.649 → 0.1.651
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-PEZLOH7T.mjs → chunk-3SZWWNH4.mjs} +8 -17
- package/dist/{chunk-5HU4DEXC.mjs → chunk-NFSUFJEO.mjs} +1 -1
- 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 +16 -20
- package/dist/stores/index.mjs +5 -5
- package/package.json +1 -1
|
@@ -77,27 +77,18 @@ function useStore_Permission() {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// src/stores/useStore_TenantSettings.ts
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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;
|
|
80
|
+
var useStore2 = createGenericStore({
|
|
81
|
+
initialState: {},
|
|
82
|
+
storageKey: "useStore_TenantSettings"
|
|
83
|
+
});
|
|
84
|
+
function useStore_TenantSettings() {
|
|
85
|
+
const store = useStore2();
|
|
86
|
+
return __spreadValues({}, store);
|
|
96
87
|
}
|
|
97
88
|
|
|
98
89
|
export {
|
|
99
90
|
createGenericStore,
|
|
100
91
|
createStateStore,
|
|
101
92
|
useStore_Permission,
|
|
102
|
-
|
|
93
|
+
useStore_TenantSettings
|
|
103
94
|
};
|
|
@@ -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-NFSUFJEO.mjs";
|
|
74
|
+
import "../chunk-3SZWWNH4.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-NFSUFJEO.mjs";
|
|
27
|
+
import "../chunk-3SZWWNH4.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-NFSUFJEO.mjs";
|
|
110
|
+
import "../chunk-3SZWWNH4.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,36 +25,32 @@ 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;
|
|
34
|
-
setState: (newState: I) => void;
|
|
35
|
-
setProperty: <K extends keyof I>(key: K, value: I[K]) => void;
|
|
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
36
|
resetState: () => void;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
interface ITenantSetting<TSettingKey> {
|
|
39
|
+
interface ITenantSetting {
|
|
41
40
|
pageId?: number;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
description?: string;
|
|
46
|
-
}[];
|
|
41
|
+
settingValue?: string;
|
|
42
|
+
settingKey?: string | boolean | number;
|
|
43
|
+
description?: string;
|
|
47
44
|
}
|
|
48
|
-
interface
|
|
49
|
-
|
|
50
|
-
currentTenantSetting?: ITenantSetting
|
|
45
|
+
interface I {
|
|
46
|
+
tenantSettings?: ITenantSetting[];
|
|
47
|
+
currentTenantSetting?: ITenantSetting;
|
|
51
48
|
}
|
|
52
|
-
declare function
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
setProperty: <K extends keyof ITenantSettingStore<TSettingKey>>(key: K, value: ITenantSettingStore<TSettingKey>[K]) => void;
|
|
49
|
+
declare function useStore_TenantSettings(): {
|
|
50
|
+
state: I;
|
|
51
|
+
setState: (newState: I) => void;
|
|
52
|
+
setProperty: <K extends keyof I>(key: K, value: I[K]) => void;
|
|
57
53
|
resetState: () => void;
|
|
58
54
|
};
|
|
59
55
|
|
|
60
|
-
export {
|
|
56
|
+
export { createGenericStore, createStateStore, useStore_Permission, useStore_TenantSettings };
|
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
|
+
useStore_Permission,
|
|
5
|
+
useStore_TenantSettings
|
|
6
|
+
} from "../chunk-3SZWWNH4.mjs";
|
|
7
7
|
import "../chunk-FWCSY2DS.mjs";
|
|
8
8
|
export {
|
|
9
9
|
createGenericStore,
|
|
10
10
|
createStateStore,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
useStore_Permission,
|
|
12
|
+
useStore_TenantSettings
|
|
13
13
|
};
|