componentes-sinco 1.1.28 → 1.1.29
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 +14 -9
- 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 +15 -10
- 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,7 +1253,7 @@ 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
|
|
@@ -3432,7 +3435,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
|
|
|
3432
3435
|
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(
|
|
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)
|
|
@@ -3599,7 +3602,7 @@ var WeekView = ({
|
|
|
3599
3602
|
})), 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
3603
|
EmptyState,
|
|
3601
3604
|
{
|
|
3602
|
-
containerHeight: "
|
|
3605
|
+
containerHeight: "calc(100vh - 130px)",
|
|
3603
3606
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
3604
3607
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
3605
3608
|
icon: /* @__PURE__ */ React29.createElement(LogoCalendario, null)
|
|
@@ -3640,6 +3643,7 @@ var WeekView = ({
|
|
|
3640
3643
|
return /* @__PURE__ */ React29.createElement(
|
|
3641
3644
|
Box17,
|
|
3642
3645
|
{
|
|
3646
|
+
sx: { "&:hover": { bgcolor: "primary.50" } },
|
|
3643
3647
|
key: hourIdx,
|
|
3644
3648
|
height: 60,
|
|
3645
3649
|
borderTop: "1px solid",
|
|
@@ -3696,7 +3700,7 @@ var DayView = ({
|
|
|
3696
3700
|
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
3701
|
EmptyState,
|
|
3698
3702
|
{
|
|
3699
|
-
containerHeight: "
|
|
3703
|
+
containerHeight: "calc(100vh - 140px)",
|
|
3700
3704
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
3701
3705
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
3702
3706
|
icon: /* @__PURE__ */ React30.createElement(LogoCalendario, null)
|
|
@@ -3718,6 +3722,7 @@ var DayView = ({
|
|
|
3718
3722
|
return /* @__PURE__ */ React30.createElement(
|
|
3719
3723
|
Box18,
|
|
3720
3724
|
{
|
|
3725
|
+
sx: { "&:hover": { bgcolor: "primary.50" } },
|
|
3721
3726
|
key: hourIdx,
|
|
3722
3727
|
height: CALENDAR_CONSTANTS.DAY_HEIGHT,
|
|
3723
3728
|
borderTop: "1px solid",
|
|
@@ -5813,7 +5818,7 @@ import Grid13 from "@mui/material/Grid";
|
|
|
5813
5818
|
import ZoomOutIcon from "@mui/icons-material/ZoomOut";
|
|
5814
5819
|
import ZoomInIcon from "@mui/icons-material/ZoomIn";
|
|
5815
5820
|
import RotateRightIcon from "@mui/icons-material/RotateRight";
|
|
5816
|
-
var SCZoom = ({
|
|
5821
|
+
var SCZoom = ({ image, width, height, bottom, left }) => {
|
|
5817
5822
|
const [zoom, setZoom] = useState28(1);
|
|
5818
5823
|
const handleZoomIn = () => {
|
|
5819
5824
|
setZoom((prev) => Math.min(prev + 0.2, 3));
|