@m4l/components 9.3.34-BE20251127-beta.1 → 9.3.34-JT20251210-beta.1

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 (491) hide show
  1. package/@types/export.d.ts +6 -0
  2. package/@types/types.d.ts +60 -6
  3. package/components/AccountPopover/AccountPopover.styles.js +5 -2
  4. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +6 -6
  5. package/components/ActionsGroup/ActionsGroup.d.ts +5 -0
  6. package/components/ActionsGroup/ActionsGroup.js +40 -0
  7. package/components/ActionsGroup/ActionsGroup.styles.d.ts +2 -0
  8. package/components/ActionsGroup/ActionsGroup.styles.js +95 -0
  9. package/components/ActionsGroup/__tests__/ActionsGroup.test.d.ts +1 -0
  10. package/components/ActionsGroup/constants.d.ts +2 -0
  11. package/components/ActionsGroup/constants.js +8 -0
  12. package/components/ActionsGroup/icons.d.ts +3 -0
  13. package/components/ActionsGroup/icons.js +6 -0
  14. package/components/ActionsGroup/index.d.ts +1 -0
  15. package/components/ActionsGroup/slots/ActionsGroupEnum.d.ts +8 -0
  16. package/components/ActionsGroup/slots/ActionsGroupEnum.js +12 -0
  17. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +15 -0
  18. package/components/ActionsGroup/slots/ActionsGroupSlots.js +35 -0
  19. package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.d.ts +6 -0
  20. package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.js +76 -0
  21. package/components/ActionsGroup/subcomponents/ActionIconButton/types.d.ts +7 -0
  22. package/components/ActionsGroup/types.d.ts +60 -0
  23. package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
  24. package/components/CheckableList/CheckableList.d.ts +20 -0
  25. package/components/CheckableList/CheckableList.js +225 -0
  26. package/components/CheckableList/CheckableList.styles.d.ts +2 -0
  27. package/components/CheckableList/CheckableList.styles.js +247 -0
  28. package/components/CheckableList/constants.d.ts +5 -0
  29. package/components/CheckableList/constants.js +17 -0
  30. package/components/CheckableList/dictionary.d.ts +14 -0
  31. package/components/CheckableList/dictionary.js +14 -0
  32. package/components/CheckableList/hooks/index.d.ts +6 -0
  33. package/components/CheckableList/hooks/useCheckableListHandlers.d.ts +21 -0
  34. package/components/CheckableList/hooks/useCheckableListHandlers.js +66 -0
  35. package/components/CheckableList/hooks/useCheckableListItems.d.ts +19 -0
  36. package/components/CheckableList/hooks/useCheckableListItems.js +79 -0
  37. package/components/CheckableList/hooks/useCheckableListRender.d.ts +52 -0
  38. package/components/CheckableList/hooks/useCheckableListRender.js +223 -0
  39. package/components/CheckableList/hooks/useCheckableListSelection.d.ts +19 -0
  40. package/components/CheckableList/hooks/useCheckableListSelection.js +69 -0
  41. package/components/CheckableList/hooks/useCheckableListState.d.ts +17 -0
  42. package/components/CheckableList/hooks/useCheckableListState.js +59 -0
  43. package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts +14 -0
  44. package/components/CheckableList/hooks/useCheckableListVirtualization.js +42 -0
  45. package/components/CheckableList/icons.d.ts +5 -0
  46. package/components/CheckableList/icons.js +8 -0
  47. package/components/CheckableList/index.d.ts +3 -0
  48. package/components/CheckableList/slots/index.d.ts +2 -0
  49. package/components/CheckableList/slots/index.js +1 -0
  50. package/components/CheckableList/slots/slots.d.ts +26 -0
  51. package/components/CheckableList/slots/slots.js +30 -0
  52. package/components/CheckableList/slots/styled.d.ts +72 -0
  53. package/components/CheckableList/slots/styled.js +130 -0
  54. package/components/CheckableList/types.d.ts +277 -0
  55. package/components/Chip/slots/ChipSlots.d.ts +2 -2
  56. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  57. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +1 -1
  58. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  59. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  60. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  61. package/components/ContainerFlow/ContainerFlow.js +1 -1
  62. package/components/DataGrid/DataGrid.js +9 -1
  63. package/components/DataGrid/Datagrid.styles.js +169 -72
  64. package/components/DataGrid/constants.d.ts +13 -0
  65. package/components/DataGrid/constants.js +11 -0
  66. package/components/DataGrid/contexts/DataGridContext/index.js +62 -275
  67. package/components/DataGrid/contexts/DataGridContext/types.d.ts +24 -23
  68. package/components/DataGrid/dictionary.d.ts +1 -0
  69. package/components/DataGrid/dictionary.js +2 -1
  70. package/components/DataGrid/formatters/ColumnColorFormatter/tests/ColumnColorFormatter.test.d.ts +1 -0
  71. package/components/DataGrid/formatters/ColumnColorFormatter/tests/useColumnColor.test.d.ts +1 -0
  72. package/components/DataGrid/formatters/ColumnImageFormatter/ImageFormatterCell.d.ts +13 -0
  73. package/components/DataGrid/formatters/ColumnImageFormatter/ImageFormatterCell.js +33 -0
  74. package/components/DataGrid/formatters/ColumnImageFormatter/constants.d.ts +6 -0
  75. package/components/DataGrid/formatters/ColumnImageFormatter/constants.js +6 -0
  76. package/components/DataGrid/formatters/ColumnImageFormatter/formatter.d.ts +8 -0
  77. package/components/DataGrid/formatters/ColumnImageFormatter/formatter.js +25 -0
  78. package/components/DataGrid/formatters/ColumnImageFormatter/index.d.ts +3 -0
  79. package/components/DataGrid/formatters/ColumnImageFormatter/index.js +1 -0
  80. package/components/DataGrid/formatters/ColumnImageFormatter/tests/ColumnImageFormatter.test.d.ts +1 -0
  81. package/components/DataGrid/formatters/ColumnImageFormatter/types.d.ts +44 -0
  82. package/components/DataGrid/formatters/ColumnImageFormatter/types.js +1 -0
  83. package/components/DataGrid/formatters/ColumnImageFormatter/useColumnImage.d.ts +9 -0
  84. package/components/DataGrid/formatters/ColumnImageFormatter/useColumnImage.js +22 -0
  85. package/components/DataGrid/formatters/ColumnTagsFormatter/tests/ColumnTagsFormatter.test.d.ts +1 -0
  86. package/components/DataGrid/formatters/ColumnTagsFormatter/tests/useColumnTags.test.d.ts +1 -0
  87. package/components/DataGrid/formatters/index.d.ts +1 -0
  88. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.d.ts +19 -0
  89. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.js +6 -0
  90. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.test.d.ts +1 -0
  91. package/components/DataGrid/helpers/getAllViewModes/index.d.ts +1 -0
  92. package/components/DataGrid/helpers/getAllViewModes/index.js +1 -0
  93. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.d.ts +47 -0
  94. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.js +32 -0
  95. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.test.d.ts +1 -0
  96. package/components/DataGrid/helpers/getColumnsWidth/index.d.ts +1 -0
  97. package/components/DataGrid/helpers/getColumnsWidth/index.js +1 -0
  98. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.d.ts +24 -0
  99. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.js +12 -0
  100. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.test.d.ts +1 -0
  101. package/components/DataGrid/helpers/getIndexRowHeightVariant/index.d.ts +1 -0
  102. package/components/DataGrid/helpers/getIndexRowHeightVariant/index.js +1 -0
  103. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.d.ts +48 -0
  104. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.js +35 -0
  105. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.test.d.ts +1 -0
  106. package/components/DataGrid/helpers/getInitialColumnsConfig/index.d.ts +1 -0
  107. package/components/DataGrid/helpers/getInitialColumnsConfig/index.js +1 -0
  108. package/components/DataGrid/helpers/getViewMode/getViewMode.d.ts +41 -0
  109. package/components/DataGrid/helpers/getViewMode/getViewMode.js +19 -0
  110. package/components/DataGrid/helpers/getViewMode/getViewMode.test.d.ts +1 -0
  111. package/components/DataGrid/helpers/getViewMode/index.d.ts +1 -0
  112. package/components/DataGrid/helpers/getViewMode/index.js +1 -0
  113. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.d.ts +28 -0
  114. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.js +22 -0
  115. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.test.d.ts +1 -0
  116. package/components/DataGrid/helpers/getViewSpecificConfig/index.d.ts +1 -0
  117. package/components/DataGrid/helpers/getViewSpecificConfig/index.js +1 -0
  118. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.d.ts +24 -0
  119. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.js +9 -0
  120. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.test.d.ts +1 -0
  121. package/components/DataGrid/helpers/getViewSuffix/index.d.ts +1 -0
  122. package/components/DataGrid/helpers/getViewSuffix/index.js +1 -0
  123. package/components/DataGrid/helpers/index.d.ts +13 -0
  124. package/components/DataGrid/helpers/index.js +1 -0
  125. package/components/DataGrid/helpers/loadViewConfig/index.d.ts +1 -0
  126. package/components/DataGrid/helpers/loadViewConfig/index.js +1 -0
  127. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.d.ts +23 -0
  128. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.js +12 -0
  129. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.test.d.ts +1 -0
  130. package/components/DataGrid/helpers/saveColumnsWidth/index.d.ts +1 -0
  131. package/components/DataGrid/helpers/saveColumnsWidth/index.js +1 -0
  132. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.d.ts +52 -0
  133. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.js +18 -0
  134. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.test.d.ts +1 -0
  135. package/components/DataGrid/helpers/saveViewConfig/index.d.ts +1 -0
  136. package/components/DataGrid/helpers/saveViewConfig/index.js +1 -0
  137. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.d.ts +35 -0
  138. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.js +15 -0
  139. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.test.d.ts +1 -0
  140. package/components/DataGrid/helpers/saveViewMode/index.d.ts +1 -0
  141. package/components/DataGrid/helpers/saveViewMode/index.js +1 -0
  142. package/components/DataGrid/helpers/saveViewMode/saveViewMode.d.ts +33 -0
  143. package/components/DataGrid/helpers/saveViewMode/saveViewMode.js +13 -0
  144. package/components/DataGrid/helpers/saveViewMode/saveViewMode.test.d.ts +1 -0
  145. package/components/DataGrid/hooks/index.d.ts +6 -0
  146. package/components/DataGrid/hooks/index.js +1 -0
  147. package/components/DataGrid/hooks/useChangeColumnsConfig/index.d.ts +1 -0
  148. package/components/DataGrid/hooks/useChangeColumnsConfig/index.js +1 -0
  149. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.d.ts +9 -0
  150. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.js +27 -0
  151. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.test.d.ts +1 -0
  152. package/components/DataGrid/hooks/useChangeColumnsOrder/index.d.ts +1 -0
  153. package/components/DataGrid/hooks/useChangeColumnsOrder/index.js +1 -0
  154. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +10 -0
  155. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.js +34 -0
  156. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.test.d.ts +1 -0
  157. package/components/DataGrid/hooks/useColumnsWidth/index.d.ts +1 -0
  158. package/components/DataGrid/hooks/useColumnsWidth/index.js +1 -0
  159. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.d.ts +11 -0
  160. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.js +29 -0
  161. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.test.d.ts +1 -0
  162. package/components/DataGrid/hooks/useModalCardDetail.d.ts +1 -1
  163. package/components/DataGrid/hooks/useModalCardDetail.js +6 -1
  164. package/components/DataGrid/hooks/useRowHeight/index.d.ts +1 -0
  165. package/components/DataGrid/hooks/useRowHeight/index.js +1 -0
  166. package/components/DataGrid/hooks/useRowHeight/useRowHeight.d.ts +28 -0
  167. package/components/DataGrid/hooks/useRowHeight/useRowHeight.js +51 -0
  168. package/components/DataGrid/hooks/useRowHeight/useRowHeight.test.d.ts +1 -0
  169. package/components/DataGrid/hooks/useViewConfig/index.d.ts +1 -0
  170. package/components/DataGrid/hooks/useViewConfig/index.js +1 -0
  171. package/components/DataGrid/hooks/useViewConfig/useViewConfig.d.ts +9 -0
  172. package/components/DataGrid/hooks/useViewConfig/useViewConfig.js +30 -0
  173. package/components/DataGrid/hooks/useViewConfig/useViewConfig.test.d.ts +1 -0
  174. package/components/DataGrid/hooks/useViewMode/index.d.ts +1 -0
  175. package/components/DataGrid/hooks/useViewMode/index.js +1 -0
  176. package/components/DataGrid/hooks/useViewMode/useViewMode.d.ts +31 -0
  177. package/components/DataGrid/hooks/useViewMode/useViewMode.js +44 -0
  178. package/components/DataGrid/hooks/useViewMode/useViewMode.test.d.ts +1 -0
  179. package/components/DataGrid/icons.d.ts +1 -0
  180. package/components/DataGrid/icons.js +2 -1
  181. package/components/DataGrid/index.d.ts +5 -4
  182. package/components/DataGrid/slots/DataGridEnum.d.ts +4 -1
  183. package/components/DataGrid/slots/DataGridEnum.js +3 -0
  184. package/components/DataGrid/slots/DataGridSlot.d.ts +3 -0
  185. package/components/DataGrid/slots/DataGridSlot.js +48 -33
  186. package/components/DataGrid/subcomponents/Cards/helpers/calculateCardHeight.d.ts +5 -4
  187. package/components/DataGrid/subcomponents/Cards/helpers/calculateCardHeight.js +4 -1
  188. package/components/DataGrid/subcomponents/Cards/helpers/scrollToCardElement.js +2 -2
  189. package/components/DataGrid/subcomponents/Cards/hooks/useCardContent.d.ts +1 -1
  190. package/components/DataGrid/subcomponents/Cards/hooks/useCardContent.js +47 -5
  191. package/components/DataGrid/subcomponents/Cards/index.js +22 -6
  192. package/components/DataGrid/subcomponents/Cards/subcomponents/CardDetails/index.d.ts +1 -1
  193. package/components/DataGrid/subcomponents/Cards/subcomponents/CardDetails/index.js +57 -15
  194. package/components/DataGrid/subcomponents/Cards/subcomponents/CardHeader/index.js +16 -8
  195. package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.d.ts +2 -2
  196. package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.js +6 -1
  197. package/components/DataGrid/subcomponents/Cards/types.d.ts +16 -0
  198. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +5 -2
  199. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +1 -1
  200. package/components/DataGrid/subcomponents/HeaderActions/index.js +2 -2
  201. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +0 -3
  202. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/RowsCount/index.js +1 -1
  203. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -1
  204. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.js +1 -1
  205. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.js +1 -1
  206. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -2
  207. package/components/DataGrid/subcomponents/Table/index.js +11 -2
  208. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +0 -3
  209. package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -0
  210. package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +39 -14
  211. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +1 -1
  212. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  213. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.d.ts +6 -0
  214. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.js +12 -0
  215. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.d.ts +64 -0
  216. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.js +46 -0
  217. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
  218. package/components/DataGrid/tests/helpers/types.d.ts +10 -0
  219. package/components/DataGrid/tests/table/subcomponents/RadioFormatter.test.d.ts +1 -0
  220. package/components/DataGrid/tests/table/subcomponents/RadioSelectColumn.test.d.ts +1 -0
  221. package/components/DataGrid/types.d.ts +49 -6
  222. package/components/DataGrid/types.helpers.d.ts +55 -0
  223. package/components/DataGrid/types.helpers.js +1 -0
  224. package/components/DataGrid/types.hooks.d.ts +81 -0
  225. package/components/DynamicFilter/DynamicFilter.styles.js +5 -2
  226. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
  227. package/components/DynamicFilter/store/DynamicFilterContext.js +11 -0
  228. package/components/DynamicFilter/store/DynamicFilterStore.js +9 -0
  229. package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -1
  230. package/components/DynamicFilter/types.d.ts +4 -0
  231. package/components/DynamicSort/DynamicSort.styles.js +5 -2
  232. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  233. package/components/DynamicSort/store/DynamicSortStore.js +6 -0
  234. package/components/DynamicSort/subcomponents/DynamicSortBase/useDynamicSortBase.d.ts +1 -1
  235. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +3 -0
  236. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +3 -0
  237. package/components/DynamicSort/types.d.ts +4 -0
  238. package/components/EditLabel/constants.d.ts +1 -1
  239. package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
  240. package/components/GridLayout/styles.js +0 -1
  241. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  242. package/components/ImageText/constants.d.ts +1 -1
  243. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  244. package/components/Label/index.d.ts +1 -1
  245. package/components/Label/slots/LabelSlots.d.ts +3 -3
  246. package/components/Label/types.d.ts +6 -0
  247. package/components/LanguagePopover/LanguagePopover.styles.js +13 -4
  248. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  249. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  250. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  251. package/components/MFLoader/styles.js +0 -1
  252. package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
  253. package/components/ModalDialog/ModalDialog.styles.js +8 -1
  254. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  255. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  256. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
  257. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  258. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  259. package/components/PrintingSystem/PrintingSystem.js +3 -1
  260. package/components/PrintingSystem/PrintingSystem.styles.js +179 -2
  261. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
  262. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  263. package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -3
  264. package/components/Stepper/Stepper.styles.js +13 -8
  265. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/getStepsAndValidationSchema.d.ts +4 -4
  266. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/getStepsAndValidationSchema.js +6 -12
  267. package/components/Stepper/helpers/getStepsAndValidationSchema/index.js +1 -0
  268. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/types.d.ts +6 -3
  269. package/components/Stepper/helpers/getStepsAndValidationSchema/types.js +1 -0
  270. package/components/Stepper/hooks/useDynamicValidation/index.d.ts +2 -1
  271. package/components/Stepper/hooks/useDynamicValidation/index.js +31 -6
  272. package/components/Stepper/index.d.ts +1 -0
  273. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  274. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +12 -12
  275. package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
  276. package/components/WindowBase/WindowBase.styles.js +8 -0
  277. package/components/WindowBase/hooks/useDynamicMFParameters/index.d.ts +4 -4
  278. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  279. package/components/WindowBase/subcomponents/Header/useButtonActions.js +23 -13
  280. package/components/animate/variants/background.d.ts +9 -9
  281. package/components/animate/variants/bounce.d.ts +9 -9
  282. package/components/animate/variants/fade.d.ts +20 -20
  283. package/components/animate/variants/flip.d.ts +6 -6
  284. package/components/animate/variants/rotate.d.ts +3 -3
  285. package/components/animate/variants/scale.d.ts +6 -6
  286. package/components/animate/variants/slide.d.ts +16 -16
  287. package/components/animate/variants/transition.d.ts +3 -3
  288. package/components/animate/variants/zoom.d.ts +15 -15
  289. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +3 -3
  290. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +5 -0
  291. package/components/commercial/AppBarCommercial/styles.js +1 -3
  292. package/components/commercial/HamburgerMenu/styles.js +1 -3
  293. package/components/commercial/SectionCommercial/styles.d.ts +1 -1
  294. package/components/commercial/SectionCommercial/styles.js +1 -3
  295. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -3
  296. package/components/commercial/TopBar/style.js +1 -3
  297. package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  298. package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  299. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +6 -6
  300. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  301. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  302. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  303. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  304. package/components/formatters/ImageFormatter/ImageFormatter.d.ts +10 -0
  305. package/components/formatters/ImageFormatter/ImageFormatter.js +72 -0
  306. package/components/formatters/ImageFormatter/ImageFormatter.styles.d.ts +2 -0
  307. package/components/formatters/ImageFormatter/ImageFormatter.styles.js +42 -0
  308. package/components/formatters/ImageFormatter/constants.d.ts +5 -0
  309. package/components/formatters/ImageFormatter/constants.js +10 -0
  310. package/components/formatters/ImageFormatter/index.d.ts +2 -0
  311. package/components/formatters/ImageFormatter/index.js +1 -0
  312. package/components/formatters/ImageFormatter/slots/ImageFormatterEnum.d.ts +5 -0
  313. package/components/formatters/ImageFormatter/slots/ImageFormatterEnum.js +9 -0
  314. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +9 -0
  315. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.js +23 -0
  316. package/components/formatters/ImageFormatter/tests/ImageFormatter.test.d.ts +1 -0
  317. package/components/formatters/ImageFormatter/types.d.ts +51 -0
  318. package/components/formatters/ImageFormatter/types.js +1 -0
  319. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  320. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  321. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  322. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  323. package/components/formatters/index.d.ts +1 -0
  324. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.d.ts +7 -0
  325. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +87 -0
  326. package/components/hook-form/RHFActionsGroup/RHFActionsGroupStyles.d.ts +2 -0
  327. package/components/hook-form/RHFActionsGroup/RHFActionsGroupStyles.js +14 -0
  328. package/components/hook-form/RHFActionsGroup/constants.d.ts +9 -0
  329. package/components/hook-form/RHFActionsGroup/constants.js +8 -0
  330. package/components/hook-form/RHFActionsGroup/index.d.ts +2 -0
  331. package/components/hook-form/RHFActionsGroup/index.js +1 -0
  332. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupEnum.d.ts +3 -0
  333. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupEnum.js +7 -0
  334. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.d.ts +1 -0
  335. package/components/hook-form/RHFActionsGroup/slots/RHFActionsGroupSlots.js +11 -0
  336. package/components/hook-form/RHFActionsGroup/slots/index.d.ts +2 -0
  337. package/components/hook-form/RHFActionsGroup/slots/index.js +1 -0
  338. package/components/hook-form/RHFActionsGroup/tests/RHFActionsGroup.test.d.ts +1 -0
  339. package/components/hook-form/RHFActionsGroup/tests/common.d.ts +28 -0
  340. package/components/hook-form/RHFActionsGroup/types.d.ts +54 -0
  341. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +2 -2
  342. package/components/hook-form/RHFCheckableList/RHFCheckableList.d.ts +7 -0
  343. package/components/hook-form/RHFCheckableList/RHFCheckableList.js +91 -0
  344. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.d.ts +2 -0
  345. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.js +30 -0
  346. package/components/hook-form/RHFCheckableList/constants.d.ts +8 -0
  347. package/components/hook-form/RHFCheckableList/constants.js +11 -0
  348. package/components/hook-form/RHFCheckableList/index.d.ts +2 -0
  349. package/components/hook-form/RHFCheckableList/index.js +1 -0
  350. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.d.ts +6 -0
  351. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.js +10 -0
  352. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.d.ts +20 -0
  353. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.js +29 -0
  354. package/components/hook-form/RHFCheckableList/slots/index.d.ts +2 -0
  355. package/components/hook-form/RHFCheckableList/types.d.ts +60 -0
  356. package/components/hook-form/RHFCheckbox/RHFCheckbox.js +2 -2
  357. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  358. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +2 -2
  359. package/components/hook-form/RHFColorPicker/hooks/useColorPicker/useColorPicker.d.ts +1 -1
  360. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
  361. package/components/hook-form/RHFDatePicker/RHFDatePicker.js +2 -2
  362. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +3 -3
  363. package/components/hook-form/RHFDateTime/RHFDateTime.js +2 -2
  364. package/components/hook-form/RHFNumberInput/RHFNumberInput.js +2 -2
  365. package/components/hook-form/RHFPeriod/RHFPeriod.js +2 -2
  366. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  367. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +4 -4
  368. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +3 -3
  369. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +66 -24
  370. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.d.ts +5 -0
  371. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.js +29 -0
  372. package/components/hook-form/RHFRadioGroup/constants.d.ts +5 -0
  373. package/components/hook-form/RHFRadioGroup/constants.js +8 -0
  374. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -2
  375. package/components/hook-form/RHFRadioGroup/slots/slots.d.ts +5 -0
  376. package/components/hook-form/RHFRadioGroup/slots/slots.js +9 -0
  377. package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +9 -0
  378. package/components/hook-form/RHFRadioGroup/slots/styled.js +20 -0
  379. package/components/hook-form/RHFRadioGroup/types.d.ts +55 -11
  380. package/components/hook-form/RHFSelect/RHFSelect.js +2 -2
  381. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  382. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  383. package/components/hook-form/RHFTextField/RHFTextField.js +2 -2
  384. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  385. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +2 -2
  386. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
  387. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +3 -1
  388. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
  389. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +5 -4
  390. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +4 -0
  391. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +6 -4
  392. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
  393. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
  394. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +3 -2
  395. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/types.d.ts +1 -1
  396. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +13 -4
  397. package/components/hook-form/RHFUpload/RHFUploadSingleFile/types.d.ts +4 -0
  398. package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
  399. package/components/hook-form/RHFormProvider/styles.js +4 -3
  400. package/components/hook-form/index.d.ts +2 -0
  401. package/components/index.d.ts +2 -0
  402. package/components/mui_extended/Accordion/Accordion.js +3 -3
  403. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +3 -3
  404. package/components/mui_extended/Accordion/styles.js +8 -5
  405. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +11 -1
  406. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
  407. package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
  408. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  409. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +2 -2
  410. package/components/mui_extended/CheckBox/CheckBox.js +2 -0
  411. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  412. package/components/mui_extended/DatePicker/constants.d.ts +1 -1
  413. package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +3 -3
  414. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +158 -129
  415. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
  416. package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
  417. package/components/mui_extended/IconButton/constants.d.ts +1 -1
  418. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
  419. package/components/mui_extended/ImageButton/styles.js +1 -3
  420. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  421. package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  422. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
  423. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
  424. package/components/mui_extended/Popover/Popover.styles.js +6 -1
  425. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  426. package/components/mui_extended/Radio/Radio.d.ts +20 -0
  427. package/components/mui_extended/Radio/Radio.js +111 -0
  428. package/components/mui_extended/Radio/Radio.styles.d.ts +2 -0
  429. package/components/mui_extended/Radio/Radio.styles.js +101 -0
  430. package/components/mui_extended/Radio/constants.d.ts +2 -0
  431. package/components/mui_extended/Radio/constants.js +8 -0
  432. package/components/mui_extended/Radio/icons.d.ts +4 -0
  433. package/components/mui_extended/Radio/icons.js +7 -0
  434. package/components/mui_extended/Radio/index.d.ts +1 -0
  435. package/components/mui_extended/Radio/index.js +1 -0
  436. package/components/mui_extended/Radio/slots/slots.d.ts +6 -0
  437. package/components/mui_extended/Radio/slots/slots.js +10 -0
  438. package/components/mui_extended/Radio/slots/styled.d.ts +14 -0
  439. package/components/mui_extended/Radio/slots/styled.js +28 -0
  440. package/components/mui_extended/Radio/tests/Radio.test.d.ts +1 -0
  441. package/components/mui_extended/Radio/types.d.ts +53 -0
  442. package/components/mui_extended/Select/Select.js +2 -18
  443. package/components/mui_extended/Select/Select.styles.js +33 -1
  444. package/components/mui_extended/Select/constants.d.ts +2 -1
  445. package/components/mui_extended/Select/slots/SelectEnum.d.ts +2 -1
  446. package/components/mui_extended/Select/slots/SelectEnum.js +1 -0
  447. package/components/mui_extended/Select/slots/SelectSlots.d.ts +5 -5
  448. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  449. package/components/mui_extended/Stack/Stack.d.ts +1 -1
  450. package/components/mui_extended/Stack/Stack.js +5 -2
  451. package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
  452. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +2 -2
  453. package/components/mui_extended/TabContent/TabContent.styles.js +2 -2
  454. package/components/mui_extended/Tabs/Tabs.js +48 -2
  455. package/components/mui_extended/Tabs/Tabs.styles.js +52 -26
  456. package/components/mui_extended/Tabs/icons.d.ts +4 -0
  457. package/components/mui_extended/Tabs/icons.js +7 -0
  458. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
  459. package/components/mui_extended/Tabs/types.d.ts +4 -1
  460. package/components/mui_extended/TextField/TextField.styles.js +2 -1
  461. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +4 -4
  462. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
  463. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  464. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  465. package/components/mui_extended/Tooltip/Tooltip.styles.js +22 -4
  466. package/components/mui_extended/Tooltip/constants.d.ts +1 -1
  467. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  468. package/components/mui_extended/index.d.ts +1 -0
  469. package/hooks/useDataGridPersistence/constants.d.ts +2 -0
  470. package/hooks/useDataGridPersistence/constants.js +6 -2
  471. package/hooks/useDataGridPersistence/helpers.d.ts +5 -1
  472. package/hooks/useDataGridPersistence/helpers.js +8 -1
  473. package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +11 -3
  474. package/hooks/useDataGridPersistence/useDataGridPersistence.js +65 -20
  475. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.d.ts +2 -1
  476. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.js +1 -0
  477. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -3
  478. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.js +6 -0
  479. package/hooks/useDynamicFilterAndSort/styles.js +23 -0
  480. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -0
  481. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +27 -21
  482. package/index.d.ts +0 -1
  483. package/index.js +258 -240
  484. package/package.json +1 -1
  485. package/components/DataGrid/formatters/ColumnIconFormatter/constants.d.ts +0 -4
  486. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.js +0 -16
  487. package/helpers/index.d.ts +0 -1
  488. /package/{helpers/getStepsAndValidationSchema → components/ActionsGroup}/index.js +0 -0
  489. /package/{helpers → components/CheckableList/hooks}/index.js +0 -0
  490. /package/{helpers/getStepsAndValidationSchema/types.js → components/CheckableList/index.js} +0 -0
  491. /package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/index.d.ts +0 -0
