componentes-sinco 1.2.6 → 1.2.8
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 +55 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -15
- package/dist/index.d.ts +11 -15
- package/dist/index.js +103 -117
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -917,7 +917,8 @@ var AttachmentMobile = ({
|
|
|
917
917
|
children,
|
|
918
918
|
sx,
|
|
919
919
|
view = "button",
|
|
920
|
-
iconFileItem
|
|
920
|
+
iconFileItem,
|
|
921
|
+
onFileClick
|
|
921
922
|
}) => {
|
|
922
923
|
const webcamRef = (0, import_react7.useRef)(null);
|
|
923
924
|
const [abrirCamara, setAbrirCamara] = (0, import_react7.useState)(false);
|
|
@@ -1244,31 +1245,43 @@ var AttachmentMobile = ({
|
|
|
1244
1245
|
}
|
|
1245
1246
|
}
|
|
1246
1247
|
},
|
|
1247
|
-
/* @__PURE__ */ import_react7.default.createElement(
|
|
1248
|
-
|
|
1249
|
-
{
|
|
1250
|
-
color: file.uploadError ? "error" : "primary",
|
|
1251
|
-
fontSize: "small"
|
|
1252
|
-
}
|
|
1253
|
-
), /* @__PURE__ */ import_react7.default.createElement(import_material5.Stack, { width: "100%" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1254
|
-
import_material5.Typography,
|
|
1255
|
-
{
|
|
1256
|
-
variant: "body2",
|
|
1257
|
-
color: "text.primary",
|
|
1258
|
-
whiteSpace: "nowrap",
|
|
1259
|
-
overflow: "hidden",
|
|
1260
|
-
textOverflow: "ellipsis",
|
|
1261
|
-
maxWidth: "310px"
|
|
1262
|
-
},
|
|
1263
|
-
file.name
|
|
1264
|
-
), /* @__PURE__ */ import_react7.default.createElement(
|
|
1265
|
-
import_material5.Typography,
|
|
1248
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
|
1249
|
+
import_material5.Stack,
|
|
1266
1250
|
{
|
|
1267
|
-
|
|
1268
|
-
|
|
1251
|
+
direction: "row",
|
|
1252
|
+
alignItems: "center",
|
|
1253
|
+
gap: 1,
|
|
1254
|
+
width: "100%",
|
|
1255
|
+
onClick: () => onFileClick == null ? void 0 : onFileClick(file),
|
|
1256
|
+
sx: { cursor: onFileClick ? "pointer" : "default" }
|
|
1269
1257
|
},
|
|
1270
|
-
|
|
1271
|
-
|
|
1258
|
+
iconFileItem ? /* @__PURE__ */ import_react7.default.createElement(import_material5.SvgIcon, { color: file.uploadError ? "error" : "primary", fontSize: "small", component: IconFileItem }) : /* @__PURE__ */ import_react7.default.createElement(
|
|
1259
|
+
import_icons_material7.UploadFileOutlined,
|
|
1260
|
+
{
|
|
1261
|
+
color: file.uploadError ? "error" : "primary",
|
|
1262
|
+
fontSize: "small"
|
|
1263
|
+
}
|
|
1264
|
+
),
|
|
1265
|
+
/* @__PURE__ */ import_react7.default.createElement(import_material5.Stack, { width: "100%" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1266
|
+
import_material5.Typography,
|
|
1267
|
+
{
|
|
1268
|
+
variant: "body2",
|
|
1269
|
+
color: "text.primary",
|
|
1270
|
+
whiteSpace: "nowrap",
|
|
1271
|
+
overflow: "hidden",
|
|
1272
|
+
textOverflow: "ellipsis",
|
|
1273
|
+
maxWidth: "310px"
|
|
1274
|
+
},
|
|
1275
|
+
file.name
|
|
1276
|
+
), /* @__PURE__ */ import_react7.default.createElement(
|
|
1277
|
+
import_material5.Typography,
|
|
1278
|
+
{
|
|
1279
|
+
variant: "caption",
|
|
1280
|
+
color: file.uploadError ? "error" : "text.secondary"
|
|
1281
|
+
},
|
|
1282
|
+
file.uploadError && file.size / (1024 * 1024) > maxSize ? "Archivo super\xF3 el l\xEDmite \u2022 Carga fallida" : file.uploadError ? "Archivo duplicado o inv\xE1lido \u2022 Carga fallida" : `${(file.size / (1024 * 1024)).toFixed(2)}MB \u2022 ${file.type}`
|
|
1283
|
+
))
|
|
1284
|
+
),
|
|
1272
1285
|
view == "file" ? /* @__PURE__ */ import_react7.default.createElement(import_material5.Tooltip, { title: "Descargar" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1273
1286
|
import_material5.IconButton,
|
|
1274
1287
|
{
|
|
@@ -3035,7 +3048,7 @@ var SCDateRange = ({
|
|
|
3035
3048
|
setState
|
|
3036
3049
|
}) => {
|
|
3037
3050
|
import_x_license.LicenseInfo.setLicenseKey(
|
|
3038
|
-
"
|
|
3051
|
+
"aa892a011e4c240f3cdaf811ecfff54fTz0xMjkyODQsRT0xODEwNDI1NTk5MDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
|
|
3039
3052
|
);
|
|
3040
3053
|
const isStartEmpty = required && !state[0];
|
|
3041
3054
|
const isEndEmpty = required && !state[1];
|
|
@@ -3350,6 +3363,7 @@ function SCDrawer({
|
|
|
3350
3363
|
chipFilters,
|
|
3351
3364
|
heightDrawer = 456,
|
|
3352
3365
|
filterSideCard,
|
|
3366
|
+
type = "Drawer",
|
|
3353
3367
|
onChipDelete
|
|
3354
3368
|
}) {
|
|
3355
3369
|
const drawerBleeding = heightDrawer;
|
|
@@ -3416,26 +3430,26 @@ function SCDrawer({
|
|
|
3416
3430
|
onToggle: toggleDrawer(true)
|
|
3417
3431
|
}
|
|
3418
3432
|
)
|
|
3419
|
-
),
|
|
3433
|
+
), type != "Swipeable" ? /* @__PURE__ */ import_react24.default.createElement(
|
|
3420
3434
|
import_material18.Drawer,
|
|
3421
3435
|
{
|
|
3422
3436
|
open: drawerOpen,
|
|
3423
|
-
onClose:
|
|
3437
|
+
onClose: type == "Sidecar" ? void 0 : toggleDrawer(false),
|
|
3424
3438
|
anchor: anchor != null ? anchor : "left",
|
|
3425
3439
|
sx: {
|
|
3426
3440
|
"& .MuiDrawer-paper": {
|
|
3427
|
-
width:
|
|
3441
|
+
width: type == "Sidecar" ? "100%" : width != null ? width : "450px",
|
|
3428
3442
|
boxSizing: "border-box",
|
|
3429
3443
|
borderRadius: anchor !== "right" ? "0px 4px 4px 0px" : "4px 0px 0px 4px",
|
|
3430
|
-
boxShadow:
|
|
3444
|
+
boxShadow: type == "Sidecar" ? "none !important" : "0px 8px 10px -5px rgba(24, 39, 75, 0.2), 0px 16px 24px 2px rgba(24, 39, 75, 0.14), 0px 6px 30px 5px rgba(24, 39, 75, 0.12)"
|
|
3431
3445
|
},
|
|
3432
3446
|
"&.MuiDrawer-root": {
|
|
3433
|
-
boxShadow:
|
|
3447
|
+
boxShadow: type == "Sidecar" ? "none !important" : "0px 3px 1px -2px rgba(24, 39, 75, 0.20),0px 2px 2px 0px rgba(24, 39, 75, 0.14),0px 1px 5px 0px rgba(24, 39, 75, 0.12)"
|
|
3434
3448
|
}
|
|
3435
3449
|
},
|
|
3436
3450
|
ModalProps: {
|
|
3437
3451
|
keepMounted: true,
|
|
3438
|
-
disablePortal:
|
|
3452
|
+
disablePortal: type == "Sidecar" ? true : false,
|
|
3439
3453
|
slotProps: {
|
|
3440
3454
|
root: {
|
|
3441
3455
|
style: {
|
|
@@ -4573,36 +4587,19 @@ var PageHeader = ({
|
|
|
4573
4587
|
var import_react43 = __toESM(require("react"), 1);
|
|
4574
4588
|
var import_material29 = require("@mui/material");
|
|
4575
4589
|
var import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"), 1);
|
|
4576
|
-
var import_ExpandLess = __toESM(require("@mui/icons-material/ExpandLess"), 1);
|
|
4577
4590
|
var SCAccordion = ({
|
|
4578
4591
|
title,
|
|
4579
4592
|
actions,
|
|
4580
4593
|
children
|
|
4581
4594
|
}) => {
|
|
4582
4595
|
const [open, setOpen] = (0, import_react43.useState)(false);
|
|
4583
|
-
return /* @__PURE__ */ import_react43.default.createElement(
|
|
4584
|
-
import_material29.
|
|
4596
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react43.default.Fragment, null, /* @__PURE__ */ import_react43.default.createElement(import_material29.Accordion, null, /* @__PURE__ */ import_react43.default.createElement(
|
|
4597
|
+
import_material29.AccordionSummary,
|
|
4585
4598
|
{
|
|
4586
|
-
|
|
4587
|
-
sx: {
|
|
4588
|
-
background: "white",
|
|
4589
|
-
boxShadow: "0px 2px 4px 0px #18274B33",
|
|
4590
|
-
padding: "0px 2px 0px 2px"
|
|
4591
|
-
}
|
|
4599
|
+
expandIcon: /* @__PURE__ */ import_react43.default.createElement(import_ExpandMore.default, { fontSize: "small", color: "action" })
|
|
4592
4600
|
},
|
|
4593
|
-
/* @__PURE__ */ import_react43.default.createElement(
|
|
4594
|
-
|
|
4595
|
-
{
|
|
4596
|
-
container: true,
|
|
4597
|
-
sx: { alignItems: "center", padding: "12px 16px 12px 16px", cursor: "pointer" },
|
|
4598
|
-
justifyContent: "space-between",
|
|
4599
|
-
onClick: () => setOpen((prev) => !prev)
|
|
4600
|
-
},
|
|
4601
|
-
/* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { sx: { textAlign: "left" } }, /* @__PURE__ */ import_react43.default.createElement(import_material29.Typography, { noWrap: true, variant: "subtitle1", align: "left", color: "text.primary" }, title)),
|
|
4602
|
-
/* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, null, /* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { container: true, justifyContent: "flex-end", alignItems: "center", gap: 1 }, actions, /* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { color: "#3975ac", sx: { textAlign: "right" } }, open ? /* @__PURE__ */ import_react43.default.createElement(import_ExpandLess.default, { fontSize: "small", color: "action" }) : /* @__PURE__ */ import_react43.default.createElement(import_ExpandMore.default, { fontSize: "small", color: "action" }))))
|
|
4603
|
-
),
|
|
4604
|
-
open && /* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { container: true, padding: "12px" }, children)
|
|
4605
|
-
);
|
|
4601
|
+
/* @__PURE__ */ import_react43.default.createElement(import_material29.Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" } }, typeof title === "string" ? /* @__PURE__ */ import_react43.default.createElement(import_material29.Typography, { noWrap: true, variant: "body1", color: "text.primary" }, title) : title, actions)
|
|
4602
|
+
), /* @__PURE__ */ import_react43.default.createElement(import_material29.AccordionDetails, { sx: { padding: "12px" } }, children)));
|
|
4606
4603
|
};
|
|
4607
4604
|
|
|
4608
4605
|
// src/Components/SCActivityCalendar.tsx
|
|
@@ -5082,7 +5079,7 @@ var import_CardActions = __toESM(require("@mui/material/CardActions"), 1);
|
|
|
5082
5079
|
var import_Collapse = __toESM(require("@mui/material/Collapse"), 1);
|
|
5083
5080
|
var import_ExpandMore2 = __toESM(require("@mui/icons-material/ExpandMore"), 1);
|
|
5084
5081
|
var Muicon8 = __toESM(require("@mui/icons-material"), 1);
|
|
5085
|
-
var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content, actions,
|
|
5082
|
+
var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, dividerHeader, content, actions, dividerActions, contentExpand }) => {
|
|
5086
5083
|
let iconTitleValidation = "";
|
|
5087
5084
|
let IconTitle;
|
|
5088
5085
|
const [expanded, setExpanded] = import_react49.default.useState(false);
|
|
@@ -5107,7 +5104,7 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
|
|
|
5107
5104
|
import_CardHeader.default,
|
|
5108
5105
|
{
|
|
5109
5106
|
avatar: iconTitle ? iconTitleValidation === "image" ? /* @__PURE__ */ import_react49.default.createElement(import_material35.Box, { sx: { marginRight: "16px", width: "44px", height: "44px", borderRadius: "1px" } }, /* @__PURE__ */ import_react49.default.createElement("img", { src: IconTitle, width: "44px", height: "44px" })) : /* @__PURE__ */ import_react49.default.createElement(import_material35.SvgIcon, { color: "action", fontSize: "small", component: IconTitle, sx: { marginRight: "16px" } }) : void 0,
|
|
5110
|
-
action:
|
|
5107
|
+
action: actionsTitle == "expand" ? /* @__PURE__ */ import_react49.default.createElement(import_IconButton.default, { onClick: handleExpandClick, sx: { marginRight: "auto" }, size: "small" }, /* @__PURE__ */ import_react49.default.createElement(import_ExpandMore2.default, { fontSize: "small" })) : actionsTitle,
|
|
5111
5108
|
title,
|
|
5112
5109
|
subheader: subtitle,
|
|
5113
5110
|
sx: {
|
|
@@ -5126,25 +5123,14 @@ var SCCard = ({ width, title, image, iconTitle, actionsTitle, subtitle, content,
|
|
|
5126
5123
|
}
|
|
5127
5124
|
}
|
|
5128
5125
|
}
|
|
5129
|
-
), image && /* @__PURE__ */ import_react49.default.createElement(
|
|
5126
|
+
), dividerHeader && title && /* @__PURE__ */ import_react49.default.createElement(import_material35.Divider, { variant: "fullWidth" }), image && /* @__PURE__ */ import_react49.default.createElement(
|
|
5130
5127
|
import_CardMedia.default,
|
|
5131
5128
|
{
|
|
5132
5129
|
component: "img",
|
|
5133
5130
|
height: "194",
|
|
5134
5131
|
image
|
|
5135
5132
|
}
|
|
5136
|
-
), content && /* @__PURE__ */ import_react49.default.createElement(import_CardContent.default, { sx: { padding: "8px 16px !important" } }, content),
|
|
5137
|
-
import_material35.Button,
|
|
5138
|
-
{
|
|
5139
|
-
key: index,
|
|
5140
|
-
size: "small",
|
|
5141
|
-
color: action.color || "primary",
|
|
5142
|
-
variant: action.variant || "text",
|
|
5143
|
-
onClick: action.fn,
|
|
5144
|
-
disabled: action.disabled || false
|
|
5145
|
-
},
|
|
5146
|
-
action.text
|
|
5147
|
-
)) : ""), expand && /* @__PURE__ */ import_react49.default.createElement(import_Collapse.default, { in: expanded, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ import_react49.default.createElement(import_CardContent.default, { sx: { padding: "8px 16px !important" } }, expand.content)));
|
|
5133
|
+
), content && /* @__PURE__ */ import_react49.default.createElement(import_CardContent.default, { sx: { padding: "8px 16px !important" } }, content), dividerActions && /* @__PURE__ */ import_react49.default.createElement(import_material35.Divider, { variant: "fullWidth" }), actions && /* @__PURE__ */ import_react49.default.createElement(import_CardActions.default, null, actions), contentExpand && /* @__PURE__ */ import_react49.default.createElement(import_Collapse.default, { in: expanded, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ import_react49.default.createElement(import_CardContent.default, { sx: { padding: "8px 16px !important" } }, contentExpand)));
|
|
5148
5134
|
};
|
|
5149
5135
|
|
|
5150
5136
|
// src/Components/SCDataGrid.tsx
|
|
@@ -6131,7 +6117,7 @@ var SCTime = ({
|
|
|
6131
6117
|
error = false
|
|
6132
6118
|
}) => {
|
|
6133
6119
|
import_x_license3.LicenseInfo.setLicenseKey(
|
|
6134
|
-
"
|
|
6120
|
+
"aa892a011e4c240f3cdaf811ecfff54fTz0xMjkyODQsRT0xODEwNDI1NTk5MDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
|
|
6135
6121
|
);
|
|
6136
6122
|
const isTimeEmpty = required && !state;
|
|
6137
6123
|
const hasError = isTimeEmpty || error;
|