componentes-sinco 1.3.4 → 1.3.6

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,35 @@ 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: [__spreadValues({ __isInsertRow: true }, insertRowValues)] } : 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
+ };
5440
+ const hasInsertRowValueRef = (0, import_react51.useRef)(hasInsertRowValue);
5441
+ hasInsertRowValueRef.current = hasInsertRowValue;
5442
+ const handleAddInsertRowRef = (0, import_react51.useRef)(handleAddInsertRow);
5443
+ handleAddInsertRowRef.current = handleAddInsertRow;
5385
5444
  (0, import_react51.useEffect)(() => {
5386
- var _a;
5445
+ var _a2;
5387
5446
  if (setSelectedRow) {
5388
5447
  setSelectedRow(arrayRows[selectedIndex]);
5389
- setSelectionModel(((_a = arrayRows[selectedIndex]) == null ? void 0 : _a.id) ? [arrayRows[selectedIndex].id] : []);
5448
+ setSelectionModel(((_a2 = arrayRows[selectedIndex]) == null ? void 0 : _a2.id) ? [arrayRows[selectedIndex].id] : []);
5390
5449
  }
5391
5450
  }, [selectedIndex]);
5392
5451
  (0, import_react51.useEffect)(() => {
@@ -5395,7 +5454,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5395
5454
  }
5396
5455
  }, [data]);
5397
5456
  const dataConvertRows = (data2, columnId) => {
5398
- var _a;
5457
+ var _a2;
5399
5458
  let dataConvert = [];
5400
5459
  if ((data2 == null ? void 0 : data2.length) > 0) {
5401
5460
  const dataKeys = Object.keys(data2[0]);
@@ -5413,7 +5472,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5413
5472
  setArrayRows(dataConvert);
5414
5473
  if (arrayRows.length == 0 && (groupDataLenght < 1 && validationTreeData != true)) {
5415
5474
  setSelectedRow && setSelectedRow(dataConvert[selectedIndex]);
5416
- setSelectionModel([(_a = dataConvert[0]) == null ? void 0 : _a.id]);
5475
+ setSelectionModel([(_a2 = dataConvert[0]) == null ? void 0 : _a2.id]);
5417
5476
  }
5418
5477
  };
5419
5478
  const handleSelectionChange = (newSelection) => {
@@ -5455,17 +5514,59 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5455
5514
  }
5456
5515
  }
5457
5516
  };
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
5517
+ const processedColumns = import_react51.default.useMemo(() => columns.map((col, index) => {
5518
+ const baseCol = col.width !== void 0 || col.flex !== void 0 ? col : __spreadProps(__spreadValues({}, col), { flex: 1 });
5519
+ if (!showInsertRow) return baseCol;
5520
+ const isLastColumn = index === columns.length - 1;
5521
+ const isInputField = !isLastColumn && insertRowTargetFields.includes(baseCol.field);
5522
+ const fieldConfig = normalizedInsertRowFields.find((item) => item.field === baseCol.field);
5523
+ const originalRenderCell = baseCol.renderCell;
5524
+ return __spreadProps(__spreadValues({}, baseCol), {
5525
+ renderCell: (params) => {
5526
+ if (params.id !== INSERT_ROW_ID) {
5527
+ return originalRenderCell ? originalRenderCell(params) : params.formattedValue;
5528
+ }
5529
+ if (isInputField) {
5530
+ const setFieldValue = (newValue) => setInsertRowValues((prev) => __spreadProps(__spreadValues({}, prev), { [baseCol.field]: newValue }));
5531
+ if (fieldConfig == null ? void 0 : fieldConfig.renderCell) {
5532
+ return fieldConfig.renderCell({
5533
+ value: params.value,
5534
+ onChange: setFieldValue,
5535
+ field: baseCol.field
5536
+ });
5537
+ }
5538
+ return /* @__PURE__ */ import_react51.default.createElement(
5539
+ import_material36.TextField,
5540
+ {
5541
+ variant: "outlined",
5542
+ size: "small",
5543
+ placeholder: (fieldConfig == null ? void 0 : fieldConfig.placeholder) || baseCol.headerName || `Escribir ${baseCol.field}`,
5544
+ value: params.value || "",
5545
+ onChange: (e) => setFieldValue(e.target.value),
5546
+ onKeyDown: (e) => {
5547
+ e.stopPropagation();
5548
+ if (e.key === "Enter") handleAddInsertRowRef.current();
5549
+ },
5550
+ sx: { width: "100%", "& .MuiOutlinedInput-root": { height: "32px" } }
5551
+ }
5552
+ );
5553
+ }
5554
+ if (isLastColumn) {
5555
+ return /* @__PURE__ */ import_react51.default.createElement(
5556
+ import_material36.Button,
5557
+ {
5558
+ variant: "contained",
5559
+ size: "small",
5560
+ disabled: !hasInsertRowValueRef.current(),
5561
+ onClick: () => handleAddInsertRowRef.current()
5562
+ },
5563
+ "Agregar"
5564
+ );
5565
+ }
5566
+ return null;
5567
+ }
5467
5568
  });
5468
- });
5569
+ }), [columns, showInsertRow, insertRowFields]);
5469
5570
  const columnVisibilityModel = {};
