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.d.cts
CHANGED
|
@@ -556,7 +556,7 @@ declare const CALENDAR_CONSTANTS: {
|
|
|
556
556
|
readonly GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))";
|
|
557
557
|
readonly DAY_HEIGHT: 60;
|
|
558
558
|
readonly SIDEBAR_WIDTH: 47;
|
|
559
|
-
readonly MIN_CELL_HEIGHT:
|
|
559
|
+
readonly MIN_CELL_HEIGHT: 99;
|
|
560
560
|
readonly DEFAULT_START_HOUR: 0;
|
|
561
561
|
readonly DEFAULT_END_HOUR: 23;
|
|
562
562
|
readonly DRAWER_WIDTH: "350px";
|
package/dist/index.d.ts
CHANGED
|
@@ -556,7 +556,7 @@ declare const CALENDAR_CONSTANTS: {
|
|
|
556
556
|
readonly GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))";
|
|
557
557
|
readonly DAY_HEIGHT: 60;
|
|
558
558
|
readonly SIDEBAR_WIDTH: 47;
|
|
559
|
-
readonly MIN_CELL_HEIGHT:
|
|
559
|
+
readonly MIN_CELL_HEIGHT: 99;
|
|
560
560
|
readonly DEFAULT_START_HOUR: 0;
|
|
561
561
|
readonly DEFAULT_END_HOUR: 23;
|
|
562
562
|
readonly DRAWER_WIDTH: "350px";
|
package/dist/index.js
CHANGED
|
@@ -2758,6 +2758,7 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
2758
2758
|
const groupingColDefs = {
|
|
2759
2759
|
field: "grouping",
|
|
2760
2760
|
headerName: groupColumns ? groupColumns(data[0]).headerNameFirstColumn : "Agrupador",
|
|
2761
|
+
flex: 1,
|
|
2761
2762
|
renderCell: (params) => {
|
|
2762
2763
|
var _a, _b;
|
|
2763
2764
|
let label = params.value.toString().includes("/") ? params.value.split("/")[0].toString() : params.value.toString();
|
|
@@ -2950,13 +2951,24 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
2950
2951
|
setSelectionModel([...newSelection]);
|
|
2951
2952
|
}
|
|
2952
2953
|
};
|
|
2954
|
+
const processedColumns = columns.map((col) => {
|
|
2955
|
+
if (col.width !== void 0) {
|
|
2956
|
+
return col;
|
|
2957
|
+
}
|
|
2958
|
+
if (col.flex !== void 0) {
|
|
2959
|
+
return col;
|
|
2960
|
+
}
|
|
2961
|
+
return __spreadProps(__spreadValues({}, col), {
|
|
2962
|
+
flex: 1
|
|
2963
|
+
});
|
|
2964
|
+
});
|
|
2953
2965
|
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, data && /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement("div", { style: { width: width || "100%", maxHeight: maxHeight ? `${maxHeight}px` : "none" } }, /* @__PURE__ */ React21.createElement(
|
|
2954
2966
|
DataGridPro,
|
|
2955
2967
|
{
|
|
2956
2968
|
apiRef,
|
|
2957
2969
|
rowHeight: styleRowHeight,
|
|
2958
2970
|
rows: arrayRows,
|
|
2959
|
-
columns,
|
|
2971
|
+
columns: processedColumns,
|
|
2960
2972
|
density: styleDensity,
|
|
2961
2973
|
treeData: validationTreeData,
|
|
2962
2974
|
getTreeDataPath: validationTreeData == true ? getTreeDataPaths : void 0,
|
|
@@ -2965,12 +2977,14 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
2965
2977
|
initialState: {
|
|
2966
2978
|
pagination: { paginationModel: { pageSize: rows } }
|
|
2967
2979
|
},
|
|
2980
|
+
scrollbarSize: 0,
|
|
2968
2981
|
checkboxSelection: validationCheckboxSelection,
|
|
2969
2982
|
rowSelectionModel: selectionModel,
|
|
2970
2983
|
onRowSelectionModelChange: (newSelection) => handleSelectionChange(newSelection),
|
|
2971
2984
|
isRowSelectable,
|
|
2972
2985
|
disableRowSelectionOnClick: true,
|
|
2973
2986
|
hideFooter: validationTreeData == true ? true : false,
|
|
2987
|
+
disableColumnResize: false,
|
|
2974
2988
|
localeText: {
|
|
2975
2989
|
noRowsLabel: "No hay filas",
|
|
2976
2990
|
columnMenuLabel: "Men\xFA de columna",
|
|
@@ -3010,7 +3024,18 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3010
3024
|
padding: "0 !important",
|
|
3011
3025
|
background: "white"
|
|
3012
3026
|
},
|
|
3013
|
-
// Ocultar
|
|
3027
|
+
// Ocultar celdas vacías completamente
|
|
3028
|
+
"& .MuiDataGrid-cellEmpty": {
|
|
3029
|
+
display: "none !important",
|
|
3030
|
+
width: "0 !important",
|
|
3031
|
+
minWidth: "0 !important",
|
|
3032
|
+
maxWidth: "0 !important"
|
|
3033
|
+
},
|
|
3034
|
+
// Forzar que las columnas ocupen todo el ancho
|
|
3035
|
+
"& .MuiDataGrid-row": {
|
|
3036
|
+
maxWidth: "100% !important"
|
|
3037
|
+
},
|
|
3038
|
+
// Ocultar scrollbars personalizados de MUI completamente en todos los estados
|
|
3014
3039
|
"& .MuiDataGrid-scrollbar": {
|
|
3015
3040
|
display: "none !important",
|
|
3016
3041
|
visibility: "hidden !important",
|
|
@@ -3023,7 +3048,22 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3023
3048
|
width: "0 !important",
|
|
3024
3049
|
opacity: "0 !important"
|
|
3025
3050
|
},
|
|
3026
|
-
|
|
3051
|
+
"& .MuiDataGrid-scrollbar--horizontal": {
|
|
3052
|
+
display: "none !important",
|
|
3053
|
+
visibility: "hidden !important",
|
|
3054
|
+
height: "0 !important",
|
|
3055
|
+
opacity: "0 !important"
|
|
3056
|
+
},
|
|
3057
|
+
"& .MuiDataGrid-scrollbar.MuiDataGrid-scrollbar--scrollable": {
|
|
3058
|
+
display: "none !important",
|
|
3059
|
+
visibility: "hidden !important"
|
|
3060
|
+
},
|
|
3061
|
+
// Prevenir aparición de scrollbar en hover sobre row
|
|
3062
|
+
"& .MuiDataGrid-row:hover ~ .MuiDataGrid-scrollbar": {
|
|
3063
|
+
display: "none !important",
|
|
3064
|
+
visibility: "hidden !important"
|
|
3065
|
+
},
|
|
3066
|
+
// Scrollbar filler y content siempre ocultos
|
|
3027
3067
|
"& .MuiDataGrid-scrollbarFiller": {
|
|
3028
3068
|
backgroundColor: "transparent !important",
|
|
3029
3069
|
display: "none !important"
|
|
@@ -3051,6 +3091,15 @@ function SCDataGridInitial({ data, columns, groupColumns, rowsTable, checkboxSel
|
|
|
3051
3091
|
"&::-webkit-scrollbar-thumb:hover": {
|
|
3052
3092
|
background: "#555"
|
|
3053
3093
|
}
|
|
3094
|
+
},
|
|
3095
|
+
// Prevenir que aparezca scrollbar en hover
|
|
3096
|
+
"&:hover .MuiDataGrid-scrollbar": {
|
|
3097
|
+
display: "none !important",
|
|
3098
|
+
visibility: "hidden !important"
|
|
3099
|
+
},
|
|
3100
|
+
"&:hover .MuiDataGrid-scrollbar--vertical": {
|
|
3101
|
+
display: "none !important",
|
|
3102
|
+
visibility: "hidden !important"
|
|
3054
3103
|
}
|
|
3055
3104
|
}
|
|
3056
3105
|
}
|
|
@@ -3900,7 +3949,7 @@ var CALENDAR_CONSTANTS = {
|
|
|
3900
3949
|
GRID_TEMPLATE: "repeat(7, minmax(150px, 1fr))",
|
|
3901
3950
|
DAY_HEIGHT: 60,
|
|
3902
3951
|
SIDEBAR_WIDTH: 47,
|
|
3903
|
-
MIN_CELL_HEIGHT:
|
|
3952
|
+
MIN_CELL_HEIGHT: 99,
|
|
3904
3953
|
DEFAULT_START_HOUR: 0,
|
|
3905
3954
|
DEFAULT_END_HOUR: 23,
|
|
3906
3955
|
DRAWER_WIDTH: "350px",
|