@m4l/components 9.3.43 → 9.4.0-JA-20251207-Beta.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.
Files changed (127) hide show
  1. package/@types/export.d.ts +2 -2
  2. package/@types/types.d.ts +18 -10
  3. package/components/CheckableList/CheckableList.d.ts +20 -0
  4. package/components/CheckableList/CheckableList.js +225 -0
  5. package/components/CheckableList/CheckableList.styles.d.ts +2 -0
  6. package/components/CheckableList/CheckableList.styles.js +247 -0
  7. package/components/CheckableList/constants.d.ts +5 -0
  8. package/components/CheckableList/constants.js +17 -0
  9. package/components/CheckableList/dictionary.d.ts +14 -0
  10. package/components/CheckableList/dictionary.js +14 -0
  11. package/components/CheckableList/hooks/index.d.ts +6 -0
  12. package/components/CheckableList/hooks/useCheckableListHandlers.d.ts +21 -0
  13. package/components/CheckableList/hooks/useCheckableListHandlers.js +66 -0
  14. package/components/CheckableList/hooks/useCheckableListItems.d.ts +19 -0
  15. package/components/CheckableList/hooks/useCheckableListItems.js +79 -0
  16. package/components/CheckableList/hooks/useCheckableListRender.d.ts +52 -0
  17. package/components/CheckableList/hooks/useCheckableListRender.js +223 -0
  18. package/components/CheckableList/hooks/useCheckableListSelection.d.ts +19 -0
  19. package/components/CheckableList/hooks/useCheckableListSelection.js +69 -0
  20. package/components/CheckableList/hooks/useCheckableListState.d.ts +17 -0
  21. package/components/CheckableList/hooks/useCheckableListState.js +59 -0
  22. package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts +14 -0
  23. package/components/CheckableList/hooks/useCheckableListVirtualization.js +42 -0
  24. package/components/CheckableList/icons.d.ts +5 -0
  25. package/components/CheckableList/icons.js +8 -0
  26. package/components/CheckableList/index.d.ts +3 -0
  27. package/components/CheckableList/index.js +1 -0
  28. package/components/CheckableList/slots/index.d.ts +2 -0
  29. package/components/CheckableList/slots/index.js +1 -0
  30. package/components/CheckableList/slots/slots.d.ts +26 -0
  31. package/components/CheckableList/slots/slots.js +30 -0
  32. package/components/CheckableList/slots/styled.d.ts +72 -0
  33. package/components/CheckableList/slots/styled.js +130 -0
  34. package/components/CheckableList/types.d.ts +277 -0
  35. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +1 -1
  36. package/components/DataGrid/Datagrid.styles.js +8 -8
  37. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +2 -2
  38. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.d.ts +6 -0
  39. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.js +12 -0
  40. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.js +2 -2
  41. package/components/DynamicFilter/store/DynamicFilterContext.js +11 -0
  42. package/components/DynamicFilter/store/DynamicFilterStore.js +9 -0
  43. package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -1
  44. package/components/DynamicFilter/types.d.ts +4 -0
  45. package/components/DynamicSort/store/DynamicSortStore.js +6 -0
  46. package/components/DynamicSort/subcomponents/DynamicSortBase/useDynamicSortBase.d.ts +1 -1
  47. package/components/DynamicSort/types.d.ts +4 -0
  48. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  49. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
  50. package/components/Stepper/Stepper.styles.js +13 -8
  51. package/components/WindowBase/hooks/useDynamicMFParameters/index.d.ts +4 -4
  52. package/components/areas/contexts/AreasContext/store.js +2 -2
  53. package/components/commercial/SectionCommercial/styles.d.ts +1 -1
  54. package/components/hook-form/RHFCheckableList/RHFCheckableList.d.ts +7 -0
  55. package/components/hook-form/RHFCheckableList/RHFCheckableList.js +91 -0
  56. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.d.ts +2 -0
  57. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.js +30 -0
  58. package/components/hook-form/RHFCheckableList/constants.d.ts +8 -0
  59. package/components/hook-form/RHFCheckableList/constants.js +11 -0
  60. package/components/hook-form/RHFCheckableList/index.d.ts +2 -0
  61. package/components/hook-form/RHFCheckableList/index.js +1 -0
  62. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.d.ts +6 -0
  63. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.js +10 -0
  64. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.d.ts +20 -0
  65. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.js +29 -0
  66. package/components/hook-form/RHFCheckableList/slots/index.d.ts +2 -0
  67. package/components/hook-form/RHFCheckableList/types.d.ts +60 -0
  68. package/components/hook-form/RHFColorPicker/hooks/useColorPicker/useColorPicker.d.ts +1 -1
  69. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +3 -4
  70. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +3 -3
  71. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +66 -24
  72. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.d.ts +5 -0
  73. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.js +29 -0
  74. package/components/hook-form/RHFRadioGroup/constants.d.ts +5 -0
  75. package/components/hook-form/RHFRadioGroup/constants.js +8 -0
  76. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -2
  77. package/components/hook-form/RHFRadioGroup/slots/slots.d.ts +5 -0
  78. package/components/hook-form/RHFRadioGroup/slots/slots.js +9 -0
  79. package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +9 -0
  80. package/components/hook-form/RHFRadioGroup/slots/styled.js +20 -0
  81. package/components/hook-form/RHFRadioGroup/types.d.ts +55 -11
  82. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +1 -1
  83. package/components/hook-form/index.d.ts +1 -0
  84. package/components/index.d.ts +1 -0
  85. package/components/mui_extended/CheckBox/CheckBox.js +2 -0
  86. package/components/mui_extended/Radio/Radio.d.ts +20 -0
  87. package/components/mui_extended/{RadioButton/RadioButton.js → Radio/Radio.js} +27 -26
  88. package/components/mui_extended/Radio/Radio.styles.d.ts +2 -0
  89. package/components/mui_extended/{RadioButton/RadioButton.styles.js → Radio/Radio.styles.js} +17 -42
  90. package/components/mui_extended/Radio/constants.d.ts +2 -0
  91. package/components/mui_extended/Radio/constants.js +8 -0
  92. package/components/mui_extended/Radio/index.d.ts +1 -0
  93. package/components/mui_extended/Radio/index.js +1 -0
  94. package/components/mui_extended/Radio/slots/slots.d.ts +6 -0
  95. package/components/mui_extended/Radio/slots/slots.js +10 -0
  96. package/components/mui_extended/{RadioButton/slots/RadioButtonSlots.d.ts → Radio/slots/styled.d.ts} +6 -12
  97. package/components/mui_extended/Radio/slots/styled.js +28 -0
  98. package/components/mui_extended/Radio/types.d.ts +53 -0
  99. package/components/mui_extended/Stack/Stack.d.ts +1 -1
  100. package/components/mui_extended/Stack/Stack.js +5 -2
  101. package/components/mui_extended/index.d.ts +1 -1
  102. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.d.ts +2 -1
  103. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.js +1 -0
  104. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -3
  105. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.js +6 -0
  106. package/hooks/useDynamicFilterAndSort/styles.js +23 -0
  107. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -0
  108. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +27 -21
  109. package/index.js +145 -139
  110. package/package.json +1 -1
  111. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.d.ts +0 -6
  112. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.js +0 -12
  113. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.js +0 -16
  114. package/components/mui_extended/RadioButton/RadioButton.d.ts +0 -24
  115. package/components/mui_extended/RadioButton/RadioButton.styles.d.ts +0 -2
  116. package/components/mui_extended/RadioButton/constants.d.ts +0 -1
  117. package/components/mui_extended/RadioButton/constants.js +0 -4
  118. package/components/mui_extended/RadioButton/index.d.ts +0 -1
  119. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.d.ts +0 -8
  120. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.js +0 -12
  121. package/components/mui_extended/RadioButton/slots/RadioButtonSlots.js +0 -39
  122. package/components/mui_extended/RadioButton/types.d.ts +0 -50
  123. /package/components/{mui_extended/RadioButton → CheckableList/hooks}/index.js +0 -0
  124. /package/components/DataGrid/tests/table/subcomponents/{RadioButtonFormatter.test.d.ts → RadioFormatter.test.d.ts} +0 -0
  125. /package/components/mui_extended/{RadioButton → Radio}/icons.d.ts +0 -0
  126. /package/components/mui_extended/{RadioButton → Radio}/icons.js +0 -0
  127. /package/components/mui_extended/{RadioButton/tests/RadioButton.test.d.ts → Radio/tests/Radio.test.d.ts} +0 -0
