componentes-sinco 1.1.30 → 1.1.31
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.
- package/dist/index.cjs +69 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +96 -78
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52,8 +52,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
52
52
|
|
|
53
53
|
// src/Components/Adjuntar/Adjuntar.tsx
|
|
54
54
|
import React4, { useEffect as useEffect3, useRef, useState as useState4 } from "react";
|
|
55
|
-
import { Box as Box3, Button as Button3, CircularProgress, IconButton as IconButton3, Stack as Stack3, Tooltip, Typography as Typography3 } from "@mui/material";
|
|
55
|
+
import { Box as Box3, Button as Button3, CircularProgress, IconButton as IconButton3, Stack as Stack3, Tooltip, Typography as Typography3, SvgIcon } from "@mui/material";
|
|
56
56
|
import { CloudUploadOutlined, AttachFileOutlined, DeleteOutline, UploadFileOutlined, FileDownload } from "@mui/icons-material";
|
|
57
|
+
import * as Muicon from "@mui/icons-material";
|
|
57
58
|
|
|
58
59
|
// src/Components/ToastNotification/SCToastNotification.tsx
|
|
59
60
|
import React, { useEffect as useEffect2, useState as useState2 } from "react";
|
|
@@ -398,7 +399,8 @@ var Attachment = ({
|
|
|
398
399
|
onChange,
|
|
399
400
|
downloadAction,
|
|
400
401
|
deleteAction,
|
|
401
|
-
initialFiles = []
|
|
402
|
+
initialFiles = [],
|
|
403
|
+
iconFileItem
|
|
402
404
|
}) => {
|
|
403
405
|
const [files, setFiles] = useState4([]);
|
|
404
406
|
const [fileToDelete, setFileToDelete] = useState4(null);
|
|
@@ -406,6 +408,14 @@ var Attachment = ({
|
|
|
406
408
|
const [openModal, setOpenModal] = useState4(false);
|
|
407
409
|
const [isDragFile, setIsDragFile] = useState4(false);
|
|
408
410
|
const inputRef = useRef(null);
|
|
411
|
+
let IconFileItem;
|
|
412
|
+
if (iconFileItem) {
|
|
413
|
+
if (Muicon[iconFileItem] == void 0) {
|
|
414
|
+
IconFileItem = iconFileItem;
|
|
415
|
+
} else {
|
|
416
|
+
IconFileItem = Muicon[iconFileItem];
|
|
417
|
+
}
|
|
418
|
+
}
|
|
409
419
|
useEffect3(() => {
|
|
410
420
|
if (initialFiles && initialFiles.length > 0) {
|
|
411
421
|
setFiles(initialFiles);
|
|
@@ -656,7 +666,7 @@ var Attachment = ({
|
|
|
656
666
|
}
|
|
657
667
|
}
|
|
658
668
|
},
|
|
659
|
-
/* @__PURE__ */ React4.createElement(Stack3, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React4.createElement(
|
|
669
|
+
/* @__PURE__ */ React4.createElement(Stack3, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, iconFileItem ? /* @__PURE__ */ React4.createElement(SvgIcon, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ React4.createElement(
|
|
660
670
|
UploadFileOutlined,
|
|
661
671
|
{
|
|
662
672
|
color: file.uploadError ? "error" : "primary",
|
|
@@ -799,7 +809,7 @@ var AttachmentButton = ({ buttonAttachment, open, setOpen }) => {
|
|
|
799
809
|
};
|
|
800
810
|
|
|
801
811
|
// src/Components/Adjuntar/mobile/AdjuntarMobile.tsx
|
|
802
|
-
import { IconButton as IconButton4, Stack as Stack4, SwipeableDrawer, Tooltip as Tooltip2, Typography as Typography4 } from "@mui/material";
|
|
812
|
+
import { IconButton as IconButton4, Stack as Stack4, SwipeableDrawer, Tooltip as Tooltip2, Typography as Typography4, SvgIcon as SvgIcon2 } from "@mui/material";
|
|
803
813
|
import CssBaseline from "@mui/material/CssBaseline";
|
|
804
814
|
import { Box as Box4 } from "@mui/system";
|
|
805
815
|
import { CloseOutlined, DeleteOutline as DeleteOutline2, FolderOpenOutlined, PhotoCameraOutlined, UploadFileOutlined as UploadFileOutlined2 } from "@mui/icons-material";
|
|
@@ -807,6 +817,7 @@ import PhotoCameraIcon from "@mui/icons-material/PhotoCamera";
|
|
|
807
817
|
import CancelOutlinedIcon from "@mui/icons-material/CancelOutlined";
|
|
808
818
|
import ImageOutlinedIcon from "@mui/icons-material/ImageOutlined";
|
|
809
819
|
import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
|
|
820
|
+
import * as Muicon2 from "@mui/icons-material";
|
|
810
821
|
var AttachmentMobile = ({
|
|
811
822
|
buttonAttachment,
|
|
812
823
|
maxSize = 400,
|
|
@@ -817,7 +828,8 @@ var AttachmentMobile = ({
|
|
|
817
828
|
onChange,
|
|
818
829
|
children,
|
|
819
830
|
sx,
|
|
820
|
-
view = "button"
|
|
831
|
+
view = "button",
|
|
832
|
+
iconFileItem
|
|
821
833
|
}) => {
|
|
822
834
|
const webcamRef = useRef2(null);
|
|
823
835
|
const [abrirCamara, setAbrirCamara] = useState5(false);
|
|
@@ -828,6 +840,14 @@ var AttachmentMobile = ({
|
|
|
828
840
|
const toggleAttachment = (newOpen) => () => {
|
|
829
841
|
setOpen(newOpen);
|
|
830
842
|
};
|
|
843
|
+
let IconFileItem;
|
|
844
|
+
if (iconFileItem) {
|
|
845
|
+
if (Muicon2[iconFileItem] == void 0) {
|
|
846
|
+
IconFileItem = iconFileItem;
|
|
847
|
+
} else {
|
|
848
|
+
IconFileItem = Muicon2[iconFileItem];
|
|
849
|
+
}
|
|
850
|
+
}
|
|
831
851
|
const closeCam = () => {
|
|
832
852
|
setAbrirCamara(false);
|
|
833
853
|
};
|
|
@@ -1136,7 +1156,7 @@ var AttachmentMobile = ({
|
|
|
1136
1156
|
}
|
|
1137
1157
|
}
|
|
1138
1158
|
},
|
|
1139
|
-
/* @__PURE__ */ React6.createElement(Stack4, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React6.createElement(
|
|
1159
|
+
/* @__PURE__ */ React6.createElement(Stack4, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, iconFileItem ? /* @__PURE__ */ React6.createElement(SvgIcon2, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ React6.createElement(
|
|
1140
1160
|
UploadFileOutlined2,
|
|
1141
1161
|
{
|
|
1142
1162
|
color: file.uploadError ? "error" : "primary",
|
|
@@ -1390,10 +1410,10 @@ import { Drawer, Stack as Stack9, SwipeableDrawer as SwipeableDrawer2, Box as Bo
|
|
|
1390
1410
|
import Grid6 from "@mui/material/Grid";
|
|
1391
1411
|
|
|
1392
1412
|
// src/Components/Drawer/Helpers/Utils.tsx
|
|
1393
|
-
import * as
|
|
1413
|
+
import * as Muicon3 from "@mui/icons-material";
|
|
1394
1414
|
var getIcon = (iconName) => {
|
|
1395
|
-
if (iconName && iconName in
|
|
1396
|
-
return
|
|
1415
|
+
if (iconName && iconName in Muicon3) {
|
|
1416
|
+
return Muicon3[iconName];
|
|
1397
1417
|
}
|
|
1398
1418
|
return null;
|
|
1399
1419
|
};
|
|
@@ -1541,7 +1561,7 @@ var useChipFilters = (arrayElements, chipFilters) => {
|
|
|
1541
1561
|
var _a, _b, _c, _d;
|
|
1542
1562
|
const { validation, element: typeElement } = validateTypeElements(element);
|
|
1543
1563
|
const textValue = ((_a = typeElement.state) == null ? void 0 : _a.textValue) !== void 0 ? String((_b = typeElement.state) == null ? void 0 : _b.textValue) : String(typeElement.state);
|
|
1544
|
-
if (textValue.trim() !== "" && textValue.trim() !== ",") {
|
|
1564
|
+
if (textValue.trim() !== "" && textValue.trim() !== "," && textValue.trim() !== "undefined") {
|
|
1545
1565
|
const value = validation === "dateRange" ? `${(_c = typeElement.state[0]) == null ? void 0 : _c.format("DD/MM/YYYY")} - ${(_d = typeElement.state[1]) == null ? void 0 : _d.format("DD/MM/YYYY")}` : textValue;
|
|
1546
1566
|
const existingFilterIndex = newFiltersToAdd.findIndex(
|
|
1547
1567
|
(filter) => filter.arrayElement.label === element.label
|
|
@@ -1604,7 +1624,7 @@ var useChipFilters = (arrayElements, chipFilters) => {
|
|
|
1604
1624
|
return ((_b = typeElement.state) == null ? void 0 : _b[0]) !== null && ((_c = typeElement.state) == null ? void 0 : _c[1]) !== null;
|
|
1605
1625
|
} else {
|
|
1606
1626
|
const stateValue = String(typeElement.state).trim();
|
|
1607
|
-
return stateValue !== "" && stateValue !== ",";
|
|
1627
|
+
return stateValue !== "" && stateValue !== "," && stateValue !== "undefined";
|
|
1608
1628
|
}
|
|
1609
1629
|
});
|
|
1610
1630
|
};
|
|
@@ -1727,8 +1747,8 @@ var DrawerButton = ({
|
|
|
1727
1747
|
// src/Components/Drawer/components/ChipFiltersDisplay.tsx
|
|
1728
1748
|
import React11, { useRef as useRef4 } from "react";
|
|
1729
1749
|
import { Box as Box7, IconButton as IconButton6, Chip as Chip3 } from "@mui/material";
|
|
1730
|
-
import
|
|
1731
|
-
import
|
|
1750
|
+
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
1751
|
+
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
1732
1752
|
var ChipFiltersDisplay = ({
|
|
1733
1753
|
textFilters,
|
|
1734
1754
|
onDeleteFilter
|
|
@@ -1739,7 +1759,7 @@ var ChipFiltersDisplay = ({
|
|
|
1739
1759
|
scrollRef.current.scrollLeft += offset;
|
|
1740
1760
|
}
|
|
1741
1761
|
};
|
|
1742
|
-
return /* @__PURE__ */ React11.createElement(Box7, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, /* @__PURE__ */ React11.createElement(IconButton6, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ React11.createElement(
|
|
1762
|
+
return /* @__PURE__ */ React11.createElement(Box7, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, /* @__PURE__ */ React11.createElement(IconButton6, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ React11.createElement(ChevronLeftIcon, { fontSize: "small", color: "action" })), /* @__PURE__ */ React11.createElement(
|
|
1743
1763
|
Box7,
|
|
1744
1764
|
{
|
|
1745
1765
|
ref: scrollRef,
|
|
@@ -1766,7 +1786,7 @@ var ChipFiltersDisplay = ({
|
|
|
1766
1786
|
}
|
|
1767
1787
|
})
|
|
1768
1788
|
))
|
|
1769
|
-
), /* @__PURE__ */ React11.createElement(IconButton6, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ React11.createElement(
|
|
1789
|
+
), /* @__PURE__ */ React11.createElement(IconButton6, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ React11.createElement(ChevronRightIcon, { fontSize: "small", color: "action" })));
|
|
1770
1790
|
};
|
|
1771
1791
|
|
|
1772
1792
|
// src/Components/Drawer/components/DrawerContent.tsx
|
|
@@ -1775,21 +1795,21 @@ import { Box as Box13, Stack as Stack8 } from "@mui/material";
|
|
|
1775
1795
|
|
|
1776
1796
|
// src/Components/Textfield/SCTextField.tsx
|
|
1777
1797
|
import React12, { useEffect as useEffect8, useState as useState10 } from "react";
|
|
1778
|
-
import { FormControl, IconButton as IconButton7, InputAdornment, InputLabel, OutlinedInput, FilledInput, Popover as Popover2, Input, Box as Box8, Typography as Typography7, SvgIcon, Tooltip as Tooltip4 } from "@mui/material";
|
|
1798
|
+
import { FormControl, IconButton as IconButton7, InputAdornment, InputLabel, OutlinedInput, FilledInput, Popover as Popover2, Input, Box as Box8, Typography as Typography7, SvgIcon as SvgIcon3, Tooltip as Tooltip4 } from "@mui/material";
|
|
1779
1799
|
import Grid from "@mui/material/Grid";
|
|
1780
1800
|
import { Visibility, VisibilityOff, InfoOutlined } from "@mui/icons-material";
|
|
1781
1801
|
|
|
1782
1802
|
// src/Components/Textfield/Helpers/validateIcon.tsx
|
|
1783
|
-
import * as
|
|
1803
|
+
import * as Muicon4 from "@mui/icons-material";
|
|
1784
1804
|
function getIconComponent2(name) {
|
|
1785
1805
|
if (typeof name !== "string") return name;
|
|
1786
|
-
return name in
|
|
1806
|
+
return name in Muicon4 ? Muicon4[name] : void 0;
|
|
1787
1807
|
}
|
|
1788
1808
|
function getIconValidation(name) {
|
|
1789
1809
|
if (typeof name !== "string") {
|
|
1790
1810
|
return (name == null ? void 0 : name.type) ? "icon" : "text";
|
|
1791
1811
|
}
|
|
1792
|
-
return name in
|
|
1812
|
+
return name in Muicon4 ? "icon" : "text";
|
|
1793
1813
|
}
|
|
1794
1814
|
|
|
1795
1815
|
// src/Components/Textfield/Helpers/validateKeyDown.tsx
|
|
@@ -1919,7 +1939,7 @@ var SCTextField = ({
|
|
|
1919
1939
|
const handleCloseInfoElement = () => {
|
|
1920
1940
|
setAnchorInfoElement(null);
|
|
1921
1941
|
};
|
|
1922
|
-
return /* @__PURE__ */ React12.createElement(Box8, { sx: { width } }, /* @__PURE__ */ React12.createElement(Grid, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ React12.createElement(
|
|
1942
|
+
return /* @__PURE__ */ React12.createElement(Box8, { sx: { width } }, /* @__PURE__ */ React12.createElement(Grid, { container: true, alignItems: "center", mb: 1.25, gap: 0.5 }, iconTitle && IconTitle ? /* @__PURE__ */ React12.createElement(SvgIcon3, { color: "action", fontSize: "small", component: IconTitle }) : "", title ? /* @__PURE__ */ React12.createElement(Typography7, { mx: 0.5, variant: "subtitle2", color: "text.secondary" }, title) : "", infoTitle ? /* @__PURE__ */ React12.createElement(React12.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
|
|
1923
1943
|
InfoOutlined,
|
|
1924
1944
|
{
|
|
1925
1945
|
color: "action",
|
|
@@ -2109,7 +2129,7 @@ function getIcon2(name) {
|
|
|
2109
2129
|
|
|
2110
2130
|
// src/Components/TextArea/SCTextArea.tsx
|
|
2111
2131
|
import React13, { useEffect as useEffect9, useState as useState11 } from "react";
|
|
2112
|
-
import { Typography as Typography8, Stack as Stack7, TextField, Box as Box9, Popover as Popover3, Tooltip as Tooltip5, SvgIcon as
|
|
2132
|
+
import { Typography as Typography8, Stack as Stack7, TextField, Box as Box9, Popover as Popover3, Tooltip as Tooltip5, SvgIcon as SvgIcon4, Grid as Grid2 } from "@mui/material";
|
|
2113
2133
|
import { InfoOutlined as InfoOutlined2 } from "@mui/icons-material";
|
|
2114
2134
|
var SCTextArea = ({
|
|
2115
2135
|
//informativas
|
|
@@ -2158,7 +2178,7 @@ var SCTextArea = ({
|
|
|
2158
2178
|
const handleCloseInfoTitle = () => {
|
|
2159
2179
|
setAnchorInfoTitle(null);
|
|
2160
2180
|
};
|
|
2161
|
-
return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(Box9, { sx: { width } }, /* @__PURE__ */ React13.createElement(Grid2, { container: true, sx: { alignItems: "center" }, gap: 0.5 }, iconTitle && IconTitle && /* @__PURE__ */ React13.createElement(
|
|
2181
|
+
return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(Box9, { sx: { width } }, /* @__PURE__ */ React13.createElement(Grid2, { container: true, sx: { alignItems: "center" }, gap: 0.5 }, iconTitle && IconTitle && /* @__PURE__ */ React13.createElement(SvgIcon4, { color: "action", fontSize: "small", component: IconTitle }), title && /* @__PURE__ */ React13.createElement(Typography8, { color: colorTitle || "text.secondary", variant: "subtitle2" }, title), infoTitle ? /* @__PURE__ */ React13.createElement(React13.Fragment, null, infoTitle.component === "popover" ? /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
|
|
2162
2182
|
InfoOutlined2,
|
|
2163
2183
|
{
|
|
2164
2184
|
color: "action",
|
|
@@ -2230,9 +2250,9 @@ var SCTextArea = ({
|
|
|
2230
2250
|
|
|
2231
2251
|
// src/Components/SCSelect.tsx
|
|
2232
2252
|
import React14, { useEffect as useEffect10 } from "react";
|
|
2233
|
-
import { InputLabel as InputLabel2, FormControl as FormControl2, MenuItem as MenuItem2, SvgIcon as
|
|
2253
|
+
import { InputLabel as InputLabel2, FormControl as FormControl2, MenuItem as MenuItem2, SvgIcon as SvgIcon5, ListItemIcon, ListItemText, Box as Box10 } from "@mui/material";
|
|
2234
2254
|
import Select from "@mui/material/Select";
|
|
2235
|
-
import * as
|
|
2255
|
+
import * as Muicon5 from "@mui/icons-material";
|
|
2236
2256
|
function SCSelect({
|
|
2237
2257
|
label = "",
|
|
2238
2258
|
data,
|
|
@@ -2266,7 +2286,7 @@ function SCSelect({
|
|
|
2266
2286
|
data.map(function(option, index, array) {
|
|
2267
2287
|
if (option == null ? void 0 : option.icon) {
|
|
2268
2288
|
if ((option == null ? void 0 : option.icon.type) == void 0) {
|
|
2269
|
-
option.icon =
|
|
2289
|
+
option.icon = Muicon5[option == null ? void 0 : option.icon];
|
|
2270
2290
|
} else {
|
|
2271
2291
|
option;
|
|
2272
2292
|
}
|
|
@@ -2338,7 +2358,7 @@ function SCSelect({
|
|
|
2338
2358
|
}
|
|
2339
2359
|
},
|
|
2340
2360
|
data.map((option, index) => {
|
|
2341
|
-
return /* @__PURE__ */ React14.createElement(MenuItem2, { key: index, value: getItemValue(option).value }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ React14.createElement(ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React14.createElement(
|
|
2361
|
+
return /* @__PURE__ */ React14.createElement(MenuItem2, { key: index, value: getItemValue(option).value }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ React14.createElement(ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React14.createElement(SvgIcon5, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "", /* @__PURE__ */ React14.createElement(ListItemText, { primary: getItemValue(option).text, color: "text.primary" }));
|
|
2342
2362
|
})
|
|
2343
2363
|
)
|
|
2344
2364
|
)));
|
|
@@ -2346,9 +2366,9 @@ function SCSelect({
|
|
|
2346
2366
|
|
|
2347
2367
|
// src/Components/SCAutocomplete.tsx
|
|
2348
2368
|
import React15, { useEffect as useEffect11, useMemo as useMemo4 } from "react";
|
|
2349
|
-
import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem3, TextField as TextField3, Typography as Typography10, SvgIcon as
|
|
2369
|
+
import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem3, TextField as TextField3, Typography as Typography10, SvgIcon as SvgIcon6, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider4, FormControlLabel as FormControlLabel2, IconButton as IconButton9, Chip as Chip4, Box as Box11, Button as Button7, Grid as Grid3 } from "@mui/material";
|
|
2350
2370
|
import { Search, Clear } from "@mui/icons-material";
|
|
2351
|
-
import * as
|
|
2371
|
+
import * as Muicon6 from "@mui/icons-material";
|
|
2352
2372
|
var StopEvent = ({ children }) => {
|
|
2353
2373
|
return /* @__PURE__ */ React15.createElement(
|
|
2354
2374
|
Box11,
|
|
@@ -2422,7 +2442,7 @@ function SCAutocomplete({
|
|
|
2422
2442
|
return data.map((option) => {
|
|
2423
2443
|
if ((option == null ? void 0 : option.icon) && option.icon.type === void 0) {
|
|
2424
2444
|
return __spreadProps(__spreadValues({}, option), {
|
|
2425
|
-
icon:
|
|
2445
|
+
icon: Muicon6[option.icon]
|
|
2426
2446
|
});
|
|
2427
2447
|
}
|
|
2428
2448
|
return option;
|
|
@@ -2557,7 +2577,7 @@ function SCAutocomplete({
|
|
|
2557
2577
|
opacity: isDisabled ? 0.5 : 1
|
|
2558
2578
|
}
|
|
2559
2579
|
}),
|
|
2560
|
-
typeFormat != "multiselect" && getItemValue(option).icon != void 0 ? /* @__PURE__ */ React15.createElement(ListItemIcon2, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React15.createElement(
|
|
2580
|
+
typeFormat != "multiselect" && getItemValue(option).icon != void 0 ? /* @__PURE__ */ React15.createElement(ListItemIcon2, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ React15.createElement(SvgIcon6, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "",
|
|
2561
2581
|
typeFormat == "multiselect" ? /* @__PURE__ */ React15.createElement(
|
|
2562
2582
|
Checkbox,
|
|
2563
2583
|
{
|
|
@@ -4212,7 +4232,7 @@ var PageHeader = ({
|
|
|
4212
4232
|
zIndex: 10,
|
|
4213
4233
|
sx: { boxShadow: shadow ? (theme) => theme.shadows[1] : "none" }
|
|
4214
4234
|
},
|
|
4215
|
-
/* @__PURE__ */ React35.createElement(Stack13, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React35.createElement(Stack13, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ React35.createElement(Stack13, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.
|
|
4235
|
+
/* @__PURE__ */ React35.createElement(Stack13, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React35.createElement(Stack13, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ React35.createElement(Stack13, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.secondary" }, subtitle))), actions && /* @__PURE__ */ React35.createElement(Stack13, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
|
|
4216
4236
|
);
|
|
4217
4237
|
};
|
|
4218
4238
|
|
|
@@ -4228,27 +4248,27 @@ import { format, startOfWeek, addDays, isSameDay } from "date-fns";
|
|
|
4228
4248
|
|
|
4229
4249
|
// src/Components/SCListContent.tsx
|
|
4230
4250
|
import React36 from "react";
|
|
4231
|
-
import { Divider as Divider6, List, ListItemButton, ListItemIcon as ListItemIcon4, ListItemText as ListItemText3, SvgIcon as
|
|
4251
|
+
import { Divider as Divider6, List, ListItemButton, ListItemIcon as ListItemIcon4, ListItemText as ListItemText3, SvgIcon as SvgIcon7 } from "@mui/material";
|
|
4232
4252
|
import Grid7 from "@mui/material/Grid";
|
|
4233
4253
|
import Avatar from "@mui/material/Avatar";
|
|
4234
|
-
import * as
|
|
4254
|
+
import * as Muicon7 from "@mui/icons-material";
|
|
4235
4255
|
var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" }) => {
|
|
4236
4256
|
const [selectedIndex, setSelectedIndex] = React36.useState("1");
|
|
4237
4257
|
const [value, setValue] = React36.useState("1");
|
|
4238
4258
|
options.map(function(option, index, array) {
|
|
4239
4259
|
if (option == null ? void 0 : option.iconLeft) {
|
|
4240
4260
|
if ((option == null ? void 0 : option.iconLeft.type) == void 0) {
|
|
4241
|
-
const found =
|
|
4261
|
+
const found = Muicon7[option == null ? void 0 : option.iconLeft];
|
|
4242
4262
|
if (found != void 0) {
|
|
4243
|
-
option.iconLeft =
|
|
4263
|
+
option.iconLeft = Muicon7[option == null ? void 0 : option.iconLeft];
|
|
4244
4264
|
}
|
|
4245
4265
|
}
|
|
4246
4266
|
}
|
|
4247
4267
|
if (option == null ? void 0 : option.iconRight) {
|
|
4248
4268
|
if ((option == null ? void 0 : option.iconRight.type) == void 0) {
|
|
4249
|
-
const found =
|
|
4269
|
+
const found = Muicon7[option == null ? void 0 : option.iconRight];
|
|
4250
4270
|
if (found != void 0) {
|
|
4251
|
-
option.iconRight =
|
|
4271
|
+
option.iconRight = Muicon7[option == null ? void 0 : option.iconRight];
|
|
4252
4272
|
}
|
|
4253
4273
|
}
|
|
4254
4274
|
}
|
|
@@ -4262,7 +4282,7 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
|
|
|
4262
4282
|
onClick: option.fn,
|
|
4263
4283
|
sx: { gap: 1, padding: iconLeftType == "Icon" ? "8px 8px" : "8px 8px 8px 0px" }
|
|
4264
4284
|
},
|
|
4265
|
-
option.iconLeft ? iconLeftType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ React36.createElement(
|
|
4285
|
+
option.iconLeft ? iconLeftType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconLeftColor || "action" }, component: option.iconLeft })) : /* @__PURE__ */ React36.createElement(Avatar, { sx: { width: 25, height: 25, fontSize: "11px", bgcolor: option.iconLeftColor ? `${option.iconLeftColor}.main` : "default" } }, ((_a = option.iconLeft) == null ? void 0 : _a.type) != void 0 ? /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", component: option.iconLeft }) : option.iconLeft) : "",
|
|
4266
4286
|
/* @__PURE__ */ React36.createElement(
|
|
4267
4287
|
ListItemText3,
|
|
4268
4288
|
{
|
|
@@ -4271,7 +4291,7 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
|
|
|
4271
4291
|
secondary: /* @__PURE__ */ React36.createElement(Grid7, { gap: 0.5 }, /* @__PURE__ */ React36.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.subtitle), /* @__PURE__ */ React36.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.description))
|
|
4272
4292
|
}
|
|
4273
4293
|
),
|
|
4274
|
-
option.iconRight ? iconRightType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important", marginRight: "8px" } }, /* @__PURE__ */ React36.createElement(
|
|
4294
|
+
option.iconRight ? iconRightType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important", marginRight: "8px" } }, /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconRightColor || "action" }, component: option.iconRight })) : /* @__PURE__ */ React36.createElement(Avatar, { variant: "circular", sx: { width: 20, height: 20 } }, ((_b = option.iconRight) == null ? void 0 : _b.type) != void 0 ? /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", color: option.iconRightColor || "action", component: option.iconRight }) : option.iconRight) : ""
|
|
4275
4295
|
), option.divider == true ? /* @__PURE__ */ React36.createElement(Divider6, null) : "");
|
|
4276
4296
|
})));
|
|
4277
4297
|
};
|
|
@@ -4304,8 +4324,6 @@ var SCActivityCalendar = ({
|
|
|
4304
4324
|
const [openCalendar, setOpenCalendar] = React37.useState(false);
|
|
4305
4325
|
const [anchorPopoverFiltro, setAnchorPopoverFiltro] = useState18(null);
|
|
4306
4326
|
const [datosEventos, setDatosEventos] = React37.useState(events);
|
|
4307
|
-
console.log("eventos", events);
|
|
4308
|
-
console.log("datosEventos", datosEventos);
|
|
4309
4327
|
const openPopoverFiltro = Boolean(anchorPopoverFiltro);
|
|
4310
4328
|
const hoy = /* @__PURE__ */ new Date();
|
|
4311
4329
|
const inicioSemana = startOfWeek(fecha, { weekStartsOn: 0 });
|
|
@@ -4440,12 +4458,9 @@ var SCActivityCalendar = ({
|
|
|
4440
4458
|
flexDirection: "column"
|
|
4441
4459
|
} }, (() => {
|
|
4442
4460
|
const esDomingo = day.getDay() === 0;
|
|
4443
|
-
console.log("D\xEDa:", day);
|
|
4444
|
-
console.log("Filtrando eventos para el d\xEDa:", datosEventos);
|
|
4445
4461
|
const eventosDelDia = datosEventos.filter(
|
|
4446
4462
|
(event2) => (/* @__PURE__ */ new Date(event2.date + "T00:00:00")).toDateString() === day.toDateString()
|
|
4447
4463
|
);
|
|
4448
|
-
console.log("Cantidad eventos para el d\xEDa:", eventosDelDia);
|
|
4449
4464
|
if (eventosDelDia.length > 0) {
|
|
4450
4465
|
return eventosDelDia.map((event2, idx) => /* @__PURE__ */ React37.createElement(
|
|
4451
4466
|
SCListContent,
|
|
@@ -4690,7 +4705,7 @@ var SCCalendarSwipeable = ({
|
|
|
4690
4705
|
|
|
4691
4706
|
// src/Components/SCCard.tsx
|
|
4692
4707
|
import React41 from "react";
|
|
4693
|
-
import { Button as Button18, Box as Box25, SvgIcon as
|
|
4708
|
+
import { Button as Button18, Box as Box25, SvgIcon as SvgIcon9 } from "@mui/material";
|
|
4694
4709
|
import IconButton16 from "@mui/material/IconButton";
|
|
4695
4710
|
import Card2 from "@mui/material/Card";
|
|
4696
4711
|
import CardHeader from "@mui/material/CardHeader";
|
|
@@ -4699,13 +4714,13 @@ import CardContent2 from "@mui/material/CardContent";
|
|
|
4699
4714
|
import CardActions from "@mui/material/CardActions";
|
|
4700
4715
|
import Collapse2 from "@mui/material/Collapse";
|
|
4701
4716
|
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
4702
|
-
import * as
|
|
4717
|
+
import * as Muicon8 from "@mui/icons-material";
|
|
4703
4718
|
var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content, actions, expand }) => {
|
|
4704
4719
|
let iconTitleValidation = "";
|
|
4705
4720
|
let IconTitle;
|
|
4706
4721
|
const [expanded, setExpanded] = React41.useState(false);
|
|
4707
4722
|
if (iconTitle) {
|
|
4708
|
-
if (
|
|
4723
|
+
if (Muicon8[iconTitle] == void 0) {
|
|
4709
4724
|
if (iconTitle && React41.isValidElement(iconTitle) && iconTitle.type == void 0) {
|
|
4710
4725
|
iconTitleValidation = "image";
|
|
4711
4726
|
IconTitle = iconTitle;
|
|
@@ -4715,7 +4730,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
|
|
|
4715
4730
|
}
|
|
4716
4731
|
} else {
|
|
4717
4732
|
iconTitleValidation = "icon";
|
|
4718
|
-
IconTitle =
|
|
4733
|
+
IconTitle = Muicon8[iconTitle];
|
|
4719
4734
|
}
|
|
4720
4735
|
}
|
|
4721
4736
|
const handleExpandClick = () => {
|
|
@@ -4724,7 +4739,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
|
|
|
4724
4739
|
return /* @__PURE__ */ React41.createElement(Card2, { sx: { width: width || "auto" } }, title && /* @__PURE__ */ React41.createElement(
|
|
4725
4740
|
CardHeader,
|
|
4726
4741
|
{
|
|
4727
|
-
avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ React41.createElement(Box25, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React41.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React41.createElement(
|
|
4742
|
+
avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ React41.createElement(Box25, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React41.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React41.createElement(SvgIcon9, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : void 0,
|
|
4728
4743
|
action: (expand == null ? void 0 : expand.position) == "top" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(Button18, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, "Expandir") : (expand == null ? void 0 : expand.type) === "icon" && /* @__PURE__ */ React41.createElement(IconButton16, { onClick: handleExpandClick, sx: { marginRight: "auto" }, size: "small" }, /* @__PURE__ */ React41.createElement(ExpandMoreIcon, { fontSize: "small" })) : actionsTitle,
|
|
4729
4744
|
title,
|
|
4730
4745
|
subheader: subtitle,
|
|
@@ -4772,7 +4787,7 @@ import { LicenseInfo as LicenseInfo2 } from "@mui/x-license";
|
|
|
4772
4787
|
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
|
|
4773
4788
|
import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
|
|
4774
4789
|
import { useTheme } from "@mui/material/styles";
|
|
4775
|
-
function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex = 0, setSelectedRow, selectedRow }) {
|
|
4790
|
+
function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex = 0, setSelectedRow, selectedRow }) {
|
|
4776
4791
|
LicenseInfo2.setLicenseKey(
|
|
4777
4792
|
"77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
4778
4793
|
);
|
|
@@ -5075,6 +5090,9 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
|
|
|
5075
5090
|
},
|
|
5076
5091
|
sx: {
|
|
5077
5092
|
maxHeight: maxHeight ? `${maxHeight}px` : "none",
|
|
5093
|
+
"& .MuiDataGrid-columnHeaders": {
|
|
5094
|
+
display: disableHeader == true ? "none" : "block"
|
|
5095
|
+
},
|
|
5078
5096
|
"& .MuiDataGrid-filler": {
|
|
5079
5097
|
display: "none !important"
|
|
5080
5098
|
},
|
|
@@ -5265,12 +5283,12 @@ var SCDatePicker = ({ label, required, disabled, background, state, setState, wi
|
|
|
5265
5283
|
|
|
5266
5284
|
// src/Components/SCDialog.tsx
|
|
5267
5285
|
import React44, { useEffect as useEffect20, useState as useState24 } from "react";
|
|
5268
|
-
import { Button as Button19, Typography as Typography25, Modal as Modal5, Dialog as Dialog4, DialogActions as DialogActions4, DialogContent as DialogContent4, DialogTitle as DialogTitle4, IconButton as IconButton17, Tooltip as Tooltip8, Box as Box26, SvgIcon as
|
|
5286
|
+
import { Button as Button19, Typography as Typography25, Modal as Modal5, Dialog as Dialog4, DialogActions as DialogActions4, DialogContent as DialogContent4, DialogTitle as DialogTitle4, IconButton as IconButton17, Tooltip as Tooltip8, Box as Box26, SvgIcon as SvgIcon10 } from "@mui/material";
|
|
5269
5287
|
import Grid11 from "@mui/material/Grid";
|
|
5270
5288
|
import ToggleButton from "@mui/material/ToggleButton";
|
|
5271
5289
|
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
|
|
5272
5290
|
import CloseIcon2 from "@mui/icons-material/Close";
|
|
5273
|
-
import * as
|
|
5291
|
+
import * as Muicon9 from "@mui/icons-material";
|
|
5274
5292
|
var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, typeView = "web", setShow, show }) => {
|
|
5275
5293
|
let i = 0;
|
|
5276
5294
|
let iconTitleValidation = "";
|
|
@@ -5285,17 +5303,17 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5285
5303
|
}
|
|
5286
5304
|
}, [show]);
|
|
5287
5305
|
if ((buttonDialog == null ? void 0 : buttonDialog.icon) != void 0) {
|
|
5288
|
-
if (
|
|
5306
|
+
if (Muicon9[buttonDialog == null ? void 0 : buttonDialog.icon] == void 0) {
|
|
5289
5307
|
ButtonIcon = buttonDialog == null ? void 0 : buttonDialog.icon;
|
|
5290
5308
|
} else {
|
|
5291
|
-
ButtonIcon =
|
|
5309
|
+
ButtonIcon = Muicon9[buttonDialog == null ? void 0 : buttonDialog.icon];
|
|
5292
5310
|
}
|
|
5293
5311
|
}
|
|
5294
5312
|
if (Array.isArray(actions)) {
|
|
5295
5313
|
actions.map(function(option, index, array) {
|
|
5296
5314
|
if (option == null ? void 0 : option.icon) {
|
|
5297
5315
|
if ((option == null ? void 0 : option.icon.type) == void 0) {
|
|
5298
|
-
option.icon =
|
|
5316
|
+
option.icon = Muicon9[option == null ? void 0 : option.icon];
|
|
5299
5317
|
} else {
|
|
5300
5318
|
option;
|
|
5301
5319
|
}
|
|
@@ -5303,17 +5321,17 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5303
5321
|
});
|
|
5304
5322
|
}
|
|
5305
5323
|
if (iconTitle) {
|
|
5306
|
-
if (
|
|
5307
|
-
if (
|
|
5324
|
+
if (Muicon9[iconTitle] == void 0) {
|
|
5325
|
+
if (Muicon9[iconTitle]) {
|
|
5308
5326
|
iconTitleValidation = "icon";
|
|
5309
|
-
IconTitle =
|
|
5327
|
+
IconTitle = Muicon9[iconTitle];
|
|
5310
5328
|
} else {
|
|
5311
5329
|
iconTitleValidation = "image";
|
|
5312
5330
|
IconTitle = iconTitle;
|
|
5313
5331
|
}
|
|
5314
5332
|
} else {
|
|
5315
5333
|
iconTitleValidation = "icon";
|
|
5316
|
-
IconTitle =
|
|
5334
|
+
IconTitle = Muicon9[iconTitle];
|
|
5317
5335
|
}
|
|
5318
5336
|
}
|
|
5319
5337
|
const handleOpen = () => {
|
|
@@ -5330,7 +5348,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5330
5348
|
};
|
|
5331
5349
|
const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
|
|
5332
5350
|
content = content != null ? content : { component: /* @__PURE__ */ React44.createElement(Box26, null, " Aqui va el contenido ") };
|
|
5333
|
-
return /* @__PURE__ */ React44.createElement("div", null, buttonDialog ? /* @__PURE__ */ React44.createElement(React44.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React44.createElement(Tooltip8, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React44.createElement(Button19, { size: "small", color: buttonDialog.color != void 0 ? buttonDialog.color : "primary", variant: (buttonDialog == null ? void 0 : buttonDialog.variant) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.variant : "text", startIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "left" ? /* @__PURE__ */ React44.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React44.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React44.createElement(IconButton17, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React44.createElement(
|
|
5351
|
+
return /* @__PURE__ */ React44.createElement("div", null, buttonDialog ? /* @__PURE__ */ React44.createElement(React44.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React44.createElement(Tooltip8, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React44.createElement(Button19, { size: "small", color: buttonDialog.color != void 0 ? buttonDialog.color : "primary", variant: (buttonDialog == null ? void 0 : buttonDialog.variant) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.variant : "text", startIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "left" ? /* @__PURE__ */ React44.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React44.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React44.createElement(IconButton17, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React44.createElement(SvgIcon10, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React44.createElement(Modal5, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React44.createElement(
|
|
5334
5352
|
Dialog4,
|
|
5335
5353
|
{
|
|
5336
5354
|
fullScreen: typeView === "mobile" ? true : false,
|
|
@@ -5345,7 +5363,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5345
5363
|
}
|
|
5346
5364
|
}
|
|
5347
5365
|
},
|
|
5348
|
-
title && /* @__PURE__ */ React44.createElement(DialogTitle4, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React44.createElement(Grid11, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, typeView == "web" ? /* @__PURE__ */ React44.createElement(Grid11, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React44.createElement(Box26, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React44.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React44.createElement(
|
|
5366
|
+
title && /* @__PURE__ */ React44.createElement(DialogTitle4, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React44.createElement(Grid11, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, typeView == "web" ? /* @__PURE__ */ React44.createElement(Grid11, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React44.createElement(Box26, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React44.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React44.createElement(SvgIcon10, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ React44.createElement(Grid11, { sx: { width: "98%" } }, /* @__PURE__ */ React44.createElement(Typography25, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), subtitle ? subtitle : "")) : /* @__PURE__ */ React44.createElement(Grid11, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }), disableClose != true ? /* @__PURE__ */ React44.createElement(IconButton17, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ React44.createElement(CloseIcon2, { color: "action" })) : ""), typeView == "mobile" ? /* @__PURE__ */ React44.createElement(Grid11, { sx: { display: "flex", flexDirection: "column", padding: "12px 0px 4px 0px" }, gap: 1.5 }, /* @__PURE__ */ React44.createElement(Typography25, { color: "text.primary", variant: "h5" }, title ? title : ""), subtitle ? subtitle : "") : ""),
|
|
5349
5367
|
/* @__PURE__ */ React44.createElement(
|
|
5350
5368
|
DialogContent4,
|
|
5351
5369
|
{
|
|
@@ -5393,7 +5411,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5393
5411
|
size: "small",
|
|
5394
5412
|
onClick: dialogActions[0].fn,
|
|
5395
5413
|
disabled: dialogActions[0].disabled || false,
|
|
5396
|
-
startIcon: dialogActions[0].icon ? /* @__PURE__ */ React44.createElement(
|
|
5414
|
+
startIcon: dialogActions[0].icon ? /* @__PURE__ */ React44.createElement(SvgIcon10, { fontSize: "small", component: dialogActions[0].icon }) : void 0
|
|
5397
5415
|
},
|
|
5398
5416
|
dialogActions[0].text
|
|
5399
5417
|
), /* @__PURE__ */ React44.createElement(Box26, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
|
|
@@ -5406,7 +5424,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5406
5424
|
size: "small",
|
|
5407
5425
|
onClick: boton.fn,
|
|
5408
5426
|
disabled: boton.disabled || false,
|
|
5409
|
-
startIcon: boton.icon ? /* @__PURE__ */ React44.createElement(
|
|
5427
|
+
startIcon: boton.icon ? /* @__PURE__ */ React44.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }) : void 0
|
|
5410
5428
|
},
|
|
5411
5429
|
boton.text
|
|
5412
5430
|
);
|
|
@@ -5420,20 +5438,20 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5420
5438
|
size: "small",
|
|
5421
5439
|
onClick: boton.fn,
|
|
5422
5440
|
disabled: boton.disabled || false,
|
|
5423
|
-
startIcon: boton.icon ? /* @__PURE__ */ React44.createElement(
|
|
5441
|
+
startIcon: boton.icon ? /* @__PURE__ */ React44.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }) : void 0
|
|
5424
5442
|
},
|
|
5425
5443
|
boton.text
|
|
5426
5444
|
);
|
|
5427
5445
|
})) : /* @__PURE__ */ React44.createElement(Box26, { sx: { width: "100%", display: "flex", flexDirection: "row", justifyContent: "center" } }, /* @__PURE__ */ React44.createElement(ToggleButtonGroup, { size: "large", fullWidth: true }, dialogActions.map((boton, index) => {
|
|
5428
5446
|
var _a;
|
|
5429
|
-
return /* @__PURE__ */ React44.createElement(ToggleButton, { sx: { color: "primary.main" }, disabled: boton.disabled || false, fullWidth: boton.text ? true : false, size: "medium", value: "text", onClick: boton.fn }, (_a = boton.text) != null ? _a : /* @__PURE__ */ React44.createElement(
|
|
5447
|
+
return /* @__PURE__ */ React44.createElement(ToggleButton, { sx: { color: "primary.main" }, disabled: boton.disabled || false, fullWidth: boton.text ? true : false, size: "medium", value: "text", onClick: boton.fn }, (_a = boton.text) != null ? _a : /* @__PURE__ */ React44.createElement(SvgIcon10, { fontSize: "small", component: boton.icon }));
|
|
5430
5448
|
})))) : "" : ""
|
|
5431
5449
|
)));
|
|
5432
5450
|
};
|
|
5433
5451
|
|
|
5434
5452
|
// src/Components/SCMenu.tsx
|
|
5435
5453
|
import React45 from "react";
|
|
5436
|
-
import { Box as Box27, Typography as Typography26, Paper as Paper4, Divider as Divider8, MenuList as MenuList3, MenuItem as MenuItem9, ListItemIcon as ListItemIcon7, SvgIcon as
|
|
5454
|
+
import { Box as Box27, Typography as Typography26, Paper as Paper4, Divider as Divider8, MenuList as MenuList3, MenuItem as MenuItem9, ListItemIcon as ListItemIcon7, SvgIcon as SvgIcon11 } from "@mui/material";
|
|
5437
5455
|
import Grid12 from "@mui/material/Grid";
|
|
5438
5456
|
|
|
5439
5457
|
// src/Components/Hooks/useWindowDimensions.ts
|
|
@@ -5458,7 +5476,7 @@ function useWindowDimensions() {
|
|
|
5458
5476
|
}
|
|
5459
5477
|
|
|
5460
5478
|
// src/Components/SCMenu.tsx
|
|
5461
|
-
import * as
|
|
5479
|
+
import * as Muicon10 from "@mui/icons-material";
|
|
5462
5480
|
var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu, widthPage }) => {
|
|
5463
5481
|
const { height, width } = useWindowDimensions();
|
|
5464
5482
|
const menuSize = widthMenu ? parseInt(widthMenu) : 284;
|
|
@@ -5478,14 +5496,14 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
|
|
|
5478
5496
|
options.map(function(option, index, array) {
|
|
5479
5497
|
if (option == null ? void 0 : option.iconLeft) {
|
|
5480
5498
|
if ((option == null ? void 0 : option.iconLeft.type) == void 0) {
|
|
5481
|
-
option.iconLeft =
|
|
5499
|
+
option.iconLeft = Muicon10[option == null ? void 0 : option.iconLeft];
|
|
5482
5500
|
} else {
|
|
5483
5501
|
option;
|
|
5484
5502
|
}
|
|
5485
5503
|
}
|
|
5486
5504
|
if (option == null ? void 0 : option.iconRight) {
|
|
5487
5505
|
if ((option == null ? void 0 : option.iconRight.type) == void 0) {
|
|
5488
|
-
option.iconRight =
|
|
5506
|
+
option.iconRight = Muicon10[option == null ? void 0 : option.iconRight];
|
|
5489
5507
|
} else {
|
|
5490
5508
|
option;
|
|
5491
5509
|
}
|
|
@@ -5508,8 +5526,8 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
|
|
|
5508
5526
|
selected: String(index + 1) === selectedIndex,
|
|
5509
5527
|
onClick: (event2) => handleClickMenusItem(event2, index)
|
|
5510
5528
|
},
|
|
5511
|
-
option.iconLeft ? /* @__PURE__ */ React45.createElement(ListItemIcon7, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React45.createElement(
|
|
5512
|
-
/* @__PURE__ */ React45.createElement(Grid12, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ React45.createElement(Typography26, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ React45.createElement(ListItemIcon7, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React45.createElement(
|
|
5529
|
+
option.iconLeft ? /* @__PURE__ */ React45.createElement(ListItemIcon7, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React45.createElement(SvgIcon11, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
|
|
5530
|
+
/* @__PURE__ */ React45.createElement(Grid12, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ React45.createElement(Typography26, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ React45.createElement(ListItemIcon7, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ React45.createElement(SvgIcon11, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
|
|
5513
5531
|
), option.divider == true ? /* @__PURE__ */ React45.createElement(Divider8, null) : "")))), /* @__PURE__ */ React45.createElement(Grid12, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ React45.createElement(Box27, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ React45.createElement(Typography26, { color: "error" }, "No se ha configurado el componente a visualizar")))));
|
|
5514
5532
|
};
|
|
5515
5533
|
|
|
@@ -5557,10 +5575,10 @@ var SCSnackBar = ({
|
|
|
5557
5575
|
|
|
5558
5576
|
// src/Components/SCTabs.tsx
|
|
5559
5577
|
import React47, { useEffect as useEffect22 } from "react";
|
|
5560
|
-
import { Typography as Typography27, Box as Box28, SvgIcon as
|
|
5578
|
+
import { Typography as Typography27, Box as Box28, SvgIcon as SvgIcon12, Tab as Tab3, Tabs as Tabs3, Badge as Badge3 } from "@mui/material";
|
|
5561
5579
|
import TabPanel from "@mui/lab/TabPanel";
|
|
5562
5580
|
import TabContext from "@mui/lab/TabContext";
|
|
5563
|
-
import * as
|
|
5581
|
+
import * as Muicon11 from "@mui/icons-material";
|
|
5564
5582
|
var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }) => {
|
|
5565
5583
|
const [toast, setToast] = React47.useState(null);
|
|
5566
5584
|
let i = 0;
|
|
@@ -5578,9 +5596,9 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
|
|
|
5578
5596
|
const optionsLength = options.length;
|
|
5579
5597
|
if (option == null ? void 0 : option.iconOrBadge) {
|
|
5580
5598
|
if (typeIcon == "icon") {
|
|
5581
|
-
if ((option == null ? void 0 : option.iconOrBadge) in
|
|
5599
|
+
if ((option == null ? void 0 : option.iconOrBadge) in Muicon11 == true) {
|
|
5582
5600
|
validateTypeIcon = true;
|
|
5583
|
-
option.iconOrBadge =
|
|
5601
|
+
option.iconOrBadge = Muicon11[option == null ? void 0 : option.iconOrBadge];
|
|
5584
5602
|
} else {
|
|
5585
5603
|
validateTypeIcon = false;
|
|
5586
5604
|
setTimeout(() => {
|
|
@@ -5594,7 +5612,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
|
|
|
5594
5612
|
return;
|
|
5595
5613
|
}
|
|
5596
5614
|
} else if (typeIcon == "badge") {
|
|
5597
|
-
if ((option == null ? void 0 : option.iconOrBadge) in
|
|
5615
|
+
if ((option == null ? void 0 : option.iconOrBadge) in Muicon11 == false) {
|
|
5598
5616
|
validateTypeIcon = true;
|
|
5599
5617
|
option;
|
|
5600
5618
|
} else {
|
|
@@ -5657,7 +5675,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
|
|
|
5657
5675
|
badgeContent: option.iconOrBadge,
|
|
5658
5676
|
color: value == String(i) ? colorTab ? colorTab : "primary" : "default"
|
|
5659
5677
|
}
|
|
5660
|
-
) : typeIcon == "icon" ? /* @__PURE__ */ React47.createElement(
|
|
5678
|
+
) : typeIcon == "icon" ? /* @__PURE__ */ React47.createElement(SvgIcon12, { fontSize: "small", component: option.iconOrBadge, color: value == String(i) ? colorTab ? colorTab : "primary" : "action", sx: { width: "20px", height: "20px" } }) : "",
|
|
5661
5679
|
sx: { "& .MuiTab-icon": { margin: "0px !important" }, padding: "10px 16px", gap: "4px" }
|
|
5662
5680
|
}
|
|
5663
5681
|
))
|
|
@@ -5734,7 +5752,7 @@ var SCTime = ({
|
|
|
5734
5752
|
setIsOpenPopover(false);
|
|
5735
5753
|
setAnchorEl(null);
|
|
5736
5754
|
};
|
|
5737
|
-
return /* @__PURE__ */ React48.createElement(LocalizationProvider5, { dateAdapter: AdapterDayjs3 }, /* @__PURE__ */ React48.createElement(Box29, { sx: { position: "relative", width: width ? `${width}%` : "99%" } }, /* @__PURE__ */ React48.createElement(
|
|
5755
|
+
return /* @__PURE__ */ React48.createElement(LocalizationProvider5, { dateAdapter: AdapterDayjs3 }, /* @__PURE__ */ React48.createElement(Box29, { sx: { position: "relative", minWidth: "120px", width: width ? `${width}%` : "99%" } }, /* @__PURE__ */ React48.createElement(
|
|
5738
5756
|
TimeField,
|
|
5739
5757
|
{
|
|
5740
5758
|
label,
|