componentes-sinco 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +64 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +42 -37
- package/dist/index.js.map +1 -1
- package/package.json +21 -18
package/dist/index.d.cts
CHANGED
|
@@ -106,6 +106,7 @@ interface DrawerProps<T> {
|
|
|
106
106
|
open?: boolean;
|
|
107
107
|
setOpen?: any;
|
|
108
108
|
chipFilters?: any[];
|
|
109
|
+
typeView?: 'web' | 'mobile';
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
@@ -410,7 +411,7 @@ interface SCDialogProps {
|
|
|
410
411
|
iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
|
|
411
412
|
subtitle?: string;
|
|
412
413
|
content?: any;
|
|
413
|
-
actions?: Action[];
|
|
414
|
+
actions?: Action[] | boolean;
|
|
414
415
|
buttonDialog?: {
|
|
415
416
|
icon?: string;
|
|
416
417
|
text?: string;
|
|
@@ -424,10 +425,11 @@ interface SCDialogProps {
|
|
|
424
425
|
widthContent?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
425
426
|
heightContent?: string;
|
|
426
427
|
background?: string;
|
|
428
|
+
typeView?: 'web' | 'mobile';
|
|
427
429
|
setShow?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
428
430
|
show?: boolean | any;
|
|
429
431
|
}
|
|
430
|
-
declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }: SCDialogProps) => React__default.JSX.Element;
|
|
432
|
+
declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, typeView, setShow, show }: SCDialogProps) => React__default.JSX.Element;
|
|
431
433
|
|
|
432
434
|
interface Option$2 {
|
|
433
435
|
title?: string;
|
|
@@ -555,7 +557,7 @@ declare const CALENDAR_CONSTANTS: {
|
|
|
555
557
|
readonly GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))";
|
|
556
558
|
readonly DAY_HEIGHT: 60;
|
|
557
559
|
readonly SIDEBAR_WIDTH: 47;
|
|
558
|
-
readonly MIN_CELL_HEIGHT:
|
|
560
|
+
readonly MIN_CELL_HEIGHT: 99;
|
|
559
561
|
readonly DEFAULT_START_HOUR: 0;
|
|
560
562
|
readonly DEFAULT_END_HOUR: 23;
|
|
561
563
|
readonly DRAWER_WIDTH: "350px";
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ interface DrawerProps<T> {
|
|
|
106
106
|
open?: boolean;
|
|
107
107
|
setOpen?: any;
|
|
108
108
|
chipFilters?: any[];
|
|
109
|
+
typeView?: 'web' | 'mobile';
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
@@ -410,7 +411,7 @@ interface SCDialogProps {
|
|
|
410
411
|
iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
|
|
411
412
|
subtitle?: string;
|
|
412
413
|
content?: any;
|
|
413
|
-
actions?: Action[];
|
|
414
|
+
actions?: Action[] | boolean;
|
|
414
415
|
buttonDialog?: {
|
|
415
416
|
icon?: string;
|
|
416
417
|
text?: string;
|
|
@@ -424,10 +425,11 @@ interface SCDialogProps {
|
|
|
424
425
|
widthContent?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
425
426
|
heightContent?: string;
|
|
426
427
|
background?: string;
|
|
428
|
+
typeView?: 'web' | 'mobile';
|
|
427
429
|
setShow?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
428
430
|
show?: boolean | any;
|
|
429
431
|
}
|
|
430
|
-
declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }: SCDialogProps) => React__default.JSX.Element;
|
|
432
|
+
declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, typeView, setShow, show }: SCDialogProps) => React__default.JSX.Element;
|
|
431
433
|
|
|
432
434
|
interface Option$2 {
|
|
433
435
|
title?: string;
|
|
@@ -555,7 +557,7 @@ declare const CALENDAR_CONSTANTS: {
|
|
|
555
557
|
readonly GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))";
|
|
556
558
|
readonly DAY_HEIGHT: 60;
|
|
557
559
|
readonly SIDEBAR_WIDTH: 47;
|
|
558
|
-
readonly MIN_CELL_HEIGHT:
|
|
560
|
+
readonly MIN_CELL_HEIGHT: 99;
|
|
559
561
|
readonly DEFAULT_START_HOUR: 0;
|
|
560
562
|
readonly DEFAULT_END_HOUR: 23;
|
|
561
563
|
readonly DRAWER_WIDTH: "350px";
|
package/dist/index.js
CHANGED
|
@@ -722,7 +722,7 @@ var Attachment = ({
|
|
|
722
722
|
action: [
|
|
723
723
|
{
|
|
724
724
|
text: "Eliminar",
|
|
725
|
-
fn: () => __async(
|
|
725
|
+
fn: () => __async(null, null, function* () {
|
|
726
726
|
if (fileToDelete) {
|
|
727
727
|
try {
|
|
728
728
|
if (deleteAction) {
|
|
@@ -757,7 +757,7 @@ var Attachment = ({
|
|
|
757
757
|
// src/Components/Drawer/SCDrawer.tsx
|
|
758
758
|
import React16 from "react";
|
|
759
759
|
import { Drawer, Stack as Stack6 } from "@mui/material";
|
|
760
|
-
import Grid6 from "@mui/material/
|
|
760
|
+
import Grid6 from "@mui/material/Grid";
|
|
761
761
|
|
|
762
762
|
// src/Components/Drawer/Helpers/Utils.tsx
|
|
763
763
|
import * as Muicon from "@mui/icons-material";
|
|
@@ -1146,7 +1146,7 @@ import { Box as Box10, Stack as Stack5 } from "@mui/material";
|
|
|
1146
1146
|
// src/Components/Textfield/SCTextField.tsx
|
|
1147
1147
|
import React8, { useEffect as useEffect8, useState as useState8 } from "react";
|
|
1148
1148
|
import { FormControl, IconButton as IconButton5, InputAdornment, InputLabel, OutlinedInput, FilledInput, Popover, Input, Box as Box5, Typography as Typography4, SvgIcon, Tooltip as Tooltip2 } from "@mui/material";
|
|
1149
|
-
import Grid from "@mui/material/
|
|
1149
|
+
import Grid from "@mui/material/Grid";
|
|
1150
1150
|
import { Visibility, VisibilityOff, InfoOutlined } from "@mui/icons-material";
|
|
1151
1151
|
|
|
1152
1152
|
// src/Components/Textfield/Helpers/validateIcon.tsx
|
|
@@ -1697,8 +1697,7 @@ function SCSelect({
|
|
|
1697
1697
|
|
|
1698
1698
|
// src/Components/SCAutocomplete.tsx
|
|
1699
1699
|
import React11, { useEffect as useEffect11 } from "react";
|
|
1700
|
-
import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem2, TextField as TextField3, Typography as Typography7, SvgIcon as SvgIcon4, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton7, Chip as Chip3, Box as Box8, Button as Button6 } from "@mui/material";
|
|
1701
|
-
import Grid3 from "@mui/material/Grid2";
|
|
1700
|
+
import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem2, TextField as TextField3, Typography as Typography7, SvgIcon as SvgIcon4, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton7, Chip as Chip3, Box as Box8, Button as Button6, Grid as Grid3 } from "@mui/material";
|
|
1702
1701
|
import { Search, Clear } from "@mui/icons-material";
|
|
1703
1702
|
import * as Muicon4 from "@mui/icons-material";
|
|
1704
1703
|
function SCAutocomplete({
|
|
@@ -1970,7 +1969,7 @@ import { DateRangePicker } from "@mui/x-date-pickers-pro/DateRangePicker";
|
|
|
1970
1969
|
import { MultiInputDateRangeField } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
|
|
1971
1970
|
import dayjs from "dayjs";
|
|
1972
1971
|
import "dayjs/locale/es";
|
|
1973
|
-
import { LicenseInfo } from "@mui/x-license
|
|
1972
|
+
import { LicenseInfo } from "@mui/x-license";
|
|
1974
1973
|
import EventIcon from "@mui/icons-material/Event";
|
|
1975
1974
|
var SCDateRange = ({
|
|
1976
1975
|
labelDateInitial = "Fecha inicial",
|
|
@@ -2109,7 +2108,7 @@ var DrawerContent = ({ arrayElements }) => {
|
|
|
2109
2108
|
label: arrayElement.label,
|
|
2110
2109
|
data: (_c = arrayElement.data) != null ? _c : [],
|
|
2111
2110
|
columnGroup: arrayElement.columnGroup,
|
|
2112
|
-
getItemValue: (_d = arrayElement.getItemValue) != null ? _d : () => ({ text: "", value: "" }),
|
|
2111
|
+
getItemValue: (_d = arrayElement.getItemValue) != null ? _d : (() => ({ text: "", value: "" })),
|
|
2113
2112
|
typeFormat: arrayElement.typeFormat,
|
|
2114
2113
|
checkMassive: arrayElement.checkMassive,
|
|
2115
2114
|
deleteType: arrayElement.deleteType,
|
|
@@ -2128,7 +2127,7 @@ var DrawerContent = ({ arrayElements }) => {
|
|
|
2128
2127
|
{
|
|
2129
2128
|
label: arrayElement.label,
|
|
2130
2129
|
data: (_e = arrayElement.data) != null ? _e : [],
|
|
2131
|
-
getItemValue: (_f = arrayElement.getItemValue) != null ? _f : () => ({ text: "", value: "" }),
|
|
2130
|
+
getItemValue: (_f = arrayElement.getItemValue) != null ? _f : (() => ({ text: "", value: "" })),
|
|
2132
2131
|
width: arrayElement.width,
|
|
2133
2132
|
size: arrayElement.size,
|
|
2134
2133
|
variant: arrayElement.variant,
|
|
@@ -2173,7 +2172,7 @@ var DrawerContent = ({ arrayElements }) => {
|
|
|
2173
2172
|
// src/Components/Drawer/components/DrawerActions.tsx
|
|
2174
2173
|
import React14 from "react";
|
|
2175
2174
|
import { Button as Button7 } from "@mui/material";
|
|
2176
|
-
import Grid4 from "@mui/material/
|
|
2175
|
+
import Grid4 from "@mui/material/Grid";
|
|
2177
2176
|
var DrawerActions = ({ actions, anchor }) => {
|
|
2178
2177
|
if (actions === false || actions === void 0) {
|
|
2179
2178
|
return null;
|
|
@@ -2211,7 +2210,7 @@ var DrawerActions = ({ actions, anchor }) => {
|
|
|
2211
2210
|
// src/Components/Drawer/components/DrawerHeader.tsx
|
|
2212
2211
|
import React15 from "react";
|
|
2213
2212
|
import { Typography as Typography9, IconButton as IconButton8 } from "@mui/material";
|
|
2214
|
-
import Grid5 from "@mui/material/
|
|
2213
|
+
import Grid5 from "@mui/material/Grid";
|
|
2215
2214
|
import CloseIcon from "@mui/icons-material/Close";
|
|
2216
2215
|
var DrawerHeader = ({
|
|
2217
2216
|
title,
|
|
@@ -2583,7 +2582,7 @@ var PageHeader = ({
|
|
|
2583
2582
|
// src/Components/SCCalendarSwipeable.tsx
|
|
2584
2583
|
import React20, { useState as useState11 } from "react";
|
|
2585
2584
|
import { Typography as Typography12, IconButton as IconButton9, Box as Box12 } from "@mui/material";
|
|
2586
|
-
import Grid7 from "@mui/material/
|
|
2585
|
+
import Grid7 from "@mui/material/Grid";
|
|
2587
2586
|
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
|
|
2588
2587
|
import { LocalizationProvider as LocalizationProvider2 } from "@mui/x-date-pickers/LocalizationProvider";
|
|
2589
2588
|
import { StaticDatePicker } from "@mui/x-date-pickers/StaticDatePicker";
|
|
@@ -2659,7 +2658,7 @@ var SCCalendarSwipeable = ({
|
|
|
2659
2658
|
// src/Components/SCDataGrid.tsx
|
|
2660
2659
|
import React21, { useEffect as useEffect14, useState as useState12 } from "react";
|
|
2661
2660
|
import { DataGridPro, useGridApiRef } from "@mui/x-data-grid-pro";
|
|
2662
|
-
import { LicenseInfo as LicenseInfo2 } from "@mui/x-license
|
|
2661
|
+
import { LicenseInfo as LicenseInfo2 } from "@mui/x-license";
|
|
2663
2662
|
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
|
|
2664
2663
|
import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
|
|
2665
2664
|
import { useTheme } from "@mui/material/styles";
|
|
@@ -3051,10 +3050,10 @@ var EmptyState = ({
|
|
|
3051
3050
|
// src/Components/SCDialog.tsx
|
|
3052
3051
|
import React27, { useEffect as useEffect15, useState as useState13 } from "react";
|
|
3053
3052
|
import { Button as Button11, Typography as Typography14, Modal as Modal2, Dialog, DialogActions, DialogContent, DialogTitle, IconButton as IconButton10, Tooltip as Tooltip4, Box as Box13, SvgIcon as SvgIcon5 } from "@mui/material";
|
|
3054
|
-
import Grid8 from "@mui/material/
|
|
3053
|
+
import Grid8 from "@mui/material/Grid";
|
|
3055
3054
|
import CloseIcon2 from "@mui/icons-material/Close";
|
|
3056
3055
|
import * as Muicon5 from "@mui/icons-material";
|
|
3057
|
-
var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }) => {
|
|
3056
|
+
var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, typeView = "web", setShow, show }) => {
|
|
3058
3057
|
let i = 0;
|
|
3059
3058
|
let iconTitleValidation = "";
|
|
3060
3059
|
let IconTitle;
|
|
@@ -3074,22 +3073,24 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
3074
3073
|
ButtonIcon = Muicon5[buttonDialog == null ? void 0 : buttonDialog.icon];
|
|
3075
3074
|
}
|
|
3076
3075
|
}
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
if (
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3076
|
+
if (Array.isArray(actions)) {
|
|
3077
|
+
actions.map(function(option, index, array) {
|
|
3078
|
+
if (option == null ? void 0 : option.icon) {
|
|
3079
|
+
if ((option == null ? void 0 : option.icon.type) == void 0) {
|
|
3080
|
+
option.icon = Muicon5[option == null ? void 0 : option.icon];
|
|
3081
|
+
} else {
|
|
3082
|
+
option;
|
|
3083
|
+
}
|
|
3083
3084
|
}
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3085
|
+
});
|
|
3086
|
+
}
|
|
3086
3087
|
if (iconTitle) {
|
|
3087
3088
|
if (Muicon5[iconTitle] == void 0) {
|
|
3088
|
-
if (iconTitle
|
|
3089
|
-
iconTitleValidation = "image";
|
|
3090
|
-
IconTitle = iconTitle;
|
|
3091
|
-
} else {
|
|
3089
|
+
if (Muicon5[iconTitle]) {
|
|
3092
3090
|
iconTitleValidation = "icon";
|
|
3091
|
+
IconTitle = Muicon5[iconTitle];
|
|
3092
|
+
} else {
|
|
3093
|
+
iconTitleValidation = "image";
|
|
3093
3094
|
IconTitle = iconTitle;
|
|
3094
3095
|
}
|
|
3095
3096
|
} else {
|
|
@@ -3109,11 +3110,12 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
3109
3110
|
setShow(false);
|
|
3110
3111
|
}
|
|
3111
3112
|
};
|
|
3112
|
-
const dialogActions = actions !=
|
|
3113
|
+
const dialogActions = actions == false ? false : actions != void 0 ? actions : [{ text: "Cerrar", fn: handleClose }];
|
|
3113
3114
|
content = content != null ? content : { component: /* @__PURE__ */ React27.createElement(Box13, null, " Aqui va el contenido ") };
|
|
3114
3115
|
return /* @__PURE__ */ React27.createElement("div", null, buttonDialog ? /* @__PURE__ */ React27.createElement(React27.Fragment, null, buttonDialog.text != void 0 ? /* @__PURE__ */ React27.createElement(Tooltip4, { placement: "bottom-start", title: buttonDialog.tooltip != void 0 ? buttonDialog.tooltip : "", slotProps: { popper: { modifiers: [{ name: "offset", options: { offset: [0, -14] } }] } } }, /* @__PURE__ */ React27.createElement(Button11, { 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__ */ React27.createElement(ButtonIcon, null) : "" : "", endIcon: (buttonDialog == null ? void 0 : buttonDialog.iconPosition) != void 0 ? (buttonDialog == null ? void 0 : buttonDialog.iconPosition) == "right" ? /* @__PURE__ */ React27.createElement(ButtonIcon, null) : "" : "", onClick: handleOpen }, " ", (buttonDialog == null ? void 0 : buttonDialog.text) != void 0 ? buttonDialog.text : "", " ")) : /* @__PURE__ */ React27.createElement(IconButton10, { style: { cursor: "pointer" }, onClick: handleOpen }, /* @__PURE__ */ React27.createElement(SvgIcon5, { fontSize: "small", color: (buttonDialog == null ? void 0 : buttonDialog.color) != void 0 ? buttonDialog == null ? void 0 : buttonDialog.color : "action", component: ButtonIcon }))) : "", /* @__PURE__ */ React27.createElement(Modal2, { open: open || false, onClose: handleClose }, /* @__PURE__ */ React27.createElement(
|
|
3115
3116
|
Dialog,
|
|
3116
3117
|
{
|
|
3118
|
+
fullScreen: typeView === "mobile" ? true : false,
|
|
3117
3119
|
"data-testid": "dialog-element",
|
|
3118
3120
|
open: open || false,
|
|
3119
3121
|
onClose: disableClose ? void 0 : handleClose,
|
|
@@ -3125,7 +3127,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
3125
3127
|
}
|
|
3126
3128
|
}
|
|
3127
3129
|
},
|
|
3128
|
-
title && /* @__PURE__ */ React27.createElement(DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 11, sx: { alignItems: "center" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React27.createElement(Box13, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React27.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React27.createElement(SvgIcon5, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ React27.createElement(Grid8, null, /* @__PURE__ */ React27.createElement(Typography14, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), /* @__PURE__ */ React27.createElement(Typography14, { color: "text.secondary", variant: "body2", gutterBottom: true }, subtitle ? subtitle : ""))), disableClose != true ? /* @__PURE__ */ React27.createElement(IconButton10, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ React27.createElement(CloseIcon2,
|
|
3130
|
+
title && /* @__PURE__ */ React27.createElement(DialogTitle, { sx: { m: 0, padding: "8px 16px 8px 16px" }, "data-testid": "dialog-icon-title" }, /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 12, sx: { justifyContent: "space-between", flexWrap: "nowrap" } }, /* @__PURE__ */ React27.createElement(Grid8, { container: true, size: 11, sx: { alignItems: "center" } }, iconTitle ? iconTitleValidation == "image" ? /* @__PURE__ */ React27.createElement(Box13, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ React27.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ React27.createElement(SvgIcon5, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : "", /* @__PURE__ */ React27.createElement(Grid8, null, /* @__PURE__ */ React27.createElement(Typography14, { color: "text.primary", variant: "h6", gutterBottom: true }, title ? title : ""), /* @__PURE__ */ React27.createElement(Typography14, { color: "text.secondary", variant: "body2", gutterBottom: true }, subtitle ? subtitle : ""))), disableClose != true ? /* @__PURE__ */ React27.createElement(IconButton10, { "data-testid": "close-dialog-button", onClick: handleClose, size: "small", color: "default", sx: { height: 22, width: 22 } }, /* @__PURE__ */ React27.createElement(CloseIcon2, { color: "action" })) : "")),
|
|
3129
3131
|
/* @__PURE__ */ React27.createElement(
|
|
3130
3132
|
DialogContent,
|
|
3131
3133
|
{
|
|
@@ -3136,7 +3138,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
3136
3138
|
padding: "12px 16px 8px 16px",
|
|
3137
3139
|
background: background ? background : "white",
|
|
3138
3140
|
height: !heightContent ? { xs: "60vh", sm: "70vh", md: "508px" } : heightContent,
|
|
3139
|
-
width: () => {
|
|
3141
|
+
width: (() => {
|
|
3140
3142
|
switch (widthContent) {
|
|
3141
3143
|
case "extra-small":
|
|
3142
3144
|
return { xs: "48vw", md: "33vw" };
|
|
@@ -3151,7 +3153,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
3151
3153
|
default:
|
|
3152
3154
|
return { xs: "64vw", md: "56vw" };
|
|
3153
3155
|
}
|
|
3154
|
-
}
|
|
3156
|
+
})
|
|
3155
3157
|
}
|
|
3156
3158
|
},
|
|
3157
3159
|
content.url ? /* @__PURE__ */ React27.createElement(
|
|
@@ -3164,7 +3166,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
3164
3166
|
}
|
|
3165
3167
|
) : content.component
|
|
3166
3168
|
),
|
|
3167
|
-
dialogActions.length > 0 ? /* @__PURE__ */ React27.createElement(DialogActions, { sx: { gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, dialogActions.length >= 3 ? /* @__PURE__ */ React27.createElement(React27.Fragment, null, /* @__PURE__ */ React27.createElement(
|
|
3169
|
+
dialogActions != void 0 && dialogActions != false ? Array.isArray(dialogActions) && (dialogActions == null ? void 0 : dialogActions.length) > 0 ? /* @__PURE__ */ React27.createElement(DialogActions, { sx: { gap: 1, m: 0, padding: "12px 16px 12px 16px", justifyContent: dialogActions.length >= 3 ? "space-between" : "flex-end" } }, dialogActions.length >= 3 ? /* @__PURE__ */ React27.createElement(React27.Fragment, null, /* @__PURE__ */ React27.createElement(
|
|
3168
3170
|
Button11,
|
|
3169
3171
|
{
|
|
3170
3172
|
variant: "text",
|
|
@@ -3203,14 +3205,14 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
|
|
|
3203
3205
|
},
|
|
3204
3206
|
boton.text
|
|
3205
3207
|
);
|
|
3206
|
-
})) : ""
|
|
3208
|
+
})) : "" : ""
|
|
3207
3209
|
)));
|
|
3208
3210
|
};
|
|
3209
3211
|
|
|
3210
3212
|
// src/Components/SCListContent.tsx
|
|
3211
3213
|
import React28 from "react";
|
|
3212
3214
|
import { Divider as Divider4, List, ListItemButton, ListItemIcon as ListItemIcon4, ListItemText as ListItemText3, SvgIcon as SvgIcon6 } from "@mui/material";
|
|
3213
|
-
import Grid9 from "@mui/material/
|
|
3215
|
+
import Grid9 from "@mui/material/Grid";
|
|
3214
3216
|
import * as Muicon6 from "@mui/icons-material";
|
|
3215
3217
|
var SCListContent = ({ options }) => {
|
|
3216
3218
|
const [selectedIndex, setSelectedIndex] = React28.useState("1");
|
|
@@ -3252,7 +3254,7 @@ var SCListContent = ({ options }) => {
|
|
|
3252
3254
|
// src/Components/SCMenu.tsx
|
|
3253
3255
|
import React29 from "react";
|
|
3254
3256
|
import { Box as Box15, Typography as Typography16, Paper as Paper2, Divider as Divider5, MenuList as MenuList2, MenuItem as MenuItem5, ListItemIcon as ListItemIcon5, SvgIcon as SvgIcon7 } from "@mui/material";
|
|
3255
|
-
import Grid10 from "@mui/material/
|
|
3257
|
+
import Grid10 from "@mui/material/Grid";
|
|
3256
3258
|
|
|
3257
3259
|
// src/Components/Hooks/useWindowDimensions.ts
|
|
3258
3260
|
import { useState as useState15, useEffect as useEffect17 } from "react";
|
|
@@ -3784,7 +3786,7 @@ var CALENDAR_CONSTANTS = {
|
|
|
3784
3786
|
GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))",
|
|
3785
3787
|
DAY_HEIGHT: 60,
|
|
3786
3788
|
SIDEBAR_WIDTH: 47,
|
|
3787
|
-
MIN_CELL_HEIGHT:
|
|
3789
|
+
MIN_CELL_HEIGHT: 99,
|
|
3788
3790
|
DEFAULT_START_HOUR: 0,
|
|
3789
3791
|
DEFAULT_END_HOUR: 23,
|
|
3790
3792
|
DRAWER_WIDTH: "350px",
|
|
@@ -3848,6 +3850,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
|
|
|
3848
3850
|
return /* @__PURE__ */ React36.createElement(Box20, { width: "100%", sx: { overflowX: "auto" } }, /* @__PURE__ */ React36.createElement(Box20, { minWidth: CALENDAR_CONSTANTS.MIN_WIDTH }, /* @__PURE__ */ React36.createElement(Box20, { display: "grid", gridTemplateColumns: CALENDAR_CONSTANTS.GRID_TEMPLATE, gap: 0.5, mb: 1 }, weekDays.map((day) => /* @__PURE__ */ React36.createElement(Box20, { key: day.day(), textAlign: "center", py: 0.5 }, /* @__PURE__ */ React36.createElement(Typography21, { variant: "caption", color: "text.secondary" }, day.format("dddd"))))), isLoading ? /* @__PURE__ */ React36.createElement(Box20, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React36.createElement(CircularProgress2, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React36.createElement(
|
|
3849
3851
|
EmptyState,
|
|
3850
3852
|
{
|
|
3853
|
+
containerHeight: "480px",
|
|
3851
3854
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
3852
3855
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
3853
3856
|
icon: /* @__PURE__ */ React36.createElement(LogoCalendario, null)
|
|
@@ -4014,6 +4017,7 @@ var WeekView = ({
|
|
|
4014
4017
|
})), isLoading ? /* @__PURE__ */ React37.createElement(Box21, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "450px" }, /* @__PURE__ */ React37.createElement(CircularProgress3, { sx: { width: "60px", height: "60px" }, variant: "indeterminate" })) : !isLoading && noEvents ? /* @__PURE__ */ React37.createElement(
|
|
4015
4018
|
EmptyState,
|
|
4016
4019
|
{
|
|
4020
|
+
containerHeight: "480px",
|
|
4017
4021
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
4018
4022
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
4019
4023
|
icon: /* @__PURE__ */ React37.createElement(LogoCalendario, null)
|
|
@@ -4110,6 +4114,7 @@ var DayView = ({
|
|
|
4110
4114
|
return /* @__PURE__ */ React38.createElement(Box22, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React38.createElement(Box22, { display: "flex", borderBottom: "1px solid", borderColor: "primary.main", bgcolor: "background.paper" }, /* @__PURE__ */ React38.createElement(Box22, { width: CALENDAR_CONSTANTS.SIDEBAR_WIDTH, bgcolor: "background.default", borderBottom: "1px solid", borderColor: "transparent" }), /* @__PURE__ */ React38.createElement(Box22, { flex: 1, display: "flex", flexDirection: "column", textAlign: "start", gap: 0.5, py: 1, bgcolor: "primary.50" }, /* @__PURE__ */ React38.createElement(Typography23, { variant: "h6", color: "text.secondary" }, currentDate.format("D")), /* @__PURE__ */ React38.createElement(Typography23, { variant: "caption", color: "text.secondary" }, currentDate.format("dddd")))), isLoading ? /* @__PURE__ */ React38.createElement(Box22, { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: CALENDAR_CONSTANTS.LOADING_CONTAINER_HEIGHT }, /* @__PURE__ */ React38.createElement(CircularProgress4, { sx: { width: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE, height: CALENDAR_CONSTANTS.LOADING_SPINNER_SIZE }, variant: "indeterminate" })) : noEvents ? /* @__PURE__ */ React38.createElement(
|
|
4111
4115
|
EmptyState,
|
|
4112
4116
|
{
|
|
4117
|
+
containerHeight: "480px",
|
|
4113
4118
|
title: "Inicia la gesti\xF3n de las actividades",
|
|
4114
4119
|
subtitle: "Selecciona un mec\xE1nico y as\xEDgnale las actividades a realizar.",
|
|
4115
4120
|
icon: /* @__PURE__ */ React38.createElement(LogoCalendario, null)
|
|
@@ -4303,7 +4308,7 @@ import { LocalizationProvider as LocalizationProvider3 } from "@mui/x-date-picke
|
|
|
4303
4308
|
import { AdapterDayjs as AdapterDayjs2 } from "@mui/x-date-pickers/AdapterDayjs";
|
|
4304
4309
|
import dayjs10 from "dayjs";
|
|
4305
4310
|
import "dayjs/locale/es";
|
|
4306
|
-
import { LicenseInfo as LicenseInfo3 } from "@mui/x-license
|
|
4311
|
+
import { LicenseInfo as LicenseInfo3 } from "@mui/x-license";
|
|
4307
4312
|
import AccessTimeIcon from "@mui/icons-material/AccessTime";
|
|
4308
4313
|
import { TimeField } from "@mui/x-date-pickers/TimeField";
|
|
4309
4314
|
import { DigitalClock } from "@mui/x-date-pickers/DigitalClock";
|
|
@@ -4524,7 +4529,7 @@ var SCCard = ({ title, image, iconTitle, actionsTitle, subtitle, content, action
|
|
|
4524
4529
|
// src/Components/SCActivityCalendar.tsx
|
|
4525
4530
|
import React42, { useState as useState22 } from "react";
|
|
4526
4531
|
import { Typography as Typography26, IconButton as IconButton15, Box as Box26, Badge as Badge2 } from "@mui/material";
|
|
4527
|
-
import Grid11 from "@mui/material/
|
|
4532
|
+
import Grid11 from "@mui/material/Grid";
|
|
4528
4533
|
import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
|
|
4529
4534
|
import { LocalizationProvider as LocalizationProvider4 } from "@mui/x-date-pickers/LocalizationProvider";
|
|
4530
4535
|
import { StaticDatePicker as StaticDatePicker2 } from "@mui/x-date-pickers/StaticDatePicker";
|