5470
5571
  processedColumns.forEach((col) => {
5471
5572
  if (col.hide === true) {
@@ -5486,7 +5587,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5486
5587
  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
5588
  import_x_data_grid_pro.DataGridPro,
5488
5589
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
5489
- getRowId,
5590
+ getRowId: showInsertRow ? resolvedGetRowId : getRowId,
5591
+ pinnedRows,
5490
5592
  apiRef,
5491
5593
  rowHeight: styleRowHeight,
5492
5594
  rows: arrayRows,
@@ -5523,6 +5625,12 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, titleRowsPag
5523
5625
  },
5524
5626
  sx: {
5525
5627
  maxHeight: maxHeight ? `${maxHeight}px` : "none",
5628
+ "& .MuiDataGrid-pinnedRows": {
5629
+ boxShadow: "0px -2px 3px -2px rgba(0,0,0,0.15)"
5630
+ },
5631
+ "& .MuiDataGrid-pinnedRows .MuiDataGrid-cell": {
5632
+ backgroundColor: "#FBFBFB"
5633
+ },
5526
5634
  "& .MuiDataGrid-columnHeaders": {
5527
5635
  display: disableHeader == true ? "none" : "block"
5528
5636
  },
@@ -5719,7 +5827,7 @@ var SCDatePicker = ({ label, required, disabled, background, state, setState, wi
5719
5827
 
5720
5828
  // src/Components/SCDialog.tsx
5721
5829
  var import_react53 = __toESM(require("react"), 1);
5722
- var import_material36 = require("@mui/material");
5830
+ var import_material37 = require("@mui/material");
5723
5831
  var import_Grid9 = __toESM(require("@mui/material/Grid"), 1);
5724
5832
  var import_ToggleButton = __toESM(require("@mui/material/ToggleButton"), 1);
5725
5833
  var import_ToggleButtonGroup = __toESM(require("@mui/material/ToggleButtonGroup"), 1);
@@ -5783,9 +5891,9 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5783
5891
  }
5784
5892
  };
5785
5893
  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,
5894
+ content = content != null ? content : { component: /* @__PURE__ */ import_react53.default.createElement(import_material37.Box, null, " Aqui va el contenido ") };
5895
+ 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(
5896
+ import_material37.Dialog,
5789
5897
  {
5790
5898
  fullScreen: typeView === "mobile" ? true : false,
5791
5899
  "data-testid": "dialog-element",
@@ -5799,9 +5907,9 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5799
5907
  }
5800
5908
  }
5801
5909
  },
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 : "") : ""),
5910
+ 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
5911
  /* @__PURE__ */ import_react53.default.createElement(
5804
- import_material36.DialogContent,
5912
+ import_material37.DialogContent,
5805
5913
  {
5806
5914
  "data-testid": "dialog-content",
5807
5915
  dividers: dividers ? dividers : false,
@@ -5839,20 +5947,20 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5839
5947
  }
5840
5948
  ) : content.component
