aq-fe-framework 0.1.70 → 0.1.71
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.
|
@@ -6385,11 +6385,10 @@ function MyNumberFormatter(_a) {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
|
|
6387
6387
|
// src/components/DataDisplay/ScheduleX/MyScheduleX.tsx
|
|
6388
|
-
import { useNextCalendarApp as useNextCalendarApp2
|
|
6388
|
+
import { useNextCalendarApp as useNextCalendarApp2 } from "@schedule-x/react";
|
|
6389
6389
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
|
6390
6390
|
import { useState as useState7 } from "react";
|
|
6391
6391
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
|
6392
|
-
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6393
6392
|
function MyScheduleX({
|
|
6394
6393
|
values,
|
|
6395
6394
|
timeGridEvent,
|
|
@@ -6414,24 +6413,24 @@ function MyScheduleX({
|
|
|
6414
6413
|
events: values,
|
|
6415
6414
|
plugins: [eventsService, eventModalPlugin]
|
|
6416
6415
|
});
|
|
6417
|
-
return
|
|
6418
|
-
|
|
6419
|
-
{
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6416
|
+
return (
|
|
6417
|
+
// <ScheduleXCalendar
|
|
6418
|
+
// calendarApp={calendar}
|
|
6419
|
+
// customComponents={{
|
|
6420
|
+
// timeGridEvent: timeGridEvent,
|
|
6421
|
+
// eventModal: eventModal
|
|
6422
|
+
// }}
|
|
6423
|
+
// />
|
|
6424
|
+
"cc"
|
|
6426
6425
|
);
|
|
6427
6426
|
}
|
|
6428
6427
|
|
|
6429
6428
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
|
6430
6429
|
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group11, Paper as Paper5, Text as Text9 } from "@mantine/core";
|
|
6431
6430
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
|
6432
|
-
import { Fragment as Fragment11, jsx as
|
|
6431
|
+
import { Fragment as Fragment11, jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6433
6432
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
|
6434
|
-
return /* @__PURE__ */
|
|
6433
|
+
return /* @__PURE__ */ jsx42(Fragment11, { children: /* @__PURE__ */ jsxs25(
|
|
6435
6434
|
Paper5,
|
|
6436
6435
|
{
|
|
6437
6436
|
withBorder: true,
|
|
@@ -6440,7 +6439,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6440
6439
|
children: [
|
|
6441
6440
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6442
6441
|
/* @__PURE__ */ jsxs25(Flex3, { direction: "column", children: [
|
|
6443
|
-
/* @__PURE__ */
|
|
6442
|
+
/* @__PURE__ */ jsx42(
|
|
6444
6443
|
Text9,
|
|
6445
6444
|
{
|
|
6446
6445
|
tt: "uppercase",
|
|
@@ -6451,13 +6450,13 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6451
6450
|
),
|
|
6452
6451
|
unit == "" ? /* @__PURE__ */ jsxs25(Text9, { size: "xs", style: { visibility: "hidden" }, children: [
|
|
6453
6452
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6454
|
-
/* @__PURE__ */
|
|
6453
|
+
/* @__PURE__ */ jsx42("strong", { children: unit })
|
|
6455
6454
|
] }) : /* @__PURE__ */ jsxs25(Text9, { size: "xs", children: [
|
|
6456
6455
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6457
|
-
/* @__PURE__ */
|
|
6456
|
+
/* @__PURE__ */ jsx42("strong", { children: unit })
|
|
6458
6457
|
] })
|
|
6459
6458
|
] }),
|
|
6460
|
-
/* @__PURE__ */
|
|
6459
|
+
/* @__PURE__ */ jsx42(Box2, { children: icons })
|
|
6461
6460
|
] }),
|
|
6462
6461
|
/* @__PURE__ */ jsxs25(
|
|
6463
6462
|
Group11,
|
|
@@ -6466,7 +6465,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6466
6465
|
align: "flex-end",
|
|
6467
6466
|
gap: "xs",
|
|
6468
6467
|
children: [
|
|
6469
|
-
/* @__PURE__ */
|
|
6468
|
+
/* @__PURE__ */ jsx42(
|
|
6470
6469
|
Text9,
|
|
6471
6470
|
{
|
|
6472
6471
|
fw: 700,
|
|
@@ -6486,7 +6485,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6486
6485
|
diff,
|
|
6487
6486
|
"%"
|
|
6488
6487
|
] }),
|
|
6489
|
-
diff > 0 ? /* @__PURE__ */
|
|
6488
|
+
diff > 0 ? /* @__PURE__ */ jsx42(IconArrowUpRight, {}) : /* @__PURE__ */ jsx42(IconArrowDownRight, {})
|
|
6490
6489
|
]
|
|
6491
6490
|
}
|
|
6492
6491
|
)
|
|
@@ -6494,8 +6493,8 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6494
6493
|
}
|
|
6495
6494
|
),
|
|
6496
6495
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6497
|
-
/* @__PURE__ */
|
|
6498
|
-
/* @__PURE__ */
|
|
6496
|
+
/* @__PURE__ */ jsx42(Text9, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
|
6497
|
+
/* @__PURE__ */ jsx42(
|
|
6499
6498
|
Button13,
|
|
6500
6499
|
{
|
|
6501
6500
|
variant: "light",
|
|
@@ -6512,15 +6511,15 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6512
6511
|
|
|
6513
6512
|
// src/components/Inputs/DateInput/MyDateInput.tsx
|
|
6514
6513
|
import { DateInput } from "@mantine/dates";
|
|
6515
|
-
import { jsx as
|
|
6514
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
6516
6515
|
function MyDateInput(_a) {
|
|
6517
6516
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6518
|
-
return /* @__PURE__ */
|
|
6517
|
+
return /* @__PURE__ */ jsx43(DateInput, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6519
6518
|
}
|
|
6520
6519
|
|
|
6521
6520
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
|
6522
6521
|
import { Box as Box3, Fieldset as Fieldset4, Text as Text10 } from "@mantine/core";
|
|
6523
|
-
import { jsx as
|
|
6522
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
6524
6523
|
function MyFieldset(_a) {
|
|
6525
6524
|
var _b = _a, {
|
|
6526
6525
|
children,
|
|
@@ -6529,17 +6528,17 @@ function MyFieldset(_a) {
|
|
|
6529
6528
|
"children",
|
|
6530
6529
|
"title"
|
|
6531
6530
|
]);
|
|
6532
|
-
return /* @__PURE__ */
|
|
6531
|
+
return /* @__PURE__ */ jsx44(
|
|
6533
6532
|
Fieldset4,
|
|
6534
6533
|
__spreadProps(__spreadValues({}, rest), {
|
|
6535
|
-
legend: /* @__PURE__ */
|
|
6534
|
+
legend: /* @__PURE__ */ jsx44(
|
|
6536
6535
|
Box3,
|
|
6537
6536
|
{
|
|
6538
6537
|
bg: "blue.4",
|
|
6539
6538
|
px: "xs",
|
|
6540
6539
|
py: 2,
|
|
6541
6540
|
style: { borderRadius: 4 },
|
|
6542
|
-
children: /* @__PURE__ */
|
|
6541
|
+
children: /* @__PURE__ */ jsx44(Text10, { c: "white", fw: 500, children: title3 })
|
|
6543
6542
|
}
|
|
6544
6543
|
),
|
|
6545
6544
|
children
|
|
@@ -6549,26 +6548,26 @@ function MyFieldset(_a) {
|
|
|
6549
6548
|
|
|
6550
6549
|
// src/components/Inputs/FileInput/MyFileInput.tsx
|
|
6551
6550
|
import { FileInput as FileInput3 } from "@mantine/core";
|
|
6552
|
-
import { jsx as
|
|
6551
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
6553
6552
|
function MyFileInput(_a) {
|
|
6554
6553
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6555
|
-
return /* @__PURE__ */
|
|
6554
|
+
return /* @__PURE__ */ jsx45(FileInput3, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6556
6555
|
}
|
|
6557
6556
|
|
|
6558
6557
|
// src/components/Inputs/NumberInput/MyNumberInput.tsx
|
|
6559
6558
|
import { NumberInput as NumberInput2 } from "@mantine/core";
|
|
6560
|
-
import { jsx as
|
|
6559
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
6561
6560
|
function MyNumberInput(_a) {
|
|
6562
6561
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6563
|
-
return /* @__PURE__ */
|
|
6562
|
+
return /* @__PURE__ */ jsx46(NumberInput2, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6564
6563
|
}
|
|
6565
6564
|
|
|
6566
6565
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
|
6567
6566
|
import { Textarea } from "@mantine/core";
|
|
6568
|
-
import { jsx as
|
|
6567
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
6569
6568
|
function MyTextArea(_a) {
|
|
6570
6569
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6571
|
-
return /* @__PURE__ */
|
|
6570
|
+
return /* @__PURE__ */ jsx47(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6572
6571
|
}
|
|
6573
6572
|
|
|
6574
6573
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
|
@@ -6584,7 +6583,7 @@ import Underline from "@tiptap/extension-underline";
|
|
|
6584
6583
|
import { useEditor } from "@tiptap/react";
|
|
6585
6584
|
import StarterKit from "@tiptap/starter-kit";
|
|
6586
6585
|
import { useEffect as useEffect5, useState as useState8 } from "react";
|
|
6587
|
-
import { jsx as
|
|
6586
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6588
6587
|
function MyTextEditor(_a) {
|
|
6589
6588
|
var _b = _a, {
|
|
6590
6589
|
autoHiddenToolBar = false,
|
|
@@ -6686,43 +6685,43 @@ function MyTextEditor(_a) {
|
|
|
6686
6685
|
editor.commands.setContent(value);
|
|
6687
6686
|
}
|
|
6688
6687
|
}, [value, editor]);
|
|
6689
|
-
return /* @__PURE__ */
|
|
6688
|
+
return /* @__PURE__ */ jsx48(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs26(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
|
6690
6689
|
/* @__PURE__ */ jsxs26(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
|
6691
6690
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6692
|
-
/* @__PURE__ */
|
|
6693
|
-
/* @__PURE__ */
|
|
6694
|
-
/* @__PURE__ */
|
|
6695
|
-
/* @__PURE__ */
|
|
6696
|
-
/* @__PURE__ */
|
|
6697
|
-
/* @__PURE__ */
|
|
6698
|
-
/* @__PURE__ */
|
|
6691
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Bold, {}),
|
|
6692
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Italic, {}),
|
|
6693
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Underline, {}),
|
|
6694
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Strikethrough, {}),
|
|
6695
|
+
/* @__PURE__ */ jsx48(RichTextEditor.ClearFormatting, {}),
|
|
6696
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Highlight, {}),
|
|
6697
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Code, {})
|
|
6699
6698
|
] }),
|
|
6700
6699
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6701
|
-
/* @__PURE__ */
|
|
6702
|
-
/* @__PURE__ */
|
|
6703
|
-
/* @__PURE__ */
|
|
6704
|
-
/* @__PURE__ */
|
|
6700
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H1, {}),
|
|
6701
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H2, {}),
|
|
6702
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H3, {}),
|
|
6703
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H4, {})
|
|
6705
6704
|
] }),
|
|
6706
6705
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6707
|
-
/* @__PURE__ */
|
|
6708
|
-
/* @__PURE__ */
|
|
6709
|
-
/* @__PURE__ */
|
|
6710
|
-
/* @__PURE__ */
|
|
6711
|
-
/* @__PURE__ */
|
|
6712
|
-
/* @__PURE__ */
|
|
6706
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Blockquote, {}),
|
|
6707
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Hr, {}),
|
|
6708
|
+
/* @__PURE__ */ jsx48(RichTextEditor.BulletList, {}),
|
|
6709
|
+
/* @__PURE__ */ jsx48(RichTextEditor.OrderedList, {}),
|
|
6710
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Subscript, {}),
|
|
6711
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Superscript, {})
|
|
6713
6712
|
] }),
|
|
6714
6713
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6715
|
-
/* @__PURE__ */
|
|
6716
|
-
/* @__PURE__ */
|
|
6714
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Link, {}),
|
|
6715
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Unlink, {})
|
|
6717
6716
|
] }),
|
|
6718
6717
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6719
|
-
/* @__PURE__ */
|
|
6720
|
-
/* @__PURE__ */
|
|
6721
|
-
/* @__PURE__ */
|
|
6722
|
-
/* @__PURE__ */
|
|
6718
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignLeft, {}),
|
|
6719
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignCenter, {}),
|
|
6720
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignJustify, {}),
|
|
6721
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignRight, {})
|
|
6723
6722
|
] })
|
|
6724
6723
|
] }),
|
|
6725
|
-
/* @__PURE__ */
|
|
6724
|
+
/* @__PURE__ */ jsx48(
|
|
6726
6725
|
ScrollArea2.Autosize,
|
|
6727
6726
|
{
|
|
6728
6727
|
onMouseDown: () => {
|
|
@@ -6737,7 +6736,7 @@ function MyTextEditor(_a) {
|
|
|
6737
6736
|
setHiddenToolBar(false);
|
|
6738
6737
|
},
|
|
6739
6738
|
style: { cursor: "text", maxHeight: "400px" },
|
|
6740
|
-
children: /* @__PURE__ */
|
|
6739
|
+
children: /* @__PURE__ */ jsx48(RichTextEditor.Content, { mih: contentHeight })
|
|
6741
6740
|
}
|
|
6742
6741
|
)
|
|
6743
6742
|
] }) });
|
|
@@ -6763,18 +6762,18 @@ import { spotlight as spotlight2 } from "@mantine/spotlight";
|
|
|
6763
6762
|
import { IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLibraryMinus, IconSearch as IconSearch2 } from "@tabler/icons-react";
|
|
6764
6763
|
import Link3 from "next/link";
|
|
6765
6764
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
6766
|
-
import { Fragment as Fragment12, jsx as
|
|
6765
|
+
import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6767
6766
|
function getRightSection(status) {
|
|
6768
|
-
if (status === "Prototype") return /* @__PURE__ */
|
|
6769
|
-
if (status === "New") return /* @__PURE__ */
|
|
6770
|
-
if (status === "Menu") return /* @__PURE__ */
|
|
6771
|
-
if (status === "Change") return /* @__PURE__ */
|
|
6767
|
+
if (status === "Prototype") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
|
6768
|
+
if (status === "New") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
|
6769
|
+
if (status === "Menu") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
|
6770
|
+
if (status === "Change") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
|
6772
6771
|
return null;
|
|
6773
6772
|
}
|
|
6774
6773
|
function RenderNavLinks({ items }) {
|
|
6775
6774
|
const sidebarStore = useS_Sidebar();
|
|
6776
6775
|
const pathName = usePathname2();
|
|
6777
|
-
return /* @__PURE__ */
|
|
6776
|
+
return /* @__PURE__ */ jsx49(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx49(
|
|
6778
6777
|
NavLink,
|
|
6779
6778
|
{
|
|
6780
6779
|
active: item.link === pathName.split("/")[2],
|
|
@@ -6791,7 +6790,7 @@ function RenderNavLinks({ items }) {
|
|
|
6791
6790
|
sidebarStore.setProperty("title", item.label);
|
|
6792
6791
|
}
|
|
6793
6792
|
},
|
|
6794
|
-
children: item.links && /* @__PURE__ */
|
|
6793
|
+
children: item.links && /* @__PURE__ */ jsx49(RenderNavLinks, { items: item.links })
|
|
6795
6794
|
},
|
|
6796
6795
|
index
|
|
6797
6796
|
)) });
|
|
@@ -6860,16 +6859,16 @@ function BasicAppShell({ children, menu }) {
|
|
|
6860
6859
|
padding: "md",
|
|
6861
6860
|
children: [
|
|
6862
6861
|
/* @__PURE__ */ jsxs27(AppShell.Header, { children: [
|
|
6863
|
-
/* @__PURE__ */
|
|
6862
|
+
/* @__PURE__ */ jsx49(MyAppSpotlight, { menu }),
|
|
6864
6863
|
media ? /* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
|
6865
6864
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", children: [
|
|
6866
|
-
/* @__PURE__ */
|
|
6867
|
-
/* @__PURE__ */
|
|
6865
|
+
/* @__PURE__ */ jsx49(Tooltip5, { label: sidebarStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu", children: /* @__PURE__ */ jsx49(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: sidebarStore.toggle, children: sidebarStore.state.opened ? /* @__PURE__ */ jsx49(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx49(IconLayoutSidebarLeftCollapse, {}) }) }),
|
|
6866
|
+
/* @__PURE__ */ jsx49(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx49(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: () => sidebarStore.clearGroupMenuOpenId(), children: /* @__PURE__ */ jsx49(IconLibraryMinus, {}) }) })
|
|
6868
6867
|
] }),
|
|
6869
|
-
/* @__PURE__ */
|
|
6868
|
+
/* @__PURE__ */ jsx49(Group12, { style: { position: "absolute", left: "50%", transform: "translateX(-50%)" }, children: /* @__PURE__ */ jsx49(Text11, { c: "green", fw: "bold", children: "AQ EduCourseEvaluation - Ph\u1EA7n m\u1EC1m \u0111\xE1nh gi\xE1 chu\u1EA9n \u0111\u1EA7u ra" }) }),
|
|
6870
6869
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6871
|
-
/* @__PURE__ */
|
|
6872
|
-
/* @__PURE__ */
|
|
6870
|
+
/* @__PURE__ */ jsx49(Text11, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
|
6871
|
+
/* @__PURE__ */ jsx49(
|
|
6873
6872
|
Select3,
|
|
6874
6873
|
{
|
|
6875
6874
|
w: selectMedia ? 245 : 150,
|
|
@@ -6881,15 +6880,15 @@ function BasicAppShell({ children, menu }) {
|
|
|
6881
6880
|
]
|
|
6882
6881
|
}
|
|
6883
6882
|
),
|
|
6884
|
-
/* @__PURE__ */
|
|
6883
|
+
/* @__PURE__ */ jsx49(MySwitchTheme, {})
|
|
6885
6884
|
] })
|
|
6886
6885
|
] }) : (
|
|
6887
6886
|
// For mobile screens - simplified layout
|
|
6888
6887
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", children: [
|
|
6889
|
-
/* @__PURE__ */
|
|
6890
|
-
/* @__PURE__ */
|
|
6888
|
+
/* @__PURE__ */ jsx49(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: sidebarStore.toggle, children: sidebarStore.state.opened ? /* @__PURE__ */ jsx49(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx49(IconLayoutSidebarLeftCollapse, {}) }),
|
|
6889
|
+
/* @__PURE__ */ jsx49(Text11, { c: "green", fw: "bold", size: "sm", children: "AQ EduCourseEvaluation" }),
|
|
6891
6890
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6892
|
-
/* @__PURE__ */
|
|
6891
|
+
/* @__PURE__ */ jsx49(
|
|
6893
6892
|
Select3,
|
|
6894
6893
|
{
|
|
6895
6894
|
w: 100,
|
|
@@ -6902,24 +6901,24 @@ function BasicAppShell({ children, menu }) {
|
|
|
6902
6901
|
]
|
|
6903
6902
|
}
|
|
6904
6903
|
),
|
|
6905
|
-
/* @__PURE__ */
|
|
6904
|
+
/* @__PURE__ */ jsx49(MySwitchTheme, {})
|
|
6906
6905
|
] })
|
|
6907
6906
|
] })
|
|
6908
6907
|
)
|
|
6909
6908
|
] }),
|
|
6910
6909
|
/* @__PURE__ */ jsxs27(AppShell.Navbar, { children: [
|
|
6911
|
-
/* @__PURE__ */
|
|
6910
|
+
/* @__PURE__ */ jsx49(TextInput2, { mt: "md", placeholder: "T\xECm menu (Ctrl + K)", mx: 10, component: "button", onClick: spotlight2.open, leftSection: /* @__PURE__ */ jsx49(IconSearch2, {}), children: "T\xECm ki\u1EBFm (Ctrl + K)" }),
|
|
6912
6911
|
/* @__PURE__ */ jsxs27(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
|
6913
|
-
/* @__PURE__ */
|
|
6914
|
-
/* @__PURE__ */
|
|
6915
|
-
/* @__PURE__ */
|
|
6912
|
+
/* @__PURE__ */ jsx49(RenderNavLinks, { items: menu }),
|
|
6913
|
+
/* @__PURE__ */ jsx49(Divider3, {}),
|
|
6914
|
+
/* @__PURE__ */ jsx49(F_authenticate_Logout, {})
|
|
6916
6915
|
] }),
|
|
6917
6916
|
/* @__PURE__ */ jsxs27(AppShell.Section, { p: "md", children: [
|
|
6918
|
-
/* @__PURE__ */
|
|
6919
|
-
/* @__PURE__ */
|
|
6917
|
+
/* @__PURE__ */ jsx49(Divider3, {}),
|
|
6918
|
+
/* @__PURE__ */ jsx49(Image3, { src: "/imgs/0/IMG0LogoAQTech.png", h: 50, alt: "", w: "auto" })
|
|
6920
6919
|
] })
|
|
6921
6920
|
] }),
|
|
6922
|
-
/* @__PURE__ */
|
|
6921
|
+
/* @__PURE__ */ jsx49(AppShell.Main, { bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))", children })
|
|
6923
6922
|
]
|
|
6924
6923
|
}
|
|
6925
6924
|
);
|
|
@@ -6968,10 +6967,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
|
6968
6967
|
|
|
6969
6968
|
// src/components/Layouts/Container/MyContainer.tsx
|
|
6970
6969
|
import { Container as Container2, Flex as Flex4 } from "@mantine/core";
|
|
6971
|
-
import { jsx as
|
|
6970
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
6972
6971
|
function MyContainer(_a) {
|
|
6973
6972
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
6974
|
-
return /* @__PURE__ */
|
|
6973
|
+
return /* @__PURE__ */ jsx50(Container2, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx50(Flex4, { direction: "column", children }) }));
|
|
6975
6974
|
}
|
|
6976
6975
|
|
|
6977
6976
|
// src/constants/object/color.ts
|
|
@@ -7024,7 +7023,7 @@ function useHeaderMegaMenuStore() {
|
|
|
7024
7023
|
}
|
|
7025
7024
|
|
|
7026
7025
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
|
7027
|
-
import { jsx as
|
|
7026
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7028
7027
|
var mockdata = [
|
|
7029
7028
|
{
|
|
7030
7029
|
icon: IconCode,
|
|
@@ -7062,27 +7061,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7062
7061
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
|
7063
7062
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
|
7064
7063
|
const theme = useMantineTheme();
|
|
7065
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
|
7066
|
-
/* @__PURE__ */
|
|
7064
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx51(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs28(Group13, { wrap: "nowrap", align: "flex-start", children: [
|
|
7065
|
+
/* @__PURE__ */ jsx51(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx51(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
|
7067
7066
|
/* @__PURE__ */ jsxs28("div", { children: [
|
|
7068
|
-
/* @__PURE__ */
|
|
7069
|
-
/* @__PURE__ */
|
|
7067
|
+
/* @__PURE__ */ jsx51(Text12, { size: "sm", fw: 500, children: item.title }),
|
|
7068
|
+
/* @__PURE__ */ jsx51(Text12, { size: "xs", c: "dimmed", children: item.description })
|
|
7070
7069
|
] })
|
|
7071
7070
|
] }) }, item.title));
|
|
7072
7071
|
return /* @__PURE__ */ jsxs28(Box4, { children: [
|
|
7073
|
-
/* @__PURE__ */
|
|
7072
|
+
/* @__PURE__ */ jsx51("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs28(Group13, { justify: "space-between", h: "100%", children: [
|
|
7074
7073
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
7075
|
-
/* @__PURE__ */
|
|
7076
|
-
/* @__PURE__ */
|
|
7074
|
+
/* @__PURE__ */ jsx51(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
|
7075
|
+
/* @__PURE__ */ jsx51(Group13, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx51(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
|
7077
7076
|
] }),
|
|
7078
7077
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
7079
|
-
/* @__PURE__ */
|
|
7080
|
-
/* @__PURE__ */
|
|
7078
|
+
/* @__PURE__ */ jsx51(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx51(IconSearch3, {}), radius: "xl", w: "250px" }),
|
|
7079
|
+
/* @__PURE__ */ jsx51(MySwitchTheme, {})
|
|
7081
7080
|
] }),
|
|
7082
|
-
/* @__PURE__ */
|
|
7081
|
+
/* @__PURE__ */ jsx51(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
|
7083
7082
|
] }) }),
|
|
7084
|
-
/* @__PURE__ */
|
|
7085
|
-
/* @__PURE__ */
|
|
7083
|
+
/* @__PURE__ */ jsx51(Container3, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
|
7084
|
+
/* @__PURE__ */ jsx51(
|
|
7086
7085
|
Drawer,
|
|
7087
7086
|
{
|
|
7088
7087
|
opened: drawerOpened,
|
|
@@ -7093,9 +7092,9 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7093
7092
|
hiddenFrom: "sm",
|
|
7094
7093
|
zIndex: 1e6,
|
|
7095
7094
|
children: /* @__PURE__ */ jsxs28(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
|
7096
|
-
/* @__PURE__ */
|
|
7097
|
-
/* @__PURE__ */
|
|
7098
|
-
/* @__PURE__ */
|
|
7095
|
+
/* @__PURE__ */ jsx51(Divider4, { my: "sm" }),
|
|
7096
|
+
/* @__PURE__ */ jsx51(MyFlexColumn, { h: "100%", gap: 0, children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx51(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) }),
|
|
7097
|
+
/* @__PURE__ */ jsx51(Divider4, { my: "sm" })
|
|
7099
7098
|
] })
|
|
7100
7099
|
}
|
|
7101
7100
|
)
|
|
@@ -7104,15 +7103,15 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7104
7103
|
|
|
7105
7104
|
// src/components/Layouts/Tab/MyTab.tsx
|
|
7106
7105
|
import { rem, Space as Space3, Tabs } from "@mantine/core";
|
|
7107
|
-
import { jsx as
|
|
7106
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7108
7107
|
function MyTab(_a) {
|
|
7109
7108
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
|
7110
7109
|
const iconStyle = { width: rem(20), height: rem(20) };
|
|
7111
7110
|
return /* @__PURE__ */ jsxs29(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
|
7112
|
-
/* @__PURE__ */
|
|
7113
|
-
return /* @__PURE__ */
|
|
7111
|
+
/* @__PURE__ */ jsx52(Tabs.List, { children: tabList.map((item, idx) => {
|
|
7112
|
+
return /* @__PURE__ */ jsx52(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx52(item.icon, { style: iconStyle }), children: item.label }, idx);
|
|
7114
7113
|
}) }),
|
|
7115
|
-
/* @__PURE__ */
|
|
7114
|
+
/* @__PURE__ */ jsx52(Space3, { my: "md" }),
|
|
7116
7115
|
children
|
|
7117
7116
|
] }));
|
|
7118
7117
|
}
|
|
@@ -7121,33 +7120,33 @@ function MyTab(_a) {
|
|
|
7121
7120
|
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group14, Modal as Modal11 } from "@mantine/core";
|
|
7122
7121
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
|
7123
7122
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
|
7124
|
-
import { jsx as
|
|
7123
|
+
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7125
7124
|
function MyDataTableSelect(_a) {
|
|
7126
7125
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
|
7127
7126
|
const disc = useDisclosure11(false);
|
|
7128
7127
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
|
7129
7128
|
return /* @__PURE__ */ jsxs30(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
|
7130
|
-
/* @__PURE__ */
|
|
7129
|
+
/* @__PURE__ */ jsx53(
|
|
7131
7130
|
MyDataTable,
|
|
7132
7131
|
__spreadValues({
|
|
7133
7132
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
7134
7133
|
return /* @__PURE__ */ jsxs30(Group14, { children: [
|
|
7135
7134
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
|
7136
|
-
/* @__PURE__ */
|
|
7135
|
+
/* @__PURE__ */ jsx53(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
|
7137
7136
|
] });
|
|
7138
7137
|
},
|
|
7139
7138
|
columns,
|
|
7140
7139
|
data: listState[0],
|
|
7141
7140
|
renderRowActions: ({ row }) => {
|
|
7142
|
-
return /* @__PURE__ */
|
|
7141
|
+
return /* @__PURE__ */ jsx53(MyCenterFull, { children: /* @__PURE__ */ jsx53(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx53(IconX2, {}) }) });
|
|
7143
7142
|
}
|
|
7144
7143
|
}, rest)
|
|
7145
7144
|
),
|
|
7146
|
-
/* @__PURE__ */
|
|
7145
|
+
/* @__PURE__ */ jsx53(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx53(
|
|
7147
7146
|
MyDataTable,
|
|
7148
7147
|
__spreadValues({
|
|
7149
7148
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
7150
|
-
return /* @__PURE__ */
|
|
7149
|
+
return /* @__PURE__ */ jsx53(Button15, { onClick: () => {
|
|
7151
7150
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
|
7152
7151
|
disc[1].close();
|
|
7153
7152
|
}, children: "Ch\u1ECDn" });
|
|
@@ -7163,7 +7162,7 @@ function MyDataTableSelect(_a) {
|
|
|
7163
7162
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
|
7164
7163
|
import { Select as Select4 } from "@mantine/core";
|
|
7165
7164
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
7166
|
-
import { jsx as
|
|
7165
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
7167
7166
|
function MySelectAPIGet(_a) {
|
|
7168
7167
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
|
7169
7168
|
var _a2;
|
|
@@ -7182,7 +7181,7 @@ function MySelectAPIGet(_a) {
|
|
|
7182
7181
|
label: `${item.code}-${item.name}`
|
|
7183
7182
|
};
|
|
7184
7183
|
});
|
|
7185
|
-
return /* @__PURE__ */
|
|
7184
|
+
return /* @__PURE__ */ jsx54(
|
|
7186
7185
|
Select4,
|
|
7187
7186
|
__spreadValues({
|
|
7188
7187
|
label,
|
|
@@ -7194,15 +7193,15 @@ function MySelectAPIGet(_a) {
|
|
|
7194
7193
|
|
|
7195
7194
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
|
7196
7195
|
import { Skeleton } from "@mantine/core";
|
|
7197
|
-
import { jsx as
|
|
7196
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
7198
7197
|
function MySkeletonTable({ h: h4 = 500 }) {
|
|
7199
|
-
return /* @__PURE__ */
|
|
7198
|
+
return /* @__PURE__ */ jsx55(Skeleton, { h: h4 });
|
|
7200
7199
|
}
|
|
7201
7200
|
|
|
7202
7201
|
// src/modules-features/admin/core/core18256/F_core18256_Select.tsx
|
|
7203
7202
|
import { Select as Select5 } from "@mantine/core";
|
|
7204
7203
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
7205
|
-
import { jsx as
|
|
7204
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
7206
7205
|
function F_core18256_Select(_a) {
|
|
7207
7206
|
var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
|
|
7208
7207
|
var _a2, _b2;
|
|
@@ -7222,7 +7221,7 @@ function F_core18256_Select(_a) {
|
|
|
7222
7221
|
label: `${item.code}-${item.name}`
|
|
7223
7222
|
};
|
|
7224
7223
|
});
|
|
7225
|
-
return /* @__PURE__ */
|
|
7224
|
+
return /* @__PURE__ */ jsx56(
|
|
7226
7225
|
Select5,
|
|
7227
7226
|
__spreadProps(__spreadValues({
|
|
7228
7227
|
label,
|
|
@@ -7236,7 +7235,7 @@ function F_core18256_Select(_a) {
|
|
|
7236
7235
|
|
|
7237
7236
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
|
7238
7237
|
import { useForm } from "@mantine/form";
|
|
7239
|
-
import { jsx as
|
|
7238
|
+
import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7240
7239
|
function F_core12196_Create() {
|
|
7241
7240
|
const form = useForm({
|
|
7242
7241
|
mode: "uncontrolled"
|
|
@@ -7250,24 +7249,24 @@ function F_core12196_Create() {
|
|
|
7250
7249
|
})
|
|
7251
7250
|
);
|
|
7252
7251
|
}, children: [
|
|
7253
|
-
/* @__PURE__ */
|
|
7254
|
-
/* @__PURE__ */
|
|
7255
|
-
/* @__PURE__ */
|
|
7256
|
-
/* @__PURE__ */
|
|
7257
|
-
/* @__PURE__ */
|
|
7258
|
-
/* @__PURE__ */
|
|
7252
|
+
/* @__PURE__ */ jsx57(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7253
|
+
/* @__PURE__ */ jsx57(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7254
|
+
/* @__PURE__ */ jsx57(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7255
|
+
/* @__PURE__ */ jsx57(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
|
|
7256
|
+
/* @__PURE__ */ jsx57(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7257
|
+
/* @__PURE__ */ jsx57(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7259
7258
|
] });
|
|
7260
7259
|
}
|
|
7261
7260
|
|
|
7262
7261
|
// src/modules-features/admin/core/core12196/F_core12196_Delete.tsx
|
|
7263
|
-
import { jsx as
|
|
7262
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
7264
7263
|
function F_core12196_Delete({ id }) {
|
|
7265
|
-
return /* @__PURE__ */
|
|
7264
|
+
return /* @__PURE__ */ jsx58(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7266
7265
|
}
|
|
7267
7266
|
|
|
7268
7267
|
// src/modules-features/admin/core/core12196/F_core12196_Update.tsx
|
|
7269
7268
|
import { useForm as useForm2 } from "@mantine/form";
|
|
7270
|
-
import { jsx as
|
|
7269
|
+
import { jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7271
7270
|
function F_core12196_Update({ values }) {
|
|
7272
7271
|
var _a;
|
|
7273
7272
|
const form = useForm2({
|
|
@@ -7281,17 +7280,17 @@ function F_core12196_Update({ values }) {
|
|
|
7281
7280
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7282
7281
|
}));
|
|
7283
7282
|
}, children: [
|
|
7284
|
-
/* @__PURE__ */
|
|
7285
|
-
/* @__PURE__ */
|
|
7286
|
-
/* @__PURE__ */
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
/* @__PURE__ */
|
|
7289
|
-
/* @__PURE__ */
|
|
7283
|
+
/* @__PURE__ */ jsx59(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7284
|
+
/* @__PURE__ */ jsx59(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7285
|
+
/* @__PURE__ */ jsx59(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7286
|
+
/* @__PURE__ */ jsx59(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
|
|
7287
|
+
/* @__PURE__ */ jsx59(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7288
|
+
/* @__PURE__ */ jsx59(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7290
7289
|
] });
|
|
7291
7290
|
}
|
|
7292
7291
|
|
|
7293
7292
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
|
7294
|
-
import { jsx as
|
|
7293
|
+
import { jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7295
7294
|
function F_core12196() {
|
|
7296
7295
|
var _a, _b, _c;
|
|
7297
7296
|
const documentAttributeQuery = useQuery4({
|
|
@@ -7304,11 +7303,11 @@ function F_core12196() {
|
|
|
7304
7303
|
});
|
|
7305
7304
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7306
7305
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7307
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7308
|
-
return /* @__PURE__ */
|
|
7306
|
+
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx60(Blockquote, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
7307
|
+
return /* @__PURE__ */ jsx60(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx60(F_core12196_Create, {}), children: /* @__PURE__ */ jsx60(MyFlexColumn, { children: /* @__PURE__ */ jsx60(Accordion, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
7309
7308
|
var _a2;
|
|
7310
7309
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7311
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7310
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx60(SubRead, { name: item.name, documentType: item.id }, idx)) }) }) });
|
|
7312
7311
|
}
|
|
7313
7312
|
function SubRead({ name, documentType }) {
|
|
7314
7313
|
const documentQuery = useQuery4({
|
|
@@ -7335,7 +7334,7 @@ function SubRead({ name, documentType }) {
|
|
|
7335
7334
|
{
|
|
7336
7335
|
header: "File",
|
|
7337
7336
|
accessorFn: (row) => {
|
|
7338
|
-
return /* @__PURE__ */
|
|
7337
|
+
return /* @__PURE__ */ jsx60(MyCenterFull, { children: /* @__PURE__ */ jsx60(MyButtonViewPDF, { id: row.id }) });
|
|
7339
7338
|
}
|
|
7340
7339
|
}
|
|
7341
7340
|
],
|
|
@@ -7344,15 +7343,15 @@ function SubRead({ name, documentType }) {
|
|
|
7344
7343
|
if (documentQuery.isLoading) return "Loading...";
|
|
7345
7344
|
if (documentQuery.isError) return "Error!";
|
|
7346
7345
|
return /* @__PURE__ */ jsxs33(Accordion.Item, { value: documentType.toString(), children: [
|
|
7347
|
-
/* @__PURE__ */
|
|
7348
|
-
/* @__PURE__ */
|
|
7346
|
+
/* @__PURE__ */ jsx60(Accordion.Control, { children: name }),
|
|
7347
|
+
/* @__PURE__ */ jsx60(Accordion.Panel, { children: /* @__PURE__ */ jsx60(
|
|
7349
7348
|
MyDataTable,
|
|
7350
7349
|
{
|
|
7351
7350
|
columns,
|
|
7352
7351
|
data: documentQuery.data,
|
|
7353
7352
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs33(MyCenterFull, { children: [
|
|
7354
|
-
/* @__PURE__ */
|
|
7355
|
-
/* @__PURE__ */
|
|
7353
|
+
/* @__PURE__ */ jsx60(F_core12196_Update, { values: row.original }),
|
|
7354
|
+
/* @__PURE__ */ jsx60(F_core12196_Delete, { id: row.original.id })
|
|
7356
7355
|
] })
|
|
7357
7356
|
}
|
|
7358
7357
|
) })
|
|
@@ -7366,7 +7365,7 @@ import { useMemo as useMemo4 } from "react";
|
|
|
7366
7365
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
|
7367
7366
|
import { FileInput as FileInput4 } from "@mantine/core";
|
|
7368
7367
|
import { useForm as useForm3 } from "@mantine/form";
|
|
7369
|
-
import { jsx as
|
|
7368
|
+
import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7370
7369
|
function F_core16209_Create() {
|
|
7371
7370
|
const form = useForm3({
|
|
7372
7371
|
mode: "uncontrolled"
|
|
@@ -7381,24 +7380,24 @@ function F_core16209_Create() {
|
|
|
7381
7380
|
})
|
|
7382
7381
|
);
|
|
7383
7382
|
}, children: [
|
|
7384
|
-
/* @__PURE__ */
|
|
7385
|
-
/* @__PURE__ */
|
|
7386
|
-
/* @__PURE__ */
|
|
7387
|
-
/* @__PURE__ */
|
|
7388
|
-
/* @__PURE__ */
|
|
7383
|
+
/* @__PURE__ */ jsx61(MyTextInput, __spreadValues({ label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u" }, form.getInputProps("departmentName"))),
|
|
7384
|
+
/* @__PURE__ */ jsx61(MyTextInput, __spreadValues({ label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn" }, form.getInputProps("description"))),
|
|
7385
|
+
/* @__PURE__ */ jsx61(MyDateInput, __spreadValues({ label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u" }, form.getInputProps("startDate"))),
|
|
7386
|
+
/* @__PURE__ */ jsx61(MyDateInput, __spreadValues({ label: "Ng\xE0y k\u1EBFt th\xFAc" }, form.getInputProps("endDate"))),
|
|
7387
|
+
/* @__PURE__ */ jsx61(FileInput4, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
7389
7388
|
] });
|
|
7390
7389
|
}
|
|
7391
7390
|
|
|
7392
7391
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
|
7393
|
-
import { jsx as
|
|
7392
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7394
7393
|
function F_core16209_Delete({ id }) {
|
|
7395
|
-
return /* @__PURE__ */
|
|
7394
|
+
return /* @__PURE__ */ jsx62(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
7396
7395
|
}
|
|
7397
7396
|
|
|
7398
7397
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
|
7399
7398
|
import { FileInput as FileInput5, TextInput as TextInput4 } from "@mantine/core";
|
|
7400
7399
|
import { useForm as useForm4 } from "@mantine/form";
|
|
7401
|
-
import { jsx as
|
|
7400
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7402
7401
|
function F_core16209_Update({ values }) {
|
|
7403
7402
|
var _a;
|
|
7404
7403
|
const form = useForm4({
|
|
@@ -7413,15 +7412,15 @@ function F_core16209_Update({ values }) {
|
|
|
7413
7412
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7414
7413
|
}));
|
|
7415
7414
|
}, children: [
|
|
7416
|
-
/* @__PURE__ */
|
|
7417
|
-
/* @__PURE__ */
|
|
7418
|
-
/* @__PURE__ */
|
|
7419
|
-
/* @__PURE__ */
|
|
7415
|
+
/* @__PURE__ */ jsx63(TextInput4, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7416
|
+
/* @__PURE__ */ jsx63(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7417
|
+
/* @__PURE__ */ jsx63(TextInput4, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7418
|
+
/* @__PURE__ */ jsx63(FileInput5, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
7420
7419
|
] });
|
|
7421
7420
|
}
|
|
7422
7421
|
|
|
7423
7422
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
|
7424
|
-
import { jsx as
|
|
7423
|
+
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7425
7424
|
function F_core16209() {
|
|
7426
7425
|
const query = useQuery5({
|
|
7427
7426
|
queryKey: ["F_core16209_Read"],
|
|
@@ -7452,7 +7451,7 @@ function F_core16209() {
|
|
|
7452
7451
|
{
|
|
7453
7452
|
header: "File",
|
|
7454
7453
|
accessorFn: (row) => {
|
|
7455
|
-
return /* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ jsx64(MyCenterFull, { children: /* @__PURE__ */ jsx64(MyButtonViewPDF, { id: row.id }) });
|
|
7456
7455
|
}
|
|
7457
7456
|
}
|
|
7458
7457
|
],
|
|
@@ -7460,16 +7459,16 @@ function F_core16209() {
|
|
|
7460
7459
|
);
|
|
7461
7460
|
if (query.isLoading) return "Loading...";
|
|
7462
7461
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7463
|
-
return /* @__PURE__ */
|
|
7462
|
+
return /* @__PURE__ */ jsx64(MyPageContent, { children: /* @__PURE__ */ jsx64(
|
|
7464
7463
|
MyDataTable,
|
|
7465
7464
|
{
|
|
7466
7465
|
columns,
|
|
7467
7466
|
data: query.data,
|
|
7468
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
7467
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx64(F_core16209_Create, {}),
|
|
7469
7468
|
renderRowActions: ({ row }) => {
|
|
7470
7469
|
return /* @__PURE__ */ jsxs36(MyCenterFull, { children: [
|
|
7471
|
-
/* @__PURE__ */
|
|
7472
|
-
/* @__PURE__ */
|
|
7470
|
+
/* @__PURE__ */ jsx64(F_core16209_Update, { values: row.original }),
|
|
7471
|
+
/* @__PURE__ */ jsx64(F_core16209_Delete, { id: row.original.id })
|
|
7473
7472
|
] });
|
|
7474
7473
|
}
|
|
7475
7474
|
}
|
|
@@ -7485,7 +7484,7 @@ import { useMemo as useMemo5 } from "react";
|
|
|
7485
7484
|
|
|
7486
7485
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
|
7487
7486
|
import { useForm as useForm5 } from "@mantine/form";
|
|
7488
|
-
import { jsx as
|
|
7487
|
+
import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7489
7488
|
function F_core18256_Create({ documentType }) {
|
|
7490
7489
|
const form = useForm5({
|
|
7491
7490
|
mode: "uncontrolled",
|
|
@@ -7499,15 +7498,15 @@ function F_core18256_Create({ documentType }) {
|
|
|
7499
7498
|
}
|
|
7500
7499
|
});
|
|
7501
7500
|
return /* @__PURE__ */ jsxs37(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
|
7502
|
-
/* @__PURE__ */
|
|
7503
|
-
/* @__PURE__ */
|
|
7501
|
+
/* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
|
7502
|
+
/* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
|
7504
7503
|
] });
|
|
7505
7504
|
}
|
|
7506
7505
|
|
|
7507
7506
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
|
7508
|
-
import { jsx as
|
|
7507
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
7509
7508
|
function F_core18256_Delete({ id }) {
|
|
7510
|
-
return /* @__PURE__ */
|
|
7509
|
+
return /* @__PURE__ */ jsx66(
|
|
7511
7510
|
MyActionIconDelete,
|
|
7512
7511
|
{
|
|
7513
7512
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
|
@@ -7517,19 +7516,19 @@ function F_core18256_Delete({ id }) {
|
|
|
7517
7516
|
|
|
7518
7517
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
|
7519
7518
|
import { useForm as useForm6 } from "@mantine/form";
|
|
7520
|
-
import { jsx as
|
|
7519
|
+
import { jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7521
7520
|
function F_core18256_Update({ values }) {
|
|
7522
7521
|
const form = useForm6({
|
|
7523
7522
|
initialValues: values
|
|
7524
7523
|
});
|
|
7525
7524
|
return /* @__PURE__ */ jsxs38(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
|
7526
|
-
/* @__PURE__ */
|
|
7527
|
-
/* @__PURE__ */
|
|
7525
|
+
/* @__PURE__ */ jsx67(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
|
7526
|
+
/* @__PURE__ */ jsx67(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
|
7528
7527
|
] });
|
|
7529
7528
|
}
|
|
7530
7529
|
|
|
7531
7530
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
|
7532
|
-
import { jsx as
|
|
7531
|
+
import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7533
7532
|
function F_core18256_Read({ documentType }) {
|
|
7534
7533
|
const documentAttributeQuery = useQuery6({
|
|
7535
7534
|
queryKey: ["F_core18256_Read", documentType],
|
|
@@ -7554,17 +7553,17 @@ function F_core18256_Read({ documentType }) {
|
|
|
7554
7553
|
);
|
|
7555
7554
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
|
7556
7555
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7557
|
-
return /* @__PURE__ */
|
|
7556
|
+
return /* @__PURE__ */ jsx68(
|
|
7558
7557
|
MyDataTable,
|
|
7559
7558
|
{
|
|
7560
7559
|
columns,
|
|
7561
7560
|
enableRowNumbers: true,
|
|
7562
7561
|
data: documentAttributeQuery.data,
|
|
7563
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
7562
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx68(F_core18256_Create, { documentType }),
|
|
7564
7563
|
renderRowActions: ({ row }) => {
|
|
7565
7564
|
return /* @__PURE__ */ jsxs39(MyCenterFull, { children: [
|
|
7566
|
-
/* @__PURE__ */
|
|
7567
|
-
/* @__PURE__ */
|
|
7565
|
+
/* @__PURE__ */ jsx68(F_core18256_Update, { values: row.original }),
|
|
7566
|
+
/* @__PURE__ */ jsx68(F_core18256_Delete, { id: row.original.id })
|
|
7568
7567
|
] });
|
|
7569
7568
|
}
|
|
7570
7569
|
}
|
|
@@ -7572,23 +7571,23 @@ function F_core18256_Read({ documentType }) {
|
|
|
7572
7571
|
}
|
|
7573
7572
|
|
|
7574
7573
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
|
7575
|
-
import { jsx as
|
|
7574
|
+
import { jsx as jsx69, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7576
7575
|
var tabData = [
|
|
7577
7576
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
|
7578
7577
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
|
7579
7578
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
|
7580
7579
|
];
|
|
7581
7580
|
function F_core18256() {
|
|
7582
|
-
return /* @__PURE__ */
|
|
7583
|
-
/* @__PURE__ */
|
|
7584
|
-
/* @__PURE__ */
|
|
7585
|
-
/* @__PURE__ */
|
|
7581
|
+
return /* @__PURE__ */ jsx69(MyPageContent, { children: /* @__PURE__ */ jsxs40(MyTab, { tabList: tabData, children: [
|
|
7582
|
+
/* @__PURE__ */ jsx69(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx69(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
|
7583
|
+
/* @__PURE__ */ jsx69(Tabs2.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx69(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow }) }),
|
|
7584
|
+
/* @__PURE__ */ jsx69(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx69(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
|
|
7586
7585
|
] }) });
|
|
7587
7586
|
}
|
|
7588
7587
|
|
|
7589
7588
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
|
7590
7589
|
import { useForm as useForm7 } from "@mantine/form";
|
|
7591
|
-
import { jsx as
|
|
7590
|
+
import { jsx as jsx70, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7592
7591
|
function F_core26965_Create() {
|
|
7593
7592
|
const form = useForm7({
|
|
7594
7593
|
mode: "uncontrolled"
|
|
@@ -7602,12 +7601,12 @@ function F_core26965_Create() {
|
|
|
7602
7601
|
})
|
|
7603
7602
|
);
|
|
7604
7603
|
}, children: [
|
|
7605
|
-
/* @__PURE__ */
|
|
7606
|
-
/* @__PURE__ */
|
|
7607
|
-
/* @__PURE__ */
|
|
7608
|
-
/* @__PURE__ */
|
|
7609
|
-
/* @__PURE__ */
|
|
7610
|
-
/* @__PURE__ */
|
|
7604
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7605
|
+
/* @__PURE__ */ jsx70(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7606
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7607
|
+
/* @__PURE__ */ jsx70(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7608
|
+
/* @__PURE__ */ jsx70(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7609
|
+
/* @__PURE__ */ jsx70(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7611
7610
|
] });
|
|
7612
7611
|
}
|
|
7613
7612
|
|
|
@@ -7617,14 +7616,14 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
|
7617
7616
|
import { useMemo as useMemo6 } from "react";
|
|
7618
7617
|
|
|
7619
7618
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
|
7620
|
-
import { jsx as
|
|
7619
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
7621
7620
|
function F_core26965_Delete({ id }) {
|
|
7622
|
-
return /* @__PURE__ */
|
|
7621
|
+
return /* @__PURE__ */ jsx71(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7623
7622
|
}
|
|
7624
7623
|
|
|
7625
7624
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
|
7626
7625
|
import { useForm as useForm8 } from "@mantine/form";
|
|
7627
|
-
import { jsx as
|
|
7626
|
+
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7628
7627
|
function F_core26965_Update({ values }) {
|
|
7629
7628
|
var _a;
|
|
7630
7629
|
const form = useForm8({
|
|
@@ -7638,17 +7637,17 @@ function F_core26965_Update({ values }) {
|
|
|
7638
7637
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7639
7638
|
}));
|
|
7640
7639
|
}, children: [
|
|
7641
|
-
/* @__PURE__ */
|
|
7642
|
-
/* @__PURE__ */
|
|
7643
|
-
/* @__PURE__ */
|
|
7644
|
-
/* @__PURE__ */
|
|
7645
|
-
/* @__PURE__ */
|
|
7646
|
-
/* @__PURE__ */
|
|
7640
|
+
/* @__PURE__ */ jsx72(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7641
|
+
/* @__PURE__ */ jsx72(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7642
|
+
/* @__PURE__ */ jsx72(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7643
|
+
/* @__PURE__ */ jsx72(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7644
|
+
/* @__PURE__ */ jsx72(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7645
|
+
/* @__PURE__ */ jsx72(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7647
7646
|
] });
|
|
7648
7647
|
}
|
|
7649
7648
|
|
|
7650
7649
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
|
7651
|
-
import { jsx as
|
|
7650
|
+
import { jsx as jsx73, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7652
7651
|
function F_core26965_Read() {
|
|
7653
7652
|
var _a, _b, _c;
|
|
7654
7653
|
const documentAttributeQuery = useQuery7({
|
|
@@ -7661,11 +7660,11 @@ function F_core26965_Read() {
|
|
|
7661
7660
|
});
|
|
7662
7661
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7663
7662
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7664
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7665
|
-
return /* @__PURE__ */
|
|
7663
|
+
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx73(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
7664
|
+
return /* @__PURE__ */ jsx73(MyFlexColumn, { children: /* @__PURE__ */ jsx73(Accordion2, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
7666
7665
|
var _a2;
|
|
7667
7666
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7668
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7667
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx73(SubRead2, { name: item.name, documentType: item.id }, idx)) }) });
|
|
7669
7668
|
}
|
|
7670
7669
|
function SubRead2({ name, documentType }) {
|
|
7671
7670
|
const documentQuery = useQuery7({
|
|
@@ -7692,7 +7691,7 @@ function SubRead2({ name, documentType }) {
|
|
|
7692
7691
|
{
|
|
7693
7692
|
header: "File",
|
|
7694
7693
|
accessorFn: (row) => {
|
|
7695
|
-
return /* @__PURE__ */
|
|
7694
|
+
return /* @__PURE__ */ jsx73(MyCenterFull, { children: /* @__PURE__ */ jsx73(MyButtonViewPDF, { id: row.id }) });
|
|
7696
7695
|
}
|
|
7697
7696
|
}
|
|
7698
7697
|
],
|
|
@@ -7701,15 +7700,15 @@ function SubRead2({ name, documentType }) {
|
|
|
7701
7700
|
if (documentQuery.isLoading) return "Loading...";
|
|
7702
7701
|
if (documentQuery.isError) return "Error!";
|
|
7703
7702
|
return /* @__PURE__ */ jsxs43(Accordion2.Item, { value: documentType.toString(), children: [
|
|
7704
|
-
/* @__PURE__ */
|
|
7705
|
-
/* @__PURE__ */
|
|
7703
|
+
/* @__PURE__ */ jsx73(Accordion2.Control, { children: name }),
|
|
7704
|
+
/* @__PURE__ */ jsx73(Accordion2.Panel, { children: /* @__PURE__ */ jsx73(
|
|
7706
7705
|
MyDataTable,
|
|
7707
7706
|
{
|
|
7708
7707
|
columns,
|
|
7709
7708
|
data: documentQuery.data,
|
|
7710
7709
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs43(MyCenterFull, { children: [
|
|
7711
|
-
/* @__PURE__ */
|
|
7712
|
-
/* @__PURE__ */
|
|
7710
|
+
/* @__PURE__ */ jsx73(F_core26965_Update, { values: row.original }),
|
|
7711
|
+
/* @__PURE__ */ jsx73(F_core26965_Delete, { id: row.original.id })
|
|
7713
7712
|
] })
|
|
7714
7713
|
}
|
|
7715
7714
|
) })
|
|
@@ -7717,14 +7716,14 @@ function SubRead2({ name, documentType }) {
|
|
|
7717
7716
|
}
|
|
7718
7717
|
|
|
7719
7718
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
|
7720
|
-
import { jsx as
|
|
7719
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
7721
7720
|
function F_core26965() {
|
|
7722
|
-
return /* @__PURE__ */
|
|
7721
|
+
return /* @__PURE__ */ jsx74(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx74(F_core26965_Create, {}), children: /* @__PURE__ */ jsx74(F_core26965_Read, {}) });
|
|
7723
7722
|
}
|
|
7724
7723
|
|
|
7725
7724
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
|
7726
7725
|
import { useForm as useForm9 } from "@mantine/form";
|
|
7727
|
-
import { jsx as
|
|
7726
|
+
import { jsx as jsx75, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7728
7727
|
function F_core27311_Create() {
|
|
7729
7728
|
const form = useForm9({
|
|
7730
7729
|
mode: "uncontrolled"
|
|
@@ -7738,12 +7737,12 @@ function F_core27311_Create() {
|
|
|
7738
7737
|
})
|
|
7739
7738
|
);
|
|
7740
7739
|
}, children: [
|
|
7741
|
-
/* @__PURE__ */
|
|
7742
|
-
/* @__PURE__ */
|
|
7743
|
-
/* @__PURE__ */
|
|
7744
|
-
/* @__PURE__ */
|
|
7745
|
-
/* @__PURE__ */
|
|
7746
|
-
/* @__PURE__ */
|
|
7740
|
+
/* @__PURE__ */ jsx75(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7741
|
+
/* @__PURE__ */ jsx75(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7742
|
+
/* @__PURE__ */ jsx75(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7743
|
+
/* @__PURE__ */ jsx75(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Workflow }, form.getInputProps("documentAttributeId"))),
|
|
7744
|
+
/* @__PURE__ */ jsx75(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7745
|
+
/* @__PURE__ */ jsx75(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7747
7746
|
] });
|
|
7748
7747
|
}
|
|
7749
7748
|
|
|
@@ -7753,14 +7752,14 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
|
7753
7752
|
import { useMemo as useMemo7 } from "react";
|
|
7754
7753
|
|
|
7755
7754
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
|
7756
|
-
import { jsx as
|
|
7755
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
7757
7756
|
function F_core27311_Delete({ id }) {
|
|
7758
|
-
return /* @__PURE__ */
|
|
7757
|
+
return /* @__PURE__ */ jsx76(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7759
7758
|
}
|
|
7760
7759
|
|
|
7761
7760
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
|
7762
7761
|
import { useForm as useForm10 } from "@mantine/form";
|
|
7763
|
-
import { jsx as
|
|
7762
|
+
import { jsx as jsx77, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7764
7763
|
function F_core27311_Update({ values }) {
|
|
7765
7764
|
var _a;
|
|
7766
7765
|
const form = useForm10({
|
|
@@ -7774,17 +7773,17 @@ function F_core27311_Update({ values }) {
|
|
|
7774
7773
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7775
7774
|
}));
|
|
7776
7775
|
}, children: [
|
|
7777
|
-
/* @__PURE__ */
|
|
7778
|
-
/* @__PURE__ */
|
|
7779
|
-
/* @__PURE__ */
|
|
7780
|
-
/* @__PURE__ */
|
|
7781
|
-
/* @__PURE__ */
|
|
7782
|
-
/* @__PURE__ */
|
|
7776
|
+
/* @__PURE__ */ jsx77(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7777
|
+
/* @__PURE__ */ jsx77(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7778
|
+
/* @__PURE__ */ jsx77(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7779
|
+
/* @__PURE__ */ jsx77(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7780
|
+
/* @__PURE__ */ jsx77(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7781
|
+
/* @__PURE__ */ jsx77(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7783
7782
|
] });
|
|
7784
7783
|
}
|
|
7785
7784
|
|
|
7786
7785
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
|
7787
|
-
import { jsx as
|
|
7786
|
+
import { jsx as jsx78, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7788
7787
|
function F_core27311_Read() {
|
|
7789
7788
|
var _a, _b, _c;
|
|
7790
7789
|
const documentAttributeQuery = useQuery8({
|
|
@@ -7797,11 +7796,11 @@ function F_core27311_Read() {
|
|
|
7797
7796
|
});
|
|
7798
7797
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7799
7798
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7800
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7801
|
-
return /* @__PURE__ */
|
|
7799
|
+
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx78(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
7800
|
+
return /* @__PURE__ */ jsx78(MyFlexColumn, { children: /* @__PURE__ */ jsx78(Accordion3, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
7802
7801
|
var _a2;
|
|
7803
7802
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7804
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7803
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx78(SubRead3, { name: item.name, documentType: item.id }, idx)) }) });
|
|
7805
7804
|
}
|
|
7806
7805
|
function SubRead3({ name, documentType }) {
|
|
7807
7806
|
const documentQuery = useQuery8({
|
|
@@ -7828,7 +7827,7 @@ function SubRead3({ name, documentType }) {
|
|
|
7828
7827
|
{
|
|
7829
7828
|
header: "File",
|
|
7830
7829
|
accessorFn: (row) => {
|
|
7831
|
-
return /* @__PURE__ */
|
|
7830
|
+
return /* @__PURE__ */ jsx78(MyCenterFull, { children: /* @__PURE__ */ jsx78(MyButtonViewPDF, { id: row.id }) });
|
|
7832
7831
|
}
|
|
7833
7832
|
}
|
|
7834
7833
|
],
|
|
@@ -7837,15 +7836,15 @@ function SubRead3({ name, documentType }) {
|
|
|
7837
7836
|
if (documentQuery.isLoading) return "Loading...";
|
|
7838
7837
|
if (documentQuery.isError) return "Error!";
|
|
7839
7838
|
return /* @__PURE__ */ jsxs46(Accordion3.Item, { value: documentType.toString(), children: [
|
|
7840
|
-
/* @__PURE__ */
|
|
7841
|
-
/* @__PURE__ */
|
|
7839
|
+
/* @__PURE__ */ jsx78(Accordion3.Control, { children: name }),
|
|
7840
|
+
/* @__PURE__ */ jsx78(Accordion3.Panel, { children: /* @__PURE__ */ jsx78(
|
|
7842
7841
|
MyDataTable,
|
|
7843
7842
|
{
|
|
7844
7843
|
columns,
|
|
7845
7844
|
data: documentQuery.data,
|
|
7846
7845
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs46(MyCenterFull, { children: [
|
|
7847
|
-
/* @__PURE__ */
|
|
7848
|
-
/* @__PURE__ */
|
|
7846
|
+
/* @__PURE__ */ jsx78(F_core27311_Update, { values: row.original }),
|
|
7847
|
+
/* @__PURE__ */ jsx78(F_core27311_Delete, { id: row.original.id })
|
|
7849
7848
|
] })
|
|
7850
7849
|
}
|
|
7851
7850
|
) })
|
|
@@ -7853,9 +7852,9 @@ function SubRead3({ name, documentType }) {
|
|
|
7853
7852
|
}
|
|
7854
7853
|
|
|
7855
7854
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
|
7856
|
-
import { jsx as
|
|
7855
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
7857
7856
|
function F_core27311() {
|
|
7858
|
-
return /* @__PURE__ */
|
|
7857
|
+
return /* @__PURE__ */ jsx79(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx79(F_core27311_Create, {}), children: /* @__PURE__ */ jsx79(F_core27311_Read, {}) });
|
|
7859
7858
|
}
|
|
7860
7859
|
|
|
7861
7860
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
|
@@ -7915,7 +7914,7 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
|
7915
7914
|
}
|
|
7916
7915
|
|
|
7917
7916
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
|
7918
|
-
import { jsx as
|
|
7917
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
7919
7918
|
function F_core38677_ReadUser() {
|
|
7920
7919
|
const store = useS_core83092();
|
|
7921
7920
|
const query = useQ_Account_GetAdminAccount();
|
|
@@ -7948,7 +7947,7 @@ function F_core38677_ReadUser() {
|
|
|
7948
7947
|
}, [query.data]);
|
|
7949
7948
|
if (query.isLoading) return "Loading...";
|
|
7950
7949
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7951
|
-
return /* @__PURE__ */
|
|
7950
|
+
return /* @__PURE__ */ jsx80(Container4, { fluid: true, children: /* @__PURE__ */ jsx80(
|
|
7952
7951
|
MyDataTable,
|
|
7953
7952
|
{
|
|
7954
7953
|
columns,
|
|
@@ -7984,7 +7983,7 @@ function useQ_Account_GetAdminAccount() {
|
|
|
7984
7983
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
|
7985
7984
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
7986
7985
|
import { useEffect as useEffect7, useState as useState10 } from "react";
|
|
7987
|
-
import { jsx as
|
|
7986
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
7988
7987
|
function F_core38677_Save() {
|
|
7989
7988
|
const store = useS_core83092();
|
|
7990
7989
|
const disable = useState10(false);
|
|
@@ -8013,7 +8012,7 @@ function F_core38677_Save() {
|
|
|
8013
8012
|
}
|
|
8014
8013
|
disable[1](false);
|
|
8015
8014
|
}, [store.state.rolePermissions]);
|
|
8016
|
-
return /* @__PURE__ */
|
|
8015
|
+
return /* @__PURE__ */ jsx81(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
|
8017
8016
|
}
|
|
8018
8017
|
|
|
8019
8018
|
// src/data/menuData.ts
|
|
@@ -8155,7 +8154,7 @@ import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table
|
|
|
8155
8154
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
|
8156
8155
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
|
8157
8156
|
import React2, { useEffect as useEffect8, useState as useState11 } from "react";
|
|
8158
|
-
import { jsx as
|
|
8157
|
+
import { jsx as jsx82, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
8159
8158
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
|
8160
8159
|
function F_core38677_ViewMenuPermissions() {
|
|
8161
8160
|
var _a, _b;
|
|
@@ -8170,8 +8169,8 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8170
8169
|
store.setProperty("rolePermissions", query.data);
|
|
8171
8170
|
}, [query.data]);
|
|
8172
8171
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
|
8173
|
-
return /* @__PURE__ */
|
|
8174
|
-
/* @__PURE__ */
|
|
8172
|
+
return /* @__PURE__ */ jsx82(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs47(Table3, { children: [
|
|
8173
|
+
/* @__PURE__ */ jsx82(
|
|
8175
8174
|
Table3.Thead,
|
|
8176
8175
|
{
|
|
8177
8176
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
|
@@ -8183,89 +8182,89 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8183
8182
|
border: "1px solid var(--mantine-color-gray-4)"
|
|
8184
8183
|
},
|
|
8185
8184
|
children: /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
8186
|
-
/* @__PURE__ */
|
|
8187
|
-
/* @__PURE__ */
|
|
8188
|
-
/* @__PURE__ */
|
|
8185
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: title }),
|
|
8186
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8187
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
|
8189
8188
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
|
8190
8189
|
} }),
|
|
8191
8190
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8192
8191
|
"Xem",
|
|
8193
|
-
/* @__PURE__ */
|
|
8192
|
+
/* @__PURE__ */ jsx82(IconEyeUp, { color: "gray" })
|
|
8194
8193
|
] })
|
|
8195
8194
|
] }) }),
|
|
8196
|
-
/* @__PURE__ */
|
|
8197
|
-
/* @__PURE__ */
|
|
8195
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8196
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
|
8198
8197
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
|
8199
8198
|
} }),
|
|
8200
8199
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8201
8200
|
"Th\xEAm",
|
|
8202
|
-
/* @__PURE__ */
|
|
8201
|
+
/* @__PURE__ */ jsx82(IconPlus5, { color: "blue" })
|
|
8203
8202
|
] })
|
|
8204
8203
|
] }) }),
|
|
8205
|
-
/* @__PURE__ */
|
|
8206
|
-
/* @__PURE__ */
|
|
8204
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8205
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
|
8207
8206
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
|
8208
8207
|
} }),
|
|
8209
8208
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8210
8209
|
"S\u1EEDa",
|
|
8211
|
-
/* @__PURE__ */
|
|
8210
|
+
/* @__PURE__ */ jsx82(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
|
8212
8211
|
] })
|
|
8213
8212
|
] }) }),
|
|
8214
|
-
/* @__PURE__ */
|
|
8215
|
-
/* @__PURE__ */
|
|
8213
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8214
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
|
8216
8215
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
|
8217
8216
|
} }),
|
|
8218
8217
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8219
8218
|
"X\xF3a",
|
|
8220
|
-
/* @__PURE__ */
|
|
8219
|
+
/* @__PURE__ */ jsx82(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
|
8221
8220
|
] })
|
|
8222
8221
|
] }) }),
|
|
8223
|
-
/* @__PURE__ */
|
|
8224
|
-
/* @__PURE__ */
|
|
8222
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8223
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
|
8225
8224
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
|
8226
8225
|
} }),
|
|
8227
8226
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8228
8227
|
"In",
|
|
8229
|
-
/* @__PURE__ */
|
|
8228
|
+
/* @__PURE__ */ jsx82(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
|
8230
8229
|
] })
|
|
8231
8230
|
] }) }),
|
|
8232
|
-
/* @__PURE__ */
|
|
8233
|
-
/* @__PURE__ */
|
|
8231
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8232
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
|
8234
8233
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
|
8235
8234
|
} }),
|
|
8236
8235
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8237
8236
|
"Xu\u1EA5t",
|
|
8238
|
-
/* @__PURE__ */
|
|
8237
|
+
/* @__PURE__ */ jsx82(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
|
8239
8238
|
] })
|
|
8240
8239
|
] }) })
|
|
8241
8240
|
] })
|
|
8242
8241
|
}
|
|
8243
8242
|
),
|
|
8244
|
-
/* @__PURE__ */
|
|
8243
|
+
/* @__PURE__ */ jsx82(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) => {
|
|
8245
8244
|
if (item.links == void 0) return /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
8246
|
-
/* @__PURE__ */
|
|
8247
|
-
/* @__PURE__ */
|
|
8248
|
-
/* @__PURE__ */
|
|
8249
|
-
/* @__PURE__ */
|
|
8250
|
-
/* @__PURE__ */
|
|
8251
|
-
/* @__PURE__ */
|
|
8252
|
-
/* @__PURE__ */
|
|
8245
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: item.label }),
|
|
8246
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8247
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8248
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8249
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8250
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8251
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) })
|
|
8253
8252
|
] }, idx);
|
|
8254
8253
|
return /* @__PURE__ */ jsxs47(React2.Fragment, { children: [
|
|
8255
|
-
/* @__PURE__ */
|
|
8254
|
+
/* @__PURE__ */ jsx82(Table3.Tr, { children: /* @__PURE__ */ jsx82(
|
|
8256
8255
|
Table3.Td,
|
|
8257
8256
|
{
|
|
8258
8257
|
colSpan: 7,
|
|
8259
8258
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
|
8260
|
-
children: /* @__PURE__ */
|
|
8259
|
+
children: /* @__PURE__ */ jsx82(Text13, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
|
8261
8260
|
}
|
|
8262
8261
|
) }, item.label),
|
|
8263
8262
|
item.links.map(
|
|
8264
8263
|
(item2, idx2) => {
|
|
8265
8264
|
var _a2, _b2, _c, _d, _e, _f;
|
|
8266
8265
|
return /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
8267
|
-
/* @__PURE__ */
|
|
8268
|
-
/* @__PURE__ */
|
|
8266
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: item2.label }),
|
|
8267
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8269
8268
|
Checkbox3,
|
|
8270
8269
|
{
|
|
8271
8270
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
|
@@ -8276,7 +8275,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8276
8275
|
}
|
|
8277
8276
|
}
|
|
8278
8277
|
) }) }),
|
|
8279
|
-
/* @__PURE__ */
|
|
8278
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8280
8279
|
Checkbox3,
|
|
8281
8280
|
{
|
|
8282
8281
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
|
@@ -8287,7 +8286,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8287
8286
|
}
|
|
8288
8287
|
}
|
|
8289
8288
|
) }) }),
|
|
8290
|
-
/* @__PURE__ */
|
|
8289
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8291
8290
|
Checkbox3,
|
|
8292
8291
|
{
|
|
8293
8292
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
|
@@ -8298,7 +8297,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8298
8297
|
}
|
|
8299
8298
|
}
|
|
8300
8299
|
) }) }),
|
|
8301
|
-
/* @__PURE__ */
|
|
8300
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8302
8301
|
Checkbox3,
|
|
8303
8302
|
{
|
|
8304
8303
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
|
@@ -8309,7 +8308,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8309
8308
|
}
|
|
8310
8309
|
}
|
|
8311
8310
|
) }) }),
|
|
8312
|
-
/* @__PURE__ */
|
|
8311
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8313
8312
|
Checkbox3,
|
|
8314
8313
|
{
|
|
8315
8314
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
|
@@ -8320,7 +8319,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8320
8319
|
}
|
|
8321
8320
|
}
|
|
8322
8321
|
) }) }),
|
|
8323
|
-
/* @__PURE__ */
|
|
8322
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8324
8323
|
Checkbox3,
|
|
8325
8324
|
{
|
|
8326
8325
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
|
@@ -8376,7 +8375,7 @@ function useGetUserPermission() {
|
|
|
8376
8375
|
}
|
|
8377
8376
|
|
|
8378
8377
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
|
8379
|
-
import { jsx as
|
|
8378
|
+
import { jsx as jsx83, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
8380
8379
|
|
|
8381
8380
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
|
8382
8381
|
import { useQuery as useQuery11 } from "@tanstack/react-query";
|
|
@@ -8385,7 +8384,7 @@ import { useMemo as useMemo9 } from "react";
|
|
|
8385
8384
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
|
8386
8385
|
import { FileInput as FileInput6 } from "@mantine/core";
|
|
8387
8386
|
import { useForm as useForm11 } from "@mantine/form";
|
|
8388
|
-
import { jsx as
|
|
8387
|
+
import { jsx as jsx84, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8389
8388
|
function F_core40207_Create() {
|
|
8390
8389
|
const form = useForm11({
|
|
8391
8390
|
mode: "uncontrolled"
|
|
@@ -8400,22 +8399,22 @@ function F_core40207_Create() {
|
|
|
8400
8399
|
})
|
|
8401
8400
|
);
|
|
8402
8401
|
}, children: [
|
|
8403
|
-
/* @__PURE__ */
|
|
8404
|
-
/* @__PURE__ */
|
|
8405
|
-
/* @__PURE__ */
|
|
8402
|
+
/* @__PURE__ */ jsx84(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
|
|
8403
|
+
/* @__PURE__ */ jsx84(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
8404
|
+
/* @__PURE__ */ jsx84(FileInput6, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
8406
8405
|
] });
|
|
8407
8406
|
}
|
|
8408
8407
|
|
|
8409
8408
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
|
8410
|
-
import { jsx as
|
|
8409
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
8411
8410
|
function F_core40207_Delete({ id }) {
|
|
8412
|
-
return /* @__PURE__ */
|
|
8411
|
+
return /* @__PURE__ */ jsx85(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
8413
8412
|
}
|
|
8414
8413
|
|
|
8415
8414
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
|
8416
8415
|
import { FileInput as FileInput7 } from "@mantine/core";
|
|
8417
8416
|
import { useForm as useForm12 } from "@mantine/form";
|
|
8418
|
-
import { jsx as
|
|
8417
|
+
import { jsx as jsx86, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8419
8418
|
function F_core40207_Update({ values }) {
|
|
8420
8419
|
var _a;
|
|
8421
8420
|
const form = useForm12({
|
|
@@ -8430,14 +8429,14 @@ function F_core40207_Update({ values }) {
|
|
|
8430
8429
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
8431
8430
|
}));
|
|
8432
8431
|
}, children: [
|
|
8433
|
-
/* @__PURE__ */
|
|
8434
|
-
/* @__PURE__ */
|
|
8435
|
-
/* @__PURE__ */
|
|
8432
|
+
/* @__PURE__ */ jsx86(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
|
|
8433
|
+
/* @__PURE__ */ jsx86(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
8434
|
+
/* @__PURE__ */ jsx86(FileInput7, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
8436
8435
|
] });
|
|
8437
8436
|
}
|
|
8438
8437
|
|
|
8439
8438
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
|
8440
|
-
import { jsx as
|
|
8439
|
+
import { jsx as jsx87, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8441
8440
|
function F_core40207_Read() {
|
|
8442
8441
|
const query = useQuery11({
|
|
8443
8442
|
queryKey: ["F_core40207_Read"],
|
|
@@ -8460,7 +8459,7 @@ function F_core40207_Read() {
|
|
|
8460
8459
|
{
|
|
8461
8460
|
header: "File",
|
|
8462
8461
|
accessorFn: (row) => {
|
|
8463
|
-
return /* @__PURE__ */
|
|
8462
|
+
return /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(MyButtonViewPDF, { id: row.id }) });
|
|
8464
8463
|
}
|
|
8465
8464
|
}
|
|
8466
8465
|
],
|
|
@@ -8468,16 +8467,16 @@ function F_core40207_Read() {
|
|
|
8468
8467
|
);
|
|
8469
8468
|
if (query.isLoading) return "Loading...";
|
|
8470
8469
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
8471
|
-
return /* @__PURE__ */
|
|
8470
|
+
return /* @__PURE__ */ jsx87(
|
|
8472
8471
|
MyDataTable,
|
|
8473
8472
|
{
|
|
8474
8473
|
columns,
|
|
8475
8474
|
data: query.data,
|
|
8476
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8475
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx87(F_core40207_Create, {}),
|
|
8477
8476
|
renderRowActions: ({ row }) => {
|
|
8478
8477
|
return /* @__PURE__ */ jsxs51(MyCenterFull, { children: [
|
|
8479
|
-
/* @__PURE__ */
|
|
8480
|
-
/* @__PURE__ */
|
|
8478
|
+
/* @__PURE__ */ jsx87(F_core40207_Update, { values: row.original }),
|
|
8479
|
+
/* @__PURE__ */ jsx87(F_core40207_Delete, { id: row.original.id })
|
|
8481
8480
|
] });
|
|
8482
8481
|
}
|
|
8483
8482
|
}
|
|
@@ -8485,9 +8484,9 @@ function F_core40207_Read() {
|
|
|
8485
8484
|
}
|
|
8486
8485
|
|
|
8487
8486
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
|
8488
|
-
import { jsx as
|
|
8487
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
8489
8488
|
function F_core40207() {
|
|
8490
|
-
return /* @__PURE__ */
|
|
8489
|
+
return /* @__PURE__ */ jsx88(MyPageContent, { children: /* @__PURE__ */ jsx88(F_core40207_Read, {}) });
|
|
8491
8490
|
}
|
|
8492
8491
|
|
|
8493
8492
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
|
@@ -8496,10 +8495,10 @@ import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
|
8496
8495
|
import { useMemo as useMemo10 } from "react";
|
|
8497
8496
|
|
|
8498
8497
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
|
8499
|
-
import { jsx as
|
|
8498
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
8500
8499
|
var ENDPOINT = "/Role/Delete";
|
|
8501
8500
|
function F_core47643_Delete({ values }) {
|
|
8502
|
-
return /* @__PURE__ */
|
|
8501
|
+
return /* @__PURE__ */ jsx89(
|
|
8503
8502
|
MyActionIconDelete,
|
|
8504
8503
|
{
|
|
8505
8504
|
contextData: values.code,
|
|
@@ -8510,7 +8509,7 @@ function F_core47643_Delete({ values }) {
|
|
|
8510
8509
|
|
|
8511
8510
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
|
8512
8511
|
import { useForm as useForm13 } from "@mantine/form";
|
|
8513
|
-
import { jsx as
|
|
8512
|
+
import { jsx as jsx90, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8514
8513
|
function F_core47643_Form({ values }) {
|
|
8515
8514
|
const form = useForm13({
|
|
8516
8515
|
mode: "uncontrolled",
|
|
@@ -8519,19 +8518,19 @@ function F_core47643_Form({ values }) {
|
|
|
8519
8518
|
if (values) return /* @__PURE__ */ jsxs52(MyActionIconUpdate, { form, onSubmit: async () => {
|
|
8520
8519
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
|
8521
8520
|
}, children: [
|
|
8522
|
-
/* @__PURE__ */
|
|
8523
|
-
/* @__PURE__ */
|
|
8521
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
|
8522
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
|
8524
8523
|
] });
|
|
8525
8524
|
return /* @__PURE__ */ jsxs52(MyButtonCreate, { form, onSubmit: async () => {
|
|
8526
8525
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
|
8527
8526
|
}, children: [
|
|
8528
|
-
/* @__PURE__ */
|
|
8529
|
-
/* @__PURE__ */
|
|
8527
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
|
8528
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
|
8530
8529
|
] });
|
|
8531
8530
|
}
|
|
8532
8531
|
|
|
8533
8532
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
|
8534
|
-
import { jsx as
|
|
8533
|
+
import { jsx as jsx91, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8535
8534
|
function F_core47643_Read() {
|
|
8536
8535
|
const query = useQ_core47643_GetAdminRole();
|
|
8537
8536
|
const columns = useMemo10(() => [
|
|
@@ -8546,15 +8545,15 @@ function F_core47643_Read() {
|
|
|
8546
8545
|
], []);
|
|
8547
8546
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
|
8548
8547
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
8549
|
-
return /* @__PURE__ */
|
|
8548
|
+
return /* @__PURE__ */ jsx91(
|
|
8550
8549
|
MyDataTable,
|
|
8551
8550
|
{
|
|
8552
8551
|
data: query.data,
|
|
8553
8552
|
columns,
|
|
8554
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8553
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx91(Group15, { children: /* @__PURE__ */ jsx91(F_core47643_Form, {}) }),
|
|
8555
8554
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs53(MyCenterFull, { children: [
|
|
8556
|
-
/* @__PURE__ */
|
|
8557
|
-
/* @__PURE__ */
|
|
8555
|
+
/* @__PURE__ */ jsx91(F_core47643_Form, { values: row.original }),
|
|
8556
|
+
/* @__PURE__ */ jsx91(F_core47643_Delete, { values: row.original })
|
|
8558
8557
|
] })
|
|
8559
8558
|
}
|
|
8560
8559
|
);
|
|
@@ -8571,15 +8570,15 @@ function useQ_core47643_GetAdminRole() {
|
|
|
8571
8570
|
}
|
|
8572
8571
|
|
|
8573
8572
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
|
8574
|
-
import { jsx as
|
|
8573
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
8575
8574
|
function F_core47643() {
|
|
8576
|
-
return /* @__PURE__ */
|
|
8575
|
+
return /* @__PURE__ */ jsx92(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx92(F_core47643_Read, {}) });
|
|
8577
8576
|
}
|
|
8578
8577
|
|
|
8579
8578
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
|
8580
|
-
import { jsx as
|
|
8579
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
8581
8580
|
function F_core64229_Delete({ values }) {
|
|
8582
|
-
return /* @__PURE__ */
|
|
8581
|
+
return /* @__PURE__ */ jsx93(
|
|
8583
8582
|
MyActionIconDelete,
|
|
8584
8583
|
{
|
|
8585
8584
|
contextData: values == null ? void 0 : values.code,
|
|
@@ -8604,7 +8603,7 @@ var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
|
|
|
8604
8603
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
|
8605
8604
|
import { PasswordInput } from "@mantine/core";
|
|
8606
8605
|
import { useForm as useForm14 } from "@mantine/form";
|
|
8607
|
-
import { jsx as
|
|
8606
|
+
import { jsx as jsx94, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8608
8607
|
function F_core64229_Form({ values }) {
|
|
8609
8608
|
const form = useForm14({
|
|
8610
8609
|
mode: "uncontrolled",
|
|
@@ -8630,27 +8629,27 @@ function F_core64229_Form({ values }) {
|
|
|
8630
8629
|
"password": formValues.password
|
|
8631
8630
|
});
|
|
8632
8631
|
}
|
|
8633
|
-
if (values) return /* @__PURE__ */
|
|
8632
|
+
if (values) return /* @__PURE__ */ jsx94(
|
|
8634
8633
|
MyActionIconUpdate,
|
|
8635
8634
|
{
|
|
8636
8635
|
form,
|
|
8637
8636
|
onSubmit: handleSubmit,
|
|
8638
|
-
children: /* @__PURE__ */
|
|
8637
|
+
children: /* @__PURE__ */ jsx94(FormInput, { form })
|
|
8639
8638
|
}
|
|
8640
8639
|
);
|
|
8641
|
-
return /* @__PURE__ */
|
|
8640
|
+
return /* @__PURE__ */ jsx94(
|
|
8642
8641
|
MyButtonCreate,
|
|
8643
8642
|
{
|
|
8644
8643
|
form,
|
|
8645
8644
|
onSubmit: handleSubmit,
|
|
8646
|
-
children: /* @__PURE__ */
|
|
8645
|
+
children: /* @__PURE__ */ jsx94(FormInput, { form })
|
|
8647
8646
|
}
|
|
8648
8647
|
);
|
|
8649
8648
|
}
|
|
8650
8649
|
function FormInput({ form }) {
|
|
8651
8650
|
var _a, _b;
|
|
8652
8651
|
return /* @__PURE__ */ jsxs54(MyFlexColumn, { children: [
|
|
8653
|
-
/* @__PURE__ */
|
|
8652
|
+
/* @__PURE__ */ jsx94(
|
|
8654
8653
|
MySelect,
|
|
8655
8654
|
__spreadProps(__spreadValues({
|
|
8656
8655
|
label: "Ph\xE2n h\u1EC7",
|
|
@@ -8659,25 +8658,25 @@ function FormInput({ form }) {
|
|
|
8659
8658
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
|
8660
8659
|
})
|
|
8661
8660
|
),
|
|
8662
|
-
/* @__PURE__ */
|
|
8661
|
+
/* @__PURE__ */ jsx94(
|
|
8663
8662
|
MyTextInput,
|
|
8664
8663
|
__spreadValues({
|
|
8665
8664
|
label: "Host mail server"
|
|
8666
8665
|
}, form.getInputProps("hostMailServer"))
|
|
8667
8666
|
),
|
|
8668
|
-
/* @__PURE__ */
|
|
8667
|
+
/* @__PURE__ */ jsx94(
|
|
8669
8668
|
MyNumberInput,
|
|
8670
8669
|
__spreadValues({
|
|
8671
8670
|
label: "Outgoing port"
|
|
8672
8671
|
}, form.getInputProps("outgoingPort"))
|
|
8673
8672
|
),
|
|
8674
|
-
/* @__PURE__ */
|
|
8673
|
+
/* @__PURE__ */ jsx94(
|
|
8675
8674
|
MyNumberInput,
|
|
8676
8675
|
__spreadValues({
|
|
8677
8676
|
label: "Incoming port"
|
|
8678
8677
|
}, form.getInputProps("incomingPort"))
|
|
8679
8678
|
),
|
|
8680
|
-
/* @__PURE__ */
|
|
8679
|
+
/* @__PURE__ */ jsx94(
|
|
8681
8680
|
MySelect,
|
|
8682
8681
|
{
|
|
8683
8682
|
label: "SSL",
|
|
@@ -8686,13 +8685,13 @@ function FormInput({ form }) {
|
|
|
8686
8685
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
|
8687
8686
|
}
|
|
8688
8687
|
),
|
|
8689
|
-
/* @__PURE__ */
|
|
8688
|
+
/* @__PURE__ */ jsx94(
|
|
8690
8689
|
MyTextInput,
|
|
8691
8690
|
__spreadValues({
|
|
8692
8691
|
label: "Username"
|
|
8693
8692
|
}, form.getInputProps("userName"))
|
|
8694
8693
|
),
|
|
8695
|
-
/* @__PURE__ */
|
|
8694
|
+
/* @__PURE__ */ jsx94(
|
|
8696
8695
|
PasswordInput,
|
|
8697
8696
|
__spreadValues({
|
|
8698
8697
|
label: "Password",
|
|
@@ -8705,7 +8704,7 @@ function FormInput({ form }) {
|
|
|
8705
8704
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
|
8706
8705
|
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
8707
8706
|
import { useMemo as useMemo11 } from "react";
|
|
8708
|
-
import { jsx as
|
|
8707
|
+
import { jsx as jsx95, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8709
8708
|
function F_core64229_Read() {
|
|
8710
8709
|
const query = useQuery13({
|
|
8711
8710
|
queryKey: ["F_core64229_Read"],
|
|
@@ -8750,15 +8749,15 @@ function F_core64229_Read() {
|
|
|
8750
8749
|
}
|
|
8751
8750
|
], []);
|
|
8752
8751
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
|
8753
|
-
return /* @__PURE__ */
|
|
8752
|
+
return /* @__PURE__ */ jsx95(
|
|
8754
8753
|
MyDataTable,
|
|
8755
8754
|
{
|
|
8756
8755
|
columns,
|
|
8757
8756
|
data: query.data,
|
|
8758
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8757
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx95(F_core64229_Form, {}),
|
|
8759
8758
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs55(MyCenterFull, { children: [
|
|
8760
|
-
/* @__PURE__ */
|
|
8761
|
-
/* @__PURE__ */
|
|
8759
|
+
/* @__PURE__ */ jsx95(F_core64229_Form, { values: row.original }),
|
|
8760
|
+
/* @__PURE__ */ jsx95(F_core64229_Delete, { values: row.original })
|
|
8762
8761
|
] })
|
|
8763
8762
|
}
|
|
8764
8763
|
);
|
|
@@ -8776,7 +8775,7 @@ import { Button as Button16, Fieldset as Fieldset6, Group as Group16, Table as T
|
|
|
8776
8775
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
|
8777
8776
|
import { useMutation as useMutation6, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
8778
8777
|
import { useEffect as useEffect9, useMemo as useMemo12, useState as useState12 } from "react";
|
|
8779
|
-
import { jsx as
|
|
8778
|
+
import { jsx as jsx96, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
8780
8779
|
function F_core71678_ChangePermission({ user }) {
|
|
8781
8780
|
const disc = useDisclosure12();
|
|
8782
8781
|
const queryClient = useQueryClient5();
|
|
@@ -8824,7 +8823,7 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8824
8823
|
setRowSelection(result);
|
|
8825
8824
|
}, []);
|
|
8826
8825
|
return /* @__PURE__ */ jsxs56(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
|
|
8827
|
-
/* @__PURE__ */
|
|
8826
|
+
/* @__PURE__ */ jsx96(
|
|
8828
8827
|
Table4,
|
|
8829
8828
|
{
|
|
8830
8829
|
w: "100%",
|
|
@@ -8832,23 +8831,23 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8832
8831
|
layout: "fixed",
|
|
8833
8832
|
children: /* @__PURE__ */ jsxs56(Table4.Tbody, { children: [
|
|
8834
8833
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8835
|
-
/* @__PURE__ */
|
|
8836
|
-
/* @__PURE__ */
|
|
8834
|
+
/* @__PURE__ */ jsx96(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
|
8835
|
+
/* @__PURE__ */ jsx96(Table4.Td, { children: user.fullName })
|
|
8837
8836
|
] }),
|
|
8838
8837
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8839
|
-
/* @__PURE__ */
|
|
8840
|
-
/* @__PURE__ */
|
|
8838
|
+
/* @__PURE__ */ jsx96(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
|
8839
|
+
/* @__PURE__ */ jsx96(Table4.Td, { children: user.userName })
|
|
8841
8840
|
] }),
|
|
8842
8841
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8843
|
-
/* @__PURE__ */
|
|
8844
|
-
/* @__PURE__ */
|
|
8842
|
+
/* @__PURE__ */ jsx96(Table4.Th, { children: "Email:" }),
|
|
8843
|
+
/* @__PURE__ */ jsx96(Table4.Td, { children: user.email })
|
|
8845
8844
|
] })
|
|
8846
8845
|
] })
|
|
8847
8846
|
}
|
|
8848
8847
|
),
|
|
8849
8848
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
|
8850
8849
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
|
8851
|
-
/* @__PURE__ */
|
|
8850
|
+
/* @__PURE__ */ jsx96(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx96(
|
|
8852
8851
|
MyDataTable,
|
|
8853
8852
|
{
|
|
8854
8853
|
enableRowSelection: true,
|
|
@@ -8872,13 +8871,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8872
8871
|
data: query.data
|
|
8873
8872
|
}
|
|
8874
8873
|
) }),
|
|
8875
|
-
/* @__PURE__ */
|
|
8874
|
+
/* @__PURE__ */ jsx96(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx96(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
|
|
8876
8875
|
] });
|
|
8877
8876
|
}
|
|
8878
8877
|
|
|
8879
8878
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
|
8880
8879
|
import { useForm as useForm15 } from "@mantine/form";
|
|
8881
|
-
import { jsx as
|
|
8880
|
+
import { jsx as jsx97, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
8882
8881
|
var ENDPOINT2 = "/Account/create";
|
|
8883
8882
|
function F_core71678_Create() {
|
|
8884
8883
|
const form = useForm15({
|
|
@@ -8907,20 +8906,20 @@ function F_core71678_Create() {
|
|
|
8907
8906
|
}));
|
|
8908
8907
|
}
|
|
8909
8908
|
return /* @__PURE__ */ jsxs57(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
|
8910
|
-
/* @__PURE__ */
|
|
8911
|
-
/* @__PURE__ */
|
|
8912
|
-
/* @__PURE__ */
|
|
8913
|
-
/* @__PURE__ */
|
|
8914
|
-
/* @__PURE__ */
|
|
8915
|
-
/* @__PURE__ */
|
|
8909
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
8910
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
|
8911
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
|
8912
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
|
8913
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
|
8914
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
|
8916
8915
|
] });
|
|
8917
8916
|
}
|
|
8918
8917
|
|
|
8919
8918
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
|
8920
|
-
import { jsx as
|
|
8919
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
8921
8920
|
var ENDPOINT3 = "/Account/delete";
|
|
8922
8921
|
function F_core71678_Delete({ id, code }) {
|
|
8923
|
-
return /* @__PURE__ */
|
|
8922
|
+
return /* @__PURE__ */ jsx98(
|
|
8924
8923
|
MyActionIconDelete,
|
|
8925
8924
|
{
|
|
8926
8925
|
contextData: code,
|
|
@@ -8932,7 +8931,7 @@ function F_core71678_Delete({ id, code }) {
|
|
|
8932
8931
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
|
8933
8932
|
import { useForm as useForm16 } from "@mantine/form";
|
|
8934
8933
|
import { useEffect as useEffect10 } from "react";
|
|
8935
|
-
import { jsx as
|
|
8934
|
+
import { jsx as jsx99, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8936
8935
|
function F_core71678_Update({ user }) {
|
|
8937
8936
|
const form = useForm16({
|
|
8938
8937
|
initialValues: user
|
|
@@ -8940,7 +8939,7 @@ function F_core71678_Update({ user }) {
|
|
|
8940
8939
|
useEffect10(() => {
|
|
8941
8940
|
console.log(form.values);
|
|
8942
8941
|
}, [form.values]);
|
|
8943
|
-
return /* @__PURE__ */
|
|
8942
|
+
return /* @__PURE__ */ jsx99(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
|
8944
8943
|
return await baseAxios_default.post(
|
|
8945
8944
|
"/Account/update",
|
|
8946
8945
|
__spreadProps(__spreadValues({}, values), {
|
|
@@ -8953,16 +8952,16 @@ function F_core71678_Update({ user }) {
|
|
|
8953
8952
|
})
|
|
8954
8953
|
);
|
|
8955
8954
|
}, children: /* @__PURE__ */ jsxs58(MyFlexColumn, { children: [
|
|
8956
|
-
/* @__PURE__ */
|
|
8957
|
-
/* @__PURE__ */
|
|
8958
|
-
/* @__PURE__ */
|
|
8959
|
-
/* @__PURE__ */
|
|
8960
|
-
/* @__PURE__ */
|
|
8955
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
8956
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
|
8957
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
|
8958
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
|
8959
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
|
8961
8960
|
] }) });
|
|
8962
8961
|
}
|
|
8963
8962
|
|
|
8964
8963
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
|
8965
|
-
import { jsx as
|
|
8964
|
+
import { jsx as jsx100, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8966
8965
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
|
8967
8966
|
function F_core71678_Read() {
|
|
8968
8967
|
const router = useRouter3();
|
|
@@ -8994,25 +8993,25 @@ function F_core71678_Read() {
|
|
|
8994
8993
|
},
|
|
8995
8994
|
{
|
|
8996
8995
|
header: "Quy\u1EC1n",
|
|
8997
|
-
accessorFn: (row) => /* @__PURE__ */
|
|
8996
|
+
accessorFn: (row) => /* @__PURE__ */ jsx100(F_core71678_ChangePermission, { user: row })
|
|
8998
8997
|
}
|
|
8999
8998
|
],
|
|
9000
8999
|
[]
|
|
9001
9000
|
);
|
|
9002
9001
|
if (AllUserQuery.isLoading) return "Loading...";
|
|
9003
|
-
return /* @__PURE__ */
|
|
9002
|
+
return /* @__PURE__ */ jsx100(
|
|
9004
9003
|
MyDataTable,
|
|
9005
9004
|
{
|
|
9006
9005
|
columns,
|
|
9007
9006
|
data: AllUserQuery.data,
|
|
9008
9007
|
renderTopToolbarCustomActions: () => {
|
|
9009
9008
|
return /* @__PURE__ */ jsxs59(Group17, { children: [
|
|
9010
|
-
/* @__PURE__ */
|
|
9011
|
-
/* @__PURE__ */
|
|
9009
|
+
/* @__PURE__ */ jsx100(F_core71678_Create, {}),
|
|
9010
|
+
/* @__PURE__ */ jsx100(
|
|
9012
9011
|
Button17,
|
|
9013
9012
|
{
|
|
9014
9013
|
color: "violet",
|
|
9015
|
-
leftSection: /* @__PURE__ */
|
|
9014
|
+
leftSection: /* @__PURE__ */ jsx100(IconShield, {}),
|
|
9016
9015
|
onClick: () => {
|
|
9017
9016
|
router.push("core47643");
|
|
9018
9017
|
},
|
|
@@ -9023,8 +9022,8 @@ function F_core71678_Read() {
|
|
|
9023
9022
|
},
|
|
9024
9023
|
renderRowActions: ({ row }) => {
|
|
9025
9024
|
return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
|
9026
|
-
/* @__PURE__ */
|
|
9027
|
-
/* @__PURE__ */
|
|
9025
|
+
/* @__PURE__ */ jsx100(F_core71678_Update, { user: row.original }),
|
|
9026
|
+
/* @__PURE__ */ jsx100(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
|
9028
9027
|
] });
|
|
9029
9028
|
}
|
|
9030
9029
|
}
|
|
@@ -9032,7 +9031,7 @@ function F_core71678_Read() {
|
|
|
9032
9031
|
}
|
|
9033
9032
|
|
|
9034
9033
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
|
9035
|
-
import { jsx as
|
|
9034
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
9036
9035
|
|
|
9037
9036
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
|
9038
9037
|
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
@@ -9041,7 +9040,7 @@ import { useMemo as useMemo14 } from "react";
|
|
|
9041
9040
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
|
9042
9041
|
import { FileInput as FileInput8 } from "@mantine/core";
|
|
9043
9042
|
import { useForm as useForm17 } from "@mantine/form";
|
|
9044
|
-
import { jsx as
|
|
9043
|
+
import { jsx as jsx102, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9045
9044
|
function F_core76318_Create() {
|
|
9046
9045
|
const form = useForm17({
|
|
9047
9046
|
mode: "uncontrolled"
|
|
@@ -9056,23 +9055,23 @@ function F_core76318_Create() {
|
|
|
9056
9055
|
})
|
|
9057
9056
|
);
|
|
9058
9057
|
}, children: [
|
|
9059
|
-
/* @__PURE__ */
|
|
9060
|
-
/* @__PURE__ */
|
|
9061
|
-
/* @__PURE__ */
|
|
9062
|
-
/* @__PURE__ */
|
|
9058
|
+
/* @__PURE__ */ jsx102(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
9059
|
+
/* @__PURE__ */ jsx102(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
9060
|
+
/* @__PURE__ */ jsx102(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
9061
|
+
/* @__PURE__ */ jsx102(FileInput8, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
9063
9062
|
] });
|
|
9064
9063
|
}
|
|
9065
9064
|
|
|
9066
9065
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
|
9067
|
-
import { jsx as
|
|
9066
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
9068
9067
|
function F_core76318_Delete({ id }) {
|
|
9069
|
-
return /* @__PURE__ */
|
|
9068
|
+
return /* @__PURE__ */ jsx103(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
9070
9069
|
}
|
|
9071
9070
|
|
|
9072
9071
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
|
9073
9072
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
|
9074
9073
|
import { useForm as useForm18 } from "@mantine/form";
|
|
9075
|
-
import { jsx as
|
|
9074
|
+
import { jsx as jsx104, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
9076
9075
|
function F_core76318_Update({ values }) {
|
|
9077
9076
|
var _a;
|
|
9078
9077
|
const form = useForm18({
|
|
@@ -9087,18 +9086,18 @@ function F_core76318_Update({ values }) {
|
|
|
9087
9086
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
9088
9087
|
}));
|
|
9089
9088
|
}, children: [
|
|
9090
|
-
/* @__PURE__ */
|
|
9091
|
-
/* @__PURE__ */
|
|
9092
|
-
/* @__PURE__ */
|
|
9093
|
-
/* @__PURE__ */
|
|
9089
|
+
/* @__PURE__ */ jsx104(TextInput5, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
9090
|
+
/* @__PURE__ */ jsx104(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
9091
|
+
/* @__PURE__ */ jsx104(TextInput5, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
9092
|
+
/* @__PURE__ */ jsx104(FileInput9, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
9094
9093
|
] });
|
|
9095
9094
|
}
|
|
9096
9095
|
|
|
9097
9096
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
|
9098
|
-
import { jsx as
|
|
9097
|
+
import { jsx as jsx105, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
9099
9098
|
|
|
9100
9099
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
|
9101
|
-
import { jsx as
|
|
9100
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
9102
9101
|
|
|
9103
9102
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
|
9104
9103
|
import { Grid as Grid2, Paper as Paper7, ScrollArea as ScrollArea8 } from "@mantine/core";
|
|
@@ -9107,7 +9106,7 @@ import { Grid as Grid2, Paper as Paper7, ScrollArea as ScrollArea8 } from "@mant
|
|
|
9107
9106
|
import { Container as Container5 } from "@mantine/core";
|
|
9108
9107
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
9109
9108
|
import { useEffect as useEffect11, useMemo as useMemo15, useState as useState14 } from "react";
|
|
9110
|
-
import { jsx as
|
|
9109
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
9111
9110
|
function F_core83092_ReadUser() {
|
|
9112
9111
|
const store = useS_core83092();
|
|
9113
9112
|
const query = useQ_core83092_Account_GetAdminAccount();
|
|
@@ -9140,7 +9139,7 @@ function F_core83092_ReadUser() {
|
|
|
9140
9139
|
}, [query.data]);
|
|
9141
9140
|
if (query.isLoading) return "Loading...";
|
|
9142
9141
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
9143
|
-
return /* @__PURE__ */
|
|
9142
|
+
return /* @__PURE__ */ jsx107(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx107(
|
|
9144
9143
|
MyDataTable,
|
|
9145
9144
|
{
|
|
9146
9145
|
columns,
|
|
@@ -9176,7 +9175,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
|
9176
9175
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
|
9177
9176
|
import { useMutation as useMutation7 } from "@tanstack/react-query";
|
|
9178
9177
|
import { useEffect as useEffect12, useState as useState15 } from "react";
|
|
9179
|
-
import { jsx as
|
|
9178
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
9180
9179
|
function F_core83092_Save() {
|
|
9181
9180
|
const store = useS_core83092();
|
|
9182
9181
|
const disable = useState15(false);
|
|
@@ -9205,7 +9204,7 @@ function F_core83092_Save() {
|
|
|
9205
9204
|
}
|
|
9206
9205
|
disable[1](false);
|
|
9207
9206
|
}, [store.state.rolePermissions]);
|
|
9208
|
-
return /* @__PURE__ */
|
|
9207
|
+
return /* @__PURE__ */ jsx108(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
|
9209
9208
|
}
|
|
9210
9209
|
|
|
9211
9210
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
|
@@ -9213,7 +9212,7 @@ import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table
|
|
|
9213
9212
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
|
9214
9213
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
|
9215
9214
|
import React4, { useEffect as useEffect13, useState as useState16 } from "react";
|
|
9216
|
-
import { jsx as
|
|
9215
|
+
import { jsx as jsx109, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9217
9216
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
|
9218
9217
|
function F_core83092_ViewMenuPermissions() {
|
|
9219
9218
|
var _a, _b;
|
|
@@ -9228,8 +9227,8 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9228
9227
|
store.setProperty("rolePermissions", query.data);
|
|
9229
9228
|
}, [query.data]);
|
|
9230
9229
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
|
9231
|
-
return /* @__PURE__ */
|
|
9232
|
-
/* @__PURE__ */
|
|
9230
|
+
return /* @__PURE__ */ jsx109(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs63(Table5, { children: [
|
|
9231
|
+
/* @__PURE__ */ jsx109(
|
|
9233
9232
|
Table5.Thead,
|
|
9234
9233
|
{
|
|
9235
9234
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
|
@@ -9241,89 +9240,89 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9241
9240
|
border: "1px solid var(--mantine-color-gray-4)"
|
|
9242
9241
|
},
|
|
9243
9242
|
children: /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
9244
|
-
/* @__PURE__ */
|
|
9245
|
-
/* @__PURE__ */
|
|
9246
|
-
/* @__PURE__ */
|
|
9243
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: title2 }),
|
|
9244
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9245
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
|
9247
9246
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
|
9248
9247
|
} }),
|
|
9249
9248
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9250
9249
|
"Xem",
|
|
9251
|
-
/* @__PURE__ */
|
|
9250
|
+
/* @__PURE__ */ jsx109(IconEyeUp2, { color: "gray" })
|
|
9252
9251
|
] })
|
|
9253
9252
|
] }) }),
|
|
9254
|
-
/* @__PURE__ */
|
|
9255
|
-
/* @__PURE__ */
|
|
9253
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9254
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
|
9256
9255
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
|
9257
9256
|
} }),
|
|
9258
9257
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9259
9258
|
"Th\xEAm",
|
|
9260
|
-
/* @__PURE__ */
|
|
9259
|
+
/* @__PURE__ */ jsx109(IconPlus6, { color: "blue" })
|
|
9261
9260
|
] })
|
|
9262
9261
|
] }) }),
|
|
9263
|
-
/* @__PURE__ */
|
|
9264
|
-
/* @__PURE__ */
|
|
9262
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9263
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
|
9265
9264
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
|
9266
9265
|
} }),
|
|
9267
9266
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9268
9267
|
"S\u1EEDa",
|
|
9269
|
-
/* @__PURE__ */
|
|
9268
|
+
/* @__PURE__ */ jsx109(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
|
9270
9269
|
] })
|
|
9271
9270
|
] }) }),
|
|
9272
|
-
/* @__PURE__ */
|
|
9273
|
-
/* @__PURE__ */
|
|
9271
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9272
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
|
9274
9273
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
|
9275
9274
|
} }),
|
|
9276
9275
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9277
9276
|
"X\xF3a",
|
|
9278
|
-
/* @__PURE__ */
|
|
9277
|
+
/* @__PURE__ */ jsx109(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
|
9279
9278
|
] })
|
|
9280
9279
|
] }) }),
|
|
9281
|
-
/* @__PURE__ */
|
|
9282
|
-
/* @__PURE__ */
|
|
9280
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9281
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
|
9283
9282
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
|
9284
9283
|
} }),
|
|
9285
9284
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9286
9285
|
"In",
|
|
9287
|
-
/* @__PURE__ */
|
|
9286
|
+
/* @__PURE__ */ jsx109(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
|
9288
9287
|
] })
|
|
9289
9288
|
] }) }),
|
|
9290
|
-
/* @__PURE__ */
|
|
9291
|
-
/* @__PURE__ */
|
|
9289
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9290
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
|
9292
9291
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
|
9293
9292
|
} }),
|
|
9294
9293
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9295
9294
|
"Xu\u1EA5t",
|
|
9296
|
-
/* @__PURE__ */
|
|
9295
|
+
/* @__PURE__ */ jsx109(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
|
9297
9296
|
] })
|
|
9298
9297
|
] }) })
|
|
9299
9298
|
] })
|
|
9300
9299
|
}
|
|
9301
9300
|
),
|
|
9302
|
-
/* @__PURE__ */
|
|
9301
|
+
/* @__PURE__ */ jsx109(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) => {
|
|
9303
9302
|
if (item.links == void 0) return /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
9304
|
-
/* @__PURE__ */
|
|
9305
|
-
/* @__PURE__ */
|
|
9306
|
-
/* @__PURE__ */
|
|
9307
|
-
/* @__PURE__ */
|
|
9308
|
-
/* @__PURE__ */
|
|
9309
|
-
/* @__PURE__ */
|
|
9310
|
-
/* @__PURE__ */
|
|
9303
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: item.label }),
|
|
9304
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9305
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9306
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9307
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9308
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9309
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) })
|
|
9311
9310
|
] }, idx);
|
|
9312
9311
|
return /* @__PURE__ */ jsxs63(React4.Fragment, { children: [
|
|
9313
|
-
/* @__PURE__ */
|
|
9312
|
+
/* @__PURE__ */ jsx109(Table5.Tr, { children: /* @__PURE__ */ jsx109(
|
|
9314
9313
|
Table5.Td,
|
|
9315
9314
|
{
|
|
9316
9315
|
colSpan: 7,
|
|
9317
9316
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
|
9318
|
-
children: /* @__PURE__ */
|
|
9317
|
+
children: /* @__PURE__ */ jsx109(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
|
9319
9318
|
}
|
|
9320
9319
|
) }, item.label),
|
|
9321
9320
|
item.links.map(
|
|
9322
9321
|
(item2, idx2) => {
|
|
9323
9322
|
var _a2, _b2, _c, _d, _e, _f;
|
|
9324
9323
|
return /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
9325
|
-
/* @__PURE__ */
|
|
9326
|
-
/* @__PURE__ */
|
|
9324
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: item2.label }),
|
|
9325
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9327
9326
|
Checkbox4,
|
|
9328
9327
|
{
|
|
9329
9328
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
|
@@ -9334,7 +9333,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9334
9333
|
}
|
|
9335
9334
|
}
|
|
9336
9335
|
) }) }),
|
|
9337
|
-
/* @__PURE__ */
|
|
9336
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9338
9337
|
Checkbox4,
|
|
9339
9338
|
{
|
|
9340
9339
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
|
@@ -9345,7 +9344,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9345
9344
|
}
|
|
9346
9345
|
}
|
|
9347
9346
|
) }) }),
|
|
9348
|
-
/* @__PURE__ */
|
|
9347
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9349
9348
|
Checkbox4,
|
|
9350
9349
|
{
|
|
9351
9350
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
|
@@ -9356,7 +9355,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9356
9355
|
}
|
|
9357
9356
|
}
|
|
9358
9357
|
) }) }),
|
|
9359
|
-
/* @__PURE__ */
|
|
9358
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9360
9359
|
Checkbox4,
|
|
9361
9360
|
{
|
|
9362
9361
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
|
@@ -9367,7 +9366,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9367
9366
|
}
|
|
9368
9367
|
}
|
|
9369
9368
|
) }) }),
|
|
9370
|
-
/* @__PURE__ */
|
|
9369
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9371
9370
|
Checkbox4,
|
|
9372
9371
|
{
|
|
9373
9372
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
|
@@ -9378,7 +9377,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9378
9377
|
}
|
|
9379
9378
|
}
|
|
9380
9379
|
) }) }),
|
|
9381
|
-
/* @__PURE__ */
|
|
9380
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9382
9381
|
Checkbox4,
|
|
9383
9382
|
{
|
|
9384
9383
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
|
@@ -9434,13 +9433,13 @@ function useGetUserPermission2() {
|
|
|
9434
9433
|
}
|
|
9435
9434
|
|
|
9436
9435
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
|
9437
|
-
import { jsx as
|
|
9436
|
+
import { jsx as jsx110, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9438
9437
|
function F_core83092() {
|
|
9439
|
-
return /* @__PURE__ */
|
|
9440
|
-
/* @__PURE__ */
|
|
9441
|
-
/* @__PURE__ */
|
|
9442
|
-
/* @__PURE__ */
|
|
9443
|
-
/* @__PURE__ */
|
|
9438
|
+
return /* @__PURE__ */ jsx110(MyPageContent, { children: /* @__PURE__ */ jsxs64(Grid2, { grow: true, children: [
|
|
9439
|
+
/* @__PURE__ */ jsx110(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx110(F_core83092_ReadUser, {}) }),
|
|
9440
|
+
/* @__PURE__ */ jsx110(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs64(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
|
9441
|
+
/* @__PURE__ */ jsx110(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx110(Paper7, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx110(F_core83092_ViewMenuPermissions, {}) }) }),
|
|
9442
|
+
/* @__PURE__ */ jsx110(F_core83092_Save, {})
|
|
9444
9443
|
] }) })
|
|
9445
9444
|
] }) });
|
|
9446
9445
|
}
|
|
@@ -9448,58 +9447,58 @@ function F_core83092() {
|
|
|
9448
9447
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
|
9449
9448
|
import { BarChart } from "@mantine/charts";
|
|
9450
9449
|
import { Group as Group18, Paper as Paper8, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
|
9451
|
-
import { Fragment as Fragment13, jsx as
|
|
9450
|
+
import { Fragment as Fragment13, jsx as jsx111, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
9452
9451
|
|
|
9453
9452
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
|
9454
9453
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
|
9455
9454
|
import { Group as Group19, Paper as Paper9, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
|
9456
|
-
import { Fragment as Fragment14, jsx as
|
|
9455
|
+
import { Fragment as Fragment14, jsx as jsx112, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9457
9456
|
|
|
9458
9457
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
|
9459
9458
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
|
9460
9459
|
import { Group as Group20, Paper as Paper10, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
|
9461
|
-
import { Fragment as Fragment15, jsx as
|
|
9460
|
+
import { Fragment as Fragment15, jsx as jsx113, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
9462
9461
|
|
|
9463
9462
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
|
9464
9463
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
|
9465
9464
|
import { Group as Group21, Paper as Paper11, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
|
9466
|
-
import { Fragment as Fragment16, jsx as
|
|
9465
|
+
import { Fragment as Fragment16, jsx as jsx114, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
9467
9466
|
|
|
9468
9467
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
|
9469
9468
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
|
9470
9469
|
import { Group as Group22, Paper as Paper12, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
|
9471
|
-
import { jsx as
|
|
9470
|
+
import { jsx as jsx115, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
9472
9471
|
|
|
9473
9472
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
|
9474
9473
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
|
9475
9474
|
import { Group as Group23, Paper as Paper13, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
|
9476
|
-
import { jsx as
|
|
9475
|
+
import { jsx as jsx116, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
9477
9476
|
|
|
9478
9477
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
|
9479
9478
|
import { LineChart } from "@mantine/charts";
|
|
9480
9479
|
import { Group as Group24, Paper as Paper14, Text as Text21 } from "@mantine/core";
|
|
9481
|
-
import { Fragment as Fragment17, jsx as
|
|
9480
|
+
import { Fragment as Fragment17, jsx as jsx117, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
9482
9481
|
|
|
9483
9482
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
|
9484
9483
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
|
9485
9484
|
import { Group as Group25, Paper as Paper15, Text as Text22 } from "@mantine/core";
|
|
9486
|
-
import { Fragment as Fragment18, jsx as
|
|
9485
|
+
import { Fragment as Fragment18, jsx as jsx118, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
9487
9486
|
|
|
9488
9487
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
|
9489
9488
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
|
9490
9489
|
import { Group as Group26, Paper as Paper16, Text as Text23 } from "@mantine/core";
|
|
9491
|
-
import { Fragment as Fragment19, jsx as
|
|
9490
|
+
import { Fragment as Fragment19, jsx as jsx119, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
9492
9491
|
|
|
9493
9492
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
|
9494
9493
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
|
9495
9494
|
import { Group as Group27, Paper as Paper17, Text as Text24 } from "@mantine/core";
|
|
9496
|
-
import { Fragment as Fragment20, jsx as
|
|
9495
|
+
import { Fragment as Fragment20, jsx as jsx120, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
9497
9496
|
|
|
9498
9497
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
|
9499
9498
|
import { Center as Center4, Progress, Space as Space4, Text as Text25 } from "@mantine/core";
|
|
9500
9499
|
import { PieChart } from "@mantine/charts";
|
|
9501
9500
|
import { useMemo as useMemo16 } from "react";
|
|
9502
|
-
import { Fragment as Fragment21, jsx as
|
|
9501
|
+
import { Fragment as Fragment21, jsx as jsx121, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
9503
9502
|
function getRandomColor(seed) {
|
|
9504
9503
|
const random = Math.sin(seed) * 1e4;
|
|
9505
9504
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
|
@@ -9677,7 +9676,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9677
9676
|
header: "M\xE0u",
|
|
9678
9677
|
accessorKey: "color",
|
|
9679
9678
|
accessorFn(originalRow) {
|
|
9680
|
-
return /* @__PURE__ */
|
|
9679
|
+
return /* @__PURE__ */ jsx121("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
|
9681
9680
|
},
|
|
9682
9681
|
minSize: 30,
|
|
9683
9682
|
maxSize: 30
|
|
@@ -9692,7 +9691,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9692
9691
|
header: "%",
|
|
9693
9692
|
accessorKey: "used",
|
|
9694
9693
|
accessorFn(originalRow) {
|
|
9695
|
-
return /* @__PURE__ */
|
|
9694
|
+
return /* @__PURE__ */ jsx121(Fragment21, { children: /* @__PURE__ */ jsx121(Center4, { children: /* @__PURE__ */ jsxs75(Text25, { children: [
|
|
9696
9695
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
|
9697
9696
|
"%"
|
|
9698
9697
|
] }) }) });
|
|
@@ -9708,7 +9707,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9708
9707
|
},
|
|
9709
9708
|
Cell: ({ row }) => {
|
|
9710
9709
|
return /* @__PURE__ */ jsxs75(Fragment21, { children: [
|
|
9711
|
-
/* @__PURE__ */
|
|
9710
|
+
/* @__PURE__ */ jsx121(Center4, { children: /* @__PURE__ */ jsxs75(Text25, { children: [
|
|
9712
9711
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
|
9713
9712
|
/* @__PURE__ */ jsxs75("strong", { children: [
|
|
9714
9713
|
row.original.used,
|
|
@@ -9719,7 +9718,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9719
9718
|
(row.original.used / row.original.total * 100).toFixed(2),
|
|
9720
9719
|
"%)"
|
|
9721
9720
|
] }) }),
|
|
9722
|
-
/* @__PURE__ */
|
|
9721
|
+
/* @__PURE__ */ jsx121(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
|
9723
9722
|
] });
|
|
9724
9723
|
},
|
|
9725
9724
|
minSize: 50,
|
|
@@ -9728,9 +9727,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9728
9727
|
],
|
|
9729
9728
|
[]
|
|
9730
9729
|
);
|
|
9731
|
-
return /* @__PURE__ */
|
|
9732
|
-
/* @__PURE__ */
|
|
9733
|
-
/* @__PURE__ */
|
|
9730
|
+
return /* @__PURE__ */ jsx121(Fragment21, { children: /* @__PURE__ */ jsxs75(MyFlexColumn, { children: [
|
|
9731
|
+
/* @__PURE__ */ jsx121(Text25, { 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" }),
|
|
9732
|
+
/* @__PURE__ */ jsx121(Center4, { children: /* @__PURE__ */ jsx121(
|
|
9734
9733
|
PieChart,
|
|
9735
9734
|
{
|
|
9736
9735
|
startAngle: 90,
|
|
@@ -9743,8 +9742,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9743
9742
|
data: data_used_discountCode
|
|
9744
9743
|
}
|
|
9745
9744
|
) }),
|
|
9746
|
-
/* @__PURE__ */
|
|
9747
|
-
/* @__PURE__ */
|
|
9745
|
+
/* @__PURE__ */ jsx121(Space4, { mt: 5 }),
|
|
9746
|
+
/* @__PURE__ */ jsx121(
|
|
9748
9747
|
MyDataTable,
|
|
9749
9748
|
{
|
|
9750
9749
|
data: mockData,
|
|
@@ -9762,7 +9761,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9762
9761
|
import { Center as Center5, Progress as Progress2, Space as Space5, Text as Text26 } from "@mantine/core";
|
|
9763
9762
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
|
9764
9763
|
import { useMemo as useMemo17 } from "react";
|
|
9765
|
-
import { Fragment as Fragment22, jsx as
|
|
9764
|
+
import { Fragment as Fragment22, jsx as jsx122, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
9766
9765
|
function getRandomColor2(seed) {
|
|
9767
9766
|
const random = Math.sin(seed) * 1e4;
|
|
9768
9767
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
|
@@ -9940,7 +9939,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9940
9939
|
header: "M\xE0u",
|
|
9941
9940
|
accessorKey: "color",
|
|
9942
9941
|
accessorFn(originalRow) {
|
|
9943
|
-
return /* @__PURE__ */
|
|
9942
|
+
return /* @__PURE__ */ jsx122("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
|
9944
9943
|
},
|
|
9945
9944
|
minSize: 30,
|
|
9946
9945
|
maxSize: 30
|
|
@@ -9955,7 +9954,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9955
9954
|
header: "%",
|
|
9956
9955
|
accessorKey: "used",
|
|
9957
9956
|
accessorFn(originalRow) {
|
|
9958
|
-
return /* @__PURE__ */
|
|
9957
|
+
return /* @__PURE__ */ jsx122(Fragment22, { children: /* @__PURE__ */ jsx122(Center5, { children: /* @__PURE__ */ jsxs76(Text26, { children: [
|
|
9959
9958
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
|
9960
9959
|
"%"
|
|
9961
9960
|
] }) }) });
|
|
@@ -9971,7 +9970,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9971
9970
|
},
|
|
9972
9971
|
Cell: ({ row }) => {
|
|
9973
9972
|
return /* @__PURE__ */ jsxs76(Fragment22, { children: [
|
|
9974
|
-
/* @__PURE__ */
|
|
9973
|
+
/* @__PURE__ */ jsx122(Center5, { children: /* @__PURE__ */ jsxs76(Text26, { children: [
|
|
9975
9974
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
|
9976
9975
|
/* @__PURE__ */ jsxs76("strong", { children: [
|
|
9977
9976
|
row.original.used,
|
|
@@ -9982,7 +9981,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9982
9981
|
(row.original.used / row.original.total * 100).toFixed(2),
|
|
9983
9982
|
"%)"
|
|
9984
9983
|
] }) }),
|
|
9985
|
-
/* @__PURE__ */
|
|
9984
|
+
/* @__PURE__ */ jsx122(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
|
9986
9985
|
] });
|
|
9987
9986
|
},
|
|
9988
9987
|
minSize: 50,
|
|
@@ -9991,9 +9990,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9991
9990
|
],
|
|
9992
9991
|
[]
|
|
9993
9992
|
);
|
|
9994
|
-
return /* @__PURE__ */
|
|
9995
|
-
/* @__PURE__ */
|
|
9996
|
-
/* @__PURE__ */
|
|
9993
|
+
return /* @__PURE__ */ jsx122(Fragment22, { children: /* @__PURE__ */ jsxs76(MyFlexColumn, { children: [
|
|
9994
|
+
/* @__PURE__ */ jsx122(Text26, { 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" }),
|
|
9995
|
+
/* @__PURE__ */ jsx122(Center5, { children: /* @__PURE__ */ jsx122(
|
|
9997
9996
|
PieChart2,
|
|
9998
9997
|
{
|
|
9999
9998
|
startAngle: 90,
|
|
@@ -10006,8 +10005,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
10006
10005
|
data: data_used_discountCode2
|
|
10007
10006
|
}
|
|
10008
10007
|
) }),
|
|
10009
|
-
/* @__PURE__ */
|
|
10010
|
-
/* @__PURE__ */
|
|
10008
|
+
/* @__PURE__ */ jsx122(Space5, { mt: 5 }),
|
|
10009
|
+
/* @__PURE__ */ jsx122(
|
|
10011
10010
|
MyDataTable,
|
|
10012
10011
|
{
|
|
10013
10012
|
data: mockData2,
|
|
@@ -10039,20 +10038,20 @@ function useS_authenticate() {
|
|
|
10039
10038
|
}
|
|
10040
10039
|
|
|
10041
10040
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
|
10042
|
-
import { jsx as
|
|
10041
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
10043
10042
|
function F_authenticate_Logout() {
|
|
10044
10043
|
const router = useRouter4();
|
|
10045
10044
|
const S_Authenticate = useS_authenticate();
|
|
10046
|
-
return /* @__PURE__ */
|
|
10045
|
+
return /* @__PURE__ */ jsx123(Button18, { onClick: () => {
|
|
10047
10046
|
S_Authenticate.setProperty("token", "");
|
|
10048
10047
|
router.replace("/authenticate/login");
|
|
10049
|
-
}, leftSection: /* @__PURE__ */
|
|
10048
|
+
}, leftSection: /* @__PURE__ */ jsx123(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
|
10050
10049
|
}
|
|
10051
10050
|
|
|
10052
10051
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
|
10053
10052
|
import { useRouter as useRouter5 } from "next/navigation";
|
|
10054
10053
|
import { useEffect as useEffect14 } from "react";
|
|
10055
|
-
import { jsx as
|
|
10054
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
10056
10055
|
function F_authenticate_SplashPage() {
|
|
10057
10056
|
const router = useRouter5();
|
|
10058
10057
|
const S_Authenticate = useS_authenticate();
|
|
@@ -10063,7 +10062,7 @@ function F_authenticate_SplashPage() {
|
|
|
10063
10062
|
}
|
|
10064
10063
|
router.push("/admin/core71678");
|
|
10065
10064
|
}, [S_Authenticate.state.token]);
|
|
10066
|
-
return /* @__PURE__ */
|
|
10065
|
+
return /* @__PURE__ */ jsx124(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
|
10067
10066
|
}
|
|
10068
10067
|
|
|
10069
10068
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
@@ -10092,7 +10091,7 @@ import { useState as useState17 } from "react";
|
|
|
10092
10091
|
var css_default3 = {};
|
|
10093
10092
|
|
|
10094
10093
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
10095
|
-
import { jsx as
|
|
10094
|
+
import { jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
10096
10095
|
function F_authenticate_Login({
|
|
10097
10096
|
loginInfo,
|
|
10098
10097
|
redirectUrlAfterLogin = "/admin/dashboard",
|
|
@@ -10136,21 +10135,21 @@ function F_authenticate_Login({
|
|
|
10136
10135
|
}
|
|
10137
10136
|
});
|
|
10138
10137
|
}
|
|
10139
|
-
return /* @__PURE__ */
|
|
10138
|
+
return /* @__PURE__ */ jsx125(
|
|
10140
10139
|
BackgroundImage,
|
|
10141
10140
|
{
|
|
10142
10141
|
src: backgroundImage,
|
|
10143
10142
|
h: "100vh",
|
|
10144
|
-
children: /* @__PURE__ */
|
|
10143
|
+
children: /* @__PURE__ */ jsx125(Center6, { h: "100vh", children: /* @__PURE__ */ jsxs77(Paper18, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
|
10145
10144
|
/* @__PURE__ */ jsxs77(Flex7, { direction: "column", mb: "md", children: [
|
|
10146
|
-
/* @__PURE__ */
|
|
10145
|
+
/* @__PURE__ */ jsx125(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
|
10147
10146
|
/* @__PURE__ */ jsxs77(Text27, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
|
10148
10147
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
|
10149
|
-
/* @__PURE__ */
|
|
10148
|
+
/* @__PURE__ */ jsx125(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
|
10150
10149
|
] })
|
|
10151
10150
|
] }),
|
|
10152
|
-
/* @__PURE__ */
|
|
10153
|
-
/* @__PURE__ */
|
|
10151
|
+
/* @__PURE__ */ jsx125("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs77(MyFlexColumn, { children: [
|
|
10152
|
+
/* @__PURE__ */ jsx125(
|
|
10154
10153
|
TextInput6,
|
|
10155
10154
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
|
10156
10155
|
label: "T\xE0i kho\u1EA3n",
|
|
@@ -10158,7 +10157,7 @@ function F_authenticate_Login({
|
|
|
10158
10157
|
withAsterisk: true
|
|
10159
10158
|
})
|
|
10160
10159
|
),
|
|
10161
|
-
/* @__PURE__ */
|
|
10160
|
+
/* @__PURE__ */ jsx125(
|
|
10162
10161
|
PasswordInput2,
|
|
10163
10162
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
|
10164
10163
|
label: "M\u1EADt kh\u1EA9u",
|
|
@@ -10167,10 +10166,10 @@ function F_authenticate_Login({
|
|
|
10167
10166
|
})
|
|
10168
10167
|
),
|
|
10169
10168
|
/* @__PURE__ */ jsxs77(Group28, { justify: "space-between", children: [
|
|
10170
|
-
/* @__PURE__ */
|
|
10171
|
-
/* @__PURE__ */
|
|
10169
|
+
/* @__PURE__ */ jsx125(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
|
10170
|
+
/* @__PURE__ */ jsx125(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
10172
10171
|
] }),
|
|
10173
|
-
/* @__PURE__ */
|
|
10172
|
+
/* @__PURE__ */ jsx125(
|
|
10174
10173
|
Button19,
|
|
10175
10174
|
{
|
|
10176
10175
|
loading: loadingState[0],
|