componentes-sinco 1.3.4 → 1.3.5

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
@@ -1604,6 +1604,13 @@ var SCTextField = ({
1604
1604
  onKeyDown: handleKeyDown,
1605
1605
  onChange: handleInputChange,
1606
1606
  onBlur: handleBlur,
1607
+ sx: iconInputStart || iconInputEnd ? {
1608
+ height: "32px",
1609
+ "& .MuiInputAdornment-root": {
1610
+ height: "32px",
1611
+ maxHeight: "32px"
1612
+ }
1613
+ } : void 0,
1607
1614
  inputProps: { maxLength: maxLength ? maxLength : 50, style: { textAlign: alignText } },
1608
1615
  type: !showPassword && format3 === "password" ? "password" : (format3 || "text").toUpperCase() === "INT" || (format3 || "text").toUpperCase() === "DECIMAL" ? "number" : "text",
1609
1616
  className: format3 === "password" && !showPassword ? "" : "",
@@ -1854,6 +1861,7 @@ function SCSelect({
1854
1861
  const [prevData, setPrevData] = import_react16.default.useState(data);
1855
1862
  const [error, setError] = import_react16.default.useState(false);
1856
1863
  const [placement, setPlacement] = import_react16.default.useState("bottom");
1864
+ const [menuWidth, setMenuWidth] = import_react16.default.useState();
1857
1865
  const containerRef = import_react16.default.useRef(null);
1858
1866
  (0, import_react16.useEffect)(() => {
1859
1867
  if (error) {
@@ -1889,6 +1897,7 @@ function SCSelect({
1889
1897
  const spaceBelow = window.innerHeight - rect.bottom;
1890
1898
  const estimatedMenuHeight = Math.min(300, data.length * 36 + 16);
1891
1899
  setPlacement(spaceBelow < estimatedMenuHeight ? "top" : "bottom");
1900
+ setMenuWidth(rect.width);
1892
1901
  }
1893
1902
  };
1894
1903
  const handleChange = (event2) => {
@@ -1931,6 +1940,20 @@ function SCSelect({
1931
1940
  disabled: disabled || false,
1932
1941
  error,
1933
1942
  sx: { height: "32px" },
1943
+ renderValue: (selected) => {
1944
+ const selectedOption = data.find((item) => getItemValue(item).value === selected);
1945
+ if (!selectedOption) return "";
1946
+ const { icon, text } = getItemValue(selectedOption);
1947
+ return /* @__PURE__ */ import_react16.default.createElement(import_material9.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5, overflow: "hidden" } }, icon != void 0 && /* @__PURE__ */ import_react16.default.createElement(import_material9.SvgIcon, { fontSize: "small", color: "action", component: icon, sx: { flexShrink: 0 } }), /* @__PURE__ */ import_react16.default.createElement(
1948
+ import_material9.Box,
1949
+ {
1950
+ component: "span",
1951
+ title: text,
1952
+ sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }
1953
+ },
1954
+ text
1955
+ ));
1956
+ },
1934
1957
  MenuProps: {
1935
1958
  sx: {
1936
1959
  zIndex: 1400
@@ -1938,7 +1961,8 @@ function SCSelect({
1938
1961
  PaperProps: {
1939
1962
  sx: {
1940
1963
  maxHeight: "300px",
1941
- minWidth: "100%"
1964
+ width: menuWidth ? `${menuWidth}px` : "100%",
1965
+ maxWidth: menuWidth ? `${menuWidth}px` : "100%"
1942
1966
  }
1943
1967
  },
1944
1968
  anchorOrigin: {
@@ -1954,7 +1978,15 @@ function SCSelect({
1954
1978
  }
1955
1979
  },
1956
1980
  data.map((option, index) => {
1957
- return /* @__PURE__ */ import_react16.default.createElement(import_material9.MenuItem, { key: index, value: getItemValue(option).value }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ import_react16.default.createElement(import_material9.ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ import_react16.default.createElement(import_material9.SvgIcon, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "", /* @__PURE__ */ import_react16.default.createElement(import_material9.ListItemText, { primary: getItemValue(option).text, color: "text.primary" }));
1981
+ return /* @__PURE__ */ import_react16.default.createElement(import_material9.MenuItem, { key: index, value: getItemValue(option).value, sx: { minWidth: 0 } }, getItemValue(option).icon != void 0 ? /* @__PURE__ */ import_react16.default.createElement(import_material9.ListItemIcon, { sx: { minWidth: "10px !important" } }, /* @__PURE__ */ import_react16.default.createElement(import_material9.SvgIcon, { fontSize: "small", color: "action", component: getItemValue(option).icon })) : "", /* @__PURE__ */ import_react16.default.createElement(
1982
+ import_material9.ListItemText,
1983
+ {
1984
+ primary: getItemValue(option).text,
1985
+ color: "text.primary",
1986
+ sx: { overflow: "hidden" },
1987
+ slotProps: { primary: { noWrap: true, title: getItemValue(option).text } }
1988
+ }
1989
+ ));
1958
1990
  })
1959
1991
  )
1960
1992
  )));
@@ -5217,22 +5249,25 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerH
5217
5249
  var import_react51 = __toESM(require("react"), 1);
5218
5250
  var import_x_data_grid_pro = require("@mui/x-data-grid-pro");
5219
5251
  var import_x_license2 = require("@mui/x-license");
5252
+ var import_material36 = require("@mui/material");
5220
5253
  var import_KeyboardArrowDown = __toESM(require("@mui/icons-material/KeyboardArrowDown"), 1);
5221
5254
  var import_KeyboardArrowUp = __toESM(require("@mui/icons-material/KeyboardArrowUp"), 1);
5222
5255
  var import_styles = require("@mui/material/styles");
5223
- function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex = 0, setSelectedRow, selectedRow }) {
5256
+ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex = 0, setSelectedRow, selectedRow, insertRowFields, onAddRow }) {
5257
+ var _a;
5224
5258
  import_x_license2.LicenseInfo.setLicenseKey(
5225
5259
  "aa892a011e4c240f3cdaf811ecfff54fTz0xMjkyODQsRT0xODEwNDI1NTk5MDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
5226
5260
  );
5227
5261
  const theme = (0, import_styles.useTheme)();
5228
5262
  const apiRef = (0, import_x_data_grid_pro.useGridApiRef)();
5229
5263
  const isRowSelectable = (params) => params.row.bloqueoChecked == false ? false : true;
5264
+ const showInsertRow = insertRowFields != void 0 && insertRowFields.length > 0;
5230
5265
  function generateRandomId() {
5231
5266
  return Math.floor(Math.random() * 1e6);
5232
5267
  }
5233
5268
  const getTreeDataPaths = (row) => {
5234
- var _a, _b, _c;
5235
- const group1Value = groupColumns && ((_a = groupColumns(row)) == null ? void 0 : _a.valueGroup1);
5269
+ var _a2, _b, _c;
5270
+ const group1Value = groupColumns && ((_a2 = groupColumns(row)) == null ? void 0 : _a2.valueGroup1);
5236
5271
  const group2Value = groupColumns && ((_b = groupColumns(row)) == null ? void 0 : _b.valueGroup2);
5237
5272
  const fieldValue = groupColumns && ((_c = groupColumns(row)) == null ? void 0 : _c.fieldFirstColumn);
5238
5273
  return [
@@ -5246,7 +5281,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5246
5281
  headerName: groupColumns ? groupColumns(data[0]).headerNameFirstColumn : "Agrupador",
5247
5282
  flex: 1,
5248
5283
  renderCell: (params) => {
5249
- var _a, _b;
5284
+ var _a2, _b;
5250
5285
  let label = params.value.toString().includes("/") ? params.value.split("/")[0].toString() : params.value.toString();
5251
5286
  let maxDepth = 0;
5252
5287
  if (groupColumns && data.length > 0) {
@@ -5261,8 +5296,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5261
5296
  if (groupColumns) {
5262
5297
  const originalItem = data.find(
5263
5298
  (item) => {
5264
- var _a2;
5265
- return String((_a2 = groupColumns(item)) == null ? void 0 : _a2.valueGroup1) === label;
5299
+ var _a3;
5300
+ return String((_a3 = groupColumns(item)) == null ? void 0 : _a3.valueGroup1) === label;
5266
5301
  }
5267
5302
  );
5268
5303
  if (originalItem) {
@@ -5271,22 +5306,22 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5271
5306
  }
5272
5307
  }
5273
5308
  let subgroup1 = arrayRows.filter((r) => {
5274
- var _a2;
5275
- return groupColumns && String((_a2 = groupColumns(r)) == null ? void 0 : _a2.valueGroup1) === label;
5309
+ var _a3;
5310
+ return groupColumns && String((_a3 = groupColumns(r)) == null ? void 0 : _a3.valueGroup1) === label;
5276
5311
  }).map((r) => {
5277
- var _a2, _b2;
5278
- return groupColumns && String(((_a2 = groupColumns(r)) == null ? void 0 : _a2.valueGroup2) || ((_b2 = groupColumns(r)) == null ? void 0 : _b2.fieldFirstColumn));
5312
+ var _a3, _b2;
5313
+ return groupColumns && String(((_a3 = groupColumns(r)) == null ? void 0 : _a3.valueGroup2) || ((_b2 = groupColumns(r)) == null ? void 0 : _b2.fieldFirstColumn));
5279
5314
  });
5280
5315
  const groupedDataLength1 = subgroup1.filter((valor, indiceActual, arreglo) => arreglo.indexOf(valor) === indiceActual);
5281
5316
  label = `${customLabel} (${groupedDataLength1.length})`;
5282
- } else if (((_a = groupColumns(data[0])) == null ? void 0 : _a.valueGroup2) && params.rowNode.depth === 1) {
5317
+ } else if (((_a2 = groupColumns(data[0])) == null ? void 0 : _a2.valueGroup2) && params.rowNode.depth === 1) {
5283
5318
  const labelGrouping1 = (_b = params.api.getRowNode(params.rowNode.parent)) == null ? void 0 : _b.groupingKey.toString();
5284
5319
  let customLabel = label;
5285
5320
  if (groupColumns) {
5286
5321
  const originalItem = data.find(
5287
5322
  (item) => {
5288
- var _a2;
5289
- return String((_a2 = groupColumns(item)) == null ? void 0 : _a2.valueGroup2) === label;
5323
+ var _a3;
5324
+ return String((_a3 = groupColumns(item)) == null ? void 0 : _a3.valueGroup2) === label;
5290
5325
  }
5291
5326
  );
5292
5327
  if (originalItem) {
@@ -5296,8 +5331,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5296
5331
  }
5297
5332
  const groupedDataLength2 = arrayRows.filter(
5298
5333
  (r) => {
5299
- var _a2, _b2;
5300
- return groupColumns && String((_a2 = groupColumns(r)) == null ? void 0 : _a2.valueGroup1) === labelGrouping1 && groupColumns && String((_b2 = groupColumns(r)) == null ? void 0 : _b2.valueGroup2) === label;
5334
+ var _a3, _b2;
5335
+ return groupColumns && String((_a3 = groupColumns(r)) == null ? void 0 : _a3.valueGroup1) === labelGrouping1 && groupColumns && String((_b2 = groupColumns(r)) == null ? void 0 : _b2.valueGroup2) === label;
5301
5336
  }
5302
5337
  ).length;
5303
5338
  label = `${customLabel} (${groupedDataLength2})`;
@@ -5342,25 +5377,25 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5342
5377
  );
5343
5378
  },
5344
5379
  colSpan: (params) => {
5345
- var _a, _b;
5380
+ var _a2, _b;
5346
5381
  const value = String(params);
5347
- const fieldGrouping1 = groupColumns ? (_a = groupColumns(data[0])) == null ? void 0 : _a.valueGroup1 : void 0;
5382
+ const fieldGrouping1 = groupColumns ? (_a2 = groupColumns(data[0])) == null ? void 0 : _a2.valueGroup1 : void 0;
5348
5383
  const fieldGrouping2 = groupColumns ? (_b = groupColumns(data[0])) == null ? void 0 : _b.valueGroup2 : void 0;
5349
5384
  let agrupado1 = false;
5350
5385
  let agrupado2 = false;
5351
5386
  if (fieldGrouping1 != void 0) {
5352
5387
  agrupado1 = arrayRows.some(
5353
5388
  (row) => {
5354
- var _a2;
5355
- return groupColumns && String((_a2 = groupColumns(row)) == null ? void 0 : _a2.valueGroup1) === value;
5389
+ var _a3;
5390
+ return groupColumns && String((_a3 = groupColumns(row)) == null ? void 0 : _a3.valueGroup1) === value;
5356
5391
  }
5357
5392
  );
5358
5393
  }
5359
5394
  if (fieldGrouping2 != void 0) {
5360
5395
  agrupado2 = arrayRows.some(
5361
5396
  (row) => {
5362
- var _a2;
5363
- return groupColumns && String((_a2 = groupColumns(row)) == null ? void 0 : _a2.valueGroup2) === value;
5397
+ var _a3;
5398
+ return groupColumns && String((_a3 = groupColumns(row)) == null ? void 0 : _a3.valueGroup2) === value;
5364
5399
  }
5365
5400
  );
5366
5401
  }
@@ -5382,11 +5417,31 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5382
5417
  const [pageSize, setPageSize] = (0, import_react51.useState)(rows);
5383
5418
  const [arrayRows, setArrayRows] = (0, import_react51.useState)([]);
5384
5419
  const [selectionModel, setSelectionModel] = (0, import_react51.useState)([]);
5420
+ const [insertRowValues, setInsertRowValues] = (0, import_react51.useState)({});
5421
+ const INSERT_ROW_ID = "__sc-datagrid-insert-row__";
5422
+ const resolvedGetRowId = (row) => (row == null ? void 0 : row.__isInsertRow) ? INSERT_ROW_ID : getRowId ? getRowId(row) : row.id;
5423
+ const pinnedRows = showInsertRow ? { bottom: [{ __isInsertRow: true }] } : void 0;
5424
+ const normalizedInsertRowFields = (insertRowFields && insertRowFields.length > 0 ? insertRowFields : [(_a = columns[0]) == null ? void 0 : _a.field]).map((item) => typeof item === "string" ? { field: item } : item);
5425
+ const insertRowTargetFields = normalizedInsertRowFields.map((item) => item.field);
5426
+ const isInsertRowValueFilled = (value) => value !== void 0 && value !== null && (typeof value !== "string" || value.trim() !== "");
5427
+ const hasInsertRowValue = () => insertRowTargetFields.some((field) => isInsertRowValueFilled(insertRowValues[field]));
5428
+ const handleAddInsertRow = () => {
5429
+ if (!hasInsertRowValue()) return;
5430
+ const nextId = Math.max(0, ...arrayRows.map((row) => typeof row.id === "number" ? row.id : 0)) + 1;
5431
+ const newRow = { id: nextId };
5432
+ insertRowTargetFields.forEach((field) => {
5433
+ const value = insertRowValues[field];
5434
+ if (isInsertRowValueFilled(value)) newRow[field] = typeof value === "string" ? value.trim() : value;
5435
+ });
5436
+ setArrayRows((prev) => [...prev, newRow]);
5437
+ setInsertRowValues({});
5438
+ onAddRow && onAddRow(newRow);
5439
+ };
5385
5440
  (0, import_react51.useEffect)(() => {
5386
- var _a;
5441
+ var _a2;
5387
5442
  if (setSelectedRow) {
5388
5443
  setSelectedRow(arrayRows[selectedIndex]);
5389
- setSelectionModel(((_a = arrayRows[selectedIndex]) == null ? void 0 : _a.id) ? [arrayRows[selectedIndex].id] : []);
5444
+ setSelectionModel(((_a2 = arrayRows[selectedIndex]) == null ? void 0 : _a2.id) ? [arrayRows[selectedIndex].id] : []);
5390
5445
  }
5391
5446
  }, [selectedIndex]);
5392
5447
  (0, import_react51.useEffect)(() => {
@@ -5395,7 +5450,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5395
5450
  }
5396
5451
  }, [data]);
5397
5452
  const dataConvertRows = (data2, columnId) => {
5398
- var _a;
5453
+ var _a2;
5399
5454
  let dataConvert = [];
5400
5455
  if ((data2 == null ? void 0 : data2.length) > 0) {
5401
5456
  const dataKeys = Object.keys(data2[0]);
@@ -5413,7 +5468,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5413
5468
  setArrayRows(dataConvert);
5414
5469
  if (arrayRows.length == 0 && (groupDataLenght < 1 && validationTreeData != true)) {
5415
5470
  setSelectedRow && setSelectedRow(dataConvert[selectedIndex]);
5416
- setSelectionModel([(_a = dataConvert[0]) == null ? void 0 : _a.id]);
5471
+ setSelectionModel([(_a2 = dataConvert[0]) == null ? void 0 : _a2.id]);
5417
5472
  }
5418
5473
  };
5419
5474
  const handleSelectionChange = (newSelection) => {
@@ -5455,15 +5510,56 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5455
5510
  }
5456
5511
  }
5457
5512
  };
5458
- const processedColumns = columns.map((col) => {
5459
- if (col.width !== void 0) {
5460
- return col;
5461
- }
5462
- if (col.flex !== void 0) {
5463
- return col;
5464
- }
5465
- return __spreadProps(__spreadValues({}, col), {
5466
- flex: 1
5513
+ const processedColumns = columns.map((col, index) => {
5514
+ const baseCol = col.width !== void 0 || col.flex !== void 0 ? col : __spreadProps(__spreadValues({}, col), { flex: 1 });
5515
+ if (!showInsertRow) return baseCol;
5516
+ const isLastColumn = index === columns.length - 1;
5517
+ const isInputField = !isLastColumn && insertRowTargetFields.includes(baseCol.field);
5518
+ const originalRenderCell = baseCol.renderCell;
5519
+ return __spreadProps(__spreadValues({}, baseCol), {
5520
+ renderCell: (params) => {
5521
+ if (params.id !== INSERT_ROW_ID) {
5522
+ return originalRenderCell ? originalRenderCell(params) : params.formattedValue;
5523
+ }
5524
+ if (isInputField) {
5525
+ const fieldConfig = normalizedInsertRowFields.find((item) => item.field === baseCol.field);
5526
+ const setFieldValue = (newValue) => setInsertRowValues((prev) => __spreadProps(__spreadValues({}, prev), { [baseCol.field]: newValue }));
5527
+ if (fieldConfig == null ? void 0 : fieldConfig.renderCell) {
5528
+ return fieldConfig.renderCell({
5529
+ value: insertRowValues[baseCol.field],
5530
+ onChange: setFieldValue,
5531
+ field: baseCol.field
5532
+ });
5533
+ }
5534
+ return /* @__PURE__ */ import_react51.default.createElement(
5535
+ import_material36.TextField,
5536
+ {
5537
+ variant: "outlined",
5538
+ size: "small",
5539
+ placeholder: (fieldConfig == null ? void 0 : fieldConfig.placeholder) || baseCol.headerName || `Escribir ${baseCol.field}`,
5540
+ value: insertRowValues[baseCol.field] || "",
5541
+ onChange: (e) => setFieldValue(e.target.value),
5542
+ onKeyDown: (e) => {
5543
+ if (e.key === "Enter") handleAddInsertRow();
5544
+ },
5545
+ sx: { width: "100%", "& .MuiOutlinedInput-root": { height: "32px" } }
5546
+ }
5547
+ );
5548
+ }
5549
+ if (isLastColumn) {
5550
+ return /* @__PURE__ */ import_react51.default.createElement(
5551
+ import_material36.Button,
5552
+ {
5553
+ variant: "contained",
5554
+ size: "small",
5555
+ disabled: !hasInsertRowValue(),
5556
+ onClick: handleAddInsertRow
5557
+ },
5558
+ "Agregar"
5559
+ );
5560
+ }
5561
+ return null;
5562
+ }
5467
5563
  });
5468
5564
  });
5469
5565
  const columnVisibilityModel = {};
@@ -5486,7 +5582,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5486
5582
  return /* @__PURE__ */ import_react51.default.createElement(import_react51.default.Fragment, null, data && /* @__PURE__ */ import_react51.default.createElement(import_react51.default.Fragment, null, /* @__PURE__ */ import_react51.default.createElement("div", { style: { width: width || "100%", maxHeight: maxHeight ? `${maxHeight}px` : "none" } }, /* @__PURE__ */ import_react51.default.createElement(
5487
5583
  import_x_data_grid_pro.DataGridPro,
5488
5584
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
5489
- getRowId,
5585
+ getRowId: showInsertRow ? resolvedGetRowId : getRowId,
5586
+ pinnedRows,
5490
5587
  apiRef,
5491
5588
  rowHeight: styleRowHeight,
5492
5589
  rows: arrayRows,
@@ -5523,6 +5620,12 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5523
5620
  },
5524
5621
  sx: {
5525
5622
  maxHeight: maxHeight ? `${maxHeight}px` : "none",
5623
+ "& .MuiDataGrid-pinnedRows": {
5624
+ boxShadow: "0px -2px 3px -2px rgba(0,0,0,0.15)"
5625
+ },
5626
+ "& .MuiDataGrid-pinnedRows .MuiDataGrid-cell": {
5627
+ backgroundColor: "#FBFBFB"
5628
+ },
5526
5629
  "& .MuiDataGrid-columnHeaders": {
5527
5630
  display: disableHeader == true ? "none" : "block"
5528
5631
  },
@@ -5719,7 +5822,7 @@ var SCDatePicker = ({ label, required, disabled, background, state, setState, wi
5719
5822
 
5720
5823
  // src/Components/SCDialog.tsx
5721
5824
  var import_react53 = __toESM(require("react"), 1);
5722
- var import_material36 = require("@mui/material");
5825
+ var import_material37 = require("@mui/material");
5723
5826
  var import_Grid9 = __toESM(require("@mui/material/Grid"), 1);
5724
5827
  var import_ToggleButton = __toESM(require("@mui/material/ToggleButton"), 1);
5725
5828
  var import_ToggleButtonGroup = __toESM(require("@mui/material/ToggleButtonGroup"), 1);
@@ -5783,9 +5886,9 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5783
5886
  }
5784
5887
  };
5785
5888
  const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
5786
- content = content != null ? content : { component: /* @__PURE__ */ import_react53.default.createElement(import_material36.Box, null, " Aqui va el contenido ") };
5787
- return /* @__PURE__ */ import_react53.default.createElement("div", null, buttonDialog ? /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ import_react53.default.createElement(import_material36.Tooltip, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react53.default.createElement(import_material36.Button, { 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__ */ import_react53.default.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ import_react53.default.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ import_react53.default.createElement(import_material36.IconButton, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ import_react53.default.createElement(import_material36.SvgIcon, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ import_react53.default.createElement(import_material36.Modal, { open: open || false, onClose: handleClose }, /* @__PURE__ */ import_react53.default.createElement(
5788
- import_material36.Dialog,
5889
+ content = content != null ? content : { component: /* @__PURE__ */ import_react53.default.createElement(import_material37.Box, null, " Aqui va el contenido ") };
5890
+ return /* @__PURE__ */ import_react53.default.createElement("div", null, buttonDialog ? /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ import_react53.default.createElement(import_material37.Tooltip, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ import_react53.default.createElement(import_material37.Button, { 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__ */ import_react53.default.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ import_react53.default.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ import_react53.default.createElement(import_material37.IconButton, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ import_react53.default.createElement(import_material37.Modal, { open: open || false, onClose: handleClose }, /* @__PURE__ */ import_react53.default.createElement(
5891
+ import_material37.Dialog,
5789
5892
  {
5790
5893
  fullScreen: typeView === "mobile" ? true : false,
5791
5894
  "data-testid": "dialog-element",
@@ -5799,9 +5902,9 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5799
5902
  }
5800
5903
  }
5801
5904
  },
5802
- title && /* @__PURE__ */ import_react53.default.createElement(import_material36.DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, typeView == "web" ? /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ import_react53.default.createElement(import_material36.Box, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ import_react53.default.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ import_react53.default.createElement(import_material36.SvgIcon, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { sx: { width: "98%" } }, /* @__PURE__ */ import_react53.default.createElement(import_material36.Typography, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), subtitle ? subtitle : "")) : /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }), disableClose != true ? /* @__PURE__ */ import_react53.default.createElement(import_material36.IconButton, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ import_react53.default.createElement(import_Close2.default, { color: "action" })) : ""), typeView == "mobile" ? /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { sx: { display: "flex", flexDirection: "column", padding: "12px 0px 4px 0px" }, gap: 1.5 }, /* @__PURE__ */ import_react53.default.createElement(import_material36.Typography, { color: "text.primary", variant: "h5" }, title ? title : ""), subtitle ? subtitle : "") : ""),
5905
+ title && /* @__PURE__ */ import_react53.default.createElement(import_material37.DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, typeView == "web" ? /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ import_react53.default.createElement(import_material37.Box, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ import_react53.default.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { sx: { width: "98%" } }, /* @__PURE__ */ import_react53.default.createElement(import_material37.Typography, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), subtitle ? subtitle : "")) : /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { container: true, size: 11, sx: { alignItems: "center", flexWrap: "nowrap" } }), disableClose != true ? /* @__PURE__ */ import_react53.default.createElement(import_material37.IconButton, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ import_react53.default.createElement(import_Close2.default, { color: "action" })) : ""), typeView == "mobile" ? /* @__PURE__ */ import_react53.default.createElement(import_Grid9.default, { sx: { display: "flex", flexDirection: "column", padding: "12px 0px 4px 0px" }, gap: 1.5 }, /* @__PURE__ */ import_react53.default.createElement(import_material37.Typography, { color: "text.primary", variant: "h5" }, title ? title : ""), subtitle ? subtitle : "") : ""),
5803
5906
  /* @__PURE__ */ import_react53.default.createElement(
5804
- import_material36.DialogContent,
5907
+ import_material37.DialogContent,
5805
5908
  {
5806
5909
  "data-testid": "dialog-content",
5807
5910
  dividers: dividers ? dividers : false,
@@ -5839,20 +5942,20 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5839
5942
  }
5840
5943
  ) : content.component
5841
5944
  ),
5842
- dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ import_react53.default.createElement(import_material36.DialogActions, { sx: { zIndex: 1200, gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, typeView !== "mobile" ? /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, dialogActions.length >= 3 ? /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, /* @__PURE__ */ import_react53.default.createElement(
5843
- import_material36.Button,
5945
+ dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ import_react53.default.createElement(import_material37.DialogActions, { sx: { zIndex: 1200, gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, typeView !== "mobile" ? /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, dialogActions.length >= 3 ? /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, /* @__PURE__ */ import_react53.default.createElement(
5946
+ import_material37.Button,
5844
5947
  {
5845
5948
  variant: "text",
5846
5949
  color: dialogActions[0].color || "primary",
5847
5950
  size: "small",
5848
5951
  onClick: dialogActions[0].fn,
5849
5952
  disabled: dialogActions[0].disabled || false,
5850
- startIcon: dialogActions[0].icon ? /* @__PURE__ */ import_react53.default.createElement(import_material36.SvgIcon, { fontSize: "small", component: dialogActions[0].icon }) : void 0
5953
+ startIcon: dialogActions[0].icon ? /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", component: dialogActions[0].icon }) : void 0
5851
5954
  },
5852
5955
  dialogActions[0].text
5853
- ), /* @__PURE__ */ import_react53.default.createElement(import_material36.Box, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
5956
+ ), /* @__PURE__ */ import_react53.default.createElement(import_material37.Box, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
5854
5957
  return /* @__PURE__ */ import_react53.default.createElement(
5855
- import_material36.Button,
5958
+ import_material37.Button,
5856
5959
  {
5857
5960
  key: index + 1,
5858
5961
  variant: index === dialogActions.length - 2 ? "contained" : "text",
@@ -5860,13 +5963,13 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5860
5963
  size: "small",
5861
5964
  onClick: boton.fn,
5862
5965
  disabled: boton.disabled || false,
5863
- startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material36.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5966
+ startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5864
5967
  },
5865
5968
  boton.text
5866
5969
  );
5867
5970
  }))) : dialogActions.map((boton, index) => {
5868
5971
  return /* @__PURE__ */ import_react53.default.createElement(
5869
- import_material36.Button,
5972
+ import_material37.Button,
5870
5973
  {
5871
5974
  key: index,
5872
5975
  variant: index === dialogActions.length - 1 ? "contained" : "text",
@@ -5874,20 +5977,20 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5874
5977
  size: "small",
5875
5978
  onClick: boton.fn,
5876
5979
  disabled: boton.disabled || false,
5877
- startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material36.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5980
+ startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5878
5981
  },
5879
5982
  boton.text
5880
5983
  );
5881
- })) : /* @__PURE__ */ import_react53.default.createElement(import_material36.Box, { sx: { width: "100%", display: "flex", flexDirection: "row", justifyContent: "center" } }, /* @__PURE__ */ import_react53.default.createElement(import_ToggleButtonGroup.default, { size: "large", fullWidth: true }, dialogActions.map((boton, index) => {
5984
+ })) : /* @__PURE__ */ import_react53.default.createElement(import_material37.Box, { sx: { width: "100%", display: "flex", flexDirection: "row", justifyContent: "center" } }, /* @__PURE__ */ import_react53.default.createElement(import_ToggleButtonGroup.default, { size: "large", fullWidth: true }, dialogActions.map((boton, index) => {
5882
5985
  var _a;
5883
- return /* @__PURE__ */ import_react53.default.createElement(import_ToggleButton.default, { 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__ */ import_react53.default.createElement(import_material36.SvgIcon, { fontSize: "small", component: boton.icon }));
5986
+ return /* @__PURE__ */ import_react53.default.createElement(import_ToggleButton.default, { 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__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", component: boton.icon }));
5884
5987
  })))) : "" : ""
5885
5988
  )));
5886
5989
  };
5887
5990
 
5888
5991
  // src/Components/SCDownloadExcelTable.tsx
5889
5992
  var import_react54 = __toESM(require("react"), 1);
5890
- var import_material37 = require("@mui/material");
5993
+ var import_material38 = require("@mui/material");
5891
5994
  var import_FileDownloadOutlined2 = __toESM(require("@mui/icons-material/FileDownloadOutlined"), 1);
5892
5995
  var XLSX = __toESM(require("xlsx"), 1);
5893
5996
  var SCDownloadExcelTable = ({
@@ -5921,7 +6024,7 @@ var SCDownloadExcelTable = ({
5921
6024
  XLSX.writeFile(workbook, `${fileName}.xlsx`);
5922
6025
  };
5923
6026
  return /* @__PURE__ */ import_react54.default.createElement(
5924
- import_material37.Button,
6027
+ import_material38.Button,
5925
6028
  {
5926
6029
  onClick: descargaExcel,
5927
6030
  startIcon: /* @__PURE__ */ import_react54.default.createElement(import_FileDownloadOutlined2.default, null),
@@ -5936,7 +6039,7 @@ var SCDownloadExcelTable = ({
5936
6039
 
5937
6040
  // src/Components/SCMenu.tsx
5938
6041
  var import_react56 = __toESM(require("react"), 1);
5939
- var import_material38 = require("@mui/material");
6042
+ var import_material39 = require("@mui/material");
5940
6043
  var import_Grid10 = __toESM(require("@mui/material/Grid"), 1);
5941
6044
 
5942
6045
  // src/Components/Hooks/useWindowDimensions.ts
@@ -6003,22 +6106,22 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
6003
6106
  setValue(String(index + 1));
6004
6107
  }
6005
6108
  };
6006
- return /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, /* @__PURE__ */ import_react56.default.createElement(import_Grid10.default, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ import_react56.default.createElement(import_material38.Paper, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ import_react56.default.createElement(import_material38.MenuList, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, /* @__PURE__ */ import_react56.default.createElement(
6007
- import_material38.MenuItem,
6109
+ return /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, /* @__PURE__ */ import_react56.default.createElement(import_Grid10.default, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ import_react56.default.createElement(import_material39.Paper, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ import_react56.default.createElement(import_material39.MenuList, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, /* @__PURE__ */ import_react56.default.createElement(
6110
+ import_material39.MenuItem,
6008
6111
  {
6009
6112
  disabled: disable == true ? true : false,
6010
6113
  key: index,
6011
6114
  selected: String(index + 1) === selectedIndex,
6012
6115
  onClick: (event2) => handleClickMenusItem(event2, index)
6013
6116
  },
6014
- option.iconLeft ? /* @__PURE__ */ import_react56.default.createElement(import_material38.ListItemIcon, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react56.default.createElement(import_material38.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
6015
- /* @__PURE__ */ import_react56.default.createElement(import_Grid10.default, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ import_react56.default.createElement(import_material38.Typography, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ import_react56.default.createElement(import_material38.ListItemIcon, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react56.default.createElement(import_material38.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
6016
- ), option.divider == true ? /* @__PURE__ */ import_react56.default.createElement(import_material38.Divider, null) : "")))), /* @__PURE__ */ import_react56.default.createElement(import_Grid10.default, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ import_react56.default.createElement(import_material38.Box, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ import_react56.default.createElement(import_material38.Typography, { color: "error" }, "No se ha configurado el componente a visualizar")))));
6117
+ option.iconLeft ? /* @__PURE__ */ import_react56.default.createElement(import_material39.ListItemIcon, { sx: { color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react56.default.createElement(import_material39.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconLeft })) : "",
6118
+ /* @__PURE__ */ import_react56.default.createElement(import_Grid10.default, { container: true, size: 12, sx: { maxWidth: 220, flexWrap: "noWrap", alignItems: "center" } }, /* @__PURE__ */ import_react56.default.createElement(import_material39.Typography, { noWrap: true, variant: "caption", color: String(index + 1) === selectedIndex ? "primary" : "active" }, option.name), option.iconRight ? /* @__PURE__ */ import_react56.default.createElement(import_material39.ListItemIcon, { sx: { minWidth: "0px !important", color: String(index + 1) === selectedIndex ? "primary" : "active" } }, /* @__PURE__ */ import_react56.default.createElement(import_material39.SvgIcon, { fontSize: "small", color: String(index + 1) === selectedIndex ? "primary" : "action", component: option.iconRight })) : "")
6119
+ ), option.divider == true ? /* @__PURE__ */ import_react56.default.createElement(import_material39.Divider, null) : "")))), /* @__PURE__ */ import_react56.default.createElement(import_Grid10.default, { container: true }, options.map((option, index) => option.page ? String(index + 1) == value ? /* @__PURE__ */ import_react56.default.createElement(import_material39.Box, { "data-testid": "menu-page-content", sx: { padding: "16px", width: pageSize, height: heightContainer }, key: index }, option.page) : "" : /* @__PURE__ */ import_react56.default.createElement(import_material39.Typography, { color: "error" }, "No se ha configurado el componente a visualizar")))));
6017
6120
  };
6018
6121
 
6019
6122
  // src/Components/SCTabs.tsx
6020
6123
  var import_react57 = __toESM(require("react"), 1);
6021
- var import_material39 = require("@mui/material");
6124
+ var import_material40 = require("@mui/material");
6022
6125
  var import_TabPanel = __toESM(require("@mui/lab/TabPanel"), 1);
6023
6126
  var import_TabContext = __toESM(require("@mui/lab/TabContext"), 1);
6024
6127
  var Muicon11 = __toESM(require("@mui/icons-material"), 1);
@@ -6080,8 +6183,8 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6080
6183
  setValue(newValue);
6081
6184
  }
6082
6185
  };
6083
- return /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, validateTypeIcon == true ? /* @__PURE__ */ import_react57.default.createElement(import_material39.Box, { sx: { height: orientation == "vertical" ? "100%" : "auto", display: "flex", flexDirection: orientation == "vertical" ? "row" : "column" }, id: "tabsitos" }, /* @__PURE__ */ import_react57.default.createElement(import_TabContext.default, { value }, /* @__PURE__ */ import_react57.default.createElement(
6084
- import_material39.Tabs,
6186
+ return /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, validateTypeIcon == true ? /* @__PURE__ */ import_react57.default.createElement(import_material40.Box, { sx: { height: orientation == "vertical" ? "100%" : "auto", display: "flex", flexDirection: orientation == "vertical" ? "row" : "column" }, id: "tabsitos" }, /* @__PURE__ */ import_react57.default.createElement(import_TabContext.default, { value }, /* @__PURE__ */ import_react57.default.createElement(
6187
+ import_material40.Tabs,
6085
6188
  {
6086
6189
  "data-testid": "tab-container",
6087
6190
  value,
@@ -6095,7 +6198,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6095
6198
  sx: { borderBottom: orientation == "vertical" ? 0 : 1, borderRight: orientation == "vertical" ? 1 : 0, borderColor: "divider", background: background || "" }
6096
6199
  },
6097
6200
  options.map((option) => /* @__PURE__ */ import_react57.default.createElement(
6098
- import_material39.Tab,
6201
+ import_material40.Tab,
6099
6202
  {
6100
6203
  "data-testid": "tab-item",
6101
6204
  value: String(i = i + 1),
@@ -6104,7 +6207,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6104
6207
  disabled: option.disabled || false,
6105
6208
  iconPosition: iconPosition || "end",
6106
6209
  icon: typeIcon == "badge" ? /* @__PURE__ */ import_react57.default.createElement(
6107
- import_material39.Badge,
6210
+ import_material40.Badge,
6108
6211
  {
6109
6212
  sx: {
6110
6213
  width: "20px",
@@ -6118,7 +6221,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6118
6221
  badgeContent: option.iconOrBadge,
6119
6222
  color: value == String(i) ? colorTab ? colorTab : "primary" : "default"
6120
6223
  }
6121
- ) : typeIcon == "icon" ? /* @__PURE__ */ import_react57.default.createElement(import_material39.SvgIcon, { fontSize: "small", component: option.iconOrBadge, color: value == String(i) ? colorTab ? colorTab : "primary" : "action", sx: { width: "20px", height: "20px" } }) : "",
6224
+ ) : typeIcon == "icon" ? /* @__PURE__ */ import_react57.default.createElement(import_material40.SvgIcon, { fontSize: "small", component: option.iconOrBadge, color: value == String(i) ? colorTab ? colorTab : "primary" : "action", sx: { width: "20px", height: "20px" } }) : "",
6122
6225
  sx: { "& .MuiTab-icon": { margin: "0px !important" }, padding: "10px 16px", gap: "4px" }
6123
6226
  }
6124
6227
  ))
@@ -6129,13 +6232,13 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6129
6232
  value: String(l = l + 1),
6130
6233
  sx: { padding: "16px" }
6131
6234
  },
6132
- option.page ? option.page : /* @__PURE__ */ import_react57.default.createElement(import_material39.Typography, null, "No se ha configurado el componente a visualizar ")
6133
- )))) : /* @__PURE__ */ import_react57.default.createElement(import_material39.Box, { sx: { height: "200px" } }, toast && /* @__PURE__ */ import_react57.default.createElement(SCToastNotification, __spreadValues({ "data-testid": "error-tab-message" }, toast))));
6235
+ option.page ? option.page : /* @__PURE__ */ import_react57.default.createElement(import_material40.Typography, null, "No se ha configurado el componente a visualizar ")
6236
+ )))) : /* @__PURE__ */ import_react57.default.createElement(import_material40.Box, { sx: { height: "200px" } }, toast && /* @__PURE__ */ import_react57.default.createElement(SCToastNotification, __spreadValues({ "data-testid": "error-tab-message" }, toast))));
6134
6237
  };
6135
6238
 
6136
6239
  // src/Components/SCTime.tsx
6137
6240
  var import_react58 = __toESM(require("react"), 1);
6138
- var import_material40 = require("@mui/material");
6241
+ var import_material41 = require("@mui/material");
6139
6242
  var import_LocalizationProvider5 = require("@mui/x-date-pickers/LocalizationProvider");
6140
6243
  var import_AdapterDayjs3 = require("@mui/x-date-pickers/AdapterDayjs");
6141
6244
  var import_dayjs11 = __toESM(require("dayjs"), 1);
@@ -6199,7 +6302,7 @@ var SCTime = ({
6199
6302
  setIsOpenPopover(false);
6200
6303
  setAnchorEl(null);
6201
6304
  };
6202
- return /* @__PURE__ */ import_react58.default.createElement(import_LocalizationProvider5.LocalizationProvider, { dateAdapter: import_AdapterDayjs3.AdapterDayjs }, /* @__PURE__ */ import_react58.default.createElement(import_material40.Box, { sx: { position: "relative", minWidth: "120px", width: width ? `${width}%` : "99%" } }, /* @__PURE__ */ import_react58.default.createElement(
6305
+ return /* @__PURE__ */ import_react58.default.createElement(import_LocalizationProvider5.LocalizationProvider, { dateAdapter: import_AdapterDayjs3.AdapterDayjs }, /* @__PURE__ */ import_react58.default.createElement(import_material41.Box, { sx: { position: "relative", minWidth: "120px", width: width ? `${width}%` : "99%" } }, /* @__PURE__ */ import_react58.default.createElement(
6203
6306
  import_TimeField.TimeField,
6204
6307
  {
6205
6308
  label,
@@ -6212,7 +6315,7 @@ var SCTime = ({
6212
6315
  slotProps: {
6213
6316
  textField: {
6214
6317
  InputProps: {
6215
- endAdornment: /* @__PURE__ */ import_react58.default.createElement(import_material40.InputAdornment, { position: "end" }, /* @__PURE__ */ import_react58.default.createElement(
6318
+ endAdornment: /* @__PURE__ */ import_react58.default.createElement(import_material41.InputAdornment, { position: "end" }, /* @__PURE__ */ import_react58.default.createElement(
6216
6319
  import_AccessTime.default,
6217
6320
  {
6218
6321
  color: disabled ? "disabled" : "action",
@@ -6242,7 +6345,7 @@ var SCTime = ({
6242
6345
  }
6243
6346
  }
6244
6347
  ), /* @__PURE__ */ import_react58.default.createElement(
6245
- import_material40.Popover,
6348
+ import_material41.Popover,
6246
6349
  {
6247
6350
  open: isOpenPopover,
6248
6351
  anchorEl,
@@ -6272,7 +6375,7 @@ var SCTime = ({
6272
6375
  }
6273
6376
  }
6274
6377
  },
6275
- /* @__PURE__ */ import_react58.default.createElement(import_material40.ClickAwayListener, { onClickAway: handleClose }, /* @__PURE__ */ import_react58.default.createElement(import_material40.Box, { sx: { p: 0 } }, /* @__PURE__ */ import_react58.default.createElement(
6378
+ /* @__PURE__ */ import_react58.default.createElement(import_material41.ClickAwayListener, { onClickAway: handleClose }, /* @__PURE__ */ import_react58.default.createElement(import_material41.Box, { sx: { p: 0 } }, /* @__PURE__ */ import_react58.default.createElement(
6276
6379
  import_DigitalClock.DigitalClock,
6277
6380
  {
6278
6381
  value: state,
@@ -6296,7 +6399,7 @@ var SCTime = ({
6296
6399
 
6297
6400
  // src/Components/SCZoom.tsx
6298
6401
  var import_react59 = __toESM(require("react"), 1);
6299
- var import_material41 = require("@mui/material");
6402
+ var import_material42 = require("@mui/material");
6300
6403
  var import_Grid11 = __toESM(require("@mui/material/Grid"), 1);
6301
6404
  var import_ZoomOut = __toESM(require("@mui/icons-material/ZoomOut"), 1);
6302
6405
  var import_ZoomIn = __toESM(require("@mui/icons-material/ZoomIn"), 1);
@@ -6312,8 +6415,8 @@ var SCZoom = ({ image, width, height, bottom, left }) => {
6312
6415
  const handleReset = () => {
6313
6416
  setZoom(1);
6314
6417
  };
6315
- return /* @__PURE__ */ import_react59.default.createElement(import_material41.Box, { style: { width: width || "280px", height: height || "280px" } }, /* @__PURE__ */ import_react59.default.createElement(
6316
- import_material41.Box,
6418
+ return /* @__PURE__ */ import_react59.default.createElement(import_material42.Box, { style: { width: width || "280px", height: height || "280px" } }, /* @__PURE__ */ import_react59.default.createElement(
6419
+ import_material42.Box,
6317
6420
  {
6318
6421
  sx: {
6319
6422
  overflow: zoom > 1 ? "auto" : "hidden",
@@ -6334,7 +6437,7 @@ var SCZoom = ({ image, width, height, bottom, left }) => {
6334
6437
  }
6335
6438
  }
6336
6439
  )
6337
- ), /* @__PURE__ */ import_react59.default.createElement(import_Grid11.default, { container: true, flexWrap: "nowrap", alignItems: "center", gap: 1, sx: { position: "relative", bottom: bottom != null ? bottom : `calc(100% - 87%)`, left: left != null ? left : `calc(100% - 72%)`, zIndex: 1, width: "147px", borderRadius: "4px", padding: "4px 12px", border: bottom ? "0px" : "1px solid #0000001F", background: "white", boxShadow: bottom ? "" : "2px 3px 5px 0px #18274B33" } }, /* @__PURE__ */ import_react59.default.createElement(import_Grid11.default, { container: true, alignItems: "center", justifyContent: "center", flexWrap: "nowrap", gap: 0.5, sx: { width: "84px" } }, /* @__PURE__ */ import_react59.default.createElement(import_material41.IconButton, { onClick: handleZoomOut, disabled: zoom <= 0.5, size: "small" }, /* @__PURE__ */ import_react59.default.createElement(import_ZoomOut.default, { color: "action", fontSize: "small" })), /* @__PURE__ */ import_react59.default.createElement(import_material41.Typography, { variant: "body2", color: "textSecondary" }, Math.round(zoom * 100), "%"), /* @__PURE__ */ import_react59.default.createElement(import_material41.IconButton, { onClick: handleZoomIn, disabled: zoom >= 3, color: "primary", size: "small" }, /* @__PURE__ */ import_react59.default.createElement(import_ZoomIn.default, { color: "action", fontSize: "small" }))), /* @__PURE__ */ import_react59.default.createElement(import_material41.Divider, { orientation: "vertical", sx: { width: "1px", height: "16px" } }), /* @__PURE__ */ import_react59.default.createElement(import_material41.IconButton, { onClick: handleReset, color: "primary", size: "small" }, /* @__PURE__ */ import_react59.default.createElement(import_RotateRight.default, { color: "action", fontSize: "small" }))));
6440
+ ), /* @__PURE__ */ import_react59.default.createElement(import_Grid11.default, { container: true, flexWrap: "nowrap", alignItems: "center", gap: 1, sx: { position: "relative", bottom: bottom != null ? bottom : `calc(100% - 87%)`, left: left != null ? left : `calc(100% - 72%)`, zIndex: 1, width: "147px", borderRadius: "4px", padding: "4px 12px", border: bottom ? "0px" : "1px solid #0000001F", background: "white", boxShadow: bottom ? "" : "2px 3px 5px 0px #18274B33" } }, /* @__PURE__ */ import_react59.default.createElement(import_Grid11.default, { container: true, alignItems: "center", justifyContent: "center", flexWrap: "nowrap", gap: 0.5, sx: { width: "84px" } }, /* @__PURE__ */ import_react59.default.createElement(import_material42.IconButton, { onClick: handleZoomOut, disabled: zoom <= 0.5, size: "small" }, /* @__PURE__ */ import_react59.default.createElement(import_ZoomOut.default, { color: "action", fontSize: "small" })), /* @__PURE__ */ import_react59.default.createElement(import_material42.Typography, { variant: "body2", color: "textSecondary" }, Math.round(zoom * 100), "%"), /* @__PURE__ */ import_react59.default.createElement(import_material42.IconButton, { onClick: handleZoomIn, disabled: zoom >= 3, color: "primary", size: "small" }, /* @__PURE__ */ import_react59.default.createElement(import_ZoomIn.default, { color: "action", fontSize: "small" }))), /* @__PURE__ */ import_react59.default.createElement(import_material42.Divider, { orientation: "vertical", sx: { width: "1px", height: "16px" } }), /* @__PURE__ */ import_react59.default.createElement(import_material42.IconButton, { onClick: handleReset, color: "primary", size: "small" }, /* @__PURE__ */ import_react59.default.createElement(import_RotateRight.default, { color: "action", fontSize: "small" }))));
6338
6441
  };
6339
6442
 
6340
6443
  // src/Theme/index.ts
@@ -6806,7 +6909,6 @@ var components = {
6806
6909
  color: theme.palette.primary.main
6807
6910
  }),
6808
6911
  colorDefault: ({ theme }) => ({
6809
- backgroundColor: theme.palette.default.main,
6810
6912
  color: theme.palette.default.contrastText
6811
6913
  }),
6812
6914
  deleteIcon: ({ theme }) => ({
@@ -6916,47 +7018,6 @@ var components = {
6916
7018
  height: "inherit",
6917
7019
  borderRadius: 4,
6918
7020
  variants: [
6919
- {
6920
- props: { variant: "outlined", color: "default" },
6921
- style: {
6922
- border: `1px solid ${theme.palette.grey[400]}`,
6923
- backgroundColor: "transparent ",
6924
- color: theme.palette.default.contrastText,
6925
- ":hover": {
6926
- backgroundColor: theme.palette.default.main
6927
- }
6928
- }
6929
- },
6930
- {
6931
- props: { variant: "standard", color: "default" },
6932
- style: {
6933
- backgroundColor: theme.palette.default.main,
6934
- color: theme.palette.default.contrastText,
6935
- ":hover": {
6936
- backgroundColor: theme.palette.default.dark
6937
- }
6938
- }
6939
- },
6940
- {
6941
- props: { variant: "filled", color: "default" },
6942
- style: {
6943
- backgroundColor: theme.palette.grey[50],
6944
- color: theme.palette.default.contrastText,
6945
- ":hover": {
6946
- backgroundColor: theme.palette.grey[100]
6947
- }
6948
- }
6949
- },
6950
- {
6951
- props: { variant: "filled", color: "default" },
6952
- style: {
6953
- backgroundColor: theme.palette.grey[50],
6954
- color: theme.palette.default.contrastText,
6955
- ":hover": {
6956
- backgroundColor: theme.palette.grey[100]
6957
- }
6958
- }
6959
- },
6960
7021
  {
6961
7022
  props: { variant: "standard", avatar: true },
6962
7023
  style: {
@@ -7027,7 +7088,40 @@ var components = {
7027
7088
  }
7028
7089
  ]
7029
7090
  })
7030
- }
7091
+ },
7092
+ variants: [
7093
+ {
7094
+ props: { variant: "outlined", color: "default" },
7095
+ style: ({ theme }) => ({
7096
+ border: `1px solid ${theme.palette.grey[400]}`,
7097
+ backgroundColor: "transparent",
7098
+ color: theme.palette.default.contrastText,
7099
+ ":hover": {
7100
+ backgroundColor: theme.palette.default.main
7101
+ }
7102
+ })
7103
+ },
7104
+ {
7105
+ props: { variant: "standard", color: "default" },
7106
+ style: ({ theme }) => ({
7107
+ backgroundColor: theme.palette.default.main,
7108
+ color: theme.palette.default.contrastText,
7109
+ ":hover": {
7110
+ backgroundColor: theme.palette.default.dark
7111
+ }
7112
+ })
7113
+ },
7114
+ {
7115
+ props: { variant: "filled", color: "default" },
7116
+ style: ({ theme }) => ({
7117
+ backgroundColor: theme.palette.grey[50],
7118
+ color: theme.palette.default.contrastText,
7119
+ ":hover": {
7120
+ backgroundColor: theme.palette.grey[100]
7121
+ }
7122
+ })
7123
+ }
7124
+ ]
7031
7125
  },
7032
7126
  MuiAvatar: {
7033
7127
  styleOverrides: {