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 CHANGED
@@ -138,6 +138,7 @@ module.exports = __toCommonJS(index_exports);
138
138
  var import_react5 = __toESM(require("react"), 1);
139
139
  var import_material3 = require("@mui/material");
140
140
  var import_icons_material5 = require("@mui/icons-material");
141
+ var Muicon = __toESM(require("@mui/icons-material"), 1);
141
142
 
142
143
  // src/Components/ToastNotification/SCToastNotification.tsx
143
144
  var import_react2 = __toESM(require("react"), 1);
@@ -482,7 +483,8 @@ var Attachment = ({
482
483
  onChange,
483
484
  downloadAction,
484
485
  deleteAction,
485
- initialFiles = []
486
+ initialFiles = [],
487
+ iconFileItem
486
488
  }) => {
487
489
  const [files, setFiles] = (0, import_react5.useState)([]);
488
490
  const [fileToDelete, setFileToDelete] = (0, import_react5.useState)(null);
@@ -490,6 +492,14 @@ var Attachment = ({
490
492
  const [openModal, setOpenModal] = (0, import_react5.useState)(false);
491
493
  const [isDragFile, setIsDragFile] = (0, import_react5.useState)(false);
492
494
  const inputRef = (0, import_react5.useRef)(null);
495
+ let IconFileItem;
496
+ if (iconFileItem) {
497
+ if (Muicon[iconFileItem] == void 0) {
498
+ IconFileItem = iconFileItem;
499
+ } else {
500
+ IconFileItem = Muicon[iconFileItem];
501
+ }
502
+ }
493
503
  (0, import_react5.useEffect)(() => {
494
504
  if (initialFiles && initialFiles.length > 0) {
495
505
  setFiles(initialFiles);
@@ -740,7 +750,7 @@ var Attachment = ({
740
750
  }
741
751
  }
742
752
  },
743
- /* @__PURE__ */ import_react5.default.createElement(import_material3.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ import_react5.default.createElement(
753
+ /* @__PURE__ */ import_react5.default.createElement(import_material3.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, iconFileItem ? /* @__PURE__ */ import_react5.default.createElement(import_material3.SvgIcon, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ import_react5.default.createElement(
744
754
  import_icons_material5.UploadFileOutlined,
745
755
  {
746
756
  color: file.uploadError ? "error" : "primary",
@@ -891,6 +901,7 @@ var import_PhotoCamera = __toESM(require("@mui/icons-material/PhotoCamera"), 1);
891
901
  var import_CancelOutlined = __toESM(require("@mui/icons-material/CancelOutlined"), 1);
892
902
  var import_ImageOutlined = __toESM(require("@mui/icons-material/ImageOutlined"), 1);
893
903
  var import_FileDownloadOutlined = __toESM(require("@mui/icons-material/FileDownloadOutlined"), 1);
904
+ var Muicon2 = __toESM(require("@mui/icons-material"), 1);
894
905
  var AttachmentMobile = ({
895
906
  buttonAttachment,
896
907
  maxSize = 400,
@@ -901,7 +912,8 @@ var AttachmentMobile = ({
901
912
  onChange,
902
913
  children,
903
914
  sx,
904
- view = "button"
915
+ view = "button",
916
+ iconFileItem
905
917
  }) => {
906
918
  const webcamRef = (0, import_react7.useRef)(null);
907
919
  const [abrirCamara, setAbrirCamara] = (0, import_react7.useState)(false);
@@ -912,6 +924,14 @@ var AttachmentMobile = ({
912
924
  const toggleAttachment = (newOpen) => () => {
913
925
  setOpen(newOpen);
914
926
  };
927
+ let IconFileItem;
928
+ if (iconFileItem) {
929
+ if (Muicon2[iconFileItem] == void 0) {
930
+ IconFileItem = iconFileItem;
931
+ } else {
932
+ IconFileItem = Muicon2[iconFileItem];
933
+ }
934
+ }
915
935
  const closeCam = () => {
916
936
  setAbrirCamara(false);
917
937
  };
@@ -1220,7 +1240,7 @@ var AttachmentMobile = ({
1220
1240
  }
1221
1241
  }
1222
1242
  },
1223
- /* @__PURE__ */ import_react7.default.createElement(import_material5.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ import_react7.default.createElement(
1243
+ /* @__PURE__ */ import_react7.default.createElement(import_material5.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, iconFileItem ? /* @__PURE__ */ import_react7.default.createElement(import_material5.SvgIcon, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ import_react7.default.createElement(
1224
1244
  import_icons_material7.UploadFileOutlined,
1225
1245
  {
1226
1246
  color: file.uploadError ? "error" : "primary",
@@ -1474,10 +1494,10 @@ var import_material18 = require("@mui/material");
1474
1494
  var import_Grid4 = __toESM(require("@mui/material/Grid"), 1);
1475
1495
 
1476
1496
  // src/Components/Drawer/Helpers/Utils.tsx
1477
- var Muicon = __toESM(require("@mui/icons-material"), 1);
1497
+ var Muicon3 = __toESM(require("@mui/icons-material"), 1);
1478
1498
  var getIcon = (iconName) => {
1479
- if (iconName && iconName in Muicon) {
1480
- return Muicon[iconName];
1499
+ if (iconName && iconName in Muicon3) {
1500
+ return Muicon3[iconName];
1481
1501
  }
1482
1502
  return null;
1483
1503
  };
@@ -1625,7 +1645,7 @@ var useChipFilters = (arrayElements, chipFilters) => {
1625
1645
  var _a, _b, _c, _d;
1626
1646
  const { validation, element: typeElement } = validateTypeElements(element);
1627
1647
  const textValue = ((_a = typeElement.state) == null ? void 0 : _a.textValue) !== void 0 ? String((_b = typeElement.state) == null ? void 0 : _b.textValue) : String(typeElement.state);
1628
- if (textValue.trim() !== "" && textValue.trim() !== ",") {
1648
+ if (textValue.trim() !== "" && textValue.trim() !== "," && textValue.trim() !== "undefined") {
1629
1649
  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;
1630
1650
  const existingFilterIndex = newFiltersToAdd.findIndex(
1631
1651
  (filter) => filter.arrayElement.label === element.label
@@ -1688,7 +1708,7 @@ var useChipFilters = (arrayElements, chipFilters) => {
1688
1708
  return ((_b = typeElement.state) == null ? void 0 : _b[0]) !== null && ((_c = typeElement.state) == null ? void 0 : _c[1]) !== null;
1689
1709
  } else {
1690
1710
  const stateValue = String(typeElement.state).trim();
1691
- return stateValue !== "" && stateValue !== ",";
1711
+ return stateValue !== "" && stateValue !== "," && stateValue !== "undefined";
1692
1712
  }
1693
1713
  });
1694
1714
  };
@@ -1811,8 +1831,8 @@ var DrawerButton = ({
1811
1831
  // src/Components/Drawer/components/ChipFiltersDisplay.tsx
1812
1832
  var import_react15 = __toESM(require("react"), 1);
1813
1833
  var import_material9 = require("@mui/material");
1814
- var import_ArrowBackIos = __toESM(require("@mui/icons-material/ArrowBackIos"), 1);
1815
- var import_ArrowForwardIos = __toESM(require("@mui/icons-material/ArrowForwardIos"), 1);
1834
+ var import_ChevronLeft = __toESM(require("@mui/icons-material/ChevronLeft"), 1);
1835
+ var import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"), 1);
1816
1836
  var ChipFiltersDisplay = ({
1817
1837
  textFilters,
1818
1838
  onDeleteFilter
@@ -1823,7 +1843,7 @@ var ChipFiltersDisplay = ({
1823
1843
  scrollRef.current.scrollLeft += offset;
1824
1844
  }
1825
1845
  };
1826
- return /* @__PURE__ */ import_react15.default.createElement(import_material9.Box, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, /* @__PURE__ */ import_react15.default.createElement(import_material9.IconButton, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ import_react15.default.createElement(import_ArrowBackIos.default, { fontSize: "small" })), /* @__PURE__ */ import_react15.default.createElement(
1846
+ return /* @__PURE__ */ import_react15.default.createElement(import_material9.Box, { display: "flex", alignItems: "center", sx: { maxWidth: "78%" } }, /* @__PURE__ */ import_react15.default.createElement(import_material9.IconButton, { onClick: () => scroll(-150), size: "small" }, /* @__PURE__ */ import_react15.default.createElement(import_ChevronLeft.default, { fontSize: "small", color: "action" })), /* @__PURE__ */ import_react15.default.createElement(
1827
1847
  import_material9.Box,
1828
1848
  {
1829
1849
  ref: scrollRef,
@@ -1850,7 +1870,7 @@ var ChipFiltersDisplay = ({
1850
1870
  }
1851
1871
  })
1852
1872
  ))
1853
- ), /* @__PURE__ */ import_react15.default.createElement(import_material9.IconButton, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ import_react15.default.createElement(import_ArrowForwardIos.default, { fontSize: "small" })));
1873
+ ), /* @__PURE__ */ import_react15.default.createElement(import_material9.IconButton, { onClick: () => scroll(150), size: "small" }, /* @__PURE__ */ import_react15.default.createElement(import_ChevronRight.default, { fontSize: "small", color: "action" })));
1854
1874
  };
1855
1875
 
1856
1876
  // src/Components/Drawer/components/DrawerContent.tsx
@@ -1864,16 +1884,16 @@ var import_Grid = __toESM(require("@mui/material/Grid"), 1);
1864
1884
  var import_icons_material9 = require("@mui/icons-material");
1865
1885
 
1866
1886
  // src/Components/Textfield/Helpers/validateIcon.tsx
1867
- var Muicon2 = __toESM(require("@mui/icons-material"), 1);
1887
+ var Muicon4 = __toESM(require("@mui/icons-material"), 1);
1868
1888
  function getIconComponent2(name) {
1869
1889
  if (typeof name !== "string") return name;
1870
- return name in Muicon2 ? Muicon2[name] : void 0;
1890
+ return name in Muicon4 ? Muicon4[name] : void 0;
1871
1891
  }
1872
1892
  function getIconValidation(name) {
1873
1893
  if (typeof name !== "string") {
1874
1894
  return (name == null ? void 0 : name.type) ? "icon" : "text";
1875
1895
  }
1876
- return name in Muicon2 ? "icon" : "text";
1896
+ return name in Muicon4 ? "icon" : "text";
1877
1897
  }
1878
1898
 
1879
1899
  // src/Components/Textfield/Helpers/validateKeyDown.tsx
@@ -2316,7 +2336,7 @@ var SCTextArea = ({
2316
2336
  var import_react18 = __toESM(require("react"), 1);
2317
2337
  var import_material12 = require("@mui/material");
2318
2338
  var import_Select = __toESM(require("@mui/material/Select"), 1);
2319
- var Muicon3 = __toESM(require("@mui/icons-material"), 1);
2339
+ var Muicon5 = __toESM(require("@mui/icons-material"), 1);
2320
2340
  function SCSelect({
2321
2341
  label = "",
2322
2342
  data,
@@ -2350,7 +2370,7 @@ function SCSelect({
2350
2370
  data.map(function(option, index, array) {
2351
2371
  if (option == null ? void 0 : option.icon) {
2352
2372
  if ((option == null ? void 0 : option.icon.type) == void 0) {
2353
- option.icon = Muicon3[option == null ? void 0 : option.icon];
2373
+ option.icon = Muicon5[option == null ? void 0 : option.icon];
2354
2374
  } else {
2355
2375
  option;
2356
2376
  }
@@ -2432,7 +2452,7 @@ function SCSelect({
2432
2452
  var import_react19 = __toESM(require("react"), 1);
2433
2453
  var import_material13 = require("@mui/material");
2434
2454
  var import_icons_material11 = require("@mui/icons-material");
2435
- var Muicon4 = __toESM(require("@mui/icons-material"), 1);
2455
+ var Muicon6 = __toESM(require("@mui/icons-material"), 1);
2436
2456
  var StopEvent = ({ children }) => {
2437
2457
  return /* @__PURE__ */ import_react19.default.createElement(
2438
2458
  import_material13.Box,
@@ -2506,7 +2526,7 @@ function SCAutocomplete({
2506
2526
  return data.map((option) => {
2507
2527
  if ((option == null ? void 0 : option.icon) && option.icon.type === void 0) {
2508
2528
  return __spreadProps(__spreadValues({}, option), {
2509
- icon: Muicon4[option.icon]
2529
+ icon: Muicon6[option.icon]
2510
2530
  });
2511
2531
  }
2512
2532
  return option;
@@ -4296,7 +4316,7 @@ var PageHeader = ({
4296
4316
  zIndex: 10,
4297
4317
  sx: { boxShadow: shadow ? (theme) => theme.shadows[1] : "none" }
4298
4318
  },
4299
- /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ import_react42.default.createElement(import_material28.Typography, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ import_react42.default.createElement(import_material28.Typography, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.primary" }, subtitle))), actions && /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
4319
+ /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ import_react42.default.createElement(import_material28.Typography, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ import_react42.default.createElement(import_material28.Typography, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.secondary" }, subtitle))), actions && /* @__PURE__ */ import_react42.default.createElement(import_material28.Stack, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
4300
4320
  );
4301
4321
  };
4302
4322
 
@@ -4315,24 +4335,24 @@ var import_react43 = __toESM(require("react"), 1);
4315
4335
  var import_material29 = require("@mui/material");
4316
4336
  var import_Grid5 = __toESM(require("@mui/material/Grid"), 1);
4317
4337
  var import_Avatar = __toESM(require("@mui/material/Avatar"), 1);
4318
- var Muicon5 = __toESM(require("@mui/icons-material"), 1);
4338
+ var Muicon7 = __toESM(require("@mui/icons-material"), 1);
4319
4339
  var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" }) => {
4320
4340
  const [selectedIndex, setSelectedIndex] = import_react43.default.useState("1");
4321
4341
  const [value, setValue] = import_react43.default.useState("1");
4322
4342
  options.map(function(option, index, array) {
4323
4343
  if (option == null ? void 0 : option.iconLeft) {
4324
4344
  if ((option == null ? void 0 : option.iconLeft.type) == void 0) {
4325
- const found = Muicon5[option == null ? void 0 : option.iconLeft];
4345
+ const found = Muicon7[option == null ? void 0 : option.iconLeft];
4326
4346
  if (found != void 0) {
4327
- option.iconLeft = Muicon5[option == null ? void 0 : option.iconLeft];
4347
+ option.iconLeft = Muicon7[option == null ? void 0 : option.iconLeft];
4328
4348
  }
4329
4349
  }
4330
4350
  }
4331
4351
  if (option == null ? void 0 : option.iconRight) {
4332
4352
  if ((option == null ? void 0 : option.iconRight.type) == void 0) {
4333
- const found = Muicon5[option == null ? void 0 : option.iconRight];
4353
+ const found = Muicon7[option == null ? void 0 : option.iconRight];
4334
4354
  if (found != void 0) {
4335
- option.iconRight = Muicon5[option == null ? void 0 : option.iconRight];
4355
+ option.iconRight = Muicon7[option == null ? void 0 : option.iconRight];
4336
4356
  }
4337
4357
  }
4338
4358
  }
@@ -4388,8 +4408,6 @@ var SCActivityCalendar = ({
4388
4408
  const [openCalendar, setOpenCalendar] = import_react44.default.useState(false);
4389
4409
  const [anchorPopoverFiltro, setAnchorPopoverFiltro] = (0, import_react44.useState)(null);
4390
4410
  const [datosEventos, setDatosEventos] = import_react44.default.useState(events);
4391
- console.log("eventos", events);
4392
- console.log("datosEventos", datosEventos);
4393
4411
  const openPopoverFiltro = Boolean(anchorPopoverFiltro);
4394
4412
  const hoy = /* @__PURE__ */ new Date();
4395
4413
  const inicioSemana = (0, import_date_fns.startOfWeek)(fecha, { weekStartsOn: 0 });
@@ -4524,12 +4542,9 @@ var SCActivityCalendar = ({
4524
4542
  flexDirection: "column"
4525
4543
  } }, (() => {
4526
4544
  const esDomingo = day.getDay() === 0;
4527
- console.log("D\xEDa:", day);
4528
- console.log("Filtrando eventos para el d\xEDa:", datosEventos);
4529
4545
  const eventosDelDia = datosEventos.filter(
4530
4546
  (event2) => (/* @__PURE__ */ new Date(event2.date + "T00:00:00")).toDateString() === day.toDateString()
4531
4547
  );
4532
- console.log("Cantidad eventos para el d\xEDa:", eventosDelDia);
4533
4548
  if (eventosDelDia.length > 0) {
4534
4549
  return eventosDelDia.map((event2, idx) => /* @__PURE__ */ import_react44.default.createElement(
4535
4550
  SCListContent,
@@ -4783,13 +4798,13 @@ var import_CardContent = __toESM(require("@mui/material/CardContent"), 1);
4783
4798
  var import_CardActions = __toESM(require("@mui/material/CardActions"), 1);
4784
4799
  var import_Collapse = __toESM(require("@mui/material/Collapse"), 1);
4785
4800
  var import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"), 1);
4786
- var Muicon6 = __toESM(require("@mui/icons-material"), 1);
4801
+ var Muicon8 = __toESM(require("@mui/icons-material"), 1);
4787
4802
  var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content, actions, expand }) => {
4788
4803
  let iconTitleValidation = "";
4789
4804
  let IconTitle;
4790
4805
  const [expanded, setExpanded] = import_react48.default.useState(false);
4791
4806
  if (iconTitle) {
4792
- if (Muicon6[iconTitle] == void 0) {
4807
+ if (Muicon8[iconTitle] == void 0) {
4793
4808
  if (iconTitle && import_react48.default.isValidElement(iconTitle) && iconTitle.type == void 0) {
4794
4809
  iconTitleValidation = "image";
4795
4810
  IconTitle = iconTitle;
@@ -4799,7 +4814,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
4799
4814
  }
4800
4815
  } else {
4801
4816
  iconTitleValidation = "icon";
4802
- IconTitle = Muicon6[iconTitle];
4817
+ IconTitle = Muicon8[iconTitle];
4803
4818
  }
4804
4819
  }
4805
4820
  const handleExpandClick = () => {
@@ -4856,7 +4871,7 @@ var import_x_license2 = require("@mui/x-license");
4856
4871
  var import_KeyboardArrowDown = __toESM(require("@mui/icons-material/KeyboardArrowDown"), 1);
4857
4872
  var import_KeyboardArrowUp = __toESM(require("@mui/icons-material/KeyboardArrowUp"), 1);
4858
4873
  var import_styles = require("@mui/material/styles");
4859
- function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex = 0, setSelectedRow, selectedRow }) {
4874
+ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex = 0, setSelectedRow, selectedRow }) {
4860
4875
  import_x_license2.LicenseInfo.setLicenseKey(
4861
4876
  "77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
4862
4877
  );
@@ -5159,6 +5174,9 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5159
5174
  },
5160
5175
  sx: {
5161
5176
  maxHeight: maxHeight ? `${maxHeight}px` : "none",
5177
+ "& .MuiDataGrid-columnHeaders": {
5178
+ display: disableHeader == true ? "none" : "block"
5179
+ },
5162
5180
  "& .MuiDataGrid-filler": {
5163
5181
  display: "none !important"
5164
5182
  },
@@ -5354,7 +5372,7 @@ var import_Grid9 = __toESM(require("@mui/material/Grid"), 1);
5354
5372
  var import_ToggleButton = __toESM(require("@mui/material/ToggleButton"), 1);
5355
5373
  var import_ToggleButtonGroup = __toESM(require("@mui/material/ToggleButtonGroup"), 1);
5356
5374
  var import_Close2 = __toESM(require("@mui/icons-material/Close"), 1);
5357
- var Muicon7 = __toESM(require("@mui/icons-material"), 1);
5375
+ var Muicon9 = __toESM(require("@mui/icons-material"), 1);
5358
5376
  var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, typeView = "web", setShow, show }) => {
5359
5377
  let i = 0;
5360
5378
  let iconTitleValidation = "";
@@ -5369,17 +5387,17 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5369
5387
  }
5370
5388
  }, [show]);
5371
5389
  if ((buttonDialog == null ? void 0 : buttonDialog.icon) != void 0) {
5372
- if (Muicon7[buttonDialog == null ? void 0 : buttonDialog.icon] == void 0) {
5390
+ if (Muicon9[buttonDialog == null ? void 0 : buttonDialog.icon] == void 0) {
5373
5391
  ButtonIcon = buttonDialog == null ? void 0 : buttonDialog.icon;
5374
5392
  } else {
5375
- ButtonIcon = Muicon7[buttonDialog == null ? void 0 : buttonDialog.icon];
5393
+ ButtonIcon = Muicon9[buttonDialog == null ? void 0 : buttonDialog.icon];
5376
5394
  }
5377
5395
  }
5378
5396
  if (Array.isArray(actions)) {
5379
5397
  actions.map(function(option, index, array) {
5380
5398
  if (option == null ? void 0 : option.icon) {
5381
5399
  if ((option == null ? void 0 : option.icon.type) == void 0) {
5382
- option.icon = Muicon7[option == null ? void 0 : option.icon];
5400
+ option.icon = Muicon9[option == null ? void 0 : option.icon];
5383
5401
  } else {
5384
5402
  option;
5385
5403
  }
@@ -5387,17 +5405,17 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5387
5405
  });
5388
5406
  }
5389
5407
  if (iconTitle) {
5390
- if (Muicon7[iconTitle] == void 0) {
5391
- if (Muicon7[iconTitle]) {
5408
+ if (Muicon9[iconTitle] == void 0) {
5409
+ if (Muicon9[iconTitle]) {
5392
5410
  iconTitleValidation = "icon";
5393
- IconTitle = Muicon7[iconTitle];
5411
+ IconTitle = Muicon9[iconTitle];
5394
5412
  } else {
5395
5413
  iconTitleValidation = "image";
5396
5414
  IconTitle = iconTitle;
5397
5415
  }
5398
5416
  } else {
5399
5417
  iconTitleValidation = "icon";
5400
- IconTitle = Muicon7[iconTitle];
5418
+ IconTitle = Muicon9[iconTitle];
5401
5419
  }
5402
5420
  }
5403
5421
  const handleOpen = () => {
@@ -5542,7 +5560,7 @@ function useWindowDimensions() {
5542
5560
  }
5543
5561
 
5544
5562
  // src/Components/SCMenu.tsx
5545
- var Muicon8 = __toESM(require("@mui/icons-material"), 1);
5563
+ var Muicon10 = __toESM(require("@mui/icons-material"), 1);
5546
5564
  var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu, widthPage }) => {
5547
5565
  const { height, width } = useWindowDimensions();
5548
5566
  const menuSize = widthMenu ? parseInt(widthMenu) : 284;
@@ -5562,14 +5580,14 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
5562
5580
  options.map(function(option, index, array) {
5563
5581
  if (option == null ? void 0 : option.iconLeft) {
5564
5582
  if ((option == null ? void 0 : option.iconLeft.type) == void 0) {
5565
- option.iconLeft = Muicon8[option == null ? void 0 : option.iconLeft];
5583
+ option.iconLeft = Muicon10[option == null ? void 0 : option.iconLeft];
5566
5584
  } else {
5567
5585
  option;
5568
5586
  }
5569
5587
  }
5570
5588
  if (option == null ? void 0 : option.iconRight) {
5571
5589
  if ((option == null ? void 0 : option.iconRight.type) == void 0) {
5572
- option.iconRight = Muicon8[option == null ? void 0 : option.iconRight];
5590
+ option.iconRight = Muicon10[option == null ? void 0 : option.iconRight];
5573
5591
  } else {
5574
5592
  option;
5575
5593
  }
@@ -5644,7 +5662,7 @@ var import_react55 = __toESM(require("react"), 1);
5644
5662
  var import_material37 = require("@mui/material");
5645
5663
  var import_TabPanel = __toESM(require("@mui/lab/TabPanel"), 1);
5646
5664
  var import_TabContext = __toESM(require("@mui/lab/TabContext"), 1);
5647
- var Muicon9 = __toESM(require("@mui/icons-material"), 1);
5665
+ var Muicon11 = __toESM(require("@mui/icons-material"), 1);
5648
5666
  var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }) => {
5649
5667
  const [toast, setToast] = import_react55.default.useState(null);
5650
5668
  let i = 0;
@@ -5662,9 +5680,9 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
5662
5680
  const optionsLength = options.length;
5663
5681
  if (option == null ? void 0 : option.iconOrBadge) {
5664
5682
  if (typeIcon == "icon") {
5665
- if ((option == null ? void 0 : option.iconOrBadge) in Muicon9 == true) {
5683
+ if ((option == null ? void 0 : option.iconOrBadge) in Muicon11 == true) {
5666
5684
  validateTypeIcon = true;
5667
- option.iconOrBadge = Muicon9[option == null ? void 0 : option.iconOrBadge];
5685
+ option.iconOrBadge = Muicon11[option == null ? void 0 : option.iconOrBadge];
5668
5686
  } else {
5669
5687
  validateTypeIcon = false;
5670
5688
  setTimeout(() => {
@@ -5678,7 +5696,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
5678
5696
  return;
5679
5697
  }
5680
5698
  } else if (typeIcon == "badge") {
5681
- if ((option == null ? void 0 : option.iconOrBadge) in Muicon9 == false) {
5699
+ if ((option == null ? void 0 : option.iconOrBadge) in Muicon11 == false) {
5682
5700
  validateTypeIcon = true;
5683
5701
  option;
5684
5702
  } else {
@@ -5818,7 +5836,7 @@ var SCTime = ({
5818
5836
  setIsOpenPopover(false);
5819
5837
  setAnchorEl(null);
5820
5838
  };
5821
- return /* @__PURE__ */ import_react56.default.createElement(import_LocalizationProvider5.LocalizationProvider, { dateAdapter: import_AdapterDayjs3.AdapterDayjs }, /* @__PURE__ */ import_react56.default.createElement(import_material38.Box, { sx: { position: "relative", width: width ? `${width}%` : "99%" } }, /* @__PURE__ */ import_react56.default.createElement(
5839
+ return /* @__PURE__ */ import_react56.default.createElement(import_LocalizationProvider5.LocalizationProvider, { dateAdapter: import_AdapterDayjs3.AdapterDayjs }, /* @__PURE__ */ import_react56.default.createElement(import_material38.Box, { sx: { position: "relative", minWidth: "120px", width: width ? `${width}%` : "99%" } }, /* @__PURE__ */ import_react56.default.createElement(
5822
5840
  import_TimeField.TimeField,
5823
5841
  {
5824
5842
  label,