aq-fe-framework 0.1.323 → 0.1.325
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/modules-features/index.d.mts +86 -29
- package/dist/modules-features/index.mjs +742 -400
- package/package.json +1 -1
@@ -11,12 +11,20 @@ import {
|
|
11
11
|
import {
|
12
12
|
U0DateToDDMMYYYString
|
13
13
|
} from "../chunk-I2XIN2R3.mjs";
|
14
|
+
import {
|
15
|
+
MyButton,
|
16
|
+
MyDataTableSelectOne,
|
17
|
+
MyTextInput
|
18
|
+
} from "../chunk-HEW5D3R4.mjs";
|
19
|
+
import {
|
20
|
+
const_object_documentTypes
|
21
|
+
} from "../chunk-BZMQOGL6.mjs";
|
14
22
|
import {
|
15
23
|
F_authenticate_Logout,
|
16
24
|
MyActionIconDelete,
|
17
25
|
MyActionIconUpdate,
|
18
26
|
MyBoxesBackground,
|
19
|
-
MyButton,
|
27
|
+
MyButton as MyButton2,
|
20
28
|
MyButtonCreate,
|
21
29
|
MyButtonModal,
|
22
30
|
MyButtonViewPDF,
|
@@ -29,7 +37,7 @@ import {
|
|
29
37
|
MyPageContent,
|
30
38
|
MySelect,
|
31
39
|
MyTab,
|
32
|
-
MyTextInput,
|
40
|
+
MyTextInput as MyTextInput2,
|
33
41
|
groupToTwoLevels,
|
34
42
|
useS_authenticate,
|
35
43
|
utils_layout_getItemsWithoutLinks
|
@@ -38,14 +46,6 @@ import {
|
|
38
46
|
createGenericStore
|
39
47
|
} from "../chunk-Y3YGC5IH.mjs";
|
40
48
|
import "../chunk-5U2JSHSJ.mjs";
|
41
|
-
import {
|
42
|
-
const_object_documentTypes
|
43
|
-
} from "../chunk-BZMQOGL6.mjs";
|
44
|
-
import {
|
45
|
-
MyButton as MyButton2,
|
46
|
-
MyDataTableSelectOne,
|
47
|
-
MyTextInput as MyTextInput2
|
48
|
-
} from "../chunk-HEW5D3R4.mjs";
|
49
49
|
import {
|
50
50
|
MyDataTable,
|
51
51
|
MyFlexColumn,
|
@@ -468,7 +468,7 @@ function F_accessControl_Save() {
|
|
468
468
|
}
|
469
469
|
disable[1](false);
|
470
470
|
}, [store.state.rolePermissions]);
|
471
|
-
return /* @__PURE__ */ jsx3(
|
471
|
+
return /* @__PURE__ */ jsx3(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
472
472
|
}
|
473
473
|
|
474
474
|
// src/modules-features/admin/core/accessControl/F_accessControl.tsx
|
@@ -833,7 +833,7 @@ function F_accessControlLevel_Save() {
|
|
833
833
|
}
|
834
834
|
disable[1](false);
|
835
835
|
}, [store.state.rolePermissions]);
|
836
|
-
return /* @__PURE__ */ jsx7(
|
836
|
+
return /* @__PURE__ */ jsx7(MyButton2, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
837
837
|
}
|
838
838
|
|
839
839
|
// src/modules-features/admin/core/accessControlLevel/F_accessControlLevel.tsx
|
@@ -1037,12 +1037,12 @@ function F_accountManagement_Create() {
|
|
1037
1037
|
}));
|
1038
1038
|
}
|
1039
1039
|
return /* @__PURE__ */ jsxs6(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
1040
|
-
/* @__PURE__ */ jsx10(
|
1041
|
-
/* @__PURE__ */ jsx10(
|
1042
|
-
/* @__PURE__ */ jsx10(
|
1043
|
-
/* @__PURE__ */ jsx10(
|
1044
|
-
/* @__PURE__ */ jsx10(
|
1045
|
-
/* @__PURE__ */ jsx10(
|
1040
|
+
/* @__PURE__ */ jsx10(MyTextInput2, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
1041
|
+
/* @__PURE__ */ jsx10(MyTextInput2, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
1042
|
+
/* @__PURE__ */ jsx10(MyTextInput2, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
1043
|
+
/* @__PURE__ */ jsx10(MyTextInput2, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
1044
|
+
/* @__PURE__ */ jsx10(MyTextInput2, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
1045
|
+
/* @__PURE__ */ jsx10(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
1046
1046
|
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx10(
|
1047
1047
|
MultiSelect,
|
1048
1048
|
{
|
@@ -1121,11 +1121,11 @@ function F_accountManagement_Update({ user }) {
|
|
1121
1121
|
})
|
1122
1122
|
);
|
1123
1123
|
}, children: /* @__PURE__ */ jsxs7(MyFlexColumn, { children: [
|
1124
|
-
/* @__PURE__ */ jsx12(
|
1125
|
-
/* @__PURE__ */ jsx12(
|
1126
|
-
/* @__PURE__ */ jsx12(
|
1127
|
-
/* @__PURE__ */ jsx12(
|
1128
|
-
/* @__PURE__ */ jsx12(
|
1124
|
+
/* @__PURE__ */ jsx12(MyTextInput2, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
1125
|
+
/* @__PURE__ */ jsx12(MyTextInput2, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
1126
|
+
/* @__PURE__ */ jsx12(MyTextInput2, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
1127
|
+
/* @__PURE__ */ jsx12(MyTextInput2, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
1128
|
+
/* @__PURE__ */ jsx12(MyTextInput2, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber"))),
|
1129
1129
|
skillCenter_getAll_query.data && store.state.isRequireSkillCenter == true && /* @__PURE__ */ jsx12(
|
1130
1130
|
MultiSelect2,
|
1131
1131
|
{
|
@@ -1383,7 +1383,7 @@ function F_core12196_Update({
|
|
1383
1383
|
},
|
1384
1384
|
children: [
|
1385
1385
|
/* @__PURE__ */ jsx17(
|
1386
|
-
|
1386
|
+
MyTextInput2,
|
1387
1387
|
__spreadValues({
|
1388
1388
|
withAsterisk: true,
|
1389
1389
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1397,7 +1397,7 @@ function F_core12196_Update({
|
|
1397
1397
|
}, form.getInputProps("promulgateDate"))
|
1398
1398
|
),
|
1399
1399
|
/* @__PURE__ */ jsx17(
|
1400
|
-
|
1400
|
+
MyTextInput2,
|
1401
1401
|
__spreadValues({
|
1402
1402
|
withAsterisk: true,
|
1403
1403
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1566,7 +1566,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
1566
1566
|
},
|
1567
1567
|
children: [
|
1568
1568
|
/* @__PURE__ */ jsx19(
|
1569
|
-
|
1569
|
+
MyTextInput2,
|
1570
1570
|
__spreadValues({
|
1571
1571
|
withAsterisk: true,
|
1572
1572
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -1580,7 +1580,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
1580
1580
|
}, form.getInputProps("promulgateDate"))
|
1581
1581
|
),
|
1582
1582
|
/* @__PURE__ */ jsx19(
|
1583
|
-
|
1583
|
+
MyTextInput2,
|
1584
1584
|
__spreadValues({
|
1585
1585
|
withAsterisk: true,
|
1586
1586
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -1668,20 +1668,20 @@ function F_core16209_Create({
|
|
1668
1668
|
}, form.getInputProps("meetingDate"))
|
1669
1669
|
),
|
1670
1670
|
/* @__PURE__ */ jsx21(
|
1671
|
-
|
1671
|
+
MyTextInput2,
|
1672
1672
|
__spreadValues({
|
1673
1673
|
withAsterisk: true,
|
1674
1674
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
1675
1675
|
}, form.getInputProps("departmentName"))
|
1676
1676
|
),
|
1677
1677
|
/* @__PURE__ */ jsx21(
|
1678
|
-
|
1678
|
+
MyTextInput2,
|
1679
1679
|
__spreadValues({
|
1680
1680
|
withAsterisk: true,
|
1681
1681
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
1682
1682
|
}, form.getInputProps("description"))
|
1683
1683
|
),
|
1684
|
-
/* @__PURE__ */ jsx21(
|
1684
|
+
/* @__PURE__ */ jsx21(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
1685
1685
|
/* @__PURE__ */ jsx21(
|
1686
1686
|
MyDateInput,
|
1687
1687
|
__spreadValues({
|
@@ -1769,20 +1769,20 @@ function F_core16209_Update({ values }) {
|
|
1769
1769
|
}, form.getInputProps("meetingDate"))
|
1770
1770
|
),
|
1771
1771
|
/* @__PURE__ */ jsx23(
|
1772
|
-
|
1772
|
+
MyTextInput2,
|
1773
1773
|
__spreadValues({
|
1774
1774
|
withAsterisk: true,
|
1775
1775
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
1776
1776
|
}, form.getInputProps("departmentName"))
|
1777
1777
|
),
|
1778
1778
|
/* @__PURE__ */ jsx23(
|
1779
|
-
|
1779
|
+
MyTextInput2,
|
1780
1780
|
__spreadValues({
|
1781
1781
|
withAsterisk: true,
|
1782
1782
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
1783
1783
|
}, form.getInputProps("description"))
|
1784
1784
|
),
|
1785
|
-
/* @__PURE__ */ jsx23(
|
1785
|
+
/* @__PURE__ */ jsx23(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
1786
1786
|
/* @__PURE__ */ jsx23(
|
1787
1787
|
MyDateInput,
|
1788
1788
|
__spreadValues({
|
@@ -1898,8 +1898,8 @@ function F_core18256_Create({ documentType }) {
|
|
1898
1898
|
}
|
1899
1899
|
});
|
1900
1900
|
return /* @__PURE__ */ jsxs16(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
1901
|
-
/* @__PURE__ */ jsx25(
|
1902
|
-
/* @__PURE__ */ jsx25(
|
1901
|
+
/* @__PURE__ */ jsx25(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1902
|
+
/* @__PURE__ */ jsx25(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
1903
1903
|
] });
|
1904
1904
|
}
|
1905
1905
|
|
@@ -1922,8 +1922,8 @@ function F_core18256_Update({ values }) {
|
|
1922
1922
|
initialValues: values
|
1923
1923
|
});
|
1924
1924
|
return /* @__PURE__ */ jsxs17(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
1925
|
-
/* @__PURE__ */ jsx27(
|
1926
|
-
/* @__PURE__ */ jsx27(
|
1925
|
+
/* @__PURE__ */ jsx27(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1926
|
+
/* @__PURE__ */ jsx27(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
1927
1927
|
] });
|
1928
1928
|
}
|
1929
1929
|
|
@@ -2017,7 +2017,7 @@ function F_core26965_Create({
|
|
2017
2017
|
},
|
2018
2018
|
children: [
|
2019
2019
|
/* @__PURE__ */ jsx30(
|
2020
|
-
|
2020
|
+
MyTextInput2,
|
2021
2021
|
__spreadValues({
|
2022
2022
|
withAsterisk: true,
|
2023
2023
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -2031,7 +2031,7 @@ function F_core26965_Create({
|
|
2031
2031
|
}, form.getInputProps("promulgateDate"))
|
2032
2032
|
),
|
2033
2033
|
/* @__PURE__ */ jsx30(
|
2034
|
-
|
2034
|
+
MyTextInput2,
|
2035
2035
|
__spreadValues({
|
2036
2036
|
withAsterisk: true,
|
2037
2037
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2119,7 +2119,7 @@ function F_core26965_Update({
|
|
2119
2119
|
},
|
2120
2120
|
children: [
|
2121
2121
|
/* @__PURE__ */ jsx32(
|
2122
|
-
|
2122
|
+
MyTextInput2,
|
2123
2123
|
__spreadValues({
|
2124
2124
|
withAsterisk: true,
|
2125
2125
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -2133,7 +2133,7 @@ function F_core26965_Update({
|
|
2133
2133
|
}, form.getInputProps("promulgateDate"))
|
2134
2134
|
),
|
2135
2135
|
/* @__PURE__ */ jsx32(
|
2136
|
-
|
2136
|
+
MyTextInput2,
|
2137
2137
|
__spreadValues({
|
2138
2138
|
withAsterisk: true,
|
2139
2139
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2314,7 +2314,7 @@ function F_core27311_Create({
|
|
2314
2314
|
},
|
2315
2315
|
children: [
|
2316
2316
|
/* @__PURE__ */ jsx35(
|
2317
|
-
|
2317
|
+
MyTextInput2,
|
2318
2318
|
__spreadValues({
|
2319
2319
|
withAsterisk: true,
|
2320
2320
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -2328,7 +2328,7 @@ function F_core27311_Create({
|
|
2328
2328
|
}, form.getInputProps("promulgateDate"))
|
2329
2329
|
),
|
2330
2330
|
/* @__PURE__ */ jsx35(
|
2331
|
-
|
2331
|
+
MyTextInput2,
|
2332
2332
|
__spreadValues({
|
2333
2333
|
withAsterisk: true,
|
2334
2334
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2416,7 +2416,7 @@ function F_core27311_Update({
|
|
2416
2416
|
},
|
2417
2417
|
children: [
|
2418
2418
|
/* @__PURE__ */ jsx37(
|
2419
|
-
|
2419
|
+
MyTextInput2,
|
2420
2420
|
__spreadValues({
|
2421
2421
|
withAsterisk: true,
|
2422
2422
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -2430,7 +2430,7 @@ function F_core27311_Update({
|
|
2430
2430
|
}, form.getInputProps("promulgateDate"))
|
2431
2431
|
),
|
2432
2432
|
/* @__PURE__ */ jsx37(
|
2433
|
-
|
2433
|
+
MyTextInput2,
|
2434
2434
|
__spreadValues({
|
2435
2435
|
withAsterisk: true,
|
2436
2436
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2591,17 +2591,17 @@ import { jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2591
2591
|
function F_core35923() {
|
2592
2592
|
return /* @__PURE__ */ jsxs28(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
2593
2593
|
/* @__PURE__ */ jsxs28(Grid3, { children: [
|
2594
|
-
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx40(
|
2595
|
-
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx40(
|
2596
|
-
/* @__PURE__ */ jsx40(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx40(
|
2597
|
-
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(
|
2598
|
-
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(
|
2599
|
-
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(
|
2600
|
-
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(
|
2594
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx40(MyTextInput2, { label: "M\xE3 module", disabled: true }) }),
|
2595
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx40(MyTextInput2, { label: "T\xEAn module" }) }),
|
2596
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx40(MyTextInput2, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
2597
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput2, { label: "Email" }) }),
|
2598
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput2, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
2599
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput2, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
2600
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput2, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
2601
2601
|
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
2602
2602
|
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
2603
2603
|
] }),
|
2604
|
-
/* @__PURE__ */ jsx40(MyFlexEnd, { children: /* @__PURE__ */ jsx40(
|
2604
|
+
/* @__PURE__ */ jsx40(MyFlexEnd, { children: /* @__PURE__ */ jsx40(MyButton2, { crudType: "save" }) })
|
2605
2605
|
] });
|
2606
2606
|
}
|
2607
2607
|
|
@@ -2636,14 +2636,14 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
2636
2636
|
},
|
2637
2637
|
children: [
|
2638
2638
|
/* @__PURE__ */ jsx41(
|
2639
|
-
|
2639
|
+
MyTextInput2,
|
2640
2640
|
__spreadValues({
|
2641
2641
|
withAsterisk: true,
|
2642
2642
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
2643
2643
|
}, form.getInputProps("code"))
|
2644
2644
|
),
|
2645
2645
|
/* @__PURE__ */ jsx41(
|
2646
|
-
|
2646
|
+
MyTextInput2,
|
2647
2647
|
__spreadValues({
|
2648
2648
|
withAsterisk: true,
|
2649
2649
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2708,14 +2708,14 @@ function F_core40207_Update({ values }) {
|
|
2708
2708
|
},
|
2709
2709
|
children: [
|
2710
2710
|
/* @__PURE__ */ jsx43(
|
2711
|
-
|
2711
|
+
MyTextInput2,
|
2712
2712
|
__spreadValues({
|
2713
2713
|
withAsterisk: true,
|
2714
2714
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
2715
2715
|
}, form.getInputProps("code"))
|
2716
2716
|
),
|
2717
2717
|
/* @__PURE__ */ jsx43(
|
2718
|
-
|
2718
|
+
MyTextInput2,
|
2719
2719
|
__spreadValues({
|
2720
2720
|
withAsterisk: true,
|
2721
2721
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -2825,14 +2825,14 @@ function F_core47643_Form({ values }) {
|
|
2825
2825
|
if (values) return /* @__PURE__ */ jsxs32(MyActionIconUpdate, { form, onSubmit: async () => {
|
2826
2826
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
2827
2827
|
}, children: [
|
2828
|
-
/* @__PURE__ */ jsx47(
|
2829
|
-
/* @__PURE__ */ jsx47(
|
2828
|
+
/* @__PURE__ */ jsx47(MyTextInput2, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
2829
|
+
/* @__PURE__ */ jsx47(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
2830
2830
|
] });
|
2831
2831
|
return /* @__PURE__ */ jsxs32(MyButtonCreate, { form, onSubmit: async () => {
|
2832
2832
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
2833
2833
|
}, children: [
|
2834
|
-
/* @__PURE__ */ jsx47(
|
2835
|
-
/* @__PURE__ */ jsx47(
|
2834
|
+
/* @__PURE__ */ jsx47(MyTextInput2, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
2835
|
+
/* @__PURE__ */ jsx47(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
2836
2836
|
] });
|
2837
2837
|
}
|
2838
2838
|
|
@@ -2961,7 +2961,7 @@ function FormInput({ form, emailModule }) {
|
|
2961
2961
|
})
|
2962
2962
|
),
|
2963
2963
|
/* @__PURE__ */ jsx51(
|
2964
|
-
|
2964
|
+
MyTextInput2,
|
2965
2965
|
__spreadValues({
|
2966
2966
|
label: "Host mail server"
|
2967
2967
|
}, form.getInputProps("hostMailServer"))
|
@@ -2988,7 +2988,7 @@ function FormInput({ form, emailModule }) {
|
|
2988
2988
|
}
|
2989
2989
|
),
|
2990
2990
|
/* @__PURE__ */ jsx51(
|
2991
|
-
|
2991
|
+
MyTextInput2,
|
2992
2992
|
__spreadValues({
|
2993
2993
|
label: "Username"
|
2994
2994
|
}, form.getInputProps("userName"))
|
@@ -3101,7 +3101,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
3101
3101
|
},
|
3102
3102
|
children: [
|
3103
3103
|
/* @__PURE__ */ jsx54(
|
3104
|
-
|
3104
|
+
MyTextInput2,
|
3105
3105
|
__spreadValues({
|
3106
3106
|
withAsterisk: true,
|
3107
3107
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -3115,7 +3115,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
3115
3115
|
}, form.getInputProps("promulgateDate"))
|
3116
3116
|
),
|
3117
3117
|
/* @__PURE__ */ jsx54(
|
3118
|
-
|
3118
|
+
MyTextInput2,
|
3119
3119
|
__spreadValues({
|
3120
3120
|
withAsterisk: true,
|
3121
3121
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -3281,14 +3281,159 @@ function F_core76318({ SecurityTypeId }) {
|
|
3281
3281
|
return /* @__PURE__ */ jsx58(F_core76318_Read, { SecurityTypeId });
|
3282
3282
|
}
|
3283
3283
|
|
3284
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories.tsx
|
3285
|
+
import { Tabs as Tabs2 } from "@mantine/core";
|
3286
|
+
|
3287
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories_Read.tsx
|
3288
|
+
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
3289
|
+
import { useMemo as useMemo14 } from "react";
|
3290
|
+
|
3291
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories_Create.tsx
|
3292
|
+
import { useForm as useForm19 } from "@mantine/form";
|
3293
|
+
import { jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
|
3294
|
+
function F_documentCategories_Create({ documentType }) {
|
3295
|
+
const form = useForm19({
|
3296
|
+
mode: "uncontrolled",
|
3297
|
+
initialValues: {
|
3298
|
+
name: "",
|
3299
|
+
code: "",
|
3300
|
+
documentType
|
3301
|
+
},
|
3302
|
+
validate: {
|
3303
|
+
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3304
|
+
}
|
3305
|
+
});
|
3306
|
+
return /* @__PURE__ */ jsxs39(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
3307
|
+
/* @__PURE__ */ jsx59(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
3308
|
+
/* @__PURE__ */ jsx59(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
3309
|
+
] });
|
3310
|
+
}
|
3311
|
+
|
3312
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories_Delete.tsx
|
3313
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
3314
|
+
function F_documentCategories_Delete({ id }) {
|
3315
|
+
return /* @__PURE__ */ jsx60(
|
3316
|
+
MyActionIconDelete,
|
3317
|
+
{
|
3318
|
+
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
3319
|
+
}
|
3320
|
+
);
|
3321
|
+
}
|
3322
|
+
|
3323
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories_Update.tsx
|
3324
|
+
import { useForm as useForm20 } from "@mantine/form";
|
3325
|
+
import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
|
3326
|
+
function F_documentCategories_Update({ values }) {
|
3327
|
+
const form = useForm20({
|
3328
|
+
initialValues: values
|
3329
|
+
});
|
3330
|
+
return /* @__PURE__ */ jsxs40(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
3331
|
+
/* @__PURE__ */ jsx61(MyTextInput2, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
3332
|
+
/* @__PURE__ */ jsx61(MyTextInput2, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
3333
|
+
] });
|
3334
|
+
}
|
3335
|
+
|
3336
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories_Read.tsx
|
3337
|
+
import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
|
3338
|
+
function F_documentCategories_Read({ documentType }) {
|
3339
|
+
const documentAttributeQuery = useQuery14({
|
3340
|
+
queryKey: ["F_core18256_Read", documentType],
|
3341
|
+
queryFn: async () => {
|
3342
|
+
var _a;
|
3343
|
+
const result = await baseAxios_default.get("/DocumentAttribute/GetByType?", { params: { documentType } });
|
3344
|
+
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
3345
|
+
}
|
3346
|
+
});
|
3347
|
+
const columns = useMemo14(
|
3348
|
+
() => [
|
3349
|
+
{
|
3350
|
+
header: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n",
|
3351
|
+
accessorKey: "code"
|
3352
|
+
},
|
3353
|
+
{
|
3354
|
+
header: "T\xEAn Lo\u1EA1i V\u0103n B\u1EA3n",
|
3355
|
+
accessorKey: "name"
|
3356
|
+
}
|
3357
|
+
],
|
3358
|
+
[]
|
3359
|
+
);
|
3360
|
+
return /* @__PURE__ */ jsx62(
|
3361
|
+
MyDataTable,
|
3362
|
+
{
|
3363
|
+
isLoading: documentAttributeQuery.isLoading,
|
3364
|
+
isError: documentAttributeQuery.isError,
|
3365
|
+
columns,
|
3366
|
+
enableRowNumbers: true,
|
3367
|
+
data: documentAttributeQuery.data || [],
|
3368
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx62(F_documentCategories_Create, { documentType }),
|
3369
|
+
renderRowActions: ({ row }) => {
|
3370
|
+
return /* @__PURE__ */ jsxs41(MyCenterFull, { children: [
|
3371
|
+
/* @__PURE__ */ jsx62(F_documentCategories_Update, { values: row.original }),
|
3372
|
+
/* @__PURE__ */ jsx62(F_documentCategories_Delete, { id: row.original.id })
|
3373
|
+
] });
|
3374
|
+
}
|
3375
|
+
}
|
3376
|
+
);
|
3377
|
+
}
|
3378
|
+
|
3379
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories.tsx
|
3380
|
+
import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
|
3381
|
+
var tabData2 = [
|
3382
|
+
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
3383
|
+
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
3384
|
+
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
3385
|
+
];
|
3386
|
+
function F_documentCategories() {
|
3387
|
+
return /* @__PURE__ */ jsxs42(MyTab, { tabList: tabData2, children: [
|
3388
|
+
/* @__PURE__ */ jsx63(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx63(F_documentCategories_Read, { documentType: const_object_documentTypes.Regulations }) }),
|
3389
|
+
/* @__PURE__ */ jsx63(Tabs2.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx63(F_documentCategories_Read, { documentType: const_object_documentTypes.Workflow }) }),
|
3390
|
+
/* @__PURE__ */ jsx63(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx63(F_documentCategories_Read, { documentType: const_object_documentTypes.Form }) })
|
3391
|
+
] });
|
3392
|
+
}
|
3393
|
+
|
3394
|
+
// src/modules-features/admin/core/documentCategories/F_documentCategories_Select.tsx
|
3395
|
+
import { Select as Select2 } from "@mantine/core";
|
3396
|
+
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
3397
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
3398
|
+
function F_documentCategories_Select(_a) {
|
3399
|
+
var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
|
3400
|
+
var _a2, _b2;
|
3401
|
+
const query = useQuery15({
|
3402
|
+
queryKey: [`/DocumentAttribute/GetByType?documentType=${documentTypeId}`],
|
3403
|
+
queryFn: async () => {
|
3404
|
+
const result = (await baseAxios_default.get(`/DocumentAttribute/GetByType?documentType=${documentTypeId}`)).data.data;
|
3405
|
+
return result;
|
3406
|
+
}
|
3407
|
+
});
|
3408
|
+
if (query.isLoading) return "Loading...";
|
3409
|
+
const data = (_a2 = query.data) == null ? void 0 : _a2.map((item) => {
|
3410
|
+
var _a3;
|
3411
|
+
if (dataMapper) return dataMapper(item);
|
3412
|
+
return {
|
3413
|
+
value: (_a3 = item.id) == null ? void 0 : _a3.toString(),
|
3414
|
+
label: `${item.code}-${item.name}`
|
3415
|
+
};
|
3416
|
+
});
|
3417
|
+
return /* @__PURE__ */ jsx64(
|
3418
|
+
Select2,
|
3419
|
+
__spreadProps(__spreadValues({
|
3420
|
+
label,
|
3421
|
+
placeholder: `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}`,
|
3422
|
+
data
|
3423
|
+
}, rest), {
|
3424
|
+
value: (_b2 = rest.value) == null ? void 0 : _b2.toString()
|
3425
|
+
})
|
3426
|
+
);
|
3427
|
+
}
|
3428
|
+
|
3284
3429
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
3285
3430
|
import { Paper as Paper6, Space as Space4 } from "@mantine/core";
|
3286
3431
|
|
3287
3432
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Create.tsx
|
3288
|
-
import { useForm as
|
3289
|
-
import { jsx as
|
3433
|
+
import { useForm as useForm21 } from "@mantine/form";
|
3434
|
+
import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
|
3290
3435
|
function F_formTemplateDocs_Create({ FormTypeId }) {
|
3291
|
-
const form =
|
3436
|
+
const form = useForm21({
|
3292
3437
|
mode: "uncontrolled",
|
3293
3438
|
validate: {
|
3294
3439
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3298,7 +3443,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3298
3443
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3299
3444
|
}
|
3300
3445
|
});
|
3301
|
-
return /* @__PURE__ */
|
3446
|
+
return /* @__PURE__ */ jsxs43(
|
3302
3447
|
MyButtonCreate,
|
3303
3448
|
{
|
3304
3449
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -3310,28 +3455,28 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3310
3455
|
}));
|
3311
3456
|
},
|
3312
3457
|
children: [
|
3313
|
-
/* @__PURE__ */
|
3314
|
-
|
3458
|
+
/* @__PURE__ */ jsx65(
|
3459
|
+
MyTextInput2,
|
3315
3460
|
__spreadValues({
|
3316
3461
|
withAsterisk: true,
|
3317
3462
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3318
3463
|
}, form.getInputProps("decisionCode"))
|
3319
3464
|
),
|
3320
|
-
/* @__PURE__ */
|
3465
|
+
/* @__PURE__ */ jsx65(
|
3321
3466
|
MyDateInput,
|
3322
3467
|
__spreadValues({
|
3323
3468
|
withAsterisk: true,
|
3324
3469
|
label: "Ng\xE0y ban h\xE0nh"
|
3325
3470
|
}, form.getInputProps("promulgateDate"))
|
3326
3471
|
),
|
3327
|
-
/* @__PURE__ */
|
3328
|
-
|
3472
|
+
/* @__PURE__ */ jsx65(
|
3473
|
+
MyTextInput2,
|
3329
3474
|
__spreadValues({
|
3330
3475
|
withAsterisk: true,
|
3331
3476
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3332
3477
|
}, form.getInputProps("name"))
|
3333
3478
|
),
|
3334
|
-
/* @__PURE__ */
|
3479
|
+
/* @__PURE__ */ jsx65(
|
3335
3480
|
F_core18256_Select,
|
3336
3481
|
__spreadValues({
|
3337
3482
|
withAsterisk: true,
|
@@ -3339,14 +3484,14 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3339
3484
|
documentTypeId: FormTypeId
|
3340
3485
|
}, form.getInputProps("documentAttributeId"))
|
3341
3486
|
),
|
3342
|
-
/* @__PURE__ */
|
3487
|
+
/* @__PURE__ */ jsx65(
|
3343
3488
|
MyFileInput,
|
3344
3489
|
__spreadValues({
|
3345
3490
|
withAsterisk: true,
|
3346
3491
|
label: "V\u0103n b\u1EA3n"
|
3347
3492
|
}, form.getInputProps("file"))
|
3348
3493
|
),
|
3349
|
-
/* @__PURE__ */
|
3494
|
+
/* @__PURE__ */ jsx65(
|
3350
3495
|
MyNumberInput,
|
3351
3496
|
__spreadValues({
|
3352
3497
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3359,17 +3504,17 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3359
3504
|
|
3360
3505
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
|
3361
3506
|
import { Accordion as Accordion4, Alert as Alert4, Blockquote as Blockquote4, Skeleton as Skeleton4 } from "@mantine/core";
|
3362
|
-
import { useQuery as
|
3363
|
-
import { useMemo as
|
3507
|
+
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
3508
|
+
import { useMemo as useMemo15 } from "react";
|
3364
3509
|
import { IconBug as IconBug4 } from "@tabler/icons-react";
|
3365
3510
|
|
3366
3511
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Delete.tsx
|
3367
|
-
import { jsx as
|
3512
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
3368
3513
|
function F_formTemplateDocs_Delete({
|
3369
3514
|
id,
|
3370
3515
|
contextData
|
3371
3516
|
}) {
|
3372
|
-
return /* @__PURE__ */
|
3517
|
+
return /* @__PURE__ */ jsx66(
|
3373
3518
|
MyActionIconDelete,
|
3374
3519
|
{
|
3375
3520
|
contextData,
|
@@ -3379,14 +3524,14 @@ function F_formTemplateDocs_Delete({
|
|
3379
3524
|
}
|
3380
3525
|
|
3381
3526
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Update.tsx
|
3382
|
-
import { useForm as
|
3383
|
-
import { jsx as
|
3527
|
+
import { useForm as useForm22 } from "@mantine/form";
|
3528
|
+
import { jsx as jsx67, jsxs as jsxs44 } from "react/jsx-runtime";
|
3384
3529
|
function F_formTemplateDocs_Update({
|
3385
3530
|
values,
|
3386
3531
|
FormTypeId
|
3387
3532
|
}) {
|
3388
3533
|
var _a;
|
3389
|
-
const form =
|
3534
|
+
const form = useForm22({
|
3390
3535
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
3391
3536
|
file: new File(
|
3392
3537
|
[],
|
@@ -3402,7 +3547,7 @@ function F_formTemplateDocs_Update({
|
|
3402
3547
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3403
3548
|
}
|
3404
3549
|
});
|
3405
|
-
return /* @__PURE__ */
|
3550
|
+
return /* @__PURE__ */ jsxs44(
|
3406
3551
|
MyActionIconUpdate,
|
3407
3552
|
{
|
3408
3553
|
form,
|
@@ -3412,28 +3557,28 @@ function F_formTemplateDocs_Update({
|
|
3412
3557
|
}));
|
3413
3558
|
},
|
3414
3559
|
children: [
|
3415
|
-
/* @__PURE__ */
|
3416
|
-
|
3560
|
+
/* @__PURE__ */ jsx67(
|
3561
|
+
MyTextInput2,
|
3417
3562
|
__spreadValues({
|
3418
3563
|
withAsterisk: true,
|
3419
3564
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3420
3565
|
}, form.getInputProps("decisionCode"))
|
3421
3566
|
),
|
3422
|
-
/* @__PURE__ */
|
3567
|
+
/* @__PURE__ */ jsx67(
|
3423
3568
|
MyDateInput,
|
3424
3569
|
__spreadValues({
|
3425
3570
|
withAsterisk: true,
|
3426
3571
|
label: "Ng\xE0y ban h\xE0nh"
|
3427
3572
|
}, form.getInputProps("promulgateDate"))
|
3428
3573
|
),
|
3429
|
-
/* @__PURE__ */
|
3430
|
-
|
3574
|
+
/* @__PURE__ */ jsx67(
|
3575
|
+
MyTextInput2,
|
3431
3576
|
__spreadValues({
|
3432
3577
|
withAsterisk: true,
|
3433
3578
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3434
3579
|
}, form.getInputProps("name"))
|
3435
3580
|
),
|
3436
|
-
/* @__PURE__ */
|
3581
|
+
/* @__PURE__ */ jsx67(
|
3437
3582
|
F_core18256_Select,
|
3438
3583
|
__spreadValues({
|
3439
3584
|
withAsterisk: true,
|
@@ -3441,14 +3586,14 @@ function F_formTemplateDocs_Update({
|
|
3441
3586
|
documentTypeId: FormTypeId
|
3442
3587
|
}, form.getInputProps("documentAttributeId"))
|
3443
3588
|
),
|
3444
|
-
/* @__PURE__ */
|
3589
|
+
/* @__PURE__ */ jsx67(
|
3445
3590
|
MyFileInput,
|
3446
3591
|
__spreadValues({
|
3447
3592
|
withAsterisk: true,
|
3448
3593
|
label: "V\u0103n b\u1EA3n"
|
3449
3594
|
}, form.getInputProps("file"))
|
3450
3595
|
),
|
3451
|
-
/* @__PURE__ */
|
3596
|
+
/* @__PURE__ */ jsx67(
|
3452
3597
|
MyNumberInput,
|
3453
3598
|
__spreadValues({
|
3454
3599
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3460,10 +3605,10 @@ function F_formTemplateDocs_Update({
|
|
3460
3605
|
}
|
3461
3606
|
|
3462
3607
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs_Read.tsx
|
3463
|
-
import { jsx as
|
3608
|
+
import { jsx as jsx68, jsxs as jsxs45 } from "react/jsx-runtime";
|
3464
3609
|
function F_formTemplateDocs_Read({ FormTypeId }) {
|
3465
3610
|
var _a, _b, _c;
|
3466
|
-
const documentAttributeQuery =
|
3611
|
+
const documentAttributeQuery = useQuery16({
|
3467
3612
|
queryKey: ["F_formTemplateDocs_Read", FormTypeId],
|
3468
3613
|
queryFn: async () => {
|
3469
3614
|
var _a2;
|
@@ -3474,10 +3619,10 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
3474
3619
|
}
|
3475
3620
|
});
|
3476
3621
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
3477
|
-
return /* @__PURE__ */
|
3622
|
+
return /* @__PURE__ */ jsx68(Blockquote4, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
3478
3623
|
if (documentAttributeQuery.isError)
|
3479
|
-
return /* @__PURE__ */
|
3480
|
-
return /* @__PURE__ */
|
3624
|
+
return /* @__PURE__ */ jsx68(Alert4, { icon: /* @__PURE__ */ jsx68(IconBug4, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
3625
|
+
return /* @__PURE__ */ jsx68(Skeleton4, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx68(MyFlexColumn, { children: /* @__PURE__ */ jsx68(
|
3481
3626
|
Accordion4,
|
3482
3627
|
{
|
3483
3628
|
variant: "contained",
|
@@ -3488,7 +3633,7 @@ function F_formTemplateDocs_Read({ FormTypeId }) {
|
|
3488
3633
|
}
|
3489
3634
|
),
|
3490
3635
|
multiple: true,
|
3491
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
3636
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx68(
|
3492
3637
|
SubRead4,
|
3493
3638
|
{
|
3494
3639
|
name: item.name,
|
@@ -3505,7 +3650,7 @@ function SubRead4({
|
|
3505
3650
|
documentType,
|
3506
3651
|
FormTypeId
|
3507
3652
|
}) {
|
3508
|
-
const documentQuery =
|
3653
|
+
const documentQuery = useQuery16({
|
3509
3654
|
queryKey: ["SF2_3Read" + documentType],
|
3510
3655
|
queryFn: async () => {
|
3511
3656
|
const result = await baseAxios_default.get(
|
@@ -3514,7 +3659,7 @@ function SubRead4({
|
|
3514
3659
|
return result.data.data;
|
3515
3660
|
}
|
3516
3661
|
});
|
3517
|
-
const columns =
|
3662
|
+
const columns = useMemo15(
|
3518
3663
|
() => [
|
3519
3664
|
{
|
3520
3665
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -3531,7 +3676,7 @@ function SubRead4({
|
|
3531
3676
|
{
|
3532
3677
|
header: "File",
|
3533
3678
|
accessorFn: (row) => {
|
3534
|
-
return /* @__PURE__ */
|
3679
|
+
return /* @__PURE__ */ jsx68(MyCenterFull, { children: /* @__PURE__ */ jsx68(MyButtonViewPDF, { id: row.id }) });
|
3535
3680
|
}
|
3536
3681
|
}
|
3537
3682
|
],
|
@@ -3539,24 +3684,24 @@ function SubRead4({
|
|
3539
3684
|
);
|
3540
3685
|
if (documentQuery.isLoading) return "Loading...";
|
3541
3686
|
if (documentQuery.isError) return "Error!";
|
3542
|
-
return /* @__PURE__ */
|
3543
|
-
/* @__PURE__ */
|
3544
|
-
/* @__PURE__ */
|
3687
|
+
return /* @__PURE__ */ jsxs45(Accordion4.Item, { value: documentType.toString(), children: [
|
3688
|
+
/* @__PURE__ */ jsx68(Accordion4.Control, { children: name }),
|
3689
|
+
/* @__PURE__ */ jsx68(Accordion4.Panel, { children: /* @__PURE__ */ jsx68(
|
3545
3690
|
MyDataTable,
|
3546
3691
|
{
|
3547
3692
|
isLoading: documentQuery.isLoading,
|
3548
3693
|
isError: documentQuery.isError,
|
3549
3694
|
columns,
|
3550
3695
|
data: documentQuery.data || [],
|
3551
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
3552
|
-
/* @__PURE__ */
|
3696
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs45(MyCenterFull, { children: [
|
3697
|
+
/* @__PURE__ */ jsx68(
|
3553
3698
|
F_formTemplateDocs_Update,
|
3554
3699
|
{
|
3555
3700
|
FormTypeId,
|
3556
3701
|
values: row.original
|
3557
3702
|
}
|
3558
3703
|
),
|
3559
|
-
/* @__PURE__ */
|
3704
|
+
/* @__PURE__ */ jsx68(
|
3560
3705
|
F_formTemplateDocs_Delete,
|
3561
3706
|
{
|
3562
3707
|
id: row.original.id,
|
@@ -3570,23 +3715,210 @@ function SubRead4({
|
|
3570
3715
|
}
|
3571
3716
|
|
3572
3717
|
// src/modules-features/admin/core/formTemplateDocs/F_formTemplateDocs.tsx
|
3573
|
-
import { jsx as
|
3718
|
+
import { jsx as jsx69, jsxs as jsxs46 } from "react/jsx-runtime";
|
3574
3719
|
function F_formTemplateDocs({
|
3575
3720
|
FormTypeId
|
3576
3721
|
}) {
|
3577
|
-
return /* @__PURE__ */
|
3578
|
-
/* @__PURE__ */
|
3579
|
-
/* @__PURE__ */
|
3580
|
-
/* @__PURE__ */
|
3722
|
+
return /* @__PURE__ */ jsxs46(Paper6, { p: "md", children: [
|
3723
|
+
/* @__PURE__ */ jsx69(MyFlexEnd, { children: /* @__PURE__ */ jsx69(F_formTemplateDocs_Create, { FormTypeId }) }),
|
3724
|
+
/* @__PURE__ */ jsx69(Space4, {}),
|
3725
|
+
/* @__PURE__ */ jsx69(F_formTemplateDocs_Read, { FormTypeId })
|
3726
|
+
] });
|
3727
|
+
}
|
3728
|
+
|
3729
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Read.tsx
|
3730
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
3731
|
+
import { useMemo as useMemo16 } from "react";
|
3732
|
+
|
3733
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Delete.tsx
|
3734
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
3735
|
+
function F_mailConfig_Delete({ values }) {
|
3736
|
+
return /* @__PURE__ */ jsx70(
|
3737
|
+
MyActionIconDelete,
|
3738
|
+
{
|
3739
|
+
contextData: values == null ? void 0 : values.code,
|
3740
|
+
onSubmit: () => {
|
3741
|
+
return baseAxios_default.post("/EmailConfig/Delete", {
|
3742
|
+
id: values == null ? void 0 : values.id
|
3743
|
+
});
|
3744
|
+
}
|
3745
|
+
}
|
3746
|
+
);
|
3747
|
+
}
|
3748
|
+
|
3749
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Form.tsx
|
3750
|
+
import { PasswordInput as PasswordInput2 } from "@mantine/core";
|
3751
|
+
import { useForm as useForm23 } from "@mantine/form";
|
3752
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "react/jsx-runtime";
|
3753
|
+
function F_mailConfig_Form({ values, emailModule }) {
|
3754
|
+
const form = useForm23({
|
3755
|
+
mode: "uncontrolled",
|
3756
|
+
initialValues: values ? values : {
|
3757
|
+
emailModule: Number(emailModule[0])
|
3758
|
+
}
|
3759
|
+
});
|
3760
|
+
function handleSubmit() {
|
3761
|
+
const formValues = form.getValues();
|
3762
|
+
return baseAxios_default.post(`/EmailConfig/${values ? "update" : "create"}`, {
|
3763
|
+
"id": values ? formValues.id : 0,
|
3764
|
+
"code": "string",
|
3765
|
+
"name": "string",
|
3766
|
+
"concurrencyStamp": "string",
|
3767
|
+
"isEnabled": true,
|
3768
|
+
"order": 0,
|
3769
|
+
"emailModule": formValues.emailModule,
|
3770
|
+
"hostMailServer": formValues.hostMailServer,
|
3771
|
+
"outgoingPort": formValues.outgoingPort,
|
3772
|
+
"incomingPort": formValues.incomingPort,
|
3773
|
+
"sll": formValues.sll,
|
3774
|
+
"userName": formValues.userName,
|
3775
|
+
"password": formValues.password
|
3776
|
+
});
|
3777
|
+
}
|
3778
|
+
if (values) return /* @__PURE__ */ jsx71(
|
3779
|
+
MyActionIconUpdate,
|
3780
|
+
{
|
3781
|
+
form,
|
3782
|
+
onSubmit: handleSubmit,
|
3783
|
+
children: /* @__PURE__ */ jsx71(FormInput2, { form, emailModule })
|
3784
|
+
}
|
3785
|
+
);
|
3786
|
+
return /* @__PURE__ */ jsx71(
|
3787
|
+
MyButtonCreate,
|
3788
|
+
{
|
3789
|
+
form,
|
3790
|
+
onSubmit: handleSubmit,
|
3791
|
+
children: /* @__PURE__ */ jsx71(FormInput2, { form, emailModule })
|
3792
|
+
}
|
3793
|
+
);
|
3794
|
+
}
|
3795
|
+
function FormInput2({ form, emailModule }) {
|
3796
|
+
var _a, _b;
|
3797
|
+
return /* @__PURE__ */ jsxs47(MyFlexColumn, { children: [
|
3798
|
+
/* @__PURE__ */ jsx71(
|
3799
|
+
MySelect,
|
3800
|
+
__spreadProps(__spreadValues({
|
3801
|
+
label: "Ph\xE2n h\u1EC7",
|
3802
|
+
data: emailModule
|
3803
|
+
}, form.getInputProps("emailModule")), {
|
3804
|
+
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
3805
|
+
})
|
3806
|
+
),
|
3807
|
+
/* @__PURE__ */ jsx71(
|
3808
|
+
MyTextInput2,
|
3809
|
+
__spreadValues({
|
3810
|
+
label: "Host mail server"
|
3811
|
+
}, form.getInputProps("hostMailServer"))
|
3812
|
+
),
|
3813
|
+
/* @__PURE__ */ jsx71(
|
3814
|
+
MyNumberInput,
|
3815
|
+
__spreadValues({
|
3816
|
+
label: "Outgoing port"
|
3817
|
+
}, form.getInputProps("outgoingPort"))
|
3818
|
+
),
|
3819
|
+
/* @__PURE__ */ jsx71(
|
3820
|
+
MyNumberInput,
|
3821
|
+
__spreadValues({
|
3822
|
+
label: "Incoming port"
|
3823
|
+
}, form.getInputProps("incomingPort"))
|
3824
|
+
),
|
3825
|
+
/* @__PURE__ */ jsx71(
|
3826
|
+
MySelect,
|
3827
|
+
{
|
3828
|
+
label: "SSL",
|
3829
|
+
data: ["true", "false"],
|
3830
|
+
value: (_b = form.getValues().sll) == null ? void 0 : _b.toString(),
|
3831
|
+
onChange: (e) => form.setFieldValue("sll", e == "true" ? true : false)
|
3832
|
+
}
|
3833
|
+
),
|
3834
|
+
/* @__PURE__ */ jsx71(
|
3835
|
+
MyTextInput2,
|
3836
|
+
__spreadValues({
|
3837
|
+
label: "Username"
|
3838
|
+
}, form.getInputProps("userName"))
|
3839
|
+
),
|
3840
|
+
/* @__PURE__ */ jsx71(
|
3841
|
+
PasswordInput2,
|
3842
|
+
__spreadValues({
|
3843
|
+
label: "Password",
|
3844
|
+
placeholder: "Nh\u1EADp password"
|
3845
|
+
}, form.getInputProps("password"))
|
3846
|
+
)
|
3581
3847
|
] });
|
3582
3848
|
}
|
3583
3849
|
|
3850
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Read.tsx
|
3851
|
+
import { jsx as jsx72, jsxs as jsxs48 } from "react/jsx-runtime";
|
3852
|
+
function F_mailConfig_Read({ emailModule }) {
|
3853
|
+
const query = useQuery17({
|
3854
|
+
queryKey: ["F_core64229_Read"],
|
3855
|
+
queryFn: async () => {
|
3856
|
+
const res = await baseAxios_default.get("/EmailConfig/GetAll");
|
3857
|
+
return res.data.data;
|
3858
|
+
}
|
3859
|
+
});
|
3860
|
+
const columns = useMemo16(() => [
|
3861
|
+
{
|
3862
|
+
header: "Ph\xE2n h\u1EC7",
|
3863
|
+
accessorFn: (row) => {
|
3864
|
+
return enum_emailConfigModule[row.emailModule];
|
3865
|
+
}
|
3866
|
+
},
|
3867
|
+
{
|
3868
|
+
header: "Host mail server",
|
3869
|
+
accessorKey: "hostMailServer"
|
3870
|
+
},
|
3871
|
+
{
|
3872
|
+
header: "Outgoing port",
|
3873
|
+
accessorKey: "outgoingPort"
|
3874
|
+
},
|
3875
|
+
{
|
3876
|
+
header: "Incoming port",
|
3877
|
+
accessorKey: "incomingPort"
|
3878
|
+
},
|
3879
|
+
{
|
3880
|
+
header: "SSL",
|
3881
|
+
accessorFn: (row) => {
|
3882
|
+
var _a;
|
3883
|
+
return (_a = row.sll) == null ? void 0 : _a.toString();
|
3884
|
+
}
|
3885
|
+
},
|
3886
|
+
{
|
3887
|
+
header: "Username",
|
3888
|
+
accessorKey: "userName"
|
3889
|
+
},
|
3890
|
+
{
|
3891
|
+
header: "Password",
|
3892
|
+
accessorFn: () => "*******"
|
3893
|
+
}
|
3894
|
+
], []);
|
3895
|
+
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
3896
|
+
return /* @__PURE__ */ jsx72(
|
3897
|
+
MyDataTable,
|
3898
|
+
{
|
3899
|
+
columns,
|
3900
|
+
data: query.data,
|
3901
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx72(F_mailConfig_Form, { emailModule }),
|
3902
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs48(MyCenterFull, { children: [
|
3903
|
+
/* @__PURE__ */ jsx72(F_mailConfig_Form, { values: row.original, emailModule }),
|
3904
|
+
/* @__PURE__ */ jsx72(F_mailConfig_Delete, { values: row.original })
|
3905
|
+
] })
|
3906
|
+
}
|
3907
|
+
);
|
3908
|
+
}
|
3909
|
+
|
3910
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig.tsx
|
3911
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
3912
|
+
function F_mailConfig() {
|
3913
|
+
return /* @__PURE__ */ jsx73(F_mailConfig_Read, { emailModule: utils_converter_enumToSelectOptions(enum_emailConfigModule) });
|
3914
|
+
}
|
3915
|
+
|
3584
3916
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3585
3917
|
import { useEffect as useEffect8 } from "react";
|
3586
3918
|
|
3587
3919
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3588
3920
|
import { Center, Grid as Grid4, Image, Paper as Paper7 } from "@mantine/core";
|
3589
|
-
import { useForm as
|
3921
|
+
import { useForm as useForm24 } from "@mantine/form";
|
3590
3922
|
import { useEffect as useEffect7 } from "react";
|
3591
3923
|
|
3592
3924
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
@@ -3602,7 +3934,7 @@ function useS_moduleConfig() {
|
|
3602
3934
|
}
|
3603
3935
|
|
3604
3936
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
3605
|
-
import { jsx as
|
3937
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
3606
3938
|
function F_moduleConfig_Save({
|
3607
3939
|
form
|
3608
3940
|
}) {
|
@@ -3636,8 +3968,8 @@ function F_moduleConfig_Save({
|
|
3636
3968
|
}
|
3637
3969
|
});
|
3638
3970
|
}
|
3639
|
-
return /* @__PURE__ */
|
3640
|
-
|
3971
|
+
return /* @__PURE__ */ jsx74(
|
3972
|
+
MyButton2,
|
3641
3973
|
{
|
3642
3974
|
disabled: !form.isDirty(),
|
3643
3975
|
crudType: "save",
|
@@ -3647,11 +3979,11 @@ function F_moduleConfig_Save({
|
|
3647
3979
|
}
|
3648
3980
|
|
3649
3981
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3650
|
-
import { jsx as
|
3982
|
+
import { jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
|
3651
3983
|
function F_moduleConfig_Form() {
|
3652
3984
|
var _a, _b, _c, _d;
|
3653
3985
|
const query = useQ_AQ_GetAQModule();
|
3654
|
-
const form =
|
3986
|
+
const form = useForm24({
|
3655
3987
|
mode: "uncontrolled",
|
3656
3988
|
validate: {
|
3657
3989
|
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3679,14 +4011,14 @@ function F_moduleConfig_Form() {
|
|
3679
4011
|
form.setInitialValues(values);
|
3680
4012
|
form.setValues(values);
|
3681
4013
|
}, [query.data]);
|
3682
|
-
return /* @__PURE__ */
|
3683
|
-
/* @__PURE__ */
|
3684
|
-
/* @__PURE__ */
|
3685
|
-
/* @__PURE__ */
|
3686
|
-
/* @__PURE__ */
|
3687
|
-
/* @__PURE__ */
|
3688
|
-
/* @__PURE__ */
|
3689
|
-
/* @__PURE__ */
|
4014
|
+
return /* @__PURE__ */ jsxs49(Paper7, { p: "md", children: [
|
4015
|
+
/* @__PURE__ */ jsxs49(Grid4, { children: [
|
4016
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx75(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
4017
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx75(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
4018
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: 12, children: /* @__PURE__ */ jsx75(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
4019
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
4020
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(MyTextInput2, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
4021
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(
|
3690
4022
|
MyDateInput,
|
3691
4023
|
{
|
3692
4024
|
value: form.getValues().registrationDate,
|
@@ -3695,7 +4027,7 @@ function F_moduleConfig_Form() {
|
|
3695
4027
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
3696
4028
|
}
|
3697
4029
|
) }),
|
3698
|
-
/* @__PURE__ */
|
4030
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(
|
3699
4031
|
MyDateInput,
|
3700
4032
|
{
|
3701
4033
|
value: form.getValues().limiteDate,
|
@@ -3704,8 +4036,8 @@ function F_moduleConfig_Form() {
|
|
3704
4036
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
3705
4037
|
}
|
3706
4038
|
) }),
|
3707
|
-
/* @__PURE__ */
|
3708
|
-
/* @__PURE__ */
|
4039
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs49(MyFlexColumn, { children: [
|
4040
|
+
/* @__PURE__ */ jsx75(
|
3709
4041
|
MyFileInput,
|
3710
4042
|
{
|
3711
4043
|
accept: "image/png,image/jpeg",
|
@@ -3717,7 +4049,7 @@ function F_moduleConfig_Form() {
|
|
3717
4049
|
}
|
3718
4050
|
}
|
3719
4051
|
),
|
3720
|
-
/* @__PURE__ */
|
4052
|
+
/* @__PURE__ */ jsx75(Paper7, { w: "100%", children: /* @__PURE__ */ jsx75(Center, { children: /* @__PURE__ */ jsx75(
|
3721
4053
|
Image,
|
3722
4054
|
{
|
3723
4055
|
fit: "contain",
|
@@ -3730,8 +4062,8 @@ function F_moduleConfig_Form() {
|
|
3730
4062
|
}
|
3731
4063
|
) }) })
|
3732
4064
|
] }) }),
|
3733
|
-
/* @__PURE__ */
|
3734
|
-
/* @__PURE__ */
|
4065
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs49(MyFlexColumn, { children: [
|
4066
|
+
/* @__PURE__ */ jsx75(
|
3735
4067
|
MyFileInput,
|
3736
4068
|
{
|
3737
4069
|
accept: "image/png,image/jpeg",
|
@@ -3743,7 +4075,7 @@ function F_moduleConfig_Form() {
|
|
3743
4075
|
}
|
3744
4076
|
}
|
3745
4077
|
),
|
3746
|
-
/* @__PURE__ */
|
4078
|
+
/* @__PURE__ */ jsx75(Paper7, { children: /* @__PURE__ */ jsx75(Center, { children: /* @__PURE__ */ jsx75(
|
3747
4079
|
Image,
|
3748
4080
|
{
|
3749
4081
|
fit: "contain",
|
@@ -3757,30 +4089,30 @@ function F_moduleConfig_Form() {
|
|
3757
4089
|
) }) })
|
3758
4090
|
] }) })
|
3759
4091
|
] }),
|
3760
|
-
/* @__PURE__ */
|
4092
|
+
/* @__PURE__ */ jsx75(MyFlexEnd, { children: /* @__PURE__ */ jsx75(F_moduleConfig_Save, { form }) })
|
3761
4093
|
] });
|
3762
4094
|
}
|
3763
4095
|
|
3764
4096
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3765
|
-
import { jsx as
|
4097
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
3766
4098
|
function F_moduleConfig({ AQModuleId }) {
|
3767
4099
|
const store = useS_moduleConfig();
|
3768
4100
|
useEffect8(() => {
|
3769
4101
|
store.setProperty("AQModuleId", AQModuleId);
|
3770
4102
|
}, []);
|
3771
|
-
return /* @__PURE__ */
|
4103
|
+
return /* @__PURE__ */ jsx76(F_moduleConfig_Form, {});
|
3772
4104
|
}
|
3773
4105
|
|
3774
4106
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
3775
4107
|
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
3776
4108
|
|
3777
4109
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Create.tsx
|
3778
|
-
import { useForm as
|
3779
|
-
import { jsx as
|
4110
|
+
import { useForm as useForm25 } from "@mantine/form";
|
4111
|
+
import { jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
|
3780
4112
|
function F_organizationPolicyDocs_Create({
|
3781
4113
|
RegulationsTypeId
|
3782
4114
|
}) {
|
3783
|
-
const form =
|
4115
|
+
const form = useForm25({
|
3784
4116
|
mode: "uncontrolled",
|
3785
4117
|
validate: {
|
3786
4118
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3790,7 +4122,7 @@ function F_organizationPolicyDocs_Create({
|
|
3790
4122
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3791
4123
|
}
|
3792
4124
|
});
|
3793
|
-
return /* @__PURE__ */
|
4125
|
+
return /* @__PURE__ */ jsxs50(
|
3794
4126
|
MyButtonCreate,
|
3795
4127
|
{
|
3796
4128
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -3802,28 +4134,28 @@ function F_organizationPolicyDocs_Create({
|
|
3802
4134
|
}));
|
3803
4135
|
},
|
3804
4136
|
children: [
|
3805
|
-
/* @__PURE__ */
|
3806
|
-
|
4137
|
+
/* @__PURE__ */ jsx77(
|
4138
|
+
MyTextInput2,
|
3807
4139
|
__spreadValues({
|
3808
4140
|
withAsterisk: true,
|
3809
4141
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3810
4142
|
}, form.getInputProps("decisionCode"))
|
3811
4143
|
),
|
3812
|
-
/* @__PURE__ */
|
4144
|
+
/* @__PURE__ */ jsx77(
|
3813
4145
|
MyDateInput,
|
3814
4146
|
__spreadValues({
|
3815
4147
|
withAsterisk: true,
|
3816
4148
|
label: "Ng\xE0y ban h\xE0nh"
|
3817
4149
|
}, form.getInputProps("promulgateDate"))
|
3818
4150
|
),
|
3819
|
-
/* @__PURE__ */
|
3820
|
-
|
4151
|
+
/* @__PURE__ */ jsx77(
|
4152
|
+
MyTextInput2,
|
3821
4153
|
__spreadValues({
|
3822
4154
|
withAsterisk: true,
|
3823
4155
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3824
4156
|
}, form.getInputProps("name"))
|
3825
4157
|
),
|
3826
|
-
/* @__PURE__ */
|
4158
|
+
/* @__PURE__ */ jsx77(
|
3827
4159
|
F_core18256_Select,
|
3828
4160
|
__spreadValues({
|
3829
4161
|
withAsterisk: true,
|
@@ -3831,14 +4163,14 @@ function F_organizationPolicyDocs_Create({
|
|
3831
4163
|
documentTypeId: RegulationsTypeId
|
3832
4164
|
}, form.getInputProps("documentAttributeId"))
|
3833
4165
|
),
|
3834
|
-
/* @__PURE__ */
|
4166
|
+
/* @__PURE__ */ jsx77(
|
3835
4167
|
MyFileInput,
|
3836
4168
|
__spreadValues({
|
3837
4169
|
withAsterisk: true,
|
3838
4170
|
label: "V\u0103n b\u1EA3n"
|
3839
4171
|
}, form.getInputProps("file"))
|
3840
4172
|
),
|
3841
|
-
/* @__PURE__ */
|
4173
|
+
/* @__PURE__ */ jsx77(
|
3842
4174
|
MyNumberInput,
|
3843
4175
|
__spreadValues({
|
3844
4176
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3851,17 +4183,17 @@ function F_organizationPolicyDocs_Create({
|
|
3851
4183
|
|
3852
4184
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
3853
4185
|
import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton5 } from "@mantine/core";
|
3854
|
-
import { useQuery as
|
4186
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
3855
4187
|
import { IconBug as IconBug5 } from "@tabler/icons-react";
|
3856
|
-
import { useMemo as
|
4188
|
+
import { useMemo as useMemo17 } from "react";
|
3857
4189
|
|
3858
4190
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
|
3859
|
-
import { jsx as
|
4191
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
3860
4192
|
function F_organizationPolicyDocs_Delete({
|
3861
4193
|
id,
|
3862
4194
|
contextData
|
3863
4195
|
}) {
|
3864
|
-
return /* @__PURE__ */
|
4196
|
+
return /* @__PURE__ */ jsx78(
|
3865
4197
|
MyActionIconDelete,
|
3866
4198
|
{
|
3867
4199
|
contextData,
|
@@ -3871,14 +4203,14 @@ function F_organizationPolicyDocs_Delete({
|
|
3871
4203
|
}
|
3872
4204
|
|
3873
4205
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Update.tsx
|
3874
|
-
import { useForm as
|
3875
|
-
import { jsx as
|
4206
|
+
import { useForm as useForm26 } from "@mantine/form";
|
4207
|
+
import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
|
3876
4208
|
function F_organizationPolicyDocs_Update({
|
3877
4209
|
values,
|
3878
4210
|
RegulationsTypeId
|
3879
4211
|
}) {
|
3880
4212
|
var _a;
|
3881
|
-
const form =
|
4213
|
+
const form = useForm26({
|
3882
4214
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
3883
4215
|
file: new File(
|
3884
4216
|
[],
|
@@ -3894,7 +4226,7 @@ function F_organizationPolicyDocs_Update({
|
|
3894
4226
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3895
4227
|
}
|
3896
4228
|
});
|
3897
|
-
return /* @__PURE__ */
|
4229
|
+
return /* @__PURE__ */ jsxs51(
|
3898
4230
|
MyActionIconUpdate,
|
3899
4231
|
{
|
3900
4232
|
form,
|
@@ -3904,28 +4236,28 @@ function F_organizationPolicyDocs_Update({
|
|
3904
4236
|
}));
|
3905
4237
|
},
|
3906
4238
|
children: [
|
3907
|
-
/* @__PURE__ */
|
3908
|
-
|
4239
|
+
/* @__PURE__ */ jsx79(
|
4240
|
+
MyTextInput2,
|
3909
4241
|
__spreadValues({
|
3910
4242
|
withAsterisk: true,
|
3911
4243
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3912
4244
|
}, form.getInputProps("decisionCode"))
|
3913
4245
|
),
|
3914
|
-
/* @__PURE__ */
|
4246
|
+
/* @__PURE__ */ jsx79(
|
3915
4247
|
MyDateInput,
|
3916
4248
|
__spreadValues({
|
3917
4249
|
withAsterisk: true,
|
3918
4250
|
label: "Ng\xE0y ban h\xE0nh"
|
3919
4251
|
}, form.getInputProps("promulgateDate"))
|
3920
4252
|
),
|
3921
|
-
/* @__PURE__ */
|
3922
|
-
|
4253
|
+
/* @__PURE__ */ jsx79(
|
4254
|
+
MyTextInput2,
|
3923
4255
|
__spreadValues({
|
3924
4256
|
withAsterisk: true,
|
3925
4257
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3926
4258
|
}, form.getInputProps("name"))
|
3927
4259
|
),
|
3928
|
-
/* @__PURE__ */
|
4260
|
+
/* @__PURE__ */ jsx79(
|
3929
4261
|
F_core18256_Select,
|
3930
4262
|
__spreadValues({
|
3931
4263
|
withAsterisk: true,
|
@@ -3933,14 +4265,14 @@ function F_organizationPolicyDocs_Update({
|
|
3933
4265
|
documentTypeId: RegulationsTypeId
|
3934
4266
|
}, form.getInputProps("documentAttributeId"))
|
3935
4267
|
),
|
3936
|
-
/* @__PURE__ */
|
4268
|
+
/* @__PURE__ */ jsx79(
|
3937
4269
|
MyFileInput,
|
3938
4270
|
__spreadValues({
|
3939
4271
|
withAsterisk: true,
|
3940
4272
|
label: "V\u0103n b\u1EA3n"
|
3941
4273
|
}, form.getInputProps("file"))
|
3942
4274
|
),
|
3943
|
-
/* @__PURE__ */
|
4275
|
+
/* @__PURE__ */ jsx79(
|
3944
4276
|
MyNumberInput,
|
3945
4277
|
__spreadValues({
|
3946
4278
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3952,12 +4284,12 @@ function F_organizationPolicyDocs_Update({
|
|
3952
4284
|
}
|
3953
4285
|
|
3954
4286
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
3955
|
-
import { jsx as
|
4287
|
+
import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
|
3956
4288
|
function F_organizationPolicyDocs_Read({
|
3957
4289
|
RegulationsTypeId
|
3958
4290
|
}) {
|
3959
4291
|
var _a, _b, _c;
|
3960
|
-
const documentAttributeQuery =
|
4292
|
+
const documentAttributeQuery = useQuery18({
|
3961
4293
|
queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
|
3962
4294
|
queryFn: async () => {
|
3963
4295
|
var _a2;
|
@@ -3968,10 +4300,10 @@ function F_organizationPolicyDocs_Read({
|
|
3968
4300
|
}
|
3969
4301
|
});
|
3970
4302
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
3971
|
-
return /* @__PURE__ */
|
4303
|
+
return /* @__PURE__ */ jsx80(Blockquote5, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
3972
4304
|
if (documentAttributeQuery.isError)
|
3973
|
-
return /* @__PURE__ */
|
3974
|
-
return /* @__PURE__ */
|
4305
|
+
return /* @__PURE__ */ jsx80(Alert5, { icon: /* @__PURE__ */ jsx80(IconBug5, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
4306
|
+
return /* @__PURE__ */ jsx80(Skeleton5, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx80(MyFlexColumn, { children: /* @__PURE__ */ jsx80(
|
3975
4307
|
Accordion5,
|
3976
4308
|
{
|
3977
4309
|
variant: "contained",
|
@@ -3982,7 +4314,7 @@ function F_organizationPolicyDocs_Read({
|
|
3982
4314
|
}
|
3983
4315
|
),
|
3984
4316
|
multiple: true,
|
3985
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
4317
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx80(
|
3986
4318
|
SubRead5,
|
3987
4319
|
{
|
3988
4320
|
name: item.name,
|
@@ -3999,7 +4331,7 @@ function SubRead5({
|
|
3999
4331
|
documentType,
|
4000
4332
|
RegulationsTypeId
|
4001
4333
|
}) {
|
4002
|
-
const documentQuery =
|
4334
|
+
const documentQuery = useQuery18({
|
4003
4335
|
queryKey: ["SubRead" + documentType],
|
4004
4336
|
queryFn: async () => {
|
4005
4337
|
const result = await baseAxios_default.get(
|
@@ -4008,7 +4340,7 @@ function SubRead5({
|
|
4008
4340
|
return result.data.data;
|
4009
4341
|
}
|
4010
4342
|
});
|
4011
|
-
const columns =
|
4343
|
+
const columns = useMemo17(
|
4012
4344
|
() => [
|
4013
4345
|
{
|
4014
4346
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4025,30 +4357,30 @@ function SubRead5({
|
|
4025
4357
|
{
|
4026
4358
|
header: "File",
|
4027
4359
|
accessorFn: (row) => {
|
4028
|
-
return /* @__PURE__ */
|
4360
|
+
return /* @__PURE__ */ jsx80(MyCenterFull, { children: /* @__PURE__ */ jsx80(MyButtonViewPDF, { id: row.id }) });
|
4029
4361
|
}
|
4030
4362
|
}
|
4031
4363
|
],
|
4032
4364
|
[]
|
4033
4365
|
);
|
4034
|
-
return /* @__PURE__ */
|
4035
|
-
/* @__PURE__ */
|
4036
|
-
/* @__PURE__ */
|
4366
|
+
return /* @__PURE__ */ jsxs52(Accordion5.Item, { value: documentType.toString(), children: [
|
4367
|
+
/* @__PURE__ */ jsx80(Accordion5.Control, { children: name }),
|
4368
|
+
/* @__PURE__ */ jsx80(Accordion5.Panel, { children: /* @__PURE__ */ jsx80(
|
4037
4369
|
MyDataTable,
|
4038
4370
|
{
|
4039
4371
|
isLoading: documentQuery.isLoading,
|
4040
4372
|
isError: documentQuery.isError,
|
4041
4373
|
columns,
|
4042
4374
|
data: documentQuery.data || [],
|
4043
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4044
|
-
/* @__PURE__ */
|
4375
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs52(MyCenterFull, { children: [
|
4376
|
+
/* @__PURE__ */ jsx80(
|
4045
4377
|
F_organizationPolicyDocs_Update,
|
4046
4378
|
{
|
4047
4379
|
RegulationsTypeId,
|
4048
4380
|
values: row.original
|
4049
4381
|
}
|
4050
4382
|
),
|
4051
|
-
/* @__PURE__ */
|
4383
|
+
/* @__PURE__ */ jsx80(
|
4052
4384
|
F_organizationPolicyDocs_Delete,
|
4053
4385
|
{
|
4054
4386
|
id: row.original.id,
|
@@ -4062,12 +4394,12 @@ function SubRead5({
|
|
4062
4394
|
}
|
4063
4395
|
|
4064
4396
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
4065
|
-
import { jsx as
|
4397
|
+
import { jsx as jsx81, jsxs as jsxs53 } from "react/jsx-runtime";
|
4066
4398
|
function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
4067
|
-
return /* @__PURE__ */
|
4068
|
-
/* @__PURE__ */
|
4069
|
-
/* @__PURE__ */
|
4070
|
-
/* @__PURE__ */
|
4399
|
+
return /* @__PURE__ */ jsxs53(Paper8, { p: "md", children: [
|
4400
|
+
/* @__PURE__ */ jsx81(MyFlexEnd, { children: /* @__PURE__ */ jsx81(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
|
4401
|
+
/* @__PURE__ */ jsx81(Space5, {}),
|
4402
|
+
/* @__PURE__ */ jsx81(F_organizationPolicyDocs_Read, { RegulationsTypeId })
|
4071
4403
|
] });
|
4072
4404
|
}
|
4073
4405
|
|
@@ -4077,22 +4409,22 @@ var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER4, baseAxio
|
|
4077
4409
|
|
4078
4410
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4079
4411
|
import { Group as Group4 } from "@mantine/core";
|
4080
|
-
import { useMemo as
|
4412
|
+
import { useMemo as useMemo18 } from "react";
|
4081
4413
|
|
4082
4414
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4083
|
-
import { jsx as
|
4415
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
4084
4416
|
function F_pageContentConfig_DeleteDescription() {
|
4085
|
-
return /* @__PURE__ */
|
4417
|
+
return /* @__PURE__ */ jsx82(MyButton, { actionType: "delete" });
|
4086
4418
|
}
|
4087
4419
|
|
4088
4420
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4089
|
-
import { jsx as
|
4421
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
4090
4422
|
function F_pageContentConfig_Export() {
|
4091
|
-
return /* @__PURE__ */
|
4423
|
+
return /* @__PURE__ */ jsx83(MyButton, { actionType: "export" });
|
4092
4424
|
}
|
4093
4425
|
|
4094
4426
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
4095
|
-
import { jsx as
|
4427
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
4096
4428
|
function F_pageContentConfig_Save({ menuValues }) {
|
4097
4429
|
const updatePageConfigMutation = useMyReactMutation({
|
4098
4430
|
axiosFn: () => {
|
@@ -4100,18 +4432,18 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4100
4432
|
return service_pageContent.updateList([{ id: 1 }]);
|
4101
4433
|
}
|
4102
4434
|
});
|
4103
|
-
return /* @__PURE__ */
|
4435
|
+
return /* @__PURE__ */ jsx84(MyButton, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4104
4436
|
}
|
4105
4437
|
|
4106
4438
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4107
|
-
import { jsx as
|
4439
|
+
import { jsx as jsx85, jsxs as jsxs54 } from "react/jsx-runtime";
|
4108
4440
|
function F_pageContentConfig_ReadMenu() {
|
4109
4441
|
const pageContentQuery = useMyReactQuery({
|
4110
4442
|
queryKey: ["pageContentQuery"],
|
4111
4443
|
axiosFn: () => service_pageContent.getAll()
|
4112
4444
|
});
|
4113
4445
|
const device = useMyDevice();
|
4114
|
-
const columns =
|
4446
|
+
const columns = useMemo18(() => [
|
4115
4447
|
{
|
4116
4448
|
header: "Dashboard",
|
4117
4449
|
accessorKey: "name"
|
@@ -4121,42 +4453,42 @@ function F_pageContentConfig_ReadMenu() {
|
|
4121
4453
|
accessorKey: "description",
|
4122
4454
|
size: device.isPc ? 400 : 0,
|
4123
4455
|
Cell: () => {
|
4124
|
-
return /* @__PURE__ */
|
4456
|
+
return /* @__PURE__ */ jsx85(MyTextInput, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
|
4125
4457
|
}
|
4126
4458
|
}
|
4127
4459
|
], []);
|
4128
|
-
return /* @__PURE__ */
|
4460
|
+
return /* @__PURE__ */ jsx85(
|
4129
4461
|
MyDataTable,
|
4130
4462
|
{
|
4131
4463
|
isLoading: pageContentQuery.isLoading,
|
4132
4464
|
isError: pageContentQuery.isError,
|
4133
4465
|
data: pageContentQuery.data || [],
|
4134
4466
|
columns,
|
4135
|
-
renderTopToolbarCustomActions: (row) => /* @__PURE__ */
|
4136
|
-
/* @__PURE__ */
|
4137
|
-
/* @__PURE__ */
|
4138
|
-
/* @__PURE__ */
|
4467
|
+
renderTopToolbarCustomActions: (row) => /* @__PURE__ */ jsxs54(Group4, { children: [
|
4468
|
+
/* @__PURE__ */ jsx85(F_pageContentConfig_Save, { menuValues: [] }),
|
4469
|
+
/* @__PURE__ */ jsx85(F_pageContentConfig_Export, {}),
|
4470
|
+
/* @__PURE__ */ jsx85(F_pageContentConfig_DeleteDescription, {})
|
4139
4471
|
] })
|
4140
4472
|
}
|
4141
4473
|
);
|
4142
4474
|
}
|
4143
4475
|
|
4144
4476
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
|
4145
|
-
import { jsx as
|
4477
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
4146
4478
|
function F_pageContentConfig() {
|
4147
|
-
return /* @__PURE__ */
|
4479
|
+
return /* @__PURE__ */ jsx86(F_pageContentConfig_ReadMenu, {});
|
4148
4480
|
}
|
4149
4481
|
|
4150
4482
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4151
4483
|
import { Group as Group5 } from "@mantine/core";
|
4152
|
-
import { useQuery as
|
4153
|
-
import { useMemo as
|
4484
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
4485
|
+
import { useMemo as useMemo19 } from "react";
|
4154
4486
|
|
4155
4487
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
|
4156
|
-
import { jsx as
|
4488
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
4157
4489
|
var ENDPOINT4 = "/Role/Delete";
|
4158
4490
|
function F_roleCatalog_Delete({ values }) {
|
4159
|
-
return /* @__PURE__ */
|
4491
|
+
return /* @__PURE__ */ jsx87(
|
4160
4492
|
MyActionIconDelete,
|
4161
4493
|
{
|
4162
4494
|
contextData: values.code,
|
@@ -4166,32 +4498,32 @@ function F_roleCatalog_Delete({ values }) {
|
|
4166
4498
|
}
|
4167
4499
|
|
4168
4500
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Form.tsx
|
4169
|
-
import { useForm as
|
4170
|
-
import { jsx as
|
4501
|
+
import { useForm as useForm27 } from "@mantine/form";
|
4502
|
+
import { jsx as jsx88, jsxs as jsxs55 } from "react/jsx-runtime";
|
4171
4503
|
function F_roleCatalog_Form({ values }) {
|
4172
|
-
const form =
|
4504
|
+
const form = useForm27({
|
4173
4505
|
mode: "uncontrolled",
|
4174
4506
|
initialValues: values
|
4175
4507
|
});
|
4176
|
-
if (values) return /* @__PURE__ */
|
4508
|
+
if (values) return /* @__PURE__ */ jsxs55(MyActionIconUpdate, { form, onSubmit: async () => {
|
4177
4509
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
4178
4510
|
}, children: [
|
4179
|
-
/* @__PURE__ */
|
4180
|
-
/* @__PURE__ */
|
4511
|
+
/* @__PURE__ */ jsx88(MyTextInput2, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
4512
|
+
/* @__PURE__ */ jsx88(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4181
4513
|
] });
|
4182
|
-
return /* @__PURE__ */
|
4514
|
+
return /* @__PURE__ */ jsxs55(MyButtonCreate, { form, onSubmit: async () => {
|
4183
4515
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
4184
4516
|
}, children: [
|
4185
|
-
/* @__PURE__ */
|
4186
|
-
/* @__PURE__ */
|
4517
|
+
/* @__PURE__ */ jsx88(MyTextInput2, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
4518
|
+
/* @__PURE__ */ jsx88(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4187
4519
|
] });
|
4188
4520
|
}
|
4189
4521
|
|
4190
4522
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4191
|
-
import { jsx as
|
4523
|
+
import { jsx as jsx89, jsxs as jsxs56 } from "react/jsx-runtime";
|
4192
4524
|
function F_roleCatalog_Read() {
|
4193
4525
|
const query = useQ_core47643_GetAdminRole2();
|
4194
|
-
const columns =
|
4526
|
+
const columns = useMemo19(() => [
|
4195
4527
|
{
|
4196
4528
|
header: "M\xE3",
|
4197
4529
|
accessorKey: "code"
|
@@ -4201,23 +4533,23 @@ function F_roleCatalog_Read() {
|
|
4201
4533
|
accessorKey: "name"
|
4202
4534
|
}
|
4203
4535
|
], []);
|
4204
|
-
return /* @__PURE__ */
|
4536
|
+
return /* @__PURE__ */ jsx89(
|
4205
4537
|
MyDataTable,
|
4206
4538
|
{
|
4207
4539
|
isLoading: query.isLoading,
|
4208
4540
|
isError: query.isError,
|
4209
4541
|
data: query.data || [],
|
4210
4542
|
columns,
|
4211
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4212
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4213
|
-
/* @__PURE__ */
|
4214
|
-
/* @__PURE__ */
|
4543
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx89(Group5, { children: /* @__PURE__ */ jsx89(F_roleCatalog_Form, {}) }),
|
4544
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
|
4545
|
+
/* @__PURE__ */ jsx89(F_roleCatalog_Form, { values: row.original }),
|
4546
|
+
/* @__PURE__ */ jsx89(F_roleCatalog_Delete, { values: row.original })
|
4215
4547
|
] })
|
4216
4548
|
}
|
4217
4549
|
);
|
4218
4550
|
}
|
4219
4551
|
function useQ_core47643_GetAdminRole2() {
|
4220
|
-
const query =
|
4552
|
+
const query = useQuery19({
|
4221
4553
|
queryKey: ["useQ_core47643_GetAdminRole"],
|
4222
4554
|
queryFn: async () => {
|
4223
4555
|
const res = await baseAxios_default.get("/Role/GetAdminRole");
|
@@ -4263,21 +4595,21 @@ var mockData3 = [
|
|
4263
4595
|
];
|
4264
4596
|
|
4265
4597
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog.tsx
|
4266
|
-
import { jsx as
|
4598
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
4267
4599
|
function F_roleCatalog() {
|
4268
|
-
return /* @__PURE__ */
|
4600
|
+
return /* @__PURE__ */ jsx90(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx90(F_roleCatalog_Read, {}) });
|
4269
4601
|
}
|
4270
4602
|
|
4271
4603
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4272
|
-
import { useQuery as
|
4273
|
-
import { useMemo as
|
4604
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
4605
|
+
import { useMemo as useMemo20 } from "react";
|
4274
4606
|
|
4275
4607
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
|
4276
4608
|
import { FileInput as FileInput7 } from "@mantine/core";
|
4277
|
-
import { useForm as
|
4278
|
-
import { jsx as
|
4609
|
+
import { useForm as useForm28 } from "@mantine/form";
|
4610
|
+
import { jsx as jsx91, jsxs as jsxs57 } from "react/jsx-runtime";
|
4279
4611
|
function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
4280
|
-
const form =
|
4612
|
+
const form = useForm28({
|
4281
4613
|
mode: "uncontrolled",
|
4282
4614
|
validate: {
|
4283
4615
|
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4286,7 +4618,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4286
4618
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4287
4619
|
}
|
4288
4620
|
});
|
4289
|
-
return /* @__PURE__ */
|
4621
|
+
return /* @__PURE__ */ jsxs57(
|
4290
4622
|
MyButtonCreate,
|
4291
4623
|
{
|
4292
4624
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4299,28 +4631,28 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4299
4631
|
}));
|
4300
4632
|
},
|
4301
4633
|
children: [
|
4302
|
-
/* @__PURE__ */
|
4303
|
-
|
4634
|
+
/* @__PURE__ */ jsx91(
|
4635
|
+
MyTextInput2,
|
4304
4636
|
__spreadValues({
|
4305
4637
|
withAsterisk: true,
|
4306
4638
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4307
4639
|
}, form.getInputProps("decisionCode"))
|
4308
4640
|
),
|
4309
|
-
/* @__PURE__ */
|
4641
|
+
/* @__PURE__ */ jsx91(
|
4310
4642
|
MyDateInput,
|
4311
4643
|
__spreadValues({
|
4312
4644
|
withAsterisk: true,
|
4313
4645
|
label: "Ng\xE0y ban h\xE0nh"
|
4314
4646
|
}, form.getInputProps("promulgateDate"))
|
4315
4647
|
),
|
4316
|
-
/* @__PURE__ */
|
4317
|
-
|
4648
|
+
/* @__PURE__ */ jsx91(
|
4649
|
+
MyTextInput2,
|
4318
4650
|
__spreadValues({
|
4319
4651
|
withAsterisk: true,
|
4320
4652
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4321
4653
|
}, form.getInputProps("name"))
|
4322
4654
|
),
|
4323
|
-
/* @__PURE__ */
|
4655
|
+
/* @__PURE__ */ jsx91(
|
4324
4656
|
FileInput7,
|
4325
4657
|
__spreadValues({
|
4326
4658
|
withAsterisk: true,
|
@@ -4334,12 +4666,12 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4334
4666
|
}
|
4335
4667
|
|
4336
4668
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Delete.tsx
|
4337
|
-
import { jsx as
|
4669
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
4338
4670
|
function F_securityPolicyDocs_Delete({
|
4339
4671
|
id,
|
4340
4672
|
contextData
|
4341
4673
|
}) {
|
4342
|
-
return /* @__PURE__ */
|
4674
|
+
return /* @__PURE__ */ jsx92(
|
4343
4675
|
MyActionIconDelete,
|
4344
4676
|
{
|
4345
4677
|
contextData,
|
@@ -4350,11 +4682,11 @@ function F_securityPolicyDocs_Delete({
|
|
4350
4682
|
|
4351
4683
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
|
4352
4684
|
import { FileInput as FileInput8, TextInput as TextInput2 } from "@mantine/core";
|
4353
|
-
import { useForm as
|
4354
|
-
import { jsx as
|
4685
|
+
import { useForm as useForm29 } from "@mantine/form";
|
4686
|
+
import { jsx as jsx93, jsxs as jsxs58 } from "react/jsx-runtime";
|
4355
4687
|
function F_securityPolicyDocs_Update({ values }) {
|
4356
4688
|
var _a;
|
4357
|
-
const form =
|
4689
|
+
const form = useForm29({
|
4358
4690
|
mode: "uncontrolled",
|
4359
4691
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4360
4692
|
file: new File(
|
@@ -4370,7 +4702,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4370
4702
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4371
4703
|
}
|
4372
4704
|
});
|
4373
|
-
return /* @__PURE__ */
|
4705
|
+
return /* @__PURE__ */ jsxs58(
|
4374
4706
|
MyActionIconUpdate,
|
4375
4707
|
{
|
4376
4708
|
form,
|
@@ -4380,28 +4712,28 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4380
4712
|
}));
|
4381
4713
|
},
|
4382
4714
|
children: [
|
4383
|
-
/* @__PURE__ */
|
4715
|
+
/* @__PURE__ */ jsx93(
|
4384
4716
|
TextInput2,
|
4385
4717
|
__spreadValues({
|
4386
4718
|
withAsterisk: true,
|
4387
4719
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4388
4720
|
}, form.getInputProps("decisionCode"))
|
4389
4721
|
),
|
4390
|
-
/* @__PURE__ */
|
4722
|
+
/* @__PURE__ */ jsx93(
|
4391
4723
|
MyDateInput,
|
4392
4724
|
__spreadValues({
|
4393
4725
|
withAsterisk: true,
|
4394
4726
|
label: "Ng\xE0y ban h\xE0nh"
|
4395
4727
|
}, form.getInputProps("promulgateDate"))
|
4396
4728
|
),
|
4397
|
-
/* @__PURE__ */
|
4729
|
+
/* @__PURE__ */ jsx93(
|
4398
4730
|
TextInput2,
|
4399
4731
|
__spreadValues({
|
4400
4732
|
withAsterisk: true,
|
4401
4733
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4402
4734
|
}, form.getInputProps("name"))
|
4403
4735
|
),
|
4404
|
-
/* @__PURE__ */
|
4736
|
+
/* @__PURE__ */ jsx93(
|
4405
4737
|
FileInput8,
|
4406
4738
|
__spreadValues({
|
4407
4739
|
withAsterisk: true,
|
@@ -4414,9 +4746,9 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4414
4746
|
}
|
4415
4747
|
|
4416
4748
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4417
|
-
import { jsx as
|
4749
|
+
import { jsx as jsx94, jsxs as jsxs59 } from "react/jsx-runtime";
|
4418
4750
|
function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
4419
|
-
const query =
|
4751
|
+
const query = useQuery20({
|
4420
4752
|
queryKey: ["F_securityPolicyDocs_Read"],
|
4421
4753
|
queryFn: async () => {
|
4422
4754
|
var _a;
|
@@ -4426,7 +4758,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4426
4758
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4427
4759
|
}
|
4428
4760
|
});
|
4429
|
-
const columns =
|
4761
|
+
const columns = useMemo20(
|
4430
4762
|
() => [
|
4431
4763
|
{
|
4432
4764
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4443,25 +4775,25 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4443
4775
|
{
|
4444
4776
|
header: "File",
|
4445
4777
|
accessorFn: (row) => {
|
4446
|
-
return /* @__PURE__ */
|
4778
|
+
return /* @__PURE__ */ jsx94(MyCenterFull, { children: /* @__PURE__ */ jsx94(MyButtonViewPDF, { id: row.id }) });
|
4447
4779
|
}
|
4448
4780
|
}
|
4449
4781
|
],
|
4450
4782
|
[]
|
4451
4783
|
);
|
4452
|
-
return /* @__PURE__ */
|
4784
|
+
return /* @__PURE__ */ jsx94(
|
4453
4785
|
MyDataTable,
|
4454
4786
|
{
|
4455
4787
|
isLoading: query.isLoading,
|
4456
4788
|
isError: query.isError,
|
4457
4789
|
columns,
|
4458
4790
|
data: query.data || [],
|
4459
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4791
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx94(F_securityPolicyDocs_Create, { SecurityTypeId }),
|
4460
4792
|
renderRowActions: ({ row }) => {
|
4461
4793
|
var _a;
|
4462
|
-
return /* @__PURE__ */
|
4463
|
-
/* @__PURE__ */
|
4464
|
-
/* @__PURE__ */
|
4794
|
+
return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
4795
|
+
/* @__PURE__ */ jsx94(F_securityPolicyDocs_Update, { values: row.original }),
|
4796
|
+
/* @__PURE__ */ jsx94(
|
4465
4797
|
F_securityPolicyDocs_Delete,
|
4466
4798
|
{
|
4467
4799
|
id: row.original.id,
|
@@ -4475,23 +4807,23 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4475
4807
|
}
|
4476
4808
|
|
4477
4809
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs.tsx
|
4478
|
-
import { jsx as
|
4810
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
4479
4811
|
function F_securityPolicyDocs({ SecurityTypeId }) {
|
4480
|
-
return /* @__PURE__ */
|
4812
|
+
return /* @__PURE__ */ jsx95(F_securityPolicyDocs_Read, { SecurityTypeId });
|
4481
4813
|
}
|
4482
4814
|
|
4483
4815
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4484
|
-
import { useQuery as
|
4485
|
-
import { useMemo as
|
4816
|
+
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
4817
|
+
import { useMemo as useMemo21 } from "react";
|
4486
4818
|
|
4487
4819
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
|
4488
4820
|
import { FileInput as FileInput9, Textarea as Textarea3 } from "@mantine/core";
|
4489
|
-
import { useForm as
|
4490
|
-
import { jsx as
|
4821
|
+
import { useForm as useForm30 } from "@mantine/form";
|
4822
|
+
import { jsx as jsx96, jsxs as jsxs60 } from "react/jsx-runtime";
|
4491
4823
|
function F_systemUpdateDocs_Create({
|
4492
4824
|
RefinementTypeId
|
4493
4825
|
}) {
|
4494
|
-
const form =
|
4826
|
+
const form = useForm30({
|
4495
4827
|
mode: "uncontrolled",
|
4496
4828
|
validate: {
|
4497
4829
|
meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4502,7 +4834,7 @@ function F_systemUpdateDocs_Create({
|
|
4502
4834
|
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"
|
4503
4835
|
}
|
4504
4836
|
});
|
4505
|
-
return /* @__PURE__ */
|
4837
|
+
return /* @__PURE__ */ jsxs60(
|
4506
4838
|
MyButtonCreate,
|
4507
4839
|
{
|
4508
4840
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4515,43 +4847,43 @@ function F_systemUpdateDocs_Create({
|
|
4515
4847
|
}));
|
4516
4848
|
},
|
4517
4849
|
children: [
|
4518
|
-
/* @__PURE__ */
|
4850
|
+
/* @__PURE__ */ jsx96(
|
4519
4851
|
MyDateInput,
|
4520
4852
|
__spreadValues({
|
4521
4853
|
withAsterisk: true,
|
4522
4854
|
label: "Ng\xE0y h\u1ECDp"
|
4523
4855
|
}, form.getInputProps("meetingDate"))
|
4524
4856
|
),
|
4525
|
-
/* @__PURE__ */
|
4526
|
-
|
4857
|
+
/* @__PURE__ */ jsx96(
|
4858
|
+
MyTextInput2,
|
4527
4859
|
__spreadValues({
|
4528
4860
|
withAsterisk: true,
|
4529
4861
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4530
4862
|
}, form.getInputProps("departmentName"))
|
4531
4863
|
),
|
4532
|
-
/* @__PURE__ */
|
4533
|
-
|
4864
|
+
/* @__PURE__ */ jsx96(
|
4865
|
+
MyTextInput2,
|
4534
4866
|
__spreadValues({
|
4535
4867
|
withAsterisk: true,
|
4536
4868
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4537
4869
|
}, form.getInputProps("description"))
|
4538
4870
|
),
|
4539
|
-
/* @__PURE__ */
|
4540
|
-
/* @__PURE__ */
|
4871
|
+
/* @__PURE__ */ jsx96(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4872
|
+
/* @__PURE__ */ jsx96(
|
4541
4873
|
MyDateInput,
|
4542
4874
|
__spreadValues({
|
4543
4875
|
withAsterisk: true,
|
4544
4876
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4545
4877
|
}, form.getInputProps("startDate"))
|
4546
4878
|
),
|
4547
|
-
/* @__PURE__ */
|
4879
|
+
/* @__PURE__ */ jsx96(
|
4548
4880
|
MyDateInput,
|
4549
4881
|
__spreadValues({
|
4550
4882
|
withAsterisk: true,
|
4551
4883
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4552
4884
|
}, form.getInputProps("endDate"))
|
4553
4885
|
),
|
4554
|
-
/* @__PURE__ */
|
4886
|
+
/* @__PURE__ */ jsx96(
|
4555
4887
|
FileInput9,
|
4556
4888
|
__spreadValues({
|
4557
4889
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4559,19 +4891,19 @@ function F_systemUpdateDocs_Create({
|
|
4559
4891
|
label: "T\xE0i li\u1EC7u"
|
4560
4892
|
}, form.getInputProps("file"))
|
4561
4893
|
),
|
4562
|
-
/* @__PURE__ */
|
4894
|
+
/* @__PURE__ */ jsx96(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4563
4895
|
]
|
4564
4896
|
}
|
4565
4897
|
);
|
4566
4898
|
}
|
4567
4899
|
|
4568
4900
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Delete.tsx
|
4569
|
-
import { jsx as
|
4901
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
4570
4902
|
function F_systemUpdateDocs_Delete({
|
4571
4903
|
id,
|
4572
4904
|
contextData
|
4573
4905
|
}) {
|
4574
|
-
return /* @__PURE__ */
|
4906
|
+
return /* @__PURE__ */ jsx97(
|
4575
4907
|
MyActionIconDelete,
|
4576
4908
|
{
|
4577
4909
|
contextData,
|
@@ -4582,11 +4914,11 @@ function F_systemUpdateDocs_Delete({
|
|
4582
4914
|
|
4583
4915
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
|
4584
4916
|
import { FileInput as FileInput10, Textarea as Textarea4 } from "@mantine/core";
|
4585
|
-
import { useForm as
|
4586
|
-
import { jsx as
|
4917
|
+
import { useForm as useForm31 } from "@mantine/form";
|
4918
|
+
import { jsx as jsx98, jsxs as jsxs61 } from "react/jsx-runtime";
|
4587
4919
|
function F_systemUpdateDocs_Update({ values }) {
|
4588
4920
|
var _a;
|
4589
|
-
const form =
|
4921
|
+
const form = useForm31({
|
4590
4922
|
mode: "uncontrolled",
|
4591
4923
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4592
4924
|
file: new File(
|
@@ -4606,7 +4938,7 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4606
4938
|
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"
|
4607
4939
|
}
|
4608
4940
|
});
|
4609
|
-
return /* @__PURE__ */
|
4941
|
+
return /* @__PURE__ */ jsxs61(
|
4610
4942
|
MyActionIconUpdate,
|
4611
4943
|
{
|
4612
4944
|
form,
|
@@ -4616,43 +4948,43 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4616
4948
|
}));
|
4617
4949
|
},
|
4618
4950
|
children: [
|
4619
|
-
/* @__PURE__ */
|
4951
|
+
/* @__PURE__ */ jsx98(
|
4620
4952
|
MyDateInput,
|
4621
4953
|
__spreadValues({
|
4622
4954
|
withAsterisk: true,
|
4623
4955
|
label: "Ng\xE0y h\u1ECDp"
|
4624
4956
|
}, form.getInputProps("meetingDate"))
|
4625
4957
|
),
|
4626
|
-
/* @__PURE__ */
|
4627
|
-
|
4958
|
+
/* @__PURE__ */ jsx98(
|
4959
|
+
MyTextInput2,
|
4628
4960
|
__spreadValues({
|
4629
4961
|
withAsterisk: true,
|
4630
4962
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4631
4963
|
}, form.getInputProps("departmentName"))
|
4632
4964
|
),
|
4633
|
-
/* @__PURE__ */
|
4634
|
-
|
4965
|
+
/* @__PURE__ */ jsx98(
|
4966
|
+
MyTextInput2,
|
4635
4967
|
__spreadValues({
|
4636
4968
|
withAsterisk: true,
|
4637
4969
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4638
4970
|
}, form.getInputProps("description"))
|
4639
4971
|
),
|
4640
|
-
/* @__PURE__ */
|
4641
|
-
/* @__PURE__ */
|
4972
|
+
/* @__PURE__ */ jsx98(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4973
|
+
/* @__PURE__ */ jsx98(
|
4642
4974
|
MyDateInput,
|
4643
4975
|
__spreadValues({
|
4644
4976
|
withAsterisk: true,
|
4645
4977
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4646
4978
|
}, form.getInputProps("startDate"))
|
4647
4979
|
),
|
4648
|
-
/* @__PURE__ */
|
4980
|
+
/* @__PURE__ */ jsx98(
|
4649
4981
|
MyDateInput,
|
4650
4982
|
__spreadValues({
|
4651
4983
|
withAsterisk: true,
|
4652
4984
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4653
4985
|
}, form.getInputProps("endDate"))
|
4654
4986
|
),
|
4655
|
-
/* @__PURE__ */
|
4987
|
+
/* @__PURE__ */ jsx98(
|
4656
4988
|
FileInput10,
|
4657
4989
|
__spreadValues({
|
4658
4990
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4660,16 +4992,16 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4660
4992
|
label: "T\xE0i li\u1EC7u"
|
4661
4993
|
}, form.getInputProps("file"))
|
4662
4994
|
),
|
4663
|
-
/* @__PURE__ */
|
4995
|
+
/* @__PURE__ */ jsx98(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4664
4996
|
]
|
4665
4997
|
}
|
4666
4998
|
);
|
4667
4999
|
}
|
4668
5000
|
|
4669
5001
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4670
|
-
import { jsx as
|
5002
|
+
import { jsx as jsx99, jsxs as jsxs62 } from "react/jsx-runtime";
|
4671
5003
|
function F_systemUpdateDocs({ RefinementTypeId }) {
|
4672
|
-
const query =
|
5004
|
+
const query = useQuery21({
|
4673
5005
|
queryKey: ["F_systemUpdateDocs_Read"],
|
4674
5006
|
queryFn: async () => {
|
4675
5007
|
var _a;
|
@@ -4679,7 +5011,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4679
5011
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4680
5012
|
}
|
4681
5013
|
});
|
4682
|
-
const columns =
|
5014
|
+
const columns = useMemo21(
|
4683
5015
|
() => [
|
4684
5016
|
{
|
4685
5017
|
header: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u",
|
@@ -4700,24 +5032,24 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4700
5032
|
{
|
4701
5033
|
header: "File",
|
4702
5034
|
accessorFn: (row) => {
|
4703
|
-
return /* @__PURE__ */
|
5035
|
+
return /* @__PURE__ */ jsx99(MyCenterFull, { children: /* @__PURE__ */ jsx99(MyButtonViewPDF, { id: row.id }) });
|
4704
5036
|
}
|
4705
5037
|
}
|
4706
5038
|
],
|
4707
5039
|
[]
|
4708
5040
|
);
|
4709
|
-
return /* @__PURE__ */
|
5041
|
+
return /* @__PURE__ */ jsx99(
|
4710
5042
|
MyDataTable,
|
4711
5043
|
{
|
4712
5044
|
isLoading: query.isLoading,
|
4713
5045
|
isError: query.isError,
|
4714
5046
|
columns,
|
4715
5047
|
data: query.data || [],
|
4716
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
5048
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx99(F_systemUpdateDocs_Create, { RefinementTypeId }),
|
4717
5049
|
renderRowActions: ({ row }) => {
|
4718
|
-
return /* @__PURE__ */
|
4719
|
-
/* @__PURE__ */
|
4720
|
-
/* @__PURE__ */
|
5050
|
+
return /* @__PURE__ */ jsxs62(MyCenterFull, { children: [
|
5051
|
+
/* @__PURE__ */ jsx99(F_systemUpdateDocs_Update, { values: row.original }),
|
5052
|
+
/* @__PURE__ */ jsx99(
|
4721
5053
|
F_systemUpdateDocs_Delete,
|
4722
5054
|
{
|
4723
5055
|
id: row.original.id,
|
@@ -4731,15 +5063,15 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4731
5063
|
}
|
4732
5064
|
|
4733
5065
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
4734
|
-
import { useQuery as
|
4735
|
-
import { useMemo as
|
5066
|
+
import { useQuery as useQuery22 } from "@tanstack/react-query";
|
5067
|
+
import { useMemo as useMemo22 } from "react";
|
4736
5068
|
|
4737
5069
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
|
4738
5070
|
import { FileInput as FileInput11 } from "@mantine/core";
|
4739
|
-
import { useForm as
|
4740
|
-
import { jsx as
|
5071
|
+
import { useForm as useForm32 } from "@mantine/form";
|
5072
|
+
import { jsx as jsx100, jsxs as jsxs63 } from "react/jsx-runtime";
|
4741
5073
|
function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
4742
|
-
const form =
|
5074
|
+
const form = useForm32({
|
4743
5075
|
mode: "uncontrolled",
|
4744
5076
|
validate: {
|
4745
5077
|
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4747,7 +5079,7 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4747
5079
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4748
5080
|
}
|
4749
5081
|
});
|
4750
|
-
return /* @__PURE__ */
|
5082
|
+
return /* @__PURE__ */ jsxs63(
|
4751
5083
|
MyButtonCreate,
|
4752
5084
|
{
|
4753
5085
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4760,21 +5092,21 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4760
5092
|
}));
|
4761
5093
|
},
|
4762
5094
|
children: [
|
4763
|
-
/* @__PURE__ */
|
4764
|
-
|
5095
|
+
/* @__PURE__ */ jsx100(
|
5096
|
+
MyTextInput2,
|
4765
5097
|
__spreadValues({
|
4766
5098
|
withAsterisk: true,
|
4767
5099
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4768
5100
|
}, form.getInputProps("code"))
|
4769
5101
|
),
|
4770
|
-
/* @__PURE__ */
|
4771
|
-
|
5102
|
+
/* @__PURE__ */ jsx100(
|
5103
|
+
MyTextInput2,
|
4772
5104
|
__spreadValues({
|
4773
5105
|
withAsterisk: true,
|
4774
5106
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4775
5107
|
}, form.getInputProps("name"))
|
4776
5108
|
),
|
4777
|
-
/* @__PURE__ */
|
5109
|
+
/* @__PURE__ */ jsx100(
|
4778
5110
|
FileInput11,
|
4779
5111
|
__spreadValues({
|
4780
5112
|
withAsterisk: true,
|
@@ -4788,12 +5120,12 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4788
5120
|
}
|
4789
5121
|
|
4790
5122
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Delete.tsx
|
4791
|
-
import { jsx as
|
5123
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
4792
5124
|
function F_userGuideDocs_Delete({
|
4793
5125
|
id,
|
4794
5126
|
contextData
|
4795
5127
|
}) {
|
4796
|
-
return /* @__PURE__ */
|
5128
|
+
return /* @__PURE__ */ jsx101(
|
4797
5129
|
MyActionIconDelete,
|
4798
5130
|
{
|
4799
5131
|
contextData,
|
@@ -4804,11 +5136,11 @@ function F_userGuideDocs_Delete({
|
|
4804
5136
|
|
4805
5137
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
|
4806
5138
|
import { FileInput as FileInput12 } from "@mantine/core";
|
4807
|
-
import { useForm as
|
4808
|
-
import { jsx as
|
5139
|
+
import { useForm as useForm33 } from "@mantine/form";
|
5140
|
+
import { jsx as jsx102, jsxs as jsxs64 } from "react/jsx-runtime";
|
4809
5141
|
function F_userGuideDocs_Update({ values }) {
|
4810
5142
|
var _a;
|
4811
|
-
const form =
|
5143
|
+
const form = useForm33({
|
4812
5144
|
mode: "uncontrolled",
|
4813
5145
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4814
5146
|
file: new File(
|
@@ -4822,7 +5154,7 @@ function F_userGuideDocs_Update({ values }) {
|
|
4822
5154
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4823
5155
|
}
|
4824
5156
|
});
|
4825
|
-
return /* @__PURE__ */
|
5157
|
+
return /* @__PURE__ */ jsxs64(
|
4826
5158
|
MyActionIconUpdate,
|
4827
5159
|
{
|
4828
5160
|
form,
|
@@ -4832,21 +5164,21 @@ function F_userGuideDocs_Update({ values }) {
|
|
4832
5164
|
}));
|
4833
5165
|
},
|
4834
5166
|
children: [
|
4835
|
-
/* @__PURE__ */
|
4836
|
-
|
5167
|
+
/* @__PURE__ */ jsx102(
|
5168
|
+
MyTextInput2,
|
4837
5169
|
__spreadValues({
|
4838
5170
|
withAsterisk: true,
|
4839
5171
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4840
5172
|
}, form.getInputProps("code"))
|
4841
5173
|
),
|
4842
|
-
/* @__PURE__ */
|
4843
|
-
|
5174
|
+
/* @__PURE__ */ jsx102(
|
5175
|
+
MyTextInput2,
|
4844
5176
|
__spreadValues({
|
4845
5177
|
withAsterisk: true,
|
4846
5178
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4847
5179
|
}, form.getInputProps("name"))
|
4848
5180
|
),
|
4849
|
-
/* @__PURE__ */
|
5181
|
+
/* @__PURE__ */ jsx102(
|
4850
5182
|
FileInput12,
|
4851
5183
|
__spreadValues({
|
4852
5184
|
withAsterisk: true,
|
@@ -4860,9 +5192,9 @@ function F_userGuideDocs_Update({ values }) {
|
|
4860
5192
|
}
|
4861
5193
|
|
4862
5194
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
4863
|
-
import { jsx as
|
5195
|
+
import { jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
|
4864
5196
|
function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
4865
|
-
const query =
|
5197
|
+
const query = useQuery22({
|
4866
5198
|
queryKey: ["F_userGuideDocs_Read"],
|
4867
5199
|
queryFn: async () => {
|
4868
5200
|
var _a;
|
@@ -4872,7 +5204,7 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
4872
5204
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4873
5205
|
}
|
4874
5206
|
});
|
4875
|
-
const columns =
|
5207
|
+
const columns = useMemo22(
|
4876
5208
|
() => [
|
4877
5209
|
{
|
4878
5210
|
header: "M\xE3 t\xE0i li\u1EC7u",
|
@@ -4885,24 +5217,24 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
4885
5217
|
{
|
4886
5218
|
header: "File",
|
4887
5219
|
accessorFn: (row) => {
|
4888
|
-
return /* @__PURE__ */
|
5220
|
+
return /* @__PURE__ */ jsx103(MyCenterFull, { children: /* @__PURE__ */ jsx103(MyButtonViewPDF, { id: row.id }) });
|
4889
5221
|
}
|
4890
5222
|
}
|
4891
5223
|
],
|
4892
5224
|
[]
|
4893
5225
|
);
|
4894
|
-
return /* @__PURE__ */
|
5226
|
+
return /* @__PURE__ */ jsx103(
|
4895
5227
|
MyDataTable,
|
4896
5228
|
{
|
4897
5229
|
isLoading: query.isLoading,
|
4898
5230
|
isError: query.isError,
|
4899
5231
|
columns,
|
4900
5232
|
data: query.data || [],
|
4901
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
5233
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx103(F_userGuideDocs_Create, { GuidelineTypeId }),
|
4902
5234
|
renderRowActions: ({ row }) => {
|
4903
|
-
return /* @__PURE__ */
|
4904
|
-
/* @__PURE__ */
|
4905
|
-
/* @__PURE__ */
|
5235
|
+
return /* @__PURE__ */ jsxs65(MyCenterFull, { children: [
|
5236
|
+
/* @__PURE__ */ jsx103(F_userGuideDocs_Update, { values: row.original }),
|
5237
|
+
/* @__PURE__ */ jsx103(
|
4906
5238
|
F_userGuideDocs_Delete,
|
4907
5239
|
{
|
4908
5240
|
id: row.original.id,
|
@@ -4916,21 +5248,21 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
4916
5248
|
}
|
4917
5249
|
|
4918
5250
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs.tsx
|
4919
|
-
import { jsx as
|
5251
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
4920
5252
|
function F_userGuideDocs({ GuidelineTypeId }) {
|
4921
|
-
return /* @__PURE__ */
|
5253
|
+
return /* @__PURE__ */ jsx104(F_userGuideDocs_Read, { GuidelineTypeId });
|
4922
5254
|
}
|
4923
5255
|
|
4924
5256
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
4925
5257
|
import { Paper as Paper9, Space as Space6 } from "@mantine/core";
|
4926
5258
|
|
4927
5259
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
|
4928
|
-
import { useForm as
|
4929
|
-
import { jsx as
|
5260
|
+
import { useForm as useForm34 } from "@mantine/form";
|
5261
|
+
import { jsx as jsx105, jsxs as jsxs66 } from "react/jsx-runtime";
|
4930
5262
|
function F_workflowProcessDocs_Create({
|
4931
5263
|
WorkflowTypeId
|
4932
5264
|
}) {
|
4933
|
-
const form =
|
5265
|
+
const form = useForm34({
|
4934
5266
|
mode: "uncontrolled",
|
4935
5267
|
validate: {
|
4936
5268
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4940,7 +5272,7 @@ function F_workflowProcessDocs_Create({
|
|
4940
5272
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4941
5273
|
}
|
4942
5274
|
});
|
4943
|
-
return /* @__PURE__ */
|
5275
|
+
return /* @__PURE__ */ jsxs66(
|
4944
5276
|
MyButtonCreate,
|
4945
5277
|
{
|
4946
5278
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -4952,28 +5284,28 @@ function F_workflowProcessDocs_Create({
|
|
4952
5284
|
}));
|
4953
5285
|
},
|
4954
5286
|
children: [
|
4955
|
-
/* @__PURE__ */
|
4956
|
-
|
5287
|
+
/* @__PURE__ */ jsx105(
|
5288
|
+
MyTextInput2,
|
4957
5289
|
__spreadValues({
|
4958
5290
|
withAsterisk: true,
|
4959
5291
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4960
5292
|
}, form.getInputProps("decisionCode"))
|
4961
5293
|
),
|
4962
|
-
/* @__PURE__ */
|
5294
|
+
/* @__PURE__ */ jsx105(
|
4963
5295
|
MyDateInput,
|
4964
5296
|
__spreadValues({
|
4965
5297
|
withAsterisk: true,
|
4966
5298
|
label: "Ng\xE0y ban h\xE0nh"
|
4967
5299
|
}, form.getInputProps("promulgateDate"))
|
4968
5300
|
),
|
4969
|
-
/* @__PURE__ */
|
4970
|
-
|
5301
|
+
/* @__PURE__ */ jsx105(
|
5302
|
+
MyTextInput2,
|
4971
5303
|
__spreadValues({
|
4972
5304
|
withAsterisk: true,
|
4973
5305
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4974
5306
|
}, form.getInputProps("name"))
|
4975
5307
|
),
|
4976
|
-
/* @__PURE__ */
|
5308
|
+
/* @__PURE__ */ jsx105(
|
4977
5309
|
F_core18256_Select,
|
4978
5310
|
__spreadValues({
|
4979
5311
|
withAsterisk: true,
|
@@ -4981,14 +5313,14 @@ function F_workflowProcessDocs_Create({
|
|
4981
5313
|
documentTypeId: WorkflowTypeId
|
4982
5314
|
}, form.getInputProps("documentAttributeId"))
|
4983
5315
|
),
|
4984
|
-
/* @__PURE__ */
|
5316
|
+
/* @__PURE__ */ jsx105(
|
4985
5317
|
MyFileInput,
|
4986
5318
|
__spreadValues({
|
4987
5319
|
withAsterisk: true,
|
4988
5320
|
label: "V\u0103n b\u1EA3n"
|
4989
5321
|
}, form.getInputProps("file"))
|
4990
5322
|
),
|
4991
|
-
/* @__PURE__ */
|
5323
|
+
/* @__PURE__ */ jsx105(
|
4992
5324
|
MyNumberInput,
|
4993
5325
|
__spreadValues({
|
4994
5326
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5001,17 +5333,17 @@ function F_workflowProcessDocs_Create({
|
|
5001
5333
|
|
5002
5334
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5003
5335
|
import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton6 } from "@mantine/core";
|
5004
|
-
import { useQuery as
|
5336
|
+
import { useQuery as useQuery23 } from "@tanstack/react-query";
|
5005
5337
|
import { IconBug as IconBug6 } from "@tabler/icons-react";
|
5006
|
-
import { useMemo as
|
5338
|
+
import { useMemo as useMemo23 } from "react";
|
5007
5339
|
|
5008
5340
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
|
5009
|
-
import { jsx as
|
5341
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
5010
5342
|
function F_workflowProcessDocs_Delete({
|
5011
5343
|
id,
|
5012
5344
|
contextData
|
5013
5345
|
}) {
|
5014
|
-
return /* @__PURE__ */
|
5346
|
+
return /* @__PURE__ */ jsx106(
|
5015
5347
|
MyActionIconDelete,
|
5016
5348
|
{
|
5017
5349
|
contextData,
|
@@ -5021,14 +5353,14 @@ function F_workflowProcessDocs_Delete({
|
|
5021
5353
|
}
|
5022
5354
|
|
5023
5355
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
|
5024
|
-
import { useForm as
|
5025
|
-
import { jsx as
|
5356
|
+
import { useForm as useForm35 } from "@mantine/form";
|
5357
|
+
import { jsx as jsx107, jsxs as jsxs67 } from "react/jsx-runtime";
|
5026
5358
|
function F_workflowProcessDocs_Update({
|
5027
5359
|
values,
|
5028
5360
|
WorkflowTypeId
|
5029
5361
|
}) {
|
5030
5362
|
var _a;
|
5031
|
-
const form =
|
5363
|
+
const form = useForm35({
|
5032
5364
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
5033
5365
|
file: new File(
|
5034
5366
|
[],
|
@@ -5044,7 +5376,7 @@ function F_workflowProcessDocs_Update({
|
|
5044
5376
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5045
5377
|
}
|
5046
5378
|
});
|
5047
|
-
return /* @__PURE__ */
|
5379
|
+
return /* @__PURE__ */ jsxs67(
|
5048
5380
|
MyActionIconUpdate,
|
5049
5381
|
{
|
5050
5382
|
form,
|
@@ -5054,28 +5386,28 @@ function F_workflowProcessDocs_Update({
|
|
5054
5386
|
}));
|
5055
5387
|
},
|
5056
5388
|
children: [
|
5057
|
-
/* @__PURE__ */
|
5058
|
-
|
5389
|
+
/* @__PURE__ */ jsx107(
|
5390
|
+
MyTextInput2,
|
5059
5391
|
__spreadValues({
|
5060
5392
|
withAsterisk: true,
|
5061
5393
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5062
5394
|
}, form.getInputProps("decisionCode"))
|
5063
5395
|
),
|
5064
|
-
/* @__PURE__ */
|
5396
|
+
/* @__PURE__ */ jsx107(
|
5065
5397
|
MyDateInput,
|
5066
5398
|
__spreadValues({
|
5067
5399
|
withAsterisk: true,
|
5068
5400
|
label: "Ng\xE0y ban h\xE0nh"
|
5069
5401
|
}, form.getInputProps("promulgateDate"))
|
5070
5402
|
),
|
5071
|
-
/* @__PURE__ */
|
5072
|
-
|
5403
|
+
/* @__PURE__ */ jsx107(
|
5404
|
+
MyTextInput2,
|
5073
5405
|
__spreadValues({
|
5074
5406
|
withAsterisk: true,
|
5075
5407
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5076
5408
|
}, form.getInputProps("name"))
|
5077
5409
|
),
|
5078
|
-
/* @__PURE__ */
|
5410
|
+
/* @__PURE__ */ jsx107(
|
5079
5411
|
F_core18256_Select,
|
5080
5412
|
__spreadValues({
|
5081
5413
|
withAsterisk: true,
|
@@ -5083,14 +5415,14 @@ function F_workflowProcessDocs_Update({
|
|
5083
5415
|
documentTypeId: WorkflowTypeId
|
5084
5416
|
}, form.getInputProps("documentAttributeId"))
|
5085
5417
|
),
|
5086
|
-
/* @__PURE__ */
|
5418
|
+
/* @__PURE__ */ jsx107(
|
5087
5419
|
MyFileInput,
|
5088
5420
|
__spreadValues({
|
5089
5421
|
withAsterisk: true,
|
5090
5422
|
label: "V\u0103n b\u1EA3n"
|
5091
5423
|
}, form.getInputProps("file"))
|
5092
5424
|
),
|
5093
|
-
/* @__PURE__ */
|
5425
|
+
/* @__PURE__ */ jsx107(
|
5094
5426
|
MyNumberInput,
|
5095
5427
|
__spreadValues({
|
5096
5428
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5102,12 +5434,12 @@ function F_workflowProcessDocs_Update({
|
|
5102
5434
|
}
|
5103
5435
|
|
5104
5436
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5105
|
-
import { jsx as
|
5437
|
+
import { jsx as jsx108, jsxs as jsxs68 } from "react/jsx-runtime";
|
5106
5438
|
function F_workflowProcessDocs_Read({
|
5107
5439
|
WorkflowTypeId
|
5108
5440
|
}) {
|
5109
5441
|
var _a, _b, _c;
|
5110
|
-
const documentAttributeQuery =
|
5442
|
+
const documentAttributeQuery = useQuery23({
|
5111
5443
|
queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
|
5112
5444
|
queryFn: async () => {
|
5113
5445
|
var _a2;
|
@@ -5118,10 +5450,10 @@ function F_workflowProcessDocs_Read({
|
|
5118
5450
|
}
|
5119
5451
|
});
|
5120
5452
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
5121
|
-
return /* @__PURE__ */
|
5453
|
+
return /* @__PURE__ */ jsx108(Blockquote6, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
5122
5454
|
if (documentAttributeQuery.isError)
|
5123
|
-
return /* @__PURE__ */
|
5124
|
-
return /* @__PURE__ */
|
5455
|
+
return /* @__PURE__ */ jsx108(Alert6, { icon: /* @__PURE__ */ jsx108(IconBug6, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
5456
|
+
return /* @__PURE__ */ jsx108(Skeleton6, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx108(MyFlexColumn, { children: /* @__PURE__ */ jsx108(
|
5125
5457
|
Accordion6,
|
5126
5458
|
{
|
5127
5459
|
variant: "contained",
|
@@ -5132,7 +5464,7 @@ function F_workflowProcessDocs_Read({
|
|
5132
5464
|
}
|
5133
5465
|
),
|
5134
5466
|
multiple: true,
|
5135
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
5467
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx108(
|
5136
5468
|
SubRead6,
|
5137
5469
|
{
|
5138
5470
|
name: item.name,
|
@@ -5149,7 +5481,7 @@ function SubRead6({
|
|
5149
5481
|
documentType,
|
5150
5482
|
WorkflowTypeId
|
5151
5483
|
}) {
|
5152
|
-
const documentQuery =
|
5484
|
+
const documentQuery = useQuery23({
|
5153
5485
|
queryKey: ["SubRead" + documentType],
|
5154
5486
|
queryFn: async () => {
|
5155
5487
|
const result = await baseAxios_default.get(
|
@@ -5158,7 +5490,7 @@ function SubRead6({
|
|
5158
5490
|
return result.data.data;
|
5159
5491
|
}
|
5160
5492
|
});
|
5161
|
-
const columns =
|
5493
|
+
const columns = useMemo23(
|
5162
5494
|
() => [
|
5163
5495
|
{
|
5164
5496
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -5175,30 +5507,30 @@ function SubRead6({
|
|
5175
5507
|
{
|
5176
5508
|
header: "File",
|
5177
5509
|
accessorFn: (row) => {
|
5178
|
-
return /* @__PURE__ */
|
5510
|
+
return /* @__PURE__ */ jsx108(MyCenterFull, { children: /* @__PURE__ */ jsx108(MyButtonViewPDF, { id: row.id }) });
|
5179
5511
|
}
|
5180
5512
|
}
|
5181
5513
|
],
|
5182
5514
|
[]
|
5183
5515
|
);
|
5184
|
-
return /* @__PURE__ */
|
5185
|
-
/* @__PURE__ */
|
5186
|
-
/* @__PURE__ */
|
5516
|
+
return /* @__PURE__ */ jsxs68(Accordion6.Item, { value: documentType.toString(), children: [
|
5517
|
+
/* @__PURE__ */ jsx108(Accordion6.Control, { children: name }),
|
5518
|
+
/* @__PURE__ */ jsx108(Accordion6.Panel, { children: /* @__PURE__ */ jsx108(
|
5187
5519
|
MyDataTable,
|
5188
5520
|
{
|
5189
5521
|
isLoading: documentQuery.isLoading,
|
5190
5522
|
isError: documentQuery.isError,
|
5191
5523
|
columns,
|
5192
5524
|
data: documentQuery.data || [],
|
5193
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
5194
|
-
/* @__PURE__ */
|
5525
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs68(MyCenterFull, { children: [
|
5526
|
+
/* @__PURE__ */ jsx108(
|
5195
5527
|
F_workflowProcessDocs_Update,
|
5196
5528
|
{
|
5197
5529
|
WorkflowTypeId,
|
5198
5530
|
values: row.original
|
5199
5531
|
}
|
5200
5532
|
),
|
5201
|
-
/* @__PURE__ */
|
5533
|
+
/* @__PURE__ */ jsx108(
|
5202
5534
|
F_workflowProcessDocs_Delete,
|
5203
5535
|
{
|
5204
5536
|
id: row.original.id,
|
@@ -5212,21 +5544,21 @@ function SubRead6({
|
|
5212
5544
|
}
|
5213
5545
|
|
5214
5546
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5215
|
-
import { jsx as
|
5547
|
+
import { jsx as jsx109, jsxs as jsxs69 } from "react/jsx-runtime";
|
5216
5548
|
function F_workflowProcessDocs({
|
5217
5549
|
WorkflowTypeId
|
5218
5550
|
}) {
|
5219
|
-
return /* @__PURE__ */
|
5220
|
-
/* @__PURE__ */
|
5221
|
-
/* @__PURE__ */
|
5222
|
-
/* @__PURE__ */
|
5551
|
+
return /* @__PURE__ */ jsxs69(Paper9, { p: "md", children: [
|
5552
|
+
/* @__PURE__ */ jsx109(MyFlexEnd, { children: /* @__PURE__ */ jsx109(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
|
5553
|
+
/* @__PURE__ */ jsx109(Space6, {}),
|
5554
|
+
/* @__PURE__ */ jsx109(F_workflowProcessDocs_Read, { WorkflowTypeId })
|
5223
5555
|
] });
|
5224
5556
|
}
|
5225
5557
|
|
5226
5558
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
5227
5559
|
import { useRouter } from "next/navigation";
|
5228
5560
|
import { useEffect as useEffect9 } from "react";
|
5229
|
-
import { jsx as
|
5561
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
5230
5562
|
function F_authenticate_SplashPage() {
|
5231
5563
|
const router = useRouter();
|
5232
5564
|
const S_Authenticate = useS_authenticate();
|
@@ -5237,7 +5569,7 @@ function F_authenticate_SplashPage() {
|
|
5237
5569
|
}
|
5238
5570
|
router.push("/admin/core71678");
|
5239
5571
|
}, [S_Authenticate.state.token]);
|
5240
|
-
return /* @__PURE__ */
|
5572
|
+
return /* @__PURE__ */ jsx110(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
5241
5573
|
}
|
5242
5574
|
|
5243
5575
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
@@ -5250,12 +5582,12 @@ import {
|
|
5250
5582
|
Flex as Flex3,
|
5251
5583
|
Group as Group6,
|
5252
5584
|
Paper as Paper10,
|
5253
|
-
PasswordInput as
|
5585
|
+
PasswordInput as PasswordInput3,
|
5254
5586
|
Text as Text3,
|
5255
5587
|
TextInput as TextInput3,
|
5256
5588
|
Title
|
5257
5589
|
} from "@mantine/core";
|
5258
|
-
import { useForm as
|
5590
|
+
import { useForm as useForm36 } from "@mantine/form";
|
5259
5591
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
5260
5592
|
import axios from "axios";
|
5261
5593
|
import Link from "next/link";
|
@@ -5266,7 +5598,7 @@ import { useEffect as useEffect10, useState as useState8 } from "react";
|
|
5266
5598
|
var css_default = {};
|
5267
5599
|
|
5268
5600
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5269
|
-
import { jsx as
|
5601
|
+
import { jsx as jsx111, jsxs as jsxs70 } from "react/jsx-runtime";
|
5270
5602
|
function F_authenticate_Login({
|
5271
5603
|
header,
|
5272
5604
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -5282,7 +5614,7 @@ function F_authenticate_Login({
|
|
5282
5614
|
const authenticate_store = useS_authenticate();
|
5283
5615
|
const loadingState = useState8(false);
|
5284
5616
|
const mutation = useM_Account_Sigin();
|
5285
|
-
const form =
|
5617
|
+
const form = useForm36({
|
5286
5618
|
initialValues: {
|
5287
5619
|
username: "",
|
5288
5620
|
password: ""
|
@@ -5338,21 +5670,21 @@ function F_authenticate_Login({
|
|
5338
5670
|
}
|
5339
5671
|
});
|
5340
5672
|
}
|
5341
|
-
return /* @__PURE__ */
|
5673
|
+
return /* @__PURE__ */ jsx111(
|
5342
5674
|
BackgroundImage,
|
5343
5675
|
{
|
5344
5676
|
src: backgroundImage,
|
5345
5677
|
h: "100vh",
|
5346
|
-
children: /* @__PURE__ */
|
5347
|
-
header ? header : /* @__PURE__ */
|
5348
|
-
/* @__PURE__ */
|
5349
|
-
/* @__PURE__ */
|
5678
|
+
children: /* @__PURE__ */ jsx111(Center2, { h: "100vh", children: /* @__PURE__ */ jsxs70(Paper10, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
5679
|
+
header ? header : /* @__PURE__ */ jsxs70(Flex3, { direction: "column", mb: "md", children: [
|
5680
|
+
/* @__PURE__ */ jsx111(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
5681
|
+
/* @__PURE__ */ jsxs70(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
5350
5682
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
5351
|
-
/* @__PURE__ */
|
5683
|
+
/* @__PURE__ */ jsx111(Anchor, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
5352
5684
|
] })
|
5353
5685
|
] }),
|
5354
|
-
/* @__PURE__ */
|
5355
|
-
/* @__PURE__ */
|
5686
|
+
/* @__PURE__ */ jsx111("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs70(MyFlexColumn, { children: [
|
5687
|
+
/* @__PURE__ */ jsx111(
|
5356
5688
|
TextInput3,
|
5357
5689
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
5358
5690
|
label: "T\xE0i kho\u1EA3n",
|
@@ -5360,16 +5692,16 @@ function F_authenticate_Login({
|
|
5360
5692
|
withAsterisk: true
|
5361
5693
|
})
|
5362
5694
|
),
|
5363
|
-
/* @__PURE__ */
|
5364
|
-
|
5695
|
+
/* @__PURE__ */ jsx111(
|
5696
|
+
PasswordInput3,
|
5365
5697
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
5366
5698
|
label: "M\u1EADt kh\u1EA9u",
|
5367
5699
|
placeholder: "Nh\u1EADp m\u1EADt kh\u1EA9u c\u1EE7a b\u1EA1n",
|
5368
5700
|
withAsterisk: true
|
5369
5701
|
})
|
5370
5702
|
),
|
5371
|
-
/* @__PURE__ */
|
5372
|
-
showSaveLogin && /* @__PURE__ */
|
5703
|
+
/* @__PURE__ */ jsxs70(Group6, { justify: "space-between", children: [
|
5704
|
+
showSaveLogin && /* @__PURE__ */ jsx111(
|
5373
5705
|
Checkbox3,
|
5374
5706
|
{
|
5375
5707
|
checked: authenticate_store.state.saveLogin,
|
@@ -5377,9 +5709,9 @@ function F_authenticate_Login({
|
|
5377
5709
|
label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
|
5378
5710
|
}
|
5379
5711
|
),
|
5380
|
-
showForgotPassword && /* @__PURE__ */
|
5712
|
+
showForgotPassword && /* @__PURE__ */ jsx111(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
5381
5713
|
] }),
|
5382
|
-
showLoginButton && /* @__PURE__ */
|
5714
|
+
showLoginButton && /* @__PURE__ */ jsx111(
|
5383
5715
|
Button3,
|
5384
5716
|
{
|
5385
5717
|
loading: loadingState[0],
|
@@ -5464,11 +5796,21 @@ export {
|
|
5464
5796
|
F_core76318_Create,
|
5465
5797
|
F_core76318_Delete,
|
5466
5798
|
F_core76318_Update,
|
5799
|
+
F_documentCategories,
|
5800
|
+
F_documentCategories_Create,
|
5801
|
+
F_documentCategories_Delete,
|
5802
|
+
F_documentCategories_Read,
|
5803
|
+
F_documentCategories_Select,
|
5804
|
+
F_documentCategories_Update,
|
5467
5805
|
F_formTemplateDocs,
|
5468
5806
|
F_formTemplateDocs_Create,
|
5469
5807
|
F_formTemplateDocs_Delete,
|
5470
5808
|
F_formTemplateDocs_Read,
|
5471
5809
|
F_formTemplateDocs_Update,
|
5810
|
+
F_mailConfig,
|
5811
|
+
F_mailConfig_Delete,
|
5812
|
+
F_mailConfig_Form,
|
5813
|
+
F_mailConfig_Read,
|
5472
5814
|
F_moduleConfig,
|
5473
5815
|
F_organizationPolicyDocs,
|
5474
5816
|
F_organizationPolicyDocs_Create,
|