5841
5949
  ),
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,
5950
+ 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(
5951
+ import_material37.Button,
5844
5952
  {
5845
5953
  variant: "text",
5846
5954
  color: dialogActions[0].color || "primary",
5847
5955
  size: "small",
5848
5956
  onClick: dialogActions[0].fn,
5849
5957
  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
5958
+ startIcon: dialogActions[0].icon ? /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", component: dialogActions[0].icon }) : void 0
5851
5959
  },
5852
5960
  dialogActions[0].text
5853
- ), /* @__PURE__ */ import_react53.default.createElement(import_material36.Box, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
5961
+ ), /* @__PURE__ */ import_react53.default.createElement(import_material37.Box, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
5854
5962
  return /* @__PURE__ */ import_react53.default.createElement(
5855
- import_material36.Button,
5963
+ import_material37.Button,
5856
5964
  {
5857
5965
  key: index + 1,
5858
5966
  variant: index === dialogActions.length - 2 ? "contained" : "text",
@@ -5860,13 +5968,13 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5860
5968
  size: "small",
5861
5969
  onClick: boton.fn,
5862
5970
  disabled: boton.disabled || false,
5863
- startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material36.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5971
+ startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5864
5972
  },
5865
5973
  boton.text
5866
5974
  );
5867
5975
  }))) : dialogActions.map((boton, index) => {
5868
5976
  return /* @__PURE__ */ import_react53.default.createElement(
5869
- import_material36.Button,
5977
+ import_material37.Button,
5870
5978
  {
5871
5979
  key: index,
5872
5980
  variant: index === dialogActions.length - 1 ? "contained" : "text",
@@ -5874,20 +5982,20 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5874
5982
  size: "small",
5875
5983
  onClick: boton.fn,
5876
5984
  disabled: boton.disabled || false,
5877
- startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material36.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5985
+ startIcon: boton.icon ? /* @__PURE__ */ import_react53.default.createElement(import_material37.SvgIcon, { fontSize: "small", component: boton.icon }) : void 0
5878
5986
  },
5879
5987
  boton.text
5880
5988
  );
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) => {
5989
+ })) : /* @__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
5990
  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 }));
5991
+ 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
5992
  })))) : "" : ""
5885
5993
  )));
5886
5994
  };
5887
5995
 
5888
5996
  // src/Components/SCDownloadExcelTable.tsx
5889
5997
  var import_react54 = __toESM(require("react"), 1);
5890
- var import_material37 = require("@mui/material");
5998
+ var import_material38 = require("@mui/material");
5891
5999
  var import_FileDownloadOutlined2 = __toESM(require("@mui/icons-material/FileDownloadOutlined"), 1);
5892
6000
  var XLSX = __toESM(require("xlsx"), 1);
5893
6001
  var SCDownloadExcelTable = ({
@@ -5921,7 +6029,7 @@ var SCDownloadExcelTable = ({
5921
6029
  XLSX.writeFile(workbook, `${fileName}.xlsx`);
5922
6030
  };
5923
6031
  return /* @__PURE__ */ import_react54.default.createElement(
5924
- import_material37.Button,
6032
+ import_material38.Button,
5925
6033
  {
5926
6034
  onClick: descargaExcel,
5927
6035
  startIcon: /* @__PURE__ */ import_react54.default.createElement(import_FileDownloadOutlined2.default, null),
@@ -5936,7 +6044,7 @@ var SCDownloadExcelTable = ({
5936
6044
 
5937
6045
  // src/Components/SCMenu.tsx
5938
6046
  var import_react56 = __toESM(require("react"), 1);
5939
- var import_material38 = require("@mui/material");
6047
+ var import_material39 = require("@mui/material");
5940
6048
  var import_Grid10 = __toESM(require("@mui/material/Grid"), 1);
5941
6049
 
5942
6050
  // src/Components/Hooks/useWindowDimensions.ts
@@ -6003,22 +6111,22 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
6003
6111
  setValue(String(index + 1));
6004
6112
  }
6005
6113
  };
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,
6114
+ 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(
6115
+ import_material39.MenuItem,
6008
6116
  {
6009
6117
  disabled: disable == true ? true : false,
6010
6118
  key: index,
6011
6119
  selected: String(index + 1) === selectedIndex,
6012
6120
  onClick: (event2) => handleClickMenusItem(event2, index)
6013
6121
  },
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")))));
6122
+ 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 })) : "",
6123
+ /* @__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 })) : "")
6124
+ ), 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
6125
  };
6018
6126
 
6019
6127
  // src/Components/SCTabs.tsx
6020
6128
  var import_react57 = __toESM(require("react"), 1);
6021
- var import_material39 = require("@mui/material");
6129
+ var import_material40 = require("@mui/material");
6022
6130
  var import_TabPanel = __toESM(require("@mui/lab/TabPanel"), 1);
6023
6131
  var import_TabContext = __toESM(require("@mui/lab/TabContext"), 1);
6024
6132
  var Muicon11 = __toESM(require("@mui/icons-material"), 1);
@@ -6080,8 +6188,8 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6080
6188
  setValue(newValue);
6081
6189
  }
6082
6190
  };
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,
6191
+ 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(
6192
+ import_material40.Tabs,
6085
6193
  {
6086
6194
  "data-testid": "tab-container",
6087
6195
  value,
@@ -6095,7 +6203,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6095
6203
  sx: { borderBottom: orientation == "vertical" ? 0 : 1, borderRight: orientation == "vertical" ? 1 : 0, borderColor: "divider", background: background || "" }
6096
6204
  },
6097
6205
  options.map((option) => /* @__PURE__ */ import_react57.default.createElement(
6098
- import_material39.Tab,
6206
+ import_material40.Tab,
6099
6207
  {
6100
6208
  "data-testid": "tab-item",
6101
6209
  value: String(i = i + 1),
@@ -6104,7 +6212,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6104
6212
  disabled: option.disabled || false,
6105
6213
  iconPosition: iconPosition || "end",
6106
6214
  icon: typeIcon == "badge" ? /* @__PURE__ */ import_react57.default.createElement(
6107
- import_material39.Badge,
6215
+ import_material40.Badge,
6108
6216
  {
6109
6217
  sx: {
6110
6218
  width: "20px",
@@ -6118,7 +6226,7 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6118
6226
  badgeContent: option.iconOrBadge,
6119
6227
  color: value == String(i) ? colorTab ? colorTab : "primary" : "default"
6120
6228
  }
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" } }) : "",
6229
+ ) : 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
6230
  sx: { "& .MuiTab-icon": { margin: "0px !important" }, padding: "10px 16px", gap: "4px" }
6123
6231
  }
6124
6232
  ))