@@ -0,0 +1,55 @@
1
+ import { RowKey } from './types';
2
+ import { BaseConfigColumn } from './contexts/DataGridContext/types';
3
+ /**
4
+ * Configuración base genérica que puede extenderse con propiedades específicas de cualquier vista.
5
+ *
6
+ * USO INTERNO: El sistema usa esto para manejar genéricamente las configuraciones
7
+ * de columnas sin importar el tipo de vista (table, cards, etc).
8
+ * @example
9
+ * // Para vista table
10
+ * BaseViewConfig<{ frozen: boolean }>
11
+ *
12
+ * // Para vista cards
13
+ * BaseViewConfig<{ showTitle: boolean }>
14
+ */
15
+ export type BaseViewConfig<TViewSpecific = object> = TViewSpecific & {
16
+ key: string;
17
+ visible: boolean;
18
+ index: number;
19
+ name?: string;
20
+ };
21
+ /**
22
+ *
23
+ *Este tipo define la estructura de configuración que el usuario puede
24
+ *pasar al DataGrid para personalizar columnas y sus anchos.
25
+ *
26
+ *- `columnsConfig`: Configuración de visibilidad y orden de columnas para vista table
27
+ *- `columnsWidths`: Anchos personalizados de columnas
28
+ * @example
29
+ * ```typescript
30
+ * const userConfig: IGridConfig = {
31
+ * columnsConfig: [
32
+ * { key: 'name', visible: true, index: 0, frozen: false },
33
+ * { key: 'email', visible: true, index: 1, frozen: false },
34
+ * ],
35
+ * columnsWidths: { name: 200, email: 300 }
36
+ * };
37
+ * ```
38
+ */
39
+ export interface IGridConfig {
40
+ /** Configuración de columnas para vista table (visibilidad, orden, frozen) */
41
+ columnsConfig: BaseConfigColumn[];
42
+ /** Anchos de columnas en píxeles */
43
+ columnsWidths: Record<RowKey, number>;
44
+ }
45
+ /**
46
+ * Configuración específica retornada por getViewSpecificConfig
47
+ */
48
+ export interface ViewSpecificConfig {
49
+ /** Valores por defecto para propiedades específicas de la vista */
50
+ defaults: Record<string, unknown>;
51
+ /** Valores originales por defecto para tracking de cambios */
52
+ originalDefaults: Record<string, unknown>;
53
+ /** Función para obtener propiedades originales dinámicas de un item */
54
+ dynamicOriginalProperty: (item: unknown) => Record<string, unknown>;
55
+ }
@@ -0,0 +1,81 @@
1
+ import { RowKey, RowHeightVariants, RowHeights, OnChangeConfig } from './types';
2
+ import { Maybe } from '@m4l/core';
3
+ import { IViewConfig, RowHeightState, ViewMode } from './contexts/DataGridContext/types';
4
+ export interface UseViewModeParams {
5
+ /** Identificador único del DataGrid */
6
+ id: RowKey;
7
+ /** ViewMode controlado por el padre */
8
+ viewMode?: ViewMode;
9
+ /** ViewMode por defecto cuando no hay valor guardado */
10
+ defaultViewMode?: ViewMode;
11
+ /** Callback cuando cambia el viewMode */
12
+ onViewModeChange?: (viewMode: ViewMode) => void;
13
+ /** Callback para persistir cambios */
14
+ onChangeConfig?: OnChangeConfig;
15
+ }
16
+ export interface UseViewModeReturn {
17
+ /** Estado actual del viewMode */
18
+ viewModeState: ViewMode;
19
+ /** Función para establecer el viewMode */
20
+ setViewModeState: React.Dispatch<React.SetStateAction<ViewMode>>;
21
+ /** Función para cambiar el viewMode y persistirlo */
22
+ handleViewModeChange: (newViewMode: ViewMode) => void;
23
+ }
24
+ export interface UseRowHeightParams {
25
+ /** Alturas de las filas (número fijo o array de 3 elementos) */
26
+ rowHeights: RowHeights;
27
+ /** Alturas de los headers (número fijo o array de 3 elementos) */
28
+ rowHeaderHeights: RowHeights;
29
+ /** Variant inicial de altura */
30
+ initialRowHeightVariant: RowHeightVariants;
31
+ }
32
+ export interface UseRowHeightReturn {
33
+ /** Estado actual de la altura de filas */
34
+ currentRowHeightVariant: RowHeightState;
35
+ /** Función para cambiar el variant de altura */
36
+ setRowHeightVariant: (newVariant: RowHeightVariants) => void;
37
+ }
38
+ export interface UseColumnsWidthParams {
39
+ /** Identificador único del DataGrid */
40
+ id: RowKey;
41
+ /** Callback para persistir cambios */
42
+ onChangeConfig?: OnChangeConfig;
43
+ }
44
+ export interface UseColumnsWidthReturn {
45
+ /** Mapa con el ancho de cada columna */
46
+ columnsWidths: Map<string, Maybe<string | number>>;
47
+ /** Función para establecer el mapa de anchos */
48
+ setColumnsWidths: React.Dispatch<React.SetStateAction<Map<string, Maybe<string | number>>>>;
49
+ /** Función para cambiar el ancho de una columna */
50
+ onChangeColumnWidth: (columnKey: string, width: number) => void;
51
+ }
52
+ export interface UseViewConfigReturn {
53
+ /** Estado de configuración por vista */
54
+ viewConfig: Record<ViewMode, IViewConfig<any, any>[]>;
55
+ /** Obtiene la configuración de columnas para una vista */
56
+ getConfigColumns: (viewMode: ViewMode) => IViewConfig<any, any>[];
57
+ /** Actualiza la configuración de columnas para una vista */
58
+ updateConfigColumns: (viewMode: ViewMode, config: IViewConfig<any, any>[]) => void;
59
+ }
60
+ export interface UseChangeColumnsConfigParams {
61
+ /** Identificador único del DataGrid */
62
+ id: RowKey;
63
+ /** Callback para persistir cambios */
64
+ onChangeConfig?: OnChangeConfig;
65
+ /** Función para actualizar la configuración de columnas */
66
+ updateConfigColumns: (viewMode: ViewMode, config: IViewConfig<any, any>[]) => void;
67
+ }
68
+ export interface UseChangeColumnsConfigReturn {
69
+ /** Función para cambiar la configuración de columnas de una vista */
70
+ onChangeColumnsConfig: (viewMode: ViewMode, newConfig: IViewConfig<any, any>[]) => void;
71
+ }
72
+ export interface UseChangeColumnsOrderParams {
73
+ /** Función para obtener la configuración de columnas de una vista */
74
+ getConfigColumns: (viewMode: ViewMode) => IViewConfig<any, any>[];
75
+ /** Función para cambiar la configuración de columnas */
76
+ onChangeColumnsConfig: (viewMode: ViewMode, newConfig: IViewConfig<any, any>[]) => void;
77
+ }
78
+ export interface UseChangeColumnsOrderReturn {
79
+ /** Función para cambiar el orden de columnas de una vista */
80
+ onChangeColumnsOrder: (viewMode: ViewMode, sourceKey: string, targetKey: string) => void;
81
+ }
@@ -227,7 +227,8 @@ const dynamicFilterStyles = {
227
227
  flexDirection: "column",
228
228
  padding: theme.vars.size.baseSpacings.sp3,
229
229
  gap: theme.vars.size.baseSpacings.sp1,
230
- borderRadius: theme.vars.size.borderRadius.r1
230
+ borderRadius: theme.vars.size.borderRadius.r1,
231
+ backgroundColor: theme.vars.palette.background.default
231
232
  }
