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