@@ -6129,13 +6237,13 @@ var SCTabs = ({ options, defaultOption, typeIcon, background, iconPosition, colo
6129
6237
  value: String(l = l + 1),
6130
6238
  sx: { padding: "16px" }
6131
6239
  },
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))));
6240
+ option.page ? option.page : /* @__PURE__ */ import_react57.default.createElement(import_material40.Typography, null, "No se ha configurado el componente a visualizar ")
6241
+ )))) : /* @__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
6242
  };
6135
6243
 
6136
6244
  // src/Components/SCTime.tsx
6137
6245
  var import_react58 = __toESM(require("react"), 1);
6138
- var import_material40 = require("@mui/material");
6246
+ var import_material41 = require("@mui/material");
6139
6247
  var import_LocalizationProvider5 = require("@mui/x-date-pickers/LocalizationProvider");
6140
6248
  var import_AdapterDayjs3 = require("@mui/x-date-pickers/AdapterDayjs");
6141
6249
  var import_dayjs11 = __toESM(require("dayjs"), 1);
@@ -6199,7 +6307,7 @@ var SCTime = ({
6199
6307
  setIsOpenPopover(false);
6200
6308
  setAnchorEl(null);
6201
6309
  };
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(
6310
+ 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
6311
  import_TimeField.TimeField,
6204
6312
  {
6205
6313
  label,
@@ -6212,7 +6320,7 @@ var SCTime = ({
6212
6320
  slotProps: {
6213
6321
  textField: {
6214
6322
  InputProps: {
6215
- endAdornment: /* @__PURE__ */ import_react58.default.createElement(import_material40.InputAdornment, { position: "end" }, /* @__PURE__ */ import_react58.default.createElement(
6323
+ endAdornment: /* @__PURE__ */ import_react58.default.createElement(import_material41.InputAdornment, { position: "end" }, /* @__PURE__ */ import_react58.default.createElement(
6216
6324
  import_AccessTime.default,
6217
6325
  {
6218
6326
  color: disabled ? "disabled" : "action",
@@ -6242,7 +6350,7 @@ var SCTime = ({
6242
6350
  }
6243
6351
  }
6244
6352
  ), /* @__PURE__ */ import_react58.default.createElement(
6245
- import_material40.Popover,
6353
+ import_material41.Popover,
6246
6354
  {
6247
6355
  open: isOpenPopover,
6248
6356
  anchorEl,
@@ -6272,7 +6380,7 @@ var SCTime = ({
6272
6380
  }
6273
6381
  }
6274
6382
  },
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(
6383
+ /* @__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
6384
  import_DigitalClock.DigitalClock,
6277
6385
  {
6278
6386
  value: state,
@@ -6296,7 +6404,7 @@ var SCTime = ({
6296
6404
 
6297
6405
  // src/Components/SCZoom.tsx
6298
6406
  var import_react59 = __toESM(require("react"), 1);
6299
- var import_material41 = require("@mui/material");
6407
+ var import_material42 = require("@mui/material");
6300
6408
  var import_Grid11 = __toESM(require("@mui/material/Grid"), 1);
6301
6409
  var import_ZoomOut = __toESM(require("@mui/icons-material/ZoomOut"), 1);
6302
6410
  var import_ZoomIn = __toESM(require("@mui/icons-material/ZoomIn"), 1);
@@ -6312,8 +6420,8 @@ var SCZoom = ({ image, width, height, bottom, left }) => {
6312
6420
  const handleReset = () => {
6313
6421
  setZoom(1);
6314
6422
  };
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,
6423
+ return /* @__PURE__ */ import_react59.default.createElement(import_material42.Box, { style: { width: width || "280px", height: height || "280px" } }, /* @__PURE__ */ import_react59.default.createElement(
6424
+ import_material42.Box,
6317
6425
  {
6318
6426
  sx: {
6319
6427
  overflow: zoom > 1 ? "auto" : "hidden",
@@ -6334,7 +6442,7 @@ var SCZoom = ({ image, width, height, bottom, left }) => {
6334
6442
  }
6335
6443
  }
6336
6444
  )
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" }))));
6445
+ ), /* @__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
6446
  };
6339
6447
 
6340
6448
  // src/Theme/index.ts
@@ -6806,7 +6914,6 @@ var components = {
6806
6914
  color: theme.palette.primary.main
6807
6915
  }),
6808
6916
  colorDefault: ({ theme }) => ({
6809
- backgroundColor: theme.palette.default.main,
6810
6917
  color: theme.palette.default.contrastText
6811
6918
  }),
6812
6919
  deleteIcon: ({ theme }) => ({
@@ -6916,47 +7023,6 @@ var components = {
6916
7023
  height: "inherit",
6917
7024
  borderRadius: 4,
6918
7025
  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
7026
  {
6961
7027
  props: { variant: "standard", avatar: true },
6962
7028
  style: {
@@ -7027,7 +7093,40 @@ var components = {
7027
7093
  }
7028
7094
  ]
7029
7095
  })
7030
- }
7096
+ },
7097
+ variants: [
7098
+ {
7099
+ props: { variant: "outlined", color: "default" },
7100
+ style: ({ theme }) => ({
7101
+ border: `1px solid ${theme.palette.grey[400]}`,
7102
+ backgroundColor: "transparent",
7103
+ color: theme.palette.default.contrastText,
7104
+ ":hover": {
7105
+ backgroundColor: theme.palette.default.main
7106
+ }
7107
+ })
7108
+ },
7109
+ {
7110
+ props: { variant: "standard", color: "default" },
7111
+ style: ({ theme }) => ({
7112
+ backgroundColor: theme.palette.default.main,
7113
+ color: theme.palette.default.contrastText,
7114
+ ":hover": {
7115
+ backgroundColor: theme.palette.default.dark
7116
+ }
7117
+ })
7118
+ },
7119
+ {
7120
+ props: { variant: "filled", color: "default" },
7121
+ style: ({ theme }) => ({
7122
+ backgroundColor: theme.palette.grey[50],
7123
+ color: theme.palette.default.contrastText,
7124
+ ":hover": {
7125
+ backgroundColor: theme.palette.grey[100]
7126
+ }
7127
+ })
7128
+ }
7129
+ ]
7031
7130
  },
7032
7131
  MuiAvatar: {
7033
7132
  styleOverrides: {