aq-fe-framework 0.1.324 → 0.1.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules-features/index.d.mts +54 -29
- package/dist/modules-features/index.mjs +551 -360
- package/package.json +1 -1
@@ -11,20 +11,12 @@ 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";
|
22
14
|
import {
|
23
15
|
F_authenticate_Logout,
|
24
16
|
MyActionIconDelete,
|
25
17
|
MyActionIconUpdate,
|
26
18
|
MyBoxesBackground,
|
27
|
-
MyButton
|
19
|
+
MyButton,
|
28
20
|
MyButtonCreate,
|
29
21
|
MyButtonModal,
|
30
22
|
MyButtonViewPDF,
|
@@ -37,7 +29,7 @@ import {
|
|
37
29
|
MyPageContent,
|
38
30
|
MySelect,
|
39
31
|
MyTab,
|
40
|
-
MyTextInput
|
32
|
+
MyTextInput,
|
41
33
|
groupToTwoLevels,
|
42
34
|
useS_authenticate,
|
43
35
|
utils_layout_getItemsWithoutLinks
|
@@ -46,6 +38,14 @@ import {
|
|
46
38
|
createGenericStore
|
47
39
|
} from "../chunk-Y3YGC5IH.mjs";
|
48
40
|
import "../chunk-5U2JSHSJ.mjs";
|
41
|
+
import {
|
42
|
+
const_object_documentTypes
|
43
|
+
} from "../chunk-BZMQOGL6.mjs";
|
44
|
+
import {
|
45
|
+
MyButton as MyButton2,
|
46
|
+
MyDataTableSelectOne,
|
47
|
+
MyTextInput as MyTextInput2
|
48
|
+
} from "../chunk-HEW5D3R4.mjs";
|
49
49
|
import {
|
50
50
|
MyDataTable,
|
51
51
|
MyFlexColumn,
|
@@ -468,7 +468,7 @@ function F_accessControl_Save() {
|
|
468
468
|
}
|
469
469
|
disable[1](false);
|
470
470
|
}, [store.state.rolePermissions]);
|
471
|
-
return /* @__PURE__ */ jsx3(
|
471
|
+
return /* @__PURE__ */ jsx3(MyButton, { 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(MyButton, { 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(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
1041
|
+
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
1042
|
+
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
1043
|
+
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
1044
|
+
/* @__PURE__ */ jsx10(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
1045
|
+
/* @__PURE__ */ jsx10(MyTextInput, __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(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
1125
|
+
/* @__PURE__ */ jsx12(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
1126
|
+
/* @__PURE__ */ jsx12(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
1127
|
+
/* @__PURE__ */ jsx12(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
1128
|
+
/* @__PURE__ */ jsx12(MyTextInput, __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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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(MyTextInput, __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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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(MyTextInput, __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(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1902
|
+
/* @__PURE__ */ jsx25(MyTextInput, __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(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
1926
|
+
/* @__PURE__ */ jsx27(MyTextInput, __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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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(MyTextInput, { label: "M\xE3 module", disabled: true }) }),
|
2595
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx40(MyTextInput, { label: "T\xEAn module" }) }),
|
2596
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx40(MyTextInput, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
2597
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput, { label: "Email" }) }),
|
2598
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
2599
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
2600
|
+
/* @__PURE__ */ jsx40(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx40(MyTextInput, { 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(MyButton, { 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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
2829
|
+
/* @__PURE__ */ jsx47(MyTextInput, __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(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
2835
|
+
/* @__PURE__ */ jsx47(MyTextInput, __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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
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
|
+
MyTextInput,
|
3119
3119
|
__spreadValues({
|
3120
3120
|
withAsterisk: true,
|
3121
3121
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -3304,8 +3304,8 @@ function F_documentCategories_Create({ documentType }) {
|
|
3304
3304
|
}
|
3305
3305
|
});
|
3306
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(
|
3308
|
-
/* @__PURE__ */ jsx59(
|
3307
|
+
/* @__PURE__ */ jsx59(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
3308
|
+
/* @__PURE__ */ jsx59(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
3309
3309
|
] });
|
3310
3310
|
}
|
3311
3311
|
|
@@ -3328,8 +3328,8 @@ function F_documentCategories_Update({ values }) {
|
|
3328
3328
|
initialValues: values
|
3329
3329
|
});
|
3330
3330
|
return /* @__PURE__ */ jsxs40(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
3331
|
-
/* @__PURE__ */ jsx61(
|
3332
|
-
/* @__PURE__ */ jsx61(
|
3331
|
+
/* @__PURE__ */ jsx61(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
3332
|
+
/* @__PURE__ */ jsx61(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
3333
3333
|
] });
|
3334
3334
|
}
|
3335
3335
|
|
@@ -3456,7 +3456,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3456
3456
|
},
|
3457
3457
|
children: [
|
3458
3458
|
/* @__PURE__ */ jsx65(
|
3459
|
-
|
3459
|
+
MyTextInput,
|
3460
3460
|
__spreadValues({
|
3461
3461
|
withAsterisk: true,
|
3462
3462
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -3470,7 +3470,7 @@ function F_formTemplateDocs_Create({ FormTypeId }) {
|
|
3470
3470
|
}, form.getInputProps("promulgateDate"))
|
3471
3471
|
),
|
3472
3472
|
/* @__PURE__ */ jsx65(
|
3473
|
-
|
3473
|
+
MyTextInput,
|
3474
3474
|
__spreadValues({
|
3475
3475
|
withAsterisk: true,
|
3476
3476
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -3558,7 +3558,7 @@ function F_formTemplateDocs_Update({
|
|
3558
3558
|
},
|
3559
3559
|
children: [
|
3560
3560
|
/* @__PURE__ */ jsx67(
|
3561
|
-
|
3561
|
+
MyTextInput,
|
3562
3562
|
__spreadValues({
|
3563
3563
|
withAsterisk: true,
|
3564
3564
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
@@ -3572,7 +3572,7 @@ function F_formTemplateDocs_Update({
|
|
3572
3572
|
}, form.getInputProps("promulgateDate"))
|
3573
3573
|
),
|
3574
3574
|
/* @__PURE__ */ jsx67(
|
3575
|
-
|
3575
|
+
MyTextInput,
|
3576
3576
|
__spreadValues({
|
3577
3577
|
withAsterisk: true,
|
3578
3578
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
@@ -3726,12 +3726,199 @@ function F_formTemplateDocs({
|
|
3726
3726
|
] });
|
3727
3727
|
}
|
3728
3728
|
|
3729
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Read.tsx
|
3730
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
3731
|
+
import { useMemo as useMemo16 } from "react";
|
3732
|
+
|
3733
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Delete.tsx
|
3734
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
3735
|
+
function F_mailConfig_Delete({ values }) {
|
3736
|
+
return /* @__PURE__ */ jsx70(
|
3737
|
+
MyActionIconDelete,
|
3738
|
+
{
|
3739
|
+
contextData: values == null ? void 0 : values.code,
|
3740
|
+
onSubmit: () => {
|
3741
|
+
return baseAxios_default.post("/EmailConfig/Delete", {
|
3742
|
+
id: values == null ? void 0 : values.id
|
3743
|
+
});
|
3744
|
+
}
|
3745
|
+
}
|
3746
|
+
);
|
3747
|
+
}
|
3748
|
+
|
3749
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Form.tsx
|
3750
|
+
import { PasswordInput as PasswordInput2 } from "@mantine/core";
|
3751
|
+
import { useForm as useForm23 } from "@mantine/form";
|
3752
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "react/jsx-runtime";
|
3753
|
+
function F_mailConfig_Form({ values, emailModule }) {
|
3754
|
+
const form = useForm23({
|
3755
|
+
mode: "uncontrolled",
|
3756
|
+
initialValues: values ? values : {
|
3757
|
+
emailModule: Number(emailModule[0])
|
3758
|
+
}
|
3759
|
+
});
|
3760
|
+
function handleSubmit() {
|
3761
|
+
const formValues = form.getValues();
|
3762
|
+
return baseAxios_default.post(`/EmailConfig/${values ? "update" : "create"}`, {
|
3763
|
+
"id": values ? formValues.id : 0,
|
3764
|
+
"code": "string",
|
3765
|
+
"name": "string",
|
3766
|
+
"concurrencyStamp": "string",
|
3767
|
+
"isEnabled": true,
|
3768
|
+
"order": 0,
|
3769
|
+
"emailModule": formValues.emailModule,
|
3770
|
+
"hostMailServer": formValues.hostMailServer,
|
3771
|
+
"outgoingPort": formValues.outgoingPort,
|
3772
|
+
"incomingPort": formValues.incomingPort,
|
3773
|
+
"sll": formValues.sll,
|
3774
|
+
"userName": formValues.userName,
|
3775
|
+
"password": formValues.password
|
3776
|
+
});
|
3777
|
+
}
|
3778
|
+
if (values) return /* @__PURE__ */ jsx71(
|
3779
|
+
MyActionIconUpdate,
|
3780
|
+
{
|
3781
|
+
form,
|
3782
|
+
onSubmit: handleSubmit,
|
3783
|
+
children: /* @__PURE__ */ jsx71(FormInput2, { form, emailModule })
|
3784
|
+
}
|
3785
|
+
);
|
3786
|
+
return /* @__PURE__ */ jsx71(
|
3787
|
+
MyButtonCreate,
|
3788
|
+
{
|
3789
|
+
form,
|
3790
|
+
onSubmit: handleSubmit,
|
3791
|
+
children: /* @__PURE__ */ jsx71(FormInput2, { form, emailModule })
|
3792
|
+
}
|
3793
|
+
);
|
3794
|
+
}
|
3795
|
+
function FormInput2({ form, emailModule }) {
|
3796
|
+
var _a, _b;
|
3797
|
+
return /* @__PURE__ */ jsxs47(MyFlexColumn, { children: [
|
3798
|
+
/* @__PURE__ */ jsx71(
|
3799
|
+
MySelect,
|
3800
|
+
__spreadProps(__spreadValues({
|
3801
|
+
label: "Ph\xE2n h\u1EC7",
|
3802
|
+
data: emailModule
|
3803
|
+
}, form.getInputProps("emailModule")), {
|
3804
|
+
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
3805
|
+
})
|
3806
|
+
),
|
3807
|
+
/* @__PURE__ */ jsx71(
|
3808
|
+
MyTextInput,
|
3809
|
+
__spreadValues({
|
3810
|
+
label: "Host mail server"
|
3811
|
+
}, form.getInputProps("hostMailServer"))
|
3812
|
+
),
|
3813
|
+
/* @__PURE__ */ jsx71(
|
3814
|
+
MyNumberInput,
|
3815
|
+
__spreadValues({
|
3816
|
+
label: "Outgoing port"
|
3817
|
+
}, form.getInputProps("outgoingPort"))
|
3818
|
+
),
|
3819
|
+
/* @__PURE__ */ jsx71(
|
3820
|
+
MyNumberInput,
|
3821
|
+
__spreadValues({
|
3822
|
+
label: "Incoming port"
|
3823
|
+
}, form.getInputProps("incomingPort"))
|
3824
|
+
),
|
3825
|
+
/* @__PURE__ */ jsx71(
|
3826
|
+
MySelect,
|
3827
|
+
{
|
3828
|
+
label: "SSL",
|
3829
|
+
data: ["true", "false"],
|
3830
|
+
value: (_b = form.getValues().sll) == null ? void 0 : _b.toString(),
|
3831
|
+
onChange: (e) => form.setFieldValue("sll", e == "true" ? true : false)
|
3832
|
+
}
|
3833
|
+
),
|
3834
|
+
/* @__PURE__ */ jsx71(
|
3835
|
+
MyTextInput,
|
3836
|
+
__spreadValues({
|
3837
|
+
label: "Username"
|
3838
|
+
}, form.getInputProps("userName"))
|
3839
|
+
),
|
3840
|
+
/* @__PURE__ */ jsx71(
|
3841
|
+
PasswordInput2,
|
3842
|
+
__spreadValues({
|
3843
|
+
label: "Password",
|
3844
|
+
placeholder: "Nh\u1EADp password"
|
3845
|
+
}, form.getInputProps("password"))
|
3846
|
+
)
|
3847
|
+
] });
|
3848
|
+
}
|
3849
|
+
|
3850
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig_Read.tsx
|
3851
|
+
import { jsx as jsx72, jsxs as jsxs48 } from "react/jsx-runtime";
|
3852
|
+
function F_mailConfig_Read({ emailModule }) {
|
3853
|
+
const query = useQuery17({
|
3854
|
+
queryKey: ["F_core64229_Read"],
|
3855
|
+
queryFn: async () => {
|
3856
|
+
const res = await baseAxios_default.get("/EmailConfig/GetAll");
|
3857
|
+
return res.data.data;
|
3858
|
+
}
|
3859
|
+
});
|
3860
|
+
const columns = useMemo16(() => [
|
3861
|
+
{
|
3862
|
+
header: "Ph\xE2n h\u1EC7",
|
3863
|
+
accessorFn: (row) => {
|
3864
|
+
return enum_emailConfigModule[row.emailModule];
|
3865
|
+
}
|
3866
|
+
},
|
3867
|
+
{
|
3868
|
+
header: "Host mail server",
|
3869
|
+
accessorKey: "hostMailServer"
|
3870
|
+
},
|
3871
|
+
{
|
3872
|
+
header: "Outgoing port",
|
3873
|
+
accessorKey: "outgoingPort"
|
3874
|
+
},
|
3875
|
+
{
|
3876
|
+
header: "Incoming port",
|
3877
|
+
accessorKey: "incomingPort"
|
3878
|
+
},
|
3879
|
+
{
|
3880
|
+
header: "SSL",
|
3881
|
+
accessorFn: (row) => {
|
3882
|
+
var _a;
|
3883
|
+
return (_a = row.sll) == null ? void 0 : _a.toString();
|
3884
|
+
}
|
3885
|
+
},
|
3886
|
+
{
|
3887
|
+
header: "Username",
|
3888
|
+
accessorKey: "userName"
|
3889
|
+
},
|
3890
|
+
{
|
3891
|
+
header: "Password",
|
3892
|
+
accessorFn: () => "*******"
|
3893
|
+
}
|
3894
|
+
], []);
|
3895
|
+
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
3896
|
+
return /* @__PURE__ */ jsx72(
|
3897
|
+
MyDataTable,
|
3898
|
+
{
|
3899
|
+
columns,
|
3900
|
+
data: query.data,
|
3901
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx72(F_mailConfig_Form, { emailModule }),
|
3902
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs48(MyCenterFull, { children: [
|
3903
|
+
/* @__PURE__ */ jsx72(F_mailConfig_Form, { values: row.original, emailModule }),
|
3904
|
+
/* @__PURE__ */ jsx72(F_mailConfig_Delete, { values: row.original })
|
3905
|
+
] })
|
3906
|
+
}
|
3907
|
+
);
|
3908
|
+
}
|
3909
|
+
|
3910
|
+
// src/modules-features/admin/core/mailConfig/F_mailConfig.tsx
|
3911
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
3912
|
+
function F_mailConfig() {
|
3913
|
+
return /* @__PURE__ */ jsx73(F_mailConfig_Read, { emailModule: utils_converter_enumToSelectOptions(enum_emailConfigModule) });
|
3914
|
+
}
|
3915
|
+
|
3729
3916
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3730
3917
|
import { useEffect as useEffect8 } from "react";
|
3731
3918
|
|
3732
3919
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3733
3920
|
import { Center, Grid as Grid4, Image, Paper as Paper7 } from "@mantine/core";
|
3734
|
-
import { useForm as
|
3921
|
+
import { useForm as useForm24 } from "@mantine/form";
|
3735
3922
|
import { useEffect as useEffect7 } from "react";
|
3736
3923
|
|
3737
3924
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
@@ -3747,7 +3934,7 @@ function useS_moduleConfig() {
|
|
3747
3934
|
}
|
3748
3935
|
|
3749
3936
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Save.tsx
|
3750
|
-
import { jsx as
|
3937
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
3751
3938
|
function F_moduleConfig_Save({
|
3752
3939
|
form
|
3753
3940
|
}) {
|
@@ -3781,8 +3968,8 @@ function F_moduleConfig_Save({
|
|
3781
3968
|
}
|
3782
3969
|
});
|
3783
3970
|
}
|
3784
|
-
return /* @__PURE__ */
|
3785
|
-
|
3971
|
+
return /* @__PURE__ */ jsx74(
|
3972
|
+
MyButton,
|
3786
3973
|
{
|
3787
3974
|
disabled: !form.isDirty(),
|
3788
3975
|
crudType: "save",
|
@@ -3792,11 +3979,11 @@ function F_moduleConfig_Save({
|
|
3792
3979
|
}
|
3793
3980
|
|
3794
3981
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig_Form.tsx
|
3795
|
-
import { jsx as
|
3982
|
+
import { jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
|
3796
3983
|
function F_moduleConfig_Form() {
|
3797
3984
|
var _a, _b, _c, _d;
|
3798
3985
|
const query = useQ_AQ_GetAQModule();
|
3799
|
-
const form =
|
3986
|
+
const form = useForm24({
|
3800
3987
|
mode: "uncontrolled",
|
3801
3988
|
validate: {
|
3802
3989
|
faviconFileDetail: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3824,14 +4011,14 @@ function F_moduleConfig_Form() {
|
|
3824
4011
|
form.setInitialValues(values);
|
3825
4012
|
form.setValues(values);
|
3826
4013
|
}, [query.data]);
|
3827
|
-
return /* @__PURE__ */
|
3828
|
-
/* @__PURE__ */
|
3829
|
-
/* @__PURE__ */
|
3830
|
-
/* @__PURE__ */
|
3831
|
-
/* @__PURE__ */
|
3832
|
-
/* @__PURE__ */
|
3833
|
-
/* @__PURE__ */
|
3834
|
-
/* @__PURE__ */
|
4014
|
+
return /* @__PURE__ */ jsxs49(Paper7, { p: "md", children: [
|
4015
|
+
/* @__PURE__ */ jsxs49(Grid4, { children: [
|
4016
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: 5, children: /* @__PURE__ */ jsx75(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
4017
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx75(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
4018
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: 12, children: /* @__PURE__ */ jsx75(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
4019
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
4020
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
4021
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(
|
3835
4022
|
MyDateInput,
|
3836
4023
|
{
|
3837
4024
|
value: form.getValues().registrationDate,
|
@@ -3840,7 +4027,7 @@ function F_moduleConfig_Form() {
|
|
3840
4027
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
3841
4028
|
}
|
3842
4029
|
) }),
|
3843
|
-
/* @__PURE__ */
|
4030
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx75(
|
3844
4031
|
MyDateInput,
|
3845
4032
|
{
|
3846
4033
|
value: form.getValues().limiteDate,
|
@@ -3849,8 +4036,8 @@ function F_moduleConfig_Form() {
|
|
3849
4036
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
3850
4037
|
}
|
3851
4038
|
) }),
|
3852
|
-
/* @__PURE__ */
|
3853
|
-
/* @__PURE__ */
|
4039
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs49(MyFlexColumn, { children: [
|
4040
|
+
/* @__PURE__ */ jsx75(
|
3854
4041
|
MyFileInput,
|
3855
4042
|
{
|
3856
4043
|
accept: "image/png,image/jpeg",
|
@@ -3862,7 +4049,7 @@ function F_moduleConfig_Form() {
|
|
3862
4049
|
}
|
3863
4050
|
}
|
3864
4051
|
),
|
3865
|
-
/* @__PURE__ */
|
4052
|
+
/* @__PURE__ */ jsx75(Paper7, { w: "100%", children: /* @__PURE__ */ jsx75(Center, { children: /* @__PURE__ */ jsx75(
|
3866
4053
|
Image,
|
3867
4054
|
{
|
3868
4055
|
fit: "contain",
|
@@ -3875,8 +4062,8 @@ function F_moduleConfig_Form() {
|
|
3875
4062
|
}
|
3876
4063
|
) }) })
|
3877
4064
|
] }) }),
|
3878
|
-
/* @__PURE__ */
|
3879
|
-
/* @__PURE__ */
|
4065
|
+
/* @__PURE__ */ jsx75(Grid4.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsxs49(MyFlexColumn, { children: [
|
4066
|
+
/* @__PURE__ */ jsx75(
|
3880
4067
|
MyFileInput,
|
3881
4068
|
{
|
3882
4069
|
accept: "image/png,image/jpeg",
|
@@ -3888,7 +4075,7 @@ function F_moduleConfig_Form() {
|
|
3888
4075
|
}
|
3889
4076
|
}
|
3890
4077
|
),
|
3891
|
-
/* @__PURE__ */
|
4078
|
+
/* @__PURE__ */ jsx75(Paper7, { children: /* @__PURE__ */ jsx75(Center, { children: /* @__PURE__ */ jsx75(
|
3892
4079
|
Image,
|
3893
4080
|
{
|
3894
4081
|
fit: "contain",
|
@@ -3902,30 +4089,30 @@ function F_moduleConfig_Form() {
|
|
3902
4089
|
) }) })
|
3903
4090
|
] }) })
|
3904
4091
|
] }),
|
3905
|
-
/* @__PURE__ */
|
4092
|
+
/* @__PURE__ */ jsx75(MyFlexEnd, { children: /* @__PURE__ */ jsx75(F_moduleConfig_Save, { form }) })
|
3906
4093
|
] });
|
3907
4094
|
}
|
3908
4095
|
|
3909
4096
|
// src/modules-features/admin/core/moduleConfig/F_moduleConfig.tsx
|
3910
|
-
import { jsx as
|
4097
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
3911
4098
|
function F_moduleConfig({ AQModuleId }) {
|
3912
4099
|
const store = useS_moduleConfig();
|
3913
4100
|
useEffect8(() => {
|
3914
4101
|
store.setProperty("AQModuleId", AQModuleId);
|
3915
4102
|
}, []);
|
3916
|
-
return /* @__PURE__ */
|
4103
|
+
return /* @__PURE__ */ jsx76(F_moduleConfig_Form, {});
|
3917
4104
|
}
|
3918
4105
|
|
3919
4106
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
3920
4107
|
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
3921
4108
|
|
3922
4109
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Create.tsx
|
3923
|
-
import { useForm as
|
3924
|
-
import { jsx as
|
4110
|
+
import { useForm as useForm25 } from "@mantine/form";
|
4111
|
+
import { jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
|
3925
4112
|
function F_organizationPolicyDocs_Create({
|
3926
4113
|
RegulationsTypeId
|
3927
4114
|
}) {
|
3928
|
-
const form =
|
4115
|
+
const form = useForm25({
|
3929
4116
|
mode: "uncontrolled",
|
3930
4117
|
validate: {
|
3931
4118
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -3935,7 +4122,7 @@ function F_organizationPolicyDocs_Create({
|
|
3935
4122
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
3936
4123
|
}
|
3937
4124
|
});
|
3938
|
-
return /* @__PURE__ */
|
4125
|
+
return /* @__PURE__ */ jsxs50(
|
3939
4126
|
MyButtonCreate,
|
3940
4127
|
{
|
3941
4128
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -3947,28 +4134,28 @@ function F_organizationPolicyDocs_Create({
|
|
3947
4134
|
}));
|
3948
4135
|
},
|
3949
4136
|
children: [
|
3950
|
-
/* @__PURE__ */
|
3951
|
-
|
4137
|
+
/* @__PURE__ */ jsx77(
|
4138
|
+
MyTextInput,
|
3952
4139
|
__spreadValues({
|
3953
4140
|
withAsterisk: true,
|
3954
4141
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
3955
4142
|
}, form.getInputProps("decisionCode"))
|
3956
4143
|
),
|
3957
|
-
/* @__PURE__ */
|
4144
|
+
/* @__PURE__ */ jsx77(
|
3958
4145
|
MyDateInput,
|
3959
4146
|
__spreadValues({
|
3960
4147
|
withAsterisk: true,
|
3961
4148
|
label: "Ng\xE0y ban h\xE0nh"
|
3962
4149
|
}, form.getInputProps("promulgateDate"))
|
3963
4150
|
),
|
3964
|
-
/* @__PURE__ */
|
3965
|
-
|
4151
|
+
/* @__PURE__ */ jsx77(
|
4152
|
+
MyTextInput,
|
3966
4153
|
__spreadValues({
|
3967
4154
|
withAsterisk: true,
|
3968
4155
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
3969
4156
|
}, form.getInputProps("name"))
|
3970
4157
|
),
|
3971
|
-
/* @__PURE__ */
|
4158
|
+
/* @__PURE__ */ jsx77(
|
3972
4159
|
F_core18256_Select,
|
3973
4160
|
__spreadValues({
|
3974
4161
|
withAsterisk: true,
|
@@ -3976,14 +4163,14 @@ function F_organizationPolicyDocs_Create({
|
|
3976
4163
|
documentTypeId: RegulationsTypeId
|
3977
4164
|
}, form.getInputProps("documentAttributeId"))
|
3978
4165
|
),
|
3979
|
-
/* @__PURE__ */
|
4166
|
+
/* @__PURE__ */ jsx77(
|
3980
4167
|
MyFileInput,
|
3981
4168
|
__spreadValues({
|
3982
4169
|
withAsterisk: true,
|
3983
4170
|
label: "V\u0103n b\u1EA3n"
|
3984
4171
|
}, form.getInputProps("file"))
|
3985
4172
|
),
|
3986
|
-
/* @__PURE__ */
|
4173
|
+
/* @__PURE__ */ jsx77(
|
3987
4174
|
MyNumberInput,
|
3988
4175
|
__spreadValues({
|
3989
4176
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -3996,17 +4183,17 @@ function F_organizationPolicyDocs_Create({
|
|
3996
4183
|
|
3997
4184
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
3998
4185
|
import { Accordion as Accordion5, Alert as Alert5, Blockquote as Blockquote5, Skeleton as Skeleton5 } from "@mantine/core";
|
3999
|
-
import { useQuery as
|
4186
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
4000
4187
|
import { IconBug as IconBug5 } from "@tabler/icons-react";
|
4001
|
-
import { useMemo as
|
4188
|
+
import { useMemo as useMemo17 } from "react";
|
4002
4189
|
|
4003
4190
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Delete.tsx
|
4004
|
-
import { jsx as
|
4191
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
4005
4192
|
function F_organizationPolicyDocs_Delete({
|
4006
4193
|
id,
|
4007
4194
|
contextData
|
4008
4195
|
}) {
|
4009
|
-
return /* @__PURE__ */
|
4196
|
+
return /* @__PURE__ */ jsx78(
|
4010
4197
|
MyActionIconDelete,
|
4011
4198
|
{
|
4012
4199
|
contextData,
|
@@ -4016,14 +4203,14 @@ function F_organizationPolicyDocs_Delete({
|
|
4016
4203
|
}
|
4017
4204
|
|
4018
4205
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Update.tsx
|
4019
|
-
import { useForm as
|
4020
|
-
import { jsx as
|
4206
|
+
import { useForm as useForm26 } from "@mantine/form";
|
4207
|
+
import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
|
4021
4208
|
function F_organizationPolicyDocs_Update({
|
4022
4209
|
values,
|
4023
4210
|
RegulationsTypeId
|
4024
4211
|
}) {
|
4025
4212
|
var _a;
|
4026
|
-
const form =
|
4213
|
+
const form = useForm26({
|
4027
4214
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4028
4215
|
file: new File(
|
4029
4216
|
[],
|
@@ -4039,7 +4226,7 @@ function F_organizationPolicyDocs_Update({
|
|
4039
4226
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4040
4227
|
}
|
4041
4228
|
});
|
4042
|
-
return /* @__PURE__ */
|
4229
|
+
return /* @__PURE__ */ jsxs51(
|
4043
4230
|
MyActionIconUpdate,
|
4044
4231
|
{
|
4045
4232
|
form,
|
@@ -4049,28 +4236,28 @@ function F_organizationPolicyDocs_Update({
|
|
4049
4236
|
}));
|
4050
4237
|
},
|
4051
4238
|
children: [
|
4052
|
-
/* @__PURE__ */
|
4053
|
-
|
4239
|
+
/* @__PURE__ */ jsx79(
|
4240
|
+
MyTextInput,
|
4054
4241
|
__spreadValues({
|
4055
4242
|
withAsterisk: true,
|
4056
4243
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4057
4244
|
}, form.getInputProps("decisionCode"))
|
4058
4245
|
),
|
4059
|
-
/* @__PURE__ */
|
4246
|
+
/* @__PURE__ */ jsx79(
|
4060
4247
|
MyDateInput,
|
4061
4248
|
__spreadValues({
|
4062
4249
|
withAsterisk: true,
|
4063
4250
|
label: "Ng\xE0y ban h\xE0nh"
|
4064
4251
|
}, form.getInputProps("promulgateDate"))
|
4065
4252
|
),
|
4066
|
-
/* @__PURE__ */
|
4067
|
-
|
4253
|
+
/* @__PURE__ */ jsx79(
|
4254
|
+
MyTextInput,
|
4068
4255
|
__spreadValues({
|
4069
4256
|
withAsterisk: true,
|
4070
4257
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4071
4258
|
}, form.getInputProps("name"))
|
4072
4259
|
),
|
4073
|
-
/* @__PURE__ */
|
4260
|
+
/* @__PURE__ */ jsx79(
|
4074
4261
|
F_core18256_Select,
|
4075
4262
|
__spreadValues({
|
4076
4263
|
withAsterisk: true,
|
@@ -4078,14 +4265,14 @@ function F_organizationPolicyDocs_Update({
|
|
4078
4265
|
documentTypeId: RegulationsTypeId
|
4079
4266
|
}, form.getInputProps("documentAttributeId"))
|
4080
4267
|
),
|
4081
|
-
/* @__PURE__ */
|
4268
|
+
/* @__PURE__ */ jsx79(
|
4082
4269
|
MyFileInput,
|
4083
4270
|
__spreadValues({
|
4084
4271
|
withAsterisk: true,
|
4085
4272
|
label: "V\u0103n b\u1EA3n"
|
4086
4273
|
}, form.getInputProps("file"))
|
4087
4274
|
),
|
4088
|
-
/* @__PURE__ */
|
4275
|
+
/* @__PURE__ */ jsx79(
|
4089
4276
|
MyNumberInput,
|
4090
4277
|
__spreadValues({
|
4091
4278
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -4097,12 +4284,12 @@ function F_organizationPolicyDocs_Update({
|
|
4097
4284
|
}
|
4098
4285
|
|
4099
4286
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs_Read.tsx
|
4100
|
-
import { jsx as
|
4287
|
+
import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
|
4101
4288
|
function F_organizationPolicyDocs_Read({
|
4102
4289
|
RegulationsTypeId
|
4103
4290
|
}) {
|
4104
4291
|
var _a, _b, _c;
|
4105
|
-
const documentAttributeQuery =
|
4292
|
+
const documentAttributeQuery = useQuery18({
|
4106
4293
|
queryKey: ["F_organizationPolicyDocs_Read", RegulationsTypeId],
|
4107
4294
|
queryFn: async () => {
|
4108
4295
|
var _a2;
|
@@ -4113,10 +4300,10 @@ function F_organizationPolicyDocs_Read({
|
|
4113
4300
|
}
|
4114
4301
|
});
|
4115
4302
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
4116
|
-
return /* @__PURE__ */
|
4303
|
+
return /* @__PURE__ */ jsx80(Blockquote5, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
4117
4304
|
if (documentAttributeQuery.isError)
|
4118
|
-
return /* @__PURE__ */
|
4119
|
-
return /* @__PURE__ */
|
4305
|
+
return /* @__PURE__ */ jsx80(Alert5, { icon: /* @__PURE__ */ jsx80(IconBug5, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
4306
|
+
return /* @__PURE__ */ jsx80(Skeleton5, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx80(MyFlexColumn, { children: /* @__PURE__ */ jsx80(
|
4120
4307
|
Accordion5,
|
4121
4308
|
{
|
4122
4309
|
variant: "contained",
|
@@ -4127,7 +4314,7 @@ function F_organizationPolicyDocs_Read({
|
|
4127
4314
|
}
|
4128
4315
|
),
|
4129
4316
|
multiple: true,
|
4130
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
4317
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx80(
|
4131
4318
|
SubRead5,
|
4132
4319
|
{
|
4133
4320
|
name: item.name,
|
@@ -4144,7 +4331,7 @@ function SubRead5({
|
|
4144
4331
|
documentType,
|
4145
4332
|
RegulationsTypeId
|
4146
4333
|
}) {
|
4147
|
-
const documentQuery =
|
4334
|
+
const documentQuery = useQuery18({
|
4148
4335
|
queryKey: ["SubRead" + documentType],
|
4149
4336
|
queryFn: async () => {
|
4150
4337
|
const result = await baseAxios_default.get(
|
@@ -4153,7 +4340,7 @@ function SubRead5({
|
|
4153
4340
|
return result.data.data;
|
4154
4341
|
}
|
4155
4342
|
});
|
4156
|
-
const columns =
|
4343
|
+
const columns = useMemo17(
|
4157
4344
|
() => [
|
4158
4345
|
{
|
4159
4346
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4170,30 +4357,30 @@ function SubRead5({
|
|
4170
4357
|
{
|
4171
4358
|
header: "File",
|
4172
4359
|
accessorFn: (row) => {
|
4173
|
-
return /* @__PURE__ */
|
4360
|
+
return /* @__PURE__ */ jsx80(MyCenterFull, { children: /* @__PURE__ */ jsx80(MyButtonViewPDF, { id: row.id }) });
|
4174
4361
|
}
|
4175
4362
|
}
|
4176
4363
|
],
|
4177
4364
|
[]
|
4178
4365
|
);
|
4179
|
-
return /* @__PURE__ */
|
4180
|
-
/* @__PURE__ */
|
4181
|
-
/* @__PURE__ */
|
4366
|
+
return /* @__PURE__ */ jsxs52(Accordion5.Item, { value: documentType.toString(), children: [
|
4367
|
+
/* @__PURE__ */ jsx80(Accordion5.Control, { children: name }),
|
4368
|
+
/* @__PURE__ */ jsx80(Accordion5.Panel, { children: /* @__PURE__ */ jsx80(
|
4182
4369
|
MyDataTable,
|
4183
4370
|
{
|
4184
4371
|
isLoading: documentQuery.isLoading,
|
4185
4372
|
isError: documentQuery.isError,
|
4186
4373
|
columns,
|
4187
4374
|
data: documentQuery.data || [],
|
4188
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4189
|
-
/* @__PURE__ */
|
4375
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs52(MyCenterFull, { children: [
|
4376
|
+
/* @__PURE__ */ jsx80(
|
4190
4377
|
F_organizationPolicyDocs_Update,
|
4191
4378
|
{
|
4192
4379
|
RegulationsTypeId,
|
4193
4380
|
values: row.original
|
4194
4381
|
}
|
4195
4382
|
),
|
4196
|
-
/* @__PURE__ */
|
4383
|
+
/* @__PURE__ */ jsx80(
|
4197
4384
|
F_organizationPolicyDocs_Delete,
|
4198
4385
|
{
|
4199
4386
|
id: row.original.id,
|
@@ -4207,12 +4394,12 @@ function SubRead5({
|
|
4207
4394
|
}
|
4208
4395
|
|
4209
4396
|
// src/modules-features/admin/core/organizationPolicyDocs/F_organizationPolicyDocs.tsx
|
4210
|
-
import { jsx as
|
4397
|
+
import { jsx as jsx81, jsxs as jsxs53 } from "react/jsx-runtime";
|
4211
4398
|
function F_organizationPolicyDocs({ RegulationsTypeId }) {
|
4212
|
-
return /* @__PURE__ */
|
4213
|
-
/* @__PURE__ */
|
4214
|
-
/* @__PURE__ */
|
4215
|
-
/* @__PURE__ */
|
4399
|
+
return /* @__PURE__ */ jsxs53(Paper8, { p: "md", children: [
|
4400
|
+
/* @__PURE__ */ jsx81(MyFlexEnd, { children: /* @__PURE__ */ jsx81(F_organizationPolicyDocs_Create, { RegulationsTypeId }) }),
|
4401
|
+
/* @__PURE__ */ jsx81(Space5, {}),
|
4402
|
+
/* @__PURE__ */ jsx81(F_organizationPolicyDocs_Read, { RegulationsTypeId })
|
4216
4403
|
] });
|
4217
4404
|
}
|
4218
4405
|
|
@@ -4222,22 +4409,22 @@ var service_pageContent = __spreadValues({}, createBaseApi(CONTROLLER4, baseAxio
|
|
4222
4409
|
|
4223
4410
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4224
4411
|
import { Group as Group4 } from "@mantine/core";
|
4225
|
-
import { useMemo as
|
4412
|
+
import { useMemo as useMemo18 } from "react";
|
4226
4413
|
|
4227
4414
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_DeleteDescription.tsx
|
4228
|
-
import { jsx as
|
4415
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
4229
4416
|
function F_pageContentConfig_DeleteDescription() {
|
4230
|
-
return /* @__PURE__ */
|
4417
|
+
return /* @__PURE__ */ jsx82(MyButton2, { actionType: "delete" });
|
4231
4418
|
}
|
4232
4419
|
|
4233
4420
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Export.tsx
|
4234
|
-
import { jsx as
|
4421
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
4235
4422
|
function F_pageContentConfig_Export() {
|
4236
|
-
return /* @__PURE__ */
|
4423
|
+
return /* @__PURE__ */ jsx83(MyButton2, { actionType: "export" });
|
4237
4424
|
}
|
4238
4425
|
|
4239
4426
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_Save.tsx
|
4240
|
-
import { jsx as
|
4427
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
4241
4428
|
function F_pageContentConfig_Save({ menuValues }) {
|
4242
4429
|
const updatePageConfigMutation = useMyReactMutation({
|
4243
4430
|
axiosFn: () => {
|
@@ -4245,18 +4432,18 @@ function F_pageContentConfig_Save({ menuValues }) {
|
|
4245
4432
|
return service_pageContent.updateList([{ id: 1 }]);
|
4246
4433
|
}
|
4247
4434
|
});
|
4248
|
-
return /* @__PURE__ */
|
4435
|
+
return /* @__PURE__ */ jsx84(MyButton2, { actionType: "save", onClick: () => updatePageConfigMutation.mutate({}) });
|
4249
4436
|
}
|
4250
4437
|
|
4251
4438
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig_ReadMenu.tsx
|
4252
|
-
import { jsx as
|
4439
|
+
import { jsx as jsx85, jsxs as jsxs54 } from "react/jsx-runtime";
|
4253
4440
|
function F_pageContentConfig_ReadMenu() {
|
4254
4441
|
const pageContentQuery = useMyReactQuery({
|
4255
4442
|
queryKey: ["pageContentQuery"],
|
4256
4443
|
axiosFn: () => service_pageContent.getAll()
|
4257
4444
|
});
|
4258
4445
|
const device = useMyDevice();
|
4259
|
-
const columns =
|
4446
|
+
const columns = useMemo18(() => [
|
4260
4447
|
{
|
4261
4448
|
header: "Dashboard",
|
4262
4449
|
accessorKey: "name"
|
@@ -4266,42 +4453,42 @@ function F_pageContentConfig_ReadMenu() {
|
|
4266
4453
|
accessorKey: "description",
|
4267
4454
|
size: device.isPc ? 400 : 0,
|
4268
4455
|
Cell: () => {
|
4269
|
-
return /* @__PURE__ */
|
4456
|
+
return /* @__PURE__ */ jsx85(MyTextInput2, { placeholder: "Nh\u1EADp m\xF4 t\u1EA3 menu" });
|
4270
4457
|
}
|
4271
4458
|
}
|
4272
4459
|
], []);
|
4273
|
-
return /* @__PURE__ */
|
4460
|
+
return /* @__PURE__ */ jsx85(
|
4274
4461
|
MyDataTable,
|
4275
4462
|
{
|
4276
4463
|
isLoading: pageContentQuery.isLoading,
|
4277
4464
|
isError: pageContentQuery.isError,
|
4278
4465
|
data: pageContentQuery.data || [],
|
4279
4466
|
columns,
|
4280
|
-
renderTopToolbarCustomActions: (row) => /* @__PURE__ */
|
4281
|
-
/* @__PURE__ */
|
4282
|
-
/* @__PURE__ */
|
4283
|
-
/* @__PURE__ */
|
4467
|
+
renderTopToolbarCustomActions: (row) => /* @__PURE__ */ jsxs54(Group4, { children: [
|
4468
|
+
/* @__PURE__ */ jsx85(F_pageContentConfig_Save, { menuValues: [] }),
|
4469
|
+
/* @__PURE__ */ jsx85(F_pageContentConfig_Export, {}),
|
4470
|
+
/* @__PURE__ */ jsx85(F_pageContentConfig_DeleteDescription, {})
|
4284
4471
|
] })
|
4285
4472
|
}
|
4286
4473
|
);
|
4287
4474
|
}
|
4288
4475
|
|
4289
4476
|
// src/modules-features/admin/core/pageContentConfig/F_pageContentConfig.tsx
|
4290
|
-
import { jsx as
|
4477
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
4291
4478
|
function F_pageContentConfig() {
|
4292
|
-
return /* @__PURE__ */
|
4479
|
+
return /* @__PURE__ */ jsx86(F_pageContentConfig_ReadMenu, {});
|
4293
4480
|
}
|
4294
4481
|
|
4295
4482
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4296
4483
|
import { Group as Group5 } from "@mantine/core";
|
4297
|
-
import { useQuery as
|
4298
|
-
import { useMemo as
|
4484
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
4485
|
+
import { useMemo as useMemo19 } from "react";
|
4299
4486
|
|
4300
4487
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Delete.tsx
|
4301
|
-
import { jsx as
|
4488
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
4302
4489
|
var ENDPOINT4 = "/Role/Delete";
|
4303
4490
|
function F_roleCatalog_Delete({ values }) {
|
4304
|
-
return /* @__PURE__ */
|
4491
|
+
return /* @__PURE__ */ jsx87(
|
4305
4492
|
MyActionIconDelete,
|
4306
4493
|
{
|
4307
4494
|
contextData: values.code,
|
@@ -4311,32 +4498,32 @@ function F_roleCatalog_Delete({ values }) {
|
|
4311
4498
|
}
|
4312
4499
|
|
4313
4500
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Form.tsx
|
4314
|
-
import { useForm as
|
4315
|
-
import { jsx as
|
4501
|
+
import { useForm as useForm27 } from "@mantine/form";
|
4502
|
+
import { jsx as jsx88, jsxs as jsxs55 } from "react/jsx-runtime";
|
4316
4503
|
function F_roleCatalog_Form({ values }) {
|
4317
|
-
const form =
|
4504
|
+
const form = useForm27({
|
4318
4505
|
mode: "uncontrolled",
|
4319
4506
|
initialValues: values
|
4320
4507
|
});
|
4321
|
-
if (values) return /* @__PURE__ */
|
4508
|
+
if (values) return /* @__PURE__ */ jsxs55(MyActionIconUpdate, { form, onSubmit: async () => {
|
4322
4509
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
4323
4510
|
}, children: [
|
4324
|
-
/* @__PURE__ */
|
4325
|
-
/* @__PURE__ */
|
4511
|
+
/* @__PURE__ */ jsx88(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
4512
|
+
/* @__PURE__ */ jsx88(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4326
4513
|
] });
|
4327
|
-
return /* @__PURE__ */
|
4514
|
+
return /* @__PURE__ */ jsxs55(MyButtonCreate, { form, onSubmit: async () => {
|
4328
4515
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
4329
4516
|
}, children: [
|
4330
|
-
/* @__PURE__ */
|
4331
|
-
/* @__PURE__ */
|
4517
|
+
/* @__PURE__ */ jsx88(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
4518
|
+
/* @__PURE__ */ jsx88(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
4332
4519
|
] });
|
4333
4520
|
}
|
4334
4521
|
|
4335
4522
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog_Read.tsx
|
4336
|
-
import { jsx as
|
4523
|
+
import { jsx as jsx89, jsxs as jsxs56 } from "react/jsx-runtime";
|
4337
4524
|
function F_roleCatalog_Read() {
|
4338
4525
|
const query = useQ_core47643_GetAdminRole2();
|
4339
|
-
const columns =
|
4526
|
+
const columns = useMemo19(() => [
|
4340
4527
|
{
|
4341
4528
|
header: "M\xE3",
|
4342
4529
|
accessorKey: "code"
|
@@ -4346,23 +4533,23 @@ function F_roleCatalog_Read() {
|
|
4346
4533
|
accessorKey: "name"
|
4347
4534
|
}
|
4348
4535
|
], []);
|
4349
|
-
return /* @__PURE__ */
|
4536
|
+
return /* @__PURE__ */ jsx89(
|
4350
4537
|
MyDataTable,
|
4351
4538
|
{
|
4352
4539
|
isLoading: query.isLoading,
|
4353
4540
|
isError: query.isError,
|
4354
4541
|
data: query.data || [],
|
4355
4542
|
columns,
|
4356
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4357
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
4358
|
-
/* @__PURE__ */
|
4359
|
-
/* @__PURE__ */
|
4543
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx89(Group5, { children: /* @__PURE__ */ jsx89(F_roleCatalog_Form, {}) }),
|
4544
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
|
4545
|
+
/* @__PURE__ */ jsx89(F_roleCatalog_Form, { values: row.original }),
|
4546
|
+
/* @__PURE__ */ jsx89(F_roleCatalog_Delete, { values: row.original })
|
4360
4547
|
] })
|
4361
4548
|
}
|
4362
4549
|
);
|
4363
4550
|
}
|
4364
4551
|
function useQ_core47643_GetAdminRole2() {
|
4365
|
-
const query =
|
4552
|
+
const query = useQuery19({
|
4366
4553
|
queryKey: ["useQ_core47643_GetAdminRole"],
|
4367
4554
|
queryFn: async () => {
|
4368
4555
|
const res = await baseAxios_default.get("/Role/GetAdminRole");
|
@@ -4408,21 +4595,21 @@ var mockData3 = [
|
|
4408
4595
|
];
|
4409
4596
|
|
4410
4597
|
// src/modules-features/admin/core/roleCatalog/F_roleCatalog.tsx
|
4411
|
-
import { jsx as
|
4598
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
4412
4599
|
function F_roleCatalog() {
|
4413
|
-
return /* @__PURE__ */
|
4600
|
+
return /* @__PURE__ */ jsx90(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx90(F_roleCatalog_Read, {}) });
|
4414
4601
|
}
|
4415
4602
|
|
4416
4603
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4417
|
-
import { useQuery as
|
4418
|
-
import { useMemo as
|
4604
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
4605
|
+
import { useMemo as useMemo20 } from "react";
|
4419
4606
|
|
4420
4607
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Create.tsx
|
4421
4608
|
import { FileInput as FileInput7 } from "@mantine/core";
|
4422
|
-
import { useForm as
|
4423
|
-
import { jsx as
|
4609
|
+
import { useForm as useForm28 } from "@mantine/form";
|
4610
|
+
import { jsx as jsx91, jsxs as jsxs57 } from "react/jsx-runtime";
|
4424
4611
|
function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
4425
|
-
const form =
|
4612
|
+
const form = useForm28({
|
4426
4613
|
mode: "uncontrolled",
|
4427
4614
|
validate: {
|
4428
4615
|
decisionCode: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4431,7 +4618,7 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4431
4618
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4432
4619
|
}
|
4433
4620
|
});
|
4434
|
-
return /* @__PURE__ */
|
4621
|
+
return /* @__PURE__ */ jsxs57(
|
4435
4622
|
MyButtonCreate,
|
4436
4623
|
{
|
4437
4624
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4444,28 +4631,28 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4444
4631
|
}));
|
4445
4632
|
},
|
4446
4633
|
children: [
|
4447
|
-
/* @__PURE__ */
|
4448
|
-
|
4634
|
+
/* @__PURE__ */ jsx91(
|
4635
|
+
MyTextInput,
|
4449
4636
|
__spreadValues({
|
4450
4637
|
withAsterisk: true,
|
4451
4638
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4452
4639
|
}, form.getInputProps("decisionCode"))
|
4453
4640
|
),
|
4454
|
-
/* @__PURE__ */
|
4641
|
+
/* @__PURE__ */ jsx91(
|
4455
4642
|
MyDateInput,
|
4456
4643
|
__spreadValues({
|
4457
4644
|
withAsterisk: true,
|
4458
4645
|
label: "Ng\xE0y ban h\xE0nh"
|
4459
4646
|
}, form.getInputProps("promulgateDate"))
|
4460
4647
|
),
|
4461
|
-
/* @__PURE__ */
|
4462
|
-
|
4648
|
+
/* @__PURE__ */ jsx91(
|
4649
|
+
MyTextInput,
|
4463
4650
|
__spreadValues({
|
4464
4651
|
withAsterisk: true,
|
4465
4652
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4466
4653
|
}, form.getInputProps("name"))
|
4467
4654
|
),
|
4468
|
-
/* @__PURE__ */
|
4655
|
+
/* @__PURE__ */ jsx91(
|
4469
4656
|
FileInput7,
|
4470
4657
|
__spreadValues({
|
4471
4658
|
withAsterisk: true,
|
@@ -4479,12 +4666,12 @@ function F_securityPolicyDocs_Create({ SecurityTypeId }) {
|
|
4479
4666
|
}
|
4480
4667
|
|
4481
4668
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Delete.tsx
|
4482
|
-
import { jsx as
|
4669
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
4483
4670
|
function F_securityPolicyDocs_Delete({
|
4484
4671
|
id,
|
4485
4672
|
contextData
|
4486
4673
|
}) {
|
4487
|
-
return /* @__PURE__ */
|
4674
|
+
return /* @__PURE__ */ jsx92(
|
4488
4675
|
MyActionIconDelete,
|
4489
4676
|
{
|
4490
4677
|
contextData,
|
@@ -4495,11 +4682,11 @@ function F_securityPolicyDocs_Delete({
|
|
4495
4682
|
|
4496
4683
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Update.tsx
|
4497
4684
|
import { FileInput as FileInput8, TextInput as TextInput2 } from "@mantine/core";
|
4498
|
-
import { useForm as
|
4499
|
-
import { jsx as
|
4685
|
+
import { useForm as useForm29 } from "@mantine/form";
|
4686
|
+
import { jsx as jsx93, jsxs as jsxs58 } from "react/jsx-runtime";
|
4500
4687
|
function F_securityPolicyDocs_Update({ values }) {
|
4501
4688
|
var _a;
|
4502
|
-
const form =
|
4689
|
+
const form = useForm29({
|
4503
4690
|
mode: "uncontrolled",
|
4504
4691
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4505
4692
|
file: new File(
|
@@ -4515,7 +4702,7 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4515
4702
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4516
4703
|
}
|
4517
4704
|
});
|
4518
|
-
return /* @__PURE__ */
|
4705
|
+
return /* @__PURE__ */ jsxs58(
|
4519
4706
|
MyActionIconUpdate,
|
4520
4707
|
{
|
4521
4708
|
form,
|
@@ -4525,28 +4712,28 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4525
4712
|
}));
|
4526
4713
|
},
|
4527
4714
|
children: [
|
4528
|
-
/* @__PURE__ */
|
4715
|
+
/* @__PURE__ */ jsx93(
|
4529
4716
|
TextInput2,
|
4530
4717
|
__spreadValues({
|
4531
4718
|
withAsterisk: true,
|
4532
4719
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
4533
4720
|
}, form.getInputProps("decisionCode"))
|
4534
4721
|
),
|
4535
|
-
/* @__PURE__ */
|
4722
|
+
/* @__PURE__ */ jsx93(
|
4536
4723
|
MyDateInput,
|
4537
4724
|
__spreadValues({
|
4538
4725
|
withAsterisk: true,
|
4539
4726
|
label: "Ng\xE0y ban h\xE0nh"
|
4540
4727
|
}, form.getInputProps("promulgateDate"))
|
4541
4728
|
),
|
4542
|
-
/* @__PURE__ */
|
4729
|
+
/* @__PURE__ */ jsx93(
|
4543
4730
|
TextInput2,
|
4544
4731
|
__spreadValues({
|
4545
4732
|
withAsterisk: true,
|
4546
4733
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4547
4734
|
}, form.getInputProps("name"))
|
4548
4735
|
),
|
4549
|
-
/* @__PURE__ */
|
4736
|
+
/* @__PURE__ */ jsx93(
|
4550
4737
|
FileInput8,
|
4551
4738
|
__spreadValues({
|
4552
4739
|
withAsterisk: true,
|
@@ -4559,9 +4746,9 @@ function F_securityPolicyDocs_Update({ values }) {
|
|
4559
4746
|
}
|
4560
4747
|
|
4561
4748
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs_Read.tsx
|
4562
|
-
import { jsx as
|
4749
|
+
import { jsx as jsx94, jsxs as jsxs59 } from "react/jsx-runtime";
|
4563
4750
|
function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
4564
|
-
const query =
|
4751
|
+
const query = useQuery20({
|
4565
4752
|
queryKey: ["F_securityPolicyDocs_Read"],
|
4566
4753
|
queryFn: async () => {
|
4567
4754
|
var _a;
|
@@ -4571,7 +4758,7 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4571
4758
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4572
4759
|
}
|
4573
4760
|
});
|
4574
|
-
const columns =
|
4761
|
+
const columns = useMemo20(
|
4575
4762
|
() => [
|
4576
4763
|
{
|
4577
4764
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -4588,25 +4775,25 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4588
4775
|
{
|
4589
4776
|
header: "File",
|
4590
4777
|
accessorFn: (row) => {
|
4591
|
-
return /* @__PURE__ */
|
4778
|
+
return /* @__PURE__ */ jsx94(MyCenterFull, { children: /* @__PURE__ */ jsx94(MyButtonViewPDF, { id: row.id }) });
|
4592
4779
|
}
|
4593
4780
|
}
|
4594
4781
|
],
|
4595
4782
|
[]
|
4596
4783
|
);
|
4597
|
-
return /* @__PURE__ */
|
4784
|
+
return /* @__PURE__ */ jsx94(
|
4598
4785
|
MyDataTable,
|
4599
4786
|
{
|
4600
4787
|
isLoading: query.isLoading,
|
4601
4788
|
isError: query.isError,
|
4602
4789
|
columns,
|
4603
4790
|
data: query.data || [],
|
4604
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
4791
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx94(F_securityPolicyDocs_Create, { SecurityTypeId }),
|
4605
4792
|
renderRowActions: ({ row }) => {
|
4606
4793
|
var _a;
|
4607
|
-
return /* @__PURE__ */
|
4608
|
-
/* @__PURE__ */
|
4609
|
-
/* @__PURE__ */
|
4794
|
+
return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
4795
|
+
/* @__PURE__ */ jsx94(F_securityPolicyDocs_Update, { values: row.original }),
|
4796
|
+
/* @__PURE__ */ jsx94(
|
4610
4797
|
F_securityPolicyDocs_Delete,
|
4611
4798
|
{
|
4612
4799
|
id: row.original.id,
|
@@ -4620,23 +4807,23 @@ function F_securityPolicyDocs_Read({ SecurityTypeId }) {
|
|
4620
4807
|
}
|
4621
4808
|
|
4622
4809
|
// src/modules-features/admin/core/securityPolicyDocs/F_securityPolicyDocs.tsx
|
4623
|
-
import { jsx as
|
4810
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
4624
4811
|
function F_securityPolicyDocs({ SecurityTypeId }) {
|
4625
|
-
return /* @__PURE__ */
|
4812
|
+
return /* @__PURE__ */ jsx95(F_securityPolicyDocs_Read, { SecurityTypeId });
|
4626
4813
|
}
|
4627
4814
|
|
4628
4815
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4629
|
-
import { useQuery as
|
4630
|
-
import { useMemo as
|
4816
|
+
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
4817
|
+
import { useMemo as useMemo21 } from "react";
|
4631
4818
|
|
4632
4819
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Create.tsx
|
4633
4820
|
import { FileInput as FileInput9, Textarea as Textarea3 } from "@mantine/core";
|
4634
|
-
import { useForm as
|
4635
|
-
import { jsx as
|
4821
|
+
import { useForm as useForm30 } from "@mantine/form";
|
4822
|
+
import { jsx as jsx96, jsxs as jsxs60 } from "react/jsx-runtime";
|
4636
4823
|
function F_systemUpdateDocs_Create({
|
4637
4824
|
RefinementTypeId
|
4638
4825
|
}) {
|
4639
|
-
const form =
|
4826
|
+
const form = useForm30({
|
4640
4827
|
mode: "uncontrolled",
|
4641
4828
|
validate: {
|
4642
4829
|
meetingDate: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4647,7 +4834,7 @@ function F_systemUpdateDocs_Create({
|
|
4647
4834
|
endDate: (value, values) => value && values.startDate && new Date(value) > new Date(values.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4648
4835
|
}
|
4649
4836
|
});
|
4650
|
-
return /* @__PURE__ */
|
4837
|
+
return /* @__PURE__ */ jsxs60(
|
4651
4838
|
MyButtonCreate,
|
4652
4839
|
{
|
4653
4840
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4660,43 +4847,43 @@ function F_systemUpdateDocs_Create({
|
|
4660
4847
|
}));
|
4661
4848
|
},
|
4662
4849
|
children: [
|
4663
|
-
/* @__PURE__ */
|
4850
|
+
/* @__PURE__ */ jsx96(
|
4664
4851
|
MyDateInput,
|
4665
4852
|
__spreadValues({
|
4666
4853
|
withAsterisk: true,
|
4667
4854
|
label: "Ng\xE0y h\u1ECDp"
|
4668
4855
|
}, form.getInputProps("meetingDate"))
|
4669
4856
|
),
|
4670
|
-
/* @__PURE__ */
|
4671
|
-
|
4857
|
+
/* @__PURE__ */ jsx96(
|
4858
|
+
MyTextInput,
|
4672
4859
|
__spreadValues({
|
4673
4860
|
withAsterisk: true,
|
4674
4861
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4675
4862
|
}, form.getInputProps("departmentName"))
|
4676
4863
|
),
|
4677
|
-
/* @__PURE__ */
|
4678
|
-
|
4864
|
+
/* @__PURE__ */ jsx96(
|
4865
|
+
MyTextInput,
|
4679
4866
|
__spreadValues({
|
4680
4867
|
withAsterisk: true,
|
4681
4868
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4682
4869
|
}, form.getInputProps("description"))
|
4683
4870
|
),
|
4684
|
-
/* @__PURE__ */
|
4685
|
-
/* @__PURE__ */
|
4871
|
+
/* @__PURE__ */ jsx96(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4872
|
+
/* @__PURE__ */ jsx96(
|
4686
4873
|
MyDateInput,
|
4687
4874
|
__spreadValues({
|
4688
4875
|
withAsterisk: true,
|
4689
4876
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4690
4877
|
}, form.getInputProps("startDate"))
|
4691
4878
|
),
|
4692
|
-
/* @__PURE__ */
|
4879
|
+
/* @__PURE__ */ jsx96(
|
4693
4880
|
MyDateInput,
|
4694
4881
|
__spreadValues({
|
4695
4882
|
withAsterisk: true,
|
4696
4883
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4697
4884
|
}, form.getInputProps("endDate"))
|
4698
4885
|
),
|
4699
|
-
/* @__PURE__ */
|
4886
|
+
/* @__PURE__ */ jsx96(
|
4700
4887
|
FileInput9,
|
4701
4888
|
__spreadValues({
|
4702
4889
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4704,19 +4891,19 @@ function F_systemUpdateDocs_Create({
|
|
4704
4891
|
label: "T\xE0i li\u1EC7u"
|
4705
4892
|
}, form.getInputProps("file"))
|
4706
4893
|
),
|
4707
|
-
/* @__PURE__ */
|
4894
|
+
/* @__PURE__ */ jsx96(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4708
4895
|
]
|
4709
4896
|
}
|
4710
4897
|
);
|
4711
4898
|
}
|
4712
4899
|
|
4713
4900
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Delete.tsx
|
4714
|
-
import { jsx as
|
4901
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
4715
4902
|
function F_systemUpdateDocs_Delete({
|
4716
4903
|
id,
|
4717
4904
|
contextData
|
4718
4905
|
}) {
|
4719
|
-
return /* @__PURE__ */
|
4906
|
+
return /* @__PURE__ */ jsx97(
|
4720
4907
|
MyActionIconDelete,
|
4721
4908
|
{
|
4722
4909
|
contextData,
|
@@ -4727,11 +4914,11 @@ function F_systemUpdateDocs_Delete({
|
|
4727
4914
|
|
4728
4915
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs_Update.tsx
|
4729
4916
|
import { FileInput as FileInput10, Textarea as Textarea4 } from "@mantine/core";
|
4730
|
-
import { useForm as
|
4731
|
-
import { jsx as
|
4917
|
+
import { useForm as useForm31 } from "@mantine/form";
|
4918
|
+
import { jsx as jsx98, jsxs as jsxs61 } from "react/jsx-runtime";
|
4732
4919
|
function F_systemUpdateDocs_Update({ values }) {
|
4733
4920
|
var _a;
|
4734
|
-
const form =
|
4921
|
+
const form = useForm31({
|
4735
4922
|
mode: "uncontrolled",
|
4736
4923
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4737
4924
|
file: new File(
|
@@ -4751,7 +4938,7 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4751
4938
|
endDate: (value, values2) => value && values2.startDate && new Date(value) > new Date(values2.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4752
4939
|
}
|
4753
4940
|
});
|
4754
|
-
return /* @__PURE__ */
|
4941
|
+
return /* @__PURE__ */ jsxs61(
|
4755
4942
|
MyActionIconUpdate,
|
4756
4943
|
{
|
4757
4944
|
form,
|
@@ -4761,43 +4948,43 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4761
4948
|
}));
|
4762
4949
|
},
|
4763
4950
|
children: [
|
4764
|
-
/* @__PURE__ */
|
4951
|
+
/* @__PURE__ */ jsx98(
|
4765
4952
|
MyDateInput,
|
4766
4953
|
__spreadValues({
|
4767
4954
|
withAsterisk: true,
|
4768
4955
|
label: "Ng\xE0y h\u1ECDp"
|
4769
4956
|
}, form.getInputProps("meetingDate"))
|
4770
4957
|
),
|
4771
|
-
/* @__PURE__ */
|
4772
|
-
|
4958
|
+
/* @__PURE__ */ jsx98(
|
4959
|
+
MyTextInput,
|
4773
4960
|
__spreadValues({
|
4774
4961
|
withAsterisk: true,
|
4775
4962
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
4776
4963
|
}, form.getInputProps("departmentName"))
|
4777
4964
|
),
|
4778
|
-
/* @__PURE__ */
|
4779
|
-
|
4965
|
+
/* @__PURE__ */ jsx98(
|
4966
|
+
MyTextInput,
|
4780
4967
|
__spreadValues({
|
4781
4968
|
withAsterisk: true,
|
4782
4969
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
4783
4970
|
}, form.getInputProps("description"))
|
4784
4971
|
),
|
4785
|
-
/* @__PURE__ */
|
4786
|
-
/* @__PURE__ */
|
4972
|
+
/* @__PURE__ */ jsx98(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
4973
|
+
/* @__PURE__ */ jsx98(
|
4787
4974
|
MyDateInput,
|
4788
4975
|
__spreadValues({
|
4789
4976
|
withAsterisk: true,
|
4790
4977
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
4791
4978
|
}, form.getInputProps("startDate"))
|
4792
4979
|
),
|
4793
|
-
/* @__PURE__ */
|
4980
|
+
/* @__PURE__ */ jsx98(
|
4794
4981
|
MyDateInput,
|
4795
4982
|
__spreadValues({
|
4796
4983
|
withAsterisk: true,
|
4797
4984
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
4798
4985
|
}, form.getInputProps("endDate"))
|
4799
4986
|
),
|
4800
|
-
/* @__PURE__ */
|
4987
|
+
/* @__PURE__ */ jsx98(
|
4801
4988
|
FileInput10,
|
4802
4989
|
__spreadValues({
|
4803
4990
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -4805,16 +4992,16 @@ function F_systemUpdateDocs_Update({ values }) {
|
|
4805
4992
|
label: "T\xE0i li\u1EC7u"
|
4806
4993
|
}, form.getInputProps("file"))
|
4807
4994
|
),
|
4808
|
-
/* @__PURE__ */
|
4995
|
+
/* @__PURE__ */ jsx98(Textarea4, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
4809
4996
|
]
|
4810
4997
|
}
|
4811
4998
|
);
|
4812
4999
|
}
|
4813
5000
|
|
4814
5001
|
// src/modules-features/admin/core/systemUpdateDocs/F_systemUpdateDocs.tsx
|
4815
|
-
import { jsx as
|
5002
|
+
import { jsx as jsx99, jsxs as jsxs62 } from "react/jsx-runtime";
|
4816
5003
|
function F_systemUpdateDocs({ RefinementTypeId }) {
|
4817
|
-
const query =
|
5004
|
+
const query = useQuery21({
|
4818
5005
|
queryKey: ["F_systemUpdateDocs_Read"],
|
4819
5006
|
queryFn: async () => {
|
4820
5007
|
var _a;
|
@@ -4824,7 +5011,7 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4824
5011
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
4825
5012
|
}
|
4826
5013
|
});
|
4827
|
-
const columns =
|
5014
|
+
const columns = useMemo21(
|
4828
5015
|
() => [
|
4829
5016
|
{
|
4830
5017
|
header: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u",
|
@@ -4845,24 +5032,24 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4845
5032
|
{
|
4846
5033
|
header: "File",
|
4847
5034
|
accessorFn: (row) => {
|
4848
|
-
return /* @__PURE__ */
|
5035
|
+
return /* @__PURE__ */ jsx99(MyCenterFull, { children: /* @__PURE__ */ jsx99(MyButtonViewPDF, { id: row.id }) });
|
4849
5036
|
}
|
4850
5037
|
}
|
4851
5038
|
],
|
4852
5039
|
[]
|
4853
5040
|
);
|
4854
|
-
return /* @__PURE__ */
|
5041
|
+
return /* @__PURE__ */ jsx99(
|
4855
5042
|
MyDataTable,
|
4856
5043
|
{
|
4857
5044
|
isLoading: query.isLoading,
|
4858
5045
|
isError: query.isError,
|
4859
5046
|
columns,
|
4860
5047
|
data: query.data || [],
|
4861
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
5048
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx99(F_systemUpdateDocs_Create, { RefinementTypeId }),
|
4862
5049
|
renderRowActions: ({ row }) => {
|
4863
|
-
return /* @__PURE__ */
|
4864
|
-
/* @__PURE__ */
|
4865
|
-
/* @__PURE__ */
|
5050
|
+
return /* @__PURE__ */ jsxs62(MyCenterFull, { children: [
|
5051
|
+
/* @__PURE__ */ jsx99(F_systemUpdateDocs_Update, { values: row.original }),
|
5052
|
+
/* @__PURE__ */ jsx99(
|
4866
5053
|
F_systemUpdateDocs_Delete,
|
4867
5054
|
{
|
4868
5055
|
id: row.original.id,
|
@@ -4876,15 +5063,15 @@ function F_systemUpdateDocs({ RefinementTypeId }) {
|
|
4876
5063
|
}
|
4877
5064
|
|
4878
5065
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
4879
|
-
import { useQuery as
|
4880
|
-
import { useMemo as
|
5066
|
+
import { useQuery as useQuery22 } from "@tanstack/react-query";
|
5067
|
+
import { useMemo as useMemo22 } from "react";
|
4881
5068
|
|
4882
5069
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Create.tsx
|
4883
5070
|
import { FileInput as FileInput11 } from "@mantine/core";
|
4884
|
-
import { useForm as
|
4885
|
-
import { jsx as
|
5071
|
+
import { useForm as useForm32 } from "@mantine/form";
|
5072
|
+
import { jsx as jsx100, jsxs as jsxs63 } from "react/jsx-runtime";
|
4886
5073
|
function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
4887
|
-
const form =
|
5074
|
+
const form = useForm32({
|
4888
5075
|
mode: "uncontrolled",
|
4889
5076
|
validate: {
|
4890
5077
|
code: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -4892,7 +5079,7 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4892
5079
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4893
5080
|
}
|
4894
5081
|
});
|
4895
|
-
return /* @__PURE__ */
|
5082
|
+
return /* @__PURE__ */ jsxs63(
|
4896
5083
|
MyButtonCreate,
|
4897
5084
|
{
|
4898
5085
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -4905,21 +5092,21 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4905
5092
|
}));
|
4906
5093
|
},
|
4907
5094
|
children: [
|
4908
|
-
/* @__PURE__ */
|
4909
|
-
|
5095
|
+
/* @__PURE__ */ jsx100(
|
5096
|
+
MyTextInput,
|
4910
5097
|
__spreadValues({
|
4911
5098
|
withAsterisk: true,
|
4912
5099
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4913
5100
|
}, form.getInputProps("code"))
|
4914
5101
|
),
|
4915
|
-
/* @__PURE__ */
|
4916
|
-
|
5102
|
+
/* @__PURE__ */ jsx100(
|
5103
|
+
MyTextInput,
|
4917
5104
|
__spreadValues({
|
4918
5105
|
withAsterisk: true,
|
4919
5106
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4920
5107
|
}, form.getInputProps("name"))
|
4921
5108
|
),
|
4922
|
-
/* @__PURE__ */
|
5109
|
+
/* @__PURE__ */ jsx100(
|
4923
5110
|
FileInput11,
|
4924
5111
|
__spreadValues({
|
4925
5112
|
withAsterisk: true,
|
@@ -4933,12 +5120,12 @@ function F_userGuideDocs_Create({ GuidelineTypeId }) {
|
|
4933
5120
|
}
|
4934
5121
|
|
4935
5122
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Delete.tsx
|
4936
|
-
import { jsx as
|
5123
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
4937
5124
|
function F_userGuideDocs_Delete({
|
4938
5125
|
id,
|
4939
5126
|
contextData
|
4940
5127
|
}) {
|
4941
|
-
return /* @__PURE__ */
|
5128
|
+
return /* @__PURE__ */ jsx101(
|
4942
5129
|
MyActionIconDelete,
|
4943
5130
|
{
|
4944
5131
|
contextData,
|
@@ -4949,11 +5136,11 @@ function F_userGuideDocs_Delete({
|
|
4949
5136
|
|
4950
5137
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Update.tsx
|
4951
5138
|
import { FileInput as FileInput12 } from "@mantine/core";
|
4952
|
-
import { useForm as
|
4953
|
-
import { jsx as
|
5139
|
+
import { useForm as useForm33 } from "@mantine/form";
|
5140
|
+
import { jsx as jsx102, jsxs as jsxs64 } from "react/jsx-runtime";
|
4954
5141
|
function F_userGuideDocs_Update({ values }) {
|
4955
5142
|
var _a;
|
4956
|
-
const form =
|
5143
|
+
const form = useForm33({
|
4957
5144
|
mode: "uncontrolled",
|
4958
5145
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
4959
5146
|
file: new File(
|
@@ -4967,7 +5154,7 @@ function F_userGuideDocs_Update({ values }) {
|
|
4967
5154
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
4968
5155
|
}
|
4969
5156
|
});
|
4970
|
-
return /* @__PURE__ */
|
5157
|
+
return /* @__PURE__ */ jsxs64(
|
4971
5158
|
MyActionIconUpdate,
|
4972
5159
|
{
|
4973
5160
|
form,
|
@@ -4977,21 +5164,21 @@ function F_userGuideDocs_Update({ values }) {
|
|
4977
5164
|
}));
|
4978
5165
|
},
|
4979
5166
|
children: [
|
4980
|
-
/* @__PURE__ */
|
4981
|
-
|
5167
|
+
/* @__PURE__ */ jsx102(
|
5168
|
+
MyTextInput,
|
4982
5169
|
__spreadValues({
|
4983
5170
|
withAsterisk: true,
|
4984
5171
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
4985
5172
|
}, form.getInputProps("code"))
|
4986
5173
|
),
|
4987
|
-
/* @__PURE__ */
|
4988
|
-
|
5174
|
+
/* @__PURE__ */ jsx102(
|
5175
|
+
MyTextInput,
|
4989
5176
|
__spreadValues({
|
4990
5177
|
withAsterisk: true,
|
4991
5178
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
4992
5179
|
}, form.getInputProps("name"))
|
4993
5180
|
),
|
4994
|
-
/* @__PURE__ */
|
5181
|
+
/* @__PURE__ */ jsx102(
|
4995
5182
|
FileInput12,
|
4996
5183
|
__spreadValues({
|
4997
5184
|
withAsterisk: true,
|
@@ -5005,9 +5192,9 @@ function F_userGuideDocs_Update({ values }) {
|
|
5005
5192
|
}
|
5006
5193
|
|
5007
5194
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs_Read.tsx
|
5008
|
-
import { jsx as
|
5195
|
+
import { jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
|
5009
5196
|
function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
5010
|
-
const query =
|
5197
|
+
const query = useQuery22({
|
5011
5198
|
queryKey: ["F_userGuideDocs_Read"],
|
5012
5199
|
queryFn: async () => {
|
5013
5200
|
var _a;
|
@@ -5017,7 +5204,7 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5017
5204
|
return ((_a = result.data) == null ? void 0 : _a.data) || [];
|
5018
5205
|
}
|
5019
5206
|
});
|
5020
|
-
const columns =
|
5207
|
+
const columns = useMemo22(
|
5021
5208
|
() => [
|
5022
5209
|
{
|
5023
5210
|
header: "M\xE3 t\xE0i li\u1EC7u",
|
@@ -5030,24 +5217,24 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5030
5217
|
{
|
5031
5218
|
header: "File",
|
5032
5219
|
accessorFn: (row) => {
|
5033
|
-
return /* @__PURE__ */
|
5220
|
+
return /* @__PURE__ */ jsx103(MyCenterFull, { children: /* @__PURE__ */ jsx103(MyButtonViewPDF, { id: row.id }) });
|
5034
5221
|
}
|
5035
5222
|
}
|
5036
5223
|
],
|
5037
5224
|
[]
|
5038
5225
|
);
|
5039
|
-
return /* @__PURE__ */
|
5226
|
+
return /* @__PURE__ */ jsx103(
|
5040
5227
|
MyDataTable,
|
5041
5228
|
{
|
5042
5229
|
isLoading: query.isLoading,
|
5043
5230
|
isError: query.isError,
|
5044
5231
|
columns,
|
5045
5232
|
data: query.data || [],
|
5046
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
5233
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx103(F_userGuideDocs_Create, { GuidelineTypeId }),
|
5047
5234
|
renderRowActions: ({ row }) => {
|
5048
|
-
return /* @__PURE__ */
|
5049
|
-
/* @__PURE__ */
|
5050
|
-
/* @__PURE__ */
|
5235
|
+
return /* @__PURE__ */ jsxs65(MyCenterFull, { children: [
|
5236
|
+
/* @__PURE__ */ jsx103(F_userGuideDocs_Update, { values: row.original }),
|
5237
|
+
/* @__PURE__ */ jsx103(
|
5051
5238
|
F_userGuideDocs_Delete,
|
5052
5239
|
{
|
5053
5240
|
id: row.original.id,
|
@@ -5061,21 +5248,21 @@ function F_userGuideDocs_Read({ GuidelineTypeId }) {
|
|
5061
5248
|
}
|
5062
5249
|
|
5063
5250
|
// src/modules-features/admin/core/userGuideDocs/F_userGuideDocs.tsx
|
5064
|
-
import { jsx as
|
5251
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
5065
5252
|
function F_userGuideDocs({ GuidelineTypeId }) {
|
5066
|
-
return /* @__PURE__ */
|
5253
|
+
return /* @__PURE__ */ jsx104(F_userGuideDocs_Read, { GuidelineTypeId });
|
5067
5254
|
}
|
5068
5255
|
|
5069
5256
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5070
5257
|
import { Paper as Paper9, Space as Space6 } from "@mantine/core";
|
5071
5258
|
|
5072
5259
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Create.tsx
|
5073
|
-
import { useForm as
|
5074
|
-
import { jsx as
|
5260
|
+
import { useForm as useForm34 } from "@mantine/form";
|
5261
|
+
import { jsx as jsx105, jsxs as jsxs66 } from "react/jsx-runtime";
|
5075
5262
|
function F_workflowProcessDocs_Create({
|
5076
5263
|
WorkflowTypeId
|
5077
5264
|
}) {
|
5078
|
-
const form =
|
5265
|
+
const form = useForm34({
|
5079
5266
|
mode: "uncontrolled",
|
5080
5267
|
validate: {
|
5081
5268
|
decisionCode: (value) => value ? null : "S\u1ED1 quy \u0111\u1ECBnh kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
@@ -5085,7 +5272,7 @@ function F_workflowProcessDocs_Create({
|
|
5085
5272
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5086
5273
|
}
|
5087
5274
|
});
|
5088
|
-
return /* @__PURE__ */
|
5275
|
+
return /* @__PURE__ */ jsxs66(
|
5089
5276
|
MyButtonCreate,
|
5090
5277
|
{
|
5091
5278
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -5097,28 +5284,28 @@ function F_workflowProcessDocs_Create({
|
|
5097
5284
|
}));
|
5098
5285
|
},
|
5099
5286
|
children: [
|
5100
|
-
/* @__PURE__ */
|
5101
|
-
|
5287
|
+
/* @__PURE__ */ jsx105(
|
5288
|
+
MyTextInput,
|
5102
5289
|
__spreadValues({
|
5103
5290
|
withAsterisk: true,
|
5104
5291
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5105
5292
|
}, form.getInputProps("decisionCode"))
|
5106
5293
|
),
|
5107
|
-
/* @__PURE__ */
|
5294
|
+
/* @__PURE__ */ jsx105(
|
5108
5295
|
MyDateInput,
|
5109
5296
|
__spreadValues({
|
5110
5297
|
withAsterisk: true,
|
5111
5298
|
label: "Ng\xE0y ban h\xE0nh"
|
5112
5299
|
}, form.getInputProps("promulgateDate"))
|
5113
5300
|
),
|
5114
|
-
/* @__PURE__ */
|
5115
|
-
|
5301
|
+
/* @__PURE__ */ jsx105(
|
5302
|
+
MyTextInput,
|
5116
5303
|
__spreadValues({
|
5117
5304
|
withAsterisk: true,
|
5118
5305
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5119
5306
|
}, form.getInputProps("name"))
|
5120
5307
|
),
|
5121
|
-
/* @__PURE__ */
|
5308
|
+
/* @__PURE__ */ jsx105(
|
5122
5309
|
F_core18256_Select,
|
5123
5310
|
__spreadValues({
|
5124
5311
|
withAsterisk: true,
|
@@ -5126,14 +5313,14 @@ function F_workflowProcessDocs_Create({
|
|
5126
5313
|
documentTypeId: WorkflowTypeId
|
5127
5314
|
}, form.getInputProps("documentAttributeId"))
|
5128
5315
|
),
|
5129
|
-
/* @__PURE__ */
|
5316
|
+
/* @__PURE__ */ jsx105(
|
5130
5317
|
MyFileInput,
|
5131
5318
|
__spreadValues({
|
5132
5319
|
withAsterisk: true,
|
5133
5320
|
label: "V\u0103n b\u1EA3n"
|
5134
5321
|
}, form.getInputProps("file"))
|
5135
5322
|
),
|
5136
|
-
/* @__PURE__ */
|
5323
|
+
/* @__PURE__ */ jsx105(
|
5137
5324
|
MyNumberInput,
|
5138
5325
|
__spreadValues({
|
5139
5326
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5146,17 +5333,17 @@ function F_workflowProcessDocs_Create({
|
|
5146
5333
|
|
5147
5334
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5148
5335
|
import { Accordion as Accordion6, Alert as Alert6, Blockquote as Blockquote6, Skeleton as Skeleton6 } from "@mantine/core";
|
5149
|
-
import { useQuery as
|
5336
|
+
import { useQuery as useQuery23 } from "@tanstack/react-query";
|
5150
5337
|
import { IconBug as IconBug6 } from "@tabler/icons-react";
|
5151
|
-
import { useMemo as
|
5338
|
+
import { useMemo as useMemo23 } from "react";
|
5152
5339
|
|
5153
5340
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Delete.tsx
|
5154
|
-
import { jsx as
|
5341
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
5155
5342
|
function F_workflowProcessDocs_Delete({
|
5156
5343
|
id,
|
5157
5344
|
contextData
|
5158
5345
|
}) {
|
5159
|
-
return /* @__PURE__ */
|
5346
|
+
return /* @__PURE__ */ jsx106(
|
5160
5347
|
MyActionIconDelete,
|
5161
5348
|
{
|
5162
5349
|
contextData,
|
@@ -5166,14 +5353,14 @@ function F_workflowProcessDocs_Delete({
|
|
5166
5353
|
}
|
5167
5354
|
|
5168
5355
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Update.tsx
|
5169
|
-
import { useForm as
|
5170
|
-
import { jsx as
|
5356
|
+
import { useForm as useForm35 } from "@mantine/form";
|
5357
|
+
import { jsx as jsx107, jsxs as jsxs67 } from "react/jsx-runtime";
|
5171
5358
|
function F_workflowProcessDocs_Update({
|
5172
5359
|
values,
|
5173
5360
|
WorkflowTypeId
|
5174
5361
|
}) {
|
5175
5362
|
var _a;
|
5176
|
-
const form =
|
5363
|
+
const form = useForm35({
|
5177
5364
|
initialValues: __spreadProps(__spreadValues({}, values), {
|
5178
5365
|
file: new File(
|
5179
5366
|
[],
|
@@ -5189,7 +5376,7 @@ function F_workflowProcessDocs_Update({
|
|
5189
5376
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
5190
5377
|
}
|
5191
5378
|
});
|
5192
|
-
return /* @__PURE__ */
|
5379
|
+
return /* @__PURE__ */ jsxs67(
|
5193
5380
|
MyActionIconUpdate,
|
5194
5381
|
{
|
5195
5382
|
form,
|
@@ -5199,28 +5386,28 @@ function F_workflowProcessDocs_Update({
|
|
5199
5386
|
}));
|
5200
5387
|
},
|
5201
5388
|
children: [
|
5202
|
-
/* @__PURE__ */
|
5203
|
-
|
5389
|
+
/* @__PURE__ */ jsx107(
|
5390
|
+
MyTextInput,
|
5204
5391
|
__spreadValues({
|
5205
5392
|
withAsterisk: true,
|
5206
5393
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
5207
5394
|
}, form.getInputProps("decisionCode"))
|
5208
5395
|
),
|
5209
|
-
/* @__PURE__ */
|
5396
|
+
/* @__PURE__ */ jsx107(
|
5210
5397
|
MyDateInput,
|
5211
5398
|
__spreadValues({
|
5212
5399
|
withAsterisk: true,
|
5213
5400
|
label: "Ng\xE0y ban h\xE0nh"
|
5214
5401
|
}, form.getInputProps("promulgateDate"))
|
5215
5402
|
),
|
5216
|
-
/* @__PURE__ */
|
5217
|
-
|
5403
|
+
/* @__PURE__ */ jsx107(
|
5404
|
+
MyTextInput,
|
5218
5405
|
__spreadValues({
|
5219
5406
|
withAsterisk: true,
|
5220
5407
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
5221
5408
|
}, form.getInputProps("name"))
|
5222
5409
|
),
|
5223
|
-
/* @__PURE__ */
|
5410
|
+
/* @__PURE__ */ jsx107(
|
5224
5411
|
F_core18256_Select,
|
5225
5412
|
__spreadValues({
|
5226
5413
|
withAsterisk: true,
|
@@ -5228,14 +5415,14 @@ function F_workflowProcessDocs_Update({
|
|
5228
5415
|
documentTypeId: WorkflowTypeId
|
5229
5416
|
}, form.getInputProps("documentAttributeId"))
|
5230
5417
|
),
|
5231
|
-
/* @__PURE__ */
|
5418
|
+
/* @__PURE__ */ jsx107(
|
5232
5419
|
MyFileInput,
|
5233
5420
|
__spreadValues({
|
5234
5421
|
withAsterisk: true,
|
5235
5422
|
label: "V\u0103n b\u1EA3n"
|
5236
5423
|
}, form.getInputProps("file"))
|
5237
5424
|
),
|
5238
|
-
/* @__PURE__ */
|
5425
|
+
/* @__PURE__ */ jsx107(
|
5239
5426
|
MyNumberInput,
|
5240
5427
|
__spreadValues({
|
5241
5428
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -5247,12 +5434,12 @@ function F_workflowProcessDocs_Update({
|
|
5247
5434
|
}
|
5248
5435
|
|
5249
5436
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs_Read.tsx
|
5250
|
-
import { jsx as
|
5437
|
+
import { jsx as jsx108, jsxs as jsxs68 } from "react/jsx-runtime";
|
5251
5438
|
function F_workflowProcessDocs_Read({
|
5252
5439
|
WorkflowTypeId
|
5253
5440
|
}) {
|
5254
5441
|
var _a, _b, _c;
|
5255
|
-
const documentAttributeQuery =
|
5442
|
+
const documentAttributeQuery = useQuery23({
|
5256
5443
|
queryKey: ["F_workflowProcessDocs_Read", WorkflowTypeId],
|
5257
5444
|
queryFn: async () => {
|
5258
5445
|
var _a2;
|
@@ -5263,10 +5450,10 @@ function F_workflowProcessDocs_Read({
|
|
5263
5450
|
}
|
5264
5451
|
});
|
5265
5452
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
5266
|
-
return /* @__PURE__ */
|
5453
|
+
return /* @__PURE__ */ jsx108(Blockquote6, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
5267
5454
|
if (documentAttributeQuery.isError)
|
5268
|
-
return /* @__PURE__ */
|
5269
|
-
return /* @__PURE__ */
|
5455
|
+
return /* @__PURE__ */ jsx108(Alert6, { icon: /* @__PURE__ */ jsx108(IconBug6, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" });
|
5456
|
+
return /* @__PURE__ */ jsx108(Skeleton6, { h: 500, visible: documentAttributeQuery.isLoading, children: /* @__PURE__ */ jsx108(MyFlexColumn, { children: /* @__PURE__ */ jsx108(
|
5270
5457
|
Accordion6,
|
5271
5458
|
{
|
5272
5459
|
variant: "contained",
|
@@ -5277,7 +5464,7 @@ function F_workflowProcessDocs_Read({
|
|
5277
5464
|
}
|
5278
5465
|
),
|
5279
5466
|
multiple: true,
|
5280
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
5467
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx108(
|
5281
5468
|
SubRead6,
|
5282
5469
|
{
|
5283
5470
|
name: item.name,
|
@@ -5294,7 +5481,7 @@ function SubRead6({
|
|
5294
5481
|
documentType,
|
5295
5482
|
WorkflowTypeId
|
5296
5483
|
}) {
|
5297
|
-
const documentQuery =
|
5484
|
+
const documentQuery = useQuery23({
|
5298
5485
|
queryKey: ["SubRead" + documentType],
|
5299
5486
|
queryFn: async () => {
|
5300
5487
|
const result = await baseAxios_default.get(
|
@@ -5303,7 +5490,7 @@ function SubRead6({
|
|
5303
5490
|
return result.data.data;
|
5304
5491
|
}
|
5305
5492
|
});
|
5306
|
-
const columns =
|
5493
|
+
const columns = useMemo23(
|
5307
5494
|
() => [
|
5308
5495
|
{
|
5309
5496
|
header: "S\u1ED1 quy \u0111\u1ECBnh",
|
@@ -5320,30 +5507,30 @@ function SubRead6({
|
|
5320
5507
|
{
|
5321
5508
|
header: "File",
|
5322
5509
|
accessorFn: (row) => {
|
5323
|
-
return /* @__PURE__ */
|
5510
|
+
return /* @__PURE__ */ jsx108(MyCenterFull, { children: /* @__PURE__ */ jsx108(MyButtonViewPDF, { id: row.id }) });
|
5324
5511
|
}
|
5325
5512
|
}
|
5326
5513
|
],
|
5327
5514
|
[]
|
5328
5515
|
);
|
5329
|
-
return /* @__PURE__ */
|
5330
|
-
/* @__PURE__ */
|
5331
|
-
/* @__PURE__ */
|
5516
|
+
return /* @__PURE__ */ jsxs68(Accordion6.Item, { value: documentType.toString(), children: [
|
5517
|
+
/* @__PURE__ */ jsx108(Accordion6.Control, { children: name }),
|
5518
|
+
/* @__PURE__ */ jsx108(Accordion6.Panel, { children: /* @__PURE__ */ jsx108(
|
5332
5519
|
MyDataTable,
|
5333
5520
|
{
|
5334
5521
|
isLoading: documentQuery.isLoading,
|
5335
5522
|
isError: documentQuery.isError,
|
5336
5523
|
columns,
|
5337
5524
|
data: documentQuery.data || [],
|
5338
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
5339
|
-
/* @__PURE__ */
|
5525
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs68(MyCenterFull, { children: [
|
5526
|
+
/* @__PURE__ */ jsx108(
|
5340
5527
|
F_workflowProcessDocs_Update,
|
5341
5528
|
{
|
5342
5529
|
WorkflowTypeId,
|
5343
5530
|
values: row.original
|
5344
5531
|
}
|
5345
5532
|
),
|
5346
|
-
/* @__PURE__ */
|
5533
|
+
/* @__PURE__ */ jsx108(
|
5347
5534
|
F_workflowProcessDocs_Delete,
|
5348
5535
|
{
|
5349
5536
|
id: row.original.id,
|
@@ -5357,21 +5544,21 @@ function SubRead6({
|
|
5357
5544
|
}
|
5358
5545
|
|
5359
5546
|
// src/modules-features/admin/core/workflowProcessDocs/F_workflowProcessDocs.tsx
|
5360
|
-
import { jsx as
|
5547
|
+
import { jsx as jsx109, jsxs as jsxs69 } from "react/jsx-runtime";
|
5361
5548
|
function F_workflowProcessDocs({
|
5362
5549
|
WorkflowTypeId
|
5363
5550
|
}) {
|
5364
|
-
return /* @__PURE__ */
|
5365
|
-
/* @__PURE__ */
|
5366
|
-
/* @__PURE__ */
|
5367
|
-
/* @__PURE__ */
|
5551
|
+
return /* @__PURE__ */ jsxs69(Paper9, { p: "md", children: [
|
5552
|
+
/* @__PURE__ */ jsx109(MyFlexEnd, { children: /* @__PURE__ */ jsx109(F_workflowProcessDocs_Create, { WorkflowTypeId }) }),
|
5553
|
+
/* @__PURE__ */ jsx109(Space6, {}),
|
5554
|
+
/* @__PURE__ */ jsx109(F_workflowProcessDocs_Read, { WorkflowTypeId })
|
5368
5555
|
] });
|
5369
5556
|
}
|
5370
5557
|
|
5371
5558
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
5372
5559
|
import { useRouter } from "next/navigation";
|
5373
5560
|
import { useEffect as useEffect9 } from "react";
|
5374
|
-
import { jsx as
|
5561
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
5375
5562
|
function F_authenticate_SplashPage() {
|
5376
5563
|
const router = useRouter();
|
5377
5564
|
const S_Authenticate = useS_authenticate();
|
@@ -5382,7 +5569,7 @@ function F_authenticate_SplashPage() {
|
|
5382
5569
|
}
|
5383
5570
|
router.push("/admin/core71678");
|
5384
5571
|
}, [S_Authenticate.state.token]);
|
5385
|
-
return /* @__PURE__ */
|
5572
|
+
return /* @__PURE__ */ jsx110(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
5386
5573
|
}
|
5387
5574
|
|
5388
5575
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
@@ -5395,12 +5582,12 @@ import {
|
|
5395
5582
|
Flex as Flex3,
|
5396
5583
|
Group as Group6,
|
5397
5584
|
Paper as Paper10,
|
5398
|
-
PasswordInput as
|
5585
|
+
PasswordInput as PasswordInput3,
|
5399
5586
|
Text as Text3,
|
5400
5587
|
TextInput as TextInput3,
|
5401
5588
|
Title
|
5402
5589
|
} from "@mantine/core";
|
5403
|
-
import { useForm as
|
5590
|
+
import { useForm as useForm36 } from "@mantine/form";
|
5404
5591
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
5405
5592
|
import axios from "axios";
|
5406
5593
|
import Link from "next/link";
|
@@ -5411,7 +5598,7 @@ import { useEffect as useEffect10, useState as useState8 } from "react";
|
|
5411
5598
|
var css_default = {};
|
5412
5599
|
|
5413
5600
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
5414
|
-
import { jsx as
|
5601
|
+
import { jsx as jsx111, jsxs as jsxs70 } from "react/jsx-runtime";
|
5415
5602
|
function F_authenticate_Login({
|
5416
5603
|
header,
|
5417
5604
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -5427,7 +5614,7 @@ function F_authenticate_Login({
|
|
5427
5614
|
const authenticate_store = useS_authenticate();
|
5428
5615
|
const loadingState = useState8(false);
|
5429
5616
|
const mutation = useM_Account_Sigin();
|
5430
|
-
const form =
|
5617
|
+
const form = useForm36({
|
5431
5618
|
initialValues: {
|
5432
5619
|
username: "",
|
5433
5620
|
password: ""
|
@@ -5483,21 +5670,21 @@ function F_authenticate_Login({
|
|
5483
5670
|
}
|
5484
5671
|
});
|
5485
5672
|
}
|
5486
|
-
return /* @__PURE__ */
|
5673
|
+
return /* @__PURE__ */ jsx111(
|
5487
5674
|
BackgroundImage,
|
5488
5675
|
{
|
5489
5676
|
src: backgroundImage,
|
5490
5677
|
h: "100vh",
|
5491
|
-
children: /* @__PURE__ */
|
5492
|
-
header ? header : /* @__PURE__ */
|
5493
|
-
/* @__PURE__ */
|
5494
|
-
/* @__PURE__ */
|
5678
|
+
children: /* @__PURE__ */ jsx111(Center2, { h: "100vh", children: /* @__PURE__ */ jsxs70(Paper10, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
5679
|
+
header ? header : /* @__PURE__ */ jsxs70(Flex3, { direction: "column", mb: "md", children: [
|
5680
|
+
/* @__PURE__ */ jsx111(Title, { ta: "center", className: css_default.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
5681
|
+
/* @__PURE__ */ jsxs70(Text3, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
5495
5682
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
5496
|
-
/* @__PURE__ */
|
5683
|
+
/* @__PURE__ */ jsx111(Anchor, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
5497
5684
|
] })
|
5498
5685
|
] }),
|
5499
|
-
/* @__PURE__ */
|
5500
|
-
/* @__PURE__ */
|
5686
|
+
/* @__PURE__ */ jsx111("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs70(MyFlexColumn, { children: [
|
5687
|
+
/* @__PURE__ */ jsx111(
|
5501
5688
|
TextInput3,
|
5502
5689
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
5503
5690
|
label: "T\xE0i kho\u1EA3n",
|
@@ -5505,16 +5692,16 @@ function F_authenticate_Login({
|
|
5505
5692
|
withAsterisk: true
|
5506
5693
|
})
|
5507
5694
|
),
|
5508
|
-
/* @__PURE__ */
|
5509
|
-
|
5695
|
+
/* @__PURE__ */ jsx111(
|
5696
|
+
PasswordInput3,
|
5510
5697
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
5511
5698
|
label: "M\u1EADt kh\u1EA9u",
|
5512
5699
|
placeholder: "Nh\u1EADp m\u1EADt kh\u1EA9u c\u1EE7a b\u1EA1n",
|
5513
5700
|
withAsterisk: true
|
5514
5701
|
})
|
5515
5702
|
),
|
5516
|
-
/* @__PURE__ */
|
5517
|
-
showSaveLogin && /* @__PURE__ */
|
5703
|
+
/* @__PURE__ */ jsxs70(Group6, { justify: "space-between", children: [
|
5704
|
+
showSaveLogin && /* @__PURE__ */ jsx111(
|
5518
5705
|
Checkbox3,
|
5519
5706
|
{
|
5520
5707
|
checked: authenticate_store.state.saveLogin,
|
@@ -5522,9 +5709,9 @@ function F_authenticate_Login({
|
|
5522
5709
|
label: "L\u01B0u \u0111\u0103ng nh\u1EADp"
|
5523
5710
|
}
|
5524
5711
|
),
|
5525
|
-
showForgotPassword && /* @__PURE__ */
|
5712
|
+
showForgotPassword && /* @__PURE__ */ jsx111(Anchor, { component: Link, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
5526
5713
|
] }),
|
5527
|
-
showLoginButton && /* @__PURE__ */
|
5714
|
+
showLoginButton && /* @__PURE__ */ jsx111(
|
5528
5715
|
Button3,
|
5529
5716
|
{
|
5530
5717
|
loading: loadingState[0],
|
@@ -5620,6 +5807,10 @@ export {
|
|
5620
5807
|
F_formTemplateDocs_Delete,
|
5621
5808
|
F_formTemplateDocs_Read,
|
5622
5809
|
F_formTemplateDocs_Update,
|
5810
|
+
F_mailConfig,
|
5811
|
+
F_mailConfig_Delete,
|
5812
|
+
F_mailConfig_Form,
|
5813
|
+
F_mailConfig_Read,
|
5623
5814
|
F_moduleConfig,
|
5624
5815
|
F_organizationPolicyDocs,
|
5625
5816
|
F_organizationPolicyDocs_Create,
|