aq-fe-framework 0.1.134 → 0.1.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-QN4YXDKT.mjs → chunk-DDG53CYP.mjs} +762 -670
- package/dist/{chunk-7EHNYA4A.mjs → chunk-KI5V7QJP.mjs} +0 -2
- package/dist/components/index.d.mts +11 -1
- package/dist/components/index.mjs +4 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.mjs +2 -2
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
baseAxios_default,
|
3
3
|
useQ_AQ_GetAQModule
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-KI5V7QJP.mjs";
|
5
5
|
import {
|
6
6
|
createGenericStore
|
7
7
|
} from "./chunk-Y3YGC5IH.mjs";
|
@@ -6703,43 +6703,134 @@ function MyIconText({ icon: Icon, text }) {
|
|
6703
6703
|
] });
|
6704
6704
|
}
|
6705
6705
|
|
6706
|
-
// src/components/DataDisplay/
|
6707
|
-
import { Group as Group10, Text as Text9 } from "@mantine/core";
|
6706
|
+
// src/components/DataDisplay/InformationCard/MyInformationCard.tsx
|
6707
|
+
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group10, Paper as Paper6, Text as Text9 } from "@mantine/core";
|
6708
|
+
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
6708
6709
|
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
6710
|
+
function MyInformationCard({
|
6711
|
+
title: title3,
|
6712
|
+
value,
|
6713
|
+
unit = "",
|
6714
|
+
description,
|
6715
|
+
icons,
|
6716
|
+
diff
|
6717
|
+
}) {
|
6718
|
+
return /* @__PURE__ */ jsxs26(
|
6719
|
+
Paper6,
|
6720
|
+
{
|
6721
|
+
withBorder: true,
|
6722
|
+
p: "md",
|
6723
|
+
radius: "md",
|
6724
|
+
children: [
|
6725
|
+
/* @__PURE__ */ jsxs26(Group10, { justify: "space-between", children: [
|
6726
|
+
/* @__PURE__ */ jsxs26(Flex3, { direction: "column", children: [
|
6727
|
+
/* @__PURE__ */ jsx47(
|
6728
|
+
Text9,
|
6729
|
+
{
|
6730
|
+
tt: "uppercase",
|
6731
|
+
size: "lg",
|
6732
|
+
c: "dimmed",
|
6733
|
+
children: title3
|
6734
|
+
}
|
6735
|
+
),
|
6736
|
+
unit == "" ? /* @__PURE__ */ jsxs26(Text9, { size: "xs", style: { visibility: "hidden" }, children: [
|
6737
|
+
"\u0110\u01A1n v\u1ECB: ",
|
6738
|
+
/* @__PURE__ */ jsx47("strong", { children: unit })
|
6739
|
+
] }) : /* @__PURE__ */ jsxs26(Text9, { size: "xs", children: [
|
6740
|
+
"\u0110\u01A1n v\u1ECB: ",
|
6741
|
+
/* @__PURE__ */ jsx47("strong", { children: unit })
|
6742
|
+
] })
|
6743
|
+
] }),
|
6744
|
+
/* @__PURE__ */ jsx47(Box2, { children: icons })
|
6745
|
+
] }),
|
6746
|
+
/* @__PURE__ */ jsxs26(
|
6747
|
+
Group10,
|
6748
|
+
{
|
6749
|
+
mt: "5",
|
6750
|
+
align: "flex-end",
|
6751
|
+
gap: "xs",
|
6752
|
+
children: [
|
6753
|
+
/* @__PURE__ */ jsx47(
|
6754
|
+
Text9,
|
6755
|
+
{
|
6756
|
+
fw: 700,
|
6757
|
+
fz: "h1",
|
6758
|
+
children: value
|
6759
|
+
}
|
6760
|
+
),
|
6761
|
+
/* @__PURE__ */ jsxs26(
|
6762
|
+
Text9,
|
6763
|
+
{
|
6764
|
+
mb: "2",
|
6765
|
+
c: diff > 0 ? "teal" : "red",
|
6766
|
+
fz: "h2",
|
6767
|
+
fw: 500,
|
6768
|
+
children: [
|
6769
|
+
/* @__PURE__ */ jsxs26("span", { children: [
|
6770
|
+
diff,
|
6771
|
+
"%"
|
6772
|
+
] }),
|
6773
|
+
diff > 0 ? /* @__PURE__ */ jsx47(IconArrowUpRight, {}) : /* @__PURE__ */ jsx47(IconArrowDownRight, {})
|
6774
|
+
]
|
6775
|
+
}
|
6776
|
+
)
|
6777
|
+
]
|
6778
|
+
}
|
6779
|
+
),
|
6780
|
+
/* @__PURE__ */ jsxs26(Group10, { justify: "space-between", children: [
|
6781
|
+
/* @__PURE__ */ jsx47(Text9, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6782
|
+
/* @__PURE__ */ jsx47(
|
6783
|
+
Button13,
|
6784
|
+
{
|
6785
|
+
variant: "light",
|
6786
|
+
size: "xs",
|
6787
|
+
children: "Xem chi ti\u1EBFt"
|
6788
|
+
}
|
6789
|
+
)
|
6790
|
+
] })
|
6791
|
+
]
|
6792
|
+
},
|
6793
|
+
title3
|
6794
|
+
);
|
6795
|
+
}
|
6796
|
+
|
6797
|
+
// src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
|
6798
|
+
import { Group as Group11, Text as Text10 } from "@mantine/core";
|
6799
|
+
import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
6709
6800
|
function MyKeyLabel({ keyLabel, label }) {
|
6710
|
-
return /* @__PURE__ */
|
6711
|
-
/* @__PURE__ */
|
6801
|
+
return /* @__PURE__ */ jsxs27(Group11, { gap: 5, children: [
|
6802
|
+
/* @__PURE__ */ jsxs27(Text10, { fw: "bold", children: [
|
6712
6803
|
keyLabel,
|
6713
6804
|
":"
|
6714
6805
|
] }),
|
6715
|
-
/* @__PURE__ */
|
6806
|
+
/* @__PURE__ */ jsx48(Text10, { children: label })
|
6716
6807
|
] });
|
6717
6808
|
}
|
6718
6809
|
|
6719
6810
|
// src/components/DataDisplay/NumberFormatter/MyNumberFormatter.tsx
|
6720
6811
|
import { NumberFormatter } from "@mantine/core";
|
6721
|
-
import { jsx as
|
6812
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
6722
6813
|
function MyNumberFormatter(_a) {
|
6723
6814
|
var rest = __objRest(_a, []);
|
6724
|
-
return /* @__PURE__ */
|
6815
|
+
return /* @__PURE__ */ jsx49(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
6725
6816
|
}
|
6726
6817
|
|
6727
6818
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
6728
|
-
import { Box as
|
6729
|
-
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
6730
|
-
import { Fragment as Fragment11, jsx as
|
6819
|
+
import { Box as Box3, Button as Button14, Flex as Flex4, Group as Group12, Paper as Paper7, Text as Text11 } from "@mantine/core";
|
6820
|
+
import { IconArrowDownRight as IconArrowDownRight2, IconArrowUpRight as IconArrowUpRight2 } from "@tabler/icons-react";
|
6821
|
+
import { Fragment as Fragment11, jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
6731
6822
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
6732
|
-
return /* @__PURE__ */
|
6733
|
-
|
6823
|
+
return /* @__PURE__ */ jsx50(Fragment11, { children: /* @__PURE__ */ jsxs28(
|
6824
|
+
Paper7,
|
6734
6825
|
{
|
6735
6826
|
withBorder: true,
|
6736
6827
|
p: "md",
|
6737
6828
|
radius: "md",
|
6738
6829
|
children: [
|
6739
|
-
/* @__PURE__ */
|
6740
|
-
/* @__PURE__ */
|
6741
|
-
/* @__PURE__ */
|
6742
|
-
|
6830
|
+
/* @__PURE__ */ jsxs28(Group12, { justify: "space-between", children: [
|
6831
|
+
/* @__PURE__ */ jsxs28(Flex4, { direction: "column", children: [
|
6832
|
+
/* @__PURE__ */ jsx50(
|
6833
|
+
Text11,
|
6743
6834
|
{
|
6744
6835
|
tt: "uppercase",
|
6745
6836
|
size: "lg",
|
@@ -6747,54 +6838,54 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
6747
6838
|
children: title3
|
6748
6839
|
}
|
6749
6840
|
),
|
6750
|
-
unit == "" ? /* @__PURE__ */
|
6841
|
+
unit == "" ? /* @__PURE__ */ jsxs28(Text11, { size: "xs", style: { visibility: "hidden" }, children: [
|
6751
6842
|
"\u0110\u01A1n v\u1ECB: ",
|
6752
|
-
/* @__PURE__ */
|
6753
|
-
] }) : /* @__PURE__ */
|
6843
|
+
/* @__PURE__ */ jsx50("strong", { children: unit })
|
6844
|
+
] }) : /* @__PURE__ */ jsxs28(Text11, { size: "xs", children: [
|
6754
6845
|
"\u0110\u01A1n v\u1ECB: ",
|
6755
|
-
/* @__PURE__ */
|
6846
|
+
/* @__PURE__ */ jsx50("strong", { children: unit })
|
6756
6847
|
] })
|
6757
6848
|
] }),
|
6758
|
-
/* @__PURE__ */
|
6849
|
+
/* @__PURE__ */ jsx50(Box3, { children: icons })
|
6759
6850
|
] }),
|
6760
|
-
/* @__PURE__ */
|
6761
|
-
|
6851
|
+
/* @__PURE__ */ jsxs28(
|
6852
|
+
Group12,
|
6762
6853
|
{
|
6763
6854
|
mt: "5",
|
6764
6855
|
align: "flex-end",
|
6765
6856
|
gap: "xs",
|
6766
6857
|
children: [
|
6767
|
-
/* @__PURE__ */
|
6768
|
-
|
6858
|
+
/* @__PURE__ */ jsx50(
|
6859
|
+
Text11,
|
6769
6860
|
{
|
6770
6861
|
fw: 700,
|
6771
6862
|
fz: "h1",
|
6772
6863
|
children: value
|
6773
6864
|
}
|
6774
6865
|
),
|
6775
|
-
/* @__PURE__ */
|
6776
|
-
|
6866
|
+
/* @__PURE__ */ jsxs28(
|
6867
|
+
Text11,
|
6777
6868
|
{
|
6778
6869
|
mb: "2",
|
6779
6870
|
c: diff > 0 ? "teal" : "red",
|
6780
6871
|
fz: "h2",
|
6781
6872
|
fw: 500,
|
6782
6873
|
children: [
|
6783
|
-
/* @__PURE__ */
|
6874
|
+
/* @__PURE__ */ jsxs28("span", { children: [
|
6784
6875
|
diff,
|
6785
6876
|
"%"
|
6786
6877
|
] }),
|
6787
|
-
diff > 0 ? /* @__PURE__ */
|
6878
|
+
diff > 0 ? /* @__PURE__ */ jsx50(IconArrowUpRight2, {}) : /* @__PURE__ */ jsx50(IconArrowDownRight2, {})
|
6788
6879
|
]
|
6789
6880
|
}
|
6790
6881
|
)
|
6791
6882
|
]
|
6792
6883
|
}
|
6793
6884
|
),
|
6794
|
-
/* @__PURE__ */
|
6795
|
-
/* @__PURE__ */
|
6796
|
-
/* @__PURE__ */
|
6797
|
-
|
6885
|
+
/* @__PURE__ */ jsxs28(Group12, { justify: "space-between", children: [
|
6886
|
+
/* @__PURE__ */ jsx50(Text11, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6887
|
+
/* @__PURE__ */ jsx50(
|
6888
|
+
Button14,
|
6798
6889
|
{
|
6799
6890
|
variant: "light",
|
6800
6891
|
size: "xs",
|
@@ -6835,8 +6926,8 @@ function FaviconSetter() {
|
|
6835
6926
|
}
|
6836
6927
|
|
6837
6928
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
6838
|
-
import { Box as
|
6839
|
-
import { jsx as
|
6929
|
+
import { Box as Box4, Fieldset as Fieldset4, Text as Text12 } from "@mantine/core";
|
6930
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
6840
6931
|
function MyFieldset(_a) {
|
6841
6932
|
var _b = _a, {
|
6842
6933
|
children,
|
@@ -6845,17 +6936,17 @@ function MyFieldset(_a) {
|
|
6845
6936
|
"children",
|
6846
6937
|
"title"
|
6847
6938
|
]);
|
6848
|
-
return /* @__PURE__ */
|
6939
|
+
return /* @__PURE__ */ jsx51(
|
6849
6940
|
Fieldset4,
|
6850
6941
|
__spreadProps(__spreadValues({}, rest), {
|
6851
|
-
legend: /* @__PURE__ */
|
6852
|
-
|
6942
|
+
legend: /* @__PURE__ */ jsx51(
|
6943
|
+
Box4,
|
6853
6944
|
{
|
6854
6945
|
bg: "blue.4",
|
6855
6946
|
px: "xs",
|
6856
6947
|
py: 2,
|
6857
6948
|
style: { borderRadius: 4 },
|
6858
|
-
children: /* @__PURE__ */
|
6949
|
+
children: /* @__PURE__ */ jsx51(Text12, { c: "white", fw: 500, children: title3 })
|
6859
6950
|
}
|
6860
6951
|
),
|
6861
6952
|
children
|
@@ -6865,10 +6956,10 @@ function MyFieldset(_a) {
|
|
6865
6956
|
|
6866
6957
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
6867
6958
|
import { Textarea } from "@mantine/core";
|
6868
|
-
import { jsx as
|
6959
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
6869
6960
|
function MyTextArea(_a) {
|
6870
6961
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6871
|
-
return /* @__PURE__ */
|
6962
|
+
return /* @__PURE__ */ jsx52(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6872
6963
|
}
|
6873
6964
|
|
6874
6965
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
@@ -6884,7 +6975,7 @@ import Underline from "@tiptap/extension-underline";
|
|
6884
6975
|
import { useEditor } from "@tiptap/react";
|
6885
6976
|
import StarterKit from "@tiptap/starter-kit";
|
6886
6977
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
6887
|
-
import { jsx as
|
6978
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
6888
6979
|
function MyTextEditor(_a) {
|
6889
6980
|
var _b = _a, {
|
6890
6981
|
autoHiddenToolBar = false,
|
@@ -6986,43 +7077,43 @@ function MyTextEditor(_a) {
|
|
6986
7077
|
editor.commands.setContent(value);
|
6987
7078
|
}
|
6988
7079
|
}, [value, editor]);
|
6989
|
-
return /* @__PURE__ */
|
6990
|
-
/* @__PURE__ */
|
6991
|
-
/* @__PURE__ */
|
6992
|
-
/* @__PURE__ */
|
6993
|
-
/* @__PURE__ */
|
6994
|
-
/* @__PURE__ */
|
6995
|
-
/* @__PURE__ */
|
6996
|
-
/* @__PURE__ */
|
6997
|
-
/* @__PURE__ */
|
6998
|
-
/* @__PURE__ */
|
7080
|
+
return /* @__PURE__ */ jsx53(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs29(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
7081
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
7082
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7083
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Bold, {}),
|
7084
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Italic, {}),
|
7085
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Underline, {}),
|
7086
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Strikethrough, {}),
|
7087
|
+
/* @__PURE__ */ jsx53(RichTextEditor.ClearFormatting, {}),
|
7088
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Highlight, {}),
|
7089
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Code, {})
|
6999
7090
|
] }),
|
7000
|
-
/* @__PURE__ */
|
7001
|
-
/* @__PURE__ */
|
7002
|
-
/* @__PURE__ */
|
7003
|
-
/* @__PURE__ */
|
7004
|
-
/* @__PURE__ */
|
7091
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7092
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H1, {}),
|
7093
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H2, {}),
|
7094
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H3, {}),
|
7095
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H4, {})
|
7005
7096
|
] }),
|
7006
|
-
/* @__PURE__ */
|
7007
|
-
/* @__PURE__ */
|
7008
|
-
/* @__PURE__ */
|
7009
|
-
/* @__PURE__ */
|
7010
|
-
/* @__PURE__ */
|
7011
|
-
/* @__PURE__ */
|
7012
|
-
/* @__PURE__ */
|
7097
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7098
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Blockquote, {}),
|
7099
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Hr, {}),
|
7100
|
+
/* @__PURE__ */ jsx53(RichTextEditor.BulletList, {}),
|
7101
|
+
/* @__PURE__ */ jsx53(RichTextEditor.OrderedList, {}),
|
7102
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Subscript, {}),
|
7103
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Superscript, {})
|
7013
7104
|
] }),
|
7014
|
-
/* @__PURE__ */
|
7015
|
-
/* @__PURE__ */
|
7016
|
-
/* @__PURE__ */
|
7105
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7106
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Link, {}),
|
7107
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Unlink, {})
|
7017
7108
|
] }),
|
7018
|
-
/* @__PURE__ */
|
7019
|
-
/* @__PURE__ */
|
7020
|
-
/* @__PURE__ */
|
7021
|
-
/* @__PURE__ */
|
7022
|
-
/* @__PURE__ */
|
7109
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7110
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignLeft, {}),
|
7111
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignCenter, {}),
|
7112
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignJustify, {}),
|
7113
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignRight, {})
|
7023
7114
|
] })
|
7024
7115
|
] }),
|
7025
|
-
/* @__PURE__ */
|
7116
|
+
/* @__PURE__ */ jsx53(
|
7026
7117
|
ScrollArea2.Autosize,
|
7027
7118
|
{
|
7028
7119
|
onMouseDown: () => {
|
@@ -7037,7 +7128,7 @@ function MyTextEditor(_a) {
|
|
7037
7128
|
setHiddenToolBar(false);
|
7038
7129
|
},
|
7039
7130
|
style: { cursor: "text", maxHeight: "400px" },
|
7040
|
-
children: /* @__PURE__ */
|
7131
|
+
children: /* @__PURE__ */ jsx53(RichTextEditor.Content, { mih: contentHeight })
|
7041
7132
|
}
|
7042
7133
|
)
|
7043
7134
|
] }) });
|
@@ -7049,12 +7140,12 @@ import {
|
|
7049
7140
|
AppShell,
|
7050
7141
|
Badge as Badge2,
|
7051
7142
|
Divider as Divider2,
|
7052
|
-
Group as
|
7143
|
+
Group as Group13,
|
7053
7144
|
Image as Image3,
|
7054
7145
|
NavLink,
|
7055
7146
|
ScrollArea as ScrollArea3,
|
7056
7147
|
Select as Select4,
|
7057
|
-
Text as
|
7148
|
+
Text as Text13,
|
7058
7149
|
TextInput as TextInput2,
|
7059
7150
|
Tooltip as Tooltip5
|
7060
7151
|
} from "@mantine/core";
|
@@ -7068,22 +7159,22 @@ import {
|
|
7068
7159
|
} from "@tabler/icons-react";
|
7069
7160
|
import Link3 from "next/link";
|
7070
7161
|
import { usePathname as usePathname2 } from "next/navigation";
|
7071
|
-
import { Fragment as Fragment12, jsx as
|
7162
|
+
import { Fragment as Fragment12, jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
7072
7163
|
function getRightSection(status) {
|
7073
7164
|
if (status === "Prototype")
|
7074
|
-
return /* @__PURE__ */
|
7165
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
7075
7166
|
if (status === "New")
|
7076
|
-
return /* @__PURE__ */
|
7167
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
7077
7168
|
if (status === "Menu")
|
7078
|
-
return /* @__PURE__ */
|
7169
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
7079
7170
|
if (status === "Change")
|
7080
|
-
return /* @__PURE__ */
|
7171
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
7081
7172
|
return null;
|
7082
7173
|
}
|
7083
7174
|
function RenderNavLinks({ items }) {
|
7084
7175
|
const basicAppShellStore = useS_BasicAppShell();
|
7085
7176
|
const pathName = usePathname2();
|
7086
|
-
return /* @__PURE__ */
|
7177
|
+
return /* @__PURE__ */ jsx54(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx54(
|
7087
7178
|
NavLink,
|
7088
7179
|
{
|
7089
7180
|
active: item.link === pathName.split("/")[2],
|
@@ -7100,7 +7191,7 @@ function RenderNavLinks({ items }) {
|
|
7100
7191
|
basicAppShellStore.setProperty("title", item.label);
|
7101
7192
|
}
|
7102
7193
|
},
|
7103
|
-
children: item.links && /* @__PURE__ */
|
7194
|
+
children: item.links && /* @__PURE__ */ jsx54(RenderNavLinks, { items: item.links })
|
7104
7195
|
},
|
7105
7196
|
index
|
7106
7197
|
)) });
|
@@ -7158,7 +7249,7 @@ function BasicAppShell({ children, menu }) {
|
|
7158
7249
|
const basicAppShellStore = useS_BasicAppShell();
|
7159
7250
|
const media = useMediaQuery("(min-width: 72em)");
|
7160
7251
|
const selectMedia = useMediaQuery("(min-width: 80em)");
|
7161
|
-
return /* @__PURE__ */
|
7252
|
+
return /* @__PURE__ */ jsxs30(
|
7162
7253
|
AppShell,
|
7163
7254
|
{
|
7164
7255
|
header: { height: 60 },
|
@@ -7172,51 +7263,51 @@ function BasicAppShell({ children, menu }) {
|
|
7172
7263
|
},
|
7173
7264
|
padding: "md",
|
7174
7265
|
children: [
|
7175
|
-
/* @__PURE__ */
|
7176
|
-
/* @__PURE__ */
|
7177
|
-
media ? /* @__PURE__ */
|
7178
|
-
/* @__PURE__ */
|
7179
|
-
/* @__PURE__ */
|
7266
|
+
/* @__PURE__ */ jsxs30(AppShell.Header, { children: [
|
7267
|
+
/* @__PURE__ */ jsx54(MyAppSpotlight, { menu }),
|
7268
|
+
media ? /* @__PURE__ */ jsxs30(Group13, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
7269
|
+
/* @__PURE__ */ jsxs30(Group13, { h: "100%", children: [
|
7270
|
+
/* @__PURE__ */ jsx54(
|
7180
7271
|
Tooltip5,
|
7181
7272
|
{
|
7182
7273
|
label: basicAppShellStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu",
|
7183
|
-
children: /* @__PURE__ */
|
7274
|
+
children: /* @__PURE__ */ jsx54(
|
7184
7275
|
ActionIcon10,
|
7185
7276
|
{
|
7186
7277
|
size: "lg",
|
7187
7278
|
radius: "md",
|
7188
7279
|
variant: "default",
|
7189
7280
|
onClick: basicAppShellStore.toggle,
|
7190
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7281
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7191
7282
|
}
|
7192
7283
|
)
|
7193
7284
|
}
|
7194
7285
|
),
|
7195
|
-
/* @__PURE__ */
|
7286
|
+
/* @__PURE__ */ jsx54(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx54(
|
7196
7287
|
ActionIcon10,
|
7197
7288
|
{
|
7198
7289
|
size: "lg",
|
7199
7290
|
radius: "md",
|
7200
7291
|
variant: "default",
|
7201
7292
|
onClick: () => basicAppShellStore.clearGroupMenuOpenId(),
|
7202
|
-
children: /* @__PURE__ */
|
7293
|
+
children: /* @__PURE__ */ jsx54(IconLibraryMinus, {})
|
7203
7294
|
}
|
7204
7295
|
) })
|
7205
7296
|
] }),
|
7206
|
-
/* @__PURE__ */
|
7207
|
-
|
7297
|
+
/* @__PURE__ */ jsx54(
|
7298
|
+
Group13,
|
7208
7299
|
{
|
7209
7300
|
style: {
|
7210
7301
|
position: "absolute",
|
7211
7302
|
left: "50%",
|
7212
7303
|
transform: "translateX(-50%)"
|
7213
7304
|
},
|
7214
|
-
children: /* @__PURE__ */
|
7305
|
+
children: /* @__PURE__ */ jsx54(Text13, { c: "green", fw: "bold", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
|
7215
7306
|
}
|
7216
7307
|
),
|
7217
|
-
/* @__PURE__ */
|
7218
|
-
/* @__PURE__ */
|
7219
|
-
/* @__PURE__ */
|
7308
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7309
|
+
/* @__PURE__ */ jsx54(Text13, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
7310
|
+
/* @__PURE__ */ jsx54(
|
7220
7311
|
Select4,
|
7221
7312
|
{
|
7222
7313
|
w: selectMedia ? 245 : 150,
|
@@ -7228,24 +7319,24 @@ function BasicAppShell({ children, menu }) {
|
|
7228
7319
|
]
|
7229
7320
|
}
|
7230
7321
|
),
|
7231
|
-
/* @__PURE__ */
|
7322
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7232
7323
|
] })
|
7233
7324
|
] }) : (
|
7234
7325
|
// For mobile screens - simplified layout
|
7235
|
-
/* @__PURE__ */
|
7236
|
-
/* @__PURE__ */
|
7326
|
+
/* @__PURE__ */ jsxs30(Group13, { h: "100%", px: "md", justify: "space-between", children: [
|
7327
|
+
/* @__PURE__ */ jsx54(
|
7237
7328
|
ActionIcon10,
|
7238
7329
|
{
|
7239
7330
|
size: "lg",
|
7240
7331
|
radius: "md",
|
7241
7332
|
variant: "default",
|
7242
7333
|
onClick: basicAppShellStore.toggle,
|
7243
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7334
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7244
7335
|
}
|
7245
7336
|
),
|
7246
|
-
/* @__PURE__ */
|
7247
|
-
/* @__PURE__ */
|
7248
|
-
/* @__PURE__ */
|
7337
|
+
/* @__PURE__ */ jsx54(Text13, { c: "green", fw: "bold", size: "sm", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
|
7338
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7339
|
+
/* @__PURE__ */ jsx54(
|
7249
7340
|
Select4,
|
7250
7341
|
{
|
7251
7342
|
w: 100,
|
@@ -7258,13 +7349,13 @@ function BasicAppShell({ children, menu }) {
|
|
7258
7349
|
]
|
7259
7350
|
}
|
7260
7351
|
),
|
7261
|
-
/* @__PURE__ */
|
7352
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7262
7353
|
] })
|
7263
7354
|
] })
|
7264
7355
|
)
|
7265
7356
|
] }),
|
7266
|
-
/* @__PURE__ */
|
7267
|
-
/* @__PURE__ */
|
7357
|
+
/* @__PURE__ */ jsxs30(AppShell.Navbar, { children: [
|
7358
|
+
/* @__PURE__ */ jsx54(
|
7268
7359
|
TextInput2,
|
7269
7360
|
{
|
7270
7361
|
mt: "md",
|
@@ -7272,18 +7363,18 @@ function BasicAppShell({ children, menu }) {
|
|
7272
7363
|
mx: 10,
|
7273
7364
|
component: "button",
|
7274
7365
|
onClick: spotlight2.open,
|
7275
|
-
leftSection: /* @__PURE__ */
|
7366
|
+
leftSection: /* @__PURE__ */ jsx54(IconSearch2, {}),
|
7276
7367
|
children: "T\xECm ki\u1EBFm (Ctrl + K)"
|
7277
7368
|
}
|
7278
7369
|
),
|
7279
|
-
/* @__PURE__ */
|
7280
|
-
/* @__PURE__ */
|
7281
|
-
/* @__PURE__ */
|
7282
|
-
/* @__PURE__ */
|
7370
|
+
/* @__PURE__ */ jsxs30(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
7371
|
+
/* @__PURE__ */ jsx54(RenderNavLinks, { items: menu }),
|
7372
|
+
/* @__PURE__ */ jsx54(Divider2, {}),
|
7373
|
+
/* @__PURE__ */ jsx54(F_Authenticate_Logout, {})
|
7283
7374
|
] }),
|
7284
|
-
/* @__PURE__ */
|
7285
|
-
/* @__PURE__ */
|
7286
|
-
/* @__PURE__ */
|
7375
|
+
/* @__PURE__ */ jsxs30(AppShell.Section, { p: "md", children: [
|
7376
|
+
/* @__PURE__ */ jsx54(Divider2, {}),
|
7377
|
+
/* @__PURE__ */ jsx54(
|
7287
7378
|
Image3,
|
7288
7379
|
{
|
7289
7380
|
fit: "contain",
|
@@ -7297,7 +7388,7 @@ function BasicAppShell({ children, menu }) {
|
|
7297
7388
|
)
|
7298
7389
|
] })
|
7299
7390
|
] }),
|
7300
|
-
/* @__PURE__ */
|
7391
|
+
/* @__PURE__ */ jsx54(
|
7301
7392
|
AppShell.Main,
|
7302
7393
|
{
|
7303
7394
|
bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7351,11 +7442,11 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
7351
7442
|
}
|
7352
7443
|
|
7353
7444
|
// src/components/Layouts/Container/MyContainer.tsx
|
7354
|
-
import { Container, Flex as
|
7355
|
-
import { jsx as
|
7445
|
+
import { Container, Flex as Flex5 } from "@mantine/core";
|
7446
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
7356
7447
|
function MyContainer(_a) {
|
7357
7448
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7358
|
-
return /* @__PURE__ */
|
7449
|
+
return /* @__PURE__ */ jsx55(Container, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx55(Flex5, { direction: "column", children }) }));
|
7359
7450
|
}
|
7360
7451
|
|
7361
7452
|
// src/constants/object/color.ts
|
@@ -7367,16 +7458,16 @@ var OBJECT_COlORS = {
|
|
7367
7458
|
|
7368
7459
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7369
7460
|
import {
|
7370
|
-
Box as
|
7461
|
+
Box as Box5,
|
7371
7462
|
Burger,
|
7372
|
-
Button as
|
7463
|
+
Button as Button15,
|
7373
7464
|
Container as Container2,
|
7374
7465
|
Divider as Divider3,
|
7375
7466
|
Drawer,
|
7376
|
-
Group as
|
7467
|
+
Group as Group14,
|
7377
7468
|
Image as Image4,
|
7378
7469
|
ScrollArea as ScrollArea4,
|
7379
|
-
Text as
|
7470
|
+
Text as Text14,
|
7380
7471
|
TextInput as TextInput3,
|
7381
7472
|
ThemeIcon,
|
7382
7473
|
UnstyledButton,
|
@@ -7408,7 +7499,7 @@ function useHeaderMegaMenuStore() {
|
|
7408
7499
|
}
|
7409
7500
|
|
7410
7501
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7411
|
-
import { jsx as
|
7502
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
7412
7503
|
var mockdata = [
|
7413
7504
|
{
|
7414
7505
|
icon: IconCode,
|
@@ -7446,27 +7537,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7446
7537
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
7447
7538
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
7448
7539
|
const theme = useMantineTheme();
|
7449
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
7450
|
-
/* @__PURE__ */
|
7451
|
-
/* @__PURE__ */
|
7452
|
-
/* @__PURE__ */
|
7453
|
-
/* @__PURE__ */
|
7540
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx56(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs31(Group14, { wrap: "nowrap", align: "flex-start", children: [
|
7541
|
+
/* @__PURE__ */ jsx56(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx56(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
7542
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
7543
|
+
/* @__PURE__ */ jsx56(Text14, { size: "sm", fw: 500, children: item.title }),
|
7544
|
+
/* @__PURE__ */ jsx56(Text14, { size: "xs", c: "dimmed", children: item.description })
|
7454
7545
|
] })
|
7455
7546
|
] }) }, item.title));
|
7456
|
-
return /* @__PURE__ */
|
7457
|
-
/* @__PURE__ */
|
7458
|
-
/* @__PURE__ */
|
7459
|
-
/* @__PURE__ */
|
7460
|
-
/* @__PURE__ */
|
7547
|
+
return /* @__PURE__ */ jsxs31(Box5, { children: [
|
7548
|
+
/* @__PURE__ */ jsx56("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs31(Group14, { justify: "space-between", h: "100%", children: [
|
7549
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7550
|
+
/* @__PURE__ */ jsx56(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
7551
|
+
/* @__PURE__ */ jsx56(Group14, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx56(Button15, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
7461
7552
|
] }),
|
7462
|
-
/* @__PURE__ */
|
7463
|
-
/* @__PURE__ */
|
7464
|
-
/* @__PURE__ */
|
7553
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7554
|
+
/* @__PURE__ */ jsx56(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx56(IconSearch3, {}), radius: "xl", w: "250px" }),
|
7555
|
+
/* @__PURE__ */ jsx56(MySwitchTheme, {})
|
7465
7556
|
] }),
|
7466
|
-
/* @__PURE__ */
|
7557
|
+
/* @__PURE__ */ jsx56(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
7467
7558
|
] }) }),
|
7468
|
-
/* @__PURE__ */
|
7469
|
-
/* @__PURE__ */
|
7559
|
+
/* @__PURE__ */ jsx56(Container2, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
7560
|
+
/* @__PURE__ */ jsx56(
|
7470
7561
|
Drawer,
|
7471
7562
|
{
|
7472
7563
|
opened: drawerOpened,
|
@@ -7476,10 +7567,10 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7476
7567
|
title: "Navigation",
|
7477
7568
|
hiddenFrom: "sm",
|
7478
7569
|
zIndex: 1e6,
|
7479
|
-
children: /* @__PURE__ */
|
7480
|
-
/* @__PURE__ */
|
7481
|
-
/* @__PURE__ */
|
7482
|
-
/* @__PURE__ */
|
7570
|
+
children: /* @__PURE__ */ jsxs31(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
7571
|
+
/* @__PURE__ */ jsx56(Divider3, { my: "sm" }),
|
7572
|
+
/* @__PURE__ */ jsx56(MyFlexColumn, { h: "100%", gap: 0, children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx56(Button15, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) }),
|
7573
|
+
/* @__PURE__ */ jsx56(Divider3, { my: "sm" })
|
7483
7574
|
] })
|
7484
7575
|
}
|
7485
7576
|
)
|
@@ -7487,8 +7578,8 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7487
7578
|
}
|
7488
7579
|
|
7489
7580
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7490
|
-
import { Code, Container as Container3, Divider as Divider4, Group as
|
7491
|
-
import { jsx as
|
7581
|
+
import { Code, Container as Container3, Divider as Divider4, Group as Group15, Indicator, Title } from "@mantine/core";
|
7582
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
7492
7583
|
var getStatusColor = (status) => {
|
7493
7584
|
switch (status) {
|
7494
7585
|
case "Prototype":
|
@@ -7501,7 +7592,7 @@ var getStatusColor = (status) => {
|
|
7501
7592
|
};
|
7502
7593
|
var PageTitle = ({ title: title3, status }) => {
|
7503
7594
|
const color = getStatusColor(status);
|
7504
|
-
return /* @__PURE__ */
|
7595
|
+
return /* @__PURE__ */ jsx57(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx57(Title, { order: 4, children: title3 }) });
|
7505
7596
|
};
|
7506
7597
|
function MyPageContent({
|
7507
7598
|
leftTopBar,
|
@@ -7513,69 +7604,69 @@ function MyPageContent({
|
|
7513
7604
|
}) {
|
7514
7605
|
const basicAppShellStore = useS_BasicAppShell();
|
7515
7606
|
const finalTitle = title3 || basicAppShellStore.state.title;
|
7516
|
-
return /* @__PURE__ */
|
7517
|
-
/* @__PURE__ */
|
7518
|
-
/* @__PURE__ */
|
7519
|
-
canBack && /* @__PURE__ */
|
7520
|
-
/* @__PURE__ */
|
7607
|
+
return /* @__PURE__ */ jsxs32(Container3, { p: 0, fluid: true, children: [
|
7608
|
+
/* @__PURE__ */ jsxs32(Group15, { justify: "space-between", children: [
|
7609
|
+
/* @__PURE__ */ jsxs32(Group15, { children: [
|
7610
|
+
canBack && /* @__PURE__ */ jsx57(MyButtonRouterBack, {}),
|
7611
|
+
/* @__PURE__ */ jsx57(PageTitle, { title: finalTitle, status }),
|
7521
7612
|
leftTopBar
|
7522
7613
|
] }),
|
7523
|
-
/* @__PURE__ */
|
7614
|
+
/* @__PURE__ */ jsxs32(Group15, { children: [
|
7524
7615
|
rightTopBar,
|
7525
|
-
/* @__PURE__ */
|
7616
|
+
/* @__PURE__ */ jsx57(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode })
|
7526
7617
|
] })
|
7527
7618
|
] }),
|
7528
|
-
/* @__PURE__ */
|
7619
|
+
/* @__PURE__ */ jsx57(Divider4, { my: "xs" }),
|
7529
7620
|
children
|
7530
7621
|
] });
|
7531
7622
|
}
|
7532
7623
|
|
7533
7624
|
// src/components/Layouts/Tab/MyTab.tsx
|
7534
7625
|
import { rem, Space as Space4, Tabs } from "@mantine/core";
|
7535
|
-
import { jsx as
|
7626
|
+
import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
7536
7627
|
function MyTab(_a) {
|
7537
7628
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
7538
7629
|
const iconStyle = { width: rem(20), height: rem(20) };
|
7539
|
-
return /* @__PURE__ */
|
7540
|
-
/* @__PURE__ */
|
7541
|
-
return /* @__PURE__ */
|
7630
|
+
return /* @__PURE__ */ jsxs33(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
7631
|
+
/* @__PURE__ */ jsx58(Tabs.List, { children: tabList.map((item, idx) => {
|
7632
|
+
return /* @__PURE__ */ jsx58(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx58(item.icon, { style: iconStyle }), children: item.label }, idx);
|
7542
7633
|
}) }),
|
7543
|
-
/* @__PURE__ */
|
7634
|
+
/* @__PURE__ */ jsx58(Space4, { my: "md" }),
|
7544
7635
|
children
|
7545
7636
|
] }));
|
7546
7637
|
}
|
7547
7638
|
|
7548
7639
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
7549
|
-
import { ActionIcon as ActionIcon11, Button as
|
7640
|
+
import { ActionIcon as ActionIcon11, Button as Button16, Fieldset as Fieldset5, Group as Group16, Modal as Modal11 } from "@mantine/core";
|
7550
7641
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
7551
7642
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
7552
|
-
import { jsx as
|
7643
|
+
import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
|
7553
7644
|
function MyDataTableSelect(_a) {
|
7554
7645
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
7555
7646
|
const disc = useDisclosure11(false);
|
7556
7647
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
7557
|
-
return /* @__PURE__ */
|
7558
|
-
/* @__PURE__ */
|
7648
|
+
return /* @__PURE__ */ jsxs34(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
7649
|
+
/* @__PURE__ */ jsx59(
|
7559
7650
|
MyDataTable,
|
7560
7651
|
__spreadValues({
|
7561
7652
|
renderTopToolbarCustomActions: ({ table }) => {
|
7562
|
-
return /* @__PURE__ */
|
7653
|
+
return /* @__PURE__ */ jsxs34(Group16, { children: [
|
7563
7654
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
7564
|
-
/* @__PURE__ */
|
7655
|
+
/* @__PURE__ */ jsx59(Button16, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
7565
7656
|
] });
|
7566
7657
|
},
|
7567
7658
|
columns,
|
7568
7659
|
data: listState[0],
|
7569
7660
|
renderRowActions: ({ row }) => {
|
7570
|
-
return /* @__PURE__ */
|
7661
|
+
return /* @__PURE__ */ jsx59(MyCenterFull, { children: /* @__PURE__ */ jsx59(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx59(IconX2, {}) }) });
|
7571
7662
|
}
|
7572
7663
|
}, rest)
|
7573
7664
|
),
|
7574
|
-
/* @__PURE__ */
|
7665
|
+
/* @__PURE__ */ jsx59(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx59(
|
7575
7666
|
MyDataTable,
|
7576
7667
|
__spreadValues({
|
7577
7668
|
renderTopToolbarCustomActions: ({ table }) => {
|
7578
|
-
return /* @__PURE__ */
|
7669
|
+
return /* @__PURE__ */ jsx59(Button16, { onClick: () => {
|
7579
7670
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
7580
7671
|
disc[1].close();
|
7581
7672
|
}, children: "Ch\u1ECDn" });
|
@@ -7591,7 +7682,7 @@ function MyDataTableSelect(_a) {
|
|
7591
7682
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
7592
7683
|
import { Select as Select5 } from "@mantine/core";
|
7593
7684
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
7594
|
-
import { jsx as
|
7685
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
7595
7686
|
function MySelectAPIGet(_a) {
|
7596
7687
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
7597
7688
|
var _a2;
|
@@ -7610,7 +7701,7 @@ function MySelectAPIGet(_a) {
|
|
7610
7701
|
label: `${item.code}-${item.name}`
|
7611
7702
|
};
|
7612
7703
|
});
|
7613
|
-
return /* @__PURE__ */
|
7704
|
+
return /* @__PURE__ */ jsx60(
|
7614
7705
|
Select5,
|
7615
7706
|
__spreadValues({
|
7616
7707
|
label,
|
@@ -7625,7 +7716,7 @@ import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as Schedul
|
|
7625
7716
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
7626
7717
|
import { useState as useState8 } from "react";
|
7627
7718
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
7628
|
-
import { jsx as
|
7719
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
7629
7720
|
function MyScheduleX({
|
7630
7721
|
values,
|
7631
7722
|
timeGridEvent,
|
@@ -7650,7 +7741,7 @@ function MyScheduleX({
|
|
7650
7741
|
events: values,
|
7651
7742
|
plugins: [eventsService, eventModalPlugin]
|
7652
7743
|
});
|
7653
|
-
return /* @__PURE__ */
|
7744
|
+
return /* @__PURE__ */ jsx61(
|
7654
7745
|
ScheduleXCalendar2,
|
7655
7746
|
{
|
7656
7747
|
calendarApp: calendar,
|
@@ -7664,9 +7755,9 @@ function MyScheduleX({
|
|
7664
7755
|
|
7665
7756
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
7666
7757
|
import { Skeleton } from "@mantine/core";
|
7667
|
-
import { jsx as
|
7758
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
7668
7759
|
function MySkeletonTable({ h: h4 = 500 }) {
|
7669
|
-
return /* @__PURE__ */
|
7760
|
+
return /* @__PURE__ */ jsx62(Skeleton, { h: h4 });
|
7670
7761
|
}
|
7671
7762
|
|
7672
7763
|
// src/constants/object/documentTypes.ts
|
@@ -7681,7 +7772,7 @@ var OBJECT_DOCUMENT_TYPES = {
|
|
7681
7772
|
|
7682
7773
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
7683
7774
|
import { useForm as useForm2 } from "@mantine/form";
|
7684
|
-
import { jsx as
|
7775
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
7685
7776
|
function F_core12196_Create({ FormTypeId }) {
|
7686
7777
|
const form = useForm2({
|
7687
7778
|
mode: "uncontrolled",
|
@@ -7693,7 +7784,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7693
7784
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
7694
7785
|
}
|
7695
7786
|
});
|
7696
|
-
return /* @__PURE__ */
|
7787
|
+
return /* @__PURE__ */ jsxs35(
|
7697
7788
|
MyButtonCreate,
|
7698
7789
|
{
|
7699
7790
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -7705,28 +7796,28 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7705
7796
|
}));
|
7706
7797
|
},
|
7707
7798
|
children: [
|
7708
|
-
/* @__PURE__ */
|
7799
|
+
/* @__PURE__ */ jsx63(
|
7709
7800
|
MyTextInput,
|
7710
7801
|
__spreadValues({
|
7711
7802
|
withAsterisk: true,
|
7712
7803
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
7713
7804
|
}, form.getInputProps("decisionCode"))
|
7714
7805
|
),
|
7715
|
-
/* @__PURE__ */
|
7806
|
+
/* @__PURE__ */ jsx63(
|
7716
7807
|
MyDateInput,
|
7717
7808
|
__spreadValues({
|
7718
7809
|
withAsterisk: true,
|
7719
7810
|
label: "Ng\xE0y ban h\xE0nh"
|
7720
7811
|
}, form.getInputProps("promulgateDate"))
|
7721
7812
|
),
|
7722
|
-
/* @__PURE__ */
|
7813
|
+
/* @__PURE__ */ jsx63(
|
7723
7814
|
MyTextInput,
|
7724
7815
|
__spreadValues({
|
7725
7816
|
withAsterisk: true,
|
7726
7817
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
7727
7818
|
}, form.getInputProps("name"))
|
7728
7819
|
),
|
7729
|
-
/* @__PURE__ */
|
7820
|
+
/* @__PURE__ */ jsx63(
|
7730
7821
|
F_core18256_Select,
|
7731
7822
|
__spreadValues({
|
7732
7823
|
withAsterisk: true,
|
@@ -7734,14 +7825,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7734
7825
|
documentTypeId: FormTypeId
|
7735
7826
|
}, form.getInputProps("documentAttributeId"))
|
7736
7827
|
),
|
7737
|
-
/* @__PURE__ */
|
7828
|
+
/* @__PURE__ */ jsx63(
|
7738
7829
|
MyFileInput,
|
7739
7830
|
__spreadValues({
|
7740
7831
|
withAsterisk: true,
|
7741
7832
|
label: "V\u0103n b\u1EA3n"
|
7742
7833
|
}, form.getInputProps("file"))
|
7743
7834
|
),
|
7744
|
-
/* @__PURE__ */
|
7835
|
+
/* @__PURE__ */ jsx63(
|
7745
7836
|
MyNumberInput,
|
7746
7837
|
__spreadValues({
|
7747
7838
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -7753,15 +7844,15 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7753
7844
|
}
|
7754
7845
|
|
7755
7846
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
7756
|
-
import { Paper as
|
7757
|
-
import { jsx as
|
7847
|
+
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
7848
|
+
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
7758
7849
|
function F_core12196({
|
7759
7850
|
FormTypeId
|
7760
7851
|
}) {
|
7761
|
-
return /* @__PURE__ */
|
7762
|
-
/* @__PURE__ */
|
7763
|
-
/* @__PURE__ */
|
7764
|
-
/* @__PURE__ */
|
7852
|
+
return /* @__PURE__ */ jsxs36(Paper8, { p: "md", children: [
|
7853
|
+
/* @__PURE__ */ jsx64(MyFlexEnd, { children: /* @__PURE__ */ jsx64(F_core12196_Create, { FormTypeId }) }),
|
7854
|
+
/* @__PURE__ */ jsx64(Space5, {}),
|
7855
|
+
/* @__PURE__ */ jsx64(F_core12196_Read, { FormTypeId })
|
7765
7856
|
] });
|
7766
7857
|
}
|
7767
7858
|
|
@@ -7772,7 +7863,7 @@ import { useMemo as useMemo4 } from "react";
|
|
7772
7863
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
7773
7864
|
import { FileInput as FileInput4, Textarea as Textarea2 } from "@mantine/core";
|
7774
7865
|
import { useForm as useForm3 } from "@mantine/form";
|
7775
|
-
import { jsx as
|
7866
|
+
import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
|
7776
7867
|
function F_core16209_Create({
|
7777
7868
|
RefinementTypeId
|
7778
7869
|
}) {
|
@@ -7787,7 +7878,7 @@ function F_core16209_Create({
|
|
7787
7878
|
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"
|
7788
7879
|
}
|
7789
7880
|
});
|
7790
|
-
return /* @__PURE__ */
|
7881
|
+
return /* @__PURE__ */ jsxs37(
|
7791
7882
|
MyButtonCreate,
|
7792
7883
|
{
|
7793
7884
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -7800,43 +7891,43 @@ function F_core16209_Create({
|
|
7800
7891
|
}));
|
7801
7892
|
},
|
7802
7893
|
children: [
|
7803
|
-
/* @__PURE__ */
|
7894
|
+
/* @__PURE__ */ jsx65(
|
7804
7895
|
MyDateInput,
|
7805
7896
|
__spreadValues({
|
7806
7897
|
withAsterisk: true,
|
7807
7898
|
label: "Ng\xE0y h\u1ECDp"
|
7808
7899
|
}, form.getInputProps("meetingDate"))
|
7809
7900
|
),
|
7810
|
-
/* @__PURE__ */
|
7901
|
+
/* @__PURE__ */ jsx65(
|
7811
7902
|
MyTextInput,
|
7812
7903
|
__spreadValues({
|
7813
7904
|
withAsterisk: true,
|
7814
7905
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7815
7906
|
}, form.getInputProps("departmentName"))
|
7816
7907
|
),
|
7817
|
-
/* @__PURE__ */
|
7908
|
+
/* @__PURE__ */ jsx65(
|
7818
7909
|
MyTextInput,
|
7819
7910
|
__spreadValues({
|
7820
7911
|
withAsterisk: true,
|
7821
7912
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7822
7913
|
}, form.getInputProps("description"))
|
7823
7914
|
),
|
7824
|
-
/* @__PURE__ */
|
7825
|
-
/* @__PURE__ */
|
7915
|
+
/* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7916
|
+
/* @__PURE__ */ jsx65(
|
7826
7917
|
MyDateInput,
|
7827
7918
|
__spreadValues({
|
7828
7919
|
withAsterisk: true,
|
7829
7920
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7830
7921
|
}, form.getInputProps("startDate"))
|
7831
7922
|
),
|
7832
|
-
/* @__PURE__ */
|
7923
|
+
/* @__PURE__ */ jsx65(
|
7833
7924
|
MyDateInput,
|
7834
7925
|
__spreadValues({
|
7835
7926
|
withAsterisk: true,
|
7836
7927
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7837
7928
|
}, form.getInputProps("endDate"))
|
7838
7929
|
),
|
7839
|
-
/* @__PURE__ */
|
7930
|
+
/* @__PURE__ */ jsx65(
|
7840
7931
|
FileInput4,
|
7841
7932
|
__spreadValues({
|
7842
7933
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7844,19 +7935,19 @@ function F_core16209_Create({
|
|
7844
7935
|
label: "T\xE0i li\u1EC7u"
|
7845
7936
|
}, form.getInputProps("file"))
|
7846
7937
|
),
|
7847
|
-
/* @__PURE__ */
|
7938
|
+
/* @__PURE__ */ jsx65(Textarea2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7848
7939
|
]
|
7849
7940
|
}
|
7850
7941
|
);
|
7851
7942
|
}
|
7852
7943
|
|
7853
7944
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
7854
|
-
import { jsx as
|
7945
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
7855
7946
|
function F_core16209_Delete({
|
7856
7947
|
id,
|
7857
7948
|
contextData
|
7858
7949
|
}) {
|
7859
|
-
return /* @__PURE__ */
|
7950
|
+
return /* @__PURE__ */ jsx66(
|
7860
7951
|
MyActionIconDelete,
|
7861
7952
|
{
|
7862
7953
|
contextData,
|
@@ -7868,7 +7959,7 @@ function F_core16209_Delete({
|
|
7868
7959
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
7869
7960
|
import { FileInput as FileInput5, Textarea as Textarea3 } from "@mantine/core";
|
7870
7961
|
import { useForm as useForm4 } from "@mantine/form";
|
7871
|
-
import { jsx as
|
7962
|
+
import { jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
|
7872
7963
|
function F_core16209_Update({ values }) {
|
7873
7964
|
var _a;
|
7874
7965
|
const form = useForm4({
|
@@ -7891,7 +7982,7 @@ function F_core16209_Update({ values }) {
|
|
7891
7982
|
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"
|
7892
7983
|
}
|
7893
7984
|
});
|
7894
|
-
return /* @__PURE__ */
|
7985
|
+
return /* @__PURE__ */ jsxs38(
|
7895
7986
|
MyActionIconUpdate,
|
7896
7987
|
{
|
7897
7988
|
form,
|
@@ -7901,43 +7992,43 @@ function F_core16209_Update({ values }) {
|
|
7901
7992
|
}));
|
7902
7993
|
},
|
7903
7994
|
children: [
|
7904
|
-
/* @__PURE__ */
|
7995
|
+
/* @__PURE__ */ jsx67(
|
7905
7996
|
MyDateInput,
|
7906
7997
|
__spreadValues({
|
7907
7998
|
withAsterisk: true,
|
7908
7999
|
label: "Ng\xE0y h\u1ECDp"
|
7909
8000
|
}, form.getInputProps("meetingDate"))
|
7910
8001
|
),
|
7911
|
-
/* @__PURE__ */
|
8002
|
+
/* @__PURE__ */ jsx67(
|
7912
8003
|
MyTextInput,
|
7913
8004
|
__spreadValues({
|
7914
8005
|
withAsterisk: true,
|
7915
8006
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7916
8007
|
}, form.getInputProps("departmentName"))
|
7917
8008
|
),
|
7918
|
-
/* @__PURE__ */
|
8009
|
+
/* @__PURE__ */ jsx67(
|
7919
8010
|
MyTextInput,
|
7920
8011
|
__spreadValues({
|
7921
8012
|
withAsterisk: true,
|
7922
8013
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7923
8014
|
}, form.getInputProps("description"))
|
7924
8015
|
),
|
7925
|
-
/* @__PURE__ */
|
7926
|
-
/* @__PURE__ */
|
8016
|
+
/* @__PURE__ */ jsx67(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
8017
|
+
/* @__PURE__ */ jsx67(
|
7927
8018
|
MyDateInput,
|
7928
8019
|
__spreadValues({
|
7929
8020
|
withAsterisk: true,
|
7930
8021
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7931
8022
|
}, form.getInputProps("startDate"))
|
7932
8023
|
),
|
7933
|
-
/* @__PURE__ */
|
8024
|
+
/* @__PURE__ */ jsx67(
|
7934
8025
|
MyDateInput,
|
7935
8026
|
__spreadValues({
|
7936
8027
|
withAsterisk: true,
|
7937
8028
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7938
8029
|
}, form.getInputProps("endDate"))
|
7939
8030
|
),
|
7940
|
-
/* @__PURE__ */
|
8031
|
+
/* @__PURE__ */ jsx67(
|
7941
8032
|
FileInput5,
|
7942
8033
|
__spreadValues({
|
7943
8034
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7945,14 +8036,14 @@ function F_core16209_Update({ values }) {
|
|
7945
8036
|
label: "T\xE0i li\u1EC7u"
|
7946
8037
|
}, form.getInputProps("file"))
|
7947
8038
|
),
|
7948
|
-
/* @__PURE__ */
|
8039
|
+
/* @__PURE__ */ jsx67(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7949
8040
|
]
|
7950
8041
|
}
|
7951
8042
|
);
|
7952
8043
|
}
|
7953
8044
|
|
7954
8045
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
7955
|
-
import { jsx as
|
8046
|
+
import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
|
7956
8047
|
function F_core16209({ RefinementTypeId }) {
|
7957
8048
|
const query = useQuery5({
|
7958
8049
|
queryKey: ["F_core16209_Read"],
|
@@ -7985,7 +8076,7 @@ function F_core16209({ RefinementTypeId }) {
|
|
7985
8076
|
{
|
7986
8077
|
header: "File",
|
7987
8078
|
accessorFn: (row) => {
|
7988
|
-
return /* @__PURE__ */
|
8079
|
+
return /* @__PURE__ */ jsx68(MyCenterFull, { children: /* @__PURE__ */ jsx68(MyButtonViewPDF, { id: row.id }) });
|
7989
8080
|
}
|
7990
8081
|
}
|
7991
8082
|
],
|
@@ -7993,16 +8084,16 @@ function F_core16209({ RefinementTypeId }) {
|
|
7993
8084
|
);
|
7994
8085
|
if (query.isLoading) return "Loading...";
|
7995
8086
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
7996
|
-
return /* @__PURE__ */
|
8087
|
+
return /* @__PURE__ */ jsx68(
|
7997
8088
|
MyDataTable,
|
7998
8089
|
{
|
7999
8090
|
columns,
|
8000
8091
|
data: query.data,
|
8001
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
8092
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx68(F_core16209_Create, { RefinementTypeId }),
|
8002
8093
|
renderRowActions: ({ row }) => {
|
8003
|
-
return /* @__PURE__ */
|
8004
|
-
/* @__PURE__ */
|
8005
|
-
/* @__PURE__ */
|
8094
|
+
return /* @__PURE__ */ jsxs39(MyCenterFull, { children: [
|
8095
|
+
/* @__PURE__ */ jsx68(F_core16209_Update, { values: row.original }),
|
8096
|
+
/* @__PURE__ */ jsx68(
|
8006
8097
|
F_core16209_Delete,
|
8007
8098
|
{
|
8008
8099
|
id: row.original.id,
|
@@ -8024,7 +8115,7 @@ import { useMemo as useMemo5 } from "react";
|
|
8024
8115
|
|
8025
8116
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
8026
8117
|
import { useForm as useForm5 } from "@mantine/form";
|
8027
|
-
import { jsx as
|
8118
|
+
import { jsx as jsx69, jsxs as jsxs40 } from "react/jsx-runtime";
|
8028
8119
|
function F_core18256_Create({ documentType }) {
|
8029
8120
|
const form = useForm5({
|
8030
8121
|
mode: "uncontrolled",
|
@@ -8037,16 +8128,16 @@ function F_core18256_Create({ documentType }) {
|
|
8037
8128
|
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8038
8129
|
}
|
8039
8130
|
});
|
8040
|
-
return /* @__PURE__ */
|
8041
|
-
/* @__PURE__ */
|
8042
|
-
/* @__PURE__ */
|
8131
|
+
return /* @__PURE__ */ jsxs40(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
8132
|
+
/* @__PURE__ */ jsx69(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8133
|
+
/* @__PURE__ */ jsx69(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8043
8134
|
] });
|
8044
8135
|
}
|
8045
8136
|
|
8046
8137
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
8047
|
-
import { jsx as
|
8138
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
8048
8139
|
function F_core18256_Delete({ id }) {
|
8049
|
-
return /* @__PURE__ */
|
8140
|
+
return /* @__PURE__ */ jsx70(
|
8050
8141
|
MyActionIconDelete,
|
8051
8142
|
{
|
8052
8143
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
@@ -8056,19 +8147,19 @@ function F_core18256_Delete({ id }) {
|
|
8056
8147
|
|
8057
8148
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
8058
8149
|
import { useForm as useForm6 } from "@mantine/form";
|
8059
|
-
import { jsx as
|
8150
|
+
import { jsx as jsx71, jsxs as jsxs41 } from "react/jsx-runtime";
|
8060
8151
|
function F_core18256_Update({ values }) {
|
8061
8152
|
const form = useForm6({
|
8062
8153
|
initialValues: values
|
8063
8154
|
});
|
8064
|
-
return /* @__PURE__ */
|
8065
|
-
/* @__PURE__ */
|
8066
|
-
/* @__PURE__ */
|
8155
|
+
return /* @__PURE__ */ jsxs41(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
8156
|
+
/* @__PURE__ */ jsx71(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8157
|
+
/* @__PURE__ */ jsx71(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8067
8158
|
] });
|
8068
8159
|
}
|
8069
8160
|
|
8070
8161
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
8071
|
-
import { jsx as
|
8162
|
+
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
8072
8163
|
function F_core18256_Read({ documentType }) {
|
8073
8164
|
const documentAttributeQuery = useQuery6({
|
8074
8165
|
queryKey: ["F_core18256_Read", documentType],
|
@@ -8093,17 +8184,17 @@ function F_core18256_Read({ documentType }) {
|
|
8093
8184
|
);
|
8094
8185
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
8095
8186
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8096
|
-
return /* @__PURE__ */
|
8187
|
+
return /* @__PURE__ */ jsx72(
|
8097
8188
|
MyDataTable,
|
8098
8189
|
{
|
8099
8190
|
columns,
|
8100
8191
|
enableRowNumbers: true,
|
8101
8192
|
data: documentAttributeQuery.data,
|
8102
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
8193
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx72(F_core18256_Create, { documentType }),
|
8103
8194
|
renderRowActions: ({ row }) => {
|
8104
|
-
return /* @__PURE__ */
|
8105
|
-
/* @__PURE__ */
|
8106
|
-
/* @__PURE__ */
|
8195
|
+
return /* @__PURE__ */ jsxs42(MyCenterFull, { children: [
|
8196
|
+
/* @__PURE__ */ jsx72(F_core18256_Update, { values: row.original }),
|
8197
|
+
/* @__PURE__ */ jsx72(F_core18256_Delete, { id: row.original.id })
|
8107
8198
|
] });
|
8108
8199
|
}
|
8109
8200
|
}
|
@@ -8111,23 +8202,23 @@ function F_core18256_Read({ documentType }) {
|
|
8111
8202
|
}
|
8112
8203
|
|
8113
8204
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
8114
|
-
import { jsx as
|
8205
|
+
import { jsx as jsx73, jsxs as jsxs43 } from "react/jsx-runtime";
|
8115
8206
|
var tabData = [
|
8116
8207
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
8117
8208
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
8118
8209
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
8119
8210
|
];
|
8120
8211
|
function F_core18256() {
|
8121
|
-
return /* @__PURE__ */
|
8122
|
-
/* @__PURE__ */
|
8123
|
-
/* @__PURE__ */
|
8124
|
-
/* @__PURE__ */
|
8212
|
+
return /* @__PURE__ */ jsxs43(MyTab, { tabList: tabData, children: [
|
8213
|
+
/* @__PURE__ */ jsx73(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx73(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
8214
|
+
/* @__PURE__ */ jsx73(Tabs2.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx73(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow }) }),
|
8215
|
+
/* @__PURE__ */ jsx73(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx73(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
|
8125
8216
|
] });
|
8126
8217
|
}
|
8127
8218
|
|
8128
8219
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
8129
8220
|
import { useForm as useForm7 } from "@mantine/form";
|
8130
|
-
import { jsx as
|
8221
|
+
import { jsx as jsx74, jsxs as jsxs44 } from "react/jsx-runtime";
|
8131
8222
|
function F_core26965_Create({
|
8132
8223
|
RegulationsTypeId
|
8133
8224
|
}) {
|
@@ -8141,7 +8232,7 @@ function F_core26965_Create({
|
|
8141
8232
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8142
8233
|
}
|
8143
8234
|
});
|
8144
|
-
return /* @__PURE__ */
|
8235
|
+
return /* @__PURE__ */ jsxs44(
|
8145
8236
|
MyButtonCreate,
|
8146
8237
|
{
|
8147
8238
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8153,28 +8244,28 @@ function F_core26965_Create({
|
|
8153
8244
|
}));
|
8154
8245
|
},
|
8155
8246
|
children: [
|
8156
|
-
/* @__PURE__ */
|
8247
|
+
/* @__PURE__ */ jsx74(
|
8157
8248
|
MyTextInput,
|
8158
8249
|
__spreadValues({
|
8159
8250
|
withAsterisk: true,
|
8160
8251
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8161
8252
|
}, form.getInputProps("decisionCode"))
|
8162
8253
|
),
|
8163
|
-
/* @__PURE__ */
|
8254
|
+
/* @__PURE__ */ jsx74(
|
8164
8255
|
MyDateInput,
|
8165
8256
|
__spreadValues({
|
8166
8257
|
withAsterisk: true,
|
8167
8258
|
label: "Ng\xE0y ban h\xE0nh"
|
8168
8259
|
}, form.getInputProps("promulgateDate"))
|
8169
8260
|
),
|
8170
|
-
/* @__PURE__ */
|
8261
|
+
/* @__PURE__ */ jsx74(
|
8171
8262
|
MyTextInput,
|
8172
8263
|
__spreadValues({
|
8173
8264
|
withAsterisk: true,
|
8174
8265
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8175
8266
|
}, form.getInputProps("name"))
|
8176
8267
|
),
|
8177
|
-
/* @__PURE__ */
|
8268
|
+
/* @__PURE__ */ jsx74(
|
8178
8269
|
F_core18256_Select,
|
8179
8270
|
__spreadValues({
|
8180
8271
|
withAsterisk: true,
|
@@ -8182,14 +8273,14 @@ function F_core26965_Create({
|
|
8182
8273
|
documentTypeId: RegulationsTypeId
|
8183
8274
|
}, form.getInputProps("documentAttributeId"))
|
8184
8275
|
),
|
8185
|
-
/* @__PURE__ */
|
8276
|
+
/* @__PURE__ */ jsx74(
|
8186
8277
|
MyFileInput,
|
8187
8278
|
__spreadValues({
|
8188
8279
|
withAsterisk: true,
|
8189
8280
|
label: "V\u0103n b\u1EA3n"
|
8190
8281
|
}, form.getInputProps("file"))
|
8191
8282
|
),
|
8192
|
-
/* @__PURE__ */
|
8283
|
+
/* @__PURE__ */ jsx74(
|
8193
8284
|
MyNumberInput,
|
8194
8285
|
__spreadValues({
|
8195
8286
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8206,12 +8297,12 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
8206
8297
|
import { useMemo as useMemo6 } from "react";
|
8207
8298
|
|
8208
8299
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
8209
|
-
import { jsx as
|
8300
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
8210
8301
|
function F_core26965_Delete({
|
8211
8302
|
id,
|
8212
8303
|
contextData
|
8213
8304
|
}) {
|
8214
|
-
return /* @__PURE__ */
|
8305
|
+
return /* @__PURE__ */ jsx75(
|
8215
8306
|
MyActionIconDelete,
|
8216
8307
|
{
|
8217
8308
|
contextData,
|
@@ -8222,7 +8313,7 @@ function F_core26965_Delete({
|
|
8222
8313
|
|
8223
8314
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
8224
8315
|
import { useForm as useForm8 } from "@mantine/form";
|
8225
|
-
import { jsx as
|
8316
|
+
import { jsx as jsx76, jsxs as jsxs45 } from "react/jsx-runtime";
|
8226
8317
|
function F_core26965_Update({
|
8227
8318
|
values,
|
8228
8319
|
RegulationsTypeId
|
@@ -8244,7 +8335,7 @@ function F_core26965_Update({
|
|
8244
8335
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8245
8336
|
}
|
8246
8337
|
});
|
8247
|
-
return /* @__PURE__ */
|
8338
|
+
return /* @__PURE__ */ jsxs45(
|
8248
8339
|
MyActionIconUpdate,
|
8249
8340
|
{
|
8250
8341
|
form,
|
@@ -8254,28 +8345,28 @@ function F_core26965_Update({
|
|
8254
8345
|
}));
|
8255
8346
|
},
|
8256
8347
|
children: [
|
8257
|
-
/* @__PURE__ */
|
8348
|
+
/* @__PURE__ */ jsx76(
|
8258
8349
|
MyTextInput,
|
8259
8350
|
__spreadValues({
|
8260
8351
|
withAsterisk: true,
|
8261
8352
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8262
8353
|
}, form.getInputProps("decisionCode"))
|
8263
8354
|
),
|
8264
|
-
/* @__PURE__ */
|
8355
|
+
/* @__PURE__ */ jsx76(
|
8265
8356
|
MyDateInput,
|
8266
8357
|
__spreadValues({
|
8267
8358
|
withAsterisk: true,
|
8268
8359
|
label: "Ng\xE0y ban h\xE0nh"
|
8269
8360
|
}, form.getInputProps("promulgateDate"))
|
8270
8361
|
),
|
8271
|
-
/* @__PURE__ */
|
8362
|
+
/* @__PURE__ */ jsx76(
|
8272
8363
|
MyTextInput,
|
8273
8364
|
__spreadValues({
|
8274
8365
|
withAsterisk: true,
|
8275
8366
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8276
8367
|
}, form.getInputProps("name"))
|
8277
8368
|
),
|
8278
|
-
/* @__PURE__ */
|
8369
|
+
/* @__PURE__ */ jsx76(
|
8279
8370
|
F_core18256_Select,
|
8280
8371
|
__spreadValues({
|
8281
8372
|
withAsterisk: true,
|
@@ -8283,14 +8374,14 @@ function F_core26965_Update({
|
|
8283
8374
|
documentTypeId: RegulationsTypeId
|
8284
8375
|
}, form.getInputProps("documentAttributeId"))
|
8285
8376
|
),
|
8286
|
-
/* @__PURE__ */
|
8377
|
+
/* @__PURE__ */ jsx76(
|
8287
8378
|
MyFileInput,
|
8288
8379
|
__spreadValues({
|
8289
8380
|
withAsterisk: true,
|
8290
8381
|
label: "V\u0103n b\u1EA3n"
|
8291
8382
|
}, form.getInputProps("file"))
|
8292
8383
|
),
|
8293
|
-
/* @__PURE__ */
|
8384
|
+
/* @__PURE__ */ jsx76(
|
8294
8385
|
MyNumberInput,
|
8295
8386
|
__spreadValues({
|
8296
8387
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8302,7 +8393,7 @@ function F_core26965_Update({
|
|
8302
8393
|
}
|
8303
8394
|
|
8304
8395
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
8305
|
-
import { jsx as
|
8396
|
+
import { jsx as jsx77, jsxs as jsxs46 } from "react/jsx-runtime";
|
8306
8397
|
function F_core26965_Read({
|
8307
8398
|
RegulationsTypeId
|
8308
8399
|
}) {
|
@@ -8320,8 +8411,8 @@ function F_core26965_Read({
|
|
8320
8411
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8321
8412
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8322
8413
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8323
|
-
return /* @__PURE__ */
|
8324
|
-
return /* @__PURE__ */
|
8414
|
+
return /* @__PURE__ */ jsx77(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8415
|
+
return /* @__PURE__ */ jsx77(MyFlexColumn, { children: /* @__PURE__ */ jsx77(
|
8325
8416
|
Accordion2,
|
8326
8417
|
{
|
8327
8418
|
variant: "contained",
|
@@ -8332,7 +8423,7 @@ function F_core26965_Read({
|
|
8332
8423
|
}
|
8333
8424
|
),
|
8334
8425
|
multiple: true,
|
8335
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8426
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx77(
|
8336
8427
|
SubRead2,
|
8337
8428
|
{
|
8338
8429
|
name: item.name,
|
@@ -8375,7 +8466,7 @@ function SubRead2({
|
|
8375
8466
|
{
|
8376
8467
|
header: "File",
|
8377
8468
|
accessorFn: (row) => {
|
8378
|
-
return /* @__PURE__ */
|
8469
|
+
return /* @__PURE__ */ jsx77(MyCenterFull, { children: /* @__PURE__ */ jsx77(MyButtonViewPDF, { id: row.id }) });
|
8379
8470
|
}
|
8380
8471
|
}
|
8381
8472
|
],
|
@@ -8383,22 +8474,22 @@ function SubRead2({
|
|
8383
8474
|
);
|
8384
8475
|
if (documentQuery.isLoading) return "Loading...";
|
8385
8476
|
if (documentQuery.isError) return "Error!";
|
8386
|
-
return /* @__PURE__ */
|
8387
|
-
/* @__PURE__ */
|
8388
|
-
/* @__PURE__ */
|
8477
|
+
return /* @__PURE__ */ jsxs46(Accordion2.Item, { value: documentType.toString(), children: [
|
8478
|
+
/* @__PURE__ */ jsx77(Accordion2.Control, { children: name }),
|
8479
|
+
/* @__PURE__ */ jsx77(Accordion2.Panel, { children: /* @__PURE__ */ jsx77(
|
8389
8480
|
MyDataTable,
|
8390
8481
|
{
|
8391
8482
|
columns,
|
8392
8483
|
data: documentQuery.data,
|
8393
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8394
|
-
/* @__PURE__ */
|
8484
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs46(MyCenterFull, { children: [
|
8485
|
+
/* @__PURE__ */ jsx77(
|
8395
8486
|
F_core26965_Update,
|
8396
8487
|
{
|
8397
8488
|
RegulationsTypeId,
|
8398
8489
|
values: row.original
|
8399
8490
|
}
|
8400
8491
|
),
|
8401
|
-
/* @__PURE__ */
|
8492
|
+
/* @__PURE__ */ jsx77(
|
8402
8493
|
F_core26965_Delete,
|
8403
8494
|
{
|
8404
8495
|
id: row.original.id,
|
@@ -8412,19 +8503,19 @@ function SubRead2({
|
|
8412
8503
|
}
|
8413
8504
|
|
8414
8505
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
8415
|
-
import { Paper as
|
8416
|
-
import { jsx as
|
8506
|
+
import { Paper as Paper9, Space as Space6 } from "@mantine/core";
|
8507
|
+
import { jsx as jsx78, jsxs as jsxs47 } from "react/jsx-runtime";
|
8417
8508
|
function F_core26965({ RegulationsTypeId }) {
|
8418
|
-
return /* @__PURE__ */
|
8419
|
-
/* @__PURE__ */
|
8420
|
-
/* @__PURE__ */
|
8421
|
-
/* @__PURE__ */
|
8509
|
+
return /* @__PURE__ */ jsxs47(Paper9, { p: "md", children: [
|
8510
|
+
/* @__PURE__ */ jsx78(MyFlexEnd, { children: /* @__PURE__ */ jsx78(F_core26965_Create, { RegulationsTypeId }) }),
|
8511
|
+
/* @__PURE__ */ jsx78(Space6, {}),
|
8512
|
+
/* @__PURE__ */ jsx78(F_core26965_Read, { RegulationsTypeId })
|
8422
8513
|
] });
|
8423
8514
|
}
|
8424
8515
|
|
8425
8516
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
8426
8517
|
import { useForm as useForm9 } from "@mantine/form";
|
8427
|
-
import { jsx as
|
8518
|
+
import { jsx as jsx79, jsxs as jsxs48 } from "react/jsx-runtime";
|
8428
8519
|
function F_core27311_Create({
|
8429
8520
|
WorkflowTypeId
|
8430
8521
|
}) {
|
@@ -8438,7 +8529,7 @@ function F_core27311_Create({
|
|
8438
8529
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8439
8530
|
}
|
8440
8531
|
});
|
8441
|
-
return /* @__PURE__ */
|
8532
|
+
return /* @__PURE__ */ jsxs48(
|
8442
8533
|
MyButtonCreate,
|
8443
8534
|
{
|
8444
8535
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8450,28 +8541,28 @@ function F_core27311_Create({
|
|
8450
8541
|
}));
|
8451
8542
|
},
|
8452
8543
|
children: [
|
8453
|
-
/* @__PURE__ */
|
8544
|
+
/* @__PURE__ */ jsx79(
|
8454
8545
|
MyTextInput,
|
8455
8546
|
__spreadValues({
|
8456
8547
|
withAsterisk: true,
|
8457
8548
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8458
8549
|
}, form.getInputProps("decisionCode"))
|
8459
8550
|
),
|
8460
|
-
/* @__PURE__ */
|
8551
|
+
/* @__PURE__ */ jsx79(
|
8461
8552
|
MyDateInput,
|
8462
8553
|
__spreadValues({
|
8463
8554
|
withAsterisk: true,
|
8464
8555
|
label: "Ng\xE0y ban h\xE0nh"
|
8465
8556
|
}, form.getInputProps("promulgateDate"))
|
8466
8557
|
),
|
8467
|
-
/* @__PURE__ */
|
8558
|
+
/* @__PURE__ */ jsx79(
|
8468
8559
|
MyTextInput,
|
8469
8560
|
__spreadValues({
|
8470
8561
|
withAsterisk: true,
|
8471
8562
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8472
8563
|
}, form.getInputProps("name"))
|
8473
8564
|
),
|
8474
|
-
/* @__PURE__ */
|
8565
|
+
/* @__PURE__ */ jsx79(
|
8475
8566
|
F_core18256_Select,
|
8476
8567
|
__spreadValues({
|
8477
8568
|
withAsterisk: true,
|
@@ -8479,14 +8570,14 @@ function F_core27311_Create({
|
|
8479
8570
|
documentTypeId: WorkflowTypeId
|
8480
8571
|
}, form.getInputProps("documentAttributeId"))
|
8481
8572
|
),
|
8482
|
-
/* @__PURE__ */
|
8573
|
+
/* @__PURE__ */ jsx79(
|
8483
8574
|
MyFileInput,
|
8484
8575
|
__spreadValues({
|
8485
8576
|
withAsterisk: true,
|
8486
8577
|
label: "V\u0103n b\u1EA3n"
|
8487
8578
|
}, form.getInputProps("file"))
|
8488
8579
|
),
|
8489
|
-
/* @__PURE__ */
|
8580
|
+
/* @__PURE__ */ jsx79(
|
8490
8581
|
MyNumberInput,
|
8491
8582
|
__spreadValues({
|
8492
8583
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8503,12 +8594,12 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
8503
8594
|
import { useMemo as useMemo7 } from "react";
|
8504
8595
|
|
8505
8596
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
8506
|
-
import { jsx as
|
8597
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
8507
8598
|
function F_core27311_Delete({
|
8508
8599
|
id,
|
8509
8600
|
contextData
|
8510
8601
|
}) {
|
8511
|
-
return /* @__PURE__ */
|
8602
|
+
return /* @__PURE__ */ jsx80(
|
8512
8603
|
MyActionIconDelete,
|
8513
8604
|
{
|
8514
8605
|
contextData,
|
@@ -8519,7 +8610,7 @@ function F_core27311_Delete({
|
|
8519
8610
|
|
8520
8611
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
8521
8612
|
import { useForm as useForm10 } from "@mantine/form";
|
8522
|
-
import { jsx as
|
8613
|
+
import { jsx as jsx81, jsxs as jsxs49 } from "react/jsx-runtime";
|
8523
8614
|
function F_core27311_Update({
|
8524
8615
|
values,
|
8525
8616
|
WorkflowTypeId
|
@@ -8541,7 +8632,7 @@ function F_core27311_Update({
|
|
8541
8632
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8542
8633
|
}
|
8543
8634
|
});
|
8544
|
-
return /* @__PURE__ */
|
8635
|
+
return /* @__PURE__ */ jsxs49(
|
8545
8636
|
MyActionIconUpdate,
|
8546
8637
|
{
|
8547
8638
|
form,
|
@@ -8551,28 +8642,28 @@ function F_core27311_Update({
|
|
8551
8642
|
}));
|
8552
8643
|
},
|
8553
8644
|
children: [
|
8554
|
-
/* @__PURE__ */
|
8645
|
+
/* @__PURE__ */ jsx81(
|
8555
8646
|
MyTextInput,
|
8556
8647
|
__spreadValues({
|
8557
8648
|
withAsterisk: true,
|
8558
8649
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8559
8650
|
}, form.getInputProps("decisionCode"))
|
8560
8651
|
),
|
8561
|
-
/* @__PURE__ */
|
8652
|
+
/* @__PURE__ */ jsx81(
|
8562
8653
|
MyDateInput,
|
8563
8654
|
__spreadValues({
|
8564
8655
|
withAsterisk: true,
|
8565
8656
|
label: "Ng\xE0y ban h\xE0nh"
|
8566
8657
|
}, form.getInputProps("promulgateDate"))
|
8567
8658
|
),
|
8568
|
-
/* @__PURE__ */
|
8659
|
+
/* @__PURE__ */ jsx81(
|
8569
8660
|
MyTextInput,
|
8570
8661
|
__spreadValues({
|
8571
8662
|
withAsterisk: true,
|
8572
8663
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8573
8664
|
}, form.getInputProps("name"))
|
8574
8665
|
),
|
8575
|
-
/* @__PURE__ */
|
8666
|
+
/* @__PURE__ */ jsx81(
|
8576
8667
|
F_core18256_Select,
|
8577
8668
|
__spreadValues({
|
8578
8669
|
withAsterisk: true,
|
@@ -8580,14 +8671,14 @@ function F_core27311_Update({
|
|
8580
8671
|
documentTypeId: WorkflowTypeId
|
8581
8672
|
}, form.getInputProps("documentAttributeId"))
|
8582
8673
|
),
|
8583
|
-
/* @__PURE__ */
|
8674
|
+
/* @__PURE__ */ jsx81(
|
8584
8675
|
MyFileInput,
|
8585
8676
|
__spreadValues({
|
8586
8677
|
withAsterisk: true,
|
8587
8678
|
label: "V\u0103n b\u1EA3n"
|
8588
8679
|
}, form.getInputProps("file"))
|
8589
8680
|
),
|
8590
|
-
/* @__PURE__ */
|
8681
|
+
/* @__PURE__ */ jsx81(
|
8591
8682
|
MyNumberInput,
|
8592
8683
|
__spreadValues({
|
8593
8684
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8599,7 +8690,7 @@ function F_core27311_Update({
|
|
8599
8690
|
}
|
8600
8691
|
|
8601
8692
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
8602
|
-
import { jsx as
|
8693
|
+
import { jsx as jsx82, jsxs as jsxs50 } from "react/jsx-runtime";
|
8603
8694
|
function F_core27311_Read({
|
8604
8695
|
WorkflowTypeId
|
8605
8696
|
}) {
|
@@ -8617,8 +8708,8 @@ function F_core27311_Read({
|
|
8617
8708
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8618
8709
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8619
8710
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8620
|
-
return /* @__PURE__ */
|
8621
|
-
return /* @__PURE__ */
|
8711
|
+
return /* @__PURE__ */ jsx82(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8712
|
+
return /* @__PURE__ */ jsx82(MyFlexColumn, { children: /* @__PURE__ */ jsx82(
|
8622
8713
|
Accordion3,
|
8623
8714
|
{
|
8624
8715
|
variant: "contained",
|
@@ -8629,7 +8720,7 @@ function F_core27311_Read({
|
|
8629
8720
|
}
|
8630
8721
|
),
|
8631
8722
|
multiple: true,
|
8632
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8723
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx82(
|
8633
8724
|
SubRead3,
|
8634
8725
|
{
|
8635
8726
|
name: item.name,
|
@@ -8672,7 +8763,7 @@ function SubRead3({
|
|
8672
8763
|
{
|
8673
8764
|
header: "File",
|
8674
8765
|
accessorFn: (row) => {
|
8675
|
-
return /* @__PURE__ */
|
8766
|
+
return /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(MyButtonViewPDF, { id: row.id }) });
|
8676
8767
|
}
|
8677
8768
|
}
|
8678
8769
|
],
|
@@ -8680,22 +8771,22 @@ function SubRead3({
|
|
8680
8771
|
);
|
8681
8772
|
if (documentQuery.isLoading) return "Loading...";
|
8682
8773
|
if (documentQuery.isError) return "Error!";
|
8683
|
-
return /* @__PURE__ */
|
8684
|
-
/* @__PURE__ */
|
8685
|
-
/* @__PURE__ */
|
8774
|
+
return /* @__PURE__ */ jsxs50(Accordion3.Item, { value: documentType.toString(), children: [
|
8775
|
+
/* @__PURE__ */ jsx82(Accordion3.Control, { children: name }),
|
8776
|
+
/* @__PURE__ */ jsx82(Accordion3.Panel, { children: /* @__PURE__ */ jsx82(
|
8686
8777
|
MyDataTable,
|
8687
8778
|
{
|
8688
8779
|
columns,
|
8689
8780
|
data: documentQuery.data,
|
8690
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8691
|
-
/* @__PURE__ */
|
8781
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs50(MyCenterFull, { children: [
|
8782
|
+
/* @__PURE__ */ jsx82(
|
8692
8783
|
F_core27311_Update,
|
8693
8784
|
{
|
8694
8785
|
WorkflowTypeId,
|
8695
8786
|
values: row.original
|
8696
8787
|
}
|
8697
8788
|
),
|
8698
|
-
/* @__PURE__ */
|
8789
|
+
/* @__PURE__ */ jsx82(
|
8699
8790
|
F_core27311_Delete,
|
8700
8791
|
{
|
8701
8792
|
id: row.original.id,
|
@@ -8709,40 +8800,40 @@ function SubRead3({
|
|
8709
8800
|
}
|
8710
8801
|
|
8711
8802
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
8712
|
-
import { Paper as
|
8713
|
-
import { jsx as
|
8803
|
+
import { Paper as Paper10, Space as Space7 } from "@mantine/core";
|
8804
|
+
import { jsx as jsx83, jsxs as jsxs51 } from "react/jsx-runtime";
|
8714
8805
|
function F_core27311({
|
8715
8806
|
WorkflowTypeId
|
8716
8807
|
}) {
|
8717
|
-
return /* @__PURE__ */
|
8718
|
-
/* @__PURE__ */
|
8719
|
-
/* @__PURE__ */
|
8720
|
-
/* @__PURE__ */
|
8808
|
+
return /* @__PURE__ */ jsxs51(Paper10, { p: "md", children: [
|
8809
|
+
/* @__PURE__ */ jsx83(MyFlexEnd, { children: /* @__PURE__ */ jsx83(F_core27311_Create, { WorkflowTypeId }) }),
|
8810
|
+
/* @__PURE__ */ jsx83(Space7, {}),
|
8811
|
+
/* @__PURE__ */ jsx83(F_core27311_Read, { WorkflowTypeId })
|
8721
8812
|
] });
|
8722
8813
|
}
|
8723
8814
|
|
8724
8815
|
// src/modules-features/admin/core/core35923/F_core35923.tsx
|
8725
8816
|
import { Grid } from "@mantine/core";
|
8726
|
-
import { jsx as
|
8817
|
+
import { jsx as jsx84, jsxs as jsxs52 } from "react/jsx-runtime";
|
8727
8818
|
function F_core35923() {
|
8728
|
-
return /* @__PURE__ */
|
8729
|
-
/* @__PURE__ */
|
8730
|
-
/* @__PURE__ */
|
8731
|
-
/* @__PURE__ */
|
8732
|
-
/* @__PURE__ */
|
8733
|
-
/* @__PURE__ */
|
8734
|
-
/* @__PURE__ */
|
8735
|
-
/* @__PURE__ */
|
8736
|
-
/* @__PURE__ */
|
8737
|
-
/* @__PURE__ */
|
8738
|
-
/* @__PURE__ */
|
8819
|
+
return /* @__PURE__ */ jsxs52(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
8820
|
+
/* @__PURE__ */ jsxs52(Grid, { children: [
|
8821
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "M\xE3 module", disabled: true }) }),
|
8822
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "T\xEAn module" }) }),
|
8823
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
8824
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "Email" }) }),
|
8825
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
8826
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
8827
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
8828
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
8829
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
8739
8830
|
] }),
|
8740
|
-
/* @__PURE__ */
|
8831
|
+
/* @__PURE__ */ jsx84(MyFlexEnd, { children: /* @__PURE__ */ jsx84(MyButton, { crudType: "save" }) })
|
8741
8832
|
] });
|
8742
8833
|
}
|
8743
8834
|
|
8744
8835
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
8745
|
-
import { Grid as Grid2, Paper as
|
8836
|
+
import { Grid as Grid2, Paper as Paper11, ScrollArea as ScrollArea6 } from "@mantine/core";
|
8746
8837
|
|
8747
8838
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
8748
8839
|
import { Container as Container4 } from "@mantine/core";
|
@@ -8798,7 +8889,7 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
8798
8889
|
}
|
8799
8890
|
|
8800
8891
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
8801
|
-
import { jsx as
|
8892
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
8802
8893
|
function F_core38677_ReadUser() {
|
8803
8894
|
const store = useS_core83092();
|
8804
8895
|
const query = useQ_Account_GetAdminAccount();
|
@@ -8831,7 +8922,7 @@ function F_core38677_ReadUser() {
|
|
8831
8922
|
}, [query.data]);
|
8832
8923
|
if (query.isLoading) return "Loading...";
|
8833
8924
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8834
|
-
return /* @__PURE__ */
|
8925
|
+
return /* @__PURE__ */ jsx85(Container4, { fluid: true, children: /* @__PURE__ */ jsx85(
|
8835
8926
|
MyDataTable,
|
8836
8927
|
{
|
8837
8928
|
columns,
|
@@ -8867,7 +8958,7 @@ function useQ_Account_GetAdminAccount() {
|
|
8867
8958
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
8868
8959
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
8869
8960
|
import { useEffect as useEffect9, useState as useState10 } from "react";
|
8870
|
-
import { jsx as
|
8961
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
8871
8962
|
function F_core38677_Save() {
|
8872
8963
|
const store = useS_core83092();
|
8873
8964
|
const disable = useState10(false);
|
@@ -8896,7 +8987,7 @@ function F_core38677_Save() {
|
|
8896
8987
|
}
|
8897
8988
|
disable[1](false);
|
8898
8989
|
}, [store.state.rolePermissions]);
|
8899
|
-
return /* @__PURE__ */
|
8990
|
+
return /* @__PURE__ */ jsx86(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
8900
8991
|
}
|
8901
8992
|
|
8902
8993
|
// src/data/menuData.ts
|
@@ -8931,11 +9022,11 @@ var menuData = [
|
|
8931
9022
|
];
|
8932
9023
|
|
8933
9024
|
// src/modules-features/admin/core/core38677/F_core38677_ViewMenuPermissions.tsx
|
8934
|
-
import { Checkbox as Checkbox3, Flex as
|
9025
|
+
import { Checkbox as Checkbox3, Flex as Flex6, ScrollArea as ScrollArea5, Table as Table3, Text as Text15 } from "@mantine/core";
|
8935
9026
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
8936
9027
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
8937
9028
|
import React2, { useEffect as useEffect10, useState as useState11 } from "react";
|
8938
|
-
import { jsx as
|
9029
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
8939
9030
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
8940
9031
|
function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
8941
9032
|
var _a, _b;
|
@@ -8950,8 +9041,8 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8950
9041
|
store.setProperty("rolePermissions", query.data);
|
8951
9042
|
}, [query.data]);
|
8952
9043
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
8953
|
-
return /* @__PURE__ */
|
8954
|
-
/* @__PURE__ */
|
9044
|
+
return /* @__PURE__ */ jsx87(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs53(Table3, { children: [
|
9045
|
+
/* @__PURE__ */ jsx87(
|
8955
9046
|
Table3.Thead,
|
8956
9047
|
{
|
8957
9048
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -8962,90 +9053,90 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8962
9053
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
8963
9054
|
border: "1px solid var(--mantine-color-gray-4)"
|
8964
9055
|
},
|
8965
|
-
children: /* @__PURE__ */
|
8966
|
-
/* @__PURE__ */
|
8967
|
-
/* @__PURE__ */
|
8968
|
-
/* @__PURE__ */
|
9056
|
+
children: /* @__PURE__ */ jsxs53(Table3.Tr, { children: [
|
9057
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: title }),
|
9058
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9059
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
8969
9060
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
8970
9061
|
} }),
|
8971
|
-
/* @__PURE__ */
|
9062
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8972
9063
|
"Xem",
|
8973
|
-
/* @__PURE__ */
|
9064
|
+
/* @__PURE__ */ jsx87(IconEyeUp, { color: "gray" })
|
8974
9065
|
] })
|
8975
9066
|
] }) }),
|
8976
|
-
/* @__PURE__ */
|
8977
|
-
/* @__PURE__ */
|
9067
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9068
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
8978
9069
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
8979
9070
|
} }),
|
8980
|
-
/* @__PURE__ */
|
9071
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8981
9072
|
"Th\xEAm",
|
8982
|
-
/* @__PURE__ */
|
9073
|
+
/* @__PURE__ */ jsx87(IconPlus5, { color: "blue" })
|
8983
9074
|
] })
|
8984
9075
|
] }) }),
|
8985
|
-
/* @__PURE__ */
|
8986
|
-
/* @__PURE__ */
|
9076
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9077
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
8987
9078
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
8988
9079
|
} }),
|
8989
|
-
/* @__PURE__ */
|
9080
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8990
9081
|
"S\u1EEDa",
|
8991
|
-
/* @__PURE__ */
|
9082
|
+
/* @__PURE__ */ jsx87(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
8992
9083
|
] })
|
8993
9084
|
] }) }),
|
8994
|
-
/* @__PURE__ */
|
8995
|
-
/* @__PURE__ */
|
9085
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9086
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
8996
9087
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
8997
9088
|
} }),
|
8998
|
-
/* @__PURE__ */
|
9089
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8999
9090
|
"X\xF3a",
|
9000
|
-
/* @__PURE__ */
|
9091
|
+
/* @__PURE__ */ jsx87(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
9001
9092
|
] })
|
9002
9093
|
] }) }),
|
9003
|
-
/* @__PURE__ */
|
9004
|
-
/* @__PURE__ */
|
9094
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9095
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
9005
9096
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
9006
9097
|
} }),
|
9007
|
-
/* @__PURE__ */
|
9098
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
9008
9099
|
"In",
|
9009
|
-
/* @__PURE__ */
|
9100
|
+
/* @__PURE__ */ jsx87(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
9010
9101
|
] })
|
9011
9102
|
] }) }),
|
9012
|
-
/* @__PURE__ */
|
9013
|
-
/* @__PURE__ */
|
9103
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9104
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
9014
9105
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
9015
9106
|
} }),
|
9016
|
-
/* @__PURE__ */
|
9107
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
9017
9108
|
"Xu\u1EA5t",
|
9018
|
-
/* @__PURE__ */
|
9109
|
+
/* @__PURE__ */ jsx87(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
9019
9110
|
] })
|
9020
9111
|
] }) })
|
9021
9112
|
] })
|
9022
9113
|
}
|
9023
9114
|
),
|
9024
|
-
/* @__PURE__ */
|
9025
|
-
if (item.links == void 0) return /* @__PURE__ */
|
9026
|
-
/* @__PURE__ */
|
9027
|
-
/* @__PURE__ */
|
9028
|
-
/* @__PURE__ */
|
9029
|
-
/* @__PURE__ */
|
9030
|
-
/* @__PURE__ */
|
9031
|
-
/* @__PURE__ */
|
9032
|
-
/* @__PURE__ */
|
9115
|
+
/* @__PURE__ */ jsx87(Table3.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
9116
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs53(Table3.Tr, { children: [
|
9117
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: item.label }),
|
9118
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9119
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9120
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9121
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9122
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9123
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) })
|
9033
9124
|
] }, idx);
|
9034
|
-
return /* @__PURE__ */
|
9035
|
-
/* @__PURE__ */
|
9125
|
+
return /* @__PURE__ */ jsxs53(React2.Fragment, { children: [
|
9126
|
+
/* @__PURE__ */ jsx87(Table3.Tr, { children: /* @__PURE__ */ jsx87(
|
9036
9127
|
Table3.Td,
|
9037
9128
|
{
|
9038
9129
|
colSpan: 7,
|
9039
9130
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
9040
|
-
children: /* @__PURE__ */
|
9131
|
+
children: /* @__PURE__ */ jsx87(Text15, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
9041
9132
|
}
|
9042
9133
|
) }, item.label),
|
9043
9134
|
item.links.map(
|
9044
9135
|
(item2, idx2) => {
|
9045
9136
|
var _a2, _b2, _c, _d, _e, _f;
|
9046
|
-
return /* @__PURE__ */
|
9047
|
-
/* @__PURE__ */
|
9048
|
-
/* @__PURE__ */
|
9137
|
+
return /* @__PURE__ */ jsxs53(Table3.Tr, { children: [
|
9138
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: item2.label }),
|
9139
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9049
9140
|
Checkbox3,
|
9050
9141
|
{
|
9051
9142
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -9056,7 +9147,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9056
9147
|
}
|
9057
9148
|
}
|
9058
9149
|
) }) }),
|
9059
|
-
/* @__PURE__ */
|
9150
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9060
9151
|
Checkbox3,
|
9061
9152
|
{
|
9062
9153
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -9067,7 +9158,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9067
9158
|
}
|
9068
9159
|
}
|
9069
9160
|
) }) }),
|
9070
|
-
/* @__PURE__ */
|
9161
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9071
9162
|
Checkbox3,
|
9072
9163
|
{
|
9073
9164
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -9078,7 +9169,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9078
9169
|
}
|
9079
9170
|
}
|
9080
9171
|
) }) }),
|
9081
|
-
/* @__PURE__ */
|
9172
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9082
9173
|
Checkbox3,
|
9083
9174
|
{
|
9084
9175
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -9089,7 +9180,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9089
9180
|
}
|
9090
9181
|
}
|
9091
9182
|
) }) }),
|
9092
|
-
/* @__PURE__ */
|
9183
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9093
9184
|
Checkbox3,
|
9094
9185
|
{
|
9095
9186
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -9100,7 +9191,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9100
9191
|
}
|
9101
9192
|
}
|
9102
9193
|
) }) }),
|
9103
|
-
/* @__PURE__ */
|
9194
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9104
9195
|
Checkbox3,
|
9105
9196
|
{
|
9106
9197
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -9156,13 +9247,13 @@ function useGetUserPermission() {
|
|
9156
9247
|
}
|
9157
9248
|
|
9158
9249
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
9159
|
-
import { jsx as
|
9250
|
+
import { jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
|
9160
9251
|
function F_core38677({ menuData: menuData2 }) {
|
9161
|
-
return /* @__PURE__ */
|
9162
|
-
/* @__PURE__ */
|
9163
|
-
/* @__PURE__ */
|
9164
|
-
/* @__PURE__ */
|
9165
|
-
/* @__PURE__ */
|
9252
|
+
return /* @__PURE__ */ jsxs54(Grid2, { grow: true, children: [
|
9253
|
+
/* @__PURE__ */ jsx88(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx88(F_core38677_ReadUser, {}) }),
|
9254
|
+
/* @__PURE__ */ jsx88(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs54(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
9255
|
+
/* @__PURE__ */ jsx88(ScrollArea6.Autosize, { h: "100%", children: /* @__PURE__ */ jsx88(Paper11, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx88(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
9256
|
+
/* @__PURE__ */ jsx88(F_core38677_Save, {})
|
9166
9257
|
] }) })
|
9167
9258
|
] });
|
9168
9259
|
}
|
@@ -9174,7 +9265,7 @@ import { useMemo as useMemo9 } from "react";
|
|
9174
9265
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
9175
9266
|
import { FileInput as FileInput6 } from "@mantine/core";
|
9176
9267
|
import { useForm as useForm11 } from "@mantine/form";
|
9177
|
-
import { jsx as
|
9268
|
+
import { jsx as jsx89, jsxs as jsxs55 } from "react/jsx-runtime";
|
9178
9269
|
function F_core40207_Create({ GuidelineTypeId }) {
|
9179
9270
|
const form = useForm11({
|
9180
9271
|
mode: "uncontrolled",
|
@@ -9184,7 +9275,7 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9184
9275
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9185
9276
|
}
|
9186
9277
|
});
|
9187
|
-
return /* @__PURE__ */
|
9278
|
+
return /* @__PURE__ */ jsxs55(
|
9188
9279
|
MyButtonCreate,
|
9189
9280
|
{
|
9190
9281
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -9197,21 +9288,21 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9197
9288
|
}));
|
9198
9289
|
},
|
9199
9290
|
children: [
|
9200
|
-
/* @__PURE__ */
|
9291
|
+
/* @__PURE__ */ jsx89(
|
9201
9292
|
MyTextInput,
|
9202
9293
|
__spreadValues({
|
9203
9294
|
withAsterisk: true,
|
9204
9295
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9205
9296
|
}, form.getInputProps("code"))
|
9206
9297
|
),
|
9207
|
-
/* @__PURE__ */
|
9298
|
+
/* @__PURE__ */ jsx89(
|
9208
9299
|
MyTextInput,
|
9209
9300
|
__spreadValues({
|
9210
9301
|
withAsterisk: true,
|
9211
9302
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9212
9303
|
}, form.getInputProps("name"))
|
9213
9304
|
),
|
9214
|
-
/* @__PURE__ */
|
9305
|
+
/* @__PURE__ */ jsx89(
|
9215
9306
|
FileInput6,
|
9216
9307
|
__spreadValues({
|
9217
9308
|
withAsterisk: true,
|
@@ -9225,12 +9316,12 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9225
9316
|
}
|
9226
9317
|
|
9227
9318
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
9228
|
-
import { jsx as
|
9319
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
9229
9320
|
function F_core40207_Delete({
|
9230
9321
|
id,
|
9231
9322
|
contextData
|
9232
9323
|
}) {
|
9233
|
-
return /* @__PURE__ */
|
9324
|
+
return /* @__PURE__ */ jsx90(
|
9234
9325
|
MyActionIconDelete,
|
9235
9326
|
{
|
9236
9327
|
contextData,
|
@@ -9242,7 +9333,7 @@ function F_core40207_Delete({
|
|
9242
9333
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
9243
9334
|
import { FileInput as FileInput7 } from "@mantine/core";
|
9244
9335
|
import { useForm as useForm12 } from "@mantine/form";
|
9245
|
-
import { jsx as
|
9336
|
+
import { jsx as jsx91, jsxs as jsxs56 } from "react/jsx-runtime";
|
9246
9337
|
function F_core40207_Update({ values }) {
|
9247
9338
|
var _a;
|
9248
9339
|
const form = useForm12({
|
@@ -9259,7 +9350,7 @@ function F_core40207_Update({ values }) {
|
|
9259
9350
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9260
9351
|
}
|
9261
9352
|
});
|
9262
|
-
return /* @__PURE__ */
|
9353
|
+
return /* @__PURE__ */ jsxs56(
|
9263
9354
|
MyActionIconUpdate,
|
9264
9355
|
{
|
9265
9356
|
form,
|
@@ -9269,21 +9360,21 @@ function F_core40207_Update({ values }) {
|
|
9269
9360
|
}));
|
9270
9361
|
},
|
9271
9362
|
children: [
|
9272
|
-
/* @__PURE__ */
|
9363
|
+
/* @__PURE__ */ jsx91(
|
9273
9364
|
MyTextInput,
|
9274
9365
|
__spreadValues({
|
9275
9366
|
withAsterisk: true,
|
9276
9367
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9277
9368
|
}, form.getInputProps("code"))
|
9278
9369
|
),
|
9279
|
-
/* @__PURE__ */
|
9370
|
+
/* @__PURE__ */ jsx91(
|
9280
9371
|
MyTextInput,
|
9281
9372
|
__spreadValues({
|
9282
9373
|
withAsterisk: true,
|
9283
9374
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9284
9375
|
}, form.getInputProps("name"))
|
9285
9376
|
),
|
9286
|
-
/* @__PURE__ */
|
9377
|
+
/* @__PURE__ */ jsx91(
|
9287
9378
|
FileInput7,
|
9288
9379
|
__spreadValues({
|
9289
9380
|
withAsterisk: true,
|
@@ -9297,7 +9388,7 @@ function F_core40207_Update({ values }) {
|
|
9297
9388
|
}
|
9298
9389
|
|
9299
9390
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
9300
|
-
import { jsx as
|
9391
|
+
import { jsx as jsx92, jsxs as jsxs57 } from "react/jsx-runtime";
|
9301
9392
|
function F_core40207_Read({ GuidelineTypeId }) {
|
9302
9393
|
const query = useQuery11({
|
9303
9394
|
queryKey: ["F_core40207_Read"],
|
@@ -9322,7 +9413,7 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9322
9413
|
{
|
9323
9414
|
header: "File",
|
9324
9415
|
accessorFn: (row) => {
|
9325
|
-
return /* @__PURE__ */
|
9416
|
+
return /* @__PURE__ */ jsx92(MyCenterFull, { children: /* @__PURE__ */ jsx92(MyButtonViewPDF, { id: row.id }) });
|
9326
9417
|
}
|
9327
9418
|
}
|
9328
9419
|
],
|
@@ -9330,16 +9421,16 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9330
9421
|
);
|
9331
9422
|
if (query.isLoading) return "Loading...";
|
9332
9423
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
9333
|
-
return /* @__PURE__ */
|
9424
|
+
return /* @__PURE__ */ jsx92(
|
9334
9425
|
MyDataTable,
|
9335
9426
|
{
|
9336
9427
|
columns,
|
9337
9428
|
data: query.data,
|
9338
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9429
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx92(F_core40207_Create, { GuidelineTypeId }),
|
9339
9430
|
renderRowActions: ({ row }) => {
|
9340
|
-
return /* @__PURE__ */
|
9341
|
-
/* @__PURE__ */
|
9342
|
-
/* @__PURE__ */
|
9431
|
+
return /* @__PURE__ */ jsxs57(MyCenterFull, { children: [
|
9432
|
+
/* @__PURE__ */ jsx92(F_core40207_Update, { values: row.original }),
|
9433
|
+
/* @__PURE__ */ jsx92(
|
9343
9434
|
F_core40207_Delete,
|
9344
9435
|
{
|
9345
9436
|
id: row.original.id,
|
@@ -9353,21 +9444,21 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9353
9444
|
}
|
9354
9445
|
|
9355
9446
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
9356
|
-
import { jsx as
|
9447
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
9357
9448
|
function F_core40207({ GuidelineTypeId }) {
|
9358
|
-
return /* @__PURE__ */
|
9449
|
+
return /* @__PURE__ */ jsx93(F_core40207_Read, { GuidelineTypeId });
|
9359
9450
|
}
|
9360
9451
|
|
9361
9452
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9362
|
-
import { Group as
|
9453
|
+
import { Group as Group17 } from "@mantine/core";
|
9363
9454
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
9364
9455
|
import { useMemo as useMemo10 } from "react";
|
9365
9456
|
|
9366
9457
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
9367
|
-
import { jsx as
|
9458
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
9368
9459
|
var ENDPOINT = "/Role/Delete";
|
9369
9460
|
function F_core47643_Delete({ values }) {
|
9370
|
-
return /* @__PURE__ */
|
9461
|
+
return /* @__PURE__ */ jsx94(
|
9371
9462
|
MyActionIconDelete,
|
9372
9463
|
{
|
9373
9464
|
contextData: values.code,
|
@@ -9378,28 +9469,28 @@ function F_core47643_Delete({ values }) {
|
|
9378
9469
|
|
9379
9470
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
9380
9471
|
import { useForm as useForm13 } from "@mantine/form";
|
9381
|
-
import { jsx as
|
9472
|
+
import { jsx as jsx95, jsxs as jsxs58 } from "react/jsx-runtime";
|
9382
9473
|
function F_core47643_Form({ values }) {
|
9383
9474
|
const form = useForm13({
|
9384
9475
|
mode: "uncontrolled",
|
9385
9476
|
initialValues: values
|
9386
9477
|
});
|
9387
|
-
if (values) return /* @__PURE__ */
|
9478
|
+
if (values) return /* @__PURE__ */ jsxs58(MyActionIconUpdate, { form, onSubmit: async () => {
|
9388
9479
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
9389
9480
|
}, children: [
|
9390
|
-
/* @__PURE__ */
|
9391
|
-
/* @__PURE__ */
|
9481
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
9482
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9392
9483
|
] });
|
9393
|
-
return /* @__PURE__ */
|
9484
|
+
return /* @__PURE__ */ jsxs58(MyButtonCreate, { form, onSubmit: async () => {
|
9394
9485
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
9395
9486
|
}, children: [
|
9396
|
-
/* @__PURE__ */
|
9397
|
-
/* @__PURE__ */
|
9487
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
9488
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9398
9489
|
] });
|
9399
9490
|
}
|
9400
9491
|
|
9401
9492
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9402
|
-
import { jsx as
|
9493
|
+
import { jsx as jsx96, jsxs as jsxs59 } from "react/jsx-runtime";
|
9403
9494
|
function F_core47643_Read() {
|
9404
9495
|
const query = useQ_core47643_GetAdminRole();
|
9405
9496
|
const columns = useMemo10(() => [
|
@@ -9414,15 +9505,15 @@ function F_core47643_Read() {
|
|
9414
9505
|
], []);
|
9415
9506
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
9416
9507
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
9417
|
-
return /* @__PURE__ */
|
9508
|
+
return /* @__PURE__ */ jsx96(
|
9418
9509
|
MyDataTable,
|
9419
9510
|
{
|
9420
9511
|
data: query.data,
|
9421
9512
|
columns,
|
9422
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9423
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9424
|
-
/* @__PURE__ */
|
9425
|
-
/* @__PURE__ */
|
9513
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx96(Group17, { children: /* @__PURE__ */ jsx96(F_core47643_Form, {}) }),
|
9514
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
9515
|
+
/* @__PURE__ */ jsx96(F_core47643_Form, { values: row.original }),
|
9516
|
+
/* @__PURE__ */ jsx96(F_core47643_Delete, { values: row.original })
|
9426
9517
|
] })
|
9427
9518
|
}
|
9428
9519
|
);
|
@@ -9439,16 +9530,16 @@ function useQ_core47643_GetAdminRole() {
|
|
9439
9530
|
}
|
9440
9531
|
|
9441
9532
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
9442
|
-
import { jsx as
|
9533
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
9443
9534
|
function F_core47643() {
|
9444
|
-
return /* @__PURE__ */
|
9535
|
+
return /* @__PURE__ */ jsx97(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx97(F_core47643_Read, {}) });
|
9445
9536
|
}
|
9446
9537
|
|
9447
9538
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
9448
9539
|
import { useEffect as useEffect12 } from "react";
|
9449
9540
|
|
9450
9541
|
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
9451
|
-
import { Grid as Grid3, Paper as
|
9542
|
+
import { Grid as Grid3, Paper as Paper12 } from "@mantine/core";
|
9452
9543
|
import { useForm as useForm14 } from "@mantine/form";
|
9453
9544
|
import { useEffect as useEffect11 } from "react";
|
9454
9545
|
|
@@ -9465,7 +9556,7 @@ function useS_core60524() {
|
|
9465
9556
|
}
|
9466
9557
|
|
9467
9558
|
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
9468
|
-
import { jsx as
|
9559
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
9469
9560
|
function F_core60524_Save({
|
9470
9561
|
form
|
9471
9562
|
}) {
|
@@ -9499,7 +9590,7 @@ function F_core60524_Save({
|
|
9499
9590
|
}
|
9500
9591
|
});
|
9501
9592
|
}
|
9502
|
-
return /* @__PURE__ */
|
9593
|
+
return /* @__PURE__ */ jsx98(
|
9503
9594
|
MyButton,
|
9504
9595
|
{
|
9505
9596
|
disabled: !form.isDirty(),
|
@@ -9510,7 +9601,7 @@ function F_core60524_Save({
|
|
9510
9601
|
}
|
9511
9602
|
|
9512
9603
|
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
9513
|
-
import { jsx as
|
9604
|
+
import { jsx as jsx99, jsxs as jsxs60 } from "react/jsx-runtime";
|
9514
9605
|
function F_core60524_Form() {
|
9515
9606
|
const query = useQ_AQ_GetAQModule();
|
9516
9607
|
const form = useForm14({
|
@@ -9541,14 +9632,14 @@ function F_core60524_Form() {
|
|
9541
9632
|
form.setInitialValues(values);
|
9542
9633
|
form.setValues(values);
|
9543
9634
|
}, [query.data]);
|
9544
|
-
return /* @__PURE__ */
|
9545
|
-
/* @__PURE__ */
|
9546
|
-
/* @__PURE__ */
|
9547
|
-
/* @__PURE__ */
|
9548
|
-
/* @__PURE__ */
|
9549
|
-
/* @__PURE__ */
|
9550
|
-
/* @__PURE__ */
|
9551
|
-
/* @__PURE__ */
|
9635
|
+
return /* @__PURE__ */ jsxs60(Paper12, { p: "md", children: [
|
9636
|
+
/* @__PURE__ */ jsxs60(Grid3, { children: [
|
9637
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
9638
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
9639
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
9640
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
9641
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
9642
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9552
9643
|
MyDateInput,
|
9553
9644
|
{
|
9554
9645
|
value: form.getValues().registrationDate,
|
@@ -9556,7 +9647,7 @@ function F_core60524_Form() {
|
|
9556
9647
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
9557
9648
|
}
|
9558
9649
|
) }),
|
9559
|
-
/* @__PURE__ */
|
9650
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9560
9651
|
MyDateInput,
|
9561
9652
|
{
|
9562
9653
|
value: form.getValues().limiteDate,
|
@@ -9564,7 +9655,7 @@ function F_core60524_Form() {
|
|
9564
9655
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
9565
9656
|
}
|
9566
9657
|
) }),
|
9567
|
-
/* @__PURE__ */
|
9658
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9568
9659
|
MyFileInput,
|
9569
9660
|
{
|
9570
9661
|
accept: "image/png,image/jpeg",
|
@@ -9576,7 +9667,7 @@ function F_core60524_Form() {
|
|
9576
9667
|
}
|
9577
9668
|
}
|
9578
9669
|
) }),
|
9579
|
-
/* @__PURE__ */
|
9670
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9580
9671
|
MyFileInput,
|
9581
9672
|
{
|
9582
9673
|
accept: "image/png,image/jpeg",
|
@@ -9589,18 +9680,18 @@ function F_core60524_Form() {
|
|
9589
9680
|
}
|
9590
9681
|
) })
|
9591
9682
|
] }),
|
9592
|
-
/* @__PURE__ */
|
9683
|
+
/* @__PURE__ */ jsx99(MyFlexEnd, { children: /* @__PURE__ */ jsx99(F_core60524_Save, { form }) })
|
9593
9684
|
] });
|
9594
9685
|
}
|
9595
9686
|
|
9596
9687
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
9597
|
-
import { jsx as
|
9688
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
9598
9689
|
function F_core60524({ AQModuleId }) {
|
9599
9690
|
const store = useS_core60524();
|
9600
9691
|
useEffect12(() => {
|
9601
9692
|
store.setProperty("AQModuleId", AQModuleId);
|
9602
9693
|
}, []);
|
9603
|
-
return /* @__PURE__ */
|
9694
|
+
return /* @__PURE__ */ jsx100(F_core60524_Form, {});
|
9604
9695
|
}
|
9605
9696
|
|
9606
9697
|
// src/constants/enum/ENUM_EMAILCONFIG.ts
|
@@ -9619,7 +9710,7 @@ import { useMemo as useMemo11 } from "react";
|
|
9619
9710
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
9620
9711
|
import { PasswordInput } from "@mantine/core";
|
9621
9712
|
import { useForm as useForm15 } from "@mantine/form";
|
9622
|
-
import { jsx as
|
9713
|
+
import { jsx as jsx101, jsxs as jsxs61 } from "react/jsx-runtime";
|
9623
9714
|
function F_core64229_Form({ values }) {
|
9624
9715
|
const form = useForm15({
|
9625
9716
|
mode: "uncontrolled",
|
@@ -9645,27 +9736,27 @@ function F_core64229_Form({ values }) {
|
|
9645
9736
|
"password": formValues.password
|
9646
9737
|
});
|
9647
9738
|
}
|
9648
|
-
if (values) return /* @__PURE__ */
|
9739
|
+
if (values) return /* @__PURE__ */ jsx101(
|
9649
9740
|
MyActionIconUpdate,
|
9650
9741
|
{
|
9651
9742
|
form,
|
9652
9743
|
onSubmit: handleSubmit,
|
9653
|
-
children: /* @__PURE__ */
|
9744
|
+
children: /* @__PURE__ */ jsx101(FormInput, { form })
|
9654
9745
|
}
|
9655
9746
|
);
|
9656
|
-
return /* @__PURE__ */
|
9747
|
+
return /* @__PURE__ */ jsx101(
|
9657
9748
|
MyButtonCreate,
|
9658
9749
|
{
|
9659
9750
|
form,
|
9660
9751
|
onSubmit: handleSubmit,
|
9661
|
-
children: /* @__PURE__ */
|
9752
|
+
children: /* @__PURE__ */ jsx101(FormInput, { form })
|
9662
9753
|
}
|
9663
9754
|
);
|
9664
9755
|
}
|
9665
9756
|
function FormInput({ form }) {
|
9666
9757
|
var _a, _b;
|
9667
|
-
return /* @__PURE__ */
|
9668
|
-
/* @__PURE__ */
|
9758
|
+
return /* @__PURE__ */ jsxs61(MyFlexColumn, { children: [
|
9759
|
+
/* @__PURE__ */ jsx101(
|
9669
9760
|
MySelect,
|
9670
9761
|
__spreadProps(__spreadValues({
|
9671
9762
|
label: "Ph\xE2n h\u1EC7",
|
@@ -9674,25 +9765,25 @@ function FormInput({ form }) {
|
|
9674
9765
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
9675
9766
|
})
|
9676
9767
|
),
|
9677
|
-
/* @__PURE__ */
|
9768
|
+
/* @__PURE__ */ jsx101(
|
9678
9769
|
MyTextInput,
|
9679
9770
|
__spreadValues({
|
9680
9771
|
label: "Host mail server"
|
9681
9772
|
}, form.getInputProps("hostMailServer"))
|
9682
9773
|
),
|
9683
|
-
/* @__PURE__ */
|
9774
|
+
/* @__PURE__ */ jsx101(
|
9684
9775
|
MyNumberInput,
|
9685
9776
|
__spreadValues({
|
9686
9777
|
label: "Outgoing port"
|
9687
9778
|
}, form.getInputProps("outgoingPort"))
|
9688
9779
|
),
|
9689
|
-
/* @__PURE__ */
|
9780
|
+
/* @__PURE__ */ jsx101(
|
9690
9781
|
MyNumberInput,
|
9691
9782
|
__spreadValues({
|
9692
9783
|
label: "Incoming port"
|
9693
9784
|
}, form.getInputProps("incomingPort"))
|
9694
9785
|
),
|
9695
|
-
/* @__PURE__ */
|
9786
|
+
/* @__PURE__ */ jsx101(
|
9696
9787
|
MySelect,
|
9697
9788
|
{
|
9698
9789
|
label: "SSL",
|
@@ -9701,13 +9792,13 @@ function FormInput({ form }) {
|
|
9701
9792
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
9702
9793
|
}
|
9703
9794
|
),
|
9704
|
-
/* @__PURE__ */
|
9795
|
+
/* @__PURE__ */ jsx101(
|
9705
9796
|
MyTextInput,
|
9706
9797
|
__spreadValues({
|
9707
9798
|
label: "Username"
|
9708
9799
|
}, form.getInputProps("userName"))
|
9709
9800
|
),
|
9710
|
-
/* @__PURE__ */
|
9801
|
+
/* @__PURE__ */ jsx101(
|
9711
9802
|
PasswordInput,
|
9712
9803
|
__spreadValues({
|
9713
9804
|
label: "Password",
|
@@ -9718,9 +9809,9 @@ function FormInput({ form }) {
|
|
9718
9809
|
}
|
9719
9810
|
|
9720
9811
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
9721
|
-
import { jsx as
|
9812
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
9722
9813
|
function F_core64229_Delete({ values }) {
|
9723
|
-
return /* @__PURE__ */
|
9814
|
+
return /* @__PURE__ */ jsx102(
|
9724
9815
|
MyActionIconDelete,
|
9725
9816
|
{
|
9726
9817
|
contextData: values == null ? void 0 : values.code,
|
@@ -9734,7 +9825,7 @@ function F_core64229_Delete({ values }) {
|
|
9734
9825
|
}
|
9735
9826
|
|
9736
9827
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
9737
|
-
import { jsx as
|
9828
|
+
import { jsx as jsx103, jsxs as jsxs62 } from "react/jsx-runtime";
|
9738
9829
|
function F_core64229_Read() {
|
9739
9830
|
const query = useQuery13({
|
9740
9831
|
queryKey: ["F_core64229_Read"],
|
@@ -9779,39 +9870,39 @@ function F_core64229_Read() {
|
|
9779
9870
|
}
|
9780
9871
|
], []);
|
9781
9872
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
9782
|
-
return /* @__PURE__ */
|
9873
|
+
return /* @__PURE__ */ jsx103(
|
9783
9874
|
MyDataTable,
|
9784
9875
|
{
|
9785
9876
|
columns,
|
9786
9877
|
data: query.data,
|
9787
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9788
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9789
|
-
/* @__PURE__ */
|
9790
|
-
/* @__PURE__ */
|
9878
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx103(F_core64229_Form, {}),
|
9879
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs62(MyCenterFull, { children: [
|
9880
|
+
/* @__PURE__ */ jsx103(F_core64229_Form, { values: row.original }),
|
9881
|
+
/* @__PURE__ */ jsx103(F_core64229_Delete, { values: row.original })
|
9791
9882
|
] })
|
9792
9883
|
}
|
9793
9884
|
);
|
9794
9885
|
}
|
9795
9886
|
|
9796
9887
|
// src/modules-features/admin/core/core64229/F_core64229.tsx
|
9797
|
-
import { jsx as
|
9888
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
9798
9889
|
function F_core64229() {
|
9799
|
-
return /* @__PURE__ */
|
9890
|
+
return /* @__PURE__ */ jsx104(F_core64229_Read, {});
|
9800
9891
|
}
|
9801
9892
|
|
9802
9893
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9803
|
-
import { Button as
|
9894
|
+
import { Button as Button18, Group as Group19 } from "@mantine/core";
|
9804
9895
|
import { IconShield } from "@tabler/icons-react";
|
9805
9896
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
9806
9897
|
import { useRouter as useRouter3 } from "next/navigation";
|
9807
9898
|
import { useMemo as useMemo13, useState as useState13 } from "react";
|
9808
9899
|
|
9809
9900
|
// src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
|
9810
|
-
import { Button as
|
9901
|
+
import { Button as Button17, Fieldset as Fieldset6, Group as Group18, Table as Table4 } from "@mantine/core";
|
9811
9902
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
9812
9903
|
import { useMutation as useMutation7, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
9813
9904
|
import { useEffect as useEffect13, useMemo as useMemo12, useState as useState12 } from "react";
|
9814
|
-
import { jsx as
|
9905
|
+
import { jsx as jsx105, jsxs as jsxs63 } from "react/jsx-runtime";
|
9815
9906
|
function F_core71678_ChangePermission({ user }) {
|
9816
9907
|
const disc = useDisclosure12();
|
9817
9908
|
const queryClient = useQueryClient5();
|
@@ -9858,32 +9949,32 @@ function F_core71678_ChangePermission({ user }) {
|
|
9858
9949
|
}, {});
|
9859
9950
|
setRowSelection(result);
|
9860
9951
|
}, []);
|
9861
|
-
return /* @__PURE__ */
|
9862
|
-
/* @__PURE__ */
|
9952
|
+
return /* @__PURE__ */ jsxs63(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
|
9953
|
+
/* @__PURE__ */ jsx105(
|
9863
9954
|
Table4,
|
9864
9955
|
{
|
9865
9956
|
w: "100%",
|
9866
9957
|
variant: "vertical",
|
9867
9958
|
layout: "fixed",
|
9868
|
-
children: /* @__PURE__ */
|
9869
|
-
/* @__PURE__ */
|
9870
|
-
/* @__PURE__ */
|
9871
|
-
/* @__PURE__ */
|
9959
|
+
children: /* @__PURE__ */ jsxs63(Table4.Tbody, { children: [
|
9960
|
+
/* @__PURE__ */ jsxs63(Table4.Tr, { children: [
|
9961
|
+
/* @__PURE__ */ jsx105(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
9962
|
+
/* @__PURE__ */ jsx105(Table4.Td, { children: user.fullName })
|
9872
9963
|
] }),
|
9873
|
-
/* @__PURE__ */
|
9874
|
-
/* @__PURE__ */
|
9875
|
-
/* @__PURE__ */
|
9964
|
+
/* @__PURE__ */ jsxs63(Table4.Tr, { children: [
|
9965
|
+
/* @__PURE__ */ jsx105(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
9966
|
+
/* @__PURE__ */ jsx105(Table4.Td, { children: user.userName })
|
9876
9967
|
] }),
|
9877
|
-
/* @__PURE__ */
|
9878
|
-
/* @__PURE__ */
|
9879
|
-
/* @__PURE__ */
|
9968
|
+
/* @__PURE__ */ jsxs63(Table4.Tr, { children: [
|
9969
|
+
/* @__PURE__ */ jsx105(Table4.Th, { children: "Email:" }),
|
9970
|
+
/* @__PURE__ */ jsx105(Table4.Td, { children: user.email })
|
9880
9971
|
] })
|
9881
9972
|
] })
|
9882
9973
|
}
|
9883
9974
|
),
|
9884
9975
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
9885
9976
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
9886
|
-
/* @__PURE__ */
|
9977
|
+
/* @__PURE__ */ jsx105(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx105(
|
9887
9978
|
MyDataTable,
|
9888
9979
|
{
|
9889
9980
|
enableRowSelection: true,
|
@@ -9907,13 +9998,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
9907
9998
|
data: query.data
|
9908
9999
|
}
|
9909
10000
|
) }),
|
9910
|
-
/* @__PURE__ */
|
10001
|
+
/* @__PURE__ */ jsx105(Group18, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx105(Button17, { onClick: handleSave, children: "L\u01B0u" }) })
|
9911
10002
|
] });
|
9912
10003
|
}
|
9913
10004
|
|
9914
10005
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
9915
10006
|
import { useForm as useForm16 } from "@mantine/form";
|
9916
|
-
import { jsx as
|
10007
|
+
import { jsx as jsx106, jsxs as jsxs64 } from "react/jsx-runtime";
|
9917
10008
|
var ENDPOINT2 = "/Account/create";
|
9918
10009
|
function F_core71678_Create() {
|
9919
10010
|
const form = useForm16({
|
@@ -9941,21 +10032,21 @@ function F_core71678_Create() {
|
|
9941
10032
|
AQModuleId: 1002
|
9942
10033
|
}));
|
9943
10034
|
}
|
9944
|
-
return /* @__PURE__ */
|
9945
|
-
/* @__PURE__ */
|
9946
|
-
/* @__PURE__ */
|
9947
|
-
/* @__PURE__ */
|
9948
|
-
/* @__PURE__ */
|
9949
|
-
/* @__PURE__ */
|
9950
|
-
/* @__PURE__ */
|
10035
|
+
return /* @__PURE__ */ jsxs64(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
10036
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
10037
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
10038
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
10039
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
10040
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
10041
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9951
10042
|
] });
|
9952
10043
|
}
|
9953
10044
|
|
9954
10045
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
9955
|
-
import { jsx as
|
10046
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
9956
10047
|
var ENDPOINT3 = "/Account/delete";
|
9957
10048
|
function F_core71678_Delete({ id, code }) {
|
9958
|
-
return /* @__PURE__ */
|
10049
|
+
return /* @__PURE__ */ jsx107(
|
9959
10050
|
MyActionIconDelete,
|
9960
10051
|
{
|
9961
10052
|
contextData: code,
|
@@ -9967,7 +10058,7 @@ function F_core71678_Delete({ id, code }) {
|
|
9967
10058
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
9968
10059
|
import { useForm as useForm17 } from "@mantine/form";
|
9969
10060
|
import { useEffect as useEffect14 } from "react";
|
9970
|
-
import { jsx as
|
10061
|
+
import { jsx as jsx108, jsxs as jsxs65 } from "react/jsx-runtime";
|
9971
10062
|
function F_core71678_Update({ user }) {
|
9972
10063
|
const form = useForm17({
|
9973
10064
|
initialValues: user
|
@@ -9975,7 +10066,7 @@ function F_core71678_Update({ user }) {
|
|
9975
10066
|
useEffect14(() => {
|
9976
10067
|
console.log(form.values);
|
9977
10068
|
}, [form.values]);
|
9978
|
-
return /* @__PURE__ */
|
10069
|
+
return /* @__PURE__ */ jsx108(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
9979
10070
|
return await baseAxios_default.post(
|
9980
10071
|
"/Account/update",
|
9981
10072
|
__spreadProps(__spreadValues({}, values), {
|
@@ -9987,17 +10078,17 @@ function F_core71678_Update({ user }) {
|
|
9987
10078
|
workingUnitId: null
|
9988
10079
|
})
|
9989
10080
|
);
|
9990
|
-
}, children: /* @__PURE__ */
|
9991
|
-
/* @__PURE__ */
|
9992
|
-
/* @__PURE__ */
|
9993
|
-
/* @__PURE__ */
|
9994
|
-
/* @__PURE__ */
|
9995
|
-
/* @__PURE__ */
|
10081
|
+
}, children: /* @__PURE__ */ jsxs65(MyFlexColumn, { children: [
|
10082
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
10083
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
10084
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
10085
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
10086
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9996
10087
|
] }) });
|
9997
10088
|
}
|
9998
10089
|
|
9999
10090
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
10000
|
-
import { jsx as
|
10091
|
+
import { jsx as jsx109, jsxs as jsxs66 } from "react/jsx-runtime";
|
10001
10092
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
10002
10093
|
function F_core71678_Read() {
|
10003
10094
|
const router = useRouter3();
|
@@ -10029,25 +10120,25 @@ function F_core71678_Read() {
|
|
10029
10120
|
},
|
10030
10121
|
{
|
10031
10122
|
header: "Quy\u1EC1n",
|
10032
|
-
accessorFn: (row) => /* @__PURE__ */
|
10123
|
+
accessorFn: (row) => /* @__PURE__ */ jsx109(F_core71678_ChangePermission, { user: row })
|
10033
10124
|
}
|
10034
10125
|
],
|
10035
10126
|
[]
|
10036
10127
|
);
|
10037
10128
|
if (AllUserQuery.isLoading) return "Loading...";
|
10038
|
-
return /* @__PURE__ */
|
10129
|
+
return /* @__PURE__ */ jsx109(
|
10039
10130
|
MyDataTable,
|
10040
10131
|
{
|
10041
10132
|
columns,
|
10042
10133
|
data: AllUserQuery.data,
|
10043
10134
|
renderTopToolbarCustomActions: () => {
|
10044
|
-
return /* @__PURE__ */
|
10045
|
-
/* @__PURE__ */
|
10046
|
-
/* @__PURE__ */
|
10047
|
-
|
10135
|
+
return /* @__PURE__ */ jsxs66(Group19, { children: [
|
10136
|
+
/* @__PURE__ */ jsx109(F_core71678_Create, {}),
|
10137
|
+
/* @__PURE__ */ jsx109(
|
10138
|
+
Button18,
|
10048
10139
|
{
|
10049
10140
|
color: "violet",
|
10050
|
-
leftSection: /* @__PURE__ */
|
10141
|
+
leftSection: /* @__PURE__ */ jsx109(IconShield, {}),
|
10051
10142
|
onClick: () => {
|
10052
10143
|
router.push("core47643");
|
10053
10144
|
},
|
@@ -10057,9 +10148,9 @@ function F_core71678_Read() {
|
|
10057
10148
|
] });
|
10058
10149
|
},
|
10059
10150
|
renderRowActions: ({ row }) => {
|
10060
|
-
return /* @__PURE__ */
|
10061
|
-
/* @__PURE__ */
|
10062
|
-
/* @__PURE__ */
|
10151
|
+
return /* @__PURE__ */ jsxs66(MyCenterFull, { children: [
|
10152
|
+
/* @__PURE__ */ jsx109(F_core71678_Update, { user: row.original }),
|
10153
|
+
/* @__PURE__ */ jsx109(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
10063
10154
|
] });
|
10064
10155
|
}
|
10065
10156
|
}
|
@@ -10067,9 +10158,9 @@ function F_core71678_Read() {
|
|
10067
10158
|
}
|
10068
10159
|
|
10069
10160
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
10070
|
-
import { jsx as
|
10161
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
10071
10162
|
function F_core71678() {
|
10072
|
-
return /* @__PURE__ */
|
10163
|
+
return /* @__PURE__ */ jsx110(F_core71678_Read, {});
|
10073
10164
|
}
|
10074
10165
|
|
10075
10166
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
@@ -10079,7 +10170,7 @@ import { useMemo as useMemo14 } from "react";
|
|
10079
10170
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
10080
10171
|
import { FileInput as FileInput8 } from "@mantine/core";
|
10081
10172
|
import { useForm as useForm18 } from "@mantine/form";
|
10082
|
-
import { jsx as
|
10173
|
+
import { jsx as jsx111, jsxs as jsxs67 } from "react/jsx-runtime";
|
10083
10174
|
function F_core76318_Create({ SecurityTypeId }) {
|
10084
10175
|
const form = useForm18({
|
10085
10176
|
mode: "uncontrolled",
|
@@ -10090,7 +10181,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10090
10181
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10091
10182
|
}
|
10092
10183
|
});
|
10093
|
-
return /* @__PURE__ */
|
10184
|
+
return /* @__PURE__ */ jsxs67(
|
10094
10185
|
MyButtonCreate,
|
10095
10186
|
{
|
10096
10187
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -10103,28 +10194,28 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10103
10194
|
}));
|
10104
10195
|
},
|
10105
10196
|
children: [
|
10106
|
-
/* @__PURE__ */
|
10197
|
+
/* @__PURE__ */ jsx111(
|
10107
10198
|
MyTextInput,
|
10108
10199
|
__spreadValues({
|
10109
10200
|
withAsterisk: true,
|
10110
10201
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10111
10202
|
}, form.getInputProps("decisionCode"))
|
10112
10203
|
),
|
10113
|
-
/* @__PURE__ */
|
10204
|
+
/* @__PURE__ */ jsx111(
|
10114
10205
|
MyDateInput,
|
10115
10206
|
__spreadValues({
|
10116
10207
|
withAsterisk: true,
|
10117
10208
|
label: "Ng\xE0y ban h\xE0nh"
|
10118
10209
|
}, form.getInputProps("promulgateDate"))
|
10119
10210
|
),
|
10120
|
-
/* @__PURE__ */
|
10211
|
+
/* @__PURE__ */ jsx111(
|
10121
10212
|
MyTextInput,
|
10122
10213
|
__spreadValues({
|
10123
10214
|
withAsterisk: true,
|
10124
10215
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10125
10216
|
}, form.getInputProps("name"))
|
10126
10217
|
),
|
10127
|
-
/* @__PURE__ */
|
10218
|
+
/* @__PURE__ */ jsx111(
|
10128
10219
|
FileInput8,
|
10129
10220
|
__spreadValues({
|
10130
10221
|
withAsterisk: true,
|
@@ -10138,12 +10229,12 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10138
10229
|
}
|
10139
10230
|
|
10140
10231
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
10141
|
-
import { jsx as
|
10232
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
10142
10233
|
function F_core76318_Delete({
|
10143
10234
|
id,
|
10144
10235
|
contextData
|
10145
10236
|
}) {
|
10146
|
-
return /* @__PURE__ */
|
10237
|
+
return /* @__PURE__ */ jsx112(
|
10147
10238
|
MyActionIconDelete,
|
10148
10239
|
{
|
10149
10240
|
contextData,
|
@@ -10155,7 +10246,7 @@ function F_core76318_Delete({
|
|
10155
10246
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
10156
10247
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
10157
10248
|
import { useForm as useForm19 } from "@mantine/form";
|
10158
|
-
import { jsx as
|
10249
|
+
import { jsx as jsx113, jsxs as jsxs68 } from "react/jsx-runtime";
|
10159
10250
|
function F_core76318_Update({ values }) {
|
10160
10251
|
var _a;
|
10161
10252
|
const form = useForm19({
|
@@ -10174,7 +10265,7 @@ function F_core76318_Update({ values }) {
|
|
10174
10265
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10175
10266
|
}
|
10176
10267
|
});
|
10177
|
-
return /* @__PURE__ */
|
10268
|
+
return /* @__PURE__ */ jsxs68(
|
10178
10269
|
MyActionIconUpdate,
|
10179
10270
|
{
|
10180
10271
|
form,
|
@@ -10184,28 +10275,28 @@ function F_core76318_Update({ values }) {
|
|
10184
10275
|
}));
|
10185
10276
|
},
|
10186
10277
|
children: [
|
10187
|
-
/* @__PURE__ */
|
10278
|
+
/* @__PURE__ */ jsx113(
|
10188
10279
|
TextInput5,
|
10189
10280
|
__spreadValues({
|
10190
10281
|
withAsterisk: true,
|
10191
10282
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10192
10283
|
}, form.getInputProps("decisionCode"))
|
10193
10284
|
),
|
10194
|
-
/* @__PURE__ */
|
10285
|
+
/* @__PURE__ */ jsx113(
|
10195
10286
|
MyDateInput,
|
10196
10287
|
__spreadValues({
|
10197
10288
|
withAsterisk: true,
|
10198
10289
|
label: "Ng\xE0y ban h\xE0nh"
|
10199
10290
|
}, form.getInputProps("promulgateDate"))
|
10200
10291
|
),
|
10201
|
-
/* @__PURE__ */
|
10292
|
+
/* @__PURE__ */ jsx113(
|
10202
10293
|
TextInput5,
|
10203
10294
|
__spreadValues({
|
10204
10295
|
withAsterisk: true,
|
10205
10296
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10206
10297
|
}, form.getInputProps("name"))
|
10207
10298
|
),
|
10208
|
-
/* @__PURE__ */
|
10299
|
+
/* @__PURE__ */ jsx113(
|
10209
10300
|
FileInput9,
|
10210
10301
|
__spreadValues({
|
10211
10302
|
withAsterisk: true,
|
@@ -10218,7 +10309,7 @@ function F_core76318_Update({ values }) {
|
|
10218
10309
|
}
|
10219
10310
|
|
10220
10311
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
10221
|
-
import { jsx as
|
10312
|
+
import { jsx as jsx114, jsxs as jsxs69 } from "react/jsx-runtime";
|
10222
10313
|
function F_core76318_Read({ SecurityTypeId }) {
|
10223
10314
|
const query = useQuery16({
|
10224
10315
|
queryKey: ["F_core76318_Read"],
|
@@ -10247,7 +10338,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10247
10338
|
{
|
10248
10339
|
header: "File",
|
10249
10340
|
accessorFn: (row) => {
|
10250
|
-
return /* @__PURE__ */
|
10341
|
+
return /* @__PURE__ */ jsx114(MyCenterFull, { children: /* @__PURE__ */ jsx114(MyButtonViewPDF, { id: row.id }) });
|
10251
10342
|
}
|
10252
10343
|
}
|
10253
10344
|
],
|
@@ -10255,17 +10346,17 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10255
10346
|
);
|
10256
10347
|
if (query.isLoading) return "Loading...";
|
10257
10348
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
10258
|
-
return /* @__PURE__ */
|
10349
|
+
return /* @__PURE__ */ jsx114(
|
10259
10350
|
MyDataTable,
|
10260
10351
|
{
|
10261
10352
|
columns,
|
10262
10353
|
data: query.data,
|
10263
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
10354
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx114(F_core76318_Create, { SecurityTypeId }),
|
10264
10355
|
renderRowActions: ({ row }) => {
|
10265
10356
|
var _a;
|
10266
|
-
return /* @__PURE__ */
|
10267
|
-
/* @__PURE__ */
|
10268
|
-
/* @__PURE__ */
|
10357
|
+
return /* @__PURE__ */ jsxs69(MyCenterFull, { children: [
|
10358
|
+
/* @__PURE__ */ jsx114(F_core76318_Update, { values: row.original }),
|
10359
|
+
/* @__PURE__ */ jsx114(
|
10269
10360
|
F_core76318_Delete,
|
10270
10361
|
{
|
10271
10362
|
id: row.original.id,
|
@@ -10279,19 +10370,19 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10279
10370
|
}
|
10280
10371
|
|
10281
10372
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
10282
|
-
import { jsx as
|
10373
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
10283
10374
|
function F_core76318({ SecurityTypeId }) {
|
10284
|
-
return /* @__PURE__ */
|
10375
|
+
return /* @__PURE__ */ jsx115(F_core76318_Read, { SecurityTypeId });
|
10285
10376
|
}
|
10286
10377
|
|
10287
10378
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
10288
|
-
import { Grid as Grid4, Paper as
|
10379
|
+
import { Grid as Grid4, Paper as Paper13, ScrollArea as ScrollArea8 } from "@mantine/core";
|
10289
10380
|
|
10290
10381
|
// src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
|
10291
10382
|
import { Container as Container5 } from "@mantine/core";
|
10292
10383
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
10293
10384
|
import { useEffect as useEffect15, useMemo as useMemo15, useState as useState14 } from "react";
|
10294
|
-
import { jsx as
|
10385
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
10295
10386
|
function F_core83092_ReadUser() {
|
10296
10387
|
const store = useS_core83092();
|
10297
10388
|
const query = useQ_core83092_Account_GetAdminAccount();
|
@@ -10324,7 +10415,7 @@ function F_core83092_ReadUser() {
|
|
10324
10415
|
}, [query.data]);
|
10325
10416
|
if (query.isLoading) return "Loading...";
|
10326
10417
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
10327
|
-
return /* @__PURE__ */
|
10418
|
+
return /* @__PURE__ */ jsx116(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx116(
|
10328
10419
|
MyDataTable,
|
10329
10420
|
{
|
10330
10421
|
columns,
|
@@ -10360,7 +10451,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
10360
10451
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
10361
10452
|
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
10362
10453
|
import { useEffect as useEffect16, useState as useState15 } from "react";
|
10363
|
-
import { jsx as
|
10454
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
10364
10455
|
function F_core83092_Save() {
|
10365
10456
|
const store = useS_core83092();
|
10366
10457
|
const disable = useState15(false);
|
@@ -10389,15 +10480,15 @@ function F_core83092_Save() {
|
|
10389
10480
|
}
|
10390
10481
|
disable[1](false);
|
10391
10482
|
}, [store.state.rolePermissions]);
|
10392
|
-
return /* @__PURE__ */
|
10483
|
+
return /* @__PURE__ */ jsx117(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
10393
10484
|
}
|
10394
10485
|
|
10395
10486
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
10396
|
-
import { Checkbox as Checkbox4, Flex as
|
10487
|
+
import { Checkbox as Checkbox4, Flex as Flex7, ScrollArea as ScrollArea7, Table as Table5, Text as Text16 } from "@mantine/core";
|
10397
10488
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
10398
10489
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
10399
10490
|
import React4, { useEffect as useEffect17, useState as useState16 } from "react";
|
10400
|
-
import { jsx as
|
10491
|
+
import { jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
|
10401
10492
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
10402
10493
|
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
10403
10494
|
var _a, _b;
|
@@ -10412,8 +10503,8 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10412
10503
|
store.setProperty("rolePermissions", query.data);
|
10413
10504
|
}, [query.data]);
|
10414
10505
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
10415
|
-
return /* @__PURE__ */
|
10416
|
-
/* @__PURE__ */
|
10506
|
+
return /* @__PURE__ */ jsx118(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs70(Table5, { children: [
|
10507
|
+
/* @__PURE__ */ jsx118(
|
10417
10508
|
Table5.Thead,
|
10418
10509
|
{
|
10419
10510
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -10424,90 +10515,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10424
10515
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
10425
10516
|
border: "1px solid var(--mantine-color-gray-4)"
|
10426
10517
|
},
|
10427
|
-
children: /* @__PURE__ */
|
10428
|
-
/* @__PURE__ */
|
10429
|
-
/* @__PURE__ */
|
10430
|
-
/* @__PURE__ */
|
10518
|
+
children: /* @__PURE__ */ jsxs70(Table5.Tr, { children: [
|
10519
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: title2 }),
|
10520
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10521
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
10431
10522
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
10432
10523
|
} }),
|
10433
|
-
/* @__PURE__ */
|
10524
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10434
10525
|
"Xem",
|
10435
|
-
/* @__PURE__ */
|
10526
|
+
/* @__PURE__ */ jsx118(IconEyeUp2, { color: "gray" })
|
10436
10527
|
] })
|
10437
10528
|
] }) }),
|
10438
|
-
/* @__PURE__ */
|
10439
|
-
/* @__PURE__ */
|
10529
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10530
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
10440
10531
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
10441
10532
|
} }),
|
10442
|
-
/* @__PURE__ */
|
10533
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10443
10534
|
"Th\xEAm",
|
10444
|
-
/* @__PURE__ */
|
10535
|
+
/* @__PURE__ */ jsx118(IconPlus6, { color: "blue" })
|
10445
10536
|
] })
|
10446
10537
|
] }) }),
|
10447
|
-
/* @__PURE__ */
|
10448
|
-
/* @__PURE__ */
|
10538
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10539
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
10449
10540
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
10450
10541
|
} }),
|
10451
|
-
/* @__PURE__ */
|
10542
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10452
10543
|
"S\u1EEDa",
|
10453
|
-
/* @__PURE__ */
|
10544
|
+
/* @__PURE__ */ jsx118(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
10454
10545
|
] })
|
10455
10546
|
] }) }),
|
10456
|
-
/* @__PURE__ */
|
10457
|
-
/* @__PURE__ */
|
10547
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10548
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
10458
10549
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
10459
10550
|
} }),
|
10460
|
-
/* @__PURE__ */
|
10551
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10461
10552
|
"X\xF3a",
|
10462
|
-
/* @__PURE__ */
|
10553
|
+
/* @__PURE__ */ jsx118(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
10463
10554
|
] })
|
10464
10555
|
] }) }),
|
10465
|
-
/* @__PURE__ */
|
10466
|
-
/* @__PURE__ */
|
10556
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10557
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
10467
10558
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
10468
10559
|
} }),
|
10469
|
-
/* @__PURE__ */
|
10560
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10470
10561
|
"In",
|
10471
|
-
/* @__PURE__ */
|
10562
|
+
/* @__PURE__ */ jsx118(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
10472
10563
|
] })
|
10473
10564
|
] }) }),
|
10474
|
-
/* @__PURE__ */
|
10475
|
-
/* @__PURE__ */
|
10565
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10566
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
10476
10567
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
10477
10568
|
} }),
|
10478
|
-
/* @__PURE__ */
|
10569
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10479
10570
|
"Xu\u1EA5t",
|
10480
|
-
/* @__PURE__ */
|
10571
|
+
/* @__PURE__ */ jsx118(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
10481
10572
|
] })
|
10482
10573
|
] }) })
|
10483
10574
|
] })
|
10484
10575
|
}
|
10485
10576
|
),
|
10486
|
-
/* @__PURE__ */
|
10487
|
-
if (item.links == void 0) return /* @__PURE__ */
|
10488
|
-
/* @__PURE__ */
|
10489
|
-
/* @__PURE__ */
|
10490
|
-
/* @__PURE__ */
|
10491
|
-
/* @__PURE__ */
|
10492
|
-
/* @__PURE__ */
|
10493
|
-
/* @__PURE__ */
|
10494
|
-
/* @__PURE__ */
|
10577
|
+
/* @__PURE__ */ jsx118(Table5.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
10578
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs70(Table5.Tr, { children: [
|
10579
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: item.label }),
|
10580
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10581
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10582
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10583
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10584
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10585
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) })
|
10495
10586
|
] }, idx);
|
10496
|
-
return /* @__PURE__ */
|
10497
|
-
/* @__PURE__ */
|
10587
|
+
return /* @__PURE__ */ jsxs70(React4.Fragment, { children: [
|
10588
|
+
/* @__PURE__ */ jsx118(Table5.Tr, { children: /* @__PURE__ */ jsx118(
|
10498
10589
|
Table5.Td,
|
10499
10590
|
{
|
10500
10591
|
colSpan: 7,
|
10501
10592
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
10502
|
-
children: /* @__PURE__ */
|
10593
|
+
children: /* @__PURE__ */ jsx118(Text16, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
10503
10594
|
}
|
10504
10595
|
) }, item.label),
|
10505
10596
|
item.links.map(
|
10506
10597
|
(item2, idx2) => {
|
10507
10598
|
var _a2, _b2, _c, _d, _e, _f;
|
10508
|
-
return /* @__PURE__ */
|
10509
|
-
/* @__PURE__ */
|
10510
|
-
/* @__PURE__ */
|
10599
|
+
return /* @__PURE__ */ jsxs70(Table5.Tr, { children: [
|
10600
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: item2.label }),
|
10601
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10511
10602
|
Checkbox4,
|
10512
10603
|
{
|
10513
10604
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -10518,7 +10609,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10518
10609
|
}
|
10519
10610
|
}
|
10520
10611
|
) }) }),
|
10521
|
-
/* @__PURE__ */
|
10612
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10522
10613
|
Checkbox4,
|
10523
10614
|
{
|
10524
10615
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -10529,7 +10620,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10529
10620
|
}
|
10530
10621
|
}
|
10531
10622
|
) }) }),
|
10532
|
-
/* @__PURE__ */
|
10623
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10533
10624
|
Checkbox4,
|
10534
10625
|
{
|
10535
10626
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -10540,7 +10631,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10540
10631
|
}
|
10541
10632
|
}
|
10542
10633
|
) }) }),
|
10543
|
-
/* @__PURE__ */
|
10634
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10544
10635
|
Checkbox4,
|
10545
10636
|
{
|
10546
10637
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -10551,7 +10642,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10551
10642
|
}
|
10552
10643
|
}
|
10553
10644
|
) }) }),
|
10554
|
-
/* @__PURE__ */
|
10645
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10555
10646
|
Checkbox4,
|
10556
10647
|
{
|
10557
10648
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -10562,7 +10653,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10562
10653
|
}
|
10563
10654
|
}
|
10564
10655
|
) }) }),
|
10565
|
-
/* @__PURE__ */
|
10656
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10566
10657
|
Checkbox4,
|
10567
10658
|
{
|
10568
10659
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -10618,72 +10709,72 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
10618
10709
|
}
|
10619
10710
|
|
10620
10711
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
10621
|
-
import { jsx as
|
10712
|
+
import { jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
|
10622
10713
|
function F_core83092({ menuData: menuData2 }) {
|
10623
|
-
return /* @__PURE__ */
|
10624
|
-
/* @__PURE__ */
|
10625
|
-
/* @__PURE__ */
|
10626
|
-
/* @__PURE__ */
|
10627
|
-
/* @__PURE__ */
|
10714
|
+
return /* @__PURE__ */ jsxs71(Grid4, { grow: true, children: [
|
10715
|
+
/* @__PURE__ */ jsx119(Grid4.Col, { span: 4, children: /* @__PURE__ */ jsx119(F_core83092_ReadUser, {}) }),
|
10716
|
+
/* @__PURE__ */ jsx119(Grid4.Col, { span: 8, children: /* @__PURE__ */ jsxs71(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
10717
|
+
/* @__PURE__ */ jsx119(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx119(Paper13, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx119(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
10718
|
+
/* @__PURE__ */ jsx119(F_core83092_Save, {})
|
10628
10719
|
] }) })
|
10629
10720
|
] });
|
10630
10721
|
}
|
10631
10722
|
|
10632
10723
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
10633
10724
|
import { BarChart } from "@mantine/charts";
|
10634
|
-
import { Group as
|
10635
|
-
import { Fragment as Fragment13, jsx as
|
10725
|
+
import { Group as Group20, Paper as Paper14, Text as Text17, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
10726
|
+
import { Fragment as Fragment13, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
|
10636
10727
|
|
10637
10728
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
10638
10729
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
10639
|
-
import { Group as
|
10640
|
-
import { Fragment as Fragment14, jsx as
|
10730
|
+
import { Group as Group21, Paper as Paper15, Text as Text18, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
10731
|
+
import { Fragment as Fragment14, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
|
10641
10732
|
|
10642
10733
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
10643
10734
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
10644
|
-
import { Group as
|
10645
|
-
import { Fragment as Fragment15, jsx as
|
10735
|
+
import { Group as Group22, Paper as Paper16, Text as Text19, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
10736
|
+
import { Fragment as Fragment15, jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
|
10646
10737
|
|
10647
10738
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
10648
10739
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
10649
|
-
import { Group as
|
10650
|
-
import { Fragment as Fragment16, jsx as
|
10740
|
+
import { Group as Group23, Paper as Paper17, Text as Text20, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
10741
|
+
import { Fragment as Fragment16, jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
|
10651
10742
|
|
10652
10743
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
10653
10744
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
10654
|
-
import { Group as
|
10655
|
-
import { jsx as
|
10745
|
+
import { Group as Group24, Paper as Paper18, Text as Text21, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
10746
|
+
import { jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
|
10656
10747
|
|
10657
10748
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
10658
10749
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
10659
|
-
import { Group as
|
10660
|
-
import { jsx as
|
10750
|
+
import { Group as Group25, Paper as Paper19, Text as Text22, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
10751
|
+
import { jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
|
10661
10752
|
|
10662
10753
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
10663
10754
|
import { LineChart } from "@mantine/charts";
|
10664
|
-
import { Group as
|
10665
|
-
import { Fragment as Fragment17, jsx as
|
10755
|
+
import { Group as Group26, Paper as Paper20, Text as Text23 } from "@mantine/core";
|
10756
|
+
import { Fragment as Fragment17, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
|
10666
10757
|
|
10667
10758
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
10668
10759
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
10669
|
-
import { Group as
|
10670
|
-
import { Fragment as Fragment18, jsx as
|
10760
|
+
import { Group as Group27, Paper as Paper21, Text as Text24 } from "@mantine/core";
|
10761
|
+
import { Fragment as Fragment18, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
|
10671
10762
|
|
10672
10763
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
10673
10764
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
10674
|
-
import { Group as
|
10675
|
-
import { Fragment as Fragment19, jsx as
|
10765
|
+
import { Group as Group28, Paper as Paper22, Text as Text25 } from "@mantine/core";
|
10766
|
+
import { Fragment as Fragment19, jsx as jsx128, jsxs as jsxs80 } from "react/jsx-runtime";
|
10676
10767
|
|
10677
10768
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
10678
10769
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
10679
|
-
import { Group as
|
10680
|
-
import { Fragment as Fragment20, jsx as
|
10770
|
+
import { Group as Group29, Paper as Paper23, Text as Text26 } from "@mantine/core";
|
10771
|
+
import { Fragment as Fragment20, jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
|
10681
10772
|
|
10682
10773
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
10683
|
-
import { Center as Center4, Progress, Space as Space8, Text as
|
10774
|
+
import { Center as Center4, Progress, Space as Space8, Text as Text27 } from "@mantine/core";
|
10684
10775
|
import { PieChart } from "@mantine/charts";
|
10685
10776
|
import { useMemo as useMemo16 } from "react";
|
10686
|
-
import { Fragment as Fragment21, jsx as
|
10777
|
+
import { Fragment as Fragment21, jsx as jsx130, jsxs as jsxs82 } from "react/jsx-runtime";
|
10687
10778
|
function getRandomColor(seed) {
|
10688
10779
|
const random = Math.sin(seed) * 1e4;
|
10689
10780
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -10861,7 +10952,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10861
10952
|
header: "M\xE0u",
|
10862
10953
|
accessorKey: "color",
|
10863
10954
|
accessorFn(originalRow) {
|
10864
|
-
return /* @__PURE__ */
|
10955
|
+
return /* @__PURE__ */ jsx130("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
10865
10956
|
},
|
10866
10957
|
minSize: 30,
|
10867
10958
|
maxSize: 30
|
@@ -10876,7 +10967,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10876
10967
|
header: "%",
|
10877
10968
|
accessorKey: "used",
|
10878
10969
|
accessorFn(originalRow) {
|
10879
|
-
return /* @__PURE__ */
|
10970
|
+
return /* @__PURE__ */ jsx130(Fragment21, { children: /* @__PURE__ */ jsx130(Center4, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
10880
10971
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
10881
10972
|
"%"
|
10882
10973
|
] }) }) });
|
@@ -10891,10 +10982,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10891
10982
|
return originalRow.used;
|
10892
10983
|
},
|
10893
10984
|
Cell: ({ row }) => {
|
10894
|
-
return /* @__PURE__ */
|
10895
|
-
/* @__PURE__ */
|
10985
|
+
return /* @__PURE__ */ jsxs82(Fragment21, { children: [
|
10986
|
+
/* @__PURE__ */ jsx130(Center4, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
10896
10987
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
10897
|
-
/* @__PURE__ */
|
10988
|
+
/* @__PURE__ */ jsxs82("strong", { children: [
|
10898
10989
|
row.original.used,
|
10899
10990
|
" / ",
|
10900
10991
|
row.original.total
|
@@ -10903,7 +10994,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10903
10994
|
(row.original.used / row.original.total * 100).toFixed(2),
|
10904
10995
|
"%)"
|
10905
10996
|
] }) }),
|
10906
|
-
/* @__PURE__ */
|
10997
|
+
/* @__PURE__ */ jsx130(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
10907
10998
|
] });
|
10908
10999
|
},
|
10909
11000
|
minSize: 50,
|
@@ -10912,9 +11003,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
10912
11003
|
],
|
10913
11004
|
[]
|
10914
11005
|
);
|
10915
|
-
return /* @__PURE__ */
|
10916
|
-
/* @__PURE__ */
|
10917
|
-
/* @__PURE__ */
|
11006
|
+
return /* @__PURE__ */ jsx130(Fragment21, { children: /* @__PURE__ */ jsxs82(MyFlexColumn, { children: [
|
11007
|
+
/* @__PURE__ */ jsx130(Text27, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng chi\u1EBFt kh\u1EA5u h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
|
11008
|
+
/* @__PURE__ */ jsx130(Center4, { children: /* @__PURE__ */ jsx130(
|
10918
11009
|
PieChart,
|
10919
11010
|
{
|
10920
11011
|
startAngle: 90,
|
@@ -10927,8 +11018,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
10927
11018
|
data: data_used_discountCode
|
10928
11019
|
}
|
10929
11020
|
) }),
|
10930
|
-
/* @__PURE__ */
|
10931
|
-
/* @__PURE__ */
|
11021
|
+
/* @__PURE__ */ jsx130(Space8, { mt: 5 }),
|
11022
|
+
/* @__PURE__ */ jsx130(
|
10932
11023
|
MyDataTable,
|
10933
11024
|
{
|
10934
11025
|
data: mockData,
|
@@ -10943,10 +11034,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10943
11034
|
}
|
10944
11035
|
|
10945
11036
|
// src/modules-features/admin/core/MainDashboard/ViewVoucherStat.tsx
|
10946
|
-
import { Center as Center5, Progress as Progress2, Space as Space9, Text as
|
11037
|
+
import { Center as Center5, Progress as Progress2, Space as Space9, Text as Text28 } from "@mantine/core";
|
10947
11038
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
10948
11039
|
import { useMemo as useMemo17 } from "react";
|
10949
|
-
import { Fragment as Fragment22, jsx as
|
11040
|
+
import { Fragment as Fragment22, jsx as jsx131, jsxs as jsxs83 } from "react/jsx-runtime";
|
10950
11041
|
function getRandomColor2(seed) {
|
10951
11042
|
const random = Math.sin(seed) * 1e4;
|
10952
11043
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -11124,7 +11215,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11124
11215
|
header: "M\xE0u",
|
11125
11216
|
accessorKey: "color",
|
11126
11217
|
accessorFn(originalRow) {
|
11127
|
-
return /* @__PURE__ */
|
11218
|
+
return /* @__PURE__ */ jsx131("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
11128
11219
|
},
|
11129
11220
|
minSize: 30,
|
11130
11221
|
maxSize: 30
|
@@ -11139,7 +11230,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11139
11230
|
header: "%",
|
11140
11231
|
accessorKey: "used",
|
11141
11232
|
accessorFn(originalRow) {
|
11142
|
-
return /* @__PURE__ */
|
11233
|
+
return /* @__PURE__ */ jsx131(Fragment22, { children: /* @__PURE__ */ jsx131(Center5, { children: /* @__PURE__ */ jsxs83(Text28, { children: [
|
11143
11234
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
11144
11235
|
"%"
|
11145
11236
|
] }) }) });
|
@@ -11154,10 +11245,10 @@ function PieChart_VoucherUsedPercentage() {
|
|
11154
11245
|
return originalRow.used;
|
11155
11246
|
},
|
11156
11247
|
Cell: ({ row }) => {
|
11157
|
-
return /* @__PURE__ */
|
11158
|
-
/* @__PURE__ */
|
11248
|
+
return /* @__PURE__ */ jsxs83(Fragment22, { children: [
|
11249
|
+
/* @__PURE__ */ jsx131(Center5, { children: /* @__PURE__ */ jsxs83(Text28, { children: [
|
11159
11250
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
11160
|
-
/* @__PURE__ */
|
11251
|
+
/* @__PURE__ */ jsxs83("strong", { children: [
|
11161
11252
|
row.original.used,
|
11162
11253
|
" / ",
|
11163
11254
|
row.original.total
|
@@ -11166,7 +11257,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11166
11257
|
(row.original.used / row.original.total * 100).toFixed(2),
|
11167
11258
|
"%)"
|
11168
11259
|
] }) }),
|
11169
|
-
/* @__PURE__ */
|
11260
|
+
/* @__PURE__ */ jsx131(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
11170
11261
|
] });
|
11171
11262
|
},
|
11172
11263
|
minSize: 50,
|
@@ -11175,9 +11266,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
11175
11266
|
],
|
11176
11267
|
[]
|
11177
11268
|
);
|
11178
|
-
return /* @__PURE__ */
|
11179
|
-
/* @__PURE__ */
|
11180
|
-
/* @__PURE__ */
|
11269
|
+
return /* @__PURE__ */ jsx131(Fragment22, { children: /* @__PURE__ */ jsxs83(MyFlexColumn, { children: [
|
11270
|
+
/* @__PURE__ */ jsx131(Text28, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng m\xE3 gi\u1EA3m gi\xE1 h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
|
11271
|
+
/* @__PURE__ */ jsx131(Center5, { children: /* @__PURE__ */ jsx131(
|
11181
11272
|
PieChart2,
|
11182
11273
|
{
|
11183
11274
|
startAngle: 90,
|
@@ -11190,8 +11281,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
11190
11281
|
data: data_used_discountCode2
|
11191
11282
|
}
|
11192
11283
|
) }),
|
11193
|
-
/* @__PURE__ */
|
11194
|
-
/* @__PURE__ */
|
11284
|
+
/* @__PURE__ */ jsx131(Space9, { mt: 5 }),
|
11285
|
+
/* @__PURE__ */ jsx131(
|
11195
11286
|
MyDataTable,
|
11196
11287
|
{
|
11197
11288
|
data: mockData2,
|
@@ -11206,7 +11297,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11206
11297
|
}
|
11207
11298
|
|
11208
11299
|
// src/modules-features/Authenticate/F_Authenticate_Logout.tsx
|
11209
|
-
import { Button as
|
11300
|
+
import { Button as Button19 } from "@mantine/core";
|
11210
11301
|
import { IconLogout } from "@tabler/icons-react";
|
11211
11302
|
import { useRouter as useRouter4 } from "next/navigation";
|
11212
11303
|
|
@@ -11223,20 +11314,20 @@ function useS_Authenticate() {
|
|
11223
11314
|
}
|
11224
11315
|
|
11225
11316
|
// src/modules-features/Authenticate/F_Authenticate_Logout.tsx
|
11226
|
-
import { jsx as
|
11317
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
11227
11318
|
function F_Authenticate_Logout({ redirectURL = "/auth/login" }) {
|
11228
11319
|
const router = useRouter4();
|
11229
11320
|
const S_Authenticate = useS_Authenticate();
|
11230
|
-
return /* @__PURE__ */
|
11321
|
+
return /* @__PURE__ */ jsx132(Button19, { onClick: () => {
|
11231
11322
|
S_Authenticate.setProperty("token", "");
|
11232
11323
|
router.replace(redirectURL);
|
11233
|
-
}, leftSection: /* @__PURE__ */
|
11324
|
+
}, leftSection: /* @__PURE__ */ jsx132(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
11234
11325
|
}
|
11235
11326
|
|
11236
11327
|
// src/modules-features/Authenticate/F_Authenticate_SplashPage.tsx
|
11237
11328
|
import { useRouter as useRouter5 } from "next/navigation";
|
11238
11329
|
import { useEffect as useEffect18 } from "react";
|
11239
|
-
import { jsx as
|
11330
|
+
import { jsx as jsx133 } from "react/jsx-runtime";
|
11240
11331
|
function F_authenticate_SplashPage() {
|
11241
11332
|
const router = useRouter5();
|
11242
11333
|
const S_Authenticate = useS_Authenticate();
|
@@ -11247,21 +11338,21 @@ function F_authenticate_SplashPage() {
|
|
11247
11338
|
}
|
11248
11339
|
router.push("/admin/core71678");
|
11249
11340
|
}, [S_Authenticate.state.token]);
|
11250
|
-
return /* @__PURE__ */
|
11341
|
+
return /* @__PURE__ */ jsx133(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
11251
11342
|
}
|
11252
11343
|
|
11253
11344
|
// src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
|
11254
11345
|
import {
|
11255
11346
|
Anchor as Anchor2,
|
11256
11347
|
BackgroundImage,
|
11257
|
-
Button as
|
11348
|
+
Button as Button20,
|
11258
11349
|
Center as Center6,
|
11259
11350
|
Checkbox as Checkbox5,
|
11260
|
-
Flex as
|
11261
|
-
Group as
|
11262
|
-
Paper as
|
11351
|
+
Flex as Flex8,
|
11352
|
+
Group as Group30,
|
11353
|
+
Paper as Paper24,
|
11263
11354
|
PasswordInput as PasswordInput2,
|
11264
|
-
Text as
|
11355
|
+
Text as Text29,
|
11265
11356
|
TextInput as TextInput6,
|
11266
11357
|
Title as Title2
|
11267
11358
|
} from "@mantine/core";
|
@@ -11276,7 +11367,7 @@ import { useState as useState17 } from "react";
|
|
11276
11367
|
var css_default3 = {};
|
11277
11368
|
|
11278
11369
|
// src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
|
11279
|
-
import { jsx as
|
11370
|
+
import { jsx as jsx134, jsxs as jsxs84 } from "react/jsx-runtime";
|
11280
11371
|
function F_Authenticate_Login({
|
11281
11372
|
loginInfo,
|
11282
11373
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -11329,21 +11420,21 @@ function F_Authenticate_Login({
|
|
11329
11420
|
}
|
11330
11421
|
});
|
11331
11422
|
}
|
11332
|
-
return /* @__PURE__ */
|
11423
|
+
return /* @__PURE__ */ jsx134(
|
11333
11424
|
BackgroundImage,
|
11334
11425
|
{
|
11335
11426
|
src: backgroundImage,
|
11336
11427
|
h: "100vh",
|
11337
|
-
children: /* @__PURE__ */
|
11338
|
-
/* @__PURE__ */
|
11339
|
-
/* @__PURE__ */
|
11340
|
-
/* @__PURE__ */
|
11428
|
+
children: /* @__PURE__ */ jsx134(Center6, { h: "100vh", children: /* @__PURE__ */ jsxs84(Paper24, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
11429
|
+
/* @__PURE__ */ jsxs84(Flex8, { direction: "column", mb: "md", children: [
|
11430
|
+
/* @__PURE__ */ jsx134(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
11431
|
+
/* @__PURE__ */ jsxs84(Text29, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
11341
11432
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
11342
|
-
/* @__PURE__ */
|
11433
|
+
/* @__PURE__ */ jsx134(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
11343
11434
|
] })
|
11344
11435
|
] }),
|
11345
|
-
/* @__PURE__ */
|
11346
|
-
/* @__PURE__ */
|
11436
|
+
/* @__PURE__ */ jsx134("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs84(MyFlexColumn, { children: [
|
11437
|
+
/* @__PURE__ */ jsx134(
|
11347
11438
|
TextInput6,
|
11348
11439
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
11349
11440
|
label: "T\xE0i kho\u1EA3n",
|
@@ -11351,7 +11442,7 @@ function F_Authenticate_Login({
|
|
11351
11442
|
withAsterisk: true
|
11352
11443
|
})
|
11353
11444
|
),
|
11354
|
-
/* @__PURE__ */
|
11445
|
+
/* @__PURE__ */ jsx134(
|
11355
11446
|
PasswordInput2,
|
11356
11447
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
11357
11448
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -11359,12 +11450,12 @@ function F_Authenticate_Login({
|
|
11359
11450
|
withAsterisk: true
|
11360
11451
|
})
|
11361
11452
|
),
|
11362
|
-
/* @__PURE__ */
|
11363
|
-
/* @__PURE__ */
|
11364
|
-
/* @__PURE__ */
|
11453
|
+
/* @__PURE__ */ jsxs84(Group30, { justify: "space-between", children: [
|
11454
|
+
/* @__PURE__ */ jsx134(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
11455
|
+
/* @__PURE__ */ jsx134(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
11365
11456
|
] }),
|
11366
|
-
/* @__PURE__ */
|
11367
|
-
|
11457
|
+
/* @__PURE__ */ jsx134(
|
11458
|
+
Button20,
|
11368
11459
|
{
|
11369
11460
|
loading: loadingState[0],
|
11370
11461
|
type: "submit",
|
@@ -11433,6 +11524,7 @@ export {
|
|
11433
11524
|
MyFlexRow,
|
11434
11525
|
AQCard,
|
11435
11526
|
MyIconText,
|
11527
|
+
MyInformationCard,
|
11436
11528
|
MyKeyLabel,
|
11437
11529
|
MyNumberFormatter,
|
11438
11530
|
AQStatCard1,
|