232
233
  }),
233
234
  /**
@@ -241,6 +242,7 @@ const dynamicFilterStyles = {
241
242
  minWidth: "220px",
242
243
  maxWidth: "100%",
243
244
  minHeight: "auto",
245
+ backgroundColor: theme.vars.palette.background.default,
244
246
  boxShadow: theme.customShadows?.z3,
245
247
  "& .M4LPopover-arrowStyle": {
246
248
  display: "none"
@@ -250,7 +252,8 @@ const dynamicFilterStyles = {
250
252
  width: "max-content",
251
253
  minWidth: "220px",
252
254
  maxWidth: "420px",
253
- height: "fit-content"
255
+ height: "fit-content",
256
+ overflow: "visible"
254
257
  },
255
258
  "& .M4LWindowBase-root": {
256
259
  borderRadius: `${theme.vars.size.borderRadius.r3}!important`,
@@ -19,10 +19,10 @@ export declare const AppliedFilterInnerContainerStyled: import('@emotion/styled'
19
19
  export declare const ActionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
20
20
  ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
21
21
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
22
- export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "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" | "instaceDataTestId" | "placement" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
22
+ export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
23
23
  ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
24
24
  }, {}, {}>;
25
- export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "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" | "instaceDataTestId" | "placement" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
25
+ export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
26
26
  ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
27
27
  }, {}, {}>;
28
28
  export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
@@ -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
  */
