aq-fe-framework 0.1.134 → 0.1.135
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.
@@ -6703,43 +6703,48 @@ 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
|
+
|
6711
|
+
// src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
|
6712
|
+
import { Group as Group11, Text as Text10 } from "@mantine/core";
|
6713
|
+
import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
6709
6714
|
function MyKeyLabel({ keyLabel, label }) {
|
6710
|
-
return /* @__PURE__ */
|
6711
|
-
/* @__PURE__ */
|
6715
|
+
return /* @__PURE__ */ jsxs27(Group11, { gap: 5, children: [
|
6716
|
+
/* @__PURE__ */ jsxs27(Text10, { fw: "bold", children: [
|
6712
6717
|
keyLabel,
|
6713
6718
|
":"
|
6714
6719
|
] }),
|
6715
|
-
/* @__PURE__ */
|
6720
|
+
/* @__PURE__ */ jsx48(Text10, { children: label })
|
6716
6721
|
] });
|
6717
6722
|
}
|
6718
6723
|
|
6719
6724
|
// src/components/DataDisplay/NumberFormatter/MyNumberFormatter.tsx
|
6720
6725
|
import { NumberFormatter } from "@mantine/core";
|
6721
|
-
import { jsx as
|
6726
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
6722
6727
|
function MyNumberFormatter(_a) {
|
6723
6728
|
var rest = __objRest(_a, []);
|
6724
|
-
return /* @__PURE__ */
|
6729
|
+
return /* @__PURE__ */ jsx49(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
6725
6730
|
}
|
6726
6731
|
|
6727
6732
|
// 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
|
6733
|
+
import { Box as Box3, Button as Button14, Flex as Flex4, Group as Group12, Paper as Paper7, Text as Text11 } from "@mantine/core";
|
6734
|
+
import { IconArrowDownRight as IconArrowDownRight2, IconArrowUpRight as IconArrowUpRight2 } from "@tabler/icons-react";
|
6735
|
+
import { Fragment as Fragment11, jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
6731
6736
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
6732
|
-
return /* @__PURE__ */
|
6733
|
-
|
6737
|
+
return /* @__PURE__ */ jsx50(Fragment11, { children: /* @__PURE__ */ jsxs28(
|
6738
|
+
Paper7,
|
6734
6739
|
{
|
6735
6740
|
withBorder: true,
|
6736
6741
|
p: "md",
|
6737
6742
|
radius: "md",
|
6738
6743
|
children: [
|
6739
|
-
/* @__PURE__ */
|
6740
|
-
/* @__PURE__ */
|
6741
|
-
/* @__PURE__ */
|
6742
|
-
|
6744
|
+
/* @__PURE__ */ jsxs28(Group12, { justify: "space-between", children: [
|
6745
|
+
/* @__PURE__ */ jsxs28(Flex4, { direction: "column", children: [
|
6746
|
+
/* @__PURE__ */ jsx50(
|
6747
|
+
Text11,
|
6743
6748
|
{
|
6744
6749
|
tt: "uppercase",
|
6745
6750
|
size: "lg",
|
@@ -6747,54 +6752,54 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
6747
6752
|
children: title3
|
6748
6753
|
}
|
6749
6754
|
),
|
6750
|
-
unit == "" ? /* @__PURE__ */
|
6755
|
+
unit == "" ? /* @__PURE__ */ jsxs28(Text11, { size: "xs", style: { visibility: "hidden" }, children: [
|
6751
6756
|
"\u0110\u01A1n v\u1ECB: ",
|
6752
|
-
/* @__PURE__ */
|
6753
|
-
] }) : /* @__PURE__ */
|
6757
|
+
/* @__PURE__ */ jsx50("strong", { children: unit })
|
6758
|
+
] }) : /* @__PURE__ */ jsxs28(Text11, { size: "xs", children: [
|
6754
6759
|
"\u0110\u01A1n v\u1ECB: ",
|
6755
|
-
/* @__PURE__ */
|
6760
|
+
/* @__PURE__ */ jsx50("strong", { children: unit })
|
6756
6761
|
] })
|
6757
6762
|
] }),
|
6758
|
-
/* @__PURE__ */
|
6763
|
+
/* @__PURE__ */ jsx50(Box3, { children: icons })
|
6759
6764
|
] }),
|
6760
|
-
/* @__PURE__ */
|
6761
|
-
|
6765
|
+
/* @__PURE__ */ jsxs28(
|
6766
|
+
Group12,
|
6762
6767
|
{
|
6763
6768
|
mt: "5",
|
6764
6769
|
align: "flex-end",
|
6765
6770
|
gap: "xs",
|
6766
6771
|
children: [
|
6767
|
-
/* @__PURE__ */
|
6768
|
-
|
6772
|
+
/* @__PURE__ */ jsx50(
|
6773
|
+
Text11,
|
6769
6774
|
{
|
6770
6775
|
fw: 700,
|
6771
6776
|
fz: "h1",
|
6772
6777
|
children: value
|
6773
6778
|
}
|
6774
6779
|
),
|
6775
|
-
/* @__PURE__ */
|
6776
|
-
|
6780
|
+
/* @__PURE__ */ jsxs28(
|
6781
|
+
Text11,
|
6777
6782
|
{
|
6778
6783
|
mb: "2",
|
6779
6784
|
c: diff > 0 ? "teal" : "red",
|
6780
6785
|
fz: "h2",
|
6781
6786
|
fw: 500,
|
6782
6787
|
children: [
|
6783
|
-
/* @__PURE__ */
|
6788
|
+
/* @__PURE__ */ jsxs28("span", { children: [
|
6784
6789
|
diff,
|
6785
6790
|
"%"
|
6786
6791
|
] }),
|
6787
|
-
diff > 0 ? /* @__PURE__ */
|
6792
|
+
diff > 0 ? /* @__PURE__ */ jsx50(IconArrowUpRight2, {}) : /* @__PURE__ */ jsx50(IconArrowDownRight2, {})
|
6788
6793
|
]
|
6789
6794
|
}
|
6790
6795
|
)
|
6791
6796
|
]
|
6792
6797
|
}
|
6793
6798
|
),
|
6794
|
-
/* @__PURE__ */
|
6795
|
-
/* @__PURE__ */
|
6796
|
-
/* @__PURE__ */
|
6797
|
-
|
6799
|
+
/* @__PURE__ */ jsxs28(Group12, { justify: "space-between", children: [
|
6800
|
+
/* @__PURE__ */ jsx50(Text11, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6801
|
+
/* @__PURE__ */ jsx50(
|
6802
|
+
Button14,
|
6798
6803
|
{
|
6799
6804
|
variant: "light",
|
6800
6805
|
size: "xs",
|
@@ -6835,8 +6840,8 @@ function FaviconSetter() {
|
|
6835
6840
|
}
|
6836
6841
|
|
6837
6842
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
6838
|
-
import { Box as
|
6839
|
-
import { jsx as
|
6843
|
+
import { Box as Box4, Fieldset as Fieldset4, Text as Text12 } from "@mantine/core";
|
6844
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
6840
6845
|
function MyFieldset(_a) {
|
6841
6846
|
var _b = _a, {
|
6842
6847
|
children,
|
@@ -6845,17 +6850,17 @@ function MyFieldset(_a) {
|
|
6845
6850
|
"children",
|
6846
6851
|
"title"
|
6847
6852
|
]);
|
6848
|
-
return /* @__PURE__ */
|
6853
|
+
return /* @__PURE__ */ jsx51(
|
6849
6854
|
Fieldset4,
|
6850
6855
|
__spreadProps(__spreadValues({}, rest), {
|
6851
|
-
legend: /* @__PURE__ */
|
6852
|
-
|
6856
|
+
legend: /* @__PURE__ */ jsx51(
|
6857
|
+
Box4,
|
6853
6858
|
{
|
6854
6859
|
bg: "blue.4",
|
6855
6860
|
px: "xs",
|
6856
6861
|
py: 2,
|
6857
6862
|
style: { borderRadius: 4 },
|
6858
|
-
children: /* @__PURE__ */
|
6863
|
+
children: /* @__PURE__ */ jsx51(Text12, { c: "white", fw: 500, children: title3 })
|
6859
6864
|
}
|
6860
6865
|
),
|
6861
6866
|
children
|
@@ -6865,10 +6870,10 @@ function MyFieldset(_a) {
|
|
6865
6870
|
|
6866
6871
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
6867
6872
|
import { Textarea } from "@mantine/core";
|
6868
|
-
import { jsx as
|
6873
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
6869
6874
|
function MyTextArea(_a) {
|
6870
6875
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6871
|
-
return /* @__PURE__ */
|
6876
|
+
return /* @__PURE__ */ jsx52(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6872
6877
|
}
|
6873
6878
|
|
6874
6879
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
@@ -6884,7 +6889,7 @@ import Underline from "@tiptap/extension-underline";
|
|
6884
6889
|
import { useEditor } from "@tiptap/react";
|
6885
6890
|
import StarterKit from "@tiptap/starter-kit";
|
6886
6891
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
6887
|
-
import { jsx as
|
6892
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
6888
6893
|
function MyTextEditor(_a) {
|
6889
6894
|
var _b = _a, {
|
6890
6895
|
autoHiddenToolBar = false,
|
@@ -6986,43 +6991,43 @@ function MyTextEditor(_a) {
|
|
6986
6991
|
editor.commands.setContent(value);
|
6987
6992
|
}
|
6988
6993
|
}, [value, editor]);
|
6989
|
-
return /* @__PURE__ */
|
6990
|
-
/* @__PURE__ */
|
6991
|
-
/* @__PURE__ */
|
6992
|
-
/* @__PURE__ */
|
6993
|
-
/* @__PURE__ */
|
6994
|
-
/* @__PURE__ */
|
6995
|
-
/* @__PURE__ */
|
6996
|
-
/* @__PURE__ */
|
6997
|
-
/* @__PURE__ */
|
6998
|
-
/* @__PURE__ */
|
6994
|
+
return /* @__PURE__ */ jsx53(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs29(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
6995
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
6996
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
6997
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Bold, {}),
|
6998
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Italic, {}),
|
6999
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Underline, {}),
|
7000
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Strikethrough, {}),
|
7001
|
+
/* @__PURE__ */ jsx53(RichTextEditor.ClearFormatting, {}),
|
7002
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Highlight, {}),
|
7003
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Code, {})
|
6999
7004
|
] }),
|
7000
|
-
/* @__PURE__ */
|
7001
|
-
/* @__PURE__ */
|
7002
|
-
/* @__PURE__ */
|
7003
|
-
/* @__PURE__ */
|
7004
|
-
/* @__PURE__ */
|
7005
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7006
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H1, {}),
|
7007
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H2, {}),
|
7008
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H3, {}),
|
7009
|
+
/* @__PURE__ */ jsx53(RichTextEditor.H4, {})
|
7005
7010
|
] }),
|
7006
|
-
/* @__PURE__ */
|
7007
|
-
/* @__PURE__ */
|
7008
|
-
/* @__PURE__ */
|
7009
|
-
/* @__PURE__ */
|
7010
|
-
/* @__PURE__ */
|
7011
|
-
/* @__PURE__ */
|
7012
|
-
/* @__PURE__ */
|
7011
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7012
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Blockquote, {}),
|
7013
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Hr, {}),
|
7014
|
+
/* @__PURE__ */ jsx53(RichTextEditor.BulletList, {}),
|
7015
|
+
/* @__PURE__ */ jsx53(RichTextEditor.OrderedList, {}),
|
7016
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Subscript, {}),
|
7017
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Superscript, {})
|
7013
7018
|
] }),
|
7014
|
-
/* @__PURE__ */
|
7015
|
-
/* @__PURE__ */
|
7016
|
-
/* @__PURE__ */
|
7019
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7020
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Link, {}),
|
7021
|
+
/* @__PURE__ */ jsx53(RichTextEditor.Unlink, {})
|
7017
7022
|
] }),
|
7018
|
-
/* @__PURE__ */
|
7019
|
-
/* @__PURE__ */
|
7020
|
-
/* @__PURE__ */
|
7021
|
-
/* @__PURE__ */
|
7022
|
-
/* @__PURE__ */
|
7023
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7024
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignLeft, {}),
|
7025
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignCenter, {}),
|
7026
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignJustify, {}),
|
7027
|
+
/* @__PURE__ */ jsx53(RichTextEditor.AlignRight, {})
|
7023
7028
|
] })
|
7024
7029
|
] }),
|
7025
|
-
/* @__PURE__ */
|
7030
|
+
/* @__PURE__ */ jsx53(
|
7026
7031
|
ScrollArea2.Autosize,
|
7027
7032
|
{
|
7028
7033
|
onMouseDown: () => {
|
@@ -7037,7 +7042,7 @@ function MyTextEditor(_a) {
|
|
7037
7042
|
setHiddenToolBar(false);
|
7038
7043
|
},
|
7039
7044
|
style: { cursor: "text", maxHeight: "400px" },
|
7040
|
-
children: /* @__PURE__ */
|
7045
|
+
children: /* @__PURE__ */ jsx53(RichTextEditor.Content, { mih: contentHeight })
|
7041
7046
|
}
|
7042
7047
|
)
|
7043
7048
|
] }) });
|
@@ -7049,12 +7054,12 @@ import {
|
|
7049
7054
|
AppShell,
|
7050
7055
|
Badge as Badge2,
|
7051
7056
|
Divider as Divider2,
|
7052
|
-
Group as
|
7057
|
+
Group as Group13,
|
7053
7058
|
Image as Image3,
|
7054
7059
|
NavLink,
|
7055
7060
|
ScrollArea as ScrollArea3,
|
7056
7061
|
Select as Select4,
|
7057
|
-
Text as
|
7062
|
+
Text as Text13,
|
7058
7063
|
TextInput as TextInput2,
|
7059
7064
|
Tooltip as Tooltip5
|
7060
7065
|
} from "@mantine/core";
|
@@ -7068,22 +7073,22 @@ import {
|
|
7068
7073
|
} from "@tabler/icons-react";
|
7069
7074
|
import Link3 from "next/link";
|
7070
7075
|
import { usePathname as usePathname2 } from "next/navigation";
|
7071
|
-
import { Fragment as Fragment12, jsx as
|
7076
|
+
import { Fragment as Fragment12, jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
7072
7077
|
function getRightSection(status) {
|
7073
7078
|
if (status === "Prototype")
|
7074
|
-
return /* @__PURE__ */
|
7079
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
7075
7080
|
if (status === "New")
|
7076
|
-
return /* @__PURE__ */
|
7081
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
7077
7082
|
if (status === "Menu")
|
7078
|
-
return /* @__PURE__ */
|
7083
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
7079
7084
|
if (status === "Change")
|
7080
|
-
return /* @__PURE__ */
|
7085
|
+
return /* @__PURE__ */ jsx54(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
7081
7086
|
return null;
|
7082
7087
|
}
|
7083
7088
|
function RenderNavLinks({ items }) {
|
7084
7089
|
const basicAppShellStore = useS_BasicAppShell();
|
7085
7090
|
const pathName = usePathname2();
|
7086
|
-
return /* @__PURE__ */
|
7091
|
+
return /* @__PURE__ */ jsx54(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx54(
|
7087
7092
|
NavLink,
|
7088
7093
|
{
|
7089
7094
|
active: item.link === pathName.split("/")[2],
|
@@ -7100,7 +7105,7 @@ function RenderNavLinks({ items }) {
|
|
7100
7105
|
basicAppShellStore.setProperty("title", item.label);
|
7101
7106
|
}
|
7102
7107
|
},
|
7103
|
-
children: item.links && /* @__PURE__ */
|
7108
|
+
children: item.links && /* @__PURE__ */ jsx54(RenderNavLinks, { items: item.links })
|
7104
7109
|
},
|
7105
7110
|
index
|
7106
7111
|
)) });
|
@@ -7158,7 +7163,7 @@ function BasicAppShell({ children, menu }) {
|
|
7158
7163
|
const basicAppShellStore = useS_BasicAppShell();
|
7159
7164
|
const media = useMediaQuery("(min-width: 72em)");
|
7160
7165
|
const selectMedia = useMediaQuery("(min-width: 80em)");
|
7161
|
-
return /* @__PURE__ */
|
7166
|
+
return /* @__PURE__ */ jsxs30(
|
7162
7167
|
AppShell,
|
7163
7168
|
{
|
7164
7169
|
header: { height: 60 },
|
@@ -7172,51 +7177,51 @@ function BasicAppShell({ children, menu }) {
|
|
7172
7177
|
},
|
7173
7178
|
padding: "md",
|
7174
7179
|
children: [
|
7175
|
-
/* @__PURE__ */
|
7176
|
-
/* @__PURE__ */
|
7177
|
-
media ? /* @__PURE__ */
|
7178
|
-
/* @__PURE__ */
|
7179
|
-
/* @__PURE__ */
|
7180
|
+
/* @__PURE__ */ jsxs30(AppShell.Header, { children: [
|
7181
|
+
/* @__PURE__ */ jsx54(MyAppSpotlight, { menu }),
|
7182
|
+
media ? /* @__PURE__ */ jsxs30(Group13, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
7183
|
+
/* @__PURE__ */ jsxs30(Group13, { h: "100%", children: [
|
7184
|
+
/* @__PURE__ */ jsx54(
|
7180
7185
|
Tooltip5,
|
7181
7186
|
{
|
7182
7187
|
label: basicAppShellStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu",
|
7183
|
-
children: /* @__PURE__ */
|
7188
|
+
children: /* @__PURE__ */ jsx54(
|
7184
7189
|
ActionIcon10,
|
7185
7190
|
{
|
7186
7191
|
size: "lg",
|
7187
7192
|
radius: "md",
|
7188
7193
|
variant: "default",
|
7189
7194
|
onClick: basicAppShellStore.toggle,
|
7190
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7195
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7191
7196
|
}
|
7192
7197
|
)
|
7193
7198
|
}
|
7194
7199
|
),
|
7195
|
-
/* @__PURE__ */
|
7200
|
+
/* @__PURE__ */ jsx54(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx54(
|
7196
7201
|
ActionIcon10,
|
7197
7202
|
{
|
7198
7203
|
size: "lg",
|
7199
7204
|
radius: "md",
|
7200
7205
|
variant: "default",
|
7201
7206
|
onClick: () => basicAppShellStore.clearGroupMenuOpenId(),
|
7202
|
-
children: /* @__PURE__ */
|
7207
|
+
children: /* @__PURE__ */ jsx54(IconLibraryMinus, {})
|
7203
7208
|
}
|
7204
7209
|
) })
|
7205
7210
|
] }),
|
7206
|
-
/* @__PURE__ */
|
7207
|
-
|
7211
|
+
/* @__PURE__ */ jsx54(
|
7212
|
+
Group13,
|
7208
7213
|
{
|
7209
7214
|
style: {
|
7210
7215
|
position: "absolute",
|
7211
7216
|
left: "50%",
|
7212
7217
|
transform: "translateX(-50%)"
|
7213
7218
|
},
|
7214
|
-
children: /* @__PURE__ */
|
7219
|
+
children: /* @__PURE__ */ jsx54(Text13, { c: "green", fw: "bold", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
|
7215
7220
|
}
|
7216
7221
|
),
|
7217
|
-
/* @__PURE__ */
|
7218
|
-
/* @__PURE__ */
|
7219
|
-
/* @__PURE__ */
|
7222
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7223
|
+
/* @__PURE__ */ jsx54(Text13, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
7224
|
+
/* @__PURE__ */ jsx54(
|
7220
7225
|
Select4,
|
7221
7226
|
{
|
7222
7227
|
w: selectMedia ? 245 : 150,
|
@@ -7228,24 +7233,24 @@ function BasicAppShell({ children, menu }) {
|
|
7228
7233
|
]
|
7229
7234
|
}
|
7230
7235
|
),
|
7231
|
-
/* @__PURE__ */
|
7236
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7232
7237
|
] })
|
7233
7238
|
] }) : (
|
7234
7239
|
// For mobile screens - simplified layout
|
7235
|
-
/* @__PURE__ */
|
7236
|
-
/* @__PURE__ */
|
7240
|
+
/* @__PURE__ */ jsxs30(Group13, { h: "100%", px: "md", justify: "space-between", children: [
|
7241
|
+
/* @__PURE__ */ jsx54(
|
7237
7242
|
ActionIcon10,
|
7238
7243
|
{
|
7239
7244
|
size: "lg",
|
7240
7245
|
radius: "md",
|
7241
7246
|
variant: "default",
|
7242
7247
|
onClick: basicAppShellStore.toggle,
|
7243
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7248
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7244
7249
|
}
|
7245
7250
|
),
|
7246
|
-
/* @__PURE__ */
|
7247
|
-
/* @__PURE__ */
|
7248
|
-
/* @__PURE__ */
|
7251
|
+
/* @__PURE__ */ jsx54(Text13, { c: "green", fw: "bold", size: "sm", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
|
7252
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7253
|
+
/* @__PURE__ */ jsx54(
|
7249
7254
|
Select4,
|
7250
7255
|
{
|
7251
7256
|
w: 100,
|
@@ -7258,13 +7263,13 @@ function BasicAppShell({ children, menu }) {
|
|
7258
7263
|
]
|
7259
7264
|
}
|
7260
7265
|
),
|
7261
|
-
/* @__PURE__ */
|
7266
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7262
7267
|
] })
|
7263
7268
|
] })
|
7264
7269
|
)
|
7265
7270
|
] }),
|
7266
|
-
/* @__PURE__ */
|
7267
|
-
/* @__PURE__ */
|
7271
|
+
/* @__PURE__ */ jsxs30(AppShell.Navbar, { children: [
|
7272
|
+
/* @__PURE__ */ jsx54(
|
7268
7273
|
TextInput2,
|
7269
7274
|
{
|
7270
7275
|
mt: "md",
|
@@ -7272,18 +7277,18 @@ function BasicAppShell({ children, menu }) {
|
|
7272
7277
|
mx: 10,
|
7273
7278
|
component: "button",
|
7274
7279
|
onClick: spotlight2.open,
|
7275
|
-
leftSection: /* @__PURE__ */
|
7280
|
+
leftSection: /* @__PURE__ */ jsx54(IconSearch2, {}),
|
7276
7281
|
children: "T\xECm ki\u1EBFm (Ctrl + K)"
|
7277
7282
|
}
|
7278
7283
|
),
|
7279
|
-
/* @__PURE__ */
|
7280
|
-
/* @__PURE__ */
|
7281
|
-
/* @__PURE__ */
|
7282
|
-
/* @__PURE__ */
|
7284
|
+
/* @__PURE__ */ jsxs30(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
7285
|
+
/* @__PURE__ */ jsx54(RenderNavLinks, { items: menu }),
|
7286
|
+
/* @__PURE__ */ jsx54(Divider2, {}),
|
7287
|
+
/* @__PURE__ */ jsx54(F_Authenticate_Logout, {})
|
7283
7288
|
] }),
|
7284
|
-
/* @__PURE__ */
|
7285
|
-
/* @__PURE__ */
|
7286
|
-
/* @__PURE__ */
|
7289
|
+
/* @__PURE__ */ jsxs30(AppShell.Section, { p: "md", children: [
|
7290
|
+
/* @__PURE__ */ jsx54(Divider2, {}),
|
7291
|
+
/* @__PURE__ */ jsx54(
|
7287
7292
|
Image3,
|
7288
7293
|
{
|
7289
7294
|
fit: "contain",
|
@@ -7297,7 +7302,7 @@ function BasicAppShell({ children, menu }) {
|
|
7297
7302
|
)
|
7298
7303
|
] })
|
7299
7304
|
] }),
|
7300
|
-
/* @__PURE__ */
|
7305
|
+
/* @__PURE__ */ jsx54(
|
7301
7306
|
AppShell.Main,
|
7302
7307
|
{
|
7303
7308
|
bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7351,11 +7356,11 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
7351
7356
|
}
|
7352
7357
|
|
7353
7358
|
// src/components/Layouts/Container/MyContainer.tsx
|
7354
|
-
import { Container, Flex as
|
7355
|
-
import { jsx as
|
7359
|
+
import { Container, Flex as Flex5 } from "@mantine/core";
|
7360
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
7356
7361
|
function MyContainer(_a) {
|
7357
7362
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7358
|
-
return /* @__PURE__ */
|
7363
|
+
return /* @__PURE__ */ jsx55(Container, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx55(Flex5, { direction: "column", children }) }));
|
7359
7364
|
}
|
7360
7365
|
|
7361
7366
|
// src/constants/object/color.ts
|
@@ -7367,16 +7372,16 @@ var OBJECT_COlORS = {
|
|
7367
7372
|
|
7368
7373
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7369
7374
|
import {
|
7370
|
-
Box as
|
7375
|
+
Box as Box5,
|
7371
7376
|
Burger,
|
7372
|
-
Button as
|
7377
|
+
Button as Button15,
|
7373
7378
|
Container as Container2,
|
7374
7379
|
Divider as Divider3,
|
7375
7380
|
Drawer,
|
7376
|
-
Group as
|
7381
|
+
Group as Group14,
|
7377
7382
|
Image as Image4,
|
7378
7383
|
ScrollArea as ScrollArea4,
|
7379
|
-
Text as
|
7384
|
+
Text as Text14,
|
7380
7385
|
TextInput as TextInput3,
|
7381
7386
|
ThemeIcon,
|
7382
7387
|
UnstyledButton,
|
@@ -7408,7 +7413,7 @@ function useHeaderMegaMenuStore() {
|
|
7408
7413
|
}
|
7409
7414
|
|
7410
7415
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7411
|
-
import { jsx as
|
7416
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
7412
7417
|
var mockdata = [
|
7413
7418
|
{
|
7414
7419
|
icon: IconCode,
|
@@ -7446,27 +7451,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7446
7451
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
7447
7452
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
7448
7453
|
const theme = useMantineTheme();
|
7449
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
7450
|
-
/* @__PURE__ */
|
7451
|
-
/* @__PURE__ */
|
7452
|
-
/* @__PURE__ */
|
7453
|
-
/* @__PURE__ */
|
7454
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx56(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs31(Group14, { wrap: "nowrap", align: "flex-start", children: [
|
7455
|
+
/* @__PURE__ */ jsx56(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx56(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
7456
|
+
/* @__PURE__ */ jsxs31("div", { children: [
|
7457
|
+
/* @__PURE__ */ jsx56(Text14, { size: "sm", fw: 500, children: item.title }),
|
7458
|
+
/* @__PURE__ */ jsx56(Text14, { size: "xs", c: "dimmed", children: item.description })
|
7454
7459
|
] })
|
7455
7460
|
] }) }, item.title));
|
7456
|
-
return /* @__PURE__ */
|
7457
|
-
/* @__PURE__ */
|
7458
|
-
/* @__PURE__ */
|
7459
|
-
/* @__PURE__ */
|
7460
|
-
/* @__PURE__ */
|
7461
|
+
return /* @__PURE__ */ jsxs31(Box5, { children: [
|
7462
|
+
/* @__PURE__ */ jsx56("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs31(Group14, { justify: "space-between", h: "100%", children: [
|
7463
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7464
|
+
/* @__PURE__ */ jsx56(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
7465
|
+
/* @__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
7466
|
] }),
|
7462
|
-
/* @__PURE__ */
|
7463
|
-
/* @__PURE__ */
|
7464
|
-
/* @__PURE__ */
|
7467
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7468
|
+
/* @__PURE__ */ jsx56(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx56(IconSearch3, {}), radius: "xl", w: "250px" }),
|
7469
|
+
/* @__PURE__ */ jsx56(MySwitchTheme, {})
|
7465
7470
|
] }),
|
7466
|
-
/* @__PURE__ */
|
7471
|
+
/* @__PURE__ */ jsx56(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
7467
7472
|
] }) }),
|
7468
|
-
/* @__PURE__ */
|
7469
|
-
/* @__PURE__ */
|
7473
|
+
/* @__PURE__ */ jsx56(Container2, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
7474
|
+
/* @__PURE__ */ jsx56(
|
7470
7475
|
Drawer,
|
7471
7476
|
{
|
7472
7477
|
opened: drawerOpened,
|
@@ -7476,10 +7481,10 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7476
7481
|
title: "Navigation",
|
7477
7482
|
hiddenFrom: "sm",
|
7478
7483
|
zIndex: 1e6,
|
7479
|
-
children: /* @__PURE__ */
|
7480
|
-
/* @__PURE__ */
|
7481
|
-
/* @__PURE__ */
|
7482
|
-
/* @__PURE__ */
|
7484
|
+
children: /* @__PURE__ */ jsxs31(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
7485
|
+
/* @__PURE__ */ jsx56(Divider3, { my: "sm" }),
|
7486
|
+
/* @__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)) }),
|
7487
|
+
/* @__PURE__ */ jsx56(Divider3, { my: "sm" })
|
7483
7488
|
] })
|
7484
7489
|
}
|
7485
7490
|
)
|
@@ -7487,8 +7492,8 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7487
7492
|
}
|
7488
7493
|
|
7489
7494
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7490
|
-
import { Code, Container as Container3, Divider as Divider4, Group as
|
7491
|
-
import { jsx as
|
7495
|
+
import { Code, Container as Container3, Divider as Divider4, Group as Group15, Indicator, Title } from "@mantine/core";
|
7496
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
7492
7497
|
var getStatusColor = (status) => {
|
7493
7498
|
switch (status) {
|
7494
7499
|
case "Prototype":
|
@@ -7501,7 +7506,7 @@ var getStatusColor = (status) => {
|
|
7501
7506
|
};
|
7502
7507
|
var PageTitle = ({ title: title3, status }) => {
|
7503
7508
|
const color = getStatusColor(status);
|
7504
|
-
return /* @__PURE__ */
|
7509
|
+
return /* @__PURE__ */ jsx57(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx57(Title, { order: 4, children: title3 }) });
|
7505
7510
|
};
|
7506
7511
|
function MyPageContent({
|
7507
7512
|
leftTopBar,
|
@@ -7513,69 +7518,69 @@ function MyPageContent({
|
|
7513
7518
|
}) {
|
7514
7519
|
const basicAppShellStore = useS_BasicAppShell();
|
7515
7520
|
const finalTitle = title3 || basicAppShellStore.state.title;
|
7516
|
-
return /* @__PURE__ */
|
7517
|
-
/* @__PURE__ */
|
7518
|
-
/* @__PURE__ */
|
7519
|
-
canBack && /* @__PURE__ */
|
7520
|
-
/* @__PURE__ */
|
7521
|
+
return /* @__PURE__ */ jsxs32(Container3, { p: 0, fluid: true, children: [
|
7522
|
+
/* @__PURE__ */ jsxs32(Group15, { justify: "space-between", children: [
|
7523
|
+
/* @__PURE__ */ jsxs32(Group15, { children: [
|
7524
|
+
canBack && /* @__PURE__ */ jsx57(MyButtonRouterBack, {}),
|
7525
|
+
/* @__PURE__ */ jsx57(PageTitle, { title: finalTitle, status }),
|
7521
7526
|
leftTopBar
|
7522
7527
|
] }),
|
7523
|
-
/* @__PURE__ */
|
7528
|
+
/* @__PURE__ */ jsxs32(Group15, { children: [
|
7524
7529
|
rightTopBar,
|
7525
|
-
/* @__PURE__ */
|
7530
|
+
/* @__PURE__ */ jsx57(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode })
|
7526
7531
|
] })
|
7527
7532
|
] }),
|
7528
|
-
/* @__PURE__ */
|
7533
|
+
/* @__PURE__ */ jsx57(Divider4, { my: "xs" }),
|
7529
7534
|
children
|
7530
7535
|
] });
|
7531
7536
|
}
|
7532
7537
|
|
7533
7538
|
// src/components/Layouts/Tab/MyTab.tsx
|
7534
7539
|
import { rem, Space as Space4, Tabs } from "@mantine/core";
|
7535
|
-
import { jsx as
|
7540
|
+
import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
7536
7541
|
function MyTab(_a) {
|
7537
7542
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
7538
7543
|
const iconStyle = { width: rem(20), height: rem(20) };
|
7539
|
-
return /* @__PURE__ */
|
7540
|
-
/* @__PURE__ */
|
7541
|
-
return /* @__PURE__ */
|
7544
|
+
return /* @__PURE__ */ jsxs33(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
7545
|
+
/* @__PURE__ */ jsx58(Tabs.List, { children: tabList.map((item, idx) => {
|
7546
|
+
return /* @__PURE__ */ jsx58(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx58(item.icon, { style: iconStyle }), children: item.label }, idx);
|
7542
7547
|
}) }),
|
7543
|
-
/* @__PURE__ */
|
7548
|
+
/* @__PURE__ */ jsx58(Space4, { my: "md" }),
|
7544
7549
|
children
|
7545
7550
|
] }));
|
7546
7551
|
}
|
7547
7552
|
|
7548
7553
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
7549
|
-
import { ActionIcon as ActionIcon11, Button as
|
7554
|
+
import { ActionIcon as ActionIcon11, Button as Button16, Fieldset as Fieldset5, Group as Group16, Modal as Modal11 } from "@mantine/core";
|
7550
7555
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
7551
7556
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
7552
|
-
import { jsx as
|
7557
|
+
import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
|
7553
7558
|
function MyDataTableSelect(_a) {
|
7554
7559
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
7555
7560
|
const disc = useDisclosure11(false);
|
7556
7561
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
7557
|
-
return /* @__PURE__ */
|
7558
|
-
/* @__PURE__ */
|
7562
|
+
return /* @__PURE__ */ jsxs34(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
7563
|
+
/* @__PURE__ */ jsx59(
|
7559
7564
|
MyDataTable,
|
7560
7565
|
__spreadValues({
|
7561
7566
|
renderTopToolbarCustomActions: ({ table }) => {
|
7562
|
-
return /* @__PURE__ */
|
7567
|
+
return /* @__PURE__ */ jsxs34(Group16, { children: [
|
7563
7568
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
7564
|
-
/* @__PURE__ */
|
7569
|
+
/* @__PURE__ */ jsx59(Button16, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
7565
7570
|
] });
|
7566
7571
|
},
|
7567
7572
|
columns,
|
7568
7573
|
data: listState[0],
|
7569
7574
|
renderRowActions: ({ row }) => {
|
7570
|
-
return /* @__PURE__ */
|
7575
|
+
return /* @__PURE__ */ jsx59(MyCenterFull, { children: /* @__PURE__ */ jsx59(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx59(IconX2, {}) }) });
|
7571
7576
|
}
|
7572
7577
|
}, rest)
|
7573
7578
|
),
|
7574
|
-
/* @__PURE__ */
|
7579
|
+
/* @__PURE__ */ jsx59(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx59(
|
7575
7580
|
MyDataTable,
|
7576
7581
|
__spreadValues({
|
7577
7582
|
renderTopToolbarCustomActions: ({ table }) => {
|
7578
|
-
return /* @__PURE__ */
|
7583
|
+
return /* @__PURE__ */ jsx59(Button16, { onClick: () => {
|
7579
7584
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
7580
7585
|
disc[1].close();
|
7581
7586
|
}, children: "Ch\u1ECDn" });
|
@@ -7591,7 +7596,7 @@ function MyDataTableSelect(_a) {
|
|
7591
7596
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
7592
7597
|
import { Select as Select5 } from "@mantine/core";
|
7593
7598
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
7594
|
-
import { jsx as
|
7599
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
7595
7600
|
function MySelectAPIGet(_a) {
|
7596
7601
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
7597
7602
|
var _a2;
|
@@ -7610,7 +7615,7 @@ function MySelectAPIGet(_a) {
|
|
7610
7615
|
label: `${item.code}-${item.name}`
|
7611
7616
|
};
|
7612
7617
|
});
|
7613
|
-
return /* @__PURE__ */
|
7618
|
+
return /* @__PURE__ */ jsx60(
|
7614
7619
|
Select5,
|
7615
7620
|
__spreadValues({
|
7616
7621
|
label,
|
@@ -7625,7 +7630,7 @@ import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as Schedul
|
|
7625
7630
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
7626
7631
|
import { useState as useState8 } from "react";
|
7627
7632
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
7628
|
-
import { jsx as
|
7633
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
7629
7634
|
function MyScheduleX({
|
7630
7635
|
values,
|
7631
7636
|
timeGridEvent,
|
@@ -7650,7 +7655,7 @@ function MyScheduleX({
|
|
7650
7655
|
events: values,
|
7651
7656
|
plugins: [eventsService, eventModalPlugin]
|
7652
7657
|
});
|
7653
|
-
return /* @__PURE__ */
|
7658
|
+
return /* @__PURE__ */ jsx61(
|
7654
7659
|
ScheduleXCalendar2,
|
7655
7660
|
{
|
7656
7661
|
calendarApp: calendar,
|
@@ -7664,9 +7669,9 @@ function MyScheduleX({
|
|
7664
7669
|
|
7665
7670
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
7666
7671
|
import { Skeleton } from "@mantine/core";
|
7667
|
-
import { jsx as
|
7672
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
7668
7673
|
function MySkeletonTable({ h: h4 = 500 }) {
|
7669
|
-
return /* @__PURE__ */
|
7674
|
+
return /* @__PURE__ */ jsx62(Skeleton, { h: h4 });
|
7670
7675
|
}
|
7671
7676
|
|
7672
7677
|
// src/constants/object/documentTypes.ts
|
@@ -7681,7 +7686,7 @@ var OBJECT_DOCUMENT_TYPES = {
|
|
7681
7686
|
|
7682
7687
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
7683
7688
|
import { useForm as useForm2 } from "@mantine/form";
|
7684
|
-
import { jsx as
|
7689
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
7685
7690
|
function F_core12196_Create({ FormTypeId }) {
|
7686
7691
|
const form = useForm2({
|
7687
7692
|
mode: "uncontrolled",
|
@@ -7693,7 +7698,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7693
7698
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
7694
7699
|
}
|
7695
7700
|
});
|
7696
|
-
return /* @__PURE__ */
|
7701
|
+
return /* @__PURE__ */ jsxs35(
|
7697
7702
|
MyButtonCreate,
|
7698
7703
|
{
|
7699
7704
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -7705,28 +7710,28 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7705
7710
|
}));
|
7706
7711
|
},
|
7707
7712
|
children: [
|
7708
|
-
/* @__PURE__ */
|
7713
|
+
/* @__PURE__ */ jsx63(
|
7709
7714
|
MyTextInput,
|
7710
7715
|
__spreadValues({
|
7711
7716
|
withAsterisk: true,
|
7712
7717
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
7713
7718
|
}, form.getInputProps("decisionCode"))
|
7714
7719
|
),
|
7715
|
-
/* @__PURE__ */
|
7720
|
+
/* @__PURE__ */ jsx63(
|
7716
7721
|
MyDateInput,
|
7717
7722
|
__spreadValues({
|
7718
7723
|
withAsterisk: true,
|
7719
7724
|
label: "Ng\xE0y ban h\xE0nh"
|
7720
7725
|
}, form.getInputProps("promulgateDate"))
|
7721
7726
|
),
|
7722
|
-
/* @__PURE__ */
|
7727
|
+
/* @__PURE__ */ jsx63(
|
7723
7728
|
MyTextInput,
|
7724
7729
|
__spreadValues({
|
7725
7730
|
withAsterisk: true,
|
7726
7731
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
7727
7732
|
}, form.getInputProps("name"))
|
7728
7733
|
),
|
7729
|
-
/* @__PURE__ */
|
7734
|
+
/* @__PURE__ */ jsx63(
|
7730
7735
|
F_core18256_Select,
|
7731
7736
|
__spreadValues({
|
7732
7737
|
withAsterisk: true,
|
@@ -7734,14 +7739,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7734
7739
|
documentTypeId: FormTypeId
|
7735
7740
|
}, form.getInputProps("documentAttributeId"))
|
7736
7741
|
),
|
7737
|
-
/* @__PURE__ */
|
7742
|
+
/* @__PURE__ */ jsx63(
|
7738
7743
|
MyFileInput,
|
7739
7744
|
__spreadValues({
|
7740
7745
|
withAsterisk: true,
|
7741
7746
|
label: "V\u0103n b\u1EA3n"
|
7742
7747
|
}, form.getInputProps("file"))
|
7743
7748
|
),
|
7744
|
-
/* @__PURE__ */
|
7749
|
+
/* @__PURE__ */ jsx63(
|
7745
7750
|
MyNumberInput,
|
7746
7751
|
__spreadValues({
|
7747
7752
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -7753,15 +7758,15 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7753
7758
|
}
|
7754
7759
|
|
7755
7760
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
7756
|
-
import { Paper as
|
7757
|
-
import { jsx as
|
7761
|
+
import { Paper as Paper8, Space as Space5 } from "@mantine/core";
|
7762
|
+
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
7758
7763
|
function F_core12196({
|
7759
7764
|
FormTypeId
|
7760
7765
|
}) {
|
7761
|
-
return /* @__PURE__ */
|
7762
|
-
/* @__PURE__ */
|
7763
|
-
/* @__PURE__ */
|
7764
|
-
/* @__PURE__ */
|
7766
|
+
return /* @__PURE__ */ jsxs36(Paper8, { p: "md", children: [
|
7767
|
+
/* @__PURE__ */ jsx64(MyFlexEnd, { children: /* @__PURE__ */ jsx64(F_core12196_Create, { FormTypeId }) }),
|
7768
|
+
/* @__PURE__ */ jsx64(Space5, {}),
|
7769
|
+
/* @__PURE__ */ jsx64(F_core12196_Read, { FormTypeId })
|
7765
7770
|
] });
|
7766
7771
|
}
|
7767
7772
|
|
@@ -7772,7 +7777,7 @@ import { useMemo as useMemo4 } from "react";
|
|
7772
7777
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
7773
7778
|
import { FileInput as FileInput4, Textarea as Textarea2 } from "@mantine/core";
|
7774
7779
|
import { useForm as useForm3 } from "@mantine/form";
|
7775
|
-
import { jsx as
|
7780
|
+
import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
|
7776
7781
|
function F_core16209_Create({
|
7777
7782
|
RefinementTypeId
|
7778
7783
|
}) {
|
@@ -7787,7 +7792,7 @@ function F_core16209_Create({
|
|
7787
7792
|
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
7793
|
}
|
7789
7794
|
});
|
7790
|
-
return /* @__PURE__ */
|
7795
|
+
return /* @__PURE__ */ jsxs37(
|
7791
7796
|
MyButtonCreate,
|
7792
7797
|
{
|
7793
7798
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -7800,43 +7805,43 @@ function F_core16209_Create({
|
|
7800
7805
|
}));
|
7801
7806
|
},
|
7802
7807
|
children: [
|
7803
|
-
/* @__PURE__ */
|
7808
|
+
/* @__PURE__ */ jsx65(
|
7804
7809
|
MyDateInput,
|
7805
7810
|
__spreadValues({
|
7806
7811
|
withAsterisk: true,
|
7807
7812
|
label: "Ng\xE0y h\u1ECDp"
|
7808
7813
|
}, form.getInputProps("meetingDate"))
|
7809
7814
|
),
|
7810
|
-
/* @__PURE__ */
|
7815
|
+
/* @__PURE__ */ jsx65(
|
7811
7816
|
MyTextInput,
|
7812
7817
|
__spreadValues({
|
7813
7818
|
withAsterisk: true,
|
7814
7819
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7815
7820
|
}, form.getInputProps("departmentName"))
|
7816
7821
|
),
|
7817
|
-
/* @__PURE__ */
|
7822
|
+
/* @__PURE__ */ jsx65(
|
7818
7823
|
MyTextInput,
|
7819
7824
|
__spreadValues({
|
7820
7825
|
withAsterisk: true,
|
7821
7826
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7822
7827
|
}, form.getInputProps("description"))
|
7823
7828
|
),
|
7824
|
-
/* @__PURE__ */
|
7825
|
-
/* @__PURE__ */
|
7829
|
+
/* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7830
|
+
/* @__PURE__ */ jsx65(
|
7826
7831
|
MyDateInput,
|
7827
7832
|
__spreadValues({
|
7828
7833
|
withAsterisk: true,
|
7829
7834
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7830
7835
|
}, form.getInputProps("startDate"))
|
7831
7836
|
),
|
7832
|
-
/* @__PURE__ */
|
7837
|
+
/* @__PURE__ */ jsx65(
|
7833
7838
|
MyDateInput,
|
7834
7839
|
__spreadValues({
|
7835
7840
|
withAsterisk: true,
|
7836
7841
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7837
7842
|
}, form.getInputProps("endDate"))
|
7838
7843
|
),
|
7839
|
-
/* @__PURE__ */
|
7844
|
+
/* @__PURE__ */ jsx65(
|
7840
7845
|
FileInput4,
|
7841
7846
|
__spreadValues({
|
7842
7847
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7844,19 +7849,19 @@ function F_core16209_Create({
|
|
7844
7849
|
label: "T\xE0i li\u1EC7u"
|
7845
7850
|
}, form.getInputProps("file"))
|
7846
7851
|
),
|
7847
|
-
/* @__PURE__ */
|
7852
|
+
/* @__PURE__ */ jsx65(Textarea2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7848
7853
|
]
|
7849
7854
|
}
|
7850
7855
|
);
|
7851
7856
|
}
|
7852
7857
|
|
7853
7858
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
7854
|
-
import { jsx as
|
7859
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
7855
7860
|
function F_core16209_Delete({
|
7856
7861
|
id,
|
7857
7862
|
contextData
|
7858
7863
|
}) {
|
7859
|
-
return /* @__PURE__ */
|
7864
|
+
return /* @__PURE__ */ jsx66(
|
7860
7865
|
MyActionIconDelete,
|
7861
7866
|
{
|
7862
7867
|
contextData,
|
@@ -7868,7 +7873,7 @@ function F_core16209_Delete({
|
|
7868
7873
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
7869
7874
|
import { FileInput as FileInput5, Textarea as Textarea3 } from "@mantine/core";
|
7870
7875
|
import { useForm as useForm4 } from "@mantine/form";
|
7871
|
-
import { jsx as
|
7876
|
+
import { jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
|
7872
7877
|
function F_core16209_Update({ values }) {
|
7873
7878
|
var _a;
|
7874
7879
|
const form = useForm4({
|
@@ -7891,7 +7896,7 @@ function F_core16209_Update({ values }) {
|
|
7891
7896
|
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
7897
|
}
|
7893
7898
|
});
|
7894
|
-
return /* @__PURE__ */
|
7899
|
+
return /* @__PURE__ */ jsxs38(
|
7895
7900
|
MyActionIconUpdate,
|
7896
7901
|
{
|
7897
7902
|
form,
|
@@ -7901,43 +7906,43 @@ function F_core16209_Update({ values }) {
|
|
7901
7906
|
}));
|
7902
7907
|
},
|
7903
7908
|
children: [
|
7904
|
-
/* @__PURE__ */
|
7909
|
+
/* @__PURE__ */ jsx67(
|
7905
7910
|
MyDateInput,
|
7906
7911
|
__spreadValues({
|
7907
7912
|
withAsterisk: true,
|
7908
7913
|
label: "Ng\xE0y h\u1ECDp"
|
7909
7914
|
}, form.getInputProps("meetingDate"))
|
7910
7915
|
),
|
7911
|
-
/* @__PURE__ */
|
7916
|
+
/* @__PURE__ */ jsx67(
|
7912
7917
|
MyTextInput,
|
7913
7918
|
__spreadValues({
|
7914
7919
|
withAsterisk: true,
|
7915
7920
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7916
7921
|
}, form.getInputProps("departmentName"))
|
7917
7922
|
),
|
7918
|
-
/* @__PURE__ */
|
7923
|
+
/* @__PURE__ */ jsx67(
|
7919
7924
|
MyTextInput,
|
7920
7925
|
__spreadValues({
|
7921
7926
|
withAsterisk: true,
|
7922
7927
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7923
7928
|
}, form.getInputProps("description"))
|
7924
7929
|
),
|
7925
|
-
/* @__PURE__ */
|
7926
|
-
/* @__PURE__ */
|
7930
|
+
/* @__PURE__ */ jsx67(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7931
|
+
/* @__PURE__ */ jsx67(
|
7927
7932
|
MyDateInput,
|
7928
7933
|
__spreadValues({
|
7929
7934
|
withAsterisk: true,
|
7930
7935
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7931
7936
|
}, form.getInputProps("startDate"))
|
7932
7937
|
),
|
7933
|
-
/* @__PURE__ */
|
7938
|
+
/* @__PURE__ */ jsx67(
|
7934
7939
|
MyDateInput,
|
7935
7940
|
__spreadValues({
|
7936
7941
|
withAsterisk: true,
|
7937
7942
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7938
7943
|
}, form.getInputProps("endDate"))
|
7939
7944
|
),
|
7940
|
-
/* @__PURE__ */
|
7945
|
+
/* @__PURE__ */ jsx67(
|
7941
7946
|
FileInput5,
|
7942
7947
|
__spreadValues({
|
7943
7948
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7945,14 +7950,14 @@ function F_core16209_Update({ values }) {
|
|
7945
7950
|
label: "T\xE0i li\u1EC7u"
|
7946
7951
|
}, form.getInputProps("file"))
|
7947
7952
|
),
|
7948
|
-
/* @__PURE__ */
|
7953
|
+
/* @__PURE__ */ jsx67(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7949
7954
|
]
|
7950
7955
|
}
|
7951
7956
|
);
|
7952
7957
|
}
|
7953
7958
|
|
7954
7959
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
7955
|
-
import { jsx as
|
7960
|
+
import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
|
7956
7961
|
function F_core16209({ RefinementTypeId }) {
|
7957
7962
|
const query = useQuery5({
|
7958
7963
|
queryKey: ["F_core16209_Read"],
|
@@ -7985,7 +7990,7 @@ function F_core16209({ RefinementTypeId }) {
|
|
7985
7990
|
{
|
7986
7991
|
header: "File",
|
7987
7992
|
accessorFn: (row) => {
|
7988
|
-
return /* @__PURE__ */
|
7993
|
+
return /* @__PURE__ */ jsx68(MyCenterFull, { children: /* @__PURE__ */ jsx68(MyButtonViewPDF, { id: row.id }) });
|
7989
7994
|
}
|
7990
7995
|
}
|
7991
7996
|
],
|
@@ -7993,16 +7998,16 @@ function F_core16209({ RefinementTypeId }) {
|
|
7993
7998
|
);
|
7994
7999
|
if (query.isLoading) return "Loading...";
|
7995
8000
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
7996
|
-
return /* @__PURE__ */
|
8001
|
+
return /* @__PURE__ */ jsx68(
|
7997
8002
|
MyDataTable,
|
7998
8003
|
{
|
7999
8004
|
columns,
|
8000
8005
|
data: query.data,
|
8001
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
8006
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx68(F_core16209_Create, { RefinementTypeId }),
|
8002
8007
|
renderRowActions: ({ row }) => {
|
8003
|
-
return /* @__PURE__ */
|
8004
|
-
/* @__PURE__ */
|
8005
|
-
/* @__PURE__ */
|
8008
|
+
return /* @__PURE__ */ jsxs39(MyCenterFull, { children: [
|
8009
|
+
/* @__PURE__ */ jsx68(F_core16209_Update, { values: row.original }),
|
8010
|
+
/* @__PURE__ */ jsx68(
|
8006
8011
|
F_core16209_Delete,
|
8007
8012
|
{
|
8008
8013
|
id: row.original.id,
|
@@ -8024,7 +8029,7 @@ import { useMemo as useMemo5 } from "react";
|
|
8024
8029
|
|
8025
8030
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
8026
8031
|
import { useForm as useForm5 } from "@mantine/form";
|
8027
|
-
import { jsx as
|
8032
|
+
import { jsx as jsx69, jsxs as jsxs40 } from "react/jsx-runtime";
|
8028
8033
|
function F_core18256_Create({ documentType }) {
|
8029
8034
|
const form = useForm5({
|
8030
8035
|
mode: "uncontrolled",
|
@@ -8037,16 +8042,16 @@ function F_core18256_Create({ documentType }) {
|
|
8037
8042
|
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8038
8043
|
}
|
8039
8044
|
});
|
8040
|
-
return /* @__PURE__ */
|
8041
|
-
/* @__PURE__ */
|
8042
|
-
/* @__PURE__ */
|
8045
|
+
return /* @__PURE__ */ jsxs40(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
8046
|
+
/* @__PURE__ */ jsx69(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8047
|
+
/* @__PURE__ */ jsx69(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8043
8048
|
] });
|
8044
8049
|
}
|
8045
8050
|
|
8046
8051
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
8047
|
-
import { jsx as
|
8052
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
8048
8053
|
function F_core18256_Delete({ id }) {
|
8049
|
-
return /* @__PURE__ */
|
8054
|
+
return /* @__PURE__ */ jsx70(
|
8050
8055
|
MyActionIconDelete,
|
8051
8056
|
{
|
8052
8057
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
@@ -8056,19 +8061,19 @@ function F_core18256_Delete({ id }) {
|
|
8056
8061
|
|
8057
8062
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
8058
8063
|
import { useForm as useForm6 } from "@mantine/form";
|
8059
|
-
import { jsx as
|
8064
|
+
import { jsx as jsx71, jsxs as jsxs41 } from "react/jsx-runtime";
|
8060
8065
|
function F_core18256_Update({ values }) {
|
8061
8066
|
const form = useForm6({
|
8062
8067
|
initialValues: values
|
8063
8068
|
});
|
8064
|
-
return /* @__PURE__ */
|
8065
|
-
/* @__PURE__ */
|
8066
|
-
/* @__PURE__ */
|
8069
|
+
return /* @__PURE__ */ jsxs41(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
8070
|
+
/* @__PURE__ */ jsx71(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8071
|
+
/* @__PURE__ */ jsx71(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8067
8072
|
] });
|
8068
8073
|
}
|
8069
8074
|
|
8070
8075
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
8071
|
-
import { jsx as
|
8076
|
+
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
8072
8077
|
function F_core18256_Read({ documentType }) {
|
8073
8078
|
const documentAttributeQuery = useQuery6({
|
8074
8079
|
queryKey: ["F_core18256_Read", documentType],
|
@@ -8093,17 +8098,17 @@ function F_core18256_Read({ documentType }) {
|
|
8093
8098
|
);
|
8094
8099
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
8095
8100
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8096
|
-
return /* @__PURE__ */
|
8101
|
+
return /* @__PURE__ */ jsx72(
|
8097
8102
|
MyDataTable,
|
8098
8103
|
{
|
8099
8104
|
columns,
|
8100
8105
|
enableRowNumbers: true,
|
8101
8106
|
data: documentAttributeQuery.data,
|
8102
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
8107
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx72(F_core18256_Create, { documentType }),
|
8103
8108
|
renderRowActions: ({ row }) => {
|
8104
|
-
return /* @__PURE__ */
|
8105
|
-
/* @__PURE__ */
|
8106
|
-
/* @__PURE__ */
|
8109
|
+
return /* @__PURE__ */ jsxs42(MyCenterFull, { children: [
|
8110
|
+
/* @__PURE__ */ jsx72(F_core18256_Update, { values: row.original }),
|
8111
|
+
/* @__PURE__ */ jsx72(F_core18256_Delete, { id: row.original.id })
|
8107
8112
|
] });
|
8108
8113
|
}
|
8109
8114
|
}
|
@@ -8111,23 +8116,23 @@ function F_core18256_Read({ documentType }) {
|
|
8111
8116
|
}
|
8112
8117
|
|
8113
8118
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
8114
|
-
import { jsx as
|
8119
|
+
import { jsx as jsx73, jsxs as jsxs43 } from "react/jsx-runtime";
|
8115
8120
|
var tabData = [
|
8116
8121
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
8117
8122
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
8118
8123
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
8119
8124
|
];
|
8120
8125
|
function F_core18256() {
|
8121
|
-
return /* @__PURE__ */
|
8122
|
-
/* @__PURE__ */
|
8123
|
-
/* @__PURE__ */
|
8124
|
-
/* @__PURE__ */
|
8126
|
+
return /* @__PURE__ */ jsxs43(MyTab, { tabList: tabData, children: [
|
8127
|
+
/* @__PURE__ */ jsx73(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx73(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
8128
|
+
/* @__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 }) }),
|
8129
|
+
/* @__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
8130
|
] });
|
8126
8131
|
}
|
8127
8132
|
|
8128
8133
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
8129
8134
|
import { useForm as useForm7 } from "@mantine/form";
|
8130
|
-
import { jsx as
|
8135
|
+
import { jsx as jsx74, jsxs as jsxs44 } from "react/jsx-runtime";
|
8131
8136
|
function F_core26965_Create({
|
8132
8137
|
RegulationsTypeId
|
8133
8138
|
}) {
|
@@ -8141,7 +8146,7 @@ function F_core26965_Create({
|
|
8141
8146
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8142
8147
|
}
|
8143
8148
|
});
|
8144
|
-
return /* @__PURE__ */
|
8149
|
+
return /* @__PURE__ */ jsxs44(
|
8145
8150
|
MyButtonCreate,
|
8146
8151
|
{
|
8147
8152
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8153,28 +8158,28 @@ function F_core26965_Create({
|
|
8153
8158
|
}));
|
8154
8159
|
},
|
8155
8160
|
children: [
|
8156
|
-
/* @__PURE__ */
|
8161
|
+
/* @__PURE__ */ jsx74(
|
8157
8162
|
MyTextInput,
|
8158
8163
|
__spreadValues({
|
8159
8164
|
withAsterisk: true,
|
8160
8165
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8161
8166
|
}, form.getInputProps("decisionCode"))
|
8162
8167
|
),
|
8163
|
-
/* @__PURE__ */
|
8168
|
+
/* @__PURE__ */ jsx74(
|
8164
8169
|
MyDateInput,
|
8165
8170
|
__spreadValues({
|
8166
8171
|
withAsterisk: true,
|
8167
8172
|
label: "Ng\xE0y ban h\xE0nh"
|
8168
8173
|
}, form.getInputProps("promulgateDate"))
|
8169
8174
|
),
|
8170
|
-
/* @__PURE__ */
|
8175
|
+
/* @__PURE__ */ jsx74(
|
8171
8176
|
MyTextInput,
|
8172
8177
|
__spreadValues({
|
8173
8178
|
withAsterisk: true,
|
8174
8179
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8175
8180
|
}, form.getInputProps("name"))
|
8176
8181
|
),
|
8177
|
-
/* @__PURE__ */
|
8182
|
+
/* @__PURE__ */ jsx74(
|
8178
8183
|
F_core18256_Select,
|
8179
8184
|
__spreadValues({
|
8180
8185
|
withAsterisk: true,
|
@@ -8182,14 +8187,14 @@ function F_core26965_Create({
|
|
8182
8187
|
documentTypeId: RegulationsTypeId
|
8183
8188
|
}, form.getInputProps("documentAttributeId"))
|
8184
8189
|
),
|
8185
|
-
/* @__PURE__ */
|
8190
|
+
/* @__PURE__ */ jsx74(
|
8186
8191
|
MyFileInput,
|
8187
8192
|
__spreadValues({
|
8188
8193
|
withAsterisk: true,
|
8189
8194
|
label: "V\u0103n b\u1EA3n"
|
8190
8195
|
}, form.getInputProps("file"))
|
8191
8196
|
),
|
8192
|
-
/* @__PURE__ */
|
8197
|
+
/* @__PURE__ */ jsx74(
|
8193
8198
|
MyNumberInput,
|
8194
8199
|
__spreadValues({
|
8195
8200
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8206,12 +8211,12 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
8206
8211
|
import { useMemo as useMemo6 } from "react";
|
8207
8212
|
|
8208
8213
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
8209
|
-
import { jsx as
|
8214
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
8210
8215
|
function F_core26965_Delete({
|
8211
8216
|
id,
|
8212
8217
|
contextData
|
8213
8218
|
}) {
|
8214
|
-
return /* @__PURE__ */
|
8219
|
+
return /* @__PURE__ */ jsx75(
|
8215
8220
|
MyActionIconDelete,
|
8216
8221
|
{
|
8217
8222
|
contextData,
|
@@ -8222,7 +8227,7 @@ function F_core26965_Delete({
|
|
8222
8227
|
|
8223
8228
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
8224
8229
|
import { useForm as useForm8 } from "@mantine/form";
|
8225
|
-
import { jsx as
|
8230
|
+
import { jsx as jsx76, jsxs as jsxs45 } from "react/jsx-runtime";
|
8226
8231
|
function F_core26965_Update({
|
8227
8232
|
values,
|
8228
8233
|
RegulationsTypeId
|
@@ -8244,7 +8249,7 @@ function F_core26965_Update({
|
|
8244
8249
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8245
8250
|
}
|
8246
8251
|
});
|
8247
|
-
return /* @__PURE__ */
|
8252
|
+
return /* @__PURE__ */ jsxs45(
|
8248
8253
|
MyActionIconUpdate,
|
8249
8254
|
{
|
8250
8255
|
form,
|
@@ -8254,28 +8259,28 @@ function F_core26965_Update({
|
|
8254
8259
|
}));
|
8255
8260
|
},
|
8256
8261
|
children: [
|
8257
|
-
/* @__PURE__ */
|
8262
|
+
/* @__PURE__ */ jsx76(
|
8258
8263
|
MyTextInput,
|
8259
8264
|
__spreadValues({
|
8260
8265
|
withAsterisk: true,
|
8261
8266
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8262
8267
|
}, form.getInputProps("decisionCode"))
|
8263
8268
|
),
|
8264
|
-
/* @__PURE__ */
|
8269
|
+
/* @__PURE__ */ jsx76(
|
8265
8270
|
MyDateInput,
|
8266
8271
|
__spreadValues({
|
8267
8272
|
withAsterisk: true,
|
8268
8273
|
label: "Ng\xE0y ban h\xE0nh"
|
8269
8274
|
}, form.getInputProps("promulgateDate"))
|
8270
8275
|
),
|
8271
|
-
/* @__PURE__ */
|
8276
|
+
/* @__PURE__ */ jsx76(
|
8272
8277
|
MyTextInput,
|
8273
8278
|
__spreadValues({
|
8274
8279
|
withAsterisk: true,
|
8275
8280
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8276
8281
|
}, form.getInputProps("name"))
|
8277
8282
|
),
|
8278
|
-
/* @__PURE__ */
|
8283
|
+
/* @__PURE__ */ jsx76(
|
8279
8284
|
F_core18256_Select,
|
8280
8285
|
__spreadValues({
|
8281
8286
|
withAsterisk: true,
|
@@ -8283,14 +8288,14 @@ function F_core26965_Update({
|
|
8283
8288
|
documentTypeId: RegulationsTypeId
|
8284
8289
|
}, form.getInputProps("documentAttributeId"))
|
8285
8290
|
),
|
8286
|
-
/* @__PURE__ */
|
8291
|
+
/* @__PURE__ */ jsx76(
|
8287
8292
|
MyFileInput,
|
8288
8293
|
__spreadValues({
|
8289
8294
|
withAsterisk: true,
|
8290
8295
|
label: "V\u0103n b\u1EA3n"
|
8291
8296
|
}, form.getInputProps("file"))
|
8292
8297
|
),
|
8293
|
-
/* @__PURE__ */
|
8298
|
+
/* @__PURE__ */ jsx76(
|
8294
8299
|
MyNumberInput,
|
8295
8300
|
__spreadValues({
|
8296
8301
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8302,7 +8307,7 @@ function F_core26965_Update({
|
|
8302
8307
|
}
|
8303
8308
|
|
8304
8309
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
8305
|
-
import { jsx as
|
8310
|
+
import { jsx as jsx77, jsxs as jsxs46 } from "react/jsx-runtime";
|
8306
8311
|
function F_core26965_Read({
|
8307
8312
|
RegulationsTypeId
|
8308
8313
|
}) {
|
@@ -8320,8 +8325,8 @@ function F_core26965_Read({
|
|
8320
8325
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8321
8326
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8322
8327
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8323
|
-
return /* @__PURE__ */
|
8324
|
-
return /* @__PURE__ */
|
8328
|
+
return /* @__PURE__ */ jsx77(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8329
|
+
return /* @__PURE__ */ jsx77(MyFlexColumn, { children: /* @__PURE__ */ jsx77(
|
8325
8330
|
Accordion2,
|
8326
8331
|
{
|
8327
8332
|
variant: "contained",
|
@@ -8332,7 +8337,7 @@ function F_core26965_Read({
|
|
8332
8337
|
}
|
8333
8338
|
),
|
8334
8339
|
multiple: true,
|
8335
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8340
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx77(
|
8336
8341
|
SubRead2,
|
8337
8342
|
{
|
8338
8343
|
name: item.name,
|
@@ -8375,7 +8380,7 @@ function SubRead2({
|
|
8375
8380
|
{
|
8376
8381
|
header: "File",
|
8377
8382
|
accessorFn: (row) => {
|
8378
|
-
return /* @__PURE__ */
|
8383
|
+
return /* @__PURE__ */ jsx77(MyCenterFull, { children: /* @__PURE__ */ jsx77(MyButtonViewPDF, { id: row.id }) });
|
8379
8384
|
}
|
8380
8385
|
}
|
8381
8386
|
],
|
@@ -8383,22 +8388,22 @@ function SubRead2({
|
|
8383
8388
|
);
|
8384
8389
|
if (documentQuery.isLoading) return "Loading...";
|
8385
8390
|
if (documentQuery.isError) return "Error!";
|
8386
|
-
return /* @__PURE__ */
|
8387
|
-
/* @__PURE__ */
|
8388
|
-
/* @__PURE__ */
|
8391
|
+
return /* @__PURE__ */ jsxs46(Accordion2.Item, { value: documentType.toString(), children: [
|
8392
|
+
/* @__PURE__ */ jsx77(Accordion2.Control, { children: name }),
|
8393
|
+
/* @__PURE__ */ jsx77(Accordion2.Panel, { children: /* @__PURE__ */ jsx77(
|
8389
8394
|
MyDataTable,
|
8390
8395
|
{
|
8391
8396
|
columns,
|
8392
8397
|
data: documentQuery.data,
|
8393
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8394
|
-
/* @__PURE__ */
|
8398
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs46(MyCenterFull, { children: [
|
8399
|
+
/* @__PURE__ */ jsx77(
|
8395
8400
|
F_core26965_Update,
|
8396
8401
|
{
|
8397
8402
|
RegulationsTypeId,
|
8398
8403
|
values: row.original
|
8399
8404
|
}
|
8400
8405
|
),
|
8401
|
-
/* @__PURE__ */
|
8406
|
+
/* @__PURE__ */ jsx77(
|
8402
8407
|
F_core26965_Delete,
|
8403
8408
|
{
|
8404
8409
|
id: row.original.id,
|
@@ -8412,19 +8417,19 @@ function SubRead2({
|
|
8412
8417
|
}
|
8413
8418
|
|
8414
8419
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
8415
|
-
import { Paper as
|
8416
|
-
import { jsx as
|
8420
|
+
import { Paper as Paper9, Space as Space6 } from "@mantine/core";
|
8421
|
+
import { jsx as jsx78, jsxs as jsxs47 } from "react/jsx-runtime";
|
8417
8422
|
function F_core26965({ RegulationsTypeId }) {
|
8418
|
-
return /* @__PURE__ */
|
8419
|
-
/* @__PURE__ */
|
8420
|
-
/* @__PURE__ */
|
8421
|
-
/* @__PURE__ */
|
8423
|
+
return /* @__PURE__ */ jsxs47(Paper9, { p: "md", children: [
|
8424
|
+
/* @__PURE__ */ jsx78(MyFlexEnd, { children: /* @__PURE__ */ jsx78(F_core26965_Create, { RegulationsTypeId }) }),
|
8425
|
+
/* @__PURE__ */ jsx78(Space6, {}),
|
8426
|
+
/* @__PURE__ */ jsx78(F_core26965_Read, { RegulationsTypeId })
|
8422
8427
|
] });
|
8423
8428
|
}
|
8424
8429
|
|
8425
8430
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
8426
8431
|
import { useForm as useForm9 } from "@mantine/form";
|
8427
|
-
import { jsx as
|
8432
|
+
import { jsx as jsx79, jsxs as jsxs48 } from "react/jsx-runtime";
|
8428
8433
|
function F_core27311_Create({
|
8429
8434
|
WorkflowTypeId
|
8430
8435
|
}) {
|
@@ -8438,7 +8443,7 @@ function F_core27311_Create({
|
|
8438
8443
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8439
8444
|
}
|
8440
8445
|
});
|
8441
|
-
return /* @__PURE__ */
|
8446
|
+
return /* @__PURE__ */ jsxs48(
|
8442
8447
|
MyButtonCreate,
|
8443
8448
|
{
|
8444
8449
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8450,28 +8455,28 @@ function F_core27311_Create({
|
|
8450
8455
|
}));
|
8451
8456
|
},
|
8452
8457
|
children: [
|
8453
|
-
/* @__PURE__ */
|
8458
|
+
/* @__PURE__ */ jsx79(
|
8454
8459
|
MyTextInput,
|
8455
8460
|
__spreadValues({
|
8456
8461
|
withAsterisk: true,
|
8457
8462
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8458
8463
|
}, form.getInputProps("decisionCode"))
|
8459
8464
|
),
|
8460
|
-
/* @__PURE__ */
|
8465
|
+
/* @__PURE__ */ jsx79(
|
8461
8466
|
MyDateInput,
|
8462
8467
|
__spreadValues({
|
8463
8468
|
withAsterisk: true,
|
8464
8469
|
label: "Ng\xE0y ban h\xE0nh"
|
8465
8470
|
}, form.getInputProps("promulgateDate"))
|
8466
8471
|
),
|
8467
|
-
/* @__PURE__ */
|
8472
|
+
/* @__PURE__ */ jsx79(
|
8468
8473
|
MyTextInput,
|
8469
8474
|
__spreadValues({
|
8470
8475
|
withAsterisk: true,
|
8471
8476
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8472
8477
|
}, form.getInputProps("name"))
|
8473
8478
|
),
|
8474
|
-
/* @__PURE__ */
|
8479
|
+
/* @__PURE__ */ jsx79(
|
8475
8480
|
F_core18256_Select,
|
8476
8481
|
__spreadValues({
|
8477
8482
|
withAsterisk: true,
|
@@ -8479,14 +8484,14 @@ function F_core27311_Create({
|
|
8479
8484
|
documentTypeId: WorkflowTypeId
|
8480
8485
|
}, form.getInputProps("documentAttributeId"))
|
8481
8486
|
),
|
8482
|
-
/* @__PURE__ */
|
8487
|
+
/* @__PURE__ */ jsx79(
|
8483
8488
|
MyFileInput,
|
8484
8489
|
__spreadValues({
|
8485
8490
|
withAsterisk: true,
|
8486
8491
|
label: "V\u0103n b\u1EA3n"
|
8487
8492
|
}, form.getInputProps("file"))
|
8488
8493
|
),
|
8489
|
-
/* @__PURE__ */
|
8494
|
+
/* @__PURE__ */ jsx79(
|
8490
8495
|
MyNumberInput,
|
8491
8496
|
__spreadValues({
|
8492
8497
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8503,12 +8508,12 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
8503
8508
|
import { useMemo as useMemo7 } from "react";
|
8504
8509
|
|
8505
8510
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
8506
|
-
import { jsx as
|
8511
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
8507
8512
|
function F_core27311_Delete({
|
8508
8513
|
id,
|
8509
8514
|
contextData
|
8510
8515
|
}) {
|
8511
|
-
return /* @__PURE__ */
|
8516
|
+
return /* @__PURE__ */ jsx80(
|
8512
8517
|
MyActionIconDelete,
|
8513
8518
|
{
|
8514
8519
|
contextData,
|
@@ -8519,7 +8524,7 @@ function F_core27311_Delete({
|
|
8519
8524
|
|
8520
8525
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
8521
8526
|
import { useForm as useForm10 } from "@mantine/form";
|
8522
|
-
import { jsx as
|
8527
|
+
import { jsx as jsx81, jsxs as jsxs49 } from "react/jsx-runtime";
|
8523
8528
|
function F_core27311_Update({
|
8524
8529
|
values,
|
8525
8530
|
WorkflowTypeId
|
@@ -8541,7 +8546,7 @@ function F_core27311_Update({
|
|
8541
8546
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8542
8547
|
}
|
8543
8548
|
});
|
8544
|
-
return /* @__PURE__ */
|
8549
|
+
return /* @__PURE__ */ jsxs49(
|
8545
8550
|
MyActionIconUpdate,
|
8546
8551
|
{
|
8547
8552
|
form,
|
@@ -8551,28 +8556,28 @@ function F_core27311_Update({
|
|
8551
8556
|
}));
|
8552
8557
|
},
|
8553
8558
|
children: [
|
8554
|
-
/* @__PURE__ */
|
8559
|
+
/* @__PURE__ */ jsx81(
|
8555
8560
|
MyTextInput,
|
8556
8561
|
__spreadValues({
|
8557
8562
|
withAsterisk: true,
|
8558
8563
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8559
8564
|
}, form.getInputProps("decisionCode"))
|
8560
8565
|
),
|
8561
|
-
/* @__PURE__ */
|
8566
|
+
/* @__PURE__ */ jsx81(
|
8562
8567
|
MyDateInput,
|
8563
8568
|
__spreadValues({
|
8564
8569
|
withAsterisk: true,
|
8565
8570
|
label: "Ng\xE0y ban h\xE0nh"
|
8566
8571
|
}, form.getInputProps("promulgateDate"))
|
8567
8572
|
),
|
8568
|
-
/* @__PURE__ */
|
8573
|
+
/* @__PURE__ */ jsx81(
|
8569
8574
|
MyTextInput,
|
8570
8575
|
__spreadValues({
|
8571
8576
|
withAsterisk: true,
|
8572
8577
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8573
8578
|
}, form.getInputProps("name"))
|
8574
8579
|
),
|
8575
|
-
/* @__PURE__ */
|
8580
|
+
/* @__PURE__ */ jsx81(
|
8576
8581
|
F_core18256_Select,
|
8577
8582
|
__spreadValues({
|
8578
8583
|
withAsterisk: true,
|
@@ -8580,14 +8585,14 @@ function F_core27311_Update({
|
|
8580
8585
|
documentTypeId: WorkflowTypeId
|
8581
8586
|
}, form.getInputProps("documentAttributeId"))
|
8582
8587
|
),
|
8583
|
-
/* @__PURE__ */
|
8588
|
+
/* @__PURE__ */ jsx81(
|
8584
8589
|
MyFileInput,
|
8585
8590
|
__spreadValues({
|
8586
8591
|
withAsterisk: true,
|
8587
8592
|
label: "V\u0103n b\u1EA3n"
|
8588
8593
|
}, form.getInputProps("file"))
|
8589
8594
|
),
|
8590
|
-
/* @__PURE__ */
|
8595
|
+
/* @__PURE__ */ jsx81(
|
8591
8596
|
MyNumberInput,
|
8592
8597
|
__spreadValues({
|
8593
8598
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8599,7 +8604,7 @@ function F_core27311_Update({
|
|
8599
8604
|
}
|
8600
8605
|
|
8601
8606
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
8602
|
-
import { jsx as
|
8607
|
+
import { jsx as jsx82, jsxs as jsxs50 } from "react/jsx-runtime";
|
8603
8608
|
function F_core27311_Read({
|
8604
8609
|
WorkflowTypeId
|
8605
8610
|
}) {
|
@@ -8617,8 +8622,8 @@ function F_core27311_Read({
|
|
8617
8622
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8618
8623
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8619
8624
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8620
|
-
return /* @__PURE__ */
|
8621
|
-
return /* @__PURE__ */
|
8625
|
+
return /* @__PURE__ */ jsx82(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8626
|
+
return /* @__PURE__ */ jsx82(MyFlexColumn, { children: /* @__PURE__ */ jsx82(
|
8622
8627
|
Accordion3,
|
8623
8628
|
{
|
8624
8629
|
variant: "contained",
|
@@ -8629,7 +8634,7 @@ function F_core27311_Read({
|
|
8629
8634
|
}
|
8630
8635
|
),
|
8631
8636
|
multiple: true,
|
8632
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8637
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx82(
|
8633
8638
|
SubRead3,
|
8634
8639
|
{
|
8635
8640
|
name: item.name,
|
@@ -8672,7 +8677,7 @@ function SubRead3({
|
|
8672
8677
|
{
|
8673
8678
|
header: "File",
|
8674
8679
|
accessorFn: (row) => {
|
8675
|
-
return /* @__PURE__ */
|
8680
|
+
return /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(MyButtonViewPDF, { id: row.id }) });
|
8676
8681
|
}
|
8677
8682
|
}
|
8678
8683
|
],
|
@@ -8680,22 +8685,22 @@ function SubRead3({
|
|
8680
8685
|
);
|
8681
8686
|
if (documentQuery.isLoading) return "Loading...";
|
8682
8687
|
if (documentQuery.isError) return "Error!";
|
8683
|
-
return /* @__PURE__ */
|
8684
|
-
/* @__PURE__ */
|
8685
|
-
/* @__PURE__ */
|
8688
|
+
return /* @__PURE__ */ jsxs50(Accordion3.Item, { value: documentType.toString(), children: [
|
8689
|
+
/* @__PURE__ */ jsx82(Accordion3.Control, { children: name }),
|
8690
|
+
/* @__PURE__ */ jsx82(Accordion3.Panel, { children: /* @__PURE__ */ jsx82(
|
8686
8691
|
MyDataTable,
|
8687
8692
|
{
|
8688
8693
|
columns,
|
8689
8694
|
data: documentQuery.data,
|
8690
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8691
|
-
/* @__PURE__ */
|
8695
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs50(MyCenterFull, { children: [
|
8696
|
+
/* @__PURE__ */ jsx82(
|
8692
8697
|
F_core27311_Update,
|
8693
8698
|
{
|
8694
8699
|
WorkflowTypeId,
|
8695
8700
|
values: row.original
|
8696
8701
|
}
|
8697
8702
|
),
|
8698
|
-
/* @__PURE__ */
|
8703
|
+
/* @__PURE__ */ jsx82(
|
8699
8704
|
F_core27311_Delete,
|
8700
8705
|
{
|
8701
8706
|
id: row.original.id,
|
@@ -8709,40 +8714,40 @@ function SubRead3({
|
|
8709
8714
|
}
|
8710
8715
|
|
8711
8716
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
8712
|
-
import { Paper as
|
8713
|
-
import { jsx as
|
8717
|
+
import { Paper as Paper10, Space as Space7 } from "@mantine/core";
|
8718
|
+
import { jsx as jsx83, jsxs as jsxs51 } from "react/jsx-runtime";
|
8714
8719
|
function F_core27311({
|
8715
8720
|
WorkflowTypeId
|
8716
8721
|
}) {
|
8717
|
-
return /* @__PURE__ */
|
8718
|
-
/* @__PURE__ */
|
8719
|
-
/* @__PURE__ */
|
8720
|
-
/* @__PURE__ */
|
8722
|
+
return /* @__PURE__ */ jsxs51(Paper10, { p: "md", children: [
|
8723
|
+
/* @__PURE__ */ jsx83(MyFlexEnd, { children: /* @__PURE__ */ jsx83(F_core27311_Create, { WorkflowTypeId }) }),
|
8724
|
+
/* @__PURE__ */ jsx83(Space7, {}),
|
8725
|
+
/* @__PURE__ */ jsx83(F_core27311_Read, { WorkflowTypeId })
|
8721
8726
|
] });
|
8722
8727
|
}
|
8723
8728
|
|
8724
8729
|
// src/modules-features/admin/core/core35923/F_core35923.tsx
|
8725
8730
|
import { Grid } from "@mantine/core";
|
8726
|
-
import { jsx as
|
8731
|
+
import { jsx as jsx84, jsxs as jsxs52 } from "react/jsx-runtime";
|
8727
8732
|
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__ */
|
8733
|
+
return /* @__PURE__ */ jsxs52(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
8734
|
+
/* @__PURE__ */ jsxs52(Grid, { children: [
|
8735
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "M\xE3 module", disabled: true }) }),
|
8736
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "T\xEAn module" }) }),
|
8737
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
8738
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "Email" }) }),
|
8739
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
8740
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
8741
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyTextInput, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
8742
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
8743
|
+
/* @__PURE__ */ jsx84(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx84(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
8739
8744
|
] }),
|
8740
|
-
/* @__PURE__ */
|
8745
|
+
/* @__PURE__ */ jsx84(MyFlexEnd, { children: /* @__PURE__ */ jsx84(MyButton, { crudType: "save" }) })
|
8741
8746
|
] });
|
8742
8747
|
}
|
8743
8748
|
|
8744
8749
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
8745
|
-
import { Grid as Grid2, Paper as
|
8750
|
+
import { Grid as Grid2, Paper as Paper11, ScrollArea as ScrollArea6 } from "@mantine/core";
|
8746
8751
|
|
8747
8752
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
8748
8753
|
import { Container as Container4 } from "@mantine/core";
|
@@ -8798,7 +8803,7 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
8798
8803
|
}
|
8799
8804
|
|
8800
8805
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
8801
|
-
import { jsx as
|
8806
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
8802
8807
|
function F_core38677_ReadUser() {
|
8803
8808
|
const store = useS_core83092();
|
8804
8809
|
const query = useQ_Account_GetAdminAccount();
|
@@ -8831,7 +8836,7 @@ function F_core38677_ReadUser() {
|
|
8831
8836
|
}, [query.data]);
|
8832
8837
|
if (query.isLoading) return "Loading...";
|
8833
8838
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8834
|
-
return /* @__PURE__ */
|
8839
|
+
return /* @__PURE__ */ jsx85(Container4, { fluid: true, children: /* @__PURE__ */ jsx85(
|
8835
8840
|
MyDataTable,
|
8836
8841
|
{
|
8837
8842
|
columns,
|
@@ -8867,7 +8872,7 @@ function useQ_Account_GetAdminAccount() {
|
|
8867
8872
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
8868
8873
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
8869
8874
|
import { useEffect as useEffect9, useState as useState10 } from "react";
|
8870
|
-
import { jsx as
|
8875
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
8871
8876
|
function F_core38677_Save() {
|
8872
8877
|
const store = useS_core83092();
|
8873
8878
|
const disable = useState10(false);
|
@@ -8896,7 +8901,7 @@ function F_core38677_Save() {
|
|
8896
8901
|
}
|
8897
8902
|
disable[1](false);
|
8898
8903
|
}, [store.state.rolePermissions]);
|
8899
|
-
return /* @__PURE__ */
|
8904
|
+
return /* @__PURE__ */ jsx86(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
8900
8905
|
}
|
8901
8906
|
|
8902
8907
|
// src/data/menuData.ts
|
@@ -8931,11 +8936,11 @@ var menuData = [
|
|
8931
8936
|
];
|
8932
8937
|
|
8933
8938
|
// src/modules-features/admin/core/core38677/F_core38677_ViewMenuPermissions.tsx
|
8934
|
-
import { Checkbox as Checkbox3, Flex as
|
8939
|
+
import { Checkbox as Checkbox3, Flex as Flex6, ScrollArea as ScrollArea5, Table as Table3, Text as Text15 } from "@mantine/core";
|
8935
8940
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
8936
8941
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
8937
8942
|
import React2, { useEffect as useEffect10, useState as useState11 } from "react";
|
8938
|
-
import { jsx as
|
8943
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
8939
8944
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
8940
8945
|
function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
8941
8946
|
var _a, _b;
|
@@ -8950,8 +8955,8 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8950
8955
|
store.setProperty("rolePermissions", query.data);
|
8951
8956
|
}, [query.data]);
|
8952
8957
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
8953
|
-
return /* @__PURE__ */
|
8954
|
-
/* @__PURE__ */
|
8958
|
+
return /* @__PURE__ */ jsx87(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs53(Table3, { children: [
|
8959
|
+
/* @__PURE__ */ jsx87(
|
8955
8960
|
Table3.Thead,
|
8956
8961
|
{
|
8957
8962
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -8962,90 +8967,90 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8962
8967
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
8963
8968
|
border: "1px solid var(--mantine-color-gray-4)"
|
8964
8969
|
},
|
8965
|
-
children: /* @__PURE__ */
|
8966
|
-
/* @__PURE__ */
|
8967
|
-
/* @__PURE__ */
|
8968
|
-
/* @__PURE__ */
|
8970
|
+
children: /* @__PURE__ */ jsxs53(Table3.Tr, { children: [
|
8971
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: title }),
|
8972
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8973
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
8969
8974
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
8970
8975
|
} }),
|
8971
|
-
/* @__PURE__ */
|
8976
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8972
8977
|
"Xem",
|
8973
|
-
/* @__PURE__ */
|
8978
|
+
/* @__PURE__ */ jsx87(IconEyeUp, { color: "gray" })
|
8974
8979
|
] })
|
8975
8980
|
] }) }),
|
8976
|
-
/* @__PURE__ */
|
8977
|
-
/* @__PURE__ */
|
8981
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8982
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
8978
8983
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
8979
8984
|
} }),
|
8980
|
-
/* @__PURE__ */
|
8985
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8981
8986
|
"Th\xEAm",
|
8982
|
-
/* @__PURE__ */
|
8987
|
+
/* @__PURE__ */ jsx87(IconPlus5, { color: "blue" })
|
8983
8988
|
] })
|
8984
8989
|
] }) }),
|
8985
|
-
/* @__PURE__ */
|
8986
|
-
/* @__PURE__ */
|
8990
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8991
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
8987
8992
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
8988
8993
|
} }),
|
8989
|
-
/* @__PURE__ */
|
8994
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8990
8995
|
"S\u1EEDa",
|
8991
|
-
/* @__PURE__ */
|
8996
|
+
/* @__PURE__ */ jsx87(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
8992
8997
|
] })
|
8993
8998
|
] }) }),
|
8994
|
-
/* @__PURE__ */
|
8995
|
-
/* @__PURE__ */
|
8999
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9000
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
8996
9001
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
8997
9002
|
} }),
|
8998
|
-
/* @__PURE__ */
|
9003
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
8999
9004
|
"X\xF3a",
|
9000
|
-
/* @__PURE__ */
|
9005
|
+
/* @__PURE__ */ jsx87(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
9001
9006
|
] })
|
9002
9007
|
] }) }),
|
9003
|
-
/* @__PURE__ */
|
9004
|
-
/* @__PURE__ */
|
9008
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9009
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
9005
9010
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
9006
9011
|
} }),
|
9007
|
-
/* @__PURE__ */
|
9012
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
9008
9013
|
"In",
|
9009
|
-
/* @__PURE__ */
|
9014
|
+
/* @__PURE__ */ jsx87(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
9010
9015
|
] })
|
9011
9016
|
] }) }),
|
9012
|
-
/* @__PURE__ */
|
9013
|
-
/* @__PURE__ */
|
9017
|
+
/* @__PURE__ */ jsx87(Table3.Th, { children: /* @__PURE__ */ jsxs53(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
9018
|
+
/* @__PURE__ */ jsx87(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
9014
9019
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
9015
9020
|
} }),
|
9016
|
-
/* @__PURE__ */
|
9021
|
+
/* @__PURE__ */ jsxs53(MyFlexRow, { gap: 3, children: [
|
9017
9022
|
"Xu\u1EA5t",
|
9018
|
-
/* @__PURE__ */
|
9023
|
+
/* @__PURE__ */ jsx87(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
9019
9024
|
] })
|
9020
9025
|
] }) })
|
9021
9026
|
] })
|
9022
9027
|
}
|
9023
9028
|
),
|
9024
|
-
/* @__PURE__ */
|
9025
|
-
if (item.links == void 0) return /* @__PURE__ */
|
9026
|
-
/* @__PURE__ */
|
9027
|
-
/* @__PURE__ */
|
9028
|
-
/* @__PURE__ */
|
9029
|
-
/* @__PURE__ */
|
9030
|
-
/* @__PURE__ */
|
9031
|
-
/* @__PURE__ */
|
9032
|
-
/* @__PURE__ */
|
9029
|
+
/* @__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) => {
|
9030
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs53(Table3.Tr, { children: [
|
9031
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: item.label }),
|
9032
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9033
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9034
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9035
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9036
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) }),
|
9037
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(Checkbox3, {}) }) })
|
9033
9038
|
] }, idx);
|
9034
|
-
return /* @__PURE__ */
|
9035
|
-
/* @__PURE__ */
|
9039
|
+
return /* @__PURE__ */ jsxs53(React2.Fragment, { children: [
|
9040
|
+
/* @__PURE__ */ jsx87(Table3.Tr, { children: /* @__PURE__ */ jsx87(
|
9036
9041
|
Table3.Td,
|
9037
9042
|
{
|
9038
9043
|
colSpan: 7,
|
9039
9044
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
9040
|
-
children: /* @__PURE__ */
|
9045
|
+
children: /* @__PURE__ */ jsx87(Text15, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
9041
9046
|
}
|
9042
9047
|
) }, item.label),
|
9043
9048
|
item.links.map(
|
9044
9049
|
(item2, idx2) => {
|
9045
9050
|
var _a2, _b2, _c, _d, _e, _f;
|
9046
|
-
return /* @__PURE__ */
|
9047
|
-
/* @__PURE__ */
|
9048
|
-
/* @__PURE__ */
|
9051
|
+
return /* @__PURE__ */ jsxs53(Table3.Tr, { children: [
|
9052
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: item2.label }),
|
9053
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9049
9054
|
Checkbox3,
|
9050
9055
|
{
|
9051
9056
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -9056,7 +9061,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9056
9061
|
}
|
9057
9062
|
}
|
9058
9063
|
) }) }),
|
9059
|
-
/* @__PURE__ */
|
9064
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9060
9065
|
Checkbox3,
|
9061
9066
|
{
|
9062
9067
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -9067,7 +9072,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9067
9072
|
}
|
9068
9073
|
}
|
9069
9074
|
) }) }),
|
9070
|
-
/* @__PURE__ */
|
9075
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9071
9076
|
Checkbox3,
|
9072
9077
|
{
|
9073
9078
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -9078,7 +9083,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9078
9083
|
}
|
9079
9084
|
}
|
9080
9085
|
) }) }),
|
9081
|
-
/* @__PURE__ */
|
9086
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9082
9087
|
Checkbox3,
|
9083
9088
|
{
|
9084
9089
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -9089,7 +9094,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9089
9094
|
}
|
9090
9095
|
}
|
9091
9096
|
) }) }),
|
9092
|
-
/* @__PURE__ */
|
9097
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9093
9098
|
Checkbox3,
|
9094
9099
|
{
|
9095
9100
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -9100,7 +9105,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9100
9105
|
}
|
9101
9106
|
}
|
9102
9107
|
) }) }),
|
9103
|
-
/* @__PURE__ */
|
9108
|
+
/* @__PURE__ */ jsx87(Table3.Td, { children: /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(
|
9104
9109
|
Checkbox3,
|
9105
9110
|
{
|
9106
9111
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -9156,13 +9161,13 @@ function useGetUserPermission() {
|
|
9156
9161
|
}
|
9157
9162
|
|
9158
9163
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
9159
|
-
import { jsx as
|
9164
|
+
import { jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
|
9160
9165
|
function F_core38677({ menuData: menuData2 }) {
|
9161
|
-
return /* @__PURE__ */
|
9162
|
-
/* @__PURE__ */
|
9163
|
-
/* @__PURE__ */
|
9164
|
-
/* @__PURE__ */
|
9165
|
-
/* @__PURE__ */
|
9166
|
+
return /* @__PURE__ */ jsxs54(Grid2, { grow: true, children: [
|
9167
|
+
/* @__PURE__ */ jsx88(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx88(F_core38677_ReadUser, {}) }),
|
9168
|
+
/* @__PURE__ */ jsx88(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs54(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
9169
|
+
/* @__PURE__ */ jsx88(ScrollArea6.Autosize, { h: "100%", children: /* @__PURE__ */ jsx88(Paper11, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx88(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
9170
|
+
/* @__PURE__ */ jsx88(F_core38677_Save, {})
|
9166
9171
|
] }) })
|
9167
9172
|
] });
|
9168
9173
|
}
|
@@ -9174,7 +9179,7 @@ import { useMemo as useMemo9 } from "react";
|
|
9174
9179
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
9175
9180
|
import { FileInput as FileInput6 } from "@mantine/core";
|
9176
9181
|
import { useForm as useForm11 } from "@mantine/form";
|
9177
|
-
import { jsx as
|
9182
|
+
import { jsx as jsx89, jsxs as jsxs55 } from "react/jsx-runtime";
|
9178
9183
|
function F_core40207_Create({ GuidelineTypeId }) {
|
9179
9184
|
const form = useForm11({
|
9180
9185
|
mode: "uncontrolled",
|
@@ -9184,7 +9189,7 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9184
9189
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9185
9190
|
}
|
9186
9191
|
});
|
9187
|
-
return /* @__PURE__ */
|
9192
|
+
return /* @__PURE__ */ jsxs55(
|
9188
9193
|
MyButtonCreate,
|
9189
9194
|
{
|
9190
9195
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -9197,21 +9202,21 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9197
9202
|
}));
|
9198
9203
|
},
|
9199
9204
|
children: [
|
9200
|
-
/* @__PURE__ */
|
9205
|
+
/* @__PURE__ */ jsx89(
|
9201
9206
|
MyTextInput,
|
9202
9207
|
__spreadValues({
|
9203
9208
|
withAsterisk: true,
|
9204
9209
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9205
9210
|
}, form.getInputProps("code"))
|
9206
9211
|
),
|
9207
|
-
/* @__PURE__ */
|
9212
|
+
/* @__PURE__ */ jsx89(
|
9208
9213
|
MyTextInput,
|
9209
9214
|
__spreadValues({
|
9210
9215
|
withAsterisk: true,
|
9211
9216
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9212
9217
|
}, form.getInputProps("name"))
|
9213
9218
|
),
|
9214
|
-
/* @__PURE__ */
|
9219
|
+
/* @__PURE__ */ jsx89(
|
9215
9220
|
FileInput6,
|
9216
9221
|
__spreadValues({
|
9217
9222
|
withAsterisk: true,
|
@@ -9225,12 +9230,12 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9225
9230
|
}
|
9226
9231
|
|
9227
9232
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
9228
|
-
import { jsx as
|
9233
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
9229
9234
|
function F_core40207_Delete({
|
9230
9235
|
id,
|
9231
9236
|
contextData
|
9232
9237
|
}) {
|
9233
|
-
return /* @__PURE__ */
|
9238
|
+
return /* @__PURE__ */ jsx90(
|
9234
9239
|
MyActionIconDelete,
|
9235
9240
|
{
|
9236
9241
|
contextData,
|
@@ -9242,7 +9247,7 @@ function F_core40207_Delete({
|
|
9242
9247
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
9243
9248
|
import { FileInput as FileInput7 } from "@mantine/core";
|
9244
9249
|
import { useForm as useForm12 } from "@mantine/form";
|
9245
|
-
import { jsx as
|
9250
|
+
import { jsx as jsx91, jsxs as jsxs56 } from "react/jsx-runtime";
|
9246
9251
|
function F_core40207_Update({ values }) {
|
9247
9252
|
var _a;
|
9248
9253
|
const form = useForm12({
|
@@ -9259,7 +9264,7 @@ function F_core40207_Update({ values }) {
|
|
9259
9264
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9260
9265
|
}
|
9261
9266
|
});
|
9262
|
-
return /* @__PURE__ */
|
9267
|
+
return /* @__PURE__ */ jsxs56(
|
9263
9268
|
MyActionIconUpdate,
|
9264
9269
|
{
|
9265
9270
|
form,
|
@@ -9269,21 +9274,21 @@ function F_core40207_Update({ values }) {
|
|
9269
9274
|
}));
|
9270
9275
|
},
|
9271
9276
|
children: [
|
9272
|
-
/* @__PURE__ */
|
9277
|
+
/* @__PURE__ */ jsx91(
|
9273
9278
|
MyTextInput,
|
9274
9279
|
__spreadValues({
|
9275
9280
|
withAsterisk: true,
|
9276
9281
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9277
9282
|
}, form.getInputProps("code"))
|
9278
9283
|
),
|
9279
|
-
/* @__PURE__ */
|
9284
|
+
/* @__PURE__ */ jsx91(
|
9280
9285
|
MyTextInput,
|
9281
9286
|
__spreadValues({
|
9282
9287
|
withAsterisk: true,
|
9283
9288
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9284
9289
|
}, form.getInputProps("name"))
|
9285
9290
|
),
|
9286
|
-
/* @__PURE__ */
|
9291
|
+
/* @__PURE__ */ jsx91(
|
9287
9292
|
FileInput7,
|
9288
9293
|
__spreadValues({
|
9289
9294
|
withAsterisk: true,
|
@@ -9297,7 +9302,7 @@ function F_core40207_Update({ values }) {
|
|
9297
9302
|
}
|
9298
9303
|
|
9299
9304
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
9300
|
-
import { jsx as
|
9305
|
+
import { jsx as jsx92, jsxs as jsxs57 } from "react/jsx-runtime";
|
9301
9306
|
function F_core40207_Read({ GuidelineTypeId }) {
|
9302
9307
|
const query = useQuery11({
|
9303
9308
|
queryKey: ["F_core40207_Read"],
|
@@ -9322,7 +9327,7 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9322
9327
|
{
|
9323
9328
|
header: "File",
|
9324
9329
|
accessorFn: (row) => {
|
9325
|
-
return /* @__PURE__ */
|
9330
|
+
return /* @__PURE__ */ jsx92(MyCenterFull, { children: /* @__PURE__ */ jsx92(MyButtonViewPDF, { id: row.id }) });
|
9326
9331
|
}
|
9327
9332
|
}
|
9328
9333
|
],
|
@@ -9330,16 +9335,16 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9330
9335
|
);
|
9331
9336
|
if (query.isLoading) return "Loading...";
|
9332
9337
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
9333
|
-
return /* @__PURE__ */
|
9338
|
+
return /* @__PURE__ */ jsx92(
|
9334
9339
|
MyDataTable,
|
9335
9340
|
{
|
9336
9341
|
columns,
|
9337
9342
|
data: query.data,
|
9338
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9343
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx92(F_core40207_Create, { GuidelineTypeId }),
|
9339
9344
|
renderRowActions: ({ row }) => {
|
9340
|
-
return /* @__PURE__ */
|
9341
|
-
/* @__PURE__ */
|
9342
|
-
/* @__PURE__ */
|
9345
|
+
return /* @__PURE__ */ jsxs57(MyCenterFull, { children: [
|
9346
|
+
/* @__PURE__ */ jsx92(F_core40207_Update, { values: row.original }),
|
9347
|
+
/* @__PURE__ */ jsx92(
|
9343
9348
|
F_core40207_Delete,
|
9344
9349
|
{
|
9345
9350
|
id: row.original.id,
|
@@ -9353,21 +9358,21 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9353
9358
|
}
|
9354
9359
|
|
9355
9360
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
9356
|
-
import { jsx as
|
9361
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
9357
9362
|
function F_core40207({ GuidelineTypeId }) {
|
9358
|
-
return /* @__PURE__ */
|
9363
|
+
return /* @__PURE__ */ jsx93(F_core40207_Read, { GuidelineTypeId });
|
9359
9364
|
}
|
9360
9365
|
|
9361
9366
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9362
|
-
import { Group as
|
9367
|
+
import { Group as Group17 } from "@mantine/core";
|
9363
9368
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
9364
9369
|
import { useMemo as useMemo10 } from "react";
|
9365
9370
|
|
9366
9371
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
9367
|
-
import { jsx as
|
9372
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
9368
9373
|
var ENDPOINT = "/Role/Delete";
|
9369
9374
|
function F_core47643_Delete({ values }) {
|
9370
|
-
return /* @__PURE__ */
|
9375
|
+
return /* @__PURE__ */ jsx94(
|
9371
9376
|
MyActionIconDelete,
|
9372
9377
|
{
|
9373
9378
|
contextData: values.code,
|
@@ -9378,28 +9383,28 @@ function F_core47643_Delete({ values }) {
|
|
9378
9383
|
|
9379
9384
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
9380
9385
|
import { useForm as useForm13 } from "@mantine/form";
|
9381
|
-
import { jsx as
|
9386
|
+
import { jsx as jsx95, jsxs as jsxs58 } from "react/jsx-runtime";
|
9382
9387
|
function F_core47643_Form({ values }) {
|
9383
9388
|
const form = useForm13({
|
9384
9389
|
mode: "uncontrolled",
|
9385
9390
|
initialValues: values
|
9386
9391
|
});
|
9387
|
-
if (values) return /* @__PURE__ */
|
9392
|
+
if (values) return /* @__PURE__ */ jsxs58(MyActionIconUpdate, { form, onSubmit: async () => {
|
9388
9393
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
9389
9394
|
}, children: [
|
9390
|
-
/* @__PURE__ */
|
9391
|
-
/* @__PURE__ */
|
9395
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
9396
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9392
9397
|
] });
|
9393
|
-
return /* @__PURE__ */
|
9398
|
+
return /* @__PURE__ */ jsxs58(MyButtonCreate, { form, onSubmit: async () => {
|
9394
9399
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
9395
9400
|
}, children: [
|
9396
|
-
/* @__PURE__ */
|
9397
|
-
/* @__PURE__ */
|
9401
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
9402
|
+
/* @__PURE__ */ jsx95(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9398
9403
|
] });
|
9399
9404
|
}
|
9400
9405
|
|
9401
9406
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9402
|
-
import { jsx as
|
9407
|
+
import { jsx as jsx96, jsxs as jsxs59 } from "react/jsx-runtime";
|
9403
9408
|
function F_core47643_Read() {
|
9404
9409
|
const query = useQ_core47643_GetAdminRole();
|
9405
9410
|
const columns = useMemo10(() => [
|
@@ -9414,15 +9419,15 @@ function F_core47643_Read() {
|
|
9414
9419
|
], []);
|
9415
9420
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
9416
9421
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
9417
|
-
return /* @__PURE__ */
|
9422
|
+
return /* @__PURE__ */ jsx96(
|
9418
9423
|
MyDataTable,
|
9419
9424
|
{
|
9420
9425
|
data: query.data,
|
9421
9426
|
columns,
|
9422
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9423
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9424
|
-
/* @__PURE__ */
|
9425
|
-
/* @__PURE__ */
|
9427
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx96(Group17, { children: /* @__PURE__ */ jsx96(F_core47643_Form, {}) }),
|
9428
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
9429
|
+
/* @__PURE__ */ jsx96(F_core47643_Form, { values: row.original }),
|
9430
|
+
/* @__PURE__ */ jsx96(F_core47643_Delete, { values: row.original })
|
9426
9431
|
] })
|
9427
9432
|
}
|
9428
9433
|
);
|
@@ -9439,16 +9444,16 @@ function useQ_core47643_GetAdminRole() {
|
|
9439
9444
|
}
|
9440
9445
|
|
9441
9446
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
9442
|
-
import { jsx as
|
9447
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
9443
9448
|
function F_core47643() {
|
9444
|
-
return /* @__PURE__ */
|
9449
|
+
return /* @__PURE__ */ jsx97(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx97(F_core47643_Read, {}) });
|
9445
9450
|
}
|
9446
9451
|
|
9447
9452
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
9448
9453
|
import { useEffect as useEffect12 } from "react";
|
9449
9454
|
|
9450
9455
|
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
9451
|
-
import { Grid as Grid3, Paper as
|
9456
|
+
import { Grid as Grid3, Paper as Paper12 } from "@mantine/core";
|
9452
9457
|
import { useForm as useForm14 } from "@mantine/form";
|
9453
9458
|
import { useEffect as useEffect11 } from "react";
|
9454
9459
|
|
@@ -9465,7 +9470,7 @@ function useS_core60524() {
|
|
9465
9470
|
}
|
9466
9471
|
|
9467
9472
|
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
9468
|
-
import { jsx as
|
9473
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
9469
9474
|
function F_core60524_Save({
|
9470
9475
|
form
|
9471
9476
|
}) {
|
@@ -9499,7 +9504,7 @@ function F_core60524_Save({
|
|
9499
9504
|
}
|
9500
9505
|
});
|
9501
9506
|
}
|
9502
|
-
return /* @__PURE__ */
|
9507
|
+
return /* @__PURE__ */ jsx98(
|
9503
9508
|
MyButton,
|
9504
9509
|
{
|
9505
9510
|
disabled: !form.isDirty(),
|
@@ -9510,7 +9515,7 @@ function F_core60524_Save({
|
|
9510
9515
|
}
|
9511
9516
|
|
9512
9517
|
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
9513
|
-
import { jsx as
|
9518
|
+
import { jsx as jsx99, jsxs as jsxs60 } from "react/jsx-runtime";
|
9514
9519
|
function F_core60524_Form() {
|
9515
9520
|
const query = useQ_AQ_GetAQModule();
|
9516
9521
|
const form = useForm14({
|
@@ -9541,14 +9546,14 @@ function F_core60524_Form() {
|
|
9541
9546
|
form.setInitialValues(values);
|
9542
9547
|
form.setValues(values);
|
9543
9548
|
}, [query.data]);
|
9544
|
-
return /* @__PURE__ */
|
9545
|
-
/* @__PURE__ */
|
9546
|
-
/* @__PURE__ */
|
9547
|
-
/* @__PURE__ */
|
9548
|
-
/* @__PURE__ */
|
9549
|
-
/* @__PURE__ */
|
9550
|
-
/* @__PURE__ */
|
9551
|
-
/* @__PURE__ */
|
9549
|
+
return /* @__PURE__ */ jsxs60(Paper12, { p: "md", children: [
|
9550
|
+
/* @__PURE__ */ jsxs60(Grid3, { children: [
|
9551
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
9552
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
9553
|
+
/* @__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" })) }),
|
9554
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
9555
|
+
/* @__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" })) }),
|
9556
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9552
9557
|
MyDateInput,
|
9553
9558
|
{
|
9554
9559
|
value: form.getValues().registrationDate,
|
@@ -9556,7 +9561,7 @@ function F_core60524_Form() {
|
|
9556
9561
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
9557
9562
|
}
|
9558
9563
|
) }),
|
9559
|
-
/* @__PURE__ */
|
9564
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9560
9565
|
MyDateInput,
|
9561
9566
|
{
|
9562
9567
|
value: form.getValues().limiteDate,
|
@@ -9564,7 +9569,7 @@ function F_core60524_Form() {
|
|
9564
9569
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
9565
9570
|
}
|
9566
9571
|
) }),
|
9567
|
-
/* @__PURE__ */
|
9572
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9568
9573
|
MyFileInput,
|
9569
9574
|
{
|
9570
9575
|
accept: "image/png,image/jpeg",
|
@@ -9576,7 +9581,7 @@ function F_core60524_Form() {
|
|
9576
9581
|
}
|
9577
9582
|
}
|
9578
9583
|
) }),
|
9579
|
-
/* @__PURE__ */
|
9584
|
+
/* @__PURE__ */ jsx99(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx99(
|
9580
9585
|
MyFileInput,
|
9581
9586
|
{
|
9582
9587
|
accept: "image/png,image/jpeg",
|
@@ -9589,18 +9594,18 @@ function F_core60524_Form() {
|
|
9589
9594
|
}
|
9590
9595
|
) })
|
9591
9596
|
] }),
|
9592
|
-
/* @__PURE__ */
|
9597
|
+
/* @__PURE__ */ jsx99(MyFlexEnd, { children: /* @__PURE__ */ jsx99(F_core60524_Save, { form }) })
|
9593
9598
|
] });
|
9594
9599
|
}
|
9595
9600
|
|
9596
9601
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
9597
|
-
import { jsx as
|
9602
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
9598
9603
|
function F_core60524({ AQModuleId }) {
|
9599
9604
|
const store = useS_core60524();
|
9600
9605
|
useEffect12(() => {
|
9601
9606
|
store.setProperty("AQModuleId", AQModuleId);
|
9602
9607
|
}, []);
|
9603
|
-
return /* @__PURE__ */
|
9608
|
+
return /* @__PURE__ */ jsx100(F_core60524_Form, {});
|
9604
9609
|
}
|
9605
9610
|
|
9606
9611
|
// src/constants/enum/ENUM_EMAILCONFIG.ts
|
@@ -9619,7 +9624,7 @@ import { useMemo as useMemo11 } from "react";
|
|
9619
9624
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
9620
9625
|
import { PasswordInput } from "@mantine/core";
|
9621
9626
|
import { useForm as useForm15 } from "@mantine/form";
|
9622
|
-
import { jsx as
|
9627
|
+
import { jsx as jsx101, jsxs as jsxs61 } from "react/jsx-runtime";
|
9623
9628
|
function F_core64229_Form({ values }) {
|
9624
9629
|
const form = useForm15({
|
9625
9630
|
mode: "uncontrolled",
|
@@ -9645,27 +9650,27 @@ function F_core64229_Form({ values }) {
|
|
9645
9650
|
"password": formValues.password
|
9646
9651
|
});
|
9647
9652
|
}
|
9648
|
-
if (values) return /* @__PURE__ */
|
9653
|
+
if (values) return /* @__PURE__ */ jsx101(
|
9649
9654
|
MyActionIconUpdate,
|
9650
9655
|
{
|
9651
9656
|
form,
|
9652
9657
|
onSubmit: handleSubmit,
|
9653
|
-
children: /* @__PURE__ */
|
9658
|
+
children: /* @__PURE__ */ jsx101(FormInput, { form })
|
9654
9659
|
}
|
9655
9660
|
);
|
9656
|
-
return /* @__PURE__ */
|
9661
|
+
return /* @__PURE__ */ jsx101(
|
9657
9662
|
MyButtonCreate,
|
9658
9663
|
{
|
9659
9664
|
form,
|
9660
9665
|
onSubmit: handleSubmit,
|
9661
|
-
children: /* @__PURE__ */
|
9666
|
+
children: /* @__PURE__ */ jsx101(FormInput, { form })
|
9662
9667
|
}
|
9663
9668
|
);
|
9664
9669
|
}
|
9665
9670
|
function FormInput({ form }) {
|
9666
9671
|
var _a, _b;
|
9667
|
-
return /* @__PURE__ */
|
9668
|
-
/* @__PURE__ */
|
9672
|
+
return /* @__PURE__ */ jsxs61(MyFlexColumn, { children: [
|
9673
|
+
/* @__PURE__ */ jsx101(
|
9669
9674
|
MySelect,
|
9670
9675
|
__spreadProps(__spreadValues({
|
9671
9676
|
label: "Ph\xE2n h\u1EC7",
|
@@ -9674,25 +9679,25 @@ function FormInput({ form }) {
|
|
9674
9679
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
9675
9680
|
})
|
9676
9681
|
),
|
9677
|
-
/* @__PURE__ */
|
9682
|
+
/* @__PURE__ */ jsx101(
|
9678
9683
|
MyTextInput,
|
9679
9684
|
__spreadValues({
|
9680
9685
|
label: "Host mail server"
|
9681
9686
|
}, form.getInputProps("hostMailServer"))
|
9682
9687
|
),
|
9683
|
-
/* @__PURE__ */
|
9688
|
+
/* @__PURE__ */ jsx101(
|
9684
9689
|
MyNumberInput,
|
9685
9690
|
__spreadValues({
|
9686
9691
|
label: "Outgoing port"
|
9687
9692
|
}, form.getInputProps("outgoingPort"))
|
9688
9693
|
),
|
9689
|
-
/* @__PURE__ */
|
9694
|
+
/* @__PURE__ */ jsx101(
|
9690
9695
|
MyNumberInput,
|
9691
9696
|
__spreadValues({
|
9692
9697
|
label: "Incoming port"
|
9693
9698
|
}, form.getInputProps("incomingPort"))
|
9694
9699
|
),
|
9695
|
-
/* @__PURE__ */
|
9700
|
+
/* @__PURE__ */ jsx101(
|
9696
9701
|
MySelect,
|
9697
9702
|
{
|
9698
9703
|
label: "SSL",
|
@@ -9701,13 +9706,13 @@ function FormInput({ form }) {
|
|
9701
9706
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
9702
9707
|
}
|
9703
9708
|
),
|
9704
|
-
/* @__PURE__ */
|
9709
|
+
/* @__PURE__ */ jsx101(
|
9705
9710
|
MyTextInput,
|
9706
9711
|
__spreadValues({
|
9707
9712
|
label: "Username"
|
9708
9713
|
}, form.getInputProps("userName"))
|
9709
9714
|
),
|
9710
|
-
/* @__PURE__ */
|
9715
|
+
/* @__PURE__ */ jsx101(
|
9711
9716
|
PasswordInput,
|
9712
9717
|
__spreadValues({
|
9713
9718
|
label: "Password",
|
@@ -9718,9 +9723,9 @@ function FormInput({ form }) {
|
|
9718
9723
|
}
|
9719
9724
|
|
9720
9725
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
9721
|
-
import { jsx as
|
9726
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
9722
9727
|
function F_core64229_Delete({ values }) {
|
9723
|
-
return /* @__PURE__ */
|
9728
|
+
return /* @__PURE__ */ jsx102(
|
9724
9729
|
MyActionIconDelete,
|
9725
9730
|
{
|
9726
9731
|
contextData: values == null ? void 0 : values.code,
|
@@ -9734,7 +9739,7 @@ function F_core64229_Delete({ values }) {
|
|
9734
9739
|
}
|
9735
9740
|
|
9736
9741
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
9737
|
-
import { jsx as
|
9742
|
+
import { jsx as jsx103, jsxs as jsxs62 } from "react/jsx-runtime";
|
9738
9743
|
function F_core64229_Read() {
|
9739
9744
|
const query = useQuery13({
|
9740
9745
|
queryKey: ["F_core64229_Read"],
|
@@ -9779,39 +9784,39 @@ function F_core64229_Read() {
|
|
9779
9784
|
}
|
9780
9785
|
], []);
|
9781
9786
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
9782
|
-
return /* @__PURE__ */
|
9787
|
+
return /* @__PURE__ */ jsx103(
|
9783
9788
|
MyDataTable,
|
9784
9789
|
{
|
9785
9790
|
columns,
|
9786
9791
|
data: query.data,
|
9787
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9788
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9789
|
-
/* @__PURE__ */
|
9790
|
-
/* @__PURE__ */
|
9792
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx103(F_core64229_Form, {}),
|
9793
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs62(MyCenterFull, { children: [
|
9794
|
+
/* @__PURE__ */ jsx103(F_core64229_Form, { values: row.original }),
|
9795
|
+
/* @__PURE__ */ jsx103(F_core64229_Delete, { values: row.original })
|
9791
9796
|
] })
|
9792
9797
|
}
|
9793
9798
|
);
|
9794
9799
|
}
|
9795
9800
|
|
9796
9801
|
// src/modules-features/admin/core/core64229/F_core64229.tsx
|
9797
|
-
import { jsx as
|
9802
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
9798
9803
|
function F_core64229() {
|
9799
|
-
return /* @__PURE__ */
|
9804
|
+
return /* @__PURE__ */ jsx104(F_core64229_Read, {});
|
9800
9805
|
}
|
9801
9806
|
|
9802
9807
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9803
|
-
import { Button as
|
9808
|
+
import { Button as Button18, Group as Group19 } from "@mantine/core";
|
9804
9809
|
import { IconShield } from "@tabler/icons-react";
|
9805
9810
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
9806
9811
|
import { useRouter as useRouter3 } from "next/navigation";
|
9807
9812
|
import { useMemo as useMemo13, useState as useState13 } from "react";
|
9808
9813
|
|
9809
9814
|
// src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
|
9810
|
-
import { Button as
|
9815
|
+
import { Button as Button17, Fieldset as Fieldset6, Group as Group18, Table as Table4 } from "@mantine/core";
|
9811
9816
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
9812
9817
|
import { useMutation as useMutation7, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
9813
9818
|
import { useEffect as useEffect13, useMemo as useMemo12, useState as useState12 } from "react";
|
9814
|
-
import { jsx as
|
9819
|
+
import { jsx as jsx105, jsxs as jsxs63 } from "react/jsx-runtime";
|
9815
9820
|
function F_core71678_ChangePermission({ user }) {
|
9816
9821
|
const disc = useDisclosure12();
|
9817
9822
|
const queryClient = useQueryClient5();
|
@@ -9858,32 +9863,32 @@ function F_core71678_ChangePermission({ user }) {
|
|
9858
9863
|
}, {});
|
9859
9864
|
setRowSelection(result);
|
9860
9865
|
}, []);
|
9861
|
-
return /* @__PURE__ */
|
9862
|
-
/* @__PURE__ */
|
9866
|
+
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: [
|
9867
|
+
/* @__PURE__ */ jsx105(
|
9863
9868
|
Table4,
|
9864
9869
|
{
|
9865
9870
|
w: "100%",
|
9866
9871
|
variant: "vertical",
|
9867
9872
|
layout: "fixed",
|
9868
|
-
children: /* @__PURE__ */
|
9869
|
-
/* @__PURE__ */
|
9870
|
-
/* @__PURE__ */
|
9871
|
-
/* @__PURE__ */
|
9873
|
+
children: /* @__PURE__ */ jsxs63(Table4.Tbody, { children: [
|
9874
|
+
/* @__PURE__ */ jsxs63(Table4.Tr, { children: [
|
9875
|
+
/* @__PURE__ */ jsx105(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
9876
|
+
/* @__PURE__ */ jsx105(Table4.Td, { children: user.fullName })
|
9872
9877
|
] }),
|
9873
|
-
/* @__PURE__ */
|
9874
|
-
/* @__PURE__ */
|
9875
|
-
/* @__PURE__ */
|
9878
|
+
/* @__PURE__ */ jsxs63(Table4.Tr, { children: [
|
9879
|
+
/* @__PURE__ */ jsx105(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
9880
|
+
/* @__PURE__ */ jsx105(Table4.Td, { children: user.userName })
|
9876
9881
|
] }),
|
9877
|
-
/* @__PURE__ */
|
9878
|
-
/* @__PURE__ */
|
9879
|
-
/* @__PURE__ */
|
9882
|
+
/* @__PURE__ */ jsxs63(Table4.Tr, { children: [
|
9883
|
+
/* @__PURE__ */ jsx105(Table4.Th, { children: "Email:" }),
|
9884
|
+
/* @__PURE__ */ jsx105(Table4.Td, { children: user.email })
|
9880
9885
|
] })
|
9881
9886
|
] })
|
9882
9887
|
}
|
9883
9888
|
),
|
9884
9889
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
9885
9890
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
9886
|
-
/* @__PURE__ */
|
9891
|
+
/* @__PURE__ */ jsx105(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx105(
|
9887
9892
|
MyDataTable,
|
9888
9893
|
{
|
9889
9894
|
enableRowSelection: true,
|
@@ -9907,13 +9912,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
9907
9912
|
data: query.data
|
9908
9913
|
}
|
9909
9914
|
) }),
|
9910
|
-
/* @__PURE__ */
|
9915
|
+
/* @__PURE__ */ jsx105(Group18, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx105(Button17, { onClick: handleSave, children: "L\u01B0u" }) })
|
9911
9916
|
] });
|
9912
9917
|
}
|
9913
9918
|
|
9914
9919
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
9915
9920
|
import { useForm as useForm16 } from "@mantine/form";
|
9916
|
-
import { jsx as
|
9921
|
+
import { jsx as jsx106, jsxs as jsxs64 } from "react/jsx-runtime";
|
9917
9922
|
var ENDPOINT2 = "/Account/create";
|
9918
9923
|
function F_core71678_Create() {
|
9919
9924
|
const form = useForm16({
|
@@ -9941,21 +9946,21 @@ function F_core71678_Create() {
|
|
9941
9946
|
AQModuleId: 1002
|
9942
9947
|
}));
|
9943
9948
|
}
|
9944
|
-
return /* @__PURE__ */
|
9945
|
-
/* @__PURE__ */
|
9946
|
-
/* @__PURE__ */
|
9947
|
-
/* @__PURE__ */
|
9948
|
-
/* @__PURE__ */
|
9949
|
-
/* @__PURE__ */
|
9950
|
-
/* @__PURE__ */
|
9949
|
+
return /* @__PURE__ */ jsxs64(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
9950
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9951
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9952
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
9953
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9954
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
9955
|
+
/* @__PURE__ */ jsx106(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9951
9956
|
] });
|
9952
9957
|
}
|
9953
9958
|
|
9954
9959
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
9955
|
-
import { jsx as
|
9960
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
9956
9961
|
var ENDPOINT3 = "/Account/delete";
|
9957
9962
|
function F_core71678_Delete({ id, code }) {
|
9958
|
-
return /* @__PURE__ */
|
9963
|
+
return /* @__PURE__ */ jsx107(
|
9959
9964
|
MyActionIconDelete,
|
9960
9965
|
{
|
9961
9966
|
contextData: code,
|
@@ -9967,7 +9972,7 @@ function F_core71678_Delete({ id, code }) {
|
|
9967
9972
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
9968
9973
|
import { useForm as useForm17 } from "@mantine/form";
|
9969
9974
|
import { useEffect as useEffect14 } from "react";
|
9970
|
-
import { jsx as
|
9975
|
+
import { jsx as jsx108, jsxs as jsxs65 } from "react/jsx-runtime";
|
9971
9976
|
function F_core71678_Update({ user }) {
|
9972
9977
|
const form = useForm17({
|
9973
9978
|
initialValues: user
|
@@ -9975,7 +9980,7 @@ function F_core71678_Update({ user }) {
|
|
9975
9980
|
useEffect14(() => {
|
9976
9981
|
console.log(form.values);
|
9977
9982
|
}, [form.values]);
|
9978
|
-
return /* @__PURE__ */
|
9983
|
+
return /* @__PURE__ */ jsx108(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
9979
9984
|
return await baseAxios_default.post(
|
9980
9985
|
"/Account/update",
|
9981
9986
|
__spreadProps(__spreadValues({}, values), {
|
@@ -9987,17 +9992,17 @@ function F_core71678_Update({ user }) {
|
|
9987
9992
|
workingUnitId: null
|
9988
9993
|
})
|
9989
9994
|
);
|
9990
|
-
}, children: /* @__PURE__ */
|
9991
|
-
/* @__PURE__ */
|
9992
|
-
/* @__PURE__ */
|
9993
|
-
/* @__PURE__ */
|
9994
|
-
/* @__PURE__ */
|
9995
|
-
/* @__PURE__ */
|
9995
|
+
}, children: /* @__PURE__ */ jsxs65(MyFlexColumn, { children: [
|
9996
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9997
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9998
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9999
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
10000
|
+
/* @__PURE__ */ jsx108(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9996
10001
|
] }) });
|
9997
10002
|
}
|
9998
10003
|
|
9999
10004
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
10000
|
-
import { jsx as
|
10005
|
+
import { jsx as jsx109, jsxs as jsxs66 } from "react/jsx-runtime";
|
10001
10006
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
10002
10007
|
function F_core71678_Read() {
|
10003
10008
|
const router = useRouter3();
|
@@ -10029,25 +10034,25 @@ function F_core71678_Read() {
|
|
10029
10034
|
},
|
10030
10035
|
{
|
10031
10036
|
header: "Quy\u1EC1n",
|
10032
|
-
accessorFn: (row) => /* @__PURE__ */
|
10037
|
+
accessorFn: (row) => /* @__PURE__ */ jsx109(F_core71678_ChangePermission, { user: row })
|
10033
10038
|
}
|
10034
10039
|
],
|
10035
10040
|
[]
|
10036
10041
|
);
|
10037
10042
|
if (AllUserQuery.isLoading) return "Loading...";
|
10038
|
-
return /* @__PURE__ */
|
10043
|
+
return /* @__PURE__ */ jsx109(
|
10039
10044
|
MyDataTable,
|
10040
10045
|
{
|
10041
10046
|
columns,
|
10042
10047
|
data: AllUserQuery.data,
|
10043
10048
|
renderTopToolbarCustomActions: () => {
|
10044
|
-
return /* @__PURE__ */
|
10045
|
-
/* @__PURE__ */
|
10046
|
-
/* @__PURE__ */
|
10047
|
-
|
10049
|
+
return /* @__PURE__ */ jsxs66(Group19, { children: [
|
10050
|
+
/* @__PURE__ */ jsx109(F_core71678_Create, {}),
|
10051
|
+
/* @__PURE__ */ jsx109(
|
10052
|
+
Button18,
|
10048
10053
|
{
|
10049
10054
|
color: "violet",
|
10050
|
-
leftSection: /* @__PURE__ */
|
10055
|
+
leftSection: /* @__PURE__ */ jsx109(IconShield, {}),
|
10051
10056
|
onClick: () => {
|
10052
10057
|
router.push("core47643");
|
10053
10058
|
},
|
@@ -10057,9 +10062,9 @@ function F_core71678_Read() {
|
|
10057
10062
|
] });
|
10058
10063
|
},
|
10059
10064
|
renderRowActions: ({ row }) => {
|
10060
|
-
return /* @__PURE__ */
|
10061
|
-
/* @__PURE__ */
|
10062
|
-
/* @__PURE__ */
|
10065
|
+
return /* @__PURE__ */ jsxs66(MyCenterFull, { children: [
|
10066
|
+
/* @__PURE__ */ jsx109(F_core71678_Update, { user: row.original }),
|
10067
|
+
/* @__PURE__ */ jsx109(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
10063
10068
|
] });
|
10064
10069
|
}
|
10065
10070
|
}
|
@@ -10067,9 +10072,9 @@ function F_core71678_Read() {
|
|
10067
10072
|
}
|
10068
10073
|
|
10069
10074
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
10070
|
-
import { jsx as
|
10075
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
10071
10076
|
function F_core71678() {
|
10072
|
-
return /* @__PURE__ */
|
10077
|
+
return /* @__PURE__ */ jsx110(F_core71678_Read, {});
|
10073
10078
|
}
|
10074
10079
|
|
10075
10080
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
@@ -10079,7 +10084,7 @@ import { useMemo as useMemo14 } from "react";
|
|
10079
10084
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
10080
10085
|
import { FileInput as FileInput8 } from "@mantine/core";
|
10081
10086
|
import { useForm as useForm18 } from "@mantine/form";
|
10082
|
-
import { jsx as
|
10087
|
+
import { jsx as jsx111, jsxs as jsxs67 } from "react/jsx-runtime";
|
10083
10088
|
function F_core76318_Create({ SecurityTypeId }) {
|
10084
10089
|
const form = useForm18({
|
10085
10090
|
mode: "uncontrolled",
|
@@ -10090,7 +10095,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10090
10095
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10091
10096
|
}
|
10092
10097
|
});
|
10093
|
-
return /* @__PURE__ */
|
10098
|
+
return /* @__PURE__ */ jsxs67(
|
10094
10099
|
MyButtonCreate,
|
10095
10100
|
{
|
10096
10101
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -10103,28 +10108,28 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10103
10108
|
}));
|
10104
10109
|
},
|
10105
10110
|
children: [
|
10106
|
-
/* @__PURE__ */
|
10111
|
+
/* @__PURE__ */ jsx111(
|
10107
10112
|
MyTextInput,
|
10108
10113
|
__spreadValues({
|
10109
10114
|
withAsterisk: true,
|
10110
10115
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10111
10116
|
}, form.getInputProps("decisionCode"))
|
10112
10117
|
),
|
10113
|
-
/* @__PURE__ */
|
10118
|
+
/* @__PURE__ */ jsx111(
|
10114
10119
|
MyDateInput,
|
10115
10120
|
__spreadValues({
|
10116
10121
|
withAsterisk: true,
|
10117
10122
|
label: "Ng\xE0y ban h\xE0nh"
|
10118
10123
|
}, form.getInputProps("promulgateDate"))
|
10119
10124
|
),
|
10120
|
-
/* @__PURE__ */
|
10125
|
+
/* @__PURE__ */ jsx111(
|
10121
10126
|
MyTextInput,
|
10122
10127
|
__spreadValues({
|
10123
10128
|
withAsterisk: true,
|
10124
10129
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10125
10130
|
}, form.getInputProps("name"))
|
10126
10131
|
),
|
10127
|
-
/* @__PURE__ */
|
10132
|
+
/* @__PURE__ */ jsx111(
|
10128
10133
|
FileInput8,
|
10129
10134
|
__spreadValues({
|
10130
10135
|
withAsterisk: true,
|
@@ -10138,12 +10143,12 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10138
10143
|
}
|
10139
10144
|
|
10140
10145
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
10141
|
-
import { jsx as
|
10146
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
10142
10147
|
function F_core76318_Delete({
|
10143
10148
|
id,
|
10144
10149
|
contextData
|
10145
10150
|
}) {
|
10146
|
-
return /* @__PURE__ */
|
10151
|
+
return /* @__PURE__ */ jsx112(
|
10147
10152
|
MyActionIconDelete,
|
10148
10153
|
{
|
10149
10154
|
contextData,
|
@@ -10155,7 +10160,7 @@ function F_core76318_Delete({
|
|
10155
10160
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
10156
10161
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
10157
10162
|
import { useForm as useForm19 } from "@mantine/form";
|
10158
|
-
import { jsx as
|
10163
|
+
import { jsx as jsx113, jsxs as jsxs68 } from "react/jsx-runtime";
|
10159
10164
|
function F_core76318_Update({ values }) {
|
10160
10165
|
var _a;
|
10161
10166
|
const form = useForm19({
|
@@ -10174,7 +10179,7 @@ function F_core76318_Update({ values }) {
|
|
10174
10179
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10175
10180
|
}
|
10176
10181
|
});
|
10177
|
-
return /* @__PURE__ */
|
10182
|
+
return /* @__PURE__ */ jsxs68(
|
10178
10183
|
MyActionIconUpdate,
|
10179
10184
|
{
|
10180
10185
|
form,
|
@@ -10184,28 +10189,28 @@ function F_core76318_Update({ values }) {
|
|
10184
10189
|
}));
|
10185
10190
|
},
|
10186
10191
|
children: [
|
10187
|
-
/* @__PURE__ */
|
10192
|
+
/* @__PURE__ */ jsx113(
|
10188
10193
|
TextInput5,
|
10189
10194
|
__spreadValues({
|
10190
10195
|
withAsterisk: true,
|
10191
10196
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10192
10197
|
}, form.getInputProps("decisionCode"))
|
10193
10198
|
),
|
10194
|
-
/* @__PURE__ */
|
10199
|
+
/* @__PURE__ */ jsx113(
|
10195
10200
|
MyDateInput,
|
10196
10201
|
__spreadValues({
|
10197
10202
|
withAsterisk: true,
|
10198
10203
|
label: "Ng\xE0y ban h\xE0nh"
|
10199
10204
|
}, form.getInputProps("promulgateDate"))
|
10200
10205
|
),
|
10201
|
-
/* @__PURE__ */
|
10206
|
+
/* @__PURE__ */ jsx113(
|
10202
10207
|
TextInput5,
|
10203
10208
|
__spreadValues({
|
10204
10209
|
withAsterisk: true,
|
10205
10210
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10206
10211
|
}, form.getInputProps("name"))
|
10207
10212
|
),
|
10208
|
-
/* @__PURE__ */
|
10213
|
+
/* @__PURE__ */ jsx113(
|
10209
10214
|
FileInput9,
|
10210
10215
|
__spreadValues({
|
10211
10216
|
withAsterisk: true,
|
@@ -10218,7 +10223,7 @@ function F_core76318_Update({ values }) {
|
|
10218
10223
|
}
|
10219
10224
|
|
10220
10225
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
10221
|
-
import { jsx as
|
10226
|
+
import { jsx as jsx114, jsxs as jsxs69 } from "react/jsx-runtime";
|
10222
10227
|
function F_core76318_Read({ SecurityTypeId }) {
|
10223
10228
|
const query = useQuery16({
|
10224
10229
|
queryKey: ["F_core76318_Read"],
|
@@ -10247,7 +10252,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10247
10252
|
{
|
10248
10253
|
header: "File",
|
10249
10254
|
accessorFn: (row) => {
|
10250
|
-
return /* @__PURE__ */
|
10255
|
+
return /* @__PURE__ */ jsx114(MyCenterFull, { children: /* @__PURE__ */ jsx114(MyButtonViewPDF, { id: row.id }) });
|
10251
10256
|
}
|
10252
10257
|
}
|
10253
10258
|
],
|
@@ -10255,17 +10260,17 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10255
10260
|
);
|
10256
10261
|
if (query.isLoading) return "Loading...";
|
10257
10262
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
10258
|
-
return /* @__PURE__ */
|
10263
|
+
return /* @__PURE__ */ jsx114(
|
10259
10264
|
MyDataTable,
|
10260
10265
|
{
|
10261
10266
|
columns,
|
10262
10267
|
data: query.data,
|
10263
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
10268
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx114(F_core76318_Create, { SecurityTypeId }),
|
10264
10269
|
renderRowActions: ({ row }) => {
|
10265
10270
|
var _a;
|
10266
|
-
return /* @__PURE__ */
|
10267
|
-
/* @__PURE__ */
|
10268
|
-
/* @__PURE__ */
|
10271
|
+
return /* @__PURE__ */ jsxs69(MyCenterFull, { children: [
|
10272
|
+
/* @__PURE__ */ jsx114(F_core76318_Update, { values: row.original }),
|
10273
|
+
/* @__PURE__ */ jsx114(
|
10269
10274
|
F_core76318_Delete,
|
10270
10275
|
{
|
10271
10276
|
id: row.original.id,
|
@@ -10279,19 +10284,19 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10279
10284
|
}
|
10280
10285
|
|
10281
10286
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
10282
|
-
import { jsx as
|
10287
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
10283
10288
|
function F_core76318({ SecurityTypeId }) {
|
10284
|
-
return /* @__PURE__ */
|
10289
|
+
return /* @__PURE__ */ jsx115(F_core76318_Read, { SecurityTypeId });
|
10285
10290
|
}
|
10286
10291
|
|
10287
10292
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
10288
|
-
import { Grid as Grid4, Paper as
|
10293
|
+
import { Grid as Grid4, Paper as Paper13, ScrollArea as ScrollArea8 } from "@mantine/core";
|
10289
10294
|
|
10290
10295
|
// src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
|
10291
10296
|
import { Container as Container5 } from "@mantine/core";
|
10292
10297
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
10293
10298
|
import { useEffect as useEffect15, useMemo as useMemo15, useState as useState14 } from "react";
|
10294
|
-
import { jsx as
|
10299
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
10295
10300
|
function F_core83092_ReadUser() {
|
10296
10301
|
const store = useS_core83092();
|
10297
10302
|
const query = useQ_core83092_Account_GetAdminAccount();
|
@@ -10324,7 +10329,7 @@ function F_core83092_ReadUser() {
|
|
10324
10329
|
}, [query.data]);
|
10325
10330
|
if (query.isLoading) return "Loading...";
|
10326
10331
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
10327
|
-
return /* @__PURE__ */
|
10332
|
+
return /* @__PURE__ */ jsx116(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx116(
|
10328
10333
|
MyDataTable,
|
10329
10334
|
{
|
10330
10335
|
columns,
|
@@ -10360,7 +10365,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
10360
10365
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
10361
10366
|
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
10362
10367
|
import { useEffect as useEffect16, useState as useState15 } from "react";
|
10363
|
-
import { jsx as
|
10368
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
10364
10369
|
function F_core83092_Save() {
|
10365
10370
|
const store = useS_core83092();
|
10366
10371
|
const disable = useState15(false);
|
@@ -10389,15 +10394,15 @@ function F_core83092_Save() {
|
|
10389
10394
|
}
|
10390
10395
|
disable[1](false);
|
10391
10396
|
}, [store.state.rolePermissions]);
|
10392
|
-
return /* @__PURE__ */
|
10397
|
+
return /* @__PURE__ */ jsx117(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
10393
10398
|
}
|
10394
10399
|
|
10395
10400
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
10396
|
-
import { Checkbox as Checkbox4, Flex as
|
10401
|
+
import { Checkbox as Checkbox4, Flex as Flex7, ScrollArea as ScrollArea7, Table as Table5, Text as Text16 } from "@mantine/core";
|
10397
10402
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
10398
10403
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
10399
10404
|
import React4, { useEffect as useEffect17, useState as useState16 } from "react";
|
10400
|
-
import { jsx as
|
10405
|
+
import { jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
|
10401
10406
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
10402
10407
|
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
10403
10408
|
var _a, _b;
|
@@ -10412,8 +10417,8 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10412
10417
|
store.setProperty("rolePermissions", query.data);
|
10413
10418
|
}, [query.data]);
|
10414
10419
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
10415
|
-
return /* @__PURE__ */
|
10416
|
-
/* @__PURE__ */
|
10420
|
+
return /* @__PURE__ */ jsx118(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs70(Table5, { children: [
|
10421
|
+
/* @__PURE__ */ jsx118(
|
10417
10422
|
Table5.Thead,
|
10418
10423
|
{
|
10419
10424
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -10424,90 +10429,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10424
10429
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
10425
10430
|
border: "1px solid var(--mantine-color-gray-4)"
|
10426
10431
|
},
|
10427
|
-
children: /* @__PURE__ */
|
10428
|
-
/* @__PURE__ */
|
10429
|
-
/* @__PURE__ */
|
10430
|
-
/* @__PURE__ */
|
10432
|
+
children: /* @__PURE__ */ jsxs70(Table5.Tr, { children: [
|
10433
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: title2 }),
|
10434
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10435
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
10431
10436
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
10432
10437
|
} }),
|
10433
|
-
/* @__PURE__ */
|
10438
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10434
10439
|
"Xem",
|
10435
|
-
/* @__PURE__ */
|
10440
|
+
/* @__PURE__ */ jsx118(IconEyeUp2, { color: "gray" })
|
10436
10441
|
] })
|
10437
10442
|
] }) }),
|
10438
|
-
/* @__PURE__ */
|
10439
|
-
/* @__PURE__ */
|
10443
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10444
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
10440
10445
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
10441
10446
|
} }),
|
10442
|
-
/* @__PURE__ */
|
10447
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10443
10448
|
"Th\xEAm",
|
10444
|
-
/* @__PURE__ */
|
10449
|
+
/* @__PURE__ */ jsx118(IconPlus6, { color: "blue" })
|
10445
10450
|
] })
|
10446
10451
|
] }) }),
|
10447
|
-
/* @__PURE__ */
|
10448
|
-
/* @__PURE__ */
|
10452
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10453
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
10449
10454
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
10450
10455
|
} }),
|
10451
|
-
/* @__PURE__ */
|
10456
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10452
10457
|
"S\u1EEDa",
|
10453
|
-
/* @__PURE__ */
|
10458
|
+
/* @__PURE__ */ jsx118(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
10454
10459
|
] })
|
10455
10460
|
] }) }),
|
10456
|
-
/* @__PURE__ */
|
10457
|
-
/* @__PURE__ */
|
10461
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10462
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
10458
10463
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
10459
10464
|
} }),
|
10460
|
-
/* @__PURE__ */
|
10465
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10461
10466
|
"X\xF3a",
|
10462
|
-
/* @__PURE__ */
|
10467
|
+
/* @__PURE__ */ jsx118(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
10463
10468
|
] })
|
10464
10469
|
] }) }),
|
10465
|
-
/* @__PURE__ */
|
10466
|
-
/* @__PURE__ */
|
10470
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10471
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
10467
10472
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
10468
10473
|
} }),
|
10469
|
-
/* @__PURE__ */
|
10474
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10470
10475
|
"In",
|
10471
|
-
/* @__PURE__ */
|
10476
|
+
/* @__PURE__ */ jsx118(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
10472
10477
|
] })
|
10473
10478
|
] }) }),
|
10474
|
-
/* @__PURE__ */
|
10475
|
-
/* @__PURE__ */
|
10479
|
+
/* @__PURE__ */ jsx118(Table5.Th, { children: /* @__PURE__ */ jsxs70(Flex7, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10480
|
+
/* @__PURE__ */ jsx118(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
10476
10481
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
10477
10482
|
} }),
|
10478
|
-
/* @__PURE__ */
|
10483
|
+
/* @__PURE__ */ jsxs70(MyFlexRow, { gap: 3, children: [
|
10479
10484
|
"Xu\u1EA5t",
|
10480
|
-
/* @__PURE__ */
|
10485
|
+
/* @__PURE__ */ jsx118(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
10481
10486
|
] })
|
10482
10487
|
] }) })
|
10483
10488
|
] })
|
10484
10489
|
}
|
10485
10490
|
),
|
10486
|
-
/* @__PURE__ */
|
10487
|
-
if (item.links == void 0) return /* @__PURE__ */
|
10488
|
-
/* @__PURE__ */
|
10489
|
-
/* @__PURE__ */
|
10490
|
-
/* @__PURE__ */
|
10491
|
-
/* @__PURE__ */
|
10492
|
-
/* @__PURE__ */
|
10493
|
-
/* @__PURE__ */
|
10494
|
-
/* @__PURE__ */
|
10491
|
+
/* @__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) => {
|
10492
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs70(Table5.Tr, { children: [
|
10493
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: item.label }),
|
10494
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10495
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10496
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10497
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10498
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) }),
|
10499
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(Checkbox4, {}) }) })
|
10495
10500
|
] }, idx);
|
10496
|
-
return /* @__PURE__ */
|
10497
|
-
/* @__PURE__ */
|
10501
|
+
return /* @__PURE__ */ jsxs70(React4.Fragment, { children: [
|
10502
|
+
/* @__PURE__ */ jsx118(Table5.Tr, { children: /* @__PURE__ */ jsx118(
|
10498
10503
|
Table5.Td,
|
10499
10504
|
{
|
10500
10505
|
colSpan: 7,
|
10501
10506
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
10502
|
-
children: /* @__PURE__ */
|
10507
|
+
children: /* @__PURE__ */ jsx118(Text16, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
10503
10508
|
}
|
10504
10509
|
) }, item.label),
|
10505
10510
|
item.links.map(
|
10506
10511
|
(item2, idx2) => {
|
10507
10512
|
var _a2, _b2, _c, _d, _e, _f;
|
10508
|
-
return /* @__PURE__ */
|
10509
|
-
/* @__PURE__ */
|
10510
|
-
/* @__PURE__ */
|
10513
|
+
return /* @__PURE__ */ jsxs70(Table5.Tr, { children: [
|
10514
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: item2.label }),
|
10515
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10511
10516
|
Checkbox4,
|
10512
10517
|
{
|
10513
10518
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -10518,7 +10523,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10518
10523
|
}
|
10519
10524
|
}
|
10520
10525
|
) }) }),
|
10521
|
-
/* @__PURE__ */
|
10526
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10522
10527
|
Checkbox4,
|
10523
10528
|
{
|
10524
10529
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -10529,7 +10534,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10529
10534
|
}
|
10530
10535
|
}
|
10531
10536
|
) }) }),
|
10532
|
-
/* @__PURE__ */
|
10537
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10533
10538
|
Checkbox4,
|
10534
10539
|
{
|
10535
10540
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -10540,7 +10545,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10540
10545
|
}
|
10541
10546
|
}
|
10542
10547
|
) }) }),
|
10543
|
-
/* @__PURE__ */
|
10548
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10544
10549
|
Checkbox4,
|
10545
10550
|
{
|
10546
10551
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -10551,7 +10556,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10551
10556
|
}
|
10552
10557
|
}
|
10553
10558
|
) }) }),
|
10554
|
-
/* @__PURE__ */
|
10559
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10555
10560
|
Checkbox4,
|
10556
10561
|
{
|
10557
10562
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -10562,7 +10567,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10562
10567
|
}
|
10563
10568
|
}
|
10564
10569
|
) }) }),
|
10565
|
-
/* @__PURE__ */
|
10570
|
+
/* @__PURE__ */ jsx118(Table5.Td, { children: /* @__PURE__ */ jsx118(MyCenterFull, { children: /* @__PURE__ */ jsx118(
|
10566
10571
|
Checkbox4,
|
10567
10572
|
{
|
10568
10573
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -10618,72 +10623,72 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
10618
10623
|
}
|
10619
10624
|
|
10620
10625
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
10621
|
-
import { jsx as
|
10626
|
+
import { jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
|
10622
10627
|
function F_core83092({ menuData: menuData2 }) {
|
10623
|
-
return /* @__PURE__ */
|
10624
|
-
/* @__PURE__ */
|
10625
|
-
/* @__PURE__ */
|
10626
|
-
/* @__PURE__ */
|
10627
|
-
/* @__PURE__ */
|
10628
|
+
return /* @__PURE__ */ jsxs71(Grid4, { grow: true, children: [
|
10629
|
+
/* @__PURE__ */ jsx119(Grid4.Col, { span: 4, children: /* @__PURE__ */ jsx119(F_core83092_ReadUser, {}) }),
|
10630
|
+
/* @__PURE__ */ jsx119(Grid4.Col, { span: 8, children: /* @__PURE__ */ jsxs71(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
10631
|
+
/* @__PURE__ */ jsx119(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx119(Paper13, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx119(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
10632
|
+
/* @__PURE__ */ jsx119(F_core83092_Save, {})
|
10628
10633
|
] }) })
|
10629
10634
|
] });
|
10630
10635
|
}
|
10631
10636
|
|
10632
10637
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
10633
10638
|
import { BarChart } from "@mantine/charts";
|
10634
|
-
import { Group as
|
10635
|
-
import { Fragment as Fragment13, jsx as
|
10639
|
+
import { Group as Group20, Paper as Paper14, Text as Text17, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
10640
|
+
import { Fragment as Fragment13, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
|
10636
10641
|
|
10637
10642
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
10638
10643
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
10639
|
-
import { Group as
|
10640
|
-
import { Fragment as Fragment14, jsx as
|
10644
|
+
import { Group as Group21, Paper as Paper15, Text as Text18, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
10645
|
+
import { Fragment as Fragment14, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
|
10641
10646
|
|
10642
10647
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
10643
10648
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
10644
|
-
import { Group as
|
10645
|
-
import { Fragment as Fragment15, jsx as
|
10649
|
+
import { Group as Group22, Paper as Paper16, Text as Text19, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
10650
|
+
import { Fragment as Fragment15, jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
|
10646
10651
|
|
10647
10652
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
10648
10653
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
10649
|
-
import { Group as
|
10650
|
-
import { Fragment as Fragment16, jsx as
|
10654
|
+
import { Group as Group23, Paper as Paper17, Text as Text20, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
10655
|
+
import { Fragment as Fragment16, jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
|
10651
10656
|
|
10652
10657
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
10653
10658
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
10654
|
-
import { Group as
|
10655
|
-
import { jsx as
|
10659
|
+
import { Group as Group24, Paper as Paper18, Text as Text21, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
10660
|
+
import { jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
|
10656
10661
|
|
10657
10662
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
10658
10663
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
10659
|
-
import { Group as
|
10660
|
-
import { jsx as
|
10664
|
+
import { Group as Group25, Paper as Paper19, Text as Text22, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
10665
|
+
import { jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
|
10661
10666
|
|
10662
10667
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
10663
10668
|
import { LineChart } from "@mantine/charts";
|
10664
|
-
import { Group as
|
10665
|
-
import { Fragment as Fragment17, jsx as
|
10669
|
+
import { Group as Group26, Paper as Paper20, Text as Text23 } from "@mantine/core";
|
10670
|
+
import { Fragment as Fragment17, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
|
10666
10671
|
|
10667
10672
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
10668
10673
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
10669
|
-
import { Group as
|
10670
|
-
import { Fragment as Fragment18, jsx as
|
10674
|
+
import { Group as Group27, Paper as Paper21, Text as Text24 } from "@mantine/core";
|
10675
|
+
import { Fragment as Fragment18, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
|
10671
10676
|
|
10672
10677
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
10673
10678
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
10674
|
-
import { Group as
|
10675
|
-
import { Fragment as Fragment19, jsx as
|
10679
|
+
import { Group as Group28, Paper as Paper22, Text as Text25 } from "@mantine/core";
|
10680
|
+
import { Fragment as Fragment19, jsx as jsx128, jsxs as jsxs80 } from "react/jsx-runtime";
|
10676
10681
|
|
10677
10682
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
10678
10683
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
10679
|
-
import { Group as
|
10680
|
-
import { Fragment as Fragment20, jsx as
|
10684
|
+
import { Group as Group29, Paper as Paper23, Text as Text26 } from "@mantine/core";
|
10685
|
+
import { Fragment as Fragment20, jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
|
10681
10686
|
|
10682
10687
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
10683
|
-
import { Center as Center4, Progress, Space as Space8, Text as
|
10688
|
+
import { Center as Center4, Progress, Space as Space8, Text as Text27 } from "@mantine/core";
|
10684
10689
|
import { PieChart } from "@mantine/charts";
|
10685
10690
|
import { useMemo as useMemo16 } from "react";
|
10686
|
-
import { Fragment as Fragment21, jsx as
|
10691
|
+
import { Fragment as Fragment21, jsx as jsx130, jsxs as jsxs82 } from "react/jsx-runtime";
|
10687
10692
|
function getRandomColor(seed) {
|
10688
10693
|
const random = Math.sin(seed) * 1e4;
|
10689
10694
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -10861,7 +10866,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10861
10866
|
header: "M\xE0u",
|
10862
10867
|
accessorKey: "color",
|
10863
10868
|
accessorFn(originalRow) {
|
10864
|
-
return /* @__PURE__ */
|
10869
|
+
return /* @__PURE__ */ jsx130("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
10865
10870
|
},
|
10866
10871
|
minSize: 30,
|
10867
10872
|
maxSize: 30
|
@@ -10876,7 +10881,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10876
10881
|
header: "%",
|
10877
10882
|
accessorKey: "used",
|
10878
10883
|
accessorFn(originalRow) {
|
10879
|
-
return /* @__PURE__ */
|
10884
|
+
return /* @__PURE__ */ jsx130(Fragment21, { children: /* @__PURE__ */ jsx130(Center4, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
10880
10885
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
10881
10886
|
"%"
|
10882
10887
|
] }) }) });
|
@@ -10891,10 +10896,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10891
10896
|
return originalRow.used;
|
10892
10897
|
},
|
10893
10898
|
Cell: ({ row }) => {
|
10894
|
-
return /* @__PURE__ */
|
10895
|
-
/* @__PURE__ */
|
10899
|
+
return /* @__PURE__ */ jsxs82(Fragment21, { children: [
|
10900
|
+
/* @__PURE__ */ jsx130(Center4, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
10896
10901
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
10897
|
-
/* @__PURE__ */
|
10902
|
+
/* @__PURE__ */ jsxs82("strong", { children: [
|
10898
10903
|
row.original.used,
|
10899
10904
|
" / ",
|
10900
10905
|
row.original.total
|
@@ -10903,7 +10908,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10903
10908
|
(row.original.used / row.original.total * 100).toFixed(2),
|
10904
10909
|
"%)"
|
10905
10910
|
] }) }),
|
10906
|
-
/* @__PURE__ */
|
10911
|
+
/* @__PURE__ */ jsx130(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
10907
10912
|
] });
|
10908
10913
|
},
|
10909
10914
|
minSize: 50,
|
@@ -10912,9 +10917,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
10912
10917
|
],
|
10913
10918
|
[]
|
10914
10919
|
);
|
10915
|
-
return /* @__PURE__ */
|
10916
|
-
/* @__PURE__ */
|
10917
|
-
/* @__PURE__ */
|
10920
|
+
return /* @__PURE__ */ jsx130(Fragment21, { children: /* @__PURE__ */ jsxs82(MyFlexColumn, { children: [
|
10921
|
+
/* @__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" }),
|
10922
|
+
/* @__PURE__ */ jsx130(Center4, { children: /* @__PURE__ */ jsx130(
|
10918
10923
|
PieChart,
|
10919
10924
|
{
|
10920
10925
|
startAngle: 90,
|
@@ -10927,8 +10932,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
10927
10932
|
data: data_used_discountCode
|
10928
10933
|
}
|
10929
10934
|
) }),
|
10930
|
-
/* @__PURE__ */
|
10931
|
-
/* @__PURE__ */
|
10935
|
+
/* @__PURE__ */ jsx130(Space8, { mt: 5 }),
|
10936
|
+
/* @__PURE__ */ jsx130(
|
10932
10937
|
MyDataTable,
|
10933
10938
|
{
|
10934
10939
|
data: mockData,
|
@@ -10943,10 +10948,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10943
10948
|
}
|
10944
10949
|
|
10945
10950
|
// src/modules-features/admin/core/MainDashboard/ViewVoucherStat.tsx
|
10946
|
-
import { Center as Center5, Progress as Progress2, Space as Space9, Text as
|
10951
|
+
import { Center as Center5, Progress as Progress2, Space as Space9, Text as Text28 } from "@mantine/core";
|
10947
10952
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
10948
10953
|
import { useMemo as useMemo17 } from "react";
|
10949
|
-
import { Fragment as Fragment22, jsx as
|
10954
|
+
import { Fragment as Fragment22, jsx as jsx131, jsxs as jsxs83 } from "react/jsx-runtime";
|
10950
10955
|
function getRandomColor2(seed) {
|
10951
10956
|
const random = Math.sin(seed) * 1e4;
|
10952
10957
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -11124,7 +11129,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11124
11129
|
header: "M\xE0u",
|
11125
11130
|
accessorKey: "color",
|
11126
11131
|
accessorFn(originalRow) {
|
11127
|
-
return /* @__PURE__ */
|
11132
|
+
return /* @__PURE__ */ jsx131("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
11128
11133
|
},
|
11129
11134
|
minSize: 30,
|
11130
11135
|
maxSize: 30
|
@@ -11139,7 +11144,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11139
11144
|
header: "%",
|
11140
11145
|
accessorKey: "used",
|
11141
11146
|
accessorFn(originalRow) {
|
11142
|
-
return /* @__PURE__ */
|
11147
|
+
return /* @__PURE__ */ jsx131(Fragment22, { children: /* @__PURE__ */ jsx131(Center5, { children: /* @__PURE__ */ jsxs83(Text28, { children: [
|
11143
11148
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
11144
11149
|
"%"
|
11145
11150
|
] }) }) });
|
@@ -11154,10 +11159,10 @@ function PieChart_VoucherUsedPercentage() {
|
|
11154
11159
|
return originalRow.used;
|
11155
11160
|
},
|
11156
11161
|
Cell: ({ row }) => {
|
11157
|
-
return /* @__PURE__ */
|
11158
|
-
/* @__PURE__ */
|
11162
|
+
return /* @__PURE__ */ jsxs83(Fragment22, { children: [
|
11163
|
+
/* @__PURE__ */ jsx131(Center5, { children: /* @__PURE__ */ jsxs83(Text28, { children: [
|
11159
11164
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
11160
|
-
/* @__PURE__ */
|
11165
|
+
/* @__PURE__ */ jsxs83("strong", { children: [
|
11161
11166
|
row.original.used,
|
11162
11167
|
" / ",
|
11163
11168
|
row.original.total
|
@@ -11166,7 +11171,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11166
11171
|
(row.original.used / row.original.total * 100).toFixed(2),
|
11167
11172
|
"%)"
|
11168
11173
|
] }) }),
|
11169
|
-
/* @__PURE__ */
|
11174
|
+
/* @__PURE__ */ jsx131(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
11170
11175
|
] });
|
11171
11176
|
},
|
11172
11177
|
minSize: 50,
|
@@ -11175,9 +11180,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
11175
11180
|
],
|
11176
11181
|
[]
|
11177
11182
|
);
|
11178
|
-
return /* @__PURE__ */
|
11179
|
-
/* @__PURE__ */
|
11180
|
-
/* @__PURE__ */
|
11183
|
+
return /* @__PURE__ */ jsx131(Fragment22, { children: /* @__PURE__ */ jsxs83(MyFlexColumn, { children: [
|
11184
|
+
/* @__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" }),
|
11185
|
+
/* @__PURE__ */ jsx131(Center5, { children: /* @__PURE__ */ jsx131(
|
11181
11186
|
PieChart2,
|
11182
11187
|
{
|
11183
11188
|
startAngle: 90,
|
@@ -11190,8 +11195,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
11190
11195
|
data: data_used_discountCode2
|
11191
11196
|
}
|
11192
11197
|
) }),
|
11193
|
-
/* @__PURE__ */
|
11194
|
-
/* @__PURE__ */
|
11198
|
+
/* @__PURE__ */ jsx131(Space9, { mt: 5 }),
|
11199
|
+
/* @__PURE__ */ jsx131(
|
11195
11200
|
MyDataTable,
|
11196
11201
|
{
|
11197
11202
|
data: mockData2,
|
@@ -11206,7 +11211,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11206
11211
|
}
|
11207
11212
|
|
11208
11213
|
// src/modules-features/Authenticate/F_Authenticate_Logout.tsx
|
11209
|
-
import { Button as
|
11214
|
+
import { Button as Button19 } from "@mantine/core";
|
11210
11215
|
import { IconLogout } from "@tabler/icons-react";
|
11211
11216
|
import { useRouter as useRouter4 } from "next/navigation";
|
11212
11217
|
|
@@ -11223,20 +11228,20 @@ function useS_Authenticate() {
|
|
11223
11228
|
}
|
11224
11229
|
|
11225
11230
|
// src/modules-features/Authenticate/F_Authenticate_Logout.tsx
|
11226
|
-
import { jsx as
|
11231
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
11227
11232
|
function F_Authenticate_Logout({ redirectURL = "/auth/login" }) {
|
11228
11233
|
const router = useRouter4();
|
11229
11234
|
const S_Authenticate = useS_Authenticate();
|
11230
|
-
return /* @__PURE__ */
|
11235
|
+
return /* @__PURE__ */ jsx132(Button19, { onClick: () => {
|
11231
11236
|
S_Authenticate.setProperty("token", "");
|
11232
11237
|
router.replace(redirectURL);
|
11233
|
-
}, leftSection: /* @__PURE__ */
|
11238
|
+
}, leftSection: /* @__PURE__ */ jsx132(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
11234
11239
|
}
|
11235
11240
|
|
11236
11241
|
// src/modules-features/Authenticate/F_Authenticate_SplashPage.tsx
|
11237
11242
|
import { useRouter as useRouter5 } from "next/navigation";
|
11238
11243
|
import { useEffect as useEffect18 } from "react";
|
11239
|
-
import { jsx as
|
11244
|
+
import { jsx as jsx133 } from "react/jsx-runtime";
|
11240
11245
|
function F_authenticate_SplashPage() {
|
11241
11246
|
const router = useRouter5();
|
11242
11247
|
const S_Authenticate = useS_Authenticate();
|
@@ -11247,21 +11252,21 @@ function F_authenticate_SplashPage() {
|
|
11247
11252
|
}
|
11248
11253
|
router.push("/admin/core71678");
|
11249
11254
|
}, [S_Authenticate.state.token]);
|
11250
|
-
return /* @__PURE__ */
|
11255
|
+
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
11256
|
}
|
11252
11257
|
|
11253
11258
|
// src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
|
11254
11259
|
import {
|
11255
11260
|
Anchor as Anchor2,
|
11256
11261
|
BackgroundImage,
|
11257
|
-
Button as
|
11262
|
+
Button as Button20,
|
11258
11263
|
Center as Center6,
|
11259
11264
|
Checkbox as Checkbox5,
|
11260
|
-
Flex as
|
11261
|
-
Group as
|
11262
|
-
Paper as
|
11265
|
+
Flex as Flex8,
|
11266
|
+
Group as Group30,
|
11267
|
+
Paper as Paper24,
|
11263
11268
|
PasswordInput as PasswordInput2,
|
11264
|
-
Text as
|
11269
|
+
Text as Text29,
|
11265
11270
|
TextInput as TextInput6,
|
11266
11271
|
Title as Title2
|
11267
11272
|
} from "@mantine/core";
|
@@ -11276,7 +11281,7 @@ import { useState as useState17 } from "react";
|
|
11276
11281
|
var css_default3 = {};
|
11277
11282
|
|
11278
11283
|
// src/modules-features/Authenticate/F_Authenticate_Login/F_Authenticate_Login.tsx
|
11279
|
-
import { jsx as
|
11284
|
+
import { jsx as jsx134, jsxs as jsxs84 } from "react/jsx-runtime";
|
11280
11285
|
function F_Authenticate_Login({
|
11281
11286
|
loginInfo,
|
11282
11287
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -11329,21 +11334,21 @@ function F_Authenticate_Login({
|
|
11329
11334
|
}
|
11330
11335
|
});
|
11331
11336
|
}
|
11332
|
-
return /* @__PURE__ */
|
11337
|
+
return /* @__PURE__ */ jsx134(
|
11333
11338
|
BackgroundImage,
|
11334
11339
|
{
|
11335
11340
|
src: backgroundImage,
|
11336
11341
|
h: "100vh",
|
11337
|
-
children: /* @__PURE__ */
|
11338
|
-
/* @__PURE__ */
|
11339
|
-
/* @__PURE__ */
|
11340
|
-
/* @__PURE__ */
|
11342
|
+
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: [
|
11343
|
+
/* @__PURE__ */ jsxs84(Flex8, { direction: "column", mb: "md", children: [
|
11344
|
+
/* @__PURE__ */ jsx134(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
11345
|
+
/* @__PURE__ */ jsxs84(Text29, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
11341
11346
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
11342
|
-
/* @__PURE__ */
|
11347
|
+
/* @__PURE__ */ jsx134(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
11343
11348
|
] })
|
11344
11349
|
] }),
|
11345
|
-
/* @__PURE__ */
|
11346
|
-
/* @__PURE__ */
|
11350
|
+
/* @__PURE__ */ jsx134("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs84(MyFlexColumn, { children: [
|
11351
|
+
/* @__PURE__ */ jsx134(
|
11347
11352
|
TextInput6,
|
11348
11353
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
11349
11354
|
label: "T\xE0i kho\u1EA3n",
|
@@ -11351,7 +11356,7 @@ function F_Authenticate_Login({
|
|
11351
11356
|
withAsterisk: true
|
11352
11357
|
})
|
11353
11358
|
),
|
11354
|
-
/* @__PURE__ */
|
11359
|
+
/* @__PURE__ */ jsx134(
|
11355
11360
|
PasswordInput2,
|
11356
11361
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
11357
11362
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -11359,12 +11364,12 @@ function F_Authenticate_Login({
|
|
11359
11364
|
withAsterisk: true
|
11360
11365
|
})
|
11361
11366
|
),
|
11362
|
-
/* @__PURE__ */
|
11363
|
-
/* @__PURE__ */
|
11364
|
-
/* @__PURE__ */
|
11367
|
+
/* @__PURE__ */ jsxs84(Group30, { justify: "space-between", children: [
|
11368
|
+
/* @__PURE__ */ jsx134(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
11369
|
+
/* @__PURE__ */ jsx134(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
11365
11370
|
] }),
|
11366
|
-
/* @__PURE__ */
|
11367
|
-
|
11371
|
+
/* @__PURE__ */ jsx134(
|
11372
|
+
Button20,
|
11368
11373
|
{
|
11369
11374
|
loading: loadingState[0],
|
11370
11375
|
type: "submit",
|