@m4l/components 9.4.45 → 9.4.46
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/components/datagrids/Datagrid.styles.d.ts.map +1 -1
- package/components/datagrids/Datagrid.styles.js +358 -272
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.d.ts.map +1 -1
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.js +47 -45
- package/components/datagrids/contexts/DataGridContext/DataGridContext.d.ts.map +1 -1
- package/components/datagrids/contexts/DataGridContext/DataGridContext.js +237 -178
- package/components/datagrids/contexts/DataGridContext/types.d.ts +13 -4
- package/components/datagrids/contexts/DataGridContext/types.d.ts.map +1 -1
- package/components/datagrids/dictionary.d.ts +1 -0
- package/components/datagrids/dictionary.d.ts.map +1 -1
- package/components/datagrids/dictionary.js +1 -0
- package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.d.ts.map +1 -1
- package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.js +14 -14
- package/components/datagrids/helpers/persistence/getViewMode/getViewMode.d.ts.map +1 -1
- package/components/datagrids/helpers/persistence/getViewMode/getViewMode.js +8 -8
- package/components/datagrids/helpers/shared/getAllViewModes/getAllViewModes.d.ts +2 -1
- package/components/datagrids/helpers/shared/getAllViewModes/getAllViewModes.d.ts.map +1 -1
- package/components/datagrids/helpers/shared/getAllViewModes/getAllViewModes.js +1 -1
- package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.d.ts +2 -1
- package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.d.ts.map +1 -1
- package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.js +11 -4
- package/components/datagrids/helpers/shared/getViewSuffix/getViewSuffix.d.ts +3 -2
- package/components/datagrids/helpers/shared/getViewSuffix/getViewSuffix.d.ts.map +1 -1
- package/components/datagrids/helpers/shared/getViewSuffix/getViewSuffix.js +1 -1
- package/components/datagrids/helpers/shared/scrollToRowElement/index.d.ts +2 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/index.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/scrollToRowElement.d.ts +10 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/scrollToRowElement.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/scrollToRowElement/scrollToRowElement.js +24 -0
- package/components/datagrids/hooks/useViewConfig/useViewConfig.d.ts.map +1 -1
- package/components/datagrids/hooks/useViewConfig/useViewConfig.js +11 -10
- package/components/datagrids/shared/LazyLoadItem/LazyLoadItem.d.ts +7 -0
- package/components/datagrids/shared/LazyLoadItem/LazyLoadItem.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/index.d.ts +3 -0
- package/components/datagrids/shared/LazyLoadItem/index.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/IntersectItem.d.ts +7 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/IntersectItem.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/index.d.ts +3 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/index.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/types.d.ts +13 -0
- package/components/datagrids/shared/LazyLoadItem/subcomponents/IntersectItem/types.d.ts.map +1 -0
- package/components/datagrids/shared/LazyLoadItem/types.d.ts +12 -0
- package/components/datagrids/shared/LazyLoadItem/types.d.ts.map +1 -0
- package/components/datagrids/slots/DataGridEnum.d.ts +5 -1
- package/components/datagrids/slots/DataGridEnum.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridEnum.js +3 -3
- package/components/datagrids/slots/DataGridSlot.d.ts +12 -0
- package/components/datagrids/slots/DataGridSlot.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridSlot.js +105 -89
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.d.ts +3 -10
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.js +34 -33
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.d.ts +1 -13
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.js +27 -26
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.d.ts +3 -4
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +77 -47
- package/components/datagrids/tests/helpers/useListViewConfig.d.ts +12 -0
- package/components/datagrids/tests/helpers/useListViewConfig.d.ts.map +1 -0
- package/components/datagrids/types.d.ts +58 -0
- package/components/datagrids/types.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/CardsView.js +14 -14
- package/components/datagrids/views/ListView/ListView.d.ts +8 -0
- package/components/datagrids/views/ListView/ListView.d.ts.map +1 -0
- package/components/datagrids/views/ListView/ListView.js +98 -0
- package/components/datagrids/views/ListView/hooks/useListContent/index.d.ts +2 -0
- package/components/datagrids/views/{CardsView/helpers/scrollToCardElement → ListView/hooks/useListContent}/index.d.ts.map +1 -1
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.d.ts +10 -0
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.js +112 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/index.d.ts +3 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/types.d.ts +27 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/useListVirtualizer.d.ts +19 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/useListVirtualizer.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useListVirtualizer/useListVirtualizer.js +23 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/index.d.ts +3 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/types.d.ts +20 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/useModalDetail.d.ts +7 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/useModalDetail.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useModalDetail/useModalDetail.js +72 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/index.d.ts +3 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/types.d.ts +13 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/useProcessedColumns.d.ts +49 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/useProcessedColumns.d.ts.map +1 -0
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/useProcessedColumns.js +30 -0
- package/components/datagrids/views/ListView/index.d.ts +3 -0
- package/components/datagrids/views/ListView/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.d.ts +9 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.js +113 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/types.d.ts +39 -0
- package/components/datagrids/views/ListView/subcomponents/ListDetail/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/ListRow.d.ts +12 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/ListRow.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/ListRow.js +96 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/ListHeader.d.ts +8 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/ListHeader.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/ListHeader.js +83 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/types.d.ts +14 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/subcomponents/ListHeader/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/types.d.ts +81 -0
- package/components/datagrids/views/ListView/subcomponents/ListRow/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/Settings.d.ts +7 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/Settings.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/Settings.js +24 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/types.d.ts +5 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts +7 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +62 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +253 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +3 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +32 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/types.d.ts +5 -0
- package/components/datagrids/views/ListView/subcomponents/Settings/types.d.ts.map +1 -0
- package/components/datagrids/views/ListView/types.d.ts +7 -0
- package/components/datagrids/views/ListView/types.d.ts.map +1 -0
- package/components/datagrids/views/adapters/RenderContent/RenderContent.d.ts +2 -1
- package/components/datagrids/views/adapters/RenderContent/RenderContent.d.ts.map +1 -1
- package/components/datagrids/views/adapters/RenderContent/RenderContent.js +7 -6
- package/package.json +7 -6
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/index.d.ts +0 -2
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/scrollToCardElement.d.ts +0 -10
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/scrollToCardElement.d.ts.map +0 -1
- package/components/datagrids/views/CardsView/helpers/scrollToCardElement/scrollToCardElement.js +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { alpha as
|
|
1
|
+
import { alpha as t } from "@mui/material";
|
|
2
2
|
import { getTypographyStyles as i } from "../../utils/getTypographyStyles.js";
|
|
3
3
|
import { getSizeStyles as o } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
4
4
|
const d = {
|
|
@@ -7,14 +7,14 @@ const d = {
|
|
|
7
7
|
* Estilos para el contenedor principal del DataGrid.
|
|
8
8
|
* ***************************************************
|
|
9
9
|
*/
|
|
10
|
-
datagridRoot: ({ theme:
|
|
10
|
+
datagridRoot: ({ theme: r }) => ({
|
|
11
11
|
display: "flex",
|
|
12
12
|
flexDirection: "column",
|
|
13
13
|
container: "container / inline-size",
|
|
14
14
|
background: "transparent",
|
|
15
|
-
borderRadius:
|
|
15
|
+
borderRadius: r.vars.size.borderRadius.r1,
|
|
16
16
|
position: "relative",
|
|
17
|
-
gap:
|
|
17
|
+
gap: r.vars.size.baseSpacings.sp3,
|
|
18
18
|
height: "100%",
|
|
19
19
|
width: "100%",
|
|
20
20
|
flex: 1,
|
|
@@ -22,47 +22,47 @@ const d = {
|
|
|
22
22
|
"& .rdg .MuiCheckbox-root": {
|
|
23
23
|
overflow: "visible",
|
|
24
24
|
padding: 0,
|
|
25
|
-
...
|
|
26
|
-
width:
|
|
27
|
-
height:
|
|
25
|
+
...r.generalSettings.isMobile ? {
|
|
26
|
+
width: r.vars.size.mobile.small.action,
|
|
27
|
+
height: r.vars.size.mobile.small.action
|
|
28
28
|
} : {
|
|
29
|
-
width:
|
|
30
|
-
height:
|
|
29
|
+
width: r.vars.size.desktop.small.action,
|
|
30
|
+
height: r.vars.size.desktop.small.action
|
|
31
31
|
},
|
|
32
32
|
display: "inline-flex",
|
|
33
33
|
justifyContent: "center",
|
|
34
34
|
alignItems: "center",
|
|
35
|
-
borderRadius:
|
|
35
|
+
borderRadius: r.size.borderRadius.r1,
|
|
36
36
|
"&:hover": {
|
|
37
|
-
backgroundColor:
|
|
37
|
+
backgroundColor: r.vars.palette.default.hoverOpacity
|
|
38
38
|
},
|
|
39
39
|
"&:active": {
|
|
40
|
-
backgroundColor:
|
|
40
|
+
backgroundColor: r.vars.palette.default.activeOpacity
|
|
41
41
|
},
|
|
42
42
|
"&.Mui-checked": {
|
|
43
43
|
"&:hover": {
|
|
44
|
-
backgroundColor:
|
|
44
|
+
backgroundColor: r.vars.palette.primary.hoverOpacity,
|
|
45
45
|
"& ..": {
|
|
46
|
-
backgroundColor:
|
|
46
|
+
backgroundColor: r.vars.palette.primary.hover
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"&:active": {
|
|
50
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: r.vars.palette.primary.activeOpacity,
|
|
51
51
|
"& .M4LIcon-icon": {
|
|
52
|
-
backgroundColor:
|
|
52
|
+
backgroundColor: r.vars.palette.primary.active
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"&.Mui-focusVisible, &:focus-visible": {
|
|
57
|
-
outline: `1px solid ${
|
|
57
|
+
outline: `1px solid ${r.vars.palette.primary.focusVisible}`
|
|
58
58
|
},
|
|
59
59
|
"& > svg": {
|
|
60
|
-
color:
|
|
60
|
+
color: r.vars.palette.text.secondary
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"&.M4LDataGrid-xs": {
|
|
64
64
|
"& .M4LDataGrid-actions": {
|
|
65
|
-
height:
|
|
65
|
+
height: r.vars.size.baseSpacings.sp11,
|
|
66
66
|
"& .M4LPager-labelRowsPerPageContainer": {
|
|
67
67
|
"& .M4LTypography-root": {
|
|
68
68
|
display: "none"
|
|
@@ -74,33 +74,33 @@ const d = {
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"& .M4LDataGrid-tableContaniner:not(.M4LDataGrid-withActions)": {
|
|
77
|
-
top: `${
|
|
77
|
+
top: `${r.vars.size.baseSpacings.sp0} !important`
|
|
78
78
|
},
|
|
79
79
|
"&& .M4lclassCssSpecificity": {
|
|
80
80
|
fontWeight: 400
|
|
81
81
|
},
|
|
82
82
|
'& [role="row"]:last-of-type': {
|
|
83
83
|
"& .rdg-cell": {
|
|
84
|
-
boxShadow: `inset 0 0.5px 0 0 ${
|
|
84
|
+
boxShadow: `inset 0 0.5px 0 0 ${r.vars.palette?.border.secondary}, inset 0 -0.5px 0 0 ${r.vars.palette?.border.secondary}`
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}),
|
|
88
|
-
customHeader: ({ ownerState:
|
|
89
|
-
display:
|
|
88
|
+
customHeader: ({ ownerState: r }) => ({
|
|
89
|
+
display: r?.visibleCustomHeader ? "block" : "none"
|
|
90
90
|
}),
|
|
91
91
|
/**
|
|
92
92
|
* Estilos del contenedor de las acciones
|
|
93
93
|
*/
|
|
94
|
-
actionsRoot: ({ theme:
|
|
94
|
+
actionsRoot: ({ theme: r }) => ({
|
|
95
95
|
display: "flex",
|
|
96
96
|
alignItems: "center",
|
|
97
97
|
justifyContent: "space-between",
|
|
98
98
|
background: "transparent",
|
|
99
|
-
borderRadius:
|
|
100
|
-
gap:
|
|
99
|
+
borderRadius: r.vars.size.borderRadius.r1,
|
|
100
|
+
gap: r.vars.size.baseSpacings.sp1,
|
|
101
101
|
height: "fit-content",
|
|
102
|
-
...
|
|
103
|
-
minHeight:
|
|
102
|
+
...r.generalSettings.isMobile && {
|
|
103
|
+
minHeight: r.vars.size.baseSpacings.sp10
|
|
104
104
|
},
|
|
105
105
|
"& .mobile-menu-actions": {
|
|
106
106
|
marginRight: "auto"
|
|
@@ -109,83 +109,83 @@ const d = {
|
|
|
109
109
|
/**
|
|
110
110
|
* Estilos para el contenedor de las acciones ezquierdo
|
|
111
111
|
*/
|
|
112
|
-
containerLeftActions: ({ theme:
|
|
112
|
+
containerLeftActions: ({ theme: r }) => ({
|
|
113
113
|
display: "flex",
|
|
114
114
|
flexDirection: "row",
|
|
115
|
-
gap:
|
|
115
|
+
gap: r.vars.size.baseSpacings["sp0-5"],
|
|
116
116
|
alignItems: "center",
|
|
117
|
-
borderRadius:
|
|
118
|
-
border:
|
|
119
|
-
borderColor:
|
|
120
|
-
padding:
|
|
121
|
-
boxShadow:
|
|
117
|
+
borderRadius: r.vars.size.borderRadius.r2,
|
|
118
|
+
border: r.vars.size.borderStroke.container,
|
|
119
|
+
borderColor: r.vars.palette?.border.disabled,
|
|
120
|
+
padding: r.vars.size.baseSpacings.sp1,
|
|
121
|
+
boxShadow: r.vars.customShadows?.z1
|
|
122
122
|
}),
|
|
123
123
|
/**
|
|
124
124
|
* Estilos para el contenedor de las acciones derecho
|
|
125
125
|
*/
|
|
126
|
-
containerRightActions: ({ theme:
|
|
126
|
+
containerRightActions: ({ theme: r }) => ({
|
|
127
127
|
display: "flex",
|
|
128
128
|
flexDirection: "row",
|
|
129
|
-
gap:
|
|
129
|
+
gap: r.vars.size.baseSpacings["sp0-5"],
|
|
130
130
|
alignItems: "center"
|
|
131
131
|
}),
|
|
132
132
|
/**
|
|
133
133
|
*Estilos para el contenedor de la paginación y filas por página
|
|
134
134
|
*/
|
|
135
|
-
controlNavigate: ({ theme:
|
|
135
|
+
controlNavigate: ({ theme: r }) => ({
|
|
136
136
|
display: "flex",
|
|
137
137
|
alignItems: "center",
|
|
138
138
|
flexDirection: "row",
|
|
139
|
-
gap:
|
|
139
|
+
gap: r.vars.size.baseSpacings.sp2,
|
|
140
140
|
flexWrap: "wrap",
|
|
141
141
|
height: "fit-content"
|
|
142
142
|
}),
|
|
143
143
|
/**
|
|
144
144
|
* container de los botones de acciones
|
|
145
145
|
*/
|
|
146
|
-
actionsConfigContainer: ({ theme:
|
|
146
|
+
actionsConfigContainer: ({ theme: r }) => ({
|
|
147
147
|
width: "100%",
|
|
148
148
|
display: "flex",
|
|
149
149
|
flexDirection: "row",
|
|
150
150
|
justifyContent: "space-between",
|
|
151
|
-
gap:
|
|
151
|
+
gap: r.vars.size.baseSpacings.sp3,
|
|
152
152
|
alignItems: "center"
|
|
153
153
|
}),
|
|
154
154
|
/**
|
|
155
155
|
* Estilos para el contenedor principal de RowsCount
|
|
156
156
|
*/
|
|
157
|
-
rowsCountRoot: ({ theme:
|
|
157
|
+
rowsCountRoot: ({ theme: r }) => ({
|
|
158
158
|
alignItems: "center",
|
|
159
159
|
display: "flex",
|
|
160
|
-
gap:
|
|
160
|
+
gap: r.vars.size.baseSpacings.sp2
|
|
161
161
|
}),
|
|
162
162
|
/**
|
|
163
163
|
* Estilos para el label de RowsCount
|
|
164
164
|
*/
|
|
165
|
-
rowsCountLabel: ({ theme:
|
|
166
|
-
color:
|
|
165
|
+
rowsCountLabel: ({ theme: r, ownerState: e }) => ({
|
|
166
|
+
color: r.vars.palette.text.primary,
|
|
167
167
|
fontWeight: 400,
|
|
168
168
|
height: "100%",
|
|
169
|
-
lineHeight:
|
|
169
|
+
lineHeight: r.vars.size.baseSpacings.sp4,
|
|
170
170
|
fontSize: i(
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
r.generalSettings.isMobile,
|
|
172
|
+
e?.size || "medium",
|
|
173
173
|
"body"
|
|
174
174
|
).fontSize
|
|
175
175
|
}),
|
|
176
176
|
/**
|
|
177
177
|
* Estilos para el valor de RowsCount
|
|
178
178
|
*/
|
|
179
|
-
rowsCountValue: ({ theme:
|
|
180
|
-
background:
|
|
181
|
-
borderRadius:
|
|
182
|
-
paddingBottom:
|
|
183
|
-
paddingLeft:
|
|
179
|
+
rowsCountValue: ({ theme: r, ownerState: e }) => ({
|
|
180
|
+
background: r.vars.palette.background.default,
|
|
181
|
+
borderRadius: r.vars.size.baseSpacings.sp1,
|
|
182
|
+
paddingBottom: r.vars.size.baseSpacings["sp0-5"],
|
|
183
|
+
paddingLeft: r.vars.size.baseSpacings.sp1,
|
|
184
184
|
paddingRight: "6px",
|
|
185
|
-
paddingTop:
|
|
185
|
+
paddingTop: r.vars.size.baseSpacings.sp1,
|
|
186
186
|
fontSize: i(
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
r.generalSettings.isMobile,
|
|
188
|
+
e?.size || "medium",
|
|
189
189
|
"body"
|
|
190
190
|
).fontSize
|
|
191
191
|
}),
|
|
@@ -193,8 +193,8 @@ const d = {
|
|
|
193
193
|
* Estilos para el contenedor de las columnas
|
|
194
194
|
* de la tabla del modal de configuración de columnas.
|
|
195
195
|
*/
|
|
196
|
-
columnsConfigWrapper: ({ theme:
|
|
197
|
-
color:
|
|
196
|
+
columnsConfigWrapper: ({ theme: r }) => ({
|
|
197
|
+
color: r.vars.palette.text.primary,
|
|
198
198
|
position: "relative",
|
|
199
199
|
display: "flex",
|
|
200
200
|
flexDirection: "column",
|
|
@@ -206,11 +206,11 @@ const d = {
|
|
|
206
206
|
* de selección de las columnas en
|
|
207
207
|
* el modal de configuración de columnas.
|
|
208
208
|
*/
|
|
209
|
-
columnsConfigSelColumns: ({ theme:
|
|
210
|
-
color:
|
|
209
|
+
columnsConfigSelColumns: ({ theme: r, ownerState: e }) => ({
|
|
210
|
+
color: r.vars.palette.text.secondary,
|
|
211
211
|
...i(
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
r.generalSettings.isMobile,
|
|
213
|
+
e?.size || "medium",
|
|
214
214
|
"bodyDens"
|
|
215
215
|
)
|
|
216
216
|
}),
|
|
@@ -218,21 +218,21 @@ const d = {
|
|
|
218
218
|
* Estilos para el contenedor de la tabla
|
|
219
219
|
* en el modal de configuración de columnas.
|
|
220
220
|
*/
|
|
221
|
-
columnsConfigDataGrid: ({ theme:
|
|
221
|
+
columnsConfigDataGrid: ({ theme: r }) => ({
|
|
222
222
|
position: "relative",
|
|
223
223
|
display: "flex",
|
|
224
224
|
flexDirection: "column",
|
|
225
225
|
flexGrow: 1,
|
|
226
226
|
overflow: "auto",
|
|
227
|
-
gap:
|
|
227
|
+
gap: r.vars.size.baseSpacings.sp3
|
|
228
228
|
}),
|
|
229
229
|
/**
|
|
230
230
|
* Estilos para el contenedor de los botones
|
|
231
231
|
* de acción en el modal de configuración de columnas.
|
|
232
232
|
*/
|
|
233
|
-
columnsConfigActios: ({ theme:
|
|
234
|
-
paddingTop:
|
|
235
|
-
paddingBottom:
|
|
233
|
+
columnsConfigActios: ({ theme: r }) => ({
|
|
234
|
+
paddingTop: r.vars.size.baseSpacings.sp4,
|
|
235
|
+
paddingBottom: r.vars.size.baseSpacings.sp2,
|
|
236
236
|
display: "flex",
|
|
237
237
|
flexDirection: "row"
|
|
238
238
|
}),
|
|
@@ -241,26 +241,26 @@ const d = {
|
|
|
241
241
|
* Estilos el el input editor del DataGrid.
|
|
242
242
|
* *****************************************
|
|
243
243
|
*/
|
|
244
|
-
inputTexEditor: ({ theme:
|
|
244
|
+
inputTexEditor: ({ theme: r, ownerState: e }) => ({
|
|
245
245
|
appearance: "none",
|
|
246
246
|
boxSizing: "border-box",
|
|
247
247
|
inlineSize: "100%",
|
|
248
248
|
blockSize: "100%",
|
|
249
|
-
paddingBlock:
|
|
249
|
+
paddingBlock: r.vars.size.baseSpacings.sp0,
|
|
250
250
|
verticalAlign: "top",
|
|
251
251
|
textAlign: "right",
|
|
252
252
|
fontFamily: "inherit",
|
|
253
253
|
background: "transparent",
|
|
254
|
-
border: `1px solid ${
|
|
255
|
-
borderRadius:
|
|
256
|
-
...o(
|
|
254
|
+
border: `1px solid ${r.vars.palette?.border.secondary}`,
|
|
255
|
+
borderRadius: r.vars.size.borderRadius["r1-5"],
|
|
256
|
+
...o(r, e?.size || "medium", "case", (a) => ({
|
|
257
257
|
height: a
|
|
258
258
|
})),
|
|
259
|
-
padding:
|
|
259
|
+
padding: r.vars.size.baseSpacings.sp1,
|
|
260
260
|
outline: "none",
|
|
261
261
|
"&:focus": {
|
|
262
262
|
outline: "none",
|
|
263
|
-
border: `1px solid ${
|
|
263
|
+
border: `1px solid ${r.vars.palette?.border.secondary}`,
|
|
264
264
|
boxShadow: "none"
|
|
265
265
|
},
|
|
266
266
|
"&:hover": {
|
|
@@ -279,61 +279,61 @@ const d = {
|
|
|
279
279
|
* Estilos para el contenedor principal
|
|
280
280
|
* del componente Table.
|
|
281
281
|
*/
|
|
282
|
-
tableContaniner: ({ theme:
|
|
282
|
+
tableContaniner: ({ theme: r }) => ({
|
|
283
283
|
display: "flex",
|
|
284
284
|
flexDirection: "column",
|
|
285
285
|
position: "relative",
|
|
286
286
|
flexGrow: 1,
|
|
287
287
|
overflow: "hidden",
|
|
288
|
-
borderRadius:
|
|
288
|
+
borderRadius: r.vars.size.baseSpacings.sp1,
|
|
289
289
|
border: "none",
|
|
290
|
-
boxshadow:
|
|
291
|
-
background:
|
|
290
|
+
boxshadow: r.customShadows?.z2,
|
|
291
|
+
background: r.vars.palette.background.default,
|
|
292
292
|
"@container main (max-width: 600px)": {
|
|
293
|
-
top:
|
|
293
|
+
top: r.vars.size.baseSpacings.sp11
|
|
294
294
|
}
|
|
295
295
|
}),
|
|
296
296
|
/**
|
|
297
297
|
* Estilos para el contenedor del dataGrid
|
|
298
298
|
*/
|
|
299
|
-
tableWrapperDataGrid: ({ theme:
|
|
299
|
+
tableWrapperDataGrid: ({ theme: r, ownerState: e }) => ({
|
|
300
300
|
position: "relative",
|
|
301
301
|
height: "100%",
|
|
302
302
|
overflow: "hidden",
|
|
303
|
-
borderRadius:
|
|
304
|
-
border:
|
|
305
|
-
borderColor:
|
|
303
|
+
borderRadius: r.vars.size.borderRadius.r2,
|
|
304
|
+
border: r.vars.size.borderStroke.container,
|
|
305
|
+
borderColor: r.vars.palette?.border.secondary,
|
|
306
306
|
"& .rdg ": {
|
|
307
307
|
scrollBehavior: "smooth",
|
|
308
308
|
display: "grid",
|
|
309
309
|
contain: "content",
|
|
310
310
|
boxSizing: "border-box",
|
|
311
311
|
border: "none",
|
|
312
|
-
background:
|
|
313
|
-
gridColumnGap:
|
|
314
|
-
gridRowGap:
|
|
312
|
+
background: r.vars.palette.background.default,
|
|
313
|
+
gridColumnGap: r.vars.size.baseSpacings.sp0,
|
|
314
|
+
gridRowGap: r.vars.size.baseSpacings.sp0,
|
|
315
315
|
userSelect: "initial",
|
|
316
316
|
height: "100%",
|
|
317
317
|
contentVisibility: "unset",
|
|
318
318
|
overflow: "auto",
|
|
319
|
-
padding:
|
|
320
|
-
"--rdg-grid-inline-size":
|
|
321
|
-
"--rdg-header-background-color":
|
|
322
|
-
"--rdg-row-selected-background-color":
|
|
323
|
-
"--rdg-row-hover-background-color":
|
|
324
|
-
"--rdg-background-color":
|
|
325
|
-
"--rdg-selection-color":
|
|
326
|
-
"--row-selected-hover-background-color":
|
|
327
|
-
"--rdg-checkbox-color":
|
|
328
|
-
"--rdg-checkbox-focus-color":
|
|
329
|
-
|
|
330
|
-
|
|
319
|
+
padding: r.vars.size.baseSpacings.sp0,
|
|
320
|
+
"--rdg-grid-inline-size": r.vars.size.baseSpacings.sp0,
|
|
321
|
+
"--rdg-header-background-color": r.vars.palette.primary.opacity,
|
|
322
|
+
"--rdg-row-selected-background-color": r.vars.palette.primary.opacity,
|
|
323
|
+
"--rdg-row-hover-background-color": r.vars.palette.primary.opacity,
|
|
324
|
+
"--rdg-background-color": r.vars.palette.background.default,
|
|
325
|
+
"--rdg-selection-color": r.vars.palette.primary.focusVisible,
|
|
326
|
+
"--row-selected-hover-background-color": r.vars.palette.primary.toneOpacity,
|
|
327
|
+
"--rdg-checkbox-color": r.vars.palette.primary.enabled,
|
|
328
|
+
"--rdg-checkbox-focus-color": t(
|
|
329
|
+
r.colorSchemes.finalTheme.palette.primary.enabled,
|
|
330
|
+
r.colorSchemes.finalTheme.palette.action.selectedOpacity
|
|
331
331
|
),
|
|
332
332
|
"--rdg-row-header-height": "var(--rdg-row-height)",
|
|
333
333
|
"--rdg-border-color": "none",
|
|
334
334
|
"&:last-child .rdg-cell": {
|
|
335
335
|
border: "unset!important",
|
|
336
|
-
boxShadow: `inset 0 0.5px 0 0 ${
|
|
336
|
+
boxShadow: `inset 0 0.5px 0 0 ${r.vars.palette?.border.secondary}`
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
"&.MeasuringCell": {
|
|
@@ -350,19 +350,19 @@ const d = {
|
|
|
350
350
|
display: "contents"
|
|
351
351
|
},
|
|
352
352
|
'& [role="columnheader"]': {
|
|
353
|
-
paddingTop:
|
|
354
|
-
paddingBottom:
|
|
353
|
+
paddingTop: r.vars.size.baseSpacings.sp2,
|
|
354
|
+
paddingBottom: r.vars.size.baseSpacings.sp2,
|
|
355
355
|
"& .MuiInputBase-input": {
|
|
356
356
|
...i(
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
r.generalSettings.isMobile,
|
|
358
|
+
e?.size || "medium",
|
|
359
359
|
"body"
|
|
360
360
|
)
|
|
361
361
|
}
|
|
362
362
|
},
|
|
363
363
|
'& [role="grid"]': {
|
|
364
364
|
'& [aria-rowindex="1"].rdg-row .rdg-cell:last-child': {
|
|
365
|
-
borderTopRightRadius:
|
|
365
|
+
borderTopRightRadius: r.vars.size.baseSpacings.sp3
|
|
366
366
|
},
|
|
367
367
|
'& [aria-rowindex="2"].rdg-row .rdg-cell': {
|
|
368
368
|
boxShadow: "unset"
|
|
@@ -371,28 +371,28 @@ const d = {
|
|
|
371
371
|
"& .rdg-row": {
|
|
372
372
|
display: "contents",
|
|
373
373
|
'&[aria-selected="true"]': {
|
|
374
|
-
backgroundColor:
|
|
374
|
+
backgroundColor: r.vars.palette.primary.toneOpacity,
|
|
375
375
|
"&:hover": {
|
|
376
|
-
backgroundColor:
|
|
376
|
+
backgroundColor: r.vars.palette.primary.toneOpacity
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
"& .rdg-cell": {
|
|
380
|
-
backgroundColor:
|
|
380
|
+
backgroundColor: r.vars.palette.background.default
|
|
381
381
|
},
|
|
382
382
|
'&[aria-selected="false"] .rdg-cell': {
|
|
383
|
-
backgroundColor:
|
|
383
|
+
backgroundColor: r.vars.palette.background.default
|
|
384
384
|
},
|
|
385
385
|
"&:nth-of-type(odd)": {
|
|
386
386
|
"& .rdg-cell": {
|
|
387
|
-
backgroundColor:
|
|
387
|
+
backgroundColor: r.vars.palette.background.default
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
390
|
'&[aria-selected="true"] .rdg-cell': {
|
|
391
|
-
backgroundColor:
|
|
391
|
+
backgroundColor: r.vars.palette.primary?.toneOpacity
|
|
392
392
|
},
|
|
393
393
|
"&:hover": {
|
|
394
394
|
"& .rdg-cell": {
|
|
395
|
-
backgroundColor: `${
|
|
395
|
+
backgroundColor: `${r.vars.palette.default.toneOpacity} !important`,
|
|
396
396
|
transition: "background-color 0.1s linear"
|
|
397
397
|
}
|
|
398
398
|
},
|
|
@@ -402,7 +402,7 @@ const d = {
|
|
|
402
402
|
overflow: "clip",
|
|
403
403
|
position: "sticky",
|
|
404
404
|
outline: "none",
|
|
405
|
-
color:
|
|
405
|
+
color: r.vars.palette.text.primary,
|
|
406
406
|
paddingBlock: 0,
|
|
407
407
|
paddingInline: "8px",
|
|
408
408
|
borderInlineEnd: "1px solid var(--rdg-border-color)",
|
|
@@ -413,8 +413,8 @@ const d = {
|
|
|
413
413
|
whiteSpace: "nowrap",
|
|
414
414
|
textOverflow: "ellipsis",
|
|
415
415
|
...i(
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
r.generalSettings.isMobile,
|
|
417
|
+
e?.size || "medium",
|
|
418
418
|
"body"
|
|
419
419
|
),
|
|
420
420
|
lineHeight: "var(--rdg-row-height)!important",
|
|
@@ -425,25 +425,25 @@ const d = {
|
|
|
425
425
|
},
|
|
426
426
|
"& .checkbox-checked": {
|
|
427
427
|
"& .M4LIcon-icon": {
|
|
428
|
-
backgroundColor:
|
|
428
|
+
backgroundColor: r.vars.palette.primary.enabled
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
431
|
"& .checkbox-unChecked": {
|
|
432
432
|
"& .M4LIcon-icon": {
|
|
433
|
-
backgroundColor:
|
|
433
|
+
backgroundColor: r.vars.palette.text.primary
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
436
|
"& .rdg-text-editor": {
|
|
437
437
|
textAlign: "inherit",
|
|
438
|
-
color:
|
|
439
|
-
padding: `${
|
|
440
|
-
border:
|
|
438
|
+
color: r.vars.palette.text.secondary,
|
|
439
|
+
padding: `${r.vars.size.baseSpacings.sp0} ${r.vars.size.baseSpacings.sp2}`,
|
|
440
|
+
border: r.vars.size.baseSpacings.sp0,
|
|
441
441
|
borderTop: "0.5px solid",
|
|
442
|
-
borderBottom:
|
|
442
|
+
borderBottom: r.vars.size.borderStroke.container,
|
|
443
443
|
borderLeft: "0.5px solid",
|
|
444
444
|
borderRight: "0.5px solid",
|
|
445
|
-
borderColor: `${
|
|
446
|
-
...
|
|
445
|
+
borderColor: `${r.vars.palette?.border.disabled} !important`,
|
|
446
|
+
...r.colorSchemes.finalTheme.typography.body
|
|
447
447
|
},
|
|
448
448
|
"&:has(> .M4LRadio-root)": {
|
|
449
449
|
overflow: "visible",
|
|
@@ -471,9 +471,9 @@ const d = {
|
|
|
471
471
|
},
|
|
472
472
|
"&:after": {
|
|
473
473
|
content: '""',
|
|
474
|
-
borderRight: `${
|
|
474
|
+
borderRight: `${r.vars.size.baseSpacings.sp0} solid ${r.vars.palette.divider}`,
|
|
475
475
|
position: "absolute",
|
|
476
|
-
right:
|
|
476
|
+
right: r.vars.size.baseSpacings.sp0,
|
|
477
477
|
height: "100%"
|
|
478
478
|
},
|
|
479
479
|
"& .m4l_icon": {
|
|
@@ -484,7 +484,7 @@ const d = {
|
|
|
484
484
|
top: 0,
|
|
485
485
|
zIndex: 2,
|
|
486
486
|
"&:has(> .MuiCheckbox-root)": {
|
|
487
|
-
borderTopLeftRadius:
|
|
487
|
+
borderTopLeftRadius: r.vars.size.baseSpacings.sp2,
|
|
488
488
|
overflow: "visible",
|
|
489
489
|
display: "flex",
|
|
490
490
|
alignItems: "center",
|
|
@@ -493,36 +493,36 @@ const d = {
|
|
|
493
493
|
}
|
|
494
494
|
},
|
|
495
495
|
'& .rdg-cell[role="columnheader"] .rdg-header-sort-name': {
|
|
496
|
-
...
|
|
496
|
+
...r.colorSchemes.finalTheme.typography.bodyDens,
|
|
497
497
|
width: "100%",
|
|
498
498
|
display: "-webkit-box !important",
|
|
499
499
|
WebkitBoxOrient: "vertical !important",
|
|
500
|
-
WebkitLineClamp:
|
|
500
|
+
WebkitLineClamp: e?.currentRowHeightVariant === "compact" ? "1 !important" : e?.currentRowHeightVariant === "confortable" ? "3 !important" : "2 !important",
|
|
501
501
|
overflow: "hidden !important",
|
|
502
502
|
textOverflow: "ellipsis !important",
|
|
503
503
|
wordBreak: "break-word !important",
|
|
504
504
|
whiteSpace: "normal !important",
|
|
505
505
|
...i(
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
r.generalSettings.isMobile,
|
|
507
|
+
e?.size || "medium",
|
|
508
508
|
"bodyDens"
|
|
509
509
|
),
|
|
510
510
|
lineHeight: "var(--rdg-summary-row-height)!important",
|
|
511
|
-
color: `${
|
|
511
|
+
color: `${r.vars.palette.text.secondary}`
|
|
512
512
|
},
|
|
513
513
|
'& .rdg-cell:not([role="columnheader"]):not(:has(> .MuiCheckbox-root))': {
|
|
514
514
|
display: "-webkit-box !important",
|
|
515
515
|
WebkitBoxOrient: "vertical !important",
|
|
516
|
-
WebkitLineClamp:
|
|
516
|
+
WebkitLineClamp: e?.currentRowHeightVariant === "compact" ? "1 !important" : e?.currentRowHeightVariant === "confortable" ? "3 !important" : "2 !important",
|
|
517
517
|
overflow: "hidden !important",
|
|
518
518
|
textOverflow: "ellipsis !important",
|
|
519
519
|
wordBreak: "break-word !important",
|
|
520
520
|
whiteSpace: "normal !important",
|
|
521
|
-
lineHeight:
|
|
521
|
+
lineHeight: e?.currentRowHeightVariant === "compact" ? `${e?.currentRowHeight}px !important` : e?.currentRowHeightVariant === "confortable" ? `${(e?.currentRowHeight ?? 48) / 3}px !important` : `${(e?.currentRowHeight ?? 40) / 2}px !important`
|
|
522
522
|
},
|
|
523
523
|
'& .rdg-cell[role="columnheader"].filter-cell': {
|
|
524
524
|
"& .M4LDataGrid-draggableHeaderRoot": {
|
|
525
|
-
gap:
|
|
525
|
+
gap: r.vars.size.baseSpacings.sp3,
|
|
526
526
|
"& .rdg-header-sort-cell": {
|
|
527
527
|
maxHeight: "min-content"
|
|
528
528
|
},
|
|
@@ -572,7 +572,7 @@ const d = {
|
|
|
572
572
|
},
|
|
573
573
|
'& [role="columnheader"].rdg-cell.rdg-cell-align-right .rdg-header-sort-name': {
|
|
574
574
|
textAlign: "right",
|
|
575
|
-
paddingRight:
|
|
575
|
+
paddingRight: r.vars.size.baseSpacings.sp3
|
|
576
576
|
},
|
|
577
577
|
"& .rdg-row .rdg-cell-frozen-last:after": {
|
|
578
578
|
borderRight: "0px solid transparent"
|
|
@@ -589,11 +589,11 @@ const d = {
|
|
|
589
589
|
},
|
|
590
590
|
"& .rdg-row :last-child:after": {
|
|
591
591
|
borderRight: "0px solid",
|
|
592
|
-
borderColor:
|
|
592
|
+
borderColor: r.vars.palette.background.surface
|
|
593
593
|
},
|
|
594
594
|
"& .rdg-header-row": {
|
|
595
595
|
display: "contents",
|
|
596
|
-
backgroundColor:
|
|
596
|
+
backgroundColor: r.vars.palette.background.base,
|
|
597
597
|
fontWeight: "bold",
|
|
598
598
|
"& > .rdg-cell": {
|
|
599
599
|
zIndex: 2,
|
|
@@ -606,29 +606,29 @@ const d = {
|
|
|
606
606
|
"& .rdg-header-row .rdg-cell": {
|
|
607
607
|
gridTemplateColumns: "auto",
|
|
608
608
|
boxShadow: "unset!important",
|
|
609
|
-
borderBottom:
|
|
610
|
-
borderColor: `${
|
|
609
|
+
borderBottom: r.vars.size.borderStroke.container,
|
|
610
|
+
borderColor: `${r.vars.palette?.background.surface}!important`,
|
|
611
611
|
cursor: "pointer",
|
|
612
612
|
"&:hover": {
|
|
613
|
-
boxShadow: `inset 1px 0 0 0 ${
|
|
613
|
+
boxShadow: `inset 1px 0 0 0 ${r.vars.palette?.border.default}, inset -1px 0 0 0 ${r.vars.palette?.border.default}!important `
|
|
614
614
|
},
|
|
615
615
|
"&[data-resize]": {
|
|
616
616
|
touchAction: "none"
|
|
617
617
|
},
|
|
618
618
|
'& [draggable="true"]': {
|
|
619
|
-
fontSize:
|
|
619
|
+
fontSize: r.typography.body
|
|
620
620
|
},
|
|
621
621
|
"&.rdg-cell-frozen-last": {
|
|
622
|
-
borderColor:
|
|
622
|
+
borderColor: r.vars.palette.background.default,
|
|
623
623
|
boxShadow: "var(--rdg-frozen-cell-box-shadow)"
|
|
624
624
|
},
|
|
625
625
|
"& .rdg-header-sort-cell": {
|
|
626
626
|
"& .rdg-header-sort-name + span": {
|
|
627
627
|
position: "absolute",
|
|
628
628
|
margin: "auto",
|
|
629
|
-
right:
|
|
629
|
+
right: r.vars.size.baseSpacings.sp2,
|
|
630
630
|
"& .rdg-sort-arrow": {
|
|
631
|
-
width:
|
|
631
|
+
width: r.vars.size.baseSpacings.sp2
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
},
|
|
@@ -643,107 +643,106 @@ const d = {
|
|
|
643
643
|
inlineSize: "10px"
|
|
644
644
|
},
|
|
645
645
|
"& .rdg-header-row :last-child.rdg-cell": {
|
|
646
|
-
borderTopRightRadius:
|
|
646
|
+
borderTopRightRadius: r.vars.size.baseSpacings.sp0,
|
|
647
647
|
"&:after": {
|
|
648
|
-
borderRight: `${
|
|
648
|
+
borderRight: `${r.vars.size.baseSpacings.sp0} solid transparent`
|
|
649
649
|
}
|
|
650
650
|
},
|
|
651
651
|
"& .filter_cell_div": {
|
|
652
|
-
paddingLeft:
|
|
653
|
-
paddingRight:
|
|
652
|
+
paddingLeft: r.vars.size.baseSpacings.sp2,
|
|
653
|
+
paddingRight: r.vars.size.baseSpacings.sp2
|
|
654
654
|
},
|
|
655
655
|
"& .rdg-header-sort-cell": {
|
|
656
656
|
width: "100%",
|
|
657
657
|
flexGrow: "1",
|
|
658
658
|
alignItems: "center",
|
|
659
|
-
color:
|
|
659
|
+
color: r.vars.palette.text.primary,
|
|
660
660
|
height: "100%"
|
|
661
661
|
}
|
|
662
662
|
}),
|
|
663
663
|
/**
|
|
664
664
|
* Estilos para el wrapper del checkbox en las celdas.
|
|
665
665
|
*/
|
|
666
|
-
checkboxCellWrapper: ({ theme:
|
|
666
|
+
checkboxCellWrapper: ({ theme: r }) => ({
|
|
667
667
|
"& .checkbox-checked": {
|
|
668
668
|
"& .M4LIcon-icon": {
|
|
669
|
-
backgroundColor:
|
|
669
|
+
backgroundColor: r.vars.palette.primary.enabled
|
|
670
670
|
}
|
|
671
671
|
},
|
|
672
672
|
"& .checkbox-unChecked": {
|
|
673
673
|
"& .M4LIcon-icon": {
|
|
674
|
-
backgroundColor:
|
|
674
|
+
backgroundColor: r.vars.palette.text.primary
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
677
|
"& .MuiCheckbox-root": {
|
|
678
678
|
overflow: "visible",
|
|
679
679
|
padding: 0,
|
|
680
|
-
...
|
|
681
|
-
width:
|
|
682
|
-
height:
|
|
680
|
+
...r.generalSettings.isMobile ? {
|
|
681
|
+
width: r.vars.size.mobile.small.action,
|
|
682
|
+
height: r.vars.size.mobile.small.action
|
|
683
683
|
} : {
|
|
684
|
-
width:
|
|
685
|
-
height:
|
|
684
|
+
width: r.vars.size.desktop.small.action,
|
|
685
|
+
height: r.vars.size.desktop.small.action
|
|
686
686
|
},
|
|
687
687
|
display: "inline-flex",
|
|
688
688
|
justifyContent: "center",
|
|
689
689
|
alignItems: "center",
|
|
690
|
-
borderRadius:
|
|
690
|
+
borderRadius: r.size.borderRadius.r1,
|
|
691
691
|
"&:hover": {
|
|
692
|
-
backgroundColor:
|
|
692
|
+
backgroundColor: r.vars.palette.default.hoverOpacity
|
|
693
693
|
},
|
|
694
694
|
"&:active": {
|
|
695
|
-
backgroundColor:
|
|
695
|
+
backgroundColor: r.vars.palette.default.activeOpacity
|
|
696
696
|
},
|
|
697
697
|
"&.Mui-checked": {
|
|
698
698
|
"&:hover": {
|
|
699
|
-
backgroundColor:
|
|
699
|
+
backgroundColor: r.vars.palette.primary.hoverOpacity,
|
|
700
700
|
"& .M4LIcon-icon": {
|
|
701
|
-
backgroundColor:
|
|
701
|
+
backgroundColor: r.vars.palette.primary.hover
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
704
|
"&:active": {
|
|
705
|
-
backgroundColor:
|
|
705
|
+
backgroundColor: r.vars.palette.primary.activeOpacity,
|
|
706
706
|
"& .M4LIcon-icon": {
|
|
707
|
-
backgroundColor:
|
|
707
|
+
backgroundColor: r.vars.palette.primary.active
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
},
|
|
711
711
|
"&.Mui-focusVisible, &:focus-visible": {
|
|
712
|
-
outline: `1px solid ${
|
|
712
|
+
outline: `1px solid ${r.vars.palette.primary.focusVisible}`
|
|
713
713
|
},
|
|
714
714
|
"& > svg": {
|
|
715
|
-
color:
|
|
715
|
+
color: r.vars.palette.text.secondary
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
}),
|
|
719
719
|
/**
|
|
720
720
|
* Estilos para el contenedor de toggle de vista cards.
|
|
721
721
|
*/
|
|
722
|
-
containerToggleCards: ({ theme:
|
|
722
|
+
containerToggleCards: ({ theme: r }) => ({
|
|
723
723
|
display: "grid",
|
|
724
724
|
gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
|
|
725
|
-
gap:
|
|
726
|
-
padding: e.vars.size.baseSpacings.sp3
|
|
725
|
+
gap: r.vars.size.baseSpacings.sp3
|
|
727
726
|
}),
|
|
728
727
|
/**
|
|
729
728
|
* Estilos para el botón de toggle de tarjeta.
|
|
730
729
|
*/
|
|
731
|
-
cardToggleCardButton: ({ theme:
|
|
730
|
+
cardToggleCardButton: ({ theme: r, ownerState: e }) => ({
|
|
732
731
|
display: "flex",
|
|
733
732
|
flexDirection: "column",
|
|
734
733
|
alignItems: "center",
|
|
735
734
|
cursor: "pointer",
|
|
736
|
-
height:
|
|
737
|
-
width:
|
|
738
|
-
gap:
|
|
739
|
-
borderColor:
|
|
735
|
+
height: r.vars.size.baseSpacings.sp14,
|
|
736
|
+
width: r.vars.size.baseSpacings.sp14,
|
|
737
|
+
gap: r.vars.size.baseSpacings.sp2,
|
|
738
|
+
borderColor: e?.isActive ? r.vars.palette.primary.toneOpacity : r.vars.palette.border.disabled
|
|
740
739
|
}),
|
|
741
740
|
/**
|
|
742
741
|
* Estilos para el texto del botón de toggle.
|
|
743
742
|
*/
|
|
744
|
-
textToggleCardButton: ({ theme:
|
|
743
|
+
textToggleCardButton: ({ theme: r, ownerState: e }) => ({
|
|
745
744
|
"&.M4LTypography-root": {
|
|
746
|
-
color:
|
|
745
|
+
color: e?.isActive ? r.vars.palette.primary.semanticText : r.vars.palette.text.secondary,
|
|
747
746
|
cursor: "pointer"
|
|
748
747
|
}
|
|
749
748
|
}),
|
|
@@ -760,23 +759,110 @@ const d = {
|
|
|
760
759
|
alignItems: "start"
|
|
761
760
|
}
|
|
762
761
|
}),
|
|
762
|
+
/**
|
|
763
|
+
* List view container (independent from cards; virtualized list).
|
|
764
|
+
*/
|
|
765
|
+
listContainer: () => ({
|
|
766
|
+
flexGrow: 1,
|
|
767
|
+
flexShrink: 1,
|
|
768
|
+
flexBasis: 0,
|
|
769
|
+
minHeight: 0,
|
|
770
|
+
overflow: "auto"
|
|
771
|
+
}),
|
|
772
|
+
/**
|
|
773
|
+
* List view row wrapper. Same visual style as card (outlined): background, border radius, border, hover/active.
|
|
774
|
+
* List is full-width (one row per line); card gets variant="outlined" from Card component.
|
|
775
|
+
*/
|
|
776
|
+
list: ({ theme: r, ownerState: e }) => ({
|
|
777
|
+
display: "flex",
|
|
778
|
+
flexDirection: "column",
|
|
779
|
+
alignItems: "start",
|
|
780
|
+
width: "100%",
|
|
781
|
+
minWidth: 0,
|
|
782
|
+
maxWidth: "none",
|
|
783
|
+
cursor: "pointer",
|
|
784
|
+
padding: r.vars.size.baseSpacings["sp2-5"],
|
|
785
|
+
gap: "0 !important",
|
|
786
|
+
borderRadius: r.vars.size.borderRadius.r0,
|
|
787
|
+
backgroundColor: r.vars.palette.background.default,
|
|
788
|
+
overflow: "hidden",
|
|
789
|
+
transition: "all 0.2s ease-in-out",
|
|
790
|
+
borderBottom: `1px solid ${r.vars.palette.border.disabled} !important`,
|
|
791
|
+
borderLeft: "2px solid transparent !important",
|
|
792
|
+
border: "0px solid transparent",
|
|
793
|
+
// When the checkbox (or any inner control) receives focus,
|
|
794
|
+
// Card applies a focus-within border color to ALL sides.
|
|
795
|
+
// For ListView ("CustomList" behavior), only the left edge must be highlighted.
|
|
796
|
+
"&:focus-visible, &:focus-within": {
|
|
797
|
+
borderColor: `${r.vars.palette.border.disabled} !important`
|
|
798
|
+
},
|
|
799
|
+
"&:hover": {
|
|
800
|
+
zIndex: 1,
|
|
801
|
+
borderLeft: `2px solid ${r.vars.palette.border.secondary} !important`,
|
|
802
|
+
backgroundColor: r.vars.palette.background.default,
|
|
803
|
+
boxShadow: r.vars.customShadows.z1
|
|
804
|
+
},
|
|
805
|
+
"&:active": {
|
|
806
|
+
backgroundColor: r.vars.palette.background.default
|
|
807
|
+
},
|
|
808
|
+
...e?.checked && !e?.selected ? {
|
|
809
|
+
borderLeft: `2px solid ${r.vars.palette.primary.activeOpacity} !important`,
|
|
810
|
+
border: "0px solid transparent",
|
|
811
|
+
"&:focus-visible, &:focus-within, &:hover": {
|
|
812
|
+
// Card's focus-within sets `border` on ALL sides with `!important`.
|
|
813
|
+
// For CustomList (ListView checkeable), only the left edge must be highlighted.
|
|
814
|
+
border: "0px solid transparent !important",
|
|
815
|
+
borderLeft: `2px solid ${r.vars.palette.primary.activeOpacity} !important`
|
|
816
|
+
}
|
|
817
|
+
} : {},
|
|
818
|
+
...e?.selected ? {
|
|
819
|
+
borderLeft: `2px solid ${r.vars.palette.primary.selected} !important`,
|
|
820
|
+
"&:hover": {
|
|
821
|
+
borderLeft: `2px solid ${r.vars.palette.primary.selected} !important`
|
|
822
|
+
},
|
|
823
|
+
"&:focus-visible, &:focus-within": {
|
|
824
|
+
// Same reasoning as the checkeable state: override Card's focus border.
|
|
825
|
+
border: "0px solid transparent !important",
|
|
826
|
+
borderLeft: `2px solid ${r.vars.palette.primary.selected} !important`
|
|
827
|
+
}
|
|
828
|
+
} : {}
|
|
829
|
+
}),
|
|
830
|
+
/**
|
|
831
|
+
* Wrapper for each virtualized list row (receives style from FixedSizeList).
|
|
832
|
+
* Same as card slot usage: no extra layout; only forwards the style.
|
|
833
|
+
*/
|
|
834
|
+
listRowVirtualizedItem: ({ ownerState: r }) => ({
|
|
835
|
+
position: "absolute",
|
|
836
|
+
top: 0,
|
|
837
|
+
left: 0,
|
|
838
|
+
width: "100%",
|
|
839
|
+
transform: `translateY(${r.offsetTop ?? 0}px)`
|
|
840
|
+
}),
|
|
841
|
+
/**
|
|
842
|
+
* Container that holds the total virtualized height for TanStack Virtual.
|
|
843
|
+
* This element defines the scrollable area; its height equals the sum of all row heights.
|
|
844
|
+
*/
|
|
845
|
+
listVirtualContainer: ({ ownerState: r }) => ({
|
|
846
|
+
width: "100%",
|
|
847
|
+
position: "relative",
|
|
848
|
+
height: `${r.totalSize ?? 0}px`
|
|
849
|
+
}),
|
|
763
850
|
/**
|
|
764
851
|
* Estilos para cada tarjeta individual en CardsView.
|
|
765
852
|
*/
|
|
766
|
-
card: ({ theme:
|
|
853
|
+
card: ({ theme: r, ownerState: e }) => ({
|
|
767
854
|
display: "flex",
|
|
768
855
|
flexDirection: "column",
|
|
769
856
|
alignItems: "start",
|
|
770
|
-
minWidth: "280px",
|
|
771
|
-
maxWidth: "580px",
|
|
857
|
+
...e?.listCard ? { width: "100%", minWidth: 0, maxWidth: "none" } : { minWidth: "280px", maxWidth: "580px" },
|
|
772
858
|
cursor: "pointer",
|
|
773
|
-
padding:
|
|
859
|
+
padding: r.vars.size.baseSpacings["sp2-5"],
|
|
774
860
|
gap: "0 !important",
|
|
775
|
-
...
|
|
776
|
-
borderColor:
|
|
861
|
+
...e?.checked && !e?.selected ? {
|
|
862
|
+
borderColor: r.vars.palette.primary.activeOpacity
|
|
777
863
|
} : {},
|
|
778
|
-
...
|
|
779
|
-
borderColor:
|
|
864
|
+
...e?.selected ? {
|
|
865
|
+
borderColor: r.vars.palette.primary.selected
|
|
780
866
|
} : {}
|
|
781
867
|
}),
|
|
782
868
|
cardContentWrapper: () => ({
|
|
@@ -785,13 +871,13 @@ const d = {
|
|
|
785
871
|
/**
|
|
786
872
|
* Estilos para el header de la tarjeta.
|
|
787
873
|
*/
|
|
788
|
-
cardHeader: ({ theme:
|
|
874
|
+
cardHeader: ({ theme: r, ownerState: e }) => ({
|
|
789
875
|
display: "flex",
|
|
790
|
-
justifyContent:
|
|
876
|
+
justifyContent: e?.hasCheckedRows ? "space-between" : "flex-end",
|
|
791
877
|
alignItems: "center",
|
|
792
878
|
width: "100%",
|
|
793
879
|
height: "24px",
|
|
794
|
-
gap:
|
|
880
|
+
gap: r.vars.size.baseSpacings.sp2
|
|
795
881
|
}),
|
|
796
882
|
/**
|
|
797
883
|
* Estilos para la sección izquierda del header de tarjeta.
|
|
@@ -803,49 +889,49 @@ const d = {
|
|
|
803
889
|
/**
|
|
804
890
|
* Estilos para la sección derecha del header de tarjeta.
|
|
805
891
|
*/
|
|
806
|
-
cardHeaderRight: ({ theme:
|
|
892
|
+
cardHeaderRight: ({ theme: r }) => ({
|
|
807
893
|
display: "flex",
|
|
808
894
|
alignItems: "center",
|
|
809
|
-
gap:
|
|
895
|
+
gap: r.vars.size.baseSpacings["sp0-5"]
|
|
810
896
|
}),
|
|
811
897
|
/**
|
|
812
898
|
* Estilos para el contenido de la tarjeta.
|
|
813
899
|
*/
|
|
814
|
-
cardContent: ({ theme:
|
|
900
|
+
cardContent: ({ theme: r }) => ({
|
|
815
901
|
display: "flex",
|
|
816
902
|
flexDirection: "column",
|
|
817
|
-
gap:
|
|
818
|
-
padding:
|
|
903
|
+
gap: r.vars.size.baseSpacings.sp2,
|
|
904
|
+
padding: r.vars.size.density.compact
|
|
819
905
|
}),
|
|
820
906
|
/**
|
|
821
907
|
* Estilos para el contenedor de label y valor de columna.
|
|
822
908
|
*/
|
|
823
|
-
containerLabelValueColumn: ({ theme:
|
|
909
|
+
containerLabelValueColumn: ({ theme: r, ownerState: e }) => ({
|
|
824
910
|
display: "flex",
|
|
825
|
-
flexDirection:
|
|
826
|
-
justifyContent:
|
|
827
|
-
alignItems:
|
|
828
|
-
gap:
|
|
829
|
-
width:
|
|
911
|
+
flexDirection: e?.hasActions ? "row" : "column",
|
|
912
|
+
justifyContent: e?.hasActions ? "space-between" : "flex-start",
|
|
913
|
+
alignItems: e?.hasActions ? "center" : "start",
|
|
914
|
+
gap: r.vars.size.baseSpacings["sp0-5"],
|
|
915
|
+
width: e?.hasActions ? "100%" : "auto"
|
|
830
916
|
}),
|
|
831
917
|
/**
|
|
832
918
|
* Estilos para el wrapper del contenido de columna.
|
|
833
919
|
*/
|
|
834
|
-
contentWrapperColumn: ({ theme:
|
|
835
|
-
flex:
|
|
920
|
+
contentWrapperColumn: ({ theme: r, ownerState: e }) => ({
|
|
921
|
+
flex: e?.hasActions ? 1 : "none",
|
|
836
922
|
display: "flex",
|
|
837
923
|
flexDirection: "column",
|
|
838
924
|
alignItems: "start",
|
|
839
|
-
gap:
|
|
925
|
+
gap: r.vars.size.baseSpacings["sp0-5"]
|
|
840
926
|
}),
|
|
841
927
|
/**
|
|
842
928
|
* Estilos para el contenedor de detalle de tarjeta.
|
|
843
929
|
*/
|
|
844
|
-
cardDetailContainer: ({ theme:
|
|
930
|
+
cardDetailContainer: ({ theme: r }) => ({
|
|
845
931
|
display: "flex",
|
|
846
932
|
flexDirection: "column",
|
|
847
|
-
gap:
|
|
848
|
-
padding:
|
|
933
|
+
gap: r.vars.size.baseSpacings.sp3,
|
|
934
|
+
padding: r.vars.size.baseSpacings.sp3,
|
|
849
935
|
height: "100%",
|
|
850
936
|
overflow: "auto"
|
|
851
937
|
}),
|
|
@@ -860,10 +946,10 @@ const d = {
|
|
|
860
946
|
/**
|
|
861
947
|
* Estilos para el wrapper del editor de celda.
|
|
862
948
|
*/
|
|
863
|
-
editorCellWrapper: ({ theme:
|
|
949
|
+
editorCellWrapper: ({ theme: r, ownerState: e }) => ({
|
|
864
950
|
overflow: "clip",
|
|
865
951
|
outline: "none",
|
|
866
|
-
color:
|
|
952
|
+
color: r.vars.palette.text.primary,
|
|
867
953
|
paddingBlock: 0,
|
|
868
954
|
alignContent: "center",
|
|
869
955
|
backgroundColor: "inherit",
|
|
@@ -873,11 +959,11 @@ const d = {
|
|
|
873
959
|
alignSelf: "stretch",
|
|
874
960
|
boxSizing: "border-box",
|
|
875
961
|
...i(
|
|
876
|
-
|
|
877
|
-
|
|
962
|
+
r.generalSettings.isMobile,
|
|
963
|
+
e?.size || "medium",
|
|
878
964
|
"body"
|
|
879
965
|
),
|
|
880
|
-
...o(
|
|
966
|
+
...o(r, e?.size || "medium", "base", (a) => ({
|
|
881
967
|
minHeight: a,
|
|
882
968
|
height: 24,
|
|
883
969
|
lineHeight: `${a} !important`
|
|
@@ -885,22 +971,22 @@ const d = {
|
|
|
885
971
|
"& input": {
|
|
886
972
|
width: "100%",
|
|
887
973
|
textAlign: "inherit",
|
|
888
|
-
color:
|
|
889
|
-
padding: `${
|
|
890
|
-
border: `1px solid ${
|
|
891
|
-
borderRadius:
|
|
974
|
+
color: r.vars.palette.text.secondary,
|
|
975
|
+
padding: `${r.vars.size.baseSpacings.sp0} ${r.vars.size.baseSpacings.sp1}`,
|
|
976
|
+
border: `1px solid ${r.vars.palette.border.secondary}`,
|
|
977
|
+
borderRadius: r.vars.size.borderRadius["r1-5"],
|
|
892
978
|
outline: "none",
|
|
893
|
-
...
|
|
894
|
-
...o(
|
|
979
|
+
...r.colorSchemes.finalTheme.typography.body,
|
|
980
|
+
...o(r, e?.size || "medium", "case", (a) => ({
|
|
895
981
|
height: a
|
|
896
982
|
})),
|
|
897
983
|
"&:focus": {
|
|
898
|
-
border: `1px solid ${
|
|
984
|
+
border: `1px solid ${r.vars.palette.border.secondary}`,
|
|
899
985
|
outline: "none",
|
|
900
986
|
boxShadow: "none"
|
|
901
987
|
},
|
|
902
988
|
"&:hover": {
|
|
903
|
-
border: `1px solid ${
|
|
989
|
+
border: `1px solid ${r.vars.palette.border.secondary}`,
|
|
904
990
|
outline: "none"
|
|
905
991
|
}
|
|
906
992
|
}
|
|
@@ -908,50 +994,50 @@ const d = {
|
|
|
908
994
|
/**
|
|
909
995
|
* Placeholder editable
|
|
910
996
|
*/
|
|
911
|
-
editablePlaceholder: ({ theme:
|
|
997
|
+
editablePlaceholder: ({ theme: r }) => ({
|
|
912
998
|
display: "flex",
|
|
913
999
|
alignItems: "center",
|
|
914
|
-
gap:
|
|
1000
|
+
gap: r.vars.size.baseSpacings.sp1
|
|
915
1001
|
}),
|
|
916
1002
|
/**
|
|
917
1003
|
* EditLabel
|
|
918
1004
|
*/
|
|
919
|
-
editLabel: ({ theme:
|
|
1005
|
+
editLabel: ({ theme: r, ownerState: e }) => ({
|
|
920
1006
|
width: "auto",
|
|
921
1007
|
opacity: 1,
|
|
922
1008
|
transition: "opacity 0.3s ease",
|
|
923
1009
|
...i(
|
|
924
|
-
|
|
925
|
-
|
|
1010
|
+
r.generalSettings.isMobile,
|
|
1011
|
+
e?.size || "medium",
|
|
926
1012
|
"body"
|
|
927
1013
|
)
|
|
928
1014
|
}),
|
|
929
1015
|
/**
|
|
930
1016
|
* Botón para mostrar el input en los editores (cards)
|
|
931
1017
|
*/
|
|
932
|
-
iconButtonEdit: ({ theme:
|
|
1018
|
+
iconButtonEdit: ({ theme: r }) => ({
|
|
933
1019
|
"& .M4LIcon-icon": {
|
|
934
|
-
backgroundColor: `${
|
|
1020
|
+
backgroundColor: `${r.vars.palette.text.secondary} !important`
|
|
935
1021
|
}
|
|
936
1022
|
}),
|
|
937
1023
|
/**
|
|
938
1024
|
* Estilos para el header de tarjeta personalizada.
|
|
939
1025
|
*/
|
|
940
|
-
customCardHeader: ({ theme:
|
|
1026
|
+
customCardHeader: ({ theme: r }) => ({
|
|
941
1027
|
display: "flex",
|
|
942
|
-
gap:
|
|
1028
|
+
gap: r.vars.size.baseSpacings.sp4,
|
|
943
1029
|
alignItems: "center",
|
|
944
|
-
marginBottom:
|
|
1030
|
+
marginBottom: r.vars.size.baseSpacings.sp2
|
|
945
1031
|
}),
|
|
946
1032
|
/**
|
|
947
1033
|
* Estilos para el avatar de tarjeta personalizada.
|
|
948
1034
|
*/
|
|
949
|
-
customCardAvatar: ({ theme:
|
|
1035
|
+
customCardAvatar: ({ theme: r }) => ({
|
|
950
1036
|
width: "32px",
|
|
951
1037
|
height: "32px",
|
|
952
|
-
borderRadius:
|
|
953
|
-
border:
|
|
954
|
-
borderColor:
|
|
1038
|
+
borderRadius: r.vars.size.borderRadius.r3,
|
|
1039
|
+
border: r.vars.size.borderStroke.container,
|
|
1040
|
+
borderColor: r.vars.palette.primary.toneOpacity,
|
|
955
1041
|
display: "flex",
|
|
956
1042
|
alignItems: "center",
|
|
957
1043
|
justifyContent: "center",
|
|
@@ -960,39 +1046,39 @@ const d = {
|
|
|
960
1046
|
/**
|
|
961
1047
|
* Estilos para nombre y email en tarjeta personalizada.
|
|
962
1048
|
*/
|
|
963
|
-
customCardNameEmail: ({ theme:
|
|
1049
|
+
customCardNameEmail: ({ theme: r }) => ({
|
|
964
1050
|
display: "flex",
|
|
965
1051
|
flexDirection: "column",
|
|
966
|
-
gap:
|
|
1052
|
+
gap: r.vars.size.baseSpacings["sp0-5"]
|
|
967
1053
|
}),
|
|
968
1054
|
/**
|
|
969
1055
|
* Estilos para campo con icono en tarjeta personalizada.
|
|
970
1056
|
*/
|
|
971
|
-
customCardFieldWithIcon: ({ theme:
|
|
1057
|
+
customCardFieldWithIcon: ({ theme: r }) => ({
|
|
972
1058
|
display: "flex",
|
|
973
1059
|
alignItems: "center",
|
|
974
|
-
gap:
|
|
1060
|
+
gap: r.vars.size.baseSpacings.sp3
|
|
975
1061
|
}),
|
|
976
1062
|
/**
|
|
977
1063
|
* Estilos para contenido de campo en tarjeta personalizada.
|
|
978
1064
|
*/
|
|
979
|
-
customCardFieldContent: ({ theme:
|
|
1065
|
+
customCardFieldContent: ({ theme: r }) => ({
|
|
980
1066
|
display: "flex",
|
|
981
1067
|
flexDirection: "column",
|
|
982
|
-
gap:
|
|
1068
|
+
gap: r.vars.size.baseSpacings["sp0-5"]
|
|
983
1069
|
}),
|
|
984
1070
|
/**
|
|
985
1071
|
* Estilos para contenedor de icono en tarjeta personalizada.
|
|
986
1072
|
*/
|
|
987
|
-
customCardIconContainer: ({ theme:
|
|
1073
|
+
customCardIconContainer: ({ theme: r }) => ({
|
|
988
1074
|
width: "24px",
|
|
989
1075
|
height: "24px",
|
|
990
1076
|
display: "flex",
|
|
991
1077
|
alignItems: "center",
|
|
992
1078
|
justifyContent: "center",
|
|
993
|
-
borderRadius:
|
|
994
|
-
border:
|
|
995
|
-
borderColor:
|
|
1079
|
+
borderRadius: r.vars.size.borderRadius.r2,
|
|
1080
|
+
border: r.vars.size.borderStroke.container,
|
|
1081
|
+
borderColor: r.vars.palette.primary.toneOpacity,
|
|
996
1082
|
flexShrink: 0
|
|
997
1083
|
}),
|
|
998
1084
|
/**
|
|
@@ -1011,17 +1097,17 @@ const d = {
|
|
|
1011
1097
|
/**
|
|
1012
1098
|
* Estilos para el wrapper del input en cabeceras arrastrables
|
|
1013
1099
|
*/
|
|
1014
|
-
draggableWrapperInputBase: ({ theme:
|
|
1100
|
+
draggableWrapperInputBase: ({ theme: r, ownerState: e }) => ({
|
|
1015
1101
|
borderTop: "1px solid var(--rdg-border-color)",
|
|
1016
1102
|
width: "100%",
|
|
1017
1103
|
display: "flex",
|
|
1018
1104
|
alignItems: "center",
|
|
1019
|
-
backgroundColor:
|
|
1020
|
-
padding:
|
|
1021
|
-
marginBottom:
|
|
1022
|
-
gap:
|
|
1023
|
-
borderRadius:
|
|
1024
|
-
...o(
|
|
1105
|
+
backgroundColor: r.vars.palette.default.enabled,
|
|
1106
|
+
padding: r.vars.size.baseSpacings.sp1,
|
|
1107
|
+
marginBottom: r.vars.size.baseSpacings.sp2,
|
|
1108
|
+
gap: r.vars.size.baseSpacings.sp1,
|
|
1109
|
+
borderRadius: r.vars.size.borderRadius.r1,
|
|
1110
|
+
...o(r, e?.size || "medium", "action", (a) => ({
|
|
1025
1111
|
minHeight: a,
|
|
1026
1112
|
height: a
|
|
1027
1113
|
}))
|
|
@@ -1037,13 +1123,13 @@ const d = {
|
|
|
1037
1123
|
/**
|
|
1038
1124
|
* Estilos para el contenedor del skeleton de carga
|
|
1039
1125
|
*/
|
|
1040
|
-
wrapperSkeleton: ({ theme:
|
|
1126
|
+
wrapperSkeleton: ({ theme: r, ownerState: e }) => ({
|
|
1041
1127
|
display: "flex",
|
|
1042
1128
|
width: "100%",
|
|
1043
1129
|
height: "100%",
|
|
1044
1130
|
alignItems: "center",
|
|
1045
1131
|
"& .MuiSkeleton-root": {
|
|
1046
|
-
...o(
|
|
1132
|
+
...o(r, e?.size || "medium", "base", (a) => ({
|
|
1047
1133
|
minHeight: `${a}!important`,
|
|
1048
1134
|
height: `${a}!important`
|
|
1049
1135
|
}))
|
|
@@ -1062,20 +1148,20 @@ const d = {
|
|
|
1062
1148
|
/**
|
|
1063
1149
|
* Estilos para el contenedor de nombre de columna con icono
|
|
1064
1150
|
*/
|
|
1065
|
-
nameColumnIcon: ({ theme:
|
|
1151
|
+
nameColumnIcon: ({ theme: r }) => ({
|
|
1066
1152
|
display: "flex",
|
|
1067
1153
|
alignItems: "center",
|
|
1068
|
-
gap:
|
|
1154
|
+
gap: r.vars.size.baseSpacings.sp1,
|
|
1069
1155
|
position: "relative",
|
|
1070
1156
|
overflow: "visible"
|
|
1071
1157
|
}),
|
|
1072
1158
|
/**
|
|
1073
1159
|
* Estilos para el nombre de columna con truncado de texto
|
|
1074
1160
|
*/
|
|
1075
|
-
nameColumn: ({ ownerState:
|
|
1161
|
+
nameColumn: ({ ownerState: r }) => ({
|
|
1076
1162
|
display: "-webkit-box",
|
|
1077
1163
|
WebkitBoxOrient: "vertical",
|
|
1078
|
-
WebkitLineClamp:
|
|
1164
|
+
WebkitLineClamp: r?.currentRowHeightVariant === "compact" ? 1 : r?.currentRowHeightVariant === "confortable" ? 3 : 2,
|
|
1079
1165
|
overflow: "hidden",
|
|
1080
1166
|
textOverflow: "ellipsis",
|
|
1081
1167
|
wordBreak: "break-word",
|
|
@@ -1085,10 +1171,10 @@ const d = {
|
|
|
1085
1171
|
/**
|
|
1086
1172
|
* Estilos para el contenedor de icono de columna
|
|
1087
1173
|
*/
|
|
1088
|
-
iconColumn: ({ theme:
|
|
1174
|
+
iconColumn: ({ theme: r }) => ({
|
|
1089
1175
|
display: "flex",
|
|
1090
1176
|
alignItems: "center",
|
|
1091
|
-
gap:
|
|
1177
|
+
gap: r.vars.size.baseSpacings.sp1
|
|
1092
1178
|
}),
|
|
1093
1179
|
headerRenderClick: () => ({
|
|
1094
1180
|
width: "fit-content"
|
|
@@ -1096,20 +1182,20 @@ const d = {
|
|
|
1096
1182
|
/**
|
|
1097
1183
|
* Estilos para la lista del menú de opciones
|
|
1098
1184
|
*/
|
|
1099
|
-
menuList: ({ theme:
|
|
1100
|
-
padding:
|
|
1185
|
+
menuList: ({ theme: r }) => ({
|
|
1186
|
+
padding: r.vars.size.baseSpacings.sp3,
|
|
1101
1187
|
display: "flex",
|
|
1102
1188
|
flexDirection: "column",
|
|
1103
|
-
gap:
|
|
1189
|
+
gap: r.vars.size.baseSpacings.sp1,
|
|
1104
1190
|
"& > div": {
|
|
1105
|
-
paddingLeft:
|
|
1106
|
-
paddingRight:
|
|
1191
|
+
paddingLeft: r.vars.size.baseSpacings.sp4,
|
|
1192
|
+
paddingRight: r.vars.size.baseSpacings.sp4
|
|
1107
1193
|
}
|
|
1108
1194
|
}),
|
|
1109
1195
|
/**
|
|
1110
1196
|
* Estilos para el botón de acciones del header
|
|
1111
1197
|
*/
|
|
1112
|
-
buttonHeaderActions: ({ theme:
|
|
1198
|
+
buttonHeaderActions: ({ theme: r }) => ({
|
|
1113
1199
|
display: "flex",
|
|
1114
1200
|
alignItems: "center",
|
|
1115
1201
|
justifyContent: "space-between",
|
|
@@ -1124,18 +1210,18 @@ const d = {
|
|
|
1124
1210
|
"& svg": {
|
|
1125
1211
|
width: "8px",
|
|
1126
1212
|
height: "8px",
|
|
1127
|
-
color:
|
|
1213
|
+
color: r.vars.palette.chips.default.contained.backgroundColorTone
|
|
1128
1214
|
}
|
|
1129
1215
|
}
|
|
1130
1216
|
}),
|
|
1131
1217
|
/**
|
|
1132
1218
|
* Estilos para el formateador de iconos de columna
|
|
1133
1219
|
*/
|
|
1134
|
-
columnIconFormatter: ({ theme:
|
|
1220
|
+
columnIconFormatter: ({ theme: r }) => ({
|
|
1135
1221
|
display: "flex",
|
|
1136
1222
|
alignItems: "center",
|
|
1137
1223
|
justifyContent: "center",
|
|
1138
|
-
gap:
|
|
1224
|
+
gap: r.vars.size.baseSpacings.sp2,
|
|
1139
1225
|
minWidth: "max-content",
|
|
1140
1226
|
overflow: "visible",
|
|
1141
1227
|
flexWrap: "nowrap"
|
|
@@ -1143,22 +1229,22 @@ const d = {
|
|
|
1143
1229
|
/**
|
|
1144
1230
|
* Estilos para el contenedor raíz del renderizador de celdas de grupo por defecto
|
|
1145
1231
|
*/
|
|
1146
|
-
defaultRenderGroupCellRoot: ({ theme:
|
|
1232
|
+
defaultRenderGroupCellRoot: ({ theme: r, ownerState: e }) => ({
|
|
1147
1233
|
display: "flex",
|
|
1148
1234
|
alignItems: "center",
|
|
1149
|
-
gap:
|
|
1235
|
+
gap: r.vars.size.baseSpacings.sp2,
|
|
1150
1236
|
cursor: "pointer",
|
|
1151
1237
|
width: "100%",
|
|
1152
|
-
justifyContent:
|
|
1238
|
+
justifyContent: e?.align === "center" ? "center" : e?.align === "right" ? "flex-end" : "flex-start"
|
|
1153
1239
|
}),
|
|
1154
1240
|
/**
|
|
1155
1241
|
* Estilos para el texto del renderizador de celdas de grupo por defecto
|
|
1156
1242
|
*/
|
|
1157
|
-
defaultRenderGroupCellText: ({ ownerState:
|
|
1243
|
+
defaultRenderGroupCellText: ({ ownerState: r }) => ({
|
|
1158
1244
|
fontWeight: 600,
|
|
1159
1245
|
display: "-webkit-box",
|
|
1160
1246
|
WebkitBoxOrient: "vertical",
|
|
1161
|
-
WebkitLineClamp:
|
|
1247
|
+
WebkitLineClamp: r?.currentRowHeightVariant === "compact" ? 1 : r?.currentRowHeightVariant === "confortable" ? 3 : 2,
|
|
1162
1248
|
overflow: "hidden",
|
|
1163
1249
|
textOverflow: "ellipsis",
|
|
1164
1250
|
wordBreak: "break-word",
|
|
@@ -1171,7 +1257,7 @@ const d = {
|
|
|
1171
1257
|
* manteniendo el comportamiento de truncado con ellipsis.
|
|
1172
1258
|
* El color se recibe a través de ownerState.cellBackgroundColor
|
|
1173
1259
|
*/
|
|
1174
|
-
cellBackgroundWrapper: ({ ownerState:
|
|
1260
|
+
cellBackgroundWrapper: ({ ownerState: r }) => ({
|
|
1175
1261
|
// Ocupar toda la celda con margin negativo
|
|
1176
1262
|
margin: "-8px",
|
|
1177
1263
|
padding: "8px",
|
|
@@ -1181,13 +1267,13 @@ const d = {
|
|
|
1181
1267
|
// Mantener el comportamiento de truncado igual que las celdas
|
|
1182
1268
|
display: "-webkit-box",
|
|
1183
1269
|
WebkitBoxOrient: "vertical",
|
|
1184
|
-
WebkitLineClamp:
|
|
1270
|
+
WebkitLineClamp: r?.currentRowHeightVariant === "compact" ? 1 : r?.currentRowHeightVariant === "confortable" ? 3 : 2,
|
|
1185
1271
|
overflow: "hidden",
|
|
1186
1272
|
textOverflow: "ellipsis",
|
|
1187
1273
|
wordBreak: "break-word",
|
|
1188
1274
|
whiteSpace: "normal",
|
|
1189
1275
|
alignContent: "center",
|
|
1190
|
-
...
|
|
1276
|
+
...r?.cellBackgroundColor ? { backgroundColor: r.cellBackgroundColor } : {}
|
|
1191
1277
|
})
|
|
1192
1278
|
};
|
|
1193
1279
|
export {
|