@@ -227,7 +227,8 @@ const dynamicSortStyles = {
227
227
  flexDirection: "column",
228
228
  padding: theme.vars.size.baseSpacings.sp3,
229
229
  gap: theme.vars.size.baseSpacings.sp1,
230
- borderRadius: theme.vars.size.borderRadius.r1
230
+ borderRadius: theme.vars.size.borderRadius.r1,
231
+ backgroundColor: theme.vars.palette.background.default
231
232
  }
232
233
  }),
233
234
  /**
@@ -241,6 +242,7 @@ const dynamicSortStyles = {
241
242
  maxWidth: "100%",
242
243
  minHeight: "auto",
243
244
  borderRadius: `${theme.vars.size.borderRadius.r3}!important`,
245
+ backgroundColor: theme.vars.palette.background.default,
244
246
  boxShadow: theme.customShadows?.z3,
245
247
  "& .M4LPopover-arrowStyle": {
246
248
  display: "none"
@@ -250,7 +252,8 @@ const dynamicSortStyles = {
250
252
  width: "max-content",
251
253
  minWidth: "220px",
252
254
  maxWidth: "420px",
253
- height: "fit-content"
255
+ height: "fit-content",
256
+ overflow: "visible"
254
257
  },
255
258
  "& .M4LWindowBase-root": {
256
259
  borderRadius: `${theme.vars.size.borderRadius.r3} !important`,
@@ -19,10 +19,10 @@ export declare const AppliedSortInnerContainerStyled: import('@emotion/styled').
19
19
  export declare const ActionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
20
20
  ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
21
21
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
22
- export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "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" | "instaceDataTestId" | "placement" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
22
+ export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
23
23
  ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
24
24
  }, {}, {}>;
25
- export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "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" | "instaceDataTestId" | "placement" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
25
+ export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
26
26
  ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
27
27
  }, {}, {}>;
28
28
  export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
@@ -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
  };
@@ -26,6 +26,9 @@ function PopoverMenuFields(props) {
26
26
  onClose: handleClosePopover,
27
27
  anchorEl,
28
28
  container: popoverContainerRef.current,
29
+ sx: (theme) => ({
30
+ mt: theme.vars.size.baseSpacings.sp2
31
+ }),
29
32
  children: [
30
33
  isOpenPopoverMenuFields && fields.map((field, index) => /* @__PURE__ */ jsx(
31
34
  MenuItem,
@@ -38,6 +38,9 @@ function PopoverSort() {
38
38
  anchorEl,
39
39
  onKeyDown: handleKeyDownPopper,
40
40
  onClose: handleClosePopover,
41
+ sx: (theme) => ({
42
+ mt: theme.vars.size.baseSpacings.sp2
43
+ }),
41
44
  children: /* @__PURE__ */ jsx(
42
45
  RHFormProvider,
43
46
  {
@@ -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
1
  export declare const EDIT_LABEL_KEY_COMPONENT = "M4LEditLabel";
2
- export declare const EDIT_LABEL_CLASSES: Record<"root" | "label" | "iconButton" | "textField" | "iconButtonEdit" | "containerActions", string>;
2
+ export declare const EDIT_LABEL_CLASSES: Record<"label" | "root" | "iconButton" | "textField" | "iconButtonEdit" | "containerActions", string>;