componentes-sinco 1.0.34-rc.2 → 1.0.35
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 +53 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +53 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2835,6 +2835,7 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
2835
2835
|
const groupingColDefs = {
|
|
2836
2836
|
field: "grouping",
|
|
2837
2837
|
headerName: groupColumns ? groupColumns(data[0]).headerNameFirstColumn : "Agrupador",
|
|
2838
|
+
flex: 1,
|
|
2838
2839
|
renderCell: (params) => {
|
|
2839
2840
|
var _a, _b;
|
|
2840
2841
|
let label = params.value.toString().includes("/") ? params.value.split("/")[0].toString() : params.value.toString();
|
|
@@ -3027,13 +3028,24 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3027
3028
|
setSelectionModel([...newSelection]);
|
|
3028
3029
|
}
|
|
3029
3030
|
};
|
|
3031
|
+
const processedColumns = columns.map((col) => {
|
|
3032
|
+
if (col.width !== void 0) {
|
|
3033
|
+
return col;
|
|
3034
|
+
}
|
|
3035
|
+
if (col.flex !== void 0) {
|
|
3036
|
+
return col;
|
|
3037
|
+
}
|
|
3038
|
+
return __spreadProps(__spreadValues({}, col), {
|
|
3039
|
+
flex: 1
|
|
3040
|
+
});
|
|
3041
|
+
});
|
|
3030
3042
|
return /* @__PURE__ */ import_react27.default.createElement(import_react27.default.Fragment, null, data && /* @__PURE__ */ import_react27.default.createElement(import_react27.default.Fragment, null, /* @__PURE__ */ import_react27.default.createElement("div", { style: { width: width || "100%", maxHeight: maxHeight ? `${maxHeight}px` : "none" } }, /* @__PURE__ */ import_react27.default.createElement(
|
|
3031
3043
|
import_x_data_grid_pro.DataGridPro,
|
|
3032
3044
|
{
|
|
3033
3045
|
apiRef,
|
|
3034
3046
|
rowHeight: styleRowHeight,
|
|
3035
3047
|
rows: arrayRows,
|
|
3036
|
-
columns,
|
|
3048
|
+
columns: processedColumns,
|
|
3037
3049
|
density: styleDensity,
|
|
3038
3050
|
treeData: validationTreeData,
|
|
3039
3051
|
getTreeDataPath: validationTreeData == true ? getTreeDataPaths : void 0,
|
|
@@ -3042,12 +3054,14 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3042
3054
|
initialState: {
|
|
3043
3055
|
pagination: { paginationModel: { pageSize: rows } }
|
|
3044
3056
|
},
|
|
3057
|
+
scrollbarSize: 0,
|
|
3045
3058
|
checkboxSelection: validationCheckboxSelection,
|
|
3046
3059
|
rowSelectionModel: selectionModel,
|
|
3047
3060
|
onRowSelectionModelChange: (newSelection) => handleSelectionChange(newSelection),
|
|
3048
3061
|
isRowSelectable,
|
|
3049
3062
|
disableRowSelectionOnClick: true,
|
|
3050
3063
|
hideFooter: validationTreeData == true ? true : false,
|
|
3064
|
+
disableColumnResize: false,
|
|
3051
3065
|
localeText: {
|
|
3052
3066
|
noRowsLabel: "No hay filas",
|
|
3053
3067
|
columnMenuLabel: "Men\xFA de columna",
|
|
@@ -3087,7 +3101,18 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3087
3101
|
padding: "0 !important",
|
|
3088
3102
|
background: "white"
|
|
3089
3103
|
},
|
|
3090
|
-
// Ocultar
|
|
3104
|
+
// Ocultar celdas vacías completamente
|
|
3105
|
+
"& .MuiDataGrid-cellEmpty": {
|
|
3106
|
+
display: "none !important",
|
|
3107
|
+
width: "0 !important",
|
|
3108
|
+
minWidth: "0 !important",
|
|
3109
|
+
maxWidth: "0 !important"
|
|
3110
|
+
},
|
|
3111
|
+
// Forzar que las columnas ocupen todo el ancho
|
|
3112
|
+
"& .MuiDataGrid-row": {
|
|
3113
|
+
maxWidth: "100% !important"
|
|
3114
|
+
},
|
|
3115
|
+
// Ocultar scrollbars personalizados de MUI completamente en todos los estados
|
|
3091
3116
|
"& .MuiDataGrid-scrollbar": {
|
|
3092
3117
|
display: "none !important",
|
|
3093
3118
|
visibility: "hidden !important",
|
|
@@ -3100,7 +3125,22 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3100
3125
|
width: "0 !important",
|
|
3101
3126
|
opacity: "0 !important"
|
|
3102
3127
|
},
|
|
3103
|
-
|
|
3128
|
+
"& .MuiDataGrid-scrollbar--horizontal": {
|
|
3129
|
+
display: "none !important",
|
|
3130
|
+
visibility: "hidden !important",
|
|
3131
|
+
height: "0 !important",
|
|
3132
|
+
opacity: "0 !important"
|
|
3133
|
+
},
|
|
3134
|
+
"& .MuiDataGrid-scrollbar.MuiDataGrid-scrollbar--scrollable": {
|
|
3135
|
+
display: "none !important",
|
|
3136
|
+
visibility: "hidden !important"
|
|
3137
|
+
},
|
|
3138
|
+
// Prevenir aparición de scrollbar en hover sobre row
|
|
3139
|
+
"& .MuiDataGrid-row:hover ~ .MuiDataGrid-scrollbar": {
|
|
3140
|
+
display: "none !important",
|
|
3141
|
+
visibility: "hidden !important"
|
|
3142
|
+
},
|
|
3143
|
+
// Scrollbar filler y content siempre ocultos
|
|
3104
3144
|
"& .MuiDataGrid-scrollbarFiller": {
|
|
3105
3145
|
backgroundColor: "transparent !important",
|
|
3106
3146
|
display: "none !important"
|
|
@@ -3128,6 +3168,15 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3128
3168
|
"&::-webkit-scrollbar-thumb:hover": {
|
|
3129
3169
|
background: "#555"
|
|
3130
3170
|
}
|
|
3171
|
+
},
|
|
3172
|
+
// Prevenir que aparezca scrollbar en hover
|
|
3173
|
+
"&:hover .MuiDataGrid-scrollbar": {
|
|
3174
|
+
display: "none !important",
|
|
3175
|
+
visibility: "hidden !important"
|
|
3176
|
+
},
|
|
3177
|
+
"&:hover .MuiDataGrid-scrollbar--vertical": {
|
|
3178
|
+
display: "none !important",
|
|
3179
|
+
visibility: "hidden !important"
|
|
3131
3180
|
}
|
|
3132
3181
|
}
|
|
3133
3182
|
}
|
|
@@ -3977,7 +4026,7 @@ var CALENDAR_CONSTANTS = {
|
|
|
3977
4026
|
GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))",
|
|
3978
4027
|
DAY_HEIGHT: 60,
|
|
3979
4028
|
SIDEBAR_WIDTH: 47,
|
|
3980
|
-
MIN_CELL_HEIGHT:
|
|
4029
|
+
MIN_CELL_HEIGHT: 99,
|
|
3981
4030
|
DEFAULT_START_HOUR: 0,
|
|
3982
4031
|
DEFAULT_END_HOUR: 23,
|
|
3983
4032
|
DRAWER_WIDTH: "350px",
|