aq-fe-framework 0.1.322 → 0.1.324
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.
@@ -11,12 +11,20 @@ import {
|
|
11
11
|
import {
|
12
12
|
U0DateToDDMMYYYString
|
13
13
|
} from "../chunk-I2XIN2R3.mjs";
|
14
|
+
import {
|
15
|
+
const_object_documentTypes
|
16
|
+
} from "../chunk-BZMQOGL6.mjs";
|
17
|
+
import {
|
18
|
+
MyButton,
|
19
|
+
MyDataTableSelectOne,
|
20
|
+
MyTextInput
|
21
|
+
} from "../chunk-HEW5D3R4.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,17 +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
|
-
enum_emailConfigModule
|
46
|
-
} from "../chunk-VH4ZAD6M.mjs";
|
47
|
-
import {
|
48
|
-
MyButton as MyButton2,
|
49
|
-
MyDataTableSelectOne,
|
50
|
-
MyTextInput as MyTextInput2
|
51
|
-
} from "../chunk-HEW5D3R4.mjs";
|
52
49
|
import {
|
53
50
|
MyDataTable,
|
54
51
|
MyFlexColumn,
|
@@ -57,6 +54,9 @@ import {
|
|
57
54
|
import {
|
58
55
|
const_object_colors
|
59
56
|
} from "../chunk-NWBLJ3W3.mjs";
|
57
|
+
import {
|
58
|
+
enum_emailConfigModule
|
59
|
+
} from "../chunk-VH4ZAD6M.mjs";
|
60
60
|
import "../chunk-K6S7R6LU.mjs";
|
61
61
|
import {
|
62
62
|
baseAxios_default,
|
@@ -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,14 +3715,14 @@ 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 })
|
3581
3726
|
] });
|
3582
3727
|
}
|
3583
3728
|
|
@@ -3586,7 +3731,7 @@ import { useEffect as useEffect8 } from "react";
|
|
3586
3731
|
|
3587
3732
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3588
3733
|
import { Center, Grid as Grid4, Image, Paper as Paper7 } from "@mantine/core";
|
3589
|
-
import { useForm as
|
3734
|
+
import { useForm as useForm23 } from "@mantine/form";
|
3590
3735
|
import { useEffect as useEffect7 } from "react";
|
3591
3736
|
|
3592
3737
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
@@ -3602,7 +3747,7 @@ function useS_moduleConfig() {
|
|
3602
3747
|
}
|
3603
3748
|
|
3604
3749
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
3605
|
-
import { jsx as
|
3750
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
3606
3751
|
function F_moduleConfig_Save({
|
3607
3752
|
form
|
3608
3753
|
}) {
|
@@ -3636,8 +3781,8 @@ function F_moduleConfig_Save({
|
|
3636
3781
|
}
|
3637
3782
|
});
|
3638
3783
|
}
|
3639
|
-
return /* @__PURE__ */
|
3640
|
-
|
3784
|
+
return /* @__PURE__ */ jsx70(
|
3785
|
+
MyButton2,
|
3641
3786
|
{
|
3642
3787
|
disabled: !form.isDirty(),
|
3643
3788
|
crudType: "save",
|
@@ -3647,11 +3792,11 @@ function F_moduleConfig_Save({
|
|
3647
3792
|
}
|
3648
3793
|
|
3649
3794
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3650
|
-
import { jsx as
|
3795
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "react/jsx-runtime";
|
3651
3796
|
function F_moduleConfig_Form() {
|
3652
3797
|
var _a, _b, _c, _d;
|
3653
3798
|
const query = useQ_AQ_GetAQModule();
|
3654
|
-
const form =
|
3799
|
+
const form = useForm23({
|
3655
3800
|
mode: "uncontrolled",
|
3656
3801
|
validate: {
|
3657
3802
|
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3679,14 +3824,14 @@ function F_moduleConfig_Form() {
|
|
3679
3824
|
form.setInitialValues(values);
|
3680
3825
|
form.setValues(values);
|
3681
3826
|
}, [query.data]);
|
3682
|
-
return /* @__PURE__ */
|
3683
|
-
/* @__PURE__ */
|
3684
|
-
/* @__PURE__ */
|
3685
|
-
/* @__PURE__ */
|
3686
|
-
/* @__PURE__ */
|
3687
|
-
/* @__PURE__ */
|
3688
|
-
/* @__PURE__ */
|
3689
|
-
/* @__PURE__ */
|
3827
|
+
return /* @__PURE__ */ jsxs47(Paper7, { p: "md", children: [
|
3828
|
+
/* @__PURE__ */ jsxs47(Grid4, { children: [
|
3829
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx71(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
3830
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx71(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
3831
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: 12, children: /* @__PURE__ */ jsx71(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
3832
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx71(MyTextInput2, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
3833
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx71(MyTextInput2, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
3834
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx71(
|
3690
3835
|
MyDateInput,
|
3691
3836
|
{
|
3692
3837
|
value: form.getValues().registrationDate,
|
@@ -3695,7 +3840,7 @@ function F_moduleConfig_Form() {
|
|
3695
3840
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
3696
3841
|
}
|
3697
3842
|
) }),
|
3698
|
-
/* @__PURE__ */
|
3843
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx71(
|
3699
3844
|
MyDateInput,
|
3700
3845
|
{
|
3701
3846
|
value: form.getValues().limiteDate,
|
@@ -3704,8 +3849,8 @@ function F_moduleConfig_Form() {
|
|
3704
3849
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
3705
3850
|
}
|
3706
3851
|
) }),
|
3707
|
-
/* @__PURE__ */
|
3708
|
-
/* @__PURE__ */
|
3852
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs47(MyFlexColumn, { children: [
|
3853
|
+
/* @__PURE__ */ jsx71(
|
3709
3854
|
MyFileInput,
|
3710
3855
|
{
|
3711
3856
|
accept: "image/png,image/jpeg",
|
@@ -3717,7 +3862,7 @@ function F_moduleConfig_Form() {
|
|
3717
3862
|
}
|
3718
3863
|
}
|
3719
3864
|
),
|
3720
|
-
/* @__PURE__ */
|
3865
|
+
/* @__PURE__ */ jsx71(Paper7, { w: "100%", children: /* @__PURE__ */ jsx71(Center, { children: /* @__PURE__ */ jsx71(
|
3721
3866
|
Image,
|
3722
3867
|
{
|
3723
3868
|
fit: "contain",
|
@@ -3730,8 +3875,8 @@ function F_moduleConfig_Form() {
|
|
3730
3875
|
}
|
3731
3876
|
) }) })
|
3732
3877
|
] }) }),
|
3733
|
-
/* @__PURE__ */
|
3734
|
-
/* @__PURE__ */
|
3878
|
+
/* @__PURE__ */ jsx71(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs47(MyFlexColumn, { children: [
|
3879
|
+
/* @__PURE__ */ jsx71(
|
3735
3880
|
MyFileInput,
|
3736
3881
|
{
|
3737
3882
|
accept: "image/png,image/jpeg",
|
@@ -3743,7 +3888,7 @@ function F_moduleConfig_Form() {
|
|
3743
3888
|
}
|
3744
3889
|
}
|
3745
3890
|
),
|
3746
|
-
/* @__PURE__ */
|
3891
|
+
/* @__PURE__ */ jsx71(Paper7, { children: /* @__PURE__ */ jsx71(Center, { children: /* @__PURE__ */ jsx71(
|
3747
3892
|
Image,
|
3748
3893
|
{
|
3749
3894
|
fit: "contain",
|
@@ -3757,30 +3902,30 @@ function F_moduleConfig_Form() {
|
|
3757
3902
|
) }) })
|
3758
3903
|
] }) })
|
3759
3904
|
] }),
|
3760
|
-
/* @__PURE__ */
|
3905
|
+
/* @__PURE__ */ jsx71(MyFlexEnd, { children: /* @__PURE__ */ jsx71(F_moduleConfig_Save, { form }) })
|
3761
3906
|
] });
|
3762
3907
|
}
|
3763
3908
|
|
3764
3909
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3765
|
-
import { jsx as
|
3910
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
3766
3911
|
function F_moduleConfig({ AQModuleId }) {
|
3767
3912
|
const store = useS_moduleConfig();
|
3768
3913
|
useEffect8(() => {
|
3769
3914
|
store.setProperty("AQModuleId", AQModuleId);
|
3770
3915
|
}, []);
|
3771
|
-
return /* @__PURE__ */
|
3916
|
+
return /* @__PURE__ */ jsx72(F_moduleConfig_Form, {});
|
3772
3917
|
}
|
3773
3918
|
|
3774
3919
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
3775
3920
|
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
3776
3921
|
|
3777
3922
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Create.tsx
|
3778
|
-
import { useForm as
|
3779
|
-
import { jsx as
|
3923
|
+
import { useForm as useForm24 } from "@mantine/form";
|
3924
|
+
import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
|
3780
3925
|
function F_organizationPolicyDocs_Create({
|
3781
3926
|
RegulationsTypeId
|
3782
3927
|
}) {
|
3783
|
-
const form =
|
3928
|
+
const form = useForm24({
|
3784
3929
|
mode: "uncontrolled",
|
3785
3930
|
validate: {
|
3786
3931
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3790,7 +3935,7 @@ function F_organizationPolicyDocs_Create({
|
|
3790
3935
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3791
3936
|
}
|
3792
3937
|
});
|
3793
|
-
return /* @__PURE__ */
|
3938
|
+
return /* @__PURE__ */ jsxs48(
|
3794
3939
|
MyButtonCreate,
|
3795
3940
|
{
|
3796
3941
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -3802,28 +3947,28 @@ function F_organizationPolicyDocs_Create({
|
|
3802
3947
|
}));
|
3803
3948
|
},
|
3804
3949
|
children: [
|
3805
|
-
/* @__PURE__ */
|
3806
|
-
|
3950
|
+
/* @__PURE__ */ jsx73(
|
3951
|
+
MyTextInput2,
|
3807
3952
|
__spreadValues({
|
3808
3953
|
withAsterisk: true,
|
3809
3954
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3810
3955
|
}, form.getInputProps("decisionCode"))
|
3811
3956
|
),
|
3812
|
-
/* @__PURE__ */
|
3957
|
+
/* @__PURE__ */ jsx73(
|
3813
3958
|
MyDateInput,
|
3814
3959
|
__spreadValues({
|
3815
3960
|
withAsterisk: true,
|
3816
3961
|
label: "Ng\xE0y ban h\xE0nh"
|
3817
3962
|
}, form.getInputProps("promulgateDate"))
|
3818
3963
|
),
|
3819
|
-
/* @__PURE__ */
|
3820
|
-
|
3964
|
+
/* @__PURE__ */ jsx73(
|
3965
|
+
MyTextInput2,
|
3821
3966
|
__spreadValues({
|
3822
3967
|
withAsterisk: true,
|
3823
3968
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3824
3969
|
}, form.getInputProps("name"))
|
3825
3970
|
),
|
3826
|
-
/* @__PURE__ */
|
3971
|
+
/* @__PURE__ */ jsx73(
|
3827
3972
|
F_core18256_Select,
|
3828
3973
|
__spreadValues({
|
3829
3974
|
withAsterisk: true,
|
@@ -3831,14 +3976,14 @@ function F_organizationPolicyDocs_Create({
|
|
3831
3976
|
documentTypeId: RegulationsTypeId
|
3832
3977
|
}, form.getInputProps("documentAttributeId"))
|
3833
3978
|
),
|
3834
|
-
/* @__PURE__ */
|
3979
|
+
/* @__PURE__ */ jsx73(
|
3835
3980
|
MyFileInput,
|
3836
3981
|
__spreadValues({
|
3837
3982
|
withAsterisk: true,
|
3838
3983
|
label: "V\u0103n b\u1EA3n"
|
3839
3984
|
}, form.getInputProps("file"))
|
3840
3985
|
),
|
3841
|
-
/* @__PURE__ */
|
3986
|
+
/* @__PURE__ */ jsx73(
|
3842
3987
|
MyNumberInput,
|
3843
3988
|
__spreadValues({
|
3844
3989
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3851,17 +3996,17 @@ function F_organizationPolicyDocs_Create({
|
|
3851
3996
|
|
3852
3997
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
3853
3998
|
import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton5 } from "@mantine/core";
|
3854
|
-
import { useQuery as
|
3999
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
3855
4000
|
import { IconBug as IconBug5 } from "@tabler/icons-react";
|
3856
|
-
import { useMemo as
|
4001
|
+
import { useMemo as useMemo16 } from "react";
|
3857
4002
|
|
3858
4003
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
|
3859
|
-
import { jsx as
|
4004
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
3860
4005
|
function F_organizationPolicyDocs_Delete({
|
3861
4006
|
id,
|
3862
4007
|
contextData
|
3863
4008
|
}) {
|
3864
|
-
return /* @__PURE__ */
|
4009
|
+
return /* @__PURE__ */ jsx74(
|
3865
4010
|
MyActionIconDelete,
|
3866
4011
|
{
|
3867
4012
|
contextData,
|
@@ -3871,14 +4016,14 @@ function F_organizationPolicyDocs_Delete({
|
|
3871
4016
|
}
|
3872
4017
|
|
3873
4018
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Update.tsx
|
3874
|
-
import { useForm as
|
3875
|
-
import { jsx as
|
4019
|
+
import { useForm as useForm25 } from "@mantine/form";
|
4020
|
+
import { jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
|
3876
4021
|
function F_organizationPolicyDocs_Update({
|
3877
4022
|
values,
|
3878
4023
|
RegulationsTypeId
|
3879
4024
|
}) {
|
3880
4025
|
var _a;
|
3881
|
-
const form =
|
4026
|
+
const form = useForm25({
|
3882
4027
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
3883
4028
|
file: new File(
|
3884
4029
|
[],
|
@@ -3894,7 +4039,7 @@ function F_organizationPolicyDocs_Update({
|
|
3894
4039
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3895
4040
|
}
|
3896
4041
|
});
|
3897
|
-
return /* @__PURE__ */
|
4042
|
+
return /* @__PURE__ */ jsxs49(
|
3898
4043
|
MyActionIconUpdate,
|
3899
4044
|
{
|
3900
4045
|
form,
|
@@ -3904,28 +4049,28 @@ function F_organizationPolicyDocs_Update({
|
|
3904
4049
|
}));
|
3905
4050
|
},
|
3906
4051
|
children: [
|
3907
|
-
/* @__PURE__ */
|
3908
|
-
|
4052
|
+
/* @__PURE__ */ jsx75(
|
4053
|
+
MyTextInput2,
|
3909
4054
|
__spreadValues({
|
3910
4055
|
withAsterisk: true,
|
3911
4056
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3912
4057
|
}, form.getInputProps("decisionCode"))
|
3913
4058
|
),
|
3914
|
-
/* @__PURE__ */
|
4059
|
+
/* @__PURE__ */ jsx75(
|
3915
4060
|
MyDateInput,
|
3916
4061
|
__spreadValues({
|
3917
4062
|
withAsterisk: true,
|
3918
4063
|
label: "Ng\xE0y ban h\xE0nh"
|
3919
4064
|
}, form.getInputProps("promulgateDate"))
|
3920
4065
|
),
|
3921
|
-
/* @__PURE__ */
|
3922
|
-
|
4066
|
+
/* @__PURE__ */ jsx75(
|
4067
|
+
MyTextInput2,
|
3923
4068
|
__spreadValues({
|
3924
4069
|
withAsterisk: true,
|
3925
4070
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3926
4071
|
}, form.getInputProps("name"))
|
3927
4072
|
),
|
3928
|
-
/* @__PURE__ */
|
4073
|
+
/* @__PURE__ */ jsx75(
|
3929
4074
|
F_core18256_Select,
|
3930
4075
|
__spreadValues({
|
3931
4076
|
withAsterisk: true,
|
@@ -3933,14 +4078,14 @@ function F_organizationPolicyDocs_Update({
|
|
3933
4078
|
documentTypeId: RegulationsTypeId
|
3934
4079
|
}, form.getInputProps("documentAttributeId"))
|
3935
4080
|
),
|
3936
|
-
/* @__PURE__ */
|
4081
|
+
/* @__PURE__ */ jsx75(
|
3937
4082
|
MyFileInput,
|
3938
4083
|
__spreadValues({
|
3939
4084
|
withAsterisk: true,
|
3940
4085
|
label: "V\u0103n b\u1EA3n"
|
3941
4086
|
}, form.getInputProps("file"))
|
3942
4087
|
),
|
3943
|
-
/* @__PURE__ */
|
4088
|
+
/* @__PURE__ */ jsx75(
|
3944
4089
|
MyNumberInput,
|
3945
4090
|
__spreadValues({
|
3946
4091
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3952,12 +4097,12 @@ function F_organizationPolicyDocs_Update({
|
|
3952
4097
|
}
|
3953
4098
|
|
3954
4099
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
3955
|
-
import { jsx as
|
4100
|
+
import { jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
|
3956
4101
|
function F_organizationPolicyDocs_Read({
|
3957
4102
|
RegulationsTypeId
|
3958
4103
|
}) {
|
3959
4104
|
var _a, _b, _c;
|
3960
|
-
const documentAttributeQuery =
|
4105
|
+
const documentAttributeQuery = useQuery17({
|
3961
4106
|
queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
|
3962
4107
|
queryFn: async () => {
|
3963
4108
|
var _a2;
|
@@ -3968,10 +4113,10 @@ function F_organizationPolicyDocs_Read({
|
|
3968
4113
|
}
|
3969
4114
|
});
|
3970
4115
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
3971
|
-
return /* @__PURE__ */
|
4116
|
+
return /* @__PURE__ */ jsx76(Blockquote5, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
3972
4117
|
if (documentAttributeQuery.isError)
|
3973
|
-
return /* @__PURE__ */
|
3974
|
-
return /* @__PURE__ */
|
4118
|
+
return /* @__PURE__ */ jsx76(Alert5, { icon: /* @__PURE__ */ jsx76(IconBug5, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
4119
|
+
return /* @__PURE__ */ jsx76(Skeleton5, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx76(MyFlexColumn, { children: /* @__PURE__ */ jsx76(
|
3975
4120
|
Accordion5,
|
3976
4121
|
{
|
3977
4122
|
variant: "contained",
|
@@ -3982,7 +4127,7 @@ function F_organizationPolicyDocs_Read({
|
|
3982
4127
|
}
|
3983
4128
|
),
|
3984
4129
|
multiple: true,
|
3985
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
4130
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx76(
|
3986
4131
|
SubRead5,
|
3987
4132
|
{
|
3988
4133
|
name: item.name,
|
@@ -3999,7 +4144,7 @@ function SubRead5({
|
|
3999
4144
|
documentType,
|
4000
4145
|
RegulationsTypeId
|
4001
4146
|
}) {
|
4002
|
-
const documentQuery =
|
4147
|
+
const documentQuery = useQuery17({
|
4003
4148
|
queryKey: ["SubRead" + documentType],
|
4004
4149
|
queryFn: async () => {
|
4005
4150
|
const result = await baseAxios_default.get(
|
@@ -4008,7 +4153,7 @@ function SubRead5({
|
|
4008
4153
|
return result.data.data;
|
4009
4154
|
}
|
4010
4155
|
});
|
4011
|
-
const columns =
|
4156
|
+
const columns = useMemo16(
|
4012
4157
|
() => [
|
4013
4158
|
{
|
4014
4159
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4025,30 +4170,30 @@ function SubRead5({
|
|
4025
4170
|
{
|
4026
4171
|
header: "File",
|
4027
4172
|
accessorFn: (row) => {
|
4028
|
-
return /* @__PURE__ */
|
4173
|
+
return /* @__PURE__ */ jsx76(MyCenterFull, { children: /* @__PURE__ */ jsx76(MyButtonViewPDF, { id: row.id }) });
|
4029
4174
|
}
|
4030
4175
|
}
|
4031
4176
|
],
|
4032
4177
|
[]
|
4033
4178
|
);
|
4034
|
-
return /* @__PURE__ */
|
4035
|
-
/* @__PURE__ */
|
4036
|
-
/* @__PURE__ */
|
4179
|
+
return /* @__PURE__ */ jsxs50(Accordion5.Item, { value: documentType.toString(), children: [
|
4180
|
+
/* @__PURE__ */ jsx76(Accordion5.Control, { children: name }),
|
4181
|
+
/* @__PURE__ */ jsx76(Accordion5.Panel, { children: /* @__PURE__ */ jsx76(
|
4037
4182
|
MyDataTable,
|
4038
4183
|
{
|
4039
4184
|
isLoading: documentQuery.isLoading,
|
4040
4185
|
isError: documentQuery.isError,
|
4041
4186
|
columns,
|
4042
4187
|
data: documentQuery.data || [],
|
4043
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4044
|
-
/* @__PURE__ */
|
4188
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs50(MyCenterFull, { children: [
|
4189
|
+
/* @__PURE__ */ jsx76(
|
4045
4190
|
F_organizationPolicyDocs_Update,
|
4046
4191
|
{
|
4047
4192
|
RegulationsTypeId,
|
4048
4193
|
values: row.original
|
4049
4194
|
}
|
4050
4195
|
),
|
4051
|
-
/* @__PURE__ */
|
4196
|
+
/* @__PURE__ */ jsx76(
|
4052
4197
|
F_organizationPolicyDocs_Delete,
|
4053
4198
|
{
|
4054
4199
|
id: row.original.id,
|
@@ -4062,12 +4207,12 @@ function SubRead5({
|
|
4062
4207
|
}
|
4063
4208
|
|
4064
4209
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
4065
|
-
import { jsx as
|
4210
|
+
import { jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
|
4066
4211
|
function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
4067
|
-
return /* @__PURE__ */
|
4068
|
-
/* @__PURE__ */
|
4069
|
-
/* @__PURE__ */
|
4070
|
-
/* @__PURE__ */
|
4212
|
+
return /* @__PURE__ */ jsxs51(Paper8, { p: "md", children: [
|
4213
|
+
/* @__PURE__ */ jsx77(MyFlexEnd, { children: /* @__PURE__ */ jsx77(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
|
4214
|
+
/* @__PURE__ */ jsx77(Space5, {}),
|
4215
|
+
/* @__PURE__ */ jsx77(F_organizationPolicyDocs_Read, { RegulationsTypeId })
|
4071
4216
|
] });
|
4072
4217
|
}
|
4073
4218
|
|
@@ -4077,22 +4222,22 @@ var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER4, baseAxio
|
|
4077
4222
|
|
4078
4223
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4079
4224
|
import { Group as Group4 } from "@mantine/core";
|
4080
|
-
import { useMemo as
|
4225
|
+
import { useMemo as useMemo17 } from "react";
|
4081
4226
|
|
4082
4227
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4083
|
-
import { jsx as
|
4228
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
4084
4229
|
function F_pageContentConfig_DeleteDescription() {
|
4085
|
-
return /* @__PURE__ */
|
4230
|
+
return /* @__PURE__ */ jsx78(MyButton, { actionType: "delete" });
|
4086
4231
|
}
|
4087
4232
|
|
4088
4233
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4089
|
-
import { jsx as
|
4234
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
4090
4235
|
function F_pageContentConfig_Export() {
|
4091
|
-
return /* @__PURE__ */
|
4236
|
+
return /* @__PURE__ */ jsx79(MyButton, { actionType: "export" });
|
4092
4237
|
}
|
4093
4238
|
|
4094
4239
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
4095
|
-
import { jsx as
|
4240
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
4096
4241
|
function F_pageContentConfig_Save({ menuValues }) {
|
4097
4242
|
const updatePageConfigMutation = useMyReactMutation({
|
4098
4243
|
axiosFn: () => {
|
@@ -4100,18 +4245,18 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4100
4245
|
return service_pageContent.updateList([{ id: 1 }]);
|
4101
4246
|
}
|
4102
4247
|
});
|
4103
|
-
return /* @__PURE__ */
|
4248
|
+
return /* @__PURE__ */ jsx80(MyButton, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4104
4249
|
}
|
4105
4250
|
|
4106
4251
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4107
|
-
import { jsx as
|
4252
|
+
import { jsx as jsx81, jsxs as jsxs52 } from "react/jsx-runtime";
|
4108
4253
|
function F_pageContentConfig_ReadMenu() {
|
4109
4254
|
const pageContentQuery = useMyReactQuery({
|
4110
4255
|
queryKey: ["pageContentQuery"],
|
4111
4256
|
axiosFn: () => service_pageContent.getAll()
|
4112
4257
|
});
|
4113
4258
|
const device = useMyDevice();
|
4114
|
-
const columns =
|
4259
|
+
const columns = useMemo17(() => [
|
4115
4260
|
{
|
4116
4261
|
header: "Dashboard",
|
4117
4262
|
accessorKey: "name"
|
@@ -4121,42 +4266,42 @@ function F_pageContentConfig_ReadMenu() {
|
|
4121
4266
|
accessorKey: "description",
|
4122
4267
|
size: device.isPc ? 400 : 0,
|
4123
4268
|
Cell: () => {
|
4124
|
-
return /* @__PURE__ */
|
4269
|
+
return /* @__PURE__ */ jsx81(MyTextInput, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
|
4125
4270
|
}
|
4126
4271
|
}
|
4127
4272
|
], []);
|
4128
|
-
return /* @__PURE__ */
|
4273
|
+
return /* @__PURE__ */ jsx81(
|
4129
4274
|
MyDataTable,
|
4130
4275
|
{
|
4131
4276
|
isLoading: pageContentQuery.isLoading,
|
4132
4277
|
isError: pageContentQuery.isError,
|
4133
4278
|
data: pageContentQuery.data || [],
|
4134
4279
|
columns,
|
4135
|
-
renderTopToolbarCustomActions: (row) => /* @__PURE__ */
|
4136
|
-
/* @__PURE__ */
|
4137
|
-
/* @__PURE__ */
|
4138
|
-
/* @__PURE__ */
|
4280
|
+
renderTopToolbarCustomActions: (row) => /* @__PURE__ */ jsxs52(Group4, { children: [
|
4281
|
+
/* @__PURE__ */ jsx81(F_pageContentConfig_Save, { menuValues: [] }),
|
4282
|
+
/* @__PURE__ */ jsx81(F_pageContentConfig_Export, {}),
|
4283
|
+
/* @__PURE__ */ jsx81(F_pageContentConfig_DeleteDescription, {})
|
4139
4284
|
] })
|
4140
4285
|
}
|
4141
4286
|
);
|
4142
4287
|
}
|
4143
4288
|
|
4144
4289
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
|
4145
|
-
import { jsx as
|
4290
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
4146
4291
|
function F_pageContentConfig() {
|
4147
|
-
return /* @__PURE__ */
|
4292
|
+
return /* @__PURE__ */ jsx82(F_pageContentConfig_ReadMenu, {});
|
4148
4293
|
}
|
4149
4294
|
|
4150
4295
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4151
4296
|
import { Group as Group5 } from "@mantine/core";
|
4152
|
-
import { useQuery as
|
4153
|
-
import { useMemo as
|
4297
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
4298
|
+
import { useMemo as useMemo18 } from "react";
|
4154
4299
|
|
4155
4300
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
|
4156
|
-
import { jsx as
|
4301
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
4157
4302
|
var ENDPOINT4 = "/Role/Delete";
|
4158
4303
|
function F_roleCatalog_Delete({ values }) {
|
4159
|
-
return /* @__PURE__ */
|
4304
|
+
return /* @__PURE__ */ jsx83(
|
4160
4305
|
MyActionIconDelete,
|
4161
4306
|
{
|
4162
4307
|
contextData: values.code,
|
@@ -4166,32 +4311,32 @@ function F_roleCatalog_Delete({ values }) {
|
|
4166
4311
|
}
|
4167
4312
|
|
4168
4313
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Form.tsx
|
4169
|
-
import { useForm as
|
4170
|
-
import { jsx as
|
4314
|
+
import { useForm as useForm26 } from "@mantine/form";
|
4315
|
+
import { jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
|
4171
4316
|
function F_roleCatalog_Form({ values }) {
|
4172
|
-
const form =
|
4317
|
+
const form = useForm26({
|
4173
4318
|
mode: "uncontrolled",
|
4174
4319
|
initialValues: values
|
4175
4320
|
});
|
4176
|
-
if (values) return /* @__PURE__ */
|
4321
|
+
if (values) return /* @__PURE__ */ jsxs53(MyActionIconUpdate, { form, onSubmit: async () => {
|
4177
4322
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
4178
4323
|
}, children: [
|
4179
|
-
/* @__PURE__ */
|
4180
|
-
/* @__PURE__ */
|
4324
|
+
/* @__PURE__ */ jsx84(MyTextInput2, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
4325
|
+
/* @__PURE__ */ jsx84(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4181
4326
|
] });
|
4182
|
-
return /* @__PURE__ */
|
4327
|
+
return /* @__PURE__ */ jsxs53(MyButtonCreate, { form, onSubmit: async () => {
|
4183
4328
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
4184
4329
|
}, children: [
|
4185
|
-
/* @__PURE__ */
|
4186
|
-
/* @__PURE__ */
|
4330
|
+
/* @__PURE__ */ jsx84(MyTextInput2, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
4331
|
+
/* @__PURE__ */ jsx84(MyTextInput2, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4187
4332
|
] });
|
4188
4333
|
}
|
4189
4334
|
|
4190
4335
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4191
|
-
import { jsx as
|
4336
|
+
import { jsx as jsx85, jsxs as jsxs54 } from "react/jsx-runtime";
|
4192
4337
|
function F_roleCatalog_Read() {
|
4193
4338
|
const query = useQ_core47643_GetAdminRole2();
|
4194
|
-
const columns =
|
4339
|
+
const columns = useMemo18(() => [
|
4195
4340
|
{
|
4196
4341
|
header: "M\xE3",
|
4197
4342
|
accessorKey: "code"
|
@@ -4201,23 +4346,23 @@ function F_roleCatalog_Read() {
|
|
4201
4346
|
accessorKey: "name"
|
4202
4347
|
}
|
4203
4348
|
], []);
|
4204
|
-
return /* @__PURE__ */
|
4349
|
+
return /* @__PURE__ */ jsx85(
|
4205
4350
|
MyDataTable,
|
4206
4351
|
{
|
4207
4352
|
isLoading: query.isLoading,
|
4208
4353
|
isError: query.isError,
|
4209
4354
|
data: query.data || [],
|
4210
4355
|
columns,
|
4211
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4212
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4213
|
-
/* @__PURE__ */
|
4214
|
-
/* @__PURE__ */
|
4356
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx85(Group5, { children: /* @__PURE__ */ jsx85(F_roleCatalog_Form, {}) }),
|
4357
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs54(MyCenterFull, { children: [
|
4358
|
+
/* @__PURE__ */ jsx85(F_roleCatalog_Form, { values: row.original }),
|
4359
|
+
/* @__PURE__ */ jsx85(F_roleCatalog_Delete, { values: row.original })
|
4215
4360
|
] })
|
4216
4361
|
}
|
4217
4362
|
);
|
4218
4363
|
}
|
4219
4364
|
function useQ_core47643_GetAdminRole2() {
|
4220
|
-
const query =
|
4365
|
+
const query = useQuery18({
|
4221
4366
|
queryKey: ["useQ_core47643_GetAdminRole"],
|
4222
4367
|
queryFn: async () => {
|
4223
4368
|
const res = await baseAxios_default.get("/Role/GetAdminRole");
|
@@ -4263,21 +4408,21 @@ var mockData3 = [
|
|
4263
4408
|
];
|
4264
4409
|
|
4265
4410
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog.tsx
|
4266
|
-
import { jsx as
|
4411
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
4267
4412
|
function F_roleCatalog() {
|
4268
|
-
return /* @__PURE__ */
|
4413
|
+
return /* @__PURE__ */ jsx86(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx86(F_roleCatalog_Read, {}) });
|
4269
4414
|
}
|
4270
4415
|
|
4271
4416
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4272
|
-
import { useQuery as
|
4273
|
-
import { useMemo as
|
4417
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
4418
|
+
import { useMemo as useMemo19 } from "react";
|
4274
4419
|
|
4275
4420
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
|
4276
4421
|
import { FileInput as FileInput7 } from "@mantine/core";
|
4277
|
-
import { useForm as
|
4278
|
-
import { jsx as
|
4422
|
+
import { useForm as useForm27 } from "@mantine/form";
|
4423
|
+
import { jsx as jsx87, jsxs as jsxs55 } from "react/jsx-runtime";
|
4279
4424
|
function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
4280
|
-
const form =
|
4425
|
+
const form = useForm27({
|
4281
4426
|
mode: "uncontrolled",
|
4282
4427
|
validate: {
|
4283
4428
|
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4286,7 +4431,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4286
4431
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4287
4432
|
}
|
4288
4433
|
});
|
4289
|
-
return /* @__PURE__ */
|
4434
|
+
return /* @__PURE__ */ jsxs55(
|
4290
4435
|
MyButtonCreate,
|
4291
4436
|
{
|
4292
4437
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4299,28 +4444,28 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4299
4444
|
}));
|
4300
4445
|
},
|
4301
4446
|
children: [
|
4302
|
-
/* @__PURE__ */
|
4303
|
-
|
4447
|
+
/* @__PURE__ */ jsx87(
|
4448
|
+
MyTextInput2,
|
4304
4449
|
__spreadValues({
|
4305
4450
|
withAsterisk: true,
|
4306
4451
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4307
4452
|
}, form.getInputProps("decisionCode"))
|
4308
4453
|
),
|
4309
|
-
/* @__PURE__ */
|
4454
|
+
/* @__PURE__ */ jsx87(
|
4310
4455
|
MyDateInput,
|
4311
4456
|
__spreadValues({
|
4312
4457
|
withAsterisk: true,
|
4313
4458
|
label: "Ng\xE0y ban h\xE0nh"
|
4314
4459
|
}, form.getInputProps("promulgateDate"))
|
4315
4460
|
),
|
4316
|
-
/* @__PURE__ */
|
4317
|
-
|
4461
|
+
/* @__PURE__ */ jsx87(
|
4462
|
+
MyTextInput2,
|
4318
4463
|
__spreadValues({
|
4319
4464
|
withAsterisk: true,
|
4320
4465
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4321
4466
|
}, form.getInputProps("name"))
|
4322
4467
|
),
|
4323
|
-
/* @__PURE__ */
|
4468
|
+
/* @__PURE__ */ jsx87(
|
4324
4469
|
FileInput7,
|
4325
4470
|
__spreadValues({
|
4326
4471
|
withAsterisk: true,
|
@@ -4334,12 +4479,12 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4334
4479
|
}
|
4335
4480
|
|
4336
4481
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Delete.tsx
|
4337
|
-
import { jsx as
|
4482
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
4338
4483
|
function F_securityPolicyDocs_Delete({
|
4339
4484
|
id,
|
4340
4485
|
contextData
|
4341
4486
|
}) {
|
4342
|
-
return /* @__PURE__ */
|
4487
|
+
return /* @__PURE__ */ jsx88(
|
4343
4488
|
MyActionIconDelete,
|
4344
4489
|
{
|
4345
4490
|
contextData,
|
@@ -4350,11 +4495,11 @@ function F_securityPolicyDocs_Delete({
|
|
4350
4495
|
|
4351
4496
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
|
4352
4497
|
import { FileInput as FileInput8, TextInput as TextInput2 } from "@mantine/core";
|
4353
|
-
import { useForm as
|
4354
|
-
import { jsx as
|
4498
|
+
import { useForm as useForm28 } from "@mantine/form";
|
4499
|
+
import { jsx as jsx89, jsxs as jsxs56 } from "react/jsx-runtime";
|
4355
4500
|
function F_securityPolicyDocs_Update({ values }) {
|
4356
4501
|
var _a;
|
4357
|
-
const form =
|
4502
|
+
const form = useForm28({
|
4358
4503
|
mode: "uncontrolled",
|
4359
4504
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4360
4505
|
file: new File(
|
@@ -4370,7 +4515,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4370
4515
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4371
4516
|
}
|
4372
4517
|
});
|
4373
|
-
return /* @__PURE__ */
|
4518
|
+
return /* @__PURE__ */ jsxs56(
|
4374
4519
|
MyActionIconUpdate,
|
4375
4520
|
{
|
4376
4521
|
form,
|
@@ -4380,28 +4525,28 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4380
4525
|
}));
|
4381
4526
|
},
|
4382
4527
|
children: [
|
4383
|
-
/* @__PURE__ */
|
4528
|
+
/* @__PURE__ */ jsx89(
|
4384
4529
|
TextInput2,
|
4385
4530
|
__spreadValues({
|
4386
4531
|
withAsterisk: true,
|
4387
4532
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4388
4533
|
}, form.getInputProps("decisionCode"))
|
4389
4534
|
),
|
4390
|
-
/* @__PURE__ */
|
4535
|
+
/* @__PURE__ */ jsx89(
|
4391
4536
|
MyDateInput,
|
4392
4537
|
__spreadValues({
|
4393
4538
|
withAsterisk: true,
|
4394
4539
|
label: "Ng\xE0y ban h\xE0nh"
|
4395
4540
|
}, form.getInputProps("promulgateDate"))
|
4396
4541
|
),
|
4397
|
-
/* @__PURE__ */
|
4542
|
+
/* @__PURE__ */ jsx89(
|
4398
4543
|
TextInput2,
|
4399
4544
|
__spreadValues({
|
4400
4545
|
withAsterisk: true,
|
4401
4546
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4402
4547
|
}, form.getInputProps("name"))
|
4403
4548
|
),
|
4404
|
-
/* @__PURE__ */
|
4549
|
+
/* @__PURE__ */ jsx89(
|
4405
4550
|
FileInput8,
|
4406
4551
|
__spreadValues({
|
4407
4552
|
withAsterisk: true,
|
@@ -4414,9 +4559,9 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4414
4559
|
}
|
4415
4560
|
|
4416
4561
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4417
|
-
import { jsx as
|
4562
|
+
import { jsx as jsx90, jsxs as jsxs57 } from "react/jsx-runtime";
|
4418
4563
|
function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
4419
|
-
const query =
|
4564
|
+
const query = useQuery19({
|
4420
4565
|
queryKey: ["F_securityPolicyDocs_Read"],
|
4421
4566
|
queryFn: async () => {
|
4422
4567
|
var _a;
|
@@ -4426,7 +4571,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4426
4571
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4427
4572
|
}
|
4428
4573
|
});
|
4429
|
-
const columns =
|
4574
|
+
const columns = useMemo19(
|
4430
4575
|
() => [
|
4431
4576
|
{
|
4432
4577
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4443,25 +4588,25 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4443
4588
|
{
|
4444
4589
|
header: "File",
|
4445
4590
|
accessorFn: (row) => {
|
4446
|
-
return /* @__PURE__ */
|
4591
|
+
return /* @__PURE__ */ jsx90(MyCenterFull, { children: /* @__PURE__ */ jsx90(MyButtonViewPDF, { id: row.id }) });
|
4447
4592
|
}
|
4448
4593
|
}
|
4449
4594
|
],
|
4450
4595
|
[]
|
4451
4596
|
);
|
4452
|
-
return /* @__PURE__ */
|
4597
|
+
return /* @__PURE__ */ jsx90(
|
4453
4598
|
MyDataTable,
|
4454
4599
|
{
|
4455
4600
|
isLoading: query.isLoading,
|
4456
4601
|
isError: query.isError,
|
4457
4602
|
columns,
|
4458
4603
|
data: query.data || [],
|
4459
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4604
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx90(F_securityPolicyDocs_Create, { SecurityTypeId }),
|
4460
4605
|
renderRowActions: ({ row }) => {
|
4461
4606
|
var _a;
|
4462
|
-
return /* @__PURE__ */
|
4463
|
-
/* @__PURE__ */
|
4464
|
-
/* @__PURE__ */
|
4607
|
+
return /* @__PURE__ */ jsxs57(MyCenterFull, { children: [
|
4608
|
+
/* @__PURE__ */ jsx90(F_securityPolicyDocs_Update, { values: row.original }),
|
4609
|
+
/* @__PURE__ */ jsx90(
|
4465
4610
|
F_securityPolicyDocs_Delete,
|
4466
4611
|
{
|
4467
4612
|
id: row.original.id,
|
@@ -4475,23 +4620,23 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4475
4620
|
}
|
4476
4621
|
|
4477
4622
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs.tsx
|
4478
|
-
import { jsx as
|
4623
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
4479
4624
|
function F_securityPolicyDocs({ SecurityTypeId }) {
|
4480
|
-
return /* @__PURE__ */
|
4625
|
+
return /* @__PURE__ */ jsx91(F_securityPolicyDocs_Read, { SecurityTypeId });
|
4481
4626
|
}
|
4482
4627
|
|
4483
4628
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4484
|
-
import { useQuery as
|
4485
|
-
import { useMemo as
|
4629
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
4630
|
+
import { useMemo as useMemo20 } from "react";
|
4486
4631
|
|
4487
4632
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
|
4488
4633
|
import { FileInput as FileInput9, Textarea as Textarea3 } from "@mantine/core";
|
4489
|
-
import { useForm as
|
4490
|
-
import { jsx as
|
4634
|
+
import { useForm as useForm29 } from "@mantine/form";
|
4635
|
+
import { jsx as jsx92, jsxs as jsxs58 } from "react/jsx-runtime";
|
4491
4636
|
function F_systemUpdateDocs_Create({
|
4492
4637
|
RefinementTypeId
|
4493
4638
|
}) {
|
4494
|
-
const form =
|
4639
|
+
const form = useForm29({
|
4495
4640
|
mode: "uncontrolled",
|
4496
4641
|
validate: {
|
4497
4642
|
meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4502,7 +4647,7 @@ function F_systemUpdateDocs_Create({
|
|
4502
4647
|
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
4648
|
}
|
4504
4649
|
});
|
4505
|
-
return /* @__PURE__ */
|
4650
|
+
return /* @__PURE__ */ jsxs58(
|
4506
4651
|
MyButtonCreate,
|
4507
4652
|
{
|
4508
4653
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4515,43 +4660,43 @@ function F_systemUpdateDocs_Create({
|
|
4515
4660
|
}));
|
4516
4661
|
},
|
4517
4662
|
children: [
|
4518
|
-
/* @__PURE__ */
|
4663
|
+
/* @__PURE__ */ jsx92(
|
4519
4664
|
MyDateInput,
|
4520
4665
|
__spreadValues({
|
4521
4666
|
withAsterisk: true,
|
4522
4667
|
label: "Ng\xE0y h\u1ECDp"
|
4523
4668
|
}, form.getInputProps("meetingDate"))
|
4524
4669
|
),
|
4525
|
-
/* @__PURE__ */
|
4526
|
-
|
4670
|
+
/* @__PURE__ */ jsx92(
|
4671
|
+
MyTextInput2,
|
4527
4672
|
__spreadValues({
|
4528
4673
|
withAsterisk: true,
|
4529
4674
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4530
4675
|
}, form.getInputProps("departmentName"))
|
4531
4676
|
),
|
4532
|
-
/* @__PURE__ */
|
4533
|
-
|
4677
|
+
/* @__PURE__ */ jsx92(
|
4678
|
+
MyTextInput2,
|
4534
4679
|
__spreadValues({
|
4535
4680
|
withAsterisk: true,
|
4536
4681
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4537
4682
|
}, form.getInputProps("description"))
|
4538
4683
|
),
|
4539
|
-
/* @__PURE__ */
|
4540
|
-
/* @__PURE__ */
|
4684
|
+
/* @__PURE__ */ jsx92(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4685
|
+
/* @__PURE__ */ jsx92(
|
4541
4686
|
MyDateInput,
|
4542
4687
|
__spreadValues({
|
4543
4688
|
withAsterisk: true,
|
4544
4689
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4545
4690
|
}, form.getInputProps("startDate"))
|
4546
4691
|
),
|
4547
|
-
/* @__PURE__ */
|
4692
|
+
/* @__PURE__ */ jsx92(
|
4548
4693
|
MyDateInput,
|
4549
4694
|
__spreadValues({
|
4550
4695
|
withAsterisk: true,
|
4551
4696
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4552
4697
|
}, form.getInputProps("endDate"))
|
4553
4698
|
),
|
4554
|
-
/* @__PURE__ */
|
4699
|
+
/* @__PURE__ */ jsx92(
|
4555
4700
|
FileInput9,
|
4556
4701
|
__spreadValues({
|
4557
4702
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4559,19 +4704,19 @@ function F_systemUpdateDocs_Create({
|
|
4559
4704
|
label: "T\xE0i li\u1EC7u"
|
4560
4705
|
}, form.getInputProps("file"))
|
4561
4706
|
),
|
4562
|
-
/* @__PURE__ */
|
4707
|
+
/* @__PURE__ */ jsx92(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4563
4708
|
]
|
4564
4709
|
}
|
4565
4710
|
);
|
4566
4711
|
}
|
4567
4712
|
|
4568
4713
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Delete.tsx
|
4569
|
-
import { jsx as
|
4714
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
4570
4715
|
function F_systemUpdateDocs_Delete({
|
4571
4716
|
id,
|
4572
4717
|
contextData
|
4573
4718
|
}) {
|
4574
|
-
return /* @__PURE__ */
|
4719
|
+
return /* @__PURE__ */ jsx93(
|
4575
4720
|
MyActionIconDelete,
|
4576
4721
|
{
|
4577
4722
|
contextData,
|
@@ -4582,11 +4727,11 @@ function F_systemUpdateDocs_Delete({
|
|
4582
4727
|
|
4583
4728
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
|
4584
4729
|
import { FileInput as FileInput10, Textarea as Textarea4 } from "@mantine/core";
|
4585
|
-
import { useForm as
|
4586
|
-
import { jsx as
|
4730
|
+
import { useForm as useForm30 } from "@mantine/form";
|
4731
|
+
import { jsx as jsx94, jsxs as jsxs59 } from "react/jsx-runtime";
|
4587
4732
|
function F_systemUpdateDocs_Update({ values }) {
|
4588
4733
|
var _a;
|
4589
|
-
const form =
|
4734
|
+
const form = useForm30({
|
4590
4735
|
mode: "uncontrolled",
|
4591
4736
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4592
4737
|
file: new File(
|
@@ -4606,7 +4751,7 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4606
4751
|
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
4752
|
}
|
4608
4753
|
});
|
4609
|
-
return /* @__PURE__ */
|
4754
|
+
return /* @__PURE__ */ jsxs59(
|
4610
4755
|
MyActionIconUpdate,
|
4611
4756
|
{
|
4612
4757
|
form,
|
@@ -4616,43 +4761,43 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4616
4761
|
}));
|
4617
4762
|
},
|
4618
4763
|
children: [
|
4619
|
-
/* @__PURE__ */
|
4764
|
+
/* @__PURE__ */ jsx94(
|
4620
4765
|
MyDateInput,
|
4621
4766
|
__spreadValues({
|
4622
4767
|
withAsterisk: true,
|
4623
4768
|
label: "Ng\xE0y h\u1ECDp"
|
4624
4769
|
}, form.getInputProps("meetingDate"))
|
4625
4770
|
),
|
4626
|
-
/* @__PURE__ */
|
4627
|
-
|
4771
|
+
/* @__PURE__ */ jsx94(
|
4772
|
+
MyTextInput2,
|
4628
4773
|
__spreadValues({
|
4629
4774
|
withAsterisk: true,
|
4630
4775
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4631
4776
|
}, form.getInputProps("departmentName"))
|
4632
4777
|
),
|
4633
|
-
/* @__PURE__ */
|
4634
|
-
|
4778
|
+
/* @__PURE__ */ jsx94(
|
4779
|
+
MyTextInput2,
|
4635
4780
|
__spreadValues({
|
4636
4781
|
withAsterisk: true,
|
4637
4782
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4638
4783
|
}, form.getInputProps("description"))
|
4639
4784
|
),
|
4640
|
-
/* @__PURE__ */
|
4641
|
-
/* @__PURE__ */
|
4785
|
+
/* @__PURE__ */ jsx94(MyTextInput2, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4786
|
+
/* @__PURE__ */ jsx94(
|
4642
4787
|
MyDateInput,
|
4643
4788
|
__spreadValues({
|
4644
4789
|
withAsterisk: true,
|
4645
4790
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4646
4791
|
}, form.getInputProps("startDate"))
|
4647
4792
|
),
|
4648
|
-
/* @__PURE__ */
|
4793
|
+
/* @__PURE__ */ jsx94(
|
4649
4794
|
MyDateInput,
|
4650
4795
|
__spreadValues({
|
4651
4796
|
withAsterisk: true,
|
4652
4797
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4653
4798
|
}, form.getInputProps("endDate"))
|
4654
4799
|
),
|
4655
|
-
/* @__PURE__ */
|
4800
|
+
/* @__PURE__ */ jsx94(
|
4656
4801
|
FileInput10,
|
4657
4802
|
__spreadValues({
|
4658
4803
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4660,16 +4805,16 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4660
4805
|
label: "T\xE0i li\u1EC7u"
|
4661
4806
|
}, form.getInputProps("file"))
|
4662
4807
|
),
|
4663
|
-
/* @__PURE__ */
|
4808
|
+
/* @__PURE__ */ jsx94(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4664
4809
|
]
|
4665
4810
|
}
|
4666
4811
|
);
|
4667
4812
|
}
|
4668
4813
|
|
4669
4814
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4670
|
-
import { jsx as
|
4815
|
+
import { jsx as jsx95, jsxs as jsxs60 } from "react/jsx-runtime";
|
4671
4816
|
function F_systemUpdateDocs({ RefinementTypeId }) {
|
4672
|
-
const query =
|
4817
|
+
const query = useQuery20({
|
4673
4818
|
queryKey: ["F_systemUpdateDocs_Read"],
|
4674
4819
|
queryFn: async () => {
|
4675
4820
|
var _a;
|
@@ -4679,7 +4824,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4679
4824
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4680
4825
|
}
|
4681
4826
|
});
|
4682
|
-
const columns =
|
4827
|
+
const columns = useMemo20(
|
4683
4828
|
() => [
|
4684
4829
|
{
|
4685
4830
|
header: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u",
|
@@ -4700,24 +4845,24 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4700
4845
|
{
|
4701
4846
|
header: "File",
|
4702
4847
|
accessorFn: (row) => {
|
4703
|
-
return /* @__PURE__ */
|
4848
|
+
return /* @__PURE__ */ jsx95(MyCenterFull, { children: /* @__PURE__ */ jsx95(MyButtonViewPDF, { id: row.id }) });
|
4704
4849
|
}
|
4705
4850
|
}
|
4706
4851
|
],
|
4707
4852
|
[]
|
4708
4853
|
);
|
4709
|
-
return /* @__PURE__ */
|
4854
|
+
return /* @__PURE__ */ jsx95(
|
4710
4855
|
MyDataTable,
|
4711
4856
|
{
|
4712
4857
|
isLoading: query.isLoading,
|
4713
4858
|
isError: query.isError,
|
4714
4859
|
columns,
|
4715
4860
|
data: query.data || [],
|
4716
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4861
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx95(F_systemUpdateDocs_Create, { RefinementTypeId }),
|
4717
4862
|
renderRowActions: ({ row }) => {
|
4718
|
-
return /* @__PURE__ */
|
4719
|
-
/* @__PURE__ */
|
4720
|
-
/* @__PURE__ */
|
4863
|
+
return /* @__PURE__ */ jsxs60(MyCenterFull, { children: [
|
4864
|
+
/* @__PURE__ */ jsx95(F_systemUpdateDocs_Update, { values: row.original }),
|
4865
|
+
/* @__PURE__ */ jsx95(
|
4721
4866
|
F_systemUpdateDocs_Delete,
|
4722
4867
|
{
|
4723
4868
|
id: row.original.id,
|
@@ -4731,15 +4876,15 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4731
4876
|
}
|
4732
4877
|
|
4733
4878
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
4734
|
-
import { useQuery as
|
4735
|
-
import { useMemo as
|
4879
|
+
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
4880
|
+
import { useMemo as useMemo21 } from "react";
|
4736
4881
|
|
4737
4882
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
|
4738
4883
|
import { FileInput as FileInput11 } from "@mantine/core";
|
4739
|
-
import { useForm as
|
4740
|
-
import { jsx as
|
4884
|
+
import { useForm as useForm31 } from "@mantine/form";
|
4885
|
+
import { jsx as jsx96, jsxs as jsxs61 } from "react/jsx-runtime";
|
4741
4886
|
function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
4742
|
-
const form =
|
4887
|
+
const form = useForm31({
|
4743
4888
|
mode: "uncontrolled",
|
4744
4889
|
validate: {
|
4745
4890
|
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4747,7 +4892,7 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4747
4892
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4748
4893
|
}
|
4749
4894
|
});
|
4750
|
-
return /* @__PURE__ */
|
4895
|
+
return /* @__PURE__ */ jsxs61(
|
4751
4896
|
MyButtonCreate,
|
4752
4897
|
{
|
4753
4898
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4760,21 +4905,21 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4760
4905
|
}));
|
4761
4906
|
},
|
4762
4907
|
children: [
|
4763
|
-
/* @__PURE__ */
|
4764
|
-
|
4908
|
+
/* @__PURE__ */ jsx96(
|
4909
|
+
MyTextInput2,
|
4765
4910
|
__spreadValues({
|
4766
4911
|
withAsterisk: true,
|
4767
4912
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4768
4913
|
}, form.getInputProps("code"))
|
4769
4914
|
),
|
4770
|
-
/* @__PURE__ */
|
4771
|
-
|
4915
|
+
/* @__PURE__ */ jsx96(
|
4916
|
+
MyTextInput2,
|
4772
4917
|
__spreadValues({
|
4773
4918
|
withAsterisk: true,
|
4774
4919
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4775
4920
|
}, form.getInputProps("name"))
|
4776
4921
|
),
|
4777
|
-
/* @__PURE__ */
|
4922
|
+
/* @__PURE__ */ jsx96(
|
4778
4923
|
FileInput11,
|
4779
4924
|
__spreadValues({
|
4780
4925
|
withAsterisk: true,
|
@@ -4788,12 +4933,12 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4788
4933
|
}
|
4789
4934
|
|
4790
4935
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Delete.tsx
|
4791
|
-
import { jsx as
|
4936
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
4792
4937
|
function F_userGuideDocs_Delete({
|
4793
4938
|
id,
|
4794
4939
|
contextData
|
4795
4940
|
}) {
|
4796
|
-
return /* @__PURE__ */
|
4941
|
+
return /* @__PURE__ */ jsx97(
|
4797
4942
|
MyActionIconDelete,
|
4798
4943
|
{
|
4799
4944
|
contextData,
|
@@ -4804,11 +4949,11 @@ function F_userGuideDocs_Delete({
|
|
4804
4949
|
|
4805
4950
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
|
4806
4951
|
import { FileInput as FileInput12 } from "@mantine/core";
|
4807
|
-
import { useForm as
|
4808
|
-
import { jsx as
|
4952
|
+
import { useForm as useForm32 } from "@mantine/form";
|
4953
|
+
import { jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
4809
4954
|
function F_userGuideDocs_Update({ values }) {
|
4810
4955
|
var _a;
|
4811
|
-
const form =
|
4956
|
+
const form = useForm32({
|
4812
4957
|
mode: "uncontrolled",
|
4813
4958
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4814
4959
|
file: new File(
|
@@ -4822,7 +4967,7 @@ function F_userGuideDocs_Update({ values }) {
|
|
4822
4967
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4823
4968
|
}
|
4824
4969
|
});
|
4825
|
-
return /* @__PURE__ */
|
4970
|
+
return /* @__PURE__ */ jsxs62(
|
4826
4971
|
MyActionIconUpdate,
|
4827
4972
|
{
|
4828
4973
|
form,
|
@@ -4832,21 +4977,21 @@ function F_userGuideDocs_Update({ values }) {
|
|
4832
4977
|
}));
|
4833
4978
|
},
|
4834
4979
|
children: [
|
4835
|
-
/* @__PURE__ */
|
4836
|
-
|
4980
|
+
/* @__PURE__ */ jsx98(
|
4981
|
+
MyTextInput2,
|
4837
4982
|
__spreadValues({
|
4838
4983
|
withAsterisk: true,
|
4839
4984
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4840
4985
|
}, form.getInputProps("code"))
|
4841
4986
|
),
|
4842
|
-
/* @__PURE__ */
|
4843
|
-
|
4987
|
+
/* @__PURE__ */ jsx98(
|
4988
|
+
MyTextInput2,
|
4844
4989
|
__spreadValues({
|
4845
4990
|
withAsterisk: true,
|
4846
4991
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4847
4992
|
}, form.getInputProps("name"))
|
4848
4993
|
),
|
4849
|
-
/* @__PURE__ */
|
4994
|
+
/* @__PURE__ */ jsx98(
|
4850
4995
|
FileInput12,
|
4851
4996
|
__spreadValues({
|
4852
4997
|
withAsterisk: true,
|
@@ -4860,9 +5005,9 @@ function F_userGuideDocs_Update({ values }) {
|
|
4860
5005
|
}
|
4861
5006
|
|
4862
5007
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
4863
|
-
import { jsx as
|
5008
|
+
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
4864
5009
|
function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
4865
|
-
const query =
|
5010
|
+
const query = useQuery21({
|
4866
5011
|
queryKey: ["F_userGuideDocs_Read"],
|
4867
5012
|
queryFn: async () => {
|
4868
5013
|
var _a;
|
@@ -4872,7 +5017,7 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
4872
5017
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4873
5018
|
}
|
4874
5019
|
});
|
4875
|
-
const columns =
|
5020
|
+
const columns = useMemo21(
|
4876
5021
|
() => [
|
4877
5022
|
{
|
4878
5023
|
header: "M\xE3 t\xE0i li\u1EC7u",
|
@@ -4885,24 +5030,24 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
4885
5030
|
{
|
4886
5031
|
header: "File",
|
4887
5032
|
accessorFn: (row) => {
|
4888
|
-
return /* @__PURE__ */
|
5033
|
+
return /* @__PURE__ */ jsx99(MyCenterFull, { children: /* @__PURE__ */ jsx99(MyButtonViewPDF, { id: row.id }) });
|
4889
5034
|
}
|
4890
5035
|
}
|
4891
5036
|
],
|
4892
5037
|
[]
|
4893
5038
|
);
|
4894
|
-
return /* @__PURE__ */
|
5039
|
+
return /* @__PURE__ */ jsx99(
|
4895
5040
|
MyDataTable,
|
4896
5041
|
{
|
4897
5042
|
isLoading: query.isLoading,
|
4898
5043
|
isError: query.isError,
|
4899
5044
|
columns,
|
4900
5045
|
data: query.data || [],
|
4901
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
5046
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx99(F_userGuideDocs_Create, { GuidelineTypeId }),
|
4902
5047
|
renderRowActions: ({ row }) => {
|
4903
|
-
return /* @__PURE__ */
|
4904
|
-
/* @__PURE__ */
|
4905
|
-
/* @__PURE__ */
|
5048
|
+
return /* @__PURE__ */ jsxs63(MyCenterFull, { children: [
|
5049
|
+
/* @__PURE__ */ jsx99(F_userGuideDocs_Update, { values: row.original }),
|
5050
|
+
/* @__PURE__ */ jsx99(
|
4906
5051
|
F_userGuideDocs_Delete,
|
4907
5052
|
{
|
4908
5053
|
id: row.original.id,
|
@@ -4916,21 +5061,21 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
4916
5061
|
}
|
4917
5062
|
|
4918
5063
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs.tsx
|
4919
|
-
import { jsx as
|
5064
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
4920
5065
|
function F_userGuideDocs({ GuidelineTypeId }) {
|
4921
|
-
return /* @__PURE__ */
|
5066
|
+
return /* @__PURE__ */ jsx100(F_userGuideDocs_Read, { GuidelineTypeId });
|
4922
5067
|
}
|
4923
5068
|
|
4924
5069
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
4925
5070
|
import { Paper as Paper9, Space as Space6 } from "@mantine/core";
|
4926
5071
|
|
4927
5072
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
|
4928
|
-
import { useForm as
|
4929
|
-
import { jsx as
|
5073
|
+
import { useForm as useForm33 } from "@mantine/form";
|
5074
|
+
import { jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
|
4930
5075
|
function F_workflowProcessDocs_Create({
|
4931
5076
|
WorkflowTypeId
|
4932
5077
|
}) {
|
4933
|
-
const form =
|
5078
|
+
const form = useForm33({
|
4934
5079
|
mode: "uncontrolled",
|
4935
5080
|
validate: {
|
4936
5081
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4940,7 +5085,7 @@ function F_workflowProcessDocs_Create({
|
|
4940
5085
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4941
5086
|
}
|
4942
5087
|
});
|
4943
|
-
return /* @__PURE__ */
|
5088
|
+
return /* @__PURE__ */ jsxs64(
|
4944
5089
|
MyButtonCreate,
|
4945
5090
|
{
|
4946
5091
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -4952,28 +5097,28 @@ function F_workflowProcessDocs_Create({
|
|
4952
5097
|
}));
|
4953
5098
|
},
|
4954
5099
|
children: [
|
4955
|
-
/* @__PURE__ */
|
4956
|
-
|
5100
|
+
/* @__PURE__ */ jsx101(
|
5101
|
+
MyTextInput2,
|
4957
5102
|
__spreadValues({
|
4958
5103
|
withAsterisk: true,
|
4959
5104
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4960
5105
|
}, form.getInputProps("decisionCode"))
|
4961
5106
|
),
|
4962
|
-
/* @__PURE__ */
|
5107
|
+
/* @__PURE__ */ jsx101(
|
4963
5108
|
MyDateInput,
|
4964
5109
|
__spreadValues({
|
4965
5110
|
withAsterisk: true,
|
4966
5111
|
label: "Ng\xE0y ban h\xE0nh"
|
4967
5112
|
}, form.getInputProps("promulgateDate"))
|
4968
5113
|
),
|
4969
|
-
/* @__PURE__ */
|
4970
|
-
|
5114
|
+
/* @__PURE__ */ jsx101(
|
5115
|
+
MyTextInput2,
|
4971
5116
|
__spreadValues({
|
4972
5117
|
withAsterisk: true,
|
4973
5118
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4974
5119
|
}, form.getInputProps("name"))
|
4975
5120
|
),
|
4976
|
-
/* @__PURE__ */
|
5121
|
+
/* @__PURE__ */ jsx101(
|
4977
5122
|
F_core18256_Select,
|
4978
5123
|
__spreadValues({
|
4979
5124
|
withAsterisk: true,
|
@@ -4981,14 +5126,14 @@ function F_workflowProcessDocs_Create({
|
|
4981
5126
|
documentTypeId: WorkflowTypeId
|
4982
5127
|
}, form.getInputProps("documentAttributeId"))
|
4983
5128
|
),
|
4984
|
-
/* @__PURE__ */
|
5129
|
+
/* @__PURE__ */ jsx101(
|
4985
5130
|
MyFileInput,
|
4986
5131
|
__spreadValues({
|
4987
5132
|
withAsterisk: true,
|
4988
5133
|
label: "V\u0103n b\u1EA3n"
|
4989
5134
|
}, form.getInputProps("file"))
|
4990
5135
|
),
|
4991
|
-
/* @__PURE__ */
|
5136
|
+
/* @__PURE__ */ jsx101(
|
4992
5137
|
MyNumberInput,
|
4993
5138
|
__spreadValues({
|
4994
5139
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5001,17 +5146,17 @@ function F_workflowProcessDocs_Create({
|
|
5001
5146
|
|
5002
5147
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5003
5148
|
import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton6 } from "@mantine/core";
|
5004
|
-
import { useQuery as
|
5149
|
+
import { useQuery as useQuery22 } from "@tanstack/react-query";
|
5005
5150
|
import { IconBug as IconBug6 } from "@tabler/icons-react";
|
5006
|
-
import { useMemo as
|
5151
|
+
import { useMemo as useMemo22 } from "react";
|
5007
5152
|
|
5008
5153
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
|
5009
|
-
import { jsx as
|
5154
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
5010
5155
|
function F_workflowProcessDocs_Delete({
|
5011
5156
|
id,
|
5012
5157
|
contextData
|
5013
5158
|
}) {
|
5014
|
-
return /* @__PURE__ */
|
5159
|
+
return /* @__PURE__ */ jsx102(
|
5015
5160
|
MyActionIconDelete,
|
5016
5161
|
{
|
5017
5162
|
contextData,
|
@@ -5021,14 +5166,14 @@ function F_workflowProcessDocs_Delete({
|
|
5021
5166
|
}
|
5022
5167
|
|
5023
5168
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
|
5024
|
-
import { useForm as
|
5025
|
-
import { jsx as
|
5169
|
+
import { useForm as useForm34 } from "@mantine/form";
|
5170
|
+
import { jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
|
5026
5171
|
function F_workflowProcessDocs_Update({
|
5027
5172
|
values,
|
5028
5173
|
WorkflowTypeId
|
5029
5174
|
}) {
|
5030
5175
|
var _a;
|
5031
|
-
const form =
|
5176
|
+
const form = useForm34({
|
5032
5177
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
5033
5178
|
file: new File(
|
5034
5179
|
[],
|
@@ -5044,7 +5189,7 @@ function F_workflowProcessDocs_Update({
|
|
5044
5189
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5045
5190
|
}
|
5046
5191
|
});
|
5047
|
-
return /* @__PURE__ */
|
5192
|
+
return /* @__PURE__ */ jsxs65(
|
5048
5193
|
MyActionIconUpdate,
|
5049
5194
|
{
|
5050
5195
|
form,
|
@@ -5054,28 +5199,28 @@ function F_workflowProcessDocs_Update({
|
|
5054
5199
|
}));
|
5055
5200
|
},
|
5056
5201
|
children: [
|
5057
|
-
/* @__PURE__ */
|
5058
|
-
|
5202
|
+
/* @__PURE__ */ jsx103(
|
5203
|
+
MyTextInput2,
|
5059
5204
|
__spreadValues({
|
5060
5205
|
withAsterisk: true,
|
5061
5206
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5062
5207
|
}, form.getInputProps("decisionCode"))
|
5063
5208
|
),
|
5064
|
-
/* @__PURE__ */
|
5209
|
+
/* @__PURE__ */ jsx103(
|
5065
5210
|
MyDateInput,
|
5066
5211
|
__spreadValues({
|
5067
5212
|
withAsterisk: true,
|
5068
5213
|
label: "Ng\xE0y ban h\xE0nh"
|
5069
5214
|
}, form.getInputProps("promulgateDate"))
|
5070
5215
|
),
|
5071
|
-
/* @__PURE__ */
|
5072
|
-
|
5216
|
+
/* @__PURE__ */ jsx103(
|
5217
|
+
MyTextInput2,
|
5073
5218
|
__spreadValues({
|
5074
5219
|
withAsterisk: true,
|
5075
5220
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5076
5221
|
}, form.getInputProps("name"))
|
5077
5222
|
),
|
5078
|
-
/* @__PURE__ */
|
5223
|
+
/* @__PURE__ */ jsx103(
|
5079
5224
|
F_core18256_Select,
|
5080
5225
|
__spreadValues({
|
5081
5226
|
withAsterisk: true,
|
@@ -5083,14 +5228,14 @@ function F_workflowProcessDocs_Update({
|
|
5083
5228
|
documentTypeId: WorkflowTypeId
|
5084
5229
|
}, form.getInputProps("documentAttributeId"))
|
5085
5230
|
),
|
5086
|
-
/* @__PURE__ */
|
5231
|
+
/* @__PURE__ */ jsx103(
|
5087
5232
|
MyFileInput,
|
5088
5233
|
__spreadValues({
|
5089
5234
|
withAsterisk: true,
|
5090
5235
|
label: "V\u0103n b\u1EA3n"
|
5091
5236
|
}, form.getInputProps("file"))
|
5092
5237
|
),
|
5093
|
-
/* @__PURE__ */
|
5238
|
+
/* @__PURE__ */ jsx103(
|
5094
5239
|
MyNumberInput,
|
5095
5240
|
__spreadValues({
|
5096
5241
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5102,12 +5247,12 @@ function F_workflowProcessDocs_Update({
|
|
5102
5247
|
}
|
5103
5248
|
|
5104
5249
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5105
|
-
import { jsx as
|
5250
|
+
import { jsx as jsx104, jsxs as jsxs66 } from "react/jsx-runtime";
|
5106
5251
|
function F_workflowProcessDocs_Read({
|
5107
5252
|
WorkflowTypeId
|
5108
5253
|
}) {
|
5109
5254
|
var _a, _b, _c;
|
5110
|
-
const documentAttributeQuery =
|
5255
|
+
const documentAttributeQuery = useQuery22({
|
5111
5256
|
queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
|
5112
5257
|
queryFn: async () => {
|
5113
5258
|
var _a2;
|
@@ -5118,10 +5263,10 @@ function F_workflowProcessDocs_Read({
|
|
5118
5263
|
}
|
5119
5264
|
});
|
5120
5265
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
5121
|
-
return /* @__PURE__ */
|
5266
|
+
return /* @__PURE__ */ jsx104(Blockquote6, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
5122
5267
|
if (documentAttributeQuery.isError)
|
5123
|
-
return /* @__PURE__ */
|
5124
|
-
return /* @__PURE__ */
|
5268
|
+
return /* @__PURE__ */ jsx104(Alert6, { icon: /* @__PURE__ */ jsx104(IconBug6, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
5269
|
+
return /* @__PURE__ */ jsx104(Skeleton6, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx104(MyFlexColumn, { children: /* @__PURE__ */ jsx104(
|
5125
5270
|
Accordion6,
|
5126
5271
|
{
|
5127
5272
|
variant: "contained",
|
@@ -5132,7 +5277,7 @@ function F_workflowProcessDocs_Read({
|
|
5132
5277
|
}
|
5133
5278
|
),
|
5134
5279
|
multiple: true,
|
5135
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
5280
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx104(
|
5136
5281
|
SubRead6,
|
5137
5282
|
{
|
5138
5283
|
name: item.name,
|
@@ -5149,7 +5294,7 @@ function SubRead6({
|
|
5149
5294
|
documentType,
|
5150
5295
|
WorkflowTypeId
|
5151
5296
|
}) {
|
5152
|
-
const documentQuery =
|
5297
|
+
const documentQuery = useQuery22({
|
5153
5298
|
queryKey: ["SubRead" + documentType],
|
5154
5299
|
queryFn: async () => {
|
5155
5300
|
const result = await baseAxios_default.get(
|
@@ -5158,7 +5303,7 @@ function SubRead6({
|
|
5158
5303
|
return result.data.data;
|
5159
5304
|
}
|
5160
5305
|
});
|
5161
|
-
const columns =
|
5306
|
+
const columns = useMemo22(
|
5162
5307
|
() => [
|
5163
5308
|
{
|
5164
5309
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -5175,30 +5320,30 @@ function SubRead6({
|
|
5175
5320
|
{
|
5176
5321
|
header: "File",
|
5177
5322
|
accessorFn: (row) => {
|
5178
|
-
return /* @__PURE__ */
|
5323
|
+
return /* @__PURE__ */ jsx104(MyCenterFull, { children: /* @__PURE__ */ jsx104(MyButtonViewPDF, { id: row.id }) });
|
5179
5324
|
}
|
5180
5325
|
}
|
5181
5326
|
],
|
5182
5327
|
[]
|
5183
5328
|
);
|
5184
|
-
return /* @__PURE__ */
|
5185
|
-
/* @__PURE__ */
|
5186
|
-
/* @__PURE__ */
|
5329
|
+
return /* @__PURE__ */ jsxs66(Accordion6.Item, { value: documentType.toString(), children: [
|
5330
|
+
/* @__PURE__ */ jsx104(Accordion6.Control, { children: name }),
|
5331
|
+
/* @__PURE__ */ jsx104(Accordion6.Panel, { children: /* @__PURE__ */ jsx104(
|
5187
5332
|
MyDataTable,
|
5188
5333
|
{
|
5189
5334
|
isLoading: documentQuery.isLoading,
|
5190
5335
|
isError: documentQuery.isError,
|
5191
5336
|
columns,
|
5192
5337
|
data: documentQuery.data || [],
|
5193
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
5194
|
-
/* @__PURE__ */
|
5338
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs66(MyCenterFull, { children: [
|
5339
|
+
/* @__PURE__ */ jsx104(
|
5195
5340
|
F_workflowProcessDocs_Update,
|
5196
5341
|
{
|
5197
5342
|
WorkflowTypeId,
|
5198
5343
|
values: row.original
|
5199
5344
|
}
|
5200
5345
|
),
|
5201
|
-
/* @__PURE__ */
|
5346
|
+
/* @__PURE__ */ jsx104(
|
5202
5347
|
F_workflowProcessDocs_Delete,
|
5203
5348
|
{
|
5204
5349
|
id: row.original.id,
|
@@ -5212,21 +5357,21 @@ function SubRead6({
|
|
5212
5357
|
}
|
5213
5358
|
|
5214
5359
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5215
|
-
import { jsx as
|
5360
|
+
import { jsx as jsx105, jsxs as jsxs67 } from "react/jsx-runtime";
|
5216
5361
|
function F_workflowProcessDocs({
|
5217
5362
|
WorkflowTypeId
|
5218
5363
|
}) {
|
5219
|
-
return /* @__PURE__ */
|
5220
|
-
/* @__PURE__ */
|
5221
|
-
/* @__PURE__ */
|
5222
|
-
/* @__PURE__ */
|
5364
|
+
return /* @__PURE__ */ jsxs67(Paper9, { p: "md", children: [
|
5365
|
+
/* @__PURE__ */ jsx105(MyFlexEnd, { children: /* @__PURE__ */ jsx105(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
|
5366
|
+
/* @__PURE__ */ jsx105(Space6, {}),
|
5367
|
+
/* @__PURE__ */ jsx105(F_workflowProcessDocs_Read, { WorkflowTypeId })
|
5223
5368
|
] });
|
5224
5369
|
}
|
5225
5370
|
|
5226
5371
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
5227
5372
|
import { useRouter } from "next/navigation";
|
5228
5373
|
import { useEffect as useEffect9 } from "react";
|
5229
|
-
import { jsx as
|
5374
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
5230
5375
|
function F_authenticate_SplashPage() {
|
5231
5376
|
const router = useRouter();
|
5232
5377
|
const S_Authenticate = useS_authenticate();
|
@@ -5237,7 +5382,7 @@ function F_authenticate_SplashPage() {
|
|
5237
5382
|
}
|
5238
5383
|
router.push("/admin/core71678");
|
5239
5384
|
}, [S_Authenticate.state.token]);
|
5240
|
-
return /* @__PURE__ */
|
5385
|
+
return /* @__PURE__ */ jsx106(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
5241
5386
|
}
|
5242
5387
|
|
5243
5388
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
@@ -5255,7 +5400,7 @@ import {
|
|
5255
5400
|
TextInput as TextInput3,
|
5256
5401
|
Title
|
5257
5402
|
} from "@mantine/core";
|
5258
|
-
import { useForm as
|
5403
|
+
import { useForm as useForm35 } from "@mantine/form";
|
5259
5404
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
5260
5405
|
import axios from "axios";
|
5261
5406
|
import Link from "next/link";
|
@@ -5266,7 +5411,7 @@ import { useEffect as useEffect10, useState as useState8 } from "react";
|
|
5266
5411
|
var css_default = {};
|
5267
5412
|
|
5268
5413
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5269
|
-
import { jsx as
|
5414
|
+
import { jsx as jsx107, jsxs as jsxs68 } from "react/jsx-runtime";
|
5270
5415
|
function F_authenticate_Login({
|
5271
5416
|
header,
|
5272
5417
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -5282,7 +5427,7 @@ function F_authenticate_Login({
|
|
5282
5427
|
const authenticate_store = useS_authenticate();
|
5283
5428
|
const loadingState = useState8(false);
|
5284
5429
|
const mutation = useM_Account_Sigin();
|
5285
|
-
const form =
|
5430
|
+
const form = useForm35({
|
5286
5431
|
initialValues: {
|
5287
5432
|
username: "",
|
5288
5433
|
password: ""
|
@@ -5309,6 +5454,7 @@ function F_authenticate_Login({
|
|
5309
5454
|
"passWord": passWord
|
5310
5455
|
}, {
|
5311
5456
|
onSuccess: (data) => {
|
5457
|
+
var _a, _b, _c, _d;
|
5312
5458
|
if (data.isSuccess === false) {
|
5313
5459
|
form.setFieldError("username", "T\xE0i kho\u1EA3n kh\xF4ng t\u1ED3n t\u1EA1i");
|
5314
5460
|
loadingState[1](false);
|
@@ -5319,10 +5465,10 @@ function F_authenticate_Login({
|
|
5319
5465
|
loadingState[1](false);
|
5320
5466
|
return;
|
5321
5467
|
}
|
5322
|
-
authenticate_store.setProperty("code", data.data.userName);
|
5323
|
-
authenticate_store.setProperty("fullName", data.data.userFullName);
|
5324
|
-
authenticate_store.setProperty("userId", data.data.userId);
|
5325
|
-
authenticate_store.setProperty("token", data.data.token);
|
5468
|
+
authenticate_store.setProperty("code", (_a = data.data) == null ? void 0 : _a.userName);
|
5469
|
+
authenticate_store.setProperty("fullName", (_b = data.data) == null ? void 0 : _b.userFullName);
|
5470
|
+
authenticate_store.setProperty("userId", (_c = data.data) == null ? void 0 : _c.userId);
|
5471
|
+
authenticate_store.setProperty("token", (_d = data.data) == null ? void 0 : _d.token);
|
5326
5472
|
if (authenticate_store.state.saveLogin == true) {
|
5327
5473
|
authenticate_store.setProperty("username", userName);
|
5328
5474
|
} else {
|
@@ -5337,21 +5483,21 @@ function F_authenticate_Login({
|
|
5337
5483
|
}
|
5338
5484
|
});
|
5339
5485
|
}
|
5340
|
-
return /* @__PURE__ */
|
5486
|
+
return /* @__PURE__ */ jsx107(
|
5341
5487
|
BackgroundImage,
|
5342
5488
|
{
|
5343
5489
|
src: backgroundImage,
|
5344
5490
|
h: "100vh",
|
5345
|
-
children: /* @__PURE__ */
|
5346
|
-
header ? header : /* @__PURE__ */
|
5347
|
-
/* @__PURE__ */
|
5348
|
-
/* @__PURE__ */
|
5491
|
+
children: /* @__PURE__ */ jsx107(Center2, { h: "100vh", children: /* @__PURE__ */ jsxs68(Paper10, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
5492
|
+
header ? header : /* @__PURE__ */ jsxs68(Flex3, { direction: "column", mb: "md", children: [
|
5493
|
+
/* @__PURE__ */ jsx107(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
5494
|
+
/* @__PURE__ */ jsxs68(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
5349
5495
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
5350
|
-
/* @__PURE__ */
|
5496
|
+
/* @__PURE__ */ jsx107(Anchor, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
5351
5497
|
] })
|
5352
5498
|
] }),
|
5353
|
-
/* @__PURE__ */
|
5354
|
-
/* @__PURE__ */
|
5499
|
+
/* @__PURE__ */ jsx107("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs68(MyFlexColumn, { children: [
|
5500
|
+
/* @__PURE__ */ jsx107(
|
5355
5501
|
TextInput3,
|
5356
5502
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
5357
5503
|
label: "T\xE0i kho\u1EA3n",
|
@@ -5359,7 +5505,7 @@ function F_authenticate_Login({
|
|
5359
5505
|
withAsterisk: true
|
5360
5506
|
})
|
5361
5507
|
),
|
5362
|
-
/* @__PURE__ */
|
5508
|
+
/* @__PURE__ */ jsx107(
|
5363
5509
|
PasswordInput2,
|
5364
5510
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
5365
5511
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -5367,8 +5513,8 @@ function F_authenticate_Login({
|
|
5367
5513
|
withAsterisk: true
|
5368
5514
|
})
|
5369
5515
|
),
|
5370
|
-
/* @__PURE__ */
|
5371
|
-
showSaveLogin && /* @__PURE__ */
|
5516
|
+
/* @__PURE__ */ jsxs68(Group6, { justify: "space-between", children: [
|
5517
|
+
showSaveLogin && /* @__PURE__ */ jsx107(
|
5372
5518
|
Checkbox3,
|
5373
5519
|
{
|
5374
5520
|
checked: authenticate_store.state.saveLogin,
|
@@ -5376,9 +5522,9 @@ function F_authenticate_Login({
|
|
5376
5522
|
label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
|
5377
5523
|
}
|
5378
5524
|
),
|
5379
|
-
showForgotPassword && /* @__PURE__ */
|
5525
|
+
showForgotPassword && /* @__PURE__ */ jsx107(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
5380
5526
|
] }),
|
5381
|
-
showLoginButton && /* @__PURE__ */
|
5527
|
+
showLoginButton && /* @__PURE__ */ jsx107(
|
5382
5528
|
Button3,
|
5383
5529
|
{
|
5384
5530
|
loading: loadingState[0],
|
@@ -5463,6 +5609,12 @@ export {
|
|
5463
5609
|
F_core76318_Create,
|
5464
5610
|
F_core76318_Delete,
|
5465
5611
|
F_core76318_Update,
|
5612
|
+
F_documentCategories,
|
5613
|
+
F_documentCategories_Create,
|
5614
|
+
F_documentCategories_Delete,
|
5615
|
+
F_documentCategories_Read,
|
5616
|
+
F_documentCategories_Select,
|
5617
|
+
F_documentCategories_Update,
|
5466
5618
|
F_formTemplateDocs,
|
5467
5619
|
F_formTemplateDocs_Create,
|
5468
5620
|
F_formTemplateDocs_Delete,
|