@@ -0,0 +1,277 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ import { Sizes } from '@m4l/styles';
3
+ import { M4LOverridesStyleRules } from '../../@types/augmentations';
4
+ import { CHECKABLE_LIST_KEY_COMPONENT } from './constants';
5
+ import { CheckableListSlots } from './slots/slots';
6
+ import { CheckableListRenderGroupParams } from './hooks/useCheckableListRender';
7
+ import { HexColor } from '@m4l/graphics';
8
+ /**
9
+ * Item individual de la lista chequeable
10
+ */
11
+ export interface CheckableListItem {
12
+ /**
13
+ * Identificador único del item
14
+ */
15
+ id: string | number;
16
+ /**
17
+ * Texto que se muestra
18
+ */
19
+ label: string;
20
+ /**
21
+ * Valor adicional del item (opcional, para casos donde id no es suficiente)
22
+ */
23
+ value?: any;
24
+ /**
25
+ * Si está deshabilitado
26
+ */
27
+ disabled?: boolean;
28
+ /**
29
+ * Texto adicional/descripción
30
+ */
31
+ description?: string;
32
+ /**
33
+ * Icono opcional
34
+ */
35
+ icon?: React.ReactNode;
36
+ /**
37
+ * Datos adicionales
38
+ */
39
+ metadata?: Record<string, any>;
40
+ /**
41
+ * Altura específica del item para virtualización
42
+ */
43
+ rowHeight?: number;
44
+ }
45
+ /**
46
+ * Grupo de items chequeables
47
+ */
48
+ export interface CheckableListGroup {
49
+ /**
50
+ * Identificador único del grupo
51
+ */
52
+ id: string | number;
53
+ /**
54
+ * Título del grupo
55
+ */
56
+ label: string;
57
+ /**
58
+ * Items del grupo
59
+ */
60
+ items: CheckableListItem[];
61
+ /**
62
+ * Si todo el grupo está deshabilitado
63
+ */
64
+ disabled?: boolean;
65
+ /**
66
+ * Estado inicial (expandido/colapsado)
67
+ */
68
+ collapsed?: boolean;
69
+ /**
70
+ * Descripción del grupo
71
+ */
72
+ description?: string;
73
+ /**
74
+ * Icono del grupo
75
+ */
76
+ icon?: React.ReactNode;
77
+ /**
78
+ * Datos adicionales del grupo
79
+ */
80
+ metadata?: Record<string, any>;
81
+ /**
82
+ * Color del grupo
83
+ */
84
+ color?: HexColor;
85
+ /**
86
+ * Si esta seleccionado el grupo o no
87
+ */
88
+ selected?: boolean;
89
+ }
90
+ /**
91
+ * Tipo interno para items en la lista virtualizada
92
+ */
93
+ export interface VirtualizedItem {
94
+ type: 'item' | 'group';
95
+ data: CheckableListItem | CheckableListGroup;
96
+ index: number;
97
+ groupIndex?: number;
98
+ }
99
+ /**
100
+ * Propiedades del componente CheckableList
101
+ */
102
+ export interface CheckableListRenderItemParams {
103
+ /**
104
+ * Item que se está renderizando
105
+ */
106
+ item: CheckableListItem;
107
+ /**
108
+ * Estado actual del checkbox
109
+ */
110
+ checked: boolean;
111
+ /**
112
+ * Índice del item dentro de la colección
113
+ */
114
+ index: number;
115
+ /**
116
+ * Si el item está deshabilitado (global o individual)
117
+ */
118
+ disabled: boolean;
119
+ /**
120
+ * Tamaño actual del componente
121
+ */
122
+ size: Extract<Sizes, 'small' | 'medium' | 'large'>;
123
+ /**
124
+ * Variante visual del componente
125
+ */
126
+ variant: 'standard' | 'outlined' | 'compact';
127
+ }
128
+ /**
129
+ * Propiedades del componente CheckableList
130
+ */
131
+ export interface CheckableListProps {
132
+ /**
133
+ * Array de IDs seleccionados (controlado)
134
+ */
135
+ value?: (string | number)[];
136
+ /**
137
+ * Callback cuando cambian las selecciones
138
+ */
139
+ onChange?: (selectedIds: (string | number)[]) => void;
140
+ /**
141
+ * Items cuando NO está agrupado
142
+ */
143
+ items?: CheckableListItem[];
144
+ /**
145
+ * Grupos cuando SÍ está agrupado
146
+ */
147
+ groups?: CheckableListGroup[];
148
+ /**
149
+ * Permitir selección múltiple (default: true)
150
+ */
151
+ multiple?: boolean;
152
+ /**
153
+ * Mostrar botón "Seleccionar todo" (default: false)
154
+ */
155
+ selectAll?: boolean;
156
+ /**
157
+ * Hacer los grupos expandibles/colapsables (default: true)
158
+ */
159
+ groupable?: boolean;
160
+ /**
161
+ * Expandir todos los grupos al inicio (default: true)
162
+ */
163
+ expandAllGroups?: boolean;
164
+ /**
165
+ * Mostrar barra de búsqueda
166
+ */
167
+ searchable?: boolean;
168
+ /**
169
+ * Función personalizada de filtrado
170
+ */
171
+ filterFn?: (item: CheckableListItem, query: string) => boolean;
172
+ /**
173
+ * Tamaño del componente
174
+ */
175
+ size?: Extract<Sizes, 'small' | 'medium'>;
176
+ /**
177
+ * Variante del componente
178
+ */
179
+ variant?: 'standard' | 'outlined' | 'compact';
180
+ /**
181
+ * Altura genérica para cada item (virtualización)
182
+ */
183
+ itemRowHeight?: number;
184
+ /**
185
+ * Altura genérica para cada encabezado de grupo
186
+ */
187
+ groupRowHeight?: number;
188
+ /**
189
+ * Ancho del componente (requerido para virtualización)
190
+ */
191
+ width?: number | string;
192
+ /**
193
+ * Tamaño de los checkboxes
194
+ */
195
+ checkboxSize?: 'small' | 'medium';
196
+ /**
197
+ * Checkbox en el grupo (seleccionar todo el grupo)
198
+ */
199
+ showCheckboxOnGroup?: boolean;
200
+ /**
201
+ * Comportamiento del checkbox indeterminado
202
+ */
203
+ indeterminateBehavior?: 'select-all' | 'indicate-some';
204
+ /**
205
+ * Clase CSS personalizada
206
+ */
207
+ className?: string;
208
+ /**
209
+ * ID para testing
210
+ */
211
+ 'data-testid'?: string;
212
+ /**
213
+ * Label para accesibilidad
214
+ */
215
+ ariaLabel?: string;
216
+ /**
217
+ * ID del elemento que describe el componente
218
+ */
219
+ ariaLabelledBy?: string;
220
+ /**
221
+ * Render personalizado de item
222
+ */
223
+ renderItem?: (params: CheckableListRenderItemParams) => React.ReactNode;
224
+ /**
225
+ * Render personalizado de grupo
226
+ */
227
+ renderGroup?: (params: CheckableListRenderGroupParams) => React.ReactNode;
228
+ /**
229
+ * Estado de carga
230
+ */
231
+ loading?: boolean;
232
+ /**
233
+ * Deshabilitar toda la lista
234
+ */
235
+ disabled?: boolean;
236
+ }
237
+ /**
238
+ * Estado del propietario del componente CheckableList
239
+ */
240
+ export interface CheckableListOwnerState extends Record<string, unknown> {
241
+ /**
242
+ * Tamaño del componente
243
+ */
244
+ size?: Extract<Sizes, 'small' | 'medium'>;
245
+ /**
246
+ * Variante del componente
247
+ */
248
+ variant?: 'standard' | 'outlined' | 'compact';
249
+ /**
250
+ * Si está deshabilitado
251
+ */
252
+ disabled?: boolean;
253
+ /**
254
+ * Si está agrupado
255
+ */
256
+ grouped?: boolean;
257
+ /**
258
+ * Si tiene items seleccionados
259
+ */
260
+ hasSelected?: boolean;
261
+ /**
262
+ * Altura máxima del contenedor
263
+ */
264
+ maxHeight?: string | number;
265
+ /**
266
+ * Color del grupo
267
+ */
268
+ color?: HexColor;
269
+ }
270
+ /**
271
+ * Tipo de slots del componente CheckableList
272
+ */
273
+ export type CheckableListSlotsType = keyof typeof CheckableListSlots;
274
+ /**
275
+ * Estilos del componente CheckableList
276
+ */
277
+ export type CheckableListStyles = M4LOverridesStyleRules<CheckableListSlotsType, typeof CHECKABLE_LIST_KEY_COMPONENT, Theme>;
@@ -13,7 +13,7 @@ function ActionFormCancel(props) {
13
13
  const {
14
14
  className,
15
15
  onClose,
16
- linkToCloseWindow,
16
+ linkToCloseWindow = false,
17
17
  "data-testid": dataTestId
18
18
  } = props;
19
19
  const { getLabel } = useModuleDictionary();
@@ -385,8 +385,8 @@ const dataGridStyles = {
385
385
  ),
386
386
  lineHeight: "var(--rdg-row-height)!important",
387
387
  '&[aria-selected="true"]': {
388
- outline: `2px solid var(--rdg-selection-color)`,
389
- outlineOffset: "-2px"
388
+ // outline: `2px solid var(--rdg-selection-color)`,
389
+ // outlineOffset: '-2px',
390
390
  },
391
391
  "& .checkbox-checked": {
392
392
  "& path:first-of-type": {
@@ -431,7 +431,7 @@ const dataGridStyles = {
431
431
  borderColor: `${theme.vars.palette?.border.disabled} !important`,
432
432
  ...theme.colorSchemes.finalTheme.typography.body
433
433
  },
434
- "&:has(> .M4LRadioButton-root)": {
434
+ "&:has(> .M4LRadio-root)": {
435
435
  overflow: "visible",
436
436
  paddingInline: 0
437
437
  },
@@ -534,12 +534,12 @@ const dataGridStyles = {
534
534
  //Se utiliza directamente el valor porque no está tokenizado
535
535
  },
536
536
  "&&& [aria-selected=true]": {
537
- backgroundColor: theme.vars.palette.primary?.toneOpacity,
538
- color: theme.vars.palette.text.primary,
537
+ // backgroundColor: theme.vars.palette.primary?.toneOpacity,
538
+ // color: theme.vars.palette.text.primary,
539
539
  //cambia el color del contorno de cada celda selecionada
540
- outline: theme.vars.size.borderStroke.container,
541
- outlineOffset: "-1px",
542
- outlineColor: theme.vars.palette.border.main
540
+ // outline: theme.vars.size.borderStroke.container,
541
+ // outlineOffset: '-1px',
542
+ // outlineColor: theme.vars.palette.border.main,
543
543
  },
544
544
  // Alineaciones
545
545
  "& .rdg-cell.rdg-cell-align-left": {
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useContext } from "react";
3
3
  import { SelectCellFormatter } from "react-data-grid";
4
4
  import { C as CheckboxFormatter } from "../Table/subcomponents/CheckboxFormatter.js";
5
- import { R as RadioButtonFormatter } from "../Table/subcomponents/RadioButtonFormatter.js";
5
+ import { R as RadioFormatter } from "../Table/subcomponents/RadioFormatter.js";
6
6
  import { a as DataGridContext } from "../../contexts/DataGridContext/index.js";
7
7
  import { l as CheckboxCellWrapperStyled } from "../../slots/DataGridSlot.js";
8
8
  const CheckboxCellAdapter = forwardRef(function CheckboxCellAdapter2(props, ref) {
@@ -20,7 +20,7 @@ const CheckboxCellAdapter = forwardRef(function CheckboxCellAdapter2(props, ref)
20
20
  const handleClick = (e) => {
21
21
  e.stopPropagation();
22
22
  };
23
- const FormatterComponent = checkedRowsMultiple === false ? RadioButtonFormatter : CheckboxFormatter;
23
+ const FormatterComponent = checkedRowsMultiple === false ? RadioFormatter : CheckboxFormatter;
24
24
  return /* @__PURE__ */ jsx(CheckboxCellWrapperStyled, { onClick: handleClick, children: /* @__PURE__ */ jsx(
25
25
  FormatterComponent,
26
26
  {
@@ -0,0 +1,6 @@
1
+ import { RenderCheckboxProps } from 'react-data-grid';
2
+ /**
3
+ * Componente visual del Radio que se renderiza dentro de cada celda del DataGrid.
4
+ * ¿Para que sirve? Es un wrapper alrededor del componente Radio del MUI que adapta las props de react-data-grid
5
+ */
6
+ export declare const RadioFormatter: import('react').ForwardRefExoticComponent<RenderCheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,12 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { R as Radio } from "../../../../mui_extended/Radio/Radio.js";
4
+ const RadioFormatter = forwardRef(function RadioFormatter2({ onChange, checked, ...props }, _ref) {
5
+ function handleChange(e) {
6
+ onChange(e.target.checked, e.nativeEvent.shiftKey);
7
+ }
8
+ return /* @__PURE__ */ jsx(Radio, { checked, onChange: handleChange, ...props });
9
+ });
10
+ export {
11
+ RadioFormatter as R
12
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
3
3
  import { d as DATAGRID_SELECT_COLUMN_KEY } from "../../../constants.js";
4
- import { R as RadioButtonFormatter } from "./RadioButtonFormatter.js";
4
+ import { R as RadioFormatter } from "./RadioFormatter.js";
5
5
  function RadioSelectGroupFormatter(_props) {
6
6
  return null;
7
7
  }
@@ -15,7 +15,7 @@ function RadioSelectFormatter(props) {
15
15
  }
16
16
  };
17
17
  return /* @__PURE__ */ jsx(
18
- RadioButtonFormatter,
18
+ RadioFormatter,
19
19
  {
20
20
  checked: checkedRows?.has(rowKeyGetter(props.row)) || false,
21
21
  tabIndex: props.tabIndex,
@@ -17,6 +17,7 @@ const DynamicFilterProvider = forwardRef((props, ref) => {
17
17
  fields,
18
18
  initialAppliedFilters = [],
19
19
  onChangeFilters,
20
+ onDirty,
20
21
  dataTestId = "",
21
22
  size,
22
23
  children,
@@ -110,6 +111,11 @@ const DynamicFilterProvider = forwardRef((props, ref) => {
110
111
  (state) => state.countOnChangeFiltersApplied,
111
112
  shallow
112
113
  );
114
+ const isDirty = useStore(
115
+ dynamicFilterStoreRef.current,
116
+ (state) => state.ownerState.isDirty,
117
+ shallow
118
+ );
113
119
  useEffect(() => {
114
120
  if (countOnChangeFiltersApplied === 0) {
115
121
  return;
@@ -134,6 +140,11 @@ const DynamicFilterProvider = forwardRef((props, ref) => {
134
140
  return;
135
141
  }
136
142
  }, []);
143
+ useEffect(() => {
144
+ if (onDirty && isDirty) {
145
+ onDirty();
146
+ }
147
+ }, [isDirty, onDirty]);
137
148
  useEffect(() => {
138
149
  if (dynamicFilterStoreRef.current?.getState().size !== currentSize) {
139
150
  dynamicFilterStoreRef.current?.getState().actions.setSize(currentSize);
@@ -88,6 +88,9 @@ const createDynamicFilterStore = (initProps, storeDevtoolsEnabled = false) => {
88
88
  set((state) => {
89
89
  const indexToRemoved = state.appliedFilters.findIndex((f) => id === f.id && !f.fixed);
90
90
  if (indexToRemoved > -1) {
91
+ if (!state.automatic) {
92
+ state.ownerState.isDirty = true;
93
+ }
91
94
  state.appliedFilters.splice(indexToRemoved, 1);
92
95
  state.ownerState.isEmpty = state.appliedFilters.length === 0;
93
96
  updateAutomatic(state);
@@ -143,6 +146,9 @@ const createDynamicFilterStore = (initProps, storeDevtoolsEnabled = false) => {
143
146
  state.popoverFilterData = void 0;
144
147
  state.ownerState.inEdition = false;
145
148
  state.ownerState.isDirty = false;
149
+ if (!state.automatic) {
150
+ state.ownerState.isDirty = true;
151
+ }
146
152
  updateAutomatic(state);
147
153
  });
148
154
  },
@@ -189,6 +195,9 @@ const createDynamicFilterStore = (initProps, storeDevtoolsEnabled = false) => {
189
195
  if (index > -1) {
190
196
  state.appliedFilters[index] = editFilter;
191
197
  }
198
+ if (!state.automatic) {
199
+ state.ownerState.isDirty = true;
200
+ }
192
201
  updateAutomatic(state);
193
202
  });
194
203
  },
@@ -4,6 +4,6 @@
4
4
  export default function useDynamicFilterBase(): {
5
5
  ownerState: import('../../types').OwnerState;
6
6
  dataTestId: string | undefined;
7
- size: "small" | "medium" | undefined;
7
+ size: import('@m4l/styles').Sizes | undefined;
8
8
  visibleRefresh: boolean | undefined;
9
9
  };
@@ -307,6 +307,10 @@ export interface DynamicFilterProps {
307
307
  * Handler que se dispara cuando el filtro cambia en automatico, o cuando es manual y se presion el boton de filtrar
308
308
  */
309
309
  onChangeFilters?: OnChangeFilters;
310
+ /**
311
+ * Handler cuando se marca como dirty
312
+ */
313
+ onDirty?: () => void;
310
314
  /**
311
315
  * Key único necesario para las pruebas del componente.
312
316
  */
@@ -106,6 +106,9 @@ const createDynamicSortStore = (initProps, storeDevtoolsEnabled = false) => {
106
106
  (f) => id === f.id && !f.fixed
107
107
  );
108
108
  if (index_to_remove > -1) {
109
+ if (!state.automatic) {
110
+ state.ownerState.isDirty = true;
111
+ }
109
112
  state.appliedSorts.splice(index_to_remove, 1);
110
113
  updateAutomatic(state);
111
114
  if (state.appliedSorts.length === 0) {
@@ -172,6 +175,9 @@ const createDynamicSortStore = (initProps, storeDevtoolsEnabled = false) => {
172
175
  clearSorts: () => {
173
176
  set((state) => {
174
177
  state.ownerState.isDirty = false;
178
+ if (!state.automatic) {
179
+ state.ownerState.isDirty = true;
180
+ }
175
181
  state.appliedSorts = state.appliedSorts.filter((f) => f.fixed);
176
182
  updateAvailableFields(state);
177
183
  });
@@ -4,6 +4,6 @@
4
4
  export default function useDynamicSortBase(): {
5
5
  ownerState: import('../../types').OwnerState;
6
6
  dataTestId: string | undefined;
7
- size: "small" | "medium";
7
+ size: import('@m4l/styles').Sizes;
8
8
  visibleRefresh: boolean | undefined;
9
9
  };
@@ -135,6 +135,10 @@ export interface DynamicSortProps {
135
135
  * Handler que se dispara cuando el filtro cambia en automatico, o cuando es manual y se presion el boton de filtrar
136
136
  */
137
137
  onChangeSorts?: OnChangeSorts;
138
+ /**
139
+ * Handler cuando se marca como dirty
140
+ */
141
+ onDirty?: () => void;
138
142
  /**
139
143
  * Key único para necesario para las pruebas del componente.
140
144
  */
@@ -1,2 +1,2 @@
1
- export declare const WrapperAppBarContentChildrenStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Stack').StackProps, keyof import('../../mui_extended/Stack').StackProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
2
- export declare const WrapperContentChildrenStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Stack').StackProps, keyof import('../../mui_extended/Stack').StackProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
1
+ export declare const WrapperAppBarContentChildrenStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Stack').StackProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "title" | "component" | "zIndex" | "id" | "divider" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "direction" | "spacing" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "dataTestId" | keyof import('react').RefAttributes<HTMLDivElement> | "useFlexGap"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
2
+ export declare const WrapperContentChildrenStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Stack').StackProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "title" | "component" | "zIndex" | "id" | "divider" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "direction" | "spacing" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "dataTestId" | keyof import('react').RefAttributes<HTMLDivElement> | "useFlexGap"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
@@ -10,7 +10,7 @@ export declare const GridWrapperStyled: import('@emotion/styled').StyledComponen
10
10
  export declare const WindowBaseStyled: import('@emotion/styled').StyledComponent<Pick<import('../../WindowBase/types').WindowBaseProps, keyof import('../../WindowBase/types').WindowBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
11
  ownerState?: (Partial<import('../types').ObjectLogsOwnerState> & Record<string, unknown>) | undefined;
12
12
  }, {}, {}>;
13
- export declare const StackStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').StackProps, keyof import('../..').StackProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
13
+ export declare const StackStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../..').StackProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "title" | "component" | "zIndex" | "id" | "divider" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "direction" | "spacing" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "dataTestId" | keyof import('react').RefAttributes<HTMLDivElement> | "useFlexGap"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
14
14
  ownerState?: (Partial<import('../types').ObjectLogsOwnerState> & Record<string, unknown>) | undefined;
15
15
  }, {}, {}>;
16
16
  export declare const DetailDialogComponent: import('@emotion/styled').StyledComponent<Pick<import('../types').DetailDialogProps, keyof import('../types').DetailDialogProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
@@ -21,8 +21,12 @@ const stepperStyles = {
21
21
  flex: 1,
22
22
  height: "100%",
23
23
  overflow: "hidden",
24
- flexDirection: ownerState?.orientation === "vertical" || theme.generalSettings.isMobile ? "column" : "row",
25
- gap: theme.vars.size.baseSpacings.sp8
24
+ gap: theme.vars.size.baseSpacings.sp6,
25
+ ...ownerState?.orientation === "vertical" || theme.generalSettings.isMobile ? {
26
+ flexDirection: "column"
27
+ } : {
28
+ flexDirection: "row"
29
+ }
26
30
  }),
27
31
  /**
28
32
  * Estilos para el contenido del paso dentro del Stepper.
@@ -55,12 +59,13 @@ const stepperStyles = {
55
59
  flex: 1,
56
60
  display: "flex",
57
61
  flexDirection: "column",
58
- gap: theme.vars.size.baseSpacings.sp6,
59
62
  overflowY: "auto",
60
63
  ...ownerState?.orientation === "vertical" || theme.generalSettings.isMobile ? {
61
- borderTop: "1px solid",
62
- paddingTop: theme.vars.size.baseSpacings.sp8
64
+ // borderTop: '1px solid',
65
+ gap: theme.vars.size.baseSpacings.sp4
66
+ // paddingTop: theme.vars.size.baseSpacings.sp8,
63
67
  } : {
68
+ gap: theme.vars.size.baseSpacings.sp6,
64
69
  borderLeft: "1px solid",
65
70
  paddingLeft: theme.vars.size.baseSpacings.sp8
66
71
  },
@@ -107,7 +112,7 @@ const stepperStyles = {
107
112
  */
108
113
  stepName: ({ theme, ownerState }) => ({
109
114
  ...ownerState?.orientation === "horizontal" && {
110
- height: theme.generalSettings.isMobile ? theme.vars.size.mobile.medium.action : theme.vars.size.desktop.large.action
115
+ height: theme.generalSettings.isMobile ? theme.vars.size.mobile.medium.action : theme.vars.size.desktop.medium.action
111
116
  },
112
117
  ...(ownerState?.orientation === "vertical" || theme.generalSettings.isMobile) && {
113
118
  maxWidth: "120px",
@@ -203,8 +208,8 @@ const stepperStyles = {
203
208
  position: "sticky",
204
209
  top: 0,
205
210
  backgroundColor: theme.vars.palette.background.default,
206
- zIndex: 10,
207
- paddingBottom: theme.vars.size.baseSpacings.sp2
211
+ zIndex: 10
212
+ // paddingBottom: theme.vars.size.baseSpacings.sp2,
208
213
  }),
209
214
  /**
210
215
  * Estilos para el cuerpo del área de contenido del Stepper