aq-fe-framework 0.1.74 → 0.1.76
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.
|
@@ -6384,54 +6384,12 @@ function MyNumberFormatter(_a) {
|
|
|
6384
6384
|
return /* @__PURE__ */ jsx41(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
|
6385
6385
|
}
|
|
6386
6386
|
|
|
6387
|
-
// src/components/DataDisplay/ScheduleX/MyScheduleX.tsx
|
|
6388
|
-
import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as ScheduleXCalendar2 } from "@schedule-x/react";
|
|
6389
|
-
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
|
6390
|
-
import { useState as useState7 } from "react";
|
|
6391
|
-
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
|
6392
|
-
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6393
|
-
function MyScheduleX({
|
|
6394
|
-
values,
|
|
6395
|
-
timeGridEvent,
|
|
6396
|
-
eventModal,
|
|
6397
|
-
nDays,
|
|
6398
|
-
startDayBoundaries = "05:00",
|
|
6399
|
-
endDayBoundaries = "21:00"
|
|
6400
|
-
}) {
|
|
6401
|
-
const eventsService = useState7(() => createEventsServicePlugin2())[0];
|
|
6402
|
-
const eventModalPlugin = useState7(() => createEventModalPlugin2())[0];
|
|
6403
|
-
const calendar = useNextCalendarApp2({
|
|
6404
|
-
locale: "vi-VN",
|
|
6405
|
-
dayBoundaries: {
|
|
6406
|
-
start: startDayBoundaries,
|
|
6407
|
-
end: endDayBoundaries
|
|
6408
|
-
},
|
|
6409
|
-
weekOptions: {
|
|
6410
|
-
nDays,
|
|
6411
|
-
gridHeight: 700
|
|
6412
|
-
},
|
|
6413
|
-
views: [createViewDay(), createViewWeek(), createViewMonthGrid(), createViewMonthAgenda()],
|
|
6414
|
-
events: values,
|
|
6415
|
-
plugins: [eventsService, eventModalPlugin]
|
|
6416
|
-
});
|
|
6417
|
-
return /* @__PURE__ */ jsx42(
|
|
6418
|
-
ScheduleXCalendar2,
|
|
6419
|
-
{
|
|
6420
|
-
calendarApp: calendar,
|
|
6421
|
-
customComponents: {
|
|
6422
|
-
timeGridEvent,
|
|
6423
|
-
eventModal
|
|
6424
|
-
}
|
|
6425
|
-
}
|
|
6426
|
-
);
|
|
6427
|
-
}
|
|
6428
|
-
|
|
6429
6387
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
|
6430
6388
|
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group11, Paper as Paper5, Text as Text9 } from "@mantine/core";
|
|
6431
6389
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
|
6432
|
-
import { Fragment as Fragment11, jsx as
|
|
6390
|
+
import { Fragment as Fragment11, jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6433
6391
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
|
6434
|
-
return /* @__PURE__ */
|
|
6392
|
+
return /* @__PURE__ */ jsx42(Fragment11, { children: /* @__PURE__ */ jsxs25(
|
|
6435
6393
|
Paper5,
|
|
6436
6394
|
{
|
|
6437
6395
|
withBorder: true,
|
|
@@ -6440,7 +6398,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6440
6398
|
children: [
|
|
6441
6399
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6442
6400
|
/* @__PURE__ */ jsxs25(Flex3, { direction: "column", children: [
|
|
6443
|
-
/* @__PURE__ */
|
|
6401
|
+
/* @__PURE__ */ jsx42(
|
|
6444
6402
|
Text9,
|
|
6445
6403
|
{
|
|
6446
6404
|
tt: "uppercase",
|
|
@@ -6451,13 +6409,13 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6451
6409
|
),
|
|
6452
6410
|
unit == "" ? /* @__PURE__ */ jsxs25(Text9, { size: "xs", style: { visibility: "hidden" }, children: [
|
|
6453
6411
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6454
|
-
/* @__PURE__ */
|
|
6412
|
+
/* @__PURE__ */ jsx42("strong", { children: unit })
|
|
6455
6413
|
] }) : /* @__PURE__ */ jsxs25(Text9, { size: "xs", children: [
|
|
6456
6414
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6457
|
-
/* @__PURE__ */
|
|
6415
|
+
/* @__PURE__ */ jsx42("strong", { children: unit })
|
|
6458
6416
|
] })
|
|
6459
6417
|
] }),
|
|
6460
|
-
/* @__PURE__ */
|
|
6418
|
+
/* @__PURE__ */ jsx42(Box2, { children: icons })
|
|
6461
6419
|
] }),
|
|
6462
6420
|
/* @__PURE__ */ jsxs25(
|
|
6463
6421
|
Group11,
|
|
@@ -6466,7 +6424,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6466
6424
|
align: "flex-end",
|
|
6467
6425
|
gap: "xs",
|
|
6468
6426
|
children: [
|
|
6469
|
-
/* @__PURE__ */
|
|
6427
|
+
/* @__PURE__ */ jsx42(
|
|
6470
6428
|
Text9,
|
|
6471
6429
|
{
|
|
6472
6430
|
fw: 700,
|
|
@@ -6486,7 +6444,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6486
6444
|
diff,
|
|
6487
6445
|
"%"
|
|
6488
6446
|
] }),
|
|
6489
|
-
diff > 0 ? /* @__PURE__ */
|
|
6447
|
+
diff > 0 ? /* @__PURE__ */ jsx42(IconArrowUpRight, {}) : /* @__PURE__ */ jsx42(IconArrowDownRight, {})
|
|
6490
6448
|
]
|
|
6491
6449
|
}
|
|
6492
6450
|
)
|
|
@@ -6494,8 +6452,8 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6494
6452
|
}
|
|
6495
6453
|
),
|
|
6496
6454
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6497
|
-
/* @__PURE__ */
|
|
6498
|
-
/* @__PURE__ */
|
|
6455
|
+
/* @__PURE__ */ jsx42(Text9, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
|
6456
|
+
/* @__PURE__ */ jsx42(
|
|
6499
6457
|
Button13,
|
|
6500
6458
|
{
|
|
6501
6459
|
variant: "light",
|
|
@@ -6512,15 +6470,15 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6512
6470
|
|
|
6513
6471
|
// src/components/Inputs/DateInput/MyDateInput.tsx
|
|
6514
6472
|
import { DateInput } from "@mantine/dates";
|
|
6515
|
-
import { jsx as
|
|
6473
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
6516
6474
|
function MyDateInput(_a) {
|
|
6517
6475
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6518
|
-
return /* @__PURE__ */
|
|
6476
|
+
return /* @__PURE__ */ jsx43(DateInput, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6519
6477
|
}
|
|
6520
6478
|
|
|
6521
6479
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
|
6522
6480
|
import { Box as Box3, Fieldset as Fieldset4, Text as Text10 } from "@mantine/core";
|
|
6523
|
-
import { jsx as
|
|
6481
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
6524
6482
|
function MyFieldset(_a) {
|
|
6525
6483
|
var _b = _a, {
|
|
6526
6484
|
children,
|
|
@@ -6529,17 +6487,17 @@ function MyFieldset(_a) {
|
|
|
6529
6487
|
"children",
|
|
6530
6488
|
"title"
|
|
6531
6489
|
]);
|
|
6532
|
-
return /* @__PURE__ */
|
|
6490
|
+
return /* @__PURE__ */ jsx44(
|
|
6533
6491
|
Fieldset4,
|
|
6534
6492
|
__spreadProps(__spreadValues({}, rest), {
|
|
6535
|
-
legend: /* @__PURE__ */
|
|
6493
|
+
legend: /* @__PURE__ */ jsx44(
|
|
6536
6494
|
Box3,
|
|
6537
6495
|
{
|
|
6538
6496
|
bg: "blue.4",
|
|
6539
6497
|
px: "xs",
|
|
6540
6498
|
py: 2,
|
|
6541
6499
|
style: { borderRadius: 4 },
|
|
6542
|
-
children: /* @__PURE__ */
|
|
6500
|
+
children: /* @__PURE__ */ jsx44(Text10, { c: "white", fw: 500, children: title3 })
|
|
6543
6501
|
}
|
|
6544
6502
|
),
|
|
6545
6503
|
children
|
|
@@ -6549,26 +6507,26 @@ function MyFieldset(_a) {
|
|
|
6549
6507
|
|
|
6550
6508
|
// src/components/Inputs/FileInput/MyFileInput.tsx
|
|
6551
6509
|
import { FileInput as FileInput3 } from "@mantine/core";
|
|
6552
|
-
import { jsx as
|
|
6510
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
6553
6511
|
function MyFileInput(_a) {
|
|
6554
6512
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6555
|
-
return /* @__PURE__ */
|
|
6513
|
+
return /* @__PURE__ */ jsx45(FileInput3, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6556
6514
|
}
|
|
6557
6515
|
|
|
6558
6516
|
// src/components/Inputs/NumberInput/MyNumberInput.tsx
|
|
6559
6517
|
import { NumberInput as NumberInput2 } from "@mantine/core";
|
|
6560
|
-
import { jsx as
|
|
6518
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
6561
6519
|
function MyNumberInput(_a) {
|
|
6562
6520
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6563
|
-
return /* @__PURE__ */
|
|
6521
|
+
return /* @__PURE__ */ jsx46(NumberInput2, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6564
6522
|
}
|
|
6565
6523
|
|
|
6566
6524
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
|
6567
6525
|
import { Textarea } from "@mantine/core";
|
|
6568
|
-
import { jsx as
|
|
6526
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
6569
6527
|
function MyTextArea(_a) {
|
|
6570
6528
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6571
|
-
return /* @__PURE__ */
|
|
6529
|
+
return /* @__PURE__ */ jsx47(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6572
6530
|
}
|
|
6573
6531
|
|
|
6574
6532
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
|
@@ -6583,8 +6541,8 @@ import TextAlign from "@tiptap/extension-text-align";
|
|
|
6583
6541
|
import Underline from "@tiptap/extension-underline";
|
|
6584
6542
|
import { useEditor } from "@tiptap/react";
|
|
6585
6543
|
import StarterKit from "@tiptap/starter-kit";
|
|
6586
|
-
import { useEffect as useEffect5, useState as
|
|
6587
|
-
import { jsx as
|
|
6544
|
+
import { useEffect as useEffect5, useState as useState7 } from "react";
|
|
6545
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6588
6546
|
function MyTextEditor(_a) {
|
|
6589
6547
|
var _b = _a, {
|
|
6590
6548
|
autoHiddenToolBar = false,
|
|
@@ -6603,7 +6561,7 @@ function MyTextEditor(_a) {
|
|
|
6603
6561
|
"label",
|
|
6604
6562
|
"withAsterisk"
|
|
6605
6563
|
]);
|
|
6606
|
-
const [hiddenToolBar, setHiddenToolBar] =
|
|
6564
|
+
const [hiddenToolBar, setHiddenToolBar] = useState7(autoHiddenToolBar);
|
|
6607
6565
|
const editor = useEditor(__spreadValues({
|
|
6608
6566
|
extensions: [
|
|
6609
6567
|
StarterKit,
|
|
@@ -6686,43 +6644,43 @@ function MyTextEditor(_a) {
|
|
|
6686
6644
|
editor.commands.setContent(value);
|
|
6687
6645
|
}
|
|
6688
6646
|
}, [value, editor]);
|
|
6689
|
-
return /* @__PURE__ */
|
|
6647
|
+
return /* @__PURE__ */ jsx48(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs26(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
|
6690
6648
|
/* @__PURE__ */ jsxs26(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
|
6691
6649
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6692
|
-
/* @__PURE__ */
|
|
6693
|
-
/* @__PURE__ */
|
|
6694
|
-
/* @__PURE__ */
|
|
6695
|
-
/* @__PURE__ */
|
|
6696
|
-
/* @__PURE__ */
|
|
6697
|
-
/* @__PURE__ */
|
|
6698
|
-
/* @__PURE__ */
|
|
6650
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Bold, {}),
|
|
6651
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Italic, {}),
|
|
6652
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Underline, {}),
|
|
6653
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Strikethrough, {}),
|
|
6654
|
+
/* @__PURE__ */ jsx48(RichTextEditor.ClearFormatting, {}),
|
|
6655
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Highlight, {}),
|
|
6656
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Code, {})
|
|
6699
6657
|
] }),
|
|
6700
6658
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6701
|
-
/* @__PURE__ */
|
|
6702
|
-
/* @__PURE__ */
|
|
6703
|
-
/* @__PURE__ */
|
|
6704
|
-
/* @__PURE__ */
|
|
6659
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H1, {}),
|
|
6660
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H2, {}),
|
|
6661
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H3, {}),
|
|
6662
|
+
/* @__PURE__ */ jsx48(RichTextEditor.H4, {})
|
|
6705
6663
|
] }),
|
|
6706
6664
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6707
|
-
/* @__PURE__ */
|
|
6708
|
-
/* @__PURE__ */
|
|
6709
|
-
/* @__PURE__ */
|
|
6710
|
-
/* @__PURE__ */
|
|
6711
|
-
/* @__PURE__ */
|
|
6712
|
-
/* @__PURE__ */
|
|
6665
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Blockquote, {}),
|
|
6666
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Hr, {}),
|
|
6667
|
+
/* @__PURE__ */ jsx48(RichTextEditor.BulletList, {}),
|
|
6668
|
+
/* @__PURE__ */ jsx48(RichTextEditor.OrderedList, {}),
|
|
6669
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Subscript, {}),
|
|
6670
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Superscript, {})
|
|
6713
6671
|
] }),
|
|
6714
6672
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6715
|
-
/* @__PURE__ */
|
|
6716
|
-
/* @__PURE__ */
|
|
6673
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Link, {}),
|
|
6674
|
+
/* @__PURE__ */ jsx48(RichTextEditor.Unlink, {})
|
|
6717
6675
|
] }),
|
|
6718
6676
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6719
|
-
/* @__PURE__ */
|
|
6720
|
-
/* @__PURE__ */
|
|
6721
|
-
/* @__PURE__ */
|
|
6722
|
-
/* @__PURE__ */
|
|
6677
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignLeft, {}),
|
|
6678
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignCenter, {}),
|
|
6679
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignJustify, {}),
|
|
6680
|
+
/* @__PURE__ */ jsx48(RichTextEditor.AlignRight, {})
|
|
6723
6681
|
] })
|
|
6724
6682
|
] }),
|
|
6725
|
-
/* @__PURE__ */
|
|
6683
|
+
/* @__PURE__ */ jsx48(
|
|
6726
6684
|
ScrollArea2.Autosize,
|
|
6727
6685
|
{
|
|
6728
6686
|
onMouseDown: () => {
|
|
@@ -6737,7 +6695,7 @@ function MyTextEditor(_a) {
|
|
|
6737
6695
|
setHiddenToolBar(false);
|
|
6738
6696
|
},
|
|
6739
6697
|
style: { cursor: "text", maxHeight: "400px" },
|
|
6740
|
-
children: /* @__PURE__ */
|
|
6698
|
+
children: /* @__PURE__ */ jsx48(RichTextEditor.Content, { mih: contentHeight })
|
|
6741
6699
|
}
|
|
6742
6700
|
)
|
|
6743
6701
|
] }) });
|
|
@@ -6763,18 +6721,18 @@ import { spotlight as spotlight2 } from "@mantine/spotlight";
|
|
|
6763
6721
|
import { IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLibraryMinus, IconSearch as IconSearch2 } from "@tabler/icons-react";
|
|
6764
6722
|
import Link3 from "next/link";
|
|
6765
6723
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
6766
|
-
import { Fragment as Fragment12, jsx as
|
|
6724
|
+
import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6767
6725
|
function getRightSection(status) {
|
|
6768
|
-
if (status === "Prototype") return /* @__PURE__ */
|
|
6769
|
-
if (status === "New") return /* @__PURE__ */
|
|
6770
|
-
if (status === "Menu") return /* @__PURE__ */
|
|
6771
|
-
if (status === "Change") return /* @__PURE__ */
|
|
6726
|
+
if (status === "Prototype") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
|
6727
|
+
if (status === "New") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
|
6728
|
+
if (status === "Menu") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
|
6729
|
+
if (status === "Change") return /* @__PURE__ */ jsx49(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
|
6772
6730
|
return null;
|
|
6773
6731
|
}
|
|
6774
6732
|
function RenderNavLinks({ items }) {
|
|
6775
6733
|
const sidebarStore = useS_Sidebar();
|
|
6776
6734
|
const pathName = usePathname2();
|
|
6777
|
-
return /* @__PURE__ */
|
|
6735
|
+
return /* @__PURE__ */ jsx49(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx49(
|
|
6778
6736
|
NavLink,
|
|
6779
6737
|
{
|
|
6780
6738
|
active: item.link === pathName.split("/")[2],
|
|
@@ -6791,7 +6749,7 @@ function RenderNavLinks({ items }) {
|
|
|
6791
6749
|
sidebarStore.setProperty("title", item.label);
|
|
6792
6750
|
}
|
|
6793
6751
|
},
|
|
6794
|
-
children: item.links && /* @__PURE__ */
|
|
6752
|
+
children: item.links && /* @__PURE__ */ jsx49(RenderNavLinks, { items: item.links })
|
|
6795
6753
|
},
|
|
6796
6754
|
index
|
|
6797
6755
|
)) });
|
|
@@ -6860,16 +6818,16 @@ function BasicAppShell({ children, menu }) {
|
|
|
6860
6818
|
padding: "md",
|
|
6861
6819
|
children: [
|
|
6862
6820
|
/* @__PURE__ */ jsxs27(AppShell.Header, { children: [
|
|
6863
|
-
/* @__PURE__ */
|
|
6821
|
+
/* @__PURE__ */ jsx49(MyAppSpotlight, { menu }),
|
|
6864
6822
|
media ? /* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
|
6865
6823
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", children: [
|
|
6866
|
-
/* @__PURE__ */
|
|
6867
|
-
/* @__PURE__ */
|
|
6824
|
+
/* @__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, {}) }) }),
|
|
6825
|
+
/* @__PURE__ */ jsx49(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx49(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: () => sidebarStore.clearGroupMenuOpenId(), children: /* @__PURE__ */ jsx49(IconLibraryMinus, {}) }) })
|
|
6868
6826
|
] }),
|
|
6869
|
-
/* @__PURE__ */
|
|
6827
|
+
/* @__PURE__ */ jsx49(Group12, { style: { position: "absolute", left: "50%", transform: "translateX(-50%)" }, children: /* @__PURE__ */ jsx49(Text11, { c: "green", fw: "bold", children: "AQ EduCourseEvaluation - Ph\u1EA7n m\u1EC1m \u0111\xE1nh gi\xE1 chu\u1EA9n \u0111\u1EA7u ra" }) }),
|
|
6870
6828
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6871
|
-
/* @__PURE__ */
|
|
6872
|
-
/* @__PURE__ */
|
|
6829
|
+
/* @__PURE__ */ jsx49(Text11, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
|
6830
|
+
/* @__PURE__ */ jsx49(
|
|
6873
6831
|
Select3,
|
|
6874
6832
|
{
|
|
6875
6833
|
w: selectMedia ? 245 : 150,
|
|
@@ -6881,15 +6839,15 @@ function BasicAppShell({ children, menu }) {
|
|
|
6881
6839
|
]
|
|
6882
6840
|
}
|
|
6883
6841
|
),
|
|
6884
|
-
/* @__PURE__ */
|
|
6842
|
+
/* @__PURE__ */ jsx49(MySwitchTheme, {})
|
|
6885
6843
|
] })
|
|
6886
6844
|
] }) : (
|
|
6887
6845
|
// For mobile screens - simplified layout
|
|
6888
6846
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", children: [
|
|
6889
|
-
/* @__PURE__ */
|
|
6890
|
-
/* @__PURE__ */
|
|
6847
|
+
/* @__PURE__ */ jsx49(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: sidebarStore.toggle, children: sidebarStore.state.opened ? /* @__PURE__ */ jsx49(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx49(IconLayoutSidebarLeftCollapse, {}) }),
|
|
6848
|
+
/* @__PURE__ */ jsx49(Text11, { c: "green", fw: "bold", size: "sm", children: "AQ EduCourseEvaluation" }),
|
|
6891
6849
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6892
|
-
/* @__PURE__ */
|
|
6850
|
+
/* @__PURE__ */ jsx49(
|
|
6893
6851
|
Select3,
|
|
6894
6852
|
{
|
|
6895
6853
|
w: 100,
|
|
@@ -6902,24 +6860,24 @@ function BasicAppShell({ children, menu }) {
|
|
|
6902
6860
|
]
|
|
6903
6861
|
}
|
|
6904
6862
|
),
|
|
6905
|
-
/* @__PURE__ */
|
|
6863
|
+
/* @__PURE__ */ jsx49(MySwitchTheme, {})
|
|
6906
6864
|
] })
|
|
6907
6865
|
] })
|
|
6908
6866
|
)
|
|
6909
6867
|
] }),
|
|
6910
6868
|
/* @__PURE__ */ jsxs27(AppShell.Navbar, { children: [
|
|
6911
|
-
/* @__PURE__ */
|
|
6869
|
+
/* @__PURE__ */ jsx49(TextInput2, { mt: "md", placeholder: "T\xECm menu (Ctrl + K)", mx: 10, component: "button", onClick: spotlight2.open, leftSection: /* @__PURE__ */ jsx49(IconSearch2, {}), children: "T\xECm ki\u1EBFm (Ctrl + K)" }),
|
|
6912
6870
|
/* @__PURE__ */ jsxs27(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
|
6913
|
-
/* @__PURE__ */
|
|
6914
|
-
/* @__PURE__ */
|
|
6915
|
-
/* @__PURE__ */
|
|
6871
|
+
/* @__PURE__ */ jsx49(RenderNavLinks, { items: menu }),
|
|
6872
|
+
/* @__PURE__ */ jsx49(Divider3, {}),
|
|
6873
|
+
/* @__PURE__ */ jsx49(F_authenticate_Logout, {})
|
|
6916
6874
|
] }),
|
|
6917
6875
|
/* @__PURE__ */ jsxs27(AppShell.Section, { p: "md", children: [
|
|
6918
|
-
/* @__PURE__ */
|
|
6919
|
-
/* @__PURE__ */
|
|
6876
|
+
/* @__PURE__ */ jsx49(Divider3, {}),
|
|
6877
|
+
/* @__PURE__ */ jsx49(Image3, { src: "/imgs/0/IMG0LogoAQTech.png", h: 50, alt: "", w: "auto" })
|
|
6920
6878
|
] })
|
|
6921
6879
|
] }),
|
|
6922
|
-
/* @__PURE__ */
|
|
6880
|
+
/* @__PURE__ */ jsx49(AppShell.Main, { bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))", children })
|
|
6923
6881
|
]
|
|
6924
6882
|
}
|
|
6925
6883
|
);
|
|
@@ -6968,10 +6926,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
|
6968
6926
|
|
|
6969
6927
|
// src/components/Layouts/Container/MyContainer.tsx
|
|
6970
6928
|
import { Container as Container2, Flex as Flex4 } from "@mantine/core";
|
|
6971
|
-
import { jsx as
|
|
6929
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
6972
6930
|
function MyContainer(_a) {
|
|
6973
6931
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
6974
|
-
return /* @__PURE__ */
|
|
6932
|
+
return /* @__PURE__ */ jsx50(Container2, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx50(Flex4, { direction: "column", children }) }));
|
|
6975
6933
|
}
|
|
6976
6934
|
|
|
6977
6935
|
// src/constants/object/color.ts
|
|
@@ -7024,7 +6982,7 @@ function useHeaderMegaMenuStore() {
|
|
|
7024
6982
|
}
|
|
7025
6983
|
|
|
7026
6984
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
|
7027
|
-
import { jsx as
|
|
6985
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7028
6986
|
var mockdata = [
|
|
7029
6987
|
{
|
|
7030
6988
|
icon: IconCode,
|
|
@@ -7062,27 +7020,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7062
7020
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
|
7063
7021
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
|
7064
7022
|
const theme = useMantineTheme();
|
|
7065
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
|
7066
|
-
/* @__PURE__ */
|
|
7023
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx51(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs28(Group13, { wrap: "nowrap", align: "flex-start", children: [
|
|
7024
|
+
/* @__PURE__ */ jsx51(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx51(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
|
7067
7025
|
/* @__PURE__ */ jsxs28("div", { children: [
|
|
7068
|
-
/* @__PURE__ */
|
|
7069
|
-
/* @__PURE__ */
|
|
7026
|
+
/* @__PURE__ */ jsx51(Text12, { size: "sm", fw: 500, children: item.title }),
|
|
7027
|
+
/* @__PURE__ */ jsx51(Text12, { size: "xs", c: "dimmed", children: item.description })
|
|
7070
7028
|
] })
|
|
7071
7029
|
] }) }, item.title));
|
|
7072
7030
|
return /* @__PURE__ */ jsxs28(Box4, { children: [
|
|
7073
|
-
/* @__PURE__ */
|
|
7031
|
+
/* @__PURE__ */ jsx51("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs28(Group13, { justify: "space-between", h: "100%", children: [
|
|
7074
7032
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
7075
|
-
/* @__PURE__ */
|
|
7076
|
-
/* @__PURE__ */
|
|
7033
|
+
/* @__PURE__ */ jsx51(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
|
7034
|
+
/* @__PURE__ */ jsx51(Group13, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx51(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
|
7077
7035
|
] }),
|
|
7078
7036
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
7079
|
-
/* @__PURE__ */
|
|
7080
|
-
/* @__PURE__ */
|
|
7037
|
+
/* @__PURE__ */ jsx51(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx51(IconSearch3, {}), radius: "xl", w: "250px" }),
|
|
7038
|
+
/* @__PURE__ */ jsx51(MySwitchTheme, {})
|
|
7081
7039
|
] }),
|
|
7082
|
-
/* @__PURE__ */
|
|
7040
|
+
/* @__PURE__ */ jsx51(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
|
7083
7041
|
] }) }),
|
|
7084
|
-
/* @__PURE__ */
|
|
7085
|
-
/* @__PURE__ */
|
|
7042
|
+
/* @__PURE__ */ jsx51(Container3, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
|
7043
|
+
/* @__PURE__ */ jsx51(
|
|
7086
7044
|
Drawer,
|
|
7087
7045
|
{
|
|
7088
7046
|
opened: drawerOpened,
|
|
@@ -7093,9 +7051,9 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7093
7051
|
hiddenFrom: "sm",
|
|
7094
7052
|
zIndex: 1e6,
|
|
7095
7053
|
children: /* @__PURE__ */ jsxs28(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
|
7096
|
-
/* @__PURE__ */
|
|
7097
|
-
/* @__PURE__ */
|
|
7098
|
-
/* @__PURE__ */
|
|
7054
|
+
/* @__PURE__ */ jsx51(Divider4, { my: "sm" }),
|
|
7055
|
+
/* @__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)) }),
|
|
7056
|
+
/* @__PURE__ */ jsx51(Divider4, { my: "sm" })
|
|
7099
7057
|
] })
|
|
7100
7058
|
}
|
|
7101
7059
|
)
|
|
@@ -7104,15 +7062,15 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
7104
7062
|
|
|
7105
7063
|
// src/components/Layouts/Tab/MyTab.tsx
|
|
7106
7064
|
import { rem, Space as Space3, Tabs } from "@mantine/core";
|
|
7107
|
-
import { jsx as
|
|
7065
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7108
7066
|
function MyTab(_a) {
|
|
7109
7067
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
|
7110
7068
|
const iconStyle = { width: rem(20), height: rem(20) };
|
|
7111
7069
|
return /* @__PURE__ */ jsxs29(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
|
7112
|
-
/* @__PURE__ */
|
|
7113
|
-
return /* @__PURE__ */
|
|
7070
|
+
/* @__PURE__ */ jsx52(Tabs.List, { children: tabList.map((item, idx) => {
|
|
7071
|
+
return /* @__PURE__ */ jsx52(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx52(item.icon, { style: iconStyle }), children: item.label }, idx);
|
|
7114
7072
|
}) }),
|
|
7115
|
-
/* @__PURE__ */
|
|
7073
|
+
/* @__PURE__ */ jsx52(Space3, { my: "md" }),
|
|
7116
7074
|
children
|
|
7117
7075
|
] }));
|
|
7118
7076
|
}
|
|
@@ -7121,33 +7079,33 @@ function MyTab(_a) {
|
|
|
7121
7079
|
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group14, Modal as Modal11 } from "@mantine/core";
|
|
7122
7080
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
|
7123
7081
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
|
7124
|
-
import { jsx as
|
|
7082
|
+
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7125
7083
|
function MyDataTableSelect(_a) {
|
|
7126
7084
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
|
7127
7085
|
const disc = useDisclosure11(false);
|
|
7128
7086
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
|
7129
7087
|
return /* @__PURE__ */ jsxs30(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
|
7130
|
-
/* @__PURE__ */
|
|
7088
|
+
/* @__PURE__ */ jsx53(
|
|
7131
7089
|
MyDataTable,
|
|
7132
7090
|
__spreadValues({
|
|
7133
7091
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
7134
7092
|
return /* @__PURE__ */ jsxs30(Group14, { children: [
|
|
7135
7093
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
|
7136
|
-
/* @__PURE__ */
|
|
7094
|
+
/* @__PURE__ */ jsx53(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
|
7137
7095
|
] });
|
|
7138
7096
|
},
|
|
7139
7097
|
columns,
|
|
7140
7098
|
data: listState[0],
|
|
7141
7099
|
renderRowActions: ({ row }) => {
|
|
7142
|
-
return /* @__PURE__ */
|
|
7100
|
+
return /* @__PURE__ */ jsx53(MyCenterFull, { children: /* @__PURE__ */ jsx53(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx53(IconX2, {}) }) });
|
|
7143
7101
|
}
|
|
7144
7102
|
}, rest)
|
|
7145
7103
|
),
|
|
7146
|
-
/* @__PURE__ */
|
|
7104
|
+
/* @__PURE__ */ jsx53(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx53(
|
|
7147
7105
|
MyDataTable,
|
|
7148
7106
|
__spreadValues({
|
|
7149
7107
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
7150
|
-
return /* @__PURE__ */
|
|
7108
|
+
return /* @__PURE__ */ jsx53(Button15, { onClick: () => {
|
|
7151
7109
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
|
7152
7110
|
disc[1].close();
|
|
7153
7111
|
}, children: "Ch\u1ECDn" });
|
|
@@ -7163,7 +7121,7 @@ function MyDataTableSelect(_a) {
|
|
|
7163
7121
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
|
7164
7122
|
import { Select as Select4 } from "@mantine/core";
|
|
7165
7123
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
7166
|
-
import { jsx as
|
|
7124
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
7167
7125
|
function MySelectAPIGet(_a) {
|
|
7168
7126
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
|
7169
7127
|
var _a2;
|
|
@@ -7182,7 +7140,7 @@ function MySelectAPIGet(_a) {
|
|
|
7182
7140
|
label: `${item.code}-${item.name}`
|
|
7183
7141
|
};
|
|
7184
7142
|
});
|
|
7185
|
-
return /* @__PURE__ */
|
|
7143
|
+
return /* @__PURE__ */ jsx54(
|
|
7186
7144
|
Select4,
|
|
7187
7145
|
__spreadValues({
|
|
7188
7146
|
label,
|
|
@@ -7192,6 +7150,48 @@ function MySelectAPIGet(_a) {
|
|
|
7192
7150
|
);
|
|
7193
7151
|
}
|
|
7194
7152
|
|
|
7153
|
+
// src/components/ScheduleX/MyScheduleX.tsx
|
|
7154
|
+
import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as ScheduleXCalendar2 } from "@schedule-x/react";
|
|
7155
|
+
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
|
7156
|
+
import { useState as useState8 } from "react";
|
|
7157
|
+
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
|
7158
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
7159
|
+
function MyScheduleX({
|
|
7160
|
+
values,
|
|
7161
|
+
timeGridEvent,
|
|
7162
|
+
eventModal,
|
|
7163
|
+
nDays,
|
|
7164
|
+
startDayBoundaries = "05:00",
|
|
7165
|
+
endDayBoundaries = "21:00"
|
|
7166
|
+
}) {
|
|
7167
|
+
const eventsService = useState8(() => createEventsServicePlugin2())[0];
|
|
7168
|
+
const eventModalPlugin = useState8(() => createEventModalPlugin2())[0];
|
|
7169
|
+
const calendar = useNextCalendarApp2({
|
|
7170
|
+
locale: "vi-VN",
|
|
7171
|
+
dayBoundaries: {
|
|
7172
|
+
start: startDayBoundaries,
|
|
7173
|
+
end: endDayBoundaries
|
|
7174
|
+
},
|
|
7175
|
+
weekOptions: {
|
|
7176
|
+
nDays,
|
|
7177
|
+
gridHeight: 700
|
|
7178
|
+
},
|
|
7179
|
+
views: [createViewDay(), createViewWeek(), createViewMonthGrid(), createViewMonthAgenda()],
|
|
7180
|
+
events: values,
|
|
7181
|
+
plugins: [eventsService, eventModalPlugin]
|
|
7182
|
+
});
|
|
7183
|
+
return /* @__PURE__ */ jsx55(
|
|
7184
|
+
ScheduleXCalendar2,
|
|
7185
|
+
{
|
|
7186
|
+
calendarApp: calendar,
|
|
7187
|
+
customComponents: {
|
|
7188
|
+
timeGridEvent,
|
|
7189
|
+
eventModal
|
|
7190
|
+
}
|
|
7191
|
+
}
|
|
7192
|
+
);
|
|
7193
|
+
}
|
|
7194
|
+
|
|
7195
7195
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
|
7196
7196
|
import { Skeleton } from "@mantine/core";
|
|
7197
7197
|
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
@@ -10097,7 +10097,8 @@ function F_authenticate_Login({
|
|
|
10097
10097
|
loginInfo,
|
|
10098
10098
|
redirectUrlAfterLogin = "/admin/dashboard",
|
|
10099
10099
|
additionalActions,
|
|
10100
|
-
backgroundImage = "/imgs/0/IMG0AuthBackground.png"
|
|
10100
|
+
backgroundImage = "/imgs/0/IMG0AuthBackground.png",
|
|
10101
|
+
onSuccess
|
|
10101
10102
|
}) {
|
|
10102
10103
|
const router = useRouter6();
|
|
10103
10104
|
const authStore = useS_authenticate();
|
|
@@ -10121,17 +10122,20 @@ function F_authenticate_Login({
|
|
|
10121
10122
|
"passWord": passWord
|
|
10122
10123
|
}, {
|
|
10123
10124
|
onSuccess: (data) => {
|
|
10125
|
+
loadingState[1](false);
|
|
10124
10126
|
if (data.isSuccess === false) {
|
|
10125
10127
|
form.setFieldError("username", "T\xE0i kho\u1EA3n kh\xF4ng t\u1ED3n t\u1EA1i!");
|
|
10126
|
-
loadingState[1](false);
|
|
10127
10128
|
return;
|
|
10128
10129
|
}
|
|
10129
10130
|
if (data.isSuccess == 0) {
|
|
10130
10131
|
form.setFieldError("password", data.message);
|
|
10131
|
-
loadingState[1](false);
|
|
10132
10132
|
return;
|
|
10133
10133
|
}
|
|
10134
10134
|
authStore.setProperty("token", data.data.token);
|
|
10135
|
+
if (onSuccess) {
|
|
10136
|
+
onSuccess(data);
|
|
10137
|
+
return;
|
|
10138
|
+
}
|
|
10135
10139
|
router.replace(redirectUrlAfterLogin);
|
|
10136
10140
|
}
|
|
10137
10141
|
});
|
|
@@ -10240,7 +10244,6 @@ export {
|
|
|
10240
10244
|
AQCard,
|
|
10241
10245
|
MyKeyLabel,
|
|
10242
10246
|
MyNumberFormatter,
|
|
10243
|
-
MyScheduleX,
|
|
10244
10247
|
AQStatCard1,
|
|
10245
10248
|
MyDateInput,
|
|
10246
10249
|
MyFieldset,
|
|
@@ -10317,5 +10320,6 @@ export {
|
|
|
10317
10320
|
MyTab,
|
|
10318
10321
|
MyDataTableSelect,
|
|
10319
10322
|
MySelectAPIGet,
|
|
10323
|
+
MyScheduleX,
|
|
10320
10324
|
MySkeletonTable
|
|
10321
10325
|
};
|
|
@@ -6,10 +6,10 @@ import { UseFormReturnType, useForm } from '@mantine/form';
|
|
|
6
6
|
import { I as IUtils_Excel_ColumnConfig } from '../excel---d-HDs7.mjs';
|
|
7
7
|
import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
|
|
8
8
|
import { ConfigOptions } from 'export-to-csv';
|
|
9
|
-
import { CalendarEventExternal } from '@schedule-x/calendar';
|
|
10
9
|
import { DateInputProps } from '@mantine/dates';
|
|
11
10
|
import { EditorOptions } from '@tiptap/react';
|
|
12
11
|
import { IconProps, Icon } from '@tabler/icons-react';
|
|
12
|
+
import { CalendarEventExternal } from '@schedule-x/calendar';
|
|
13
13
|
import 'exceljs';
|
|
14
14
|
|
|
15
15
|
declare const MyBoxesCore: ({ className, ...rest }: {
|
|
@@ -313,20 +313,6 @@ interface I$2 extends NumberFormatterProps {
|
|
|
313
313
|
}
|
|
314
314
|
declare function MyNumberFormatter({ ...rest }: I$2): react_jsx_runtime.JSX.Element;
|
|
315
315
|
|
|
316
|
-
interface MyScheduleXProps<T extends CalendarEventExternal> {
|
|
317
|
-
values?: T[];
|
|
318
|
-
timeGridEvent?: (props: {
|
|
319
|
-
calendarEvent: T;
|
|
320
|
-
}) => React.ReactNode;
|
|
321
|
-
eventModal?: (props: {
|
|
322
|
-
calendarEvent: T;
|
|
323
|
-
}) => React.ReactNode;
|
|
324
|
-
nDays?: number;
|
|
325
|
-
startDayBoundaries?: string;
|
|
326
|
-
endDayBoundaries?: string;
|
|
327
|
-
}
|
|
328
|
-
declare function MyScheduleX<T extends CalendarEventExternal>({ values, timeGridEvent, eventModal, nDays, startDayBoundaries, endDayBoundaries }: MyScheduleXProps<T>): react_jsx_runtime.JSX.Element;
|
|
329
|
-
|
|
330
316
|
declare function AQStatCard1({ title, value, unit, description, icons, diff }: {
|
|
331
317
|
title: string;
|
|
332
318
|
value: string;
|
|
@@ -471,6 +457,20 @@ interface ISelect extends SelectProps {
|
|
|
471
457
|
}
|
|
472
458
|
declare function MySelectAPIGet({ apiGet, label, dataMapper, ...rest }: ISelect): react_jsx_runtime.JSX.Element | "Loading...";
|
|
473
459
|
|
|
460
|
+
interface MyScheduleXProps<T extends CalendarEventExternal> {
|
|
461
|
+
values?: T[];
|
|
462
|
+
timeGridEvent?: (props: {
|
|
463
|
+
calendarEvent: T;
|
|
464
|
+
}) => React.ReactNode;
|
|
465
|
+
eventModal?: (props: {
|
|
466
|
+
calendarEvent: T;
|
|
467
|
+
}) => React.ReactNode;
|
|
468
|
+
nDays?: number;
|
|
469
|
+
startDayBoundaries?: string;
|
|
470
|
+
endDayBoundaries?: string;
|
|
471
|
+
}
|
|
472
|
+
declare function MyScheduleX<T extends CalendarEventExternal>({ values, timeGridEvent, eventModal, nDays, startDayBoundaries, endDayBoundaries }: MyScheduleXProps<T>): react_jsx_runtime.JSX.Element;
|
|
473
|
+
|
|
474
474
|
interface IMySkeletonTable extends SkeletonProps {
|
|
475
475
|
}
|
|
476
476
|
declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
useHeaderMegaMenuStore,
|
|
63
63
|
useS_ButtonImport,
|
|
64
64
|
utils_layout_getItemsWithoutLinks
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-O5QBK74D.mjs";
|
|
66
66
|
import "../chunk-AL73DX37.mjs";
|
|
67
67
|
import "../chunk-4MLNXP25.mjs";
|
|
68
68
|
import "../chunk-FWCSY2DS.mjs";
|
|
@@ -434,11 +434,12 @@ declare function F_authenticate_SplashPage(): react_jsx_runtime.JSX.Element;
|
|
|
434
434
|
|
|
435
435
|
interface I$1 {
|
|
436
436
|
token?: string;
|
|
437
|
+
userId?: number;
|
|
437
438
|
}
|
|
438
439
|
declare function useS_authenticate(): {
|
|
439
440
|
state: I$1;
|
|
440
441
|
setState: (newState: I$1) => void;
|
|
441
|
-
setProperty: <K extends
|
|
442
|
+
setProperty: <K extends keyof I$1>(key: K, value: I$1[K]) => void;
|
|
442
443
|
resetState: () => void;
|
|
443
444
|
};
|
|
444
445
|
|
|
@@ -451,7 +452,8 @@ interface I {
|
|
|
451
452
|
redirectUrlAfterLogin?: string;
|
|
452
453
|
additionalActions?: ReactNode;
|
|
453
454
|
backgroundImage?: string;
|
|
455
|
+
onSuccess?: (data?: any) => void;
|
|
454
456
|
}
|
|
455
|
-
declare function F_authenticate_Login({ loginInfo, redirectUrlAfterLogin, additionalActions, backgroundImage, }: I): react_jsx_runtime.JSX.Element;
|
|
457
|
+
declare function F_authenticate_Login({ loginInfo, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess }: I): react_jsx_runtime.JSX.Element;
|
|
456
458
|
|
|
457
459
|
export { F_authenticate_Login, F_authenticate_Logout, F_authenticate_SplashPage, F_core12196, F_core12196_Create, F_core12196_Delete, F_core12196_Update, F_core16209, F_core16209_Create, F_core16209_Delete, F_core16209_Update, F_core18256, F_core18256_Create, F_core18256_Delete, F_core18256_Read, F_core18256_Select, F_core18256_Update, F_core26965, F_core26965_Create, F_core26965_Delete, F_core26965_Update, F_core27311, F_core27311_Create, F_core27311_Delete, F_core27311_Read, F_core27311_Update, F_core38677_ReadUser, F_core38677_Save, F_core38677_ViewMenuPermissions, F_core40207, F_core40207_Create, F_core40207_Delete, F_core40207_Read, F_core40207_Update, F_core47643, F_core47643_Delete, F_core47643_Form, F_core47643_Read, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core71678_ChangePermission, F_core71678_Create, F_core71678_Delete, F_core71678_Read, F_core71678_Update, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_core83092, F_core83092_ReadUser, F_core83092_Save, F_core83092_ViewMenuPermissions, type I_core38677_User, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_authenticate, useS_core83092, utils_core83092_mergePage };
|