aq-fe-framework 0.1.113 → 0.1.115
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,47 @@ 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
|
+
|
6680
|
+
// src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
|
6681
|
+
import { Group as Group10, Text as Text9 } from "@mantine/core";
|
6682
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
6679
6683
|
function MyKeyLabel({ keyLabel, label }) {
|
6680
|
-
return /* @__PURE__ */
|
6681
|
-
/* @__PURE__ */
|
6684
|
+
return /* @__PURE__ */ jsxs26(Group10, { gap: 5, children: [
|
6685
|
+
/* @__PURE__ */ jsxs26(Text9, { fw: "bold", children: [
|
6682
6686
|
keyLabel,
|
6683
6687
|
":"
|
6684
6688
|
] }),
|
6685
|
-
/* @__PURE__ */
|
6689
|
+
/* @__PURE__ */ jsx47(Text9, { children: label })
|
6686
6690
|
] });
|
6687
6691
|
}
|
6688
6692
|
|
6689
6693
|
// src/components/DataDisplay/NumberFormatter/MyNumberFormatter.tsx
|
6690
6694
|
import { NumberFormatter } from "@mantine/core";
|
6691
|
-
import { jsx as
|
6695
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
6692
6696
|
function MyNumberFormatter(_a) {
|
6693
6697
|
var rest = __objRest(_a, []);
|
6694
|
-
return /* @__PURE__ */
|
6698
|
+
return /* @__PURE__ */ jsx48(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
6695
6699
|
}
|
6696
6700
|
|
6697
6701
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
6698
|
-
import { Box as Box2, Button as Button13, Flex as Flex3, Group as
|
6702
|
+
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group11, Paper as Paper6, Text as Text10 } from "@mantine/core";
|
6699
6703
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
6700
|
-
import { Fragment as Fragment11, jsx as
|
6704
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
6701
6705
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
6702
|
-
return /* @__PURE__ */
|
6706
|
+
return /* @__PURE__ */ jsx49(Fragment11, { children: /* @__PURE__ */ jsxs27(
|
6703
6707
|
Paper6,
|
6704
6708
|
{
|
6705
6709
|
withBorder: true,
|
6706
6710
|
p: "md",
|
6707
6711
|
radius: "md",
|
6708
6712
|
children: [
|
6709
|
-
/* @__PURE__ */
|
6710
|
-
/* @__PURE__ */
|
6711
|
-
/* @__PURE__ */
|
6712
|
-
|
6713
|
+
/* @__PURE__ */ jsxs27(Group11, { justify: "space-between", children: [
|
6714
|
+
/* @__PURE__ */ jsxs27(Flex3, { direction: "column", children: [
|
6715
|
+
/* @__PURE__ */ jsx49(
|
6716
|
+
Text10,
|
6713
6717
|
{
|
6714
6718
|
tt: "uppercase",
|
6715
6719
|
size: "lg",
|
@@ -6717,53 +6721,53 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
6717
6721
|
children: title3
|
6718
6722
|
}
|
6719
6723
|
),
|
6720
|
-
unit == "" ? /* @__PURE__ */
|
6724
|
+
unit == "" ? /* @__PURE__ */ jsxs27(Text10, { size: "xs", style: { visibility: "hidden" }, children: [
|
6721
6725
|
"\u0110\u01A1n v\u1ECB: ",
|
6722
|
-
/* @__PURE__ */
|
6723
|
-
] }) : /* @__PURE__ */
|
6726
|
+
/* @__PURE__ */ jsx49("strong", { children: unit })
|
6727
|
+
] }) : /* @__PURE__ */ jsxs27(Text10, { size: "xs", children: [
|
6724
6728
|
"\u0110\u01A1n v\u1ECB: ",
|
6725
|
-
/* @__PURE__ */
|
6729
|
+
/* @__PURE__ */ jsx49("strong", { children: unit })
|
6726
6730
|
] })
|
6727
6731
|
] }),
|
6728
|
-
/* @__PURE__ */
|
6732
|
+
/* @__PURE__ */ jsx49(Box2, { children: icons })
|
6729
6733
|
] }),
|
6730
|
-
/* @__PURE__ */
|
6731
|
-
|
6734
|
+
/* @__PURE__ */ jsxs27(
|
6735
|
+
Group11,
|
6732
6736
|
{
|
6733
6737
|
mt: "5",
|
6734
6738
|
align: "flex-end",
|
6735
6739
|
gap: "xs",
|
6736
6740
|
children: [
|
6737
|
-
/* @__PURE__ */
|
6738
|
-
|
6741
|
+
/* @__PURE__ */ jsx49(
|
6742
|
+
Text10,
|
6739
6743
|
{
|
6740
6744
|
fw: 700,
|
6741
6745
|
fz: "h1",
|
6742
6746
|
children: value
|
6743
6747
|
}
|
6744
6748
|
),
|
6745
|
-
/* @__PURE__ */
|
6746
|
-
|
6749
|
+
/* @__PURE__ */ jsxs27(
|
6750
|
+
Text10,
|
6747
6751
|
{
|
6748
6752
|
mb: "2",
|
6749
6753
|
c: diff > 0 ? "teal" : "red",
|
6750
6754
|
fz: "h2",
|
6751
6755
|
fw: 500,
|
6752
6756
|
children: [
|
6753
|
-
/* @__PURE__ */
|
6757
|
+
/* @__PURE__ */ jsxs27("span", { children: [
|
6754
6758
|
diff,
|
6755
6759
|
"%"
|
6756
6760
|
] }),
|
6757
|
-
diff > 0 ? /* @__PURE__ */
|
6761
|
+
diff > 0 ? /* @__PURE__ */ jsx49(IconArrowUpRight, {}) : /* @__PURE__ */ jsx49(IconArrowDownRight, {})
|
6758
6762
|
]
|
6759
6763
|
}
|
6760
6764
|
)
|
6761
6765
|
]
|
6762
6766
|
}
|
6763
6767
|
),
|
6764
|
-
/* @__PURE__ */
|
6765
|
-
/* @__PURE__ */
|
6766
|
-
/* @__PURE__ */
|
6768
|
+
/* @__PURE__ */ jsxs27(Group11, { justify: "space-between", children: [
|
6769
|
+
/* @__PURE__ */ jsx49(Text10, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6770
|
+
/* @__PURE__ */ jsx49(
|
6767
6771
|
Button13,
|
6768
6772
|
{
|
6769
6773
|
variant: "light",
|
@@ -6805,8 +6809,8 @@ function FaviconSetter() {
|
|
6805
6809
|
}
|
6806
6810
|
|
6807
6811
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
6808
|
-
import { Box as Box3, Fieldset as Fieldset4, Text as
|
6809
|
-
import { jsx as
|
6812
|
+
import { Box as Box3, Fieldset as Fieldset4, Text as Text11 } from "@mantine/core";
|
6813
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
6810
6814
|
function MyFieldset(_a) {
|
6811
6815
|
var _b = _a, {
|
6812
6816
|
children,
|
@@ -6815,17 +6819,17 @@ function MyFieldset(_a) {
|
|
6815
6819
|
"children",
|
6816
6820
|
"title"
|
6817
6821
|
]);
|
6818
|
-
return /* @__PURE__ */
|
6822
|
+
return /* @__PURE__ */ jsx50(
|
6819
6823
|
Fieldset4,
|
6820
6824
|
__spreadProps(__spreadValues({}, rest), {
|
6821
|
-
legend: /* @__PURE__ */
|
6825
|
+
legend: /* @__PURE__ */ jsx50(
|
6822
6826
|
Box3,
|
6823
6827
|
{
|
6824
6828
|
bg: "blue.4",
|
6825
6829
|
px: "xs",
|
6826
6830
|
py: 2,
|
6827
6831
|
style: { borderRadius: 4 },
|
6828
|
-
children: /* @__PURE__ */
|
6832
|
+
children: /* @__PURE__ */ jsx50(Text11, { c: "white", fw: 500, children: title3 })
|
6829
6833
|
}
|
6830
6834
|
),
|
6831
6835
|
children
|
@@ -6835,10 +6839,10 @@ function MyFieldset(_a) {
|
|
6835
6839
|
|
6836
6840
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
6837
6841
|
import { Textarea } from "@mantine/core";
|
6838
|
-
import { jsx as
|
6842
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
6839
6843
|
function MyTextArea(_a) {
|
6840
6844
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6841
|
-
return /* @__PURE__ */
|
6845
|
+
return /* @__PURE__ */ jsx51(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6842
6846
|
}
|
6843
6847
|
|
6844
6848
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
@@ -6854,7 +6858,7 @@ import Underline from "@tiptap/extension-underline";
|
|
6854
6858
|
import { useEditor } from "@tiptap/react";
|
6855
6859
|
import StarterKit from "@tiptap/starter-kit";
|
6856
6860
|
import { useEffect as useEffect6, useState as useState7 } from "react";
|
6857
|
-
import { jsx as
|
6861
|
+
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
6858
6862
|
function MyTextEditor(_a) {
|
6859
6863
|
var _b = _a, {
|
6860
6864
|
autoHiddenToolBar = false,
|
@@ -6956,43 +6960,43 @@ function MyTextEditor(_a) {
|
|
6956
6960
|
editor.commands.setContent(value);
|
6957
6961
|
}
|
6958
6962
|
}, [value, editor]);
|
6959
|
-
return /* @__PURE__ */
|
6960
|
-
/* @__PURE__ */
|
6961
|
-
/* @__PURE__ */
|
6962
|
-
/* @__PURE__ */
|
6963
|
-
/* @__PURE__ */
|
6964
|
-
/* @__PURE__ */
|
6965
|
-
/* @__PURE__ */
|
6966
|
-
/* @__PURE__ */
|
6967
|
-
/* @__PURE__ */
|
6968
|
-
/* @__PURE__ */
|
6963
|
+
return /* @__PURE__ */ jsx52(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs28(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
6964
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
6965
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6966
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Bold, {}),
|
6967
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Italic, {}),
|
6968
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Underline, {}),
|
6969
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Strikethrough, {}),
|
6970
|
+
/* @__PURE__ */ jsx52(RichTextEditor.ClearFormatting, {}),
|
6971
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Highlight, {}),
|
6972
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Code, {})
|
6969
6973
|
] }),
|
6970
|
-
/* @__PURE__ */
|
6971
|
-
/* @__PURE__ */
|
6972
|
-
/* @__PURE__ */
|
6973
|
-
/* @__PURE__ */
|
6974
|
-
/* @__PURE__ */
|
6974
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6975
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H1, {}),
|
6976
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H2, {}),
|
6977
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H3, {}),
|
6978
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H4, {})
|
6975
6979
|
] }),
|
6976
|
-
/* @__PURE__ */
|
6977
|
-
/* @__PURE__ */
|
6978
|
-
/* @__PURE__ */
|
6979
|
-
/* @__PURE__ */
|
6980
|
-
/* @__PURE__ */
|
6981
|
-
/* @__PURE__ */
|
6982
|
-
/* @__PURE__ */
|
6980
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6981
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Blockquote, {}),
|
6982
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Hr, {}),
|
6983
|
+
/* @__PURE__ */ jsx52(RichTextEditor.BulletList, {}),
|
6984
|
+
/* @__PURE__ */ jsx52(RichTextEditor.OrderedList, {}),
|
6985
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Subscript, {}),
|
6986
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Superscript, {})
|
6983
6987
|
] }),
|
6984
|
-
/* @__PURE__ */
|
6985
|
-
/* @__PURE__ */
|
6986
|
-
/* @__PURE__ */
|
6988
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6989
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Link, {}),
|
6990
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Unlink, {})
|
6987
6991
|
] }),
|
6988
|
-
/* @__PURE__ */
|
6989
|
-
/* @__PURE__ */
|
6990
|
-
/* @__PURE__ */
|
6991
|
-
/* @__PURE__ */
|
6992
|
-
/* @__PURE__ */
|
6992
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6993
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignLeft, {}),
|
6994
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignCenter, {}),
|
6995
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignJustify, {}),
|
6996
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignRight, {})
|
6993
6997
|
] })
|
6994
6998
|
] }),
|
6995
|
-
/* @__PURE__ */
|
6999
|
+
/* @__PURE__ */ jsx52(
|
6996
7000
|
ScrollArea2.Autosize,
|
6997
7001
|
{
|
6998
7002
|
onMouseDown: () => {
|
@@ -7007,7 +7011,7 @@ function MyTextEditor(_a) {
|
|
7007
7011
|
setHiddenToolBar(false);
|
7008
7012
|
},
|
7009
7013
|
style: { cursor: "text", maxHeight: "400px" },
|
7010
|
-
children: /* @__PURE__ */
|
7014
|
+
children: /* @__PURE__ */ jsx52(RichTextEditor.Content, { mih: contentHeight })
|
7011
7015
|
}
|
7012
7016
|
)
|
7013
7017
|
] }) });
|
@@ -7019,12 +7023,12 @@ import {
|
|
7019
7023
|
AppShell,
|
7020
7024
|
Badge as Badge2,
|
7021
7025
|
Divider as Divider2,
|
7022
|
-
Group as
|
7026
|
+
Group as Group12,
|
7023
7027
|
Image as Image3,
|
7024
7028
|
NavLink,
|
7025
7029
|
ScrollArea as ScrollArea3,
|
7026
7030
|
Select as Select4,
|
7027
|
-
Text as
|
7031
|
+
Text as Text12,
|
7028
7032
|
TextInput as TextInput2,
|
7029
7033
|
Tooltip as Tooltip5
|
7030
7034
|
} from "@mantine/core";
|
@@ -7038,22 +7042,22 @@ import {
|
|
7038
7042
|
} from "@tabler/icons-react";
|
7039
7043
|
import Link3 from "next/link";
|
7040
7044
|
import { usePathname as usePathname2 } from "next/navigation";
|
7041
|
-
import { Fragment as Fragment12, jsx as
|
7045
|
+
import { Fragment as Fragment12, jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
7042
7046
|
function getRightSection(status) {
|
7043
7047
|
if (status === "Prototype")
|
7044
|
-
return /* @__PURE__ */
|
7048
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
7045
7049
|
if (status === "New")
|
7046
|
-
return /* @__PURE__ */
|
7050
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
7047
7051
|
if (status === "Menu")
|
7048
|
-
return /* @__PURE__ */
|
7052
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
7049
7053
|
if (status === "Change")
|
7050
|
-
return /* @__PURE__ */
|
7054
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
7051
7055
|
return null;
|
7052
7056
|
}
|
7053
7057
|
function RenderNavLinks({ items }) {
|
7054
7058
|
const basicAppShellStore = useS_BasicAppShell();
|
7055
7059
|
const pathName = usePathname2();
|
7056
|
-
return /* @__PURE__ */
|
7060
|
+
return /* @__PURE__ */ jsx53(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx53(
|
7057
7061
|
NavLink,
|
7058
7062
|
{
|
7059
7063
|
active: item.link === pathName.split("/")[2],
|
@@ -7070,7 +7074,7 @@ function RenderNavLinks({ items }) {
|
|
7070
7074
|
basicAppShellStore.setProperty("title", item.label);
|
7071
7075
|
}
|
7072
7076
|
},
|
7073
|
-
children: item.links && /* @__PURE__ */
|
7077
|
+
children: item.links && /* @__PURE__ */ jsx53(RenderNavLinks, { items: item.links })
|
7074
7078
|
},
|
7075
7079
|
index
|
7076
7080
|
)) });
|
@@ -7128,7 +7132,7 @@ function BasicAppShell({ children, menu }) {
|
|
7128
7132
|
const basicAppShellStore = useS_BasicAppShell();
|
7129
7133
|
const media = useMediaQuery("(min-width: 72em)");
|
7130
7134
|
const selectMedia = useMediaQuery("(min-width: 80em)");
|
7131
|
-
return /* @__PURE__ */
|
7135
|
+
return /* @__PURE__ */ jsxs29(
|
7132
7136
|
AppShell,
|
7133
7137
|
{
|
7134
7138
|
header: { height: 60 },
|
@@ -7142,51 +7146,51 @@ function BasicAppShell({ children, menu }) {
|
|
7142
7146
|
},
|
7143
7147
|
padding: "md",
|
7144
7148
|
children: [
|
7145
|
-
/* @__PURE__ */
|
7146
|
-
/* @__PURE__ */
|
7147
|
-
media ? /* @__PURE__ */
|
7148
|
-
/* @__PURE__ */
|
7149
|
-
/* @__PURE__ */
|
7149
|
+
/* @__PURE__ */ jsxs29(AppShell.Header, { children: [
|
7150
|
+
/* @__PURE__ */ jsx53(MyAppSpotlight, { menu }),
|
7151
|
+
media ? /* @__PURE__ */ jsxs29(Group12, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
7152
|
+
/* @__PURE__ */ jsxs29(Group12, { h: "100%", children: [
|
7153
|
+
/* @__PURE__ */ jsx53(
|
7150
7154
|
Tooltip5,
|
7151
7155
|
{
|
7152
7156
|
label: basicAppShellStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu",
|
7153
|
-
children: /* @__PURE__ */
|
7157
|
+
children: /* @__PURE__ */ jsx53(
|
7154
7158
|
ActionIcon10,
|
7155
7159
|
{
|
7156
7160
|
size: "lg",
|
7157
7161
|
radius: "md",
|
7158
7162
|
variant: "default",
|
7159
7163
|
onClick: basicAppShellStore.toggle,
|
7160
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7164
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx53(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx53(IconLayoutSidebarLeftCollapse, {})
|
7161
7165
|
}
|
7162
7166
|
)
|
7163
7167
|
}
|
7164
7168
|
),
|
7165
|
-
/* @__PURE__ */
|
7169
|
+
/* @__PURE__ */ jsx53(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx53(
|
7166
7170
|
ActionIcon10,
|
7167
7171
|
{
|
7168
7172
|
size: "lg",
|
7169
7173
|
radius: "md",
|
7170
7174
|
variant: "default",
|
7171
7175
|
onClick: () => basicAppShellStore.clearGroupMenuOpenId(),
|
7172
|
-
children: /* @__PURE__ */
|
7176
|
+
children: /* @__PURE__ */ jsx53(IconLibraryMinus, {})
|
7173
7177
|
}
|
7174
7178
|
) })
|
7175
7179
|
] }),
|
7176
|
-
/* @__PURE__ */
|
7177
|
-
|
7180
|
+
/* @__PURE__ */ jsx53(
|
7181
|
+
Group12,
|
7178
7182
|
{
|
7179
7183
|
style: {
|
7180
7184
|
position: "absolute",
|
7181
7185
|
left: "50%",
|
7182
7186
|
transform: "translateX(-50%)"
|
7183
7187
|
},
|
7184
|
-
children: /* @__PURE__ */
|
7188
|
+
children: /* @__PURE__ */ jsx53(Text12, { c: "green", fw: "bold", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
|
7185
7189
|
}
|
7186
7190
|
),
|
7187
|
-
/* @__PURE__ */
|
7188
|
-
/* @__PURE__ */
|
7189
|
-
/* @__PURE__ */
|
7191
|
+
/* @__PURE__ */ jsxs29(Group12, { children: [
|
7192
|
+
/* @__PURE__ */ jsx53(Text12, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
7193
|
+
/* @__PURE__ */ jsx53(
|
7190
7194
|
Select4,
|
7191
7195
|
{
|
7192
7196
|
w: selectMedia ? 245 : 150,
|
@@ -7198,24 +7202,24 @@ function BasicAppShell({ children, menu }) {
|
|
7198
7202
|
]
|
7199
7203
|
}
|
7200
7204
|
),
|
7201
|
-
/* @__PURE__ */
|
7205
|
+
/* @__PURE__ */ jsx53(MySwitchTheme, {})
|
7202
7206
|
] })
|
7203
7207
|
] }) : (
|
7204
7208
|
// For mobile screens - simplified layout
|
7205
|
-
/* @__PURE__ */
|
7206
|
-
/* @__PURE__ */
|
7209
|
+
/* @__PURE__ */ jsxs29(Group12, { h: "100%", px: "md", justify: "space-between", children: [
|
7210
|
+
/* @__PURE__ */ jsx53(
|
7207
7211
|
ActionIcon10,
|
7208
7212
|
{
|
7209
7213
|
size: "lg",
|
7210
7214
|
radius: "md",
|
7211
7215
|
variant: "default",
|
7212
7216
|
onClick: basicAppShellStore.toggle,
|
7213
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7217
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx53(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx53(IconLayoutSidebarLeftCollapse, {})
|
7214
7218
|
}
|
7215
7219
|
),
|
7216
|
-
/* @__PURE__ */
|
7217
|
-
/* @__PURE__ */
|
7218
|
-
/* @__PURE__ */
|
7220
|
+
/* @__PURE__ */ jsx53(Text12, { c: "green", fw: "bold", size: "sm", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
|
7221
|
+
/* @__PURE__ */ jsxs29(Group12, { children: [
|
7222
|
+
/* @__PURE__ */ jsx53(
|
7219
7223
|
Select4,
|
7220
7224
|
{
|
7221
7225
|
w: 100,
|
@@ -7228,13 +7232,13 @@ function BasicAppShell({ children, menu }) {
|
|
7228
7232
|
]
|
7229
7233
|
}
|
7230
7234
|
),
|
7231
|
-
/* @__PURE__ */
|
7235
|
+
/* @__PURE__ */ jsx53(MySwitchTheme, {})
|
7232
7236
|
] })
|
7233
7237
|
] })
|
7234
7238
|
)
|
7235
7239
|
] }),
|
7236
|
-
/* @__PURE__ */
|
7237
|
-
/* @__PURE__ */
|
7240
|
+
/* @__PURE__ */ jsxs29(AppShell.Navbar, { children: [
|
7241
|
+
/* @__PURE__ */ jsx53(
|
7238
7242
|
TextInput2,
|
7239
7243
|
{
|
7240
7244
|
mt: "md",
|
@@ -7242,18 +7246,18 @@ function BasicAppShell({ children, menu }) {
|
|
7242
7246
|
mx: 10,
|
7243
7247
|
component: "button",
|
7244
7248
|
onClick: spotlight2.open,
|
7245
|
-
leftSection: /* @__PURE__ */
|
7249
|
+
leftSection: /* @__PURE__ */ jsx53(IconSearch2, {}),
|
7246
7250
|
children: "T\xECm ki\u1EBFm (Ctrl + K)"
|
7247
7251
|
}
|
7248
7252
|
),
|
7249
|
-
/* @__PURE__ */
|
7250
|
-
/* @__PURE__ */
|
7251
|
-
/* @__PURE__ */
|
7252
|
-
/* @__PURE__ */
|
7253
|
+
/* @__PURE__ */ jsxs29(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
7254
|
+
/* @__PURE__ */ jsx53(RenderNavLinks, { items: menu }),
|
7255
|
+
/* @__PURE__ */ jsx53(Divider2, {}),
|
7256
|
+
/* @__PURE__ */ jsx53(F_authenticate_Logout, {})
|
7253
7257
|
] }),
|
7254
|
-
/* @__PURE__ */
|
7255
|
-
/* @__PURE__ */
|
7256
|
-
/* @__PURE__ */
|
7258
|
+
/* @__PURE__ */ jsxs29(AppShell.Section, { p: "md", children: [
|
7259
|
+
/* @__PURE__ */ jsx53(Divider2, {}),
|
7260
|
+
/* @__PURE__ */ jsx53(
|
7257
7261
|
Image3,
|
7258
7262
|
{
|
7259
7263
|
fit: "contain",
|
@@ -7267,7 +7271,7 @@ function BasicAppShell({ children, menu }) {
|
|
7267
7271
|
)
|
7268
7272
|
] })
|
7269
7273
|
] }),
|
7270
|
-
/* @__PURE__ */
|
7274
|
+
/* @__PURE__ */ jsx53(
|
7271
7275
|
AppShell.Main,
|
7272
7276
|
{
|
7273
7277
|
bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7322,10 +7326,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
7322
7326
|
|
7323
7327
|
// src/components/Layouts/Container/MyContainer.tsx
|
7324
7328
|
import { Container, Flex as Flex4 } from "@mantine/core";
|
7325
|
-
import { jsx as
|
7329
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
7326
7330
|
function MyContainer(_a) {
|
7327
7331
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7328
|
-
return /* @__PURE__ */
|
7332
|
+
return /* @__PURE__ */ jsx54(Container, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx54(Flex4, { direction: "column", children }) }));
|
7329
7333
|
}
|
7330
7334
|
|
7331
7335
|
// src/constants/object/color.ts
|
@@ -7343,10 +7347,10 @@ import {
|
|
7343
7347
|
Container as Container2,
|
7344
7348
|
Divider as Divider3,
|
7345
7349
|
Drawer,
|
7346
|
-
Group as
|
7350
|
+
Group as Group13,
|
7347
7351
|
Image as Image4,
|
7348
7352
|
ScrollArea as ScrollArea4,
|
7349
|
-
Text as
|
7353
|
+
Text as Text13,
|
7350
7354
|
TextInput as TextInput3,
|
7351
7355
|
ThemeIcon,
|
7352
7356
|
UnstyledButton,
|
@@ -7378,7 +7382,7 @@ function useHeaderMegaMenuStore() {
|
|
7378
7382
|
}
|
7379
7383
|
|
7380
7384
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7381
|
-
import { jsx as
|
7385
|
+
import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
7382
7386
|
var mockdata = [
|
7383
7387
|
{
|
7384
7388
|
icon: IconCode,
|
@@ -7416,27 +7420,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7416
7420
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
7417
7421
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
7418
7422
|
const theme = useMantineTheme();
|
7419
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
7420
|
-
/* @__PURE__ */
|
7421
|
-
/* @__PURE__ */
|
7422
|
-
/* @__PURE__ */
|
7423
|
-
/* @__PURE__ */
|
7423
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx55(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs30(Group13, { wrap: "nowrap", align: "flex-start", children: [
|
7424
|
+
/* @__PURE__ */ jsx55(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx55(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
7425
|
+
/* @__PURE__ */ jsxs30("div", { children: [
|
7426
|
+
/* @__PURE__ */ jsx55(Text13, { size: "sm", fw: 500, children: item.title }),
|
7427
|
+
/* @__PURE__ */ jsx55(Text13, { size: "xs", c: "dimmed", children: item.description })
|
7424
7428
|
] })
|
7425
7429
|
] }) }, item.title));
|
7426
|
-
return /* @__PURE__ */
|
7427
|
-
/* @__PURE__ */
|
7428
|
-
/* @__PURE__ */
|
7429
|
-
/* @__PURE__ */
|
7430
|
-
/* @__PURE__ */
|
7430
|
+
return /* @__PURE__ */ jsxs30(Box4, { children: [
|
7431
|
+
/* @__PURE__ */ jsx55("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs30(Group13, { justify: "space-between", h: "100%", children: [
|
7432
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7433
|
+
/* @__PURE__ */ jsx55(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
7434
|
+
/* @__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
7435
|
] }),
|
7432
|
-
/* @__PURE__ */
|
7433
|
-
/* @__PURE__ */
|
7434
|
-
/* @__PURE__ */
|
7436
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7437
|
+
/* @__PURE__ */ jsx55(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx55(IconSearch3, {}), radius: "xl", w: "250px" }),
|
7438
|
+
/* @__PURE__ */ jsx55(MySwitchTheme, {})
|
7435
7439
|
] }),
|
7436
|
-
/* @__PURE__ */
|
7440
|
+
/* @__PURE__ */ jsx55(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
7437
7441
|
] }) }),
|
7438
|
-
/* @__PURE__ */
|
7439
|
-
/* @__PURE__ */
|
7442
|
+
/* @__PURE__ */ jsx55(Container2, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
7443
|
+
/* @__PURE__ */ jsx55(
|
7440
7444
|
Drawer,
|
7441
7445
|
{
|
7442
7446
|
opened: drawerOpened,
|
@@ -7446,10 +7450,10 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7446
7450
|
title: "Navigation",
|
7447
7451
|
hiddenFrom: "sm",
|
7448
7452
|
zIndex: 1e6,
|
7449
|
-
children: /* @__PURE__ */
|
7450
|
-
/* @__PURE__ */
|
7451
|
-
/* @__PURE__ */
|
7452
|
-
/* @__PURE__ */
|
7453
|
+
children: /* @__PURE__ */ jsxs30(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
7454
|
+
/* @__PURE__ */ jsx55(Divider3, { my: "sm" }),
|
7455
|
+
/* @__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)) }),
|
7456
|
+
/* @__PURE__ */ jsx55(Divider3, { my: "sm" })
|
7453
7457
|
] })
|
7454
7458
|
}
|
7455
7459
|
)
|
@@ -7457,8 +7461,22 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7457
7461
|
}
|
7458
7462
|
|
7459
7463
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7460
|
-
import { Container as Container3, Indicator, Title } from "@mantine/core";
|
7461
|
-
import { jsx as
|
7464
|
+
import { Code, Container as Container3, Divider as Divider4, Group as Group14, Indicator, Title } from "@mantine/core";
|
7465
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
7466
|
+
var getStatusColor = (status) => {
|
7467
|
+
switch (status) {
|
7468
|
+
case "Prototype":
|
7469
|
+
return "blue";
|
7470
|
+
case "Beta":
|
7471
|
+
return "orange";
|
7472
|
+
default:
|
7473
|
+
return "gray";
|
7474
|
+
}
|
7475
|
+
};
|
7476
|
+
var PageTitle = ({ title: title3, status }) => {
|
7477
|
+
const color = getStatusColor(status);
|
7478
|
+
return /* @__PURE__ */ jsx56(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx56(Title, { order: 4, children: title3 }) });
|
7479
|
+
};
|
7462
7480
|
function MyPageContent({
|
7463
7481
|
leftTopBar,
|
7464
7482
|
title: title3,
|
@@ -7469,58 +7487,69 @@ function MyPageContent({
|
|
7469
7487
|
}) {
|
7470
7488
|
const basicAppShellStore = useS_BasicAppShell();
|
7471
7489
|
const finalTitle = title3 || basicAppShellStore.state.title;
|
7472
|
-
return /* @__PURE__ */
|
7473
|
-
"
|
7490
|
+
return /* @__PURE__ */ jsxs31(Container3, { p: 0, fluid: true, children: [
|
7491
|
+
/* @__PURE__ */ jsxs31(Group14, { justify: "space-between", children: [
|
7492
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7493
|
+
canBack && /* @__PURE__ */ jsx56(MyButtonRouterBack, {}),
|
7494
|
+
/* @__PURE__ */ jsx56(PageTitle, { title: finalTitle, status }),
|
7495
|
+
leftTopBar
|
7496
|
+
] }),
|
7497
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7498
|
+
rightTopBar,
|
7499
|
+
/* @__PURE__ */ jsx56(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode })
|
7500
|
+
] })
|
7501
|
+
] }),
|
7502
|
+
/* @__PURE__ */ jsx56(Divider4, { my: "xs" }),
|
7474
7503
|
children
|
7475
7504
|
] });
|
7476
7505
|
}
|
7477
7506
|
|
7478
7507
|
// src/components/Layouts/Tab/MyTab.tsx
|
7479
7508
|
import { rem, Space as Space4, Tabs } from "@mantine/core";
|
7480
|
-
import { jsx as
|
7509
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
7481
7510
|
function MyTab(_a) {
|
7482
7511
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
7483
7512
|
const iconStyle = { width: rem(20), height: rem(20) };
|
7484
|
-
return /* @__PURE__ */
|
7485
|
-
/* @__PURE__ */
|
7486
|
-
return /* @__PURE__ */
|
7513
|
+
return /* @__PURE__ */ jsxs32(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
7514
|
+
/* @__PURE__ */ jsx57(Tabs.List, { children: tabList.map((item, idx) => {
|
7515
|
+
return /* @__PURE__ */ jsx57(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx57(item.icon, { style: iconStyle }), children: item.label }, idx);
|
7487
7516
|
}) }),
|
7488
|
-
/* @__PURE__ */
|
7517
|
+
/* @__PURE__ */ jsx57(Space4, { my: "md" }),
|
7489
7518
|
children
|
7490
7519
|
] }));
|
7491
7520
|
}
|
7492
7521
|
|
7493
7522
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
7494
|
-
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as
|
7523
|
+
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group15, Modal as Modal11 } from "@mantine/core";
|
7495
7524
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
7496
7525
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
7497
|
-
import { jsx as
|
7526
|
+
import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
7498
7527
|
function MyDataTableSelect(_a) {
|
7499
7528
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
7500
7529
|
const disc = useDisclosure11(false);
|
7501
7530
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
7502
|
-
return /* @__PURE__ */
|
7503
|
-
/* @__PURE__ */
|
7531
|
+
return /* @__PURE__ */ jsxs33(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
7532
|
+
/* @__PURE__ */ jsx58(
|
7504
7533
|
MyDataTable,
|
7505
7534
|
__spreadValues({
|
7506
7535
|
renderTopToolbarCustomActions: ({ table }) => {
|
7507
|
-
return /* @__PURE__ */
|
7536
|
+
return /* @__PURE__ */ jsxs33(Group15, { children: [
|
7508
7537
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
7509
|
-
/* @__PURE__ */
|
7538
|
+
/* @__PURE__ */ jsx58(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
7510
7539
|
] });
|
7511
7540
|
},
|
7512
7541
|
columns,
|
7513
7542
|
data: listState[0],
|
7514
7543
|
renderRowActions: ({ row }) => {
|
7515
|
-
return /* @__PURE__ */
|
7544
|
+
return /* @__PURE__ */ jsx58(MyCenterFull, { children: /* @__PURE__ */ jsx58(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx58(IconX2, {}) }) });
|
7516
7545
|
}
|
7517
7546
|
}, rest)
|
7518
7547
|
),
|
7519
|
-
/* @__PURE__ */
|
7548
|
+
/* @__PURE__ */ jsx58(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx58(
|
7520
7549
|
MyDataTable,
|
7521
7550
|
__spreadValues({
|
7522
7551
|
renderTopToolbarCustomActions: ({ table }) => {
|
7523
|
-
return /* @__PURE__ */
|
7552
|
+
return /* @__PURE__ */ jsx58(Button15, { onClick: () => {
|
7524
7553
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
7525
7554
|
disc[1].close();
|
7526
7555
|
}, children: "Ch\u1ECDn" });
|
@@ -7536,7 +7565,7 @@ function MyDataTableSelect(_a) {
|
|
7536
7565
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
7537
7566
|
import { Select as Select5 } from "@mantine/core";
|
7538
7567
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
7539
|
-
import { jsx as
|
7568
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
7540
7569
|
function MySelectAPIGet(_a) {
|
7541
7570
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
7542
7571
|
var _a2;
|
@@ -7555,7 +7584,7 @@ function MySelectAPIGet(_a) {
|
|
7555
7584
|
label: `${item.code}-${item.name}`
|
7556
7585
|
};
|
7557
7586
|
});
|
7558
|
-
return /* @__PURE__ */
|
7587
|
+
return /* @__PURE__ */ jsx59(
|
7559
7588
|
Select5,
|
7560
7589
|
__spreadValues({
|
7561
7590
|
label,
|
@@ -7570,7 +7599,7 @@ import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as Schedul
|
|
7570
7599
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
7571
7600
|
import { useState as useState8 } from "react";
|
7572
7601
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
7573
|
-
import { jsx as
|
7602
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
7574
7603
|
function MyScheduleX({
|
7575
7604
|
values,
|
7576
7605
|
timeGridEvent,
|
@@ -7595,7 +7624,7 @@ function MyScheduleX({
|
|
7595
7624
|
events: values,
|
7596
7625
|
plugins: [eventsService, eventModalPlugin]
|
7597
7626
|
});
|
7598
|
-
return /* @__PURE__ */
|
7627
|
+
return /* @__PURE__ */ jsx60(
|
7599
7628
|
ScheduleXCalendar2,
|
7600
7629
|
{
|
7601
7630
|
calendarApp: calendar,
|
@@ -7609,9 +7638,9 @@ function MyScheduleX({
|
|
7609
7638
|
|
7610
7639
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
7611
7640
|
import { Skeleton } from "@mantine/core";
|
7612
|
-
import { jsx as
|
7641
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
7613
7642
|
function MySkeletonTable({ h: h4 = 500 }) {
|
7614
|
-
return /* @__PURE__ */
|
7643
|
+
return /* @__PURE__ */ jsx61(Skeleton, { h: h4 });
|
7615
7644
|
}
|
7616
7645
|
|
7617
7646
|
// src/constants/object/documentTypes.ts
|
@@ -7626,7 +7655,7 @@ var OBJECT_DOCUMENT_TYPES = {
|
|
7626
7655
|
|
7627
7656
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
7628
7657
|
import { useForm as useForm2 } from "@mantine/form";
|
7629
|
-
import { jsx as
|
7658
|
+
import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
|
7630
7659
|
function F_core12196_Create({ FormTypeId }) {
|
7631
7660
|
const form = useForm2({
|
7632
7661
|
mode: "uncontrolled",
|
@@ -7638,7 +7667,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7638
7667
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
7639
7668
|
}
|
7640
7669
|
});
|
7641
|
-
return /* @__PURE__ */
|
7670
|
+
return /* @__PURE__ */ jsxs34(
|
7642
7671
|
MyButtonCreate,
|
7643
7672
|
{
|
7644
7673
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -7650,28 +7679,28 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7650
7679
|
}));
|
7651
7680
|
},
|
7652
7681
|
children: [
|
7653
|
-
/* @__PURE__ */
|
7682
|
+
/* @__PURE__ */ jsx62(
|
7654
7683
|
MyTextInput,
|
7655
7684
|
__spreadValues({
|
7656
7685
|
withAsterisk: true,
|
7657
7686
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
7658
7687
|
}, form.getInputProps("decisionCode"))
|
7659
7688
|
),
|
7660
|
-
/* @__PURE__ */
|
7689
|
+
/* @__PURE__ */ jsx62(
|
7661
7690
|
MyDateInput,
|
7662
7691
|
__spreadValues({
|
7663
7692
|
withAsterisk: true,
|
7664
7693
|
label: "Ng\xE0y ban h\xE0nh"
|
7665
7694
|
}, form.getInputProps("promulgateDate"))
|
7666
7695
|
),
|
7667
|
-
/* @__PURE__ */
|
7696
|
+
/* @__PURE__ */ jsx62(
|
7668
7697
|
MyTextInput,
|
7669
7698
|
__spreadValues({
|
7670
7699
|
withAsterisk: true,
|
7671
7700
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
7672
7701
|
}, form.getInputProps("name"))
|
7673
7702
|
),
|
7674
|
-
/* @__PURE__ */
|
7703
|
+
/* @__PURE__ */ jsx62(
|
7675
7704
|
F_core18256_Select,
|
7676
7705
|
__spreadValues({
|
7677
7706
|
withAsterisk: true,
|
@@ -7679,14 +7708,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7679
7708
|
documentTypeId: FormTypeId
|
7680
7709
|
}, form.getInputProps("documentAttributeId"))
|
7681
7710
|
),
|
7682
|
-
/* @__PURE__ */
|
7711
|
+
/* @__PURE__ */ jsx62(
|
7683
7712
|
MyFileInput,
|
7684
7713
|
__spreadValues({
|
7685
7714
|
withAsterisk: true,
|
7686
7715
|
label: "V\u0103n b\u1EA3n"
|
7687
7716
|
}, form.getInputProps("file"))
|
7688
7717
|
),
|
7689
|
-
/* @__PURE__ */
|
7718
|
+
/* @__PURE__ */ jsx62(
|
7690
7719
|
MyNumberInput,
|
7691
7720
|
__spreadValues({
|
7692
7721
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -7699,14 +7728,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7699
7728
|
|
7700
7729
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
7701
7730
|
import { Paper as Paper7, Space as Space5 } from "@mantine/core";
|
7702
|
-
import { jsx as
|
7731
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
7703
7732
|
function F_core12196({
|
7704
7733
|
FormTypeId
|
7705
7734
|
}) {
|
7706
|
-
return /* @__PURE__ */
|
7707
|
-
/* @__PURE__ */
|
7708
|
-
/* @__PURE__ */
|
7709
|
-
/* @__PURE__ */
|
7735
|
+
return /* @__PURE__ */ jsxs35(Paper7, { p: "md", children: [
|
7736
|
+
/* @__PURE__ */ jsx63(MyFlexEnd, { children: /* @__PURE__ */ jsx63(F_core12196_Create, { FormTypeId }) }),
|
7737
|
+
/* @__PURE__ */ jsx63(Space5, {}),
|
7738
|
+
/* @__PURE__ */ jsx63(F_core12196_Read, { FormTypeId })
|
7710
7739
|
] });
|
7711
7740
|
}
|
7712
7741
|
|
@@ -7717,7 +7746,7 @@ import { useMemo as useMemo4 } from "react";
|
|
7717
7746
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
7718
7747
|
import { FileInput as FileInput4, Textarea as Textarea2 } from "@mantine/core";
|
7719
7748
|
import { useForm as useForm3 } from "@mantine/form";
|
7720
|
-
import { jsx as
|
7749
|
+
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
7721
7750
|
function F_core16209_Create({
|
7722
7751
|
RefinementTypeId
|
7723
7752
|
}) {
|
@@ -7732,7 +7761,7 @@ function F_core16209_Create({
|
|
7732
7761
|
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"
|
7733
7762
|
}
|
7734
7763
|
});
|
7735
|
-
return /* @__PURE__ */
|
7764
|
+
return /* @__PURE__ */ jsxs36(
|
7736
7765
|
MyButtonCreate,
|
7737
7766
|
{
|
7738
7767
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -7745,43 +7774,43 @@ function F_core16209_Create({
|
|
7745
7774
|
}));
|
7746
7775
|
},
|
7747
7776
|
children: [
|
7748
|
-
/* @__PURE__ */
|
7777
|
+
/* @__PURE__ */ jsx64(
|
7749
7778
|
MyDateInput,
|
7750
7779
|
__spreadValues({
|
7751
7780
|
withAsterisk: true,
|
7752
7781
|
label: "Ng\xE0y h\u1ECDp"
|
7753
7782
|
}, form.getInputProps("meetingDate"))
|
7754
7783
|
),
|
7755
|
-
/* @__PURE__ */
|
7784
|
+
/* @__PURE__ */ jsx64(
|
7756
7785
|
MyTextInput,
|
7757
7786
|
__spreadValues({
|
7758
7787
|
withAsterisk: true,
|
7759
7788
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7760
7789
|
}, form.getInputProps("departmentName"))
|
7761
7790
|
),
|
7762
|
-
/* @__PURE__ */
|
7791
|
+
/* @__PURE__ */ jsx64(
|
7763
7792
|
MyTextInput,
|
7764
7793
|
__spreadValues({
|
7765
7794
|
withAsterisk: true,
|
7766
7795
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7767
7796
|
}, form.getInputProps("description"))
|
7768
7797
|
),
|
7769
|
-
/* @__PURE__ */
|
7770
|
-
/* @__PURE__ */
|
7798
|
+
/* @__PURE__ */ jsx64(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7799
|
+
/* @__PURE__ */ jsx64(
|
7771
7800
|
MyDateInput,
|
7772
7801
|
__spreadValues({
|
7773
7802
|
withAsterisk: true,
|
7774
7803
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7775
7804
|
}, form.getInputProps("startDate"))
|
7776
7805
|
),
|
7777
|
-
/* @__PURE__ */
|
7806
|
+
/* @__PURE__ */ jsx64(
|
7778
7807
|
MyDateInput,
|
7779
7808
|
__spreadValues({
|
7780
7809
|
withAsterisk: true,
|
7781
7810
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7782
7811
|
}, form.getInputProps("endDate"))
|
7783
7812
|
),
|
7784
|
-
/* @__PURE__ */
|
7813
|
+
/* @__PURE__ */ jsx64(
|
7785
7814
|
FileInput4,
|
7786
7815
|
__spreadValues({
|
7787
7816
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7789,19 +7818,19 @@ function F_core16209_Create({
|
|
7789
7818
|
label: "T\xE0i li\u1EC7u"
|
7790
7819
|
}, form.getInputProps("file"))
|
7791
7820
|
),
|
7792
|
-
/* @__PURE__ */
|
7821
|
+
/* @__PURE__ */ jsx64(Textarea2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7793
7822
|
]
|
7794
7823
|
}
|
7795
7824
|
);
|
7796
7825
|
}
|
7797
7826
|
|
7798
7827
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
7799
|
-
import { jsx as
|
7828
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
7800
7829
|
function F_core16209_Delete({
|
7801
7830
|
id,
|
7802
7831
|
contextData
|
7803
7832
|
}) {
|
7804
|
-
return /* @__PURE__ */
|
7833
|
+
return /* @__PURE__ */ jsx65(
|
7805
7834
|
MyActionIconDelete,
|
7806
7835
|
{
|
7807
7836
|
contextData,
|
@@ -7813,7 +7842,7 @@ function F_core16209_Delete({
|
|
7813
7842
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
7814
7843
|
import { FileInput as FileInput5, Textarea as Textarea3 } from "@mantine/core";
|
7815
7844
|
import { useForm as useForm4 } from "@mantine/form";
|
7816
|
-
import { jsx as
|
7845
|
+
import { jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
|
7817
7846
|
function F_core16209_Update({ values }) {
|
7818
7847
|
var _a;
|
7819
7848
|
const form = useForm4({
|
@@ -7836,7 +7865,7 @@ function F_core16209_Update({ values }) {
|
|
7836
7865
|
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"
|
7837
7866
|
}
|
7838
7867
|
});
|
7839
|
-
return /* @__PURE__ */
|
7868
|
+
return /* @__PURE__ */ jsxs37(
|
7840
7869
|
MyActionIconUpdate,
|
7841
7870
|
{
|
7842
7871
|
form,
|
@@ -7846,43 +7875,43 @@ function F_core16209_Update({ values }) {
|
|
7846
7875
|
}));
|
7847
7876
|
},
|
7848
7877
|
children: [
|
7849
|
-
/* @__PURE__ */
|
7878
|
+
/* @__PURE__ */ jsx66(
|
7850
7879
|
MyDateInput,
|
7851
7880
|
__spreadValues({
|
7852
7881
|
withAsterisk: true,
|
7853
7882
|
label: "Ng\xE0y h\u1ECDp"
|
7854
7883
|
}, form.getInputProps("meetingDate"))
|
7855
7884
|
),
|
7856
|
-
/* @__PURE__ */
|
7885
|
+
/* @__PURE__ */ jsx66(
|
7857
7886
|
MyTextInput,
|
7858
7887
|
__spreadValues({
|
7859
7888
|
withAsterisk: true,
|
7860
7889
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7861
7890
|
}, form.getInputProps("departmentName"))
|
7862
7891
|
),
|
7863
|
-
/* @__PURE__ */
|
7892
|
+
/* @__PURE__ */ jsx66(
|
7864
7893
|
MyTextInput,
|
7865
7894
|
__spreadValues({
|
7866
7895
|
withAsterisk: true,
|
7867
7896
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7868
7897
|
}, form.getInputProps("description"))
|
7869
7898
|
),
|
7870
|
-
/* @__PURE__ */
|
7871
|
-
/* @__PURE__ */
|
7899
|
+
/* @__PURE__ */ jsx66(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7900
|
+
/* @__PURE__ */ jsx66(
|
7872
7901
|
MyDateInput,
|
7873
7902
|
__spreadValues({
|
7874
7903
|
withAsterisk: true,
|
7875
7904
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7876
7905
|
}, form.getInputProps("startDate"))
|
7877
7906
|
),
|
7878
|
-
/* @__PURE__ */
|
7907
|
+
/* @__PURE__ */ jsx66(
|
7879
7908
|
MyDateInput,
|
7880
7909
|
__spreadValues({
|
7881
7910
|
withAsterisk: true,
|
7882
7911
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7883
7912
|
}, form.getInputProps("endDate"))
|
7884
7913
|
),
|
7885
|
-
/* @__PURE__ */
|
7914
|
+
/* @__PURE__ */ jsx66(
|
7886
7915
|
FileInput5,
|
7887
7916
|
__spreadValues({
|
7888
7917
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7890,14 +7919,14 @@ function F_core16209_Update({ values }) {
|
|
7890
7919
|
label: "T\xE0i li\u1EC7u"
|
7891
7920
|
}, form.getInputProps("file"))
|
7892
7921
|
),
|
7893
|
-
/* @__PURE__ */
|
7922
|
+
/* @__PURE__ */ jsx66(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7894
7923
|
]
|
7895
7924
|
}
|
7896
7925
|
);
|
7897
7926
|
}
|
7898
7927
|
|
7899
7928
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
7900
|
-
import { jsx as
|
7929
|
+
import { jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
|
7901
7930
|
function F_core16209({ RefinementTypeId }) {
|
7902
7931
|
const query = useQuery5({
|
7903
7932
|
queryKey: ["F_core16209_Read"],
|
@@ -7930,7 +7959,7 @@ function F_core16209({ RefinementTypeId }) {
|
|
7930
7959
|
{
|
7931
7960
|
header: "File",
|
7932
7961
|
accessorFn: (row) => {
|
7933
|
-
return /* @__PURE__ */
|
7962
|
+
return /* @__PURE__ */ jsx67(MyCenterFull, { children: /* @__PURE__ */ jsx67(MyButtonViewPDF, { id: row.id }) });
|
7934
7963
|
}
|
7935
7964
|
}
|
7936
7965
|
],
|
@@ -7938,16 +7967,16 @@ function F_core16209({ RefinementTypeId }) {
|
|
7938
7967
|
);
|
7939
7968
|
if (query.isLoading) return "Loading...";
|
7940
7969
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
7941
|
-
return /* @__PURE__ */
|
7970
|
+
return /* @__PURE__ */ jsx67(
|
7942
7971
|
MyDataTable,
|
7943
7972
|
{
|
7944
7973
|
columns,
|
7945
7974
|
data: query.data,
|
7946
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
7975
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx67(F_core16209_Create, { RefinementTypeId }),
|
7947
7976
|
renderRowActions: ({ row }) => {
|
7948
|
-
return /* @__PURE__ */
|
7949
|
-
/* @__PURE__ */
|
7950
|
-
/* @__PURE__ */
|
7977
|
+
return /* @__PURE__ */ jsxs38(MyCenterFull, { children: [
|
7978
|
+
/* @__PURE__ */ jsx67(F_core16209_Update, { values: row.original }),
|
7979
|
+
/* @__PURE__ */ jsx67(
|
7951
7980
|
F_core16209_Delete,
|
7952
7981
|
{
|
7953
7982
|
id: row.original.id,
|
@@ -7969,7 +7998,7 @@ import { useMemo as useMemo5 } from "react";
|
|
7969
7998
|
|
7970
7999
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
7971
8000
|
import { useForm as useForm5 } from "@mantine/form";
|
7972
|
-
import { jsx as
|
8001
|
+
import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
|
7973
8002
|
function F_core18256_Create({ documentType }) {
|
7974
8003
|
const form = useForm5({
|
7975
8004
|
mode: "uncontrolled",
|
@@ -7982,16 +8011,16 @@ function F_core18256_Create({ documentType }) {
|
|
7982
8011
|
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
7983
8012
|
}
|
7984
8013
|
});
|
7985
|
-
return /* @__PURE__ */
|
7986
|
-
/* @__PURE__ */
|
7987
|
-
/* @__PURE__ */
|
8014
|
+
return /* @__PURE__ */ jsxs39(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
8015
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8016
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
7988
8017
|
] });
|
7989
8018
|
}
|
7990
8019
|
|
7991
8020
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
7992
|
-
import { jsx as
|
8021
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
7993
8022
|
function F_core18256_Delete({ id }) {
|
7994
|
-
return /* @__PURE__ */
|
8023
|
+
return /* @__PURE__ */ jsx69(
|
7995
8024
|
MyActionIconDelete,
|
7996
8025
|
{
|
7997
8026
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
@@ -8001,19 +8030,19 @@ function F_core18256_Delete({ id }) {
|
|
8001
8030
|
|
8002
8031
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
8003
8032
|
import { useForm as useForm6 } from "@mantine/form";
|
8004
|
-
import { jsx as
|
8033
|
+
import { jsx as jsx70, jsxs as jsxs40 } from "react/jsx-runtime";
|
8005
8034
|
function F_core18256_Update({ values }) {
|
8006
8035
|
const form = useForm6({
|
8007
8036
|
initialValues: values
|
8008
8037
|
});
|
8009
|
-
return /* @__PURE__ */
|
8010
|
-
/* @__PURE__ */
|
8011
|
-
/* @__PURE__ */
|
8038
|
+
return /* @__PURE__ */ jsxs40(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
8039
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8040
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8012
8041
|
] });
|
8013
8042
|
}
|
8014
8043
|
|
8015
8044
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
8016
|
-
import { jsx as
|
8045
|
+
import { jsx as jsx71, jsxs as jsxs41 } from "react/jsx-runtime";
|
8017
8046
|
function F_core18256_Read({ documentType }) {
|
8018
8047
|
const documentAttributeQuery = useQuery6({
|
8019
8048
|
queryKey: ["F_core18256_Read", documentType],
|
@@ -8038,17 +8067,17 @@ function F_core18256_Read({ documentType }) {
|
|
8038
8067
|
);
|
8039
8068
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
8040
8069
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8041
|
-
return /* @__PURE__ */
|
8070
|
+
return /* @__PURE__ */ jsx71(
|
8042
8071
|
MyDataTable,
|
8043
8072
|
{
|
8044
8073
|
columns,
|
8045
8074
|
enableRowNumbers: true,
|
8046
8075
|
data: documentAttributeQuery.data,
|
8047
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
8076
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx71(F_core18256_Create, { documentType }),
|
8048
8077
|
renderRowActions: ({ row }) => {
|
8049
|
-
return /* @__PURE__ */
|
8050
|
-
/* @__PURE__ */
|
8051
|
-
/* @__PURE__ */
|
8078
|
+
return /* @__PURE__ */ jsxs41(MyCenterFull, { children: [
|
8079
|
+
/* @__PURE__ */ jsx71(F_core18256_Update, { values: row.original }),
|
8080
|
+
/* @__PURE__ */ jsx71(F_core18256_Delete, { id: row.original.id })
|
8052
8081
|
] });
|
8053
8082
|
}
|
8054
8083
|
}
|
@@ -8056,23 +8085,23 @@ function F_core18256_Read({ documentType }) {
|
|
8056
8085
|
}
|
8057
8086
|
|
8058
8087
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
8059
|
-
import { jsx as
|
8088
|
+
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
8060
8089
|
var tabData = [
|
8061
8090
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
8062
8091
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
8063
8092
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
8064
8093
|
];
|
8065
8094
|
function F_core18256() {
|
8066
|
-
return /* @__PURE__ */
|
8067
|
-
/* @__PURE__ */
|
8068
|
-
/* @__PURE__ */
|
8069
|
-
/* @__PURE__ */
|
8095
|
+
return /* @__PURE__ */ jsxs42(MyTab, { tabList: tabData, children: [
|
8096
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
8097
|
+
/* @__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 }) }),
|
8098
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
|
8070
8099
|
] });
|
8071
8100
|
}
|
8072
8101
|
|
8073
8102
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
8074
8103
|
import { useForm as useForm7 } from "@mantine/form";
|
8075
|
-
import { jsx as
|
8104
|
+
import { jsx as jsx73, jsxs as jsxs43 } from "react/jsx-runtime";
|
8076
8105
|
function F_core26965_Create({
|
8077
8106
|
RegulationsTypeId
|
8078
8107
|
}) {
|
@@ -8086,7 +8115,7 @@ function F_core26965_Create({
|
|
8086
8115
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8087
8116
|
}
|
8088
8117
|
});
|
8089
|
-
return /* @__PURE__ */
|
8118
|
+
return /* @__PURE__ */ jsxs43(
|
8090
8119
|
MyButtonCreate,
|
8091
8120
|
{
|
8092
8121
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8098,28 +8127,28 @@ function F_core26965_Create({
|
|
8098
8127
|
}));
|
8099
8128
|
},
|
8100
8129
|
children: [
|
8101
|
-
/* @__PURE__ */
|
8130
|
+
/* @__PURE__ */ jsx73(
|
8102
8131
|
MyTextInput,
|
8103
8132
|
__spreadValues({
|
8104
8133
|
withAsterisk: true,
|
8105
8134
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8106
8135
|
}, form.getInputProps("decisionCode"))
|
8107
8136
|
),
|
8108
|
-
/* @__PURE__ */
|
8137
|
+
/* @__PURE__ */ jsx73(
|
8109
8138
|
MyDateInput,
|
8110
8139
|
__spreadValues({
|
8111
8140
|
withAsterisk: true,
|
8112
8141
|
label: "Ng\xE0y ban h\xE0nh"
|
8113
8142
|
}, form.getInputProps("promulgateDate"))
|
8114
8143
|
),
|
8115
|
-
/* @__PURE__ */
|
8144
|
+
/* @__PURE__ */ jsx73(
|
8116
8145
|
MyTextInput,
|
8117
8146
|
__spreadValues({
|
8118
8147
|
withAsterisk: true,
|
8119
8148
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8120
8149
|
}, form.getInputProps("name"))
|
8121
8150
|
),
|
8122
|
-
/* @__PURE__ */
|
8151
|
+
/* @__PURE__ */ jsx73(
|
8123
8152
|
F_core18256_Select,
|
8124
8153
|
__spreadValues({
|
8125
8154
|
withAsterisk: true,
|
@@ -8127,14 +8156,14 @@ function F_core26965_Create({
|
|
8127
8156
|
documentTypeId: RegulationsTypeId
|
8128
8157
|
}, form.getInputProps("documentAttributeId"))
|
8129
8158
|
),
|
8130
|
-
/* @__PURE__ */
|
8159
|
+
/* @__PURE__ */ jsx73(
|
8131
8160
|
MyFileInput,
|
8132
8161
|
__spreadValues({
|
8133
8162
|
withAsterisk: true,
|
8134
8163
|
label: "V\u0103n b\u1EA3n"
|
8135
8164
|
}, form.getInputProps("file"))
|
8136
8165
|
),
|
8137
|
-
/* @__PURE__ */
|
8166
|
+
/* @__PURE__ */ jsx73(
|
8138
8167
|
MyNumberInput,
|
8139
8168
|
__spreadValues({
|
8140
8169
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8151,12 +8180,12 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
8151
8180
|
import { useMemo as useMemo6 } from "react";
|
8152
8181
|
|
8153
8182
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
8154
|
-
import { jsx as
|
8183
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
8155
8184
|
function F_core26965_Delete({
|
8156
8185
|
id,
|
8157
8186
|
contextData
|
8158
8187
|
}) {
|
8159
|
-
return /* @__PURE__ */
|
8188
|
+
return /* @__PURE__ */ jsx74(
|
8160
8189
|
MyActionIconDelete,
|
8161
8190
|
{
|
8162
8191
|
contextData,
|
@@ -8167,7 +8196,7 @@ function F_core26965_Delete({
|
|
8167
8196
|
|
8168
8197
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
8169
8198
|
import { useForm as useForm8 } from "@mantine/form";
|
8170
|
-
import { jsx as
|
8199
|
+
import { jsx as jsx75, jsxs as jsxs44 } from "react/jsx-runtime";
|
8171
8200
|
function F_core26965_Update({
|
8172
8201
|
values,
|
8173
8202
|
RegulationsTypeId
|
@@ -8189,7 +8218,7 @@ function F_core26965_Update({
|
|
8189
8218
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8190
8219
|
}
|
8191
8220
|
});
|
8192
|
-
return /* @__PURE__ */
|
8221
|
+
return /* @__PURE__ */ jsxs44(
|
8193
8222
|
MyActionIconUpdate,
|
8194
8223
|
{
|
8195
8224
|
form,
|
@@ -8199,28 +8228,28 @@ function F_core26965_Update({
|
|
8199
8228
|
}));
|
8200
8229
|
},
|
8201
8230
|
children: [
|
8202
|
-
/* @__PURE__ */
|
8231
|
+
/* @__PURE__ */ jsx75(
|
8203
8232
|
MyTextInput,
|
8204
8233
|
__spreadValues({
|
8205
8234
|
withAsterisk: true,
|
8206
8235
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8207
8236
|
}, form.getInputProps("decisionCode"))
|
8208
8237
|
),
|
8209
|
-
/* @__PURE__ */
|
8238
|
+
/* @__PURE__ */ jsx75(
|
8210
8239
|
MyDateInput,
|
8211
8240
|
__spreadValues({
|
8212
8241
|
withAsterisk: true,
|
8213
8242
|
label: "Ng\xE0y ban h\xE0nh"
|
8214
8243
|
}, form.getInputProps("promulgateDate"))
|
8215
8244
|
),
|
8216
|
-
/* @__PURE__ */
|
8245
|
+
/* @__PURE__ */ jsx75(
|
8217
8246
|
MyTextInput,
|
8218
8247
|
__spreadValues({
|
8219
8248
|
withAsterisk: true,
|
8220
8249
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8221
8250
|
}, form.getInputProps("name"))
|
8222
8251
|
),
|
8223
|
-
/* @__PURE__ */
|
8252
|
+
/* @__PURE__ */ jsx75(
|
8224
8253
|
F_core18256_Select,
|
8225
8254
|
__spreadValues({
|
8226
8255
|
withAsterisk: true,
|
@@ -8228,14 +8257,14 @@ function F_core26965_Update({
|
|
8228
8257
|
documentTypeId: RegulationsTypeId
|
8229
8258
|
}, form.getInputProps("documentAttributeId"))
|
8230
8259
|
),
|
8231
|
-
/* @__PURE__ */
|
8260
|
+
/* @__PURE__ */ jsx75(
|
8232
8261
|
MyFileInput,
|
8233
8262
|
__spreadValues({
|
8234
8263
|
withAsterisk: true,
|
8235
8264
|
label: "V\u0103n b\u1EA3n"
|
8236
8265
|
}, form.getInputProps("file"))
|
8237
8266
|
),
|
8238
|
-
/* @__PURE__ */
|
8267
|
+
/* @__PURE__ */ jsx75(
|
8239
8268
|
MyNumberInput,
|
8240
8269
|
__spreadValues({
|
8241
8270
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8247,7 +8276,7 @@ function F_core26965_Update({
|
|
8247
8276
|
}
|
8248
8277
|
|
8249
8278
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
8250
|
-
import { jsx as
|
8279
|
+
import { jsx as jsx76, jsxs as jsxs45 } from "react/jsx-runtime";
|
8251
8280
|
function F_core26965_Read({
|
8252
8281
|
RegulationsTypeId
|
8253
8282
|
}) {
|
@@ -8265,8 +8294,8 @@ function F_core26965_Read({
|
|
8265
8294
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8266
8295
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8267
8296
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8268
|
-
return /* @__PURE__ */
|
8269
|
-
return /* @__PURE__ */
|
8297
|
+
return /* @__PURE__ */ jsx76(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8298
|
+
return /* @__PURE__ */ jsx76(MyFlexColumn, { children: /* @__PURE__ */ jsx76(
|
8270
8299
|
Accordion2,
|
8271
8300
|
{
|
8272
8301
|
variant: "contained",
|
@@ -8277,7 +8306,7 @@ function F_core26965_Read({
|
|
8277
8306
|
}
|
8278
8307
|
),
|
8279
8308
|
multiple: true,
|
8280
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8309
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx76(
|
8281
8310
|
SubRead2,
|
8282
8311
|
{
|
8283
8312
|
name: item.name,
|
@@ -8320,7 +8349,7 @@ function SubRead2({
|
|
8320
8349
|
{
|
8321
8350
|
header: "File",
|
8322
8351
|
accessorFn: (row) => {
|
8323
|
-
return /* @__PURE__ */
|
8352
|
+
return /* @__PURE__ */ jsx76(MyCenterFull, { children: /* @__PURE__ */ jsx76(MyButtonViewPDF, { id: row.id }) });
|
8324
8353
|
}
|
8325
8354
|
}
|
8326
8355
|
],
|
@@ -8328,22 +8357,22 @@ function SubRead2({
|
|
8328
8357
|
);
|
8329
8358
|
if (documentQuery.isLoading) return "Loading...";
|
8330
8359
|
if (documentQuery.isError) return "Error!";
|
8331
|
-
return /* @__PURE__ */
|
8332
|
-
/* @__PURE__ */
|
8333
|
-
/* @__PURE__ */
|
8360
|
+
return /* @__PURE__ */ jsxs45(Accordion2.Item, { value: documentType.toString(), children: [
|
8361
|
+
/* @__PURE__ */ jsx76(Accordion2.Control, { children: name }),
|
8362
|
+
/* @__PURE__ */ jsx76(Accordion2.Panel, { children: /* @__PURE__ */ jsx76(
|
8334
8363
|
MyDataTable,
|
8335
8364
|
{
|
8336
8365
|
columns,
|
8337
8366
|
data: documentQuery.data,
|
8338
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8339
|
-
/* @__PURE__ */
|
8367
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs45(MyCenterFull, { children: [
|
8368
|
+
/* @__PURE__ */ jsx76(
|
8340
8369
|
F_core26965_Update,
|
8341
8370
|
{
|
8342
8371
|
RegulationsTypeId,
|
8343
8372
|
values: row.original
|
8344
8373
|
}
|
8345
8374
|
),
|
8346
|
-
/* @__PURE__ */
|
8375
|
+
/* @__PURE__ */ jsx76(
|
8347
8376
|
F_core26965_Delete,
|
8348
8377
|
{
|
8349
8378
|
id: row.original.id,
|
@@ -8358,18 +8387,18 @@ function SubRead2({
|
|
8358
8387
|
|
8359
8388
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
8360
8389
|
import { Paper as Paper8, Space as Space6 } from "@mantine/core";
|
8361
|
-
import { jsx as
|
8390
|
+
import { jsx as jsx77, jsxs as jsxs46 } from "react/jsx-runtime";
|
8362
8391
|
function F_core26965({ RegulationsTypeId }) {
|
8363
|
-
return /* @__PURE__ */
|
8364
|
-
/* @__PURE__ */
|
8365
|
-
/* @__PURE__ */
|
8366
|
-
/* @__PURE__ */
|
8392
|
+
return /* @__PURE__ */ jsxs46(Paper8, { p: "md", children: [
|
8393
|
+
/* @__PURE__ */ jsx77(MyFlexEnd, { children: /* @__PURE__ */ jsx77(F_core26965_Create, { RegulationsTypeId }) }),
|
8394
|
+
/* @__PURE__ */ jsx77(Space6, {}),
|
8395
|
+
/* @__PURE__ */ jsx77(F_core26965_Read, { RegulationsTypeId })
|
8367
8396
|
] });
|
8368
8397
|
}
|
8369
8398
|
|
8370
8399
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
8371
8400
|
import { useForm as useForm9 } from "@mantine/form";
|
8372
|
-
import { jsx as
|
8401
|
+
import { jsx as jsx78, jsxs as jsxs47 } from "react/jsx-runtime";
|
8373
8402
|
function F_core27311_Create({
|
8374
8403
|
WorkflowTypeId
|
8375
8404
|
}) {
|
@@ -8383,7 +8412,7 @@ function F_core27311_Create({
|
|
8383
8412
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8384
8413
|
}
|
8385
8414
|
});
|
8386
|
-
return /* @__PURE__ */
|
8415
|
+
return /* @__PURE__ */ jsxs47(
|
8387
8416
|
MyButtonCreate,
|
8388
8417
|
{
|
8389
8418
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8395,28 +8424,28 @@ function F_core27311_Create({
|
|
8395
8424
|
}));
|
8396
8425
|
},
|
8397
8426
|
children: [
|
8398
|
-
/* @__PURE__ */
|
8427
|
+
/* @__PURE__ */ jsx78(
|
8399
8428
|
MyTextInput,
|
8400
8429
|
__spreadValues({
|
8401
8430
|
withAsterisk: true,
|
8402
8431
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8403
8432
|
}, form.getInputProps("decisionCode"))
|
8404
8433
|
),
|
8405
|
-
/* @__PURE__ */
|
8434
|
+
/* @__PURE__ */ jsx78(
|
8406
8435
|
MyDateInput,
|
8407
8436
|
__spreadValues({
|
8408
8437
|
withAsterisk: true,
|
8409
8438
|
label: "Ng\xE0y ban h\xE0nh"
|
8410
8439
|
}, form.getInputProps("promulgateDate"))
|
8411
8440
|
),
|
8412
|
-
/* @__PURE__ */
|
8441
|
+
/* @__PURE__ */ jsx78(
|
8413
8442
|
MyTextInput,
|
8414
8443
|
__spreadValues({
|
8415
8444
|
withAsterisk: true,
|
8416
8445
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8417
8446
|
}, form.getInputProps("name"))
|
8418
8447
|
),
|
8419
|
-
/* @__PURE__ */
|
8448
|
+
/* @__PURE__ */ jsx78(
|
8420
8449
|
F_core18256_Select,
|
8421
8450
|
__spreadValues({
|
8422
8451
|
withAsterisk: true,
|
@@ -8424,14 +8453,14 @@ function F_core27311_Create({
|
|
8424
8453
|
documentTypeId: WorkflowTypeId
|
8425
8454
|
}, form.getInputProps("documentAttributeId"))
|
8426
8455
|
),
|
8427
|
-
/* @__PURE__ */
|
8456
|
+
/* @__PURE__ */ jsx78(
|
8428
8457
|
MyFileInput,
|
8429
8458
|
__spreadValues({
|
8430
8459
|
withAsterisk: true,
|
8431
8460
|
label: "V\u0103n b\u1EA3n"
|
8432
8461
|
}, form.getInputProps("file"))
|
8433
8462
|
),
|
8434
|
-
/* @__PURE__ */
|
8463
|
+
/* @__PURE__ */ jsx78(
|
8435
8464
|
MyNumberInput,
|
8436
8465
|
__spreadValues({
|
8437
8466
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8448,12 +8477,12 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
8448
8477
|
import { useMemo as useMemo7 } from "react";
|
8449
8478
|
|
8450
8479
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
8451
|
-
import { jsx as
|
8480
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
8452
8481
|
function F_core27311_Delete({
|
8453
8482
|
id,
|
8454
8483
|
contextData
|
8455
8484
|
}) {
|
8456
|
-
return /* @__PURE__ */
|
8485
|
+
return /* @__PURE__ */ jsx79(
|
8457
8486
|
MyActionIconDelete,
|
8458
8487
|
{
|
8459
8488
|
contextData,
|
@@ -8464,7 +8493,7 @@ function F_core27311_Delete({
|
|
8464
8493
|
|
8465
8494
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
8466
8495
|
import { useForm as useForm10 } from "@mantine/form";
|
8467
|
-
import { jsx as
|
8496
|
+
import { jsx as jsx80, jsxs as jsxs48 } from "react/jsx-runtime";
|
8468
8497
|
function F_core27311_Update({
|
8469
8498
|
values,
|
8470
8499
|
WorkflowTypeId
|
@@ -8486,7 +8515,7 @@ function F_core27311_Update({
|
|
8486
8515
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8487
8516
|
}
|
8488
8517
|
});
|
8489
|
-
return /* @__PURE__ */
|
8518
|
+
return /* @__PURE__ */ jsxs48(
|
8490
8519
|
MyActionIconUpdate,
|
8491
8520
|
{
|
8492
8521
|
form,
|
@@ -8496,28 +8525,28 @@ function F_core27311_Update({
|
|
8496
8525
|
}));
|
8497
8526
|
},
|
8498
8527
|
children: [
|
8499
|
-
/* @__PURE__ */
|
8528
|
+
/* @__PURE__ */ jsx80(
|
8500
8529
|
MyTextInput,
|
8501
8530
|
__spreadValues({
|
8502
8531
|
withAsterisk: true,
|
8503
8532
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8504
8533
|
}, form.getInputProps("decisionCode"))
|
8505
8534
|
),
|
8506
|
-
/* @__PURE__ */
|
8535
|
+
/* @__PURE__ */ jsx80(
|
8507
8536
|
MyDateInput,
|
8508
8537
|
__spreadValues({
|
8509
8538
|
withAsterisk: true,
|
8510
8539
|
label: "Ng\xE0y ban h\xE0nh"
|
8511
8540
|
}, form.getInputProps("promulgateDate"))
|
8512
8541
|
),
|
8513
|
-
/* @__PURE__ */
|
8542
|
+
/* @__PURE__ */ jsx80(
|
8514
8543
|
MyTextInput,
|
8515
8544
|
__spreadValues({
|
8516
8545
|
withAsterisk: true,
|
8517
8546
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8518
8547
|
}, form.getInputProps("name"))
|
8519
8548
|
),
|
8520
|
-
/* @__PURE__ */
|
8549
|
+
/* @__PURE__ */ jsx80(
|
8521
8550
|
F_core18256_Select,
|
8522
8551
|
__spreadValues({
|
8523
8552
|
withAsterisk: true,
|
@@ -8525,14 +8554,14 @@ function F_core27311_Update({
|
|
8525
8554
|
documentTypeId: WorkflowTypeId
|
8526
8555
|
}, form.getInputProps("documentAttributeId"))
|
8527
8556
|
),
|
8528
|
-
/* @__PURE__ */
|
8557
|
+
/* @__PURE__ */ jsx80(
|
8529
8558
|
MyFileInput,
|
8530
8559
|
__spreadValues({
|
8531
8560
|
withAsterisk: true,
|
8532
8561
|
label: "V\u0103n b\u1EA3n"
|
8533
8562
|
}, form.getInputProps("file"))
|
8534
8563
|
),
|
8535
|
-
/* @__PURE__ */
|
8564
|
+
/* @__PURE__ */ jsx80(
|
8536
8565
|
MyNumberInput,
|
8537
8566
|
__spreadValues({
|
8538
8567
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8544,7 +8573,7 @@ function F_core27311_Update({
|
|
8544
8573
|
}
|
8545
8574
|
|
8546
8575
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
8547
|
-
import { jsx as
|
8576
|
+
import { jsx as jsx81, jsxs as jsxs49 } from "react/jsx-runtime";
|
8548
8577
|
function F_core27311_Read({
|
8549
8578
|
WorkflowTypeId
|
8550
8579
|
}) {
|
@@ -8562,8 +8591,8 @@ function F_core27311_Read({
|
|
8562
8591
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8563
8592
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8564
8593
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8565
|
-
return /* @__PURE__ */
|
8566
|
-
return /* @__PURE__ */
|
8594
|
+
return /* @__PURE__ */ jsx81(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8595
|
+
return /* @__PURE__ */ jsx81(MyFlexColumn, { children: /* @__PURE__ */ jsx81(
|
8567
8596
|
Accordion3,
|
8568
8597
|
{
|
8569
8598
|
variant: "contained",
|
@@ -8574,7 +8603,7 @@ function F_core27311_Read({
|
|
8574
8603
|
}
|
8575
8604
|
),
|
8576
8605
|
multiple: true,
|
8577
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8606
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx81(
|
8578
8607
|
SubRead3,
|
8579
8608
|
{
|
8580
8609
|
name: item.name,
|
@@ -8617,7 +8646,7 @@ function SubRead3({
|
|
8617
8646
|
{
|
8618
8647
|
header: "File",
|
8619
8648
|
accessorFn: (row) => {
|
8620
|
-
return /* @__PURE__ */
|
8649
|
+
return /* @__PURE__ */ jsx81(MyCenterFull, { children: /* @__PURE__ */ jsx81(MyButtonViewPDF, { id: row.id }) });
|
8621
8650
|
}
|
8622
8651
|
}
|
8623
8652
|
],
|
@@ -8625,22 +8654,22 @@ function SubRead3({
|
|
8625
8654
|
);
|
8626
8655
|
if (documentQuery.isLoading) return "Loading...";
|
8627
8656
|
if (documentQuery.isError) return "Error!";
|
8628
|
-
return /* @__PURE__ */
|
8629
|
-
/* @__PURE__ */
|
8630
|
-
/* @__PURE__ */
|
8657
|
+
return /* @__PURE__ */ jsxs49(Accordion3.Item, { value: documentType.toString(), children: [
|
8658
|
+
/* @__PURE__ */ jsx81(Accordion3.Control, { children: name }),
|
8659
|
+
/* @__PURE__ */ jsx81(Accordion3.Panel, { children: /* @__PURE__ */ jsx81(
|
8631
8660
|
MyDataTable,
|
8632
8661
|
{
|
8633
8662
|
columns,
|
8634
8663
|
data: documentQuery.data,
|
8635
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8636
|
-
/* @__PURE__ */
|
8664
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs49(MyCenterFull, { children: [
|
8665
|
+
/* @__PURE__ */ jsx81(
|
8637
8666
|
F_core27311_Update,
|
8638
8667
|
{
|
8639
8668
|
WorkflowTypeId,
|
8640
8669
|
values: row.original
|
8641
8670
|
}
|
8642
8671
|
),
|
8643
|
-
/* @__PURE__ */
|
8672
|
+
/* @__PURE__ */ jsx81(
|
8644
8673
|
F_core27311_Delete,
|
8645
8674
|
{
|
8646
8675
|
id: row.original.id,
|
@@ -8655,34 +8684,34 @@ function SubRead3({
|
|
8655
8684
|
|
8656
8685
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
8657
8686
|
import { Paper as Paper9, Space as Space7 } from "@mantine/core";
|
8658
|
-
import { jsx as
|
8687
|
+
import { jsx as jsx82, jsxs as jsxs50 } from "react/jsx-runtime";
|
8659
8688
|
function F_core27311({
|
8660
8689
|
WorkflowTypeId
|
8661
8690
|
}) {
|
8662
|
-
return /* @__PURE__ */
|
8663
|
-
/* @__PURE__ */
|
8664
|
-
/* @__PURE__ */
|
8665
|
-
/* @__PURE__ */
|
8691
|
+
return /* @__PURE__ */ jsxs50(Paper9, { p: "md", children: [
|
8692
|
+
/* @__PURE__ */ jsx82(MyFlexEnd, { children: /* @__PURE__ */ jsx82(F_core27311_Create, { WorkflowTypeId }) }),
|
8693
|
+
/* @__PURE__ */ jsx82(Space7, {}),
|
8694
|
+
/* @__PURE__ */ jsx82(F_core27311_Read, { WorkflowTypeId })
|
8666
8695
|
] });
|
8667
8696
|
}
|
8668
8697
|
|
8669
8698
|
// src/modules-features/admin/core/core35923/F_core35923.tsx
|
8670
8699
|
import { Grid } from "@mantine/core";
|
8671
|
-
import { jsx as
|
8700
|
+
import { jsx as jsx83, jsxs as jsxs51 } from "react/jsx-runtime";
|
8672
8701
|
function F_core35923() {
|
8673
|
-
return /* @__PURE__ */
|
8674
|
-
/* @__PURE__ */
|
8675
|
-
/* @__PURE__ */
|
8676
|
-
/* @__PURE__ */
|
8677
|
-
/* @__PURE__ */
|
8678
|
-
/* @__PURE__ */
|
8679
|
-
/* @__PURE__ */
|
8680
|
-
/* @__PURE__ */
|
8681
|
-
/* @__PURE__ */
|
8682
|
-
/* @__PURE__ */
|
8683
|
-
/* @__PURE__ */
|
8702
|
+
return /* @__PURE__ */ jsxs51(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
8703
|
+
/* @__PURE__ */ jsxs51(Grid, { children: [
|
8704
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "M\xE3 module", disabled: true }) }),
|
8705
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "T\xEAn module" }) }),
|
8706
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
8707
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Email" }) }),
|
8708
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
8709
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
8710
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
8711
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
8712
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
8684
8713
|
] }),
|
8685
|
-
/* @__PURE__ */
|
8714
|
+
/* @__PURE__ */ jsx83(MyFlexEnd, { children: /* @__PURE__ */ jsx83(MyButton, { crudType: "save" }) })
|
8686
8715
|
] });
|
8687
8716
|
}
|
8688
8717
|
|
@@ -8743,7 +8772,7 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
8743
8772
|
}
|
8744
8773
|
|
8745
8774
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
8746
|
-
import { jsx as
|
8775
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
8747
8776
|
function F_core38677_ReadUser() {
|
8748
8777
|
const store = useS_core83092();
|
8749
8778
|
const query = useQ_Account_GetAdminAccount();
|
@@ -8776,7 +8805,7 @@ function F_core38677_ReadUser() {
|
|
8776
8805
|
}, [query.data]);
|
8777
8806
|
if (query.isLoading) return "Loading...";
|
8778
8807
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8779
|
-
return /* @__PURE__ */
|
8808
|
+
return /* @__PURE__ */ jsx84(Container4, { fluid: true, children: /* @__PURE__ */ jsx84(
|
8780
8809
|
MyDataTable,
|
8781
8810
|
{
|
8782
8811
|
columns,
|
@@ -8812,7 +8841,7 @@ function useQ_Account_GetAdminAccount() {
|
|
8812
8841
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
8813
8842
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
8814
8843
|
import { useEffect as useEffect8, useState as useState10 } from "react";
|
8815
|
-
import { jsx as
|
8844
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
8816
8845
|
function F_core38677_Save() {
|
8817
8846
|
const store = useS_core83092();
|
8818
8847
|
const disable = useState10(false);
|
@@ -8841,7 +8870,7 @@ function F_core38677_Save() {
|
|
8841
8870
|
}
|
8842
8871
|
disable[1](false);
|
8843
8872
|
}, [store.state.rolePermissions]);
|
8844
|
-
return /* @__PURE__ */
|
8873
|
+
return /* @__PURE__ */ jsx85(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
8845
8874
|
}
|
8846
8875
|
|
8847
8876
|
// src/data/menuData.ts
|
@@ -8876,11 +8905,11 @@ var menuData = [
|
|
8876
8905
|
];
|
8877
8906
|
|
8878
8907
|
// src/modules-features/admin/core/core38677/F_core38677_ViewMenuPermissions.tsx
|
8879
|
-
import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as
|
8908
|
+
import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as Text14 } from "@mantine/core";
|
8880
8909
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
8881
8910
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
8882
8911
|
import React2, { useEffect as useEffect9, useState as useState11 } from "react";
|
8883
|
-
import { jsx as
|
8912
|
+
import { jsx as jsx86, jsxs as jsxs52 } from "react/jsx-runtime";
|
8884
8913
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
8885
8914
|
function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
8886
8915
|
var _a, _b;
|
@@ -8895,8 +8924,8 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8895
8924
|
store.setProperty("rolePermissions", query.data);
|
8896
8925
|
}, [query.data]);
|
8897
8926
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
8898
|
-
return /* @__PURE__ */
|
8899
|
-
/* @__PURE__ */
|
8927
|
+
return /* @__PURE__ */ jsx86(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs52(Table3, { children: [
|
8928
|
+
/* @__PURE__ */ jsx86(
|
8900
8929
|
Table3.Thead,
|
8901
8930
|
{
|
8902
8931
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -8907,90 +8936,90 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8907
8936
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
8908
8937
|
border: "1px solid var(--mantine-color-gray-4)"
|
8909
8938
|
},
|
8910
|
-
children: /* @__PURE__ */
|
8911
|
-
/* @__PURE__ */
|
8912
|
-
/* @__PURE__ */
|
8913
|
-
/* @__PURE__ */
|
8939
|
+
children: /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
8940
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: title }),
|
8941
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8942
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
8914
8943
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
8915
8944
|
} }),
|
8916
|
-
/* @__PURE__ */
|
8945
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8917
8946
|
"Xem",
|
8918
|
-
/* @__PURE__ */
|
8947
|
+
/* @__PURE__ */ jsx86(IconEyeUp, { color: "gray" })
|
8919
8948
|
] })
|
8920
8949
|
] }) }),
|
8921
|
-
/* @__PURE__ */
|
8922
|
-
/* @__PURE__ */
|
8950
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8951
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
8923
8952
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
8924
8953
|
} }),
|
8925
|
-
/* @__PURE__ */
|
8954
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8926
8955
|
"Th\xEAm",
|
8927
|
-
/* @__PURE__ */
|
8956
|
+
/* @__PURE__ */ jsx86(IconPlus5, { color: "blue" })
|
8928
8957
|
] })
|
8929
8958
|
] }) }),
|
8930
|
-
/* @__PURE__ */
|
8931
|
-
/* @__PURE__ */
|
8959
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8960
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
8932
8961
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
8933
8962
|
} }),
|
8934
|
-
/* @__PURE__ */
|
8963
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8935
8964
|
"S\u1EEDa",
|
8936
|
-
/* @__PURE__ */
|
8965
|
+
/* @__PURE__ */ jsx86(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
8937
8966
|
] })
|
8938
8967
|
] }) }),
|
8939
|
-
/* @__PURE__ */
|
8940
|
-
/* @__PURE__ */
|
8968
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8969
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
8941
8970
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
8942
8971
|
} }),
|
8943
|
-
/* @__PURE__ */
|
8972
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8944
8973
|
"X\xF3a",
|
8945
|
-
/* @__PURE__ */
|
8974
|
+
/* @__PURE__ */ jsx86(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
8946
8975
|
] })
|
8947
8976
|
] }) }),
|
8948
|
-
/* @__PURE__ */
|
8949
|
-
/* @__PURE__ */
|
8977
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8978
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
8950
8979
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
8951
8980
|
} }),
|
8952
|
-
/* @__PURE__ */
|
8981
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8953
8982
|
"In",
|
8954
|
-
/* @__PURE__ */
|
8983
|
+
/* @__PURE__ */ jsx86(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
8955
8984
|
] })
|
8956
8985
|
] }) }),
|
8957
|
-
/* @__PURE__ */
|
8958
|
-
/* @__PURE__ */
|
8986
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8987
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
8959
8988
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
8960
8989
|
} }),
|
8961
|
-
/* @__PURE__ */
|
8990
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8962
8991
|
"Xu\u1EA5t",
|
8963
|
-
/* @__PURE__ */
|
8992
|
+
/* @__PURE__ */ jsx86(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
8964
8993
|
] })
|
8965
8994
|
] }) })
|
8966
8995
|
] })
|
8967
8996
|
}
|
8968
8997
|
),
|
8969
|
-
/* @__PURE__ */
|
8970
|
-
if (item.links == void 0) return /* @__PURE__ */
|
8971
|
-
/* @__PURE__ */
|
8972
|
-
/* @__PURE__ */
|
8973
|
-
/* @__PURE__ */
|
8974
|
-
/* @__PURE__ */
|
8975
|
-
/* @__PURE__ */
|
8976
|
-
/* @__PURE__ */
|
8977
|
-
/* @__PURE__ */
|
8998
|
+
/* @__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) => {
|
8999
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
9000
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: item.label }),
|
9001
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9002
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9003
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9004
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9005
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9006
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) })
|
8978
9007
|
] }, idx);
|
8979
|
-
return /* @__PURE__ */
|
8980
|
-
/* @__PURE__ */
|
9008
|
+
return /* @__PURE__ */ jsxs52(React2.Fragment, { children: [
|
9009
|
+
/* @__PURE__ */ jsx86(Table3.Tr, { children: /* @__PURE__ */ jsx86(
|
8981
9010
|
Table3.Td,
|
8982
9011
|
{
|
8983
9012
|
colSpan: 7,
|
8984
9013
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
8985
|
-
children: /* @__PURE__ */
|
9014
|
+
children: /* @__PURE__ */ jsx86(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
8986
9015
|
}
|
8987
9016
|
) }, item.label),
|
8988
9017
|
item.links.map(
|
8989
9018
|
(item2, idx2) => {
|
8990
9019
|
var _a2, _b2, _c, _d, _e, _f;
|
8991
|
-
return /* @__PURE__ */
|
8992
|
-
/* @__PURE__ */
|
8993
|
-
/* @__PURE__ */
|
9020
|
+
return /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
9021
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: item2.label }),
|
9022
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
8994
9023
|
Checkbox3,
|
8995
9024
|
{
|
8996
9025
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -9001,7 +9030,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9001
9030
|
}
|
9002
9031
|
}
|
9003
9032
|
) }) }),
|
9004
|
-
/* @__PURE__ */
|
9033
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9005
9034
|
Checkbox3,
|
9006
9035
|
{
|
9007
9036
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -9012,7 +9041,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9012
9041
|
}
|
9013
9042
|
}
|
9014
9043
|
) }) }),
|
9015
|
-
/* @__PURE__ */
|
9044
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9016
9045
|
Checkbox3,
|
9017
9046
|
{
|
9018
9047
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -9023,7 +9052,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9023
9052
|
}
|
9024
9053
|
}
|
9025
9054
|
) }) }),
|
9026
|
-
/* @__PURE__ */
|
9055
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9027
9056
|
Checkbox3,
|
9028
9057
|
{
|
9029
9058
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -9034,7 +9063,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9034
9063
|
}
|
9035
9064
|
}
|
9036
9065
|
) }) }),
|
9037
|
-
/* @__PURE__ */
|
9066
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9038
9067
|
Checkbox3,
|
9039
9068
|
{
|
9040
9069
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -9045,7 +9074,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9045
9074
|
}
|
9046
9075
|
}
|
9047
9076
|
) }) }),
|
9048
|
-
/* @__PURE__ */
|
9077
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9049
9078
|
Checkbox3,
|
9050
9079
|
{
|
9051
9080
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -9101,13 +9130,13 @@ function useGetUserPermission() {
|
|
9101
9130
|
}
|
9102
9131
|
|
9103
9132
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
9104
|
-
import { jsx as
|
9133
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
9105
9134
|
function F_core38677({ menuData: menuData2 }) {
|
9106
|
-
return /* @__PURE__ */
|
9107
|
-
/* @__PURE__ */
|
9108
|
-
/* @__PURE__ */
|
9109
|
-
/* @__PURE__ */
|
9110
|
-
/* @__PURE__ */
|
9135
|
+
return /* @__PURE__ */ jsxs53(Grid2, { grow: true, children: [
|
9136
|
+
/* @__PURE__ */ jsx87(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx87(F_core38677_ReadUser, {}) }),
|
9137
|
+
/* @__PURE__ */ jsx87(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs53(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
9138
|
+
/* @__PURE__ */ jsx87(ScrollArea6.Autosize, { h: "100%", children: /* @__PURE__ */ jsx87(Paper10, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx87(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
9139
|
+
/* @__PURE__ */ jsx87(F_core38677_Save, {})
|
9111
9140
|
] }) })
|
9112
9141
|
] });
|
9113
9142
|
}
|
@@ -9119,7 +9148,7 @@ import { useMemo as useMemo9 } from "react";
|
|
9119
9148
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
9120
9149
|
import { FileInput as FileInput6 } from "@mantine/core";
|
9121
9150
|
import { useForm as useForm11 } from "@mantine/form";
|
9122
|
-
import { jsx as
|
9151
|
+
import { jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
|
9123
9152
|
function F_core40207_Create({ GuidelineTypeId }) {
|
9124
9153
|
const form = useForm11({
|
9125
9154
|
mode: "uncontrolled",
|
@@ -9129,7 +9158,7 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9129
9158
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9130
9159
|
}
|
9131
9160
|
});
|
9132
|
-
return /* @__PURE__ */
|
9161
|
+
return /* @__PURE__ */ jsxs54(
|
9133
9162
|
MyButtonCreate,
|
9134
9163
|
{
|
9135
9164
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -9142,21 +9171,21 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9142
9171
|
}));
|
9143
9172
|
},
|
9144
9173
|
children: [
|
9145
|
-
/* @__PURE__ */
|
9174
|
+
/* @__PURE__ */ jsx88(
|
9146
9175
|
MyTextInput,
|
9147
9176
|
__spreadValues({
|
9148
9177
|
withAsterisk: true,
|
9149
9178
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9150
9179
|
}, form.getInputProps("code"))
|
9151
9180
|
),
|
9152
|
-
/* @__PURE__ */
|
9181
|
+
/* @__PURE__ */ jsx88(
|
9153
9182
|
MyTextInput,
|
9154
9183
|
__spreadValues({
|
9155
9184
|
withAsterisk: true,
|
9156
9185
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9157
9186
|
}, form.getInputProps("name"))
|
9158
9187
|
),
|
9159
|
-
/* @__PURE__ */
|
9188
|
+
/* @__PURE__ */ jsx88(
|
9160
9189
|
FileInput6,
|
9161
9190
|
__spreadValues({
|
9162
9191
|
withAsterisk: true,
|
@@ -9170,12 +9199,12 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9170
9199
|
}
|
9171
9200
|
|
9172
9201
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
9173
|
-
import { jsx as
|
9202
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
9174
9203
|
function F_core40207_Delete({
|
9175
9204
|
id,
|
9176
9205
|
contextData
|
9177
9206
|
}) {
|
9178
|
-
return /* @__PURE__ */
|
9207
|
+
return /* @__PURE__ */ jsx89(
|
9179
9208
|
MyActionIconDelete,
|
9180
9209
|
{
|
9181
9210
|
contextData,
|
@@ -9187,7 +9216,7 @@ function F_core40207_Delete({
|
|
9187
9216
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
9188
9217
|
import { FileInput as FileInput7 } from "@mantine/core";
|
9189
9218
|
import { useForm as useForm12 } from "@mantine/form";
|
9190
|
-
import { jsx as
|
9219
|
+
import { jsx as jsx90, jsxs as jsxs55 } from "react/jsx-runtime";
|
9191
9220
|
function F_core40207_Update({ values }) {
|
9192
9221
|
var _a;
|
9193
9222
|
const form = useForm12({
|
@@ -9204,7 +9233,7 @@ function F_core40207_Update({ values }) {
|
|
9204
9233
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9205
9234
|
}
|
9206
9235
|
});
|
9207
|
-
return /* @__PURE__ */
|
9236
|
+
return /* @__PURE__ */ jsxs55(
|
9208
9237
|
MyActionIconUpdate,
|
9209
9238
|
{
|
9210
9239
|
form,
|
@@ -9214,21 +9243,21 @@ function F_core40207_Update({ values }) {
|
|
9214
9243
|
}));
|
9215
9244
|
},
|
9216
9245
|
children: [
|
9217
|
-
/* @__PURE__ */
|
9246
|
+
/* @__PURE__ */ jsx90(
|
9218
9247
|
MyTextInput,
|
9219
9248
|
__spreadValues({
|
9220
9249
|
withAsterisk: true,
|
9221
9250
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9222
9251
|
}, form.getInputProps("code"))
|
9223
9252
|
),
|
9224
|
-
/* @__PURE__ */
|
9253
|
+
/* @__PURE__ */ jsx90(
|
9225
9254
|
MyTextInput,
|
9226
9255
|
__spreadValues({
|
9227
9256
|
withAsterisk: true,
|
9228
9257
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9229
9258
|
}, form.getInputProps("name"))
|
9230
9259
|
),
|
9231
|
-
/* @__PURE__ */
|
9260
|
+
/* @__PURE__ */ jsx90(
|
9232
9261
|
FileInput7,
|
9233
9262
|
__spreadValues({
|
9234
9263
|
withAsterisk: true,
|
@@ -9242,7 +9271,7 @@ function F_core40207_Update({ values }) {
|
|
9242
9271
|
}
|
9243
9272
|
|
9244
9273
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
9245
|
-
import { jsx as
|
9274
|
+
import { jsx as jsx91, jsxs as jsxs56 } from "react/jsx-runtime";
|
9246
9275
|
function F_core40207_Read({ GuidelineTypeId }) {
|
9247
9276
|
const query = useQuery11({
|
9248
9277
|
queryKey: ["F_core40207_Read"],
|
@@ -9267,7 +9296,7 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9267
9296
|
{
|
9268
9297
|
header: "File",
|
9269
9298
|
accessorFn: (row) => {
|
9270
|
-
return /* @__PURE__ */
|
9299
|
+
return /* @__PURE__ */ jsx91(MyCenterFull, { children: /* @__PURE__ */ jsx91(MyButtonViewPDF, { id: row.id }) });
|
9271
9300
|
}
|
9272
9301
|
}
|
9273
9302
|
],
|
@@ -9275,16 +9304,16 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9275
9304
|
);
|
9276
9305
|
if (query.isLoading) return "Loading...";
|
9277
9306
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
9278
|
-
return /* @__PURE__ */
|
9307
|
+
return /* @__PURE__ */ jsx91(
|
9279
9308
|
MyDataTable,
|
9280
9309
|
{
|
9281
9310
|
columns,
|
9282
9311
|
data: query.data,
|
9283
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9312
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx91(F_core40207_Create, { GuidelineTypeId }),
|
9284
9313
|
renderRowActions: ({ row }) => {
|
9285
|
-
return /* @__PURE__ */
|
9286
|
-
/* @__PURE__ */
|
9287
|
-
/* @__PURE__ */
|
9314
|
+
return /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
|
9315
|
+
/* @__PURE__ */ jsx91(F_core40207_Update, { values: row.original }),
|
9316
|
+
/* @__PURE__ */ jsx91(
|
9288
9317
|
F_core40207_Delete,
|
9289
9318
|
{
|
9290
9319
|
id: row.original.id,
|
@@ -9298,21 +9327,21 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9298
9327
|
}
|
9299
9328
|
|
9300
9329
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
9301
|
-
import { jsx as
|
9330
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
9302
9331
|
function F_core40207({ GuidelineTypeId }) {
|
9303
|
-
return /* @__PURE__ */
|
9332
|
+
return /* @__PURE__ */ jsx92(F_core40207_Read, { GuidelineTypeId });
|
9304
9333
|
}
|
9305
9334
|
|
9306
9335
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9307
|
-
import { Group as
|
9336
|
+
import { Group as Group16 } from "@mantine/core";
|
9308
9337
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
9309
9338
|
import { useMemo as useMemo10 } from "react";
|
9310
9339
|
|
9311
9340
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
9312
|
-
import { jsx as
|
9341
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
9313
9342
|
var ENDPOINT = "/Role/Delete";
|
9314
9343
|
function F_core47643_Delete({ values }) {
|
9315
|
-
return /* @__PURE__ */
|
9344
|
+
return /* @__PURE__ */ jsx93(
|
9316
9345
|
MyActionIconDelete,
|
9317
9346
|
{
|
9318
9347
|
contextData: values.code,
|
@@ -9323,28 +9352,28 @@ function F_core47643_Delete({ values }) {
|
|
9323
9352
|
|
9324
9353
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
9325
9354
|
import { useForm as useForm13 } from "@mantine/form";
|
9326
|
-
import { jsx as
|
9355
|
+
import { jsx as jsx94, jsxs as jsxs57 } from "react/jsx-runtime";
|
9327
9356
|
function F_core47643_Form({ values }) {
|
9328
9357
|
const form = useForm13({
|
9329
9358
|
mode: "uncontrolled",
|
9330
9359
|
initialValues: values
|
9331
9360
|
});
|
9332
|
-
if (values) return /* @__PURE__ */
|
9361
|
+
if (values) return /* @__PURE__ */ jsxs57(MyActionIconUpdate, { form, onSubmit: async () => {
|
9333
9362
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
9334
9363
|
}, children: [
|
9335
|
-
/* @__PURE__ */
|
9336
|
-
/* @__PURE__ */
|
9364
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
9365
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9337
9366
|
] });
|
9338
|
-
return /* @__PURE__ */
|
9367
|
+
return /* @__PURE__ */ jsxs57(MyButtonCreate, { form, onSubmit: async () => {
|
9339
9368
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
9340
9369
|
}, children: [
|
9341
|
-
/* @__PURE__ */
|
9342
|
-
/* @__PURE__ */
|
9370
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
9371
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9343
9372
|
] });
|
9344
9373
|
}
|
9345
9374
|
|
9346
9375
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9347
|
-
import { jsx as
|
9376
|
+
import { jsx as jsx95, jsxs as jsxs58 } from "react/jsx-runtime";
|
9348
9377
|
function F_core47643_Read() {
|
9349
9378
|
const query = useQ_core47643_GetAdminRole();
|
9350
9379
|
const columns = useMemo10(() => [
|
@@ -9359,15 +9388,15 @@ function F_core47643_Read() {
|
|
9359
9388
|
], []);
|
9360
9389
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
9361
9390
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
9362
|
-
return /* @__PURE__ */
|
9391
|
+
return /* @__PURE__ */ jsx95(
|
9363
9392
|
MyDataTable,
|
9364
9393
|
{
|
9365
9394
|
data: query.data,
|
9366
9395
|
columns,
|
9367
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9368
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9369
|
-
/* @__PURE__ */
|
9370
|
-
/* @__PURE__ */
|
9396
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx95(Group16, { children: /* @__PURE__ */ jsx95(F_core47643_Form, {}) }),
|
9397
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs58(MyCenterFull, { children: [
|
9398
|
+
/* @__PURE__ */ jsx95(F_core47643_Form, { values: row.original }),
|
9399
|
+
/* @__PURE__ */ jsx95(F_core47643_Delete, { values: row.original })
|
9371
9400
|
] })
|
9372
9401
|
}
|
9373
9402
|
);
|
@@ -9384,9 +9413,9 @@ function useQ_core47643_GetAdminRole() {
|
|
9384
9413
|
}
|
9385
9414
|
|
9386
9415
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
9387
|
-
import { jsx as
|
9416
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
9388
9417
|
function F_core47643() {
|
9389
|
-
return /* @__PURE__ */
|
9418
|
+
return /* @__PURE__ */ jsx96(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx96(F_core47643_Read, {}) });
|
9390
9419
|
}
|
9391
9420
|
|
9392
9421
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
@@ -9410,7 +9439,7 @@ function useS_core60524() {
|
|
9410
9439
|
}
|
9411
9440
|
|
9412
9441
|
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
9413
|
-
import { jsx as
|
9442
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
9414
9443
|
function F_core60524_Save({
|
9415
9444
|
form
|
9416
9445
|
}) {
|
@@ -9444,7 +9473,7 @@ function F_core60524_Save({
|
|
9444
9473
|
}
|
9445
9474
|
});
|
9446
9475
|
}
|
9447
|
-
return /* @__PURE__ */
|
9476
|
+
return /* @__PURE__ */ jsx97(
|
9448
9477
|
MyButton,
|
9449
9478
|
{
|
9450
9479
|
disabled: !form.isDirty(),
|
@@ -9455,7 +9484,7 @@ function F_core60524_Save({
|
|
9455
9484
|
}
|
9456
9485
|
|
9457
9486
|
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
9458
|
-
import { jsx as
|
9487
|
+
import { jsx as jsx98, jsxs as jsxs59 } from "react/jsx-runtime";
|
9459
9488
|
function F_core60524_Form() {
|
9460
9489
|
const query = useQ_AQ_GetAQModule();
|
9461
9490
|
const form = useForm14({
|
@@ -9486,14 +9515,14 @@ function F_core60524_Form() {
|
|
9486
9515
|
form.setInitialValues(values);
|
9487
9516
|
form.setValues(values);
|
9488
9517
|
}, [query.data]);
|
9489
|
-
return /* @__PURE__ */
|
9490
|
-
/* @__PURE__ */
|
9491
|
-
/* @__PURE__ */
|
9492
|
-
/* @__PURE__ */
|
9493
|
-
/* @__PURE__ */
|
9494
|
-
/* @__PURE__ */
|
9495
|
-
/* @__PURE__ */
|
9496
|
-
/* @__PURE__ */
|
9518
|
+
return /* @__PURE__ */ jsxs59(Paper11, { p: "md", children: [
|
9519
|
+
/* @__PURE__ */ jsxs59(Grid3, { children: [
|
9520
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
9521
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
9522
|
+
/* @__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" })) }),
|
9523
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
9524
|
+
/* @__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" })) }),
|
9525
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9497
9526
|
MyDateInput,
|
9498
9527
|
{
|
9499
9528
|
value: form.getValues().registrationDate,
|
@@ -9501,7 +9530,7 @@ function F_core60524_Form() {
|
|
9501
9530
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
9502
9531
|
}
|
9503
9532
|
) }),
|
9504
|
-
/* @__PURE__ */
|
9533
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9505
9534
|
MyDateInput,
|
9506
9535
|
{
|
9507
9536
|
value: form.getValues().limiteDate,
|
@@ -9509,7 +9538,7 @@ function F_core60524_Form() {
|
|
9509
9538
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
9510
9539
|
}
|
9511
9540
|
) }),
|
9512
|
-
/* @__PURE__ */
|
9541
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9513
9542
|
MyFileInput,
|
9514
9543
|
{
|
9515
9544
|
accept: "image/png,image/jpeg",
|
@@ -9521,7 +9550,7 @@ function F_core60524_Form() {
|
|
9521
9550
|
}
|
9522
9551
|
}
|
9523
9552
|
) }),
|
9524
|
-
/* @__PURE__ */
|
9553
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9525
9554
|
MyFileInput,
|
9526
9555
|
{
|
9527
9556
|
accept: "image/png,image/jpeg",
|
@@ -9534,18 +9563,18 @@ function F_core60524_Form() {
|
|
9534
9563
|
}
|
9535
9564
|
) })
|
9536
9565
|
] }),
|
9537
|
-
/* @__PURE__ */
|
9566
|
+
/* @__PURE__ */ jsx98(MyFlexEnd, { children: /* @__PURE__ */ jsx98(F_core60524_Save, { form }) })
|
9538
9567
|
] });
|
9539
9568
|
}
|
9540
9569
|
|
9541
9570
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
9542
|
-
import { jsx as
|
9571
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
9543
9572
|
function F_core60524({ AQModuleId }) {
|
9544
9573
|
const store = useS_core60524();
|
9545
9574
|
useEffect11(() => {
|
9546
9575
|
store.setProperty("AQModuleId", AQModuleId);
|
9547
9576
|
}, []);
|
9548
|
-
return /* @__PURE__ */
|
9577
|
+
return /* @__PURE__ */ jsx99(F_core60524_Form, {});
|
9549
9578
|
}
|
9550
9579
|
|
9551
9580
|
// src/constants/enum/ENUM_EMAILCONFIG.ts
|
@@ -9564,7 +9593,7 @@ import { useMemo as useMemo11 } from "react";
|
|
9564
9593
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
9565
9594
|
import { PasswordInput } from "@mantine/core";
|
9566
9595
|
import { useForm as useForm15 } from "@mantine/form";
|
9567
|
-
import { jsx as
|
9596
|
+
import { jsx as jsx100, jsxs as jsxs60 } from "react/jsx-runtime";
|
9568
9597
|
function F_core64229_Form({ values }) {
|
9569
9598
|
const form = useForm15({
|
9570
9599
|
mode: "uncontrolled",
|
@@ -9590,27 +9619,27 @@ function F_core64229_Form({ values }) {
|
|
9590
9619
|
"password": formValues.password
|
9591
9620
|
});
|
9592
9621
|
}
|
9593
|
-
if (values) return /* @__PURE__ */
|
9622
|
+
if (values) return /* @__PURE__ */ jsx100(
|
9594
9623
|
MyActionIconUpdate,
|
9595
9624
|
{
|
9596
9625
|
form,
|
9597
9626
|
onSubmit: handleSubmit,
|
9598
|
-
children: /* @__PURE__ */
|
9627
|
+
children: /* @__PURE__ */ jsx100(FormInput, { form })
|
9599
9628
|
}
|
9600
9629
|
);
|
9601
|
-
return /* @__PURE__ */
|
9630
|
+
return /* @__PURE__ */ jsx100(
|
9602
9631
|
MyButtonCreate,
|
9603
9632
|
{
|
9604
9633
|
form,
|
9605
9634
|
onSubmit: handleSubmit,
|
9606
|
-
children: /* @__PURE__ */
|
9635
|
+
children: /* @__PURE__ */ jsx100(FormInput, { form })
|
9607
9636
|
}
|
9608
9637
|
);
|
9609
9638
|
}
|
9610
9639
|
function FormInput({ form }) {
|
9611
9640
|
var _a, _b;
|
9612
|
-
return /* @__PURE__ */
|
9613
|
-
/* @__PURE__ */
|
9641
|
+
return /* @__PURE__ */ jsxs60(MyFlexColumn, { children: [
|
9642
|
+
/* @__PURE__ */ jsx100(
|
9614
9643
|
MySelect,
|
9615
9644
|
__spreadProps(__spreadValues({
|
9616
9645
|
label: "Ph\xE2n h\u1EC7",
|
@@ -9619,25 +9648,25 @@ function FormInput({ form }) {
|
|
9619
9648
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
9620
9649
|
})
|
9621
9650
|
),
|
9622
|
-
/* @__PURE__ */
|
9651
|
+
/* @__PURE__ */ jsx100(
|
9623
9652
|
MyTextInput,
|
9624
9653
|
__spreadValues({
|
9625
9654
|
label: "Host mail server"
|
9626
9655
|
}, form.getInputProps("hostMailServer"))
|
9627
9656
|
),
|
9628
|
-
/* @__PURE__ */
|
9657
|
+
/* @__PURE__ */ jsx100(
|
9629
9658
|
MyNumberInput,
|
9630
9659
|
__spreadValues({
|
9631
9660
|
label: "Outgoing port"
|
9632
9661
|
}, form.getInputProps("outgoingPort"))
|
9633
9662
|
),
|
9634
|
-
/* @__PURE__ */
|
9663
|
+
/* @__PURE__ */ jsx100(
|
9635
9664
|
MyNumberInput,
|
9636
9665
|
__spreadValues({
|
9637
9666
|
label: "Incoming port"
|
9638
9667
|
}, form.getInputProps("incomingPort"))
|
9639
9668
|
),
|
9640
|
-
/* @__PURE__ */
|
9669
|
+
/* @__PURE__ */ jsx100(
|
9641
9670
|
MySelect,
|
9642
9671
|
{
|
9643
9672
|
label: "SSL",
|
@@ -9646,13 +9675,13 @@ function FormInput({ form }) {
|
|
9646
9675
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
9647
9676
|
}
|
9648
9677
|
),
|
9649
|
-
/* @__PURE__ */
|
9678
|
+
/* @__PURE__ */ jsx100(
|
9650
9679
|
MyTextInput,
|
9651
9680
|
__spreadValues({
|
9652
9681
|
label: "Username"
|
9653
9682
|
}, form.getInputProps("userName"))
|
9654
9683
|
),
|
9655
|
-
/* @__PURE__ */
|
9684
|
+
/* @__PURE__ */ jsx100(
|
9656
9685
|
PasswordInput,
|
9657
9686
|
__spreadValues({
|
9658
9687
|
label: "Password",
|
@@ -9663,9 +9692,9 @@ function FormInput({ form }) {
|
|
9663
9692
|
}
|
9664
9693
|
|
9665
9694
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
9666
|
-
import { jsx as
|
9695
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
9667
9696
|
function F_core64229_Delete({ values }) {
|
9668
|
-
return /* @__PURE__ */
|
9697
|
+
return /* @__PURE__ */ jsx101(
|
9669
9698
|
MyActionIconDelete,
|
9670
9699
|
{
|
9671
9700
|
contextData: values == null ? void 0 : values.code,
|
@@ -9679,7 +9708,7 @@ function F_core64229_Delete({ values }) {
|
|
9679
9708
|
}
|
9680
9709
|
|
9681
9710
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
9682
|
-
import { jsx as
|
9711
|
+
import { jsx as jsx102, jsxs as jsxs61 } from "react/jsx-runtime";
|
9683
9712
|
function F_core64229_Read() {
|
9684
9713
|
const query = useQuery13({
|
9685
9714
|
queryKey: ["F_core64229_Read"],
|
@@ -9724,39 +9753,39 @@ function F_core64229_Read() {
|
|
9724
9753
|
}
|
9725
9754
|
], []);
|
9726
9755
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
9727
|
-
return /* @__PURE__ */
|
9756
|
+
return /* @__PURE__ */ jsx102(
|
9728
9757
|
MyDataTable,
|
9729
9758
|
{
|
9730
9759
|
columns,
|
9731
9760
|
data: query.data,
|
9732
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9733
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9734
|
-
/* @__PURE__ */
|
9735
|
-
/* @__PURE__ */
|
9761
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx102(F_core64229_Form, {}),
|
9762
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs61(MyCenterFull, { children: [
|
9763
|
+
/* @__PURE__ */ jsx102(F_core64229_Form, { values: row.original }),
|
9764
|
+
/* @__PURE__ */ jsx102(F_core64229_Delete, { values: row.original })
|
9736
9765
|
] })
|
9737
9766
|
}
|
9738
9767
|
);
|
9739
9768
|
}
|
9740
9769
|
|
9741
9770
|
// src/modules-features/admin/core/core64229/F_core64229.tsx
|
9742
|
-
import { jsx as
|
9771
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
9743
9772
|
function F_core64229() {
|
9744
|
-
return /* @__PURE__ */
|
9773
|
+
return /* @__PURE__ */ jsx103(F_core64229_Read, {});
|
9745
9774
|
}
|
9746
9775
|
|
9747
9776
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9748
|
-
import { Button as Button17, Group as
|
9777
|
+
import { Button as Button17, Group as Group18 } from "@mantine/core";
|
9749
9778
|
import { IconShield } from "@tabler/icons-react";
|
9750
9779
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
9751
9780
|
import { useRouter as useRouter3 } from "next/navigation";
|
9752
9781
|
import { useMemo as useMemo13, useState as useState13 } from "react";
|
9753
9782
|
|
9754
9783
|
// src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
|
9755
|
-
import { Button as Button16, Fieldset as Fieldset6, Group as
|
9784
|
+
import { Button as Button16, Fieldset as Fieldset6, Group as Group17, Table as Table4 } from "@mantine/core";
|
9756
9785
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
9757
9786
|
import { useMutation as useMutation7, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
9758
9787
|
import { useEffect as useEffect12, useMemo as useMemo12, useState as useState12 } from "react";
|
9759
|
-
import { jsx as
|
9788
|
+
import { jsx as jsx104, jsxs as jsxs62 } from "react/jsx-runtime";
|
9760
9789
|
function F_core71678_ChangePermission({ user }) {
|
9761
9790
|
const disc = useDisclosure12();
|
9762
9791
|
const queryClient = useQueryClient5();
|
@@ -9803,32 +9832,32 @@ function F_core71678_ChangePermission({ user }) {
|
|
9803
9832
|
}, {});
|
9804
9833
|
setRowSelection(result);
|
9805
9834
|
}, []);
|
9806
|
-
return /* @__PURE__ */
|
9807
|
-
/* @__PURE__ */
|
9835
|
+
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: [
|
9836
|
+
/* @__PURE__ */ jsx104(
|
9808
9837
|
Table4,
|
9809
9838
|
{
|
9810
9839
|
w: "100%",
|
9811
9840
|
variant: "vertical",
|
9812
9841
|
layout: "fixed",
|
9813
|
-
children: /* @__PURE__ */
|
9814
|
-
/* @__PURE__ */
|
9815
|
-
/* @__PURE__ */
|
9816
|
-
/* @__PURE__ */
|
9842
|
+
children: /* @__PURE__ */ jsxs62(Table4.Tbody, { children: [
|
9843
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9844
|
+
/* @__PURE__ */ jsx104(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
9845
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.fullName })
|
9817
9846
|
] }),
|
9818
|
-
/* @__PURE__ */
|
9819
|
-
/* @__PURE__ */
|
9820
|
-
/* @__PURE__ */
|
9847
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9848
|
+
/* @__PURE__ */ jsx104(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
9849
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.userName })
|
9821
9850
|
] }),
|
9822
|
-
/* @__PURE__ */
|
9823
|
-
/* @__PURE__ */
|
9824
|
-
/* @__PURE__ */
|
9851
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9852
|
+
/* @__PURE__ */ jsx104(Table4.Th, { children: "Email:" }),
|
9853
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.email })
|
9825
9854
|
] })
|
9826
9855
|
] })
|
9827
9856
|
}
|
9828
9857
|
),
|
9829
9858
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
9830
9859
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
9831
|
-
/* @__PURE__ */
|
9860
|
+
/* @__PURE__ */ jsx104(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx104(
|
9832
9861
|
MyDataTable,
|
9833
9862
|
{
|
9834
9863
|
enableRowSelection: true,
|
@@ -9852,13 +9881,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
9852
9881
|
data: query.data
|
9853
9882
|
}
|
9854
9883
|
) }),
|
9855
|
-
/* @__PURE__ */
|
9884
|
+
/* @__PURE__ */ jsx104(Group17, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx104(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
|
9856
9885
|
] });
|
9857
9886
|
}
|
9858
9887
|
|
9859
9888
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
9860
9889
|
import { useForm as useForm16 } from "@mantine/form";
|
9861
|
-
import { jsx as
|
9890
|
+
import { jsx as jsx105, jsxs as jsxs63 } from "react/jsx-runtime";
|
9862
9891
|
var ENDPOINT2 = "/Account/create";
|
9863
9892
|
function F_core71678_Create() {
|
9864
9893
|
const form = useForm16({
|
@@ -9886,21 +9915,21 @@ function F_core71678_Create() {
|
|
9886
9915
|
AQModuleId: 1002
|
9887
9916
|
}));
|
9888
9917
|
}
|
9889
|
-
return /* @__PURE__ */
|
9890
|
-
/* @__PURE__ */
|
9891
|
-
/* @__PURE__ */
|
9892
|
-
/* @__PURE__ */
|
9893
|
-
/* @__PURE__ */
|
9894
|
-
/* @__PURE__ */
|
9895
|
-
/* @__PURE__ */
|
9918
|
+
return /* @__PURE__ */ jsxs63(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
9919
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9920
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9921
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
9922
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9923
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
9924
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9896
9925
|
] });
|
9897
9926
|
}
|
9898
9927
|
|
9899
9928
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
9900
|
-
import { jsx as
|
9929
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
9901
9930
|
var ENDPOINT3 = "/Account/delete";
|
9902
9931
|
function F_core71678_Delete({ id, code }) {
|
9903
|
-
return /* @__PURE__ */
|
9932
|
+
return /* @__PURE__ */ jsx106(
|
9904
9933
|
MyActionIconDelete,
|
9905
9934
|
{
|
9906
9935
|
contextData: code,
|
@@ -9912,7 +9941,7 @@ function F_core71678_Delete({ id, code }) {
|
|
9912
9941
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
9913
9942
|
import { useForm as useForm17 } from "@mantine/form";
|
9914
9943
|
import { useEffect as useEffect13 } from "react";
|
9915
|
-
import { jsx as
|
9944
|
+
import { jsx as jsx107, jsxs as jsxs64 } from "react/jsx-runtime";
|
9916
9945
|
function F_core71678_Update({ user }) {
|
9917
9946
|
const form = useForm17({
|
9918
9947
|
initialValues: user
|
@@ -9920,7 +9949,7 @@ function F_core71678_Update({ user }) {
|
|
9920
9949
|
useEffect13(() => {
|
9921
9950
|
console.log(form.values);
|
9922
9951
|
}, [form.values]);
|
9923
|
-
return /* @__PURE__ */
|
9952
|
+
return /* @__PURE__ */ jsx107(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
9924
9953
|
return await baseAxios_default.post(
|
9925
9954
|
"/Account/update",
|
9926
9955
|
__spreadProps(__spreadValues({}, values), {
|
@@ -9932,17 +9961,17 @@ function F_core71678_Update({ user }) {
|
|
9932
9961
|
workingUnitId: null
|
9933
9962
|
})
|
9934
9963
|
);
|
9935
|
-
}, children: /* @__PURE__ */
|
9936
|
-
/* @__PURE__ */
|
9937
|
-
/* @__PURE__ */
|
9938
|
-
/* @__PURE__ */
|
9939
|
-
/* @__PURE__ */
|
9940
|
-
/* @__PURE__ */
|
9964
|
+
}, children: /* @__PURE__ */ jsxs64(MyFlexColumn, { children: [
|
9965
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9966
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9967
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9968
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
9969
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9941
9970
|
] }) });
|
9942
9971
|
}
|
9943
9972
|
|
9944
9973
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9945
|
-
import { jsx as
|
9974
|
+
import { jsx as jsx108, jsxs as jsxs65 } from "react/jsx-runtime";
|
9946
9975
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
9947
9976
|
function F_core71678_Read() {
|
9948
9977
|
const router = useRouter3();
|
@@ -9974,25 +10003,25 @@ function F_core71678_Read() {
|
|
9974
10003
|
},
|
9975
10004
|
{
|
9976
10005
|
header: "Quy\u1EC1n",
|
9977
|
-
accessorFn: (row) => /* @__PURE__ */
|
10006
|
+
accessorFn: (row) => /* @__PURE__ */ jsx108(F_core71678_ChangePermission, { user: row })
|
9978
10007
|
}
|
9979
10008
|
],
|
9980
10009
|
[]
|
9981
10010
|
);
|
9982
10011
|
if (AllUserQuery.isLoading) return "Loading...";
|
9983
|
-
return /* @__PURE__ */
|
10012
|
+
return /* @__PURE__ */ jsx108(
|
9984
10013
|
MyDataTable,
|
9985
10014
|
{
|
9986
10015
|
columns,
|
9987
10016
|
data: AllUserQuery.data,
|
9988
10017
|
renderTopToolbarCustomActions: () => {
|
9989
|
-
return /* @__PURE__ */
|
9990
|
-
/* @__PURE__ */
|
9991
|
-
/* @__PURE__ */
|
10018
|
+
return /* @__PURE__ */ jsxs65(Group18, { children: [
|
10019
|
+
/* @__PURE__ */ jsx108(F_core71678_Create, {}),
|
10020
|
+
/* @__PURE__ */ jsx108(
|
9992
10021
|
Button17,
|
9993
10022
|
{
|
9994
10023
|
color: "violet",
|
9995
|
-
leftSection: /* @__PURE__ */
|
10024
|
+
leftSection: /* @__PURE__ */ jsx108(IconShield, {}),
|
9996
10025
|
onClick: () => {
|
9997
10026
|
router.push("core47643");
|
9998
10027
|
},
|
@@ -10002,9 +10031,9 @@ function F_core71678_Read() {
|
|
10002
10031
|
] });
|
10003
10032
|
},
|
10004
10033
|
renderRowActions: ({ row }) => {
|
10005
|
-
return /* @__PURE__ */
|
10006
|
-
/* @__PURE__ */
|
10007
|
-
/* @__PURE__ */
|
10034
|
+
return /* @__PURE__ */ jsxs65(MyCenterFull, { children: [
|
10035
|
+
/* @__PURE__ */ jsx108(F_core71678_Update, { user: row.original }),
|
10036
|
+
/* @__PURE__ */ jsx108(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
10008
10037
|
] });
|
10009
10038
|
}
|
10010
10039
|
}
|
@@ -10012,9 +10041,9 @@ function F_core71678_Read() {
|
|
10012
10041
|
}
|
10013
10042
|
|
10014
10043
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
10015
|
-
import { jsx as
|
10044
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
10016
10045
|
function F_core71678() {
|
10017
|
-
return /* @__PURE__ */
|
10046
|
+
return /* @__PURE__ */ jsx109(F_core71678_Read, {});
|
10018
10047
|
}
|
10019
10048
|
|
10020
10049
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
@@ -10024,7 +10053,7 @@ import { useMemo as useMemo14 } from "react";
|
|
10024
10053
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
10025
10054
|
import { FileInput as FileInput8 } from "@mantine/core";
|
10026
10055
|
import { useForm as useForm18 } from "@mantine/form";
|
10027
|
-
import { jsx as
|
10056
|
+
import { jsx as jsx110, jsxs as jsxs66 } from "react/jsx-runtime";
|
10028
10057
|
function F_core76318_Create({ SecurityTypeId }) {
|
10029
10058
|
const form = useForm18({
|
10030
10059
|
mode: "uncontrolled",
|
@@ -10035,7 +10064,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10035
10064
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10036
10065
|
}
|
10037
10066
|
});
|
10038
|
-
return /* @__PURE__ */
|
10067
|
+
return /* @__PURE__ */ jsxs66(
|
10039
10068
|
MyButtonCreate,
|
10040
10069
|
{
|
10041
10070
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -10048,28 +10077,28 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10048
10077
|
}));
|
10049
10078
|
},
|
10050
10079
|
children: [
|
10051
|
-
/* @__PURE__ */
|
10080
|
+
/* @__PURE__ */ jsx110(
|
10052
10081
|
MyTextInput,
|
10053
10082
|
__spreadValues({
|
10054
10083
|
withAsterisk: true,
|
10055
10084
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10056
10085
|
}, form.getInputProps("decisionCode"))
|
10057
10086
|
),
|
10058
|
-
/* @__PURE__ */
|
10087
|
+
/* @__PURE__ */ jsx110(
|
10059
10088
|
MyDateInput,
|
10060
10089
|
__spreadValues({
|
10061
10090
|
withAsterisk: true,
|
10062
10091
|
label: "Ng\xE0y ban h\xE0nh"
|
10063
10092
|
}, form.getInputProps("promulgateDate"))
|
10064
10093
|
),
|
10065
|
-
/* @__PURE__ */
|
10094
|
+
/* @__PURE__ */ jsx110(
|
10066
10095
|
MyTextInput,
|
10067
10096
|
__spreadValues({
|
10068
10097
|
withAsterisk: true,
|
10069
10098
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10070
10099
|
}, form.getInputProps("name"))
|
10071
10100
|
),
|
10072
|
-
/* @__PURE__ */
|
10101
|
+
/* @__PURE__ */ jsx110(
|
10073
10102
|
FileInput8,
|
10074
10103
|
__spreadValues({
|
10075
10104
|
withAsterisk: true,
|
@@ -10083,12 +10112,12 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10083
10112
|
}
|
10084
10113
|
|
10085
10114
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
10086
|
-
import { jsx as
|
10115
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
10087
10116
|
function F_core76318_Delete({
|
10088
10117
|
id,
|
10089
10118
|
contextData
|
10090
10119
|
}) {
|
10091
|
-
return /* @__PURE__ */
|
10120
|
+
return /* @__PURE__ */ jsx111(
|
10092
10121
|
MyActionIconDelete,
|
10093
10122
|
{
|
10094
10123
|
contextData,
|
@@ -10100,7 +10129,7 @@ function F_core76318_Delete({
|
|
10100
10129
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
10101
10130
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
10102
10131
|
import { useForm as useForm19 } from "@mantine/form";
|
10103
|
-
import { jsx as
|
10132
|
+
import { jsx as jsx112, jsxs as jsxs67 } from "react/jsx-runtime";
|
10104
10133
|
function F_core76318_Update({ values }) {
|
10105
10134
|
var _a;
|
10106
10135
|
const form = useForm19({
|
@@ -10119,7 +10148,7 @@ function F_core76318_Update({ values }) {
|
|
10119
10148
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10120
10149
|
}
|
10121
10150
|
});
|
10122
|
-
return /* @__PURE__ */
|
10151
|
+
return /* @__PURE__ */ jsxs67(
|
10123
10152
|
MyActionIconUpdate,
|
10124
10153
|
{
|
10125
10154
|
form,
|
@@ -10129,28 +10158,28 @@ function F_core76318_Update({ values }) {
|
|
10129
10158
|
}));
|
10130
10159
|
},
|
10131
10160
|
children: [
|
10132
|
-
/* @__PURE__ */
|
10161
|
+
/* @__PURE__ */ jsx112(
|
10133
10162
|
TextInput5,
|
10134
10163
|
__spreadValues({
|
10135
10164
|
withAsterisk: true,
|
10136
10165
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10137
10166
|
}, form.getInputProps("decisionCode"))
|
10138
10167
|
),
|
10139
|
-
/* @__PURE__ */
|
10168
|
+
/* @__PURE__ */ jsx112(
|
10140
10169
|
MyDateInput,
|
10141
10170
|
__spreadValues({
|
10142
10171
|
withAsterisk: true,
|
10143
10172
|
label: "Ng\xE0y ban h\xE0nh"
|
10144
10173
|
}, form.getInputProps("promulgateDate"))
|
10145
10174
|
),
|
10146
|
-
/* @__PURE__ */
|
10175
|
+
/* @__PURE__ */ jsx112(
|
10147
10176
|
TextInput5,
|
10148
10177
|
__spreadValues({
|
10149
10178
|
withAsterisk: true,
|
10150
10179
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10151
10180
|
}, form.getInputProps("name"))
|
10152
10181
|
),
|
10153
|
-
/* @__PURE__ */
|
10182
|
+
/* @__PURE__ */ jsx112(
|
10154
10183
|
FileInput9,
|
10155
10184
|
__spreadValues({
|
10156
10185
|
withAsterisk: true,
|
@@ -10163,7 +10192,7 @@ function F_core76318_Update({ values }) {
|
|
10163
10192
|
}
|
10164
10193
|
|
10165
10194
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
10166
|
-
import { jsx as
|
10195
|
+
import { jsx as jsx113, jsxs as jsxs68 } from "react/jsx-runtime";
|
10167
10196
|
function F_core76318_Read({ SecurityTypeId }) {
|
10168
10197
|
const query = useQuery16({
|
10169
10198
|
queryKey: ["F_core76318_Read"],
|
@@ -10192,7 +10221,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10192
10221
|
{
|
10193
10222
|
header: "File",
|
10194
10223
|
accessorFn: (row) => {
|
10195
|
-
return /* @__PURE__ */
|
10224
|
+
return /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(MyButtonViewPDF, { id: row.id }) });
|
10196
10225
|
}
|
10197
10226
|
}
|
10198
10227
|
],
|
@@ -10200,17 +10229,17 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10200
10229
|
);
|
10201
10230
|
if (query.isLoading) return "Loading...";
|
10202
10231
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
10203
|
-
return /* @__PURE__ */
|
10232
|
+
return /* @__PURE__ */ jsx113(
|
10204
10233
|
MyDataTable,
|
10205
10234
|
{
|
10206
10235
|
columns,
|
10207
10236
|
data: query.data,
|
10208
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
10237
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx113(F_core76318_Create, { SecurityTypeId }),
|
10209
10238
|
renderRowActions: ({ row }) => {
|
10210
10239
|
var _a;
|
10211
|
-
return /* @__PURE__ */
|
10212
|
-
/* @__PURE__ */
|
10213
|
-
/* @__PURE__ */
|
10240
|
+
return /* @__PURE__ */ jsxs68(MyCenterFull, { children: [
|
10241
|
+
/* @__PURE__ */ jsx113(F_core76318_Update, { values: row.original }),
|
10242
|
+
/* @__PURE__ */ jsx113(
|
10214
10243
|
F_core76318_Delete,
|
10215
10244
|
{
|
10216
10245
|
id: row.original.id,
|
@@ -10224,9 +10253,9 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10224
10253
|
}
|
10225
10254
|
|
10226
10255
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
10227
|
-
import { jsx as
|
10256
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
10228
10257
|
function F_core76318({ SecurityTypeId }) {
|
10229
|
-
return /* @__PURE__ */
|
10258
|
+
return /* @__PURE__ */ jsx114(F_core76318_Read, { SecurityTypeId });
|
10230
10259
|
}
|
10231
10260
|
|
10232
10261
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
@@ -10236,7 +10265,7 @@ import { Grid as Grid4, Paper as Paper12, ScrollArea as ScrollArea8 } from "@man
|
|
10236
10265
|
import { Container as Container5 } from "@mantine/core";
|
10237
10266
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
10238
10267
|
import { useEffect as useEffect14, useMemo as useMemo15, useState as useState14 } from "react";
|
10239
|
-
import { jsx as
|
10268
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
10240
10269
|
function F_core83092_ReadUser() {
|
10241
10270
|
const store = useS_core83092();
|
10242
10271
|
const query = useQ_core83092_Account_GetAdminAccount();
|
@@ -10269,7 +10298,7 @@ function F_core83092_ReadUser() {
|
|
10269
10298
|
}, [query.data]);
|
10270
10299
|
if (query.isLoading) return "Loading...";
|
10271
10300
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
10272
|
-
return /* @__PURE__ */
|
10301
|
+
return /* @__PURE__ */ jsx115(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx115(
|
10273
10302
|
MyDataTable,
|
10274
10303
|
{
|
10275
10304
|
columns,
|
@@ -10305,7 +10334,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
10305
10334
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
10306
10335
|
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
10307
10336
|
import { useEffect as useEffect15, useState as useState15 } from "react";
|
10308
|
-
import { jsx as
|
10337
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
10309
10338
|
function F_core83092_Save() {
|
10310
10339
|
const store = useS_core83092();
|
10311
10340
|
const disable = useState15(false);
|
@@ -10334,15 +10363,15 @@ function F_core83092_Save() {
|
|
10334
10363
|
}
|
10335
10364
|
disable[1](false);
|
10336
10365
|
}, [store.state.rolePermissions]);
|
10337
|
-
return /* @__PURE__ */
|
10366
|
+
return /* @__PURE__ */ jsx116(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
10338
10367
|
}
|
10339
10368
|
|
10340
10369
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
10341
|
-
import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as
|
10370
|
+
import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as Text15 } from "@mantine/core";
|
10342
10371
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
10343
10372
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
10344
10373
|
import React4, { useEffect as useEffect16, useState as useState16 } from "react";
|
10345
|
-
import { jsx as
|
10374
|
+
import { jsx as jsx117, jsxs as jsxs69 } from "react/jsx-runtime";
|
10346
10375
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
10347
10376
|
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
10348
10377
|
var _a, _b;
|
@@ -10357,8 +10386,8 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10357
10386
|
store.setProperty("rolePermissions", query.data);
|
10358
10387
|
}, [query.data]);
|
10359
10388
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
10360
|
-
return /* @__PURE__ */
|
10361
|
-
/* @__PURE__ */
|
10389
|
+
return /* @__PURE__ */ jsx117(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs69(Table5, { children: [
|
10390
|
+
/* @__PURE__ */ jsx117(
|
10362
10391
|
Table5.Thead,
|
10363
10392
|
{
|
10364
10393
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -10369,90 +10398,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10369
10398
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
10370
10399
|
border: "1px solid var(--mantine-color-gray-4)"
|
10371
10400
|
},
|
10372
|
-
children: /* @__PURE__ */
|
10373
|
-
/* @__PURE__ */
|
10374
|
-
/* @__PURE__ */
|
10375
|
-
/* @__PURE__ */
|
10401
|
+
children: /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10402
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: title2 }),
|
10403
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10404
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
10376
10405
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
10377
10406
|
} }),
|
10378
|
-
/* @__PURE__ */
|
10407
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10379
10408
|
"Xem",
|
10380
|
-
/* @__PURE__ */
|
10409
|
+
/* @__PURE__ */ jsx117(IconEyeUp2, { color: "gray" })
|
10381
10410
|
] })
|
10382
10411
|
] }) }),
|
10383
|
-
/* @__PURE__ */
|
10384
|
-
/* @__PURE__ */
|
10412
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10413
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
10385
10414
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
10386
10415
|
} }),
|
10387
|
-
/* @__PURE__ */
|
10416
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10388
10417
|
"Th\xEAm",
|
10389
|
-
/* @__PURE__ */
|
10418
|
+
/* @__PURE__ */ jsx117(IconPlus6, { color: "blue" })
|
10390
10419
|
] })
|
10391
10420
|
] }) }),
|
10392
|
-
/* @__PURE__ */
|
10393
|
-
/* @__PURE__ */
|
10421
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10422
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
10394
10423
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
10395
10424
|
} }),
|
10396
|
-
/* @__PURE__ */
|
10425
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10397
10426
|
"S\u1EEDa",
|
10398
|
-
/* @__PURE__ */
|
10427
|
+
/* @__PURE__ */ jsx117(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
10399
10428
|
] })
|
10400
10429
|
] }) }),
|
10401
|
-
/* @__PURE__ */
|
10402
|
-
/* @__PURE__ */
|
10430
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10431
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
10403
10432
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
10404
10433
|
} }),
|
10405
|
-
/* @__PURE__ */
|
10434
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10406
10435
|
"X\xF3a",
|
10407
|
-
/* @__PURE__ */
|
10436
|
+
/* @__PURE__ */ jsx117(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
10408
10437
|
] })
|
10409
10438
|
] }) }),
|
10410
|
-
/* @__PURE__ */
|
10411
|
-
/* @__PURE__ */
|
10439
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10440
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
10412
10441
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
10413
10442
|
} }),
|
10414
|
-
/* @__PURE__ */
|
10443
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10415
10444
|
"In",
|
10416
|
-
/* @__PURE__ */
|
10445
|
+
/* @__PURE__ */ jsx117(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
10417
10446
|
] })
|
10418
10447
|
] }) }),
|
10419
|
-
/* @__PURE__ */
|
10420
|
-
/* @__PURE__ */
|
10448
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10449
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
10421
10450
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
10422
10451
|
} }),
|
10423
|
-
/* @__PURE__ */
|
10452
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10424
10453
|
"Xu\u1EA5t",
|
10425
|
-
/* @__PURE__ */
|
10454
|
+
/* @__PURE__ */ jsx117(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
10426
10455
|
] })
|
10427
10456
|
] }) })
|
10428
10457
|
] })
|
10429
10458
|
}
|
10430
10459
|
),
|
10431
|
-
/* @__PURE__ */
|
10432
|
-
if (item.links == void 0) return /* @__PURE__ */
|
10433
|
-
/* @__PURE__ */
|
10434
|
-
/* @__PURE__ */
|
10435
|
-
/* @__PURE__ */
|
10436
|
-
/* @__PURE__ */
|
10437
|
-
/* @__PURE__ */
|
10438
|
-
/* @__PURE__ */
|
10439
|
-
/* @__PURE__ */
|
10460
|
+
/* @__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) => {
|
10461
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10462
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: item.label }),
|
10463
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10464
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10465
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10466
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10467
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10468
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) })
|
10440
10469
|
] }, idx);
|
10441
|
-
return /* @__PURE__ */
|
10442
|
-
/* @__PURE__ */
|
10470
|
+
return /* @__PURE__ */ jsxs69(React4.Fragment, { children: [
|
10471
|
+
/* @__PURE__ */ jsx117(Table5.Tr, { children: /* @__PURE__ */ jsx117(
|
10443
10472
|
Table5.Td,
|
10444
10473
|
{
|
10445
10474
|
colSpan: 7,
|
10446
10475
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
10447
|
-
children: /* @__PURE__ */
|
10476
|
+
children: /* @__PURE__ */ jsx117(Text15, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
10448
10477
|
}
|
10449
10478
|
) }, item.label),
|
10450
10479
|
item.links.map(
|
10451
10480
|
(item2, idx2) => {
|
10452
10481
|
var _a2, _b2, _c, _d, _e, _f;
|
10453
|
-
return /* @__PURE__ */
|
10454
|
-
/* @__PURE__ */
|
10455
|
-
/* @__PURE__ */
|
10482
|
+
return /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10483
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: item2.label }),
|
10484
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10456
10485
|
Checkbox4,
|
10457
10486
|
{
|
10458
10487
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -10463,7 +10492,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10463
10492
|
}
|
10464
10493
|
}
|
10465
10494
|
) }) }),
|
10466
|
-
/* @__PURE__ */
|
10495
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10467
10496
|
Checkbox4,
|
10468
10497
|
{
|
10469
10498
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -10474,7 +10503,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10474
10503
|
}
|
10475
10504
|
}
|
10476
10505
|
) }) }),
|
10477
|
-
/* @__PURE__ */
|
10506
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10478
10507
|
Checkbox4,
|
10479
10508
|
{
|
10480
10509
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -10485,7 +10514,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10485
10514
|
}
|
10486
10515
|
}
|
10487
10516
|
) }) }),
|
10488
|
-
/* @__PURE__ */
|
10517
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10489
10518
|
Checkbox4,
|
10490
10519
|
{
|
10491
10520
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -10496,7 +10525,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10496
10525
|
}
|
10497
10526
|
}
|
10498
10527
|
) }) }),
|
10499
|
-
/* @__PURE__ */
|
10528
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10500
10529
|
Checkbox4,
|
10501
10530
|
{
|
10502
10531
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -10507,7 +10536,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10507
10536
|
}
|
10508
10537
|
}
|
10509
10538
|
) }) }),
|
10510
|
-
/* @__PURE__ */
|
10539
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10511
10540
|
Checkbox4,
|
10512
10541
|
{
|
10513
10542
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -10563,72 +10592,72 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
10563
10592
|
}
|
10564
10593
|
|
10565
10594
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
10566
|
-
import { jsx as
|
10595
|
+
import { jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
|
10567
10596
|
function F_core83092({ menuData: menuData2 }) {
|
10568
|
-
return /* @__PURE__ */
|
10569
|
-
/* @__PURE__ */
|
10570
|
-
/* @__PURE__ */
|
10571
|
-
/* @__PURE__ */
|
10572
|
-
/* @__PURE__ */
|
10597
|
+
return /* @__PURE__ */ jsxs70(Grid4, { grow: true, children: [
|
10598
|
+
/* @__PURE__ */ jsx118(Grid4.Col, { span: 4, children: /* @__PURE__ */ jsx118(F_core83092_ReadUser, {}) }),
|
10599
|
+
/* @__PURE__ */ jsx118(Grid4.Col, { span: 8, children: /* @__PURE__ */ jsxs70(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
10600
|
+
/* @__PURE__ */ jsx118(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx118(Paper12, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx118(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
10601
|
+
/* @__PURE__ */ jsx118(F_core83092_Save, {})
|
10573
10602
|
] }) })
|
10574
10603
|
] });
|
10575
10604
|
}
|
10576
10605
|
|
10577
10606
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
10578
10607
|
import { BarChart } from "@mantine/charts";
|
10579
|
-
import { Group as
|
10580
|
-
import { Fragment as Fragment13, jsx as
|
10608
|
+
import { Group as Group19, Paper as Paper13, Text as Text16, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
10609
|
+
import { Fragment as Fragment13, jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
|
10581
10610
|
|
10582
10611
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
10583
10612
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
10584
|
-
import { Group as
|
10585
|
-
import { Fragment as Fragment14, jsx as
|
10613
|
+
import { Group as Group20, Paper as Paper14, Text as Text17, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
10614
|
+
import { Fragment as Fragment14, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
|
10586
10615
|
|
10587
10616
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
10588
10617
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
10589
|
-
import { Group as
|
10590
|
-
import { Fragment as Fragment15, jsx as
|
10618
|
+
import { Group as Group21, Paper as Paper15, Text as Text18, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
10619
|
+
import { Fragment as Fragment15, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
|
10591
10620
|
|
10592
10621
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
10593
10622
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
10594
|
-
import { Group as
|
10595
|
-
import { Fragment as Fragment16, jsx as
|
10623
|
+
import { Group as Group22, Paper as Paper16, Text as Text19, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
10624
|
+
import { Fragment as Fragment16, jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
|
10596
10625
|
|
10597
10626
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
10598
10627
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
10599
|
-
import { Group as
|
10600
|
-
import { jsx as
|
10628
|
+
import { Group as Group23, Paper as Paper17, Text as Text20, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
10629
|
+
import { jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
|
10601
10630
|
|
10602
10631
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
10603
10632
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
10604
|
-
import { Group as
|
10605
|
-
import { jsx as
|
10633
|
+
import { Group as Group24, Paper as Paper18, Text as Text21, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
10634
|
+
import { jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
|
10606
10635
|
|
10607
10636
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
10608
10637
|
import { LineChart } from "@mantine/charts";
|
10609
|
-
import { Group as
|
10610
|
-
import { Fragment as Fragment17, jsx as
|
10638
|
+
import { Group as Group25, Paper as Paper19, Text as Text22 } from "@mantine/core";
|
10639
|
+
import { Fragment as Fragment17, jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
|
10611
10640
|
|
10612
10641
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
10613
10642
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
10614
|
-
import { Group as
|
10615
|
-
import { Fragment as Fragment18, jsx as
|
10643
|
+
import { Group as Group26, Paper as Paper20, Text as Text23 } from "@mantine/core";
|
10644
|
+
import { Fragment as Fragment18, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
|
10616
10645
|
|
10617
10646
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
10618
10647
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
10619
|
-
import { Group as
|
10620
|
-
import { Fragment as Fragment19, jsx as
|
10648
|
+
import { Group as Group27, Paper as Paper21, Text as Text24 } from "@mantine/core";
|
10649
|
+
import { Fragment as Fragment19, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
|
10621
10650
|
|
10622
10651
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
10623
10652
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
10624
|
-
import { Group as
|
10625
|
-
import { Fragment as Fragment20, jsx as
|
10653
|
+
import { Group as Group28, Paper as Paper22, Text as Text25 } from "@mantine/core";
|
10654
|
+
import { Fragment as Fragment20, jsx as jsx128, jsxs as jsxs80 } from "react/jsx-runtime";
|
10626
10655
|
|
10627
10656
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
10628
|
-
import { Center as Center4, Progress, Space as Space8, Text as
|
10657
|
+
import { Center as Center4, Progress, Space as Space8, Text as Text26 } from "@mantine/core";
|
10629
10658
|
import { PieChart } from "@mantine/charts";
|
10630
10659
|
import { useMemo as useMemo16 } from "react";
|
10631
|
-
import { Fragment as Fragment21, jsx as
|
10660
|
+
import { Fragment as Fragment21, jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
|
10632
10661
|
function getRandomColor(seed) {
|
10633
10662
|
const random = Math.sin(seed) * 1e4;
|
10634
10663
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -10806,7 +10835,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10806
10835
|
header: "M\xE0u",
|
10807
10836
|
accessorKey: "color",
|
10808
10837
|
accessorFn(originalRow) {
|
10809
|
-
return /* @__PURE__ */
|
10838
|
+
return /* @__PURE__ */ jsx129("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
10810
10839
|
},
|
10811
10840
|
minSize: 30,
|
10812
10841
|
maxSize: 30
|
@@ -10821,7 +10850,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10821
10850
|
header: "%",
|
10822
10851
|
accessorKey: "used",
|
10823
10852
|
accessorFn(originalRow) {
|
10824
|
-
return /* @__PURE__ */
|
10853
|
+
return /* @__PURE__ */ jsx129(Fragment21, { children: /* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
|
10825
10854
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
10826
10855
|
"%"
|
10827
10856
|
] }) }) });
|
@@ -10836,10 +10865,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10836
10865
|
return originalRow.used;
|
10837
10866
|
},
|
10838
10867
|
Cell: ({ row }) => {
|
10839
|
-
return /* @__PURE__ */
|
10840
|
-
/* @__PURE__ */
|
10868
|
+
return /* @__PURE__ */ jsxs81(Fragment21, { children: [
|
10869
|
+
/* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
|
10841
10870
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
10842
|
-
/* @__PURE__ */
|
10871
|
+
/* @__PURE__ */ jsxs81("strong", { children: [
|
10843
10872
|
row.original.used,
|
10844
10873
|
" / ",
|
10845
10874
|
row.original.total
|
@@ -10848,7 +10877,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10848
10877
|
(row.original.used / row.original.total * 100).toFixed(2),
|
10849
10878
|
"%)"
|
10850
10879
|
] }) }),
|
10851
|
-
/* @__PURE__ */
|
10880
|
+
/* @__PURE__ */ jsx129(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
10852
10881
|
] });
|
10853
10882
|
},
|
10854
10883
|
minSize: 50,
|
@@ -10857,9 +10886,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
10857
10886
|
],
|
10858
10887
|
[]
|
10859
10888
|
);
|
10860
|
-
return /* @__PURE__ */
|
10861
|
-
/* @__PURE__ */
|
10862
|
-
/* @__PURE__ */
|
10889
|
+
return /* @__PURE__ */ jsx129(Fragment21, { children: /* @__PURE__ */ jsxs81(MyFlexColumn, { children: [
|
10890
|
+
/* @__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" }),
|
10891
|
+
/* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsx129(
|
10863
10892
|
PieChart,
|
10864
10893
|
{
|
10865
10894
|
startAngle: 90,
|
@@ -10872,8 +10901,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
10872
10901
|
data: data_used_discountCode
|
10873
10902
|
}
|
10874
10903
|
) }),
|
10875
|
-
/* @__PURE__ */
|
10876
|
-
/* @__PURE__ */
|
10904
|
+
/* @__PURE__ */ jsx129(Space8, { mt: 5 }),
|
10905
|
+
/* @__PURE__ */ jsx129(
|
10877
10906
|
MyDataTable,
|
10878
10907
|
{
|
10879
10908
|
data: mockData,
|
@@ -10888,10 +10917,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10888
10917
|
}
|
10889
10918
|
|
10890
10919
|
// src/modules-features/admin/core/MainDashboard/ViewVoucherStat.tsx
|
10891
|
-
import { Center as Center5, Progress as Progress2, Space as Space9, Text as
|
10920
|
+
import { Center as Center5, Progress as Progress2, Space as Space9, Text as Text27 } from "@mantine/core";
|
10892
10921
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
10893
10922
|
import { useMemo as useMemo17 } from "react";
|
10894
|
-
import { Fragment as Fragment22, jsx as
|
10923
|
+
import { Fragment as Fragment22, jsx as jsx130, jsxs as jsxs82 } from "react/jsx-runtime";
|
10895
10924
|
function getRandomColor2(seed) {
|
10896
10925
|
const random = Math.sin(seed) * 1e4;
|
10897
10926
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -11069,7 +11098,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11069
11098
|
header: "M\xE0u",
|
11070
11099
|
accessorKey: "color",
|
11071
11100
|
accessorFn(originalRow) {
|
11072
|
-
return /* @__PURE__ */
|
11101
|
+
return /* @__PURE__ */ jsx130("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
11073
11102
|
},
|
11074
11103
|
minSize: 30,
|
11075
11104
|
maxSize: 30
|
@@ -11084,7 +11113,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11084
11113
|
header: "%",
|
11085
11114
|
accessorKey: "used",
|
11086
11115
|
accessorFn(originalRow) {
|
11087
|
-
return /* @__PURE__ */
|
11116
|
+
return /* @__PURE__ */ jsx130(Fragment22, { children: /* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
11088
11117
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
11089
11118
|
"%"
|
11090
11119
|
] }) }) });
|
@@ -11099,10 +11128,10 @@ function PieChart_VoucherUsedPercentage() {
|
|
11099
11128
|
return originalRow.used;
|
11100
11129
|
},
|
11101
11130
|
Cell: ({ row }) => {
|
11102
|
-
return /* @__PURE__ */
|
11103
|
-
/* @__PURE__ */
|
11131
|
+
return /* @__PURE__ */ jsxs82(Fragment22, { children: [
|
11132
|
+
/* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
11104
11133
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
11105
|
-
/* @__PURE__ */
|
11134
|
+
/* @__PURE__ */ jsxs82("strong", { children: [
|
11106
11135
|
row.original.used,
|
11107
11136
|
" / ",
|
11108
11137
|
row.original.total
|
@@ -11111,7 +11140,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11111
11140
|
(row.original.used / row.original.total * 100).toFixed(2),
|
11112
11141
|
"%)"
|
11113
11142
|
] }) }),
|
11114
|
-
/* @__PURE__ */
|
11143
|
+
/* @__PURE__ */ jsx130(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
11115
11144
|
] });
|
11116
11145
|
},
|
11117
11146
|
minSize: 50,
|
@@ -11120,9 +11149,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
11120
11149
|
],
|
11121
11150
|
[]
|
11122
11151
|
);
|
11123
|
-
return /* @__PURE__ */
|
11124
|
-
/* @__PURE__ */
|
11125
|
-
/* @__PURE__ */
|
11152
|
+
return /* @__PURE__ */ jsx130(Fragment22, { children: /* @__PURE__ */ jsxs82(MyFlexColumn, { children: [
|
11153
|
+
/* @__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" }),
|
11154
|
+
/* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsx130(
|
11126
11155
|
PieChart2,
|
11127
11156
|
{
|
11128
11157
|
startAngle: 90,
|
@@ -11135,8 +11164,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
11135
11164
|
data: data_used_discountCode2
|
11136
11165
|
}
|
11137
11166
|
) }),
|
11138
|
-
/* @__PURE__ */
|
11139
|
-
/* @__PURE__ */
|
11167
|
+
/* @__PURE__ */ jsx130(Space9, { mt: 5 }),
|
11168
|
+
/* @__PURE__ */ jsx130(
|
11140
11169
|
MyDataTable,
|
11141
11170
|
{
|
11142
11171
|
data: mockData2,
|
@@ -11168,20 +11197,20 @@ function useS_authenticate() {
|
|
11168
11197
|
}
|
11169
11198
|
|
11170
11199
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
11171
|
-
import { jsx as
|
11200
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
11172
11201
|
function F_authenticate_Logout({ redirectURL = "/auth/login" }) {
|
11173
11202
|
const router = useRouter4();
|
11174
11203
|
const S_Authenticate = useS_authenticate();
|
11175
|
-
return /* @__PURE__ */
|
11204
|
+
return /* @__PURE__ */ jsx131(Button18, { onClick: () => {
|
11176
11205
|
S_Authenticate.setProperty("token", "");
|
11177
11206
|
router.replace(redirectURL);
|
11178
|
-
}, leftSection: /* @__PURE__ */
|
11207
|
+
}, leftSection: /* @__PURE__ */ jsx131(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
11179
11208
|
}
|
11180
11209
|
|
11181
11210
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
11182
11211
|
import { useRouter as useRouter5 } from "next/navigation";
|
11183
11212
|
import { useEffect as useEffect17 } from "react";
|
11184
|
-
import { jsx as
|
11213
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
11185
11214
|
function F_authenticate_SplashPage() {
|
11186
11215
|
const router = useRouter5();
|
11187
11216
|
const S_Authenticate = useS_authenticate();
|
@@ -11192,7 +11221,7 @@ function F_authenticate_SplashPage() {
|
|
11192
11221
|
}
|
11193
11222
|
router.push("/admin/core71678");
|
11194
11223
|
}, [S_Authenticate.state.token]);
|
11195
|
-
return /* @__PURE__ */
|
11224
|
+
return /* @__PURE__ */ jsx132(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
11196
11225
|
}
|
11197
11226
|
|
11198
11227
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
@@ -11203,10 +11232,10 @@ import {
|
|
11203
11232
|
Center as Center6,
|
11204
11233
|
Checkbox as Checkbox5,
|
11205
11234
|
Flex as Flex7,
|
11206
|
-
Group as
|
11235
|
+
Group as Group29,
|
11207
11236
|
Paper as Paper23,
|
11208
11237
|
PasswordInput as PasswordInput2,
|
11209
|
-
Text as
|
11238
|
+
Text as Text28,
|
11210
11239
|
TextInput as TextInput6,
|
11211
11240
|
Title as Title2
|
11212
11241
|
} from "@mantine/core";
|
@@ -11221,7 +11250,7 @@ import { useState as useState17 } from "react";
|
|
11221
11250
|
var css_default3 = {};
|
11222
11251
|
|
11223
11252
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
11224
|
-
import { jsx as
|
11253
|
+
import { jsx as jsx133, jsxs as jsxs83 } from "react/jsx-runtime";
|
11225
11254
|
function F_authenticate_Login({
|
11226
11255
|
loginInfo,
|
11227
11256
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -11274,21 +11303,21 @@ function F_authenticate_Login({
|
|
11274
11303
|
}
|
11275
11304
|
});
|
11276
11305
|
}
|
11277
|
-
return /* @__PURE__ */
|
11306
|
+
return /* @__PURE__ */ jsx133(
|
11278
11307
|
BackgroundImage,
|
11279
11308
|
{
|
11280
11309
|
src: backgroundImage,
|
11281
11310
|
h: "100vh",
|
11282
|
-
children: /* @__PURE__ */
|
11283
|
-
/* @__PURE__ */
|
11284
|
-
/* @__PURE__ */
|
11285
|
-
/* @__PURE__ */
|
11311
|
+
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: [
|
11312
|
+
/* @__PURE__ */ jsxs83(Flex7, { direction: "column", mb: "md", children: [
|
11313
|
+
/* @__PURE__ */ jsx133(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
11314
|
+
/* @__PURE__ */ jsxs83(Text28, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
11286
11315
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
11287
|
-
/* @__PURE__ */
|
11316
|
+
/* @__PURE__ */ jsx133(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
11288
11317
|
] })
|
11289
11318
|
] }),
|
11290
|
-
/* @__PURE__ */
|
11291
|
-
/* @__PURE__ */
|
11319
|
+
/* @__PURE__ */ jsx133("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs83(MyFlexColumn, { children: [
|
11320
|
+
/* @__PURE__ */ jsx133(
|
11292
11321
|
TextInput6,
|
11293
11322
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
11294
11323
|
label: "T\xE0i kho\u1EA3n",
|
@@ -11296,7 +11325,7 @@ function F_authenticate_Login({
|
|
11296
11325
|
withAsterisk: true
|
11297
11326
|
})
|
11298
11327
|
),
|
11299
|
-
/* @__PURE__ */
|
11328
|
+
/* @__PURE__ */ jsx133(
|
11300
11329
|
PasswordInput2,
|
11301
11330
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
11302
11331
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -11304,11 +11333,11 @@ function F_authenticate_Login({
|
|
11304
11333
|
withAsterisk: true
|
11305
11334
|
})
|
11306
11335
|
),
|
11307
|
-
/* @__PURE__ */
|
11308
|
-
/* @__PURE__ */
|
11309
|
-
/* @__PURE__ */
|
11336
|
+
/* @__PURE__ */ jsxs83(Group29, { justify: "space-between", children: [
|
11337
|
+
/* @__PURE__ */ jsx133(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
11338
|
+
/* @__PURE__ */ jsx133(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
11310
11339
|
] }),
|
11311
|
-
/* @__PURE__ */
|
11340
|
+
/* @__PURE__ */ jsx133(
|
11312
11341
|
Button19,
|
11313
11342
|
{
|
11314
11343
|
loading: loadingState[0],
|