aq-fe-framework 0.1.593 → 0.1.596
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-5NGEH244.mjs → chunk-TM5KDO5S.mjs} +62 -64
- package/dist/{chunk-TVESDOLY.mjs → chunk-VGZ2UE3K.mjs} +40 -14
- package/dist/{chunk-MWDKPP74.mjs → chunk-YXBTBZCE.mjs} +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.mjs +1 -1
- package/dist/core/index.mjs +4 -4
- package/dist/coreService/index.mjs +2 -2
- package/dist/modules-features/index.d.mts +40 -27
- package/dist/modules-features/index.mjs +588 -361
- package/package.json +1 -1
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
baseColumns
|
|
3
3
|
} from "../chunk-7PUDC2WF.mjs";
|
|
4
|
-
import {
|
|
5
|
-
enum_emailConfigModule
|
|
6
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
|
7
4
|
import {
|
|
8
5
|
MyButton as MyButton2,
|
|
9
6
|
MyButtonModal as MyButtonModal2,
|
|
7
|
+
MyRichTextEditor,
|
|
10
8
|
MySelect as MySelect2,
|
|
11
9
|
MyTextInput as MyTextInput2
|
|
12
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-TM5KDO5S.mjs";
|
|
13
11
|
import {
|
|
14
12
|
const_object_documentTypes
|
|
15
13
|
} from "../chunk-GFEMKKFH.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-MWDKPP74.mjs";
|
|
14
|
+
import "../chunk-YXBTBZCE.mjs";
|
|
18
15
|
import {
|
|
19
16
|
F_authenticate_Logout,
|
|
20
17
|
MyActionIconDelete,
|
|
@@ -37,7 +34,7 @@ import {
|
|
|
37
34
|
MyTab,
|
|
38
35
|
MyTextInput,
|
|
39
36
|
useS_authenticate
|
|
40
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-VGZ2UE3K.mjs";
|
|
41
38
|
import {
|
|
42
39
|
createGenericStore,
|
|
43
40
|
useStore_Permission
|
|
@@ -57,6 +54,10 @@ import {
|
|
|
57
54
|
import {
|
|
58
55
|
const_object_colors
|
|
59
56
|
} from "../chunk-OMJJAHOC.mjs";
|
|
57
|
+
import {
|
|
58
|
+
enum_emailConfigModule
|
|
59
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
|
60
|
+
import "../chunk-K6S7R6LU.mjs";
|
|
60
61
|
import {
|
|
61
62
|
baseAxios_default,
|
|
62
63
|
createBaseApi,
|
|
@@ -98,7 +99,7 @@ import { useMemo } from "react";
|
|
|
98
99
|
import { jsx } from "react/jsx-runtime";
|
|
99
100
|
function UseCase_AccountTable(_a) {
|
|
100
101
|
var _b = _a, {
|
|
101
|
-
data,
|
|
102
|
+
data: data2,
|
|
102
103
|
visibleFields
|
|
103
104
|
} = _b, rest = __objRest(_b, [
|
|
104
105
|
"data",
|
|
@@ -122,7 +123,7 @@ function UseCase_AccountTable(_a) {
|
|
|
122
123
|
MyDataTable,
|
|
123
124
|
__spreadValues({
|
|
124
125
|
columns,
|
|
125
|
-
data
|
|
126
|
+
data: data2
|
|
126
127
|
}, rest)
|
|
127
128
|
);
|
|
128
129
|
}
|
|
@@ -184,8 +185,8 @@ var service_role = __spreadProps(__spreadValues({}, createBaseApi(CONTROLLER2, b
|
|
|
184
185
|
updateUserPermission: (body) => {
|
|
185
186
|
return baseAxios_default.put(CONTROLLER2 + "/UpdateUserPermission", body);
|
|
186
187
|
},
|
|
187
|
-
addUser: (params,
|
|
188
|
-
return baseAxios_default.post(CONTROLLER2 + "/AddUser", { params, body });
|
|
188
|
+
addUser: (params, roleIds) => {
|
|
189
|
+
return baseAxios_default.post(CONTROLLER2 + "/AddUser", { params, body: roleIds });
|
|
189
190
|
}
|
|
190
191
|
});
|
|
191
192
|
|
|
@@ -269,8 +270,8 @@ function UseCase_PermissionViewCheckTable({ value = [], onChange, isLoading }) {
|
|
|
269
270
|
});
|
|
270
271
|
onChange == null ? void 0 : onChange(updated);
|
|
271
272
|
};
|
|
272
|
-
const getDuplicateMenuIds = (
|
|
273
|
-
const allIds =
|
|
273
|
+
const getDuplicateMenuIds = (data2 = []) => {
|
|
274
|
+
const allIds = data2.map((menu) => menu.id).filter(Boolean);
|
|
274
275
|
const countMap = /* @__PURE__ */ new Map();
|
|
275
276
|
for (const id of allIds) {
|
|
276
277
|
countMap.set(id, (countMap.get(id) || 0) + 1);
|
|
@@ -380,9 +381,9 @@ function Permission_ViewCheckMenuPermission({
|
|
|
380
381
|
});
|
|
381
382
|
});
|
|
382
383
|
}
|
|
383
|
-
function extractMenusWithRootGroupTitle(
|
|
384
|
+
function extractMenusWithRootGroupTitle(data2, rootGroupTitle) {
|
|
384
385
|
const result = [];
|
|
385
|
-
for (const item of
|
|
386
|
+
for (const item of data2) {
|
|
386
387
|
const currentRoot = rootGroupTitle || item.label;
|
|
387
388
|
if (item.links && item.links.length > 0) {
|
|
388
389
|
const children = extractMenusWithRootGroupTitle(item.links, currentRoot);
|
|
@@ -1048,7 +1049,7 @@ function F_core18256_Select(_a) {
|
|
|
1048
1049
|
}
|
|
1049
1050
|
});
|
|
1050
1051
|
if (query.isLoading) return "Loading...";
|
|
1051
|
-
const
|
|
1052
|
+
const data2 = (_a2 = query.data) == null ? void 0 : _a2.map((item) => {
|
|
1052
1053
|
var _a3;
|
|
1053
1054
|
if (dataMapper) return dataMapper(item);
|
|
1054
1055
|
return {
|
|
@@ -1061,7 +1062,7 @@ function F_core18256_Select(_a) {
|
|
|
1061
1062
|
__spreadProps(__spreadValues({
|
|
1062
1063
|
label,
|
|
1063
1064
|
placeholder: `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}`,
|
|
1064
|
-
data
|
|
1065
|
+
data: data2
|
|
1065
1066
|
}, rest), {
|
|
1066
1067
|
value: (_b2 = rest.value) == null ? void 0 : _b2.toString()
|
|
1067
1068
|
})
|
|
@@ -3128,7 +3129,7 @@ function F_documentCategories_Select(_a) {
|
|
|
3128
3129
|
axiosFn: () => service_documentAttribute.GetByType(documentTypeId)
|
|
3129
3130
|
});
|
|
3130
3131
|
if (query.isLoading) return "Loading...";
|
|
3131
|
-
const
|
|
3132
|
+
const data2 = (_a2 = query.data) == null ? void 0 : _a2.map((item) => {
|
|
3132
3133
|
var _a3;
|
|
3133
3134
|
if (dataMapper) return dataMapper(item);
|
|
3134
3135
|
return {
|
|
@@ -3141,7 +3142,7 @@ function F_documentCategories_Select(_a) {
|
|
|
3141
3142
|
__spreadProps(__spreadValues({
|
|
3142
3143
|
label,
|
|
3143
3144
|
placeholder: `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}`,
|
|
3144
|
-
data
|
|
3145
|
+
data: data2
|
|
3145
3146
|
}, rest), {
|
|
3146
3147
|
value: (_b2 = rest.value) == null ? void 0 : _b2.toString()
|
|
3147
3148
|
})
|
|
@@ -3661,12 +3662,200 @@ function F_mailConfig() {
|
|
|
3661
3662
|
return /* @__PURE__ */ jsx77(F_mailConfig_Read, { emailModule: utils_converter_enumToSelectOptions(enum_emailConfigModule) });
|
|
3662
3663
|
}
|
|
3663
3664
|
|
|
3665
|
+
// src/modules-features/admin/core/mailTemplate/F_mailTemplate_Delete.tsx
|
|
3666
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
3667
|
+
function F_mailTemplate_Delete({ values }) {
|
|
3668
|
+
return /* @__PURE__ */ jsx78(
|
|
3669
|
+
MyActionIconDelete,
|
|
3670
|
+
{
|
|
3671
|
+
contextData: values == null ? void 0 : values.code,
|
|
3672
|
+
onSubmit: () => {
|
|
3673
|
+
return baseAxios_default.post("/EmailTemplate/Delete", {
|
|
3674
|
+
id: values == null ? void 0 : values.id
|
|
3675
|
+
});
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
);
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
// src/modules-features/admin/core/mailTemplate/F_mailTemplate_Read.tsx
|
|
3682
|
+
import { useMemo as useMemo19 } from "react";
|
|
3683
|
+
|
|
3684
|
+
// src/modules-features/admin/core/mailTemplate/F_template_CreateUpdate.tsx
|
|
3685
|
+
import { Button as Button3, Grid as Grid4, Select as Select3 } from "@mantine/core";
|
|
3686
|
+
import { useForm as useForm24 } from "@mantine/form";
|
|
3687
|
+
import { useMemo as useMemo18 } from "react";
|
|
3688
|
+
import { Fragment as Fragment2, jsx as jsx79, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3689
|
+
function F_mailTemplate_CreateUpdate({ values }) {
|
|
3690
|
+
console.log("\u{1F680} ~ F_mailTemplate_CreateUpdate ~ values:", values);
|
|
3691
|
+
const form = useForm24({
|
|
3692
|
+
mode: "uncontrolled",
|
|
3693
|
+
initialValues: values ? values : {}
|
|
3694
|
+
});
|
|
3695
|
+
const columns = useMemo18(() => [
|
|
3696
|
+
{
|
|
3697
|
+
header: "M\xE3 bi\u1EBFn",
|
|
3698
|
+
accessorKey: "variableCode"
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
header: "T\xEAn bi\u1EBFn",
|
|
3702
|
+
accessorKey: "variableName"
|
|
3703
|
+
}
|
|
3704
|
+
], []);
|
|
3705
|
+
function handleSubmit() {
|
|
3706
|
+
const formValues = form.getValues();
|
|
3707
|
+
return baseAxios_default.post(`/EmailConfig/${values ? "update" : "create"}`, {
|
|
3708
|
+
"id": values ? formValues.id : 0,
|
|
3709
|
+
"code": "string",
|
|
3710
|
+
"name": "string",
|
|
3711
|
+
"concurrencyStamp": "string",
|
|
3712
|
+
"isEnabled": true,
|
|
3713
|
+
"order": 0,
|
|
3714
|
+
"emailModule": formValues.emailModule,
|
|
3715
|
+
"hostMailServer": formValues.hostMailServer,
|
|
3716
|
+
"outgoingPort": formValues.outgoingPort,
|
|
3717
|
+
"incomingPort": formValues.incomingPort,
|
|
3718
|
+
"sll": formValues.sll,
|
|
3719
|
+
"userName": formValues.userName,
|
|
3720
|
+
"password": formValues.password
|
|
3721
|
+
});
|
|
3722
|
+
}
|
|
3723
|
+
if (values) return /* @__PURE__ */ jsx79(
|
|
3724
|
+
MyActionIconUpdate,
|
|
3725
|
+
{
|
|
3726
|
+
form,
|
|
3727
|
+
onSubmit: handleSubmit,
|
|
3728
|
+
modalSize: "90%",
|
|
3729
|
+
children: /* @__PURE__ */ jsx79(FormInput3, { columns, form })
|
|
3730
|
+
}
|
|
3731
|
+
);
|
|
3732
|
+
return /* @__PURE__ */ jsx79(
|
|
3733
|
+
MyButtonCreate,
|
|
3734
|
+
{
|
|
3735
|
+
form,
|
|
3736
|
+
onSubmit: handleSubmit,
|
|
3737
|
+
modalSize: "90%",
|
|
3738
|
+
children: /* @__PURE__ */ jsx79(FormInput3, { columns, form })
|
|
3739
|
+
}
|
|
3740
|
+
);
|
|
3741
|
+
}
|
|
3742
|
+
function FormInput3({ columns, form }) {
|
|
3743
|
+
const handleInsertVariable = (variableCode) => {
|
|
3744
|
+
const current = form.values.body || "";
|
|
3745
|
+
form.setFieldValue("body", current + ` {{${variableCode}}}`);
|
|
3746
|
+
};
|
|
3747
|
+
return /* @__PURE__ */ jsxs48(Fragment2, { children: [
|
|
3748
|
+
/* @__PURE__ */ jsx79(
|
|
3749
|
+
MyTextInput,
|
|
3750
|
+
__spreadValues({
|
|
3751
|
+
label: "Ti\xEAu \u0111\u1EC1"
|
|
3752
|
+
}, form.getInputProps("subject"))
|
|
3753
|
+
),
|
|
3754
|
+
/* @__PURE__ */ jsx79(
|
|
3755
|
+
Select3,
|
|
3756
|
+
__spreadValues({
|
|
3757
|
+
label: "Lo\u1EA1i h\xE0nh \u0111\u1ED9ng"
|
|
3758
|
+
}, form.getInputProps("actionType"))
|
|
3759
|
+
),
|
|
3760
|
+
/* @__PURE__ */ jsx79(MyFieldset, { title: "N\u1ED9i dung th\xF4ng b\xE1o", children: /* @__PURE__ */ jsxs48(Grid4, { justify: "center", align: "end", children: [
|
|
3761
|
+
/* @__PURE__ */ jsx79(Grid4.Col, { span: 7, children: /* @__PURE__ */ jsx79(
|
|
3762
|
+
MyRichTextEditor,
|
|
3763
|
+
{
|
|
3764
|
+
value: form.values.body,
|
|
3765
|
+
onChange: (value) => form.setFieldValue("body", value),
|
|
3766
|
+
scrollAreaAutosizeProps: { mah: 350 },
|
|
3767
|
+
richTextEditorContentProps: { mih: 350 }
|
|
3768
|
+
}
|
|
3769
|
+
) }),
|
|
3770
|
+
/* @__PURE__ */ jsx79(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx79(
|
|
3771
|
+
MyDataTable,
|
|
3772
|
+
{
|
|
3773
|
+
mantineTableContainerProps: { mih: 290 },
|
|
3774
|
+
columns,
|
|
3775
|
+
data,
|
|
3776
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsx79(MyCenterFull, { children: /* @__PURE__ */ jsx79(Button3, { onClick: () => handleInsertVariable(row.original.variableCode), children: "Ch\u1ECDn" }) })
|
|
3777
|
+
}
|
|
3778
|
+
) })
|
|
3779
|
+
] }) })
|
|
3780
|
+
] });
|
|
3781
|
+
}
|
|
3782
|
+
var data = [
|
|
3783
|
+
{
|
|
3784
|
+
id: 1,
|
|
3785
|
+
variableCode: "MaVC",
|
|
3786
|
+
variableName: "M\xE3 vi\xEAn ch\u1EE9c"
|
|
3787
|
+
},
|
|
3788
|
+
{
|
|
3789
|
+
id: 2,
|
|
3790
|
+
variableCode: "HoTenVC",
|
|
3791
|
+
variableName: "H\u1ECD t\xEAn vi\xEAn ch\u1EE9c"
|
|
3792
|
+
},
|
|
3793
|
+
{
|
|
3794
|
+
id: 3,
|
|
3795
|
+
variableCode: "TenHoatdon",
|
|
3796
|
+
variableName: "T\xEAn ho\u1EA1t \u0111\u1ED9ng"
|
|
3797
|
+
},
|
|
3798
|
+
{
|
|
3799
|
+
id: 4,
|
|
3800
|
+
variableCode: "MaDKTC",
|
|
3801
|
+
variableName: "M\xE3 \u0111\u0103ng k\xFD tuy\u1EC3n ch\u1EE9c"
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
id: 5,
|
|
3805
|
+
variableCode: "TenDT",
|
|
3806
|
+
variableName: "T\xEAn \u0111\u1EC1 t\xE0i"
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
id: 6,
|
|
3810
|
+
variableCode: "KQKT",
|
|
3811
|
+
variableName: "Tr\u1EA1ng th\xE1i duy\u1EC7t"
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
id: 7,
|
|
3815
|
+
variableCode: "NXKT",
|
|
3816
|
+
variableName: "Nh\u1EADn x\xE9t duy\u1EC7t"
|
|
3817
|
+
}
|
|
3818
|
+
];
|
|
3819
|
+
|
|
3820
|
+
// src/modules-features/admin/core/mailTemplate/F_mailTemplate_Read.tsx
|
|
3821
|
+
import { jsx as jsx80, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3822
|
+
function F_mailTemplate_Read() {
|
|
3823
|
+
const columns = useMemo19(() => [
|
|
3824
|
+
{
|
|
3825
|
+
header: "Ti\xEAu \u0111\u1EC1 th\xF4ng b\xE1o",
|
|
3826
|
+
accessorKey: "subject"
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
header: "Lo\u1EA1i h\xE0nh \u0111\u1ED9ng",
|
|
3830
|
+
accessorKey: "actionType"
|
|
3831
|
+
}
|
|
3832
|
+
], []);
|
|
3833
|
+
return /* @__PURE__ */ jsx80(
|
|
3834
|
+
MyDataTable,
|
|
3835
|
+
{
|
|
3836
|
+
columns,
|
|
3837
|
+
data: mockData3 || [],
|
|
3838
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx80(F_mailTemplate_CreateUpdate, {}),
|
|
3839
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs49(MyCenterFull, { children: [
|
|
3840
|
+
/* @__PURE__ */ jsx80(F_mailTemplate_CreateUpdate, { values: row.original }),
|
|
3841
|
+
/* @__PURE__ */ jsx80(F_mailConfig_Delete, { values: row.original })
|
|
3842
|
+
] })
|
|
3843
|
+
}
|
|
3844
|
+
);
|
|
3845
|
+
}
|
|
3846
|
+
var mockData3 = [
|
|
3847
|
+
{
|
|
3848
|
+
subject: "Th\xF4ng b\xE1o ki\u1EC3m duy\u1EC7t ho\u1EA1t \u0111\u1ED9ng",
|
|
3849
|
+
actionType: 1
|
|
3850
|
+
}
|
|
3851
|
+
];
|
|
3852
|
+
|
|
3664
3853
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
|
3665
3854
|
import { useEffect as useEffect7 } from "react";
|
|
3666
3855
|
|
|
3667
3856
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
|
3668
|
-
import { Center as Center2, Grid as
|
|
3669
|
-
import { useForm as
|
|
3857
|
+
import { Center as Center2, Grid as Grid5, Image, Paper as Paper5 } from "@mantine/core";
|
|
3858
|
+
import { useForm as useForm25 } from "@mantine/form";
|
|
3670
3859
|
import { useEffect as useEffect6 } from "react";
|
|
3671
3860
|
|
|
3672
3861
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
|
@@ -3682,7 +3871,7 @@ function useS_moduleConfig() {
|
|
|
3682
3871
|
}
|
|
3683
3872
|
|
|
3684
3873
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
|
3685
|
-
import { jsx as
|
|
3874
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3686
3875
|
function F_moduleConfig_Save({
|
|
3687
3876
|
form
|
|
3688
3877
|
}) {
|
|
@@ -3716,7 +3905,7 @@ function F_moduleConfig_Save({
|
|
|
3716
3905
|
}
|
|
3717
3906
|
});
|
|
3718
3907
|
}
|
|
3719
|
-
return /* @__PURE__ */
|
|
3908
|
+
return /* @__PURE__ */ jsx81(
|
|
3720
3909
|
MyButton,
|
|
3721
3910
|
{
|
|
3722
3911
|
disabled: !form.isDirty(),
|
|
@@ -3727,11 +3916,11 @@ function F_moduleConfig_Save({
|
|
|
3727
3916
|
}
|
|
3728
3917
|
|
|
3729
3918
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
|
3730
|
-
import { jsx as
|
|
3919
|
+
import { jsx as jsx82, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3731
3920
|
function F_moduleConfig_Form() {
|
|
3732
3921
|
var _a, _b, _c, _d;
|
|
3733
3922
|
const query = useQ_AQ_GetAQModule();
|
|
3734
|
-
const form =
|
|
3923
|
+
const form = useForm25({
|
|
3735
3924
|
mode: "uncontrolled",
|
|
3736
3925
|
validate: {
|
|
3737
3926
|
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
@@ -3780,14 +3969,14 @@ function F_moduleConfig_Form() {
|
|
|
3780
3969
|
form.setValues(values);
|
|
3781
3970
|
}
|
|
3782
3971
|
}, []);
|
|
3783
|
-
return /* @__PURE__ */
|
|
3784
|
-
/* @__PURE__ */
|
|
3785
|
-
/* @__PURE__ */
|
|
3786
|
-
/* @__PURE__ */
|
|
3787
|
-
/* @__PURE__ */
|
|
3788
|
-
/* @__PURE__ */
|
|
3789
|
-
/* @__PURE__ */
|
|
3790
|
-
/* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsxs50(Paper5, { p: "md", children: [
|
|
3973
|
+
/* @__PURE__ */ jsxs50(Grid5, { children: [
|
|
3974
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: 5, children: /* @__PURE__ */ jsx82(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
|
3975
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx82(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
|
3976
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: 12, children: /* @__PURE__ */ jsx82(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
|
3977
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
|
3978
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
|
3979
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(
|
|
3791
3980
|
MyDateInput,
|
|
3792
3981
|
{
|
|
3793
3982
|
value: form.getValues().registrationDate,
|
|
@@ -3796,7 +3985,7 @@ function F_moduleConfig_Form() {
|
|
|
3796
3985
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
|
3797
3986
|
}
|
|
3798
3987
|
) }),
|
|
3799
|
-
/* @__PURE__ */
|
|
3988
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx82(
|
|
3800
3989
|
MyDateInput,
|
|
3801
3990
|
{
|
|
3802
3991
|
value: form.getValues().limiteDate,
|
|
@@ -3805,8 +3994,8 @@ function F_moduleConfig_Form() {
|
|
|
3805
3994
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
|
3806
3995
|
}
|
|
3807
3996
|
) }),
|
|
3808
|
-
/* @__PURE__ */
|
|
3809
|
-
/* @__PURE__ */
|
|
3997
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs50(MyFlexColumn, { children: [
|
|
3998
|
+
/* @__PURE__ */ jsx82(
|
|
3810
3999
|
MyFileInput,
|
|
3811
4000
|
{
|
|
3812
4001
|
accept: "image/png,image/jpeg",
|
|
@@ -3818,7 +4007,7 @@ function F_moduleConfig_Form() {
|
|
|
3818
4007
|
}
|
|
3819
4008
|
}
|
|
3820
4009
|
),
|
|
3821
|
-
/* @__PURE__ */
|
|
4010
|
+
/* @__PURE__ */ jsx82(Paper5, { w: "100%", children: /* @__PURE__ */ jsx82(Center2, { children: /* @__PURE__ */ jsx82(
|
|
3822
4011
|
Image,
|
|
3823
4012
|
{
|
|
3824
4013
|
fit: "contain",
|
|
@@ -3831,8 +4020,8 @@ function F_moduleConfig_Form() {
|
|
|
3831
4020
|
}
|
|
3832
4021
|
) }) })
|
|
3833
4022
|
] }) }),
|
|
3834
|
-
/* @__PURE__ */
|
|
3835
|
-
/* @__PURE__ */
|
|
4023
|
+
/* @__PURE__ */ jsx82(Grid5.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs50(MyFlexColumn, { children: [
|
|
4024
|
+
/* @__PURE__ */ jsx82(
|
|
3836
4025
|
MyFileInput,
|
|
3837
4026
|
{
|
|
3838
4027
|
accept: "image/png,image/jpeg",
|
|
@@ -3844,7 +4033,7 @@ function F_moduleConfig_Form() {
|
|
|
3844
4033
|
}
|
|
3845
4034
|
}
|
|
3846
4035
|
),
|
|
3847
|
-
/* @__PURE__ */
|
|
4036
|
+
/* @__PURE__ */ jsx82(Paper5, { children: /* @__PURE__ */ jsx82(Center2, { children: /* @__PURE__ */ jsx82(
|
|
3848
4037
|
Image,
|
|
3849
4038
|
{
|
|
3850
4039
|
fit: "contain",
|
|
@@ -3858,30 +4047,30 @@ function F_moduleConfig_Form() {
|
|
|
3858
4047
|
) }) })
|
|
3859
4048
|
] }) })
|
|
3860
4049
|
] }),
|
|
3861
|
-
/* @__PURE__ */
|
|
4050
|
+
/* @__PURE__ */ jsx82(MyFlexEnd, { children: /* @__PURE__ */ jsx82(F_moduleConfig_Save, { form }) })
|
|
3862
4051
|
] });
|
|
3863
4052
|
}
|
|
3864
4053
|
|
|
3865
4054
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
|
3866
|
-
import { jsx as
|
|
4055
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3867
4056
|
function F_moduleConfig({ AQModuleId }) {
|
|
3868
4057
|
const store = useS_moduleConfig();
|
|
3869
4058
|
useEffect7(() => {
|
|
3870
4059
|
store.setProperty("AQModuleId", AQModuleId);
|
|
3871
4060
|
}, []);
|
|
3872
|
-
return /* @__PURE__ */
|
|
4061
|
+
return /* @__PURE__ */ jsx83(F_moduleConfig_Form, {});
|
|
3873
4062
|
}
|
|
3874
4063
|
|
|
3875
4064
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
|
3876
4065
|
import { Space as Space5 } from "@mantine/core";
|
|
3877
4066
|
|
|
3878
4067
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Create.tsx
|
|
3879
|
-
import { useForm as
|
|
3880
|
-
import { jsx as
|
|
4068
|
+
import { useForm as useForm26 } from "@mantine/form";
|
|
4069
|
+
import { jsx as jsx84, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3881
4070
|
function F_organizationPolicyDocs_Create({
|
|
3882
4071
|
RegulationsTypeId
|
|
3883
4072
|
}) {
|
|
3884
|
-
const form =
|
|
4073
|
+
const form = useForm26({
|
|
3885
4074
|
mode: "uncontrolled",
|
|
3886
4075
|
validate: {
|
|
3887
4076
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
@@ -3891,7 +4080,7 @@ function F_organizationPolicyDocs_Create({
|
|
|
3891
4080
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
3892
4081
|
}
|
|
3893
4082
|
});
|
|
3894
|
-
return /* @__PURE__ */
|
|
4083
|
+
return /* @__PURE__ */ jsxs51(
|
|
3895
4084
|
MyButtonCreate,
|
|
3896
4085
|
{
|
|
3897
4086
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
|
@@ -3904,28 +4093,28 @@ function F_organizationPolicyDocs_Create({
|
|
|
3904
4093
|
return service_document.create(body);
|
|
3905
4094
|
},
|
|
3906
4095
|
children: [
|
|
3907
|
-
/* @__PURE__ */
|
|
4096
|
+
/* @__PURE__ */ jsx84(
|
|
3908
4097
|
MyTextInput,
|
|
3909
4098
|
__spreadValues({
|
|
3910
4099
|
withAsterisk: true,
|
|
3911
4100
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
|
3912
4101
|
}, form.getInputProps("decisionCode"))
|
|
3913
4102
|
),
|
|
3914
|
-
/* @__PURE__ */
|
|
4103
|
+
/* @__PURE__ */ jsx84(
|
|
3915
4104
|
MyDateInput,
|
|
3916
4105
|
__spreadValues({
|
|
3917
4106
|
withAsterisk: true,
|
|
3918
4107
|
label: "Ng\xE0y ban h\xE0nh"
|
|
3919
4108
|
}, form.getInputProps("promulgateDate"))
|
|
3920
4109
|
),
|
|
3921
|
-
/* @__PURE__ */
|
|
4110
|
+
/* @__PURE__ */ jsx84(
|
|
3922
4111
|
MyTextInput,
|
|
3923
4112
|
__spreadValues({
|
|
3924
4113
|
withAsterisk: true,
|
|
3925
4114
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
3926
4115
|
}, form.getInputProps("name"))
|
|
3927
4116
|
),
|
|
3928
|
-
/* @__PURE__ */
|
|
4117
|
+
/* @__PURE__ */ jsx84(
|
|
3929
4118
|
F_core18256_Select,
|
|
3930
4119
|
__spreadValues({
|
|
3931
4120
|
withAsterisk: true,
|
|
@@ -3933,14 +4122,14 @@ function F_organizationPolicyDocs_Create({
|
|
|
3933
4122
|
documentTypeId: RegulationsTypeId
|
|
3934
4123
|
}, form.getInputProps("documentAttributeId"))
|
|
3935
4124
|
),
|
|
3936
|
-
/* @__PURE__ */
|
|
4125
|
+
/* @__PURE__ */ jsx84(
|
|
3937
4126
|
MyFileInput,
|
|
3938
4127
|
__spreadValues({
|
|
3939
4128
|
withAsterisk: true,
|
|
3940
4129
|
label: "V\u0103n b\u1EA3n"
|
|
3941
4130
|
}, form.getInputProps("file"))
|
|
3942
4131
|
),
|
|
3943
|
-
/* @__PURE__ */
|
|
4132
|
+
/* @__PURE__ */ jsx84(
|
|
3944
4133
|
MyNumberInput,
|
|
3945
4134
|
__spreadValues({
|
|
3946
4135
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
|
@@ -3954,15 +4143,15 @@ function F_organizationPolicyDocs_Create({
|
|
|
3954
4143
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
|
3955
4144
|
import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton6 } from "@mantine/core";
|
|
3956
4145
|
import { IconBug as IconBug5 } from "@tabler/icons-react";
|
|
3957
|
-
import { useMemo as
|
|
4146
|
+
import { useMemo as useMemo20 } from "react";
|
|
3958
4147
|
|
|
3959
4148
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
|
|
3960
|
-
import { jsx as
|
|
4149
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
3961
4150
|
function F_organizationPolicyDocs_Delete({
|
|
3962
4151
|
id,
|
|
3963
4152
|
contextData
|
|
3964
4153
|
}) {
|
|
3965
|
-
return /* @__PURE__ */
|
|
4154
|
+
return /* @__PURE__ */ jsx85(
|
|
3966
4155
|
MyActionIconDelete,
|
|
3967
4156
|
{
|
|
3968
4157
|
contextData,
|
|
@@ -3972,14 +4161,14 @@ function F_organizationPolicyDocs_Delete({
|
|
|
3972
4161
|
}
|
|
3973
4162
|
|
|
3974
4163
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Update.tsx
|
|
3975
|
-
import { useForm as
|
|
3976
|
-
import { jsx as
|
|
4164
|
+
import { useForm as useForm27 } from "@mantine/form";
|
|
4165
|
+
import { jsx as jsx86, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3977
4166
|
function F_organizationPolicyDocs_Update({
|
|
3978
4167
|
values,
|
|
3979
4168
|
RegulationsTypeId
|
|
3980
4169
|
}) {
|
|
3981
4170
|
var _a;
|
|
3982
|
-
const form =
|
|
4171
|
+
const form = useForm27({
|
|
3983
4172
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
|
3984
4173
|
file: new File(
|
|
3985
4174
|
[],
|
|
@@ -3995,7 +4184,7 @@ function F_organizationPolicyDocs_Update({
|
|
|
3995
4184
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
3996
4185
|
}
|
|
3997
4186
|
});
|
|
3998
|
-
return /* @__PURE__ */
|
|
4187
|
+
return /* @__PURE__ */ jsxs52(
|
|
3999
4188
|
MyActionIconUpdate,
|
|
4000
4189
|
{
|
|
4001
4190
|
form,
|
|
@@ -4006,7 +4195,7 @@ function F_organizationPolicyDocs_Update({
|
|
|
4006
4195
|
return service_document.update(body);
|
|
4007
4196
|
},
|
|
4008
4197
|
children: [
|
|
4009
|
-
/* @__PURE__ */
|
|
4198
|
+
/* @__PURE__ */ jsx86(
|
|
4010
4199
|
MyTextInput,
|
|
4011
4200
|
__spreadValues({
|
|
4012
4201
|
withAsterisk: true,
|
|
@@ -4014,21 +4203,21 @@ function F_organizationPolicyDocs_Update({
|
|
|
4014
4203
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
|
4015
4204
|
}, form.getInputProps("decisionCode"))
|
|
4016
4205
|
),
|
|
4017
|
-
/* @__PURE__ */
|
|
4206
|
+
/* @__PURE__ */ jsx86(
|
|
4018
4207
|
MyDateInput,
|
|
4019
4208
|
__spreadValues({
|
|
4020
4209
|
withAsterisk: true,
|
|
4021
4210
|
label: "Ng\xE0y ban h\xE0nh"
|
|
4022
4211
|
}, form.getInputProps("promulgateDate"))
|
|
4023
4212
|
),
|
|
4024
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ jsx86(
|
|
4025
4214
|
MyTextInput,
|
|
4026
4215
|
__spreadValues({
|
|
4027
4216
|
withAsterisk: true,
|
|
4028
4217
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
4029
4218
|
}, form.getInputProps("name"))
|
|
4030
4219
|
),
|
|
4031
|
-
/* @__PURE__ */
|
|
4220
|
+
/* @__PURE__ */ jsx86(
|
|
4032
4221
|
F_core18256_Select,
|
|
4033
4222
|
__spreadValues({
|
|
4034
4223
|
withAsterisk: true,
|
|
@@ -4036,14 +4225,14 @@ function F_organizationPolicyDocs_Update({
|
|
|
4036
4225
|
documentTypeId: RegulationsTypeId
|
|
4037
4226
|
}, form.getInputProps("documentAttributeId"))
|
|
4038
4227
|
),
|
|
4039
|
-
/* @__PURE__ */
|
|
4228
|
+
/* @__PURE__ */ jsx86(
|
|
4040
4229
|
MyFileInput,
|
|
4041
4230
|
__spreadValues({
|
|
4042
4231
|
withAsterisk: true,
|
|
4043
4232
|
label: "V\u0103n b\u1EA3n"
|
|
4044
4233
|
}, form.getInputProps("file"))
|
|
4045
4234
|
),
|
|
4046
|
-
/* @__PURE__ */
|
|
4235
|
+
/* @__PURE__ */ jsx86(
|
|
4047
4236
|
MyNumberInput,
|
|
4048
4237
|
__spreadValues({
|
|
4049
4238
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
|
@@ -4055,7 +4244,7 @@ function F_organizationPolicyDocs_Update({
|
|
|
4055
4244
|
}
|
|
4056
4245
|
|
|
4057
4246
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
|
4058
|
-
import { jsx as
|
|
4247
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
4059
4248
|
function F_organizationPolicyDocs_Read({
|
|
4060
4249
|
RegulationsTypeId
|
|
4061
4250
|
}) {
|
|
@@ -4065,10 +4254,10 @@ function F_organizationPolicyDocs_Read({
|
|
|
4065
4254
|
axiosFn: () => service_documentAttribute.GetByType(RegulationsTypeId)
|
|
4066
4255
|
});
|
|
4067
4256
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
|
4068
|
-
return /* @__PURE__ */
|
|
4257
|
+
return /* @__PURE__ */ jsx87(Blockquote5, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
4069
4258
|
if (documentAttributeQuery.isError)
|
|
4070
|
-
return /* @__PURE__ */
|
|
4071
|
-
return /* @__PURE__ */
|
|
4259
|
+
return /* @__PURE__ */ jsx87(Alert5, { icon: /* @__PURE__ */ jsx87(IconBug5, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
|
4260
|
+
return /* @__PURE__ */ jsx87(Skeleton6, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx87(MyFlexColumn, { children: /* @__PURE__ */ jsx87(
|
|
4072
4261
|
Accordion5,
|
|
4073
4262
|
{
|
|
4074
4263
|
variant: "separated",
|
|
@@ -4086,7 +4275,7 @@ function F_organizationPolicyDocs_Read({
|
|
|
4086
4275
|
}
|
|
4087
4276
|
),
|
|
4088
4277
|
multiple: true,
|
|
4089
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
4278
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx87(
|
|
4090
4279
|
SubRead5,
|
|
4091
4280
|
{
|
|
4092
4281
|
name: item.name,
|
|
@@ -4107,7 +4296,7 @@ function SubRead5({
|
|
|
4107
4296
|
queryKey: ["SF2_3Read" + documentType],
|
|
4108
4297
|
axiosFn: () => service_document.GetByDocumentAttribute(documentType)
|
|
4109
4298
|
});
|
|
4110
|
-
const columns =
|
|
4299
|
+
const columns = useMemo20(
|
|
4111
4300
|
() => [
|
|
4112
4301
|
{
|
|
4113
4302
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
|
@@ -4124,30 +4313,30 @@ function SubRead5({
|
|
|
4124
4313
|
{
|
|
4125
4314
|
header: "File",
|
|
4126
4315
|
accessorFn: (row) => {
|
|
4127
|
-
return /* @__PURE__ */
|
|
4316
|
+
return /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(MyButtonViewPDF, { id: row.id }) });
|
|
4128
4317
|
}
|
|
4129
4318
|
}
|
|
4130
4319
|
],
|
|
4131
4320
|
[]
|
|
4132
4321
|
);
|
|
4133
|
-
return /* @__PURE__ */
|
|
4134
|
-
/* @__PURE__ */
|
|
4135
|
-
/* @__PURE__ */
|
|
4322
|
+
return /* @__PURE__ */ jsxs53(Accordion5.Item, { value: documentType.toString(), children: [
|
|
4323
|
+
/* @__PURE__ */ jsx87(Accordion5.Control, { children: name }),
|
|
4324
|
+
/* @__PURE__ */ jsx87(Accordion5.Panel, { children: /* @__PURE__ */ jsx87(
|
|
4136
4325
|
MyDataTable,
|
|
4137
4326
|
{
|
|
4138
4327
|
isLoading: documentQuery.isLoading,
|
|
4139
4328
|
isError: documentQuery.isError,
|
|
4140
4329
|
columns,
|
|
4141
4330
|
data: documentQuery.data || [],
|
|
4142
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
|
4143
|
-
/* @__PURE__ */
|
|
4331
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs53(MyCenterFull, { children: [
|
|
4332
|
+
/* @__PURE__ */ jsx87(
|
|
4144
4333
|
F_organizationPolicyDocs_Update,
|
|
4145
4334
|
{
|
|
4146
4335
|
RegulationsTypeId,
|
|
4147
4336
|
values: row.original
|
|
4148
4337
|
}
|
|
4149
4338
|
),
|
|
4150
|
-
/* @__PURE__ */
|
|
4339
|
+
/* @__PURE__ */ jsx87(
|
|
4151
4340
|
F_organizationPolicyDocs_Delete,
|
|
4152
4341
|
{
|
|
4153
4342
|
id: row.original.id,
|
|
@@ -4161,12 +4350,12 @@ function SubRead5({
|
|
|
4161
4350
|
}
|
|
4162
4351
|
|
|
4163
4352
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
|
4164
|
-
import { Fragment as
|
|
4353
|
+
import { Fragment as Fragment3, jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
4165
4354
|
function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
|
4166
|
-
return /* @__PURE__ */
|
|
4167
|
-
/* @__PURE__ */
|
|
4168
|
-
/* @__PURE__ */
|
|
4169
|
-
/* @__PURE__ */
|
|
4355
|
+
return /* @__PURE__ */ jsxs54(Fragment3, { children: [
|
|
4356
|
+
/* @__PURE__ */ jsx88(MyFlexEnd, { children: /* @__PURE__ */ jsx88(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
|
|
4357
|
+
/* @__PURE__ */ jsx88(Space5, {}),
|
|
4358
|
+
/* @__PURE__ */ jsx88(F_organizationPolicyDocs_Read, { RegulationsTypeId })
|
|
4170
4359
|
] });
|
|
4171
4360
|
}
|
|
4172
4361
|
|
|
@@ -4176,22 +4365,22 @@ var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER7, baseAxio
|
|
|
4176
4365
|
|
|
4177
4366
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
|
4178
4367
|
import { Group as Group4 } from "@mantine/core";
|
|
4179
|
-
import { useMemo as
|
|
4368
|
+
import { useMemo as useMemo21 } from "react";
|
|
4180
4369
|
|
|
4181
4370
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
|
4182
|
-
import { jsx as
|
|
4371
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
4183
4372
|
function F_pageContentConfig_DeleteDescription() {
|
|
4184
|
-
return /* @__PURE__ */
|
|
4373
|
+
return /* @__PURE__ */ jsx89(MyButton2, { actionType: "delete" });
|
|
4185
4374
|
}
|
|
4186
4375
|
|
|
4187
4376
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
|
4188
|
-
import { jsx as
|
|
4377
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
4189
4378
|
function F_pageContentConfig_Export() {
|
|
4190
|
-
return /* @__PURE__ */
|
|
4379
|
+
return /* @__PURE__ */ jsx90(MyButton2, { actionType: "export" });
|
|
4191
4380
|
}
|
|
4192
4381
|
|
|
4193
4382
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
|
4194
|
-
import { jsx as
|
|
4383
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
4195
4384
|
function F_pageContentConfig_Save({ menuValues }) {
|
|
4196
4385
|
const updatePageConfigMutation = useMyReactMutation({
|
|
4197
4386
|
axiosFn: () => {
|
|
@@ -4199,11 +4388,11 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
|
4199
4388
|
return service_pageContent.updateList([{ id: 1 }]);
|
|
4200
4389
|
}
|
|
4201
4390
|
});
|
|
4202
|
-
return /* @__PURE__ */
|
|
4391
|
+
return /* @__PURE__ */ jsx91(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
|
4203
4392
|
}
|
|
4204
4393
|
|
|
4205
4394
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
|
4206
|
-
import { jsx as
|
|
4395
|
+
import { jsx as jsx92, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4207
4396
|
var groupToTwoLevels = (menu) => {
|
|
4208
4397
|
return menu.map((item) => {
|
|
4209
4398
|
if (item.links) {
|
|
@@ -4241,7 +4430,7 @@ function F_pageContentConfig_ReadMenu({ menudataPrototype }) {
|
|
|
4241
4430
|
}))
|
|
4242
4431
|
});
|
|
4243
4432
|
const device = useMyDevice();
|
|
4244
|
-
const columns =
|
|
4433
|
+
const columns = useMemo21(() => [
|
|
4245
4434
|
{
|
|
4246
4435
|
header: "Dashboard",
|
|
4247
4436
|
accessorKey: "name"
|
|
@@ -4251,42 +4440,42 @@ function F_pageContentConfig_ReadMenu({ menudataPrototype }) {
|
|
|
4251
4440
|
accessorKey: "description",
|
|
4252
4441
|
size: device.isPc ? 400 : 0,
|
|
4253
4442
|
Cell: () => {
|
|
4254
|
-
return /* @__PURE__ */
|
|
4443
|
+
return /* @__PURE__ */ jsx92(MyTextInput2, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
|
|
4255
4444
|
}
|
|
4256
4445
|
}
|
|
4257
4446
|
], []);
|
|
4258
|
-
return /* @__PURE__ */
|
|
4447
|
+
return /* @__PURE__ */ jsx92(
|
|
4259
4448
|
MyDataTable,
|
|
4260
4449
|
{
|
|
4261
4450
|
isLoading: pageContentQuery.isLoading,
|
|
4262
4451
|
isError: pageContentQuery.isError,
|
|
4263
4452
|
data: pageContentQuery.data || [],
|
|
4264
4453
|
columns,
|
|
4265
|
-
renderTopToolbarCustomActions: (row) => /* @__PURE__ */
|
|
4266
|
-
/* @__PURE__ */
|
|
4267
|
-
/* @__PURE__ */
|
|
4268
|
-
/* @__PURE__ */
|
|
4454
|
+
renderTopToolbarCustomActions: (row) => /* @__PURE__ */ jsxs55(Group4, { children: [
|
|
4455
|
+
/* @__PURE__ */ jsx92(F_pageContentConfig_Save, { menuValues: [] }),
|
|
4456
|
+
/* @__PURE__ */ jsx92(F_pageContentConfig_Export, {}),
|
|
4457
|
+
/* @__PURE__ */ jsx92(F_pageContentConfig_DeleteDescription, {})
|
|
4269
4458
|
] })
|
|
4270
4459
|
}
|
|
4271
4460
|
);
|
|
4272
4461
|
}
|
|
4273
4462
|
|
|
4274
4463
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
|
|
4275
|
-
import { jsx as
|
|
4464
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
4276
4465
|
function F_pageContentConfig({ menudataPrototype }) {
|
|
4277
|
-
return /* @__PURE__ */
|
|
4466
|
+
return /* @__PURE__ */ jsx93(F_pageContentConfig_ReadMenu, { menudataPrototype });
|
|
4278
4467
|
}
|
|
4279
4468
|
|
|
4280
4469
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
|
4281
4470
|
import { Group as Group5 } from "@mantine/core";
|
|
4282
4471
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
4283
|
-
import { useMemo as
|
|
4472
|
+
import { useMemo as useMemo22 } from "react";
|
|
4284
4473
|
|
|
4285
4474
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
|
|
4286
|
-
import { jsx as
|
|
4475
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
4287
4476
|
var ENDPOINT4 = "/Role/Delete";
|
|
4288
4477
|
function F_roleCatalog_Delete({ values }) {
|
|
4289
|
-
return /* @__PURE__ */
|
|
4478
|
+
return /* @__PURE__ */ jsx94(
|
|
4290
4479
|
MyActionIconDelete,
|
|
4291
4480
|
{
|
|
4292
4481
|
contextData: values.code,
|
|
@@ -4297,40 +4486,40 @@ function F_roleCatalog_Delete({ values }) {
|
|
|
4297
4486
|
|
|
4298
4487
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Form.tsx
|
|
4299
4488
|
import { Textarea as Textarea3 } from "@mantine/core";
|
|
4300
|
-
import { useForm as
|
|
4301
|
-
import { jsx as
|
|
4489
|
+
import { useForm as useForm28 } from "@mantine/form";
|
|
4490
|
+
import { jsx as jsx95, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4302
4491
|
function F_roleCatalog_Form({ values }) {
|
|
4303
|
-
const form =
|
|
4492
|
+
const form = useForm28({
|
|
4304
4493
|
mode: "uncontrolled",
|
|
4305
4494
|
initialValues: values
|
|
4306
4495
|
});
|
|
4307
|
-
if (values) return /* @__PURE__ */
|
|
4496
|
+
if (values) return /* @__PURE__ */ jsxs56(MyActionIconUpdate, { modalSize: "80%", form, onSubmit: async () => {
|
|
4308
4497
|
return await baseAxios_default.post("/Role/Update", __spreadProps(__spreadValues({}, form.getValues()), {
|
|
4309
4498
|
isActive: form.getValues().isActive == "\u0110ang ho\u1EA1t \u0111\u1ED9ng" ? true : false
|
|
4310
4499
|
}));
|
|
4311
4500
|
}, children: [
|
|
4312
|
-
/* @__PURE__ */
|
|
4313
|
-
/* @__PURE__ */
|
|
4314
|
-
/* @__PURE__ */
|
|
4315
|
-
/* @__PURE__ */
|
|
4501
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3 nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
4502
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "T\xEAn nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("name"))),
|
|
4503
|
+
/* @__PURE__ */ jsx95(MySelect2, __spreadValues({ label: "Tr\u1EA1ng th\xE1i nh\xF3m t\xE0i kho\u1EA3n", data: ["\u0110ang ho\u1EA1t \u0111\u1ED9ng", "Kh\xF3a t\xE0i kho\u1EA3n"] }, form.getInputProps("isActive"))),
|
|
4504
|
+
/* @__PURE__ */ jsx95(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
|
4316
4505
|
] });
|
|
4317
|
-
return /* @__PURE__ */
|
|
4506
|
+
return /* @__PURE__ */ jsxs56(MyButtonCreate, { modalSize: "80%", form, onSubmit: async () => {
|
|
4318
4507
|
return await baseAxios_default.post("/Role/Create", __spreadProps(__spreadValues({}, form.getValues()), {
|
|
4319
4508
|
isActive: form.getValues().isActive == "\u0110ang ho\u1EA1t \u0111\u1ED9ng" ? true : false
|
|
4320
4509
|
}));
|
|
4321
4510
|
}, children: [
|
|
4322
|
-
/* @__PURE__ */
|
|
4323
|
-
/* @__PURE__ */
|
|
4324
|
-
/* @__PURE__ */
|
|
4325
|
-
/* @__PURE__ */
|
|
4511
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "M\xE3 nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
4512
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "T\xEAn nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("name"))),
|
|
4513
|
+
/* @__PURE__ */ jsx95(MySelect2, __spreadValues({ label: "Tr\u1EA1ng th\xE1i nh\xF3m t\xE0i kho\u1EA3n", data: ["\u0110ang ho\u1EA1t \u0111\u1ED9ng", "Kh\xF3a t\xE0i kho\u1EA3n"] }, form.getInputProps("isActive"))),
|
|
4514
|
+
/* @__PURE__ */ jsx95(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
|
4326
4515
|
] });
|
|
4327
4516
|
}
|
|
4328
4517
|
|
|
4329
4518
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
|
4330
|
-
import { jsx as
|
|
4519
|
+
import { jsx as jsx96, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
4331
4520
|
function F_roleCatalog_Read() {
|
|
4332
4521
|
const query = useQ_core47643_GetAdminRole2();
|
|
4333
|
-
const columns =
|
|
4522
|
+
const columns = useMemo22(() => [
|
|
4334
4523
|
{
|
|
4335
4524
|
header: "M\xE3 nh\xF3m",
|
|
4336
4525
|
accessorKey: "code"
|
|
@@ -4349,17 +4538,17 @@ function F_roleCatalog_Read() {
|
|
|
4349
4538
|
Cell: ({ row }) => row.original.isActive ? "\u0110ang ho\u1EA1t \u0111\u1ED9ng" : "Kh\xF3a t\xE0i kho\u1EA3n"
|
|
4350
4539
|
}
|
|
4351
4540
|
], []);
|
|
4352
|
-
return /* @__PURE__ */
|
|
4541
|
+
return /* @__PURE__ */ jsx96(
|
|
4353
4542
|
MyDataTable,
|
|
4354
4543
|
{
|
|
4355
4544
|
isLoading: query.isLoading,
|
|
4356
4545
|
isError: query.isError,
|
|
4357
4546
|
data: query.data || [],
|
|
4358
4547
|
columns,
|
|
4359
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
4360
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
|
4361
|
-
/* @__PURE__ */
|
|
4362
|
-
/* @__PURE__ */
|
|
4548
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx96(Group5, { children: /* @__PURE__ */ jsx96(F_roleCatalog_Form, {}) }),
|
|
4549
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs57(MyCenterFull, { children: [
|
|
4550
|
+
/* @__PURE__ */ jsx96(F_roleCatalog_Form, { values: row.original }),
|
|
4551
|
+
/* @__PURE__ */ jsx96(F_roleCatalog_Delete, { values: row.original })
|
|
4363
4552
|
] })
|
|
4364
4553
|
}
|
|
4365
4554
|
);
|
|
@@ -4369,13 +4558,13 @@ function useQ_core47643_GetAdminRole2() {
|
|
|
4369
4558
|
queryKey: ["useQ_core47643_GetAdminRole"],
|
|
4370
4559
|
queryFn: async () => {
|
|
4371
4560
|
const res = await baseAxios_default.get("/Role/GetAdminRole");
|
|
4372
|
-
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return
|
|
4561
|
+
if (process.env.NEXT_PUBLIC_APP_PROTOTYPE == "1") return mockData4;
|
|
4373
4562
|
return res.data.data;
|
|
4374
4563
|
}
|
|
4375
4564
|
});
|
|
4376
4565
|
return query;
|
|
4377
4566
|
}
|
|
4378
|
-
var
|
|
4567
|
+
var mockData4 = [
|
|
4379
4568
|
{
|
|
4380
4569
|
"aqModuleId": 3,
|
|
4381
4570
|
"id": 6,
|
|
@@ -4411,18 +4600,18 @@ var mockData3 = [
|
|
|
4411
4600
|
];
|
|
4412
4601
|
|
|
4413
4602
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog.tsx
|
|
4414
|
-
import { jsx as
|
|
4603
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
4415
4604
|
function F_roleCatalog() {
|
|
4416
|
-
return /* @__PURE__ */
|
|
4605
|
+
return /* @__PURE__ */ jsx97(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx97(F_roleCatalog_Read, {}) });
|
|
4417
4606
|
}
|
|
4418
4607
|
|
|
4419
4608
|
// src/modules/Role/adapter/Adapter_RoleDelete.tsx
|
|
4420
|
-
import { jsx as
|
|
4609
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
4421
4610
|
function Adapter_RoleDelete({
|
|
4422
4611
|
id,
|
|
4423
4612
|
contextData
|
|
4424
4613
|
}) {
|
|
4425
|
-
return /* @__PURE__ */
|
|
4614
|
+
return /* @__PURE__ */ jsx98(
|
|
4426
4615
|
MyActionIconDelete,
|
|
4427
4616
|
{
|
|
4428
4617
|
onSubmit: () => service_role.delete(id),
|
|
@@ -4432,11 +4621,11 @@ function Adapter_RoleDelete({
|
|
|
4432
4621
|
}
|
|
4433
4622
|
|
|
4434
4623
|
// src/modules/Role/usecase/UseCase_RoleTable.tsx
|
|
4435
|
-
import { useMemo as
|
|
4436
|
-
import { jsx as
|
|
4624
|
+
import { useMemo as useMemo23 } from "react";
|
|
4625
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
4437
4626
|
function UseCase_RoleTable2(_a) {
|
|
4438
4627
|
var rest = __objRest(_a, []);
|
|
4439
|
-
const allColumns =
|
|
4628
|
+
const allColumns = useMemo23(() => [
|
|
4440
4629
|
{
|
|
4441
4630
|
header: "M\xE3 nh\xF3m",
|
|
4442
4631
|
accessorKey: "code",
|
|
@@ -4461,7 +4650,7 @@ function UseCase_RoleTable2(_a) {
|
|
|
4461
4650
|
}
|
|
4462
4651
|
}
|
|
4463
4652
|
], []);
|
|
4464
|
-
return /* @__PURE__ */
|
|
4653
|
+
return /* @__PURE__ */ jsx99(
|
|
4465
4654
|
MyDataTable,
|
|
4466
4655
|
__spreadValues({
|
|
4467
4656
|
columns: allColumns
|
|
@@ -4484,7 +4673,7 @@ var mapper_role = {
|
|
|
4484
4673
|
};
|
|
4485
4674
|
|
|
4486
4675
|
// src/modules/Role/adapter/Adapter_RoleTable.tsx
|
|
4487
|
-
import { jsx as
|
|
4676
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
4488
4677
|
function Adapter_RoleTable2(_a) {
|
|
4489
4678
|
var rest = __objRest(_a, []);
|
|
4490
4679
|
var _a2;
|
|
@@ -4492,7 +4681,7 @@ function Adapter_RoleTable2(_a) {
|
|
|
4492
4681
|
queryKey: ["roles"],
|
|
4493
4682
|
axiosFn: () => service_role.getAdminRole()
|
|
4494
4683
|
});
|
|
4495
|
-
return /* @__PURE__ */
|
|
4684
|
+
return /* @__PURE__ */ jsx100(
|
|
4496
4685
|
UseCase_RoleTable2,
|
|
4497
4686
|
__spreadValues({
|
|
4498
4687
|
data: ((_a2 = query.data) == null ? void 0 : _a2.map(mapper_role.mapToDomain)) || [],
|
|
@@ -4503,32 +4692,32 @@ function Adapter_RoleTable2(_a) {
|
|
|
4503
4692
|
}
|
|
4504
4693
|
|
|
4505
4694
|
// src/modules/Role/adapter/Adapter_RoleForm.tsx
|
|
4506
|
-
import { useForm as
|
|
4695
|
+
import { useForm as useForm29 } from "@mantine/form";
|
|
4507
4696
|
import { useEffect as useEffect8 } from "react";
|
|
4508
4697
|
|
|
4509
4698
|
// src/modules/Role/usecase/UseCase_RoleForm.tsx
|
|
4510
4699
|
import { Stack as Stack4 } from "@mantine/core";
|
|
4511
|
-
import { jsx as
|
|
4700
|
+
import { jsx as jsx101, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
4512
4701
|
function UseCase_RoleCreate({
|
|
4513
4702
|
form,
|
|
4514
4703
|
onSubmit
|
|
4515
4704
|
}) {
|
|
4516
|
-
return /* @__PURE__ */
|
|
4517
|
-
/* @__PURE__ */
|
|
4518
|
-
/* @__PURE__ */
|
|
4519
|
-
/* @__PURE__ */
|
|
4520
|
-
/* @__PURE__ */
|
|
4521
|
-
/* @__PURE__ */
|
|
4705
|
+
return /* @__PURE__ */ jsx101("form", { onSubmit: form.onSubmit(onSubmit), children: /* @__PURE__ */ jsxs58(Stack4, { children: [
|
|
4706
|
+
/* @__PURE__ */ jsx101(MyTextInput2, __spreadValues({ label: "M\xE3 nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
4707
|
+
/* @__PURE__ */ jsx101(MyTextInput2, __spreadValues({ label: "T\xEAn nh\xF3m t\xE0i kho\u1EA3n" }, form.getInputProps("name"))),
|
|
4708
|
+
/* @__PURE__ */ jsx101(MyTextInput2, __spreadValues({ label: "Tr\u1EA1ng th\xE1i t\xE0i kho\u1EA3n" }, form.getInputProps("status"))),
|
|
4709
|
+
/* @__PURE__ */ jsx101(MyTextInput2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note"))),
|
|
4710
|
+
/* @__PURE__ */ jsx101(MyButton2, { actionType: "save" })
|
|
4522
4711
|
] }) });
|
|
4523
4712
|
}
|
|
4524
4713
|
|
|
4525
4714
|
// src/modules/Role/adapter/Adapter_RoleForm.tsx
|
|
4526
|
-
import { jsx as
|
|
4715
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
4527
4716
|
function Adapter_RoleForm({
|
|
4528
4717
|
values,
|
|
4529
4718
|
onSuccess
|
|
4530
4719
|
}) {
|
|
4531
|
-
const form =
|
|
4720
|
+
const form = useForm29({
|
|
4532
4721
|
mode: "uncontrolled"
|
|
4533
4722
|
});
|
|
4534
4723
|
const mutation = useMyReactMutation({
|
|
@@ -4544,7 +4733,7 @@ function Adapter_RoleForm({
|
|
|
4544
4733
|
if (!values) return;
|
|
4545
4734
|
form.initialize(values);
|
|
4546
4735
|
}, [values]);
|
|
4547
|
-
return /* @__PURE__ */
|
|
4736
|
+
return /* @__PURE__ */ jsx102(
|
|
4548
4737
|
UseCase_RoleCreate,
|
|
4549
4738
|
{
|
|
4550
4739
|
form,
|
|
@@ -4556,11 +4745,11 @@ function Adapter_RoleForm({
|
|
|
4556
4745
|
}
|
|
4557
4746
|
|
|
4558
4747
|
// src/modules/User/usecase/Usecase_UserTable.tsx
|
|
4559
|
-
import { useMemo as
|
|
4560
|
-
import { jsx as
|
|
4748
|
+
import { useMemo as useMemo24 } from "react";
|
|
4749
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
4561
4750
|
function UseCase_UserTable(_a) {
|
|
4562
4751
|
var rest = __objRest(_a, []);
|
|
4563
|
-
const allColumns =
|
|
4752
|
+
const allColumns = useMemo24(() => [
|
|
4564
4753
|
{
|
|
4565
4754
|
header: "M\xE3 t\xE0i kho\u1EA3n",
|
|
4566
4755
|
accessorKey: "code",
|
|
@@ -4583,7 +4772,7 @@ function UseCase_UserTable(_a) {
|
|
|
4583
4772
|
accessorKey: "phoneNumber"
|
|
4584
4773
|
}
|
|
4585
4774
|
], []);
|
|
4586
|
-
return /* @__PURE__ */
|
|
4775
|
+
return /* @__PURE__ */ jsx103(
|
|
4587
4776
|
MyDataTable,
|
|
4588
4777
|
__spreadValues({
|
|
4589
4778
|
columns: allColumns
|
|
@@ -4599,11 +4788,16 @@ var mapper_user = {
|
|
|
4599
4788
|
email: req.email,
|
|
4600
4789
|
phoneNumber: req.phoneNumber
|
|
4601
4790
|
});
|
|
4791
|
+
},
|
|
4792
|
+
mapToEntity: (domain) => {
|
|
4793
|
+
return __spreadProps(__spreadValues({}, utils_aq_mapDomainToEntity(domain)), {
|
|
4794
|
+
fullName: domain.userFullName
|
|
4795
|
+
});
|
|
4602
4796
|
}
|
|
4603
4797
|
};
|
|
4604
4798
|
|
|
4605
4799
|
// src/modules/User/adapter/Adapter_UserTable.tsx
|
|
4606
|
-
import { jsx as
|
|
4800
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
4607
4801
|
function Adapter_UserTable(_a) {
|
|
4608
4802
|
var rest = __objRest(_a, []);
|
|
4609
4803
|
var _a2;
|
|
@@ -4611,7 +4805,7 @@ function Adapter_UserTable(_a) {
|
|
|
4611
4805
|
queryKey: ["users"],
|
|
4612
4806
|
axiosFn: () => service_account.getAdminAccount()
|
|
4613
4807
|
});
|
|
4614
|
-
return /* @__PURE__ */
|
|
4808
|
+
return /* @__PURE__ */ jsx104(
|
|
4615
4809
|
UseCase_UserTable,
|
|
4616
4810
|
__spreadValues({
|
|
4617
4811
|
data: ((_a2 = adminAccountQuery.data) == null ? void 0 : _a2.map(mapper_user.mapToDomain)) || []
|
|
@@ -4622,24 +4816,54 @@ function Adapter_UserTable(_a) {
|
|
|
4622
4816
|
// src/modules/User/adapter/Adapter_UserAddToRole.tsx
|
|
4623
4817
|
import { useDisclosure as useDisclosure2 } from "@mantine/hooks";
|
|
4624
4818
|
import { useState as useState7 } from "react";
|
|
4625
|
-
import { jsx as
|
|
4626
|
-
function Adapter_UserAddToRole(
|
|
4819
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
4820
|
+
function Adapter_UserAddToRole({
|
|
4821
|
+
roleId
|
|
4822
|
+
}) {
|
|
4627
4823
|
const disc = useDisclosure2();
|
|
4628
4824
|
const userSelectedId = useState7({});
|
|
4629
|
-
|
|
4825
|
+
const mutation = useMyReactMutation({
|
|
4826
|
+
axiosFn: async ({ userId: roleId2 }) => {
|
|
4827
|
+
return {
|
|
4828
|
+
data: {
|
|
4829
|
+
isSuccess: 1,
|
|
4830
|
+
message: "Gi\u1EA3 l\u1EADp",
|
|
4831
|
+
data: []
|
|
4832
|
+
// <-- `void` hợp lệ
|
|
4833
|
+
}
|
|
4834
|
+
};
|
|
4835
|
+
},
|
|
4836
|
+
successNotification: "Th\xEAm ng\u01B0\u1EDDi d\xF9ng v\xE0o nh\xF3m quy\u1EC1n th\xE0nh c\xF4ng! (Gi\u1EA3 l\u1EADp)",
|
|
4837
|
+
options: {
|
|
4838
|
+
onSuccess: () => {
|
|
4839
|
+
disc[1].close();
|
|
4840
|
+
userSelectedId[1]({});
|
|
4841
|
+
}
|
|
4842
|
+
}
|
|
4843
|
+
});
|
|
4844
|
+
return /* @__PURE__ */ jsx105(
|
|
4630
4845
|
MyButtonModal2,
|
|
4631
4846
|
{
|
|
4632
4847
|
disclosure: disc,
|
|
4633
4848
|
buttonProps: { actionType: "create" },
|
|
4634
4849
|
modalProps: { title: "Danh s\xE1ch t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng", size: "70%" },
|
|
4635
|
-
children: /* @__PURE__ */
|
|
4850
|
+
children: /* @__PURE__ */ jsx105(
|
|
4636
4851
|
Adapter_UserTable,
|
|
4637
4852
|
{
|
|
4638
4853
|
enableRowSelection: true,
|
|
4639
4854
|
state: { rowSelection: userSelectedId[0] },
|
|
4640
4855
|
onRowSelectionChange: userSelectedId[1],
|
|
4641
4856
|
getRowId: (row) => row.id,
|
|
4642
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
4857
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx105(
|
|
4858
|
+
MyButton2,
|
|
4859
|
+
{
|
|
4860
|
+
actionType: "select",
|
|
4861
|
+
onClick: () => mutation.mutate({
|
|
4862
|
+
roleId,
|
|
4863
|
+
userId: Object.keys(userSelectedId[0]).map(Number)
|
|
4864
|
+
})
|
|
4865
|
+
}
|
|
4866
|
+
)
|
|
4643
4867
|
}
|
|
4644
4868
|
)
|
|
4645
4869
|
}
|
|
@@ -4647,19 +4871,19 @@ function Adapter_UserAddToRole() {
|
|
|
4647
4871
|
}
|
|
4648
4872
|
|
|
4649
4873
|
// src/modules/User/adapter/Adapter_UserDelete.tsx
|
|
4650
|
-
import { jsx as
|
|
4874
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
4651
4875
|
function Adapter_UserDelete() {
|
|
4652
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ jsx106(MyActionIconDelete, { onSubmit: () => {
|
|
4653
4877
|
} });
|
|
4654
4878
|
}
|
|
4655
4879
|
|
|
4656
4880
|
// src/modules-features/admin/core/roleManagement/features/Feat_CreateUpdateRole.tsx
|
|
4657
4881
|
import { Tabs as Tabs3 } from "@mantine/core";
|
|
4658
4882
|
import { useDisclosure as useDisclosure3 } from "@mantine/hooks";
|
|
4659
|
-
import { jsx as
|
|
4883
|
+
import { jsx as jsx107, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
4660
4884
|
function Feat_CreateUpdateRole({ values }) {
|
|
4661
4885
|
const disc = useDisclosure3();
|
|
4662
|
-
return /* @__PURE__ */
|
|
4886
|
+
return /* @__PURE__ */ jsx107(
|
|
4663
4887
|
MyButtonModal2,
|
|
4664
4888
|
{
|
|
4665
4889
|
disclosure: disc,
|
|
@@ -4667,18 +4891,18 @@ function Feat_CreateUpdateRole({ values }) {
|
|
|
4667
4891
|
actionIconProps: { actionType: "update" },
|
|
4668
4892
|
modalProps: { size: "80%", title: "Chi ti\u1EBFt nh\xF3m t\xE0i kho\u1EA3n" },
|
|
4669
4893
|
isActionIcon: !!values,
|
|
4670
|
-
children: /* @__PURE__ */
|
|
4671
|
-
/* @__PURE__ */
|
|
4672
|
-
/* @__PURE__ */
|
|
4673
|
-
/* @__PURE__ */
|
|
4894
|
+
children: /* @__PURE__ */ jsxs59(Tabs3, { defaultValue: "gallery", children: [
|
|
4895
|
+
/* @__PURE__ */ jsxs59(Tabs3.List, { children: [
|
|
4896
|
+
/* @__PURE__ */ jsx107(Tabs3.Tab, { value: "gallery", children: "Th\xF4ng tin chung" }),
|
|
4897
|
+
/* @__PURE__ */ jsx107(Tabs3.Tab, { value: "messages", children: "Danh s\xE1ch th\xE0nh vi\xEAn" })
|
|
4674
4898
|
] }),
|
|
4675
|
-
/* @__PURE__ */
|
|
4676
|
-
/* @__PURE__ */
|
|
4899
|
+
/* @__PURE__ */ jsx107(Tabs3.Panel, { value: "gallery", pt: "md", children: /* @__PURE__ */ jsx107(Adapter_RoleForm, { onSuccess: disc[1].close, values }) }),
|
|
4900
|
+
/* @__PURE__ */ jsx107(Tabs3.Panel, { value: "messages", pt: "md", children: /* @__PURE__ */ jsx107(MyFieldset, { title: "Danh s\xE1ch t\xE0i kho\u1EA3n ng\u01B0\u1EDDi d\xF9ng thu\u1ED9c nh\xF3m", children: /* @__PURE__ */ jsx107(
|
|
4677
4901
|
Adapter_UserTable,
|
|
4678
4902
|
{
|
|
4679
4903
|
visibleFields: ["code", "userFullName", "unit"],
|
|
4680
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
4681
|
-
renderRowActions: () => /* @__PURE__ */
|
|
4904
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx107(Adapter_UserAddToRole, { roleId: 2 }),
|
|
4905
|
+
renderRowActions: () => /* @__PURE__ */ jsx107(MyCenterFull, { children: /* @__PURE__ */ jsx107(Adapter_UserDelete, {}) })
|
|
4682
4906
|
}
|
|
4683
4907
|
) }) })
|
|
4684
4908
|
] })
|
|
@@ -4687,20 +4911,20 @@ function Feat_CreateUpdateRole({ values }) {
|
|
|
4687
4911
|
}
|
|
4688
4912
|
|
|
4689
4913
|
// src/modules-features/admin/core/roleManagement/Feat_RoleManagement.tsx
|
|
4690
|
-
import { jsx as
|
|
4914
|
+
import { jsx as jsx108, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
4691
4915
|
function Feat_RoleManagement() {
|
|
4692
|
-
return /* @__PURE__ */
|
|
4916
|
+
return /* @__PURE__ */ jsx108(
|
|
4693
4917
|
Adapter_RoleTable2,
|
|
4694
4918
|
{
|
|
4695
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
4696
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
|
4697
|
-
/* @__PURE__ */
|
|
4919
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx108(Feat_CreateUpdateRole, {}),
|
|
4920
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs60(MyCenterFull, { children: [
|
|
4921
|
+
/* @__PURE__ */ jsx108(
|
|
4698
4922
|
Feat_CreateUpdateRole,
|
|
4699
4923
|
{
|
|
4700
4924
|
values: row.original
|
|
4701
4925
|
}
|
|
4702
4926
|
),
|
|
4703
|
-
/* @__PURE__ */
|
|
4927
|
+
/* @__PURE__ */ jsx108(
|
|
4704
4928
|
Adapter_RoleDelete,
|
|
4705
4929
|
{
|
|
4706
4930
|
id: Number(row.original.id),
|
|
@@ -4713,14 +4937,14 @@ function Feat_RoleManagement() {
|
|
|
4713
4937
|
}
|
|
4714
4938
|
|
|
4715
4939
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
|
4716
|
-
import { useMemo as
|
|
4940
|
+
import { useMemo as useMemo25 } from "react";
|
|
4717
4941
|
|
|
4718
4942
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
|
|
4719
4943
|
import { FileInput as FileInput7 } from "@mantine/core";
|
|
4720
|
-
import { useForm as
|
|
4721
|
-
import { jsx as
|
|
4944
|
+
import { useForm as useForm30 } from "@mantine/form";
|
|
4945
|
+
import { jsx as jsx109, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
4722
4946
|
function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4723
|
-
const form =
|
|
4947
|
+
const form = useForm30({
|
|
4724
4948
|
mode: "uncontrolled",
|
|
4725
4949
|
validate: {
|
|
4726
4950
|
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
@@ -4729,7 +4953,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
|
4729
4953
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
4730
4954
|
}
|
|
4731
4955
|
});
|
|
4732
|
-
return /* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ jsxs61(
|
|
4733
4957
|
MyButtonCreate,
|
|
4734
4958
|
{
|
|
4735
4959
|
objectName: "v\u0103n b\u1EA3n",
|
|
@@ -4742,28 +4966,28 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
|
4742
4966
|
return service_document.create(body);
|
|
4743
4967
|
},
|
|
4744
4968
|
children: [
|
|
4745
|
-
/* @__PURE__ */
|
|
4969
|
+
/* @__PURE__ */ jsx109(
|
|
4746
4970
|
MyTextInput,
|
|
4747
4971
|
__spreadValues({
|
|
4748
4972
|
withAsterisk: true,
|
|
4749
4973
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
|
4750
4974
|
}, form.getInputProps("decisionCode"))
|
|
4751
4975
|
),
|
|
4752
|
-
/* @__PURE__ */
|
|
4976
|
+
/* @__PURE__ */ jsx109(
|
|
4753
4977
|
MyDateInput,
|
|
4754
4978
|
__spreadValues({
|
|
4755
4979
|
withAsterisk: true,
|
|
4756
4980
|
label: "Ng\xE0y ban h\xE0nh"
|
|
4757
4981
|
}, form.getInputProps("promulgateDate"))
|
|
4758
4982
|
),
|
|
4759
|
-
/* @__PURE__ */
|
|
4983
|
+
/* @__PURE__ */ jsx109(
|
|
4760
4984
|
MyTextInput,
|
|
4761
4985
|
__spreadValues({
|
|
4762
4986
|
withAsterisk: true,
|
|
4763
4987
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
4764
4988
|
}, form.getInputProps("name"))
|
|
4765
4989
|
),
|
|
4766
|
-
/* @__PURE__ */
|
|
4990
|
+
/* @__PURE__ */ jsx109(
|
|
4767
4991
|
FileInput7,
|
|
4768
4992
|
__spreadValues({
|
|
4769
4993
|
withAsterisk: true,
|
|
@@ -4777,12 +5001,12 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
|
4777
5001
|
}
|
|
4778
5002
|
|
|
4779
5003
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Delete.tsx
|
|
4780
|
-
import { jsx as
|
|
5004
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
4781
5005
|
function F_securityPolicyDocs_Delete({
|
|
4782
5006
|
id,
|
|
4783
5007
|
contextData
|
|
4784
5008
|
}) {
|
|
4785
|
-
return /* @__PURE__ */
|
|
5009
|
+
return /* @__PURE__ */ jsx110(
|
|
4786
5010
|
MyActionIconDelete,
|
|
4787
5011
|
{
|
|
4788
5012
|
contextData,
|
|
@@ -4793,11 +5017,11 @@ function F_securityPolicyDocs_Delete({
|
|
|
4793
5017
|
|
|
4794
5018
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
|
|
4795
5019
|
import { FileInput as FileInput8, TextInput as TextInput2 } from "@mantine/core";
|
|
4796
|
-
import { useForm as
|
|
4797
|
-
import { jsx as
|
|
5020
|
+
import { useForm as useForm31 } from "@mantine/form";
|
|
5021
|
+
import { jsx as jsx111, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
4798
5022
|
function F_securityPolicyDocs_Update({ values }) {
|
|
4799
5023
|
var _a;
|
|
4800
|
-
const form =
|
|
5024
|
+
const form = useForm31({
|
|
4801
5025
|
mode: "uncontrolled",
|
|
4802
5026
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
|
4803
5027
|
file: new File(
|
|
@@ -4813,7 +5037,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
|
4813
5037
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
4814
5038
|
}
|
|
4815
5039
|
});
|
|
4816
|
-
return /* @__PURE__ */
|
|
5040
|
+
return /* @__PURE__ */ jsxs62(
|
|
4817
5041
|
MyActionIconUpdate,
|
|
4818
5042
|
{
|
|
4819
5043
|
form,
|
|
@@ -4824,7 +5048,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
|
4824
5048
|
return service_document.update(body);
|
|
4825
5049
|
},
|
|
4826
5050
|
children: [
|
|
4827
|
-
/* @__PURE__ */
|
|
5051
|
+
/* @__PURE__ */ jsx111(
|
|
4828
5052
|
TextInput2,
|
|
4829
5053
|
__spreadValues({
|
|
4830
5054
|
withAsterisk: true,
|
|
@@ -4832,21 +5056,21 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
|
4832
5056
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
|
4833
5057
|
}, form.getInputProps("decisionCode"))
|
|
4834
5058
|
),
|
|
4835
|
-
/* @__PURE__ */
|
|
5059
|
+
/* @__PURE__ */ jsx111(
|
|
4836
5060
|
MyDateInput,
|
|
4837
5061
|
__spreadValues({
|
|
4838
5062
|
withAsterisk: true,
|
|
4839
5063
|
label: "Ng\xE0y ban h\xE0nh"
|
|
4840
5064
|
}, form.getInputProps("promulgateDate"))
|
|
4841
5065
|
),
|
|
4842
|
-
/* @__PURE__ */
|
|
5066
|
+
/* @__PURE__ */ jsx111(
|
|
4843
5067
|
TextInput2,
|
|
4844
5068
|
__spreadValues({
|
|
4845
5069
|
withAsterisk: true,
|
|
4846
5070
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
4847
5071
|
}, form.getInputProps("name"))
|
|
4848
5072
|
),
|
|
4849
|
-
/* @__PURE__ */
|
|
5073
|
+
/* @__PURE__ */ jsx111(
|
|
4850
5074
|
FileInput8,
|
|
4851
5075
|
__spreadValues({
|
|
4852
5076
|
withAsterisk: true,
|
|
@@ -4859,13 +5083,13 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
|
4859
5083
|
}
|
|
4860
5084
|
|
|
4861
5085
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
|
4862
|
-
import { jsx as
|
|
5086
|
+
import { jsx as jsx112, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
4863
5087
|
function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4864
5088
|
const query = useMyReactQuery({
|
|
4865
5089
|
queryKey: ["F_securityPolicyDocs_Read"],
|
|
4866
5090
|
axiosFn: () => service_document.GetByType(SecurityTypeId)
|
|
4867
5091
|
});
|
|
4868
|
-
const columns =
|
|
5092
|
+
const columns = useMemo25(
|
|
4869
5093
|
() => [
|
|
4870
5094
|
{
|
|
4871
5095
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
|
@@ -4882,25 +5106,25 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
|
4882
5106
|
{
|
|
4883
5107
|
header: "File",
|
|
4884
5108
|
accessorFn: (row) => {
|
|
4885
|
-
return /* @__PURE__ */
|
|
5109
|
+
return /* @__PURE__ */ jsx112(MyCenterFull, { children: /* @__PURE__ */ jsx112(MyButtonViewPDF, { id: row.id }) });
|
|
4886
5110
|
}
|
|
4887
5111
|
}
|
|
4888
5112
|
],
|
|
4889
5113
|
[]
|
|
4890
5114
|
);
|
|
4891
|
-
return /* @__PURE__ */
|
|
5115
|
+
return /* @__PURE__ */ jsx112(
|
|
4892
5116
|
MyDataTable,
|
|
4893
5117
|
{
|
|
4894
5118
|
isLoading: query.isLoading,
|
|
4895
5119
|
isError: query.isError,
|
|
4896
5120
|
columns,
|
|
4897
5121
|
data: query.data || [],
|
|
4898
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
5122
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx112(F_securityPolicyDocs_Create, { SecurityTypeId }),
|
|
4899
5123
|
renderRowActions: ({ row }) => {
|
|
4900
5124
|
var _a;
|
|
4901
|
-
return /* @__PURE__ */
|
|
4902
|
-
/* @__PURE__ */
|
|
4903
|
-
/* @__PURE__ */
|
|
5125
|
+
return /* @__PURE__ */ jsxs63(MyCenterFull, { children: [
|
|
5126
|
+
/* @__PURE__ */ jsx112(F_securityPolicyDocs_Update, { values: row.original }),
|
|
5127
|
+
/* @__PURE__ */ jsx112(
|
|
4904
5128
|
F_securityPolicyDocs_Delete,
|
|
4905
5129
|
{
|
|
4906
5130
|
id: row.original.id,
|
|
@@ -4914,22 +5138,22 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
|
4914
5138
|
}
|
|
4915
5139
|
|
|
4916
5140
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs.tsx
|
|
4917
|
-
import { jsx as
|
|
5141
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
4918
5142
|
function F_securityPolicyDocs({ SecurityTypeId }) {
|
|
4919
|
-
return /* @__PURE__ */
|
|
5143
|
+
return /* @__PURE__ */ jsx113(F_securityPolicyDocs_Read, { SecurityTypeId });
|
|
4920
5144
|
}
|
|
4921
5145
|
|
|
4922
5146
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
|
4923
|
-
import { useMemo as
|
|
5147
|
+
import { useMemo as useMemo26 } from "react";
|
|
4924
5148
|
|
|
4925
5149
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
|
|
4926
5150
|
import { FileInput as FileInput9, Textarea as Textarea4 } from "@mantine/core";
|
|
4927
|
-
import { useForm as
|
|
4928
|
-
import { jsx as
|
|
5151
|
+
import { useForm as useForm32 } from "@mantine/form";
|
|
5152
|
+
import { jsx as jsx114, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
4929
5153
|
function F_systemUpdateDocs_Create({
|
|
4930
5154
|
RefinementTypeId
|
|
4931
5155
|
}) {
|
|
4932
|
-
const form =
|
|
5156
|
+
const form = useForm32({
|
|
4933
5157
|
mode: "uncontrolled",
|
|
4934
5158
|
validate: {
|
|
4935
5159
|
meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
@@ -4940,7 +5164,7 @@ function F_systemUpdateDocs_Create({
|
|
|
4940
5164
|
endDate: (value, values) => value && values.startDate && new Date(value) > new Date(values.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
|
4941
5165
|
}
|
|
4942
5166
|
});
|
|
4943
|
-
return /* @__PURE__ */
|
|
5167
|
+
return /* @__PURE__ */ jsxs64(
|
|
4944
5168
|
MyButtonCreate,
|
|
4945
5169
|
{
|
|
4946
5170
|
objectName: "v\u0103n b\u1EA3n",
|
|
@@ -4953,43 +5177,43 @@ function F_systemUpdateDocs_Create({
|
|
|
4953
5177
|
return service_document.create(body);
|
|
4954
5178
|
},
|
|
4955
5179
|
children: [
|
|
4956
|
-
/* @__PURE__ */
|
|
5180
|
+
/* @__PURE__ */ jsx114(
|
|
4957
5181
|
MyDateInput,
|
|
4958
5182
|
__spreadValues({
|
|
4959
5183
|
withAsterisk: true,
|
|
4960
5184
|
label: "Ng\xE0y h\u1ECDp"
|
|
4961
5185
|
}, form.getInputProps("meetingDate"))
|
|
4962
5186
|
),
|
|
4963
|
-
/* @__PURE__ */
|
|
5187
|
+
/* @__PURE__ */ jsx114(
|
|
4964
5188
|
MyTextInput,
|
|
4965
5189
|
__spreadValues({
|
|
4966
5190
|
withAsterisk: true,
|
|
4967
5191
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
|
4968
5192
|
}, form.getInputProps("departmentName"))
|
|
4969
5193
|
),
|
|
4970
|
-
/* @__PURE__ */
|
|
5194
|
+
/* @__PURE__ */ jsx114(
|
|
4971
5195
|
MyTextInput,
|
|
4972
5196
|
__spreadValues({
|
|
4973
5197
|
withAsterisk: true,
|
|
4974
5198
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
|
4975
5199
|
}, form.getInputProps("description"))
|
|
4976
5200
|
),
|
|
4977
|
-
/* @__PURE__ */
|
|
4978
|
-
/* @__PURE__ */
|
|
5201
|
+
/* @__PURE__ */ jsx114(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
|
5202
|
+
/* @__PURE__ */ jsx114(
|
|
4979
5203
|
MyDateInput,
|
|
4980
5204
|
__spreadValues({
|
|
4981
5205
|
withAsterisk: true,
|
|
4982
5206
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
|
4983
5207
|
}, form.getInputProps("startDate"))
|
|
4984
5208
|
),
|
|
4985
|
-
/* @__PURE__ */
|
|
5209
|
+
/* @__PURE__ */ jsx114(
|
|
4986
5210
|
MyDateInput,
|
|
4987
5211
|
__spreadValues({
|
|
4988
5212
|
withAsterisk: true,
|
|
4989
5213
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
|
4990
5214
|
}, form.getInputProps("endDate"))
|
|
4991
5215
|
),
|
|
4992
|
-
/* @__PURE__ */
|
|
5216
|
+
/* @__PURE__ */ jsx114(
|
|
4993
5217
|
FileInput9,
|
|
4994
5218
|
__spreadValues({
|
|
4995
5219
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
|
@@ -4997,19 +5221,19 @@ function F_systemUpdateDocs_Create({
|
|
|
4997
5221
|
label: "T\xE0i li\u1EC7u"
|
|
4998
5222
|
}, form.getInputProps("file"))
|
|
4999
5223
|
),
|
|
5000
|
-
/* @__PURE__ */
|
|
5224
|
+
/* @__PURE__ */ jsx114(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
|
5001
5225
|
]
|
|
5002
5226
|
}
|
|
5003
5227
|
);
|
|
5004
5228
|
}
|
|
5005
5229
|
|
|
5006
5230
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Delete.tsx
|
|
5007
|
-
import { jsx as
|
|
5231
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
5008
5232
|
function F_systemUpdateDocs_Delete({
|
|
5009
5233
|
id,
|
|
5010
5234
|
contextData
|
|
5011
5235
|
}) {
|
|
5012
|
-
return /* @__PURE__ */
|
|
5236
|
+
return /* @__PURE__ */ jsx115(
|
|
5013
5237
|
MyActionIconDelete,
|
|
5014
5238
|
{
|
|
5015
5239
|
contextData,
|
|
@@ -5020,11 +5244,11 @@ function F_systemUpdateDocs_Delete({
|
|
|
5020
5244
|
|
|
5021
5245
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
|
|
5022
5246
|
import { FileInput as FileInput10, Textarea as Textarea5 } from "@mantine/core";
|
|
5023
|
-
import { useForm as
|
|
5024
|
-
import { jsx as
|
|
5247
|
+
import { useForm as useForm33 } from "@mantine/form";
|
|
5248
|
+
import { jsx as jsx116, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5025
5249
|
function F_systemUpdateDocs_Update({ values }) {
|
|
5026
5250
|
var _a;
|
|
5027
|
-
const form =
|
|
5251
|
+
const form = useForm33({
|
|
5028
5252
|
mode: "uncontrolled",
|
|
5029
5253
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
|
5030
5254
|
file: new File(
|
|
@@ -5044,7 +5268,7 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
|
5044
5268
|
endDate: (value, values2) => value && values2.startDate && new Date(value) > new Date(values2.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
|
5045
5269
|
}
|
|
5046
5270
|
});
|
|
5047
|
-
return /* @__PURE__ */
|
|
5271
|
+
return /* @__PURE__ */ jsxs65(
|
|
5048
5272
|
MyActionIconUpdate,
|
|
5049
5273
|
{
|
|
5050
5274
|
form,
|
|
@@ -5055,43 +5279,43 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
|
5055
5279
|
return service_document.update(body);
|
|
5056
5280
|
},
|
|
5057
5281
|
children: [
|
|
5058
|
-
/* @__PURE__ */
|
|
5282
|
+
/* @__PURE__ */ jsx116(
|
|
5059
5283
|
MyDateInput,
|
|
5060
5284
|
__spreadValues({
|
|
5061
5285
|
withAsterisk: true,
|
|
5062
5286
|
label: "Ng\xE0y h\u1ECDp"
|
|
5063
5287
|
}, form.getInputProps("meetingDate"))
|
|
5064
5288
|
),
|
|
5065
|
-
/* @__PURE__ */
|
|
5289
|
+
/* @__PURE__ */ jsx116(
|
|
5066
5290
|
MyTextInput,
|
|
5067
5291
|
__spreadValues({
|
|
5068
5292
|
withAsterisk: true,
|
|
5069
5293
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
|
5070
5294
|
}, form.getInputProps("departmentName"))
|
|
5071
5295
|
),
|
|
5072
|
-
/* @__PURE__ */
|
|
5296
|
+
/* @__PURE__ */ jsx116(
|
|
5073
5297
|
MyTextInput,
|
|
5074
5298
|
__spreadValues({
|
|
5075
5299
|
withAsterisk: true,
|
|
5076
5300
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
|
5077
5301
|
}, form.getInputProps("description"))
|
|
5078
5302
|
),
|
|
5079
|
-
/* @__PURE__ */
|
|
5080
|
-
/* @__PURE__ */
|
|
5303
|
+
/* @__PURE__ */ jsx116(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
|
5304
|
+
/* @__PURE__ */ jsx116(
|
|
5081
5305
|
MyDateInput,
|
|
5082
5306
|
__spreadValues({
|
|
5083
5307
|
withAsterisk: true,
|
|
5084
5308
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
|
5085
5309
|
}, form.getInputProps("startDate"))
|
|
5086
5310
|
),
|
|
5087
|
-
/* @__PURE__ */
|
|
5311
|
+
/* @__PURE__ */ jsx116(
|
|
5088
5312
|
MyDateInput,
|
|
5089
5313
|
__spreadValues({
|
|
5090
5314
|
withAsterisk: true,
|
|
5091
5315
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
|
5092
5316
|
}, form.getInputProps("endDate"))
|
|
5093
5317
|
),
|
|
5094
|
-
/* @__PURE__ */
|
|
5318
|
+
/* @__PURE__ */ jsx116(
|
|
5095
5319
|
FileInput10,
|
|
5096
5320
|
__spreadValues({
|
|
5097
5321
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
|
@@ -5099,20 +5323,20 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
|
5099
5323
|
label: "T\xE0i li\u1EC7u"
|
|
5100
5324
|
}, form.getInputProps("file"))
|
|
5101
5325
|
),
|
|
5102
|
-
/* @__PURE__ */
|
|
5326
|
+
/* @__PURE__ */ jsx116(Textarea5, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
|
5103
5327
|
]
|
|
5104
5328
|
}
|
|
5105
5329
|
);
|
|
5106
5330
|
}
|
|
5107
5331
|
|
|
5108
5332
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
|
5109
|
-
import { jsx as
|
|
5333
|
+
import { jsx as jsx117, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
5110
5334
|
function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
5111
5335
|
const query = useMyReactQuery({
|
|
5112
5336
|
queryKey: ["F_systemUpdateDocs_Read"],
|
|
5113
5337
|
axiosFn: () => service_document.GetByType(RefinementTypeId)
|
|
5114
5338
|
});
|
|
5115
|
-
const columns =
|
|
5339
|
+
const columns = useMemo26(
|
|
5116
5340
|
() => [
|
|
5117
5341
|
{
|
|
5118
5342
|
header: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u",
|
|
@@ -5133,24 +5357,24 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
|
5133
5357
|
{
|
|
5134
5358
|
header: "File",
|
|
5135
5359
|
accessorFn: (row) => {
|
|
5136
|
-
return /* @__PURE__ */
|
|
5360
|
+
return /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(MyButtonViewPDF, { id: row.id }) });
|
|
5137
5361
|
}
|
|
5138
5362
|
}
|
|
5139
5363
|
],
|
|
5140
5364
|
[]
|
|
5141
5365
|
);
|
|
5142
|
-
return /* @__PURE__ */
|
|
5366
|
+
return /* @__PURE__ */ jsx117(
|
|
5143
5367
|
MyDataTable,
|
|
5144
5368
|
{
|
|
5145
5369
|
isLoading: query.isLoading,
|
|
5146
5370
|
isError: query.isError,
|
|
5147
5371
|
columns,
|
|
5148
5372
|
data: query.data || [],
|
|
5149
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
5373
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx117(F_systemUpdateDocs_Create, { RefinementTypeId }),
|
|
5150
5374
|
renderRowActions: ({ row }) => {
|
|
5151
|
-
return /* @__PURE__ */
|
|
5152
|
-
/* @__PURE__ */
|
|
5153
|
-
/* @__PURE__ */
|
|
5375
|
+
return /* @__PURE__ */ jsxs66(MyCenterFull, { children: [
|
|
5376
|
+
/* @__PURE__ */ jsx117(F_systemUpdateDocs_Update, { values: row.original }),
|
|
5377
|
+
/* @__PURE__ */ jsx117(
|
|
5154
5378
|
F_systemUpdateDocs_Delete,
|
|
5155
5379
|
{
|
|
5156
5380
|
id: row.original.id,
|
|
@@ -5164,14 +5388,14 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
|
5164
5388
|
}
|
|
5165
5389
|
|
|
5166
5390
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
|
5167
|
-
import { useMemo as
|
|
5391
|
+
import { useMemo as useMemo27 } from "react";
|
|
5168
5392
|
|
|
5169
5393
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
|
|
5170
5394
|
import { FileInput as FileInput11 } from "@mantine/core";
|
|
5171
|
-
import { useForm as
|
|
5172
|
-
import { jsx as
|
|
5395
|
+
import { useForm as useForm34 } from "@mantine/form";
|
|
5396
|
+
import { jsx as jsx118, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
5173
5397
|
function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
5174
|
-
const form =
|
|
5398
|
+
const form = useForm34({
|
|
5175
5399
|
mode: "uncontrolled",
|
|
5176
5400
|
validate: {
|
|
5177
5401
|
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
@@ -5179,7 +5403,7 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
|
5179
5403
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
5180
5404
|
}
|
|
5181
5405
|
});
|
|
5182
|
-
return /* @__PURE__ */
|
|
5406
|
+
return /* @__PURE__ */ jsxs67(
|
|
5183
5407
|
MyButtonCreate,
|
|
5184
5408
|
{
|
|
5185
5409
|
objectName: "v\u0103n b\u1EA3n",
|
|
@@ -5192,21 +5416,21 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
|
5192
5416
|
return service_document.create(body);
|
|
5193
5417
|
},
|
|
5194
5418
|
children: [
|
|
5195
|
-
/* @__PURE__ */
|
|
5419
|
+
/* @__PURE__ */ jsx118(
|
|
5196
5420
|
MyTextInput,
|
|
5197
5421
|
__spreadValues({
|
|
5198
5422
|
withAsterisk: true,
|
|
5199
5423
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
|
5200
5424
|
}, form.getInputProps("code"))
|
|
5201
5425
|
),
|
|
5202
|
-
/* @__PURE__ */
|
|
5426
|
+
/* @__PURE__ */ jsx118(
|
|
5203
5427
|
MyTextInput,
|
|
5204
5428
|
__spreadValues({
|
|
5205
5429
|
withAsterisk: true,
|
|
5206
5430
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
5207
5431
|
}, form.getInputProps("name"))
|
|
5208
5432
|
),
|
|
5209
|
-
/* @__PURE__ */
|
|
5433
|
+
/* @__PURE__ */ jsx118(
|
|
5210
5434
|
FileInput11,
|
|
5211
5435
|
__spreadValues({
|
|
5212
5436
|
withAsterisk: true,
|
|
@@ -5220,12 +5444,12 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
|
5220
5444
|
}
|
|
5221
5445
|
|
|
5222
5446
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Delete.tsx
|
|
5223
|
-
import { jsx as
|
|
5447
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
5224
5448
|
function F_userGuideDocs_Delete({
|
|
5225
5449
|
id,
|
|
5226
5450
|
contextData
|
|
5227
5451
|
}) {
|
|
5228
|
-
return /* @__PURE__ */
|
|
5452
|
+
return /* @__PURE__ */ jsx119(
|
|
5229
5453
|
MyActionIconDelete,
|
|
5230
5454
|
{
|
|
5231
5455
|
contextData,
|
|
@@ -5236,11 +5460,11 @@ function F_userGuideDocs_Delete({
|
|
|
5236
5460
|
|
|
5237
5461
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
|
|
5238
5462
|
import { FileInput as FileInput12 } from "@mantine/core";
|
|
5239
|
-
import { useForm as
|
|
5240
|
-
import { jsx as
|
|
5463
|
+
import { useForm as useForm35 } from "@mantine/form";
|
|
5464
|
+
import { jsx as jsx120, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
5241
5465
|
function F_userGuideDocs_Update({ values }) {
|
|
5242
5466
|
var _a;
|
|
5243
|
-
const form =
|
|
5467
|
+
const form = useForm35({
|
|
5244
5468
|
mode: "uncontrolled",
|
|
5245
5469
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
|
5246
5470
|
file: new File(
|
|
@@ -5254,7 +5478,7 @@ function F_userGuideDocs_Update({ values }) {
|
|
|
5254
5478
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
5255
5479
|
}
|
|
5256
5480
|
});
|
|
5257
|
-
return /* @__PURE__ */
|
|
5481
|
+
return /* @__PURE__ */ jsxs68(
|
|
5258
5482
|
MyActionIconUpdate,
|
|
5259
5483
|
{
|
|
5260
5484
|
form,
|
|
@@ -5265,7 +5489,7 @@ function F_userGuideDocs_Update({ values }) {
|
|
|
5265
5489
|
return service_document.update(body);
|
|
5266
5490
|
},
|
|
5267
5491
|
children: [
|
|
5268
|
-
/* @__PURE__ */
|
|
5492
|
+
/* @__PURE__ */ jsx120(
|
|
5269
5493
|
MyTextInput,
|
|
5270
5494
|
__spreadValues({
|
|
5271
5495
|
withAsterisk: true,
|
|
@@ -5273,14 +5497,14 @@ function F_userGuideDocs_Update({ values }) {
|
|
|
5273
5497
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
|
5274
5498
|
}, form.getInputProps("code"))
|
|
5275
5499
|
),
|
|
5276
|
-
/* @__PURE__ */
|
|
5500
|
+
/* @__PURE__ */ jsx120(
|
|
5277
5501
|
MyTextInput,
|
|
5278
5502
|
__spreadValues({
|
|
5279
5503
|
withAsterisk: true,
|
|
5280
5504
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
5281
5505
|
}, form.getInputProps("name"))
|
|
5282
5506
|
),
|
|
5283
|
-
/* @__PURE__ */
|
|
5507
|
+
/* @__PURE__ */ jsx120(
|
|
5284
5508
|
FileInput12,
|
|
5285
5509
|
__spreadValues({
|
|
5286
5510
|
withAsterisk: true,
|
|
@@ -5294,13 +5518,13 @@ function F_userGuideDocs_Update({ values }) {
|
|
|
5294
5518
|
}
|
|
5295
5519
|
|
|
5296
5520
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
|
5297
|
-
import { jsx as
|
|
5521
|
+
import { jsx as jsx121, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
5298
5522
|
function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5299
5523
|
const query = useMyReactQuery({
|
|
5300
5524
|
queryKey: ["F_userGuideDocs_Read"],
|
|
5301
5525
|
axiosFn: () => service_document.GetByType(GuidelineTypeId)
|
|
5302
5526
|
});
|
|
5303
|
-
const columns =
|
|
5527
|
+
const columns = useMemo27(
|
|
5304
5528
|
() => [
|
|
5305
5529
|
{
|
|
5306
5530
|
header: "M\xE3 t\xE0i li\u1EC7u",
|
|
@@ -5313,24 +5537,24 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
|
5313
5537
|
{
|
|
5314
5538
|
header: "File",
|
|
5315
5539
|
accessorFn: (row) => {
|
|
5316
|
-
return /* @__PURE__ */
|
|
5540
|
+
return /* @__PURE__ */ jsx121(MyCenterFull, { children: /* @__PURE__ */ jsx121(MyButtonViewPDF, { id: row.id }) });
|
|
5317
5541
|
}
|
|
5318
5542
|
}
|
|
5319
5543
|
],
|
|
5320
5544
|
[]
|
|
5321
5545
|
);
|
|
5322
|
-
return /* @__PURE__ */
|
|
5546
|
+
return /* @__PURE__ */ jsx121(
|
|
5323
5547
|
MyDataTable,
|
|
5324
5548
|
{
|
|
5325
5549
|
isLoading: query.isLoading,
|
|
5326
5550
|
isError: query.isError,
|
|
5327
5551
|
columns,
|
|
5328
5552
|
data: query.data || [],
|
|
5329
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
5553
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx121(F_userGuideDocs_Create, { GuidelineTypeId }),
|
|
5330
5554
|
renderRowActions: ({ row }) => {
|
|
5331
|
-
return /* @__PURE__ */
|
|
5332
|
-
/* @__PURE__ */
|
|
5333
|
-
/* @__PURE__ */
|
|
5555
|
+
return /* @__PURE__ */ jsxs69(MyCenterFull, { children: [
|
|
5556
|
+
/* @__PURE__ */ jsx121(F_userGuideDocs_Update, { values: row.original }),
|
|
5557
|
+
/* @__PURE__ */ jsx121(
|
|
5334
5558
|
F_userGuideDocs_Delete,
|
|
5335
5559
|
{
|
|
5336
5560
|
id: row.original.id,
|
|
@@ -5344,21 +5568,21 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
|
5344
5568
|
}
|
|
5345
5569
|
|
|
5346
5570
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs.tsx
|
|
5347
|
-
import { jsx as
|
|
5571
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
5348
5572
|
function F_userGuideDocs({ GuidelineTypeId }) {
|
|
5349
|
-
return /* @__PURE__ */
|
|
5573
|
+
return /* @__PURE__ */ jsx122(F_userGuideDocs_Read, { GuidelineTypeId });
|
|
5350
5574
|
}
|
|
5351
5575
|
|
|
5352
5576
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
|
5353
5577
|
import { Space as Space6 } from "@mantine/core";
|
|
5354
5578
|
|
|
5355
5579
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
|
|
5356
|
-
import { useForm as
|
|
5357
|
-
import { jsx as
|
|
5580
|
+
import { useForm as useForm36 } from "@mantine/form";
|
|
5581
|
+
import { jsx as jsx123, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
5358
5582
|
function F_workflowProcessDocs_Create({
|
|
5359
5583
|
WorkflowTypeId
|
|
5360
5584
|
}) {
|
|
5361
|
-
const form =
|
|
5585
|
+
const form = useForm36({
|
|
5362
5586
|
mode: "uncontrolled",
|
|
5363
5587
|
validate: {
|
|
5364
5588
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
|
@@ -5368,7 +5592,7 @@ function F_workflowProcessDocs_Create({
|
|
|
5368
5592
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
5369
5593
|
}
|
|
5370
5594
|
});
|
|
5371
|
-
return /* @__PURE__ */
|
|
5595
|
+
return /* @__PURE__ */ jsxs70(
|
|
5372
5596
|
MyButtonCreate,
|
|
5373
5597
|
{
|
|
5374
5598
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
|
@@ -5381,28 +5605,28 @@ function F_workflowProcessDocs_Create({
|
|
|
5381
5605
|
return service_document.create(body);
|
|
5382
5606
|
},
|
|
5383
5607
|
children: [
|
|
5384
|
-
/* @__PURE__ */
|
|
5608
|
+
/* @__PURE__ */ jsx123(
|
|
5385
5609
|
MyTextInput,
|
|
5386
5610
|
__spreadValues({
|
|
5387
5611
|
withAsterisk: true,
|
|
5388
5612
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
|
5389
5613
|
}, form.getInputProps("decisionCode"))
|
|
5390
5614
|
),
|
|
5391
|
-
/* @__PURE__ */
|
|
5615
|
+
/* @__PURE__ */ jsx123(
|
|
5392
5616
|
MyDateInput,
|
|
5393
5617
|
__spreadValues({
|
|
5394
5618
|
withAsterisk: true,
|
|
5395
5619
|
label: "Ng\xE0y ban h\xE0nh"
|
|
5396
5620
|
}, form.getInputProps("promulgateDate"))
|
|
5397
5621
|
),
|
|
5398
|
-
/* @__PURE__ */
|
|
5622
|
+
/* @__PURE__ */ jsx123(
|
|
5399
5623
|
MyTextInput,
|
|
5400
5624
|
__spreadValues({
|
|
5401
5625
|
withAsterisk: true,
|
|
5402
5626
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
5403
5627
|
}, form.getInputProps("name"))
|
|
5404
5628
|
),
|
|
5405
|
-
/* @__PURE__ */
|
|
5629
|
+
/* @__PURE__ */ jsx123(
|
|
5406
5630
|
F_core18256_Select,
|
|
5407
5631
|
__spreadValues({
|
|
5408
5632
|
withAsterisk: true,
|
|
@@ -5410,14 +5634,14 @@ function F_workflowProcessDocs_Create({
|
|
|
5410
5634
|
documentTypeId: WorkflowTypeId
|
|
5411
5635
|
}, form.getInputProps("documentAttributeId"))
|
|
5412
5636
|
),
|
|
5413
|
-
/* @__PURE__ */
|
|
5637
|
+
/* @__PURE__ */ jsx123(
|
|
5414
5638
|
MyFileInput,
|
|
5415
5639
|
__spreadValues({
|
|
5416
5640
|
withAsterisk: true,
|
|
5417
5641
|
label: "V\u0103n b\u1EA3n"
|
|
5418
5642
|
}, form.getInputProps("file"))
|
|
5419
5643
|
),
|
|
5420
|
-
/* @__PURE__ */
|
|
5644
|
+
/* @__PURE__ */ jsx123(
|
|
5421
5645
|
MyNumberInput,
|
|
5422
5646
|
__spreadValues({
|
|
5423
5647
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
|
@@ -5431,15 +5655,15 @@ function F_workflowProcessDocs_Create({
|
|
|
5431
5655
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
|
5432
5656
|
import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton7 } from "@mantine/core";
|
|
5433
5657
|
import { IconBug as IconBug6 } from "@tabler/icons-react";
|
|
5434
|
-
import { useMemo as
|
|
5658
|
+
import { useMemo as useMemo28 } from "react";
|
|
5435
5659
|
|
|
5436
5660
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
|
|
5437
|
-
import { jsx as
|
|
5661
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
5438
5662
|
function F_workflowProcessDocs_Delete({
|
|
5439
5663
|
id,
|
|
5440
5664
|
contextData
|
|
5441
5665
|
}) {
|
|
5442
|
-
return /* @__PURE__ */
|
|
5666
|
+
return /* @__PURE__ */ jsx124(
|
|
5443
5667
|
MyActionIconDelete,
|
|
5444
5668
|
{
|
|
5445
5669
|
contextData,
|
|
@@ -5449,14 +5673,14 @@ function F_workflowProcessDocs_Delete({
|
|
|
5449
5673
|
}
|
|
5450
5674
|
|
|
5451
5675
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
|
|
5452
|
-
import { useForm as
|
|
5453
|
-
import { jsx as
|
|
5676
|
+
import { useForm as useForm37 } from "@mantine/form";
|
|
5677
|
+
import { jsx as jsx125, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
5454
5678
|
function F_workflowProcessDocs_Update({
|
|
5455
5679
|
values,
|
|
5456
5680
|
WorkflowTypeId
|
|
5457
5681
|
}) {
|
|
5458
5682
|
var _a;
|
|
5459
|
-
const form =
|
|
5683
|
+
const form = useForm37({
|
|
5460
5684
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
|
5461
5685
|
file: new File(
|
|
5462
5686
|
[],
|
|
@@ -5472,7 +5696,7 @@ function F_workflowProcessDocs_Update({
|
|
|
5472
5696
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
|
5473
5697
|
}
|
|
5474
5698
|
});
|
|
5475
|
-
return /* @__PURE__ */
|
|
5699
|
+
return /* @__PURE__ */ jsxs71(
|
|
5476
5700
|
MyActionIconUpdate,
|
|
5477
5701
|
{
|
|
5478
5702
|
form,
|
|
@@ -5483,7 +5707,7 @@ function F_workflowProcessDocs_Update({
|
|
|
5483
5707
|
return service_document.update(body);
|
|
5484
5708
|
},
|
|
5485
5709
|
children: [
|
|
5486
|
-
/* @__PURE__ */
|
|
5710
|
+
/* @__PURE__ */ jsx125(
|
|
5487
5711
|
MyTextInput,
|
|
5488
5712
|
__spreadValues({
|
|
5489
5713
|
withAsterisk: true,
|
|
@@ -5491,21 +5715,21 @@ function F_workflowProcessDocs_Update({
|
|
|
5491
5715
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
|
5492
5716
|
}, form.getInputProps("decisionCode"))
|
|
5493
5717
|
),
|
|
5494
|
-
/* @__PURE__ */
|
|
5718
|
+
/* @__PURE__ */ jsx125(
|
|
5495
5719
|
MyDateInput,
|
|
5496
5720
|
__spreadValues({
|
|
5497
5721
|
withAsterisk: true,
|
|
5498
5722
|
label: "Ng\xE0y ban h\xE0nh"
|
|
5499
5723
|
}, form.getInputProps("promulgateDate"))
|
|
5500
5724
|
),
|
|
5501
|
-
/* @__PURE__ */
|
|
5725
|
+
/* @__PURE__ */ jsx125(
|
|
5502
5726
|
MyTextInput,
|
|
5503
5727
|
__spreadValues({
|
|
5504
5728
|
withAsterisk: true,
|
|
5505
5729
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
|
5506
5730
|
}, form.getInputProps("name"))
|
|
5507
5731
|
),
|
|
5508
|
-
/* @__PURE__ */
|
|
5732
|
+
/* @__PURE__ */ jsx125(
|
|
5509
5733
|
F_core18256_Select,
|
|
5510
5734
|
__spreadValues({
|
|
5511
5735
|
withAsterisk: true,
|
|
@@ -5513,14 +5737,14 @@ function F_workflowProcessDocs_Update({
|
|
|
5513
5737
|
documentTypeId: WorkflowTypeId
|
|
5514
5738
|
}, form.getInputProps("documentAttributeId"))
|
|
5515
5739
|
),
|
|
5516
|
-
/* @__PURE__ */
|
|
5740
|
+
/* @__PURE__ */ jsx125(
|
|
5517
5741
|
MyFileInput,
|
|
5518
5742
|
__spreadValues({
|
|
5519
5743
|
withAsterisk: true,
|
|
5520
5744
|
label: "V\u0103n b\u1EA3n"
|
|
5521
5745
|
}, form.getInputProps("file"))
|
|
5522
5746
|
),
|
|
5523
|
-
/* @__PURE__ */
|
|
5747
|
+
/* @__PURE__ */ jsx125(
|
|
5524
5748
|
MyNumberInput,
|
|
5525
5749
|
__spreadValues({
|
|
5526
5750
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
|
@@ -5532,7 +5756,7 @@ function F_workflowProcessDocs_Update({
|
|
|
5532
5756
|
}
|
|
5533
5757
|
|
|
5534
5758
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
|
5535
|
-
import { jsx as
|
|
5759
|
+
import { jsx as jsx126, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
5536
5760
|
function F_workflowProcessDocs_Read({
|
|
5537
5761
|
WorkflowTypeId
|
|
5538
5762
|
}) {
|
|
@@ -5542,10 +5766,10 @@ function F_workflowProcessDocs_Read({
|
|
|
5542
5766
|
axiosFn: () => service_documentAttribute.GetByType(WorkflowTypeId)
|
|
5543
5767
|
});
|
|
5544
5768
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
|
5545
|
-
return /* @__PURE__ */
|
|
5769
|
+
return /* @__PURE__ */ jsx126(Blockquote6, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
5546
5770
|
if (documentAttributeQuery.isError)
|
|
5547
|
-
return /* @__PURE__ */
|
|
5548
|
-
return /* @__PURE__ */
|
|
5771
|
+
return /* @__PURE__ */ jsx126(Alert6, { icon: /* @__PURE__ */ jsx126(IconBug6, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
|
5772
|
+
return /* @__PURE__ */ jsx126(Skeleton7, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx126(MyFlexColumn, { children: /* @__PURE__ */ jsx126(
|
|
5549
5773
|
Accordion6,
|
|
5550
5774
|
{
|
|
5551
5775
|
variant: "separated",
|
|
@@ -5563,7 +5787,7 @@ function F_workflowProcessDocs_Read({
|
|
|
5563
5787
|
}
|
|
5564
5788
|
),
|
|
5565
5789
|
multiple: true,
|
|
5566
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
5790
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx126(
|
|
5567
5791
|
SubRead6,
|
|
5568
5792
|
{
|
|
5569
5793
|
name: item.name,
|
|
@@ -5584,7 +5808,7 @@ function SubRead6({
|
|
|
5584
5808
|
queryKey: ["F_workflowProcessDocs_Read" + documentType],
|
|
5585
5809
|
axiosFn: () => service_document.GetByDocumentAttribute(documentType)
|
|
5586
5810
|
});
|
|
5587
|
-
const columns =
|
|
5811
|
+
const columns = useMemo28(
|
|
5588
5812
|
() => [
|
|
5589
5813
|
{
|
|
5590
5814
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
|
@@ -5601,30 +5825,30 @@ function SubRead6({
|
|
|
5601
5825
|
{
|
|
5602
5826
|
header: "File",
|
|
5603
5827
|
accessorFn: (row) => {
|
|
5604
|
-
return /* @__PURE__ */
|
|
5828
|
+
return /* @__PURE__ */ jsx126(MyCenterFull, { children: /* @__PURE__ */ jsx126(MyButtonViewPDF, { id: row.id }) });
|
|
5605
5829
|
}
|
|
5606
5830
|
}
|
|
5607
5831
|
],
|
|
5608
5832
|
[]
|
|
5609
5833
|
);
|
|
5610
|
-
return /* @__PURE__ */
|
|
5611
|
-
/* @__PURE__ */
|
|
5612
|
-
/* @__PURE__ */
|
|
5834
|
+
return /* @__PURE__ */ jsxs72(Accordion6.Item, { value: documentType.toString(), children: [
|
|
5835
|
+
/* @__PURE__ */ jsx126(Accordion6.Control, { children: name }),
|
|
5836
|
+
/* @__PURE__ */ jsx126(Accordion6.Panel, { children: /* @__PURE__ */ jsx126(
|
|
5613
5837
|
MyDataTable,
|
|
5614
5838
|
{
|
|
5615
5839
|
isLoading: documentQuery.isLoading,
|
|
5616
5840
|
isError: documentQuery.isError,
|
|
5617
5841
|
columns,
|
|
5618
5842
|
data: documentQuery.data || [],
|
|
5619
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
|
5620
|
-
/* @__PURE__ */
|
|
5843
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs72(MyCenterFull, { children: [
|
|
5844
|
+
/* @__PURE__ */ jsx126(
|
|
5621
5845
|
F_workflowProcessDocs_Update,
|
|
5622
5846
|
{
|
|
5623
5847
|
WorkflowTypeId,
|
|
5624
5848
|
values: row.original
|
|
5625
5849
|
}
|
|
5626
5850
|
),
|
|
5627
|
-
/* @__PURE__ */
|
|
5851
|
+
/* @__PURE__ */ jsx126(
|
|
5628
5852
|
F_workflowProcessDocs_Delete,
|
|
5629
5853
|
{
|
|
5630
5854
|
id: row.original.id,
|
|
@@ -5638,21 +5862,21 @@ function SubRead6({
|
|
|
5638
5862
|
}
|
|
5639
5863
|
|
|
5640
5864
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
|
5641
|
-
import { Fragment as
|
|
5865
|
+
import { Fragment as Fragment4, jsx as jsx127, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
5642
5866
|
function F_workflowProcessDocs({
|
|
5643
5867
|
WorkflowTypeId
|
|
5644
5868
|
}) {
|
|
5645
|
-
return /* @__PURE__ */
|
|
5646
|
-
/* @__PURE__ */
|
|
5647
|
-
/* @__PURE__ */
|
|
5648
|
-
/* @__PURE__ */
|
|
5869
|
+
return /* @__PURE__ */ jsxs73(Fragment4, { children: [
|
|
5870
|
+
/* @__PURE__ */ jsx127(MyFlexEnd, { children: /* @__PURE__ */ jsx127(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
|
|
5871
|
+
/* @__PURE__ */ jsx127(Space6, {}),
|
|
5872
|
+
/* @__PURE__ */ jsx127(F_workflowProcessDocs_Read, { WorkflowTypeId })
|
|
5649
5873
|
] });
|
|
5650
5874
|
}
|
|
5651
5875
|
|
|
5652
5876
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
|
5653
5877
|
import { useRouter } from "next/navigation";
|
|
5654
5878
|
import { useEffect as useEffect9 } from "react";
|
|
5655
|
-
import { jsx as
|
|
5879
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
5656
5880
|
function F_authenticate_SplashPage() {
|
|
5657
5881
|
const router = useRouter();
|
|
5658
5882
|
const S_Authenticate = useS_authenticate();
|
|
@@ -5663,14 +5887,14 @@ function F_authenticate_SplashPage() {
|
|
|
5663
5887
|
}
|
|
5664
5888
|
router.push("/admin/core71678");
|
|
5665
5889
|
}, [S_Authenticate.state.token]);
|
|
5666
|
-
return /* @__PURE__ */
|
|
5890
|
+
return /* @__PURE__ */ jsx128(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
|
5667
5891
|
}
|
|
5668
5892
|
|
|
5669
5893
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
5670
5894
|
import {
|
|
5671
5895
|
Anchor,
|
|
5672
5896
|
BackgroundImage,
|
|
5673
|
-
Button as
|
|
5897
|
+
Button as Button4,
|
|
5674
5898
|
Center as Center3,
|
|
5675
5899
|
Checkbox as Checkbox2,
|
|
5676
5900
|
Flex as Flex2,
|
|
@@ -5681,7 +5905,7 @@ import {
|
|
|
5681
5905
|
TextInput as TextInput3,
|
|
5682
5906
|
Title
|
|
5683
5907
|
} from "@mantine/core";
|
|
5684
|
-
import { useForm as
|
|
5908
|
+
import { useForm as useForm38 } from "@mantine/form";
|
|
5685
5909
|
import { useMutation as useMutation3 } from "@tanstack/react-query";
|
|
5686
5910
|
import Link from "next/link";
|
|
5687
5911
|
import { useRouter as useRouter2 } from "next/navigation";
|
|
@@ -5691,7 +5915,7 @@ import { useEffect as useEffect10, useState as useState8 } from "react";
|
|
|
5691
5915
|
var css_default = {};
|
|
5692
5916
|
|
|
5693
5917
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
5694
|
-
import { jsx as
|
|
5918
|
+
import { jsx as jsx129, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
5695
5919
|
function F_authenticate_Login({
|
|
5696
5920
|
header,
|
|
5697
5921
|
redirectUrlAfterLogin = "/admin/dashboard",
|
|
@@ -5709,7 +5933,7 @@ function F_authenticate_Login({
|
|
|
5709
5933
|
const permissionStore = useStore_Permission();
|
|
5710
5934
|
const loadingState = useState8(false);
|
|
5711
5935
|
const mutation = useM_Account_Sigin();
|
|
5712
|
-
const form =
|
|
5936
|
+
const form = useForm38({
|
|
5713
5937
|
initialValues: {
|
|
5714
5938
|
username: "",
|
|
5715
5939
|
password: ""
|
|
@@ -5740,30 +5964,30 @@ function F_authenticate_Login({
|
|
|
5740
5964
|
"userName": userName,
|
|
5741
5965
|
"passWord": passWord
|
|
5742
5966
|
}, {
|
|
5743
|
-
onSuccess: (
|
|
5967
|
+
onSuccess: (data2) => {
|
|
5744
5968
|
var _a, _b, _c, _d, _e;
|
|
5745
|
-
if (
|
|
5969
|
+
if (data2.isSuccess === false) {
|
|
5746
5970
|
form.setFieldError("username", "T\xE0i kho\u1EA3n kh\xF4ng t\u1ED3n t\u1EA1i");
|
|
5747
5971
|
loadingState[1](false);
|
|
5748
5972
|
return;
|
|
5749
5973
|
}
|
|
5750
|
-
if (
|
|
5751
|
-
form.setFieldError("password",
|
|
5974
|
+
if (data2.isSuccess == 0) {
|
|
5975
|
+
form.setFieldError("password", data2.message);
|
|
5752
5976
|
loadingState[1](false);
|
|
5753
5977
|
return;
|
|
5754
5978
|
}
|
|
5755
|
-
authenticate_store.setProperty("code", (_a =
|
|
5756
|
-
authenticate_store.setProperty("fullName", (_b =
|
|
5757
|
-
authenticate_store.setProperty("userId", (_c =
|
|
5758
|
-
authenticate_store.setProperty("token", (_d =
|
|
5979
|
+
authenticate_store.setProperty("code", (_a = data2.data) == null ? void 0 : _a.userName);
|
|
5980
|
+
authenticate_store.setProperty("fullName", (_b = data2.data) == null ? void 0 : _b.userFullName);
|
|
5981
|
+
authenticate_store.setProperty("userId", (_c = data2.data) == null ? void 0 : _c.userId);
|
|
5982
|
+
authenticate_store.setProperty("token", (_d = data2.data) == null ? void 0 : _d.token);
|
|
5759
5983
|
if (authenticate_store.state.saveLogin == true) {
|
|
5760
5984
|
authenticate_store.setProperty("username", userName);
|
|
5761
5985
|
} else {
|
|
5762
5986
|
authenticate_store.setProperty("username", "");
|
|
5763
5987
|
}
|
|
5764
|
-
permissionStore.setProperty("permission", (_e =
|
|
5988
|
+
permissionStore.setProperty("permission", (_e = data2.data) == null ? void 0 : _e.permissions);
|
|
5765
5989
|
if (onSuccess) {
|
|
5766
|
-
onSuccess(
|
|
5990
|
+
onSuccess(data2);
|
|
5767
5991
|
loadingState[1](false);
|
|
5768
5992
|
return;
|
|
5769
5993
|
}
|
|
@@ -5771,21 +5995,21 @@ function F_authenticate_Login({
|
|
|
5771
5995
|
}
|
|
5772
5996
|
});
|
|
5773
5997
|
}
|
|
5774
|
-
return /* @__PURE__ */
|
|
5998
|
+
return /* @__PURE__ */ jsx129(
|
|
5775
5999
|
BackgroundImage,
|
|
5776
6000
|
{
|
|
5777
6001
|
src: backgroundImage,
|
|
5778
6002
|
h: "100vh",
|
|
5779
|
-
children: /* @__PURE__ */
|
|
5780
|
-
header ? header : /* @__PURE__ */
|
|
5781
|
-
/* @__PURE__ */
|
|
5782
|
-
/* @__PURE__ */
|
|
6003
|
+
children: /* @__PURE__ */ jsx129(Center3, { h: "100vh", children: /* @__PURE__ */ jsxs74(Paper6, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
|
6004
|
+
header ? header : /* @__PURE__ */ jsxs74(Flex2, { direction: "column", mb: "md", children: [
|
|
6005
|
+
/* @__PURE__ */ jsx129(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
|
6006
|
+
/* @__PURE__ */ jsxs74(Text2, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
|
5783
6007
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
|
5784
|
-
/* @__PURE__ */
|
|
6008
|
+
/* @__PURE__ */ jsx129(Anchor, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
|
5785
6009
|
] })
|
|
5786
6010
|
] }),
|
|
5787
|
-
/* @__PURE__ */
|
|
5788
|
-
/* @__PURE__ */
|
|
6011
|
+
/* @__PURE__ */ jsx129("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs74(MyFlexColumn, { children: [
|
|
6012
|
+
/* @__PURE__ */ jsx129(
|
|
5789
6013
|
TextInput3,
|
|
5790
6014
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
|
5791
6015
|
label: "T\xE0i kho\u1EA3n",
|
|
@@ -5793,7 +6017,7 @@ function F_authenticate_Login({
|
|
|
5793
6017
|
withAsterisk: true
|
|
5794
6018
|
})
|
|
5795
6019
|
),
|
|
5796
|
-
/* @__PURE__ */
|
|
6020
|
+
/* @__PURE__ */ jsx129(
|
|
5797
6021
|
PasswordInput4,
|
|
5798
6022
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
|
5799
6023
|
label: "M\u1EADt kh\u1EA9u",
|
|
@@ -5801,8 +6025,8 @@ function F_authenticate_Login({
|
|
|
5801
6025
|
withAsterisk: true
|
|
5802
6026
|
})
|
|
5803
6027
|
),
|
|
5804
|
-
/* @__PURE__ */
|
|
5805
|
-
showSaveLogin && /* @__PURE__ */
|
|
6028
|
+
/* @__PURE__ */ jsxs74(Group6, { justify: "space-between", children: [
|
|
6029
|
+
showSaveLogin && /* @__PURE__ */ jsx129(
|
|
5806
6030
|
Checkbox2,
|
|
5807
6031
|
{
|
|
5808
6032
|
checked: authenticate_store.state.saveLogin,
|
|
@@ -5810,10 +6034,10 @@ function F_authenticate_Login({
|
|
|
5810
6034
|
label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
|
|
5811
6035
|
}
|
|
5812
6036
|
),
|
|
5813
|
-
showForgotPassword && /* @__PURE__ */
|
|
6037
|
+
showForgotPassword && /* @__PURE__ */ jsx129(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
5814
6038
|
] }),
|
|
5815
|
-
showLoginButton && /* @__PURE__ */
|
|
5816
|
-
|
|
6039
|
+
showLoginButton && /* @__PURE__ */ jsx129(
|
|
6040
|
+
Button4,
|
|
5817
6041
|
__spreadProps(__spreadValues({
|
|
5818
6042
|
loading: loadingState[0],
|
|
5819
6043
|
type: "submit",
|
|
@@ -5839,51 +6063,51 @@ function useM_Account_Sigin() {
|
|
|
5839
6063
|
}
|
|
5840
6064
|
|
|
5841
6065
|
// src/modules-features/authenticate/tokenExpired/Feat_TokenExpired.tsx
|
|
5842
|
-
import { Button as
|
|
6066
|
+
import { Button as Button5, Card, CardSection, Center as Center4, Text as Text3, Title as Title2 } from "@mantine/core";
|
|
5843
6067
|
import { Clock, LogIn, Shield } from "lucide-react";
|
|
5844
|
-
import { jsx as
|
|
6068
|
+
import { jsx as jsx130, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
5845
6069
|
function Feat_TokenExpired({
|
|
5846
6070
|
loginRedirect = "/auth/login"
|
|
5847
6071
|
}) {
|
|
5848
6072
|
const handleLogin = () => {
|
|
5849
6073
|
window.location.href = loginRedirect;
|
|
5850
6074
|
};
|
|
5851
|
-
return /* @__PURE__ */
|
|
5852
|
-
/* @__PURE__ */
|
|
5853
|
-
/* @__PURE__ */
|
|
5854
|
-
/* @__PURE__ */
|
|
6075
|
+
return /* @__PURE__ */ jsx130("div", { className: "min-h-screen flex items-center justify-center bg-gradient-to-br from-blue-50 via-indigo-50 to-purple-50 px-4 py-8", children: /* @__PURE__ */ jsxs75("div", { className: "w-full max-w-md", children: [
|
|
6076
|
+
/* @__PURE__ */ jsxs75("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: [
|
|
6077
|
+
/* @__PURE__ */ jsx130("div", { className: "absolute -top-40 -right-40 w-80 h-80 bg-gradient-to-br from-blue-200/30 to-purple-200/30 rounded-full blur-3xl" }),
|
|
6078
|
+
/* @__PURE__ */ jsx130("div", { className: "absolute -bottom-40 -left-40 w-80 h-80 bg-gradient-to-tr from-indigo-200/30 to-pink-200/30 rounded-full blur-3xl" })
|
|
5855
6079
|
] }),
|
|
5856
|
-
/* @__PURE__ */
|
|
5857
|
-
/* @__PURE__ */
|
|
5858
|
-
/* @__PURE__ */
|
|
5859
|
-
/* @__PURE__ */
|
|
5860
|
-
/* @__PURE__ */
|
|
5861
|
-
/* @__PURE__ */
|
|
6080
|
+
/* @__PURE__ */ jsxs75(Card, { className: "relative backdrop-blur-sm bg-white/80 border-0 shadow-2xl shadow-blue-500/10 py-12 px-8 rounded-xl", children: [
|
|
6081
|
+
/* @__PURE__ */ jsxs75(CardSection, { className: "text-center space-y-6 pb-8", children: [
|
|
6082
|
+
/* @__PURE__ */ jsx130("div", { className: "relative", children: /* @__PURE__ */ jsx130(Center4, { children: /* @__PURE__ */ jsx130("div", { className: "w-20 h-20 bg-gradient-to-br from-orange-400 to-red-500 rounded-full flex items-center justify-center shadow-lg shadow-orange-500/25 animate-pulse", children: /* @__PURE__ */ jsx130(Clock, { className: "w-10 h-10 text-white" }) }) }) }),
|
|
6083
|
+
/* @__PURE__ */ jsxs75("div", { className: "space-y-3", children: [
|
|
6084
|
+
/* @__PURE__ */ jsx130(Title2, { className: "text-3xl font-bold bg-gradient-to-r from-gray-800 to-gray-600 bg-clip-text text-transparent", children: "Phi\xEAn \u0111\u0103ng nh\u1EADp \u0111\xE3 h\u1EBFt h\u1EA1n" }),
|
|
6085
|
+
/* @__PURE__ */ jsxs75(Text3, { className: "text-gray-600 text-base leading-relaxed px-2", children: [
|
|
5862
6086
|
"Phi\xEAn l\xE0m vi\u1EC7c c\u1EE7a b\u1EA1n \u0111\xE3 h\u1EBFt h\u1EA1n v\xEC l\xFD do b\u1EA3o m\u1EADt.",
|
|
5863
|
-
/* @__PURE__ */
|
|
6087
|
+
/* @__PURE__ */ jsx130("br", {}),
|
|
5864
6088
|
"Vui l\xF2ng \u0111\u0103ng nh\u1EADp l\u1EA1i \u0111\u1EC3 ti\u1EBFp t\u1EE5c s\u1EED d\u1EE5ng d\u1ECBch v\u1EE5."
|
|
5865
6089
|
] })
|
|
5866
6090
|
] })
|
|
5867
6091
|
] }),
|
|
5868
|
-
/* @__PURE__ */
|
|
5869
|
-
/* @__PURE__ */
|
|
5870
|
-
|
|
6092
|
+
/* @__PURE__ */ jsxs75(CardSection, { className: "space-y-6 pt-0", children: [
|
|
6093
|
+
/* @__PURE__ */ jsxs75(
|
|
6094
|
+
Button5,
|
|
5871
6095
|
{
|
|
5872
6096
|
onClick: handleLogin,
|
|
5873
6097
|
className: "w-full h-12 bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white font-semibold rounded-xl shadow-lg shadow-blue-500/25 transition-all duration-300 hover:shadow-xl hover:shadow-blue-500/30 hover:scale-[1.02]",
|
|
5874
6098
|
size: "lg",
|
|
5875
6099
|
children: [
|
|
5876
|
-
/* @__PURE__ */
|
|
6100
|
+
/* @__PURE__ */ jsx130(LogIn, { className: "w-5 h-5 mr-2" }),
|
|
5877
6101
|
"\u0110\u0103ng nh\u1EADp l\u1EA1i"
|
|
5878
6102
|
]
|
|
5879
6103
|
}
|
|
5880
6104
|
),
|
|
5881
|
-
/* @__PURE__ */
|
|
5882
|
-
/* @__PURE__ */
|
|
5883
|
-
/* @__PURE__ */
|
|
6105
|
+
/* @__PURE__ */ jsx130("div", { className: "bg-gradient-to-r from-gray-50 to-blue-50 rounded-xl p-4 border border-gray-100", children: /* @__PURE__ */ jsxs75("div", { className: "text-center space-y-2", children: [
|
|
6106
|
+
/* @__PURE__ */ jsx130("p", { className: "text-sm font-medium text-gray-700", children: "C\u1EA7n h\u1ED7 tr\u1EE3?" }),
|
|
6107
|
+
/* @__PURE__ */ jsxs75("p", { className: "text-sm text-gray-600", children: [
|
|
5884
6108
|
"Li\xEAn h\u1EC7",
|
|
5885
6109
|
" ",
|
|
5886
|
-
/* @__PURE__ */
|
|
6110
|
+
/* @__PURE__ */ jsx130(
|
|
5887
6111
|
"a",
|
|
5888
6112
|
{
|
|
5889
6113
|
href: "/support",
|
|
@@ -5895,8 +6119,8 @@ function Feat_TokenExpired({
|
|
|
5895
6119
|
"c\u1EE7a ch\xFAng t\xF4i"
|
|
5896
6120
|
] })
|
|
5897
6121
|
] }) }),
|
|
5898
|
-
/* @__PURE__ */
|
|
5899
|
-
/* @__PURE__ */
|
|
6122
|
+
/* @__PURE__ */ jsx130("div", { className: "text-center", children: /* @__PURE__ */ jsxs75("p", { className: "text-xs text-gray-500 flex items-center justify-center gap-1", children: [
|
|
6123
|
+
/* @__PURE__ */ jsx130(Shield, { className: "w-3 h-3" }),
|
|
5900
6124
|
"B\u1EA3o m\u1EADt t\xE0i kho\u1EA3n \u0111\u01B0\u1EE3c \u01B0u ti\xEAn h\xE0ng \u0111\u1EA7u"
|
|
5901
6125
|
] }) })
|
|
5902
6126
|
] })
|
|
@@ -5970,6 +6194,9 @@ export {
|
|
|
5970
6194
|
F_mailConfig_CreateUpdate,
|
|
5971
6195
|
F_mailConfig_Delete,
|
|
5972
6196
|
F_mailConfig_Read,
|
|
6197
|
+
F_mailTemplate_CreateUpdate,
|
|
6198
|
+
F_mailTemplate_Delete,
|
|
6199
|
+
F_mailTemplate_Read,
|
|
5973
6200
|
F_moduleConfig,
|
|
5974
6201
|
F_organizationPolicyDocs,
|
|
5975
6202
|
F_organizationPolicyDocs_Create,
|