aq-fe-framework 0.1.315 → 0.1.316
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.
@@ -6,12 +6,23 @@ import {
|
|
6
6
|
utils_converter_enumToSelectOptions,
|
7
7
|
utils_file_fileToAQDocumentType
|
8
8
|
} from "../chunk-VECMRDKG.mjs";
|
9
|
+
import {
|
10
|
+
const_object_documentTypes
|
11
|
+
} from "../chunk-GFEMKKFH.mjs";
|
12
|
+
import {
|
13
|
+
MyButton,
|
14
|
+
MyTextInput
|
15
|
+
} from "../chunk-PSV5MULK.mjs";
|
16
|
+
import {
|
17
|
+
enum_emailConfigModule
|
18
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
19
|
+
import "../chunk-K6S7R6LU.mjs";
|
9
20
|
import {
|
10
21
|
F_authenticate_Logout,
|
11
22
|
MyActionIconDelete,
|
12
23
|
MyActionIconUpdate,
|
13
24
|
MyBoxesBackground,
|
14
|
-
MyButton,
|
25
|
+
MyButton as MyButton2,
|
15
26
|
MyButtonCreate,
|
16
27
|
MyButtonModal,
|
17
28
|
MyButtonViewPDF,
|
@@ -25,20 +36,12 @@ import {
|
|
25
36
|
MyPageContent,
|
26
37
|
MySelect,
|
27
38
|
MyTab,
|
28
|
-
MyTextInput,
|
39
|
+
MyTextInput as MyTextInput2,
|
29
40
|
groupToTwoLevels,
|
30
|
-
useS_BasicAppShell,
|
31
41
|
useS_authenticate,
|
32
42
|
utils_layout_getItemsWithoutLinks
|
33
43
|
} from "../chunk-FUHOV7NB.mjs";
|
34
44
|
import "../chunk-5U2JSHSJ.mjs";
|
35
|
-
import {
|
36
|
-
const_object_documentTypes
|
37
|
-
} from "../chunk-GFEMKKFH.mjs";
|
38
|
-
import {
|
39
|
-
MyButton as MyButton2,
|
40
|
-
MyTextInput as MyTextInput2
|
41
|
-
} from "../chunk-BSQT2XIP.mjs";
|
42
45
|
import {
|
43
46
|
MyFlexColumn,
|
44
47
|
MyFlexRow
|
@@ -46,10 +49,6 @@ import {
|
|
46
49
|
import {
|
47
50
|
const_object_colors
|
48
51
|
} from "../chunk-NWBLJ3W3.mjs";
|
49
|
-
import {
|
50
|
-
enum_emailConfigModule
|
51
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
52
|
-
import "../chunk-K6S7R6LU.mjs";
|
53
52
|
import {
|
54
53
|
baseAxios_default,
|
55
54
|
createBaseApi,
|
@@ -215,10 +214,10 @@ function F_accountManagement_ChangePermission({ user }) {
|
|
215
214
|
] });
|
216
215
|
}
|
217
216
|
var mockData = [
|
218
|
-
{ id: 1, code: "
|
219
|
-
{ id: 2, code: "
|
220
|
-
{ id: 3, code: "
|
221
|
-
{ id: 4, code: "
|
217
|
+
{ id: 1, code: "GV", name: "Gi\u1EA3ng vi\xEAn" },
|
218
|
+
{ id: 2, code: "STU", name: "Student" },
|
219
|
+
{ id: 3, code: "FACU", name: "Faculty" },
|
220
|
+
{ id: 4, code: "ADMIN", name: "Admin" }
|
222
221
|
];
|
223
222
|
|
224
223
|
// src/modules-features/admin/core/accountManagement/F_accountManagement_Create.tsx
|
@@ -261,12 +260,12 @@ function F_accountManagement_Create() {
|
|
261
260
|
}));
|
262
261
|
}
|
263
262
|
return /* @__PURE__ */ jsxs2(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
264
|
-
/* @__PURE__ */ jsx2(
|
265
|
-
/* @__PURE__ */ jsx2(
|
266
|
-
/* @__PURE__ */ jsx2(
|
267
|
-
/* @__PURE__ */ jsx2(
|
268
|
-
/* @__PURE__ */ jsx2(
|
269
|
-
/* @__PURE__ */ jsx2(
|
263
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
264
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
265
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
266
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
267
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
268
|
+
/* @__PURE__ */ jsx2(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
270
269
|
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx2(
|
271
270
|
MultiSelect,
|
272
271
|
{
|
@@ -345,11 +344,11 @@ function F_accountManagement_Update({ user }) {
|
|
345
344
|
})
|
346
345
|
);
|
347
346
|
}, children: /* @__PURE__ */ jsxs3(MyFlexColumn, { children: [
|
348
|
-
/* @__PURE__ */ jsx4(
|
349
|
-
/* @__PURE__ */ jsx4(
|
350
|
-
/* @__PURE__ */ jsx4(
|
351
|
-
/* @__PURE__ */ jsx4(
|
352
|
-
/* @__PURE__ */ jsx4(
|
347
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
348
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
349
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
350
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
351
|
+
/* @__PURE__ */ jsx4(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
353
352
|
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx4(
|
354
353
|
MultiSelect2,
|
355
354
|
{
|
@@ -606,7 +605,7 @@ function F_core12196_Update({
|
|
606
605
|
},
|
607
606
|
children: [
|
608
607
|
/* @__PURE__ */ jsx9(
|
609
|
-
|
608
|
+
MyTextInput2,
|
610
609
|
__spreadValues({
|
611
610
|
withAsterisk: true,
|
612
611
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -620,7 +619,7 @@ function F_core12196_Update({
|
|
620
619
|
}, form.getInputProps("promulgateDate"))
|
621
620
|
),
|
622
621
|
/* @__PURE__ */ jsx9(
|
623
|
-
|
622
|
+
MyTextInput2,
|
624
623
|
__spreadValues({
|
625
624
|
withAsterisk: true,
|
626
625
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -789,7 +788,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
789
788
|
},
|
790
789
|
children: [
|
791
790
|
/* @__PURE__ */ jsx11(
|
792
|
-
|
791
|
+
MyTextInput2,
|
793
792
|
__spreadValues({
|
794
793
|
withAsterisk: true,
|
795
794
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -803,7 +802,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
803
802
|
}, form.getInputProps("promulgateDate"))
|
804
803
|
),
|
805
804
|
/* @__PURE__ */ jsx11(
|
806
|
-
|
805
|
+
MyTextInput2,
|
807
806
|
__spreadValues({
|
808
807
|
withAsterisk: true,
|
809
808
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -891,20 +890,20 @@ function F_core16209_Create({
|
|
891
890
|
}, form.getInputProps("meetingDate"))
|
892
891
|
),
|
893
892
|
/* @__PURE__ */ jsx13(
|
894
|
-
|
893
|
+
MyTextInput2,
|
895
894
|
__spreadValues({
|
896
895
|
withAsterisk: true,
|
897
896
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
898
897
|
}, form.getInputProps("departmentName"))
|
899
898
|
),
|
900
899
|
/* @__PURE__ */ jsx13(
|
901
|
-
|
900
|
+
MyTextInput2,
|
902
901
|
__spreadValues({
|
903
902
|
withAsterisk: true,
|
904
903
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
905
904
|
}, form.getInputProps("description"))
|
906
905
|
),
|
907
|
-
/* @__PURE__ */ jsx13(
|
906
|
+
/* @__PURE__ */ jsx13(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
908
907
|
/* @__PURE__ */ jsx13(
|
909
908
|
MyDateInput,
|
910
909
|
__spreadValues({
|
@@ -992,20 +991,20 @@ function F_core16209_Update({ values }) {
|
|
992
991
|
}, form.getInputProps("meetingDate"))
|
993
992
|
),
|
994
993
|
/* @__PURE__ */ jsx15(
|
995
|
-
|
994
|
+
MyTextInput2,
|
996
995
|
__spreadValues({
|
997
996
|
withAsterisk: true,
|
998
997
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
999
998
|
}, form.getInputProps("departmentName"))
|
1000
999
|
),
|
1001
1000
|
/* @__PURE__ */ jsx15(
|
1002
|
-
|
1001
|
+
MyTextInput2,
|
1003
1002
|
__spreadValues({
|
1004
1003
|
withAsterisk: true,
|
1005
1004
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
1006
1005
|
}, form.getInputProps("description"))
|
1007
1006
|
),
|
1008
|
-
/* @__PURE__ */ jsx15(
|
1007
|
+
/* @__PURE__ */ jsx15(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
1009
1008
|
/* @__PURE__ */ jsx15(
|
1010
1009
|
MyDateInput,
|
1011
1010
|
__spreadValues({
|
@@ -1121,8 +1120,8 @@ function F_core18256_Create({ documentType }) {
|
|
1121
1120
|
}
|
1122
1121
|
});
|
1123
1122
|
return /* @__PURE__ */ jsxs12(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
1124
|
-
/* @__PURE__ */ jsx17(
|
1125
|
-
/* @__PURE__ */ jsx17(
|
1123
|
+
/* @__PURE__ */ jsx17(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1124
|
+
/* @__PURE__ */ jsx17(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
1126
1125
|
] });
|
1127
1126
|
}
|
1128
1127
|
|
@@ -1145,8 +1144,8 @@ function F_core18256_Update({ values }) {
|
|
1145
1144
|
initialValues: values
|
1146
1145
|
});
|
1147
1146
|
return /* @__PURE__ */ jsxs13(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
1148
|
-
/* @__PURE__ */ jsx19(
|
1149
|
-
/* @__PURE__ */ jsx19(
|
1147
|
+
/* @__PURE__ */ jsx19(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1148
|
+
/* @__PURE__ */ jsx19(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
1150
1149
|
] });
|
1151
1150
|
}
|
1152
1151
|
|
@@ -1240,7 +1239,7 @@ function F_core26965_Create({
|
|
1240
1239
|
},
|
1241
1240
|
children: [
|
1242
1241
|
/* @__PURE__ */ jsx22(
|
1243
|
-
|
1242
|
+
MyTextInput2,
|
1244
1243
|
__spreadValues({
|
1245
1244
|
withAsterisk: true,
|
1246
1245
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1254,7 +1253,7 @@ function F_core26965_Create({
|
|
1254
1253
|
}, form.getInputProps("promulgateDate"))
|
1255
1254
|
),
|
1256
1255
|
/* @__PURE__ */ jsx22(
|
1257
|
-
|
1256
|
+
MyTextInput2,
|
1258
1257
|
__spreadValues({
|
1259
1258
|
withAsterisk: true,
|
1260
1259
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1342,7 +1341,7 @@ function F_core26965_Update({
|
|
1342
1341
|
},
|
1343
1342
|
children: [
|
1344
1343
|
/* @__PURE__ */ jsx24(
|
1345
|
-
|
1344
|
+
MyTextInput2,
|
1346
1345
|
__spreadValues({
|
1347
1346
|
withAsterisk: true,
|
1348
1347
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1356,7 +1355,7 @@ function F_core26965_Update({
|
|
1356
1355
|
}, form.getInputProps("promulgateDate"))
|
1357
1356
|
),
|
1358
1357
|
/* @__PURE__ */ jsx24(
|
1359
|
-
|
1358
|
+
MyTextInput2,
|
1360
1359
|
__spreadValues({
|
1361
1360
|
withAsterisk: true,
|
1362
1361
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1537,7 +1536,7 @@ function F_core27311_Create({
|
|
1537
1536
|
},
|
1538
1537
|
children: [
|
1539
1538
|
/* @__PURE__ */ jsx27(
|
1540
|
-
|
1539
|
+
MyTextInput2,
|
1541
1540
|
__spreadValues({
|
1542
1541
|
withAsterisk: true,
|
1543
1542
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1551,7 +1550,7 @@ function F_core27311_Create({
|
|
1551
1550
|
}, form.getInputProps("promulgateDate"))
|
1552
1551
|
),
|
1553
1552
|
/* @__PURE__ */ jsx27(
|
1554
|
-
|
1553
|
+
MyTextInput2,
|
1555
1554
|
__spreadValues({
|
1556
1555
|
withAsterisk: true,
|
1557
1556
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1639,7 +1638,7 @@ function F_core27311_Update({
|
|
1639
1638
|
},
|
1640
1639
|
children: [
|
1641
1640
|
/* @__PURE__ */ jsx29(
|
1642
|
-
|
1641
|
+
MyTextInput2,
|
1643
1642
|
__spreadValues({
|
1644
1643
|
withAsterisk: true,
|
1645
1644
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1653,7 +1652,7 @@ function F_core27311_Update({
|
|
1653
1652
|
}, form.getInputProps("promulgateDate"))
|
1654
1653
|
),
|
1655
1654
|
/* @__PURE__ */ jsx29(
|
1656
|
-
|
1655
|
+
MyTextInput2,
|
1657
1656
|
__spreadValues({
|
1658
1657
|
withAsterisk: true,
|
1659
1658
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1814,17 +1813,17 @@ import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1814
1813
|
function F_core35923() {
|
1815
1814
|
return /* @__PURE__ */ jsxs24(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
1816
1815
|
/* @__PURE__ */ jsxs24(Grid, { children: [
|
1817
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx32(
|
1818
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx32(
|
1819
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx32(
|
1820
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1821
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1822
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1823
|
-
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(
|
1816
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "M\xE3 module", disabled: true }) }),
|
1817
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "T\xEAn module" }) }),
|
1818
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
1819
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "Email" }) }),
|
1820
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
1821
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
1822
|
+
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyTextInput2, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
1824
1823
|
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
1825
1824
|
/* @__PURE__ */ jsx32(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx32(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
1826
1825
|
] }),
|
1827
|
-
/* @__PURE__ */ jsx32(MyFlexEnd, { children: /* @__PURE__ */ jsx32(
|
1826
|
+
/* @__PURE__ */ jsx32(MyFlexEnd, { children: /* @__PURE__ */ jsx32(MyButton2, { crudType: "save" }) })
|
1828
1827
|
] });
|
1829
1828
|
}
|
1830
1829
|
|
@@ -1942,6 +1941,7 @@ function useQ_Account_GetAdminAccount() {
|
|
1942
1941
|
queryKey: ["useQ_Role_GetAdminRole"],
|
1943
1942
|
queryFn: async () => {
|
1944
1943
|
var _a;
|
1944
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData2;
|
1945
1945
|
const result = await baseAxios_default.get(`/Role/GetAdminRole`);
|
1946
1946
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
1947
1947
|
},
|
@@ -1949,6 +1949,12 @@ function useQ_Account_GetAdminAccount() {
|
|
1949
1949
|
});
|
1950
1950
|
return query;
|
1951
1951
|
}
|
1952
|
+
var mockData2 = [
|
1953
|
+
{ id: 1, code: "GV", name: "Gi\u1EA3ng vi\xEAn" },
|
1954
|
+
{ id: 2, code: "STU", name: "Student" },
|
1955
|
+
{ id: 3, code: "FACU", name: "Faculty" },
|
1956
|
+
{ id: 4, code: "ADMIN", name: "Admin" }
|
1957
|
+
];
|
1952
1958
|
|
1953
1959
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
1954
1960
|
import { useMutation as useMutation2 } from "@tanstack/react-query";
|
@@ -1964,6 +1970,12 @@ function F_core38677_Save() {
|
|
1964
1970
|
}
|
1965
1971
|
});
|
1966
1972
|
function handleSave() {
|
1973
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
|
1974
|
+
utils_notification_show({
|
1975
|
+
crudType: "update"
|
1976
|
+
});
|
1977
|
+
return;
|
1978
|
+
}
|
1967
1979
|
mutation.mutate({
|
1968
1980
|
pagePermissions: store.state.rolePermissions,
|
1969
1981
|
roleId: store.state.roleId
|
@@ -1982,7 +1994,7 @@ function F_core38677_Save() {
|
|
1982
1994
|
}
|
1983
1995
|
disable[1](false);
|
1984
1996
|
}, [store.state.rolePermissions]);
|
1985
|
-
return /* @__PURE__ */ jsx34(
|
1997
|
+
return /* @__PURE__ */ jsx34(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
1986
1998
|
}
|
1987
1999
|
|
1988
2000
|
// src/data/menuData.ts
|
@@ -2011,7 +2023,7 @@ var menuData = [
|
|
2011
2023
|
links: [
|
2012
2024
|
{ pageId: 0, name: "Document categories", label: "Danh m\u1EE5c lo\u1EA1i v\u0103n b\u1EA3n", link: "core18256" },
|
2013
2025
|
{ pageId: 0, name: "", label: "Danh m\u1EE5c c\u1EA5u h\xECnh mail", link: "core64229" },
|
2014
|
-
{ pageId: 0, name: "", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "
|
2026
|
+
{ pageId: 0, name: "", label: "C\u1EA5u h\xECnh th\xF4ng tin ch\u1EE7 qu\u1EA3n", link: "moduleConfig" },
|
2015
2027
|
{ pageId: 0, name: "", label: "Danh m\u1EE5c Page Content", link: "pageContentConfig" }
|
2016
2028
|
]
|
2017
2029
|
}
|
@@ -2285,14 +2297,14 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
2285
2297
|
},
|
2286
2298
|
children: [
|
2287
2299
|
/* @__PURE__ */ jsx37(
|
2288
|
-
|
2300
|
+
MyTextInput2,
|
2289
2301
|
__spreadValues({
|
2290
2302
|
withAsterisk: true,
|
2291
2303
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
2292
2304
|
}, form.getInputProps("code"))
|
2293
2305
|
),
|
2294
2306
|
/* @__PURE__ */ jsx37(
|
2295
|
-
|
2307
|
+
MyTextInput2,
|
2296
2308
|
__spreadValues({
|
2297
2309
|
withAsterisk: true,
|
2298
2310
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2357,14 +2369,14 @@ function F_core40207_Update({ values }) {
|
|
2357
2369
|
},
|
2358
2370
|
children: [
|
2359
2371
|
/* @__PURE__ */ jsx39(
|
2360
|
-
|
2372
|
+
MyTextInput2,
|
2361
2373
|
__spreadValues({
|
2362
2374
|
withAsterisk: true,
|
2363
2375
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
2364
2376
|
}, form.getInputProps("code"))
|
2365
2377
|
),
|
2366
2378
|
/* @__PURE__ */ jsx39(
|
2367
|
-
|
2379
|
+
MyTextInput2,
|
2368
2380
|
__spreadValues({
|
2369
2381
|
withAsterisk: true,
|
2370
2382
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2474,14 +2486,14 @@ function F_core47643_Form({ values }) {
|
|
2474
2486
|
if (values) return /* @__PURE__ */ jsxs30(MyActionIconUpdate, { form, onSubmit: async () => {
|
2475
2487
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
2476
2488
|
}, children: [
|
2477
|
-
/* @__PURE__ */ jsx43(
|
2478
|
-
/* @__PURE__ */ jsx43(
|
2489
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
2490
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
2479
2491
|
] });
|
2480
2492
|
return /* @__PURE__ */ jsxs30(MyButtonCreate, { form, onSubmit: async () => {
|
2481
2493
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
2482
2494
|
}, children: [
|
2483
|
-
/* @__PURE__ */ jsx43(
|
2484
|
-
/* @__PURE__ */ jsx43(
|
2495
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
2496
|
+
/* @__PURE__ */ jsx43(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
2485
2497
|
] });
|
2486
2498
|
}
|
2487
2499
|
|
@@ -2531,205 +2543,14 @@ function F_core47643() {
|
|
2531
2543
|
return /* @__PURE__ */ jsx45(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx45(F_core47643_Read, {}) });
|
2532
2544
|
}
|
2533
2545
|
|
2534
|
-
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
2535
|
-
import { useEffect as useEffect7 } from "react";
|
2536
|
-
|
2537
|
-
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
2538
|
-
import { Center, Grid as Grid3, Image, Paper as Paper5 } from "@mantine/core";
|
2539
|
-
import { useForm as useForm16 } from "@mantine/form";
|
2540
|
-
import { useEffect as useEffect6 } from "react";
|
2541
|
-
|
2542
|
-
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
2543
|
-
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
2544
|
-
|
2545
|
-
// src/modules-features/admin/core/core60524/useS_core60524.ts
|
2546
|
-
var useStore3 = createGenericStore({
|
2547
|
-
initialState: {}
|
2548
|
-
});
|
2549
|
-
function useS_core60524() {
|
2550
|
-
const store = useStore3();
|
2551
|
-
return __spreadValues({}, store);
|
2552
|
-
}
|
2553
|
-
|
2554
|
-
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
2555
|
-
import { jsx as jsx46 } from "react/jsx-runtime";
|
2556
|
-
function F_core60524_Save({
|
2557
|
-
form
|
2558
|
-
}) {
|
2559
|
-
const store = useS_core60524();
|
2560
|
-
const mutation = useMutation3({
|
2561
|
-
mutationFn: async (body) => {
|
2562
|
-
const res = await baseAxios_default.post("/AQ/UpdateAQSetting", body);
|
2563
|
-
return res;
|
2564
|
-
}
|
2565
|
-
});
|
2566
|
-
async function handleSave() {
|
2567
|
-
var _b, _c, _d, _e;
|
2568
|
-
const _a = form.getValues(), { faviconFile, logoFile } = _a, formValues = __objRest(_a, ["faviconFile", "logoFile"]);
|
2569
|
-
mutation.mutate(__spreadProps(__spreadValues({}, formValues), {
|
2570
|
-
logoFileDetail: form.isDirty("logoFileDetail") == false ? {
|
2571
|
-
fileName: (_b = formValues.logoFileDetail) == null ? void 0 : _b.fileName,
|
2572
|
-
fileExtension: (_c = formValues.logoFileDetail) == null ? void 0 : _c.fileExtension,
|
2573
|
-
fileBase64String: ""
|
2574
|
-
} : formValues.logoFileDetail,
|
2575
|
-
faviconFileDetail: form.isDirty("faviconFileDetail") == false ? {
|
2576
|
-
fileName: (_d = formValues.faviconFileDetail) == null ? void 0 : _d.fileName,
|
2577
|
-
fileExtension: (_e = formValues.faviconFileDetail) == null ? void 0 : _e.fileExtension,
|
2578
|
-
fileBase64String: ""
|
2579
|
-
} : formValues.faviconFileDetail,
|
2580
|
-
id: store.state.AQModuleId
|
2581
|
-
}), {
|
2582
|
-
onSuccess: () => {
|
2583
|
-
utils_notification_show({
|
2584
|
-
crudType: "update"
|
2585
|
-
});
|
2586
|
-
}
|
2587
|
-
});
|
2588
|
-
}
|
2589
|
-
return /* @__PURE__ */ jsx46(
|
2590
|
-
MyButton,
|
2591
|
-
{
|
2592
|
-
disabled: !form.isDirty(),
|
2593
|
-
crudType: "save",
|
2594
|
-
onClick: handleSave
|
2595
|
-
}
|
2596
|
-
);
|
2597
|
-
}
|
2598
|
-
|
2599
|
-
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
2600
|
-
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
2601
|
-
function F_core60524_Form() {
|
2602
|
-
var _a, _b, _c, _d;
|
2603
|
-
const query = useQ_AQ_GetAQModule();
|
2604
|
-
const form = useForm16({
|
2605
|
-
mode: "uncontrolled",
|
2606
|
-
validate: {
|
2607
|
-
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
2608
|
-
logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
2609
|
-
}
|
2610
|
-
});
|
2611
|
-
const basicAppShell_store = useS_BasicAppShell();
|
2612
|
-
useEffect6(() => {
|
2613
|
-
var _a2, _b2;
|
2614
|
-
if (!query.data) return;
|
2615
|
-
const values = {
|
2616
|
-
code: query.data.code || "",
|
2617
|
-
name: query.data.name || "",
|
2618
|
-
officelName: query.data.officelName || "",
|
2619
|
-
email: query.data.email || "",
|
2620
|
-
phoneNumber: query.data.phoneNumber || "",
|
2621
|
-
registrationDate: new Date(query.data.registrationDate) || /* @__PURE__ */ new Date(),
|
2622
|
-
limiteDate: new Date(query.data.limiteDate) || /* @__PURE__ */ new Date(),
|
2623
|
-
faviconPath: query.data.faviconPath || "",
|
2624
|
-
logoPath: query.data.logoPath || "",
|
2625
|
-
faviconFile: new File([], (_a2 = query.data.faviconFileDetail) == null ? void 0 : _a2.fileName),
|
2626
|
-
logoFile: new File([], (_b2 = query.data.logoFileDetail) == null ? void 0 : _b2.fileName),
|
2627
|
-
faviconFileDetail: query.data.faviconFileDetail,
|
2628
|
-
logoFileDetail: query.data.logoFileDetail
|
2629
|
-
};
|
2630
|
-
form.setInitialValues(values);
|
2631
|
-
form.setValues(values);
|
2632
|
-
}, [query.data]);
|
2633
|
-
return /* @__PURE__ */ jsxs32(Paper5, { p: "md", children: [
|
2634
|
-
/* @__PURE__ */ jsxs32(Grid3, { children: [
|
2635
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
2636
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
2637
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
2638
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
2639
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
2640
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(
|
2641
|
-
MyDateInput,
|
2642
|
-
{
|
2643
|
-
value: form.getValues().registrationDate,
|
2644
|
-
disabled: true,
|
2645
|
-
onChange: (date) => form.setFieldValue("registrationDate", new Date(date)),
|
2646
|
-
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
2647
|
-
}
|
2648
|
-
) }),
|
2649
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx47(
|
2650
|
-
MyDateInput,
|
2651
|
-
{
|
2652
|
-
value: form.getValues().limiteDate,
|
2653
|
-
disabled: true,
|
2654
|
-
onChange: (date) => form.setFieldValue("limiteDate", new Date(date)),
|
2655
|
-
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
2656
|
-
}
|
2657
|
-
) }),
|
2658
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs32(MyFlexColumn, { children: [
|
2659
|
-
/* @__PURE__ */ jsx47(
|
2660
|
-
MyFileInput,
|
2661
|
-
{
|
2662
|
-
accept: "image/png,image/jpeg",
|
2663
|
-
label: "Favicon (16px x 16px)",
|
2664
|
-
value: form.getValues().faviconFile,
|
2665
|
-
onChange: async (e) => {
|
2666
|
-
form.setFieldValue("faviconFile", e);
|
2667
|
-
form.setFieldValue("faviconFileDetail", await utils_file_fileToAQDocumentType(e));
|
2668
|
-
}
|
2669
|
-
}
|
2670
|
-
),
|
2671
|
-
/* @__PURE__ */ jsx47(Paper5, { w: "100%", children: /* @__PURE__ */ jsx47(Center, { children: /* @__PURE__ */ jsx47(
|
2672
|
-
Image,
|
2673
|
-
{
|
2674
|
-
fit: "contain",
|
2675
|
-
src: `data:image/${(_a = form.getValues().faviconFileDetail) == null ? void 0 : _a.fileExtension};base64,
|
2676
|
-
${(_b = form.getValues().faviconFileDetail) == null ? void 0 : _b.fileBase64String}`,
|
2677
|
-
h: "115px",
|
2678
|
-
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
2679
|
-
alt: "Main logo",
|
2680
|
-
w: "330px"
|
2681
|
-
}
|
2682
|
-
) }) })
|
2683
|
-
] }) }),
|
2684
|
-
/* @__PURE__ */ jsx47(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs32(MyFlexColumn, { children: [
|
2685
|
-
/* @__PURE__ */ jsx47(
|
2686
|
-
MyFileInput,
|
2687
|
-
{
|
2688
|
-
accept: "image/png,image/jpeg",
|
2689
|
-
label: "Logo (330px x 115px)",
|
2690
|
-
value: form.getValues().logoFile,
|
2691
|
-
onChange: async (e) => {
|
2692
|
-
form.setFieldValue("logoFile", e);
|
2693
|
-
form.setFieldValue("logoFileDetail", await utils_file_fileToAQDocumentType(e));
|
2694
|
-
}
|
2695
|
-
}
|
2696
|
-
),
|
2697
|
-
/* @__PURE__ */ jsx47(Paper5, { children: /* @__PURE__ */ jsx47(Center, { children: /* @__PURE__ */ jsx47(
|
2698
|
-
Image,
|
2699
|
-
{
|
2700
|
-
fit: "contain",
|
2701
|
-
src: `data:image/${(_c = form.getValues().logoFileDetail) == null ? void 0 : _c.fileExtension};base64,
|
2702
|
-
${(_d = form.getValues().logoFileDetail) == null ? void 0 : _d.fileBase64String}`,
|
2703
|
-
h: "115px",
|
2704
|
-
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
2705
|
-
alt: "Main logo",
|
2706
|
-
w: "330px"
|
2707
|
-
}
|
2708
|
-
) }) })
|
2709
|
-
] }) })
|
2710
|
-
] }),
|
2711
|
-
/* @__PURE__ */ jsx47(MyFlexEnd, { children: /* @__PURE__ */ jsx47(F_core60524_Save, { form }) })
|
2712
|
-
] });
|
2713
|
-
}
|
2714
|
-
|
2715
|
-
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
2716
|
-
import { jsx as jsx48 } from "react/jsx-runtime";
|
2717
|
-
function F_core60524({ AQModuleId }) {
|
2718
|
-
const store = useS_core60524();
|
2719
|
-
useEffect7(() => {
|
2720
|
-
store.setProperty("AQModuleId", AQModuleId);
|
2721
|
-
}, []);
|
2722
|
-
return /* @__PURE__ */ jsx48(F_core60524_Form, {});
|
2723
|
-
}
|
2724
|
-
|
2725
2546
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
2726
2547
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
2727
2548
|
import { useMemo as useMemo11 } from "react";
|
2728
2549
|
|
2729
2550
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
2730
|
-
import { jsx as
|
2551
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
2731
2552
|
function F_core64229_Delete({ values }) {
|
2732
|
-
return /* @__PURE__ */
|
2553
|
+
return /* @__PURE__ */ jsx46(
|
2733
2554
|
MyActionIconDelete,
|
2734
2555
|
{
|
2735
2556
|
contextData: values == null ? void 0 : values.code,
|
@@ -2744,10 +2565,10 @@ function F_core64229_Delete({ values }) {
|
|
2744
2565
|
|
2745
2566
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
2746
2567
|
import { PasswordInput } from "@mantine/core";
|
2747
|
-
import { useForm as
|
2748
|
-
import { jsx as
|
2568
|
+
import { useForm as useForm16 } from "@mantine/form";
|
2569
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
2749
2570
|
function F_core64229_Form({ values, emailModule }) {
|
2750
|
-
const form =
|
2571
|
+
const form = useForm16({
|
2751
2572
|
mode: "uncontrolled",
|
2752
2573
|
initialValues: values ? values : {
|
2753
2574
|
emailModule: Number(emailModule[0])
|
@@ -2771,27 +2592,27 @@ function F_core64229_Form({ values, emailModule }) {
|
|
2771
2592
|
"password": formValues.password
|
2772
2593
|
});
|
2773
2594
|
}
|
2774
|
-
if (values) return /* @__PURE__ */
|
2595
|
+
if (values) return /* @__PURE__ */ jsx47(
|
2775
2596
|
MyActionIconUpdate,
|
2776
2597
|
{
|
2777
2598
|
form,
|
2778
2599
|
onSubmit: handleSubmit,
|
2779
|
-
children: /* @__PURE__ */
|
2600
|
+
children: /* @__PURE__ */ jsx47(FormInput, { form, emailModule })
|
2780
2601
|
}
|
2781
2602
|
);
|
2782
|
-
return /* @__PURE__ */
|
2603
|
+
return /* @__PURE__ */ jsx47(
|
2783
2604
|
MyButtonCreate,
|
2784
2605
|
{
|
2785
2606
|
form,
|
2786
2607
|
onSubmit: handleSubmit,
|
2787
|
-
children: /* @__PURE__ */
|
2608
|
+
children: /* @__PURE__ */ jsx47(FormInput, { form, emailModule })
|
2788
2609
|
}
|
2789
2610
|
);
|
2790
2611
|
}
|
2791
2612
|
function FormInput({ form, emailModule }) {
|
2792
2613
|
var _a, _b;
|
2793
|
-
return /* @__PURE__ */
|
2794
|
-
/* @__PURE__ */
|
2614
|
+
return /* @__PURE__ */ jsxs32(MyFlexColumn, { children: [
|
2615
|
+
/* @__PURE__ */ jsx47(
|
2795
2616
|
MySelect,
|
2796
2617
|
__spreadProps(__spreadValues({
|
2797
2618
|
label: "Ph\xE2n h\u1EC7",
|
@@ -2800,25 +2621,25 @@ function FormInput({ form, emailModule }) {
|
|
2800
2621
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
2801
2622
|
})
|
2802
2623
|
),
|
2803
|
-
/* @__PURE__ */
|
2804
|
-
|
2624
|
+
/* @__PURE__ */ jsx47(
|
2625
|
+
MyTextInput2,
|
2805
2626
|
__spreadValues({
|
2806
2627
|
label: "Host mail server"
|
2807
2628
|
}, form.getInputProps("hostMailServer"))
|
2808
2629
|
),
|
2809
|
-
/* @__PURE__ */
|
2630
|
+
/* @__PURE__ */ jsx47(
|
2810
2631
|
MyNumberInput,
|
2811
2632
|
__spreadValues({
|
2812
2633
|
label: "Outgoing port"
|
2813
2634
|
}, form.getInputProps("outgoingPort"))
|
2814
2635
|
),
|
2815
|
-
/* @__PURE__ */
|
2636
|
+
/* @__PURE__ */ jsx47(
|
2816
2637
|
MyNumberInput,
|
2817
2638
|
__spreadValues({
|
2818
2639
|
label: "Incoming port"
|
2819
2640
|
}, form.getInputProps("incomingPort"))
|
2820
2641
|
),
|
2821
|
-
/* @__PURE__ */
|
2642
|
+
/* @__PURE__ */ jsx47(
|
2822
2643
|
MySelect,
|
2823
2644
|
{
|
2824
2645
|
label: "SSL",
|
@@ -2827,13 +2648,13 @@ function FormInput({ form, emailModule }) {
|
|
2827
2648
|
onChange: (e) => form.setFieldValue("sll", e == "true" ? true : false)
|
2828
2649
|
}
|
2829
2650
|
),
|
2830
|
-
/* @__PURE__ */
|
2831
|
-
|
2651
|
+
/* @__PURE__ */ jsx47(
|
2652
|
+
MyTextInput2,
|
2832
2653
|
__spreadValues({
|
2833
2654
|
label: "Username"
|
2834
2655
|
}, form.getInputProps("userName"))
|
2835
2656
|
),
|
2836
|
-
/* @__PURE__ */
|
2657
|
+
/* @__PURE__ */ jsx47(
|
2837
2658
|
PasswordInput,
|
2838
2659
|
__spreadValues({
|
2839
2660
|
label: "Password",
|
@@ -2844,7 +2665,7 @@ function FormInput({ form, emailModule }) {
|
|
2844
2665
|
}
|
2845
2666
|
|
2846
2667
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
2847
|
-
import { jsx as
|
2668
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
2848
2669
|
function F_core64229_Read({ emailModule }) {
|
2849
2670
|
const query = useQuery12({
|
2850
2671
|
queryKey: ["F_core64229_Read"],
|
@@ -2889,24 +2710,24 @@ function F_core64229_Read({ emailModule }) {
|
|
2889
2710
|
}
|
2890
2711
|
], []);
|
2891
2712
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
2892
|
-
return /* @__PURE__ */
|
2713
|
+
return /* @__PURE__ */ jsx48(
|
2893
2714
|
MyDataTable,
|
2894
2715
|
{
|
2895
2716
|
columns,
|
2896
2717
|
data: query.data,
|
2897
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
2898
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
2899
|
-
/* @__PURE__ */
|
2900
|
-
/* @__PURE__ */
|
2718
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx48(F_core64229_Form, { emailModule }),
|
2719
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs33(MyCenterFull, { children: [
|
2720
|
+
/* @__PURE__ */ jsx48(F_core64229_Form, { values: row.original, emailModule }),
|
2721
|
+
/* @__PURE__ */ jsx48(F_core64229_Delete, { values: row.original })
|
2901
2722
|
] })
|
2902
2723
|
}
|
2903
2724
|
);
|
2904
2725
|
}
|
2905
2726
|
|
2906
2727
|
// src/modules-features/admin/core/core64229/F_core64229.tsx
|
2907
|
-
import { jsx as
|
2728
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
2908
2729
|
function F_core64229() {
|
2909
|
-
return /* @__PURE__ */
|
2730
|
+
return /* @__PURE__ */ jsx49(F_core64229_Read, { emailModule: utils_converter_enumToSelectOptions(enum_emailConfigModule) });
|
2910
2731
|
}
|
2911
2732
|
|
2912
2733
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
@@ -2915,10 +2736,10 @@ import { useMemo as useMemo12 } from "react";
|
|
2915
2736
|
|
2916
2737
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
2917
2738
|
import { FileInput as FileInput5 } from "@mantine/core";
|
2918
|
-
import { useForm as
|
2919
|
-
import { jsx as
|
2739
|
+
import { useForm as useForm17 } from "@mantine/form";
|
2740
|
+
import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
|
2920
2741
|
function F_core76318_Create({ SecurityTypeId }) {
|
2921
|
-
const form =
|
2742
|
+
const form = useForm17({
|
2922
2743
|
mode: "uncontrolled",
|
2923
2744
|
validate: {
|
2924
2745
|
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -2927,7 +2748,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
2927
2748
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
2928
2749
|
}
|
2929
2750
|
});
|
2930
|
-
return /* @__PURE__ */
|
2751
|
+
return /* @__PURE__ */ jsxs34(
|
2931
2752
|
MyButtonCreate,
|
2932
2753
|
{
|
2933
2754
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -2940,28 +2761,28 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
2940
2761
|
}));
|
2941
2762
|
},
|
2942
2763
|
children: [
|
2943
|
-
/* @__PURE__ */
|
2944
|
-
|
2764
|
+
/* @__PURE__ */ jsx50(
|
2765
|
+
MyTextInput2,
|
2945
2766
|
__spreadValues({
|
2946
2767
|
withAsterisk: true,
|
2947
2768
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
2948
2769
|
}, form.getInputProps("decisionCode"))
|
2949
2770
|
),
|
2950
|
-
/* @__PURE__ */
|
2771
|
+
/* @__PURE__ */ jsx50(
|
2951
2772
|
MyDateInput,
|
2952
2773
|
__spreadValues({
|
2953
2774
|
withAsterisk: true,
|
2954
2775
|
label: "Ng\xE0y ban h\xE0nh"
|
2955
2776
|
}, form.getInputProps("promulgateDate"))
|
2956
2777
|
),
|
2957
|
-
/* @__PURE__ */
|
2958
|
-
|
2778
|
+
/* @__PURE__ */ jsx50(
|
2779
|
+
MyTextInput2,
|
2959
2780
|
__spreadValues({
|
2960
2781
|
withAsterisk: true,
|
2961
2782
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
2962
2783
|
}, form.getInputProps("name"))
|
2963
2784
|
),
|
2964
|
-
/* @__PURE__ */
|
2785
|
+
/* @__PURE__ */ jsx50(
|
2965
2786
|
FileInput5,
|
2966
2787
|
__spreadValues({
|
2967
2788
|
withAsterisk: true,
|
@@ -2975,12 +2796,12 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
2975
2796
|
}
|
2976
2797
|
|
2977
2798
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
2978
|
-
import { jsx as
|
2799
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
2979
2800
|
function F_core76318_Delete({
|
2980
2801
|
id,
|
2981
2802
|
contextData
|
2982
2803
|
}) {
|
2983
|
-
return /* @__PURE__ */
|
2804
|
+
return /* @__PURE__ */ jsx51(
|
2984
2805
|
MyActionIconDelete,
|
2985
2806
|
{
|
2986
2807
|
contextData,
|
@@ -2991,11 +2812,11 @@ function F_core76318_Delete({
|
|
2991
2812
|
|
2992
2813
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
2993
2814
|
import { FileInput as FileInput6, TextInput } from "@mantine/core";
|
2994
|
-
import { useForm as
|
2995
|
-
import { jsx as
|
2815
|
+
import { useForm as useForm18 } from "@mantine/form";
|
2816
|
+
import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
|
2996
2817
|
function F_core76318_Update({ values }) {
|
2997
2818
|
var _a;
|
2998
|
-
const form =
|
2819
|
+
const form = useForm18({
|
2999
2820
|
mode: "uncontrolled",
|
3000
2821
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
3001
2822
|
file: new File(
|
@@ -3011,7 +2832,7 @@ function F_core76318_Update({ values }) {
|
|
3011
2832
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3012
2833
|
}
|
3013
2834
|
});
|
3014
|
-
return /* @__PURE__ */
|
2835
|
+
return /* @__PURE__ */ jsxs35(
|
3015
2836
|
MyActionIconUpdate,
|
3016
2837
|
{
|
3017
2838
|
form,
|
@@ -3021,28 +2842,28 @@ function F_core76318_Update({ values }) {
|
|
3021
2842
|
}));
|
3022
2843
|
},
|
3023
2844
|
children: [
|
3024
|
-
/* @__PURE__ */
|
2845
|
+
/* @__PURE__ */ jsx52(
|
3025
2846
|
TextInput,
|
3026
2847
|
__spreadValues({
|
3027
2848
|
withAsterisk: true,
|
3028
2849
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3029
2850
|
}, form.getInputProps("decisionCode"))
|
3030
2851
|
),
|
3031
|
-
/* @__PURE__ */
|
2852
|
+
/* @__PURE__ */ jsx52(
|
3032
2853
|
MyDateInput,
|
3033
2854
|
__spreadValues({
|
3034
2855
|
withAsterisk: true,
|
3035
2856
|
label: "Ng\xE0y ban h\xE0nh"
|
3036
2857
|
}, form.getInputProps("promulgateDate"))
|
3037
2858
|
),
|
3038
|
-
/* @__PURE__ */
|
2859
|
+
/* @__PURE__ */ jsx52(
|
3039
2860
|
TextInput,
|
3040
2861
|
__spreadValues({
|
3041
2862
|
withAsterisk: true,
|
3042
2863
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3043
2864
|
}, form.getInputProps("name"))
|
3044
2865
|
),
|
3045
|
-
/* @__PURE__ */
|
2866
|
+
/* @__PURE__ */ jsx52(
|
3046
2867
|
FileInput6,
|
3047
2868
|
__spreadValues({
|
3048
2869
|
withAsterisk: true,
|
@@ -3055,7 +2876,7 @@ function F_core76318_Update({ values }) {
|
|
3055
2876
|
}
|
3056
2877
|
|
3057
2878
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
3058
|
-
import { jsx as
|
2879
|
+
import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
|
3059
2880
|
function F_core76318_Read({ SecurityTypeId }) {
|
3060
2881
|
const query = useQuery13({
|
3061
2882
|
queryKey: ["F_core76318_Read"],
|
@@ -3084,25 +2905,25 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
3084
2905
|
{
|
3085
2906
|
header: "File",
|
3086
2907
|
accessorFn: (row) => {
|
3087
|
-
return /* @__PURE__ */
|
2908
|
+
return /* @__PURE__ */ jsx53(MyCenterFull, { children: /* @__PURE__ */ jsx53(MyButtonViewPDF, { id: row.id }) });
|
3088
2909
|
}
|
3089
2910
|
}
|
3090
2911
|
],
|
3091
2912
|
[]
|
3092
2913
|
);
|
3093
|
-
return /* @__PURE__ */
|
2914
|
+
return /* @__PURE__ */ jsx53(
|
3094
2915
|
MyDataTable,
|
3095
2916
|
{
|
3096
2917
|
isLoading: query.isLoading,
|
3097
2918
|
isError: query.isError,
|
3098
2919
|
columns,
|
3099
2920
|
data: query.data || [],
|
3100
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
2921
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx53(F_core76318_Create, { SecurityTypeId }),
|
3101
2922
|
renderRowActions: ({ row }) => {
|
3102
2923
|
var _a;
|
3103
|
-
return /* @__PURE__ */
|
3104
|
-
/* @__PURE__ */
|
3105
|
-
/* @__PURE__ */
|
2924
|
+
return /* @__PURE__ */ jsxs36(MyCenterFull, { children: [
|
2925
|
+
/* @__PURE__ */ jsx53(F_core76318_Update, { values: row.original }),
|
2926
|
+
/* @__PURE__ */ jsx53(
|
3106
2927
|
F_core76318_Delete,
|
3107
2928
|
{
|
3108
2929
|
id: row.original.id,
|
@@ -3116,18 +2937,18 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
3116
2937
|
}
|
3117
2938
|
|
3118
2939
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
3119
|
-
import { jsx as
|
2940
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
3120
2941
|
function F_core76318({ SecurityTypeId }) {
|
3121
|
-
return /* @__PURE__ */
|
2942
|
+
return /* @__PURE__ */ jsx54(F_core76318_Read, { SecurityTypeId });
|
3122
2943
|
}
|
3123
2944
|
|
3124
2945
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
3125
|
-
import { Grid as
|
2946
|
+
import { Grid as Grid3, Paper as Paper5, ScrollArea as ScrollArea4 } from "@mantine/core";
|
3126
2947
|
|
3127
2948
|
// src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
|
3128
2949
|
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
3129
|
-
import { useEffect as
|
3130
|
-
import { jsx as
|
2950
|
+
import { useEffect as useEffect6, useMemo as useMemo13, useState as useState7 } from "react";
|
2951
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
3131
2952
|
function F_core83092_ReadUser() {
|
3132
2953
|
const store = useS_core83092();
|
3133
2954
|
const query = useQ_core83092_Account_GetAdminAccount();
|
@@ -3149,17 +2970,17 @@ function F_core83092_ReadUser() {
|
|
3149
2970
|
setRowSelection({ [rowId]: true });
|
3150
2971
|
store.setProperty("roleId", parseInt(rowId));
|
3151
2972
|
};
|
3152
|
-
|
2973
|
+
useEffect6(() => {
|
3153
2974
|
if (store.state.roleId == 0) return;
|
3154
2975
|
setRowSelection({ [store.state.roleId]: true });
|
3155
2976
|
}, [store.state.roleId]);
|
3156
|
-
|
2977
|
+
useEffect6(() => {
|
3157
2978
|
if (!query.data) return;
|
3158
2979
|
store.setProperty("roleId", query.data[0].id);
|
3159
2980
|
}, [query.data]);
|
3160
2981
|
if (query.isLoading) return "Loading...";
|
3161
2982
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
3162
|
-
return /* @__PURE__ */
|
2983
|
+
return /* @__PURE__ */ jsx55(
|
3163
2984
|
MyDataTable,
|
3164
2985
|
{
|
3165
2986
|
columns,
|
@@ -3184,6 +3005,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
3184
3005
|
queryKey: ["useQ_core83092_Account_GetAdminAccount"],
|
3185
3006
|
queryFn: async () => {
|
3186
3007
|
var _a;
|
3008
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockUserData2;
|
3187
3009
|
const result = await baseAxios_default.get(`/Account/GetAdminAccount`, { params: { page: 5, pageNumber: 1 } });
|
3188
3010
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
3189
3011
|
},
|
@@ -3191,21 +3013,54 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
3191
3013
|
});
|
3192
3014
|
return query;
|
3193
3015
|
}
|
3016
|
+
var mockUserData2 = [
|
3017
|
+
{
|
3018
|
+
userName: "nguyenvana",
|
3019
|
+
fullName: "Nguy\u1EC5n V\u0103n A",
|
3020
|
+
email: "vana@example.com"
|
3021
|
+
},
|
3022
|
+
{
|
3023
|
+
userName: "tranthib",
|
3024
|
+
fullName: "Tr\u1EA7n Th\u1ECB B",
|
3025
|
+
email: "thib@example.com"
|
3026
|
+
},
|
3027
|
+
{
|
3028
|
+
userName: "leminhc",
|
3029
|
+
fullName: "L\xEA Minh C",
|
3030
|
+
email: "minhc@example.com"
|
3031
|
+
},
|
3032
|
+
{
|
3033
|
+
userName: "phamthid",
|
3034
|
+
fullName: "Ph\u1EA1m Th\u1ECB D",
|
3035
|
+
email: "thid@example.com"
|
3036
|
+
},
|
3037
|
+
{
|
3038
|
+
userName: "doanvanh",
|
3039
|
+
fullName: "Do\xE3n V\u0103n H",
|
3040
|
+
email: "vanh@example.com"
|
3041
|
+
}
|
3042
|
+
];
|
3194
3043
|
|
3195
3044
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
3196
|
-
import { useMutation as
|
3197
|
-
import { useEffect as
|
3198
|
-
import { jsx as
|
3045
|
+
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
3046
|
+
import { useEffect as useEffect7, useState as useState8 } from "react";
|
3047
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
3199
3048
|
function F_core83092_Save() {
|
3200
3049
|
const store = useS_core83092();
|
3201
3050
|
const disable = useState8(false);
|
3202
|
-
const mutation =
|
3051
|
+
const mutation = useMutation3({
|
3203
3052
|
mutationFn: async (body) => {
|
3204
3053
|
const res = await baseAxios_default.put("/Role/UpdateUserPermission", body);
|
3205
3054
|
return res;
|
3206
3055
|
}
|
3207
3056
|
});
|
3208
3057
|
function handleSave() {
|
3058
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") {
|
3059
|
+
utils_notification_show({
|
3060
|
+
crudType: "update"
|
3061
|
+
});
|
3062
|
+
return;
|
3063
|
+
}
|
3209
3064
|
mutation.mutate({
|
3210
3065
|
pagePermissions: store.state.rolePermissions,
|
3211
3066
|
userId: store.state.roleId
|
@@ -3217,38 +3072,38 @@ function F_core83092_Save() {
|
|
3217
3072
|
}
|
3218
3073
|
});
|
3219
3074
|
}
|
3220
|
-
|
3075
|
+
useEffect7(() => {
|
3221
3076
|
if (!store.state.rolePermissions || store.state.rolePermissions.length == 0) {
|
3222
3077
|
disable[1](true);
|
3223
3078
|
return;
|
3224
3079
|
}
|
3225
3080
|
disable[1](false);
|
3226
3081
|
}, [store.state.rolePermissions]);
|
3227
|
-
return /* @__PURE__ */
|
3082
|
+
return /* @__PURE__ */ jsx56(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
3228
3083
|
}
|
3229
3084
|
|
3230
3085
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
3231
3086
|
import { Checkbox as Checkbox2, Flex as Flex2, ScrollArea as ScrollArea3, Table as Table3, Text as Text2 } from "@mantine/core";
|
3232
3087
|
import { IconEdit as IconEdit2, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport2, IconPlus as IconPlus2, IconPrinter as IconPrinter2, IconTrash as IconTrash2 } from "@tabler/icons-react";
|
3233
3088
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
3234
|
-
import React2, { useEffect as
|
3235
|
-
import { jsx as
|
3089
|
+
import React2, { useEffect as useEffect8, useState as useState9 } from "react";
|
3090
|
+
import { jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
|
3236
3091
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
3237
3092
|
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
3238
3093
|
var _a, _b;
|
3239
3094
|
const store = useS_core83092();
|
3240
3095
|
const query = useGetUserPermission2({ menuData: menuData2 });
|
3241
3096
|
const list = useState9([]);
|
3242
|
-
|
3097
|
+
useEffect8(() => {
|
3243
3098
|
list[1](groupToTwoLevels(menuData2));
|
3244
3099
|
}, []);
|
3245
|
-
|
3100
|
+
useEffect8(() => {
|
3246
3101
|
if (!query.data) return;
|
3247
3102
|
store.setProperty("rolePermissions", query.data);
|
3248
3103
|
}, [query.data]);
|
3249
3104
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
3250
|
-
return /* @__PURE__ */
|
3251
|
-
/* @__PURE__ */
|
3105
|
+
return /* @__PURE__ */ jsx57(ScrollArea3.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs37(Table3, { children: [
|
3106
|
+
/* @__PURE__ */ jsx57(
|
3252
3107
|
Table3.Thead,
|
3253
3108
|
{
|
3254
3109
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -3259,90 +3114,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3259
3114
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
3260
3115
|
border: "1px solid var(--mantine-color-gray-4)"
|
3261
3116
|
},
|
3262
|
-
children: /* @__PURE__ */
|
3263
|
-
/* @__PURE__ */
|
3264
|
-
/* @__PURE__ */
|
3265
|
-
/* @__PURE__ */
|
3117
|
+
children: /* @__PURE__ */ jsxs37(Table3.Tr, { children: [
|
3118
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: title2 }),
|
3119
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3120
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isRead"), onChange: (e) => {
|
3266
3121
|
store.toogleAllPermissionWithType("isRead", e.target.checked);
|
3267
3122
|
} }),
|
3268
|
-
/* @__PURE__ */
|
3123
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3269
3124
|
"Xem",
|
3270
|
-
/* @__PURE__ */
|
3125
|
+
/* @__PURE__ */ jsx57(IconEyeUp2, { color: "gray" })
|
3271
3126
|
] })
|
3272
3127
|
] }) }),
|
3273
|
-
/* @__PURE__ */
|
3274
|
-
/* @__PURE__ */
|
3128
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3129
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isCreate"), onChange: (e) => {
|
3275
3130
|
store.toogleAllPermissionWithType("isCreate", e.target.checked);
|
3276
3131
|
} }),
|
3277
|
-
/* @__PURE__ */
|
3132
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3278
3133
|
"Th\xEAm",
|
3279
|
-
/* @__PURE__ */
|
3134
|
+
/* @__PURE__ */ jsx57(IconPlus2, { color: "blue" })
|
3280
3135
|
] })
|
3281
3136
|
] }) }),
|
3282
|
-
/* @__PURE__ */
|
3283
|
-
/* @__PURE__ */
|
3137
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3138
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isUpdate"), onChange: (e) => {
|
3284
3139
|
store.toogleAllPermissionWithType("isUpdate", e.target.checked);
|
3285
3140
|
} }),
|
3286
|
-
/* @__PURE__ */
|
3141
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3287
3142
|
"S\u1EEDa",
|
3288
|
-
/* @__PURE__ */
|
3143
|
+
/* @__PURE__ */ jsx57(IconEdit2, { color: "var(--mantine-color-yellow-8)" })
|
3289
3144
|
] })
|
3290
3145
|
] }) }),
|
3291
|
-
/* @__PURE__ */
|
3292
|
-
/* @__PURE__ */
|
3146
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3147
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isDelete"), onChange: (e) => {
|
3293
3148
|
store.toogleAllPermissionWithType("isDelete", e.target.checked);
|
3294
3149
|
} }),
|
3295
|
-
/* @__PURE__ */
|
3150
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3296
3151
|
"X\xF3a",
|
3297
|
-
/* @__PURE__ */
|
3152
|
+
/* @__PURE__ */ jsx57(IconTrash2, { color: "var(--mantine-color-red-8)" })
|
3298
3153
|
] })
|
3299
3154
|
] }) }),
|
3300
|
-
/* @__PURE__ */
|
3301
|
-
/* @__PURE__ */
|
3155
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3156
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isPrint"), onChange: (e) => {
|
3302
3157
|
store.toogleAllPermissionWithType("isPrint", e.target.checked);
|
3303
3158
|
} }),
|
3304
|
-
/* @__PURE__ */
|
3159
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3305
3160
|
"In",
|
3306
|
-
/* @__PURE__ */
|
3161
|
+
/* @__PURE__ */ jsx57(IconPrinter2, { color: "var(--mantine-color-cyan-8)" })
|
3307
3162
|
] })
|
3308
3163
|
] }) }),
|
3309
|
-
/* @__PURE__ */
|
3310
|
-
/* @__PURE__ */
|
3164
|
+
/* @__PURE__ */ jsx57(Table3.Th, { children: /* @__PURE__ */ jsxs37(Flex2, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
3165
|
+
/* @__PURE__ */ jsx57(Checkbox2, { checked: store.isAllPermission("isExport"), onChange: (e) => {
|
3311
3166
|
store.toogleAllPermissionWithType("isExport", e.target.checked);
|
3312
3167
|
} }),
|
3313
|
-
/* @__PURE__ */
|
3168
|
+
/* @__PURE__ */ jsxs37(MyFlexRow, { gap: 3, children: [
|
3314
3169
|
"Xu\u1EA5t",
|
3315
|
-
/* @__PURE__ */
|
3170
|
+
/* @__PURE__ */ jsx57(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
3316
3171
|
] })
|
3317
3172
|
] }) })
|
3318
3173
|
] })
|
3319
3174
|
}
|
3320
3175
|
),
|
3321
|
-
/* @__PURE__ */
|
3322
|
-
if (item.links == void 0) return /* @__PURE__ */
|
3323
|
-
/* @__PURE__ */
|
3324
|
-
/* @__PURE__ */
|
3325
|
-
/* @__PURE__ */
|
3326
|
-
/* @__PURE__ */
|
3327
|
-
/* @__PURE__ */
|
3328
|
-
/* @__PURE__ */
|
3329
|
-
/* @__PURE__ */
|
3176
|
+
/* @__PURE__ */ jsx57(Table3.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
3177
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs37(Table3.Tr, { children: [
|
3178
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: item.label }),
|
3179
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3180
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3181
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3182
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3183
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) }),
|
3184
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(Checkbox2, {}) }) })
|
3330
3185
|
] }, idx);
|
3331
|
-
return /* @__PURE__ */
|
3332
|
-
/* @__PURE__ */
|
3186
|
+
return /* @__PURE__ */ jsxs37(React2.Fragment, { children: [
|
3187
|
+
/* @__PURE__ */ jsx57(Table3.Tr, { children: /* @__PURE__ */ jsx57(
|
3333
3188
|
Table3.Td,
|
3334
3189
|
{
|
3335
3190
|
colSpan: 7,
|
3336
3191
|
bg: const_object_colors.mantineBackgroundBlueLight,
|
3337
|
-
children: /* @__PURE__ */
|
3192
|
+
children: /* @__PURE__ */ jsx57(Text2, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
3338
3193
|
}
|
3339
3194
|
) }, item.label),
|
3340
3195
|
item.links.map(
|
3341
3196
|
(item2, idx2) => {
|
3342
3197
|
var _a2, _b2, _c, _d, _e, _f;
|
3343
|
-
return /* @__PURE__ */
|
3344
|
-
/* @__PURE__ */
|
3345
|
-
/* @__PURE__ */
|
3198
|
+
return /* @__PURE__ */ jsxs37(Table3.Tr, { children: [
|
3199
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: item2.label }),
|
3200
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3346
3201
|
Checkbox2,
|
3347
3202
|
{
|
3348
3203
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -3353,7 +3208,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3353
3208
|
}
|
3354
3209
|
}
|
3355
3210
|
) }) }),
|
3356
|
-
/* @__PURE__ */
|
3211
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3357
3212
|
Checkbox2,
|
3358
3213
|
{
|
3359
3214
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -3364,7 +3219,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3364
3219
|
}
|
3365
3220
|
}
|
3366
3221
|
) }) }),
|
3367
|
-
/* @__PURE__ */
|
3222
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3368
3223
|
Checkbox2,
|
3369
3224
|
{
|
3370
3225
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -3375,7 +3230,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3375
3230
|
}
|
3376
3231
|
}
|
3377
3232
|
) }) }),
|
3378
|
-
/* @__PURE__ */
|
3233
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3379
3234
|
Checkbox2,
|
3380
3235
|
{
|
3381
3236
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -3386,7 +3241,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3386
3241
|
}
|
3387
3242
|
}
|
3388
3243
|
) }) }),
|
3389
|
-
/* @__PURE__ */
|
3244
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3390
3245
|
Checkbox2,
|
3391
3246
|
{
|
3392
3247
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -3397,7 +3252,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3397
3252
|
}
|
3398
3253
|
}
|
3399
3254
|
) }) }),
|
3400
|
-
/* @__PURE__ */
|
3255
|
+
/* @__PURE__ */ jsx57(Table3.Td, { children: /* @__PURE__ */ jsx57(MyCenterFull, { children: /* @__PURE__ */ jsx57(
|
3401
3256
|
Checkbox2,
|
3402
3257
|
{
|
3403
3258
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -3453,25 +3308,25 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
3453
3308
|
}
|
3454
3309
|
|
3455
3310
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
3456
|
-
import { jsx as
|
3311
|
+
import { jsx as jsx58, jsxs as jsxs38 } from "react/jsx-runtime";
|
3457
3312
|
function F_core83092({ menuData: menuData2 }) {
|
3458
|
-
return /* @__PURE__ */
|
3459
|
-
/* @__PURE__ */
|
3460
|
-
/* @__PURE__ */
|
3461
|
-
/* @__PURE__ */
|
3462
|
-
/* @__PURE__ */
|
3313
|
+
return /* @__PURE__ */ jsxs38(Grid3, { children: [
|
3314
|
+
/* @__PURE__ */ jsx58(Grid3.Col, { span: { base: 12, sm: 5 }, children: /* @__PURE__ */ jsx58(ScrollArea4.Autosize, { children: /* @__PURE__ */ jsx58(F_core83092_ReadUser, {}) }) }),
|
3315
|
+
/* @__PURE__ */ jsx58(Grid3.Col, { span: { base: 12, sm: 7 }, children: /* @__PURE__ */ jsxs38(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
3316
|
+
/* @__PURE__ */ jsx58(ScrollArea4.Autosize, { h: "100%", children: /* @__PURE__ */ jsx58(Paper5, { p: "md", bg: const_object_colors.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx58(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
3317
|
+
/* @__PURE__ */ jsx58(F_core83092_Save, {})
|
3463
3318
|
] }) })
|
3464
3319
|
] });
|
3465
3320
|
}
|
3466
3321
|
|
3467
3322
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
3468
|
-
import { Paper as
|
3323
|
+
import { Paper as Paper6, Space as Space4 } from "@mantine/core";
|
3469
3324
|
|
3470
3325
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Create.tsx
|
3471
|
-
import { useForm as
|
3472
|
-
import { jsx as
|
3326
|
+
import { useForm as useForm19 } from "@mantine/form";
|
3327
|
+
import { jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
|
3473
3328
|
function F_formTemplateDocs_Create({ FormTypeId }) {
|
3474
|
-
const form =
|
3329
|
+
const form = useForm19({
|
3475
3330
|
mode: "uncontrolled",
|
3476
3331
|
validate: {
|
3477
3332
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3481,7 +3336,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3481
3336
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3482
3337
|
}
|
3483
3338
|
});
|
3484
|
-
return /* @__PURE__ */
|
3339
|
+
return /* @__PURE__ */ jsxs39(
|
3485
3340
|
MyButtonCreate,
|
3486
3341
|
{
|
3487
3342
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -3493,28 +3348,28 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3493
3348
|
}));
|
3494
3349
|
},
|
3495
3350
|
children: [
|
3496
|
-
/* @__PURE__ */
|
3497
|
-
|
3351
|
+
/* @__PURE__ */ jsx59(
|
3352
|
+
MyTextInput2,
|
3498
3353
|
__spreadValues({
|
3499
3354
|
withAsterisk: true,
|
3500
3355
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3501
3356
|
}, form.getInputProps("decisionCode"))
|
3502
3357
|
),
|
3503
|
-
/* @__PURE__ */
|
3358
|
+
/* @__PURE__ */ jsx59(
|
3504
3359
|
MyDateInput,
|
3505
3360
|
__spreadValues({
|
3506
3361
|
withAsterisk: true,
|
3507
3362
|
label: "Ng\xE0y ban h\xE0nh"
|
3508
3363
|
}, form.getInputProps("promulgateDate"))
|
3509
3364
|
),
|
3510
|
-
/* @__PURE__ */
|
3511
|
-
|
3365
|
+
/* @__PURE__ */ jsx59(
|
3366
|
+
MyTextInput2,
|
3512
3367
|
__spreadValues({
|
3513
3368
|
withAsterisk: true,
|
3514
3369
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3515
3370
|
}, form.getInputProps("name"))
|
3516
3371
|
),
|
3517
|
-
/* @__PURE__ */
|
3372
|
+
/* @__PURE__ */ jsx59(
|
3518
3373
|
F_core18256_Select,
|
3519
3374
|
__spreadValues({
|
3520
3375
|
withAsterisk: true,
|
@@ -3522,14 +3377,14 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3522
3377
|
documentTypeId: FormTypeId
|
3523
3378
|
}, form.getInputProps("documentAttributeId"))
|
3524
3379
|
),
|
3525
|
-
/* @__PURE__ */
|
3380
|
+
/* @__PURE__ */ jsx59(
|
3526
3381
|
MyFileInput,
|
3527
3382
|
__spreadValues({
|
3528
3383
|
withAsterisk: true,
|
3529
3384
|
label: "V\u0103n b\u1EA3n"
|
3530
3385
|
}, form.getInputProps("file"))
|
3531
3386
|
),
|
3532
|
-
/* @__PURE__ */
|
3387
|
+
/* @__PURE__ */ jsx59(
|
3533
3388
|
MyNumberInput,
|
3534
3389
|
__spreadValues({
|
3535
3390
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3547,12 +3402,12 @@ import { useMemo as useMemo14 } from "react";
|
|
3547
3402
|
import { IconBug as IconBug4 } from "@tabler/icons-react";
|
3548
3403
|
|
3549
3404
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Delete.tsx
|
3550
|
-
import { jsx as
|
3405
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
3551
3406
|
function F_formTemplateDocs_Delete({
|
3552
3407
|
id,
|
3553
3408
|
contextData
|
3554
3409
|
}) {
|
3555
|
-
return /* @__PURE__ */
|
3410
|
+
return /* @__PURE__ */ jsx60(
|
3556
3411
|
MyActionIconDelete,
|
3557
3412
|
{
|
3558
3413
|
contextData,
|
@@ -3562,14 +3417,14 @@ function F_formTemplateDocs_Delete({
|
|
3562
3417
|
}
|
3563
3418
|
|
3564
3419
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Update.tsx
|
3565
|
-
import { useForm as
|
3566
|
-
import { jsx as
|
3420
|
+
import { useForm as useForm20 } from "@mantine/form";
|
3421
|
+
import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
|
3567
3422
|
function F_formTemplateDocs_Update({
|
3568
3423
|
values,
|
3569
3424
|
FormTypeId
|
3570
3425
|
}) {
|
3571
3426
|
var _a;
|
3572
|
-
const form =
|
3427
|
+
const form = useForm20({
|
3573
3428
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
3574
3429
|
file: new File(
|
3575
3430
|
[],
|
@@ -3585,7 +3440,7 @@ function F_formTemplateDocs_Update({
|
|
3585
3440
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3586
3441
|
}
|
3587
3442
|
});
|
3588
|
-
return /* @__PURE__ */
|
3443
|
+
return /* @__PURE__ */ jsxs40(
|
3589
3444
|
MyActionIconUpdate,
|
3590
3445
|
{
|
3591
3446
|
form,
|
@@ -3595,28 +3450,28 @@ function F_formTemplateDocs_Update({
|
|
3595
3450
|
}));
|
3596
3451
|
},
|
3597
3452
|
children: [
|
3598
|
-
/* @__PURE__ */
|
3599
|
-
|
3453
|
+
/* @__PURE__ */ jsx61(
|
3454
|
+
MyTextInput2,
|
3600
3455
|
__spreadValues({
|
3601
3456
|
withAsterisk: true,
|
3602
3457
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3603
3458
|
}, form.getInputProps("decisionCode"))
|
3604
3459
|
),
|
3605
|
-
/* @__PURE__ */
|
3460
|
+
/* @__PURE__ */ jsx61(
|
3606
3461
|
MyDateInput,
|
3607
3462
|
__spreadValues({
|
3608
3463
|
withAsterisk: true,
|
3609
3464
|
label: "Ng\xE0y ban h\xE0nh"
|
3610
3465
|
}, form.getInputProps("promulgateDate"))
|
3611
3466
|
),
|
3612
|
-
/* @__PURE__ */
|
3613
|
-
|
3467
|
+
/* @__PURE__ */ jsx61(
|
3468
|
+
MyTextInput2,
|
3614
3469
|
__spreadValues({
|
3615
3470
|
withAsterisk: true,
|
3616
3471
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3617
3472
|
}, form.getInputProps("name"))
|
3618
3473
|
),
|
3619
|
-
/* @__PURE__ */
|
3474
|
+
/* @__PURE__ */ jsx61(
|
3620
3475
|
F_core18256_Select,
|
3621
3476
|
__spreadValues({
|
3622
3477
|
withAsterisk: true,
|
@@ -3624,14 +3479,14 @@ function F_formTemplateDocs_Update({
|
|
3624
3479
|
documentTypeId: FormTypeId
|
3625
3480
|
}, form.getInputProps("documentAttributeId"))
|
3626
3481
|
),
|
3627
|
-
/* @__PURE__ */
|
3482
|
+
/* @__PURE__ */ jsx61(
|
3628
3483
|
MyFileInput,
|
3629
3484
|
__spreadValues({
|
3630
3485
|
withAsterisk: true,
|
3631
3486
|
label: "V\u0103n b\u1EA3n"
|
3632
3487
|
}, form.getInputProps("file"))
|
3633
3488
|
),
|
3634
|
-
/* @__PURE__ */
|
3489
|
+
/* @__PURE__ */ jsx61(
|
3635
3490
|
MyNumberInput,
|
3636
3491
|
__spreadValues({
|
3637
3492
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3643,7 +3498,7 @@ function F_formTemplateDocs_Update({
|
|
3643
3498
|
}
|
3644
3499
|
|
3645
3500
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
|
3646
|
-
import { jsx as
|
3501
|
+
import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
|
3647
3502
|
function F_formTemplateDocs_Read({ FormTypeId }) {
|
3648
3503
|
var _a, _b, _c;
|
3649
3504
|
const documentAttributeQuery = useQuery16({
|
@@ -3657,10 +3512,10 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
3657
3512
|
}
|
3658
3513
|
});
|
3659
3514
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
3660
|
-
return /* @__PURE__ */
|
3515
|
+
return /* @__PURE__ */ jsx62(Blockquote4, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
3661
3516
|
if (documentAttributeQuery.isError)
|
3662
|
-
return /* @__PURE__ */
|
3663
|
-
return /* @__PURE__ */
|
3517
|
+
return /* @__PURE__ */ jsx62(Alert4, { icon: /* @__PURE__ */ jsx62(IconBug4, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
3518
|
+
return /* @__PURE__ */ jsx62(Skeleton4, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx62(MyFlexColumn, { children: /* @__PURE__ */ jsx62(
|
3664
3519
|
Accordion4,
|
3665
3520
|
{
|
3666
3521
|
variant: "contained",
|
@@ -3671,7 +3526,7 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
3671
3526
|
}
|
3672
3527
|
),
|
3673
3528
|
multiple: true,
|
3674
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
3529
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx62(
|
3675
3530
|
SubRead4,
|
3676
3531
|
{
|
3677
3532
|
name: item.name,
|
@@ -3714,7 +3569,7 @@ function SubRead4({
|
|
3714
3569
|
{
|
3715
3570
|
header: "File",
|
3716
3571
|
accessorFn: (row) => {
|
3717
|
-
return /* @__PURE__ */
|
3572
|
+
return /* @__PURE__ */ jsx62(MyCenterFull, { children: /* @__PURE__ */ jsx62(MyButtonViewPDF, { id: row.id }) });
|
3718
3573
|
}
|
3719
3574
|
}
|
3720
3575
|
],
|
@@ -3722,24 +3577,24 @@ function SubRead4({
|
|
3722
3577
|
);
|
3723
3578
|
if (documentQuery.isLoading) return "Loading...";
|
3724
3579
|
if (documentQuery.isError) return "Error!";
|
3725
|
-
return /* @__PURE__ */
|
3726
|
-
/* @__PURE__ */
|
3727
|
-
/* @__PURE__ */
|
3580
|
+
return /* @__PURE__ */ jsxs41(Accordion4.Item, { value: documentType.toString(), children: [
|
3581
|
+
/* @__PURE__ */ jsx62(Accordion4.Control, { children: name }),
|
3582
|
+
/* @__PURE__ */ jsx62(Accordion4.Panel, { children: /* @__PURE__ */ jsx62(
|
3728
3583
|
MyDataTable,
|
3729
3584
|
{
|
3730
3585
|
isLoading: documentQuery.isLoading,
|
3731
3586
|
isError: documentQuery.isError,
|
3732
3587
|
columns,
|
3733
3588
|
data: documentQuery.data || [],
|
3734
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
3735
|
-
/* @__PURE__ */
|
3589
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs41(MyCenterFull, { children: [
|
3590
|
+
/* @__PURE__ */ jsx62(
|
3736
3591
|
F_formTemplateDocs_Update,
|
3737
3592
|
{
|
3738
3593
|
FormTypeId,
|
3739
3594
|
values: row.original
|
3740
3595
|
}
|
3741
3596
|
),
|
3742
|
-
/* @__PURE__ */
|
3597
|
+
/* @__PURE__ */ jsx62(
|
3743
3598
|
F_formTemplateDocs_Delete,
|
3744
3599
|
{
|
3745
3600
|
id: row.original.id,
|
@@ -3753,17 +3608,207 @@ function SubRead4({
|
|
3753
3608
|
}
|
3754
3609
|
|
3755
3610
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
3756
|
-
import { jsx as
|
3611
|
+
import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
|
3757
3612
|
function F_formTemplateDocs({
|
3758
3613
|
FormTypeId
|
3759
3614
|
}) {
|
3615
|
+
return /* @__PURE__ */ jsxs42(Paper6, { p: "md", children: [
|
3616
|
+
/* @__PURE__ */ jsx63(MyFlexEnd, { children: /* @__PURE__ */ jsx63(F_formTemplateDocs_Create, { FormTypeId }) }),
|
3617
|
+
/* @__PURE__ */ jsx63(Space4, {}),
|
3618
|
+
/* @__PURE__ */ jsx63(F_formTemplateDocs_Read, { FormTypeId })
|
3619
|
+
] });
|
3620
|
+
}
|
3621
|
+
|
3622
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3623
|
+
import { useEffect as useEffect10 } from "react";
|
3624
|
+
|
3625
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3626
|
+
import { Center, Grid as Grid4, Image, Paper as Paper7 } from "@mantine/core";
|
3627
|
+
import { useForm as useForm21 } from "@mantine/form";
|
3628
|
+
import { useEffect as useEffect9 } from "react";
|
3629
|
+
|
3630
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
3631
|
+
import { useMutation as useMutation4 } from "@tanstack/react-query";
|
3632
|
+
|
3633
|
+
// src/modules-features/admin/core/moduleConfig/useS_moduleConfig.ts
|
3634
|
+
var useStore3 = createGenericStore({
|
3635
|
+
initialState: {}
|
3636
|
+
});
|
3637
|
+
function useS_moduleConfig() {
|
3638
|
+
const store = useStore3();
|
3639
|
+
return __spreadValues({}, store);
|
3640
|
+
}
|
3641
|
+
|
3642
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
3643
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
3644
|
+
function F_moduleConfig_Save({
|
3645
|
+
form
|
3646
|
+
}) {
|
3647
|
+
const store = useS_moduleConfig();
|
3648
|
+
const mutation = useMutation4({
|
3649
|
+
mutationFn: async (body) => {
|
3650
|
+
const res = await baseAxios_default.post("/AQ/UpdateAQSetting", body);
|
3651
|
+
return res;
|
3652
|
+
}
|
3653
|
+
});
|
3654
|
+
async function handleSave() {
|
3655
|
+
var _b, _c, _d, _e;
|
3656
|
+
const _a = form.getValues(), { faviconFile, logoFile } = _a, formValues = __objRest(_a, ["faviconFile", "logoFile"]);
|
3657
|
+
mutation.mutate(__spreadProps(__spreadValues({}, formValues), {
|
3658
|
+
logoFileDetail: form.isDirty("logoFileDetail") == false ? {
|
3659
|
+
fileName: (_b = formValues.logoFileDetail) == null ? void 0 : _b.fileName,
|
3660
|
+
fileExtension: (_c = formValues.logoFileDetail) == null ? void 0 : _c.fileExtension,
|
3661
|
+
fileBase64String: ""
|
3662
|
+
} : formValues.logoFileDetail,
|
3663
|
+
faviconFileDetail: form.isDirty("faviconFileDetail") == false ? {
|
3664
|
+
fileName: (_d = formValues.faviconFileDetail) == null ? void 0 : _d.fileName,
|
3665
|
+
fileExtension: (_e = formValues.faviconFileDetail) == null ? void 0 : _e.fileExtension,
|
3666
|
+
fileBase64String: ""
|
3667
|
+
} : formValues.faviconFileDetail,
|
3668
|
+
id: store.state.AQModuleId
|
3669
|
+
}), {
|
3670
|
+
onSuccess: () => {
|
3671
|
+
utils_notification_show({
|
3672
|
+
crudType: "update"
|
3673
|
+
});
|
3674
|
+
}
|
3675
|
+
});
|
3676
|
+
}
|
3677
|
+
return /* @__PURE__ */ jsx64(
|
3678
|
+
MyButton2,
|
3679
|
+
{
|
3680
|
+
disabled: !form.isDirty(),
|
3681
|
+
crudType: "save",
|
3682
|
+
onClick: handleSave
|
3683
|
+
}
|
3684
|
+
);
|
3685
|
+
}
|
3686
|
+
|
3687
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3688
|
+
import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
|
3689
|
+
function F_moduleConfig_Form() {
|
3690
|
+
var _a, _b, _c, _d;
|
3691
|
+
const query = useQ_AQ_GetAQModule();
|
3692
|
+
const form = useForm21({
|
3693
|
+
mode: "uncontrolled",
|
3694
|
+
validate: {
|
3695
|
+
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
3696
|
+
logoFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3697
|
+
}
|
3698
|
+
});
|
3699
|
+
useEffect9(() => {
|
3700
|
+
var _a2, _b2;
|
3701
|
+
if (!query.data) return;
|
3702
|
+
const values = {
|
3703
|
+
code: query.data.code || "",
|
3704
|
+
name: query.data.name || "",
|
3705
|
+
officelName: query.data.officelName || "",
|
3706
|
+
email: query.data.email || "",
|
3707
|
+
phoneNumber: query.data.phoneNumber || "",
|
3708
|
+
registrationDate: new Date(query.data.registrationDate) || /* @__PURE__ */ new Date(),
|
3709
|
+
limiteDate: new Date(query.data.limiteDate) || /* @__PURE__ */ new Date(),
|
3710
|
+
faviconPath: query.data.faviconPath || "",
|
3711
|
+
logoPath: query.data.logoPath || "",
|
3712
|
+
faviconFile: new File([], (_a2 = query.data.faviconFileDetail) == null ? void 0 : _a2.fileName),
|
3713
|
+
logoFile: new File([], (_b2 = query.data.logoFileDetail) == null ? void 0 : _b2.fileName),
|
3714
|
+
faviconFileDetail: query.data.faviconFileDetail,
|
3715
|
+
logoFileDetail: query.data.logoFileDetail
|
3716
|
+
};
|
3717
|
+
form.setInitialValues(values);
|
3718
|
+
form.setValues(values);
|
3719
|
+
}, [query.data]);
|
3760
3720
|
return /* @__PURE__ */ jsxs43(Paper7, { p: "md", children: [
|
3761
|
-
/* @__PURE__ */
|
3762
|
-
|
3763
|
-
|
3721
|
+
/* @__PURE__ */ jsxs43(Grid4, { children: [
|
3722
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
3723
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
3724
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: 12, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
3725
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
3726
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(MyTextInput2, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
3727
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(
|
3728
|
+
MyDateInput,
|
3729
|
+
{
|
3730
|
+
value: form.getValues().registrationDate,
|
3731
|
+
disabled: true,
|
3732
|
+
onChange: (date) => form.setFieldValue("registrationDate", new Date(date)),
|
3733
|
+
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
3734
|
+
}
|
3735
|
+
) }),
|
3736
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx65(
|
3737
|
+
MyDateInput,
|
3738
|
+
{
|
3739
|
+
value: form.getValues().limiteDate,
|
3740
|
+
disabled: true,
|
3741
|
+
onChange: (date) => form.setFieldValue("limiteDate", new Date(date)),
|
3742
|
+
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
3743
|
+
}
|
3744
|
+
) }),
|
3745
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs43(MyFlexColumn, { children: [
|
3746
|
+
/* @__PURE__ */ jsx65(
|
3747
|
+
MyFileInput,
|
3748
|
+
{
|
3749
|
+
accept: "image/png,image/jpeg",
|
3750
|
+
label: "Favicon (16px x 16px)",
|
3751
|
+
value: form.getValues().faviconFile,
|
3752
|
+
onChange: async (e) => {
|
3753
|
+
form.setFieldValue("faviconFile", e);
|
3754
|
+
form.setFieldValue("faviconFileDetail", await utils_file_fileToAQDocumentType(e));
|
3755
|
+
}
|
3756
|
+
}
|
3757
|
+
),
|
3758
|
+
/* @__PURE__ */ jsx65(Paper7, { w: "100%", children: /* @__PURE__ */ jsx65(Center, { children: /* @__PURE__ */ jsx65(
|
3759
|
+
Image,
|
3760
|
+
{
|
3761
|
+
fit: "contain",
|
3762
|
+
src: `data:image/${(_a = form.getValues().faviconFileDetail) == null ? void 0 : _a.fileExtension};base64,
|
3763
|
+
${(_b = form.getValues().faviconFileDetail) == null ? void 0 : _b.fileBase64String}`,
|
3764
|
+
h: "115px",
|
3765
|
+
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
3766
|
+
alt: "Main logo",
|
3767
|
+
w: "330px"
|
3768
|
+
}
|
3769
|
+
) }) })
|
3770
|
+
] }) }),
|
3771
|
+
/* @__PURE__ */ jsx65(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs43(MyFlexColumn, { children: [
|
3772
|
+
/* @__PURE__ */ jsx65(
|
3773
|
+
MyFileInput,
|
3774
|
+
{
|
3775
|
+
accept: "image/png,image/jpeg",
|
3776
|
+
label: "Logo (330px x 115px)",
|
3777
|
+
value: form.getValues().logoFile,
|
3778
|
+
onChange: async (e) => {
|
3779
|
+
form.setFieldValue("logoFile", e);
|
3780
|
+
form.setFieldValue("logoFileDetail", await utils_file_fileToAQDocumentType(e));
|
3781
|
+
}
|
3782
|
+
}
|
3783
|
+
),
|
3784
|
+
/* @__PURE__ */ jsx65(Paper7, { children: /* @__PURE__ */ jsx65(Center, { children: /* @__PURE__ */ jsx65(
|
3785
|
+
Image,
|
3786
|
+
{
|
3787
|
+
fit: "contain",
|
3788
|
+
src: `data:image/${(_c = form.getValues().logoFileDetail) == null ? void 0 : _c.fileExtension};base64,
|
3789
|
+
${(_d = form.getValues().logoFileDetail) == null ? void 0 : _d.fileBase64String}`,
|
3790
|
+
h: "115px",
|
3791
|
+
fallbackSrc: "https://placehold.co/600x400?text=Placeholder",
|
3792
|
+
alt: "Main logo",
|
3793
|
+
w: "330px"
|
3794
|
+
}
|
3795
|
+
) }) })
|
3796
|
+
] }) })
|
3797
|
+
] }),
|
3798
|
+
/* @__PURE__ */ jsx65(MyFlexEnd, { children: /* @__PURE__ */ jsx65(F_moduleConfig_Save, { form }) })
|
3764
3799
|
] });
|
3765
3800
|
}
|
3766
3801
|
|
3802
|
+
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3803
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
3804
|
+
function F_moduleConfig({ AQModuleId }) {
|
3805
|
+
const store = useS_moduleConfig();
|
3806
|
+
useEffect10(() => {
|
3807
|
+
store.setProperty("AQModuleId", AQModuleId);
|
3808
|
+
}, []);
|
3809
|
+
return /* @__PURE__ */ jsx66(F_moduleConfig_Form, {});
|
3810
|
+
}
|
3811
|
+
|
3767
3812
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
3768
3813
|
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
3769
3814
|
|
@@ -3796,7 +3841,7 @@ function F_organizationPolicyDocs_Create({
|
|
3796
3841
|
},
|
3797
3842
|
children: [
|
3798
3843
|
/* @__PURE__ */ jsx67(
|
3799
|
-
|
3844
|
+
MyTextInput2,
|
3800
3845
|
__spreadValues({
|
3801
3846
|
withAsterisk: true,
|
3802
3847
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -3810,7 +3855,7 @@ function F_organizationPolicyDocs_Create({
|
|
3810
3855
|
}, form.getInputProps("promulgateDate"))
|
3811
3856
|
),
|
3812
3857
|
/* @__PURE__ */ jsx67(
|
3813
|
-
|
3858
|
+
MyTextInput2,
|
3814
3859
|
__spreadValues({
|
3815
3860
|
withAsterisk: true,
|
3816
3861
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -3898,7 +3943,7 @@ function F_organizationPolicyDocs_Update({
|
|
3898
3943
|
},
|
3899
3944
|
children: [
|
3900
3945
|
/* @__PURE__ */ jsx69(
|
3901
|
-
|
3946
|
+
MyTextInput2,
|
3902
3947
|
__spreadValues({
|
3903
3948
|
withAsterisk: true,
|
3904
3949
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -3912,7 +3957,7 @@ function F_organizationPolicyDocs_Update({
|
|
3912
3957
|
}, form.getInputProps("promulgateDate"))
|
3913
3958
|
),
|
3914
3959
|
/* @__PURE__ */ jsx69(
|
3915
|
-
|
3960
|
+
MyTextInput2,
|
3916
3961
|
__spreadValues({
|
3917
3962
|
withAsterisk: true,
|
3918
3963
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -4081,19 +4126,19 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4081
4126
|
return service_PageContent.updateList([{ id: 1 }]);
|
4082
4127
|
}
|
4083
4128
|
});
|
4084
|
-
return /* @__PURE__ */ jsx72(
|
4129
|
+
return /* @__PURE__ */ jsx72(MyButton, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4085
4130
|
}
|
4086
4131
|
|
4087
4132
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4088
4133
|
import { jsx as jsx73 } from "react/jsx-runtime";
|
4089
4134
|
function F_pageContentConfig_Export() {
|
4090
|
-
return /* @__PURE__ */ jsx73(
|
4135
|
+
return /* @__PURE__ */ jsx73(MyButton, { actionType: "export" });
|
4091
4136
|
}
|
4092
4137
|
|
4093
4138
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4094
4139
|
import { jsx as jsx74 } from "react/jsx-runtime";
|
4095
4140
|
function F_pageContentConfig_DeleteDescription() {
|
4096
|
-
return /* @__PURE__ */ jsx74(
|
4141
|
+
return /* @__PURE__ */ jsx74(MyButton, { actionType: "delete" });
|
4097
4142
|
}
|
4098
4143
|
|
4099
4144
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
@@ -4114,7 +4159,7 @@ function F_pageContentConfig_ReadMenu() {
|
|
4114
4159
|
accessorKey: "description",
|
4115
4160
|
size: device.isPc ? 400 : 0,
|
4116
4161
|
Cell: () => {
|
4117
|
-
return /* @__PURE__ */ jsx75(
|
4162
|
+
return /* @__PURE__ */ jsx75(MyTextInput, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
|
4118
4163
|
}
|
4119
4164
|
}
|
4120
4165
|
], []);
|
@@ -4169,14 +4214,14 @@ function F_roleCatalog_Form({ values }) {
|
|
4169
4214
|
if (values) return /* @__PURE__ */ jsxs49(MyActionIconUpdate, { form, onSubmit: async () => {
|
4170
4215
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
4171
4216
|
}, children: [
|
4172
|
-
/* @__PURE__ */ jsx78(
|
4173
|
-
/* @__PURE__ */ jsx78(
|
4217
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
4218
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4174
4219
|
] });
|
4175
4220
|
return /* @__PURE__ */ jsxs49(MyButtonCreate, { form, onSubmit: async () => {
|
4176
4221
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
4177
4222
|
}, children: [
|
4178
|
-
/* @__PURE__ */ jsx78(
|
4179
|
-
/* @__PURE__ */ jsx78(
|
4223
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
4224
|
+
/* @__PURE__ */ jsx78(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4180
4225
|
] });
|
4181
4226
|
}
|
4182
4227
|
|
@@ -4214,13 +4259,13 @@ function useQ_core47643_GetAdminRole2() {
|
|
4214
4259
|
queryKey: ["useQ_core47643_GetAdminRole"],
|
4215
4260
|
queryFn: async () => {
|
4216
4261
|
const res = await baseAxios_default.get("/Role/GetAdminRole");
|
4217
|
-
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return
|
4262
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData3;
|
4218
4263
|
return res.data.data;
|
4219
4264
|
}
|
4220
4265
|
});
|
4221
4266
|
return query;
|
4222
4267
|
}
|
4223
|
-
var
|
4268
|
+
var mockData3 = [
|
4224
4269
|
{
|
4225
4270
|
"aqModuleId": 3,
|
4226
4271
|
"id": 6,
|
@@ -4293,7 +4338,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4293
4338
|
},
|
4294
4339
|
children: [
|
4295
4340
|
/* @__PURE__ */ jsx81(
|
4296
|
-
|
4341
|
+
MyTextInput2,
|
4297
4342
|
__spreadValues({
|
4298
4343
|
withAsterisk: true,
|
4299
4344
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -4307,7 +4352,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4307
4352
|
}, form.getInputProps("promulgateDate"))
|
4308
4353
|
),
|
4309
4354
|
/* @__PURE__ */ jsx81(
|
4310
|
-
|
4355
|
+
MyTextInput2,
|
4311
4356
|
__spreadValues({
|
4312
4357
|
withAsterisk: true,
|
4313
4358
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -4516,20 +4561,20 @@ function F_systemUpdateDocs_Create({
|
|
4516
4561
|
}, form.getInputProps("meetingDate"))
|
4517
4562
|
),
|
4518
4563
|
/* @__PURE__ */ jsx86(
|
4519
|
-
|
4564
|
+
MyTextInput2,
|
4520
4565
|
__spreadValues({
|
4521
4566
|
withAsterisk: true,
|
4522
4567
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4523
4568
|
}, form.getInputProps("departmentName"))
|
4524
4569
|
),
|
4525
4570
|
/* @__PURE__ */ jsx86(
|
4526
|
-
|
4571
|
+
MyTextInput2,
|
4527
4572
|
__spreadValues({
|
4528
4573
|
withAsterisk: true,
|
4529
4574
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4530
4575
|
}, form.getInputProps("description"))
|
4531
4576
|
),
|
4532
|
-
/* @__PURE__ */ jsx86(
|
4577
|
+
/* @__PURE__ */ jsx86(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4533
4578
|
/* @__PURE__ */ jsx86(
|
4534
4579
|
MyDateInput,
|
4535
4580
|
__spreadValues({
|
@@ -4617,20 +4662,20 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4617
4662
|
}, form.getInputProps("meetingDate"))
|
4618
4663
|
),
|
4619
4664
|
/* @__PURE__ */ jsx88(
|
4620
|
-
|
4665
|
+
MyTextInput2,
|
4621
4666
|
__spreadValues({
|
4622
4667
|
withAsterisk: true,
|
4623
4668
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4624
4669
|
}, form.getInputProps("departmentName"))
|
4625
4670
|
),
|
4626
4671
|
/* @__PURE__ */ jsx88(
|
4627
|
-
|
4672
|
+
MyTextInput2,
|
4628
4673
|
__spreadValues({
|
4629
4674
|
withAsterisk: true,
|
4630
4675
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4631
4676
|
}, form.getInputProps("description"))
|
4632
4677
|
),
|
4633
|
-
/* @__PURE__ */ jsx88(
|
4678
|
+
/* @__PURE__ */ jsx88(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4634
4679
|
/* @__PURE__ */ jsx88(
|
4635
4680
|
MyDateInput,
|
4636
4681
|
__spreadValues({
|
@@ -4754,14 +4799,14 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4754
4799
|
},
|
4755
4800
|
children: [
|
4756
4801
|
/* @__PURE__ */ jsx90(
|
4757
|
-
|
4802
|
+
MyTextInput2,
|
4758
4803
|
__spreadValues({
|
4759
4804
|
withAsterisk: true,
|
4760
4805
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4761
4806
|
}, form.getInputProps("code"))
|
4762
4807
|
),
|
4763
4808
|
/* @__PURE__ */ jsx90(
|
4764
|
-
|
4809
|
+
MyTextInput2,
|
4765
4810
|
__spreadValues({
|
4766
4811
|
withAsterisk: true,
|
4767
4812
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -4826,14 +4871,14 @@ function F_userGuideDocs_Update({ values }) {
|
|
4826
4871
|
},
|
4827
4872
|
children: [
|
4828
4873
|
/* @__PURE__ */ jsx92(
|
4829
|
-
|
4874
|
+
MyTextInput2,
|
4830
4875
|
__spreadValues({
|
4831
4876
|
withAsterisk: true,
|
4832
4877
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4833
4878
|
}, form.getInputProps("code"))
|
4834
4879
|
),
|
4835
4880
|
/* @__PURE__ */ jsx92(
|
4836
|
-
|
4881
|
+
MyTextInput2,
|
4837
4882
|
__spreadValues({
|
4838
4883
|
withAsterisk: true,
|
4839
4884
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -4946,7 +4991,7 @@ function F_workflowProcessDocs_Create({
|
|
4946
4991
|
},
|
4947
4992
|
children: [
|
4948
4993
|
/* @__PURE__ */ jsx95(
|
4949
|
-
|
4994
|
+
MyTextInput2,
|
4950
4995
|
__spreadValues({
|
4951
4996
|
withAsterisk: true,
|
4952
4997
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -4960,7 +5005,7 @@ function F_workflowProcessDocs_Create({
|
|
4960
5005
|
}, form.getInputProps("promulgateDate"))
|
4961
5006
|
),
|
4962
5007
|
/* @__PURE__ */ jsx95(
|
4963
|
-
|
5008
|
+
MyTextInput2,
|
4964
5009
|
__spreadValues({
|
4965
5010
|
withAsterisk: true,
|
4966
5011
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -5048,7 +5093,7 @@ function F_workflowProcessDocs_Update({
|
|
5048
5093
|
},
|
5049
5094
|
children: [
|
5050
5095
|
/* @__PURE__ */ jsx97(
|
5051
|
-
|
5096
|
+
MyTextInput2,
|
5052
5097
|
__spreadValues({
|
5053
5098
|
withAsterisk: true,
|
5054
5099
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -5062,7 +5107,7 @@ function F_workflowProcessDocs_Update({
|
|
5062
5107
|
}, form.getInputProps("promulgateDate"))
|
5063
5108
|
),
|
5064
5109
|
/* @__PURE__ */ jsx97(
|
5065
|
-
|
5110
|
+
MyTextInput2,
|
5066
5111
|
__spreadValues({
|
5067
5112
|
withAsterisk: true,
|
5068
5113
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -5440,7 +5485,6 @@ export {
|
|
5440
5485
|
F_core47643_Delete,
|
5441
5486
|
F_core47643_Form,
|
5442
5487
|
F_core47643_Read,
|
5443
|
-
F_core60524,
|
5444
5488
|
F_core64229,
|
5445
5489
|
F_core64229_Delete,
|
5446
5490
|
F_core64229_Form,
|
@@ -5458,6 +5502,7 @@ export {
|
|
5458
5502
|
F_formTemplateDocs_Delete,
|
5459
5503
|
F_formTemplateDocs_Read,
|
5460
5504
|
F_formTemplateDocs_Update,
|
5505
|
+
F_moduleConfig,
|
5461
5506
|
F_organizationPolicyDocs,
|
5462
5507
|
F_organizationPolicyDocs_Create,
|
5463
5508
|
F_organizationPolicyDocs_Delete,
|
@@ -5486,7 +5531,7 @@ export {
|
|
5486
5531
|
F_workflowProcessDocs_Read,
|
5487
5532
|
F_workflowProcessDocs_Update,
|
5488
5533
|
useS_authenticate,
|
5489
|
-
useS_core60524,
|
5490
5534
|
useS_core83092,
|
5535
|
+
useS_moduleConfig,
|
5491
5536
|
utils_core83092_mergePage
|
5492
5537
|
};
|