aq-fe-framework 0.1.67 → 0.1.68
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.
|
@@ -6386,11 +6386,10 @@ function MyNumberFormatter(_a) {
|
|
|
6386
6386
|
|
|
6387
6387
|
// src/components/DataDisplay/ScheduleX/MyScheduleX.tsx
|
|
6388
6388
|
import "@schedule-x/theme-default/dist/index.css";
|
|
6389
|
-
import { useNextCalendarApp as useNextCalendarApp2
|
|
6389
|
+
import { useNextCalendarApp as useNextCalendarApp2 } from "@schedule-x/react";
|
|
6390
6390
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
|
6391
6391
|
import { useState as useState7 } from "react";
|
|
6392
6392
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
|
6393
|
-
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6394
6393
|
function MyScheduleX({
|
|
6395
6394
|
values,
|
|
6396
6395
|
timeGridEvent,
|
|
@@ -6415,24 +6414,15 @@ function MyScheduleX({
|
|
|
6415
6414
|
events: values,
|
|
6416
6415
|
plugins: [eventsService, eventModalPlugin]
|
|
6417
6416
|
});
|
|
6418
|
-
return
|
|
6419
|
-
ScheduleXCalendar2,
|
|
6420
|
-
{
|
|
6421
|
-
calendarApp: calendar,
|
|
6422
|
-
customComponents: {
|
|
6423
|
-
timeGridEvent,
|
|
6424
|
-
eventModal
|
|
6425
|
-
}
|
|
6426
|
-
}
|
|
6427
|
-
) });
|
|
6417
|
+
return "huhu";
|
|
6428
6418
|
}
|
|
6429
6419
|
|
|
6430
6420
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
|
6431
6421
|
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group11, Paper as Paper5, Text as Text9 } from "@mantine/core";
|
|
6432
6422
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
|
6433
|
-
import { Fragment as Fragment11, jsx as
|
|
6423
|
+
import { Fragment as Fragment11, jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6434
6424
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
|
6435
|
-
return /* @__PURE__ */
|
|
6425
|
+
return /* @__PURE__ */ jsx42(Fragment11, { children: /* @__PURE__ */ jsxs25(
|
|
6436
6426
|
Paper5,
|
|
6437
6427
|
{
|
|
6438
6428
|
withBorder: true,
|
|
@@ -6441,7 +6431,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6441
6431
|
children: [
|
|
6442
6432
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6443
6433
|
/* @__PURE__ */ jsxs25(Flex3, { direction: "column", children: [
|
|
6444
|
-
/* @__PURE__ */
|
|
6434
|
+
/* @__PURE__ */ jsx42(
|
|
6445
6435
|
Text9,
|
|
6446
6436
|
{
|
|
6447
6437
|
tt: "uppercase",
|
|
@@ -6452,13 +6442,13 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6452
6442
|
),
|
|
6453
6443
|
unit == "" ? /* @__PURE__ */ jsxs25(Text9, { size: "xs", style: { visibility: "hidden" }, children: [
|
|
6454
6444
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6455
|
-
/* @__PURE__ */
|
|
6445
|
+
/* @__PURE__ */ jsx42("strong", { children: unit })
|
|
6456
6446
|
] }) : /* @__PURE__ */ jsxs25(Text9, { size: "xs", children: [
|
|
6457
6447
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6458
|
-
/* @__PURE__ */
|
|
6448
|
+
/* @__PURE__ */ jsx42("strong", { children: unit })
|
|
6459
6449
|
] })
|
|
6460
6450
|
] }),
|
|
6461
|
-
/* @__PURE__ */
|
|
6451
|
+
/* @__PURE__ */ jsx42(Box2, { children: icons })
|
|
6462
6452
|
] }),
|
|
6463
6453
|
/* @__PURE__ */ jsxs25(
|
|
6464
6454
|
Group11,
|
|
@@ -6467,7 +6457,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6467
6457
|
align: "flex-end",
|
|
6468
6458
|
gap: "xs",
|
|
6469
6459
|
children: [
|
|
6470
|
-
/* @__PURE__ */
|
|
6460
|
+
/* @__PURE__ */ jsx42(
|
|
6471
6461
|
Text9,
|
|
6472
6462
|
{
|
|
6473
6463
|
fw: 700,
|
|
@@ -6487,7 +6477,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6487
6477
|
diff,
|
|
6488
6478
|
"%"
|
|
6489
6479
|
] }),
|
|
6490
|
-
diff > 0 ? /* @__PURE__ */
|
|
6480
|
+
diff > 0 ? /* @__PURE__ */ jsx42(IconArrowUpRight, {}) : /* @__PURE__ */ jsx42(IconArrowDownRight, {})
|
|
6491
6481
|
]
|
|
6492
6482
|
}
|
|
6493
6483
|
)
|
|
@@ -6495,8 +6485,8 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6495
6485
|
}
|
|
6496
6486
|
),
|
|
6497
6487
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6498
|
-
/* @__PURE__ */
|
|
6499
|
-
/* @__PURE__ */
|
|
6488
|
+
/* @__PURE__ */ jsx42(Text9, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
|
6489
|
+
/* @__PURE__ */ jsx42(
|
|
6500
6490
|
Button13,
|
|
6501
6491
|
{
|
|
6502
6492
|
variant: "light",
|
|
@@ -6513,15 +6503,15 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6513
6503
|
|
|
6514
6504
|
// src/components/Inputs/DateInput/MyDateInput.tsx
|
|
6515
6505
|
import { DateInput } from "@mantine/dates";
|
|
6516
|
-
import { jsx as
|
|
6506
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
6517
6507
|
function MyDateInput(_a) {
|
|
6518
6508
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6519
|
-
return /* @__PURE__ */
|
|
6509
|
+
return /* @__PURE__ */ jsx43(DateInput, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6520
6510
|
}
|
|
6521
6511
|
|
|
6522
6512
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
|
6523
6513
|
import { Box as Box3, Fieldset as Fieldset4, Text as Text10 } from "@mantine/core";
|
|
6524
|
-
import { jsx as
|
|
6514
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
6525
6515
|
function MyFieldset(_a) {
|
|
6526
6516
|
var _b = _a, {
|
|
6527
6517
|
children,
|
|
@@ -6530,17 +6520,17 @@ function MyFieldset(_a) {
|
|
|
6530
6520
|
"children",
|
|
6531
6521
|
"title"
|
|
6532
6522
|
]);
|
|
6533
|
-
return /* @__PURE__ */
|
|
6523
|
+
return /* @__PURE__ */ jsx44(
|
|
6534
6524
|
Fieldset4,
|
|
6535
6525
|
__spreadProps(__spreadValues({}, rest), {
|
|
6536
|
-
legend: /* @__PURE__ */
|
|
6526
|
+
legend: /* @__PURE__ */ jsx44(
|
|
6537
6527
|
Box3,
|
|
6538
6528
|
{
|
|
6539
6529
|
bg: "blue.4",
|
|
6540
6530
|
px: "xs",
|
|
6541
6531
|
py: 2,
|
|
6542
6532
|
style: { borderRadius: 4 },
|
|
6543
|
-
children: /* @__PURE__ */
|
|
6533
|
+
children: /* @__PURE__ */ jsx44(Text10, { c: "white", fw: 500, children: title3 })
|
|
6544
6534
|
}
|
|
6545
6535
|
),
|
|
6546
6536
|
children
|
|
@@ -6550,26 +6540,26 @@ function MyFieldset(_a) {
|
|
|
6550
6540
|
|
|
6551
6541
|
// src/components/Inputs/FileInput/MyFileInput.tsx
|
|
6552
6542
|
import { FileInput as FileInput3 } from "@mantine/core";
|
|
6553
|
-
import { jsx as
|
|
6543
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
6554
6544
|
function MyFileInput(_a) {
|
|
6555
6545
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6556
|
-
return /* @__PURE__ */
|
|
6546
|
+
return /* @__PURE__ */ jsx45(FileInput3, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6557
6547
|
}
|
|
6558
6548
|
|
|
6559
6549
|
// src/components/Inputs/NumberInput/MyNumberInput.tsx
|
|
6560
6550
|
import { NumberInput as NumberInput2 } from "@mantine/core";
|
|
6561
|
-
import { jsx as
|
|
6551
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
6562
6552
|
function MyNumberInput(_a) {
|
|
6563
6553
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6564
|
-
return /* @__PURE__ */
|
|
6554
|
+
return /* @__PURE__ */ jsx46(NumberInput2, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6565
6555
|
}
|
|
6566
6556
|
|
|
6567
6557
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
|
6568
6558
|
import { Textarea } from "@mantine/core";
|
|
6569
|
-
import { jsx as
|
|
6559
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
6570
6560
|
function MyTextArea(_a) {
|
|
6571
6561
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6572
|
-
return /* @__PURE__ */
|
|
6562
|
+
return /* @__PURE__ */ jsx47(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6573
6563
|
}
|
|
6574
6564
|
|
|
6575
6565
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
|
@@ -6585,7 +6575,7 @@ import Underline from "@tiptap/extension-underline";
|
|
|
6585
6575
|
import { useEditor } from "@tiptap/react";
|
|
6586
6576
|
import StarterKit from "@tiptap/starter-kit";
|
|
6587
6577
|
import { useEffect as useEffect5, useState as useState8 } from "react";
|
|
6588
|
-
import { jsx as
|
|
6578
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6589
6579
|
function MyTextEditor(_a) {
|
|
6590
6580
|
var _b = _a, {
|
|
6591
6581
|
autoHiddenToolBar = false,
|
|
@@ -6687,43 +6677,43 @@ function MyTextEditor(_a) {
|
|
|
6687
6677
|
editor.commands.setContent(value);
|
|
6688
6678
|
}
|
|
6689
6679
|
}, [value, editor]);
|
|
6690
|
-
return /* @__PURE__ */
|
|
6680
|
+
return /* @__PURE__ */ jsx48(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs26(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
|
6691
6681
|
/* @__PURE__ */ jsxs26(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
|
6692
6682
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6693
|
-
/* @__PURE__ */
|
|
6694
|
-
/* @__PURE__ */
|
|
6695
|
-
/* @__PURE__ */
|
|
6696
|
-
/* @__PURE__ */
|
|
6697
|
-
/* @__PURE__ */
|
|
6698
|
-
/* @__PURE__ */
|
|
6699
|
-
/* @__PURE__ */
|
|
6683
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Bold, {}),
|
|
6684
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Italic, {}),
|
|
6685
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Underline, {}),
|
|
6686
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Strikethrough, {}),
|
|
6687
|
+
/* @__PURE__ */ jsx48(RichTextEditor.ClearFormatting, {}),
|
|
6688
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Highlight, {}),
|
|
6689
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Code, {})
|
|
6700
6690
|
] }),
|
|
6701
6691
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6702
|
-
/* @__PURE__ */
|
|
6703
|
-
/* @__PURE__ */
|
|
6704
|
-
/* @__PURE__ */
|
|
6705
|
-
/* @__PURE__ */
|
|
6692
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H1, {}),
|
|
6693
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H2, {}),
|
|
6694
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H3, {}),
|
|
6695
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H4, {})
|
|
6706
6696
|
] }),
|
|
6707
6697
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6708
|
-
/* @__PURE__ */
|
|
6709
|
-
/* @__PURE__ */
|
|
6710
|
-
/* @__PURE__ */
|
|
6711
|
-
/* @__PURE__ */
|
|
6712
|
-
/* @__PURE__ */
|
|
6713
|
-
/* @__PURE__ */
|
|
6698
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Blockquote, {}),
|
|
6699
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Hr, {}),
|
|
6700
|
+
/* @__PURE__ */ jsx48(RichTextEditor.BulletList, {}),
|
|
6701
|
+
/* @__PURE__ */ jsx48(RichTextEditor.OrderedList, {}),
|
|
6702
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Subscript, {}),
|
|
6703
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Superscript, {})
|
|
6714
6704
|
] }),
|
|
6715
6705
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6716
|
-
/* @__PURE__ */
|
|
6717
|
-
/* @__PURE__ */
|
|
6706
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Link, {}),
|
|
6707
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Unlink, {})
|
|
6718
6708
|
] }),
|
|
6719
6709
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6720
|
-
/* @__PURE__ */
|
|
6721
|
-
/* @__PURE__ */
|
|
6722
|
-
/* @__PURE__ */
|
|
6723
|
-
/* @__PURE__ */
|
|
6710
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignLeft, {}),
|
|
6711
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignCenter, {}),
|
|
6712
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignJustify, {}),
|
|
6713
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignRight, {})
|
|
6724
6714
|
] })
|
|
6725
6715
|
] }),
|
|
6726
|
-
/* @__PURE__ */
|
|
6716
|
+
/* @__PURE__ */ jsx48(
|
|
6727
6717
|
ScrollArea2.Autosize,
|
|
6728
6718
|
{
|
|
6729
6719
|
onMouseDown: () => {
|
|
@@ -6738,7 +6728,7 @@ function MyTextEditor(_a) {
|
|
|
6738
6728
|
setHiddenToolBar(false);
|
|
6739
6729
|
},
|
|
6740
6730
|
style: { cursor: "text", maxHeight: "400px" },
|
|
6741
|
-
children: /* @__PURE__ */
|
|
6731
|
+
children: /* @__PURE__ */ jsx48(RichTextEditor.Content, { mih: contentHeight })
|
|
6742
6732
|
}
|
|
6743
6733
|
)
|
|
6744
6734
|
] }) });
|
|
@@ -6764,18 +6754,18 @@ import { spotlight as spotlight2 } from "@mantine/spotlight";
|
|
|
6764
6754
|
import { IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLibraryMinus, IconSearch as IconSearch2 } from "@tabler/icons-react";
|
|
6765
6755
|
import Link3 from "next/link";
|
|
6766
6756
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
6767
|
-
import { Fragment as Fragment12, jsx as
|
|
6757
|
+
import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6768
6758
|
function getRightSection(status) {
|
|
6769
|
-
if (status === "Prototype") return /* @__PURE__ */
|
|
6770
|
-
if (status === "New") return /* @__PURE__ */
|
|
6771
|
-
if (status === "Menu") return /* @__PURE__ */
|
|
6772
|
-
if (status === "Change") return /* @__PURE__ */
|
|
6759
|
+
if (status === "Prototype") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
|
6760
|
+
if (status === "New") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
|
6761
|
+
if (status === "Menu") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
|
6762
|
+
if (status === "Change") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
|
6773
6763
|
return null;
|
|
6774
6764
|
}
|
|
6775
6765
|
function RenderNavLinks({ items }) {
|
|
6776
6766
|
const sidebarStore = useS_Sidebar();
|
|
6777
6767
|
const pathName = usePathname2();
|
|
6778
|
-
return /* @__PURE__ */
|
|
6768
|
+
return /* @__PURE__ */ jsx49(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx49(
|
|
6779
6769
|
NavLink,
|
|
6780
6770
|
{
|
|
6781
6771
|
active: item.link === pathName.split("/")[2],
|
|
@@ -6792,7 +6782,7 @@ function RenderNavLinks({ items }) {
|
|
|
6792
6782
|
sidebarStore.setProperty("title", item.label);
|
|
6793
6783
|
}
|
|
6794
6784
|
},
|
|
6795
|
-
children: item.links && /* @__PURE__ */
|
|
6785
|
+
children: item.links && /* @__PURE__ */ jsx49(RenderNavLinks, { items: item.links })
|
|
6796
6786
|
},
|
|
6797
6787
|
index
|
|
6798
6788
|
)) });
|
|
@@ -6861,16 +6851,16 @@ function BasicAppShell({ children, menu }) {
|
|
|
6861
6851
|
padding: "md",
|
|
6862
6852
|
children: [
|
|
6863
6853
|
/* @__PURE__ */ jsxs27(AppShell.Header, { children: [
|
|
6864
|
-
/* @__PURE__ */
|
|
6854
|
+
/* @__PURE__ */ jsx49(MyAppSpotlight, { menu }),
|
|
6865
6855
|
media ? /* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
|
6866
6856
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", children: [
|
|
6867
|
-
/* @__PURE__ */
|
|
6868
|
-
/* @__PURE__ */
|
|
6857
|
+
/* @__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, {}) }) }),
|
|
6858
|
+
/* @__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, {}) }) })
|
|
6869
6859
|
] }),
|
|
6870
|
-
/* @__PURE__ */
|
|
6860
|
+
/* @__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" }) }),
|
|
6871
6861
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6872
|
-
/* @__PURE__ */
|
|
6873
|
-
/* @__PURE__ */
|
|
6862
|
+
/* @__PURE__ */ jsx49(Text11, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
|
6863
|
+
/* @__PURE__ */ jsx49(
|
|
6874
6864
|
Select3,
|
|
6875
6865
|
{
|
|
6876
6866
|
w: selectMedia ? 245 : 150,
|
|
@@ -6882,15 +6872,15 @@ function BasicAppShell({ children, menu }) {
|
|
|
6882
6872
|
]
|
|
6883
6873
|
}
|
|
6884
6874
|
),
|
|
6885
|
-
/* @__PURE__ */
|
|
6875
|
+
/* @__PURE__ */ jsx49(MySwitchTheme, {})
|
|
6886
6876
|
] })
|
|
6887
6877
|
] }) : (
|
|
6888
6878
|
// For mobile screens - simplified layout
|
|
6889
6879
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", children: [
|
|
6890
|
-
/* @__PURE__ */
|
|
6891
|
-
/* @__PURE__ */
|
|
6880
|
+
/* @__PURE__ */ jsx49(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: sidebarStore.toggle, children: sidebarStore.state.opened ? /* @__PURE__ */ jsx49(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx49(IconLayoutSidebarLeftCollapse, {}) }),
|
|
6881
|
+
/* @__PURE__ */ jsx49(Text11, { c: "green", fw: "bold", size: "sm", children: "AQ EduCourseEvaluation" }),
|
|
6892
6882
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6893
|
-
/* @__PURE__ */
|
|
6883
|
+
/* @__PURE__ */ jsx49(
|
|
6894
6884
|
Select3,
|
|
6895
6885
|
{
|
|
6896
6886
|
w: 100,
|
|
@@ -6903,24 +6893,24 @@ function BasicAppShell({ children, menu }) {
|
|
|
6903
6893
|
]
|
|
6904
6894
|
}
|
|
6905
6895
|
),
|
|
6906
|
-
/* @__PURE__ */
|
|
6896
|
+
/* @__PURE__ */ jsx49(MySwitchTheme, {})
|
|
6907
6897
|
] })
|
|
6908
6898
|
] })
|
|
6909
6899
|
)
|
|
6910
6900
|
] }),
|
|
6911
6901
|
/* @__PURE__ */ jsxs27(AppShell.Navbar, { children: [
|
|
6912
|
-
/* @__PURE__ */
|
|
6902
|
+
/* @__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)" }),
|
|
6913
6903
|
/* @__PURE__ */ jsxs27(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
|
6914
|
-
/* @__PURE__ */
|
|
6915
|
-
/* @__PURE__ */
|
|
6916
|
-
/* @__PURE__ */
|
|
6904
|
+
/* @__PURE__ */ jsx49(RenderNavLinks, { items: menu }),
|
|
6905
|
+
/* @__PURE__ */ jsx49(Divider3, {}),
|
|
6906
|
+
/* @__PURE__ */ jsx49(F_authenticate_Logout, {})
|
|
6917
6907
|
] }),
|
|
6918
6908
|
/* @__PURE__ */ jsxs27(AppShell.Section, { p: "md", children: [
|
|
6919
|
-
/* @__PURE__ */
|
|
6920
|
-
/* @__PURE__ */
|
|
6909
|
+
/* @__PURE__ */ jsx49(Divider3, {}),
|
|
6910
|
+
/* @__PURE__ */ jsx49(Image3, { src: "/imgs/0/IMG0LogoAQTech.png", h: 50, alt: "", w: "auto" })
|
|
6921
6911
|
] })
|
|
6922
6912
|
] }),
|
|
6923
|
-
/* @__PURE__ */
|
|
6913
|
+
/* @__PURE__ */ jsx49(AppShell.Main, { bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))", children })
|
|
6924
6914
|
]
|
|
6925
6915
|
}
|
|
6926
6916
|
);
|
|
@@ -6969,10 +6959,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
|
6969
6959
|
|
|
6970
6960
|
// src/components/Layouts/Container/MyContainer.tsx
|
|
6971
6961
|
import { Container as Container2, Flex as Flex4 } from "@mantine/core";
|
|
6972
|
-
import { jsx as
|
|
6962
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
6973
6963
|
function MyContainer(_a) {
|
|
6974
6964
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
6975
|
-
return /* @__PURE__ */
|
|
6965
|
+
return /* @__PURE__ */ jsx50(Container2, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx50(Flex4, { direction: "column", children }) }));
|
|
6976
6966
|
}
|
|
6977
6967
|
|
|
6978
6968
|
// src/constants/object/color.ts
|
|
@@ -7025,7 +7015,7 @@ function useHeaderMegaMenuStore() {
|
|
|
7025
7015
|
}
|
|
7026
7016
|
|
|
7027
7017
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
|
7028
|
-
import { jsx as
|
|
7018
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7029
7019
|
var mockdata = [
|
|
7030
7020
|
{
|
|
7031
7021
|
icon: IconCode,
|
|
@@ -7063,27 +7053,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7063
7053
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
|
7064
7054
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
|
7065
7055
|
const theme = useMantineTheme();
|
|
7066
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
|
7067
|
-
/* @__PURE__ */
|
|
7056
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx51(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs28(Group13, { wrap: "nowrap", align: "flex-start", children: [
|
|
7057
|
+
/* @__PURE__ */ jsx51(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx51(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
|
7068
7058
|
/* @__PURE__ */ jsxs28("div", { children: [
|
|
7069
|
-
/* @__PURE__ */
|
|
7070
|
-
/* @__PURE__ */
|
|
7059
|
+
/* @__PURE__ */ jsx51(Text12, { size: "sm", fw: 500, children: item.title }),
|
|
7060
|
+
/* @__PURE__ */ jsx51(Text12, { size: "xs", c: "dimmed", children: item.description })
|
|
7071
7061
|
] })
|
|
7072
7062
|
] }) }, item.title));
|
|
7073
7063
|
return /* @__PURE__ */ jsxs28(Box4, { children: [
|
|
7074
|
-
/* @__PURE__ */
|
|
7064
|
+
/* @__PURE__ */ jsx51("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs28(Group13, { justify: "space-between", h: "100%", children: [
|
|
7075
7065
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
7076
|
-
/* @__PURE__ */
|
|
7077
|
-
/* @__PURE__ */
|
|
7066
|
+
/* @__PURE__ */ jsx51(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
|
7067
|
+
/* @__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)) })
|
|
7078
7068
|
] }),
|
|
7079
7069
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
7080
|
-
/* @__PURE__ */
|
|
7081
|
-
/* @__PURE__ */
|
|
7070
|
+
/* @__PURE__ */ jsx51(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx51(IconSearch3, {}), radius: "xl", w: "250px" }),
|
|
7071
|
+
/* @__PURE__ */ jsx51(MySwitchTheme, {})
|
|
7082
7072
|
] }),
|
|
7083
|
-
/* @__PURE__ */
|
|
7073
|
+
/* @__PURE__ */ jsx51(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
|
7084
7074
|
] }) }),
|
|
7085
|
-
/* @__PURE__ */
|
|
7086
|
-
/* @__PURE__ */
|
|
7075
|
+
/* @__PURE__ */ jsx51(Container3, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
|
7076
|
+
/* @__PURE__ */ jsx51(
|
|
7087
7077
|
Drawer,
|
|
7088
7078
|
{
|
|
7089
7079
|
opened: drawerOpened,
|
|
@@ -7094,9 +7084,9 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7094
7084
|
hiddenFrom: "sm",
|
|
7095
7085
|
zIndex: 1e6,
|
|
7096
7086
|
children: /* @__PURE__ */ jsxs28(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
|
7097
|
-
/* @__PURE__ */
|
|
7098
|
-
/* @__PURE__ */
|
|
7099
|
-
/* @__PURE__ */
|
|
7087
|
+
/* @__PURE__ */ jsx51(Divider4, { my: "sm" }),
|
|
7088
|
+
/* @__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)) }),
|
|
7089
|
+
/* @__PURE__ */ jsx51(Divider4, { my: "sm" })
|
|
7100
7090
|
] })
|
|
7101
7091
|
}
|
|
7102
7092
|
)
|
|
@@ -7105,15 +7095,15 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7105
7095
|
|
|
7106
7096
|
// src/components/Layouts/Tab/MyTab.tsx
|
|
7107
7097
|
import { rem, Space as Space3, Tabs } from "@mantine/core";
|
|
7108
|
-
import { jsx as
|
|
7098
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7109
7099
|
function MyTab(_a) {
|
|
7110
7100
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
|
7111
7101
|
const iconStyle = { width: rem(20), height: rem(20) };
|
|
7112
7102
|
return /* @__PURE__ */ jsxs29(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
|
7113
|
-
/* @__PURE__ */
|
|
7114
|
-
return /* @__PURE__ */
|
|
7103
|
+
/* @__PURE__ */ jsx52(Tabs.List, { children: tabList.map((item, idx) => {
|
|
7104
|
+
return /* @__PURE__ */ jsx52(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx52(item.icon, { style: iconStyle }), children: item.label }, idx);
|
|
7115
7105
|
}) }),
|
|
7116
|
-
/* @__PURE__ */
|
|
7106
|
+
/* @__PURE__ */ jsx52(Space3, { my: "md" }),
|
|
7117
7107
|
children
|
|
7118
7108
|
] }));
|
|
7119
7109
|
}
|
|
@@ -7122,33 +7112,33 @@ function MyTab(_a) {
|
|
|
7122
7112
|
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group14, Modal as Modal11 } from "@mantine/core";
|
|
7123
7113
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
|
7124
7114
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
|
7125
|
-
import { jsx as
|
|
7115
|
+
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7126
7116
|
function MyDataTableSelect(_a) {
|
|
7127
7117
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
|
7128
7118
|
const disc = useDisclosure11(false);
|
|
7129
7119
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
|
7130
7120
|
return /* @__PURE__ */ jsxs30(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
|
7131
|
-
/* @__PURE__ */
|
|
7121
|
+
/* @__PURE__ */ jsx53(
|
|
7132
7122
|
MyDataTable,
|
|
7133
7123
|
__spreadValues({
|
|
7134
7124
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
7135
7125
|
return /* @__PURE__ */ jsxs30(Group14, { children: [
|
|
7136
7126
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
|
7137
|
-
/* @__PURE__ */
|
|
7127
|
+
/* @__PURE__ */ jsx53(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
|
7138
7128
|
] });
|
|
7139
7129
|
},
|
|
7140
7130
|
columns,
|
|
7141
7131
|
data: listState[0],
|
|
7142
7132
|
renderRowActions: ({ row }) => {
|
|
7143
|
-
return /* @__PURE__ */
|
|
7133
|
+
return /* @__PURE__ */ jsx53(MyCenterFull, { children: /* @__PURE__ */ jsx53(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx53(IconX2, {}) }) });
|
|
7144
7134
|
}
|
|
7145
7135
|
}, rest)
|
|
7146
7136
|
),
|
|
7147
|
-
/* @__PURE__ */
|
|
7137
|
+
/* @__PURE__ */ jsx53(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx53(
|
|
7148
7138
|
MyDataTable,
|
|
7149
7139
|
__spreadValues({
|
|
7150
7140
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
7151
|
-
return /* @__PURE__ */
|
|
7141
|
+
return /* @__PURE__ */ jsx53(Button15, { onClick: () => {
|
|
7152
7142
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
|
7153
7143
|
disc[1].close();
|
|
7154
7144
|
}, children: "Ch\u1ECDn" });
|
|
@@ -7164,7 +7154,7 @@ function MyDataTableSelect(_a) {
|
|
|
7164
7154
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
|
7165
7155
|
import { Select as Select4 } from "@mantine/core";
|
|
7166
7156
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
7167
|
-
import { jsx as
|
|
7157
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
7168
7158
|
function MySelectAPIGet(_a) {
|
|
7169
7159
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
|
7170
7160
|
var _a2;
|
|
@@ -7183,7 +7173,7 @@ function MySelectAPIGet(_a) {
|
|
|
7183
7173
|
label: `${item.code}-${item.name}`
|
|
7184
7174
|
};
|
|
7185
7175
|
});
|
|
7186
|
-
return /* @__PURE__ */
|
|
7176
|
+
return /* @__PURE__ */ jsx54(
|
|
7187
7177
|
Select4,
|
|
7188
7178
|
__spreadValues({
|
|
7189
7179
|
label,
|
|
@@ -7195,15 +7185,15 @@ function MySelectAPIGet(_a) {
|
|
|
7195
7185
|
|
|
7196
7186
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
|
7197
7187
|
import { Skeleton } from "@mantine/core";
|
|
7198
|
-
import { jsx as
|
|
7188
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
7199
7189
|
function MySkeletonTable({ h: h4 = 500 }) {
|
|
7200
|
-
return /* @__PURE__ */
|
|
7190
|
+
return /* @__PURE__ */ jsx55(Skeleton, { h: h4 });
|
|
7201
7191
|
}
|
|
7202
7192
|
|
|
7203
7193
|
// src/modules-features/admin/core/core18256/F_core18256_Select.tsx
|
|
7204
7194
|
import { Select as Select5 } from "@mantine/core";
|
|
7205
7195
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
7206
|
-
import { jsx as
|
|
7196
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
7207
7197
|
function F_core18256_Select(_a) {
|
|
7208
7198
|
var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
|
|
7209
7199
|
var _a2, _b2;
|
|
@@ -7223,7 +7213,7 @@ function F_core18256_Select(_a) {
|
|
|
7223
7213
|
label: `${item.code}-${item.name}`
|
|
7224
7214
|
};
|
|
7225
7215
|
});
|
|
7226
|
-
return /* @__PURE__ */
|
|
7216
|
+
return /* @__PURE__ */ jsx56(
|
|
7227
7217
|
Select5,
|
|
7228
7218
|
__spreadProps(__spreadValues({
|
|
7229
7219
|
label,
|
|
@@ -7237,7 +7227,7 @@ function F_core18256_Select(_a) {
|
|
|
7237
7227
|
|
|
7238
7228
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
|
7239
7229
|
import { useForm } from "@mantine/form";
|
|
7240
|
-
import { jsx as
|
|
7230
|
+
import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7241
7231
|
function F_core12196_Create() {
|
|
7242
7232
|
const form = useForm({
|
|
7243
7233
|
mode: "uncontrolled"
|
|
@@ -7251,24 +7241,24 @@ function F_core12196_Create() {
|
|
|
7251
7241
|
})
|
|
7252
7242
|
);
|
|
7253
7243
|
}, children: [
|
|
7254
|
-
/* @__PURE__ */
|
|
7255
|
-
/* @__PURE__ */
|
|
7256
|
-
/* @__PURE__ */
|
|
7257
|
-
/* @__PURE__ */
|
|
7258
|
-
/* @__PURE__ */
|
|
7259
|
-
/* @__PURE__ */
|
|
7244
|
+
/* @__PURE__ */ jsx57(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7245
|
+
/* @__PURE__ */ jsx57(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7246
|
+
/* @__PURE__ */ jsx57(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7247
|
+
/* @__PURE__ */ jsx57(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
|
|
7248
|
+
/* @__PURE__ */ jsx57(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7249
|
+
/* @__PURE__ */ jsx57(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7260
7250
|
] });
|
|
7261
7251
|
}
|
|
7262
7252
|
|
|
7263
7253
|
// src/modules-features/admin/core/core12196/F_core12196_Delete.tsx
|
|
7264
|
-
import { jsx as
|
|
7254
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
7265
7255
|
function F_core12196_Delete({ id }) {
|
|
7266
|
-
return /* @__PURE__ */
|
|
7256
|
+
return /* @__PURE__ */ jsx58(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7267
7257
|
}
|
|
7268
7258
|
|
|
7269
7259
|
// src/modules-features/admin/core/core12196/F_core12196_Update.tsx
|
|
7270
7260
|
import { useForm as useForm2 } from "@mantine/form";
|
|
7271
|
-
import { jsx as
|
|
7261
|
+
import { jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7272
7262
|
function F_core12196_Update({ values }) {
|
|
7273
7263
|
var _a;
|
|
7274
7264
|
const form = useForm2({
|
|
@@ -7282,17 +7272,17 @@ function F_core12196_Update({ values }) {
|
|
|
7282
7272
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7283
7273
|
}));
|
|
7284
7274
|
}, children: [
|
|
7285
|
-
/* @__PURE__ */
|
|
7286
|
-
/* @__PURE__ */
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
/* @__PURE__ */
|
|
7289
|
-
/* @__PURE__ */
|
|
7290
|
-
/* @__PURE__ */
|
|
7275
|
+
/* @__PURE__ */ jsx59(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7276
|
+
/* @__PURE__ */ jsx59(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7277
|
+
/* @__PURE__ */ jsx59(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7278
|
+
/* @__PURE__ */ jsx59(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
|
|
7279
|
+
/* @__PURE__ */ jsx59(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7280
|
+
/* @__PURE__ */ jsx59(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7291
7281
|
] });
|
|
7292
7282
|
}
|
|
7293
7283
|
|
|
7294
7284
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
|
7295
|
-
import { jsx as
|
|
7285
|
+
import { jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7296
7286
|
function F_core12196() {
|
|
7297
7287
|
var _a, _b, _c;
|
|
7298
7288
|
const documentAttributeQuery = useQuery4({
|
|
@@ -7305,11 +7295,11 @@ function F_core12196() {
|
|
|
7305
7295
|
});
|
|
7306
7296
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7307
7297
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7308
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7309
|
-
return /* @__PURE__ */
|
|
7298
|
+
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" });
|
|
7299
|
+
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) => {
|
|
7310
7300
|
var _a2;
|
|
7311
7301
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7312
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7302
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx60(SubRead, { name: item.name, documentType: item.id }, idx)) }) }) });
|
|
7313
7303
|
}
|
|
7314
7304
|
function SubRead({ name, documentType }) {
|
|
7315
7305
|
const documentQuery = useQuery4({
|
|
@@ -7336,7 +7326,7 @@ function SubRead({ name, documentType }) {
|
|
|
7336
7326
|
{
|
|
7337
7327
|
header: "File",
|
|
7338
7328
|
accessorFn: (row) => {
|
|
7339
|
-
return /* @__PURE__ */
|
|
7329
|
+
return /* @__PURE__ */ jsx60(MyCenterFull, { children: /* @__PURE__ */ jsx60(MyButtonViewPDF, { id: row.id }) });
|
|
7340
7330
|
}
|
|
7341
7331
|
}
|
|
7342
7332
|
],
|
|
@@ -7345,15 +7335,15 @@ function SubRead({ name, documentType }) {
|
|
|
7345
7335
|
if (documentQuery.isLoading) return "Loading...";
|
|
7346
7336
|
if (documentQuery.isError) return "Error!";
|
|
7347
7337
|
return /* @__PURE__ */ jsxs33(Accordion.Item, { value: documentType.toString(), children: [
|
|
7348
|
-
/* @__PURE__ */
|
|
7349
|
-
/* @__PURE__ */
|
|
7338
|
+
/* @__PURE__ */ jsx60(Accordion.Control, { children: name }),
|
|
7339
|
+
/* @__PURE__ */ jsx60(Accordion.Panel, { children: /* @__PURE__ */ jsx60(
|
|
7350
7340
|
MyDataTable,
|
|
7351
7341
|
{
|
|
7352
7342
|
columns,
|
|
7353
7343
|
data: documentQuery.data,
|
|
7354
7344
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs33(MyCenterFull, { children: [
|
|
7355
|
-
/* @__PURE__ */
|
|
7356
|
-
/* @__PURE__ */
|
|
7345
|
+
/* @__PURE__ */ jsx60(F_core12196_Update, { values: row.original }),
|
|
7346
|
+
/* @__PURE__ */ jsx60(F_core12196_Delete, { id: row.original.id })
|
|
7357
7347
|
] })
|
|
7358
7348
|
}
|
|
7359
7349
|
) })
|
|
@@ -7367,7 +7357,7 @@ import { useMemo as useMemo4 } from "react";
|
|
|
7367
7357
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
|
7368
7358
|
import { FileInput as FileInput4 } from "@mantine/core";
|
|
7369
7359
|
import { useForm as useForm3 } from "@mantine/form";
|
|
7370
|
-
import { jsx as
|
|
7360
|
+
import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7371
7361
|
function F_core16209_Create() {
|
|
7372
7362
|
const form = useForm3({
|
|
7373
7363
|
mode: "uncontrolled"
|
|
@@ -7382,24 +7372,24 @@ function F_core16209_Create() {
|
|
|
7382
7372
|
})
|
|
7383
7373
|
);
|
|
7384
7374
|
}, children: [
|
|
7385
|
-
/* @__PURE__ */
|
|
7386
|
-
/* @__PURE__ */
|
|
7387
|
-
/* @__PURE__ */
|
|
7388
|
-
/* @__PURE__ */
|
|
7389
|
-
/* @__PURE__ */
|
|
7375
|
+
/* @__PURE__ */ jsx61(MyTextInput, __spreadValues({ label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u" }, form.getInputProps("departmentName"))),
|
|
7376
|
+
/* @__PURE__ */ jsx61(MyTextInput, __spreadValues({ label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn" }, form.getInputProps("description"))),
|
|
7377
|
+
/* @__PURE__ */ jsx61(MyDateInput, __spreadValues({ label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u" }, form.getInputProps("startDate"))),
|
|
7378
|
+
/* @__PURE__ */ jsx61(MyDateInput, __spreadValues({ label: "Ng\xE0y k\u1EBFt th\xFAc" }, form.getInputProps("endDate"))),
|
|
7379
|
+
/* @__PURE__ */ jsx61(FileInput4, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
7390
7380
|
] });
|
|
7391
7381
|
}
|
|
7392
7382
|
|
|
7393
7383
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
|
7394
|
-
import { jsx as
|
|
7384
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7395
7385
|
function F_core16209_Delete({ id }) {
|
|
7396
|
-
return /* @__PURE__ */
|
|
7386
|
+
return /* @__PURE__ */ jsx62(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
7397
7387
|
}
|
|
7398
7388
|
|
|
7399
7389
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
|
7400
7390
|
import { FileInput as FileInput5, TextInput as TextInput4 } from "@mantine/core";
|
|
7401
7391
|
import { useForm as useForm4 } from "@mantine/form";
|
|
7402
|
-
import { jsx as
|
|
7392
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7403
7393
|
function F_core16209_Update({ values }) {
|
|
7404
7394
|
var _a;
|
|
7405
7395
|
const form = useForm4({
|
|
@@ -7414,15 +7404,15 @@ function F_core16209_Update({ values }) {
|
|
|
7414
7404
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7415
7405
|
}));
|
|
7416
7406
|
}, children: [
|
|
7417
|
-
/* @__PURE__ */
|
|
7418
|
-
/* @__PURE__ */
|
|
7419
|
-
/* @__PURE__ */
|
|
7420
|
-
/* @__PURE__ */
|
|
7407
|
+
/* @__PURE__ */ jsx63(TextInput4, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7408
|
+
/* @__PURE__ */ jsx63(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7409
|
+
/* @__PURE__ */ jsx63(TextInput4, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7410
|
+
/* @__PURE__ */ jsx63(FileInput5, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
7421
7411
|
] });
|
|
7422
7412
|
}
|
|
7423
7413
|
|
|
7424
7414
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
|
7425
|
-
import { jsx as
|
|
7415
|
+
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7426
7416
|
function F_core16209() {
|
|
7427
7417
|
const query = useQuery5({
|
|
7428
7418
|
queryKey: ["F_core16209_Read"],
|
|
@@ -7453,7 +7443,7 @@ function F_core16209() {
|
|
|
7453
7443
|
{
|
|
7454
7444
|
header: "File",
|
|
7455
7445
|
accessorFn: (row) => {
|
|
7456
|
-
return /* @__PURE__ */
|
|
7446
|
+
return /* @__PURE__ */ jsx64(MyCenterFull, { children: /* @__PURE__ */ jsx64(MyButtonViewPDF, { id: row.id }) });
|
|
7457
7447
|
}
|
|
7458
7448
|
}
|
|
7459
7449
|
],
|
|
@@ -7461,16 +7451,16 @@ function F_core16209() {
|
|
|
7461
7451
|
);
|
|
7462
7452
|
if (query.isLoading) return "Loading...";
|
|
7463
7453
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7464
|
-
return /* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ jsx64(MyPageContent, { children: /* @__PURE__ */ jsx64(
|
|
7465
7455
|
MyDataTable,
|
|
7466
7456
|
{
|
|
7467
7457
|
columns,
|
|
7468
7458
|
data: query.data,
|
|
7469
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
7459
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx64(F_core16209_Create, {}),
|
|
7470
7460
|
renderRowActions: ({ row }) => {
|
|
7471
7461
|
return /* @__PURE__ */ jsxs36(MyCenterFull, { children: [
|
|
7472
|
-
/* @__PURE__ */
|
|
7473
|
-
/* @__PURE__ */
|
|
7462
|
+
/* @__PURE__ */ jsx64(F_core16209_Update, { values: row.original }),
|
|
7463
|
+
/* @__PURE__ */ jsx64(F_core16209_Delete, { id: row.original.id })
|
|
7474
7464
|
] });
|
|
7475
7465
|
}
|
|
7476
7466
|
}
|
|
@@ -7486,7 +7476,7 @@ import { useMemo as useMemo5 } from "react";
|
|
|
7486
7476
|
|
|
7487
7477
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
|
7488
7478
|
import { useForm as useForm5 } from "@mantine/form";
|
|
7489
|
-
import { jsx as
|
|
7479
|
+
import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7490
7480
|
function F_core18256_Create({ documentType }) {
|
|
7491
7481
|
const form = useForm5({
|
|
7492
7482
|
mode: "uncontrolled",
|
|
@@ -7500,15 +7490,15 @@ function F_core18256_Create({ documentType }) {
|
|
|
7500
7490
|
}
|
|
7501
7491
|
});
|
|
7502
7492
|
return /* @__PURE__ */ jsxs37(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
|
7503
|
-
/* @__PURE__ */
|
|
7504
|
-
/* @__PURE__ */
|
|
7493
|
+
/* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
|
7494
|
+
/* @__PURE__ */ jsx65(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
|
7505
7495
|
] });
|
|
7506
7496
|
}
|
|
7507
7497
|
|
|
7508
7498
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
|
7509
|
-
import { jsx as
|
|
7499
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
7510
7500
|
function F_core18256_Delete({ id }) {
|
|
7511
|
-
return /* @__PURE__ */
|
|
7501
|
+
return /* @__PURE__ */ jsx66(
|
|
7512
7502
|
MyActionIconDelete,
|
|
7513
7503
|
{
|
|
7514
7504
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
|
@@ -7518,19 +7508,19 @@ function F_core18256_Delete({ id }) {
|
|
|
7518
7508
|
|
|
7519
7509
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
|
7520
7510
|
import { useForm as useForm6 } from "@mantine/form";
|
|
7521
|
-
import { jsx as
|
|
7511
|
+
import { jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7522
7512
|
function F_core18256_Update({ values }) {
|
|
7523
7513
|
const form = useForm6({
|
|
7524
7514
|
initialValues: values
|
|
7525
7515
|
});
|
|
7526
7516
|
return /* @__PURE__ */ jsxs38(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
|
7527
|
-
/* @__PURE__ */
|
|
7528
|
-
/* @__PURE__ */
|
|
7517
|
+
/* @__PURE__ */ jsx67(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
|
7518
|
+
/* @__PURE__ */ jsx67(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
|
7529
7519
|
] });
|
|
7530
7520
|
}
|
|
7531
7521
|
|
|
7532
7522
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
|
7533
|
-
import { jsx as
|
|
7523
|
+
import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7534
7524
|
function F_core18256_Read({ documentType }) {
|
|
7535
7525
|
const documentAttributeQuery = useQuery6({
|
|
7536
7526
|
queryKey: ["F_core18256_Read", documentType],
|
|
@@ -7555,17 +7545,17 @@ function F_core18256_Read({ documentType }) {
|
|
|
7555
7545
|
);
|
|
7556
7546
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
|
7557
7547
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7558
|
-
return /* @__PURE__ */
|
|
7548
|
+
return /* @__PURE__ */ jsx68(
|
|
7559
7549
|
MyDataTable,
|
|
7560
7550
|
{
|
|
7561
7551
|
columns,
|
|
7562
7552
|
enableRowNumbers: true,
|
|
7563
7553
|
data: documentAttributeQuery.data,
|
|
7564
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
7554
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx68(F_core18256_Create, { documentType }),
|
|
7565
7555
|
renderRowActions: ({ row }) => {
|
|
7566
7556
|
return /* @__PURE__ */ jsxs39(MyCenterFull, { children: [
|
|
7567
|
-
/* @__PURE__ */
|
|
7568
|
-
/* @__PURE__ */
|
|
7557
|
+
/* @__PURE__ */ jsx68(F_core18256_Update, { values: row.original }),
|
|
7558
|
+
/* @__PURE__ */ jsx68(F_core18256_Delete, { id: row.original.id })
|
|
7569
7559
|
] });
|
|
7570
7560
|
}
|
|
7571
7561
|
}
|
|
@@ -7573,23 +7563,23 @@ function F_core18256_Read({ documentType }) {
|
|
|
7573
7563
|
}
|
|
7574
7564
|
|
|
7575
7565
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
|
7576
|
-
import { jsx as
|
|
7566
|
+
import { jsx as jsx69, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7577
7567
|
var tabData = [
|
|
7578
7568
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
|
7579
7569
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
|
7580
7570
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
|
7581
7571
|
];
|
|
7582
7572
|
function F_core18256() {
|
|
7583
|
-
return /* @__PURE__ */
|
|
7584
|
-
/* @__PURE__ */
|
|
7585
|
-
/* @__PURE__ */
|
|
7586
|
-
/* @__PURE__ */
|
|
7573
|
+
return /* @__PURE__ */ jsx69(MyPageContent, { children: /* @__PURE__ */ jsxs40(MyTab, { tabList: tabData, children: [
|
|
7574
|
+
/* @__PURE__ */ jsx69(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx69(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
|
7575
|
+
/* @__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 }) }),
|
|
7576
|
+
/* @__PURE__ */ jsx69(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx69(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
|
|
7587
7577
|
] }) });
|
|
7588
7578
|
}
|
|
7589
7579
|
|
|
7590
7580
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
|
7591
7581
|
import { useForm as useForm7 } from "@mantine/form";
|
|
7592
|
-
import { jsx as
|
|
7582
|
+
import { jsx as jsx70, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7593
7583
|
function F_core26965_Create() {
|
|
7594
7584
|
const form = useForm7({
|
|
7595
7585
|
mode: "uncontrolled"
|
|
@@ -7603,12 +7593,12 @@ function F_core26965_Create() {
|
|
|
7603
7593
|
})
|
|
7604
7594
|
);
|
|
7605
7595
|
}, children: [
|
|
7606
|
-
/* @__PURE__ */
|
|
7607
|
-
/* @__PURE__ */
|
|
7608
|
-
/* @__PURE__ */
|
|
7609
|
-
/* @__PURE__ */
|
|
7610
|
-
/* @__PURE__ */
|
|
7611
|
-
/* @__PURE__ */
|
|
7596
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7597
|
+
/* @__PURE__ */ jsx70(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7598
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7599
|
+
/* @__PURE__ */ jsx70(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7600
|
+
/* @__PURE__ */ jsx70(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7601
|
+
/* @__PURE__ */ jsx70(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7612
7602
|
] });
|
|
7613
7603
|
}
|
|
7614
7604
|
|
|
@@ -7618,14 +7608,14 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
|
7618
7608
|
import { useMemo as useMemo6 } from "react";
|
|
7619
7609
|
|
|
7620
7610
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
|
7621
|
-
import { jsx as
|
|
7611
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
7622
7612
|
function F_core26965_Delete({ id }) {
|
|
7623
|
-
return /* @__PURE__ */
|
|
7613
|
+
return /* @__PURE__ */ jsx71(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7624
7614
|
}
|
|
7625
7615
|
|
|
7626
7616
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
|
7627
7617
|
import { useForm as useForm8 } from "@mantine/form";
|
|
7628
|
-
import { jsx as
|
|
7618
|
+
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7629
7619
|
function F_core26965_Update({ values }) {
|
|
7630
7620
|
var _a;
|
|
7631
7621
|
const form = useForm8({
|
|
@@ -7639,17 +7629,17 @@ function F_core26965_Update({ values }) {
|
|
|
7639
7629
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7640
7630
|
}));
|
|
7641
7631
|
}, children: [
|
|
7642
|
-
/* @__PURE__ */
|
|
7643
|
-
/* @__PURE__ */
|
|
7644
|
-
/* @__PURE__ */
|
|
7645
|
-
/* @__PURE__ */
|
|
7646
|
-
/* @__PURE__ */
|
|
7647
|
-
/* @__PURE__ */
|
|
7632
|
+
/* @__PURE__ */ jsx72(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7633
|
+
/* @__PURE__ */ jsx72(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7634
|
+
/* @__PURE__ */ jsx72(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7635
|
+
/* @__PURE__ */ jsx72(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7636
|
+
/* @__PURE__ */ jsx72(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7637
|
+
/* @__PURE__ */ jsx72(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7648
7638
|
] });
|
|
7649
7639
|
}
|
|
7650
7640
|
|
|
7651
7641
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
|
7652
|
-
import { jsx as
|
|
7642
|
+
import { jsx as jsx73, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7653
7643
|
function F_core26965_Read() {
|
|
7654
7644
|
var _a, _b, _c;
|
|
7655
7645
|
const documentAttributeQuery = useQuery7({
|
|
@@ -7662,11 +7652,11 @@ function F_core26965_Read() {
|
|
|
7662
7652
|
});
|
|
7663
7653
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7664
7654
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7665
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7666
|
-
return /* @__PURE__ */
|
|
7655
|
+
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" });
|
|
7656
|
+
return /* @__PURE__ */ jsx73(MyFlexColumn, { children: /* @__PURE__ */ jsx73(Accordion2, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
7667
7657
|
var _a2;
|
|
7668
7658
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7669
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7659
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx73(SubRead2, { name: item.name, documentType: item.id }, idx)) }) });
|
|
7670
7660
|
}
|
|
7671
7661
|
function SubRead2({ name, documentType }) {
|
|
7672
7662
|
const documentQuery = useQuery7({
|
|
@@ -7693,7 +7683,7 @@ function SubRead2({ name, documentType }) {
|
|
|
7693
7683
|
{
|
|
7694
7684
|
header: "File",
|
|
7695
7685
|
accessorFn: (row) => {
|
|
7696
|
-
return /* @__PURE__ */
|
|
7686
|
+
return /* @__PURE__ */ jsx73(MyCenterFull, { children: /* @__PURE__ */ jsx73(MyButtonViewPDF, { id: row.id }) });
|
|
7697
7687
|
}
|
|
7698
7688
|
}
|
|
7699
7689
|
],
|
|
@@ -7702,15 +7692,15 @@ function SubRead2({ name, documentType }) {
|
|
|
7702
7692
|
if (documentQuery.isLoading) return "Loading...";
|
|
7703
7693
|
if (documentQuery.isError) return "Error!";
|
|
7704
7694
|
return /* @__PURE__ */ jsxs43(Accordion2.Item, { value: documentType.toString(), children: [
|
|
7705
|
-
/* @__PURE__ */
|
|
7706
|
-
/* @__PURE__ */
|
|
7695
|
+
/* @__PURE__ */ jsx73(Accordion2.Control, { children: name }),
|
|
7696
|
+
/* @__PURE__ */ jsx73(Accordion2.Panel, { children: /* @__PURE__ */ jsx73(
|
|
7707
7697
|
MyDataTable,
|
|
7708
7698
|
{
|
|
7709
7699
|
columns,
|
|
7710
7700
|
data: documentQuery.data,
|
|
7711
7701
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs43(MyCenterFull, { children: [
|
|
7712
|
-
/* @__PURE__ */
|
|
7713
|
-
/* @__PURE__ */
|
|
7702
|
+
/* @__PURE__ */ jsx73(F_core26965_Update, { values: row.original }),
|
|
7703
|
+
/* @__PURE__ */ jsx73(F_core26965_Delete, { id: row.original.id })
|
|
7714
7704
|
] })
|
|
7715
7705
|
}
|
|
7716
7706
|
) })
|
|
@@ -7718,14 +7708,14 @@ function SubRead2({ name, documentType }) {
|
|
|
7718
7708
|
}
|
|
7719
7709
|
|
|
7720
7710
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
|
7721
|
-
import { jsx as
|
|
7711
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
7722
7712
|
function F_core26965() {
|
|
7723
|
-
return /* @__PURE__ */
|
|
7713
|
+
return /* @__PURE__ */ jsx74(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx74(F_core26965_Create, {}), children: /* @__PURE__ */ jsx74(F_core26965_Read, {}) });
|
|
7724
7714
|
}
|
|
7725
7715
|
|
|
7726
7716
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
|
7727
7717
|
import { useForm as useForm9 } from "@mantine/form";
|
|
7728
|
-
import { jsx as
|
|
7718
|
+
import { jsx as jsx75, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7729
7719
|
function F_core27311_Create() {
|
|
7730
7720
|
const form = useForm9({
|
|
7731
7721
|
mode: "uncontrolled"
|
|
@@ -7739,12 +7729,12 @@ function F_core27311_Create() {
|
|
|
7739
7729
|
})
|
|
7740
7730
|
);
|
|
7741
7731
|
}, children: [
|
|
7742
|
-
/* @__PURE__ */
|
|
7743
|
-
/* @__PURE__ */
|
|
7744
|
-
/* @__PURE__ */
|
|
7745
|
-
/* @__PURE__ */
|
|
7746
|
-
/* @__PURE__ */
|
|
7747
|
-
/* @__PURE__ */
|
|
7732
|
+
/* @__PURE__ */ jsx75(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7733
|
+
/* @__PURE__ */ jsx75(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7734
|
+
/* @__PURE__ */ jsx75(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7735
|
+
/* @__PURE__ */ jsx75(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Workflow }, form.getInputProps("documentAttributeId"))),
|
|
7736
|
+
/* @__PURE__ */ jsx75(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7737
|
+
/* @__PURE__ */ jsx75(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7748
7738
|
] });
|
|
7749
7739
|
}
|
|
7750
7740
|
|
|
@@ -7754,14 +7744,14 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
|
7754
7744
|
import { useMemo as useMemo7 } from "react";
|
|
7755
7745
|
|
|
7756
7746
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
|
7757
|
-
import { jsx as
|
|
7747
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
7758
7748
|
function F_core27311_Delete({ id }) {
|
|
7759
|
-
return /* @__PURE__ */
|
|
7749
|
+
return /* @__PURE__ */ jsx76(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7760
7750
|
}
|
|
7761
7751
|
|
|
7762
7752
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
|
7763
7753
|
import { useForm as useForm10 } from "@mantine/form";
|
|
7764
|
-
import { jsx as
|
|
7754
|
+
import { jsx as jsx77, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7765
7755
|
function F_core27311_Update({ values }) {
|
|
7766
7756
|
var _a;
|
|
7767
7757
|
const form = useForm10({
|
|
@@ -7775,17 +7765,17 @@ function F_core27311_Update({ values }) {
|
|
|
7775
7765
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7776
7766
|
}));
|
|
7777
7767
|
}, children: [
|
|
7778
|
-
/* @__PURE__ */
|
|
7779
|
-
/* @__PURE__ */
|
|
7780
|
-
/* @__PURE__ */
|
|
7781
|
-
/* @__PURE__ */
|
|
7782
|
-
/* @__PURE__ */
|
|
7783
|
-
/* @__PURE__ */
|
|
7768
|
+
/* @__PURE__ */ jsx77(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7769
|
+
/* @__PURE__ */ jsx77(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7770
|
+
/* @__PURE__ */ jsx77(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7771
|
+
/* @__PURE__ */ jsx77(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7772
|
+
/* @__PURE__ */ jsx77(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7773
|
+
/* @__PURE__ */ jsx77(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7784
7774
|
] });
|
|
7785
7775
|
}
|
|
7786
7776
|
|
|
7787
7777
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
|
7788
|
-
import { jsx as
|
|
7778
|
+
import { jsx as jsx78, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7789
7779
|
function F_core27311_Read() {
|
|
7790
7780
|
var _a, _b, _c;
|
|
7791
7781
|
const documentAttributeQuery = useQuery8({
|
|
@@ -7798,11 +7788,11 @@ function F_core27311_Read() {
|
|
|
7798
7788
|
});
|
|
7799
7789
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7800
7790
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7801
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7802
|
-
return /* @__PURE__ */
|
|
7791
|
+
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" });
|
|
7792
|
+
return /* @__PURE__ */ jsx78(MyFlexColumn, { children: /* @__PURE__ */ jsx78(Accordion3, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
7803
7793
|
var _a2;
|
|
7804
7794
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7805
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7795
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx78(SubRead3, { name: item.name, documentType: item.id }, idx)) }) });
|
|
7806
7796
|
}
|
|
7807
7797
|
function SubRead3({ name, documentType }) {
|
|
7808
7798
|
const documentQuery = useQuery8({
|
|
@@ -7829,7 +7819,7 @@ function SubRead3({ name, documentType }) {
|
|
|
7829
7819
|
{
|
|
7830
7820
|
header: "File",
|
|
7831
7821
|
accessorFn: (row) => {
|
|
7832
|
-
return /* @__PURE__ */
|
|
7822
|
+
return /* @__PURE__ */ jsx78(MyCenterFull, { children: /* @__PURE__ */ jsx78(MyButtonViewPDF, { id: row.id }) });
|
|
7833
7823
|
}
|
|
7834
7824
|
}
|
|
7835
7825
|
],
|
|
@@ -7838,15 +7828,15 @@ function SubRead3({ name, documentType }) {
|
|
|
7838
7828
|
if (documentQuery.isLoading) return "Loading...";
|
|
7839
7829
|
if (documentQuery.isError) return "Error!";
|
|
7840
7830
|
return /* @__PURE__ */ jsxs46(Accordion3.Item, { value: documentType.toString(), children: [
|
|
7841
|
-
/* @__PURE__ */
|
|
7842
|
-
/* @__PURE__ */
|
|
7831
|
+
/* @__PURE__ */ jsx78(Accordion3.Control, { children: name }),
|
|
7832
|
+
/* @__PURE__ */ jsx78(Accordion3.Panel, { children: /* @__PURE__ */ jsx78(
|
|
7843
7833
|
MyDataTable,
|
|
7844
7834
|
{
|
|
7845
7835
|
columns,
|
|
7846
7836
|
data: documentQuery.data,
|
|
7847
7837
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs46(MyCenterFull, { children: [
|
|
7848
|
-
/* @__PURE__ */
|
|
7849
|
-
/* @__PURE__ */
|
|
7838
|
+
/* @__PURE__ */ jsx78(F_core27311_Update, { values: row.original }),
|
|
7839
|
+
/* @__PURE__ */ jsx78(F_core27311_Delete, { id: row.original.id })
|
|
7850
7840
|
] })
|
|
7851
7841
|
}
|
|
7852
7842
|
) })
|
|
@@ -7854,9 +7844,9 @@ function SubRead3({ name, documentType }) {
|
|
|
7854
7844
|
}
|
|
7855
7845
|
|
|
7856
7846
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
|
7857
|
-
import { jsx as
|
|
7847
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
7858
7848
|
function F_core27311() {
|
|
7859
|
-
return /* @__PURE__ */
|
|
7849
|
+
return /* @__PURE__ */ jsx79(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx79(F_core27311_Create, {}), children: /* @__PURE__ */ jsx79(F_core27311_Read, {}) });
|
|
7860
7850
|
}
|
|
7861
7851
|
|
|
7862
7852
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
|
@@ -7916,7 +7906,7 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
|
7916
7906
|
}
|
|
7917
7907
|
|
|
7918
7908
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
|
7919
|
-
import { jsx as
|
|
7909
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
7920
7910
|
function F_core38677_ReadUser() {
|
|
7921
7911
|
const store = useS_core83092();
|
|
7922
7912
|
const query = useQ_Account_GetAdminAccount();
|
|
@@ -7949,7 +7939,7 @@ function F_core38677_ReadUser() {
|
|
|
7949
7939
|
}, [query.data]);
|
|
7950
7940
|
if (query.isLoading) return "Loading...";
|
|
7951
7941
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7952
|
-
return /* @__PURE__ */
|
|
7942
|
+
return /* @__PURE__ */ jsx80(Container4, { fluid: true, children: /* @__PURE__ */ jsx80(
|
|
7953
7943
|
MyDataTable,
|
|
7954
7944
|
{
|
|
7955
7945
|
columns,
|
|
@@ -7985,7 +7975,7 @@ function useQ_Account_GetAdminAccount() {
|
|
|
7985
7975
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
|
7986
7976
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
7987
7977
|
import { useEffect as useEffect7, useState as useState10 } from "react";
|
|
7988
|
-
import { jsx as
|
|
7978
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
7989
7979
|
function F_core38677_Save() {
|
|
7990
7980
|
const store = useS_core83092();
|
|
7991
7981
|
const disable = useState10(false);
|
|
@@ -8014,7 +8004,7 @@ function F_core38677_Save() {
|
|
|
8014
8004
|
}
|
|
8015
8005
|
disable[1](false);
|
|
8016
8006
|
}, [store.state.rolePermissions]);
|
|
8017
|
-
return /* @__PURE__ */
|
|
8007
|
+
return /* @__PURE__ */ jsx81(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
|
8018
8008
|
}
|
|
8019
8009
|
|
|
8020
8010
|
// src/data/menuData.ts
|
|
@@ -8156,7 +8146,7 @@ import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table
|
|
|
8156
8146
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
|
8157
8147
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
|
8158
8148
|
import React2, { useEffect as useEffect8, useState as useState11 } from "react";
|
|
8159
|
-
import { jsx as
|
|
8149
|
+
import { jsx as jsx82, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
8160
8150
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
|
8161
8151
|
function F_core38677_ViewMenuPermissions() {
|
|
8162
8152
|
var _a, _b;
|
|
@@ -8171,8 +8161,8 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8171
8161
|
store.setProperty("rolePermissions", query.data);
|
|
8172
8162
|
}, [query.data]);
|
|
8173
8163
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
|
8174
|
-
return /* @__PURE__ */
|
|
8175
|
-
/* @__PURE__ */
|
|
8164
|
+
return /* @__PURE__ */ jsx82(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs47(Table3, { children: [
|
|
8165
|
+
/* @__PURE__ */ jsx82(
|
|
8176
8166
|
Table3.Thead,
|
|
8177
8167
|
{
|
|
8178
8168
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
|
@@ -8184,89 +8174,89 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8184
8174
|
border: "1px solid var(--mantine-color-gray-4)"
|
|
8185
8175
|
},
|
|
8186
8176
|
children: /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
8187
|
-
/* @__PURE__ */
|
|
8188
|
-
/* @__PURE__ */
|
|
8189
|
-
/* @__PURE__ */
|
|
8177
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: title }),
|
|
8178
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8179
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
|
8190
8180
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
|
8191
8181
|
} }),
|
|
8192
8182
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8193
8183
|
"Xem",
|
|
8194
|
-
/* @__PURE__ */
|
|
8184
|
+
/* @__PURE__ */ jsx82(IconEyeUp, { color: "gray" })
|
|
8195
8185
|
] })
|
|
8196
8186
|
] }) }),
|
|
8197
|
-
/* @__PURE__ */
|
|
8198
|
-
/* @__PURE__ */
|
|
8187
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8188
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
|
8199
8189
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
|
8200
8190
|
} }),
|
|
8201
8191
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8202
8192
|
"Th\xEAm",
|
|
8203
|
-
/* @__PURE__ */
|
|
8193
|
+
/* @__PURE__ */ jsx82(IconPlus5, { color: "blue" })
|
|
8204
8194
|
] })
|
|
8205
8195
|
] }) }),
|
|
8206
|
-
/* @__PURE__ */
|
|
8207
|
-
/* @__PURE__ */
|
|
8196
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8197
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
|
8208
8198
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
|
8209
8199
|
} }),
|
|
8210
8200
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8211
8201
|
"S\u1EEDa",
|
|
8212
|
-
/* @__PURE__ */
|
|
8202
|
+
/* @__PURE__ */ jsx82(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
|
8213
8203
|
] })
|
|
8214
8204
|
] }) }),
|
|
8215
|
-
/* @__PURE__ */
|
|
8216
|
-
/* @__PURE__ */
|
|
8205
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8206
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
|
8217
8207
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
|
8218
8208
|
} }),
|
|
8219
8209
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8220
8210
|
"X\xF3a",
|
|
8221
|
-
/* @__PURE__ */
|
|
8211
|
+
/* @__PURE__ */ jsx82(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
|
8222
8212
|
] })
|
|
8223
8213
|
] }) }),
|
|
8224
|
-
/* @__PURE__ */
|
|
8225
|
-
/* @__PURE__ */
|
|
8214
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8215
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
|
8226
8216
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
|
8227
8217
|
} }),
|
|
8228
8218
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8229
8219
|
"In",
|
|
8230
|
-
/* @__PURE__ */
|
|
8220
|
+
/* @__PURE__ */ jsx82(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
|
8231
8221
|
] })
|
|
8232
8222
|
] }) }),
|
|
8233
|
-
/* @__PURE__ */
|
|
8234
|
-
/* @__PURE__ */
|
|
8223
|
+
/* @__PURE__ */ jsx82(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8224
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
|
8235
8225
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
|
8236
8226
|
} }),
|
|
8237
8227
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
8238
8228
|
"Xu\u1EA5t",
|
|
8239
|
-
/* @__PURE__ */
|
|
8229
|
+
/* @__PURE__ */ jsx82(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
|
8240
8230
|
] })
|
|
8241
8231
|
] }) })
|
|
8242
8232
|
] })
|
|
8243
8233
|
}
|
|
8244
8234
|
),
|
|
8245
|
-
/* @__PURE__ */
|
|
8235
|
+
/* @__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) => {
|
|
8246
8236
|
if (item.links == void 0) return /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
8247
|
-
/* @__PURE__ */
|
|
8248
|
-
/* @__PURE__ */
|
|
8249
|
-
/* @__PURE__ */
|
|
8250
|
-
/* @__PURE__ */
|
|
8251
|
-
/* @__PURE__ */
|
|
8252
|
-
/* @__PURE__ */
|
|
8253
|
-
/* @__PURE__ */
|
|
8237
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: item.label }),
|
|
8238
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8239
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8240
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8241
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8242
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) }),
|
|
8243
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(Checkbox3, {}) }) })
|
|
8254
8244
|
] }, idx);
|
|
8255
8245
|
return /* @__PURE__ */ jsxs47(React2.Fragment, { children: [
|
|
8256
|
-
/* @__PURE__ */
|
|
8246
|
+
/* @__PURE__ */ jsx82(Table3.Tr, { children: /* @__PURE__ */ jsx82(
|
|
8257
8247
|
Table3.Td,
|
|
8258
8248
|
{
|
|
8259
8249
|
colSpan: 7,
|
|
8260
8250
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
|
8261
|
-
children: /* @__PURE__ */
|
|
8251
|
+
children: /* @__PURE__ */ jsx82(Text13, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
|
8262
8252
|
}
|
|
8263
8253
|
) }, item.label),
|
|
8264
8254
|
item.links.map(
|
|
8265
8255
|
(item2, idx2) => {
|
|
8266
8256
|
var _a2, _b2, _c, _d, _e, _f;
|
|
8267
8257
|
return /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
8268
|
-
/* @__PURE__ */
|
|
8269
|
-
/* @__PURE__ */
|
|
8258
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: item2.label }),
|
|
8259
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8270
8260
|
Checkbox3,
|
|
8271
8261
|
{
|
|
8272
8262
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
|
@@ -8277,7 +8267,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8277
8267
|
}
|
|
8278
8268
|
}
|
|
8279
8269
|
) }) }),
|
|
8280
|
-
/* @__PURE__ */
|
|
8270
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8281
8271
|
Checkbox3,
|
|
8282
8272
|
{
|
|
8283
8273
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
|
@@ -8288,7 +8278,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8288
8278
|
}
|
|
8289
8279
|
}
|
|
8290
8280
|
) }) }),
|
|
8291
|
-
/* @__PURE__ */
|
|
8281
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8292
8282
|
Checkbox3,
|
|
8293
8283
|
{
|
|
8294
8284
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
|
@@ -8299,7 +8289,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8299
8289
|
}
|
|
8300
8290
|
}
|
|
8301
8291
|
) }) }),
|
|
8302
|
-
/* @__PURE__ */
|
|
8292
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8303
8293
|
Checkbox3,
|
|
8304
8294
|
{
|
|
8305
8295
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
|
@@ -8310,7 +8300,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8310
8300
|
}
|
|
8311
8301
|
}
|
|
8312
8302
|
) }) }),
|
|
8313
|
-
/* @__PURE__ */
|
|
8303
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8314
8304
|
Checkbox3,
|
|
8315
8305
|
{
|
|
8316
8306
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
|
@@ -8321,7 +8311,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
8321
8311
|
}
|
|
8322
8312
|
}
|
|
8323
8313
|
) }) }),
|
|
8324
|
-
/* @__PURE__ */
|
|
8314
|
+
/* @__PURE__ */ jsx82(Table3.Td, { children: /* @__PURE__ */ jsx82(MyCenterFull, { children: /* @__PURE__ */ jsx82(
|
|
8325
8315
|
Checkbox3,
|
|
8326
8316
|
{
|
|
8327
8317
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
|
@@ -8377,7 +8367,7 @@ function useGetUserPermission() {
|
|
|
8377
8367
|
}
|
|
8378
8368
|
|
|
8379
8369
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
|
8380
|
-
import { jsx as
|
|
8370
|
+
import { jsx as jsx83, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
8381
8371
|
|
|
8382
8372
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
|
8383
8373
|
import { useQuery as useQuery11 } from "@tanstack/react-query";
|
|
@@ -8386,7 +8376,7 @@ import { useMemo as useMemo9 } from "react";
|
|
|
8386
8376
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
|
8387
8377
|
import { FileInput as FileInput6 } from "@mantine/core";
|
|
8388
8378
|
import { useForm as useForm11 } from "@mantine/form";
|
|
8389
|
-
import { jsx as
|
|
8379
|
+
import { jsx as jsx84, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8390
8380
|
function F_core40207_Create() {
|
|
8391
8381
|
const form = useForm11({
|
|
8392
8382
|
mode: "uncontrolled"
|
|
@@ -8401,22 +8391,22 @@ function F_core40207_Create() {
|
|
|
8401
8391
|
})
|
|
8402
8392
|
);
|
|
8403
8393
|
}, children: [
|
|
8404
|
-
/* @__PURE__ */
|
|
8405
|
-
/* @__PURE__ */
|
|
8406
|
-
/* @__PURE__ */
|
|
8394
|
+
/* @__PURE__ */ jsx84(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
|
|
8395
|
+
/* @__PURE__ */ jsx84(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
8396
|
+
/* @__PURE__ */ jsx84(FileInput6, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
8407
8397
|
] });
|
|
8408
8398
|
}
|
|
8409
8399
|
|
|
8410
8400
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
|
8411
|
-
import { jsx as
|
|
8401
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
8412
8402
|
function F_core40207_Delete({ id }) {
|
|
8413
|
-
return /* @__PURE__ */
|
|
8403
|
+
return /* @__PURE__ */ jsx85(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
8414
8404
|
}
|
|
8415
8405
|
|
|
8416
8406
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
|
8417
8407
|
import { FileInput as FileInput7 } from "@mantine/core";
|
|
8418
8408
|
import { useForm as useForm12 } from "@mantine/form";
|
|
8419
|
-
import { jsx as
|
|
8409
|
+
import { jsx as jsx86, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8420
8410
|
function F_core40207_Update({ values }) {
|
|
8421
8411
|
var _a;
|
|
8422
8412
|
const form = useForm12({
|
|
@@ -8431,14 +8421,14 @@ function F_core40207_Update({ values }) {
|
|
|
8431
8421
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
8432
8422
|
}));
|
|
8433
8423
|
}, children: [
|
|
8434
|
-
/* @__PURE__ */
|
|
8435
|
-
/* @__PURE__ */
|
|
8436
|
-
/* @__PURE__ */
|
|
8424
|
+
/* @__PURE__ */ jsx86(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
|
|
8425
|
+
/* @__PURE__ */ jsx86(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
8426
|
+
/* @__PURE__ */ jsx86(FileInput7, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
8437
8427
|
] });
|
|
8438
8428
|
}
|
|
8439
8429
|
|
|
8440
8430
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
|
8441
|
-
import { jsx as
|
|
8431
|
+
import { jsx as jsx87, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8442
8432
|
function F_core40207_Read() {
|
|
8443
8433
|
const query = useQuery11({
|
|
8444
8434
|
queryKey: ["F_core40207_Read"],
|
|
@@ -8461,7 +8451,7 @@ function F_core40207_Read() {
|
|
|
8461
8451
|
{
|
|
8462
8452
|
header: "File",
|
|
8463
8453
|
accessorFn: (row) => {
|
|
8464
|
-
return /* @__PURE__ */
|
|
8454
|
+
return /* @__PURE__ */ jsx87(MyCenterFull, { children: /* @__PURE__ */ jsx87(MyButtonViewPDF, { id: row.id }) });
|
|
8465
8455
|
}
|
|
8466
8456
|
}
|
|
8467
8457
|
],
|
|
@@ -8469,16 +8459,16 @@ function F_core40207_Read() {
|
|
|
8469
8459
|
);
|
|
8470
8460
|
if (query.isLoading) return "Loading...";
|
|
8471
8461
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
8472
|
-
return /* @__PURE__ */
|
|
8462
|
+
return /* @__PURE__ */ jsx87(
|
|
8473
8463
|
MyDataTable,
|
|
8474
8464
|
{
|
|
8475
8465
|
columns,
|
|
8476
8466
|
data: query.data,
|
|
8477
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8467
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx87(F_core40207_Create, {}),
|
|
8478
8468
|
renderRowActions: ({ row }) => {
|
|
8479
8469
|
return /* @__PURE__ */ jsxs51(MyCenterFull, { children: [
|
|
8480
|
-
/* @__PURE__ */
|
|
8481
|
-
/* @__PURE__ */
|
|
8470
|
+
/* @__PURE__ */ jsx87(F_core40207_Update, { values: row.original }),
|
|
8471
|
+
/* @__PURE__ */ jsx87(F_core40207_Delete, { id: row.original.id })
|
|
8482
8472
|
] });
|
|
8483
8473
|
}
|
|
8484
8474
|
}
|
|
@@ -8486,9 +8476,9 @@ function F_core40207_Read() {
|
|
|
8486
8476
|
}
|
|
8487
8477
|
|
|
8488
8478
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
|
8489
|
-
import { jsx as
|
|
8479
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
8490
8480
|
function F_core40207() {
|
|
8491
|
-
return /* @__PURE__ */
|
|
8481
|
+
return /* @__PURE__ */ jsx88(MyPageContent, { children: /* @__PURE__ */ jsx88(F_core40207_Read, {}) });
|
|
8492
8482
|
}
|
|
8493
8483
|
|
|
8494
8484
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
|
@@ -8497,10 +8487,10 @@ import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
|
8497
8487
|
import { useMemo as useMemo10 } from "react";
|
|
8498
8488
|
|
|
8499
8489
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
|
8500
|
-
import { jsx as
|
|
8490
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
8501
8491
|
var ENDPOINT = "/Role/Delete";
|
|
8502
8492
|
function F_core47643_Delete({ values }) {
|
|
8503
|
-
return /* @__PURE__ */
|
|
8493
|
+
return /* @__PURE__ */ jsx89(
|
|
8504
8494
|
MyActionIconDelete,
|
|
8505
8495
|
{
|
|
8506
8496
|
contextData: values.code,
|
|
@@ -8511,7 +8501,7 @@ function F_core47643_Delete({ values }) {
|
|
|
8511
8501
|
|
|
8512
8502
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
|
8513
8503
|
import { useForm as useForm13 } from "@mantine/form";
|
|
8514
|
-
import { jsx as
|
|
8504
|
+
import { jsx as jsx90, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8515
8505
|
function F_core47643_Form({ values }) {
|
|
8516
8506
|
const form = useForm13({
|
|
8517
8507
|
mode: "uncontrolled",
|
|
@@ -8520,19 +8510,19 @@ function F_core47643_Form({ values }) {
|
|
|
8520
8510
|
if (values) return /* @__PURE__ */ jsxs52(MyActionIconUpdate, { form, onSubmit: async () => {
|
|
8521
8511
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
|
8522
8512
|
}, children: [
|
|
8523
|
-
/* @__PURE__ */
|
|
8524
|
-
/* @__PURE__ */
|
|
8513
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
|
8514
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
|
8525
8515
|
] });
|
|
8526
8516
|
return /* @__PURE__ */ jsxs52(MyButtonCreate, { form, onSubmit: async () => {
|
|
8527
8517
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
|
8528
8518
|
}, children: [
|
|
8529
|
-
/* @__PURE__ */
|
|
8530
|
-
/* @__PURE__ */
|
|
8519
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
|
8520
|
+
/* @__PURE__ */ jsx90(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
|
8531
8521
|
] });
|
|
8532
8522
|
}
|
|
8533
8523
|
|
|
8534
8524
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
|
8535
|
-
import { jsx as
|
|
8525
|
+
import { jsx as jsx91, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8536
8526
|
function F_core47643_Read() {
|
|
8537
8527
|
const query = useQ_core47643_GetAdminRole();
|
|
8538
8528
|
const columns = useMemo10(() => [
|
|
@@ -8547,15 +8537,15 @@ function F_core47643_Read() {
|
|
|
8547
8537
|
], []);
|
|
8548
8538
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
|
8549
8539
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
8550
|
-
return /* @__PURE__ */
|
|
8540
|
+
return /* @__PURE__ */ jsx91(
|
|
8551
8541
|
MyDataTable,
|
|
8552
8542
|
{
|
|
8553
8543
|
data: query.data,
|
|
8554
8544
|
columns,
|
|
8555
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8545
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx91(Group15, { children: /* @__PURE__ */ jsx91(F_core47643_Form, {}) }),
|
|
8556
8546
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs53(MyCenterFull, { children: [
|
|
8557
|
-
/* @__PURE__ */
|
|
8558
|
-
/* @__PURE__ */
|
|
8547
|
+
/* @__PURE__ */ jsx91(F_core47643_Form, { values: row.original }),
|
|
8548
|
+
/* @__PURE__ */ jsx91(F_core47643_Delete, { values: row.original })
|
|
8559
8549
|
] })
|
|
8560
8550
|
}
|
|
8561
8551
|
);
|
|
@@ -8572,15 +8562,15 @@ function useQ_core47643_GetAdminRole() {
|
|
|
8572
8562
|
}
|
|
8573
8563
|
|
|
8574
8564
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
|
8575
|
-
import { jsx as
|
|
8565
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
8576
8566
|
function F_core47643() {
|
|
8577
|
-
return /* @__PURE__ */
|
|
8567
|
+
return /* @__PURE__ */ jsx92(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx92(F_core47643_Read, {}) });
|
|
8578
8568
|
}
|
|
8579
8569
|
|
|
8580
8570
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
|
8581
|
-
import { jsx as
|
|
8571
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
8582
8572
|
function F_core64229_Delete({ values }) {
|
|
8583
|
-
return /* @__PURE__ */
|
|
8573
|
+
return /* @__PURE__ */ jsx93(
|
|
8584
8574
|
MyActionIconDelete,
|
|
8585
8575
|
{
|
|
8586
8576
|
contextData: values == null ? void 0 : values.code,
|
|
@@ -8605,7 +8595,7 @@ var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
|
|
|
8605
8595
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
|
8606
8596
|
import { PasswordInput } from "@mantine/core";
|
|
8607
8597
|
import { useForm as useForm14 } from "@mantine/form";
|
|
8608
|
-
import { jsx as
|
|
8598
|
+
import { jsx as jsx94, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8609
8599
|
function F_core64229_Form({ values }) {
|
|
8610
8600
|
const form = useForm14({
|
|
8611
8601
|
mode: "uncontrolled",
|
|
@@ -8631,27 +8621,27 @@ function F_core64229_Form({ values }) {
|
|
|
8631
8621
|
"password": formValues.password
|
|
8632
8622
|
});
|
|
8633
8623
|
}
|
|
8634
|
-
if (values) return /* @__PURE__ */
|
|
8624
|
+
if (values) return /* @__PURE__ */ jsx94(
|
|
8635
8625
|
MyActionIconUpdate,
|
|
8636
8626
|
{
|
|
8637
8627
|
form,
|
|
8638
8628
|
onSubmit: handleSubmit,
|
|
8639
|
-
children: /* @__PURE__ */
|
|
8629
|
+
children: /* @__PURE__ */ jsx94(FormInput, { form })
|
|
8640
8630
|
}
|
|
8641
8631
|
);
|
|
8642
|
-
return /* @__PURE__ */
|
|
8632
|
+
return /* @__PURE__ */ jsx94(
|
|
8643
8633
|
MyButtonCreate,
|
|
8644
8634
|
{
|
|
8645
8635
|
form,
|
|
8646
8636
|
onSubmit: handleSubmit,
|
|
8647
|
-
children: /* @__PURE__ */
|
|
8637
|
+
children: /* @__PURE__ */ jsx94(FormInput, { form })
|
|
8648
8638
|
}
|
|
8649
8639
|
);
|
|
8650
8640
|
}
|
|
8651
8641
|
function FormInput({ form }) {
|
|
8652
8642
|
var _a, _b;
|
|
8653
8643
|
return /* @__PURE__ */ jsxs54(MyFlexColumn, { children: [
|
|
8654
|
-
/* @__PURE__ */
|
|
8644
|
+
/* @__PURE__ */ jsx94(
|
|
8655
8645
|
MySelect,
|
|
8656
8646
|
__spreadProps(__spreadValues({
|
|
8657
8647
|
label: "Ph\xE2n h\u1EC7",
|
|
@@ -8660,25 +8650,25 @@ function FormInput({ form }) {
|
|
|
8660
8650
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
|
8661
8651
|
})
|
|
8662
8652
|
),
|
|
8663
|
-
/* @__PURE__ */
|
|
8653
|
+
/* @__PURE__ */ jsx94(
|
|
8664
8654
|
MyTextInput,
|
|
8665
8655
|
__spreadValues({
|
|
8666
8656
|
label: "Host mail server"
|
|
8667
8657
|
}, form.getInputProps("hostMailServer"))
|
|
8668
8658
|
),
|
|
8669
|
-
/* @__PURE__ */
|
|
8659
|
+
/* @__PURE__ */ jsx94(
|
|
8670
8660
|
MyNumberInput,
|
|
8671
8661
|
__spreadValues({
|
|
8672
8662
|
label: "Outgoing port"
|
|
8673
8663
|
}, form.getInputProps("outgoingPort"))
|
|
8674
8664
|
),
|
|
8675
|
-
/* @__PURE__ */
|
|
8665
|
+
/* @__PURE__ */ jsx94(
|
|
8676
8666
|
MyNumberInput,
|
|
8677
8667
|
__spreadValues({
|
|
8678
8668
|
label: "Incoming port"
|
|
8679
8669
|
}, form.getInputProps("incomingPort"))
|
|
8680
8670
|
),
|
|
8681
|
-
/* @__PURE__ */
|
|
8671
|
+
/* @__PURE__ */ jsx94(
|
|
8682
8672
|
MySelect,
|
|
8683
8673
|
{
|
|
8684
8674
|
label: "SSL",
|
|
@@ -8687,13 +8677,13 @@ function FormInput({ form }) {
|
|
|
8687
8677
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
|
8688
8678
|
}
|
|
8689
8679
|
),
|
|
8690
|
-
/* @__PURE__ */
|
|
8680
|
+
/* @__PURE__ */ jsx94(
|
|
8691
8681
|
MyTextInput,
|
|
8692
8682
|
__spreadValues({
|
|
8693
8683
|
label: "Username"
|
|
8694
8684
|
}, form.getInputProps("userName"))
|
|
8695
8685
|
),
|
|
8696
|
-
/* @__PURE__ */
|
|
8686
|
+
/* @__PURE__ */ jsx94(
|
|
8697
8687
|
PasswordInput,
|
|
8698
8688
|
__spreadValues({
|
|
8699
8689
|
label: "Password",
|
|
@@ -8706,7 +8696,7 @@ function FormInput({ form }) {
|
|
|
8706
8696
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
|
8707
8697
|
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
8708
8698
|
import { useMemo as useMemo11 } from "react";
|
|
8709
|
-
import { jsx as
|
|
8699
|
+
import { jsx as jsx95, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8710
8700
|
function F_core64229_Read() {
|
|
8711
8701
|
const query = useQuery13({
|
|
8712
8702
|
queryKey: ["F_core64229_Read"],
|
|
@@ -8751,15 +8741,15 @@ function F_core64229_Read() {
|
|
|
8751
8741
|
}
|
|
8752
8742
|
], []);
|
|
8753
8743
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
|
8754
|
-
return /* @__PURE__ */
|
|
8744
|
+
return /* @__PURE__ */ jsx95(
|
|
8755
8745
|
MyDataTable,
|
|
8756
8746
|
{
|
|
8757
8747
|
columns,
|
|
8758
8748
|
data: query.data,
|
|
8759
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8749
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx95(F_core64229_Form, {}),
|
|
8760
8750
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs55(MyCenterFull, { children: [
|
|
8761
|
-
/* @__PURE__ */
|
|
8762
|
-
/* @__PURE__ */
|
|
8751
|
+
/* @__PURE__ */ jsx95(F_core64229_Form, { values: row.original }),
|
|
8752
|
+
/* @__PURE__ */ jsx95(F_core64229_Delete, { values: row.original })
|
|
8763
8753
|
] })
|
|
8764
8754
|
}
|
|
8765
8755
|
);
|
|
@@ -8777,7 +8767,7 @@ import { Button as Button16, Fieldset as Fieldset6, Group as Group16, Table as T
|
|
|
8777
8767
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
|
8778
8768
|
import { useMutation as useMutation6, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
8779
8769
|
import { useEffect as useEffect9, useMemo as useMemo12, useState as useState12 } from "react";
|
|
8780
|
-
import { jsx as
|
|
8770
|
+
import { jsx as jsx96, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
8781
8771
|
function F_core71678_ChangePermission({ user }) {
|
|
8782
8772
|
const disc = useDisclosure12();
|
|
8783
8773
|
const queryClient = useQueryClient5();
|
|
@@ -8825,7 +8815,7 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8825
8815
|
setRowSelection(result);
|
|
8826
8816
|
}, []);
|
|
8827
8817
|
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: [
|
|
8828
|
-
/* @__PURE__ */
|
|
8818
|
+
/* @__PURE__ */ jsx96(
|
|
8829
8819
|
Table4,
|
|
8830
8820
|
{
|
|
8831
8821
|
w: "100%",
|
|
@@ -8833,23 +8823,23 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8833
8823
|
layout: "fixed",
|
|
8834
8824
|
children: /* @__PURE__ */ jsxs56(Table4.Tbody, { children: [
|
|
8835
8825
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8836
|
-
/* @__PURE__ */
|
|
8837
|
-
/* @__PURE__ */
|
|
8826
|
+
/* @__PURE__ */ jsx96(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
|
8827
|
+
/* @__PURE__ */ jsx96(Table4.Td, { children: user.fullName })
|
|
8838
8828
|
] }),
|
|
8839
8829
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8840
|
-
/* @__PURE__ */
|
|
8841
|
-
/* @__PURE__ */
|
|
8830
|
+
/* @__PURE__ */ jsx96(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
|
8831
|
+
/* @__PURE__ */ jsx96(Table4.Td, { children: user.userName })
|
|
8842
8832
|
] }),
|
|
8843
8833
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8844
|
-
/* @__PURE__ */
|
|
8845
|
-
/* @__PURE__ */
|
|
8834
|
+
/* @__PURE__ */ jsx96(Table4.Th, { children: "Email:" }),
|
|
8835
|
+
/* @__PURE__ */ jsx96(Table4.Td, { children: user.email })
|
|
8846
8836
|
] })
|
|
8847
8837
|
] })
|
|
8848
8838
|
}
|
|
8849
8839
|
),
|
|
8850
8840
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
|
8851
8841
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
|
8852
|
-
/* @__PURE__ */
|
|
8842
|
+
/* @__PURE__ */ jsx96(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx96(
|
|
8853
8843
|
MyDataTable,
|
|
8854
8844
|
{
|
|
8855
8845
|
enableRowSelection: true,
|
|
@@ -8873,13 +8863,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8873
8863
|
data: query.data
|
|
8874
8864
|
}
|
|
8875
8865
|
) }),
|
|
8876
|
-
/* @__PURE__ */
|
|
8866
|
+
/* @__PURE__ */ jsx96(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx96(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
|
|
8877
8867
|
] });
|
|
8878
8868
|
}
|
|
8879
8869
|
|
|
8880
8870
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
|
8881
8871
|
import { useForm as useForm15 } from "@mantine/form";
|
|
8882
|
-
import { jsx as
|
|
8872
|
+
import { jsx as jsx97, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
8883
8873
|
var ENDPOINT2 = "/Account/create";
|
|
8884
8874
|
function F_core71678_Create() {
|
|
8885
8875
|
const form = useForm15({
|
|
@@ -8908,20 +8898,20 @@ function F_core71678_Create() {
|
|
|
8908
8898
|
}));
|
|
8909
8899
|
}
|
|
8910
8900
|
return /* @__PURE__ */ jsxs57(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
|
8911
|
-
/* @__PURE__ */
|
|
8912
|
-
/* @__PURE__ */
|
|
8913
|
-
/* @__PURE__ */
|
|
8914
|
-
/* @__PURE__ */
|
|
8915
|
-
/* @__PURE__ */
|
|
8916
|
-
/* @__PURE__ */
|
|
8901
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
8902
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
|
8903
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
|
8904
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
|
8905
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
|
8906
|
+
/* @__PURE__ */ jsx97(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
|
8917
8907
|
] });
|
|
8918
8908
|
}
|
|
8919
8909
|
|
|
8920
8910
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
|
8921
|
-
import { jsx as
|
|
8911
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
8922
8912
|
var ENDPOINT3 = "/Account/delete";
|
|
8923
8913
|
function F_core71678_Delete({ id, code }) {
|
|
8924
|
-
return /* @__PURE__ */
|
|
8914
|
+
return /* @__PURE__ */ jsx98(
|
|
8925
8915
|
MyActionIconDelete,
|
|
8926
8916
|
{
|
|
8927
8917
|
contextData: code,
|
|
@@ -8933,7 +8923,7 @@ function F_core71678_Delete({ id, code }) {
|
|
|
8933
8923
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
|
8934
8924
|
import { useForm as useForm16 } from "@mantine/form";
|
|
8935
8925
|
import { useEffect as useEffect10 } from "react";
|
|
8936
|
-
import { jsx as
|
|
8926
|
+
import { jsx as jsx99, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8937
8927
|
function F_core71678_Update({ user }) {
|
|
8938
8928
|
const form = useForm16({
|
|
8939
8929
|
initialValues: user
|
|
@@ -8941,7 +8931,7 @@ function F_core71678_Update({ user }) {
|
|
|
8941
8931
|
useEffect10(() => {
|
|
8942
8932
|
console.log(form.values);
|
|
8943
8933
|
}, [form.values]);
|
|
8944
|
-
return /* @__PURE__ */
|
|
8934
|
+
return /* @__PURE__ */ jsx99(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
|
8945
8935
|
return await baseAxios_default.post(
|
|
8946
8936
|
"/Account/update",
|
|
8947
8937
|
__spreadProps(__spreadValues({}, values), {
|
|
@@ -8954,16 +8944,16 @@ function F_core71678_Update({ user }) {
|
|
|
8954
8944
|
})
|
|
8955
8945
|
);
|
|
8956
8946
|
}, children: /* @__PURE__ */ jsxs58(MyFlexColumn, { children: [
|
|
8957
|
-
/* @__PURE__ */
|
|
8958
|
-
/* @__PURE__ */
|
|
8959
|
-
/* @__PURE__ */
|
|
8960
|
-
/* @__PURE__ */
|
|
8961
|
-
/* @__PURE__ */
|
|
8947
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
8948
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
|
8949
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
|
8950
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
|
8951
|
+
/* @__PURE__ */ jsx99(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
|
8962
8952
|
] }) });
|
|
8963
8953
|
}
|
|
8964
8954
|
|
|
8965
8955
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
|
8966
|
-
import { jsx as
|
|
8956
|
+
import { jsx as jsx100, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8967
8957
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
|
8968
8958
|
function F_core71678_Read() {
|
|
8969
8959
|
const router = useRouter3();
|
|
@@ -8995,25 +8985,25 @@ function F_core71678_Read() {
|
|
|
8995
8985
|
},
|
|
8996
8986
|
{
|
|
8997
8987
|
header: "Quy\u1EC1n",
|
|
8998
|
-
accessorFn: (row) => /* @__PURE__ */
|
|
8988
|
+
accessorFn: (row) => /* @__PURE__ */ jsx100(F_core71678_ChangePermission, { user: row })
|
|
8999
8989
|
}
|
|
9000
8990
|
],
|
|
9001
8991
|
[]
|
|
9002
8992
|
);
|
|
9003
8993
|
if (AllUserQuery.isLoading) return "Loading...";
|
|
9004
|
-
return /* @__PURE__ */
|
|
8994
|
+
return /* @__PURE__ */ jsx100(
|
|
9005
8995
|
MyDataTable,
|
|
9006
8996
|
{
|
|
9007
8997
|
columns,
|
|
9008
8998
|
data: AllUserQuery.data,
|
|
9009
8999
|
renderTopToolbarCustomActions: () => {
|
|
9010
9000
|
return /* @__PURE__ */ jsxs59(Group17, { children: [
|
|
9011
|
-
/* @__PURE__ */
|
|
9012
|
-
/* @__PURE__ */
|
|
9001
|
+
/* @__PURE__ */ jsx100(F_core71678_Create, {}),
|
|
9002
|
+
/* @__PURE__ */ jsx100(
|
|
9013
9003
|
Button17,
|
|
9014
9004
|
{
|
|
9015
9005
|
color: "violet",
|
|
9016
|
-
leftSection: /* @__PURE__ */
|
|
9006
|
+
leftSection: /* @__PURE__ */ jsx100(IconShield, {}),
|
|
9017
9007
|
onClick: () => {
|
|
9018
9008
|
router.push("core47643");
|
|
9019
9009
|
},
|
|
@@ -9024,8 +9014,8 @@ function F_core71678_Read() {
|
|
|
9024
9014
|
},
|
|
9025
9015
|
renderRowActions: ({ row }) => {
|
|
9026
9016
|
return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
|
9027
|
-
/* @__PURE__ */
|
|
9028
|
-
/* @__PURE__ */
|
|
9017
|
+
/* @__PURE__ */ jsx100(F_core71678_Update, { user: row.original }),
|
|
9018
|
+
/* @__PURE__ */ jsx100(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
|
9029
9019
|
] });
|
|
9030
9020
|
}
|
|
9031
9021
|
}
|
|
@@ -9033,7 +9023,7 @@ function F_core71678_Read() {
|
|
|
9033
9023
|
}
|
|
9034
9024
|
|
|
9035
9025
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
|
9036
|
-
import { jsx as
|
|
9026
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
9037
9027
|
|
|
9038
9028
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
|
9039
9029
|
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
@@ -9042,7 +9032,7 @@ import { useMemo as useMemo14 } from "react";
|
|
|
9042
9032
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
|
9043
9033
|
import { FileInput as FileInput8 } from "@mantine/core";
|
|
9044
9034
|
import { useForm as useForm17 } from "@mantine/form";
|
|
9045
|
-
import { jsx as
|
|
9035
|
+
import { jsx as jsx102, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9046
9036
|
function F_core76318_Create() {
|
|
9047
9037
|
const form = useForm17({
|
|
9048
9038
|
mode: "uncontrolled"
|
|
@@ -9057,23 +9047,23 @@ function F_core76318_Create() {
|
|
|
9057
9047
|
})
|
|
9058
9048
|
);
|
|
9059
9049
|
}, children: [
|
|
9060
|
-
/* @__PURE__ */
|
|
9061
|
-
/* @__PURE__ */
|
|
9062
|
-
/* @__PURE__ */
|
|
9063
|
-
/* @__PURE__ */
|
|
9050
|
+
/* @__PURE__ */ jsx102(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
9051
|
+
/* @__PURE__ */ jsx102(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
9052
|
+
/* @__PURE__ */ jsx102(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
9053
|
+
/* @__PURE__ */ jsx102(FileInput8, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
9064
9054
|
] });
|
|
9065
9055
|
}
|
|
9066
9056
|
|
|
9067
9057
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
|
9068
|
-
import { jsx as
|
|
9058
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
9069
9059
|
function F_core76318_Delete({ id }) {
|
|
9070
|
-
return /* @__PURE__ */
|
|
9060
|
+
return /* @__PURE__ */ jsx103(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
9071
9061
|
}
|
|
9072
9062
|
|
|
9073
9063
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
|
9074
9064
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
|
9075
9065
|
import { useForm as useForm18 } from "@mantine/form";
|
|
9076
|
-
import { jsx as
|
|
9066
|
+
import { jsx as jsx104, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
9077
9067
|
function F_core76318_Update({ values }) {
|
|
9078
9068
|
var _a;
|
|
9079
9069
|
const form = useForm18({
|
|
@@ -9088,18 +9078,18 @@ function F_core76318_Update({ values }) {
|
|
|
9088
9078
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
9089
9079
|
}));
|
|
9090
9080
|
}, children: [
|
|
9091
|
-
/* @__PURE__ */
|
|
9092
|
-
/* @__PURE__ */
|
|
9093
|
-
/* @__PURE__ */
|
|
9094
|
-
/* @__PURE__ */
|
|
9081
|
+
/* @__PURE__ */ jsx104(TextInput5, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
9082
|
+
/* @__PURE__ */ jsx104(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
9083
|
+
/* @__PURE__ */ jsx104(TextInput5, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
9084
|
+
/* @__PURE__ */ jsx104(FileInput9, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
9095
9085
|
] });
|
|
9096
9086
|
}
|
|
9097
9087
|
|
|
9098
9088
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
|
9099
|
-
import { jsx as
|
|
9089
|
+
import { jsx as jsx105, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
9100
9090
|
|
|
9101
9091
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
|
9102
|
-
import { jsx as
|
|
9092
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
9103
9093
|
|
|
9104
9094
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
|
9105
9095
|
import { Grid as Grid2, Paper as Paper7, ScrollArea as ScrollArea8 } from "@mantine/core";
|
|
@@ -9108,7 +9098,7 @@ import { Grid as Grid2, Paper as Paper7, ScrollArea as ScrollArea8 } from "@mant
|
|
|
9108
9098
|
import { Container as Container5 } from "@mantine/core";
|
|
9109
9099
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
9110
9100
|
import { useEffect as useEffect11, useMemo as useMemo15, useState as useState14 } from "react";
|
|
9111
|
-
import { jsx as
|
|
9101
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
9112
9102
|
function F_core83092_ReadUser() {
|
|
9113
9103
|
const store = useS_core83092();
|
|
9114
9104
|
const query = useQ_core83092_Account_GetAdminAccount();
|
|
@@ -9141,7 +9131,7 @@ function F_core83092_ReadUser() {
|
|
|
9141
9131
|
}, [query.data]);
|
|
9142
9132
|
if (query.isLoading) return "Loading...";
|
|
9143
9133
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
9144
|
-
return /* @__PURE__ */
|
|
9134
|
+
return /* @__PURE__ */ jsx107(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx107(
|
|
9145
9135
|
MyDataTable,
|
|
9146
9136
|
{
|
|
9147
9137
|
columns,
|
|
@@ -9177,7 +9167,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
|
9177
9167
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
|
9178
9168
|
import { useMutation as useMutation7 } from "@tanstack/react-query";
|
|
9179
9169
|
import { useEffect as useEffect12, useState as useState15 } from "react";
|
|
9180
|
-
import { jsx as
|
|
9170
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
9181
9171
|
function F_core83092_Save() {
|
|
9182
9172
|
const store = useS_core83092();
|
|
9183
9173
|
const disable = useState15(false);
|
|
@@ -9206,7 +9196,7 @@ function F_core83092_Save() {
|
|
|
9206
9196
|
}
|
|
9207
9197
|
disable[1](false);
|
|
9208
9198
|
}, [store.state.rolePermissions]);
|
|
9209
|
-
return /* @__PURE__ */
|
|
9199
|
+
return /* @__PURE__ */ jsx108(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
|
9210
9200
|
}
|
|
9211
9201
|
|
|
9212
9202
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
|
@@ -9214,7 +9204,7 @@ import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table
|
|
|
9214
9204
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
|
9215
9205
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
|
9216
9206
|
import React4, { useEffect as useEffect13, useState as useState16 } from "react";
|
|
9217
|
-
import { jsx as
|
|
9207
|
+
import { jsx as jsx109, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9218
9208
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
|
9219
9209
|
function F_core83092_ViewMenuPermissions() {
|
|
9220
9210
|
var _a, _b;
|
|
@@ -9229,8 +9219,8 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9229
9219
|
store.setProperty("rolePermissions", query.data);
|
|
9230
9220
|
}, [query.data]);
|
|
9231
9221
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
|
9232
|
-
return /* @__PURE__ */
|
|
9233
|
-
/* @__PURE__ */
|
|
9222
|
+
return /* @__PURE__ */ jsx109(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs63(Table5, { children: [
|
|
9223
|
+
/* @__PURE__ */ jsx109(
|
|
9234
9224
|
Table5.Thead,
|
|
9235
9225
|
{
|
|
9236
9226
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
|
@@ -9242,89 +9232,89 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9242
9232
|
border: "1px solid var(--mantine-color-gray-4)"
|
|
9243
9233
|
},
|
|
9244
9234
|
children: /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
9245
|
-
/* @__PURE__ */
|
|
9246
|
-
/* @__PURE__ */
|
|
9247
|
-
/* @__PURE__ */
|
|
9235
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: title2 }),
|
|
9236
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9237
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
|
9248
9238
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
|
9249
9239
|
} }),
|
|
9250
9240
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9251
9241
|
"Xem",
|
|
9252
|
-
/* @__PURE__ */
|
|
9242
|
+
/* @__PURE__ */ jsx109(IconEyeUp2, { color: "gray" })
|
|
9253
9243
|
] })
|
|
9254
9244
|
] }) }),
|
|
9255
|
-
/* @__PURE__ */
|
|
9256
|
-
/* @__PURE__ */
|
|
9245
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9246
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
|
9257
9247
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
|
9258
9248
|
} }),
|
|
9259
9249
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9260
9250
|
"Th\xEAm",
|
|
9261
|
-
/* @__PURE__ */
|
|
9251
|
+
/* @__PURE__ */ jsx109(IconPlus6, { color: "blue" })
|
|
9262
9252
|
] })
|
|
9263
9253
|
] }) }),
|
|
9264
|
-
/* @__PURE__ */
|
|
9265
|
-
/* @__PURE__ */
|
|
9254
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9255
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
|
9266
9256
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
|
9267
9257
|
} }),
|
|
9268
9258
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9269
9259
|
"S\u1EEDa",
|
|
9270
|
-
/* @__PURE__ */
|
|
9260
|
+
/* @__PURE__ */ jsx109(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
|
9271
9261
|
] })
|
|
9272
9262
|
] }) }),
|
|
9273
|
-
/* @__PURE__ */
|
|
9274
|
-
/* @__PURE__ */
|
|
9263
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9264
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
|
9275
9265
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
|
9276
9266
|
} }),
|
|
9277
9267
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9278
9268
|
"X\xF3a",
|
|
9279
|
-
/* @__PURE__ */
|
|
9269
|
+
/* @__PURE__ */ jsx109(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
|
9280
9270
|
] })
|
|
9281
9271
|
] }) }),
|
|
9282
|
-
/* @__PURE__ */
|
|
9283
|
-
/* @__PURE__ */
|
|
9272
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9273
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
|
9284
9274
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
|
9285
9275
|
} }),
|
|
9286
9276
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9287
9277
|
"In",
|
|
9288
|
-
/* @__PURE__ */
|
|
9278
|
+
/* @__PURE__ */ jsx109(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
|
9289
9279
|
] })
|
|
9290
9280
|
] }) }),
|
|
9291
|
-
/* @__PURE__ */
|
|
9292
|
-
/* @__PURE__ */
|
|
9281
|
+
/* @__PURE__ */ jsx109(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9282
|
+
/* @__PURE__ */ jsx109(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
|
9293
9283
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
|
9294
9284
|
} }),
|
|
9295
9285
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
9296
9286
|
"Xu\u1EA5t",
|
|
9297
|
-
/* @__PURE__ */
|
|
9287
|
+
/* @__PURE__ */ jsx109(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
|
9298
9288
|
] })
|
|
9299
9289
|
] }) })
|
|
9300
9290
|
] })
|
|
9301
9291
|
}
|
|
9302
9292
|
),
|
|
9303
|
-
/* @__PURE__ */
|
|
9293
|
+
/* @__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) => {
|
|
9304
9294
|
if (item.links == void 0) return /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
9305
|
-
/* @__PURE__ */
|
|
9306
|
-
/* @__PURE__ */
|
|
9307
|
-
/* @__PURE__ */
|
|
9308
|
-
/* @__PURE__ */
|
|
9309
|
-
/* @__PURE__ */
|
|
9310
|
-
/* @__PURE__ */
|
|
9311
|
-
/* @__PURE__ */
|
|
9295
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: item.label }),
|
|
9296
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9297
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9298
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9299
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9300
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) }),
|
|
9301
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(Checkbox4, {}) }) })
|
|
9312
9302
|
] }, idx);
|
|
9313
9303
|
return /* @__PURE__ */ jsxs63(React4.Fragment, { children: [
|
|
9314
|
-
/* @__PURE__ */
|
|
9304
|
+
/* @__PURE__ */ jsx109(Table5.Tr, { children: /* @__PURE__ */ jsx109(
|
|
9315
9305
|
Table5.Td,
|
|
9316
9306
|
{
|
|
9317
9307
|
colSpan: 7,
|
|
9318
9308
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
|
9319
|
-
children: /* @__PURE__ */
|
|
9309
|
+
children: /* @__PURE__ */ jsx109(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
|
9320
9310
|
}
|
|
9321
9311
|
) }, item.label),
|
|
9322
9312
|
item.links.map(
|
|
9323
9313
|
(item2, idx2) => {
|
|
9324
9314
|
var _a2, _b2, _c, _d, _e, _f;
|
|
9325
9315
|
return /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
9326
|
-
/* @__PURE__ */
|
|
9327
|
-
/* @__PURE__ */
|
|
9316
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: item2.label }),
|
|
9317
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9328
9318
|
Checkbox4,
|
|
9329
9319
|
{
|
|
9330
9320
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
|
@@ -9335,7 +9325,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9335
9325
|
}
|
|
9336
9326
|
}
|
|
9337
9327
|
) }) }),
|
|
9338
|
-
/* @__PURE__ */
|
|
9328
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9339
9329
|
Checkbox4,
|
|
9340
9330
|
{
|
|
9341
9331
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
|
@@ -9346,7 +9336,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9346
9336
|
}
|
|
9347
9337
|
}
|
|
9348
9338
|
) }) }),
|
|
9349
|
-
/* @__PURE__ */
|
|
9339
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9350
9340
|
Checkbox4,
|
|
9351
9341
|
{
|
|
9352
9342
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
|
@@ -9357,7 +9347,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9357
9347
|
}
|
|
9358
9348
|
}
|
|
9359
9349
|
) }) }),
|
|
9360
|
-
/* @__PURE__ */
|
|
9350
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9361
9351
|
Checkbox4,
|
|
9362
9352
|
{
|
|
9363
9353
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
|
@@ -9368,7 +9358,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9368
9358
|
}
|
|
9369
9359
|
}
|
|
9370
9360
|
) }) }),
|
|
9371
|
-
/* @__PURE__ */
|
|
9361
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9372
9362
|
Checkbox4,
|
|
9373
9363
|
{
|
|
9374
9364
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
|
@@ -9379,7 +9369,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
9379
9369
|
}
|
|
9380
9370
|
}
|
|
9381
9371
|
) }) }),
|
|
9382
|
-
/* @__PURE__ */
|
|
9372
|
+
/* @__PURE__ */ jsx109(Table5.Td, { children: /* @__PURE__ */ jsx109(MyCenterFull, { children: /* @__PURE__ */ jsx109(
|
|
9383
9373
|
Checkbox4,
|
|
9384
9374
|
{
|
|
9385
9375
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
|
@@ -9435,13 +9425,13 @@ function useGetUserPermission2() {
|
|
|
9435
9425
|
}
|
|
9436
9426
|
|
|
9437
9427
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
|
9438
|
-
import { jsx as
|
|
9428
|
+
import { jsx as jsx110, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9439
9429
|
function F_core83092() {
|
|
9440
|
-
return /* @__PURE__ */
|
|
9441
|
-
/* @__PURE__ */
|
|
9442
|
-
/* @__PURE__ */
|
|
9443
|
-
/* @__PURE__ */
|
|
9444
|
-
/* @__PURE__ */
|
|
9430
|
+
return /* @__PURE__ */ jsx110(MyPageContent, { children: /* @__PURE__ */ jsxs64(Grid2, { grow: true, children: [
|
|
9431
|
+
/* @__PURE__ */ jsx110(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx110(F_core83092_ReadUser, {}) }),
|
|
9432
|
+
/* @__PURE__ */ jsx110(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs64(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
|
9433
|
+
/* @__PURE__ */ jsx110(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx110(Paper7, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx110(F_core83092_ViewMenuPermissions, {}) }) }),
|
|
9434
|
+
/* @__PURE__ */ jsx110(F_core83092_Save, {})
|
|
9445
9435
|
] }) })
|
|
9446
9436
|
] }) });
|
|
9447
9437
|
}
|
|
@@ -9449,58 +9439,58 @@ function F_core83092() {
|
|
|
9449
9439
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
|
9450
9440
|
import { BarChart } from "@mantine/charts";
|
|
9451
9441
|
import { Group as Group18, Paper as Paper8, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
|
9452
|
-
import { Fragment as Fragment13, jsx as
|
|
9442
|
+
import { Fragment as Fragment13, jsx as jsx111, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
9453
9443
|
|
|
9454
9444
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
|
9455
9445
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
|
9456
9446
|
import { Group as Group19, Paper as Paper9, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
|
9457
|
-
import { Fragment as Fragment14, jsx as
|
|
9447
|
+
import { Fragment as Fragment14, jsx as jsx112, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9458
9448
|
|
|
9459
9449
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
|
9460
9450
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
|
9461
9451
|
import { Group as Group20, Paper as Paper10, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
|
9462
|
-
import { Fragment as Fragment15, jsx as
|
|
9452
|
+
import { Fragment as Fragment15, jsx as jsx113, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
9463
9453
|
|
|
9464
9454
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
|
9465
9455
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
|
9466
9456
|
import { Group as Group21, Paper as Paper11, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
|
9467
|
-
import { Fragment as Fragment16, jsx as
|
|
9457
|
+
import { Fragment as Fragment16, jsx as jsx114, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
9468
9458
|
|
|
9469
9459
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
|
9470
9460
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
|
9471
9461
|
import { Group as Group22, Paper as Paper12, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
|
9472
|
-
import { jsx as
|
|
9462
|
+
import { jsx as jsx115, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
9473
9463
|
|
|
9474
9464
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
|
9475
9465
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
|
9476
9466
|
import { Group as Group23, Paper as Paper13, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
|
9477
|
-
import { jsx as
|
|
9467
|
+
import { jsx as jsx116, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
9478
9468
|
|
|
9479
9469
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
|
9480
9470
|
import { LineChart } from "@mantine/charts";
|
|
9481
9471
|
import { Group as Group24, Paper as Paper14, Text as Text21 } from "@mantine/core";
|
|
9482
|
-
import { Fragment as Fragment17, jsx as
|
|
9472
|
+
import { Fragment as Fragment17, jsx as jsx117, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
9483
9473
|
|
|
9484
9474
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
|
9485
9475
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
|
9486
9476
|
import { Group as Group25, Paper as Paper15, Text as Text22 } from "@mantine/core";
|
|
9487
|
-
import { Fragment as Fragment18, jsx as
|
|
9477
|
+
import { Fragment as Fragment18, jsx as jsx118, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
9488
9478
|
|
|
9489
9479
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
|
9490
9480
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
|
9491
9481
|
import { Group as Group26, Paper as Paper16, Text as Text23 } from "@mantine/core";
|
|
9492
|
-
import { Fragment as Fragment19, jsx as
|
|
9482
|
+
import { Fragment as Fragment19, jsx as jsx119, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
9493
9483
|
|
|
9494
9484
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
|
9495
9485
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
|
9496
9486
|
import { Group as Group27, Paper as Paper17, Text as Text24 } from "@mantine/core";
|
|
9497
|
-
import { Fragment as Fragment20, jsx as
|
|
9487
|
+
import { Fragment as Fragment20, jsx as jsx120, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
9498
9488
|
|
|
9499
9489
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
|
9500
9490
|
import { Center as Center4, Progress, Space as Space4, Text as Text25 } from "@mantine/core";
|
|
9501
9491
|
import { PieChart } from "@mantine/charts";
|
|
9502
9492
|
import { useMemo as useMemo16 } from "react";
|
|
9503
|
-
import { Fragment as Fragment21, jsx as
|
|
9493
|
+
import { Fragment as Fragment21, jsx as jsx121, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
9504
9494
|
function getRandomColor(seed) {
|
|
9505
9495
|
const random = Math.sin(seed) * 1e4;
|
|
9506
9496
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
|
@@ -9678,7 +9668,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9678
9668
|
header: "M\xE0u",
|
|
9679
9669
|
accessorKey: "color",
|
|
9680
9670
|
accessorFn(originalRow) {
|
|
9681
|
-
return /* @__PURE__ */
|
|
9671
|
+
return /* @__PURE__ */ jsx121("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
|
9682
9672
|
},
|
|
9683
9673
|
minSize: 30,
|
|
9684
9674
|
maxSize: 30
|
|
@@ -9693,7 +9683,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9693
9683
|
header: "%",
|
|
9694
9684
|
accessorKey: "used",
|
|
9695
9685
|
accessorFn(originalRow) {
|
|
9696
|
-
return /* @__PURE__ */
|
|
9686
|
+
return /* @__PURE__ */ jsx121(Fragment21, { children: /* @__PURE__ */ jsx121(Center4, { children: /* @__PURE__ */ jsxs75(Text25, { children: [
|
|
9697
9687
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
|
9698
9688
|
"%"
|
|
9699
9689
|
] }) }) });
|
|
@@ -9709,7 +9699,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9709
9699
|
},
|
|
9710
9700
|
Cell: ({ row }) => {
|
|
9711
9701
|
return /* @__PURE__ */ jsxs75(Fragment21, { children: [
|
|
9712
|
-
/* @__PURE__ */
|
|
9702
|
+
/* @__PURE__ */ jsx121(Center4, { children: /* @__PURE__ */ jsxs75(Text25, { children: [
|
|
9713
9703
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
|
9714
9704
|
/* @__PURE__ */ jsxs75("strong", { children: [
|
|
9715
9705
|
row.original.used,
|
|
@@ -9720,7 +9710,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9720
9710
|
(row.original.used / row.original.total * 100).toFixed(2),
|
|
9721
9711
|
"%)"
|
|
9722
9712
|
] }) }),
|
|
9723
|
-
/* @__PURE__ */
|
|
9713
|
+
/* @__PURE__ */ jsx121(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
|
9724
9714
|
] });
|
|
9725
9715
|
},
|
|
9726
9716
|
minSize: 50,
|
|
@@ -9729,9 +9719,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9729
9719
|
],
|
|
9730
9720
|
[]
|
|
9731
9721
|
);
|
|
9732
|
-
return /* @__PURE__ */
|
|
9733
|
-
/* @__PURE__ */
|
|
9734
|
-
/* @__PURE__ */
|
|
9722
|
+
return /* @__PURE__ */ jsx121(Fragment21, { children: /* @__PURE__ */ jsxs75(MyFlexColumn, { children: [
|
|
9723
|
+
/* @__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" }),
|
|
9724
|
+
/* @__PURE__ */ jsx121(Center4, { children: /* @__PURE__ */ jsx121(
|
|
9735
9725
|
PieChart,
|
|
9736
9726
|
{
|
|
9737
9727
|
startAngle: 90,
|
|
@@ -9744,8 +9734,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9744
9734
|
data: data_used_discountCode
|
|
9745
9735
|
}
|
|
9746
9736
|
) }),
|
|
9747
|
-
/* @__PURE__ */
|
|
9748
|
-
/* @__PURE__ */
|
|
9737
|
+
/* @__PURE__ */ jsx121(Space4, { mt: 5 }),
|
|
9738
|
+
/* @__PURE__ */ jsx121(
|
|
9749
9739
|
MyDataTable,
|
|
9750
9740
|
{
|
|
9751
9741
|
data: mockData,
|
|
@@ -9763,7 +9753,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9763
9753
|
import { Center as Center5, Progress as Progress2, Space as Space5, Text as Text26 } from "@mantine/core";
|
|
9764
9754
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
|
9765
9755
|
import { useMemo as useMemo17 } from "react";
|
|
9766
|
-
import { Fragment as Fragment22, jsx as
|
|
9756
|
+
import { Fragment as Fragment22, jsx as jsx122, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
9767
9757
|
function getRandomColor2(seed) {
|
|
9768
9758
|
const random = Math.sin(seed) * 1e4;
|
|
9769
9759
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
|
@@ -9941,7 +9931,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9941
9931
|
header: "M\xE0u",
|
|
9942
9932
|
accessorKey: "color",
|
|
9943
9933
|
accessorFn(originalRow) {
|
|
9944
|
-
return /* @__PURE__ */
|
|
9934
|
+
return /* @__PURE__ */ jsx122("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
|
9945
9935
|
},
|
|
9946
9936
|
minSize: 30,
|
|
9947
9937
|
maxSize: 30
|
|
@@ -9956,7 +9946,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9956
9946
|
header: "%",
|
|
9957
9947
|
accessorKey: "used",
|
|
9958
9948
|
accessorFn(originalRow) {
|
|
9959
|
-
return /* @__PURE__ */
|
|
9949
|
+
return /* @__PURE__ */ jsx122(Fragment22, { children: /* @__PURE__ */ jsx122(Center5, { children: /* @__PURE__ */ jsxs76(Text26, { children: [
|
|
9960
9950
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
|
9961
9951
|
"%"
|
|
9962
9952
|
] }) }) });
|
|
@@ -9972,7 +9962,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9972
9962
|
},
|
|
9973
9963
|
Cell: ({ row }) => {
|
|
9974
9964
|
return /* @__PURE__ */ jsxs76(Fragment22, { children: [
|
|
9975
|
-
/* @__PURE__ */
|
|
9965
|
+
/* @__PURE__ */ jsx122(Center5, { children: /* @__PURE__ */ jsxs76(Text26, { children: [
|
|
9976
9966
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
|
9977
9967
|
/* @__PURE__ */ jsxs76("strong", { children: [
|
|
9978
9968
|
row.original.used,
|
|
@@ -9983,7 +9973,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9983
9973
|
(row.original.used / row.original.total * 100).toFixed(2),
|
|
9984
9974
|
"%)"
|
|
9985
9975
|
] }) }),
|
|
9986
|
-
/* @__PURE__ */
|
|
9976
|
+
/* @__PURE__ */ jsx122(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
|
9987
9977
|
] });
|
|
9988
9978
|
},
|
|
9989
9979
|
minSize: 50,
|
|
@@ -9992,9 +9982,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9992
9982
|
],
|
|
9993
9983
|
[]
|
|
9994
9984
|
);
|
|
9995
|
-
return /* @__PURE__ */
|
|
9996
|
-
/* @__PURE__ */
|
|
9997
|
-
/* @__PURE__ */
|
|
9985
|
+
return /* @__PURE__ */ jsx122(Fragment22, { children: /* @__PURE__ */ jsxs76(MyFlexColumn, { children: [
|
|
9986
|
+
/* @__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" }),
|
|
9987
|
+
/* @__PURE__ */ jsx122(Center5, { children: /* @__PURE__ */ jsx122(
|
|
9998
9988
|
PieChart2,
|
|
9999
9989
|
{
|
|
10000
9990
|
startAngle: 90,
|
|
@@ -10007,8 +9997,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
10007
9997
|
data: data_used_discountCode2
|
|
10008
9998
|
}
|
|
10009
9999
|
) }),
|
|
10010
|
-
/* @__PURE__ */
|
|
10011
|
-
/* @__PURE__ */
|
|
10000
|
+
/* @__PURE__ */ jsx122(Space5, { mt: 5 }),
|
|
10001
|
+
/* @__PURE__ */ jsx122(
|
|
10012
10002
|
MyDataTable,
|
|
10013
10003
|
{
|
|
10014
10004
|
data: mockData2,
|
|
@@ -10040,20 +10030,20 @@ function useS_authenticate() {
|
|
|
10040
10030
|
}
|
|
10041
10031
|
|
|
10042
10032
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
|
10043
|
-
import { jsx as
|
|
10033
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
10044
10034
|
function F_authenticate_Logout() {
|
|
10045
10035
|
const router = useRouter4();
|
|
10046
10036
|
const S_Authenticate = useS_authenticate();
|
|
10047
|
-
return /* @__PURE__ */
|
|
10037
|
+
return /* @__PURE__ */ jsx123(Button18, { onClick: () => {
|
|
10048
10038
|
S_Authenticate.setProperty("token", "");
|
|
10049
10039
|
router.replace("/authenticate/login");
|
|
10050
|
-
}, leftSection: /* @__PURE__ */
|
|
10040
|
+
}, leftSection: /* @__PURE__ */ jsx123(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
|
10051
10041
|
}
|
|
10052
10042
|
|
|
10053
10043
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
|
10054
10044
|
import { useRouter as useRouter5 } from "next/navigation";
|
|
10055
10045
|
import { useEffect as useEffect14 } from "react";
|
|
10056
|
-
import { jsx as
|
|
10046
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
10057
10047
|
function F_authenticate_SplashPage() {
|
|
10058
10048
|
const router = useRouter5();
|
|
10059
10049
|
const S_Authenticate = useS_authenticate();
|
|
@@ -10064,7 +10054,7 @@ function F_authenticate_SplashPage() {
|
|
|
10064
10054
|
}
|
|
10065
10055
|
router.push("/admin/core71678");
|
|
10066
10056
|
}, [S_Authenticate.state.token]);
|
|
10067
|
-
return /* @__PURE__ */
|
|
10057
|
+
return /* @__PURE__ */ jsx124(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
|
10068
10058
|
}
|
|
10069
10059
|
|
|
10070
10060
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
@@ -10093,7 +10083,7 @@ import { useState as useState17 } from "react";
|
|
|
10093
10083
|
var css_default3 = {};
|
|
10094
10084
|
|
|
10095
10085
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
10096
|
-
import { jsx as
|
|
10086
|
+
import { jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
10097
10087
|
function F_authenticate_Login({
|
|
10098
10088
|
loginInfo,
|
|
10099
10089
|
redirectUrlAfterLogin = "/admin/dashboard",
|
|
@@ -10137,21 +10127,21 @@ function F_authenticate_Login({
|
|
|
10137
10127
|
}
|
|
10138
10128
|
});
|
|
10139
10129
|
}
|
|
10140
|
-
return /* @__PURE__ */
|
|
10130
|
+
return /* @__PURE__ */ jsx125(
|
|
10141
10131
|
BackgroundImage,
|
|
10142
10132
|
{
|
|
10143
10133
|
src: backgroundImage,
|
|
10144
10134
|
h: "100vh",
|
|
10145
|
-
children: /* @__PURE__ */
|
|
10135
|
+
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: [
|
|
10146
10136
|
/* @__PURE__ */ jsxs77(Flex7, { direction: "column", mb: "md", children: [
|
|
10147
|
-
/* @__PURE__ */
|
|
10137
|
+
/* @__PURE__ */ jsx125(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
|
10148
10138
|
/* @__PURE__ */ jsxs77(Text27, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
|
10149
10139
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
|
10150
|
-
/* @__PURE__ */
|
|
10140
|
+
/* @__PURE__ */ jsx125(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
|
10151
10141
|
] })
|
|
10152
10142
|
] }),
|
|
10153
|
-
/* @__PURE__ */
|
|
10154
|
-
/* @__PURE__ */
|
|
10143
|
+
/* @__PURE__ */ jsx125("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs77(MyFlexColumn, { children: [
|
|
10144
|
+
/* @__PURE__ */ jsx125(
|
|
10155
10145
|
TextInput6,
|
|
10156
10146
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
|
10157
10147
|
label: "T\xE0i kho\u1EA3n",
|
|
@@ -10159,7 +10149,7 @@ function F_authenticate_Login({
|
|
|
10159
10149
|
withAsterisk: true
|
|
10160
10150
|
})
|
|
10161
10151
|
),
|
|
10162
|
-
/* @__PURE__ */
|
|
10152
|
+
/* @__PURE__ */ jsx125(
|
|
10163
10153
|
PasswordInput2,
|
|
10164
10154
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
|
10165
10155
|
label: "M\u1EADt kh\u1EA9u",
|
|
@@ -10168,10 +10158,10 @@ function F_authenticate_Login({
|
|
|
10168
10158
|
})
|
|
10169
10159
|
),
|
|
10170
10160
|
/* @__PURE__ */ jsxs77(Group28, { justify: "space-between", children: [
|
|
10171
|
-
/* @__PURE__ */
|
|
10172
|
-
/* @__PURE__ */
|
|
10161
|
+
/* @__PURE__ */ jsx125(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
|
10162
|
+
/* @__PURE__ */ jsx125(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
10173
10163
|
] }),
|
|
10174
|
-
/* @__PURE__ */
|
|
10164
|
+
/* @__PURE__ */ jsx125(
|
|
10175
10165
|
Button19,
|
|
10176
10166
|
{
|
|
10177
10167
|
loading: loadingState[0],
|