@m4l/components 9.2.11 → 9.2.12
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/DynamicFilter/DynamicFIlter.styles.js +123 -222
- package/components/DynamicFilter/slots/SlotsEnum.d.ts +3 -14
- package/components/DynamicFilter/slots/SlotsEnum.js +2 -13
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +5 -38
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +27 -80
- package/components/DynamicFilter/store/DynamicFilterContext.js +17 -2
- package/components/DynamicFilter/store/DynamicFilterStore.js +12 -1
- package/components/DynamicFilter/store/types.d.ts +10 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +17 -21
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.js +1 -4
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.js +2 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +8 -9
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +1 -5
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +31 -23
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.d.ts +8 -0
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +10 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +12 -7
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -3
- package/components/DynamicFilter/tests/DynamicFilter.test.d.ts +1 -0
- package/components/DynamicFilter/tests/constants.d.ts +9 -0
- package/components/DynamicFilter/types.d.ts +9 -0
- package/components/DynamicSort/DynamicSort.styles.js +61 -112
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -14
- package/components/DynamicSort/slots/DynamicSortSlots.js +17 -40
- package/components/DynamicSort/slots/SlotsEnum.d.ts +1 -5
- package/components/DynamicSort/slots/SlotsEnum.js +1 -5
- package/components/DynamicSort/slots/tests/DynamicSort.test.d.ts +1 -0
- package/components/DynamicSort/store/DynamicSortContext.js +5 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.js +2 -3
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -3
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +5 -4
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -5
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +11 -8
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +1 -1
- package/package.json +1 -1
- package/storybook/components/DynamicFilter/mocks/mocksData.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.js +0 -12
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.js +0 -19
- package/utils/containerQuery.js +0 -6
- /package/components/DynamicFilter/{__tests__/DynamicFilter.test.d.ts → store/tests/DynamicFilterStore.test.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { g as getTypographyStyles } from "../../utils/getTypographyStyles.js";
|
|
2
|
+
import { g as getSizeStyles } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
3
|
const CONTAINER_QUERY_NAME = "dynamic";
|
|
4
4
|
const dynamicFilterStyles = {
|
|
5
5
|
root: {
|
|
@@ -10,7 +10,7 @@ const dynamicFilterStyles = {
|
|
|
10
10
|
padding: 0
|
|
11
11
|
},
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* innerContainer: Estilos del contenedor interno del componente.
|
|
14
14
|
*/
|
|
15
15
|
innerContainer: ({ theme, ownerState }) => ({
|
|
16
16
|
display: "grid",
|
|
@@ -20,62 +20,66 @@ const dynamicFilterStyles = {
|
|
|
20
20
|
justifyContent: "flex-start",
|
|
21
21
|
width: "100%",
|
|
22
22
|
height: "fit-content",
|
|
23
|
-
border:
|
|
24
|
-
borderRadius:
|
|
25
|
-
borderColor: theme.vars.palette.border?.default,
|
|
23
|
+
border: theme.vars.size.borderStroke.container,
|
|
24
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
25
|
+
borderColor: ownerState.isValid ? theme.vars.palette.border?.default : theme.vars.palette.error.enabled,
|
|
26
26
|
background: theme.vars.palette.background.default,
|
|
27
|
-
[
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
gridTemplateColumns: "1fr auto",
|
|
31
|
-
gridTemplateAreas: `"input-filter actions-filter"
|
|
32
|
-
"applied-filters applied-filters"`
|
|
33
|
-
},
|
|
34
|
-
"&:focus-within": {
|
|
35
|
-
borderColor: !ownerState.isValid ? theme.vars.palette.error.enabled : theme.vars.palette.primary.active
|
|
36
|
-
},
|
|
37
|
-
...ownerState.isValid === false ? {
|
|
38
|
-
borderColor: theme.vars.palette.error.enabled
|
|
39
|
-
} : {}
|
|
27
|
+
'&:has([aria-expanded="true"])': {
|
|
28
|
+
borderColor: ownerState.isValid ? theme.vars.palette.primary.active : theme.vars.palette.error.enabled
|
|
29
|
+
}
|
|
40
30
|
}),
|
|
41
31
|
/**
|
|
42
|
-
*
|
|
32
|
+
* inputFilter: Estilos del contenedor del campo de entrada de filtrado.
|
|
43
33
|
*/
|
|
44
|
-
inputFilter: ({ theme }) => ({
|
|
34
|
+
inputFilter: ({ theme, ownerState }) => ({
|
|
45
35
|
gridArea: "input-filter",
|
|
46
36
|
display: "flex",
|
|
47
37
|
flexDirection: "row",
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
39
|
+
paddingRight: theme.vars.size.baseSpacings.sp1,
|
|
50
40
|
height: "100%",
|
|
51
41
|
overflow: "hidden",
|
|
42
|
+
maxWidth: "135px",
|
|
52
43
|
width: "100%",
|
|
53
44
|
alignItems: "center",
|
|
54
|
-
borderTopLeftRadius:
|
|
55
|
-
borderBottomLeftRadius:
|
|
56
|
-
borderRight:
|
|
45
|
+
borderTopLeftRadius: theme.vars.size.borderRadius.r1,
|
|
46
|
+
borderBottomLeftRadius: theme.vars.size.borderRadius.r1,
|
|
47
|
+
borderRight: theme.vars.size.borderStroke.container,
|
|
57
48
|
borderColor: theme.vars.palette.border?.default,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
justifyContent: "center"
|
|
67
|
-
}
|
|
49
|
+
...getSizeStyles(
|
|
50
|
+
theme,
|
|
51
|
+
ownerState.size || "medium",
|
|
52
|
+
"container",
|
|
53
|
+
(size) => ({
|
|
54
|
+
height: size
|
|
55
|
+
})
|
|
56
|
+
)
|
|
68
57
|
}),
|
|
69
58
|
/**
|
|
70
|
-
*
|
|
59
|
+
* inputFilterInput: Estilos del campo de entrada de filtrado.
|
|
71
60
|
*/
|
|
72
|
-
inputFilterInput: ({ theme }) => ({
|
|
73
|
-
...
|
|
61
|
+
inputFilterInput: ({ theme, ownerState }) => ({
|
|
62
|
+
...getSizeStyles(
|
|
63
|
+
theme,
|
|
64
|
+
ownerState.size || "medium",
|
|
65
|
+
"action",
|
|
66
|
+
(size) => ({
|
|
67
|
+
height: size,
|
|
68
|
+
minHeight: size,
|
|
69
|
+
maxHeight: size
|
|
70
|
+
})
|
|
71
|
+
),
|
|
72
|
+
...getTypographyStyles(
|
|
73
|
+
theme.generalSettings.isMobile,
|
|
74
|
+
ownerState.size || "medium",
|
|
75
|
+
"body"
|
|
76
|
+
),
|
|
74
77
|
background: theme.vars.palette.background.default,
|
|
75
78
|
color: theme.vars.palette.text.secondary,
|
|
76
|
-
border:
|
|
79
|
+
border: 0,
|
|
77
80
|
borderColor: "transparent",
|
|
78
|
-
|
|
81
|
+
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
82
|
+
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
79
83
|
width: "100%",
|
|
80
84
|
height: "100%",
|
|
81
85
|
"&::placeholder": {
|
|
@@ -83,10 +87,10 @@ const dynamicFilterStyles = {
|
|
|
83
87
|
},
|
|
84
88
|
"&:focus-visible": {
|
|
85
89
|
color: theme.vars.palette.text.secondary,
|
|
86
|
-
border:
|
|
90
|
+
border: theme.vars.size.borderStroke.container,
|
|
87
91
|
borderColor: theme.vars.palette.primary.opacity,
|
|
88
92
|
background: theme.vars.palette.primary.opacity,
|
|
89
|
-
BorderRadius: "
|
|
93
|
+
BorderRadius: theme.vars.size.borderRadius["r0-5"],
|
|
90
94
|
outline: "none!important"
|
|
91
95
|
},
|
|
92
96
|
"&:hover": {
|
|
@@ -94,151 +98,55 @@ const dynamicFilterStyles = {
|
|
|
94
98
|
background: theme.vars.palette.background?.hover
|
|
95
99
|
}
|
|
96
100
|
}),
|
|
97
|
-
inputFilterIcon: {
|
|
98
|
-
visibility: "visible"
|
|
99
|
-
},
|
|
100
101
|
/**
|
|
101
|
-
*
|
|
102
|
+
* appliedFilters: Estilos del contenedor de los filtros aplicados.
|
|
102
103
|
*/
|
|
103
104
|
appliedFilters: ({ theme }) => ({
|
|
104
105
|
gridArea: "applied-filters",
|
|
105
106
|
width: "100%",
|
|
106
107
|
height: "fit-content",
|
|
107
108
|
overflow: "hidden",
|
|
108
|
-
paddingLeft: theme.spacing(1),
|
|
109
109
|
borderLeft: "none",
|
|
110
110
|
margin: "0px",
|
|
111
|
-
padding:
|
|
112
|
-
[containerQuery(theme.breakpoints, CONTAINER_QUERY_NAME)]: {
|
|
113
|
-
height: "auto",
|
|
114
|
-
padding: "4px",
|
|
115
|
-
display: "flex",
|
|
116
|
-
borderTop: "1px solid ",
|
|
117
|
-
borderColor: theme.vars.palette.border?.secondary,
|
|
118
|
-
"&:has(div[class*=appliedFilterInnerContainer]:empty), &:empty": {
|
|
119
|
-
display: "none"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
111
|
+
padding: `0px ${theme.vars.size.baseSpacings.sp1}`
|
|
122
112
|
}),
|
|
123
113
|
/**
|
|
124
|
-
*
|
|
114
|
+
* appliedFilterInnerContainer: Estilos del contenedor interno de los filtros aplicados.
|
|
125
115
|
*/
|
|
126
116
|
appliedFilterInnerContainer: ({ theme }) => ({
|
|
127
|
-
|
|
128
|
-
|
|
117
|
+
overflow: "overlay",
|
|
118
|
+
overflowY: "hidden",
|
|
119
|
+
padding: theme.vars.size.baseSpacings["sp0-5"],
|
|
120
|
+
gap: theme.vars.size.baseSpacings.sp1,
|
|
129
121
|
height: "fit-content",
|
|
130
122
|
display: "flex",
|
|
131
123
|
flexWrap: "nowrap",
|
|
132
124
|
width: "100%",
|
|
133
125
|
justifyContent: "flex-start",
|
|
134
|
-
alignItems: "center"
|
|
135
|
-
[containerQuery(theme.breakpoints, CONTAINER_QUERY_NAME)]: {
|
|
136
|
-
height: "32px",
|
|
137
|
-
padding: 0,
|
|
138
|
-
margin: 0,
|
|
139
|
-
border: 0
|
|
140
|
-
},
|
|
141
|
-
[theme.breakpoints.down("sm")]: {
|
|
142
|
-
padding: 0,
|
|
143
|
-
height: "44px"
|
|
144
|
-
}
|
|
145
|
-
}),
|
|
146
|
-
/**
|
|
147
|
-
* TODO: Documentar
|
|
148
|
-
*/
|
|
149
|
-
appliedFilterChip: ({ theme }) => ({
|
|
150
|
-
display: "flex",
|
|
151
|
-
justifyContent: "center",
|
|
152
|
-
alignItems: "center",
|
|
153
|
-
overflow: "visible",
|
|
154
|
-
width: "auto",
|
|
155
|
-
height: "24px",
|
|
156
|
-
minHeight: theme.spacing(3),
|
|
157
|
-
paddingLeft: theme.spacing(1),
|
|
158
|
-
borderColor: alpha(`${theme.colorSchemes.finalTheme.palette.divider}`, 0.1),
|
|
159
|
-
border: "none",
|
|
160
|
-
borderRadius: "4px",
|
|
161
|
-
backgroundColor: theme.vars.palette.background?.surface,
|
|
162
|
-
color: theme.vars.palette.text.secondary,
|
|
163
|
-
...theme.typography.body,
|
|
164
|
-
[theme.breakpoints.down("sm")]: {
|
|
165
|
-
height: "fit-content"
|
|
166
|
-
}
|
|
167
|
-
}),
|
|
168
|
-
appliedFilterChipIcon: {
|
|
169
|
-
visibility: "visible"
|
|
170
|
-
},
|
|
171
|
-
/**
|
|
172
|
-
* TODO: Documentar
|
|
173
|
-
*/
|
|
174
|
-
appliedFilterChipInfo: ({ theme }) => ({
|
|
175
|
-
...theme.typography.body2,
|
|
176
|
-
display: "flex",
|
|
177
|
-
justifyContent: "center",
|
|
178
|
-
alignItems: "center",
|
|
179
|
-
width: "auto",
|
|
180
|
-
height: "100%",
|
|
181
|
-
marginRight: theme.spacing(1),
|
|
182
|
-
marginLeft: theme.spacing(1),
|
|
183
|
-
whiteSpace: "nowrap",
|
|
184
|
-
border: "none",
|
|
185
|
-
backgroundColor: "transparent"
|
|
186
|
-
}),
|
|
187
|
-
/**
|
|
188
|
-
* TODO: Documentar
|
|
189
|
-
*/
|
|
190
|
-
appliedFilterChipInfoFieldName: ({ theme }) => ({
|
|
191
|
-
...theme.typography.subtitle2,
|
|
192
|
-
color: theme.vars.palette.text.secondary
|
|
193
|
-
}),
|
|
194
|
-
/**
|
|
195
|
-
* TODO: Documentar
|
|
196
|
-
*/
|
|
197
|
-
appliedFilterChipInfoOperator: ({ theme }) => ({
|
|
198
|
-
...theme.typography.body2,
|
|
199
|
-
marginLeft: theme.spacing(1.5),
|
|
200
|
-
fontStyle: "italic",
|
|
201
|
-
color: theme.vars.palette.text.secondary
|
|
126
|
+
alignItems: "center"
|
|
202
127
|
}),
|
|
203
128
|
/**
|
|
204
|
-
*
|
|
205
|
-
*/
|
|
206
|
-
appliedFilterChipInfoOperands: ({ theme }) => ({
|
|
207
|
-
...theme.typography.body2,
|
|
208
|
-
marginLeft: theme.spacing(1.5),
|
|
209
|
-
color: theme.vars.palette.text.secondary
|
|
210
|
-
}),
|
|
211
|
-
appliedFilterChipRemoveButton: {
|
|
212
|
-
visibility: "visible"
|
|
213
|
-
},
|
|
214
|
-
/**
|
|
215
|
-
* TODO: Documentar
|
|
129
|
+
* actions: Estilos del contenedor de los botones de acción.
|
|
216
130
|
*/
|
|
217
131
|
actions: ({ theme }) => ({
|
|
218
132
|
gridArea: "actions-filter",
|
|
133
|
+
overflow: "hidden",
|
|
219
134
|
display: "flex",
|
|
220
135
|
flexDirection: "row",
|
|
221
|
-
gap: "
|
|
222
|
-
padding:
|
|
136
|
+
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
137
|
+
padding: theme.vars.size.baseSpacings.sp1,
|
|
223
138
|
height: "100%",
|
|
224
139
|
alignItems: "center",
|
|
225
|
-
borderTopRightRadius:
|
|
226
|
-
borderBottomRightRadius:
|
|
227
|
-
borderLeft:
|
|
140
|
+
borderTopRightRadius: theme.vars.size.borderRadius.r1,
|
|
141
|
+
borderBottomRightRadius: theme.vars.size.borderRadius.r1,
|
|
142
|
+
borderLeft: theme.vars.size.borderStroke.container,
|
|
228
143
|
borderColor: theme.vars.palette.border?.default
|
|
229
144
|
}),
|
|
230
|
-
actionsSkeletonButton: {
|
|
231
|
-
display: "flex",
|
|
232
|
-
justifyContent: "center",
|
|
233
|
-
alignItems: "center",
|
|
234
|
-
width: "24px",
|
|
235
|
-
height: "24px"
|
|
236
|
-
},
|
|
237
145
|
actionsClearButton: {
|
|
238
146
|
visibility: "visible"
|
|
239
147
|
},
|
|
240
148
|
/**
|
|
241
|
-
*
|
|
149
|
+
* actionsSubmitButton: Estilos del botón de acción de filtrado.
|
|
242
150
|
*/
|
|
243
151
|
actionsSubmitButton: ({ theme, ownerState }) => ({
|
|
244
152
|
...ownerState.isValid === false ? { border: `1px dashed ${theme.vars.palette.error.enabled}` } : {
|
|
@@ -246,39 +154,19 @@ const dynamicFilterStyles = {
|
|
|
246
154
|
}
|
|
247
155
|
}),
|
|
248
156
|
/**
|
|
249
|
-
*
|
|
157
|
+
* popoverMenu: Estilos del menú emergente.
|
|
250
158
|
*/
|
|
251
159
|
popoverMenu: ({ theme }) => ({
|
|
252
160
|
"& .MuiPaper-root": {
|
|
253
161
|
display: "flex",
|
|
254
162
|
flexDirection: "column",
|
|
255
|
-
padding:
|
|
256
|
-
gap:
|
|
257
|
-
borderRadius:
|
|
258
|
-
[theme.breakpoints.down("md")]: {
|
|
259
|
-
gap: "4px"
|
|
260
|
-
},
|
|
261
|
-
"& .M4LPopover-arrowStyle": {
|
|
262
|
-
display: "none"
|
|
263
|
-
}
|
|
163
|
+
padding: theme.vars.size.baseSpacings.sp3,
|
|
164
|
+
gap: theme.vars.size.baseSpacings.sp1,
|
|
165
|
+
borderRadius: theme.vars.size.borderRadius.r1
|
|
264
166
|
}
|
|
265
167
|
}),
|
|
266
168
|
/**
|
|
267
|
-
*
|
|
268
|
-
*/
|
|
269
|
-
popoverMenuItem: {},
|
|
270
|
-
/**
|
|
271
|
-
* TODO: Documentar
|
|
272
|
-
*/
|
|
273
|
-
popoverMenuItemLabel: ({ theme }) => ({
|
|
274
|
-
...theme.typography.body,
|
|
275
|
-
color: theme.vars.palette.text.primary
|
|
276
|
-
}),
|
|
277
|
-
popoverMenuItemIcon: {
|
|
278
|
-
visibility: "visible"
|
|
279
|
-
},
|
|
280
|
-
/**
|
|
281
|
-
* TODO: Documentar
|
|
169
|
+
* popoverFilter: Estilos del menú emergente de filtro.
|
|
282
170
|
*/
|
|
283
171
|
popoverFilter: ({ theme }) => ({
|
|
284
172
|
width: "auto",
|
|
@@ -287,7 +175,7 @@ const dynamicFilterStyles = {
|
|
|
287
175
|
minWidth: "220px",
|
|
288
176
|
maxWidth: "100%",
|
|
289
177
|
minHeight: "auto",
|
|
290
|
-
boxShadow: theme.
|
|
178
|
+
boxShadow: theme.customShadows?.z3,
|
|
291
179
|
"& .M4LPopover-arrowStyle": {
|
|
292
180
|
display: "none"
|
|
293
181
|
},
|
|
@@ -301,67 +189,80 @@ const dynamicFilterStyles = {
|
|
|
301
189
|
}
|
|
302
190
|
}),
|
|
303
191
|
/**
|
|
304
|
-
*
|
|
192
|
+
* popoverFilterHeader: Estilos del encabezado del menú emergente de filtro.
|
|
305
193
|
*/
|
|
306
|
-
popoverFilterHeader: ({ theme }) => ({
|
|
307
|
-
backgroundColor: theme.vars.palette.background?.surface,
|
|
194
|
+
popoverFilterHeader: ({ theme, ownerState }) => ({
|
|
308
195
|
display: "flex",
|
|
309
196
|
alignItems: "center",
|
|
310
|
-
gap:
|
|
311
|
-
padding:
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
197
|
+
gap: theme.vars.size.baseSpacings.sp2,
|
|
198
|
+
padding: theme.vars.size.baseSpacings.sp1,
|
|
199
|
+
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
200
|
+
borderTopLeftRadius: theme.vars.size.borderRadius.r1,
|
|
201
|
+
borderTopRightRadius: theme.vars.size.borderRadius.r1,
|
|
202
|
+
borderBottom: theme.vars.size.borderStroke.container,
|
|
203
|
+
borderColor: theme.vars.palette.border.secondary,
|
|
204
|
+
"& .M4LIcon-icon": {
|
|
205
|
+
backgroundColor: theme.vars.palette.primary.main
|
|
206
|
+
},
|
|
207
|
+
...getSizeStyles(
|
|
208
|
+
theme,
|
|
209
|
+
ownerState.size || "medium",
|
|
210
|
+
"container",
|
|
211
|
+
(size) => ({
|
|
212
|
+
height: size
|
|
213
|
+
})
|
|
214
|
+
)
|
|
319
215
|
}),
|
|
320
|
-
popoverFilterHeaderIcon: {
|
|
321
|
-
visibility: "visible"
|
|
322
|
-
},
|
|
323
216
|
/**
|
|
324
|
-
*
|
|
217
|
+
* popoverFilterHeaderTitle: Estilos del título del menú emergente de filtro.
|
|
325
218
|
*/
|
|
326
219
|
popoverFilterHeaderTitle: ({ theme }) => ({
|
|
327
|
-
|
|
328
|
-
color: theme.vars.palette.text.primary
|
|
220
|
+
color: `${theme.vars.palette.primary.main} !important`
|
|
329
221
|
}),
|
|
330
222
|
/**
|
|
331
|
-
*
|
|
223
|
+
* popoverFilterContainerFields: Estilos del contenedor de campos del menú emergente de filtro.
|
|
332
224
|
*/
|
|
333
225
|
popoverFilterContainerFields: ({ theme }) => ({
|
|
334
226
|
height: "fit-content",
|
|
335
227
|
"& > div": {
|
|
336
228
|
display: "flex",
|
|
337
|
-
height: "auto",
|
|
338
229
|
flexDirection: "column",
|
|
339
|
-
|
|
340
|
-
gap: "8px",
|
|
341
|
-
[theme.breakpoints.down("sm")]: {
|
|
342
|
-
padding: "16px 16px 0 16px",
|
|
343
|
-
gap: "12px"
|
|
344
|
-
}
|
|
230
|
+
gap: theme.vars.size.baseSpacings.sp2
|
|
345
231
|
}
|
|
346
232
|
}),
|
|
347
233
|
/**
|
|
348
|
-
*
|
|
234
|
+
* contentFilter: Estilos del contenedor entre el change filter y actions
|
|
349
235
|
*/
|
|
350
|
-
|
|
236
|
+
contentFilter: ({ theme }) => ({
|
|
351
237
|
display: "flex",
|
|
352
|
-
flexDirection: "
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
238
|
+
flexDirection: "column",
|
|
239
|
+
padding: theme.vars.size.baseSpacings.sp3,
|
|
240
|
+
gap: theme.vars.size.baseSpacings.sp3
|
|
241
|
+
}),
|
|
242
|
+
/**
|
|
243
|
+
* popoverFilterActions: Estilos del contenedor de acciones del menú emergente de filtro.
|
|
244
|
+
*/
|
|
245
|
+
popoverFilterActions: ({ theme }) => ({
|
|
246
|
+
padding: `${theme.vars.size.baseSpacings.sp3} 0px`
|
|
247
|
+
}),
|
|
248
|
+
/**
|
|
249
|
+
* inputSortInputSkeleton: Estilos del esqueleto del campo de entrada de ordenamiento.
|
|
250
|
+
*/
|
|
251
|
+
inputFilterInputSkeleton: ({ theme, ownerState }) => ({
|
|
252
|
+
width: "100%",
|
|
253
|
+
minWidth: "80px",
|
|
254
|
+
marginLeft: theme.vars.size.baseSpacings.sp2,
|
|
255
|
+
marginRight: theme.vars.size.baseSpacings.sp2,
|
|
256
|
+
...getSizeStyles(
|
|
257
|
+
theme,
|
|
258
|
+
ownerState.size || "medium",
|
|
259
|
+
"base",
|
|
260
|
+
(size) => ({
|
|
261
|
+
height: size,
|
|
262
|
+
minHeight: size,
|
|
263
|
+
maxHeight: size
|
|
264
|
+
})
|
|
265
|
+
)
|
|
365
266
|
})
|
|
366
267
|
};
|
|
367
268
|
export {
|
|
@@ -3,28 +3,17 @@ export declare enum DynamicFilterSlots {
|
|
|
3
3
|
innerContainer = "innerContainer",
|
|
4
4
|
inputFilter = "inputFilter",
|
|
5
5
|
inputFilterInput = "inputFilterInput",
|
|
6
|
-
inputFilterIcon = "inputFilterIcon",
|
|
7
6
|
appliedFilters = "appliedFilters",
|
|
8
7
|
appliedFilterInnerContainer = "appliedFilterInnerContainer",
|
|
9
|
-
appliedFilterChip = "appliedFilterChip",
|
|
10
|
-
appliedFilterChipIcon = "appliedFilterChipIcon",
|
|
11
|
-
appliedFilterChipInfo = "appliedFilterChipInfo",
|
|
12
|
-
appliedFilterChipInfoFieldName = "appliedFilterChipInfoFieldName",
|
|
13
|
-
appliedFilterChipInfoOperator = "appliedFilterChipInfoOperator",
|
|
14
|
-
appliedFilterChipInfoOperands = "appliedFilterChipInfoOperands",
|
|
15
|
-
appliedFilterChipRemoveButton = "appliedFilterChipRemoveButton",
|
|
16
8
|
actions = "actions",
|
|
17
|
-
actionsSkeletonButton = "actionsSkeletonButton",
|
|
18
9
|
actionsClearButton = "actionsClearButton",
|
|
19
10
|
actionsSubmitButton = "actionsSubmitButton",
|
|
20
11
|
popoverMenu = "popoverMenu",
|
|
21
|
-
popoverMenuItem = "popoverMenuItem",
|
|
22
|
-
popoverMenuItemIcon = "popoverMenuItemIcon",
|
|
23
|
-
popoverMenuItemLabel = "popoverMenuItemLabel",
|
|
24
12
|
popoverFilter = "popoverFilter",
|
|
25
13
|
popoverFilterContainerFields = "popoverFilterContainerFields",
|
|
26
14
|
popoverFilterHeader = "popoverFilterHeader",
|
|
27
|
-
|
|
15
|
+
contentFilter = "contentFilter",
|
|
28
16
|
popoverFilterHeaderTitle = "popoverFilterHeaderTitle",
|
|
29
|
-
popoverFilterActions = "popoverFilterActions"
|
|
17
|
+
popoverFilterActions = "popoverFilterActions",
|
|
18
|
+
inputFilterInputSkeleton = "inputFilterInputSkeleton"
|
|
30
19
|
}
|
|
@@ -3,30 +3,19 @@ var DynamicFilterSlots = /* @__PURE__ */ ((DynamicFilterSlots2) => {
|
|
|
3
3
|
DynamicFilterSlots2["innerContainer"] = "innerContainer";
|
|
4
4
|
DynamicFilterSlots2["inputFilter"] = "inputFilter";
|
|
5
5
|
DynamicFilterSlots2["inputFilterInput"] = "inputFilterInput";
|
|
6
|
-
DynamicFilterSlots2["inputFilterIcon"] = "inputFilterIcon";
|
|
7
6
|
DynamicFilterSlots2["appliedFilters"] = "appliedFilters";
|
|
8
7
|
DynamicFilterSlots2["appliedFilterInnerContainer"] = "appliedFilterInnerContainer";
|
|
9
|
-
DynamicFilterSlots2["appliedFilterChip"] = "appliedFilterChip";
|
|
10
|
-
DynamicFilterSlots2["appliedFilterChipIcon"] = "appliedFilterChipIcon";
|
|
11
|
-
DynamicFilterSlots2["appliedFilterChipInfo"] = "appliedFilterChipInfo";
|
|
12
|
-
DynamicFilterSlots2["appliedFilterChipInfoFieldName"] = "appliedFilterChipInfoFieldName";
|
|
13
|
-
DynamicFilterSlots2["appliedFilterChipInfoOperator"] = "appliedFilterChipInfoOperator";
|
|
14
|
-
DynamicFilterSlots2["appliedFilterChipInfoOperands"] = "appliedFilterChipInfoOperands";
|
|
15
|
-
DynamicFilterSlots2["appliedFilterChipRemoveButton"] = "appliedFilterChipRemoveButton";
|
|
16
8
|
DynamicFilterSlots2["actions"] = "actions";
|
|
17
|
-
DynamicFilterSlots2["actionsSkeletonButton"] = "actionsSkeletonButton";
|
|
18
9
|
DynamicFilterSlots2["actionsClearButton"] = "actionsClearButton";
|
|
19
10
|
DynamicFilterSlots2["actionsSubmitButton"] = "actionsSubmitButton";
|
|
20
11
|
DynamicFilterSlots2["popoverMenu"] = "popoverMenu";
|
|
21
|
-
DynamicFilterSlots2["popoverMenuItem"] = "popoverMenuItem";
|
|
22
|
-
DynamicFilterSlots2["popoverMenuItemIcon"] = "popoverMenuItemIcon";
|
|
23
|
-
DynamicFilterSlots2["popoverMenuItemLabel"] = "popoverMenuItemLabel";
|
|
24
12
|
DynamicFilterSlots2["popoverFilter"] = "popoverFilter";
|
|
25
13
|
DynamicFilterSlots2["popoverFilterContainerFields"] = "popoverFilterContainerFields";
|
|
26
14
|
DynamicFilterSlots2["popoverFilterHeader"] = "popoverFilterHeader";
|
|
27
|
-
DynamicFilterSlots2["
|
|
15
|
+
DynamicFilterSlots2["contentFilter"] = "contentFilter";
|
|
28
16
|
DynamicFilterSlots2["popoverFilterHeaderTitle"] = "popoverFilterHeaderTitle";
|
|
29
17
|
DynamicFilterSlots2["popoverFilterActions"] = "popoverFilterActions";
|
|
18
|
+
DynamicFilterSlots2["inputFilterInputSkeleton"] = "inputFilterInputSkeleton";
|
|
30
19
|
return DynamicFilterSlots2;
|
|
31
20
|
})(DynamicFilterSlots || {});
|
|
32
21
|
export {
|