aq-fe-framework 0.1.242 → 0.1.244
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.
@@ -1413,8 +1413,8 @@ function SelectFieldModal({ stack, onImport }) {
|
|
1413
1413
|
}
|
1414
1414
|
|
1415
1415
|
// src/components/DataDisplay/DataTable/MyDataTable.tsx
|
1416
|
-
import { Button as Button6, Group as Group8, Portal } from "@mantine/core";
|
1417
|
-
import { IconDownload as IconDownload3 } from "@tabler/icons-react";
|
1416
|
+
import { Alert, Button as Button6, Group as Group8, Portal } from "@mantine/core";
|
1417
|
+
import { IconBug, IconDownload as IconDownload3 } from "@tabler/icons-react";
|
1418
1418
|
import { download, generateCsv, mkConfig } from "export-to-csv";
|
1419
1419
|
import {
|
1420
1420
|
MantineReactTable,
|
@@ -1440,7 +1440,29 @@ function formatData(data, formats) {
|
|
1440
1440
|
});
|
1441
1441
|
}
|
1442
1442
|
function MyDataTable(_a) {
|
1443
|
-
var _b = _a, {
|
1443
|
+
var _b = _a, {
|
1444
|
+
formats = {},
|
1445
|
+
exportAble = false,
|
1446
|
+
csvConfigProps,
|
1447
|
+
rowActionSize,
|
1448
|
+
columns,
|
1449
|
+
data,
|
1450
|
+
renderTopToolbarCustomActions,
|
1451
|
+
setSelectedRow,
|
1452
|
+
isError,
|
1453
|
+
isLoading
|
1454
|
+
} = _b, rest = __objRest(_b, [
|
1455
|
+
"formats",
|
1456
|
+
"exportAble",
|
1457
|
+
"csvConfigProps",
|
1458
|
+
"rowActionSize",
|
1459
|
+
"columns",
|
1460
|
+
"data",
|
1461
|
+
"renderTopToolbarCustomActions",
|
1462
|
+
"setSelectedRow",
|
1463
|
+
"isError",
|
1464
|
+
"isLoading"
|
1465
|
+
]);
|
1444
1466
|
const { renderRowActions } = __spreadValues({}, rest);
|
1445
1467
|
const csvConfig = mkConfig(__spreadValues({
|
1446
1468
|
fieldSeparator: ",",
|
@@ -1516,7 +1538,11 @@ function MyDataTable(_a) {
|
|
1516
1538
|
paddingBottom: "2px"
|
1517
1539
|
}
|
1518
1540
|
},
|
1519
|
-
localization: MRT_Localization_VI
|
1541
|
+
localization: MRT_Localization_VI,
|
1542
|
+
renderEmptyRowsFallback: () => isError && /* @__PURE__ */ jsx26(Alert, { icon: /* @__PURE__ */ jsx26(IconBug, {}), color: "red", m: "md", children: "C\xF3 l\u1ED7i x\u1EA3y ra!" }),
|
1543
|
+
state: {
|
1544
|
+
showSkeletons: isLoading
|
1545
|
+
}
|
1520
1546
|
}, rest));
|
1521
1547
|
useEffect5(() => {
|
1522
1548
|
setSelectedRow && setSelectedRow(table.getSelectedRowModel().rows.map((row) => row.original));
|
@@ -6746,14 +6772,54 @@ function MyDateInput(_a) {
|
|
6746
6772
|
return /* @__PURE__ */ jsx45(DateInput, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6747
6773
|
}
|
6748
6774
|
|
6775
|
+
// src/constants/enum/global.ts
|
6776
|
+
var ENUM_DAYS_OF_WEEK = /* @__PURE__ */ ((ENUM_DAYS_OF_WEEK2) => {
|
6777
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 Hai"] = 1] = "Th\u1EE9 Hai";
|
6778
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 Ba"] = 2] = "Th\u1EE9 Ba";
|
6779
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 T\u01B0"] = 3] = "Th\u1EE9 T\u01B0";
|
6780
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 N\u0103m"] = 4] = "Th\u1EE9 N\u0103m";
|
6781
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 S\xE1u"] = 5] = "Th\u1EE9 S\xE1u";
|
6782
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Th\u1EE9 B\u1EA3y"] = 6] = "Th\u1EE9 B\u1EA3y";
|
6783
|
+
ENUM_DAYS_OF_WEEK2[ENUM_DAYS_OF_WEEK2["Ch\u1EE7 Nh\u1EADt"] = 0] = "Ch\u1EE7 Nh\u1EADt";
|
6784
|
+
return ENUM_DAYS_OF_WEEK2;
|
6785
|
+
})(ENUM_DAYS_OF_WEEK || {});
|
6786
|
+
|
6787
|
+
// src/components/Inputs/DayOfWeekPicker/MyDayOfWeekPicker.tsx
|
6788
|
+
import { Badge as Badge3, Group as Group15, Text as Text13 } from "@mantine/core";
|
6789
|
+
import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
|
6790
|
+
var days = Object.entries(ENUM_DAYS_OF_WEEK).filter(([key]) => isNaN(Number(key))).map(([label, value]) => ({ label, value }));
|
6791
|
+
function MyDayOfWeekPicker({ value = [], onChange }) {
|
6792
|
+
const toggle = (val) => {
|
6793
|
+
if (!onChange) return;
|
6794
|
+
const newValue = value.includes(val) ? value.filter((v5) => v5 !== val) : [...value, val];
|
6795
|
+
onChange(newValue);
|
6796
|
+
};
|
6797
|
+
return /* @__PURE__ */ jsxs27(MyFlexRow, { align: "center", children: [
|
6798
|
+
/* @__PURE__ */ jsx46(Text13, { children: "Danh s\xE1ch th\u1EE9: " }),
|
6799
|
+
/* @__PURE__ */ jsx46(Group15, { gap: "xs", children: days.map((d5) => /* @__PURE__ */ jsx46(
|
6800
|
+
Badge3,
|
6801
|
+
{
|
6802
|
+
variant: value.includes(d5.value) ? "filled" : "outline",
|
6803
|
+
color: "blue",
|
6804
|
+
radius: "sm",
|
6805
|
+
size: "lg",
|
6806
|
+
onClick: () => toggle(d5.value),
|
6807
|
+
style: { cursor: onChange ? "pointer" : "default", userSelect: "none" },
|
6808
|
+
children: d5.label
|
6809
|
+
},
|
6810
|
+
d5.value
|
6811
|
+
)) })
|
6812
|
+
] });
|
6813
|
+
}
|
6814
|
+
|
6749
6815
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
6750
6816
|
import {
|
6751
6817
|
Fieldset as Fieldset4,
|
6752
|
-
Group as
|
6753
|
-
Text as
|
6818
|
+
Group as Group16,
|
6819
|
+
Text as Text14,
|
6754
6820
|
useMantineColorScheme as useMantineColorScheme2
|
6755
6821
|
} from "@mantine/core";
|
6756
|
-
import { jsx as
|
6822
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
|
6757
6823
|
function MyFieldset(_a) {
|
6758
6824
|
var _b = _a, {
|
6759
6825
|
children,
|
@@ -6782,10 +6848,10 @@ function MyFieldset(_a) {
|
|
6782
6848
|
const mergedStyles = typeof styles === "function" ? styles : __spreadProps(__spreadValues({}, styles), {
|
6783
6849
|
legend: __spreadValues(__spreadValues({}, defaultLegendStyles), styles == null ? void 0 : styles.legend)
|
6784
6850
|
});
|
6785
|
-
return /* @__PURE__ */
|
6851
|
+
return /* @__PURE__ */ jsx47(
|
6786
6852
|
Fieldset4,
|
6787
6853
|
__spreadProps(__spreadValues({
|
6788
|
-
legend: customLegend != null ? customLegend : /* @__PURE__ */
|
6854
|
+
legend: customLegend != null ? customLegend : /* @__PURE__ */ jsx47(Group16, { gap: "xs", children: /* @__PURE__ */ jsxs28(Text14, { fw: 600, children: [
|
6789
6855
|
" ",
|
6790
6856
|
title,
|
6791
6857
|
" "
|
@@ -6800,13 +6866,13 @@ function MyFieldset(_a) {
|
|
6800
6866
|
// src/components/Inputs/FileInput/MyFileInput.tsx
|
6801
6867
|
import { FileInput as FileInput3 } from "@mantine/core";
|
6802
6868
|
import { IconFile } from "@tabler/icons-react";
|
6803
|
-
import { jsx as
|
6869
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
6804
6870
|
function MyFileInput(_a) {
|
6805
6871
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6806
|
-
return /* @__PURE__ */
|
6872
|
+
return /* @__PURE__ */ jsx48(
|
6807
6873
|
FileInput3,
|
6808
6874
|
__spreadValues({
|
6809
|
-
rightSection: /* @__PURE__ */
|
6875
|
+
rightSection: /* @__PURE__ */ jsx48(IconFile, {}),
|
6810
6876
|
label,
|
6811
6877
|
placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : ""
|
6812
6878
|
}, rest)
|
@@ -6815,10 +6881,10 @@ function MyFileInput(_a) {
|
|
6815
6881
|
|
6816
6882
|
// src/components/Inputs/NumberInput/MyNumberInput.tsx
|
6817
6883
|
import { NumberInput as NumberInput2 } from "@mantine/core";
|
6818
|
-
import { jsx as
|
6884
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
6819
6885
|
function MyNumberInput(_a) {
|
6820
6886
|
var _b = _a, { minValue, label } = _b, rest = __objRest(_b, ["minValue", "label"]);
|
6821
|
-
return /* @__PURE__ */
|
6887
|
+
return /* @__PURE__ */ jsx49(
|
6822
6888
|
NumberInput2,
|
6823
6889
|
__spreadValues({
|
6824
6890
|
label,
|
@@ -6830,10 +6896,10 @@ function MyNumberInput(_a) {
|
|
6830
6896
|
|
6831
6897
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
6832
6898
|
import { Textarea } from "@mantine/core";
|
6833
|
-
import { jsx as
|
6899
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
6834
6900
|
function MyTextArea(_a) {
|
6835
6901
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6836
|
-
return /* @__PURE__ */
|
6902
|
+
return /* @__PURE__ */ jsx50(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6837
6903
|
}
|
6838
6904
|
|
6839
6905
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
@@ -6849,7 +6915,7 @@ import Underline from "@tiptap/extension-underline";
|
|
6849
6915
|
import { useEditor } from "@tiptap/react";
|
6850
6916
|
import StarterKit from "@tiptap/starter-kit";
|
6851
6917
|
import { useEffect as useEffect8, useState as useState9 } from "react";
|
6852
|
-
import { jsx as
|
6918
|
+
import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
|
6853
6919
|
function MyTextEditor(_a) {
|
6854
6920
|
var _b = _a, {
|
6855
6921
|
autoHiddenToolBar = false,
|
@@ -6951,43 +7017,43 @@ function MyTextEditor(_a) {
|
|
6951
7017
|
editor.commands.setContent(value);
|
6952
7018
|
}
|
6953
7019
|
}, [value, editor]);
|
6954
|
-
return /* @__PURE__ */
|
6955
|
-
/* @__PURE__ */
|
6956
|
-
/* @__PURE__ */
|
6957
|
-
/* @__PURE__ */
|
6958
|
-
/* @__PURE__ */
|
6959
|
-
/* @__PURE__ */
|
6960
|
-
/* @__PURE__ */
|
6961
|
-
/* @__PURE__ */
|
6962
|
-
/* @__PURE__ */
|
6963
|
-
/* @__PURE__ */
|
7020
|
+
return /* @__PURE__ */ jsx51(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs29(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
7021
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
7022
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7023
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Bold, {}),
|
7024
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Italic, {}),
|
7025
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Underline, {}),
|
7026
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Strikethrough, {}),
|
7027
|
+
/* @__PURE__ */ jsx51(RichTextEditor.ClearFormatting, {}),
|
7028
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Highlight, {}),
|
7029
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Code, {})
|
6964
7030
|
] }),
|
6965
|
-
/* @__PURE__ */
|
6966
|
-
/* @__PURE__ */
|
6967
|
-
/* @__PURE__ */
|
6968
|
-
/* @__PURE__ */
|
6969
|
-
/* @__PURE__ */
|
7031
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7032
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H1, {}),
|
7033
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H2, {}),
|
7034
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H3, {}),
|
7035
|
+
/* @__PURE__ */ jsx51(RichTextEditor.H4, {})
|
6970
7036
|
] }),
|
6971
|
-
/* @__PURE__ */
|
6972
|
-
/* @__PURE__ */
|
6973
|
-
/* @__PURE__ */
|
6974
|
-
/* @__PURE__ */
|
6975
|
-
/* @__PURE__ */
|
6976
|
-
/* @__PURE__ */
|
6977
|
-
/* @__PURE__ */
|
7037
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7038
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Blockquote, {}),
|
7039
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Hr, {}),
|
7040
|
+
/* @__PURE__ */ jsx51(RichTextEditor.BulletList, {}),
|
7041
|
+
/* @__PURE__ */ jsx51(RichTextEditor.OrderedList, {}),
|
7042
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Subscript, {}),
|
7043
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Superscript, {})
|
6978
7044
|
] }),
|
6979
|
-
/* @__PURE__ */
|
6980
|
-
/* @__PURE__ */
|
6981
|
-
/* @__PURE__ */
|
7045
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7046
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Link, {}),
|
7047
|
+
/* @__PURE__ */ jsx51(RichTextEditor.Unlink, {})
|
6982
7048
|
] }),
|
6983
|
-
/* @__PURE__ */
|
6984
|
-
/* @__PURE__ */
|
6985
|
-
/* @__PURE__ */
|
6986
|
-
/* @__PURE__ */
|
6987
|
-
/* @__PURE__ */
|
7049
|
+
/* @__PURE__ */ jsxs29(RichTextEditor.ControlsGroup, { children: [
|
7050
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignLeft, {}),
|
7051
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignCenter, {}),
|
7052
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignJustify, {}),
|
7053
|
+
/* @__PURE__ */ jsx51(RichTextEditor.AlignRight, {})
|
6988
7054
|
] })
|
6989
7055
|
] }),
|
6990
|
-
/* @__PURE__ */
|
7056
|
+
/* @__PURE__ */ jsx51(
|
6991
7057
|
ScrollArea2.Autosize,
|
6992
7058
|
{
|
6993
7059
|
onMouseDown: () => {
|
@@ -7002,14 +7068,165 @@ function MyTextEditor(_a) {
|
|
7002
7068
|
setHiddenToolBar(false);
|
7003
7069
|
},
|
7004
7070
|
style: { cursor: "text", maxHeight: "400px" },
|
7005
|
-
children: /* @__PURE__ */
|
7071
|
+
children: /* @__PURE__ */ jsx51(RichTextEditor.Content, { mih: contentHeight })
|
7006
7072
|
}
|
7007
7073
|
)
|
7008
7074
|
] }) });
|
7009
7075
|
}
|
7010
7076
|
|
7077
|
+
// src/constants/object/object_colors.ts
|
7078
|
+
var object_colors = {
|
7079
|
+
mantineBackgroundPrimary: "light-dark(var(--mantine-color-white), var(--mantine-color-dark))",
|
7080
|
+
mantineBackgroundSecondary: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
7081
|
+
mantineBackgroundBlueLight: "var(--mantine-color-blue-light)"
|
7082
|
+
};
|
7083
|
+
|
7084
|
+
// src/components/Inputs/WeeklySessionSchedulerPicker/MyWeeklySessionSchedulerPicker.tsx
|
7085
|
+
import {
|
7086
|
+
Button as Button14,
|
7087
|
+
Center as Center4,
|
7088
|
+
Divider as Divider2,
|
7089
|
+
Group as Group17,
|
7090
|
+
NumberInput as NumberInput3,
|
7091
|
+
Paper as Paper7,
|
7092
|
+
Text as Text15
|
7093
|
+
} from "@mantine/core";
|
7094
|
+
import { IconPlus as IconPlus5, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
7095
|
+
import { useState as useState10 } from "react";
|
7096
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
7097
|
+
function MyWeeklySessionSchedulerPicker({
|
7098
|
+
value = [],
|
7099
|
+
onChange
|
7100
|
+
}) {
|
7101
|
+
const [selectedDays, setSelectedDays] = useState10([]);
|
7102
|
+
const handleAddSession = (dayOfWeek) => {
|
7103
|
+
const newSession = {
|
7104
|
+
dayOfWeek,
|
7105
|
+
startPeriod: 1,
|
7106
|
+
numberOfPeriods: 1,
|
7107
|
+
durationMinutes: 90
|
7108
|
+
};
|
7109
|
+
onChange == null ? void 0 : onChange([...value, newSession]);
|
7110
|
+
};
|
7111
|
+
const handleRemove = (index) => {
|
7112
|
+
const newData = [...value];
|
7113
|
+
newData.splice(index, 1);
|
7114
|
+
onChange == null ? void 0 : onChange(newData);
|
7115
|
+
};
|
7116
|
+
const handleUpdate = (index, key, val) => {
|
7117
|
+
const newData = [...value];
|
7118
|
+
newData[index][key] = val;
|
7119
|
+
onChange == null ? void 0 : onChange(newData);
|
7120
|
+
};
|
7121
|
+
const grouped = value.reduce((acc, curr) => {
|
7122
|
+
acc[curr.dayOfWeek] = acc[curr.dayOfWeek] || [];
|
7123
|
+
acc[curr.dayOfWeek].push(curr);
|
7124
|
+
return acc;
|
7125
|
+
}, {});
|
7126
|
+
const getLabel = (day) => ENUM_DAYS_OF_WEEK[day] || `Day ${day}`;
|
7127
|
+
return /* @__PURE__ */ jsx52(Paper7, { w: "100%", p: "md", children: /* @__PURE__ */ jsxs30(MyFlexColumn, { children: [
|
7128
|
+
/* @__PURE__ */ jsx52(Center4, { children: /* @__PURE__ */ jsx52(
|
7129
|
+
MyDayOfWeekPicker,
|
7130
|
+
{
|
7131
|
+
value: selectedDays,
|
7132
|
+
onChange: (days2) => {
|
7133
|
+
const sorted = [...days2].sort((a5, b3) => a5 - b3);
|
7134
|
+
setSelectedDays(sorted);
|
7135
|
+
}
|
7136
|
+
}
|
7137
|
+
) }),
|
7138
|
+
/* @__PURE__ */ jsx52(Divider2, { my: "xs" }),
|
7139
|
+
/* @__PURE__ */ jsx52(Center4, { children: /* @__PURE__ */ jsx52(MyFlexColumn, { w: { base: "100%", sm: "70%" }, children: selectedDays.map((dayOfWeek) => {
|
7140
|
+
var _a;
|
7141
|
+
return /* @__PURE__ */ jsxs30(
|
7142
|
+
Paper7,
|
7143
|
+
{
|
7144
|
+
w: "100%",
|
7145
|
+
p: "md",
|
7146
|
+
bg: object_colors.mantineBackgroundBlueLight,
|
7147
|
+
children: [
|
7148
|
+
/* @__PURE__ */ jsxs30(Group17, { gap: "apart", children: [
|
7149
|
+
/* @__PURE__ */ jsx52(Text15, { w: "70px", fw: 500, children: getLabel(dayOfWeek) }),
|
7150
|
+
/* @__PURE__ */ jsx52(
|
7151
|
+
Button14,
|
7152
|
+
{
|
7153
|
+
color: "teal.5",
|
7154
|
+
leftSection: /* @__PURE__ */ jsx52(IconPlus5, { size: 14 }),
|
7155
|
+
onClick: () => handleAddSession(dayOfWeek),
|
7156
|
+
children: "Th\xEAm bu\u1ED5i"
|
7157
|
+
}
|
7158
|
+
)
|
7159
|
+
] }),
|
7160
|
+
/* @__PURE__ */ jsx52(Divider2, { my: "sm" }),
|
7161
|
+
(_a = grouped[dayOfWeek]) == null ? void 0 : _a.map((item, indexInDay) => {
|
7162
|
+
const globalIndex = value.findIndex(
|
7163
|
+
(v5) => v5 === item
|
7164
|
+
);
|
7165
|
+
return /* @__PURE__ */ jsxs30(
|
7166
|
+
Group17,
|
7167
|
+
{
|
7168
|
+
mt: "xs",
|
7169
|
+
gap: "xs",
|
7170
|
+
align: "flex-end",
|
7171
|
+
children: [
|
7172
|
+
/* @__PURE__ */ jsx52(
|
7173
|
+
NumberInput3,
|
7174
|
+
{
|
7175
|
+
label: "Ti\u1EBFt b\u1EAFt \u0111\u1EA7u",
|
7176
|
+
value: item.startPeriod,
|
7177
|
+
onChange: (val) => handleUpdate(
|
7178
|
+
globalIndex,
|
7179
|
+
"startPeriod",
|
7180
|
+
val
|
7181
|
+
)
|
7182
|
+
}
|
7183
|
+
),
|
7184
|
+
/* @__PURE__ */ jsx52(
|
7185
|
+
NumberInput3,
|
7186
|
+
{
|
7187
|
+
label: "S\u1ED1 ti\u1EBFt",
|
7188
|
+
value: item.numberOfPeriods,
|
7189
|
+
onChange: (val) => handleUpdate(
|
7190
|
+
globalIndex,
|
7191
|
+
"numberOfPeriods",
|
7192
|
+
val
|
7193
|
+
)
|
7194
|
+
}
|
7195
|
+
),
|
7196
|
+
/* @__PURE__ */ jsx52(
|
7197
|
+
NumberInput3,
|
7198
|
+
{
|
7199
|
+
label: "S\u1ED1 ph\xFAt ",
|
7200
|
+
readOnly: true,
|
7201
|
+
variant: "filled",
|
7202
|
+
value: item.durationMinutes
|
7203
|
+
}
|
7204
|
+
),
|
7205
|
+
/* @__PURE__ */ jsx52(
|
7206
|
+
Button14,
|
7207
|
+
{
|
7208
|
+
variant: "light",
|
7209
|
+
color: "red",
|
7210
|
+
onClick: () => handleRemove(globalIndex),
|
7211
|
+
leftSection: /* @__PURE__ */ jsx52(IconTrash5, { size: 14 }),
|
7212
|
+
children: "X\xF3a bu\u1ED5i"
|
7213
|
+
}
|
7214
|
+
)
|
7215
|
+
]
|
7216
|
+
},
|
7217
|
+
globalIndex
|
7218
|
+
);
|
7219
|
+
})
|
7220
|
+
]
|
7221
|
+
},
|
7222
|
+
dayOfWeek
|
7223
|
+
);
|
7224
|
+
}) }) })
|
7225
|
+
] }) });
|
7226
|
+
}
|
7227
|
+
|
7011
7228
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
7012
|
-
import { Button as
|
7229
|
+
import { Button as Button15 } from "@mantine/core";
|
7013
7230
|
import { IconLogout } from "@tabler/icons-react";
|
7014
7231
|
import { useRouter as useRouter3 } from "next/navigation";
|
7015
7232
|
|
@@ -7024,27 +7241,27 @@ function useS_authenticate() {
|
|
7024
7241
|
}
|
7025
7242
|
|
7026
7243
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
7027
|
-
import { jsx as
|
7244
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
7028
7245
|
function F_authenticate_Logout({ redirectURL = "/auth/login" }) {
|
7029
7246
|
const router = useRouter3();
|
7030
7247
|
const S_Authenticate = useS_authenticate();
|
7031
|
-
return /* @__PURE__ */
|
7248
|
+
return /* @__PURE__ */ jsx53(Button15, { onClick: () => {
|
7032
7249
|
S_Authenticate.setProperty("token", "");
|
7033
7250
|
router.replace(redirectURL);
|
7034
|
-
}, leftSection: /* @__PURE__ */
|
7251
|
+
}, leftSection: /* @__PURE__ */ jsx53(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
7035
7252
|
}
|
7036
7253
|
|
7037
7254
|
// src/components/Layouts/BasicAppShell/BasicAppShell.tsx
|
7038
7255
|
import {
|
7039
7256
|
ActionIcon as ActionIcon11,
|
7040
7257
|
AppShell,
|
7041
|
-
Badge as
|
7042
|
-
Divider as
|
7043
|
-
Group as
|
7258
|
+
Badge as Badge4,
|
7259
|
+
Divider as Divider3,
|
7260
|
+
Group as Group18,
|
7044
7261
|
Image as Image3,
|
7045
7262
|
NavLink,
|
7046
7263
|
ScrollArea as ScrollArea3,
|
7047
|
-
Text as
|
7264
|
+
Text as Text16,
|
7048
7265
|
Tooltip as Tooltip5
|
7049
7266
|
} from "@mantine/core";
|
7050
7267
|
import { useFavicon, useMediaQuery } from "@mantine/hooks";
|
@@ -7055,8 +7272,8 @@ import {
|
|
7055
7272
|
} from "@tabler/icons-react";
|
7056
7273
|
import Link3 from "next/link";
|
7057
7274
|
import { usePathname as usePathname2 } from "next/navigation";
|
7058
|
-
import { useEffect as useEffect9, useMemo as useMemo3, useState as
|
7059
|
-
import { Fragment as Fragment13, jsx as
|
7275
|
+
import { useEffect as useEffect9, useMemo as useMemo3, useState as useState11 } from "react";
|
7276
|
+
import { Fragment as Fragment13, jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
|
7060
7277
|
function findBreadcrumbPath(items, currentPath, parents = []) {
|
7061
7278
|
for (const item of items) {
|
7062
7279
|
if (item.link === currentPath) {
|
@@ -7071,13 +7288,13 @@ function findBreadcrumbPath(items, currentPath, parents = []) {
|
|
7071
7288
|
}
|
7072
7289
|
function getRightSection(status) {
|
7073
7290
|
if (status === "Prototype")
|
7074
|
-
return /* @__PURE__ */
|
7291
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
7075
7292
|
if (status === "New")
|
7076
|
-
return /* @__PURE__ */
|
7293
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
7077
7294
|
if (status === "Menu")
|
7078
|
-
return /* @__PURE__ */
|
7295
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
7079
7296
|
if (status === "Change")
|
7080
|
-
return /* @__PURE__ */
|
7297
|
+
return /* @__PURE__ */ jsx54(Badge4, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
7081
7298
|
return null;
|
7082
7299
|
}
|
7083
7300
|
function RenderNavLinks({
|
@@ -7085,14 +7302,14 @@ function RenderNavLinks({
|
|
7085
7302
|
}) {
|
7086
7303
|
const basicAppShellStore = useS_BasicAppShell();
|
7087
7304
|
const pathName = usePathname2();
|
7088
|
-
return /* @__PURE__ */
|
7305
|
+
return /* @__PURE__ */ jsx54(Fragment13, { children: items.map((item, index) => /* @__PURE__ */ jsx54(
|
7089
7306
|
NavLink,
|
7090
7307
|
{
|
7091
7308
|
active: item.link === pathName.split("/")[2],
|
7092
7309
|
component: Link3,
|
7093
7310
|
opened: basicAppShellStore.state.groupMenuOpenId.includes(item.label),
|
7094
7311
|
href: `/${pathName.split("/")[1]}/${item.link}` || "#",
|
7095
|
-
label: /* @__PURE__ */
|
7312
|
+
label: /* @__PURE__ */ jsxs31(MyFlexRow, { justify: "space-between", children: [
|
7096
7313
|
item.label,
|
7097
7314
|
" ",
|
7098
7315
|
getRightSection(item.status)
|
@@ -7104,7 +7321,7 @@ function RenderNavLinks({
|
|
7104
7321
|
return;
|
7105
7322
|
}
|
7106
7323
|
},
|
7107
|
-
children: item.links && /* @__PURE__ */
|
7324
|
+
children: item.links && /* @__PURE__ */ jsx54(RenderNavLinks, { items: item.links })
|
7108
7325
|
},
|
7109
7326
|
index
|
7110
7327
|
)) });
|
@@ -7174,7 +7391,7 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7174
7391
|
const media = useMediaQuery("(min-width: 72em)");
|
7175
7392
|
const GetAQModule_query = useQ_AQ_GetAQModule();
|
7176
7393
|
const BasicAppShell_store = useS_BasicAppShell();
|
7177
|
-
const [faviconUrl, setFaviconUrl] =
|
7394
|
+
const [faviconUrl, setFaviconUrl] = useState11("");
|
7178
7395
|
const allChildItems = useMemo3(() => {
|
7179
7396
|
const result = [];
|
7180
7397
|
const extractChildren = (items) => {
|
@@ -7227,7 +7444,7 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7227
7444
|
basicAppShellStore.setProperty("note", linkItem == null ? void 0 : linkItem.note);
|
7228
7445
|
basicAppShellStore.setProperty("status", linkItem == null ? void 0 : linkItem.status);
|
7229
7446
|
}, [pathName]);
|
7230
|
-
return /* @__PURE__ */
|
7447
|
+
return /* @__PURE__ */ jsxs31(
|
7231
7448
|
AppShell,
|
7232
7449
|
{
|
7233
7450
|
header: { height: 60 },
|
@@ -7241,80 +7458,80 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7241
7458
|
},
|
7242
7459
|
padding: "md",
|
7243
7460
|
children: [
|
7244
|
-
/* @__PURE__ */
|
7245
|
-
/* @__PURE__ */
|
7246
|
-
/* @__PURE__ */
|
7461
|
+
/* @__PURE__ */ jsx54(AppShell.Header, { children: media ? /* @__PURE__ */ jsxs31(Group18, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
7462
|
+
/* @__PURE__ */ jsxs31(Group18, { h: "100%", children: [
|
7463
|
+
/* @__PURE__ */ jsx54(
|
7247
7464
|
Tooltip5,
|
7248
7465
|
{
|
7249
7466
|
label: basicAppShellStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu",
|
7250
|
-
children: /* @__PURE__ */
|
7467
|
+
children: /* @__PURE__ */ jsx54(
|
7251
7468
|
ActionIcon11,
|
7252
7469
|
{
|
7253
7470
|
size: "lg",
|
7254
7471
|
radius: "md",
|
7255
7472
|
variant: "default",
|
7256
7473
|
onClick: basicAppShellStore.toggle,
|
7257
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7474
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7258
7475
|
}
|
7259
7476
|
)
|
7260
7477
|
}
|
7261
7478
|
),
|
7262
|
-
/* @__PURE__ */
|
7479
|
+
/* @__PURE__ */ jsx54(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx54(
|
7263
7480
|
ActionIcon11,
|
7264
7481
|
{
|
7265
7482
|
size: "lg",
|
7266
7483
|
radius: "md",
|
7267
7484
|
variant: "default",
|
7268
7485
|
onClick: () => basicAppShellStore.clearGroupMenuOpenId(),
|
7269
|
-
children: /* @__PURE__ */
|
7486
|
+
children: /* @__PURE__ */ jsx54(IconLibraryMinus, {})
|
7270
7487
|
}
|
7271
7488
|
) })
|
7272
7489
|
] }),
|
7273
|
-
/* @__PURE__ */
|
7274
|
-
|
7490
|
+
/* @__PURE__ */ jsx54(
|
7491
|
+
Group18,
|
7275
7492
|
{
|
7276
7493
|
style: {
|
7277
7494
|
position: "absolute",
|
7278
7495
|
left: "50%",
|
7279
7496
|
transform: "translateX(-50%)"
|
7280
7497
|
},
|
7281
|
-
children: /* @__PURE__ */
|
7498
|
+
children: /* @__PURE__ */ jsx54(Text16, { c: "green", fw: "bold", size: "sm", children: title ? title : `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
|
7282
7499
|
}
|
7283
7500
|
),
|
7284
|
-
/* @__PURE__ */
|
7501
|
+
/* @__PURE__ */ jsxs31(Group18, { children: [
|
7285
7502
|
extraTopRight,
|
7286
|
-
/* @__PURE__ */
|
7503
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7287
7504
|
] })
|
7288
7505
|
] }) : (
|
7289
7506
|
// For mobile screens - simplified layout
|
7290
|
-
/* @__PURE__ */
|
7291
|
-
/* @__PURE__ */
|
7507
|
+
/* @__PURE__ */ jsxs31(Group18, { h: "100%", px: "md", justify: "space-between", children: [
|
7508
|
+
/* @__PURE__ */ jsx54(
|
7292
7509
|
ActionIcon11,
|
7293
7510
|
{
|
7294
7511
|
size: "lg",
|
7295
7512
|
radius: "md",
|
7296
7513
|
variant: "default",
|
7297
7514
|
onClick: basicAppShellStore.toggle,
|
7298
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7515
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx54(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx54(IconLayoutSidebarLeftCollapse, {})
|
7299
7516
|
}
|
7300
7517
|
),
|
7301
|
-
/* @__PURE__ */
|
7302
|
-
/* @__PURE__ */
|
7518
|
+
/* @__PURE__ */ jsx54(Text16, { c: "green", fw: "bold", size: "sm", children: title ? title : `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
|
7519
|
+
/* @__PURE__ */ jsxs31(Group18, { children: [
|
7303
7520
|
extraTopRight,
|
7304
|
-
/* @__PURE__ */
|
7521
|
+
/* @__PURE__ */ jsx54(MySwitchTheme, {})
|
7305
7522
|
] })
|
7306
7523
|
] })
|
7307
7524
|
) }),
|
7308
|
-
/* @__PURE__ */
|
7309
|
-
/* @__PURE__ */
|
7310
|
-
/* @__PURE__ */
|
7311
|
-
/* @__PURE__ */
|
7312
|
-
/* @__PURE__ */
|
7313
|
-
/* @__PURE__ */
|
7525
|
+
/* @__PURE__ */ jsxs31(AppShell.Navbar, { children: [
|
7526
|
+
/* @__PURE__ */ jsx54(MyAppSpotlight, { menu }),
|
7527
|
+
/* @__PURE__ */ jsxs31(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
7528
|
+
/* @__PURE__ */ jsx54(RenderNavLinks, { items: menu }),
|
7529
|
+
/* @__PURE__ */ jsx54(Divider3, {}),
|
7530
|
+
/* @__PURE__ */ jsx54(F_authenticate_Logout, {})
|
7314
7531
|
] }),
|
7315
|
-
/* @__PURE__ */
|
7316
|
-
/* @__PURE__ */
|
7317
|
-
/* @__PURE__ */
|
7532
|
+
/* @__PURE__ */ jsxs31(AppShell.Section, { p: "md", children: [
|
7533
|
+
/* @__PURE__ */ jsx54(Divider3, {}),
|
7534
|
+
/* @__PURE__ */ jsx54(
|
7318
7535
|
Image3,
|
7319
7536
|
{
|
7320
7537
|
fit: "contain",
|
@@ -7328,7 +7545,7 @@ function BasicAppShell({ children, menu, extraTopRight, title }) {
|
|
7328
7545
|
)
|
7329
7546
|
] })
|
7330
7547
|
] }),
|
7331
|
-
/* @__PURE__ */
|
7548
|
+
/* @__PURE__ */ jsx54(
|
7332
7549
|
AppShell.Main,
|
7333
7550
|
{
|
7334
7551
|
bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7383,31 +7600,24 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
7383
7600
|
|
7384
7601
|
// src/components/Layouts/Container/MyContainer.tsx
|
7385
7602
|
import { Container, Flex as Flex5 } from "@mantine/core";
|
7386
|
-
import { jsx as
|
7603
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
7387
7604
|
function MyContainer(_a) {
|
7388
7605
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7389
|
-
return /* @__PURE__ */
|
7606
|
+
return /* @__PURE__ */ jsx55(Container, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx55(Flex5, { direction: "column", children }) }));
|
7390
7607
|
}
|
7391
7608
|
|
7392
|
-
// src/constants/object/color.ts
|
7393
|
-
var OBJECT_COlORS = {
|
7394
|
-
mantineBackgroundPrimary: "light-dark(var(--mantine-color-white), var(--mantine-color-dark))",
|
7395
|
-
mantineBackgroundSecondary: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
7396
|
-
mantineBackgroundBlueLight: "var(--mantine-color-blue-light)"
|
7397
|
-
};
|
7398
|
-
|
7399
7609
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7400
7610
|
import {
|
7401
7611
|
Box as Box4,
|
7402
7612
|
Burger,
|
7403
|
-
Button as
|
7613
|
+
Button as Button16,
|
7404
7614
|
Container as Container2,
|
7405
|
-
Divider as
|
7615
|
+
Divider as Divider4,
|
7406
7616
|
Drawer,
|
7407
|
-
Group as
|
7617
|
+
Group as Group19,
|
7408
7618
|
Image as Image4,
|
7409
7619
|
ScrollArea as ScrollArea4,
|
7410
|
-
Text as
|
7620
|
+
Text as Text17,
|
7411
7621
|
TextInput as TextInput3,
|
7412
7622
|
ThemeIcon,
|
7413
7623
|
UnstyledButton,
|
@@ -7439,7 +7649,7 @@ function useHeaderMegaMenuStore() {
|
|
7439
7649
|
}
|
7440
7650
|
|
7441
7651
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7442
|
-
import { jsx as
|
7652
|
+
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
7443
7653
|
var mockdata = [
|
7444
7654
|
{
|
7445
7655
|
icon: IconCode,
|
@@ -7477,27 +7687,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7477
7687
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure11(false);
|
7478
7688
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
7479
7689
|
const theme = useMantineTheme();
|
7480
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
7481
|
-
/* @__PURE__ */
|
7482
|
-
/* @__PURE__ */
|
7483
|
-
/* @__PURE__ */
|
7484
|
-
/* @__PURE__ */
|
7690
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx56(UnstyledButton, { className: css_default.subLink, children: /* @__PURE__ */ jsxs32(Group19, { wrap: "nowrap", align: "flex-start", children: [
|
7691
|
+
/* @__PURE__ */ jsx56(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx56(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
7692
|
+
/* @__PURE__ */ jsxs32("div", { children: [
|
7693
|
+
/* @__PURE__ */ jsx56(Text17, { size: "sm", fw: 500, children: item.title }),
|
7694
|
+
/* @__PURE__ */ jsx56(Text17, { size: "xs", c: "dimmed", children: item.description })
|
7485
7695
|
] })
|
7486
7696
|
] }) }, item.title));
|
7487
|
-
return /* @__PURE__ */
|
7488
|
-
/* @__PURE__ */
|
7489
|
-
/* @__PURE__ */
|
7490
|
-
/* @__PURE__ */
|
7491
|
-
/* @__PURE__ */
|
7697
|
+
return /* @__PURE__ */ jsxs32(Box4, { children: [
|
7698
|
+
/* @__PURE__ */ jsx56("header", { className: css_default.header, children: /* @__PURE__ */ jsxs32(Group19, { justify: "space-between", h: "100%", children: [
|
7699
|
+
/* @__PURE__ */ jsxs32(Group19, { children: [
|
7700
|
+
/* @__PURE__ */ jsx56(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
7701
|
+
/* @__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)) })
|
7492
7702
|
] }),
|
7493
|
-
/* @__PURE__ */
|
7494
|
-
/* @__PURE__ */
|
7495
|
-
/* @__PURE__ */
|
7703
|
+
/* @__PURE__ */ jsxs32(Group19, { children: [
|
7704
|
+
/* @__PURE__ */ jsx56(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx56(IconSearch2, {}), radius: "xl", w: "250px" }),
|
7705
|
+
/* @__PURE__ */ jsx56(MySwitchTheme, {})
|
7496
7706
|
] }),
|
7497
|
-
/* @__PURE__ */
|
7707
|
+
/* @__PURE__ */ jsx56(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
7498
7708
|
] }) }),
|
7499
|
-
/* @__PURE__ */
|
7500
|
-
/* @__PURE__ */
|
7709
|
+
/* @__PURE__ */ jsx56(Container2, { fluid: true, pt: "sm", pb: "md", bg: object_colors.mantineBackgroundSecondary, mih: "93vh", children }),
|
7710
|
+
/* @__PURE__ */ jsx56(
|
7501
7711
|
Drawer,
|
7502
7712
|
{
|
7503
7713
|
opened: drawerOpened,
|
@@ -7507,10 +7717,10 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7507
7717
|
title: "Navigation",
|
7508
7718
|
hiddenFrom: "sm",
|
7509
7719
|
zIndex: 1e6,
|
7510
|
-
children: /* @__PURE__ */
|
7511
|
-
/* @__PURE__ */
|
7512
|
-
/* @__PURE__ */
|
7513
|
-
/* @__PURE__ */
|
7720
|
+
children: /* @__PURE__ */ jsxs32(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
7721
|
+
/* @__PURE__ */ jsx56(Divider4, { my: "sm" }),
|
7722
|
+
/* @__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)) }),
|
7723
|
+
/* @__PURE__ */ jsx56(Divider4, { my: "sm" })
|
7514
7724
|
] })
|
7515
7725
|
}
|
7516
7726
|
)
|
@@ -7518,8 +7728,8 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7518
7728
|
}
|
7519
7729
|
|
7520
7730
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7521
|
-
import { Badge as
|
7522
|
-
import { jsx as
|
7731
|
+
import { Badge as Badge5, Breadcrumbs, Code, Container as Container3, Divider as Divider5, Group as Group20, Text as Text18, Title } from "@mantine/core";
|
7732
|
+
import { jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
7523
7733
|
var getStatusColor = (status) => {
|
7524
7734
|
switch (status) {
|
7525
7735
|
case "Prototype":
|
@@ -7530,11 +7740,11 @@ var getStatusColor = (status) => {
|
|
7530
7740
|
};
|
7531
7741
|
function PageTitle({ title, status, note }) {
|
7532
7742
|
const color = getStatusColor(status);
|
7533
|
-
return /* @__PURE__ */
|
7534
|
-
/* @__PURE__ */
|
7535
|
-
/* @__PURE__ */
|
7536
|
-
status && /* @__PURE__ */
|
7537
|
-
|
7743
|
+
return /* @__PURE__ */ jsx57(Group20, { children: /* @__PURE__ */ jsxs33(MyFlexColumn, { gap: 0, children: [
|
7744
|
+
/* @__PURE__ */ jsxs33(Group20, { align: "center", children: [
|
7745
|
+
/* @__PURE__ */ jsx57(Title, { order: 3, children: title }),
|
7746
|
+
status && /* @__PURE__ */ jsx57(
|
7747
|
+
Badge5,
|
7538
7748
|
{
|
7539
7749
|
variant: "gradient",
|
7540
7750
|
gradient: { from: color, to: `${color}.5` },
|
@@ -7544,7 +7754,7 @@ function PageTitle({ title, status, note }) {
|
|
7544
7754
|
}
|
7545
7755
|
)
|
7546
7756
|
] }),
|
7547
|
-
/* @__PURE__ */
|
7757
|
+
/* @__PURE__ */ jsx57(Text18, { size: "lg", c: "dimmed", fs: "italic", children: note })
|
7548
7758
|
] }) });
|
7549
7759
|
}
|
7550
7760
|
function MyPageContent({
|
@@ -7557,11 +7767,11 @@ function MyPageContent({
|
|
7557
7767
|
var _a;
|
7558
7768
|
const basicAppShellStore = useS_BasicAppShell();
|
7559
7769
|
const finalTitle = title || basicAppShellStore.state.title;
|
7560
|
-
return /* @__PURE__ */
|
7561
|
-
/* @__PURE__ */
|
7562
|
-
/* @__PURE__ */
|
7563
|
-
/* @__PURE__ */
|
7564
|
-
/* @__PURE__ */
|
7770
|
+
return /* @__PURE__ */ jsxs33(Container3, { p: 0, fluid: true, children: [
|
7771
|
+
/* @__PURE__ */ jsxs33(Group20, { justify: "space-between", children: [
|
7772
|
+
/* @__PURE__ */ jsxs33(Group20, { children: [
|
7773
|
+
/* @__PURE__ */ jsx57(MyButtonRouterBack, {}),
|
7774
|
+
/* @__PURE__ */ jsx57(
|
7565
7775
|
PageTitle,
|
7566
7776
|
{
|
7567
7777
|
title: finalTitle,
|
@@ -7571,64 +7781,64 @@ function MyPageContent({
|
|
7571
7781
|
),
|
7572
7782
|
leftTopBar
|
7573
7783
|
] }),
|
7574
|
-
/* @__PURE__ */
|
7784
|
+
/* @__PURE__ */ jsxs33(Group20, { p: "md", children: [
|
7575
7785
|
rightTopBar,
|
7576
|
-
/* @__PURE__ */
|
7786
|
+
/* @__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)) })
|
7577
7787
|
] })
|
7578
7788
|
] }),
|
7579
|
-
/* @__PURE__ */
|
7789
|
+
/* @__PURE__ */ jsx57(Divider5, { my: "xs" }),
|
7580
7790
|
children,
|
7581
|
-
/* @__PURE__ */
|
7582
|
-
/* @__PURE__ */
|
7791
|
+
/* @__PURE__ */ jsx57(Divider5, { my: "xs" }),
|
7792
|
+
/* @__PURE__ */ jsx57(MyFlexEnd, { children: /* @__PURE__ */ jsx57(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode }) })
|
7583
7793
|
] });
|
7584
7794
|
}
|
7585
7795
|
|
7586
7796
|
// src/components/Layouts/Tab/MyTab.tsx
|
7587
7797
|
import { rem, Space as Space3, Tabs } from "@mantine/core";
|
7588
|
-
import { jsx as
|
7798
|
+
import { jsx as jsx58, jsxs as jsxs34 } from "react/jsx-runtime";
|
7589
7799
|
function MyTab(_a) {
|
7590
7800
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
7591
7801
|
const iconStyle = { width: rem(20), height: rem(20) };
|
7592
|
-
return /* @__PURE__ */
|
7593
|
-
/* @__PURE__ */
|
7594
|
-
return /* @__PURE__ */
|
7802
|
+
return /* @__PURE__ */ jsxs34(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
7803
|
+
/* @__PURE__ */ jsx58(Tabs.List, { children: tabList.map((item, idx) => {
|
7804
|
+
return /* @__PURE__ */ jsx58(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx58(item.icon, { style: iconStyle }), children: item.label }, idx);
|
7595
7805
|
}) }),
|
7596
|
-
/* @__PURE__ */
|
7806
|
+
/* @__PURE__ */ jsx58(Space3, { my: "md" }),
|
7597
7807
|
children
|
7598
7808
|
] }));
|
7599
7809
|
}
|
7600
7810
|
|
7601
7811
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
7602
|
-
import { ActionIcon as ActionIcon12, Button as
|
7812
|
+
import { ActionIcon as ActionIcon12, Button as Button17, Fieldset as Fieldset5, Group as Group21, Modal as Modal11 } from "@mantine/core";
|
7603
7813
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
7604
7814
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
7605
|
-
import { jsx as
|
7815
|
+
import { jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
|
7606
7816
|
function MyDataTableSelect(_a) {
|
7607
7817
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
7608
7818
|
const disc = useDisclosure12(false);
|
7609
7819
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
7610
|
-
return /* @__PURE__ */
|
7611
|
-
/* @__PURE__ */
|
7820
|
+
return /* @__PURE__ */ jsxs35(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
7821
|
+
/* @__PURE__ */ jsx59(
|
7612
7822
|
MyDataTable,
|
7613
7823
|
__spreadValues({
|
7614
7824
|
renderTopToolbarCustomActions: ({ table }) => {
|
7615
|
-
return /* @__PURE__ */
|
7825
|
+
return /* @__PURE__ */ jsxs35(Group21, { children: [
|
7616
7826
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
7617
|
-
/* @__PURE__ */
|
7827
|
+
/* @__PURE__ */ jsx59(Button17, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
7618
7828
|
] });
|
7619
7829
|
},
|
7620
7830
|
columns,
|
7621
7831
|
data: listState[0],
|
7622
7832
|
renderRowActions: ({ row }) => {
|
7623
|
-
return /* @__PURE__ */
|
7833
|
+
return /* @__PURE__ */ jsx59(MyCenterFull, { children: /* @__PURE__ */ jsx59(ActionIcon12, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx59(IconX2, {}) }) });
|
7624
7834
|
}
|
7625
7835
|
}, rest)
|
7626
7836
|
),
|
7627
|
-
/* @__PURE__ */
|
7837
|
+
/* @__PURE__ */ jsx59(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx59(
|
7628
7838
|
MyDataTable,
|
7629
7839
|
__spreadValues({
|
7630
7840
|
renderTopToolbarCustomActions: ({ table }) => {
|
7631
|
-
return /* @__PURE__ */
|
7841
|
+
return /* @__PURE__ */ jsx59(Button17, { onClick: () => {
|
7632
7842
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
7633
7843
|
disc[1].close();
|
7634
7844
|
}, children: "Ch\u1ECDn" });
|
@@ -7644,7 +7854,7 @@ function MyDataTableSelect(_a) {
|
|
7644
7854
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
7645
7855
|
import { Select as Select3 } from "@mantine/core";
|
7646
7856
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
7647
|
-
import { jsx as
|
7857
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
7648
7858
|
function MySelectAPIGet(_a) {
|
7649
7859
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
7650
7860
|
var _a2;
|
@@ -7663,7 +7873,7 @@ function MySelectAPIGet(_a) {
|
|
7663
7873
|
label: `${item.code}-${item.name}`
|
7664
7874
|
};
|
7665
7875
|
});
|
7666
|
-
return /* @__PURE__ */
|
7876
|
+
return /* @__PURE__ */ jsx60(
|
7667
7877
|
Select3,
|
7668
7878
|
__spreadValues({
|
7669
7879
|
label,
|
@@ -7676,9 +7886,9 @@ function MySelectAPIGet(_a) {
|
|
7676
7886
|
// src/components/ScheduleX/MyScheduleX.tsx
|
7677
7887
|
import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as ScheduleXCalendar2 } from "@schedule-x/react";
|
7678
7888
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
7679
|
-
import { useState as
|
7889
|
+
import { useState as useState12 } from "react";
|
7680
7890
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
7681
|
-
import { jsx as
|
7891
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
7682
7892
|
function MyScheduleX({
|
7683
7893
|
values,
|
7684
7894
|
timeGridEvent,
|
@@ -7687,8 +7897,8 @@ function MyScheduleX({
|
|
7687
7897
|
startDayBoundaries = "05:00",
|
7688
7898
|
endDayBoundaries = "21:00"
|
7689
7899
|
}) {
|
7690
|
-
const eventsService =
|
7691
|
-
const eventModalPlugin =
|
7900
|
+
const eventsService = useState12(() => createEventsServicePlugin2())[0];
|
7901
|
+
const eventModalPlugin = useState12(() => createEventModalPlugin2())[0];
|
7692
7902
|
const calendar = useNextCalendarApp2({
|
7693
7903
|
locale: "vi-VN",
|
7694
7904
|
dayBoundaries: {
|
@@ -7703,7 +7913,7 @@ function MyScheduleX({
|
|
7703
7913
|
events: values,
|
7704
7914
|
plugins: [eventsService, eventModalPlugin]
|
7705
7915
|
});
|
7706
|
-
return /* @__PURE__ */
|
7916
|
+
return /* @__PURE__ */ jsx61(
|
7707
7917
|
ScheduleXCalendar2,
|
7708
7918
|
{
|
7709
7919
|
calendarApp: calendar,
|
@@ -7717,9 +7927,9 @@ function MyScheduleX({
|
|
7717
7927
|
|
7718
7928
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
7719
7929
|
import { Skeleton } from "@mantine/core";
|
7720
|
-
import { jsx as
|
7930
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
7721
7931
|
function MySkeletonTable({ h: h4 = 500 }) {
|
7722
|
-
return /* @__PURE__ */
|
7932
|
+
return /* @__PURE__ */ jsx62(Skeleton, { h: h4 });
|
7723
7933
|
}
|
7724
7934
|
|
7725
7935
|
export {
|
@@ -7772,11 +7982,14 @@ export {
|
|
7772
7982
|
useS_BasicAppShell,
|
7773
7983
|
FaviconSetter,
|
7774
7984
|
MyDateInput,
|
7985
|
+
MyDayOfWeekPicker,
|
7775
7986
|
MyFieldset,
|
7776
7987
|
MyFileInput,
|
7777
7988
|
MyNumberInput,
|
7778
7989
|
MyTextArea,
|
7779
7990
|
MyTextEditor,
|
7991
|
+
object_colors,
|
7992
|
+
MyWeeklySessionSchedulerPicker,
|
7780
7993
|
useS_authenticate,
|
7781
7994
|
F_authenticate_Logout,
|
7782
7995
|
BasicAppShell_transformMenuToEnum,
|
@@ -7784,7 +7997,6 @@ export {
|
|
7784
7997
|
groupToTwoLevels,
|
7785
7998
|
utils_layout_getItemsWithoutLinks,
|
7786
7999
|
MyContainer,
|
7787
|
-
OBJECT_COlORS,
|
7788
8000
|
useHeaderMegaMenuStore,
|
7789
8001
|
HeaderMegaMenu,
|
7790
8002
|
MyPageContent,
|
@@ -309,8 +309,10 @@ interface IDataTable$1<TData extends MRT_RowData> extends MRT_TableOptions<TData
|
|
309
309
|
[K in keyof TData]?: FormatFunction<TData>;
|
310
310
|
};
|
311
311
|
setSelectedRow?: (data: any) => void;
|
312
|
+
isError?: boolean;
|
313
|
+
isLoading?: boolean;
|
312
314
|
}
|
313
|
-
declare function MyDataTable<TData extends MRT_RowData>({ formats, exportAble, csvConfigProps, rowActionSize, columns, data, renderTopToolbarCustomActions, setSelectedRow, ...rest }: IDataTable$1<TData>): react_jsx_runtime.JSX.Element | undefined;
|
315
|
+
declare function MyDataTable<TData extends MRT_RowData>({ formats, exportAble, csvConfigProps, rowActionSize, columns, data, renderTopToolbarCustomActions, setSelectedRow, isError, isLoading, ...rest }: IDataTable$1<TData>): react_jsx_runtime.JSX.Element | undefined;
|
314
316
|
|
315
317
|
interface MyIconTextProps {
|
316
318
|
icon?: React.ElementType;
|
@@ -344,6 +346,12 @@ interface IDateInput extends DateInputProps {
|
|
344
346
|
}
|
345
347
|
declare function MyDateInput({ label, ...rest }: IDateInput): react_jsx_runtime.JSX.Element;
|
346
348
|
|
349
|
+
interface MyDayOfWeekPickerProps {
|
350
|
+
value?: number[];
|
351
|
+
onChange?: (val: number[]) => void;
|
352
|
+
}
|
353
|
+
declare function MyDayOfWeekPicker({ value, onChange }: MyDayOfWeekPickerProps): react_jsx_runtime.JSX.Element;
|
354
|
+
|
347
355
|
interface IFieldset extends FieldsetProps {
|
348
356
|
children?: ReactNode;
|
349
357
|
title: string;
|
@@ -387,6 +395,18 @@ interface IMyTextInput extends TextInputProps {
|
|
387
395
|
}
|
388
396
|
declare function MyTextInput({ label, defaultValue, isPhoneNumber, ...rest }: IMyTextInput): react_jsx_runtime.JSX.Element;
|
389
397
|
|
398
|
+
interface IWeeklySession {
|
399
|
+
dayOfWeek: number;
|
400
|
+
startPeriod: number;
|
401
|
+
numberOfPeriods: number;
|
402
|
+
durationMinutes: number;
|
403
|
+
}
|
404
|
+
interface WeeklySessionSchedulerProps {
|
405
|
+
value?: IWeeklySession[];
|
406
|
+
onChange?: (val: IWeeklySession[]) => void;
|
407
|
+
}
|
408
|
+
declare function MyWeeklySessionSchedulerPicker({ value, onChange, }: WeeklySessionSchedulerProps): react_jsx_runtime.JSX.Element;
|
409
|
+
|
390
410
|
interface I$2 {
|
391
411
|
moduleCode?: string;
|
392
412
|
moduleName?: string;
|
@@ -521,4 +541,4 @@ interface IMySkeletonTable extends SkeletonProps {
|
|
521
541
|
}
|
522
542
|
declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
|
523
543
|
|
524
|
-
export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonDeleteList, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
|
544
|
+
export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, type IWeeklySession, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonDeleteList, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardInformation, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyDayOfWeekPicker, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, MyWeeklySessionSchedulerPicker, SelectFieldModal, SelectFileModal, type SelectFileModalProps, type WeeklySessionSchedulerProps, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
|
@@ -39,6 +39,7 @@ import {
|
|
39
39
|
MyDataTable,
|
40
40
|
MyDataTableSelect,
|
41
41
|
MyDateInput,
|
42
|
+
MyDayOfWeekPicker,
|
42
43
|
MyFieldset,
|
43
44
|
MyFileInput,
|
44
45
|
MyFlexColumn,
|
@@ -59,6 +60,7 @@ import {
|
|
59
60
|
MyTextArea,
|
60
61
|
MyTextEditor,
|
61
62
|
MyTextInput,
|
63
|
+
MyWeeklySessionSchedulerPicker,
|
62
64
|
SelectFieldModal,
|
63
65
|
SelectFileModal,
|
64
66
|
groupToTwoLevels,
|
@@ -66,7 +68,7 @@ import {
|
|
66
68
|
useS_BasicAppShell,
|
67
69
|
useS_ButtonImport,
|
68
70
|
utils_layout_getItemsWithoutLinks
|
69
|
-
} from "../chunk-
|
71
|
+
} from "../chunk-SA4BMRIP.mjs";
|
70
72
|
import "../chunk-HMRYQTJT.mjs";
|
71
73
|
import "../chunk-Y3YGC5IH.mjs";
|
72
74
|
import "../chunk-5U2JSHSJ.mjs";
|
@@ -113,6 +115,7 @@ export {
|
|
113
115
|
MyDataTable,
|
114
116
|
MyDataTableSelect,
|
115
117
|
MyDateInput,
|
118
|
+
MyDayOfWeekPicker,
|
116
119
|
MyFieldset,
|
117
120
|
MyFileInput,
|
118
121
|
MyFlexColumn,
|
@@ -133,6 +136,7 @@ export {
|
|
133
136
|
MyTextArea,
|
134
137
|
MyTextEditor,
|
135
138
|
MyTextInput,
|
139
|
+
MyWeeklySessionSchedulerPicker,
|
136
140
|
SelectFieldModal,
|
137
141
|
SelectFileModal,
|
138
142
|
groupToTwoLevels,
|
@@ -20,12 +20,12 @@ import {
|
|
20
20
|
MySelect,
|
21
21
|
MyTab,
|
22
22
|
MyTextInput,
|
23
|
-
OBJECT_COlORS,
|
24
23
|
groupToTwoLevels,
|
24
|
+
object_colors,
|
25
25
|
useS_BasicAppShell,
|
26
26
|
useS_authenticate,
|
27
27
|
utils_layout_getItemsWithoutLinks
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-SA4BMRIP.mjs";
|
29
29
|
import {
|
30
30
|
baseAxios_default,
|
31
31
|
useQ_AQ_GetAQModule,
|
@@ -752,6 +752,9 @@ function F_core18256() {
|
|
752
752
|
] });
|
753
753
|
}
|
754
754
|
|
755
|
+
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
756
|
+
import { Paper as Paper2, Space as Space2 } from "@mantine/core";
|
757
|
+
|
755
758
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
756
759
|
import { useForm as useForm7 } from "@mantine/form";
|
757
760
|
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
@@ -1039,7 +1042,6 @@ function SubRead2({
|
|
1039
1042
|
}
|
1040
1043
|
|
1041
1044
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
1042
|
-
import { Paper as Paper2, Space as Space2 } from "@mantine/core";
|
1043
1045
|
import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
|
1044
1046
|
function F_core26965({ RegulationsTypeId }) {
|
1045
1047
|
return /* @__PURE__ */ jsxs15(Paper2, { p: "md", children: [
|
@@ -1716,7 +1718,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
1716
1718
|
Table.Td,
|
1717
1719
|
{
|
1718
1720
|
colSpan: 7,
|
1719
|
-
bg:
|
1721
|
+
bg: object_colors.mantineBackgroundBlueLight,
|
1720
1722
|
children: /* @__PURE__ */ jsx29(Text, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
1721
1723
|
}
|
1722
1724
|
) }, item.label),
|
@@ -1841,7 +1843,7 @@ function F_core38677({ menuData: menuData2 }) {
|
|
1841
1843
|
return /* @__PURE__ */ jsxs22(Grid2, { children: [
|
1842
1844
|
/* @__PURE__ */ jsx30(Grid2.Col, { span: { base: 12, sm: 5 }, children: /* @__PURE__ */ jsx30(ScrollArea2.Autosize, { children: /* @__PURE__ */ jsx30(F_core38677_ReadUser, {}) }) }),
|
1843
1845
|
/* @__PURE__ */ jsx30(Grid2.Col, { span: { base: 12, sm: 7 }, children: /* @__PURE__ */ jsxs22(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
1844
|
-
/* @__PURE__ */ jsx30(ScrollArea2.Autosize, { h: "100%", children: /* @__PURE__ */ jsx30(Paper4, { p: "md", bg:
|
1846
|
+
/* @__PURE__ */ jsx30(ScrollArea2.Autosize, { h: "100%", children: /* @__PURE__ */ jsx30(Paper4, { p: "md", bg: object_colors.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx30(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
1845
1847
|
/* @__PURE__ */ jsx30(F_core38677_Save, {})
|
1846
1848
|
] }) })
|
1847
1849
|
] });
|
@@ -3320,7 +3322,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
3320
3322
|
Table3.Td,
|
3321
3323
|
{
|
3322
3324
|
colSpan: 7,
|
3323
|
-
bg:
|
3325
|
+
bg: object_colors.mantineBackgroundBlueLight,
|
3324
3326
|
children: /* @__PURE__ */ jsx60(Text2, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
3325
3327
|
}
|
3326
3328
|
) }, item.label),
|
@@ -3445,7 +3447,7 @@ function F_core83092({ menuData: menuData2 }) {
|
|
3445
3447
|
return /* @__PURE__ */ jsxs39(Grid4, { children: [
|
3446
3448
|
/* @__PURE__ */ jsx61(Grid4.Col, { span: { base: 12, sm: 5 }, children: /* @__PURE__ */ jsx61(ScrollArea4.Autosize, { children: /* @__PURE__ */ jsx61(F_core83092_ReadUser, {}) }) }),
|
3447
3449
|
/* @__PURE__ */ jsx61(Grid4.Col, { span: { base: 12, sm: 7 }, children: /* @__PURE__ */ jsxs39(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
3448
|
-
/* @__PURE__ */ jsx61(ScrollArea4.Autosize, { h: "100%", children: /* @__PURE__ */ jsx61(Paper6, { p: "md", bg:
|
3450
|
+
/* @__PURE__ */ jsx61(ScrollArea4.Autosize, { h: "100%", children: /* @__PURE__ */ jsx61(Paper6, { p: "md", bg: object_colors.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx61(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
3449
3451
|
/* @__PURE__ */ jsx61(F_core83092_Save, {})
|
3450
3452
|
] }) })
|
3451
3453
|
] });
|