aq-fe-framework 0.1.255 → 0.1.257
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.
@@ -1049,58 +1049,12 @@ function MyButtonCreate(_a) {
|
|
1049
1049
|
] }) }) }));
|
1050
1050
|
}
|
1051
1051
|
|
1052
|
-
// src/components/Buttons/ButtonCRUD/MyButtonCreateUpdate.tsx
|
1053
|
-
import { useDisclosure as useDisclosure8 } from "@mantine/hooks";
|
1054
|
-
import { useMutation as useMutation5, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
1055
|
-
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
1056
|
-
function MyButtonCreateUpdate({
|
1057
|
-
form,
|
1058
|
-
onSubmit,
|
1059
|
-
onSuccess,
|
1060
|
-
onError,
|
1061
|
-
closeModalWhenSubmit = true,
|
1062
|
-
resetFormWhenSubmit = true,
|
1063
|
-
disclosure: externalDisclosure,
|
1064
|
-
isUpdate,
|
1065
|
-
children,
|
1066
|
-
buttonProps,
|
1067
|
-
actionIconProps
|
1068
|
-
}) {
|
1069
|
-
const defaultDisclosure = useDisclosure8();
|
1070
|
-
const disclosure = externalDisclosure != null ? externalDisclosure : defaultDisclosure;
|
1071
|
-
const queryClient = useQueryClient5();
|
1072
|
-
const mutation = useMutation5({
|
1073
|
-
mutationFn: async (values) => await onSubmit(values),
|
1074
|
-
onSuccess: () => {
|
1075
|
-
if (onSuccess) return onSuccess();
|
1076
|
-
queryClient.invalidateQueries();
|
1077
|
-
utils_notification_show({ crudType: isUpdate ? "update" : "create" });
|
1078
|
-
if (closeModalWhenSubmit) disclosure[1].close();
|
1079
|
-
if (resetFormWhenSubmit) form.reset();
|
1080
|
-
},
|
1081
|
-
onError: () => {
|
1082
|
-
if (onError) return onError();
|
1083
|
-
}
|
1084
|
-
});
|
1085
|
-
const handleSubmit = (values) => mutation.mutate(values);
|
1086
|
-
if (!isUpdate) {
|
1087
|
-
return /* @__PURE__ */ jsx22(MyButtonModal, __spreadProps(__spreadValues({ disclosure, crudType: "create" }, buttonProps), { children: /* @__PURE__ */ jsx22("form", { onSubmit: form.onSubmit(handleSubmit), children: /* @__PURE__ */ jsxs12(MyFlexColumn, { children: [
|
1088
|
-
children,
|
1089
|
-
/* @__PURE__ */ jsx22(MyButton, { type: "submit", crudType: "save" })
|
1090
|
-
] }) }) }));
|
1091
|
-
}
|
1092
|
-
return /* @__PURE__ */ jsx22(MyActionIconModal, __spreadProps(__spreadValues({ disclosure, crudType: "update" }, actionIconProps), { children: /* @__PURE__ */ jsx22("form", { onSubmit: form.onSubmit(handleSubmit), children: /* @__PURE__ */ jsxs12(MyFlexColumn, { children: [
|
1093
|
-
children,
|
1094
|
-
/* @__PURE__ */ jsx22(MyButton, { type: "submit", crudType: "save" })
|
1095
|
-
] }) }) }));
|
1096
|
-
}
|
1097
|
-
|
1098
1052
|
// src/components/Buttons/ButtonCRUD/MyButtonDeleteList.tsx
|
1099
1053
|
import { Group as Group5, Highlight as Highlight2 } from "@mantine/core";
|
1100
|
-
import { useDisclosure as
|
1101
|
-
import { useMutation as
|
1054
|
+
import { useDisclosure as useDisclosure8 } from "@mantine/hooks";
|
1055
|
+
import { useMutation as useMutation5, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
1102
1056
|
import { useState as useState7 } from "react";
|
1103
|
-
import { jsx as
|
1057
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
1104
1058
|
function MyButtonDeleteList(_a) {
|
1105
1059
|
var _b = _a, {
|
1106
1060
|
onSubmit,
|
@@ -1113,10 +1067,10 @@ function MyButtonDeleteList(_a) {
|
|
1113
1067
|
"onError",
|
1114
1068
|
"contextData"
|
1115
1069
|
]);
|
1116
|
-
const queryClient =
|
1117
|
-
const disc =
|
1070
|
+
const queryClient = useQueryClient5();
|
1071
|
+
const disc = useDisclosure8();
|
1118
1072
|
const loadingState = useState7();
|
1119
|
-
const mutation =
|
1073
|
+
const mutation = useMutation5({
|
1120
1074
|
mutationFn: async () => await onSubmit(),
|
1121
1075
|
onSuccess: () => {
|
1122
1076
|
if (onSuccess) {
|
@@ -1139,7 +1093,7 @@ function MyButtonDeleteList(_a) {
|
|
1139
1093
|
loadingState[1](true);
|
1140
1094
|
mutation.mutate();
|
1141
1095
|
}
|
1142
|
-
return /* @__PURE__ */
|
1096
|
+
return /* @__PURE__ */ jsxs12(
|
1143
1097
|
MyButtonModal,
|
1144
1098
|
__spreadProps(__spreadValues({
|
1145
1099
|
disclosure: disc,
|
@@ -1147,7 +1101,7 @@ function MyButtonDeleteList(_a) {
|
|
1147
1101
|
disabled: contextData == void 0 || contextData.length == 0
|
1148
1102
|
}, rest), {
|
1149
1103
|
children: [
|
1150
|
-
/* @__PURE__ */
|
1104
|
+
/* @__PURE__ */ jsx22(
|
1151
1105
|
Highlight2,
|
1152
1106
|
{
|
1153
1107
|
highlight: contextData || [],
|
@@ -1160,8 +1114,8 @@ function MyButtonDeleteList(_a) {
|
|
1160
1114
|
children: `B\u1EA1n s\u1EAFp x\xF3a d\u1EEF li\u1EC7u ${contextData || ""}. H\xE0nh \u0111\u1ED9ng n\xE0y kh\xF4ng th\u1EC3 ho\xE0n t\xE1c. B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n ti\u1EBFp t\u1EE5c?`
|
1161
1115
|
}
|
1162
1116
|
),
|
1163
|
-
/* @__PURE__ */
|
1164
|
-
/* @__PURE__ */
|
1117
|
+
/* @__PURE__ */ jsxs12(Group5, { grow: true, children: [
|
1118
|
+
/* @__PURE__ */ jsx22(
|
1165
1119
|
MyButton,
|
1166
1120
|
{
|
1167
1121
|
crudType: "delete",
|
@@ -1169,7 +1123,7 @@ function MyButtonDeleteList(_a) {
|
|
1169
1123
|
loading: loadingState[0]
|
1170
1124
|
}
|
1171
1125
|
),
|
1172
|
-
/* @__PURE__ */
|
1126
|
+
/* @__PURE__ */ jsx22(
|
1173
1127
|
MyButton,
|
1174
1128
|
{
|
1175
1129
|
crudType: "cancel",
|
@@ -1188,18 +1142,18 @@ import { IconFileImport as IconFileImport2 } from "@tabler/icons-react";
|
|
1188
1142
|
|
1189
1143
|
// src/components/Combobox/Select/MySelect.tsx
|
1190
1144
|
import { Select } from "@mantine/core";
|
1191
|
-
import { jsx as
|
1145
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
1192
1146
|
function MySelect(_a) {
|
1193
1147
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
1194
|
-
return /* @__PURE__ */
|
1148
|
+
return /* @__PURE__ */ jsx23(Select, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
1195
1149
|
}
|
1196
1150
|
|
1197
1151
|
// src/components/Layouts/FlexEnd/MyFlexEnd.tsx
|
1198
1152
|
import { Group as Group6 } from "@mantine/core";
|
1199
|
-
import { jsx as
|
1153
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
1200
1154
|
function MyFlexEnd(_a) {
|
1201
1155
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
1202
|
-
return /* @__PURE__ */
|
1156
|
+
return /* @__PURE__ */ jsx24(Group6, __spreadProps(__spreadValues({ justify: "end", mt: "md" }, rest), { children }));
|
1203
1157
|
}
|
1204
1158
|
|
1205
1159
|
// src/components/Buttons/ButtonImport/SelectFieldModal.tsx
|
@@ -1357,99 +1311,99 @@ function useS_ButtonImport() {
|
|
1357
1311
|
}
|
1358
1312
|
|
1359
1313
|
// src/components/Buttons/ButtonImport/SelectFieldModal.tsx
|
1360
|
-
import { jsx as
|
1314
|
+
import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
1361
1315
|
function SelectFieldModal({ stack, onImport }) {
|
1362
1316
|
var _a, _b;
|
1363
1317
|
const store = useS_ButtonImport();
|
1364
|
-
return /* @__PURE__ */
|
1365
|
-
/* @__PURE__ */
|
1366
|
-
/* @__PURE__ */
|
1367
|
-
/* @__PURE__ */
|
1368
|
-
/* @__PURE__ */
|
1369
|
-
/* @__PURE__ */
|
1370
|
-
/* @__PURE__ */
|
1318
|
+
return /* @__PURE__ */ jsxs13(Modal6, __spreadProps(__spreadValues({ fullScreen: true }, stack.register("select-field-page")), { title: "Import", children: [
|
1319
|
+
/* @__PURE__ */ jsxs13(SimpleGrid, { cols: { base: 1, lg: 2 }, children: [
|
1320
|
+
/* @__PURE__ */ jsxs13(Fieldset, { legend: "Danh s\xE1ch tr\u01B0\u1EDDng th\xF4ng tin", children: [
|
1321
|
+
/* @__PURE__ */ jsxs13(Table, { stickyHeader: true, stickyHeaderOffset: 60, children: [
|
1322
|
+
/* @__PURE__ */ jsx25(Table.Thead, { bg: "cyan", children: /* @__PURE__ */ jsxs13(Table.Tr, { children: [
|
1323
|
+
/* @__PURE__ */ jsx25(Table.Th, { children: "M\xE3 field" }),
|
1324
|
+
/* @__PURE__ */ jsx25(Table.Th, { children: "T\xEAn field" })
|
1371
1325
|
] }) }),
|
1372
|
-
/* @__PURE__ */
|
1326
|
+
/* @__PURE__ */ jsx25(Table.Tbody, { children: (_a = store.state.fieldConfig) == null ? void 0 : _a.filter((item) => item.isSelected == false || item.isSelected == void 0).map((item, idx) => /* @__PURE__ */ jsxs13(
|
1373
1327
|
Table.Tr,
|
1374
1328
|
{
|
1375
1329
|
style: { cursor: "pointer" },
|
1376
1330
|
children: [
|
1377
|
-
/* @__PURE__ */
|
1378
|
-
/* @__PURE__ */
|
1331
|
+
/* @__PURE__ */ jsx25(Table.Td, { onClick: () => store.changeSelected(item.fieldKey.toString(), true), children: item.fieldKey.toString() }),
|
1332
|
+
/* @__PURE__ */ jsx25(Table.Td, { onClick: () => store.changeSelected(item.fieldKey.toString(), true), children: item.fieldName })
|
1379
1333
|
]
|
1380
1334
|
},
|
1381
1335
|
idx
|
1382
1336
|
)) })
|
1383
1337
|
] }),
|
1384
|
-
/* @__PURE__ */
|
1385
|
-
/* @__PURE__ */
|
1338
|
+
/* @__PURE__ */ jsx25(Space2, {}),
|
1339
|
+
/* @__PURE__ */ jsx25(Group7, { children: /* @__PURE__ */ jsx25(
|
1386
1340
|
Button5,
|
1387
1341
|
{
|
1388
1342
|
onClick: () => {
|
1389
1343
|
store.changeAllSelected(true);
|
1390
1344
|
},
|
1391
|
-
leftSection: /* @__PURE__ */
|
1345
|
+
leftSection: /* @__PURE__ */ jsx25(IconArrowBigRight, {}),
|
1392
1346
|
children: "Chuy\u1EC3n t\u1EA5t c\u1EA3"
|
1393
1347
|
}
|
1394
1348
|
) })
|
1395
1349
|
] }),
|
1396
|
-
/* @__PURE__ */
|
1397
|
-
/* @__PURE__ */
|
1398
|
-
/* @__PURE__ */
|
1399
|
-
/* @__PURE__ */
|
1400
|
-
/* @__PURE__ */
|
1401
|
-
/* @__PURE__ */
|
1350
|
+
/* @__PURE__ */ jsxs13(Fieldset, { legend: "Danh s\xE1ch tr\u01B0\u1EDDng th\xF4ng tin \u0111\u01B0\u1EE3c ch\u1ECDn", children: [
|
1351
|
+
/* @__PURE__ */ jsxs13(Table, { stickyHeader: true, stickyHeaderOffset: 60, children: [
|
1352
|
+
/* @__PURE__ */ jsx25(Table.Thead, { children: /* @__PURE__ */ jsxs13(Table.Tr, { children: [
|
1353
|
+
/* @__PURE__ */ jsx25(Table.Th, { children: "M\xE3 field" }),
|
1354
|
+
/* @__PURE__ */ jsx25(Table.Th, { children: "T\xEAn field" }),
|
1355
|
+
/* @__PURE__ */ jsx25(Table.Th, { children: "C\u1ED9t map" })
|
1402
1356
|
] }) }),
|
1403
|
-
/* @__PURE__ */
|
1357
|
+
/* @__PURE__ */ jsx25(Table.Tbody, { children: (_b = store.state.fieldConfig) == null ? void 0 : _b.filter((item) => item.isSelected == true).map((item, idx) => /* @__PURE__ */ jsxs13(
|
1404
1358
|
Table.Tr,
|
1405
1359
|
{
|
1406
1360
|
style: { cursor: "pointer" },
|
1407
1361
|
children: [
|
1408
|
-
/* @__PURE__ */
|
1409
|
-
/* @__PURE__ */
|
1410
|
-
/* @__PURE__ */
|
1362
|
+
/* @__PURE__ */ jsx25(Table.Td, { onClick: () => store.changeSelected(item.fieldKey.toString(), false), children: item.fieldKey.toString() }),
|
1363
|
+
/* @__PURE__ */ jsx25(Table.Td, { onClick: () => store.changeSelected(item.fieldKey.toString(), false), children: item.fieldName }),
|
1364
|
+
/* @__PURE__ */ jsx25(Table.Td, { children: /* @__PURE__ */ jsx25(MySelect, { data: store.state.title, value: item.fieldToMap, onChange: (e4) => store.setFieldToMap(item.fieldKey.toString(), e4) }) })
|
1411
1365
|
]
|
1412
1366
|
},
|
1413
1367
|
idx
|
1414
1368
|
)) })
|
1415
1369
|
] }),
|
1416
|
-
/* @__PURE__ */
|
1417
|
-
/* @__PURE__ */
|
1370
|
+
/* @__PURE__ */ jsx25(Space2, {}),
|
1371
|
+
/* @__PURE__ */ jsx25(
|
1418
1372
|
Button5,
|
1419
1373
|
{
|
1420
1374
|
onClick: () => {
|
1421
1375
|
store.changeAllSelected(false);
|
1422
1376
|
},
|
1423
|
-
leftSection: /* @__PURE__ */
|
1377
|
+
leftSection: /* @__PURE__ */ jsx25(IconArrowBigLeft, {}),
|
1424
1378
|
children: "Chuy\u1EC3n t\u1EA5t c\u1EA3 v\u1EC1"
|
1425
1379
|
}
|
1426
1380
|
)
|
1427
1381
|
] })
|
1428
1382
|
] }),
|
1429
|
-
/* @__PURE__ */
|
1430
|
-
/* @__PURE__ */
|
1431
|
-
/* @__PURE__ */
|
1383
|
+
/* @__PURE__ */ jsx25(Divider, {}),
|
1384
|
+
/* @__PURE__ */ jsxs13(MyFlexEnd, { children: [
|
1385
|
+
/* @__PURE__ */ jsx25(
|
1432
1386
|
Button5,
|
1433
1387
|
{
|
1434
|
-
leftSection: /* @__PURE__ */
|
1388
|
+
leftSection: /* @__PURE__ */ jsx25(IconArrowBackUp, {}),
|
1435
1389
|
onClick: () => stack.close("select-field-page"),
|
1436
1390
|
color: "gray.7",
|
1437
1391
|
children: "Quay l\u1EA1i"
|
1438
1392
|
}
|
1439
1393
|
),
|
1440
|
-
/* @__PURE__ */
|
1394
|
+
/* @__PURE__ */ jsx25(
|
1441
1395
|
Button5,
|
1442
1396
|
{
|
1443
1397
|
color: "blue.8",
|
1444
|
-
leftSection: /* @__PURE__ */
|
1398
|
+
leftSection: /* @__PURE__ */ jsx25(IconArrowBigRight, {}),
|
1445
1399
|
onClick: onImport,
|
1446
1400
|
children: "Ti\u1EBFp t\u1EE5c / Import"
|
1447
1401
|
}
|
1448
1402
|
),
|
1449
|
-
/* @__PURE__ */
|
1403
|
+
/* @__PURE__ */ jsx25(
|
1450
1404
|
Button5,
|
1451
1405
|
{
|
1452
|
-
leftSection: /* @__PURE__ */
|
1406
|
+
leftSection: /* @__PURE__ */ jsx25(IconSquareRoundedX, {}),
|
1453
1407
|
onClick: () => stack.closeAll(),
|
1454
1408
|
color: "red.6",
|
1455
1409
|
children: "\u0110\xF3ng"
|
@@ -1469,7 +1423,7 @@ import {
|
|
1469
1423
|
} from "mantine-react-table";
|
1470
1424
|
import { MRT_Localization_VI } from "mantine-react-table/locales/vi/index.cjs";
|
1471
1425
|
import { useEffect as useEffect5 } from "react";
|
1472
|
-
import { Fragment as Fragment7, jsx as
|
1426
|
+
import { Fragment as Fragment7, jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
|
1473
1427
|
function formatData(data, formats) {
|
1474
1428
|
return data.map((row) => {
|
1475
1429
|
const transformedRow = {};
|
@@ -1532,14 +1486,14 @@ function MyDataTable(_a) {
|
|
1532
1486
|
columns,
|
1533
1487
|
data,
|
1534
1488
|
renderTopToolbarCustomActions: ({ table: table2 }) => {
|
1535
|
-
return /* @__PURE__ */
|
1489
|
+
return /* @__PURE__ */ jsxs14(Group8, { children: [
|
1536
1490
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table: table2 }),
|
1537
|
-
exportAble && /* @__PURE__ */
|
1491
|
+
exportAble && /* @__PURE__ */ jsx26(Fragment7, { children: /* @__PURE__ */ jsx26(
|
1538
1492
|
Button6,
|
1539
1493
|
{
|
1540
1494
|
color: "green.8",
|
1541
1495
|
onClick: () => handleExport(table2.getSelectedRowModel().rows),
|
1542
|
-
leftSection: /* @__PURE__ */
|
1496
|
+
leftSection: /* @__PURE__ */ jsx26(IconDownload3, {}),
|
1543
1497
|
variant: "filled",
|
1544
1498
|
children: "Export"
|
1545
1499
|
}
|
@@ -1586,7 +1540,7 @@ function MyDataTable(_a) {
|
|
1586
1540
|
}
|
1587
1541
|
},
|
1588
1542
|
localization: MRT_Localization_VI,
|
1589
|
-
renderEmptyRowsFallback: () => isError ? /* @__PURE__ */
|
1543
|
+
renderEmptyRowsFallback: () => isError ? /* @__PURE__ */ jsx26(Alert, { icon: /* @__PURE__ */ jsx26(IconBug, {}), color: "red", title: "C\xF3 l\u1ED7i x\u1EA3y ra!", m: "md" }) : /* @__PURE__ */ jsx26(Alert, { icon: /* @__PURE__ */ jsx26(IconInfoCircle, {}), color: "gray", title: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u!", m: "md" }),
|
1590
1544
|
state: {
|
1591
1545
|
showSkeletons: isLoading
|
1592
1546
|
},
|
@@ -1597,24 +1551,24 @@ function MyDataTable(_a) {
|
|
1597
1551
|
setSelectedRow && setSelectedRow(table.getSelectedRowModel().rows.map((row) => row.original));
|
1598
1552
|
}, [table.getState().rowSelection]);
|
1599
1553
|
if (data == void 0) return;
|
1600
|
-
return /* @__PURE__ */
|
1554
|
+
return /* @__PURE__ */ jsx26("main", { style: { position: "relative", zIndex: 1 }, children: table.getState().isFullScreen ? /* @__PURE__ */ jsx26(Portal, { children: /* @__PURE__ */ jsx26(MantineReactTable, { table }) }) : /* @__PURE__ */ jsx26(MantineReactTable, { table }) });
|
1601
1555
|
}
|
1602
1556
|
|
1603
1557
|
// src/components/Buttons/ButtonImport/SelectFileModal.tsx
|
1604
1558
|
import { Button as Button7, Fieldset as Fieldset2, FileInput as FileInput2, Modal as Modal7, NumberInput, Select as Select2, SimpleGrid as SimpleGrid2 } from "@mantine/core";
|
1605
1559
|
import { IconArrowBigRight as IconArrowBigRight2, IconSquareRoundedX as IconSquareRoundedX2 } from "@tabler/icons-react";
|
1606
|
-
import { jsx as
|
1560
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
|
1607
1561
|
function SelectFileModal({ onExportStructure, stack }) {
|
1608
1562
|
var _a;
|
1609
1563
|
const store = useS_ButtonImport();
|
1610
|
-
return /* @__PURE__ */
|
1564
|
+
return /* @__PURE__ */ jsxs15(
|
1611
1565
|
Modal7,
|
1612
1566
|
__spreadProps(__spreadValues({
|
1613
1567
|
title: "Import",
|
1614
1568
|
fullScreen: true
|
1615
1569
|
}, stack.register("select-file-page")), {
|
1616
1570
|
children: [
|
1617
|
-
/* @__PURE__ */
|
1571
|
+
/* @__PURE__ */ jsx27(
|
1618
1572
|
FileInput2,
|
1619
1573
|
{
|
1620
1574
|
value: store.state.file,
|
@@ -1624,8 +1578,8 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
1624
1578
|
clearable: true
|
1625
1579
|
}
|
1626
1580
|
),
|
1627
|
-
/* @__PURE__ */
|
1628
|
-
/* @__PURE__ */
|
1581
|
+
/* @__PURE__ */ jsxs15(SimpleGrid2, { cols: { base: 1, md: 2, lg: 2, xl: 4 }, children: [
|
1582
|
+
/* @__PURE__ */ jsx27(
|
1629
1583
|
NumberInput,
|
1630
1584
|
{
|
1631
1585
|
label: "D\xF2ng ti\xEAu \u0111\u1EC1 b\u1EAFt \u0111\u1EA7u t\u1EEB",
|
@@ -1633,7 +1587,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
1633
1587
|
onChange: (e4) => store.setProperty("startTitleIndex", e4)
|
1634
1588
|
}
|
1635
1589
|
),
|
1636
|
-
/* @__PURE__ */
|
1590
|
+
/* @__PURE__ */ jsx27(
|
1637
1591
|
NumberInput,
|
1638
1592
|
{
|
1639
1593
|
label: "D\xF2ng d\u1EEF li\u1EC7u b\u1EAFt \u0111\u1EA7u t\u1EEB",
|
@@ -1641,7 +1595,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
1641
1595
|
onChange: (e4) => store.setProperty("startDataIndex", e4)
|
1642
1596
|
}
|
1643
1597
|
),
|
1644
|
-
/* @__PURE__ */
|
1598
|
+
/* @__PURE__ */ jsx27(
|
1645
1599
|
Select2,
|
1646
1600
|
{
|
1647
1601
|
readOnly: true,
|
@@ -1650,7 +1604,7 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
1650
1604
|
defaultValue: "100.000"
|
1651
1605
|
}
|
1652
1606
|
),
|
1653
|
-
/* @__PURE__ */
|
1607
|
+
/* @__PURE__ */ jsx27(
|
1654
1608
|
Select2,
|
1655
1609
|
{
|
1656
1610
|
readOnly: true,
|
@@ -1660,15 +1614,15 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
1660
1614
|
}
|
1661
1615
|
)
|
1662
1616
|
] }),
|
1663
|
-
/* @__PURE__ */
|
1617
|
+
/* @__PURE__ */ jsx27(Fieldset2, { legend: "Danh s\xE1ch tr\u01B0\u1EDDng th\xF4ng tin trong file d\u1EEF li\u1EC7u", children: store.state.data && /* @__PURE__ */ jsx27(
|
1664
1618
|
MyDataTable,
|
1665
1619
|
{
|
1666
1620
|
columns: store.columns,
|
1667
1621
|
data: store.state.data
|
1668
1622
|
}
|
1669
1623
|
) }),
|
1670
|
-
/* @__PURE__ */
|
1671
|
-
/* @__PURE__ */
|
1624
|
+
/* @__PURE__ */ jsxs15(MyFlexEnd, { children: [
|
1625
|
+
/* @__PURE__ */ jsx27(
|
1672
1626
|
Button7,
|
1673
1627
|
{
|
1674
1628
|
color: "teal.8",
|
@@ -1676,21 +1630,21 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
1676
1630
|
children: "Xu\u1EA5t file c\u1EA5u tr\xFAc"
|
1677
1631
|
}
|
1678
1632
|
),
|
1679
|
-
/* @__PURE__ */
|
1633
|
+
/* @__PURE__ */ jsx27(
|
1680
1634
|
Button7,
|
1681
1635
|
{
|
1682
1636
|
disabled: ((_a = store.state.data) == null ? void 0 : _a.length) == 0,
|
1683
1637
|
color: "blue.8",
|
1684
|
-
leftSection: /* @__PURE__ */
|
1638
|
+
leftSection: /* @__PURE__ */ jsx27(IconArrowBigRight2, {}),
|
1685
1639
|
onClick: () => stack.open("select-field-page"),
|
1686
1640
|
children: "Ti\u1EBFp t\u1EE5c"
|
1687
1641
|
}
|
1688
1642
|
),
|
1689
|
-
/* @__PURE__ */
|
1643
|
+
/* @__PURE__ */ jsx27(
|
1690
1644
|
Button7,
|
1691
1645
|
{
|
1692
1646
|
color: "red.6",
|
1693
|
-
leftSection: /* @__PURE__ */
|
1647
|
+
leftSection: /* @__PURE__ */ jsx27(IconSquareRoundedX2, {}),
|
1694
1648
|
onClick: stack.closeAll,
|
1695
1649
|
children: "\u0110\xF3ng"
|
1696
1650
|
}
|
@@ -1702,26 +1656,26 @@ function SelectFileModal({ onExportStructure, stack }) {
|
|
1702
1656
|
}
|
1703
1657
|
|
1704
1658
|
// src/components/Buttons/ButtonImport/MyButtonImport.tsx
|
1705
|
-
import { Fragment as Fragment8, jsx as
|
1659
|
+
import { Fragment as Fragment8, jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
1706
1660
|
function MyButtonImport({
|
1707
1661
|
onExportStructure,
|
1708
1662
|
onImport
|
1709
1663
|
}) {
|
1710
1664
|
const stack = useModalsStack3(["select-file-page", "select-field-page", "implement-page"]);
|
1711
1665
|
const store = useS_ButtonImport();
|
1712
|
-
return /* @__PURE__ */
|
1713
|
-
/* @__PURE__ */
|
1714
|
-
/* @__PURE__ */
|
1715
|
-
/* @__PURE__ */
|
1716
|
-
/* @__PURE__ */
|
1666
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
1667
|
+
/* @__PURE__ */ jsx28(Button8, { color: "teal.8", onClick: () => stack.open("select-file-page"), leftSection: /* @__PURE__ */ jsx28(IconFileImport2, {}), title: "Import", children: "Import" }),
|
1668
|
+
/* @__PURE__ */ jsxs16(Modal8.Stack, { children: [
|
1669
|
+
/* @__PURE__ */ jsx28(SelectFileModal, { stack, onExportStructure }),
|
1670
|
+
/* @__PURE__ */ jsx28(SelectFieldModal, { stack, onImport: () => onImport(store.getDataFinal()) })
|
1717
1671
|
] })
|
1718
1672
|
] });
|
1719
1673
|
}
|
1720
1674
|
|
1721
1675
|
// src/components/Buttons/ButtonModal/AQSelectTableByOpenModal.tsx
|
1722
1676
|
import { Button as Button9, Fieldset as Fieldset3, Modal as Modal9 } from "@mantine/core";
|
1723
|
-
import { useDisclosure as
|
1724
|
-
import { Fragment as Fragment9, jsx as
|
1677
|
+
import { useDisclosure as useDisclosure9 } from "@mantine/hooks";
|
1678
|
+
import { Fragment as Fragment9, jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
|
1725
1679
|
function AQSelectTableByOpenModal(_a) {
|
1726
1680
|
var _b = _a, {
|
1727
1681
|
setSelectedData,
|
@@ -1748,9 +1702,9 @@ function AQSelectTableByOpenModal(_a) {
|
|
1748
1702
|
"fullScreen",
|
1749
1703
|
"closeAfterSelect"
|
1750
1704
|
]);
|
1751
|
-
const disclosure =
|
1752
|
-
return /* @__PURE__ */
|
1753
|
-
/* @__PURE__ */
|
1705
|
+
const disclosure = useDisclosure9(false);
|
1706
|
+
return /* @__PURE__ */ jsxs17(Fragment9, { children: [
|
1707
|
+
/* @__PURE__ */ jsx29(
|
1754
1708
|
Button9,
|
1755
1709
|
__spreadProps(__spreadValues({
|
1756
1710
|
onClick: disclosure[1].open
|
@@ -1758,7 +1712,7 @@ function AQSelectTableByOpenModal(_a) {
|
|
1758
1712
|
children: label ? label : `Ch\u1ECDn t\u1EEB danh s\xE1ch`
|
1759
1713
|
})
|
1760
1714
|
),
|
1761
|
-
/* @__PURE__ */
|
1715
|
+
/* @__PURE__ */ jsx29(
|
1762
1716
|
Modal9,
|
1763
1717
|
{
|
1764
1718
|
fullScreen,
|
@@ -1766,11 +1720,11 @@ function AQSelectTableByOpenModal(_a) {
|
|
1766
1720
|
title,
|
1767
1721
|
opened: disclosure == null ? void 0 : disclosure[0],
|
1768
1722
|
onClose: disclosure[1].close,
|
1769
|
-
children: /* @__PURE__ */
|
1723
|
+
children: /* @__PURE__ */ jsx29(MyFlexColumn, { children: /* @__PURE__ */ jsx29(Fieldset3, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: /* @__PURE__ */ jsx29(
|
1770
1724
|
MyDataTable,
|
1771
1725
|
__spreadValues({
|
1772
1726
|
renderTopToolbarCustomActions: ({ table }) => {
|
1773
|
-
return /* @__PURE__ */
|
1727
|
+
return /* @__PURE__ */ jsx29(Button9, { onClick: () => {
|
1774
1728
|
setSelectedData(table.getSelectedRowModel().rows.map((row) => row.original));
|
1775
1729
|
closeAfterSelect && disclosure[1].close();
|
1776
1730
|
}, children: "Ch\u1ECDn" });
|
@@ -1790,7 +1744,7 @@ import { useRef as useRef2 } from "react";
|
|
1790
1744
|
import { Button as Button10 } from "@mantine/core";
|
1791
1745
|
import { IconPrinter as IconPrinter2 } from "@tabler/icons-react";
|
1792
1746
|
import { useReactToPrint } from "react-to-print";
|
1793
|
-
import { Fragment as Fragment10, jsx as
|
1747
|
+
import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
1794
1748
|
function MyButtonPrintPDF(_a) {
|
1795
1749
|
var _b = _a, { contentToPrint, children } = _b, rest = __objRest(_b, ["contentToPrint", "children"]);
|
1796
1750
|
const printRef = useRef2(null);
|
@@ -1804,16 +1758,16 @@ function MyButtonPrintPDF(_a) {
|
|
1804
1758
|
if (!contentToPrint) return;
|
1805
1759
|
handlePrint();
|
1806
1760
|
}
|
1807
|
-
return /* @__PURE__ */
|
1808
|
-
/* @__PURE__ */
|
1809
|
-
/* @__PURE__ */
|
1761
|
+
return /* @__PURE__ */ jsxs18(Fragment10, { children: [
|
1762
|
+
/* @__PURE__ */ jsx30("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx30("div", { ref: printRef, children: contentToPrint }) }),
|
1763
|
+
/* @__PURE__ */ jsx30(Button10, __spreadProps(__spreadValues({ color: "orange", onClick: handleClick, leftSection: /* @__PURE__ */ jsx30(IconPrinter2, {}) }, rest), { children }))
|
1810
1764
|
] });
|
1811
1765
|
}
|
1812
1766
|
|
1813
1767
|
// src/components/Layouts/HtmlWrapper/MyHtmlWrapper.tsx
|
1814
1768
|
import { ScrollArea, TypographyStylesProvider } from "@mantine/core";
|
1815
1769
|
import pako from "pako";
|
1816
|
-
import { jsx as
|
1770
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
1817
1771
|
function MyHtmlWrapper(_a) {
|
1818
1772
|
var _b = _a, { html, mah, zip = false } = _b, rest = __objRest(_b, ["html", "mah", "zip"]);
|
1819
1773
|
const extractHtmlFromZip = () => {
|
@@ -1822,7 +1776,7 @@ function MyHtmlWrapper(_a) {
|
|
1822
1776
|
const cleanedHtml = decompressedData == null ? void 0 : decompressedData.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
1823
1777
|
return cleanedHtml.replaceAll(" font-family:'Times New Roman'; font-size:1em;", "");
|
1824
1778
|
};
|
1825
|
-
return /* @__PURE__ */
|
1779
|
+
return /* @__PURE__ */ jsx31(ScrollArea.Autosize, { mah, children: /* @__PURE__ */ jsx31(TypographyStylesProvider, __spreadProps(__spreadValues({}, rest), { children: /* @__PURE__ */ jsx31(
|
1826
1780
|
"div",
|
1827
1781
|
{
|
1828
1782
|
dangerouslySetInnerHTML: {
|
@@ -1834,7 +1788,7 @@ function MyHtmlWrapper(_a) {
|
|
1834
1788
|
|
1835
1789
|
// src/components/Buttons/ButtonPrintPDFTable/MyButtonPrintTablePDF.tsx
|
1836
1790
|
import { Box, Table as Table2 } from "@mantine/core";
|
1837
|
-
import { jsx as
|
1791
|
+
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
1838
1792
|
function MyButtonPrintTablePDF(_a) {
|
1839
1793
|
var _b = _a, {
|
1840
1794
|
printConfig,
|
@@ -1860,8 +1814,8 @@ function MyButtonPrintTablePDF(_a) {
|
|
1860
1814
|
};
|
1861
1815
|
const rows = data == null ? void 0 : data.map((item, index) => {
|
1862
1816
|
if (!(printConfig == null ? void 0 : printConfig.fields)) return null;
|
1863
|
-
return /* @__PURE__ */
|
1864
|
-
printConfig.showRowNumbers && /* @__PURE__ */
|
1817
|
+
return /* @__PURE__ */ jsxs19(Table2.Tr, { children: [
|
1818
|
+
printConfig.showRowNumbers && /* @__PURE__ */ jsx32(Table2.Td, { ta: "center", px: "xs", style: { border: "1px solid lightgray" }, children: index + 1 }),
|
1865
1819
|
printConfig.fields.map((field) => {
|
1866
1820
|
let value = item[field.fieldName];
|
1867
1821
|
if (field.formatFunction) {
|
@@ -1871,30 +1825,30 @@ function MyButtonPrintTablePDF(_a) {
|
|
1871
1825
|
}
|
1872
1826
|
const alignment = field.isCenter === false ? "left" : "center";
|
1873
1827
|
if (typeof value === "string" && (value.includes("<") || value.includes("<"))) {
|
1874
|
-
return /* @__PURE__ */
|
1828
|
+
return /* @__PURE__ */ jsx32(
|
1875
1829
|
Table2.Td,
|
1876
1830
|
{
|
1877
1831
|
px: "xs",
|
1878
1832
|
ta: alignment,
|
1879
1833
|
style: { border: "1px solid lightgray" },
|
1880
|
-
children: /* @__PURE__ */
|
1834
|
+
children: /* @__PURE__ */ jsx32(MyHtmlWrapper, { html: value })
|
1881
1835
|
},
|
1882
1836
|
field.fieldName
|
1883
1837
|
);
|
1884
1838
|
}
|
1885
1839
|
if (value === "true" || value === "false") {
|
1886
|
-
return /* @__PURE__ */
|
1840
|
+
return /* @__PURE__ */ jsx32(
|
1887
1841
|
Table2.Td,
|
1888
1842
|
{
|
1889
1843
|
ta: alignment,
|
1890
1844
|
px: "xs",
|
1891
1845
|
style: { border: "1px solid lightgray" },
|
1892
|
-
children: /* @__PURE__ */
|
1846
|
+
children: /* @__PURE__ */ jsx32("input", { type: "checkbox", checked: value === "true", readOnly: true })
|
1893
1847
|
},
|
1894
1848
|
field.fieldName
|
1895
1849
|
);
|
1896
1850
|
}
|
1897
|
-
return /* @__PURE__ */
|
1851
|
+
return /* @__PURE__ */ jsx32(
|
1898
1852
|
Table2.Td,
|
1899
1853
|
{
|
1900
1854
|
ta: alignment,
|
@@ -1918,18 +1872,18 @@ function MyButtonPrintTablePDF(_a) {
|
|
1918
1872
|
minute: "2-digit"
|
1919
1873
|
});
|
1920
1874
|
const tableTitle = (printConfig == null ? void 0 : printConfig.title) || "B\u1EA3ng d\u1EEF li\u1EC7u";
|
1921
|
-
return /* @__PURE__ */
|
1922
|
-
/* @__PURE__ */
|
1875
|
+
return /* @__PURE__ */ jsxs19(Box, { p: "lg", children: [
|
1876
|
+
/* @__PURE__ */ jsxs19("div", { style: { textAlign: "center", marginTop: "10px", fontStyle: "italic", color: "#666" }, children: [
|
1923
1877
|
"Ng\xE0y in: ",
|
1924
1878
|
formattedDate
|
1925
1879
|
] }),
|
1926
|
-
/* @__PURE__ */
|
1927
|
-
/* @__PURE__ */
|
1928
|
-
/* @__PURE__ */
|
1929
|
-
printConfig.showRowNumbers && /* @__PURE__ */
|
1880
|
+
/* @__PURE__ */ jsx32("h2", { style: { textAlign: "center", fontSize: "24px", fontWeight: "bold", marginBottom: "20px" }, children: tableTitle }),
|
1881
|
+
/* @__PURE__ */ jsxs19(Table2, { withColumnBorders: true, highlightOnHover: true, style: { border: "1px solid lightgray" }, children: [
|
1882
|
+
/* @__PURE__ */ jsx32(Table2.Thead, { children: /* @__PURE__ */ jsxs19(Table2.Tr, { children: [
|
1883
|
+
printConfig.showRowNumbers && /* @__PURE__ */ jsx32(Table2.Th, { style: { border: "1px solid lightgray" }, w: "10%", ta: "center", px: "xs", children: "STT" }),
|
1930
1884
|
printConfig.fields.map((field) => {
|
1931
1885
|
const alignment = field.isCenter === false ? "left" : "center";
|
1932
|
-
return /* @__PURE__ */
|
1886
|
+
return /* @__PURE__ */ jsx32(
|
1933
1887
|
Table2.Th,
|
1934
1888
|
{
|
1935
1889
|
style: { border: "1px solid lightgray" },
|
@@ -1941,11 +1895,11 @@ function MyButtonPrintTablePDF(_a) {
|
|
1941
1895
|
);
|
1942
1896
|
})
|
1943
1897
|
] }) }),
|
1944
|
-
/* @__PURE__ */
|
1898
|
+
/* @__PURE__ */ jsx32(Table2.Tbody, { children: rows })
|
1945
1899
|
] })
|
1946
1900
|
] });
|
1947
1901
|
};
|
1948
|
-
return /* @__PURE__ */
|
1902
|
+
return /* @__PURE__ */ jsx32(
|
1949
1903
|
MyButtonPrintPDF,
|
1950
1904
|
__spreadValues({
|
1951
1905
|
contentToPrint: renderContent()
|
@@ -1957,11 +1911,11 @@ function MyButtonPrintTablePDF(_a) {
|
|
1957
1911
|
import { ActionIcon as ActionIcon9 } from "@mantine/core";
|
1958
1912
|
import { IconArrowBack } from "@tabler/icons-react";
|
1959
1913
|
import { useRouter as useRouter2 } from "next/navigation";
|
1960
|
-
import { jsx as
|
1914
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
1961
1915
|
function MyButtonRouterBack(_a) {
|
1962
1916
|
var _b = _a, { url, label } = _b, rest = __objRest(_b, ["url", "label"]);
|
1963
1917
|
const router = useRouter2();
|
1964
|
-
return /* @__PURE__ */
|
1918
|
+
return /* @__PURE__ */ jsx33(
|
1965
1919
|
ActionIcon9,
|
1966
1920
|
__spreadProps(__spreadValues({
|
1967
1921
|
size: "xl",
|
@@ -1974,7 +1928,7 @@ function MyButtonRouterBack(_a) {
|
|
1974
1928
|
router.back();
|
1975
1929
|
}
|
1976
1930
|
}, rest), {
|
1977
|
-
children: /* @__PURE__ */
|
1931
|
+
children: /* @__PURE__ */ jsx33(IconArrowBack, { stroke: 2 })
|
1978
1932
|
})
|
1979
1933
|
);
|
1980
1934
|
}
|
@@ -1990,11 +1944,11 @@ import {
|
|
1990
1944
|
Text as Text6,
|
1991
1945
|
Tooltip as Tooltip4
|
1992
1946
|
} from "@mantine/core";
|
1993
|
-
import { useDisclosure as
|
1947
|
+
import { useDisclosure as useDisclosure10 } from "@mantine/hooks";
|
1994
1948
|
import { IconLivePhoto as IconLivePhoto2, IconMaximize as IconMaximize3, IconMinimize as IconMinimize3 } from "@tabler/icons-react";
|
1995
1949
|
import { useQuery } from "@tanstack/react-query";
|
1996
1950
|
import { useState as useState8 } from "react";
|
1997
|
-
import { Fragment as Fragment11, jsx as
|
1951
|
+
import { Fragment as Fragment11, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
|
1998
1952
|
function MyButtonViewPDF({
|
1999
1953
|
id,
|
2000
1954
|
modalSize = "80%",
|
@@ -2004,7 +1958,7 @@ function MyButtonViewPDF({
|
|
2004
1958
|
filePath
|
2005
1959
|
}) {
|
2006
1960
|
var _a, _b, _c;
|
2007
|
-
const disc =
|
1961
|
+
const disc = useDisclosure10(false);
|
2008
1962
|
const fullScreen = useState8(false);
|
2009
1963
|
const hSize = useState8("80vh");
|
2010
1964
|
const query = useQuery({
|
@@ -2019,57 +1973,57 @@ function MyButtonViewPDF({
|
|
2019
1973
|
},
|
2020
1974
|
enabled: disc[0] == true
|
2021
1975
|
});
|
2022
|
-
return /* @__PURE__ */
|
2023
|
-
/* @__PURE__ */
|
1976
|
+
return /* @__PURE__ */ jsxs20(Fragment11, { children: [
|
1977
|
+
/* @__PURE__ */ jsx34(Tooltip4, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx34(
|
2024
1978
|
ActionIcon10,
|
2025
1979
|
{
|
2026
1980
|
onClick: () => {
|
2027
1981
|
disc[1].open();
|
2028
1982
|
},
|
2029
|
-
children: /* @__PURE__ */
|
1983
|
+
children: /* @__PURE__ */ jsx34(IconLivePhoto2, {})
|
2030
1984
|
}
|
2031
|
-
) : /* @__PURE__ */
|
1985
|
+
) : /* @__PURE__ */ jsx34(
|
2032
1986
|
Button11,
|
2033
1987
|
{
|
2034
1988
|
color: "cyan",
|
2035
1989
|
onClick: () => {
|
2036
1990
|
disc[1].open();
|
2037
1991
|
},
|
2038
|
-
leftSection: /* @__PURE__ */
|
1992
|
+
leftSection: /* @__PURE__ */ jsx34(IconLivePhoto2, {}),
|
2039
1993
|
children: label
|
2040
1994
|
}
|
2041
1995
|
) }),
|
2042
|
-
/* @__PURE__ */
|
1996
|
+
/* @__PURE__ */ jsx34(
|
2043
1997
|
Modal10,
|
2044
1998
|
{
|
2045
1999
|
fullScreen: fullScreen[0],
|
2046
2000
|
opened: disc[0],
|
2047
2001
|
onClose: disc[1].close,
|
2048
2002
|
size: modalSize,
|
2049
|
-
title: /* @__PURE__ */
|
2050
|
-
/* @__PURE__ */
|
2051
|
-
fullScreen[0] ? /* @__PURE__ */
|
2003
|
+
title: /* @__PURE__ */ jsxs20(Group9, { children: [
|
2004
|
+
/* @__PURE__ */ jsx34(Text6, { children: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp" }),
|
2005
|
+
fullScreen[0] ? /* @__PURE__ */ jsx34(
|
2052
2006
|
ActionIcon10,
|
2053
2007
|
{
|
2054
2008
|
onClick: () => {
|
2055
2009
|
fullScreen[1](false);
|
2056
2010
|
hSize[1]("80vh");
|
2057
2011
|
},
|
2058
|
-
children: /* @__PURE__ */
|
2012
|
+
children: /* @__PURE__ */ jsx34(IconMinimize3, {})
|
2059
2013
|
}
|
2060
|
-
) : /* @__PURE__ */
|
2014
|
+
) : /* @__PURE__ */ jsx34(
|
2061
2015
|
ActionIcon10,
|
2062
2016
|
{
|
2063
2017
|
onClick: () => {
|
2064
2018
|
fullScreen[1](true);
|
2065
2019
|
hSize[1]("90vh");
|
2066
2020
|
},
|
2067
|
-
children: /* @__PURE__ */
|
2021
|
+
children: /* @__PURE__ */ jsx34(IconMaximize3, {})
|
2068
2022
|
}
|
2069
2023
|
)
|
2070
2024
|
] }),
|
2071
|
-
children: /* @__PURE__ */
|
2072
|
-
/* @__PURE__ */
|
2025
|
+
children: /* @__PURE__ */ jsxs20(Paper3, { h: hSize[0], p: "lg", pos: "relative", children: [
|
2026
|
+
/* @__PURE__ */ jsx34(
|
2073
2027
|
LoadingOverlay,
|
2074
2028
|
{
|
2075
2029
|
visible: query.isLoading,
|
@@ -2077,14 +2031,14 @@ function MyButtonViewPDF({
|
|
2077
2031
|
overlayProps: { radius: "sm", blur: 2 }
|
2078
2032
|
}
|
2079
2033
|
),
|
2080
|
-
query.data ? /* @__PURE__ */
|
2034
|
+
query.data ? /* @__PURE__ */ jsx34(
|
2081
2035
|
"iframe",
|
2082
2036
|
{
|
2083
2037
|
src: `data:application/pdf;base64, ${filePath ? (_a = query.data) == null ? void 0 : _a.fileBase64String : (_c = (_b = query.data) == null ? void 0 : _b.fileDetail) == null ? void 0 : _c.fileBase64String}`,
|
2084
2038
|
width: "100%",
|
2085
2039
|
height: "100%"
|
2086
2040
|
}
|
2087
|
-
) : /* @__PURE__ */
|
2041
|
+
) : /* @__PURE__ */ jsx34("iframe", { src, width: "100%", height: "100%" })
|
2088
2042
|
] })
|
2089
2043
|
}
|
2090
2044
|
)
|
@@ -6387,7 +6341,7 @@ import { ScheduleXCalendar, useNextCalendarApp } from "@schedule-x/react";
|
|
6387
6341
|
import { Paper as Paper4, Text as Text7 } from "@mantine/core";
|
6388
6342
|
import "@schedule-x/theme-default/dist/index.css";
|
6389
6343
|
import { useEffect as useEffect6 } from "react";
|
6390
|
-
import { jsx as
|
6344
|
+
import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
6391
6345
|
function MyCalendar() {
|
6392
6346
|
const plugins = [createEventsServicePlugin(), createEventModalPlugin()];
|
6393
6347
|
const calendar = useNextCalendarApp({
|
@@ -6461,16 +6415,16 @@ function MyCalendar() {
|
|
6461
6415
|
useEffect6(() => {
|
6462
6416
|
calendar == null ? void 0 : calendar.events.getAll();
|
6463
6417
|
}, []);
|
6464
|
-
return /* @__PURE__ */
|
6418
|
+
return /* @__PURE__ */ jsx35("div", { children: /* @__PURE__ */ jsx35(ScheduleXCalendar, { calendarApp: calendar, customComponents: {
|
6465
6419
|
timeGridEvent: ({ calendarEvent }) => {
|
6466
6420
|
console.log(calendarEvent);
|
6467
|
-
return /* @__PURE__ */
|
6468
|
-
/* @__PURE__ */
|
6421
|
+
return /* @__PURE__ */ jsx35(Paper4, { h: "100%", bg: calendarEvent.laLichThi ? "violet.2" : "blue.2", p: 4, children: /* @__PURE__ */ jsxs21(MyFlexColumn, { gap: 1, children: [
|
6422
|
+
/* @__PURE__ */ jsxs21(Text7, { size: "sm", fw: "bold", children: [
|
6469
6423
|
calendarEvent.laLichThi ? "(Thi) " : "(H\u1ECDc) ",
|
6470
6424
|
calendarEvent.title
|
6471
6425
|
] }),
|
6472
|
-
calendarEvent.laLichThi == false && /* @__PURE__ */
|
6473
|
-
/* @__PURE__ */
|
6426
|
+
calendarEvent.laLichThi == false && /* @__PURE__ */ jsx35(Text7, { size: "sm", children: calendarEvent.giangvien }),
|
6427
|
+
/* @__PURE__ */ jsx35(Text7, { size: "sm", children: calendarEvent.location })
|
6474
6428
|
] }) });
|
6475
6429
|
}
|
6476
6430
|
// eventModal: ({ calendarEvent }) => {
|
@@ -6485,31 +6439,31 @@ function MyCalendar() {
|
|
6485
6439
|
|
6486
6440
|
// src/components/CenterFull/MyCenterFull.tsx
|
6487
6441
|
import { Center as Center2, Group as Group10 } from "@mantine/core";
|
6488
|
-
import { jsx as
|
6442
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
6489
6443
|
function MyCenterFull({ children }) {
|
6490
|
-
return /* @__PURE__ */
|
6444
|
+
return /* @__PURE__ */ jsx36(Center2, { w: "100%", children: /* @__PURE__ */ jsx36(Group10, { children }) });
|
6491
6445
|
}
|
6492
6446
|
|
6493
6447
|
// src/components/Checkbox/MyCheckbox.tsx
|
6494
6448
|
import { Checkbox as Checkbox2 } from "@mantine/core";
|
6495
|
-
import { jsx as
|
6449
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
6496
6450
|
function MyCheckbox(_a) {
|
6497
6451
|
var rest = __objRest(_a, []);
|
6498
|
-
return /* @__PURE__ */
|
6452
|
+
return /* @__PURE__ */ jsx37(Checkbox2, __spreadValues({}, rest));
|
6499
6453
|
}
|
6500
6454
|
|
6501
6455
|
// src/components/Layouts/FlexRow/MyFlexRow.tsx
|
6502
6456
|
import { Flex as Flex2 } from "@mantine/core";
|
6503
|
-
import { jsx as
|
6457
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
6504
6458
|
function MyFlexRow(_a) {
|
6505
6459
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
6506
|
-
return /* @__PURE__ */
|
6460
|
+
return /* @__PURE__ */ jsx38(Flex2, __spreadProps(__spreadValues({ gap: "md", align: "center" }, rest), { children }));
|
6507
6461
|
}
|
6508
6462
|
|
6509
6463
|
// src/components/DataDisplay/Card/AQCard.tsx
|
6510
6464
|
import { Badge as Badge2, Card, Center as Center3, Image, Text as Text8 } from "@mantine/core";
|
6511
6465
|
import Link from "next/link";
|
6512
|
-
import { jsx as
|
6466
|
+
import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
|
6513
6467
|
function AQCard({
|
6514
6468
|
imgSrc = "https://raw.githubusercontent.com/mantinedev/mantine/master/.demo/images/bg-8.png",
|
6515
6469
|
title,
|
@@ -6519,8 +6473,8 @@ function AQCard({
|
|
6519
6473
|
status,
|
6520
6474
|
href = ""
|
6521
6475
|
}) {
|
6522
|
-
return /* @__PURE__ */
|
6523
|
-
/* @__PURE__ */
|
6476
|
+
return /* @__PURE__ */ jsxs22(Card, { shadow: "sm", padding: "lg", radius: "md", withBorder: true, component: Link, href, children: [
|
6477
|
+
/* @__PURE__ */ jsx39(Card.Section, { children: /* @__PURE__ */ jsx39(Center3, { children: /* @__PURE__ */ jsx39(
|
6524
6478
|
Image,
|
6525
6479
|
{
|
6526
6480
|
src: imgSrc,
|
@@ -6530,11 +6484,11 @@ function AQCard({
|
|
6530
6484
|
alt: "Norway"
|
6531
6485
|
}
|
6532
6486
|
) }) }),
|
6533
|
-
/* @__PURE__ */
|
6534
|
-
/* @__PURE__ */
|
6535
|
-
status && /* @__PURE__ */
|
6487
|
+
/* @__PURE__ */ jsxs22(MyFlexRow, { justify: "space-between", mt: "md", mb: "xs", children: [
|
6488
|
+
/* @__PURE__ */ jsx39(Text8, { fw: 500, children: title }),
|
6489
|
+
status && /* @__PURE__ */ jsx39(Badge2, { color: "violet.5", w: "150px", children: status })
|
6536
6490
|
] }),
|
6537
|
-
/* @__PURE__ */
|
6491
|
+
/* @__PURE__ */ jsx39(Text8, { size: "sm", c: "dimmed", lineClamp: 2, children: description }),
|
6538
6492
|
children
|
6539
6493
|
] });
|
6540
6494
|
}
|
@@ -6542,7 +6496,7 @@ function AQCard({
|
|
6542
6496
|
// src/components/DataDisplay/CardInformation/MyCardInformation.tsx
|
6543
6497
|
import { Box as Box2, Flex as Flex3, Group as Group11, Paper as Paper5, Text as Text9 } from "@mantine/core";
|
6544
6498
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
6545
|
-
import { jsx as
|
6499
|
+
import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
6546
6500
|
function MyCardInformation({
|
6547
6501
|
title,
|
6548
6502
|
value,
|
@@ -6552,16 +6506,16 @@ function MyCardInformation({
|
|
6552
6506
|
diff = 0,
|
6553
6507
|
extraControl
|
6554
6508
|
}) {
|
6555
|
-
return /* @__PURE__ */
|
6509
|
+
return /* @__PURE__ */ jsxs23(
|
6556
6510
|
Paper5,
|
6557
6511
|
{
|
6558
6512
|
withBorder: true,
|
6559
6513
|
p: "md",
|
6560
6514
|
radius: "md",
|
6561
6515
|
children: [
|
6562
|
-
/* @__PURE__ */
|
6563
|
-
/* @__PURE__ */
|
6564
|
-
/* @__PURE__ */
|
6516
|
+
/* @__PURE__ */ jsxs23(Group11, { justify: "space-between", children: [
|
6517
|
+
/* @__PURE__ */ jsxs23(Flex3, { direction: "column", children: [
|
6518
|
+
/* @__PURE__ */ jsx40(
|
6565
6519
|
Text9,
|
6566
6520
|
{
|
6567
6521
|
tt: "uppercase",
|
@@ -6570,24 +6524,24 @@ function MyCardInformation({
|
|
6570
6524
|
children: title
|
6571
6525
|
}
|
6572
6526
|
),
|
6573
|
-
unit == "" ? /* @__PURE__ */
|
6527
|
+
unit == "" ? /* @__PURE__ */ jsxs23(Text9, { size: "xs", style: { visibility: "hidden" }, children: [
|
6574
6528
|
"\u0110\u01A1n v\u1ECB: ",
|
6575
|
-
/* @__PURE__ */
|
6576
|
-
] }) : /* @__PURE__ */
|
6529
|
+
/* @__PURE__ */ jsx40("strong", { children: unit })
|
6530
|
+
] }) : /* @__PURE__ */ jsxs23(Text9, { size: "xs", children: [
|
6577
6531
|
"\u0110\u01A1n v\u1ECB: ",
|
6578
|
-
/* @__PURE__ */
|
6532
|
+
/* @__PURE__ */ jsx40("strong", { children: unit })
|
6579
6533
|
] })
|
6580
6534
|
] }),
|
6581
|
-
/* @__PURE__ */
|
6535
|
+
/* @__PURE__ */ jsx40(Box2, { children: icon })
|
6582
6536
|
] }),
|
6583
|
-
/* @__PURE__ */
|
6537
|
+
/* @__PURE__ */ jsxs23(
|
6584
6538
|
Group11,
|
6585
6539
|
{
|
6586
6540
|
mt: "5",
|
6587
6541
|
align: "flex-end",
|
6588
6542
|
gap: "xs",
|
6589
6543
|
children: [
|
6590
|
-
/* @__PURE__ */
|
6544
|
+
/* @__PURE__ */ jsx40(
|
6591
6545
|
Text9,
|
6592
6546
|
{
|
6593
6547
|
fw: 700,
|
@@ -6595,7 +6549,7 @@ function MyCardInformation({
|
|
6595
6549
|
children: value
|
6596
6550
|
}
|
6597
6551
|
),
|
6598
|
-
/* @__PURE__ */
|
6552
|
+
/* @__PURE__ */ jsxs23(
|
6599
6553
|
Text9,
|
6600
6554
|
{
|
6601
6555
|
mb: "2",
|
@@ -6603,19 +6557,19 @@ function MyCardInformation({
|
|
6603
6557
|
fz: "h2",
|
6604
6558
|
fw: 500,
|
6605
6559
|
children: [
|
6606
|
-
/* @__PURE__ */
|
6560
|
+
/* @__PURE__ */ jsxs23("span", { children: [
|
6607
6561
|
diff,
|
6608
6562
|
"%"
|
6609
6563
|
] }),
|
6610
|
-
diff > 0 ? /* @__PURE__ */
|
6564
|
+
diff > 0 ? /* @__PURE__ */ jsx40(IconArrowUpRight, {}) : /* @__PURE__ */ jsx40(IconArrowDownRight, {})
|
6611
6565
|
]
|
6612
6566
|
}
|
6613
6567
|
)
|
6614
6568
|
]
|
6615
6569
|
}
|
6616
6570
|
),
|
6617
|
-
/* @__PURE__ */
|
6618
|
-
/* @__PURE__ */
|
6571
|
+
/* @__PURE__ */ jsxs23(Group11, { justify: "space-between", children: [
|
6572
|
+
/* @__PURE__ */ jsx40(Text9, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6619
6573
|
extraControl
|
6620
6574
|
] })
|
6621
6575
|
]
|
@@ -6626,50 +6580,50 @@ function MyCardInformation({
|
|
6626
6580
|
|
6627
6581
|
// src/components/DataDisplay/IconText/MyIconText.tsx
|
6628
6582
|
import { Group as Group12, Text as Text10 } from "@mantine/core";
|
6629
|
-
import { jsx as
|
6583
|
+
import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
|
6630
6584
|
function MyIconText({ icon: Icon, text }) {
|
6631
|
-
return /* @__PURE__ */
|
6632
|
-
Icon && /* @__PURE__ */
|
6633
|
-
/* @__PURE__ */
|
6585
|
+
return /* @__PURE__ */ jsxs24(Group12, { wrap: "nowrap", gap: 10, mt: 3, children: [
|
6586
|
+
Icon && /* @__PURE__ */ jsx41(Icon, { stroke: 1.5, size: 16 }),
|
6587
|
+
/* @__PURE__ */ jsx41(Text10, { fz: "lg", c: "dimmed", children: text })
|
6634
6588
|
] });
|
6635
6589
|
}
|
6636
6590
|
|
6637
6591
|
// src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
|
6638
6592
|
import { Group as Group13, Text as Text11 } from "@mantine/core";
|
6639
|
-
import { jsx as
|
6593
|
+
import { jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
|
6640
6594
|
function MyKeyLabel({ keyLabel, label }) {
|
6641
|
-
return /* @__PURE__ */
|
6642
|
-
/* @__PURE__ */
|
6595
|
+
return /* @__PURE__ */ jsxs25(Group13, { gap: 5, children: [
|
6596
|
+
/* @__PURE__ */ jsxs25(Text11, { fw: "bold", children: [
|
6643
6597
|
keyLabel,
|
6644
6598
|
":"
|
6645
6599
|
] }),
|
6646
|
-
/* @__PURE__ */
|
6600
|
+
/* @__PURE__ */ jsx42(Text11, { children: label })
|
6647
6601
|
] });
|
6648
6602
|
}
|
6649
6603
|
|
6650
6604
|
// src/components/DataDisplay/NumberFormatter/MyNumberFormatter.tsx
|
6651
6605
|
import { NumberFormatter } from "@mantine/core";
|
6652
|
-
import { jsx as
|
6606
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
6653
6607
|
function MyNumberFormatter(_a) {
|
6654
6608
|
var rest = __objRest(_a, []);
|
6655
|
-
return /* @__PURE__ */
|
6609
|
+
return /* @__PURE__ */ jsx43(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
6656
6610
|
}
|
6657
6611
|
|
6658
6612
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
6659
6613
|
import { Box as Box3, Button as Button13, Flex as Flex4, Group as Group14, Paper as Paper6, Text as Text12 } from "@mantine/core";
|
6660
6614
|
import { IconArrowDownRight as IconArrowDownRight2, IconArrowUpRight as IconArrowUpRight2 } from "@tabler/icons-react";
|
6661
|
-
import { Fragment as Fragment12, jsx as
|
6615
|
+
import { Fragment as Fragment12, jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
|
6662
6616
|
function AQStatCard1({ title, value, unit = "", description, icons, diff }) {
|
6663
|
-
return /* @__PURE__ */
|
6617
|
+
return /* @__PURE__ */ jsx44(Fragment12, { children: /* @__PURE__ */ jsxs26(
|
6664
6618
|
Paper6,
|
6665
6619
|
{
|
6666
6620
|
withBorder: true,
|
6667
6621
|
p: "md",
|
6668
6622
|
radius: "md",
|
6669
6623
|
children: [
|
6670
|
-
/* @__PURE__ */
|
6671
|
-
/* @__PURE__ */
|
6672
|
-
/* @__PURE__ */
|
6624
|
+
/* @__PURE__ */ jsxs26(Group14, { justify: "space-between", children: [
|
6625
|
+
/* @__PURE__ */ jsxs26(Flex4, { direction: "column", children: [
|
6626
|
+
/* @__PURE__ */ jsx44(
|
6673
6627
|
Text12,
|
6674
6628
|
{
|
6675
6629
|
tt: "uppercase",
|
@@ -6678,24 +6632,24 @@ function AQStatCard1({ title, value, unit = "", description, icons, diff }) {
|
|
6678
6632
|
children: title
|
6679
6633
|
}
|
6680
6634
|
),
|
6681
|
-
unit == "" ? /* @__PURE__ */
|
6635
|
+
unit == "" ? /* @__PURE__ */ jsxs26(Text12, { size: "xs", style: { visibility: "hidden" }, children: [
|
6682
6636
|
"\u0110\u01A1n v\u1ECB: ",
|
6683
|
-
/* @__PURE__ */
|
6684
|
-
] }) : /* @__PURE__ */
|
6637
|
+
/* @__PURE__ */ jsx44("strong", { children: unit })
|
6638
|
+
] }) : /* @__PURE__ */ jsxs26(Text12, { size: "xs", children: [
|
6685
6639
|
"\u0110\u01A1n v\u1ECB: ",
|
6686
|
-
/* @__PURE__ */
|
6640
|
+
/* @__PURE__ */ jsx44("strong", { children: unit })
|
6687
6641
|
] })
|
6688
6642
|
] }),
|
6689
|
-
/* @__PURE__ */
|
6643
|
+
/* @__PURE__ */ jsx44(Box3, { children: icons })
|
6690
6644
|
] }),
|
6691
|
-
/* @__PURE__ */
|
6645
|
+
/* @__PURE__ */ jsxs26(
|
6692
6646
|
Group14,
|
6693
6647
|
{
|
6694
6648
|
mt: "5",
|
6695
6649
|
align: "flex-end",
|
6696
6650
|
gap: "xs",
|
6697
6651
|
children: [
|
6698
|
-
/* @__PURE__ */
|
6652
|
+
/* @__PURE__ */ jsx44(
|
6699
6653
|
Text12,
|
6700
6654
|
{
|
6701
6655
|
fw: 700,
|
@@ -6703,7 +6657,7 @@ function AQStatCard1({ title, value, unit = "", description, icons, diff }) {
|
|
6703
6657
|
children: value
|
6704
6658
|
}
|
6705
6659
|
),
|
6706
|
-
/* @__PURE__ */
|
6660
|
+
/* @__PURE__ */ jsxs26(
|
6707
6661
|
Text12,
|
6708
6662
|
{
|
6709
6663
|
mb: "2",
|
@@ -6711,20 +6665,20 @@ function AQStatCard1({ title, value, unit = "", description, icons, diff }) {
|
|
6711
6665
|
fz: "h2",
|
6712
6666
|
fw: 500,
|
6713
6667
|
children: [
|
6714
|
-
/* @__PURE__ */
|
6668
|
+
/* @__PURE__ */ jsxs26("span", { children: [
|
6715
6669
|
diff,
|
6716
6670
|
"%"
|
6717
6671
|
] }),
|
6718
|
-
diff > 0 ? /* @__PURE__ */
|
6672
|
+
diff > 0 ? /* @__PURE__ */ jsx44(IconArrowUpRight2, {}) : /* @__PURE__ */ jsx44(IconArrowDownRight2, {})
|
6719
6673
|
]
|
6720
6674
|
}
|
6721
6675
|
)
|
6722
6676
|
]
|
6723
6677
|
}
|
6724
6678
|
),
|
6725
|
-
/* @__PURE__ */
|
6726
|
-
/* @__PURE__ */
|
6727
|
-
/* @__PURE__ */
|
6679
|
+
/* @__PURE__ */ jsxs26(Group14, { justify: "space-between", children: [
|
6680
|
+
/* @__PURE__ */ jsx44(Text12, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6681
|
+
/* @__PURE__ */ jsx44(
|
6728
6682
|
Button13,
|
6729
6683
|
{
|
6730
6684
|
variant: "light",
|
@@ -6815,13 +6769,13 @@ function FaviconSetter() {
|
|
6815
6769
|
|
6816
6770
|
// src/components/Inputs/DateInput/MyDateInput.tsx
|
6817
6771
|
import { DateInput } from "@mantine/dates";
|
6818
|
-
import { jsx as
|
6772
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
6819
6773
|
function MyDateInput(_a) {
|
6820
6774
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6821
|
-
return /* @__PURE__ */
|
6775
|
+
return /* @__PURE__ */ jsx45(DateInput, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6822
6776
|
}
|
6823
6777
|
|
6824
|
-
// src/
|
6778
|
+
// src/const/enum/global.ts
|
6825
6779
|
var ENUM_DAYS_OF_WEEK = /* @__PURE__ */ ((ENUM_DAYS_OF_WEEK2) => {
|
6826
6780
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 Hai"] = 1] = "Th\u1EE9 Hai";
|
6827
6781
|
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 Ba"] = 2] = "Th\u1EE9 Ba";
|
@@ -6835,7 +6789,7 @@ var ENUM_DAYS_OF_WEEK = /* @__PURE__ */ ((ENUM_DAYS_OF_WEEK2) => {
|
|
6835
6789
|
|
6836
6790
|
// src/components/Inputs/DayOfWeekPicker/MyDayOfWeekPicker.tsx
|
6837
6791
|
import { Badge as Badge3, Group as Group15, Text as Text13 } from "@mantine/core";
|
6838
|
-
import { jsx as
|
6792
|
+
import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
|
6839
6793
|
var days = Object.entries(ENUM_DAYS_OF_WEEK).filter(([key]) => isNaN(Number(key))).map(([label, value]) => ({ label, value }));
|
6840
6794
|
function MyDayOfWeekPicker({ value = [], onChange }) {
|
6841
6795
|
const toggle = (val) => {
|
@@ -6843,9 +6797,9 @@ function MyDayOfWeekPicker({ value = [], onChange }) {
|
|
6843
6797
|
const newValue = value.includes(val) ? value.filter((v5) => v5 !== val) : [...value, val];
|
6844
6798
|
onChange(newValue);
|
6845
6799
|
};
|
6846
|
-
return /* @__PURE__ */
|
6847
|
-
/* @__PURE__ */
|
6848
|
-
/* @__PURE__ */
|
6800
|
+
return /* @__PURE__ */ jsxs27(MyFlexRow, { align: "center", children: [
|
6801
|
+
/* @__PURE__ */ jsx46(Text13, { children: "Danh s\xE1ch th\u1EE9: " }),
|
6802
|
+
/* @__PURE__ */ jsx46(Group15, { gap: "xs", children: days.map((d5) => /* @__PURE__ */ jsx46(
|
6849
6803
|
Badge3,
|
6850
6804
|
{
|
6851
6805
|
variant: value.includes(d5.value) ? "filled" : "outline",
|
@@ -6868,7 +6822,7 @@ import {
|
|
6868
6822
|
Text as Text14,
|
6869
6823
|
useMantineColorScheme as useMantineColorScheme2
|
6870
6824
|
} from "@mantine/core";
|
6871
|
-
import { jsx as
|
6825
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
|
6872
6826
|
function MyFieldset(_a) {
|
6873
6827
|
var _b = _a, {
|
6874
6828
|
children,
|
@@ -6897,10 +6851,10 @@ function MyFieldset(_a) {
|
|
6897
6851
|
const mergedStyles = typeof styles === "function" ? styles : __spreadProps(__spreadValues({}, styles), {
|
6898
6852
|
legend: __spreadValues(__spreadValues({}, defaultLegendStyles), styles == null ? void 0 : styles.legend)
|
6899
6853
|
});
|
6900
|
-
return /* @__PURE__ */
|
6854
|
+
return /* @__PURE__ */ jsx47(
|
6901
6855
|
Fieldset4,
|
6902
6856
|
__spreadProps(__spreadValues({
|
6903
|
-
legend: customLegend != null ? customLegend : /* @__PURE__ */
|
6857
|
+
legend: customLegend != null ? customLegend : /* @__PURE__ */ jsx47(Group16, { gap: "xs", children: /* @__PURE__ */ jsxs28(Text14, { fw: 600, children: [
|
6904
6858
|
" ",
|
6905
6859
|
title,
|
6906
6860
|
" "
|
@@ -6915,13 +6869,13 @@ function MyFieldset(_a) {
|
|
6915
6869
|
// src/components/Inputs/FileInput/MyFileInput.tsx
|
6916
6870
|
import { FileInput as FileInput3 } from "@mantine/core";
|
6917
6871
|
import { IconFile } from "@tabler/icons-react";
|
6918
|
-
import { jsx as
|
6872
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
6919
6873
|
function MyFileInput(_a) {
|
6920
6874
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6921
|
-
return /* @__PURE__ */
|
6875
|
+
return /* @__PURE__ */ jsx48(
|
6922
6876
|
FileInput3,
|
6923
6877
|
__spreadValues({
|
6924
|
-
rightSection: /* @__PURE__ */
|
6878
|
+
rightSection: /* @__PURE__ */ jsx48(IconFile, {}),
|
6925
6879
|
label,
|
6926
6880
|
placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : ""
|
6927
6881
|
}, rest)
|
@@ -6930,10 +6884,10 @@ function MyFileInput(_a) {
|
|
6930
6884
|
|
6931
6885
|
// src/components/Inputs/NumberInput/MyNumberInput.tsx
|
6932
6886
|
import { NumberInput as NumberInput2 } from "@mantine/core";
|
6933
|
-
import { jsx as
|
6887
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
6934
6888
|
function MyNumberInput(_a) {
|
6935
6889
|
var _b = _a, { minValue, label } = _b, rest = __objRest(_b, ["minValue", "label"]);
|
6936
|
-
return /* @__PURE__ */
|
6890
|
+
return /* @__PURE__ */ jsx49(
|
6937
6891
|
NumberInput2,
|
6938
6892
|
__spreadValues({
|
6939
6893
|
label,
|
@@ -6945,10 +6899,10 @@ function MyNumberInput(_a) {
|
|
6945
6899
|
|
6946
6900
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
6947
6901
|
import { Textarea } from "@mantine/core";
|
6948
|
-
import { jsx as
|
6902
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
6949
6903
|
function MyTextArea(_a) {
|
6950
6904
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6951
|
-
return /* @__PURE__ */
|
6905
|
+
return /* @__PURE__ */ jsx50(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6952
6906
|
}
|
6953
6907
|
|
6954
6908
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
@@ -6964,7 +6918,7 @@ import Underline from "@tiptap/extension-underline";
|
|
6964
6918
|
import { useEditor } from "@tiptap/react";
|
6965
6919
|
import StarterKit from "@tiptap/starter-kit";
|
6966
6920
|
import { useEffect as useEffect8, useState as useState9 } from "react";
|
6967
|
-
import { jsx as
|
6921
|
+
import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
|
6968
6922
|
function MyTextEditor(_a) {
|
6969
6923
|
var _b = _a, {
|
6970
6924
|
autoHiddenToolBar = false,
|
@@ -7066,43 +7020,43 @@ function MyTextEditor(_a) {
|
|
7066
7020
|
editor.commands.setContent(value);
|
7067
7021
|
}
|
7068
7022
|
}, [value, editor]);
|
7069
|
-
return /* @__PURE__ */
|
7070
|
-
/* @__PURE__ */
|
7071
|
-
/* @__PURE__ */
|
7072
|
-
/* @__PURE__ */
|
7073
|
-
/* @__PURE__ */
|
7074
|
-
/* @__PURE__ */
|
7075
|
-
/* @__PURE__ */
|
7076
|
-
/* @__PURE__ */
|
7077
|
-
/* @__PURE__ */
|
7078
|
-
/* @__PURE__ */
|
7023
|
+
return /* @__PURE__ */ jsx51(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs29(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
7024
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
7025
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7026
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Bold, {}),
|
7027
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Italic, {}),
|
7028
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Underline, {}),
|
7029
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Strikethrough, {}),
|
7030
|
+
/* @__PURE__ */ jsx51(RichTextEditor.ClearFormatting, {}),
|
7031
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Highlight, {}),
|
7032
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Code, {})
|
7079
7033
|
] }),
|
7080
|
-
/* @__PURE__ */
|
7081
|
-
/* @__PURE__ */
|
7082
|
-
/* @__PURE__ */
|
7083
|
-
/* @__PURE__ */
|
7084
|
-
/* @__PURE__ */
|
7034
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7035
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H1, {}),
|
7036
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H2, {}),
|
7037
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H3, {}),
|
7038
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H4, {})
|
7085
7039
|
] }),
|
7086
|
-
/* @__PURE__ */
|
7087
|
-
/* @__PURE__ */
|
7088
|
-
/* @__PURE__ */
|
7089
|
-
/* @__PURE__ */
|
7090
|
-
/* @__PURE__ */
|
7091
|
-
/* @__PURE__ */
|
7092
|
-
/* @__PURE__ */
|
7040
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7041
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Blockquote, {}),
|
7042
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Hr, {}),
|
7043
|
+
/* @__PURE__ */ jsx51(RichTextEditor.BulletList, {}),
|
7044
|
+
/* @__PURE__ */ jsx51(RichTextEditor.OrderedList, {}),
|
7045
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Subscript, {}),
|
7046
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Superscript, {})
|
7093
7047
|
] }),
|
7094
|
-
/* @__PURE__ */
|
7095
|
-
/* @__PURE__ */
|
7096
|
-
/* @__PURE__ */
|
7048
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7049
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Link, {}),
|
7050
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Unlink, {})
|
7097
7051
|
] }),
|
7098
|
-
/* @__PURE__ */
|
7099
|
-
/* @__PURE__ */
|
7100
|
-
/* @__PURE__ */
|
7101
|
-
/* @__PURE__ */
|
7102
|
-
/* @__PURE__ */
|
7052
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7053
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignLeft, {}),
|
7054
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignCenter, {}),
|
7055
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignJustify, {}),
|
7056
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignRight, {})
|
7103
7057
|
] })
|
7104
7058
|
] }),
|
7105
|
-
/* @__PURE__ */
|
7059
|
+
/* @__PURE__ */ jsx51(
|
7106
7060
|
ScrollArea2.Autosize,
|
7107
7061
|
{
|
7108
7062
|
onMouseDown: () => {
|
@@ -7117,13 +7071,13 @@ function MyTextEditor(_a) {
|
|
7117
7071
|
setHiddenToolBar(false);
|
7118
7072
|
},
|
7119
7073
|
style: { cursor: "text", maxHeight: "400px" },
|
7120
|
-
children: /* @__PURE__ */
|
7074
|
+
children: /* @__PURE__ */ jsx51(RichTextEditor.Content, { mih: contentHeight })
|
7121
7075
|
}
|
7122
7076
|
)
|
7123
7077
|
] }) });
|
7124
7078
|
}
|
7125
7079
|
|
7126
|
-
// src/
|
7080
|
+
// src/const/object/object_colors.ts
|
7127
7081
|
var object_colors = {
|
7128
7082
|
mantineBackgroundPrimary: "light-dark(var(--mantine-color-white), var(--mantine-color-dark))",
|
7129
7083
|
mantineBackgroundSecondary: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7143,7 +7097,7 @@ import {
|
|
7143
7097
|
} from "@mantine/core";
|
7144
7098
|
import { IconPlus as IconPlus5, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
7145
7099
|
import { useState as useState10 } from "react";
|
7146
|
-
import { jsx as
|
7100
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
7147
7101
|
function MyWeeklySessionSchedulerPicker({
|
7148
7102
|
value = [],
|
7149
7103
|
onChange
|
@@ -7174,8 +7128,8 @@ function MyWeeklySessionSchedulerPicker({
|
|
7174
7128
|
return acc;
|
7175
7129
|
}, {});
|
7176
7130
|
const getLabel = (day) => ENUM_DAYS_OF_WEEK[day] || `Day ${day}`;
|
7177
|
-
return /* @__PURE__ */
|
7178
|
-
/* @__PURE__ */
|
7131
|
+
return /* @__PURE__ */ jsx52(Paper7, { w: "100%", p: "md", children: /* @__PURE__ */ jsxs30(MyFlexColumn, { children: [
|
7132
|
+
/* @__PURE__ */ jsx52(Center4, { children: /* @__PURE__ */ jsx52(
|
7179
7133
|
MyDayOfWeekPicker,
|
7180
7134
|
{
|
7181
7135
|
value: selectedDays,
|
@@ -7185,41 +7139,41 @@ function MyWeeklySessionSchedulerPicker({
|
|
7185
7139
|
}
|
7186
7140
|
}
|
7187
7141
|
) }),
|
7188
|
-
/* @__PURE__ */
|
7189
|
-
/* @__PURE__ */
|
7142
|
+
/* @__PURE__ */ jsx52(Divider2, { my: "xs" }),
|
7143
|
+
/* @__PURE__ */ jsx52(Center4, { children: /* @__PURE__ */ jsx52(ScrollArea3.Autosize, { h: "40vh", children: /* @__PURE__ */ jsx52(MyFlexColumn, { w: { base: "100%", sm: "70%" }, children: selectedDays.map((dayOfWeek) => {
|
7190
7144
|
var _a;
|
7191
|
-
return /* @__PURE__ */
|
7145
|
+
return /* @__PURE__ */ jsxs30(
|
7192
7146
|
Paper7,
|
7193
7147
|
{
|
7194
7148
|
w: "100%",
|
7195
7149
|
p: "md",
|
7196
7150
|
bg: object_colors.mantineBackgroundBlueLight,
|
7197
7151
|
children: [
|
7198
|
-
/* @__PURE__ */
|
7199
|
-
/* @__PURE__ */
|
7200
|
-
/* @__PURE__ */
|
7152
|
+
/* @__PURE__ */ jsxs30(Group17, { gap: "apart", children: [
|
7153
|
+
/* @__PURE__ */ jsx52(Text15, { w: "70px", fw: 500, children: getLabel(dayOfWeek) }),
|
7154
|
+
/* @__PURE__ */ jsx52(
|
7201
7155
|
Button14,
|
7202
7156
|
{
|
7203
7157
|
color: "teal.5",
|
7204
|
-
leftSection: /* @__PURE__ */
|
7158
|
+
leftSection: /* @__PURE__ */ jsx52(IconPlus5, { size: 14 }),
|
7205
7159
|
onClick: () => handleAddSession(dayOfWeek),
|
7206
7160
|
children: "Th\xEAm bu\u1ED5i"
|
7207
7161
|
}
|
7208
7162
|
)
|
7209
7163
|
] }),
|
7210
|
-
/* @__PURE__ */
|
7164
|
+
/* @__PURE__ */ jsx52(Divider2, { my: "sm" }),
|
7211
7165
|
(_a = grouped[dayOfWeek]) == null ? void 0 : _a.map((item, indexInDay) => {
|
7212
7166
|
const globalIndex = value.findIndex(
|
7213
7167
|
(v5) => v5 === item
|
7214
7168
|
);
|
7215
|
-
return /* @__PURE__ */
|
7169
|
+
return /* @__PURE__ */ jsxs30(
|
7216
7170
|
Group17,
|
7217
7171
|
{
|
7218
7172
|
mt: "xs",
|
7219
7173
|
gap: "xs",
|
7220
7174
|
align: "flex-end",
|
7221
7175
|
children: [
|
7222
|
-
/* @__PURE__ */
|
7176
|
+
/* @__PURE__ */ jsx52(
|
7223
7177
|
NumberInput3,
|
7224
7178
|
{
|
7225
7179
|
label: "Ti\u1EBFt b\u1EAFt \u0111\u1EA7u",
|
@@ -7231,7 +7185,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
7231
7185
|
)
|
7232
7186
|
}
|
7233
7187
|
),
|
7234
|
-
/* @__PURE__ */
|
7188
|
+
/* @__PURE__ */ jsx52(
|
7235
7189
|
NumberInput3,
|
7236
7190
|
{
|
7237
7191
|
label: "S\u1ED1 ti\u1EBFt",
|
@@ -7243,7 +7197,7 @@ function MyWeeklySessionSchedulerPicker({
|
|
7243
7197
|
)
|
7244
7198
|
}
|
7245
7199
|
),
|
7246
|
-
/* @__PURE__ */
|
7200
|
+
/* @__PURE__ */ jsx52(
|
7247
7201
|
NumberInput3,
|
7248
7202
|
{
|
7249
7203
|
label: "S\u1ED1 ph\xFAt ",
|
@@ -7252,13 +7206,13 @@ function MyWeeklySessionSchedulerPicker({
|
|
7252
7206
|
value: item.durationMinutes
|
7253
7207
|
}
|
7254
7208
|
),
|
7255
|
-
/* @__PURE__ */
|
7209
|
+
/* @__PURE__ */ jsx52(
|
7256
7210
|
Button14,
|
7257
7211
|
{
|
7258
7212
|
variant: "light",
|
7259
7213
|
color: "red",
|
7260
7214
|
onClick: () => handleRemove(globalIndex),
|
7261
|
-
leftSection: /* @__PURE__ */
|
7215
|
+
leftSection: /* @__PURE__ */ jsx52(IconTrash5, { size: 14 }),
|
7262
7216
|
children: "X\xF3a bu\u1ED5i"
|
7263
7217
|
}
|
7264
7218
|
)
|
@@ -7291,14 +7245,14 @@ function useS_authenticate() {
|
|
7291
7245
|
}
|
7292
7246
|
|
7293
7247
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
7294
|
-
import { jsx as
|
7248
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
7295
7249
|
function F_authenticate_Logout({ redirectURL = "/auth/login" }) {
|
7296
7250
|
const router = useRouter3();
|
7297
7251
|
const S_Authenticate = useS_authenticate();
|
7298
|
-
return /* @__PURE__ */
|
7252
|
+
return /* @__PURE__ */ jsx53(Button15, { onClick: () => {
|
7299
7253
|
S_Authenticate.setProperty("token", "");
|
7300
7254
|
router.replace(redirectURL);
|
7301
|
-
}, leftSection: /* @__PURE__ */
|
7255
|
+
}, leftSection: /* @__PURE__ */ jsx53(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
7302
7256
|
}
|
7303
7257
|
|
7304
7258
|
// src/components/Layouts/BasicAppShell/BasicAppShell.tsx
|
@@ -7323,7 +7277,7 @@ import {
|
|
7323
7277
|
import Link3 from "next/link";
|
7324
7278
|
import { usePathname as usePathname2 } from "next/navigation";
|
7325
7279
|
import { useEffect as useEffect9, useMemo as useMemo3, useState as useState11 } from "react";
|
7326
|
-
import { Fragment as Fragment13, jsx as
|
7280
|
+
import { Fragment as Fragment13, jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
|
7327
7281
|
function findBreadcrumbPath(items, currentPath, parents = []) {
|
7328
7282
|
for (const item of items) {
|
7329
7283
|
if (item.link === currentPath) {
|
@@ -7338,13 +7292,13 @@ function findBreadcrumbPath(items, currentPath, parents = []) {
|
|
7338
7292
|
}
|
7339
7293
|
function getRightSection(status) {
|
7340
7294
|
if (status === "Prototype")
|
7341
|
-
return /* @__PURE__ */
|
7295
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
7342
7296
|
if (status === "New")
|
7343
|
-
return /* @__PURE__ */
|
7297
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
7344
7298
|
if (status === "Menu")
|
7345
|
-
return /* @__PURE__ */
|
7299
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
7346
7300
|
if (status === "Change")
|
7347
|
-
return /* @__PURE__ */
|
7301
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
7348
7302
|
return null;
|
7349
7303
|
}
|
7350
7304
|
function RenderNavLinks({
|
@@ -7352,14 +7306,14 @@ function RenderNavLinks({
|
|
7352
7306
|
}) {
|
7353
7307
|
const basicAppShellStore = useS_BasicAppShell();
|
7354
7308
|
const pathName = usePathname2();
|
7355
|
-
return /* @__PURE__ */
|
7309
|
+
return /* @__PURE__ */ jsx54(Fragment13, { children: items.map((item, index) => /* @__PURE__ */ jsx54(
|
7356
7310
|
NavLink,
|
7357
7311
|
{
|
7358
7312
|
active: item.link === pathName.split("/")[2],
|
7359
7313
|
component: Link3,
|
7360
7314
|
opened: basicAppShellStore.state.groupMenuOpenId.includes(item.label),
|
7361
7315
|
href: `/${pathName.split("/")[1]}/${item.link}` || "#",
|
7362
|
-
label: /* @__PURE__ */
|
7316
|
+
label: /* @__PURE__ */ jsxs31(MyFlexRow, { justify: "space-between", children: [
|
7363
7317
|
item.label,
|
7364
7318
|
" ",
|
7365
7319
|
getRightSection(item.status)
|
@@ -7371,7 +7325,7 @@ function RenderNavLinks({
|
|
7371
7325
|
return;
|
7372
7326
|
}
|
7373
7327
|
},
|
7374
|
-
children: item.links && /* @__PURE__ */
|
7328
|
+
children: item.links && /* @__PURE__ */ jsx54(RenderNavLinks, { items: item.links })
|
7375
7329
|
},
|
7376
7330
|
index
|
7377
7331
|
)) });
|
@@ -7494,7 +7448,7 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7494
7448
|
basicAppShellStore.setProperty("note", linkItem == null ? void 0 : linkItem.note);
|
7495
7449
|
basicAppShellStore.setProperty("status", linkItem == null ? void 0 : linkItem.status);
|
7496
7450
|
}, [pathName]);
|
7497
|
-
return /* @__PURE__ */
|
7451
|
+
return /* @__PURE__ */ jsxs31(
|
7498
7452
|
AppShell,
|
7499
7453
|
{
|
7500
7454
|
header: { height: 60 },
|
@@ -7508,36 +7462,36 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7508
7462
|
},
|
7509
7463
|
padding: "md",
|
7510
7464
|
children: [
|
7511
|
-
/* @__PURE__ */
|
7512
|
-
/* @__PURE__ */
|
7513
|
-
/* @__PURE__ */
|
7465
|
+
/* @__PURE__ */ jsx54(AppShell.Header, { children: media ? /* @__PURE__ */ jsxs31(Group18, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
7466
|
+
/* @__PURE__ */ jsxs31(Group18, { h: "100%", children: [
|
7467
|
+
/* @__PURE__ */ jsx54(
|
7514
7468
|
Tooltip5,
|
7515
7469
|
{
|
7516
7470
|
label: basicAppShellStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu",
|
7517
|
-
children: /* @__PURE__ */
|
7471
|
+
children: /* @__PURE__ */ jsx54(
|
7518
7472
|
ActionIcon11,
|
7519
7473
|
{
|
7520
7474
|
size: "lg",
|
7521
7475
|
radius: "md",
|
7522
7476
|
variant: "default",
|
7523
7477
|
onClick: basicAppShellStore.toggle,
|
7524
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7478
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7525
7479
|
}
|
7526
7480
|
)
|
7527
7481
|
}
|
7528
7482
|
),
|
7529
|
-
/* @__PURE__ */
|
7483
|
+
/* @__PURE__ */ jsx54(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx54(
|
7530
7484
|
ActionIcon11,
|
7531
7485
|
{
|
7532
7486
|
size: "lg",
|
7533
7487
|
radius: "md",
|
7534
7488
|
variant: "default",
|
7535
7489
|
onClick: () => basicAppShellStore.clearGroupMenuOpenId(),
|
7536
|
-
children: /* @__PURE__ */
|
7490
|
+
children: /* @__PURE__ */ jsx54(IconLibraryMinus, {})
|
7537
7491
|
}
|
7538
7492
|
) })
|
7539
7493
|
] }),
|
7540
|
-
/* @__PURE__ */
|
7494
|
+
/* @__PURE__ */ jsx54(
|
7541
7495
|
Group18,
|
7542
7496
|
{
|
7543
7497
|
style: {
|
@@ -7545,43 +7499,43 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7545
7499
|
left: "50%",
|
7546
7500
|
transform: "translateX(-50%)"
|
7547
7501
|
},
|
7548
|
-
children: /* @__PURE__ */
|
7502
|
+
children: /* @__PURE__ */ jsx54(Text16, { c: "green", fw: "bold", size: "sm", children: title ? title : `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
|
7549
7503
|
}
|
7550
7504
|
),
|
7551
|
-
/* @__PURE__ */
|
7505
|
+
/* @__PURE__ */ jsxs31(Group18, { children: [
|
7552
7506
|
extraTopRight,
|
7553
|
-
/* @__PURE__ */
|
7507
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7554
7508
|
] })
|
7555
7509
|
] }) : (
|
7556
7510
|
// For mobile screens - simplified layout
|
7557
|
-
/* @__PURE__ */
|
7558
|
-
/* @__PURE__ */
|
7511
|
+
/* @__PURE__ */ jsxs31(Group18, { h: "100%", px: "md", justify: "space-between", children: [
|
7512
|
+
/* @__PURE__ */ jsx54(
|
7559
7513
|
ActionIcon11,
|
7560
7514
|
{
|
7561
7515
|
size: "lg",
|
7562
7516
|
radius: "md",
|
7563
7517
|
variant: "default",
|
7564
7518
|
onClick: basicAppShellStore.toggle,
|
7565
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7519
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7566
7520
|
}
|
7567
7521
|
),
|
7568
|
-
/* @__PURE__ */
|
7569
|
-
/* @__PURE__ */
|
7522
|
+
/* @__PURE__ */ jsx54(Text16, { c: "green", fw: "bold", size: "sm", children: title ? title : `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
|
7523
|
+
/* @__PURE__ */ jsxs31(Group18, { children: [
|
7570
7524
|
extraTopRight,
|
7571
|
-
/* @__PURE__ */
|
7525
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7572
7526
|
] })
|
7573
7527
|
] })
|
7574
7528
|
) }),
|
7575
|
-
/* @__PURE__ */
|
7576
|
-
/* @__PURE__ */
|
7577
|
-
/* @__PURE__ */
|
7578
|
-
/* @__PURE__ */
|
7579
|
-
/* @__PURE__ */
|
7580
|
-
/* @__PURE__ */
|
7529
|
+
/* @__PURE__ */ jsxs31(AppShell.Navbar, { children: [
|
7530
|
+
/* @__PURE__ */ jsx54(MyAppSpotlight, { menu }),
|
7531
|
+
/* @__PURE__ */ jsxs31(AppShell.Section, { grow: true, component: ScrollArea4, p: 5, children: [
|
7532
|
+
/* @__PURE__ */ jsx54(RenderNavLinks, { items: menu }),
|
7533
|
+
/* @__PURE__ */ jsx54(Divider3, {}),
|
7534
|
+
/* @__PURE__ */ jsx54(F_authenticate_Logout, {})
|
7581
7535
|
] }),
|
7582
|
-
/* @__PURE__ */
|
7583
|
-
/* @__PURE__ */
|
7584
|
-
/* @__PURE__ */
|
7536
|
+
/* @__PURE__ */ jsxs31(AppShell.Section, { p: "md", children: [
|
7537
|
+
/* @__PURE__ */ jsx54(Divider3, {}),
|
7538
|
+
/* @__PURE__ */ jsx54(
|
7585
7539
|
Image3,
|
7586
7540
|
{
|
7587
7541
|
fit: "contain",
|
@@ -7595,7 +7549,7 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7595
7549
|
)
|
7596
7550
|
] })
|
7597
7551
|
] }),
|
7598
|
-
/* @__PURE__ */
|
7552
|
+
/* @__PURE__ */ jsx54(
|
7599
7553
|
AppShell.Main,
|
7600
7554
|
{
|
7601
7555
|
bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7650,10 +7604,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
7650
7604
|
|
7651
7605
|
// src/components/Layouts/Container/MyContainer.tsx
|
7652
7606
|
import { Container, Flex as Flex5 } from "@mantine/core";
|
7653
|
-
import { jsx as
|
7607
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
7654
7608
|
function MyContainer(_a) {
|
7655
7609
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7656
|
-
return /* @__PURE__ */
|
7610
|
+
return /* @__PURE__ */ jsx55(Container, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx55(Flex5, { direction: "column", children }) }));
|
7657
7611
|
}
|
7658
7612
|
|
7659
7613
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
@@ -7673,7 +7627,7 @@ import {
|
|
7673
7627
|
UnstyledButton,
|
7674
7628
|
useMantineTheme
|
7675
7629
|
} from "@mantine/core";
|
7676
|
-
import { useDisclosure as
|
7630
|
+
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
7677
7631
|
import {
|
7678
7632
|
IconBook,
|
7679
7633
|
IconChartPie3,
|
@@ -7699,7 +7653,7 @@ function useHeaderMegaMenuStore() {
|
|
7699
7653
|
}
|
7700
7654
|
|
7701
7655
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7702
|
-
import { jsx as
|
7656
|
+
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
7703
7657
|
var mockdata = [
|
7704
7658
|
{
|
7705
7659
|
icon: IconCode,
|
@@ -7733,31 +7687,31 @@ var mockdata = [
|
|
7733
7687
|
}
|
7734
7688
|
];
|
7735
7689
|
function HeaderMegaMenu({ children, menus }) {
|
7736
|
-
const [drawerOpened, { toggle: toggleDrawer, close: closeDrawer }] =
|
7737
|
-
const [linksOpened, { toggle: toggleLinks }] =
|
7690
|
+
const [drawerOpened, { toggle: toggleDrawer, close: closeDrawer }] = useDisclosure11(false);
|
7691
|
+
const [linksOpened, { toggle: toggleLinks }] = useDisclosure11(false);
|
7738
7692
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
7739
7693
|
const theme = useMantineTheme();
|
7740
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
7741
|
-
/* @__PURE__ */
|
7742
|
-
/* @__PURE__ */
|
7743
|
-
/* @__PURE__ */
|
7744
|
-
/* @__PURE__ */
|
7694
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx56(UnstyledButton, { className: css_default.subLink, children: /* @__PURE__ */ jsxs32(Group19, { wrap: "nowrap", align: "flex-start", children: [
|
7695
|
+
/* @__PURE__ */ jsx56(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx56(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
7696
|
+
/* @__PURE__ */ jsxs32("div", { children: [
|
7697
|
+
/* @__PURE__ */ jsx56(Text17, { size: "sm", fw: 500, children: item.title }),
|
7698
|
+
/* @__PURE__ */ jsx56(Text17, { size: "xs", c: "dimmed", children: item.description })
|
7745
7699
|
] })
|
7746
7700
|
] }) }, item.title));
|
7747
|
-
return /* @__PURE__ */
|
7748
|
-
/* @__PURE__ */
|
7749
|
-
/* @__PURE__ */
|
7750
|
-
/* @__PURE__ */
|
7751
|
-
/* @__PURE__ */
|
7701
|
+
return /* @__PURE__ */ jsxs32(Box4, { children: [
|
7702
|
+
/* @__PURE__ */ jsx56("header", { className: css_default.header, children: /* @__PURE__ */ jsxs32(Group19, { justify: "space-between", h: "100%", children: [
|
7703
|
+
/* @__PURE__ */ jsxs32(Group19, { children: [
|
7704
|
+
/* @__PURE__ */ jsx56(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
7705
|
+
/* @__PURE__ */ jsx56(Group19, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx56(Button16, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
7752
7706
|
] }),
|
7753
|
-
/* @__PURE__ */
|
7754
|
-
/* @__PURE__ */
|
7755
|
-
/* @__PURE__ */
|
7707
|
+
/* @__PURE__ */ jsxs32(Group19, { children: [
|
7708
|
+
/* @__PURE__ */ jsx56(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx56(IconSearch2, {}), radius: "xl", w: "250px" }),
|
7709
|
+
/* @__PURE__ */ jsx56(MySwitchTheme, {})
|
7756
7710
|
] }),
|
7757
|
-
/* @__PURE__ */
|
7711
|
+
/* @__PURE__ */ jsx56(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
7758
7712
|
] }) }),
|
7759
|
-
/* @__PURE__ */
|
7760
|
-
/* @__PURE__ */
|
7713
|
+
/* @__PURE__ */ jsx56(Container2, { fluid: true, pt: "sm", pb: "md", bg: object_colors.mantineBackgroundSecondary, mih: "93vh", children }),
|
7714
|
+
/* @__PURE__ */ jsx56(
|
7761
7715
|
Drawer,
|
7762
7716
|
{
|
7763
7717
|
opened: drawerOpened,
|
@@ -7767,10 +7721,10 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7767
7721
|
title: "Navigation",
|
7768
7722
|
hiddenFrom: "sm",
|
7769
7723
|
zIndex: 1e6,
|
7770
|
-
children: /* @__PURE__ */
|
7771
|
-
/* @__PURE__ */
|
7772
|
-
/* @__PURE__ */
|
7773
|
-
/* @__PURE__ */
|
7724
|
+
children: /* @__PURE__ */ jsxs32(ScrollArea5, { h: "calc(100vh - 80px", mx: "-md", children: [
|
7725
|
+
/* @__PURE__ */ jsx56(Divider4, { my: "sm" }),
|
7726
|
+
/* @__PURE__ */ jsx56(MyFlexColumn, { h: "100%", gap: 0, children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx56(Button16, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) }),
|
7727
|
+
/* @__PURE__ */ jsx56(Divider4, { my: "sm" })
|
7774
7728
|
] })
|
7775
7729
|
}
|
7776
7730
|
)
|
@@ -7779,7 +7733,7 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7779
7733
|
|
7780
7734
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7781
7735
|
import { Badge as Badge5, Breadcrumbs, Code, Container as Container3, Divider as Divider5, Group as Group20, Text as Text18, Title } from "@mantine/core";
|
7782
|
-
import { jsx as
|
7736
|
+
import { jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
7783
7737
|
var getStatusColor = (status) => {
|
7784
7738
|
switch (status) {
|
7785
7739
|
case "Prototype":
|
@@ -7790,10 +7744,10 @@ var getStatusColor = (status) => {
|
|
7790
7744
|
};
|
7791
7745
|
function PageTitle({ title, status, note }) {
|
7792
7746
|
const color = getStatusColor(status);
|
7793
|
-
return /* @__PURE__ */
|
7794
|
-
/* @__PURE__ */
|
7795
|
-
/* @__PURE__ */
|
7796
|
-
status && /* @__PURE__ */
|
7747
|
+
return /* @__PURE__ */ jsx57(Group20, { children: /* @__PURE__ */ jsxs33(MyFlexColumn, { gap: 0, children: [
|
7748
|
+
/* @__PURE__ */ jsxs33(Group20, { align: "center", children: [
|
7749
|
+
/* @__PURE__ */ jsx57(Title, { order: 3, children: title }),
|
7750
|
+
status && /* @__PURE__ */ jsx57(
|
7797
7751
|
Badge5,
|
7798
7752
|
{
|
7799
7753
|
variant: "gradient",
|
@@ -7804,7 +7758,7 @@ function PageTitle({ title, status, note }) {
|
|
7804
7758
|
}
|
7805
7759
|
)
|
7806
7760
|
] }),
|
7807
|
-
/* @__PURE__ */
|
7761
|
+
/* @__PURE__ */ jsx57(Text18, { size: "lg", c: "dimmed", fs: "italic", children: note })
|
7808
7762
|
] }) });
|
7809
7763
|
}
|
7810
7764
|
function MyPageContent({
|
@@ -7817,11 +7771,11 @@ function MyPageContent({
|
|
7817
7771
|
var _a;
|
7818
7772
|
const basicAppShellStore = useS_BasicAppShell();
|
7819
7773
|
const finalTitle = title || basicAppShellStore.state.title;
|
7820
|
-
return /* @__PURE__ */
|
7821
|
-
/* @__PURE__ */
|
7822
|
-
/* @__PURE__ */
|
7823
|
-
/* @__PURE__ */
|
7824
|
-
/* @__PURE__ */
|
7774
|
+
return /* @__PURE__ */ jsxs33(Container3, { p: 0, fluid: true, children: [
|
7775
|
+
/* @__PURE__ */ jsxs33(Group20, { justify: "space-between", children: [
|
7776
|
+
/* @__PURE__ */ jsxs33(Group20, { children: [
|
7777
|
+
/* @__PURE__ */ jsx57(MyButtonRouterBack, {}),
|
7778
|
+
/* @__PURE__ */ jsx57(
|
7825
7779
|
PageTitle,
|
7826
7780
|
{
|
7827
7781
|
title: finalTitle,
|
@@ -7831,64 +7785,64 @@ function MyPageContent({
|
|
7831
7785
|
),
|
7832
7786
|
leftTopBar
|
7833
7787
|
] }),
|
7834
|
-
/* @__PURE__ */
|
7788
|
+
/* @__PURE__ */ jsxs33(Group20, { p: "md", children: [
|
7835
7789
|
rightTopBar,
|
7836
|
-
/* @__PURE__ */
|
7790
|
+
/* @__PURE__ */ jsx57(Breadcrumbs, { separatorMargin: "7", children: (_a = basicAppShellStore.state.breadcrumb) == null ? void 0 : _a.map((item, idx) => /* @__PURE__ */ jsx57(Text18, { fw: "600", c: "blue", children: item }, idx)) })
|
7837
7791
|
] })
|
7838
7792
|
] }),
|
7839
|
-
/* @__PURE__ */
|
7793
|
+
/* @__PURE__ */ jsx57(Divider5, { my: "xs" }),
|
7840
7794
|
children,
|
7841
|
-
/* @__PURE__ */
|
7842
|
-
/* @__PURE__ */
|
7795
|
+
/* @__PURE__ */ jsx57(Divider5, { my: "xs" }),
|
7796
|
+
/* @__PURE__ */ jsx57(MyFlexEnd, { children: /* @__PURE__ */ jsx57(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode }) })
|
7843
7797
|
] });
|
7844
7798
|
}
|
7845
7799
|
|
7846
7800
|
// src/components/Layouts/Tab/MyTab.tsx
|
7847
7801
|
import { rem, Space as Space3, Tabs } from "@mantine/core";
|
7848
|
-
import { jsx as
|
7802
|
+
import { jsx as jsx58, jsxs as jsxs34 } from "react/jsx-runtime";
|
7849
7803
|
function MyTab(_a) {
|
7850
7804
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
7851
7805
|
const iconStyle = { width: rem(20), height: rem(20) };
|
7852
|
-
return /* @__PURE__ */
|
7853
|
-
/* @__PURE__ */
|
7854
|
-
return /* @__PURE__ */
|
7806
|
+
return /* @__PURE__ */ jsxs34(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
7807
|
+
/* @__PURE__ */ jsx58(Tabs.List, { children: tabList.map((item, idx) => {
|
7808
|
+
return /* @__PURE__ */ jsx58(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx58(item.icon, { style: iconStyle }), children: item.label }, idx);
|
7855
7809
|
}) }),
|
7856
|
-
/* @__PURE__ */
|
7810
|
+
/* @__PURE__ */ jsx58(Space3, { my: "md" }),
|
7857
7811
|
children
|
7858
7812
|
] }));
|
7859
7813
|
}
|
7860
7814
|
|
7861
7815
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
7862
7816
|
import { ActionIcon as ActionIcon12, Button as Button17, Fieldset as Fieldset5, Group as Group21, Modal as Modal11 } from "@mantine/core";
|
7863
|
-
import { useDisclosure as
|
7817
|
+
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
7864
7818
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
7865
|
-
import { jsx as
|
7819
|
+
import { jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
|
7866
7820
|
function MyDataTableSelect(_a) {
|
7867
7821
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
7868
|
-
const disc =
|
7822
|
+
const disc = useDisclosure12(false);
|
7869
7823
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
7870
|
-
return /* @__PURE__ */
|
7871
|
-
/* @__PURE__ */
|
7824
|
+
return /* @__PURE__ */ jsxs35(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
7825
|
+
/* @__PURE__ */ jsx59(
|
7872
7826
|
MyDataTable,
|
7873
7827
|
__spreadValues({
|
7874
7828
|
renderTopToolbarCustomActions: ({ table }) => {
|
7875
|
-
return /* @__PURE__ */
|
7829
|
+
return /* @__PURE__ */ jsxs35(Group21, { children: [
|
7876
7830
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
7877
|
-
/* @__PURE__ */
|
7831
|
+
/* @__PURE__ */ jsx59(Button17, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
7878
7832
|
] });
|
7879
7833
|
},
|
7880
7834
|
columns,
|
7881
7835
|
data: listState[0],
|
7882
7836
|
renderRowActions: ({ row }) => {
|
7883
|
-
return /* @__PURE__ */
|
7837
|
+
return /* @__PURE__ */ jsx59(MyCenterFull, { children: /* @__PURE__ */ jsx59(ActionIcon12, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx59(IconX2, {}) }) });
|
7884
7838
|
}
|
7885
7839
|
}, rest)
|
7886
7840
|
),
|
7887
|
-
/* @__PURE__ */
|
7841
|
+
/* @__PURE__ */ jsx59(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx59(
|
7888
7842
|
MyDataTable,
|
7889
7843
|
__spreadValues({
|
7890
7844
|
renderTopToolbarCustomActions: ({ table }) => {
|
7891
|
-
return /* @__PURE__ */
|
7845
|
+
return /* @__PURE__ */ jsx59(Button17, { onClick: () => {
|
7892
7846
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
7893
7847
|
disc[1].close();
|
7894
7848
|
}, children: "Ch\u1ECDn" });
|
@@ -7904,7 +7858,7 @@ function MyDataTableSelect(_a) {
|
|
7904
7858
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
7905
7859
|
import { Select as Select3 } from "@mantine/core";
|
7906
7860
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
7907
|
-
import { jsx as
|
7861
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
7908
7862
|
function MySelectAPIGet(_a) {
|
7909
7863
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
7910
7864
|
var _a2;
|
@@ -7923,7 +7877,7 @@ function MySelectAPIGet(_a) {
|
|
7923
7877
|
label: `${item.code}-${item.name}`
|
7924
7878
|
};
|
7925
7879
|
});
|
7926
|
-
return /* @__PURE__ */
|
7880
|
+
return /* @__PURE__ */ jsx60(
|
7927
7881
|
Select3,
|
7928
7882
|
__spreadValues({
|
7929
7883
|
label,
|
@@ -7938,7 +7892,7 @@ import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as Schedul
|
|
7938
7892
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
7939
7893
|
import { useState as useState12 } from "react";
|
7940
7894
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
7941
|
-
import { jsx as
|
7895
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
7942
7896
|
function MyScheduleX({
|
7943
7897
|
values,
|
7944
7898
|
timeGridEvent,
|
@@ -7963,7 +7917,7 @@ function MyScheduleX({
|
|
7963
7917
|
events: values,
|
7964
7918
|
plugins: [eventsService, eventModalPlugin]
|
7965
7919
|
});
|
7966
|
-
return /* @__PURE__ */
|
7920
|
+
return /* @__PURE__ */ jsx61(
|
7967
7921
|
ScheduleXCalendar2,
|
7968
7922
|
{
|
7969
7923
|
calendarApp: calendar,
|
@@ -7977,9 +7931,9 @@ function MyScheduleX({
|
|
7977
7931
|
|
7978
7932
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
7979
7933
|
import { Skeleton } from "@mantine/core";
|
7980
|
-
import { jsx as
|
7934
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
7981
7935
|
function MySkeletonTable({ h: h4 = 500 }) {
|
7982
|
-
return /* @__PURE__ */
|
7936
|
+
return /* @__PURE__ */ jsx62(Skeleton, { h: h4 });
|
7983
7937
|
}
|
7984
7938
|
|
7985
7939
|
export {
|
@@ -8005,7 +7959,6 @@ export {
|
|
8005
7959
|
AQButtonCreateByImportFile,
|
8006
7960
|
AQButtonExportData,
|
8007
7961
|
MyButtonCreate,
|
8008
|
-
MyButtonCreateUpdate,
|
8009
7962
|
MyButtonDeleteList,
|
8010
7963
|
MySelect,
|
8011
7964
|
MyFlexEnd,
|