aq-fe-framework 0.1.508 → 0.1.510
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/core/index.mjs
CHANGED
@@ -18,13 +18,13 @@ import {
|
|
18
18
|
MyStatsCard,
|
19
19
|
MyTextInput,
|
20
20
|
MyWeeklySessionSchedulerPicker
|
21
|
-
} from "../chunk-
|
21
|
+
} from "../chunk-RVLIJK3A.mjs";
|
22
22
|
import "../chunk-KCYPNG4W.mjs";
|
23
23
|
import "../chunk-U62R2QKJ.mjs";
|
24
24
|
import "../chunk-5U2JSHSJ.mjs";
|
25
|
-
import "../chunk-K6S7R6LU.mjs";
|
26
25
|
import "../chunk-GFEMKKFH.mjs";
|
27
26
|
import "../chunk-OMJJAHOC.mjs";
|
27
|
+
import "../chunk-K6S7R6LU.mjs";
|
28
28
|
import "../chunk-5IELATPH.mjs";
|
29
29
|
import "../chunk-7ZCOFATU.mjs";
|
30
30
|
import "../chunk-FWCSY2DS.mjs";
|
@@ -16,7 +16,7 @@ import {
|
|
16
16
|
MyButton as MyButton2,
|
17
17
|
MyDataTableSelectOne,
|
18
18
|
MyTextInput as MyTextInput2
|
19
|
-
} from "../chunk-
|
19
|
+
} from "../chunk-RVLIJK3A.mjs";
|
20
20
|
import {
|
21
21
|
F_authenticate_Logout,
|
22
22
|
MyActionIconDelete,
|
@@ -47,16 +47,16 @@ import {
|
|
47
47
|
createGenericStore
|
48
48
|
} from "../chunk-U62R2QKJ.mjs";
|
49
49
|
import "../chunk-5U2JSHSJ.mjs";
|
50
|
-
import {
|
51
|
-
enum_emailConfigModule
|
52
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
53
|
-
import "../chunk-K6S7R6LU.mjs";
|
54
50
|
import {
|
55
51
|
const_object_documentTypes
|
56
52
|
} from "../chunk-GFEMKKFH.mjs";
|
57
53
|
import {
|
58
54
|
const_object_colors
|
59
55
|
} from "../chunk-OMJJAHOC.mjs";
|
56
|
+
import {
|
57
|
+
enum_emailConfigModule
|
58
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
59
|
+
import "../chunk-K6S7R6LU.mjs";
|
60
60
|
import {
|
61
61
|
baseAxios_default,
|
62
62
|
createBaseApi,
|
@@ -229,38 +229,6 @@ function Permission_SaveMenuPermission({
|
|
229
229
|
);
|
230
230
|
}
|
231
231
|
|
232
|
-
// src/data/menuData.ts
|
233
|
-
var menuData = [
|
234
|
-
{
|
235
|
-
label: "Qu\u1EA3n l\xED h\u1EC7 th\u1ED1ng",
|
236
|
-
links: [
|
237
|
-
{ pageId: 1, name: "Account management", label: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n", link: "accountManagement" },
|
238
|
-
{ pageId: 2, name: "Access control level", label: "Ph\xE2n quy\u1EC1n c\u1EA5p \u0111\u01A1n v\u1ECB", link: "accessControlLevel" },
|
239
|
-
{ pageId: 3, name: "Access control", label: "Ph\xE2n quy\u1EC1n s\u1EED d\u1EE5ng", link: "accessControl" },
|
240
|
-
{ pageId: 4, name: "Security regulations", label: "Quy \u0111\u1ECBnh an to\xE0n/ b\u1EA3o m\u1EADt th\xF4ng tin", link: "securityPolicyDocs" },
|
241
|
-
{ pageId: 5, name: "System updates", label: "Th\xF4ng tin x\xE2y d\u1EF1ng, c\u1EA3i ti\u1EBFn, b\u1EA3o tr\xEC h\u1EC7 th\u1ED1ng", link: "systemUpdateDocs" },
|
242
|
-
{ pageId: 6, name: "User guide", label: "T\xE0i li\u1EC7u h\u01B0\u1EDBng d\u1EABn s\u1EED d\u1EE5ng", link: "userGuideDocs" }
|
243
|
-
]
|
244
|
-
},
|
245
|
-
{
|
246
|
-
label: "V\u0103n b\u1EA3n - Quy \u0111\u1ECBnh",
|
247
|
-
links: [
|
248
|
-
{ pageId: 7, name: "Organizational regulations", label: "V\u0103n b\u1EA3n - Quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", link: "organizationPolicyDocs" },
|
249
|
-
{ pageId: 8, name: "Workflow process", label: "Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", link: "workflowProcessDocs" },
|
250
|
-
{ pageId: 9, name: "Form templates", label: "T\xE0i li\u1EC7u bi\u1EC3u m\u1EABu", link: "formTemplateDocs" }
|
251
|
-
]
|
252
|
-
},
|
253
|
-
{
|
254
|
-
label: "Danh m\u1EE5c h\u1EC7 th\u1ED1ng",
|
255
|
-
links: [
|
256
|
-
{ pageId: 0, name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "documentCategories" },
|
257
|
-
{ pageId: 0, name: "mailConfig", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "mailConfig" },
|
258
|
-
{ pageId: 0, name: "pageContentConfig", label: "Danh m\u1EE5c Page Content", link: "pageContentConfig" },
|
259
|
-
{ pageId: 0, name: "moduleConfig", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "moduleConfig" }
|
260
|
-
]
|
261
|
-
}
|
262
|
-
];
|
263
|
-
|
264
232
|
// src/module/Permission/adapter/Permission_ViewCheckMenuPermission.tsx
|
265
233
|
import { useEffect as useEffect2, useState } from "react";
|
266
234
|
|
@@ -327,7 +295,7 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
|
|
327
295
|
/* @__PURE__ */ jsx4(Table.Td, { children: /* @__PURE__ */ jsx4(Skeleton, { height: 14, width: "60%" }) }),
|
328
296
|
Array.from({ length: permissionKeys.length }).map((_2, colIdx) => /* @__PURE__ */ jsx4(Table.Td, { children: /* @__PURE__ */ jsx4(Skeleton, { height: 16, circle: true }) }, colIdx))
|
329
297
|
] }, rowIdx)) })
|
330
|
-
] }) : /* @__PURE__ */ jsxs(Table, { children: [
|
298
|
+
] }) : /* @__PURE__ */ jsx4(Table.ScrollContainer, { minWidth: 500, maxHeight: "70vh", children: /* @__PURE__ */ jsxs(Table, { stickyHeader: true, children: [
|
331
299
|
/* @__PURE__ */ jsx4(Table.Thead, { children: /* @__PURE__ */ jsxs(Table.Tr, { children: [
|
332
300
|
/* @__PURE__ */ jsx4(Table.Th, { children: "Danh s\xE1ch ch\u1EE9c n\u0103ng" }),
|
333
301
|
actionType.map((item, idx) => {
|
@@ -374,7 +342,7 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
|
|
374
342
|
] }, mIdx);
|
375
343
|
})
|
376
344
|
] }, gIdx)) })
|
377
|
-
] }) }) });
|
345
|
+
] }) }) }) });
|
378
346
|
}
|
379
347
|
|
380
348
|
// src/module/Permission/adapter/Permission_ViewCheckMenuPermission.tsx
|
@@ -383,7 +351,8 @@ function Permission_ViewCheckMenuPermission({
|
|
383
351
|
value,
|
384
352
|
onChange,
|
385
353
|
roleOrUserId,
|
386
|
-
isUserPermission
|
354
|
+
isUserPermission,
|
355
|
+
menuDataRoot
|
387
356
|
}) {
|
388
357
|
const rolePermissionQuery = useMyReactQuery({
|
389
358
|
queryKey: ["rolePermissions", roleOrUserId],
|
@@ -430,7 +399,7 @@ function Permission_ViewCheckMenuPermission({
|
|
430
399
|
}
|
431
400
|
useEffect2(() => {
|
432
401
|
if (!rolePermissionQuery.data) return;
|
433
|
-
const flattenMenu = extractMenusWithRootGroupTitle(
|
402
|
+
const flattenMenu = extractMenusWithRootGroupTitle(menuDataRoot || []);
|
434
403
|
const menuMerged = mergePermissionsType(flattenMenu, rolePermissionQuery.data);
|
435
404
|
onChange == null ? void 0 : onChange(menuMerged);
|
436
405
|
isLoadingState[1](false);
|
@@ -1022,6 +991,38 @@ var mockData = [
|
|
1022
991
|
{ id: 4, code: "ADMIN", name: "Admin" }
|
1023
992
|
];
|
1024
993
|
|
994
|
+
// src/data/menuData.ts
|
995
|
+
var menuData = [
|
996
|
+
{
|
997
|
+
label: "Qu\u1EA3n l\xED h\u1EC7 th\u1ED1ng",
|
998
|
+
links: [
|
999
|
+
{ pageId: 1, name: "Account management", label: "Qu\u1EA3n l\xED t\xE0i kho\u1EA3n", link: "accountManagement" },
|
1000
|
+
{ pageId: 2, name: "Access control level", label: "Ph\xE2n quy\u1EC1n c\u1EA5p \u0111\u01A1n v\u1ECB", link: "accessControlLevel" },
|
1001
|
+
{ pageId: 3, name: "Access control", label: "Ph\xE2n quy\u1EC1n s\u1EED d\u1EE5ng", link: "accessControl" },
|
1002
|
+
{ pageId: 4, name: "Security regulations", label: "Quy \u0111\u1ECBnh an to\xE0n/ b\u1EA3o m\u1EADt th\xF4ng tin", link: "securityPolicyDocs" },
|
1003
|
+
{ pageId: 5, name: "System updates", label: "Th\xF4ng tin x\xE2y d\u1EF1ng, c\u1EA3i ti\u1EBFn, b\u1EA3o tr\xEC h\u1EC7 th\u1ED1ng", link: "systemUpdateDocs" },
|
1004
|
+
{ pageId: 6, name: "User guide", label: "T\xE0i li\u1EC7u h\u01B0\u1EDBng d\u1EABn s\u1EED d\u1EE5ng", link: "userGuideDocs" }
|
1005
|
+
]
|
1006
|
+
},
|
1007
|
+
{
|
1008
|
+
label: "V\u0103n b\u1EA3n - Quy \u0111\u1ECBnh",
|
1009
|
+
links: [
|
1010
|
+
{ pageId: 7, name: "Organizational regulations", label: "V\u0103n b\u1EA3n - Quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c", link: "organizationPolicyDocs" },
|
1011
|
+
{ pageId: 8, name: "Workflow process", label: "Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", link: "workflowProcessDocs" },
|
1012
|
+
{ pageId: 9, name: "Form templates", label: "T\xE0i li\u1EC7u bi\u1EC3u m\u1EABu", link: "formTemplateDocs" }
|
1013
|
+
]
|
1014
|
+
},
|
1015
|
+
{
|
1016
|
+
label: "Danh m\u1EE5c h\u1EC7 th\u1ED1ng",
|
1017
|
+
links: [
|
1018
|
+
{ pageId: 0, name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "documentCategories" },
|
1019
|
+
{ pageId: 0, name: "mailConfig", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "mailConfig" },
|
1020
|
+
{ pageId: 0, name: "pageContentConfig", label: "Danh m\u1EE5c Page Content", link: "pageContentConfig" },
|
1021
|
+
{ pageId: 0, name: "moduleConfig", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "moduleConfig" }
|
1022
|
+
]
|
1023
|
+
}
|
1024
|
+
];
|
1025
|
+
|
1025
1026
|
// src/modules-features/admin/core/accessControlLevel/old/F_accessControlLevel_ViewMenuPermissions.tsx
|
1026
1027
|
import { Checkbox as Checkbox3, Flex as Flex3, ScrollArea as ScrollArea4, Table as Table3, Text as Text3 } from "@mantine/core";
|
1027
1028
|
import { IconEdit as IconEdit2, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus3, IconPrinter as IconPrinter3, IconTrash as IconTrash3 } from "@tabler/icons-react";
|
package/package.json
CHANGED
@@ -3,12 +3,12 @@ import {
|
|
3
3
|
MyFlexColumn,
|
4
4
|
MyFlexRow
|
5
5
|
} from "./chunk-KCYPNG4W.mjs";
|
6
|
-
import {
|
7
|
-
enum_daysOfWeek
|
8
|
-
} from "./chunk-K6S7R6LU.mjs";
|
9
6
|
import {
|
10
7
|
const_object_colors
|
11
8
|
} from "./chunk-OMJJAHOC.mjs";
|
9
|
+
import {
|
10
|
+
enum_daysOfWeek
|
11
|
+
} from "./chunk-K6S7R6LU.mjs";
|
12
12
|
import {
|
13
13
|
useMyReactMutation,
|
14
14
|
useMyReactQuery
|