aq-fe-framework 0.1.665 → 0.1.666
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-RTACAF42.mjs → chunk-CMM4EQUV.mjs} +6 -4
- package/dist/components/index.mjs +2 -2
- package/dist/const/index.mjs +1 -1
- 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 +1 -0
- package/package.json +1 -1
- package/dist/{chunk-REMYBOSK.mjs → chunk-IUTUR43V.mjs} +1 -1
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
const_object_colors,
|
|
25
25
|
const_object_documentTypes
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IUTUR43V.mjs";
|
|
27
27
|
import {
|
|
28
28
|
enum_daysOfWeek,
|
|
29
29
|
enum_emailConfigModule
|
|
@@ -1231,15 +1231,16 @@ var getActionConfig2 = (colorScheme) => ({
|
|
|
1231
1231
|
});
|
|
1232
1232
|
function MyButton2(_a) {
|
|
1233
1233
|
var _b = _a, { children, actionType: actionType2, isCheckPermission = true } = _b, rest = __objRest(_b, ["children", "actionType", "isCheckPermission"]);
|
|
1234
|
-
const
|
|
1234
|
+
const permissionStore = useStore_Permission();
|
|
1235
1235
|
const { colorScheme } = useMantineColorScheme3();
|
|
1236
1236
|
if (!actionType2) {
|
|
1237
1237
|
return /* @__PURE__ */ jsx21(Button4, __spreadProps(__spreadValues({}, rest), { children }));
|
|
1238
1238
|
}
|
|
1239
1239
|
const config2 = actionType2 ? getActionConfig2(colorScheme)[actionType2] : {};
|
|
1240
1240
|
const shouldHide = (() => {
|
|
1241
|
-
if (!isCheckPermission || !actionType2 || !
|
|
1242
|
-
|
|
1241
|
+
if (!isCheckPermission || !actionType2 || !permissionStore.state.currentPermissionPage || permissionStore.state.isSuperAdmin)
|
|
1242
|
+
return false;
|
|
1243
|
+
return actionType2 === "create" && permissionStore.state.currentPermissionPage.isCreate === false || actionType2 === "update" && permissionStore.state.currentPermissionPage.isUpdate === false || actionType2 === "delete" && permissionStore.state.currentPermissionPage.isDelete === false || actionType2 === "print" && permissionStore.state.currentPermissionPage.isPrint === false || actionType2 === "export" && permissionStore.state.currentPermissionPage.isExport === false;
|
|
1243
1244
|
})();
|
|
1244
1245
|
return /* @__PURE__ */ jsx21(Button4, __spreadValues(__spreadValues({ hidden: shouldHide }, config2), rest));
|
|
1245
1246
|
}
|
|
@@ -9102,6 +9103,7 @@ function BasicAppShell({ children, menu, extraTopRight, title, logoutRedirect, i
|
|
|
9102
9103
|
);
|
|
9103
9104
|
const filteredMenu = useMemo8(
|
|
9104
9105
|
() => {
|
|
9106
|
+
if (permissionStore.state.isSuperAdmin) return menu;
|
|
9105
9107
|
if (isDev) return menu;
|
|
9106
9108
|
return filterMenuByPermission(menu, readablePageIds);
|
|
9107
9109
|
},
|
|
@@ -70,12 +70,12 @@ import {
|
|
|
70
70
|
useHeaderMegaMenuStore,
|
|
71
71
|
useS_ButtonImport,
|
|
72
72
|
useStore_BasicAppShell
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-CMM4EQUV.mjs";
|
|
74
74
|
import "../chunk-SUH3FFFV.mjs";
|
|
75
75
|
import "../chunk-GMM6RIVS.mjs";
|
|
76
76
|
import "../chunk-7PUDC2WF.mjs";
|
|
77
77
|
import "../chunk-EWDS5IOF.mjs";
|
|
78
|
-
import "../chunk-
|
|
78
|
+
import "../chunk-IUTUR43V.mjs";
|
|
79
79
|
import "../chunk-NP2GSNOZ.mjs";
|
|
80
80
|
import "../chunk-DNYLK76M.mjs";
|
|
81
81
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/const/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -24,12 +24,12 @@ import {
|
|
|
24
24
|
MyStatsCard,
|
|
25
25
|
MyTextInput2 as MyTextInput,
|
|
26
26
|
MyWeeklySessionSchedulerPicker
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-CMM4EQUV.mjs";
|
|
28
28
|
import "../chunk-SUH3FFFV.mjs";
|
|
29
29
|
import "../chunk-GMM6RIVS.mjs";
|
|
30
30
|
import "../chunk-7PUDC2WF.mjs";
|
|
31
31
|
import "../chunk-EWDS5IOF.mjs";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-IUTUR43V.mjs";
|
|
33
33
|
import "../chunk-NP2GSNOZ.mjs";
|
|
34
34
|
import "../chunk-DNYLK76M.mjs";
|
|
35
35
|
import "../chunk-WZ6PXGGC.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MyModalDelete
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CMM4EQUV.mjs";
|
|
4
4
|
import "../chunk-SUH3FFFV.mjs";
|
|
5
5
|
import "../chunk-GMM6RIVS.mjs";
|
|
6
6
|
import "../chunk-7PUDC2WF.mjs";
|
|
7
7
|
import "../chunk-EWDS5IOF.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-IUTUR43V.mjs";
|
|
9
9
|
import "../chunk-NP2GSNOZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useMyReactMutation
|
|
@@ -106,12 +106,12 @@ import {
|
|
|
106
106
|
Feat_accessControlLevel,
|
|
107
107
|
useS_authenticate,
|
|
108
108
|
useS_moduleConfig
|
|
109
|
-
} from "../chunk-
|
|
109
|
+
} from "../chunk-CMM4EQUV.mjs";
|
|
110
110
|
import "../chunk-SUH3FFFV.mjs";
|
|
111
111
|
import "../chunk-GMM6RIVS.mjs";
|
|
112
112
|
import "../chunk-7PUDC2WF.mjs";
|
|
113
113
|
import "../chunk-EWDS5IOF.mjs";
|
|
114
|
-
import "../chunk-
|
|
114
|
+
import "../chunk-IUTUR43V.mjs";
|
|
115
115
|
import "../chunk-NP2GSNOZ.mjs";
|
|
116
116
|
import "../chunk-DNYLK76M.mjs";
|
|
117
117
|
import "../chunk-WZ6PXGGC.mjs";
|
package/dist/stores/index.d.mts
CHANGED
package/package.json
CHANGED