aq-fe-framework 0.1.114 → 0.1.116
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.
@@ -6673,43 +6673,53 @@ function AQCard({
|
|
6673
6673
|
] });
|
6674
6674
|
}
|
6675
6675
|
|
6676
|
-
// src/components/DataDisplay/
|
6676
|
+
// src/components/DataDisplay/IconText/MyIconText.tsx
|
6677
6677
|
import { Group as Group9, Text as Text8 } from "@mantine/core";
|
6678
6678
|
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
6679
|
+
function MyIconText({ icon: Icon, text }) {
|
6680
|
+
return /* @__PURE__ */ jsxs25(Group9, { wrap: "nowrap", gap: 10, mt: 3, children: [
|
6681
|
+
Icon && /* @__PURE__ */ jsx46(Icon, { stroke: 1.5, size: 16 }),
|
6682
|
+
/* @__PURE__ */ jsx46(Text8, { fz: "lg", c: "dimmed", children: text })
|
6683
|
+
] });
|
6684
|
+
}
|
6685
|
+
|
6686
|
+
// src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
|
6687
|
+
import { Group as Group10, Text as Text9 } from "@mantine/core";
|
6688
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
6679
6689
|
function MyKeyLabel({ keyLabel, label }) {
|
6680
|
-
return /* @__PURE__ */
|
6681
|
-
/* @__PURE__ */
|
6690
|
+
return /* @__PURE__ */ jsxs26(Group10, { gap: 5, children: [
|
6691
|
+
/* @__PURE__ */ jsxs26(Text9, { fw: "bold", children: [
|
6682
6692
|
keyLabel,
|
6683
6693
|
":"
|
6684
6694
|
] }),
|
6685
|
-
/* @__PURE__ */
|
6695
|
+
/* @__PURE__ */ jsx47(Text9, { children: label })
|
6686
6696
|
] });
|
6687
6697
|
}
|
6688
6698
|
|
6689
6699
|
// src/components/DataDisplay/NumberFormatter/MyNumberFormatter.tsx
|
6690
6700
|
import { NumberFormatter } from "@mantine/core";
|
6691
|
-
import { jsx as
|
6701
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
6692
6702
|
function MyNumberFormatter(_a) {
|
6693
6703
|
var rest = __objRest(_a, []);
|
6694
|
-
return /* @__PURE__ */
|
6704
|
+
return /* @__PURE__ */ jsx48(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
6695
6705
|
}
|
6696
6706
|
|
6697
6707
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
6698
|
-
import { Box as Box2, Button as Button13, Flex as Flex3, Group as
|
6708
|
+
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group11, Paper as Paper6, Text as Text10 } from "@mantine/core";
|
6699
6709
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
6700
|
-
import { Fragment as Fragment11, jsx as
|
6710
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
6701
6711
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
6702
|
-
return /* @__PURE__ */
|
6712
|
+
return /* @__PURE__ */ jsx49(Fragment11, { children: /* @__PURE__ */ jsxs27(
|
6703
6713
|
Paper6,
|
6704
6714
|
{
|
6705
6715
|
withBorder: true,
|
6706
6716
|
p: "md",
|
6707
6717
|
radius: "md",
|
6708
6718
|
children: [
|
6709
|
-
/* @__PURE__ */
|
6710
|
-
/* @__PURE__ */
|
6711
|
-
/* @__PURE__ */
|
6712
|
-
|
6719
|
+
/* @__PURE__ */ jsxs27(Group11, { justify: "space-between", children: [
|
6720
|
+
/* @__PURE__ */ jsxs27(Flex3, { direction: "column", children: [
|
6721
|
+
/* @__PURE__ */ jsx49(
|
6722
|
+
Text10,
|
6713
6723
|
{
|
6714
6724
|
tt: "uppercase",
|
6715
6725
|
size: "lg",
|
@@ -6717,53 +6727,53 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
6717
6727
|
children: title3
|
6718
6728
|
}
|
6719
6729
|
),
|
6720
|
-
unit == "" ? /* @__PURE__ */
|
6730
|
+
unit == "" ? /* @__PURE__ */ jsxs27(Text10, { size: "xs", style: { visibility: "hidden" }, children: [
|
6721
6731
|
"\u0110\u01A1n v\u1ECB: ",
|
6722
|
-
/* @__PURE__ */
|
6723
|
-
] }) : /* @__PURE__ */
|
6732
|
+
/* @__PURE__ */ jsx49("strong", { children: unit })
|
6733
|
+
] }) : /* @__PURE__ */ jsxs27(Text10, { size: "xs", children: [
|
6724
6734
|
"\u0110\u01A1n v\u1ECB: ",
|
6725
|
-
/* @__PURE__ */
|
6735
|
+
/* @__PURE__ */ jsx49("strong", { children: unit })
|
6726
6736
|
] })
|
6727
6737
|
] }),
|
6728
|
-
/* @__PURE__ */
|
6738
|
+
/* @__PURE__ */ jsx49(Box2, { children: icons })
|
6729
6739
|
] }),
|
6730
|
-
/* @__PURE__ */
|
6731
|
-
|
6740
|
+
/* @__PURE__ */ jsxs27(
|
6741
|
+
Group11,
|
6732
6742
|
{
|
6733
6743
|
mt: "5",
|
6734
6744
|
align: "flex-end",
|
6735
6745
|
gap: "xs",
|
6736
6746
|
children: [
|
6737
|
-
/* @__PURE__ */
|
6738
|
-
|
6747
|
+
/* @__PURE__ */ jsx49(
|
6748
|
+
Text10,
|
6739
6749
|
{
|
6740
6750
|
fw: 700,
|
6741
6751
|
fz: "h1",
|
6742
6752
|
children: value
|
6743
6753
|
}
|
6744
6754
|
),
|
6745
|
-
/* @__PURE__ */
|
6746
|
-
|
6755
|
+
/* @__PURE__ */ jsxs27(
|
6756
|
+
Text10,
|
6747
6757
|
{
|
6748
6758
|
mb: "2",
|
6749
6759
|
c: diff > 0 ? "teal" : "red",
|
6750
6760
|
fz: "h2",
|
6751
6761
|
fw: 500,
|
6752
6762
|
children: [
|
6753
|
-
/* @__PURE__ */
|
6763
|
+
/* @__PURE__ */ jsxs27("span", { children: [
|
6754
6764
|
diff,
|
6755
6765
|
"%"
|
6756
6766
|
] }),
|
6757
|
-
diff > 0 ? /* @__PURE__ */
|
6767
|
+
diff > 0 ? /* @__PURE__ */ jsx49(IconArrowUpRight, {}) : /* @__PURE__ */ jsx49(IconArrowDownRight, {})
|
6758
6768
|
]
|
6759
6769
|
}
|
6760
6770
|
)
|
6761
6771
|
]
|
6762
6772
|
}
|
6763
6773
|
),
|
6764
|
-
/* @__PURE__ */
|
6765
|
-
/* @__PURE__ */
|
6766
|
-
/* @__PURE__ */
|
6774
|
+
/* @__PURE__ */ jsxs27(Group11, { justify: "space-between", children: [
|
6775
|
+
/* @__PURE__ */ jsx49(Text10, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6776
|
+
/* @__PURE__ */ jsx49(
|
6767
6777
|
Button13,
|
6768
6778
|
{
|
6769
6779
|
variant: "light",
|
@@ -6805,8 +6815,8 @@ function FaviconSetter() {
|
|
6805
6815
|
}
|
6806
6816
|
|
6807
6817
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
6808
|
-
import { Box as Box3, Fieldset as Fieldset4, Text as
|
6809
|
-
import { jsx as
|
6818
|
+
import { Box as Box3, Fieldset as Fieldset4, Text as Text11 } from "@mantine/core";
|
6819
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
6810
6820
|
function MyFieldset(_a) {
|
6811
6821
|
var _b = _a, {
|
6812
6822
|
children,
|
@@ -6815,17 +6825,17 @@ function MyFieldset(_a) {
|
|
6815
6825
|
"children",
|
6816
6826
|
"title"
|
6817
6827
|
]);
|
6818
|
-
return /* @__PURE__ */
|
6828
|
+
return /* @__PURE__ */ jsx50(
|
6819
6829
|
Fieldset4,
|
6820
6830
|
__spreadProps(__spreadValues({}, rest), {
|
6821
|
-
legend: /* @__PURE__ */
|
6831
|
+
legend: /* @__PURE__ */ jsx50(
|
6822
6832
|
Box3,
|
6823
6833
|
{
|
6824
6834
|
bg: "blue.4",
|
6825
6835
|
px: "xs",
|
6826
6836
|
py: 2,
|
6827
6837
|
style: { borderRadius: 4 },
|
6828
|
-
children: /* @__PURE__ */
|
6838
|
+
children: /* @__PURE__ */ jsx50(Text11, { c: "white", fw: 500, children: title3 })
|
6829
6839
|
}
|
6830
6840
|
),
|
6831
6841
|
children
|
@@ -6835,10 +6845,10 @@ function MyFieldset(_a) {
|
|
6835
6845
|
|
6836
6846
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
6837
6847
|
import { Textarea } from "@mantine/core";
|
6838
|
-
import { jsx as
|
6848
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
6839
6849
|
function MyTextArea(_a) {
|
6840
6850
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6841
|
-
return /* @__PURE__ */
|
6851
|
+
return /* @__PURE__ */ jsx51(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6842
6852
|
}
|
6843
6853
|
|
6844
6854
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
@@ -6854,7 +6864,7 @@ import Underline from "@tiptap/extension-underline";
|
|
6854
6864
|
import { useEditor } from "@tiptap/react";
|
6855
6865
|
import StarterKit from "@tiptap/starter-kit";
|
6856
6866
|
import { useEffect as useEffect6, useState as useState7 } from "react";
|
6857
|
-
import { jsx as
|
6867
|
+
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
6858
6868
|
function MyTextEditor(_a) {
|
6859
6869
|
var _b = _a, {
|
6860
6870
|
autoHiddenToolBar = false,
|
@@ -6956,43 +6966,43 @@ function MyTextEditor(_a) {
|
|
6956
6966
|
editor.commands.setContent(value);
|
6957
6967
|
}
|
6958
6968
|
}, [value, editor]);
|
6959
|
-
return /* @__PURE__ */
|
6960
|
-
/* @__PURE__ */
|
6961
|
-
/* @__PURE__ */
|
6962
|
-
/* @__PURE__ */
|
6963
|
-
/* @__PURE__ */
|
6964
|
-
/* @__PURE__ */
|
6965
|
-
/* @__PURE__ */
|
6966
|
-
/* @__PURE__ */
|
6967
|
-
/* @__PURE__ */
|
6968
|
-
/* @__PURE__ */
|
6969
|
+
return /* @__PURE__ */ jsx52(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs28(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
6970
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
6971
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6972
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Bold, {}),
|
6973
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Italic, {}),
|
6974
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Underline, {}),
|
6975
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Strikethrough, {}),
|
6976
|
+
/* @__PURE__ */ jsx52(RichTextEditor.ClearFormatting, {}),
|
6977
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Highlight, {}),
|
6978
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Code, {})
|
6969
6979
|
] }),
|
6970
|
-
/* @__PURE__ */
|
6971
|
-
/* @__PURE__ */
|
6972
|
-
/* @__PURE__ */
|
6973
|
-
/* @__PURE__ */
|
6974
|
-
/* @__PURE__ */
|
6980
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6981
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H1, {}),
|
6982
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H2, {}),
|
6983
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H3, {}),
|
6984
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H4, {})
|
6975
6985
|
] }),
|
6976
|
-
/* @__PURE__ */
|
6977
|
-
/* @__PURE__ */
|
6978
|
-
/* @__PURE__ */
|
6979
|
-
/* @__PURE__ */
|
6980
|
-
/* @__PURE__ */
|
6981
|
-
/* @__PURE__ */
|
6982
|
-
/* @__PURE__ */
|
6986
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6987
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Blockquote, {}),
|
6988
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Hr, {}),
|
6989
|
+
/* @__PURE__ */ jsx52(RichTextEditor.BulletList, {}),
|
6990
|
+
/* @__PURE__ */ jsx52(RichTextEditor.OrderedList, {}),
|
6991
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Subscript, {}),
|
6992
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Superscript, {})
|
6983
6993
|
] }),
|
6984
|
-
/* @__PURE__ */
|
6985
|
-
/* @__PURE__ */
|
6986
|
-
/* @__PURE__ */
|
6994
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6995
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Link, {}),
|
6996
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Unlink, {})
|
6987
6997
|
] }),
|
6988
|
-
/* @__PURE__ */
|
6989
|
-
/* @__PURE__ */
|
6990
|
-
/* @__PURE__ */
|
6991
|
-
/* @__PURE__ */
|
6992
|
-
/* @__PURE__ */
|
6998
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6999
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignLeft, {}),
|
7000
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignCenter, {}),
|
7001
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignJustify, {}),
|
7002
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignRight, {})
|
6993
7003
|
] })
|
6994
7004
|
] }),
|
6995
|
-
/* @__PURE__ */
|
7005
|
+
/* @__PURE__ */ jsx52(
|
6996
7006
|
ScrollArea2.Autosize,
|
6997
7007
|
{
|
6998
7008
|
onMouseDown: () => {
|
@@ -7007,7 +7017,7 @@ function MyTextEditor(_a) {
|
|
7007
7017
|
setHiddenToolBar(false);
|
7008
7018
|
},
|
7009
7019
|
style: { cursor: "text", maxHeight: "400px" },
|
7010
|
-
children: /* @__PURE__ */
|
7020
|
+
children: /* @__PURE__ */ jsx52(RichTextEditor.Content, { mih: contentHeight })
|
7011
7021
|
}
|
7012
7022
|
)
|
7013
7023
|
] }) });
|
@@ -7019,12 +7029,12 @@ import {
|
|
7019
7029
|
AppShell,
|
7020
7030
|
Badge as Badge2,
|
7021
7031
|
Divider as Divider2,
|
7022
|
-
Group as
|
7032
|
+
Group as Group12,
|
7023
7033
|
Image as Image3,
|
7024
7034
|
NavLink,
|
7025
7035
|
ScrollArea as ScrollArea3,
|
7026
7036
|
Select as Select4,
|
7027
|
-
Text as
|
7037
|
+
Text as Text12,
|
7028
7038
|
TextInput as TextInput2,
|
7029
7039
|
Tooltip as Tooltip5
|
7030
7040
|
} from "@mantine/core";
|
@@ -7038,22 +7048,22 @@ import {
|
|
7038
7048
|
} from "@tabler/icons-react";
|
7039
7049
|
import Link3 from "next/link";
|
7040
7050
|
import { usePathname as usePathname2 } from "next/navigation";
|
7041
|
-
import { Fragment as Fragment12, jsx as
|
7051
|
+
import { Fragment as Fragment12, jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
7042
7052
|
function getRightSection(status) {
|
7043
7053
|
if (status === "Prototype")
|
7044
|
-
return /* @__PURE__ */
|
7054
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
7045
7055
|
if (status === "New")
|
7046
|
-
return /* @__PURE__ */
|
7056
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
7047
7057
|
if (status === "Menu")
|
7048
|
-
return /* @__PURE__ */
|
7058
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
7049
7059
|
if (status === "Change")
|
7050
|
-
return /* @__PURE__ */
|
7060
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
7051
7061
|
return null;
|
7052
7062
|
}
|
7053
7063
|
function RenderNavLinks({ items }) {
|
7054
7064
|
const basicAppShellStore = useS_BasicAppShell();
|
7055
7065
|
const pathName = usePathname2();
|
7056
|
-
return /* @__PURE__ */
|
7066
|
+
return /* @__PURE__ */ jsx53(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx53(
|
7057
7067
|
NavLink,
|
7058
7068
|
{
|
7059
7069
|
active: item.link === pathName.split("/")[2],
|
@@ -7070,7 +7080,7 @@ function RenderNavLinks({ items }) {
|
|
7070
7080
|
basicAppShellStore.setProperty("title", item.label);
|
7071
7081
|
}
|
7072
7082
|
},
|
7073
|
-
children: item.links && /* @__PURE__ */
|
7083
|
+
children: item.links && /* @__PURE__ */ jsx53(RenderNavLinks, { items: item.links })
|
7074
7084
|
},
|
7075
7085
|
index
|
7076
7086
|
)) });
|
@@ -7128,7 +7138,7 @@ function BasicAppShell({ children, menu }) {
|
|
7128
7138
|
const basicAppShellStore = useS_BasicAppShell();
|
7129
7139
|
const media = useMediaQuery("(min-width: 72em)");
|
7130
7140
|
const selectMedia = useMediaQuery("(min-width: 80em)");
|
7131
|
-
return /* @__PURE__ */
|
7141
|
+
return /* @__PURE__ */ jsxs29(
|
7132
7142
|
AppShell,
|
7133
7143
|
{
|
7134
7144
|
header: { height: 60 },
|
@@ -7142,51 +7152,51 @@ function BasicAppShell({ children, menu }) {
|
|
7142
7152
|
},
|
7143
7153
|
padding: "md",
|
7144
7154
|
children: [
|
7145
|
-
/* @__PURE__ */
|
7146
|
-
/* @__PURE__ */
|
7147
|
-
media ? /* @__PURE__ */
|
7148
|
-
/* @__PURE__ */
|
7149
|
-
/* @__PURE__ */
|
7155
|
+
/* @__PURE__ */ jsxs29(AppShell.Header, { children: [
|
7156
|
+
/* @__PURE__ */ jsx53(MyAppSpotlight, { menu }),
|
7157
|
+
media ? /* @__PURE__ */ jsxs29(Group12, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
7158
|
+
/* @__PURE__ */ jsxs29(Group12, { h: "100%", children: [
|
7159
|
+
/* @__PURE__ */ jsx53(
|
7150
7160
|
Tooltip5,
|
7151
7161
|
{
|
7152
7162
|
label: basicAppShellStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu",
|
7153
|
-
children: /* @__PURE__ */
|
7163
|
+
children: /* @__PURE__ */ jsx53(
|
7154
7164
|
ActionIcon10,
|
7155
7165
|
{
|
7156
7166
|
size: "lg",
|
7157
7167
|
radius: "md",
|
7158
7168
|
variant: "default",
|
7159
7169
|
onClick: basicAppShellStore.toggle,
|
7160
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7170
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx53(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx53(IconLayoutSidebarLeftCollapse, {})
|
7161
7171
|
}
|
7162
7172
|
)
|
7163
7173
|
}
|
7164
7174
|
),
|
7165
|
-
/* @__PURE__ */
|
7175
|
+
/* @__PURE__ */ jsx53(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx53(
|
7166
7176
|
ActionIcon10,
|
7167
7177
|
{
|
7168
7178
|
size: "lg",
|
7169
7179
|
radius: "md",
|
7170
7180
|
variant: "default",
|
7171
7181
|
onClick: () => basicAppShellStore.clearGroupMenuOpenId(),
|
7172
|
-
children: /* @__PURE__ */
|
7182
|
+
children: /* @__PURE__ */ jsx53(IconLibraryMinus, {})
|
7173
7183
|
}
|
7174
7184
|
) })
|
7175
7185
|
] }),
|
7176
|
-
/* @__PURE__ */
|
7177
|
-
|
7186
|
+
/* @__PURE__ */ jsx53(
|
7187
|
+
Group12,
|
7178
7188
|
{
|
7179
7189
|
style: {
|
7180
7190
|
position: "absolute",
|
7181
7191
|
left: "50%",
|
7182
7192
|
transform: "translateX(-50%)"
|
7183
7193
|
},
|
7184
|
-
children: /* @__PURE__ */
|
7194
|
+
children: /* @__PURE__ */ jsx53(Text12, { c: "green", fw: "bold", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
|
7185
7195
|
}
|
7186
7196
|
),
|
7187
|
-
/* @__PURE__ */
|
7188
|
-
/* @__PURE__ */
|
7189
|
-
/* @__PURE__ */
|
7197
|
+
/* @__PURE__ */ jsxs29(Group12, { children: [
|
7198
|
+
/* @__PURE__ */ jsx53(Text12, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
7199
|
+
/* @__PURE__ */ jsx53(
|
7190
7200
|
Select4,
|
7191
7201
|
{
|
7192
7202
|
w: selectMedia ? 245 : 150,
|
@@ -7198,24 +7208,24 @@ function BasicAppShell({ children, menu }) {
|
|
7198
7208
|
]
|
7199
7209
|
}
|
7200
7210
|
),
|
7201
|
-
/* @__PURE__ */
|
7211
|
+
/* @__PURE__ */ jsx53(MySwitchTheme, {})
|
7202
7212
|
] })
|
7203
7213
|
] }) : (
|
7204
7214
|
// For mobile screens - simplified layout
|
7205
|
-
/* @__PURE__ */
|
7206
|
-
/* @__PURE__ */
|
7215
|
+
/* @__PURE__ */ jsxs29(Group12, { h: "100%", px: "md", justify: "space-between", children: [
|
7216
|
+
/* @__PURE__ */ jsx53(
|
7207
7217
|
ActionIcon10,
|
7208
7218
|
{
|
7209
7219
|
size: "lg",
|
7210
7220
|
radius: "md",
|
7211
7221
|
variant: "default",
|
7212
7222
|
onClick: basicAppShellStore.toggle,
|
7213
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7223
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx53(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx53(IconLayoutSidebarLeftCollapse, {})
|
7214
7224
|
}
|
7215
7225
|
),
|
7216
|
-
/* @__PURE__ */
|
7217
|
-
/* @__PURE__ */
|
7218
|
-
/* @__PURE__ */
|
7226
|
+
/* @__PURE__ */ jsx53(Text12, { c: "green", fw: "bold", size: "sm", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
|
7227
|
+
/* @__PURE__ */ jsxs29(Group12, { children: [
|
7228
|
+
/* @__PURE__ */ jsx53(
|
7219
7229
|
Select4,
|
7220
7230
|
{
|
7221
7231
|
w: 100,
|
@@ -7228,13 +7238,13 @@ function BasicAppShell({ children, menu }) {
|
|
7228
7238
|
]
|
7229
7239
|
}
|
7230
7240
|
),
|
7231
|
-
/* @__PURE__ */
|
7241
|
+
/* @__PURE__ */ jsx53(MySwitchTheme, {})
|
7232
7242
|
] })
|
7233
7243
|
] })
|
7234
7244
|
)
|
7235
7245
|
] }),
|
7236
|
-
/* @__PURE__ */
|
7237
|
-
/* @__PURE__ */
|
7246
|
+
/* @__PURE__ */ jsxs29(AppShell.Navbar, { children: [
|
7247
|
+
/* @__PURE__ */ jsx53(
|
7238
7248
|
TextInput2,
|
7239
7249
|
{
|
7240
7250
|
mt: "md",
|
@@ -7242,18 +7252,18 @@ function BasicAppShell({ children, menu }) {
|
|
7242
7252
|
mx: 10,
|
7243
7253
|
component: "button",
|
7244
7254
|
onClick: spotlight2.open,
|
7245
|
-
leftSection: /* @__PURE__ */
|
7255
|
+
leftSection: /* @__PURE__ */ jsx53(IconSearch2, {}),
|
7246
7256
|
children: "T\xECm ki\u1EBFm (Ctrl + K)"
|
7247
7257
|
}
|
7248
7258
|
),
|
7249
|
-
/* @__PURE__ */
|
7250
|
-
/* @__PURE__ */
|
7251
|
-
/* @__PURE__ */
|
7252
|
-
/* @__PURE__ */
|
7259
|
+
/* @__PURE__ */ jsxs29(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
7260
|
+
/* @__PURE__ */ jsx53(RenderNavLinks, { items: menu }),
|
7261
|
+
/* @__PURE__ */ jsx53(Divider2, {}),
|
7262
|
+
/* @__PURE__ */ jsx53(F_authenticate_Logout, {})
|
7253
7263
|
] }),
|
7254
|
-
/* @__PURE__ */
|
7255
|
-
/* @__PURE__ */
|
7256
|
-
/* @__PURE__ */
|
7264
|
+
/* @__PURE__ */ jsxs29(AppShell.Section, { p: "md", children: [
|
7265
|
+
/* @__PURE__ */ jsx53(Divider2, {}),
|
7266
|
+
/* @__PURE__ */ jsx53(
|
7257
7267
|
Image3,
|
7258
7268
|
{
|
7259
7269
|
fit: "contain",
|
@@ -7267,7 +7277,7 @@ function BasicAppShell({ children, menu }) {
|
|
7267
7277
|
)
|
7268
7278
|
] })
|
7269
7279
|
] }),
|
7270
|
-
/* @__PURE__ */
|
7280
|
+
/* @__PURE__ */ jsx53(
|
7271
7281
|
AppShell.Main,
|
7272
7282
|
{
|
7273
7283
|
bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7322,10 +7332,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
7322
7332
|
|
7323
7333
|
// src/components/Layouts/Container/MyContainer.tsx
|
7324
7334
|
import { Container, Flex as Flex4 } from "@mantine/core";
|
7325
|
-
import { jsx as
|
7335
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
7326
7336
|
function MyContainer(_a) {
|
7327
7337
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7328
|
-
return /* @__PURE__ */
|
7338
|
+
return /* @__PURE__ */ jsx54(Container, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx54(Flex4, { direction: "column", children }) }));
|
7329
7339
|
}
|
7330
7340
|
|
7331
7341
|
// src/constants/object/color.ts
|
@@ -7343,10 +7353,10 @@ import {
|
|
7343
7353
|
Container as Container2,
|
7344
7354
|
Divider as Divider3,
|
7345
7355
|
Drawer,
|
7346
|
-
Group as
|
7356
|
+
Group as Group13,
|
7347
7357
|
Image as Image4,
|
7348
7358
|
ScrollArea as ScrollArea4,
|
7349
|
-
Text as
|
7359
|
+
Text as Text13,
|
7350
7360
|
TextInput as TextInput3,
|
7351
7361
|
ThemeIcon,
|
7352
7362
|
UnstyledButton,
|
@@ -7378,7 +7388,7 @@ function useHeaderMegaMenuStore() {
|
|
7378
7388
|
}
|
7379
7389
|
|
7380
7390
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7381
|
-
import { jsx as
|
7391
|
+
import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
7382
7392
|
var mockdata = [
|
7383
7393
|
{
|
7384
7394
|
icon: IconCode,
|
@@ -7416,27 +7426,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7416
7426
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
7417
7427
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
7418
7428
|
const theme = useMantineTheme();
|
7419
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
7420
|
-
/* @__PURE__ */
|
7421
|
-
/* @__PURE__ */
|
7422
|
-
/* @__PURE__ */
|
7423
|
-
/* @__PURE__ */
|
7429
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx55(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs30(Group13, { wrap: "nowrap", align: "flex-start", children: [
|
7430
|
+
/* @__PURE__ */ jsx55(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx55(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
7431
|
+
/* @__PURE__ */ jsxs30("div", { children: [
|
7432
|
+
/* @__PURE__ */ jsx55(Text13, { size: "sm", fw: 500, children: item.title }),
|
7433
|
+
/* @__PURE__ */ jsx55(Text13, { size: "xs", c: "dimmed", children: item.description })
|
7424
7434
|
] })
|
7425
7435
|
] }) }, item.title));
|
7426
|
-
return /* @__PURE__ */
|
7427
|
-
/* @__PURE__ */
|
7428
|
-
/* @__PURE__ */
|
7429
|
-
/* @__PURE__ */
|
7430
|
-
/* @__PURE__ */
|
7436
|
+
return /* @__PURE__ */ jsxs30(Box4, { children: [
|
7437
|
+
/* @__PURE__ */ jsx55("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs30(Group13, { justify: "space-between", h: "100%", children: [
|
7438
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7439
|
+
/* @__PURE__ */ jsx55(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
7440
|
+
/* @__PURE__ */ jsx55(Group13, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx55(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
7431
7441
|
] }),
|
7432
|
-
/* @__PURE__ */
|
7433
|
-
/* @__PURE__ */
|
7434
|
-
/* @__PURE__ */
|
7442
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7443
|
+
/* @__PURE__ */ jsx55(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx55(IconSearch3, {}), radius: "xl", w: "250px" }),
|
7444
|
+
/* @__PURE__ */ jsx55(MySwitchTheme, {})
|
7435
7445
|
] }),
|
7436
|
-
/* @__PURE__ */
|
7446
|
+
/* @__PURE__ */ jsx55(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
7437
7447
|
] }) }),
|
7438
|
-
/* @__PURE__ */
|
7439
|
-
/* @__PURE__ */
|
7448
|
+
/* @__PURE__ */ jsx55(Container2, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
7449
|
+
/* @__PURE__ */ jsx55(
|
7440
7450
|
Drawer,
|
7441
7451
|
{
|
7442
7452
|
opened: drawerOpened,
|
@@ -7446,10 +7456,10 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7446
7456
|
title: "Navigation",
|
7447
7457
|
hiddenFrom: "sm",
|
7448
7458
|
zIndex: 1e6,
|
7449
|
-
children: /* @__PURE__ */
|
7450
|
-
/* @__PURE__ */
|
7451
|
-
/* @__PURE__ */
|
7452
|
-
/* @__PURE__ */
|
7459
|
+
children: /* @__PURE__ */ jsxs30(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
7460
|
+
/* @__PURE__ */ jsx55(Divider3, { my: "sm" }),
|
7461
|
+
/* @__PURE__ */ jsx55(MyFlexColumn, { h: "100%", gap: 0, children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx55(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) }),
|
7462
|
+
/* @__PURE__ */ jsx55(Divider3, { my: "sm" })
|
7453
7463
|
] })
|
7454
7464
|
}
|
7455
7465
|
)
|
@@ -7457,8 +7467,8 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7457
7467
|
}
|
7458
7468
|
|
7459
7469
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7460
|
-
import { Code, Container as Container3, Divider as Divider4, Group as
|
7461
|
-
import { jsx as
|
7470
|
+
import { Code, Container as Container3, Divider as Divider4, Group as Group14, Indicator, Title } from "@mantine/core";
|
7471
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
7462
7472
|
var getStatusColor = (status) => {
|
7463
7473
|
switch (status) {
|
7464
7474
|
case "Prototype":
|
@@ -7471,7 +7481,7 @@ var getStatusColor = (status) => {
|
|
7471
7481
|
};
|
7472
7482
|
var PageTitle = ({ title: title3, status }) => {
|
7473
7483
|
const color = getStatusColor(status);
|
7474
|
-
return /* @__PURE__ */
|
7484
|
+
return /* @__PURE__ */ jsx56(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx56(Title, { order: 4, children: title3 }) });
|
7475
7485
|
};
|
7476
7486
|
function MyPageContent({
|
7477
7487
|
leftTopBar,
|
@@ -7483,69 +7493,69 @@ function MyPageContent({
|
|
7483
7493
|
}) {
|
7484
7494
|
const basicAppShellStore = useS_BasicAppShell();
|
7485
7495
|
const finalTitle = title3 || basicAppShellStore.state.title;
|
7486
|
-
return /* @__PURE__ */
|
7487
|
-
/* @__PURE__ */
|
7488
|
-
/* @__PURE__ */
|
7489
|
-
canBack && /* @__PURE__ */
|
7490
|
-
/* @__PURE__ */
|
7496
|
+
return /* @__PURE__ */ jsxs31(Container3, { p: 0, fluid: true, children: [
|
7497
|
+
/* @__PURE__ */ jsxs31(Group14, { justify: "space-between", children: [
|
7498
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7499
|
+
canBack && /* @__PURE__ */ jsx56(MyButtonRouterBack, {}),
|
7500
|
+
/* @__PURE__ */ jsx56(PageTitle, { title: finalTitle, status }),
|
7491
7501
|
leftTopBar
|
7492
7502
|
] }),
|
7493
|
-
/* @__PURE__ */
|
7503
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7494
7504
|
rightTopBar,
|
7495
|
-
/* @__PURE__ */
|
7505
|
+
/* @__PURE__ */ jsx56(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode })
|
7496
7506
|
] })
|
7497
7507
|
] }),
|
7498
|
-
/* @__PURE__ */
|
7508
|
+
/* @__PURE__ */ jsx56(Divider4, { my: "xs" }),
|
7499
7509
|
children
|
7500
7510
|
] });
|
7501
7511
|
}
|
7502
7512
|
|
7503
7513
|
// src/components/Layouts/Tab/MyTab.tsx
|
7504
7514
|
import { rem, Space as Space4, Tabs } from "@mantine/core";
|
7505
|
-
import { jsx as
|
7515
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
7506
7516
|
function MyTab(_a) {
|
7507
7517
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
7508
7518
|
const iconStyle = { width: rem(20), height: rem(20) };
|
7509
|
-
return /* @__PURE__ */
|
7510
|
-
/* @__PURE__ */
|
7511
|
-
return /* @__PURE__ */
|
7519
|
+
return /* @__PURE__ */ jsxs32(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
7520
|
+
/* @__PURE__ */ jsx57(Tabs.List, { children: tabList.map((item, idx) => {
|
7521
|
+
return /* @__PURE__ */ jsx57(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx57(item.icon, { style: iconStyle }), children: item.label }, idx);
|
7512
7522
|
}) }),
|
7513
|
-
/* @__PURE__ */
|
7523
|
+
/* @__PURE__ */ jsx57(Space4, { my: "md" }),
|
7514
7524
|
children
|
7515
7525
|
] }));
|
7516
7526
|
}
|
7517
7527
|
|
7518
7528
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
7519
|
-
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as
|
7529
|
+
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group15, Modal as Modal11 } from "@mantine/core";
|
7520
7530
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
7521
7531
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
7522
|
-
import { jsx as
|
7532
|
+
import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
7523
7533
|
function MyDataTableSelect(_a) {
|
7524
7534
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
7525
7535
|
const disc = useDisclosure11(false);
|
7526
7536
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
7527
|
-
return /* @__PURE__ */
|
7528
|
-
/* @__PURE__ */
|
7537
|
+
return /* @__PURE__ */ jsxs33(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
7538
|
+
/* @__PURE__ */ jsx58(
|
7529
7539
|
MyDataTable,
|
7530
7540
|
__spreadValues({
|
7531
7541
|
renderTopToolbarCustomActions: ({ table }) => {
|
7532
|
-
return /* @__PURE__ */
|
7542
|
+
return /* @__PURE__ */ jsxs33(Group15, { children: [
|
7533
7543
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
7534
|
-
/* @__PURE__ */
|
7544
|
+
/* @__PURE__ */ jsx58(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
7535
7545
|
] });
|
7536
7546
|
},
|
7537
7547
|
columns,
|
7538
7548
|
data: listState[0],
|
7539
7549
|
renderRowActions: ({ row }) => {
|
7540
|
-
return /* @__PURE__ */
|
7550
|
+
return /* @__PURE__ */ jsx58(MyCenterFull, { children: /* @__PURE__ */ jsx58(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx58(IconX2, {}) }) });
|
7541
7551
|
}
|
7542
7552
|
}, rest)
|
7543
7553
|
),
|
7544
|
-
/* @__PURE__ */
|
7554
|
+
/* @__PURE__ */ jsx58(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx58(
|
7545
7555
|
MyDataTable,
|
7546
7556
|
__spreadValues({
|
7547
7557
|
renderTopToolbarCustomActions: ({ table }) => {
|
7548
|
-
return /* @__PURE__ */
|
7558
|
+
return /* @__PURE__ */ jsx58(Button15, { onClick: () => {
|
7549
7559
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
7550
7560
|
disc[1].close();
|
7551
7561
|
}, children: "Ch\u1ECDn" });
|
@@ -7561,7 +7571,7 @@ function MyDataTableSelect(_a) {
|
|
7561
7571
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
7562
7572
|
import { Select as Select5 } from "@mantine/core";
|
7563
7573
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
7564
|
-
import { jsx as
|
7574
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
7565
7575
|
function MySelectAPIGet(_a) {
|
7566
7576
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
7567
7577
|
var _a2;
|
@@ -7580,7 +7590,7 @@ function MySelectAPIGet(_a) {
|
|
7580
7590
|
label: `${item.code}-${item.name}`
|
7581
7591
|
};
|
7582
7592
|
});
|
7583
|
-
return /* @__PURE__ */
|
7593
|
+
return /* @__PURE__ */ jsx59(
|
7584
7594
|
Select5,
|
7585
7595
|
__spreadValues({
|
7586
7596
|
label,
|
@@ -7595,7 +7605,7 @@ import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as Schedul
|
|
7595
7605
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
7596
7606
|
import { useState as useState8 } from "react";
|
7597
7607
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
7598
|
-
import { jsx as
|
7608
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
7599
7609
|
function MyScheduleX({
|
7600
7610
|
values,
|
7601
7611
|
timeGridEvent,
|
@@ -7620,7 +7630,7 @@ function MyScheduleX({
|
|
7620
7630
|
events: values,
|
7621
7631
|
plugins: [eventsService, eventModalPlugin]
|
7622
7632
|
});
|
7623
|
-
return /* @__PURE__ */
|
7633
|
+
return /* @__PURE__ */ jsx60(
|
7624
7634
|
ScheduleXCalendar2,
|
7625
7635
|
{
|
7626
7636
|
calendarApp: calendar,
|
@@ -7634,9 +7644,9 @@ function MyScheduleX({
|
|
7634
7644
|
|
7635
7645
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
7636
7646
|
import { Skeleton } from "@mantine/core";
|
7637
|
-
import { jsx as
|
7647
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
7638
7648
|
function MySkeletonTable({ h: h4 = 500 }) {
|
7639
|
-
return /* @__PURE__ */
|
7649
|
+
return /* @__PURE__ */ jsx61(Skeleton, { h: h4 });
|
7640
7650
|
}
|
7641
7651
|
|
7642
7652
|
// src/constants/object/documentTypes.ts
|
@@ -7651,7 +7661,7 @@ var OBJECT_DOCUMENT_TYPES = {
|
|
7651
7661
|
|
7652
7662
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
7653
7663
|
import { useForm as useForm2 } from "@mantine/form";
|
7654
|
-
import { jsx as
|
7664
|
+
import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
|
7655
7665
|
function F_core12196_Create({ FormTypeId }) {
|
7656
7666
|
const form = useForm2({
|
7657
7667
|
mode: "uncontrolled",
|
@@ -7663,7 +7673,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7663
7673
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
7664
7674
|
}
|
7665
7675
|
});
|
7666
|
-
return /* @__PURE__ */
|
7676
|
+
return /* @__PURE__ */ jsxs34(
|
7667
7677
|
MyButtonCreate,
|
7668
7678
|
{
|
7669
7679
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -7675,28 +7685,28 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7675
7685
|
}));
|
7676
7686
|
},
|
7677
7687
|
children: [
|
7678
|
-
/* @__PURE__ */
|
7688
|
+
/* @__PURE__ */ jsx62(
|
7679
7689
|
MyTextInput,
|
7680
7690
|
__spreadValues({
|
7681
7691
|
withAsterisk: true,
|
7682
7692
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
7683
7693
|
}, form.getInputProps("decisionCode"))
|
7684
7694
|
),
|
7685
|
-
/* @__PURE__ */
|
7695
|
+
/* @__PURE__ */ jsx62(
|
7686
7696
|
MyDateInput,
|
7687
7697
|
__spreadValues({
|
7688
7698
|
withAsterisk: true,
|
7689
7699
|
label: "Ng\xE0y ban h\xE0nh"
|
7690
7700
|
}, form.getInputProps("promulgateDate"))
|
7691
7701
|
),
|
7692
|
-
/* @__PURE__ */
|
7702
|
+
/* @__PURE__ */ jsx62(
|
7693
7703
|
MyTextInput,
|
7694
7704
|
__spreadValues({
|
7695
7705
|
withAsterisk: true,
|
7696
7706
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
7697
7707
|
}, form.getInputProps("name"))
|
7698
7708
|
),
|
7699
|
-
/* @__PURE__ */
|
7709
|
+
/* @__PURE__ */ jsx62(
|
7700
7710
|
F_core18256_Select,
|
7701
7711
|
__spreadValues({
|
7702
7712
|
withAsterisk: true,
|
@@ -7704,14 +7714,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7704
7714
|
documentTypeId: FormTypeId
|
7705
7715
|
}, form.getInputProps("documentAttributeId"))
|
7706
7716
|
),
|
7707
|
-
/* @__PURE__ */
|
7717
|
+
/* @__PURE__ */ jsx62(
|
7708
7718
|
MyFileInput,
|
7709
7719
|
__spreadValues({
|
7710
7720
|
withAsterisk: true,
|
7711
7721
|
label: "V\u0103n b\u1EA3n"
|
7712
7722
|
}, form.getInputProps("file"))
|
7713
7723
|
),
|
7714
|
-
/* @__PURE__ */
|
7724
|
+
/* @__PURE__ */ jsx62(
|
7715
7725
|
MyNumberInput,
|
7716
7726
|
__spreadValues({
|
7717
7727
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -7724,14 +7734,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7724
7734
|
|
7725
7735
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
7726
7736
|
import { Paper as Paper7, Space as Space5 } from "@mantine/core";
|
7727
|
-
import { jsx as
|
7737
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
7728
7738
|
function F_core12196({
|
7729
7739
|
FormTypeId
|
7730
7740
|
}) {
|
7731
|
-
return /* @__PURE__ */
|
7732
|
-
/* @__PURE__ */
|
7733
|
-
/* @__PURE__ */
|
7734
|
-
/* @__PURE__ */
|
7741
|
+
return /* @__PURE__ */ jsxs35(Paper7, { p: "md", children: [
|
7742
|
+
/* @__PURE__ */ jsx63(MyFlexEnd, { children: /* @__PURE__ */ jsx63(F_core12196_Create, { FormTypeId }) }),
|
7743
|
+
/* @__PURE__ */ jsx63(Space5, {}),
|
7744
|
+
/* @__PURE__ */ jsx63(F_core12196_Read, { FormTypeId })
|
7735
7745
|
] });
|
7736
7746
|
}
|
7737
7747
|
|
@@ -7742,7 +7752,7 @@ import { useMemo as useMemo4 } from "react";
|
|
7742
7752
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
7743
7753
|
import { FileInput as FileInput4, Textarea as Textarea2 } from "@mantine/core";
|
7744
7754
|
import { useForm as useForm3 } from "@mantine/form";
|
7745
|
-
import { jsx as
|
7755
|
+
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
7746
7756
|
function F_core16209_Create({
|
7747
7757
|
RefinementTypeId
|
7748
7758
|
}) {
|
@@ -7757,7 +7767,7 @@ function F_core16209_Create({
|
|
7757
7767
|
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"
|
7758
7768
|
}
|
7759
7769
|
});
|
7760
|
-
return /* @__PURE__ */
|
7770
|
+
return /* @__PURE__ */ jsxs36(
|
7761
7771
|
MyButtonCreate,
|
7762
7772
|
{
|
7763
7773
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -7770,43 +7780,43 @@ function F_core16209_Create({
|
|
7770
7780
|
}));
|
7771
7781
|
},
|
7772
7782
|
children: [
|
7773
|
-
/* @__PURE__ */
|
7783
|
+
/* @__PURE__ */ jsx64(
|
7774
7784
|
MyDateInput,
|
7775
7785
|
__spreadValues({
|
7776
7786
|
withAsterisk: true,
|
7777
7787
|
label: "Ng\xE0y h\u1ECDp"
|
7778
7788
|
}, form.getInputProps("meetingDate"))
|
7779
7789
|
),
|
7780
|
-
/* @__PURE__ */
|
7790
|
+
/* @__PURE__ */ jsx64(
|
7781
7791
|
MyTextInput,
|
7782
7792
|
__spreadValues({
|
7783
7793
|
withAsterisk: true,
|
7784
7794
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7785
7795
|
}, form.getInputProps("departmentName"))
|
7786
7796
|
),
|
7787
|
-
/* @__PURE__ */
|
7797
|
+
/* @__PURE__ */ jsx64(
|
7788
7798
|
MyTextInput,
|
7789
7799
|
__spreadValues({
|
7790
7800
|
withAsterisk: true,
|
7791
7801
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7792
7802
|
}, form.getInputProps("description"))
|
7793
7803
|
),
|
7794
|
-
/* @__PURE__ */
|
7795
|
-
/* @__PURE__ */
|
7804
|
+
/* @__PURE__ */ jsx64(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7805
|
+
/* @__PURE__ */ jsx64(
|
7796
7806
|
MyDateInput,
|
7797
7807
|
__spreadValues({
|
7798
7808
|
withAsterisk: true,
|
7799
7809
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7800
7810
|
}, form.getInputProps("startDate"))
|
7801
7811
|
),
|
7802
|
-
/* @__PURE__ */
|
7812
|
+
/* @__PURE__ */ jsx64(
|
7803
7813
|
MyDateInput,
|
7804
7814
|
__spreadValues({
|
7805
7815
|
withAsterisk: true,
|
7806
7816
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7807
7817
|
}, form.getInputProps("endDate"))
|
7808
7818
|
),
|
7809
|
-
/* @__PURE__ */
|
7819
|
+
/* @__PURE__ */ jsx64(
|
7810
7820
|
FileInput4,
|
7811
7821
|
__spreadValues({
|
7812
7822
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7814,19 +7824,19 @@ function F_core16209_Create({
|
|
7814
7824
|
label: "T\xE0i li\u1EC7u"
|
7815
7825
|
}, form.getInputProps("file"))
|
7816
7826
|
),
|
7817
|
-
/* @__PURE__ */
|
7827
|
+
/* @__PURE__ */ jsx64(Textarea2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7818
7828
|
]
|
7819
7829
|
}
|
7820
7830
|
);
|
7821
7831
|
}
|
7822
7832
|
|
7823
7833
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
7824
|
-
import { jsx as
|
7834
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
7825
7835
|
function F_core16209_Delete({
|
7826
7836
|
id,
|
7827
7837
|
contextData
|
7828
7838
|
}) {
|
7829
|
-
return /* @__PURE__ */
|
7839
|
+
return /* @__PURE__ */ jsx65(
|
7830
7840
|
MyActionIconDelete,
|
7831
7841
|
{
|
7832
7842
|
contextData,
|
@@ -7838,7 +7848,7 @@ function F_core16209_Delete({
|
|
7838
7848
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
7839
7849
|
import { FileInput as FileInput5, Textarea as Textarea3 } from "@mantine/core";
|
7840
7850
|
import { useForm as useForm4 } from "@mantine/form";
|
7841
|
-
import { jsx as
|
7851
|
+
import { jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
|
7842
7852
|
function F_core16209_Update({ values }) {
|
7843
7853
|
var _a;
|
7844
7854
|
const form = useForm4({
|
@@ -7861,7 +7871,7 @@ function F_core16209_Update({ values }) {
|
|
7861
7871
|
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"
|
7862
7872
|
}
|
7863
7873
|
});
|
7864
|
-
return /* @__PURE__ */
|
7874
|
+
return /* @__PURE__ */ jsxs37(
|
7865
7875
|
MyActionIconUpdate,
|
7866
7876
|
{
|
7867
7877
|
form,
|
@@ -7871,43 +7881,43 @@ function F_core16209_Update({ values }) {
|
|
7871
7881
|
}));
|
7872
7882
|
},
|
7873
7883
|
children: [
|
7874
|
-
/* @__PURE__ */
|
7884
|
+
/* @__PURE__ */ jsx66(
|
7875
7885
|
MyDateInput,
|
7876
7886
|
__spreadValues({
|
7877
7887
|
withAsterisk: true,
|
7878
7888
|
label: "Ng\xE0y h\u1ECDp"
|
7879
7889
|
}, form.getInputProps("meetingDate"))
|
7880
7890
|
),
|
7881
|
-
/* @__PURE__ */
|
7891
|
+
/* @__PURE__ */ jsx66(
|
7882
7892
|
MyTextInput,
|
7883
7893
|
__spreadValues({
|
7884
7894
|
withAsterisk: true,
|
7885
7895
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7886
7896
|
}, form.getInputProps("departmentName"))
|
7887
7897
|
),
|
7888
|
-
/* @__PURE__ */
|
7898
|
+
/* @__PURE__ */ jsx66(
|
7889
7899
|
MyTextInput,
|
7890
7900
|
__spreadValues({
|
7891
7901
|
withAsterisk: true,
|
7892
7902
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7893
7903
|
}, form.getInputProps("description"))
|
7894
7904
|
),
|
7895
|
-
/* @__PURE__ */
|
7896
|
-
/* @__PURE__ */
|
7905
|
+
/* @__PURE__ */ jsx66(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7906
|
+
/* @__PURE__ */ jsx66(
|
7897
7907
|
MyDateInput,
|
7898
7908
|
__spreadValues({
|
7899
7909
|
withAsterisk: true,
|
7900
7910
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7901
7911
|
}, form.getInputProps("startDate"))
|
7902
7912
|
),
|
7903
|
-
/* @__PURE__ */
|
7913
|
+
/* @__PURE__ */ jsx66(
|
7904
7914
|
MyDateInput,
|
7905
7915
|
__spreadValues({
|
7906
7916
|
withAsterisk: true,
|
7907
7917
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7908
7918
|
}, form.getInputProps("endDate"))
|
7909
7919
|
),
|
7910
|
-
/* @__PURE__ */
|
7920
|
+
/* @__PURE__ */ jsx66(
|
7911
7921
|
FileInput5,
|
7912
7922
|
__spreadValues({
|
7913
7923
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7915,14 +7925,14 @@ function F_core16209_Update({ values }) {
|
|
7915
7925
|
label: "T\xE0i li\u1EC7u"
|
7916
7926
|
}, form.getInputProps("file"))
|
7917
7927
|
),
|
7918
|
-
/* @__PURE__ */
|
7928
|
+
/* @__PURE__ */ jsx66(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7919
7929
|
]
|
7920
7930
|
}
|
7921
7931
|
);
|
7922
7932
|
}
|
7923
7933
|
|
7924
7934
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
7925
|
-
import { jsx as
|
7935
|
+
import { jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
|
7926
7936
|
function F_core16209({ RefinementTypeId }) {
|
7927
7937
|
const query = useQuery5({
|
7928
7938
|
queryKey: ["F_core16209_Read"],
|
@@ -7955,7 +7965,7 @@ function F_core16209({ RefinementTypeId }) {
|
|
7955
7965
|
{
|
7956
7966
|
header: "File",
|
7957
7967
|
accessorFn: (row) => {
|
7958
|
-
return /* @__PURE__ */
|
7968
|
+
return /* @__PURE__ */ jsx67(MyCenterFull, { children: /* @__PURE__ */ jsx67(MyButtonViewPDF, { id: row.id }) });
|
7959
7969
|
}
|
7960
7970
|
}
|
7961
7971
|
],
|
@@ -7963,16 +7973,16 @@ function F_core16209({ RefinementTypeId }) {
|
|
7963
7973
|
);
|
7964
7974
|
if (query.isLoading) return "Loading...";
|
7965
7975
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
7966
|
-
return /* @__PURE__ */
|
7976
|
+
return /* @__PURE__ */ jsx67(
|
7967
7977
|
MyDataTable,
|
7968
7978
|
{
|
7969
7979
|
columns,
|
7970
7980
|
data: query.data,
|
7971
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
7981
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx67(F_core16209_Create, { RefinementTypeId }),
|
7972
7982
|
renderRowActions: ({ row }) => {
|
7973
|
-
return /* @__PURE__ */
|
7974
|
-
/* @__PURE__ */
|
7975
|
-
/* @__PURE__ */
|
7983
|
+
return /* @__PURE__ */ jsxs38(MyCenterFull, { children: [
|
7984
|
+
/* @__PURE__ */ jsx67(F_core16209_Update, { values: row.original }),
|
7985
|
+
/* @__PURE__ */ jsx67(
|
7976
7986
|
F_core16209_Delete,
|
7977
7987
|
{
|
7978
7988
|
id: row.original.id,
|
@@ -7994,7 +8004,7 @@ import { useMemo as useMemo5 } from "react";
|
|
7994
8004
|
|
7995
8005
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
7996
8006
|
import { useForm as useForm5 } from "@mantine/form";
|
7997
|
-
import { jsx as
|
8007
|
+
import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
|
7998
8008
|
function F_core18256_Create({ documentType }) {
|
7999
8009
|
const form = useForm5({
|
8000
8010
|
mode: "uncontrolled",
|
@@ -8007,16 +8017,16 @@ function F_core18256_Create({ documentType }) {
|
|
8007
8017
|
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8008
8018
|
}
|
8009
8019
|
});
|
8010
|
-
return /* @__PURE__ */
|
8011
|
-
/* @__PURE__ */
|
8012
|
-
/* @__PURE__ */
|
8020
|
+
return /* @__PURE__ */ jsxs39(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
8021
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8022
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8013
8023
|
] });
|
8014
8024
|
}
|
8015
8025
|
|
8016
8026
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
8017
|
-
import { jsx as
|
8027
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
8018
8028
|
function F_core18256_Delete({ id }) {
|
8019
|
-
return /* @__PURE__ */
|
8029
|
+
return /* @__PURE__ */ jsx69(
|
8020
8030
|
MyActionIconDelete,
|
8021
8031
|
{
|
8022
8032
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
@@ -8026,19 +8036,19 @@ function F_core18256_Delete({ id }) {
|
|
8026
8036
|
|
8027
8037
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
8028
8038
|
import { useForm as useForm6 } from "@mantine/form";
|
8029
|
-
import { jsx as
|
8039
|
+
import { jsx as jsx70, jsxs as jsxs40 } from "react/jsx-runtime";
|
8030
8040
|
function F_core18256_Update({ values }) {
|
8031
8041
|
const form = useForm6({
|
8032
8042
|
initialValues: values
|
8033
8043
|
});
|
8034
|
-
return /* @__PURE__ */
|
8035
|
-
/* @__PURE__ */
|
8036
|
-
/* @__PURE__ */
|
8044
|
+
return /* @__PURE__ */ jsxs40(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
8045
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8046
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8037
8047
|
] });
|
8038
8048
|
}
|
8039
8049
|
|
8040
8050
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
8041
|
-
import { jsx as
|
8051
|
+
import { jsx as jsx71, jsxs as jsxs41 } from "react/jsx-runtime";
|
8042
8052
|
function F_core18256_Read({ documentType }) {
|
8043
8053
|
const documentAttributeQuery = useQuery6({
|
8044
8054
|
queryKey: ["F_core18256_Read", documentType],
|
@@ -8063,17 +8073,17 @@ function F_core18256_Read({ documentType }) {
|
|
8063
8073
|
);
|
8064
8074
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
8065
8075
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8066
|
-
return /* @__PURE__ */
|
8076
|
+
return /* @__PURE__ */ jsx71(
|
8067
8077
|
MyDataTable,
|
8068
8078
|
{
|
8069
8079
|
columns,
|
8070
8080
|
enableRowNumbers: true,
|
8071
8081
|
data: documentAttributeQuery.data,
|
8072
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
8082
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx71(F_core18256_Create, { documentType }),
|
8073
8083
|
renderRowActions: ({ row }) => {
|
8074
|
-
return /* @__PURE__ */
|
8075
|
-
/* @__PURE__ */
|
8076
|
-
/* @__PURE__ */
|
8084
|
+
return /* @__PURE__ */ jsxs41(MyCenterFull, { children: [
|
8085
|
+
/* @__PURE__ */ jsx71(F_core18256_Update, { values: row.original }),
|
8086
|
+
/* @__PURE__ */ jsx71(F_core18256_Delete, { id: row.original.id })
|
8077
8087
|
] });
|
8078
8088
|
}
|
8079
8089
|
}
|
@@ -8081,23 +8091,23 @@ function F_core18256_Read({ documentType }) {
|
|
8081
8091
|
}
|
8082
8092
|
|
8083
8093
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
8084
|
-
import { jsx as
|
8094
|
+
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
8085
8095
|
var tabData = [
|
8086
8096
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
8087
8097
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
8088
8098
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
8089
8099
|
];
|
8090
8100
|
function F_core18256() {
|
8091
|
-
return /* @__PURE__ */
|
8092
|
-
/* @__PURE__ */
|
8093
|
-
/* @__PURE__ */
|
8094
|
-
/* @__PURE__ */
|
8101
|
+
return /* @__PURE__ */ jsxs42(MyTab, { tabList: tabData, children: [
|
8102
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
8103
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow }) }),
|
8104
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
|
8095
8105
|
] });
|
8096
8106
|
}
|
8097
8107
|
|
8098
8108
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
8099
8109
|
import { useForm as useForm7 } from "@mantine/form";
|
8100
|
-
import { jsx as
|
8110
|
+
import { jsx as jsx73, jsxs as jsxs43 } from "react/jsx-runtime";
|
8101
8111
|
function F_core26965_Create({
|
8102
8112
|
RegulationsTypeId
|
8103
8113
|
}) {
|
@@ -8111,7 +8121,7 @@ function F_core26965_Create({
|
|
8111
8121
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8112
8122
|
}
|
8113
8123
|
});
|
8114
|
-
return /* @__PURE__ */
|
8124
|
+
return /* @__PURE__ */ jsxs43(
|
8115
8125
|
MyButtonCreate,
|
8116
8126
|
{
|
8117
8127
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8123,28 +8133,28 @@ function F_core26965_Create({
|
|
8123
8133
|
}));
|
8124
8134
|
},
|
8125
8135
|
children: [
|
8126
|
-
/* @__PURE__ */
|
8136
|
+
/* @__PURE__ */ jsx73(
|
8127
8137
|
MyTextInput,
|
8128
8138
|
__spreadValues({
|
8129
8139
|
withAsterisk: true,
|
8130
8140
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8131
8141
|
}, form.getInputProps("decisionCode"))
|
8132
8142
|
),
|
8133
|
-
/* @__PURE__ */
|
8143
|
+
/* @__PURE__ */ jsx73(
|
8134
8144
|
MyDateInput,
|
8135
8145
|
__spreadValues({
|
8136
8146
|
withAsterisk: true,
|
8137
8147
|
label: "Ng\xE0y ban h\xE0nh"
|
8138
8148
|
}, form.getInputProps("promulgateDate"))
|
8139
8149
|
),
|
8140
|
-
/* @__PURE__ */
|
8150
|
+
/* @__PURE__ */ jsx73(
|
8141
8151
|
MyTextInput,
|
8142
8152
|
__spreadValues({
|
8143
8153
|
withAsterisk: true,
|
8144
8154
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8145
8155
|
}, form.getInputProps("name"))
|
8146
8156
|
),
|
8147
|
-
/* @__PURE__ */
|
8157
|
+
/* @__PURE__ */ jsx73(
|
8148
8158
|
F_core18256_Select,
|
8149
8159
|
__spreadValues({
|
8150
8160
|
withAsterisk: true,
|
@@ -8152,14 +8162,14 @@ function F_core26965_Create({
|
|
8152
8162
|
documentTypeId: RegulationsTypeId
|
8153
8163
|
}, form.getInputProps("documentAttributeId"))
|
8154
8164
|
),
|
8155
|
-
/* @__PURE__ */
|
8165
|
+
/* @__PURE__ */ jsx73(
|
8156
8166
|
MyFileInput,
|
8157
8167
|
__spreadValues({
|
8158
8168
|
withAsterisk: true,
|
8159
8169
|
label: "V\u0103n b\u1EA3n"
|
8160
8170
|
}, form.getInputProps("file"))
|
8161
8171
|
),
|
8162
|
-
/* @__PURE__ */
|
8172
|
+
/* @__PURE__ */ jsx73(
|
8163
8173
|
MyNumberInput,
|
8164
8174
|
__spreadValues({
|
8165
8175
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8176,12 +8186,12 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
8176
8186
|
import { useMemo as useMemo6 } from "react";
|
8177
8187
|
|
8178
8188
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
8179
|
-
import { jsx as
|
8189
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
8180
8190
|
function F_core26965_Delete({
|
8181
8191
|
id,
|
8182
8192
|
contextData
|
8183
8193
|
}) {
|
8184
|
-
return /* @__PURE__ */
|
8194
|
+
return /* @__PURE__ */ jsx74(
|
8185
8195
|
MyActionIconDelete,
|
8186
8196
|
{
|
8187
8197
|
contextData,
|
@@ -8192,7 +8202,7 @@ function F_core26965_Delete({
|
|
8192
8202
|
|
8193
8203
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
8194
8204
|
import { useForm as useForm8 } from "@mantine/form";
|
8195
|
-
import { jsx as
|
8205
|
+
import { jsx as jsx75, jsxs as jsxs44 } from "react/jsx-runtime";
|
8196
8206
|
function F_core26965_Update({
|
8197
8207
|
values,
|
8198
8208
|
RegulationsTypeId
|
@@ -8214,7 +8224,7 @@ function F_core26965_Update({
|
|
8214
8224
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8215
8225
|
}
|
8216
8226
|
});
|
8217
|
-
return /* @__PURE__ */
|
8227
|
+
return /* @__PURE__ */ jsxs44(
|
8218
8228
|
MyActionIconUpdate,
|
8219
8229
|
{
|
8220
8230
|
form,
|
@@ -8224,28 +8234,28 @@ function F_core26965_Update({
|
|
8224
8234
|
}));
|
8225
8235
|
},
|
8226
8236
|
children: [
|
8227
|
-
/* @__PURE__ */
|
8237
|
+
/* @__PURE__ */ jsx75(
|
8228
8238
|
MyTextInput,
|
8229
8239
|
__spreadValues({
|
8230
8240
|
withAsterisk: true,
|
8231
8241
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8232
8242
|
}, form.getInputProps("decisionCode"))
|
8233
8243
|
),
|
8234
|
-
/* @__PURE__ */
|
8244
|
+
/* @__PURE__ */ jsx75(
|
8235
8245
|
MyDateInput,
|
8236
8246
|
__spreadValues({
|
8237
8247
|
withAsterisk: true,
|
8238
8248
|
label: "Ng\xE0y ban h\xE0nh"
|
8239
8249
|
}, form.getInputProps("promulgateDate"))
|
8240
8250
|
),
|
8241
|
-
/* @__PURE__ */
|
8251
|
+
/* @__PURE__ */ jsx75(
|
8242
8252
|
MyTextInput,
|
8243
8253
|
__spreadValues({
|
8244
8254
|
withAsterisk: true,
|
8245
8255
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8246
8256
|
}, form.getInputProps("name"))
|
8247
8257
|
),
|
8248
|
-
/* @__PURE__ */
|
8258
|
+
/* @__PURE__ */ jsx75(
|
8249
8259
|
F_core18256_Select,
|
8250
8260
|
__spreadValues({
|
8251
8261
|
withAsterisk: true,
|
@@ -8253,14 +8263,14 @@ function F_core26965_Update({
|
|
8253
8263
|
documentTypeId: RegulationsTypeId
|
8254
8264
|
}, form.getInputProps("documentAttributeId"))
|
8255
8265
|
),
|
8256
|
-
/* @__PURE__ */
|
8266
|
+
/* @__PURE__ */ jsx75(
|
8257
8267
|
MyFileInput,
|
8258
8268
|
__spreadValues({
|
8259
8269
|
withAsterisk: true,
|
8260
8270
|
label: "V\u0103n b\u1EA3n"
|
8261
8271
|
}, form.getInputProps("file"))
|
8262
8272
|
),
|
8263
|
-
/* @__PURE__ */
|
8273
|
+
/* @__PURE__ */ jsx75(
|
8264
8274
|
MyNumberInput,
|
8265
8275
|
__spreadValues({
|
8266
8276
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8272,7 +8282,7 @@ function F_core26965_Update({
|
|
8272
8282
|
}
|
8273
8283
|
|
8274
8284
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
8275
|
-
import { jsx as
|
8285
|
+
import { jsx as jsx76, jsxs as jsxs45 } from "react/jsx-runtime";
|
8276
8286
|
function F_core26965_Read({
|
8277
8287
|
RegulationsTypeId
|
8278
8288
|
}) {
|
@@ -8290,8 +8300,8 @@ function F_core26965_Read({
|
|
8290
8300
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8291
8301
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8292
8302
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8293
|
-
return /* @__PURE__ */
|
8294
|
-
return /* @__PURE__ */
|
8303
|
+
return /* @__PURE__ */ jsx76(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8304
|
+
return /* @__PURE__ */ jsx76(MyFlexColumn, { children: /* @__PURE__ */ jsx76(
|
8295
8305
|
Accordion2,
|
8296
8306
|
{
|
8297
8307
|
variant: "contained",
|
@@ -8302,7 +8312,7 @@ function F_core26965_Read({
|
|
8302
8312
|
}
|
8303
8313
|
),
|
8304
8314
|
multiple: true,
|
8305
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8315
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx76(
|
8306
8316
|
SubRead2,
|
8307
8317
|
{
|
8308
8318
|
name: item.name,
|
@@ -8345,7 +8355,7 @@ function SubRead2({
|
|
8345
8355
|
{
|
8346
8356
|
header: "File",
|
8347
8357
|
accessorFn: (row) => {
|
8348
|
-
return /* @__PURE__ */
|
8358
|
+
return /* @__PURE__ */ jsx76(MyCenterFull, { children: /* @__PURE__ */ jsx76(MyButtonViewPDF, { id: row.id }) });
|
8349
8359
|
}
|
8350
8360
|
}
|
8351
8361
|
],
|
@@ -8353,22 +8363,22 @@ function SubRead2({
|
|
8353
8363
|
);
|
8354
8364
|
if (documentQuery.isLoading) return "Loading...";
|
8355
8365
|
if (documentQuery.isError) return "Error!";
|
8356
|
-
return /* @__PURE__ */
|
8357
|
-
/* @__PURE__ */
|
8358
|
-
/* @__PURE__ */
|
8366
|
+
return /* @__PURE__ */ jsxs45(Accordion2.Item, { value: documentType.toString(), children: [
|
8367
|
+
/* @__PURE__ */ jsx76(Accordion2.Control, { children: name }),
|
8368
|
+
/* @__PURE__ */ jsx76(Accordion2.Panel, { children: /* @__PURE__ */ jsx76(
|
8359
8369
|
MyDataTable,
|
8360
8370
|
{
|
8361
8371
|
columns,
|
8362
8372
|
data: documentQuery.data,
|
8363
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8364
|
-
/* @__PURE__ */
|
8373
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs45(MyCenterFull, { children: [
|
8374
|
+
/* @__PURE__ */ jsx76(
|
8365
8375
|
F_core26965_Update,
|
8366
8376
|
{
|
8367
8377
|
RegulationsTypeId,
|
8368
8378
|
values: row.original
|
8369
8379
|
}
|
8370
8380
|
),
|
8371
|
-
/* @__PURE__ */
|
8381
|
+
/* @__PURE__ */ jsx76(
|
8372
8382
|
F_core26965_Delete,
|
8373
8383
|
{
|
8374
8384
|
id: row.original.id,
|
@@ -8383,18 +8393,18 @@ function SubRead2({
|
|
8383
8393
|
|
8384
8394
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
8385
8395
|
import { Paper as Paper8, Space as Space6 } from "@mantine/core";
|
8386
|
-
import { jsx as
|
8396
|
+
import { jsx as jsx77, jsxs as jsxs46 } from "react/jsx-runtime";
|
8387
8397
|
function F_core26965({ RegulationsTypeId }) {
|
8388
|
-
return /* @__PURE__ */
|
8389
|
-
/* @__PURE__ */
|
8390
|
-
/* @__PURE__ */
|
8391
|
-
/* @__PURE__ */
|
8398
|
+
return /* @__PURE__ */ jsxs46(Paper8, { p: "md", children: [
|
8399
|
+
/* @__PURE__ */ jsx77(MyFlexEnd, { children: /* @__PURE__ */ jsx77(F_core26965_Create, { RegulationsTypeId }) }),
|
8400
|
+
/* @__PURE__ */ jsx77(Space6, {}),
|
8401
|
+
/* @__PURE__ */ jsx77(F_core26965_Read, { RegulationsTypeId })
|
8392
8402
|
] });
|
8393
8403
|
}
|
8394
8404
|
|
8395
8405
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
8396
8406
|
import { useForm as useForm9 } from "@mantine/form";
|
8397
|
-
import { jsx as
|
8407
|
+
import { jsx as jsx78, jsxs as jsxs47 } from "react/jsx-runtime";
|
8398
8408
|
function F_core27311_Create({
|
8399
8409
|
WorkflowTypeId
|
8400
8410
|
}) {
|
@@ -8408,7 +8418,7 @@ function F_core27311_Create({
|
|
8408
8418
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8409
8419
|
}
|
8410
8420
|
});
|
8411
|
-
return /* @__PURE__ */
|
8421
|
+
return /* @__PURE__ */ jsxs47(
|
8412
8422
|
MyButtonCreate,
|
8413
8423
|
{
|
8414
8424
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8420,28 +8430,28 @@ function F_core27311_Create({
|
|
8420
8430
|
}));
|
8421
8431
|
},
|
8422
8432
|
children: [
|
8423
|
-
/* @__PURE__ */
|
8433
|
+
/* @__PURE__ */ jsx78(
|
8424
8434
|
MyTextInput,
|
8425
8435
|
__spreadValues({
|
8426
8436
|
withAsterisk: true,
|
8427
8437
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8428
8438
|
}, form.getInputProps("decisionCode"))
|
8429
8439
|
),
|
8430
|
-
/* @__PURE__ */
|
8440
|
+
/* @__PURE__ */ jsx78(
|
8431
8441
|
MyDateInput,
|
8432
8442
|
__spreadValues({
|
8433
8443
|
withAsterisk: true,
|
8434
8444
|
label: "Ng\xE0y ban h\xE0nh"
|
8435
8445
|
}, form.getInputProps("promulgateDate"))
|
8436
8446
|
),
|
8437
|
-
/* @__PURE__ */
|
8447
|
+
/* @__PURE__ */ jsx78(
|
8438
8448
|
MyTextInput,
|
8439
8449
|
__spreadValues({
|
8440
8450
|
withAsterisk: true,
|
8441
8451
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8442
8452
|
}, form.getInputProps("name"))
|
8443
8453
|
),
|
8444
|
-
/* @__PURE__ */
|
8454
|
+
/* @__PURE__ */ jsx78(
|
8445
8455
|
F_core18256_Select,
|
8446
8456
|
__spreadValues({
|
8447
8457
|
withAsterisk: true,
|
@@ -8449,14 +8459,14 @@ function F_core27311_Create({
|
|
8449
8459
|
documentTypeId: WorkflowTypeId
|
8450
8460
|
}, form.getInputProps("documentAttributeId"))
|
8451
8461
|
),
|
8452
|
-
/* @__PURE__ */
|
8462
|
+
/* @__PURE__ */ jsx78(
|
8453
8463
|
MyFileInput,
|
8454
8464
|
__spreadValues({
|
8455
8465
|
withAsterisk: true,
|
8456
8466
|
label: "V\u0103n b\u1EA3n"
|
8457
8467
|
}, form.getInputProps("file"))
|
8458
8468
|
),
|
8459
|
-
/* @__PURE__ */
|
8469
|
+
/* @__PURE__ */ jsx78(
|
8460
8470
|
MyNumberInput,
|
8461
8471
|
__spreadValues({
|
8462
8472
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8473,12 +8483,12 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
8473
8483
|
import { useMemo as useMemo7 } from "react";
|
8474
8484
|
|
8475
8485
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
8476
|
-
import { jsx as
|
8486
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
8477
8487
|
function F_core27311_Delete({
|
8478
8488
|
id,
|
8479
8489
|
contextData
|
8480
8490
|
}) {
|
8481
|
-
return /* @__PURE__ */
|
8491
|
+
return /* @__PURE__ */ jsx79(
|
8482
8492
|
MyActionIconDelete,
|
8483
8493
|
{
|
8484
8494
|
contextData,
|
@@ -8489,7 +8499,7 @@ function F_core27311_Delete({
|
|
8489
8499
|
|
8490
8500
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
8491
8501
|
import { useForm as useForm10 } from "@mantine/form";
|
8492
|
-
import { jsx as
|
8502
|
+
import { jsx as jsx80, jsxs as jsxs48 } from "react/jsx-runtime";
|
8493
8503
|
function F_core27311_Update({
|
8494
8504
|
values,
|
8495
8505
|
WorkflowTypeId
|
@@ -8511,7 +8521,7 @@ function F_core27311_Update({
|
|
8511
8521
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8512
8522
|
}
|
8513
8523
|
});
|
8514
|
-
return /* @__PURE__ */
|
8524
|
+
return /* @__PURE__ */ jsxs48(
|
8515
8525
|
MyActionIconUpdate,
|
8516
8526
|
{
|
8517
8527
|
form,
|
@@ -8521,28 +8531,28 @@ function F_core27311_Update({
|
|
8521
8531
|
}));
|
8522
8532
|
},
|
8523
8533
|
children: [
|
8524
|
-
/* @__PURE__ */
|
8534
|
+
/* @__PURE__ */ jsx80(
|
8525
8535
|
MyTextInput,
|
8526
8536
|
__spreadValues({
|
8527
8537
|
withAsterisk: true,
|
8528
8538
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8529
8539
|
}, form.getInputProps("decisionCode"))
|
8530
8540
|
),
|
8531
|
-
/* @__PURE__ */
|
8541
|
+
/* @__PURE__ */ jsx80(
|
8532
8542
|
MyDateInput,
|
8533
8543
|
__spreadValues({
|
8534
8544
|
withAsterisk: true,
|
8535
8545
|
label: "Ng\xE0y ban h\xE0nh"
|
8536
8546
|
}, form.getInputProps("promulgateDate"))
|
8537
8547
|
),
|
8538
|
-
/* @__PURE__ */
|
8548
|
+
/* @__PURE__ */ jsx80(
|
8539
8549
|
MyTextInput,
|
8540
8550
|
__spreadValues({
|
8541
8551
|
withAsterisk: true,
|
8542
8552
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8543
8553
|
}, form.getInputProps("name"))
|
8544
8554
|
),
|
8545
|
-
/* @__PURE__ */
|
8555
|
+
/* @__PURE__ */ jsx80(
|
8546
8556
|
F_core18256_Select,
|
8547
8557
|
__spreadValues({
|
8548
8558
|
withAsterisk: true,
|
@@ -8550,14 +8560,14 @@ function F_core27311_Update({
|
|
8550
8560
|
documentTypeId: WorkflowTypeId
|
8551
8561
|
}, form.getInputProps("documentAttributeId"))
|
8552
8562
|
),
|
8553
|
-
/* @__PURE__ */
|
8563
|
+
/* @__PURE__ */ jsx80(
|
8554
8564
|
MyFileInput,
|
8555
8565
|
__spreadValues({
|
8556
8566
|
withAsterisk: true,
|
8557
8567
|
label: "V\u0103n b\u1EA3n"
|
8558
8568
|
}, form.getInputProps("file"))
|
8559
8569
|
),
|
8560
|
-
/* @__PURE__ */
|
8570
|
+
/* @__PURE__ */ jsx80(
|
8561
8571
|
MyNumberInput,
|
8562
8572
|
__spreadValues({
|
8563
8573
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8569,7 +8579,7 @@ function F_core27311_Update({
|
|
8569
8579
|
}
|
8570
8580
|
|
8571
8581
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
8572
|
-
import { jsx as
|
8582
|
+
import { jsx as jsx81, jsxs as jsxs49 } from "react/jsx-runtime";
|
8573
8583
|
function F_core27311_Read({
|
8574
8584
|
WorkflowTypeId
|
8575
8585
|
}) {
|
@@ -8587,8 +8597,8 @@ function F_core27311_Read({
|
|
8587
8597
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8588
8598
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8589
8599
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8590
|
-
return /* @__PURE__ */
|
8591
|
-
return /* @__PURE__ */
|
8600
|
+
return /* @__PURE__ */ jsx81(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8601
|
+
return /* @__PURE__ */ jsx81(MyFlexColumn, { children: /* @__PURE__ */ jsx81(
|
8592
8602
|
Accordion3,
|
8593
8603
|
{
|
8594
8604
|
variant: "contained",
|
@@ -8599,7 +8609,7 @@ function F_core27311_Read({
|
|
8599
8609
|
}
|
8600
8610
|
),
|
8601
8611
|
multiple: true,
|
8602
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8612
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx81(
|
8603
8613
|
SubRead3,
|
8604
8614
|
{
|
8605
8615
|
name: item.name,
|
@@ -8642,7 +8652,7 @@ function SubRead3({
|
|
8642
8652
|
{
|
8643
8653
|
header: "File",
|
8644
8654
|
accessorFn: (row) => {
|
8645
|
-
return /* @__PURE__ */
|
8655
|
+
return /* @__PURE__ */ jsx81(MyCenterFull, { children: /* @__PURE__ */ jsx81(MyButtonViewPDF, { id: row.id }) });
|
8646
8656
|
}
|
8647
8657
|
}
|
8648
8658
|
],
|
@@ -8650,22 +8660,22 @@ function SubRead3({
|
|
8650
8660
|
);
|
8651
8661
|
if (documentQuery.isLoading) return "Loading...";
|
8652
8662
|
if (documentQuery.isError) return "Error!";
|
8653
|
-
return /* @__PURE__ */
|
8654
|
-
/* @__PURE__ */
|
8655
|
-
/* @__PURE__ */
|
8663
|
+
return /* @__PURE__ */ jsxs49(Accordion3.Item, { value: documentType.toString(), children: [
|
8664
|
+
/* @__PURE__ */ jsx81(Accordion3.Control, { children: name }),
|
8665
|
+
/* @__PURE__ */ jsx81(Accordion3.Panel, { children: /* @__PURE__ */ jsx81(
|
8656
8666
|
MyDataTable,
|
8657
8667
|
{
|
8658
8668
|
columns,
|
8659
8669
|
data: documentQuery.data,
|
8660
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8661
|
-
/* @__PURE__ */
|
8670
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs49(MyCenterFull, { children: [
|
8671
|
+
/* @__PURE__ */ jsx81(
|
8662
8672
|
F_core27311_Update,
|
8663
8673
|
{
|
8664
8674
|
WorkflowTypeId,
|
8665
8675
|
values: row.original
|
8666
8676
|
}
|
8667
8677
|
),
|
8668
|
-
/* @__PURE__ */
|
8678
|
+
/* @__PURE__ */ jsx81(
|
8669
8679
|
F_core27311_Delete,
|
8670
8680
|
{
|
8671
8681
|
id: row.original.id,
|
@@ -8680,34 +8690,34 @@ function SubRead3({
|
|
8680
8690
|
|
8681
8691
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
8682
8692
|
import { Paper as Paper9, Space as Space7 } from "@mantine/core";
|
8683
|
-
import { jsx as
|
8693
|
+
import { jsx as jsx82, jsxs as jsxs50 } from "react/jsx-runtime";
|
8684
8694
|
function F_core27311({
|
8685
8695
|
WorkflowTypeId
|
8686
8696
|
}) {
|
8687
|
-
return /* @__PURE__ */
|
8688
|
-
/* @__PURE__ */
|
8689
|
-
/* @__PURE__ */
|
8690
|
-
/* @__PURE__ */
|
8697
|
+
return /* @__PURE__ */ jsxs50(Paper9, { p: "md", children: [
|
8698
|
+
/* @__PURE__ */ jsx82(MyFlexEnd, { children: /* @__PURE__ */ jsx82(F_core27311_Create, { WorkflowTypeId }) }),
|
8699
|
+
/* @__PURE__ */ jsx82(Space7, {}),
|
8700
|
+
/* @__PURE__ */ jsx82(F_core27311_Read, { WorkflowTypeId })
|
8691
8701
|
] });
|
8692
8702
|
}
|
8693
8703
|
|
8694
8704
|
// src/modules-features/admin/core/core35923/F_core35923.tsx
|
8695
8705
|
import { Grid } from "@mantine/core";
|
8696
|
-
import { jsx as
|
8706
|
+
import { jsx as jsx83, jsxs as jsxs51 } from "react/jsx-runtime";
|
8697
8707
|
function F_core35923() {
|
8698
|
-
return /* @__PURE__ */
|
8699
|
-
/* @__PURE__ */
|
8700
|
-
/* @__PURE__ */
|
8701
|
-
/* @__PURE__ */
|
8702
|
-
/* @__PURE__ */
|
8703
|
-
/* @__PURE__ */
|
8704
|
-
/* @__PURE__ */
|
8705
|
-
/* @__PURE__ */
|
8706
|
-
/* @__PURE__ */
|
8707
|
-
/* @__PURE__ */
|
8708
|
-
/* @__PURE__ */
|
8708
|
+
return /* @__PURE__ */ jsxs51(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
8709
|
+
/* @__PURE__ */ jsxs51(Grid, { children: [
|
8710
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "M\xE3 module", disabled: true }) }),
|
8711
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "T\xEAn module" }) }),
|
8712
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
8713
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Email" }) }),
|
8714
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
8715
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
8716
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
8717
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
8718
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
8709
8719
|
] }),
|
8710
|
-
/* @__PURE__ */
|
8720
|
+
/* @__PURE__ */ jsx83(MyFlexEnd, { children: /* @__PURE__ */ jsx83(MyButton, { crudType: "save" }) })
|
8711
8721
|
] });
|
8712
8722
|
}
|
8713
8723
|
|
@@ -8768,7 +8778,7 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
8768
8778
|
}
|
8769
8779
|
|
8770
8780
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
8771
|
-
import { jsx as
|
8781
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
8772
8782
|
function F_core38677_ReadUser() {
|
8773
8783
|
const store = useS_core83092();
|
8774
8784
|
const query = useQ_Account_GetAdminAccount();
|
@@ -8801,7 +8811,7 @@ function F_core38677_ReadUser() {
|
|
8801
8811
|
}, [query.data]);
|
8802
8812
|
if (query.isLoading) return "Loading...";
|
8803
8813
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8804
|
-
return /* @__PURE__ */
|
8814
|
+
return /* @__PURE__ */ jsx84(Container4, { fluid: true, children: /* @__PURE__ */ jsx84(
|
8805
8815
|
MyDataTable,
|
8806
8816
|
{
|
8807
8817
|
columns,
|
@@ -8837,7 +8847,7 @@ function useQ_Account_GetAdminAccount() {
|
|
8837
8847
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
8838
8848
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
8839
8849
|
import { useEffect as useEffect8, useState as useState10 } from "react";
|
8840
|
-
import { jsx as
|
8850
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
8841
8851
|
function F_core38677_Save() {
|
8842
8852
|
const store = useS_core83092();
|
8843
8853
|
const disable = useState10(false);
|
@@ -8866,7 +8876,7 @@ function F_core38677_Save() {
|
|
8866
8876
|
}
|
8867
8877
|
disable[1](false);
|
8868
8878
|
}, [store.state.rolePermissions]);
|
8869
|
-
return /* @__PURE__ */
|
8879
|
+
return /* @__PURE__ */ jsx85(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
8870
8880
|
}
|
8871
8881
|
|
8872
8882
|
// src/data/menuData.ts
|
@@ -8901,11 +8911,11 @@ var menuData = [
|
|
8901
8911
|
];
|
8902
8912
|
|
8903
8913
|
// src/modules-features/admin/core/core38677/F_core38677_ViewMenuPermissions.tsx
|
8904
|
-
import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as
|
8914
|
+
import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as Text14 } from "@mantine/core";
|
8905
8915
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
8906
8916
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
8907
8917
|
import React2, { useEffect as useEffect9, useState as useState11 } from "react";
|
8908
|
-
import { jsx as
|
8918
|
+
import { jsx as jsx86, jsxs as jsxs52 } from "react/jsx-runtime";
|
8909
8919
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
8910
8920
|
function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
8911
8921
|
var _a, _b;
|
@@ -8920,8 +8930,8 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8920
8930
|
store.setProperty("rolePermissions", query.data);
|
8921
8931
|
}, [query.data]);
|
8922
8932
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
8923
|
-
return /* @__PURE__ */
|
8924
|
-
/* @__PURE__ */
|
8933
|
+
return /* @__PURE__ */ jsx86(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs52(Table3, { children: [
|
8934
|
+
/* @__PURE__ */ jsx86(
|
8925
8935
|
Table3.Thead,
|
8926
8936
|
{
|
8927
8937
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -8932,90 +8942,90 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8932
8942
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
8933
8943
|
border: "1px solid var(--mantine-color-gray-4)"
|
8934
8944
|
},
|
8935
|
-
children: /* @__PURE__ */
|
8936
|
-
/* @__PURE__ */
|
8937
|
-
/* @__PURE__ */
|
8938
|
-
/* @__PURE__ */
|
8945
|
+
children: /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
8946
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: title }),
|
8947
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8948
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
8939
8949
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
8940
8950
|
} }),
|
8941
|
-
/* @__PURE__ */
|
8951
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8942
8952
|
"Xem",
|
8943
|
-
/* @__PURE__ */
|
8953
|
+
/* @__PURE__ */ jsx86(IconEyeUp, { color: "gray" })
|
8944
8954
|
] })
|
8945
8955
|
] }) }),
|
8946
|
-
/* @__PURE__ */
|
8947
|
-
/* @__PURE__ */
|
8956
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8957
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
8948
8958
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
8949
8959
|
} }),
|
8950
|
-
/* @__PURE__ */
|
8960
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8951
8961
|
"Th\xEAm",
|
8952
|
-
/* @__PURE__ */
|
8962
|
+
/* @__PURE__ */ jsx86(IconPlus5, { color: "blue" })
|
8953
8963
|
] })
|
8954
8964
|
] }) }),
|
8955
|
-
/* @__PURE__ */
|
8956
|
-
/* @__PURE__ */
|
8965
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8966
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
8957
8967
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
8958
8968
|
} }),
|
8959
|
-
/* @__PURE__ */
|
8969
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8960
8970
|
"S\u1EEDa",
|
8961
|
-
/* @__PURE__ */
|
8971
|
+
/* @__PURE__ */ jsx86(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
8962
8972
|
] })
|
8963
8973
|
] }) }),
|
8964
|
-
/* @__PURE__ */
|
8965
|
-
/* @__PURE__ */
|
8974
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8975
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
8966
8976
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
8967
8977
|
} }),
|
8968
|
-
/* @__PURE__ */
|
8978
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8969
8979
|
"X\xF3a",
|
8970
|
-
/* @__PURE__ */
|
8980
|
+
/* @__PURE__ */ jsx86(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
8971
8981
|
] })
|
8972
8982
|
] }) }),
|
8973
|
-
/* @__PURE__ */
|
8974
|
-
/* @__PURE__ */
|
8983
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8984
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
8975
8985
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
8976
8986
|
} }),
|
8977
|
-
/* @__PURE__ */
|
8987
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8978
8988
|
"In",
|
8979
|
-
/* @__PURE__ */
|
8989
|
+
/* @__PURE__ */ jsx86(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
8980
8990
|
] })
|
8981
8991
|
] }) }),
|
8982
|
-
/* @__PURE__ */
|
8983
|
-
/* @__PURE__ */
|
8992
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8993
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
8984
8994
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
8985
8995
|
} }),
|
8986
|
-
/* @__PURE__ */
|
8996
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8987
8997
|
"Xu\u1EA5t",
|
8988
|
-
/* @__PURE__ */
|
8998
|
+
/* @__PURE__ */ jsx86(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
8989
8999
|
] })
|
8990
9000
|
] }) })
|
8991
9001
|
] })
|
8992
9002
|
}
|
8993
9003
|
),
|
8994
|
-
/* @__PURE__ */
|
8995
|
-
if (item.links == void 0) return /* @__PURE__ */
|
8996
|
-
/* @__PURE__ */
|
8997
|
-
/* @__PURE__ */
|
8998
|
-
/* @__PURE__ */
|
8999
|
-
/* @__PURE__ */
|
9000
|
-
/* @__PURE__ */
|
9001
|
-
/* @__PURE__ */
|
9002
|
-
/* @__PURE__ */
|
9004
|
+
/* @__PURE__ */ jsx86(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) => {
|
9005
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
9006
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: item.label }),
|
9007
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9008
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9009
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9010
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9011
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9012
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) })
|
9003
9013
|
] }, idx);
|
9004
|
-
return /* @__PURE__ */
|
9005
|
-
/* @__PURE__ */
|
9014
|
+
return /* @__PURE__ */ jsxs52(React2.Fragment, { children: [
|
9015
|
+
/* @__PURE__ */ jsx86(Table3.Tr, { children: /* @__PURE__ */ jsx86(
|
9006
9016
|
Table3.Td,
|
9007
9017
|
{
|
9008
9018
|
colSpan: 7,
|
9009
9019
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
9010
|
-
children: /* @__PURE__ */
|
9020
|
+
children: /* @__PURE__ */ jsx86(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
9011
9021
|
}
|
9012
9022
|
) }, item.label),
|
9013
9023
|
item.links.map(
|
9014
9024
|
(item2, idx2) => {
|
9015
9025
|
var _a2, _b2, _c, _d, _e, _f;
|
9016
|
-
return /* @__PURE__ */
|
9017
|
-
/* @__PURE__ */
|
9018
|
-
/* @__PURE__ */
|
9026
|
+
return /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
9027
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: item2.label }),
|
9028
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9019
9029
|
Checkbox3,
|
9020
9030
|
{
|
9021
9031
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -9026,7 +9036,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9026
9036
|
}
|
9027
9037
|
}
|
9028
9038
|
) }) }),
|
9029
|
-
/* @__PURE__ */
|
9039
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9030
9040
|
Checkbox3,
|
9031
9041
|
{
|
9032
9042
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -9037,7 +9047,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9037
9047
|
}
|
9038
9048
|
}
|
9039
9049
|
) }) }),
|
9040
|
-
/* @__PURE__ */
|
9050
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9041
9051
|
Checkbox3,
|
9042
9052
|
{
|
9043
9053
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -9048,7 +9058,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9048
9058
|
}
|
9049
9059
|
}
|
9050
9060
|
) }) }),
|
9051
|
-
/* @__PURE__ */
|
9061
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9052
9062
|
Checkbox3,
|
9053
9063
|
{
|
9054
9064
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -9059,7 +9069,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9059
9069
|
}
|
9060
9070
|
}
|
9061
9071
|
) }) }),
|
9062
|
-
/* @__PURE__ */
|
9072
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9063
9073
|
Checkbox3,
|
9064
9074
|
{
|
9065
9075
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -9070,7 +9080,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9070
9080
|
}
|
9071
9081
|
}
|
9072
9082
|
) }) }),
|
9073
|
-
/* @__PURE__ */
|
9083
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9074
9084
|
Checkbox3,
|
9075
9085
|
{
|
9076
9086
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -9126,13 +9136,13 @@ function useGetUserPermission() {
|
|
9126
9136
|
}
|
9127
9137
|
|
9128
9138
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
9129
|
-
import { jsx as
|
9139
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
9130
9140
|
function F_core38677({ menuData: menuData2 }) {
|
9131
|
-
return /* @__PURE__ */
|
9132
|
-
/* @__PURE__ */
|
9133
|
-
/* @__PURE__ */
|
9134
|
-
/* @__PURE__ */
|
9135
|
-
/* @__PURE__ */
|
9141
|
+
return /* @__PURE__ */ jsxs53(Grid2, { grow: true, children: [
|
9142
|
+
/* @__PURE__ */ jsx87(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx87(F_core38677_ReadUser, {}) }),
|
9143
|
+
/* @__PURE__ */ jsx87(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs53(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
9144
|
+
/* @__PURE__ */ jsx87(ScrollArea6.Autosize, { h: "100%", children: /* @__PURE__ */ jsx87(Paper10, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx87(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
9145
|
+
/* @__PURE__ */ jsx87(F_core38677_Save, {})
|
9136
9146
|
] }) })
|
9137
9147
|
] });
|
9138
9148
|
}
|
@@ -9144,7 +9154,7 @@ import { useMemo as useMemo9 } from "react";
|
|
9144
9154
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
9145
9155
|
import { FileInput as FileInput6 } from "@mantine/core";
|
9146
9156
|
import { useForm as useForm11 } from "@mantine/form";
|
9147
|
-
import { jsx as
|
9157
|
+
import { jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
|
9148
9158
|
function F_core40207_Create({ GuidelineTypeId }) {
|
9149
9159
|
const form = useForm11({
|
9150
9160
|
mode: "uncontrolled",
|
@@ -9154,7 +9164,7 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9154
9164
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9155
9165
|
}
|
9156
9166
|
});
|
9157
|
-
return /* @__PURE__ */
|
9167
|
+
return /* @__PURE__ */ jsxs54(
|
9158
9168
|
MyButtonCreate,
|
9159
9169
|
{
|
9160
9170
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -9167,21 +9177,21 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9167
9177
|
}));
|
9168
9178
|
},
|
9169
9179
|
children: [
|
9170
|
-
/* @__PURE__ */
|
9180
|
+
/* @__PURE__ */ jsx88(
|
9171
9181
|
MyTextInput,
|
9172
9182
|
__spreadValues({
|
9173
9183
|
withAsterisk: true,
|
9174
9184
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9175
9185
|
}, form.getInputProps("code"))
|
9176
9186
|
),
|
9177
|
-
/* @__PURE__ */
|
9187
|
+
/* @__PURE__ */ jsx88(
|
9178
9188
|
MyTextInput,
|
9179
9189
|
__spreadValues({
|
9180
9190
|
withAsterisk: true,
|
9181
9191
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9182
9192
|
}, form.getInputProps("name"))
|
9183
9193
|
),
|
9184
|
-
/* @__PURE__ */
|
9194
|
+
/* @__PURE__ */ jsx88(
|
9185
9195
|
FileInput6,
|
9186
9196
|
__spreadValues({
|
9187
9197
|
withAsterisk: true,
|
@@ -9195,12 +9205,12 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9195
9205
|
}
|
9196
9206
|
|
9197
9207
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
9198
|
-
import { jsx as
|
9208
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
9199
9209
|
function F_core40207_Delete({
|
9200
9210
|
id,
|
9201
9211
|
contextData
|
9202
9212
|
}) {
|
9203
|
-
return /* @__PURE__ */
|
9213
|
+
return /* @__PURE__ */ jsx89(
|
9204
9214
|
MyActionIconDelete,
|
9205
9215
|
{
|
9206
9216
|
contextData,
|
@@ -9212,7 +9222,7 @@ function F_core40207_Delete({
|
|
9212
9222
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
9213
9223
|
import { FileInput as FileInput7 } from "@mantine/core";
|
9214
9224
|
import { useForm as useForm12 } from "@mantine/form";
|
9215
|
-
import { jsx as
|
9225
|
+
import { jsx as jsx90, jsxs as jsxs55 } from "react/jsx-runtime";
|
9216
9226
|
function F_core40207_Update({ values }) {
|
9217
9227
|
var _a;
|
9218
9228
|
const form = useForm12({
|
@@ -9229,7 +9239,7 @@ function F_core40207_Update({ values }) {
|
|
9229
9239
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9230
9240
|
}
|
9231
9241
|
});
|
9232
|
-
return /* @__PURE__ */
|
9242
|
+
return /* @__PURE__ */ jsxs55(
|
9233
9243
|
MyActionIconUpdate,
|
9234
9244
|
{
|
9235
9245
|
form,
|
@@ -9239,21 +9249,21 @@ function F_core40207_Update({ values }) {
|
|
9239
9249
|
}));
|
9240
9250
|
},
|
9241
9251
|
children: [
|
9242
|
-
/* @__PURE__ */
|
9252
|
+
/* @__PURE__ */ jsx90(
|
9243
9253
|
MyTextInput,
|
9244
9254
|
__spreadValues({
|
9245
9255
|
withAsterisk: true,
|
9246
9256
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9247
9257
|
}, form.getInputProps("code"))
|
9248
9258
|
),
|
9249
|
-
/* @__PURE__ */
|
9259
|
+
/* @__PURE__ */ jsx90(
|
9250
9260
|
MyTextInput,
|
9251
9261
|
__spreadValues({
|
9252
9262
|
withAsterisk: true,
|
9253
9263
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9254
9264
|
}, form.getInputProps("name"))
|
9255
9265
|
),
|
9256
|
-
/* @__PURE__ */
|
9266
|
+
/* @__PURE__ */ jsx90(
|
9257
9267
|
FileInput7,
|
9258
9268
|
__spreadValues({
|
9259
9269
|
withAsterisk: true,
|
@@ -9267,7 +9277,7 @@ function F_core40207_Update({ values }) {
|
|
9267
9277
|
}
|
9268
9278
|
|
9269
9279
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
9270
|
-
import { jsx as
|
9280
|
+
import { jsx as jsx91, jsxs as jsxs56 } from "react/jsx-runtime";
|
9271
9281
|
function F_core40207_Read({ GuidelineTypeId }) {
|
9272
9282
|
const query = useQuery11({
|
9273
9283
|
queryKey: ["F_core40207_Read"],
|
@@ -9292,7 +9302,7 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9292
9302
|
{
|
9293
9303
|
header: "File",
|
9294
9304
|
accessorFn: (row) => {
|
9295
|
-
return /* @__PURE__ */
|
9305
|
+
return /* @__PURE__ */ jsx91(MyCenterFull, { children: /* @__PURE__ */ jsx91(MyButtonViewPDF, { id: row.id }) });
|
9296
9306
|
}
|
9297
9307
|
}
|
9298
9308
|
],
|
@@ -9300,16 +9310,16 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9300
9310
|
);
|
9301
9311
|
if (query.isLoading) return "Loading...";
|
9302
9312
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
9303
|
-
return /* @__PURE__ */
|
9313
|
+
return /* @__PURE__ */ jsx91(
|
9304
9314
|
MyDataTable,
|
9305
9315
|
{
|
9306
9316
|
columns,
|
9307
9317
|
data: query.data,
|
9308
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9318
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx91(F_core40207_Create, { GuidelineTypeId }),
|
9309
9319
|
renderRowActions: ({ row }) => {
|
9310
|
-
return /* @__PURE__ */
|
9311
|
-
/* @__PURE__ */
|
9312
|
-
/* @__PURE__ */
|
9320
|
+
return /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
|
9321
|
+
/* @__PURE__ */ jsx91(F_core40207_Update, { values: row.original }),
|
9322
|
+
/* @__PURE__ */ jsx91(
|
9313
9323
|
F_core40207_Delete,
|
9314
9324
|
{
|
9315
9325
|
id: row.original.id,
|
@@ -9323,21 +9333,21 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9323
9333
|
}
|
9324
9334
|
|
9325
9335
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
9326
|
-
import { jsx as
|
9336
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
9327
9337
|
function F_core40207({ GuidelineTypeId }) {
|
9328
|
-
return /* @__PURE__ */
|
9338
|
+
return /* @__PURE__ */ jsx92(F_core40207_Read, { GuidelineTypeId });
|
9329
9339
|
}
|
9330
9340
|
|
9331
9341
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9332
|
-
import { Group as
|
9342
|
+
import { Group as Group16 } from "@mantine/core";
|
9333
9343
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
9334
9344
|
import { useMemo as useMemo10 } from "react";
|
9335
9345
|
|
9336
9346
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
9337
|
-
import { jsx as
|
9347
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
9338
9348
|
var ENDPOINT = "/Role/Delete";
|
9339
9349
|
function F_core47643_Delete({ values }) {
|
9340
|
-
return /* @__PURE__ */
|
9350
|
+
return /* @__PURE__ */ jsx93(
|
9341
9351
|
MyActionIconDelete,
|
9342
9352
|
{
|
9343
9353
|
contextData: values.code,
|
@@ -9348,28 +9358,28 @@ function F_core47643_Delete({ values }) {
|
|
9348
9358
|
|
9349
9359
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
9350
9360
|
import { useForm as useForm13 } from "@mantine/form";
|
9351
|
-
import { jsx as
|
9361
|
+
import { jsx as jsx94, jsxs as jsxs57 } from "react/jsx-runtime";
|
9352
9362
|
function F_core47643_Form({ values }) {
|
9353
9363
|
const form = useForm13({
|
9354
9364
|
mode: "uncontrolled",
|
9355
9365
|
initialValues: values
|
9356
9366
|
});
|
9357
|
-
if (values) return /* @__PURE__ */
|
9367
|
+
if (values) return /* @__PURE__ */ jsxs57(MyActionIconUpdate, { form, onSubmit: async () => {
|
9358
9368
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
9359
9369
|
}, children: [
|
9360
|
-
/* @__PURE__ */
|
9361
|
-
/* @__PURE__ */
|
9370
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
9371
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9362
9372
|
] });
|
9363
|
-
return /* @__PURE__ */
|
9373
|
+
return /* @__PURE__ */ jsxs57(MyButtonCreate, { form, onSubmit: async () => {
|
9364
9374
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
9365
9375
|
}, children: [
|
9366
|
-
/* @__PURE__ */
|
9367
|
-
/* @__PURE__ */
|
9376
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
9377
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9368
9378
|
] });
|
9369
9379
|
}
|
9370
9380
|
|
9371
9381
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9372
|
-
import { jsx as
|
9382
|
+
import { jsx as jsx95, jsxs as jsxs58 } from "react/jsx-runtime";
|
9373
9383
|
function F_core47643_Read() {
|
9374
9384
|
const query = useQ_core47643_GetAdminRole();
|
9375
9385
|
const columns = useMemo10(() => [
|
@@ -9384,15 +9394,15 @@ function F_core47643_Read() {
|
|
9384
9394
|
], []);
|
9385
9395
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
9386
9396
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
9387
|
-
return /* @__PURE__ */
|
9397
|
+
return /* @__PURE__ */ jsx95(
|
9388
9398
|
MyDataTable,
|
9389
9399
|
{
|
9390
9400
|
data: query.data,
|
9391
9401
|
columns,
|
9392
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9393
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9394
|
-
/* @__PURE__ */
|
9395
|
-
/* @__PURE__ */
|
9402
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx95(Group16, { children: /* @__PURE__ */ jsx95(F_core47643_Form, {}) }),
|
9403
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs58(MyCenterFull, { children: [
|
9404
|
+
/* @__PURE__ */ jsx95(F_core47643_Form, { values: row.original }),
|
9405
|
+
/* @__PURE__ */ jsx95(F_core47643_Delete, { values: row.original })
|
9396
9406
|
] })
|
9397
9407
|
}
|
9398
9408
|
);
|
@@ -9409,9 +9419,9 @@ function useQ_core47643_GetAdminRole() {
|
|
9409
9419
|
}
|
9410
9420
|
|
9411
9421
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
9412
|
-
import { jsx as
|
9422
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
9413
9423
|
function F_core47643() {
|
9414
|
-
return /* @__PURE__ */
|
9424
|
+
return /* @__PURE__ */ jsx96(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx96(F_core47643_Read, {}) });
|
9415
9425
|
}
|
9416
9426
|
|
9417
9427
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
@@ -9435,7 +9445,7 @@ function useS_core60524() {
|
|
9435
9445
|
}
|
9436
9446
|
|
9437
9447
|
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
9438
|
-
import { jsx as
|
9448
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
9439
9449
|
function F_core60524_Save({
|
9440
9450
|
form
|
9441
9451
|
}) {
|
@@ -9469,7 +9479,7 @@ function F_core60524_Save({
|
|
9469
9479
|
}
|
9470
9480
|
});
|
9471
9481
|
}
|
9472
|
-
return /* @__PURE__ */
|
9482
|
+
return /* @__PURE__ */ jsx97(
|
9473
9483
|
MyButton,
|
9474
9484
|
{
|
9475
9485
|
disabled: !form.isDirty(),
|
@@ -9480,7 +9490,7 @@ function F_core60524_Save({
|
|
9480
9490
|
}
|
9481
9491
|
|
9482
9492
|
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
9483
|
-
import { jsx as
|
9493
|
+
import { jsx as jsx98, jsxs as jsxs59 } from "react/jsx-runtime";
|
9484
9494
|
function F_core60524_Form() {
|
9485
9495
|
const query = useQ_AQ_GetAQModule();
|
9486
9496
|
const form = useForm14({
|
@@ -9511,14 +9521,14 @@ function F_core60524_Form() {
|
|
9511
9521
|
form.setInitialValues(values);
|
9512
9522
|
form.setValues(values);
|
9513
9523
|
}, [query.data]);
|
9514
|
-
return /* @__PURE__ */
|
9515
|
-
/* @__PURE__ */
|
9516
|
-
/* @__PURE__ */
|
9517
|
-
/* @__PURE__ */
|
9518
|
-
/* @__PURE__ */
|
9519
|
-
/* @__PURE__ */
|
9520
|
-
/* @__PURE__ */
|
9521
|
-
/* @__PURE__ */
|
9524
|
+
return /* @__PURE__ */ jsxs59(Paper11, { p: "md", children: [
|
9525
|
+
/* @__PURE__ */ jsxs59(Grid3, { children: [
|
9526
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
9527
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
9528
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
9529
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
9530
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
9531
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9522
9532
|
MyDateInput,
|
9523
9533
|
{
|
9524
9534
|
value: form.getValues().registrationDate,
|
@@ -9526,7 +9536,7 @@ function F_core60524_Form() {
|
|
9526
9536
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
9527
9537
|
}
|
9528
9538
|
) }),
|
9529
|
-
/* @__PURE__ */
|
9539
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9530
9540
|
MyDateInput,
|
9531
9541
|
{
|
9532
9542
|
value: form.getValues().limiteDate,
|
@@ -9534,7 +9544,7 @@ function F_core60524_Form() {
|
|
9534
9544
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
9535
9545
|
}
|
9536
9546
|
) }),
|
9537
|
-
/* @__PURE__ */
|
9547
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9538
9548
|
MyFileInput,
|
9539
9549
|
{
|
9540
9550
|
accept: "image/png,image/jpeg",
|
@@ -9546,7 +9556,7 @@ function F_core60524_Form() {
|
|
9546
9556
|
}
|
9547
9557
|
}
|
9548
9558
|
) }),
|
9549
|
-
/* @__PURE__ */
|
9559
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9550
9560
|
MyFileInput,
|
9551
9561
|
{
|
9552
9562
|
accept: "image/png,image/jpeg",
|
@@ -9559,18 +9569,18 @@ function F_core60524_Form() {
|
|
9559
9569
|
}
|
9560
9570
|
) })
|
9561
9571
|
] }),
|
9562
|
-
/* @__PURE__ */
|
9572
|
+
/* @__PURE__ */ jsx98(MyFlexEnd, { children: /* @__PURE__ */ jsx98(F_core60524_Save, { form }) })
|
9563
9573
|
] });
|
9564
9574
|
}
|
9565
9575
|
|
9566
9576
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
9567
|
-
import { jsx as
|
9577
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
9568
9578
|
function F_core60524({ AQModuleId }) {
|
9569
9579
|
const store = useS_core60524();
|
9570
9580
|
useEffect11(() => {
|
9571
9581
|
store.setProperty("AQModuleId", AQModuleId);
|
9572
9582
|
}, []);
|
9573
|
-
return /* @__PURE__ */
|
9583
|
+
return /* @__PURE__ */ jsx99(F_core60524_Form, {});
|
9574
9584
|
}
|
9575
9585
|
|
9576
9586
|
// src/constants/enum/ENUM_EMAILCONFIG.ts
|
@@ -9589,7 +9599,7 @@ import { useMemo as useMemo11 } from "react";
|
|
9589
9599
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
9590
9600
|
import { PasswordInput } from "@mantine/core";
|
9591
9601
|
import { useForm as useForm15 } from "@mantine/form";
|
9592
|
-
import { jsx as
|
9602
|
+
import { jsx as jsx100, jsxs as jsxs60 } from "react/jsx-runtime";
|
9593
9603
|
function F_core64229_Form({ values }) {
|
9594
9604
|
const form = useForm15({
|
9595
9605
|
mode: "uncontrolled",
|
@@ -9615,27 +9625,27 @@ function F_core64229_Form({ values }) {
|
|
9615
9625
|
"password": formValues.password
|
9616
9626
|
});
|
9617
9627
|
}
|
9618
|
-
if (values) return /* @__PURE__ */
|
9628
|
+
if (values) return /* @__PURE__ */ jsx100(
|
9619
9629
|
MyActionIconUpdate,
|
9620
9630
|
{
|
9621
9631
|
form,
|
9622
9632
|
onSubmit: handleSubmit,
|
9623
|
-
children: /* @__PURE__ */
|
9633
|
+
children: /* @__PURE__ */ jsx100(FormInput, { form })
|
9624
9634
|
}
|
9625
9635
|
);
|
9626
|
-
return /* @__PURE__ */
|
9636
|
+
return /* @__PURE__ */ jsx100(
|
9627
9637
|
MyButtonCreate,
|
9628
9638
|
{
|
9629
9639
|
form,
|
9630
9640
|
onSubmit: handleSubmit,
|
9631
|
-
children: /* @__PURE__ */
|
9641
|
+
children: /* @__PURE__ */ jsx100(FormInput, { form })
|
9632
9642
|
}
|
9633
9643
|
);
|
9634
9644
|
}
|
9635
9645
|
function FormInput({ form }) {
|
9636
9646
|
var _a, _b;
|
9637
|
-
return /* @__PURE__ */
|
9638
|
-
/* @__PURE__ */
|
9647
|
+
return /* @__PURE__ */ jsxs60(MyFlexColumn, { children: [
|
9648
|
+
/* @__PURE__ */ jsx100(
|
9639
9649
|
MySelect,
|
9640
9650
|
__spreadProps(__spreadValues({
|
9641
9651
|
label: "Ph\xE2n h\u1EC7",
|
@@ -9644,25 +9654,25 @@ function FormInput({ form }) {
|
|
9644
9654
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
9645
9655
|
})
|
9646
9656
|
),
|
9647
|
-
/* @__PURE__ */
|
9657
|
+
/* @__PURE__ */ jsx100(
|
9648
9658
|
MyTextInput,
|
9649
9659
|
__spreadValues({
|
9650
9660
|
label: "Host mail server"
|
9651
9661
|
}, form.getInputProps("hostMailServer"))
|
9652
9662
|
),
|
9653
|
-
/* @__PURE__ */
|
9663
|
+
/* @__PURE__ */ jsx100(
|
9654
9664
|
MyNumberInput,
|
9655
9665
|
__spreadValues({
|
9656
9666
|
label: "Outgoing port"
|
9657
9667
|
}, form.getInputProps("outgoingPort"))
|
9658
9668
|
),
|
9659
|
-
/* @__PURE__ */
|
9669
|
+
/* @__PURE__ */ jsx100(
|
9660
9670
|
MyNumberInput,
|
9661
9671
|
__spreadValues({
|
9662
9672
|
label: "Incoming port"
|
9663
9673
|
}, form.getInputProps("incomingPort"))
|
9664
9674
|
),
|
9665
|
-
/* @__PURE__ */
|
9675
|
+
/* @__PURE__ */ jsx100(
|
9666
9676
|
MySelect,
|
9667
9677
|
{
|
9668
9678
|
label: "SSL",
|
@@ -9671,13 +9681,13 @@ function FormInput({ form }) {
|
|
9671
9681
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
9672
9682
|
}
|
9673
9683
|
),
|
9674
|
-
/* @__PURE__ */
|
9684
|
+
/* @__PURE__ */ jsx100(
|
9675
9685
|
MyTextInput,
|
9676
9686
|
__spreadValues({
|
9677
9687
|
label: "Username"
|
9678
9688
|
}, form.getInputProps("userName"))
|
9679
9689
|
),
|
9680
|
-
/* @__PURE__ */
|
9690
|
+
/* @__PURE__ */ jsx100(
|
9681
9691
|
PasswordInput,
|
9682
9692
|
__spreadValues({
|
9683
9693
|
label: "Password",
|
@@ -9688,9 +9698,9 @@ function FormInput({ form }) {
|
|
9688
9698
|
}
|
9689
9699
|
|
9690
9700
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
9691
|
-
import { jsx as
|
9701
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
9692
9702
|
function F_core64229_Delete({ values }) {
|
9693
|
-
return /* @__PURE__ */
|
9703
|
+
return /* @__PURE__ */ jsx101(
|
9694
9704
|
MyActionIconDelete,
|
9695
9705
|
{
|
9696
9706
|
contextData: values == null ? void 0 : values.code,
|
@@ -9704,7 +9714,7 @@ function F_core64229_Delete({ values }) {
|
|
9704
9714
|
}
|
9705
9715
|
|
9706
9716
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
9707
|
-
import { jsx as
|
9717
|
+
import { jsx as jsx102, jsxs as jsxs61 } from "react/jsx-runtime";
|
9708
9718
|
function F_core64229_Read() {
|
9709
9719
|
const query = useQuery13({
|
9710
9720
|
queryKey: ["F_core64229_Read"],
|
@@ -9749,39 +9759,39 @@ function F_core64229_Read() {
|
|
9749
9759
|
}
|
9750
9760
|
], []);
|
9751
9761
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
9752
|
-
return /* @__PURE__ */
|
9762
|
+
return /* @__PURE__ */ jsx102(
|
9753
9763
|
MyDataTable,
|
9754
9764
|
{
|
9755
9765
|
columns,
|
9756
9766
|
data: query.data,
|
9757
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9758
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9759
|
-
/* @__PURE__ */
|
9760
|
-
/* @__PURE__ */
|
9767
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx102(F_core64229_Form, {}),
|
9768
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs61(MyCenterFull, { children: [
|
9769
|
+
/* @__PURE__ */ jsx102(F_core64229_Form, { values: row.original }),
|
9770
|
+
/* @__PURE__ */ jsx102(F_core64229_Delete, { values: row.original })
|
9761
9771
|
] })
|
9762
9772
|
}
|
9763
9773
|
);
|
9764
9774
|
}
|
9765
9775
|
|
9766
9776
|
// src/modules-features/admin/core/core64229/F_core64229.tsx
|
9767
|
-
import { jsx as
|
9777
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
9768
9778
|
function F_core64229() {
|
9769
|
-
return /* @__PURE__ */
|
9779
|
+
return /* @__PURE__ */ jsx103(F_core64229_Read, {});
|
9770
9780
|
}
|
9771
9781
|
|
9772
9782
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9773
|
-
import { Button as Button17, Group as
|
9783
|
+
import { Button as Button17, Group as Group18 } from "@mantine/core";
|
9774
9784
|
import { IconShield } from "@tabler/icons-react";
|
9775
9785
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
9776
9786
|
import { useRouter as useRouter3 } from "next/navigation";
|
9777
9787
|
import { useMemo as useMemo13, useState as useState13 } from "react";
|
9778
9788
|
|
9779
9789
|
// src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
|
9780
|
-
import { Button as Button16, Fieldset as Fieldset6, Group as
|
9790
|
+
import { Button as Button16, Fieldset as Fieldset6, Group as Group17, Table as Table4 } from "@mantine/core";
|
9781
9791
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
9782
9792
|
import { useMutation as useMutation7, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
9783
9793
|
import { useEffect as useEffect12, useMemo as useMemo12, useState as useState12 } from "react";
|
9784
|
-
import { jsx as
|
9794
|
+
import { jsx as jsx104, jsxs as jsxs62 } from "react/jsx-runtime";
|
9785
9795
|
function F_core71678_ChangePermission({ user }) {
|
9786
9796
|
const disc = useDisclosure12();
|
9787
9797
|
const queryClient = useQueryClient5();
|
@@ -9828,32 +9838,32 @@ function F_core71678_ChangePermission({ user }) {
|
|
9828
9838
|
}, {});
|
9829
9839
|
setRowSelection(result);
|
9830
9840
|
}, []);
|
9831
|
-
return /* @__PURE__ */
|
9832
|
-
/* @__PURE__ */
|
9841
|
+
return /* @__PURE__ */ jsxs62(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
|
9842
|
+
/* @__PURE__ */ jsx104(
|
9833
9843
|
Table4,
|
9834
9844
|
{
|
9835
9845
|
w: "100%",
|
9836
9846
|
variant: "vertical",
|
9837
9847
|
layout: "fixed",
|
9838
|
-
children: /* @__PURE__ */
|
9839
|
-
/* @__PURE__ */
|
9840
|
-
/* @__PURE__ */
|
9841
|
-
/* @__PURE__ */
|
9848
|
+
children: /* @__PURE__ */ jsxs62(Table4.Tbody, { children: [
|
9849
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9850
|
+
/* @__PURE__ */ jsx104(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
9851
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.fullName })
|
9842
9852
|
] }),
|
9843
|
-
/* @__PURE__ */
|
9844
|
-
/* @__PURE__ */
|
9845
|
-
/* @__PURE__ */
|
9853
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9854
|
+
/* @__PURE__ */ jsx104(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
9855
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.userName })
|
9846
9856
|
] }),
|
9847
|
-
/* @__PURE__ */
|
9848
|
-
/* @__PURE__ */
|
9849
|
-
/* @__PURE__ */
|
9857
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9858
|
+
/* @__PURE__ */ jsx104(Table4.Th, { children: "Email:" }),
|
9859
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.email })
|
9850
9860
|
] })
|
9851
9861
|
] })
|
9852
9862
|
}
|
9853
9863
|
),
|
9854
9864
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
9855
9865
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
9856
|
-
/* @__PURE__ */
|
9866
|
+
/* @__PURE__ */ jsx104(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx104(
|
9857
9867
|
MyDataTable,
|
9858
9868
|
{
|
9859
9869
|
enableRowSelection: true,
|
@@ -9877,13 +9887,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
9877
9887
|
data: query.data
|
9878
9888
|
}
|
9879
9889
|
) }),
|
9880
|
-
/* @__PURE__ */
|
9890
|
+
/* @__PURE__ */ jsx104(Group17, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx104(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
|
9881
9891
|
] });
|
9882
9892
|
}
|
9883
9893
|
|
9884
9894
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
9885
9895
|
import { useForm as useForm16 } from "@mantine/form";
|
9886
|
-
import { jsx as
|
9896
|
+
import { jsx as jsx105, jsxs as jsxs63 } from "react/jsx-runtime";
|
9887
9897
|
var ENDPOINT2 = "/Account/create";
|
9888
9898
|
function F_core71678_Create() {
|
9889
9899
|
const form = useForm16({
|
@@ -9911,21 +9921,21 @@ function F_core71678_Create() {
|
|
9911
9921
|
AQModuleId: 1002
|
9912
9922
|
}));
|
9913
9923
|
}
|
9914
|
-
return /* @__PURE__ */
|
9915
|
-
/* @__PURE__ */
|
9916
|
-
/* @__PURE__ */
|
9917
|
-
/* @__PURE__ */
|
9918
|
-
/* @__PURE__ */
|
9919
|
-
/* @__PURE__ */
|
9920
|
-
/* @__PURE__ */
|
9924
|
+
return /* @__PURE__ */ jsxs63(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
9925
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9926
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9927
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
9928
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9929
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
9930
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9921
9931
|
] });
|
9922
9932
|
}
|
9923
9933
|
|
9924
9934
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
9925
|
-
import { jsx as
|
9935
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
9926
9936
|
var ENDPOINT3 = "/Account/delete";
|
9927
9937
|
function F_core71678_Delete({ id, code }) {
|
9928
|
-
return /* @__PURE__ */
|
9938
|
+
return /* @__PURE__ */ jsx106(
|
9929
9939
|
MyActionIconDelete,
|
9930
9940
|
{
|
9931
9941
|
contextData: code,
|
@@ -9937,7 +9947,7 @@ function F_core71678_Delete({ id, code }) {
|
|
9937
9947
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
9938
9948
|
import { useForm as useForm17 } from "@mantine/form";
|
9939
9949
|
import { useEffect as useEffect13 } from "react";
|
9940
|
-
import { jsx as
|
9950
|
+
import { jsx as jsx107, jsxs as jsxs64 } from "react/jsx-runtime";
|
9941
9951
|
function F_core71678_Update({ user }) {
|
9942
9952
|
const form = useForm17({
|
9943
9953
|
initialValues: user
|
@@ -9945,7 +9955,7 @@ function F_core71678_Update({ user }) {
|
|
9945
9955
|
useEffect13(() => {
|
9946
9956
|
console.log(form.values);
|
9947
9957
|
}, [form.values]);
|
9948
|
-
return /* @__PURE__ */
|
9958
|
+
return /* @__PURE__ */ jsx107(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
9949
9959
|
return await baseAxios_default.post(
|
9950
9960
|
"/Account/update",
|
9951
9961
|
__spreadProps(__spreadValues({}, values), {
|
@@ -9957,17 +9967,17 @@ function F_core71678_Update({ user }) {
|
|
9957
9967
|
workingUnitId: null
|
9958
9968
|
})
|
9959
9969
|
);
|
9960
|
-
}, children: /* @__PURE__ */
|
9961
|
-
/* @__PURE__ */
|
9962
|
-
/* @__PURE__ */
|
9963
|
-
/* @__PURE__ */
|
9964
|
-
/* @__PURE__ */
|
9965
|
-
/* @__PURE__ */
|
9970
|
+
}, children: /* @__PURE__ */ jsxs64(MyFlexColumn, { children: [
|
9971
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9972
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9973
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9974
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
9975
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9966
9976
|
] }) });
|
9967
9977
|
}
|
9968
9978
|
|
9969
9979
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9970
|
-
import { jsx as
|
9980
|
+
import { jsx as jsx108, jsxs as jsxs65 } from "react/jsx-runtime";
|
9971
9981
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
9972
9982
|
function F_core71678_Read() {
|
9973
9983
|
const router = useRouter3();
|
@@ -9999,25 +10009,25 @@ function F_core71678_Read() {
|
|
9999
10009
|
},
|
10000
10010
|
{
|
10001
10011
|
header: "Quy\u1EC1n",
|
10002
|
-
accessorFn: (row) => /* @__PURE__ */
|
10012
|
+
accessorFn: (row) => /* @__PURE__ */ jsx108(F_core71678_ChangePermission, { user: row })
|
10003
10013
|
}
|
10004
10014
|
],
|
10005
10015
|
[]
|
10006
10016
|
);
|
10007
10017
|
if (AllUserQuery.isLoading) return "Loading...";
|
10008
|
-
return /* @__PURE__ */
|
10018
|
+
return /* @__PURE__ */ jsx108(
|
10009
10019
|
MyDataTable,
|
10010
10020
|
{
|
10011
10021
|
columns,
|
10012
10022
|
data: AllUserQuery.data,
|
10013
10023
|
renderTopToolbarCustomActions: () => {
|
10014
|
-
return /* @__PURE__ */
|
10015
|
-
/* @__PURE__ */
|
10016
|
-
/* @__PURE__ */
|
10024
|
+
return /* @__PURE__ */ jsxs65(Group18, { children: [
|
10025
|
+
/* @__PURE__ */ jsx108(F_core71678_Create, {}),
|
10026
|
+
/* @__PURE__ */ jsx108(
|
10017
10027
|
Button17,
|
10018
10028
|
{
|
10019
10029
|
color: "violet",
|
10020
|
-
leftSection: /* @__PURE__ */
|
10030
|
+
leftSection: /* @__PURE__ */ jsx108(IconShield, {}),
|
10021
10031
|
onClick: () => {
|
10022
10032
|
router.push("core47643");
|
10023
10033
|
},
|
@@ -10027,9 +10037,9 @@ function F_core71678_Read() {
|
|
10027
10037
|
] });
|
10028
10038
|
},
|
10029
10039
|
renderRowActions: ({ row }) => {
|
10030
|
-
return /* @__PURE__ */
|
10031
|
-
/* @__PURE__ */
|
10032
|
-
/* @__PURE__ */
|
10040
|
+
return /* @__PURE__ */ jsxs65(MyCenterFull, { children: [
|
10041
|
+
/* @__PURE__ */ jsx108(F_core71678_Update, { user: row.original }),
|
10042
|
+
/* @__PURE__ */ jsx108(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
10033
10043
|
] });
|
10034
10044
|
}
|
10035
10045
|
}
|
@@ -10037,9 +10047,9 @@ function F_core71678_Read() {
|
|
10037
10047
|
}
|
10038
10048
|
|
10039
10049
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
10040
|
-
import { jsx as
|
10050
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
10041
10051
|
function F_core71678() {
|
10042
|
-
return /* @__PURE__ */
|
10052
|
+
return /* @__PURE__ */ jsx109(F_core71678_Read, {});
|
10043
10053
|
}
|
10044
10054
|
|
10045
10055
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
@@ -10049,7 +10059,7 @@ import { useMemo as useMemo14 } from "react";
|
|
10049
10059
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
10050
10060
|
import { FileInput as FileInput8 } from "@mantine/core";
|
10051
10061
|
import { useForm as useForm18 } from "@mantine/form";
|
10052
|
-
import { jsx as
|
10062
|
+
import { jsx as jsx110, jsxs as jsxs66 } from "react/jsx-runtime";
|
10053
10063
|
function F_core76318_Create({ SecurityTypeId }) {
|
10054
10064
|
const form = useForm18({
|
10055
10065
|
mode: "uncontrolled",
|
@@ -10060,7 +10070,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10060
10070
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10061
10071
|
}
|
10062
10072
|
});
|
10063
|
-
return /* @__PURE__ */
|
10073
|
+
return /* @__PURE__ */ jsxs66(
|
10064
10074
|
MyButtonCreate,
|
10065
10075
|
{
|
10066
10076
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -10073,28 +10083,28 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10073
10083
|
}));
|
10074
10084
|
},
|
10075
10085
|
children: [
|
10076
|
-
/* @__PURE__ */
|
10086
|
+
/* @__PURE__ */ jsx110(
|
10077
10087
|
MyTextInput,
|
10078
10088
|
__spreadValues({
|
10079
10089
|
withAsterisk: true,
|
10080
10090
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10081
10091
|
}, form.getInputProps("decisionCode"))
|
10082
10092
|
),
|
10083
|
-
/* @__PURE__ */
|
10093
|
+
/* @__PURE__ */ jsx110(
|
10084
10094
|
MyDateInput,
|
10085
10095
|
__spreadValues({
|
10086
10096
|
withAsterisk: true,
|
10087
10097
|
label: "Ng\xE0y ban h\xE0nh"
|
10088
10098
|
}, form.getInputProps("promulgateDate"))
|
10089
10099
|
),
|
10090
|
-
/* @__PURE__ */
|
10100
|
+
/* @__PURE__ */ jsx110(
|
10091
10101
|
MyTextInput,
|
10092
10102
|
__spreadValues({
|
10093
10103
|
withAsterisk: true,
|
10094
10104
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10095
10105
|
}, form.getInputProps("name"))
|
10096
10106
|
),
|
10097
|
-
/* @__PURE__ */
|
10107
|
+
/* @__PURE__ */ jsx110(
|
10098
10108
|
FileInput8,
|
10099
10109
|
__spreadValues({
|
10100
10110
|
withAsterisk: true,
|
@@ -10108,12 +10118,12 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10108
10118
|
}
|
10109
10119
|
|
10110
10120
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
10111
|
-
import { jsx as
|
10121
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
10112
10122
|
function F_core76318_Delete({
|
10113
10123
|
id,
|
10114
10124
|
contextData
|
10115
10125
|
}) {
|
10116
|
-
return /* @__PURE__ */
|
10126
|
+
return /* @__PURE__ */ jsx111(
|
10117
10127
|
MyActionIconDelete,
|
10118
10128
|
{
|
10119
10129
|
contextData,
|
@@ -10125,7 +10135,7 @@ function F_core76318_Delete({
|
|
10125
10135
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
10126
10136
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
10127
10137
|
import { useForm as useForm19 } from "@mantine/form";
|
10128
|
-
import { jsx as
|
10138
|
+
import { jsx as jsx112, jsxs as jsxs67 } from "react/jsx-runtime";
|
10129
10139
|
function F_core76318_Update({ values }) {
|
10130
10140
|
var _a;
|
10131
10141
|
const form = useForm19({
|
@@ -10144,7 +10154,7 @@ function F_core76318_Update({ values }) {
|
|
10144
10154
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10145
10155
|
}
|
10146
10156
|
});
|
10147
|
-
return /* @__PURE__ */
|
10157
|
+
return /* @__PURE__ */ jsxs67(
|
10148
10158
|
MyActionIconUpdate,
|
10149
10159
|
{
|
10150
10160
|
form,
|
@@ -10154,28 +10164,28 @@ function F_core76318_Update({ values }) {
|
|
10154
10164
|
}));
|
10155
10165
|
},
|
10156
10166
|
children: [
|
10157
|
-
/* @__PURE__ */
|
10167
|
+
/* @__PURE__ */ jsx112(
|
10158
10168
|
TextInput5,
|
10159
10169
|
__spreadValues({
|
10160
10170
|
withAsterisk: true,
|
10161
10171
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10162
10172
|
}, form.getInputProps("decisionCode"))
|
10163
10173
|
),
|
10164
|
-
/* @__PURE__ */
|
10174
|
+
/* @__PURE__ */ jsx112(
|
10165
10175
|
MyDateInput,
|
10166
10176
|
__spreadValues({
|
10167
10177
|
withAsterisk: true,
|
10168
10178
|
label: "Ng\xE0y ban h\xE0nh"
|
10169
10179
|
}, form.getInputProps("promulgateDate"))
|
10170
10180
|
),
|
10171
|
-
/* @__PURE__ */
|
10181
|
+
/* @__PURE__ */ jsx112(
|
10172
10182
|
TextInput5,
|
10173
10183
|
__spreadValues({
|
10174
10184
|
withAsterisk: true,
|
10175
10185
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10176
10186
|
}, form.getInputProps("name"))
|
10177
10187
|
),
|
10178
|
-
/* @__PURE__ */
|
10188
|
+
/* @__PURE__ */ jsx112(
|
10179
10189
|
FileInput9,
|
10180
10190
|
__spreadValues({
|
10181
10191
|
withAsterisk: true,
|
@@ -10188,7 +10198,7 @@ function F_core76318_Update({ values }) {
|
|
10188
10198
|
}
|
10189
10199
|
|
10190
10200
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
10191
|
-
import { jsx as
|
10201
|
+
import { jsx as jsx113, jsxs as jsxs68 } from "react/jsx-runtime";
|
10192
10202
|
function F_core76318_Read({ SecurityTypeId }) {
|
10193
10203
|
const query = useQuery16({
|
10194
10204
|
queryKey: ["F_core76318_Read"],
|
@@ -10217,7 +10227,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10217
10227
|
{
|
10218
10228
|
header: "File",
|
10219
10229
|
accessorFn: (row) => {
|
10220
|
-
return /* @__PURE__ */
|
10230
|
+
return /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(MyButtonViewPDF, { id: row.id }) });
|
10221
10231
|
}
|
10222
10232
|
}
|
10223
10233
|
],
|
@@ -10225,17 +10235,17 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10225
10235
|
);
|
10226
10236
|
if (query.isLoading) return "Loading...";
|
10227
10237
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
10228
|
-
return /* @__PURE__ */
|
10238
|
+
return /* @__PURE__ */ jsx113(
|
10229
10239
|
MyDataTable,
|
10230
10240
|
{
|
10231
10241
|
columns,
|
10232
10242
|
data: query.data,
|
10233
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
10243
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx113(F_core76318_Create, { SecurityTypeId }),
|
10234
10244
|
renderRowActions: ({ row }) => {
|
10235
10245
|
var _a;
|
10236
|
-
return /* @__PURE__ */
|
10237
|
-
/* @__PURE__ */
|
10238
|
-
/* @__PURE__ */
|
10246
|
+
return /* @__PURE__ */ jsxs68(MyCenterFull, { children: [
|
10247
|
+
/* @__PURE__ */ jsx113(F_core76318_Update, { values: row.original }),
|
10248
|
+
/* @__PURE__ */ jsx113(
|
10239
10249
|
F_core76318_Delete,
|
10240
10250
|
{
|
10241
10251
|
id: row.original.id,
|
@@ -10249,9 +10259,9 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10249
10259
|
}
|
10250
10260
|
|
10251
10261
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
10252
|
-
import { jsx as
|
10262
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
10253
10263
|
function F_core76318({ SecurityTypeId }) {
|
10254
|
-
return /* @__PURE__ */
|
10264
|
+
return /* @__PURE__ */ jsx114(F_core76318_Read, { SecurityTypeId });
|
10255
10265
|
}
|
10256
10266
|
|
10257
10267
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
@@ -10261,7 +10271,7 @@ import { Grid as Grid4, Paper as Paper12, ScrollArea as ScrollArea8 } from "@man
|
|
10261
10271
|
import { Container as Container5 } from "@mantine/core";
|
10262
10272
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
10263
10273
|
import { useEffect as useEffect14, useMemo as useMemo15, useState as useState14 } from "react";
|
10264
|
-
import { jsx as
|
10274
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
10265
10275
|
function F_core83092_ReadUser() {
|
10266
10276
|
const store = useS_core83092();
|
10267
10277
|
const query = useQ_core83092_Account_GetAdminAccount();
|
@@ -10294,7 +10304,7 @@ function F_core83092_ReadUser() {
|
|
10294
10304
|
}, [query.data]);
|
10295
10305
|
if (query.isLoading) return "Loading...";
|
10296
10306
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
10297
|
-
return /* @__PURE__ */
|
10307
|
+
return /* @__PURE__ */ jsx115(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx115(
|
10298
10308
|
MyDataTable,
|
10299
10309
|
{
|
10300
10310
|
columns,
|
@@ -10330,7 +10340,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
10330
10340
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
10331
10341
|
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
10332
10342
|
import { useEffect as useEffect15, useState as useState15 } from "react";
|
10333
|
-
import { jsx as
|
10343
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
10334
10344
|
function F_core83092_Save() {
|
10335
10345
|
const store = useS_core83092();
|
10336
10346
|
const disable = useState15(false);
|
@@ -10359,15 +10369,15 @@ function F_core83092_Save() {
|
|
10359
10369
|
}
|
10360
10370
|
disable[1](false);
|
10361
10371
|
}, [store.state.rolePermissions]);
|
10362
|
-
return /* @__PURE__ */
|
10372
|
+
return /* @__PURE__ */ jsx116(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
10363
10373
|
}
|
10364
10374
|
|
10365
10375
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
10366
|
-
import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as
|
10376
|
+
import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as Text15 } from "@mantine/core";
|
10367
10377
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
10368
10378
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
10369
10379
|
import React4, { useEffect as useEffect16, useState as useState16 } from "react";
|
10370
|
-
import { jsx as
|
10380
|
+
import { jsx as jsx117, jsxs as jsxs69 } from "react/jsx-runtime";
|
10371
10381
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
10372
10382
|
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
10373
10383
|
var _a, _b;
|
@@ -10382,8 +10392,8 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10382
10392
|
store.setProperty("rolePermissions", query.data);
|
10383
10393
|
}, [query.data]);
|
10384
10394
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
10385
|
-
return /* @__PURE__ */
|
10386
|
-
/* @__PURE__ */
|
10395
|
+
return /* @__PURE__ */ jsx117(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs69(Table5, { children: [
|
10396
|
+
/* @__PURE__ */ jsx117(
|
10387
10397
|
Table5.Thead,
|
10388
10398
|
{
|
10389
10399
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -10394,90 +10404,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10394
10404
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
10395
10405
|
border: "1px solid var(--mantine-color-gray-4)"
|
10396
10406
|
},
|
10397
|
-
children: /* @__PURE__ */
|
10398
|
-
/* @__PURE__ */
|
10399
|
-
/* @__PURE__ */
|
10400
|
-
/* @__PURE__ */
|
10407
|
+
children: /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10408
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: title2 }),
|
10409
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10410
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
10401
10411
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
10402
10412
|
} }),
|
10403
|
-
/* @__PURE__ */
|
10413
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10404
10414
|
"Xem",
|
10405
|
-
/* @__PURE__ */
|
10415
|
+
/* @__PURE__ */ jsx117(IconEyeUp2, { color: "gray" })
|
10406
10416
|
] })
|
10407
10417
|
] }) }),
|
10408
|
-
/* @__PURE__ */
|
10409
|
-
/* @__PURE__ */
|
10418
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10419
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
10410
10420
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
10411
10421
|
} }),
|
10412
|
-
/* @__PURE__ */
|
10422
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10413
10423
|
"Th\xEAm",
|
10414
|
-
/* @__PURE__ */
|
10424
|
+
/* @__PURE__ */ jsx117(IconPlus6, { color: "blue" })
|
10415
10425
|
] })
|
10416
10426
|
] }) }),
|
10417
|
-
/* @__PURE__ */
|
10418
|
-
/* @__PURE__ */
|
10427
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10428
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
10419
10429
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
10420
10430
|
} }),
|
10421
|
-
/* @__PURE__ */
|
10431
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10422
10432
|
"S\u1EEDa",
|
10423
|
-
/* @__PURE__ */
|
10433
|
+
/* @__PURE__ */ jsx117(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
10424
10434
|
] })
|
10425
10435
|
] }) }),
|
10426
|
-
/* @__PURE__ */
|
10427
|
-
/* @__PURE__ */
|
10436
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10437
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
10428
10438
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
10429
10439
|
} }),
|
10430
|
-
/* @__PURE__ */
|
10440
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10431
10441
|
"X\xF3a",
|
10432
|
-
/* @__PURE__ */
|
10442
|
+
/* @__PURE__ */ jsx117(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
10433
10443
|
] })
|
10434
10444
|
] }) }),
|
10435
|
-
/* @__PURE__ */
|
10436
|
-
/* @__PURE__ */
|
10445
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10446
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
10437
10447
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
10438
10448
|
} }),
|
10439
|
-
/* @__PURE__ */
|
10449
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10440
10450
|
"In",
|
10441
|
-
/* @__PURE__ */
|
10451
|
+
/* @__PURE__ */ jsx117(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
10442
10452
|
] })
|
10443
10453
|
] }) }),
|
10444
|
-
/* @__PURE__ */
|
10445
|
-
/* @__PURE__ */
|
10454
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10455
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
10446
10456
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
10447
10457
|
} }),
|
10448
|
-
/* @__PURE__ */
|
10458
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10449
10459
|
"Xu\u1EA5t",
|
10450
|
-
/* @__PURE__ */
|
10460
|
+
/* @__PURE__ */ jsx117(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
10451
10461
|
] })
|
10452
10462
|
] }) })
|
10453
10463
|
] })
|
10454
10464
|
}
|
10455
10465
|
),
|
10456
|
-
/* @__PURE__ */
|
10457
|
-
if (item.links == void 0) return /* @__PURE__ */
|
10458
|
-
/* @__PURE__ */
|
10459
|
-
/* @__PURE__ */
|
10460
|
-
/* @__PURE__ */
|
10461
|
-
/* @__PURE__ */
|
10462
|
-
/* @__PURE__ */
|
10463
|
-
/* @__PURE__ */
|
10464
|
-
/* @__PURE__ */
|
10466
|
+
/* @__PURE__ */ jsx117(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) => {
|
10467
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10468
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: item.label }),
|
10469
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10470
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10471
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10472
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10473
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10474
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) })
|
10465
10475
|
] }, idx);
|
10466
|
-
return /* @__PURE__ */
|
10467
|
-
/* @__PURE__ */
|
10476
|
+
return /* @__PURE__ */ jsxs69(React4.Fragment, { children: [
|
10477
|
+
/* @__PURE__ */ jsx117(Table5.Tr, { children: /* @__PURE__ */ jsx117(
|
10468
10478
|
Table5.Td,
|
10469
10479
|
{
|
10470
10480
|
colSpan: 7,
|
10471
10481
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
10472
|
-
children: /* @__PURE__ */
|
10482
|
+
children: /* @__PURE__ */ jsx117(Text15, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
10473
10483
|
}
|
10474
10484
|
) }, item.label),
|
10475
10485
|
item.links.map(
|
10476
10486
|
(item2, idx2) => {
|
10477
10487
|
var _a2, _b2, _c, _d, _e, _f;
|
10478
|
-
return /* @__PURE__ */
|
10479
|
-
/* @__PURE__ */
|
10480
|
-
/* @__PURE__ */
|
10488
|
+
return /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10489
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: item2.label }),
|
10490
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10481
10491
|
Checkbox4,
|
10482
10492
|
{
|
10483
10493
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -10488,7 +10498,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10488
10498
|
}
|
10489
10499
|
}
|
10490
10500
|
) }) }),
|
10491
|
-
/* @__PURE__ */
|
10501
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10492
10502
|
Checkbox4,
|
10493
10503
|
{
|
10494
10504
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -10499,7 +10509,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10499
10509
|
}
|
10500
10510
|
}
|
10501
10511
|
) }) }),
|
10502
|
-
/* @__PURE__ */
|
10512
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10503
10513
|
Checkbox4,
|
10504
10514
|
{
|
10505
10515
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -10510,7 +10520,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10510
10520
|
}
|
10511
10521
|
}
|
10512
10522
|
) }) }),
|
10513
|
-
/* @__PURE__ */
|
10523
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10514
10524
|
Checkbox4,
|
10515
10525
|
{
|
10516
10526
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -10521,7 +10531,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10521
10531
|
}
|
10522
10532
|
}
|
10523
10533
|
) }) }),
|
10524
|
-
/* @__PURE__ */
|
10534
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10525
10535
|
Checkbox4,
|
10526
10536
|
{
|
10527
10537
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -10532,7 +10542,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10532
10542
|
}
|
10533
10543
|
}
|
10534
10544
|
) }) }),
|
10535
|
-
/* @__PURE__ */
|
10545
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10536
10546
|
Checkbox4,
|
10537
10547
|
{
|
10538
10548
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -10588,72 +10598,72 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
10588
10598
|
}
|
10589
10599
|
|
10590
10600
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
10591
|
-
import { jsx as
|
10601
|
+
import { jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
|
10592
10602
|
function F_core83092({ menuData: menuData2 }) {
|
10593
|
-
return /* @__PURE__ */
|
10594
|
-
/* @__PURE__ */
|
10595
|
-
/* @__PURE__ */
|
10596
|
-
/* @__PURE__ */
|
10597
|
-
/* @__PURE__ */
|
10603
|
+
return /* @__PURE__ */ jsxs70(Grid4, { grow: true, children: [
|
10604
|
+
/* @__PURE__ */ jsx118(Grid4.Col, { span: 4, children: /* @__PURE__ */ jsx118(F_core83092_ReadUser, {}) }),
|
10605
|
+
/* @__PURE__ */ jsx118(Grid4.Col, { span: 8, children: /* @__PURE__ */ jsxs70(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
10606
|
+
/* @__PURE__ */ jsx118(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx118(Paper12, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx118(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
10607
|
+
/* @__PURE__ */ jsx118(F_core83092_Save, {})
|
10598
10608
|
] }) })
|
10599
10609
|
] });
|
10600
10610
|
}
|
10601
10611
|
|
10602
10612
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
10603
10613
|
import { BarChart } from "@mantine/charts";
|
10604
|
-
import { Group as
|
10605
|
-
import { Fragment as Fragment13, jsx as
|
10614
|
+
import { Group as Group19, Paper as Paper13, Text as Text16, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
10615
|
+
import { Fragment as Fragment13, jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
|
10606
10616
|
|
10607
10617
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
10608
10618
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
10609
|
-
import { Group as
|
10610
|
-
import { Fragment as Fragment14, jsx as
|
10619
|
+
import { Group as Group20, Paper as Paper14, Text as Text17, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
10620
|
+
import { Fragment as Fragment14, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
|
10611
10621
|
|
10612
10622
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
10613
10623
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
10614
|
-
import { Group as
|
10615
|
-
import { Fragment as Fragment15, jsx as
|
10624
|
+
import { Group as Group21, Paper as Paper15, Text as Text18, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
10625
|
+
import { Fragment as Fragment15, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
|
10616
10626
|
|
10617
10627
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
10618
10628
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
10619
|
-
import { Group as
|
10620
|
-
import { Fragment as Fragment16, jsx as
|
10629
|
+
import { Group as Group22, Paper as Paper16, Text as Text19, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
10630
|
+
import { Fragment as Fragment16, jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
|
10621
10631
|
|
10622
10632
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
10623
10633
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
10624
|
-
import { Group as
|
10625
|
-
import { jsx as
|
10634
|
+
import { Group as Group23, Paper as Paper17, Text as Text20, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
10635
|
+
import { jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
|
10626
10636
|
|
10627
10637
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
10628
10638
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
10629
|
-
import { Group as
|
10630
|
-
import { jsx as
|
10639
|
+
import { Group as Group24, Paper as Paper18, Text as Text21, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
10640
|
+
import { jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
|
10631
10641
|
|
10632
10642
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
10633
10643
|
import { LineChart } from "@mantine/charts";
|
10634
|
-
import { Group as
|
10635
|
-
import { Fragment as Fragment17, jsx as
|
10644
|
+
import { Group as Group25, Paper as Paper19, Text as Text22 } from "@mantine/core";
|
10645
|
+
import { Fragment as Fragment17, jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
|
10636
10646
|
|
10637
10647
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
10638
10648
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
10639
|
-
import { Group as
|
10640
|
-
import { Fragment as Fragment18, jsx as
|
10649
|
+
import { Group as Group26, Paper as Paper20, Text as Text23 } from "@mantine/core";
|
10650
|
+
import { Fragment as Fragment18, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
|
10641
10651
|
|
10642
10652
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
10643
10653
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
10644
|
-
import { Group as
|
10645
|
-
import { Fragment as Fragment19, jsx as
|
10654
|
+
import { Group as Group27, Paper as Paper21, Text as Text24 } from "@mantine/core";
|
10655
|
+
import { Fragment as Fragment19, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
|
10646
10656
|
|
10647
10657
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
10648
10658
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
10649
|
-
import { Group as
|
10650
|
-
import { Fragment as Fragment20, jsx as
|
10659
|
+
import { Group as Group28, Paper as Paper22, Text as Text25 } from "@mantine/core";
|
10660
|
+
import { Fragment as Fragment20, jsx as jsx128, jsxs as jsxs80 } from "react/jsx-runtime";
|
10651
10661
|
|
10652
10662
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
10653
|
-
import { Center as Center4, Progress, Space as Space8, Text as
|
10663
|
+
import { Center as Center4, Progress, Space as Space8, Text as Text26 } from "@mantine/core";
|
10654
10664
|
import { PieChart } from "@mantine/charts";
|
10655
10665
|
import { useMemo as useMemo16 } from "react";
|
10656
|
-
import { Fragment as Fragment21, jsx as
|
10666
|
+
import { Fragment as Fragment21, jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
|
10657
10667
|
function getRandomColor(seed) {
|
10658
10668
|
const random = Math.sin(seed) * 1e4;
|
10659
10669
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -10831,7 +10841,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10831
10841
|
header: "M\xE0u",
|
10832
10842
|
accessorKey: "color",
|
10833
10843
|
accessorFn(originalRow) {
|
10834
|
-
return /* @__PURE__ */
|
10844
|
+
return /* @__PURE__ */ jsx129("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
10835
10845
|
},
|
10836
10846
|
minSize: 30,
|
10837
10847
|
maxSize: 30
|
@@ -10846,7 +10856,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10846
10856
|
header: "%",
|
10847
10857
|
accessorKey: "used",
|
10848
10858
|
accessorFn(originalRow) {
|
10849
|
-
return /* @__PURE__ */
|
10859
|
+
return /* @__PURE__ */ jsx129(Fragment21, { children: /* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
|
10850
10860
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
10851
10861
|
"%"
|
10852
10862
|
] }) }) });
|
@@ -10861,10 +10871,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10861
10871
|
return originalRow.used;
|
10862
10872
|
},
|
10863
10873
|
Cell: ({ row }) => {
|
10864
|
-
return /* @__PURE__ */
|
10865
|
-
/* @__PURE__ */
|
10874
|
+
return /* @__PURE__ */ jsxs81(Fragment21, { children: [
|
10875
|
+
/* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
|
10866
10876
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
10867
|
-
/* @__PURE__ */
|
10877
|
+
/* @__PURE__ */ jsxs81("strong", { children: [
|
10868
10878
|
row.original.used,
|
10869
10879
|
" / ",
|
10870
10880
|
row.original.total
|
@@ -10873,7 +10883,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10873
10883
|
(row.original.used / row.original.total * 100).toFixed(2),
|
10874
10884
|
"%)"
|
10875
10885
|
] }) }),
|
10876
|
-
/* @__PURE__ */
|
10886
|
+
/* @__PURE__ */ jsx129(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
10877
10887
|
] });
|
10878
10888
|
},
|
10879
10889
|
minSize: 50,
|
@@ -10882,9 +10892,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
10882
10892
|
],
|
10883
10893
|
[]
|
10884
10894
|
);
|
10885
|
-
return /* @__PURE__ */
|
10886
|
-
/* @__PURE__ */
|
10887
|
-
/* @__PURE__ */
|
10895
|
+
return /* @__PURE__ */ jsx129(Fragment21, { children: /* @__PURE__ */ jsxs81(MyFlexColumn, { children: [
|
10896
|
+
/* @__PURE__ */ jsx129(Text26, { 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" }),
|
10897
|
+
/* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsx129(
|
10888
10898
|
PieChart,
|
10889
10899
|
{
|
10890
10900
|
startAngle: 90,
|
@@ -10897,8 +10907,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
10897
10907
|
data: data_used_discountCode
|
10898
10908
|
}
|
10899
10909
|
) }),
|
10900
|
-
/* @__PURE__ */
|
10901
|
-
/* @__PURE__ */
|
10910
|
+
/* @__PURE__ */ jsx129(Space8, { mt: 5 }),
|
10911
|
+
/* @__PURE__ */ jsx129(
|
10902
10912
|
MyDataTable,
|
10903
10913
|
{
|
10904
10914
|
data: mockData,
|
@@ -10913,10 +10923,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10913
10923
|
}
|
10914
10924
|
|
10915
10925
|
// src/modules-features/admin/core/MainDashboard/ViewVoucherStat.tsx
|
10916
|
-
import { Center as Center5, Progress as Progress2, Space as Space9, Text as
|
10926
|
+
import { Center as Center5, Progress as Progress2, Space as Space9, Text as Text27 } from "@mantine/core";
|
10917
10927
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
10918
10928
|
import { useMemo as useMemo17 } from "react";
|
10919
|
-
import { Fragment as Fragment22, jsx as
|
10929
|
+
import { Fragment as Fragment22, jsx as jsx130, jsxs as jsxs82 } from "react/jsx-runtime";
|
10920
10930
|
function getRandomColor2(seed) {
|
10921
10931
|
const random = Math.sin(seed) * 1e4;
|
10922
10932
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -11094,7 +11104,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11094
11104
|
header: "M\xE0u",
|
11095
11105
|
accessorKey: "color",
|
11096
11106
|
accessorFn(originalRow) {
|
11097
|
-
return /* @__PURE__ */
|
11107
|
+
return /* @__PURE__ */ jsx130("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
11098
11108
|
},
|
11099
11109
|
minSize: 30,
|
11100
11110
|
maxSize: 30
|
@@ -11109,7 +11119,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11109
11119
|
header: "%",
|
11110
11120
|
accessorKey: "used",
|
11111
11121
|
accessorFn(originalRow) {
|
11112
|
-
return /* @__PURE__ */
|
11122
|
+
return /* @__PURE__ */ jsx130(Fragment22, { children: /* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
11113
11123
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
11114
11124
|
"%"
|
11115
11125
|
] }) }) });
|
@@ -11124,10 +11134,10 @@ function PieChart_VoucherUsedPercentage() {
|
|
11124
11134
|
return originalRow.used;
|
11125
11135
|
},
|
11126
11136
|
Cell: ({ row }) => {
|
11127
|
-
return /* @__PURE__ */
|
11128
|
-
/* @__PURE__ */
|
11137
|
+
return /* @__PURE__ */ jsxs82(Fragment22, { children: [
|
11138
|
+
/* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
11129
11139
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
11130
|
-
/* @__PURE__ */
|
11140
|
+
/* @__PURE__ */ jsxs82("strong", { children: [
|
11131
11141
|
row.original.used,
|
11132
11142
|
" / ",
|
11133
11143
|
row.original.total
|
@@ -11136,7 +11146,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11136
11146
|
(row.original.used / row.original.total * 100).toFixed(2),
|
11137
11147
|
"%)"
|
11138
11148
|
] }) }),
|
11139
|
-
/* @__PURE__ */
|
11149
|
+
/* @__PURE__ */ jsx130(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
11140
11150
|
] });
|
11141
11151
|
},
|
11142
11152
|
minSize: 50,
|
@@ -11145,9 +11155,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
11145
11155
|
],
|
11146
11156
|
[]
|
11147
11157
|
);
|
11148
|
-
return /* @__PURE__ */
|
11149
|
-
/* @__PURE__ */
|
11150
|
-
/* @__PURE__ */
|
11158
|
+
return /* @__PURE__ */ jsx130(Fragment22, { children: /* @__PURE__ */ jsxs82(MyFlexColumn, { children: [
|
11159
|
+
/* @__PURE__ */ jsx130(Text27, { 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" }),
|
11160
|
+
/* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsx130(
|
11151
11161
|
PieChart2,
|
11152
11162
|
{
|
11153
11163
|
startAngle: 90,
|
@@ -11160,8 +11170,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
11160
11170
|
data: data_used_discountCode2
|
11161
11171
|
}
|
11162
11172
|
) }),
|
11163
|
-
/* @__PURE__ */
|
11164
|
-
/* @__PURE__ */
|
11173
|
+
/* @__PURE__ */ jsx130(Space9, { mt: 5 }),
|
11174
|
+
/* @__PURE__ */ jsx130(
|
11165
11175
|
MyDataTable,
|
11166
11176
|
{
|
11167
11177
|
data: mockData2,
|
@@ -11193,20 +11203,20 @@ function useS_authenticate() {
|
|
11193
11203
|
}
|
11194
11204
|
|
11195
11205
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
11196
|
-
import { jsx as
|
11206
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
11197
11207
|
function F_authenticate_Logout({ redirectURL = "/auth/login" }) {
|
11198
11208
|
const router = useRouter4();
|
11199
11209
|
const S_Authenticate = useS_authenticate();
|
11200
|
-
return /* @__PURE__ */
|
11210
|
+
return /* @__PURE__ */ jsx131(Button18, { onClick: () => {
|
11201
11211
|
S_Authenticate.setProperty("token", "");
|
11202
11212
|
router.replace(redirectURL);
|
11203
|
-
}, leftSection: /* @__PURE__ */
|
11213
|
+
}, leftSection: /* @__PURE__ */ jsx131(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
11204
11214
|
}
|
11205
11215
|
|
11206
11216
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
11207
11217
|
import { useRouter as useRouter5 } from "next/navigation";
|
11208
11218
|
import { useEffect as useEffect17 } from "react";
|
11209
|
-
import { jsx as
|
11219
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
11210
11220
|
function F_authenticate_SplashPage() {
|
11211
11221
|
const router = useRouter5();
|
11212
11222
|
const S_Authenticate = useS_authenticate();
|
@@ -11217,7 +11227,7 @@ function F_authenticate_SplashPage() {
|
|
11217
11227
|
}
|
11218
11228
|
router.push("/admin/core71678");
|
11219
11229
|
}, [S_Authenticate.state.token]);
|
11220
|
-
return /* @__PURE__ */
|
11230
|
+
return /* @__PURE__ */ jsx132(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
11221
11231
|
}
|
11222
11232
|
|
11223
11233
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
@@ -11228,10 +11238,10 @@ import {
|
|
11228
11238
|
Center as Center6,
|
11229
11239
|
Checkbox as Checkbox5,
|
11230
11240
|
Flex as Flex7,
|
11231
|
-
Group as
|
11241
|
+
Group as Group29,
|
11232
11242
|
Paper as Paper23,
|
11233
11243
|
PasswordInput as PasswordInput2,
|
11234
|
-
Text as
|
11244
|
+
Text as Text28,
|
11235
11245
|
TextInput as TextInput6,
|
11236
11246
|
Title as Title2
|
11237
11247
|
} from "@mantine/core";
|
@@ -11246,7 +11256,7 @@ import { useState as useState17 } from "react";
|
|
11246
11256
|
var css_default3 = {};
|
11247
11257
|
|
11248
11258
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
11249
|
-
import { jsx as
|
11259
|
+
import { jsx as jsx133, jsxs as jsxs83 } from "react/jsx-runtime";
|
11250
11260
|
function F_authenticate_Login({
|
11251
11261
|
loginInfo,
|
11252
11262
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -11299,21 +11309,21 @@ function F_authenticate_Login({
|
|
11299
11309
|
}
|
11300
11310
|
});
|
11301
11311
|
}
|
11302
|
-
return /* @__PURE__ */
|
11312
|
+
return /* @__PURE__ */ jsx133(
|
11303
11313
|
BackgroundImage,
|
11304
11314
|
{
|
11305
11315
|
src: backgroundImage,
|
11306
11316
|
h: "100vh",
|
11307
|
-
children: /* @__PURE__ */
|
11308
|
-
/* @__PURE__ */
|
11309
|
-
/* @__PURE__ */
|
11310
|
-
/* @__PURE__ */
|
11317
|
+
children: /* @__PURE__ */ jsx133(Center6, { h: "100vh", children: /* @__PURE__ */ jsxs83(Paper23, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
11318
|
+
/* @__PURE__ */ jsxs83(Flex7, { direction: "column", mb: "md", children: [
|
11319
|
+
/* @__PURE__ */ jsx133(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
11320
|
+
/* @__PURE__ */ jsxs83(Text28, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
11311
11321
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
11312
|
-
/* @__PURE__ */
|
11322
|
+
/* @__PURE__ */ jsx133(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
11313
11323
|
] })
|
11314
11324
|
] }),
|
11315
|
-
/* @__PURE__ */
|
11316
|
-
/* @__PURE__ */
|
11325
|
+
/* @__PURE__ */ jsx133("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs83(MyFlexColumn, { children: [
|
11326
|
+
/* @__PURE__ */ jsx133(
|
11317
11327
|
TextInput6,
|
11318
11328
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
11319
11329
|
label: "T\xE0i kho\u1EA3n",
|
@@ -11321,7 +11331,7 @@ function F_authenticate_Login({
|
|
11321
11331
|
withAsterisk: true
|
11322
11332
|
})
|
11323
11333
|
),
|
11324
|
-
/* @__PURE__ */
|
11334
|
+
/* @__PURE__ */ jsx133(
|
11325
11335
|
PasswordInput2,
|
11326
11336
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
11327
11337
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -11329,11 +11339,11 @@ function F_authenticate_Login({
|
|
11329
11339
|
withAsterisk: true
|
11330
11340
|
})
|
11331
11341
|
),
|
11332
|
-
/* @__PURE__ */
|
11333
|
-
/* @__PURE__ */
|
11334
|
-
/* @__PURE__ */
|
11342
|
+
/* @__PURE__ */ jsxs83(Group29, { justify: "space-between", children: [
|
11343
|
+
/* @__PURE__ */ jsx133(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
11344
|
+
/* @__PURE__ */ jsx133(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
11335
11345
|
] }),
|
11336
|
-
/* @__PURE__ */
|
11346
|
+
/* @__PURE__ */ jsx133(
|
11337
11347
|
Button19,
|
11338
11348
|
{
|
11339
11349
|
loading: loadingState[0],
|
@@ -11402,6 +11412,7 @@ export {
|
|
11402
11412
|
MyCheckbox,
|
11403
11413
|
MyFlexRow,
|
11404
11414
|
AQCard,
|
11415
|
+
MyIconText,
|
11405
11416
|
MyKeyLabel,
|
11406
11417
|
MyNumberFormatter,
|
11407
11418
|
AQStatCard1,
|