componentes-sinco 1.1.28 → 1.1.30
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 +52 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -10
- package/dist/index.d.ts +5 -10
- package/dist/index.js +68 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -209,7 +209,6 @@ interface DrawerProps<T> {
|
|
|
209
209
|
chipFilters?: any[];
|
|
210
210
|
heightDrawer?: number;
|
|
211
211
|
filterSideCard?: any;
|
|
212
|
-
ref?: any;
|
|
213
212
|
}
|
|
214
213
|
|
|
215
214
|
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
@@ -573,7 +572,7 @@ interface SCDataGridInitialProps<T> {
|
|
|
573
572
|
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
574
573
|
declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
|
|
575
574
|
|
|
576
|
-
interface SCDatePickerProps
|
|
575
|
+
interface SCDatePickerProps {
|
|
577
576
|
label?: string;
|
|
578
577
|
required?: boolean;
|
|
579
578
|
disabled?: boolean;
|
|
@@ -584,7 +583,7 @@ interface SCDatePickerProps$1 {
|
|
|
584
583
|
minDate?: Dayjs;
|
|
585
584
|
maxDate?: Dayjs;
|
|
586
585
|
}
|
|
587
|
-
declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width, minDate, maxDate }: SCDatePickerProps
|
|
586
|
+
declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width, minDate, maxDate }: SCDatePickerProps) => React__default.JSX.Element;
|
|
588
587
|
|
|
589
588
|
interface SCDateRangeProps {
|
|
590
589
|
labelDateInitial?: string;
|
|
@@ -736,18 +735,14 @@ interface SCTimeProps {
|
|
|
736
735
|
}
|
|
737
736
|
declare const SCTime: ({ label, required, disabled, background, timeStep, state, setState, width, error, }: SCTimeProps) => React__default.JSX.Element;
|
|
738
737
|
|
|
739
|
-
interface
|
|
740
|
-
|
|
741
|
-
required?: boolean;
|
|
742
|
-
disabled?: boolean;
|
|
743
|
-
background?: string;
|
|
738
|
+
interface SCZoomProps {
|
|
739
|
+
image: any;
|
|
744
740
|
width?: string;
|
|
745
741
|
height?: string;
|
|
746
|
-
image: any;
|
|
747
742
|
bottom?: string;
|
|
748
743
|
left?: string;
|
|
749
744
|
}
|
|
750
|
-
declare const SCZoom: ({
|
|
745
|
+
declare const SCZoom: ({ image, width, height, bottom, left }: SCZoomProps) => React__default.JSX.Element;
|
|
751
746
|
|
|
752
747
|
declare const SincoTheme: _mui_material_styles.Theme;
|
|
753
748
|
declare let AdproSincoTheme: _mui_material_styles.Theme;
|
package/dist/index.d.ts
CHANGED
|
@@ -209,7 +209,6 @@ interface DrawerProps<T> {
|
|
|
209
209
|
chipFilters?: any[];
|
|
210
210
|
heightDrawer?: number;
|
|
211
211
|
filterSideCard?: any;
|
|
212
|
-
ref?: any;
|
|
213
212
|
}
|
|
214
213
|
|
|
215
214
|
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
@@ -573,7 +572,7 @@ interface SCDataGridInitialProps<T> {
|
|
|
573
572
|
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
574
573
|
declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
|
|
575
574
|
|
|
576
|
-
interface SCDatePickerProps
|
|
575
|
+
interface SCDatePickerProps {
|
|
577
576
|
label?: string;
|
|
578
577
|
required?: boolean;
|
|
579
578
|
disabled?: boolean;
|
|
@@ -584,7 +583,7 @@ interface SCDatePickerProps$1 {
|
|
|
584
583
|
minDate?: Dayjs;
|
|
585
584
|
maxDate?: Dayjs;
|
|
586
585
|
}
|
|
587
|
-
declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width, minDate, maxDate }: SCDatePickerProps
|
|
586
|
+
declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width, minDate, maxDate }: SCDatePickerProps) => React__default.JSX.Element;
|
|
588
587
|
|
|
589
588
|
interface SCDateRangeProps {
|
|
590
589
|
labelDateInitial?: string;
|
|
@@ -736,18 +735,14 @@ interface SCTimeProps {
|
|
|
736
735
|
}
|
|
737
736
|
declare const SCTime: ({ label, required, disabled, background, timeStep, state, setState, width, error, }: SCTimeProps) => React__default.JSX.Element;
|
|
738
737
|
|
|
739
|
-
interface
|
|
740
|
-
|
|
741
|
-
required?: boolean;
|
|
742
|
-
disabled?: boolean;
|
|
743
|
-
background?: string;
|
|
738
|
+
interface SCZoomProps {
|
|
739
|
+
image: any;
|
|
744
740
|
width?: string;
|
|
745
741
|
height?: string;
|
|
746
|
-
image: any;
|
|
747
742
|
bottom?: string;
|
|
748
743
|
left?: string;
|
|
749
744
|
}
|
|
750
|
-
declare const SCZoom: ({
|
|
745
|
+
declare const SCZoom: ({ image, width, height, bottom, left }: SCZoomProps) => React__default.JSX.Element;
|
|
751
746
|
|
|
752
747
|
declare const SincoTheme: _mui_material_styles.Theme;
|
|
753
748
|
declare let AdproSincoTheme: _mui_material_styles.Theme;
|
package/dist/index.js
CHANGED
|
@@ -548,7 +548,8 @@ var Attachment = ({
|
|
|
548
548
|
cursor: "pointer",
|
|
549
549
|
transition: "all 0.2s ease-in-out",
|
|
550
550
|
":hover": {
|
|
551
|
-
|
|
551
|
+
border: "1px dashed #2063A080",
|
|
552
|
+
backgroundColor: error ? "#D143430A" : "#2063A00A"
|
|
552
553
|
}
|
|
553
554
|
}, sx)
|
|
554
555
|
},
|
|
@@ -1189,7 +1190,7 @@ import { Box as Box19, CircularProgress as CircularProgress5 } from "@mui/materi
|
|
|
1189
1190
|
|
|
1190
1191
|
// src/Components/Calendario/CalendarToolbar.tsx
|
|
1191
1192
|
import React7, { useState as useState6 } from "react";
|
|
1192
|
-
import { ChevronLeft, ChevronRight, KeyboardArrowDown as KeyboardArrowDown2,
|
|
1193
|
+
import { ChevronLeft, ChevronRight, KeyboardArrowDown as KeyboardArrowDown2, EventOutlined } from "@mui/icons-material";
|
|
1193
1194
|
import { Box as Box5, Chip, IconButton as IconButton5, Menu, MenuItem, Stack as Stack5, Typography as Typography5 } from "@mui/material";
|
|
1194
1195
|
import dayjs from "dayjs";
|
|
1195
1196
|
import updateLocale from "dayjs/plugin/updateLocale";
|
|
@@ -1230,13 +1231,15 @@ var CalendarToolbar = ({
|
|
|
1230
1231
|
}
|
|
1231
1232
|
return labelDate.format(" DD MMMM YYYY");
|
|
1232
1233
|
};
|
|
1233
|
-
return /* @__PURE__ */ React7.createElement(Stack5, { direction: "row", alignItems: "center", justifyContent: "space-between", gap:
|
|
1234
|
+
return /* @__PURE__ */ React7.createElement(Stack5, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 1.5 }, /* @__PURE__ */ React7.createElement(Stack5, { direction: "row", alignItems: "center", justifyContent: "flex-start", gap: 1.5 }, /* @__PURE__ */ React7.createElement(Box5, null, /* @__PURE__ */ React7.createElement(
|
|
1234
1235
|
Chip,
|
|
1235
1236
|
{
|
|
1237
|
+
size: "medium",
|
|
1236
1238
|
label: "Hoy",
|
|
1237
|
-
icon: /* @__PURE__ */ React7.createElement(
|
|
1239
|
+
icon: /* @__PURE__ */ React7.createElement(EventOutlined, { fontSize: "small" }),
|
|
1238
1240
|
color: "primary",
|
|
1239
|
-
onClick: () => onNavigate("TODAY")
|
|
1241
|
+
onClick: () => onNavigate("TODAY"),
|
|
1242
|
+
variant: "standard"
|
|
1240
1243
|
}
|
|
1241
1244
|
)), /* @__PURE__ */ React7.createElement(Stack5, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React7.createElement(IconButton5, { "aria-label": "Anterior", onClick: () => onNavigate("PREV"), size: "small", color: "primary" }, /* @__PURE__ */ React7.createElement(ChevronLeft, { fontSize: "small" })), /* @__PURE__ */ React7.createElement(IconButton5, { "aria-label": "Siguiente", onClick: () => onNavigate("NEXT"), size: "small", color: "primary" }, /* @__PURE__ */ React7.createElement(ChevronRight, { fontSize: "small" })), /* @__PURE__ */ React7.createElement(Typography5, { variant: "h6", color: "primary", "data-testid": "currentDate" }, getFormattedDate()), /* @__PURE__ */ React7.createElement(IconButton5, { onClick: handleMenuOpen, size: "small", color: "primary", "aria-label": "Cambiar vista" }, /* @__PURE__ */ React7.createElement(KeyboardArrowDown2, { fontSize: "small" })), /* @__PURE__ */ React7.createElement(
|
|
1242
1245
|
Menu,
|
|
@@ -1250,12 +1253,12 @@ var CalendarToolbar = ({
|
|
|
1250
1253
|
/* @__PURE__ */ React7.createElement(MenuItem, { onClick: () => handleViewChange("month") }, "Mes"),
|
|
1251
1254
|
/* @__PURE__ */ React7.createElement(MenuItem, { onClick: () => handleViewChange("week") }, "Semana"),
|
|
1252
1255
|
/* @__PURE__ */ React7.createElement(MenuItem, { onClick: () => handleViewChange("day") }, "D\xEDa")
|
|
1253
|
-
)), children ? /* @__PURE__ */ React7.createElement(Box5, null, children) : /* @__PURE__ */ React7.createElement(Box5, { width: "24px" }), " ");
|
|
1256
|
+
))), children ? /* @__PURE__ */ React7.createElement(Box5, null, children) : /* @__PURE__ */ React7.createElement(Box5, { width: "24px" }), " ");
|
|
1254
1257
|
};
|
|
1255
1258
|
|
|
1256
1259
|
// src/Components/Calendario/Views/MonthView.tsx
|
|
1257
1260
|
import React28 from "react";
|
|
1258
|
-
import { Box as Box16, Typography as Typography14, IconButton as IconButton11, Paper, Tooltip as Tooltip6, Stack as Stack11, CircularProgress as CircularProgress2 } from "@mui/material";
|
|
1261
|
+
import { Box as Box16, Typography as Typography14, IconButton as IconButton11, Paper, Tooltip as Tooltip6, Stack as Stack11, CircularProgress as CircularProgress2, Button as Button11 } from "@mui/material";
|
|
1259
1262
|
import AddIcon from "@mui/icons-material/Add";
|
|
1260
1263
|
import dayjs5 from "dayjs";
|
|
1261
1264
|
import localeData from "dayjs/plugin/localeData";
|
|
@@ -3429,10 +3432,10 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
|
|
|
3429
3432
|
const [openDrawer, setOpenDrawer] = React28.useState(false);
|
|
3430
3433
|
const [selectedDay, setSelectedDay] = React28.useState(null);
|
|
3431
3434
|
const [selectedEvents, setSelectedEvents] = React28.useState([]);
|
|
3432
|
-
return /* @__PURE__ */ React28.createElement(Box16, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React28.createElement(Box16, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ React28.createElement(Box16, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React28.createElement(Box16, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React28.createElement(Typography14, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React28.createElement(Box16, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React28.createElement(CircularProgress2, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React28.createElement(
|
|
3435
|
+
return /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(Box16, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React28.createElement(Box16, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ React28.createElement(Box16, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React28.createElement(Box16, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React28.createElement(Typography14, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React28.createElement(Box16, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React28.createElement(CircularProgress2, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React28.createElement(
|
|
3433
3436
|
EmptyState,
|
|
3434
3437
|
{
|
|
3435
|
-
containerHeight: "
|
|
3438
|
+
containerHeight: "calc(100vh - 130px)",
|
|
3436
3439
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
3437
3440
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
3438
3441
|
icon: /* @__PURE__ */ React28.createElement(LogoCalendario, null)
|
|
@@ -3512,30 +3515,47 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
|
|
|
3512
3515
|
sx: { "& .MuiButtonBase-root": { width: "100%" } }
|
|
3513
3516
|
},
|
|
3514
3517
|
/* @__PURE__ */ React28.createElement(
|
|
3515
|
-
|
|
3518
|
+
Button11,
|
|
3516
3519
|
{
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
day,
|
|
3529
|
-
onEventClick,
|
|
3530
|
-
onEventHover
|
|
3531
|
-
}
|
|
3532
|
-
)
|
|
3533
|
-
}]
|
|
3534
|
-
}
|
|
3520
|
+
size: "small",
|
|
3521
|
+
variant: "text",
|
|
3522
|
+
sx: { textTransform: "capitalize" },
|
|
3523
|
+
onClick: (e) => {
|
|
3524
|
+
e.stopPropagation();
|
|
3525
|
+
setSelectedDay(day);
|
|
3526
|
+
setSelectedEvents(dayEvents);
|
|
3527
|
+
setOpenDrawer(true);
|
|
3528
|
+
}
|
|
3529
|
+
},
|
|
3530
|
+
`+ ${dayEvents.length}`
|
|
3535
3531
|
)
|
|
3536
3532
|
)
|
|
3537
3533
|
);
|
|
3538
|
-
}))))
|
|
3534
|
+
})))), selectedDay && /* @__PURE__ */ React28.createElement(
|
|
3535
|
+
SCDrawer,
|
|
3536
|
+
{
|
|
3537
|
+
width: CALENDAR_CONSTANTS.DRAWER_WIDTH,
|
|
3538
|
+
title: selectedDay.format("DD [de] MMMM YYYY"),
|
|
3539
|
+
open: openDrawer,
|
|
3540
|
+
setOpen: (value) => {
|
|
3541
|
+
setOpenDrawer(value);
|
|
3542
|
+
if (!value) setSelectedDay(null);
|
|
3543
|
+
},
|
|
3544
|
+
anchor: "right",
|
|
3545
|
+
actions: false,
|
|
3546
|
+
arrayElements: [{
|
|
3547
|
+
component: /* @__PURE__ */ React28.createElement(
|
|
3548
|
+
DayEventsList,
|
|
3549
|
+
{
|
|
3550
|
+
events: selectedEvents,
|
|
3551
|
+
day: selectedDay,
|
|
3552
|
+
onEventClick,
|
|
3553
|
+
onEventHover
|
|
3554
|
+
}
|
|
3555
|
+
)
|
|
3556
|
+
}]
|
|
3557
|
+
}
|
|
3558
|
+
));
|
|
3539
3559
|
};
|
|
3540
3560
|
|
|
3541
3561
|
// src/Components/Calendario/Views/WeekView.tsx
|
|
@@ -3599,7 +3619,7 @@ var WeekView = ({
|
|
|
3599
3619
|
})), isLoading ? /* @__PURE__ */ React29.createElement(Box17, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React29.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React29.createElement(
|
|
3600
3620
|
EmptyState,
|
|
3601
3621
|
{
|
|
3602
|
-
containerHeight: "
|
|
3622
|
+
containerHeight: "calc(100vh - 130px)",
|
|
3603
3623
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
3604
3624
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
3605
3625
|
icon: /* @__PURE__ */ React29.createElement(LogoCalendario, null)
|
|
@@ -3640,6 +3660,7 @@ var WeekView = ({
|
|
|
3640
3660
|
return /* @__PURE__ */ React29.createElement(
|
|
3641
3661
|
Box17,
|
|
3642
3662
|
{
|
|
3663
|
+
sx: { "&:hover": { bgcolor: "primary.50" } },
|
|
3643
3664
|
key: hourIdx,
|
|
3644
3665
|
height: 60,
|
|
3645
3666
|
borderTop: "1px solid",
|
|
@@ -3696,7 +3717,7 @@ var DayView = ({
|
|
|
3696
3717
|
return /* @__PURE__ */ React30.createElement(Box18, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React30.createElement(Box18, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React30.createElement(Box18, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.default", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React30.createElement(Box18, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React30.createElement(Typography16, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React30.createElement(Typography16, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React30.createElement(Box18, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React30.createElement(CircularProgress4, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : noEvents ? /* @__PURE__ */ React30.createElement(
|
|
3697
3718
|
EmptyState,
|
|
3698
3719
|
{
|
|
3699
|
-
containerHeight: "
|
|
3720
|
+
containerHeight: "calc(100vh - 140px)",
|
|
3700
3721
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
3701
3722
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
3702
3723
|
icon: /* @__PURE__ */ React30.createElement(LogoCalendario, null)
|
|
@@ -3718,6 +3739,7 @@ var DayView = ({
|
|
|
3718
3739
|
return /* @__PURE__ */ React30.createElement(
|
|
3719
3740
|
Box18,
|
|
3720
3741
|
{
|
|
3742
|
+
sx: { "&:hover": { bgcolor: "primary.50" } },
|
|
3721
3743
|
key: hourIdx,
|
|
3722
3744
|
height: CALENDAR_CONSTANTS.DAY_HEIGHT,
|
|
3723
3745
|
borderTop: "1px solid",
|
|
@@ -3914,7 +3936,7 @@ var FooterAction = ({
|
|
|
3914
3936
|
|
|
3915
3937
|
// src/Components/Menu/Menu.tsx
|
|
3916
3938
|
import React33, { useCallback as useCallback4, useState as useState15 } from "react";
|
|
3917
|
-
import { Button as
|
|
3939
|
+
import { Button as Button12, Menu as Menu2 } from "@mui/material";
|
|
3918
3940
|
var BasicMenu = ({
|
|
3919
3941
|
open,
|
|
3920
3942
|
onClose,
|
|
@@ -3951,7 +3973,7 @@ var BasicMenu = ({
|
|
|
3951
3973
|
}
|
|
3952
3974
|
}, [onClose, setMenuOpen]);
|
|
3953
3975
|
return /* @__PURE__ */ React33.createElement("div", null, /* @__PURE__ */ React33.createElement(
|
|
3954
|
-
|
|
3976
|
+
Button12,
|
|
3955
3977
|
{
|
|
3956
3978
|
id: "basic-button",
|
|
3957
3979
|
"aria-controls": actualOpen ? "basic-menu" : void 0,
|
|
@@ -3982,7 +4004,7 @@ var BasicMenu = ({
|
|
|
3982
4004
|
|
|
3983
4005
|
// src/Components/MultiSelect/MultiSelect.tsx
|
|
3984
4006
|
import React34, { useEffect as useEffect13, useMemo as useMemo6 } from "react";
|
|
3985
|
-
import { Button as
|
|
4007
|
+
import { Button as Button13, Checkbox as Checkbox2, FormControl as FormControl3, InputAdornment as InputAdornment5, ListItemIcon as ListItemIcon3, MenuItem as MenuItem5, Popover as Popover4, Stack as Stack12, TextField as TextField4 } from "@mui/material";
|
|
3986
4008
|
import { SearchOutlined } from "@mui/icons-material";
|
|
3987
4009
|
|
|
3988
4010
|
// src/Components/MultiSelect/helpers/useHandlers.tsx
|
|
@@ -4099,7 +4121,7 @@ function MultiSelect({
|
|
|
4099
4121
|
} }
|
|
4100
4122
|
];
|
|
4101
4123
|
return /* @__PURE__ */ React34.createElement(React34.Fragment, null, /* @__PURE__ */ React34.createElement(
|
|
4102
|
-
|
|
4124
|
+
Button13,
|
|
4103
4125
|
{
|
|
4104
4126
|
"test-id": "multiselect-button",
|
|
4105
4127
|
color: (_a = button == null ? void 0 : button.color) != null ? _a : "primary",
|
|
@@ -4153,7 +4175,7 @@ function MultiSelect({
|
|
|
4153
4175
|
)) : /* @__PURE__ */ React34.createElement(MenuItem5, { disabled: true }, "No se encontraron resultados")), /* @__PURE__ */ React34.createElement(Stack12, { direction: "row", gap: 1, p: 1, justifyContent: "space-between", bgcolor: "grey.50" }, resolvedActions.map((button2, index) => {
|
|
4154
4176
|
var _a2;
|
|
4155
4177
|
return /* @__PURE__ */ React34.createElement(
|
|
4156
|
-
|
|
4178
|
+
Button13,
|
|
4157
4179
|
{
|
|
4158
4180
|
key: index,
|
|
4159
4181
|
variant: index === 0 || resolvedActions.length < 2 ? "text" : "contained",
|
|
@@ -4668,7 +4690,7 @@ var SCCalendarSwipeable = ({
|
|
|
4668
4690
|
|
|
4669
4691
|
// src/Components/SCCard.tsx
|
|
4670
4692
|
import React41 from "react";
|
|
4671
|
-
import { Button as
|
|
4693
|
+
import { Button as Button18, Box as Box25, SvgIcon as SvgIcon7 } from "@mui/material";
|
|
4672
4694
|
import IconButton16 from "@mui/material/IconButton";
|
|
4673
4695
|
import Card2 from "@mui/material/Card";
|
|
4674
4696
|
import CardHeader from "@mui/material/CardHeader";
|
|
@@ -4703,7 +4725,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
|
|
|
4703
4725
|
CardHeader,
|
|
4704
4726
|
{
|
|
4705
4727
|
avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ React41.createElement(Box25, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React41.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React41.createElement(SvgIcon7, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : void 0,
|
|
4706
|
-
action: (expand == null ? void 0 : expand.position) == "top" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(
|
|
4728
|
+
action: (expand == null ? void 0 : expand.position) == "top" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(Button18, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, "Expandir") : (expand == null ? void 0 : expand.type) === "icon" && /* @__PURE__ */ React41.createElement(IconButton16, { onClick: handleExpandClick, sx: { marginRight: "auto" }, size: "small" }, /* @__PURE__ */ React41.createElement(ExpandMoreIcon, { fontSize: "small" })) : actionsTitle,
|
|
4707
4729
|
title,
|
|
4708
4730
|
subheader: subtitle,
|
|
4709
4731
|
sx: {
|
|
@@ -4729,8 +4751,8 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
|
|
|
4729
4751
|
height: "194",
|
|
4730
4752
|
image
|
|
4731
4753
|
}
|
|
4732
|
-
), content && /* @__PURE__ */ React41.createElement(CardContent2, { sx: { padding: "8px 16px !important" } }, content), ((expand == null ? void 0 : expand.position) == "bottom" || actions != void 0) && /* @__PURE__ */ React41.createElement(CardActions, { disableSpacing: true, sx: { justifyContent: "flex-end" } }, (expand == null ? void 0 : expand.position) === "bottom" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(
|
|
4733
|
-
|
|
4754
|
+
), content && /* @__PURE__ */ React41.createElement(CardContent2, { sx: { padding: "8px 16px !important" } }, content), ((expand == null ? void 0 : expand.position) == "bottom" || actions != void 0) && /* @__PURE__ */ React41.createElement(CardActions, { disableSpacing: true, sx: { justifyContent: "flex-end" } }, (expand == null ? void 0 : expand.position) === "bottom" ? (expand == null ? void 0 : expand.type) === "text" ? /* @__PURE__ */ React41.createElement(Button18, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, "Expandir") : (expand == null ? void 0 : expand.type) === "icon" && /* @__PURE__ */ React41.createElement(IconButton16, { onClick: handleExpandClick, sx: { marginRight: "auto" } }, /* @__PURE__ */ React41.createElement(ExpandMoreIcon, null)) : null, actions && actions.length > 0 ? actions.map((action, index) => /* @__PURE__ */ React41.createElement(
|
|
4755
|
+
Button18,
|
|
4734
4756
|
{
|
|
4735
4757
|
key: index,
|
|
4736
4758
|
size: "small",
|
|
@@ -5243,7 +5265,7 @@ var SCDatePicker = ({ label, required, disabled, background, state, setState, wi
|
|
|
5243
5265
|
|
|
5244
5266
|
// src/Components/SCDialog.tsx
|
|
5245
5267
|
import React44, { useEffect as useEffect20, useState as useState24 } from "react";
|
|
5246
|
-
import { Button as
|
|
5268
|
+
import { Button as Button19, Typography as Typography25, Modal as Modal5, Dialog as Dialog4, DialogActions as DialogActions4, DialogContent as DialogContent4, DialogTitle as DialogTitle4, IconButton as IconButton17, Tooltip as Tooltip8, Box as Box26, SvgIcon as SvgIcon8 } from "@mui/material";
|
|
5247
5269
|
import Grid11 from "@mui/material/Grid";
|
|
5248
5270
|
import ToggleButton from "@mui/material/ToggleButton";
|
|
5249
5271
|
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
|
|
@@ -5308,7 +5330,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5308
5330
|
};
|
|
5309
5331
|
const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
|
|
5310
5332
|
content = content != null ? content : { component: /* @__PURE__ */ React44.createElement(Box26, null, " Aqui va el contenido ") };
|
|
5311
|
-
return /* @__PURE__ */ React44.createElement("div", null, buttonDialog ? /* @__PURE__ */ React44.createElement(React44.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React44.createElement(Tooltip8, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React44.createElement(
|
|
5333
|
+
return /* @__PURE__ */ React44.createElement("div", null, buttonDialog ? /* @__PURE__ */ React44.createElement(React44.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React44.createElement(Tooltip8, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React44.createElement(Button19, { size: "small", color: buttonDialog.color != void 0 ? buttonDialog.color : "primary", variant: (buttonDialog == null ? void 0 : buttonDialog.variant) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.variant : "text", startIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "left" ? /* @__PURE__ */ React44.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React44.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React44.createElement(IconButton17, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React44.createElement(SvgIcon8, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React44.createElement(Modal5, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React44.createElement(
|
|
5312
5334
|
Dialog4,
|
|
5313
5335
|
{
|
|
5314
5336
|
fullScreen: typeView === "mobile" ? true : false,
|
|
@@ -5364,7 +5386,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5364
5386
|
) : content.component
|
|
5365
5387
|
),
|
|
5366
5388
|
dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ React44.createElement(DialogActions4, { sx: { zIndex: 1200, gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, typeView !== "mobile" ? /* @__PURE__ */ React44.createElement(React44.Fragment, null, dialogActions.length >= 3 ? /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(
|
|
5367
|
-
|
|
5389
|
+
Button19,
|
|
5368
5390
|
{
|
|
5369
5391
|
variant: "text",
|
|
5370
5392
|
color: dialogActions[0].color || "primary",
|
|
@@ -5376,7 +5398,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5376
5398
|
dialogActions[0].text
|
|
5377
5399
|
), /* @__PURE__ */ React44.createElement(Box26, { sx: { display: "flex", gap: 1 } }, dialogActions.slice(1).map((boton, index) => {
|
|
5378
5400
|
return /* @__PURE__ */ React44.createElement(
|
|
5379
|
-
|
|
5401
|
+
Button19,
|
|
5380
5402
|
{
|
|
5381
5403
|
key: index + 1,
|
|
5382
5404
|
variant: index === dialogActions.length - 2 ? "contained" : "text",
|
|
@@ -5390,7 +5412,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
5390
5412
|
);
|
|
5391
5413
|
}))) : dialogActions.map((boton, index) => {
|
|
5392
5414
|
return /* @__PURE__ */ React44.createElement(
|
|
5393
|
-
|
|
5415
|
+
Button19,
|
|
5394
5416
|
{
|
|
5395
5417
|
key: index,
|
|
5396
5418
|
variant: index === dialogActions.length - 1 ? "contained" : "text",
|
|
@@ -5813,7 +5835,7 @@ import Grid13 from "@mui/material/Grid";
|
|
|
5813
5835
|
import ZoomOutIcon from "@mui/icons-material/ZoomOut";
|
|
5814
5836
|
import ZoomInIcon from "@mui/icons-material/ZoomIn";
|
|
5815
5837
|
import RotateRightIcon from "@mui/icons-material/RotateRight";
|
|
5816
|
-
var SCZoom = ({
|
|
5838
|
+
var SCZoom = ({ image, width, height, bottom, left }) => {
|
|
5817
5839
|
const [zoom, setZoom] = useState28(1);
|
|
5818
5840
|
const handleZoomIn = () => {
|
|
5819
5841
|
setZoom((prev) => Math.min(prev + 0.2, 3));
|