componentes-sinco 1.1.22 → 1.1.23
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 +16 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -715,8 +715,8 @@ interface SCDatePickerProps {
|
|
|
715
715
|
required?: boolean;
|
|
716
716
|
disabled?: boolean;
|
|
717
717
|
background?: string;
|
|
718
|
-
state: Dayjs
|
|
719
|
-
setState: (value: Dayjs
|
|
718
|
+
state: Dayjs;
|
|
719
|
+
setState: (value: Dayjs) => void;
|
|
720
720
|
width?: string;
|
|
721
721
|
}
|
|
722
722
|
declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width }: SCDatePickerProps) => React__default.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -715,8 +715,8 @@ interface SCDatePickerProps {
|
|
|
715
715
|
required?: boolean;
|
|
716
716
|
disabled?: boolean;
|
|
717
717
|
background?: string;
|
|
718
|
-
state: Dayjs
|
|
719
|
-
setState: (value: Dayjs
|
|
718
|
+
state: Dayjs;
|
|
719
|
+
setState: (value: Dayjs) => void;
|
|
720
720
|
width?: string;
|
|
721
721
|
}
|
|
722
722
|
declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width }: SCDatePickerProps) => React__default.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1572,7 +1572,10 @@ var SCTextArea = ({
|
|
|
1572
1572
|
setState(e.target.value.substring(0, maxLength));
|
|
1573
1573
|
}
|
|
1574
1574
|
},
|
|
1575
|
-
autoComplete: "off"
|
|
1575
|
+
autoComplete: "off",
|
|
1576
|
+
InputLabelProps: {
|
|
1577
|
+
shrink: true
|
|
1578
|
+
}
|
|
1576
1579
|
}
|
|
1577
1580
|
)), /* @__PURE__ */ React9.createElement(Stack4, null, /* @__PURE__ */ React9.createElement(
|
|
1578
1581
|
Typography5,
|
|
@@ -3065,6 +3068,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, r
|
|
|
3065
3068
|
const [pageSize, setPageSize] = useState13(rows);
|
|
3066
3069
|
const [arrayRows, setArrayRows] = useState13([]);
|
|
3067
3070
|
const [selectionModel, setSelectionModel] = useState13([]);
|
|
3071
|
+
debugger;
|
|
3068
3072
|
useEffect13(() => {
|
|
3069
3073
|
var _a;
|
|
3070
3074
|
if (setSelectedRow) {
|
|
@@ -3236,8 +3240,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, r
|
|
|
3236
3240
|
"maxHeight": "0px !important"
|
|
3237
3241
|
},
|
|
3238
3242
|
"& .MuiDataGrid-cell": {
|
|
3239
|
-
|
|
3240
|
-
|
|
3243
|
+
padding: groupColumns != void 0 ? "0px !important" : "0px 10px !important",
|
|
3244
|
+
backgroundColor: "white"
|
|
3241
3245
|
},
|
|
3242
3246
|
// Fila seleccionada (cuando selectionModel selecciona filas)
|
|
3243
3247
|
"& .MuiDataGrid-row.Mui-selected .MuiDataGrid-cell": {
|
|
@@ -4008,12 +4012,13 @@ var isToday = (date) => {
|
|
|
4008
4012
|
return date.isSame(dayjs3(), "day");
|
|
4009
4013
|
};
|
|
4010
4014
|
var stateColors = {
|
|
4011
|
-
Asignada: "warning.
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4015
|
+
Asignada: "warning.200",
|
|
4016
|
+
Generada: "default.main",
|
|
4017
|
+
EnProgreso: "primary.200",
|
|
4018
|
+
Aplazada: "secondary.A400",
|
|
4019
|
+
Vencida: "error.200",
|
|
4020
|
+
Finalizada: "success.200"
|
|
4021
|
+
//#FCE4C0
|
|
4017
4022
|
};
|
|
4018
4023
|
|
|
4019
4024
|
// src/Components/Calendario/Event.tsx
|
|
@@ -4311,7 +4316,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
|
|
|
4311
4316
|
{
|
|
4312
4317
|
key: `${event2.id}-${day.toString()}`,
|
|
4313
4318
|
event: event2,
|
|
4314
|
-
color: stateColors[event2.state],
|
|
4319
|
+
color: stateColors[event2.state == "En progreso" ? "EnProgreso" : event2.state],
|
|
4315
4320
|
onClick: () => onEventClick == null ? void 0 : onEventClick(event2, day),
|
|
4316
4321
|
onHover: onEventHover
|
|
4317
4322
|
}
|
|
@@ -5115,7 +5120,7 @@ var SCActivityCalendar = ({
|
|
|
5115
5120
|
key: idx,
|
|
5116
5121
|
options: [{
|
|
5117
5122
|
title: event2.activityDescription,
|
|
5118
|
-
subtitle: /* @__PURE__ */ React42.createElement(React42.Fragment, null, configRangeHour && new Date(event2.date
|
|
5123
|
+
subtitle: /* @__PURE__ */ React42.createElement(React42.Fragment, null, configRangeHour && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getHours() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getHours() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.startTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[0])).getMinutes() && (/* @__PURE__ */ new Date(event2.date + "T" + event2.finalTime)).getMinutes() === (/* @__PURE__ */ new Date(event2.date + "T" + configRangeHour.split("-")[1])).getMinutes() ? /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Typography25, null, "Todo el dia"), /* @__PURE__ */ React42.createElement(LightModeOutlinedIcon, { fontSize: "small" })) : /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Typography25, null, new Date(event2.date.replace("00:00:00", event2.startTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })), /* @__PURE__ */ React42.createElement(ArrowForwardIcon, { fontSize: "small" }), /* @__PURE__ */ React42.createElement(Typography25, null, new Date(event2.date.replace("00:00:00", event2.finalTime)).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: true })))),
|
|
5119
5124
|
iconLeftColor: event2.state === "Finalizada" ? "#C7E49D" : "action",
|
|
5120
5125
|
iconLeft: event2.state === "Finalizada" ? "CheckCircle" : event2.state === "Aplazada" ? "EventBusyOutlined" : event2.state === "En progreso" ? "PendingOutlined" : "RadioButtonUnchecked",
|
|
5121
5126
|
description: /* @__PURE__ */ React42.createElement(React42.Fragment, null, event2.state === "Aplazada" || event2.state === "En progreso" || event2.state === "Auto asignada" ? /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(Badge2, { variant: "dot", badgeContent: "", sx: { display: "flex", alignItems: "center", "& .MuiBadge-badge": { top: "50%", transform: "translateY(-50%)" }, color: "action" } }), /* @__PURE__ */ React42.createElement(Typography25, null, event2.state == "Auto asignada" ? "Adicional" : event2.state)) : null),
|