@m4l/components 9.2.56-beta.2 → 9.2.57

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 (374) hide show
  1. package/.storybook/decorators/WithWindowsToolsContext/WithContextWindowTools.d.ts +5 -0
  2. package/.storybook/utils/getStylesColorsByMode.d.ts +4 -4
  3. package/@types/augmentations.d.ts +1 -1
  4. package/@types/types.d.ts +9 -10
  5. package/components/AccountPopover/AccountPopover.js +4 -3
  6. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +32 -32
  7. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +14 -13
  8. package/components/AccountPopover/types.d.ts +2 -2
  9. package/components/AppBar/AppBar.js +9 -6
  10. package/components/AppBar/slots/AppBarSlots.d.ts +16 -16
  11. package/components/AppBar/styles.js +1 -2
  12. package/components/AppBar/types.d.ts +2 -2
  13. package/components/Chip/ChipStyles.js +12 -12
  14. package/components/Chip/slots/ChipSlots.d.ts +6 -6
  15. package/components/Color/Color.styles.js +11 -11
  16. package/components/Color/slots/ColorSlots.d.ts +5 -5
  17. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  18. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  19. package/components/CommonActions/components/ActionFormIntro/ActionFormIntro.js +1 -0
  20. package/components/CommonActions/components/ActionFormIntro/slots/ActionFormIntroSlots.d.ts +2 -2
  21. package/components/CommonActions/components/ActionFormIntro/types.d.ts +2 -2
  22. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  23. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  24. package/components/DataGrid/DataGrid.js +8 -29
  25. package/components/DataGrid/constants.d.ts +0 -1
  26. package/components/DataGrid/constants.js +0 -2
  27. package/components/DataGrid/contexts/DataGridContext/index.js +44 -31
  28. package/components/DataGrid/contexts/DataGridContext/types.d.ts +1 -6
  29. package/components/DataGrid/dictionary.d.ts +2 -1
  30. package/components/DataGrid/dictionary.js +22 -21
  31. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +2 -0
  32. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js +2 -2
  33. package/components/DataGrid/icons.d.ts +0 -1
  34. package/components/DataGrid/icons.js +3 -4
  35. package/components/DataGrid/slots/DataGridEnum.d.ts +0 -6
  36. package/components/DataGrid/slots/DataGridEnum.js +2 -10
  37. package/components/DataGrid/slots/DataGridSlot.d.ts +0 -9
  38. package/components/DataGrid/slots/DataGridSlot.js +14 -35
  39. package/components/DataGrid/styles.js +484 -0
  40. package/components/DataGrid/subcomponents/Actions/index.d.ts +5 -0
  41. package/components/DataGrid/subcomponents/Actions/index.js +49 -0
  42. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Density/index.js +7 -8
  43. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Filter/index.js +2 -2
  44. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +7 -0
  45. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/MobileMenuActions/index.js +4 -4
  46. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/RowsCount/index.js +4 -4
  47. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +5 -0
  48. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/index.js +4 -6
  49. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +47 -57
  50. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +3 -4
  51. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/types.d.ts +4 -0
  52. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +7 -0
  53. package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/hooks/useModalSettings/index.js +7 -11
  54. package/components/DataGrid/subcomponents/Actions/types.d.ts +16 -0
  55. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +5 -5
  56. package/components/DataGrid/subcomponents/Table/index.js +4 -4
  57. package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +3 -12
  58. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +13 -28
  59. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +2 -2
  60. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +2 -4
  61. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
  62. package/components/DataGrid/types.d.ts +3 -20
  63. package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +1 -1
  64. package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +5 -3
  65. package/components/DynamicFilter/DynamicFilter.styles.js +13 -13
  66. package/components/DynamicFilter/dictionary.d.ts +1 -0
  67. package/components/DynamicFilter/dictionary.js +2 -1
  68. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +19 -19
  69. package/components/DynamicFilter/store/DynamicFilterStore.js +2 -2
  70. package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -2
  71. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
  72. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +3 -2
  73. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -2
  74. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +4 -3
  75. package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
  76. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -0
  77. package/components/DynamicFilter/types.d.ts +1 -1
  78. package/components/DynamicSort/DynamicSort.styles.js +13 -13
  79. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +19 -19
  80. package/components/DynamicSort/store/DynamicSortStore.js +2 -2
  81. package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -2
  82. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -0
  83. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +5 -4
  84. package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
  85. package/components/DynamicSort/subcomponents/SortActions/SortActions.js +3 -2
  86. package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -2
  87. package/components/GridLayout/styles.js +82 -4
  88. package/components/HelperError/HelperError.styles.js +4 -4
  89. package/components/Icon/Icon.js +1 -1
  90. package/components/Icon/Icon.styles.js +10 -10
  91. package/components/Image/Image.js +1 -1
  92. package/components/Image/image.styles.js +1 -1
  93. package/components/Image/slots/ImageSlots.d.ts +12 -12
  94. package/components/Image/subcomponents/IntersectComponent/index.js +1 -0
  95. package/components/Image/types.d.ts +2 -2
  96. package/components/Label/Label.styles.js +11 -11
  97. package/components/Label/slots/LabelSlots.d.ts +1 -1
  98. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  99. package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.styles.js +3 -3
  100. package/components/LoadingError/LoadingError.js +2 -1
  101. package/components/MenuActions/MenuActions.js +3 -3
  102. package/components/MenuActions/MenuActions.styles.js +4 -4
  103. package/components/MenuActions/slots/MenuActionsSlots.d.ts +12 -12
  104. package/components/MenuActions/types.d.ts +3 -3
  105. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  106. package/components/NoItemSelected/NoItemSelected.js +5 -3
  107. package/components/NoItemSelected/NoItemSelected.styles.js +4 -4
  108. package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +7 -7
  109. package/components/NumberInput/NumberInput.styles.js +20 -20
  110. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
  111. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  112. package/components/ObjectLogs/hooks/useDetailFormatter.js +2 -3
  113. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +20 -20
  114. package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +3 -1
  115. package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +3 -1
  116. package/components/ObjectLogs/types.d.ts +2 -2
  117. package/components/Pager/Pager.js +3 -2
  118. package/components/Pager/Pager.styles.js +12 -13
  119. package/components/Pager/slots/PagerEnum.d.ts +1 -2
  120. package/components/Pager/slots/PagerEnum.js +0 -1
  121. package/components/Pager/slots/PagerSlots.d.ts +0 -1
  122. package/components/Pager/slots/PagerSlots.js +2 -7
  123. package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +18 -16
  124. package/components/Pager/subcomponents/PagerActions/PagerActions.js +2 -4
  125. package/components/Pager/subcomponents/PagerActions/types.d.ts +0 -1
  126. package/components/PaperForm/components/Header.js +2 -2
  127. package/components/PaperForm/slots/PaperFormSlots.d.ts +10 -10
  128. package/components/PaperForm/styles.js +7 -7
  129. package/components/PaperForm/types.d.ts +2 -2
  130. package/components/PrintingSystem/slots/PrintingSystemSlots.d.ts +42 -42
  131. package/components/PrintingSystem/subcomponents/BodyNode/index.js +1 -0
  132. package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -0
  133. package/components/PrintingSystem/subcomponents/DividerNode/index.js +1 -0
  134. package/components/PrintingSystem/subcomponents/FooterNode/index.js +1 -0
  135. package/components/PrintingSystem/subcomponents/GridNode/index.js +5 -0
  136. package/components/PrintingSystem/subcomponents/HeaderNode/index.js +1 -0
  137. package/components/PrintingSystem/subcomponents/PageNode/index.js +1 -0
  138. package/components/PrintingSystem/subcomponents/PaperNode/index.js +5 -0
  139. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +2 -0
  140. package/components/PrintingSystem/subcomponents/SectionNode/index.js +1 -0
  141. package/components/PrintingSystem/types.d.ts +2 -2
  142. package/components/PropertyValue/PropertyValue.js +4 -3
  143. package/components/PropertyValue/PropertyValue.styles.js +3 -3
  144. package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
  145. package/components/ScrollBar/ScrollBar.d.ts +3 -3
  146. package/components/ScrollBar/ScrollBar.js +45 -5
  147. package/components/ScrollBar/ScrollBar.styles.js +52 -5
  148. package/components/ScrollBar/constants.d.ts +2 -4
  149. package/components/ScrollBar/constants.js +5 -2
  150. package/components/ScrollBar/slots/ScrollBarEnum.d.ts +4 -0
  151. package/components/ScrollBar/slots/ScrollBarEnum.js +8 -0
  152. package/components/ScrollBar/slots/ScrollBarSlots.d.ts +6 -1
  153. package/components/ScrollBar/slots/ScrollBarSlots.js +13 -7
  154. package/components/ScrollBar/slots/index.d.ts +2 -0
  155. package/components/ScrollBar/types.d.ts +42 -12
  156. package/components/SideBar/slots/SideBarSlots.d.ts +34 -34
  157. package/components/SideBar/subcomponents/ContentComponent/style.d.ts +2 -2
  158. package/components/SideBar/subcomponents/ContentComponent/style.js +4 -4
  159. package/components/SideBar/subcomponents/ContentGroups/index.js +3 -3
  160. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +2 -2
  161. package/components/SideBar/subcomponents/ContentGroups/styles.js +2 -11
  162. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -2
  163. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +10 -1
  164. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +1 -0
  165. package/components/SideBar/subcomponents/FooterSidebar/styles.d.ts +2 -2
  166. package/components/SideBar/subcomponents/HeaderSidebar/index.js +2 -2
  167. package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -2
  168. package/components/SideBar/subcomponents/SideBarDesktop/styles.d.ts +2 -2
  169. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +2 -2
  170. package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -0
  171. package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -2
  172. package/components/SideBar/types.d.ts +2 -9
  173. package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
  174. package/components/WindowBase/WindowBase.js +6 -8
  175. package/components/WindowBase/WindowBase.styles.js +107 -208
  176. package/components/WindowBase/icons.js +2 -2
  177. package/components/WindowBase/slots/WindowBaseEnum.d.ts +3 -3
  178. package/components/WindowBase/slots/WindowBaseEnum.js +2 -2
  179. package/components/WindowBase/slots/WindowBaseSlots.d.ts +23 -18
  180. package/components/WindowBase/slots/WindowBaseSlots.js +12 -13
  181. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +12 -22
  182. package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
  183. package/components/WindowBase/subcomponents/Header/useButtonActions.js +2 -5
  184. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
  185. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
  186. package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +0 -9
  187. package/components/WindowBase/types.d.ts +0 -10
  188. package/components/WindowConfirm/WindowConfirm.js +3 -2
  189. package/components/WindowConfirm/WindowConfirm.styles.js +4 -4
  190. package/components/areas/components/AreasAdmin/AreasAdmin.js +17 -12
  191. package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +21 -13
  192. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +23 -23
  193. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +4 -1
  194. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +4 -3
  195. package/components/areas/components/AreasAdmin/types.d.ts +1 -1
  196. package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
  197. package/components/areas/components/AreasViewer/AreasViewer.styles.js +2 -2
  198. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +5 -5
  199. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +1 -1
  200. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +1 -8
  201. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +3 -7
  202. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +1 -0
  203. package/components/areas/contexts/AreasContext/index.js +1 -1
  204. package/components/areas/contexts/AreasContext/store.js +1 -1
  205. package/components/areas/contexts/AreasContext/types.d.ts +1 -1
  206. package/components/areas/icons.d.ts +2 -2
  207. package/components/areas/icons.js +4 -4
  208. package/components/commercial/SectionCommercial/classes/index.d.ts +2 -2
  209. package/components/commercial/SectionCommercial/classes/index.js +3 -3
  210. package/components/commercial/SectionCommercial/types.d.ts +1 -1
  211. package/components/extended/React-Resizable/helpers.d.ts +9 -2
  212. package/components/extended/React-Resizable/helpers.js +13 -15
  213. package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +1 -0
  214. package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js +1 -1
  215. package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.d.ts +4 -4
  216. package/components/extended/React-Spinners/PropagateLoaderSpinner/types.d.ts +2 -2
  217. package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +3 -3
  218. package/components/extended/React-resizable-panels/SplitLayout.styles.js +6 -6
  219. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +8 -8
  220. package/components/formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.d.ts +2 -2
  221. package/components/formatters/PeriodFormatter/PeriodFormatter.styles.js +1 -1
  222. package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
  223. package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +2 -1
  224. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +7 -1
  225. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  226. package/components/hook-form/RHFDateTime/types.d.ts +1 -1
  227. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
  228. package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
  229. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  230. package/components/hook-form/RHFSelect/slots/RHFSlots.js +1 -1
  231. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  232. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +1 -1
  233. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +2 -2
  234. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +8 -8
  235. package/components/hook-form/RHFTextFieldPassword/types.d.ts +2 -2
  236. package/components/hook-form/RHFTimePicker/types.d.ts +1 -1
  237. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +1 -1
  238. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +3 -3
  239. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +22 -22
  240. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +10 -9
  241. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +2 -2
  242. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.styles.js +2 -2
  243. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +22 -22
  244. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +7 -2
  245. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +6 -5
  246. package/components/hook-form/RHFormContext/index.d.ts +1 -1
  247. package/components/index.d.ts +0 -2
  248. package/components/mui_extended/Accordion/Accordion.js +21 -31
  249. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +12 -12
  250. package/components/mui_extended/Accordion/styles.js +33 -56
  251. package/components/mui_extended/Accordion/types.d.ts +6 -39
  252. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +3 -3
  253. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +1 -1
  254. package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +3 -1
  255. package/components/mui_extended/Autocomplete/renderOptions/index.js +3 -2
  256. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +17 -17
  257. package/components/mui_extended/Avatar/Avatar.js +1 -1
  258. package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
  259. package/components/mui_extended/Avatar/styles.js +3 -3
  260. package/components/mui_extended/Badge/Badge.js +2 -1
  261. package/components/mui_extended/Badge/Badge.styles.js +9 -9
  262. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +2 -2
  263. package/components/mui_extended/Badge/types.d.ts +2 -2
  264. package/components/mui_extended/Button/ButtonStyles.js +25 -25
  265. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  266. package/components/mui_extended/CheckBox/CheckBox.js +2 -2
  267. package/components/mui_extended/CheckBox/CheckBox.styles.js +12 -12
  268. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +12 -12
  269. package/components/mui_extended/CheckBox/types.d.ts +2 -2
  270. package/components/mui_extended/CircularProgress/CircularProgress.styles.js +5 -5
  271. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +49 -49
  272. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +12 -12
  273. package/components/mui_extended/Divider/Divider.js +2 -1
  274. package/components/mui_extended/Divider/Divider.styles.js +9 -9
  275. package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
  276. package/components/mui_extended/IconButton/IconButton.js +2 -3
  277. package/components/mui_extended/IconButton/IconButton.styles.js +21 -21
  278. package/components/mui_extended/IconButton/helpers/getIconButtonColors.d.ts +1 -1
  279. package/components/mui_extended/IconButton/helpers/getIconButtonColors.js +4 -4
  280. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +5 -5
  281. package/components/mui_extended/IconButton/types.d.ts +1 -1
  282. package/components/mui_extended/LoadingButton/LoadingButton.styles.js +5 -5
  283. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  284. package/components/mui_extended/MenuDivider/MenuDivider.js +2 -1
  285. package/components/mui_extended/MenuDivider/MenuDivider.styles.js +9 -9
  286. package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  287. package/components/mui_extended/MenuItem/MenuItem.styles.js +10 -10
  288. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +7 -7
  289. package/components/mui_extended/MenuItem/types.d.ts +3 -8
  290. package/components/mui_extended/NavLink/NavLink.js +2 -1
  291. package/components/mui_extended/NavLink/NavLink.styles.js +9 -9
  292. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +4 -4
  293. package/components/mui_extended/Popover/Popover.js +1 -0
  294. package/components/mui_extended/Popover/slots/PopoverSlots.d.ts +2 -2
  295. package/components/mui_extended/Popover/types.d.ts +3 -3
  296. package/components/mui_extended/Popper/PopperStyles.js +1 -1
  297. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  298. package/components/mui_extended/Select/Select.js +3 -2
  299. package/components/mui_extended/Select/Select.styles.js +10 -10
  300. package/components/mui_extended/Select/slots/SelectSlots.d.ts +12 -12
  301. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  302. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  303. package/components/mui_extended/Skeleton/skeleton.styles.js +4 -4
  304. package/components/mui_extended/Stack/Stack.styles.js +3 -3
  305. package/components/mui_extended/Stack/slots/StackSlot.d.ts +2 -2
  306. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  307. package/components/mui_extended/Tab/Tab.js +0 -2
  308. package/components/mui_extended/Tab/Tab.styles.js +48 -26
  309. package/components/mui_extended/Tab/types.d.ts +0 -4
  310. package/components/mui_extended/TabContent/TabContent.js +1 -1
  311. package/components/mui_extended/TabContent/TabContent.styles.js +4 -2
  312. package/components/mui_extended/TabContent/slots/TabContentSlots.d.ts +2 -2
  313. package/components/mui_extended/TabContent/types.d.ts +2 -2
  314. package/components/mui_extended/Tabs/Tabs.styles.js +1 -2
  315. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
  316. package/components/mui_extended/TextField/TextField.styles.js +22 -22
  317. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
  318. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +9 -9
  319. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  320. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  321. package/components/mui_extended/Tooltip/Tooltip.styles.js +1 -1
  322. package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +3 -3
  323. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  324. package/components/mui_extended/Typography/typography.styles.js +7 -7
  325. package/components/mui_extended/index.d.ts +2 -0
  326. package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +2 -2
  327. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +9 -7
  328. package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +0 -2
  329. package/hooks/useComponentSize/useComponentSize.d.ts +3 -3
  330. package/hooks/useComponentSize/useComponentSize.js +2 -5
  331. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -6
  332. package/hooks/useDynamicFilterAndSort/styles.js +7 -8
  333. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -2
  334. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +15 -8
  335. package/index.js +24 -24
  336. package/package.json +3 -3
  337. package/storybook/components/Chip/Chip.stories.d.ts +0 -4
  338. package/storybook/components/DataGrid/DataGrid.stories.d.ts +0 -16
  339. package/storybook/components/Icon/Icon.stories.d.ts +0 -4
  340. package/storybook/components/ObjectLogs/ObjectLogs.stories.d.ts +2 -2
  341. package/storybook/components/WindowBase/windowBase.stories.d.ts +7 -60
  342. package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +20 -72
  343. package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +24 -24
  344. package/storybook/components/extended/scrollBar/ScrollBar.stories.d.ts +7 -0
  345. package/storybook/components/extended/scrollBar/ScrollBarDecorator.d.ts +11 -0
  346. package/.storybook/utils/flattenDeep.d.ts +0 -8
  347. package/components/DataGrid/Datagrid.styles.js +0 -598
  348. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +0 -5
  349. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +0 -30
  350. package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +0 -2
  351. package/components/DataGrid/subcomponents/ControlNavigate/types.d.ts +0 -7
  352. package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +0 -5
  353. package/components/DataGrid/subcomponents/HeaderActions/index.js +0 -39
  354. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.d.ts +0 -4
  355. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/index.d.ts +0 -4
  356. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +0 -7
  357. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/types.d.ts +0 -2
  358. package/components/DataGrid/subcomponents/HeaderActions/types.d.ts +0 -4
  359. package/components/Pager/index.d.ts +0 -2
  360. package/components/ScrollBar/index.d.ts +0 -2
  361. package/components/ScrollBar/index.js +0 -1
  362. package/components/ScrollBar/slots/ScrollbarEnum.d.ts +0 -3
  363. package/components/ScrollBar/slots/ScrollbarEnum.js +0 -7
  364. package/storybook/tootls/WrapperLineGuide/WrapperLineGuide.d.ts +0 -9
  365. package/storybook/tootls/WrapperLineGuide/styles.d.ts +0 -1
  366. package/storybook/tootls/WrapperLineGuide/types.d.ts +0 -5
  367. /package/components/DataGrid/{Datagrid.styles.d.ts → styles.d.ts} +0 -0
  368. /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Density/index.d.ts +0 -0
  369. /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Density/types.d.ts +0 -0
  370. /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Filter/index.d.ts +0 -0
  371. /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/RowsCount/index.d.ts +0 -0
  372. /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -0
  373. /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/hooks/useModalSettings/types.d.ts +0 -0
  374. /package/components/{Pager → ScrollBar/slots}/index.js +0 -0
@@ -3,11 +3,10 @@ import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButt
3
3
  import { useEnvironment, useModuleDictionary } from "@m4l/core";
4
4
  import { u as useModalSettings } from "../hooks/useModalSettings/index.js";
5
5
  import { p as pathIcons } from "../../../../icons.js";
6
- import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
7
- function Settings() {
6
+ function Settings(props) {
7
+ const { columns } = props;
8
8
  const { host_static_assets, environment_assets } = useEnvironment();
9
- const { size } = useDataGrid();
10
- const modalSettings = useModalSettings(size);
9
+ const modalSettings = useModalSettings(columns);
11
10
  const { getLabel } = useModuleDictionary();
12
11
  return /* @__PURE__ */ jsx(
13
12
  IconButton,
@@ -15,8 +14,7 @@ function Settings() {
15
14
  tooltip: getLabel("data_grid.tooltip_settings"),
16
15
  onClick: modalSettings,
17
16
  "aria-label": "settings",
18
- icon: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`,
19
- "data-testid": "settings-button"
17
+ icon: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`
20
18
  }
21
19
  );
22
20
  }
@@ -4,35 +4,28 @@ import { useModuleDictionary, useEnvironment } from "@m4l/core";
4
4
  import DataGrid from "react-data-grid";
5
5
  import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
6
6
  import { p as pathIcons } from "../../../../../../icons.js";
7
- import { g as ColumnsConfigWrapperStyled, h as ColumnsConfigDataGridStyled, i as ColumnsConfigSelColumnsStyled, T as TableWrapperDataGridStyled, j as ColumnsConfigActiosStyled } from "../../../../../../slots/DataGridSlot.js";
8
- import { d as dictionary } from "../../../../../../dictionary.js";
7
+ import { d as ColumnsConfigWrapperStyled, e as ColumnsConfigSelColumnsStyled, f as ColumnsConfigDataGridStyled, T as TableWrapperDataGridStyled, g as ColumnsConfigActiosStyled } from "../../../../../../slots/DataGridSlot.js";
8
+ import { D as DICTIONARY } from "../../../../../../dictionary.js";
9
9
  import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
10
- function getRowsFromColumnsConfig(columnsConfig) {
11
- return columnsConfig.filter((column) => !column.hidden).map(
12
- (column) => ({
13
- key: column.key,
14
- name: column.name,
15
- visible: column.visible === void 0 ? true : column.visible,
16
- frozen: column.frozen === void 0 ? false : column.frozen,
17
- originalIndex: column.orginalIndex,
18
- originalFrozen: column.originalFrozen,
19
- originalVisible: column.originalVisible
10
+ function getRowsFromColumnsConfig(columnsConfig, columns) {
11
+ return columnsConfig.filter((cConfig) => !cConfig.hidden).map(
12
+ (cConfig) => ({
13
+ key: cConfig.key,
14
+ name: columns.find((c) => c.key === cConfig.key)?.name,
15
+ visible: cConfig.visible === void 0 ? true : cConfig.visible,
16
+ frozen: cConfig.frozen === void 0 ? false : cConfig.frozen,
17
+ originalIndex: cConfig.originalIndex,
18
+ originalFrozen: cConfig.originalFrozen,
19
+ originalVisible: cConfig.originalVisible
20
20
  })
21
21
  );
22
22
  }
23
- const getAlignClass = (align) => {
24
- const cellClass = align !== void 0 ? `rdg-cell-align-${align}` : "";
25
- return {
26
- cellClass,
27
- headerCellClass: cellClass
28
- };
29
- };
30
23
  const ColumnsConfig = forwardRef((props, ref) => {
31
24
  const refdata_grid = useRef(null);
32
- const { onCloseSettings, columnsConfig, onChangeColumnsConfig, rowHeight, classes, size } = props;
25
+ const { onCloseSettings, columnsConfig, onChangeColumnsConfig, rowHeight, columns } = props;
33
26
  const { getLabel } = useModuleDictionary();
34
27
  const [isInit, setIsInit] = useState(true);
35
- const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig));
28
+ const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig, columns));
36
29
  const [selRows, setSelRows] = useState(() => /* @__PURE__ */ new Set());
37
30
  const divRef = useRef(null);
38
31
  const { host_static_assets, environment_assets } = useEnvironment();
@@ -44,34 +37,33 @@ const ColumnsConfig = forwardRef((props, ref) => {
44
37
  () => [
45
38
  {
46
39
  key: "name",
47
- name: getLabel(dictionary.SETTINGS_COLUMN_NAME),
40
+ name: getLabel(DICTIONARY.SETTINGS_COLUMN_NAME),
48
41
  width: 220,
49
42
  resizable: true,
50
- type: "string",
51
- ...getAlignClass("left")
43
+ type: "string"
52
44
  },
53
45
  {
54
46
  key: "originalIndex",
55
- name: getLabel(dictionary.SETTINGS_COLUMN_POSITION),
47
+ name: getLabel(DICTIONARY.SETTINGS_COLUMN_POSITION),
56
48
  width: 50,
57
49
  type: "number",
58
- ...getAlignClass("center")
50
+ cellClass: "rdg-cell-align-center"
59
51
  },
60
52
  {
61
53
  key: "visible",
62
- name: getLabel(dictionary.SETTINGS_COLUMN_VISIBLE),
54
+ name: getLabel(DICTIONARY.SETTINGS_COLUMN_VISIBLE),
63
55
  width: 80,
64
56
  type: "boolean",
65
57
  formatter: ColumnInteractiveCheckFormatter,
66
- ...getAlignClass("center")
58
+ cellClass: "rdg-cell-align-center"
67
59
  },
68
60
  {
69
61
  key: "frozen",
70
- name: getLabel(dictionary.SETTINGS_COLUMNS_FROZEN),
62
+ name: getLabel(DICTIONARY.SETTINGS_COLUMNS_FROZEN),
71
63
  width: 80,
72
64
  type: "boolean",
73
65
  formatter: ColumnInteractiveCheckFormatter,
74
- ...getAlignClass("center")
66
+ cellClass: "rdg-cell-align-center"
75
67
  }
76
68
  ],
77
69
  [getLabel]
@@ -94,7 +86,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
94
86
  };
95
87
  useEffect(() => {
96
88
  if (isInit === false) {
97
- setRows(getRowsFromColumnsConfig(columnsConfig));
89
+ setRows(getRowsFromColumnsConfig(columnsConfig, columns));
98
90
  }
99
91
  setIsInit(false);
100
92
  }, [columnsConfig]);
@@ -184,30 +176,28 @@ const ColumnsConfig = forwardRef((props, ref) => {
184
176
  setSelRows(mySet);
185
177
  };
186
178
  return /* @__PURE__ */ jsxs(ColumnsConfigWrapperStyled, { ref: divRef, children: [
187
- /* @__PURE__ */ jsxs(ColumnsConfigDataGridStyled, { children: [
188
- /* @__PURE__ */ jsx(ColumnsConfigSelColumnsStyled, { ownerState: { size }, children: getLabel(dictionary.SETTINGS_SEL_COLUMNS) }),
189
- /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { className: classes?.tableWrapperDataGrid, ownerState: { size }, children: /* @__PURE__ */ jsx(
190
- DataGrid,
191
- {
192
- ref: refdata_grid,
193
- rowHeight,
194
- columns: columnsdata_grid,
195
- rows,
196
- onRowsChange: onInternalRowsChange,
197
- selectedRows: selRows,
198
- onSelectedRowsChange: onInternalSelectedRowsChange,
199
- onRowClick,
200
- rowKeyGetter: (row) => row.key,
201
- cellNavigationMode: "CHANGE_ROW",
202
- defaultColumnOptions: { resizable: true, sortable: true }
203
- }
204
- ) })
205
- ] }),
179
+ /* @__PURE__ */ jsx(ColumnsConfigSelColumnsStyled, { children: getLabel(DICTIONARY.SETTINGS_SEL_COLUMNS) }),
180
+ /* @__PURE__ */ jsx(ColumnsConfigDataGridStyled, { children: /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { children: /* @__PURE__ */ jsx(
181
+ DataGrid,
182
+ {
183
+ ref: refdata_grid,
184
+ rowHeight,
185
+ columns: columnsdata_grid,
186
+ rows,
187
+ onRowsChange: onInternalRowsChange,
188
+ selectedRows: selRows,
189
+ onSelectedRowsChange: onInternalSelectedRowsChange,
190
+ onRowClick,
191
+ rowKeyGetter: (row) => row.key,
192
+ cellNavigationMode: "CHANGE_ROW",
193
+ defaultColumnOptions: { resizable: true, sortable: true }
194
+ }
195
+ ) }) }),
206
196
  /* @__PURE__ */ jsxs(ColumnsConfigActiosStyled, { children: [
207
197
  /* @__PURE__ */ jsx(
208
198
  IconButton,
209
199
  {
210
- tooltip: getLabel(dictionary.SETTINGS_MOVE_FIRST),
200
+ tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_FIRST),
211
201
  onClick: handleMoveFirst,
212
202
  "aria-label": "move first place",
213
203
  disabled: rowSelectedIndex < 1,
@@ -217,7 +207,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
217
207
  /* @__PURE__ */ jsx(
218
208
  IconButton,
219
209
  {
220
- tooltip: getLabel(dictionary.SETTINGS_MOVE_UP),
210
+ tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_UP),
221
211
  onClick: () => handleMoveUpDownd(-1),
222
212
  "aria-label": "move up place",
223
213
  disabled: rowSelectedIndex < 1,
@@ -227,7 +217,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
227
217
  /* @__PURE__ */ jsx(
228
218
  IconButton,
229
219
  {
230
- tooltip: getLabel(dictionary.SETTINGS_MOVE_LAST),
220
+ tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_LAST),
231
221
  onClick: handleMoveLast,
232
222
  "aria-label": "move last place",
233
223
  disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
@@ -237,7 +227,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
237
227
  /* @__PURE__ */ jsx(
238
228
  IconButton,
239
229
  {
240
- tooltip: getLabel(dictionary.SETTINGS_MOVE_DOWN),
230
+ tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_DOWN),
241
231
  onClick: () => handleMoveUpDownd(1),
242
232
  "aria-label": "move down place",
243
233
  disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
@@ -247,7 +237,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
247
237
  /* @__PURE__ */ jsx(
248
238
  IconButton,
249
239
  {
250
- tooltip: getLabel(dictionary.SETTINGS_VISIBLE_ALL),
240
+ tooltip: getLabel(DICTIONARY.SETTINGS_VISIBLE_ALL),
251
241
  onClick: checkAll,
252
242
  "aria-label": "check visible all",
253
243
  icon: `${host_static_assets}/${environment_assets}/${pathIcons.checkAll}`
@@ -256,7 +246,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
256
246
  /* @__PURE__ */ jsx(
257
247
  IconButton,
258
248
  {
259
- tooltip: getLabel(dictionary.SETTINGS_NO_VISIBLE_ALL),
249
+ tooltip: getLabel(DICTIONARY.SETTINGS_NO_VISIBLE_ALL),
260
250
  onClick: unCheckAll,
261
251
  "aria-label": "un check all",
262
252
  icon: `${host_static_assets}/${environment_assets}/${pathIcons.uncheckAll}`
@@ -265,7 +255,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
265
255
  /* @__PURE__ */ jsx(
266
256
  IconButton,
267
257
  {
268
- tooltip: getLabel(dictionary.SETTINGS_RESTORE),
258
+ tooltip: getLabel(DICTIONARY.SETTINGS_RESTORE),
269
259
  onClick: restoreAll,
270
260
  "aria-label": "Restore columns",
271
261
  icon: `${host_static_assets}/${environment_assets}/${pathIcons.restoreColumns}`
@@ -1,5 +1,5 @@
1
- import { DataGridContextProps, IConfigColumn } from '../../../../../../contexts/DataGridContext/types';
2
- import { GridProps } from '../../../../../../types';
1
+ import { Column } from 'react-data-grid';
2
+ import { IConfigColumn } from '../../../../../../contexts/DataGridContext/types';
3
3
  export interface Row {
4
4
  key: string;
5
5
  name: string;
@@ -17,11 +17,10 @@ export type ColumnsConfigRef = {
17
17
  };
18
18
  export interface ConfigProps {
19
19
  onCloseSettings: () => void;
20
+ columns: readonly Column<any, any>[];
20
21
  columnsConfig: IConfigColumn[];
21
22
  onChangeColumnsConfig: (newColumnsConfig: IConfigColumn[]) => void;
22
23
  rowHeight: number;
23
- classes: DataGridContextProps<unknown, unknown>['classes'];
24
- size: GridProps<unknown, unknown>['size'];
25
24
  }
26
25
  export interface CheckFormatterProps {
27
26
  key: string;
@@ -0,0 +1,4 @@
1
+ import { Column } from 'react-data-grid';
2
+ export interface SettingsProps {
3
+ columns: readonly Column<any, any>[];
4
+ }
@@ -0,0 +1,7 @@
1
+ import { Column } from 'react-data-grid';
2
+ /**
3
+ * Hook que renderiza el modal de configuración de las columnas
4
+ * de la tabla
5
+ */
6
+ declare const useModalSettings: (columns: readonly Column<any, any>[]) => () => void;
7
+ export default useModalSettings;
@@ -5,15 +5,15 @@ import { useRef, useCallback } from "react";
5
5
  import { u as useDataGrid } from "../../../../../hooks/useDataGrid.js";
6
6
  import { u as useModal } from "../../../../../../../hooks/useModal/index.js";
7
7
  import { C as ColumnsConfig } from "../../Settings/subcomponents/ColumnsConfig/index.js";
8
- import { k as ContentModalSettingStyled, D as DataGridRootStyled } from "../../../../../slots/DataGridSlot.js";
8
+ import { h as ContentModalSettingStyled, D as DataGridRootStyled, i as TableContainerStyled, T as TableWrapperDataGridStyled } from "../../../../../slots/DataGridSlot.js";
9
9
  import { p as pathIcons } from "../../../../../icons.js";
10
10
  import { A as ActionsContainer } from "../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
11
11
  import { W as WindowBase } from "../../../../../../WindowBase/WindowBase.js";
12
12
  import { A as ActionCancel } from "../../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
13
13
  import { A as ActionIntro } from "../../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
14
- const useModalSettings = (size) => {
14
+ const useModalSettings = (columns) => {
15
15
  const { openModal, closeModal } = useModal();
16
- const { columnsConfig, onChangeColumnsConfig, currentRowHeight, classes } = useDataGrid();
16
+ const { columnsConfig, onChangeColumnsConfig, currentRowHeight } = useDataGrid();
17
17
  const { getLabel } = useModuleDictionary();
18
18
  const { host_static_assets, environment_assets } = useEnvironment();
19
19
  const isMobile = useIsMobile();
@@ -40,11 +40,8 @@ const useModalSettings = (size) => {
40
40
  title: getLabel("data_grid.settings_title"),
41
41
  iconUrl: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`,
42
42
  onClose: closeModal,
43
- className: "settings-modal",
44
- variant: "outlined",
45
- type: "modal",
46
- children: /* @__PURE__ */ jsxs(ContentModalSettingStyled, { classes: classes?.contentModalSetting, children: [
47
- /* @__PURE__ */ jsx(DataGridRootStyled, { children: /* @__PURE__ */ jsx(
43
+ children: /* @__PURE__ */ jsxs(ContentModalSettingStyled, { children: [
44
+ /* @__PURE__ */ jsx(DataGridRootStyled, { children: /* @__PURE__ */ jsx(TableContainerStyled, { children: /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { children: /* @__PURE__ */ jsx(
48
45
  ColumnsConfig,
49
46
  {
50
47
  ref,
@@ -52,10 +49,9 @@ const useModalSettings = (size) => {
52
49
  columnsConfig,
53
50
  onChangeColumnsConfig: handleColumnsSetting,
54
51
  onCloseSettings,
55
- classes,
56
- size
52
+ columns
57
53
  }
58
- ) }),
54
+ ) }) }) }),
59
55
  /* @__PURE__ */ jsxs(ActionsContainer, { children: [
60
56
  /* @__PURE__ */ jsx(ActionCancel, { onClick: closeModal }),
61
57
  /* @__PURE__ */ jsx(ActionIntro, { onClick: onClickIntro })
@@ -0,0 +1,16 @@
1
+ import { PagerProps } from '../../../Pager/types';
2
+ import { SettingsProps } from './subcomponents/Settings/types';
3
+ import { Column } from 'react-data-grid';
4
+ export interface ActionsProps {
5
+ withSettings?: boolean;
6
+ settingsProps?: SettingsProps;
7
+ withRowsCount?: boolean;
8
+ withPager?: boolean;
9
+ pagerOptions?: PagerProps;
10
+ withLocalFilters?: boolean;
11
+ leftActions?: React.ReactNode;
12
+ rightActions?: React.ReactNode;
13
+ }
14
+ export type InternalActionsProps = ActionsProps & {
15
+ columns: readonly Column<any, any>[];
16
+ };
@@ -1,7 +1,7 @@
1
1
  import { useState, useEffect, useMemo } from "react";
2
2
  import { g as getDragHeaderRenderer } from "./getDragHeaderRenderer.js";
3
3
  import { A as ActionsColumn } from "../subcomponents/ActionsColumn.js";
4
- import { f as filterColumnClassName, S as SelectColumn } from "../subcomponents/SelectColumn.js";
4
+ import { a as filterColumnClassName, S as SelectColumn } from "../subcomponents/SelectColumn.js";
5
5
  import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
6
6
  import { u as useFilters } from "../../../hooks/useFilters.js";
7
7
  import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
@@ -17,6 +17,7 @@ function getComparator(columns, sortColumn) {
17
17
  return column.customSort;
18
18
  }
19
19
  switch (typeOrder) {
20
+ //Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
20
21
  case "number":
21
22
  return (a, b) => {
22
23
  try {
@@ -25,6 +26,7 @@ function getComparator(columns, sortColumn) {
25
26
  return -1;
26
27
  }
27
28
  };
29
+ //Por defecto retorna una función de ordenamiento de string
28
30
  default:
29
31
  return (a, b) => {
30
32
  try {
@@ -119,11 +121,9 @@ const useSortColumnsRows = (sourceColumns, sourceRows) => {
119
121
  const finalColumns = useMemo(() => {
120
122
  const DragAndDropHeaderRenderer = getDragHeaderRenderer(onChangeColumnsOrder);
121
123
  return columns.map((c) => {
122
- const cellClass = c.align !== void 0 ? `rdg-cell-align-${c.align}` : `rdg-cell-align-${getAligByType(c.type)}`;
123
124
  const newColumn = {
124
125
  ...c,
125
- cellClass,
126
- headerCellClass: cellClass
126
+ cellClass: c.align !== void 0 ? `rdg-cell-align-${c.align}` : `rdg-cell-align-${getAligByType(c.type)}`
127
127
  };
128
128
  if (newColumn.key === DATAGRID_SELECT_COLUMN_KEY || newColumn.isDraggable !== void 0 && newColumn.isDraggable === false) {
129
129
  return newColumn;
@@ -136,7 +136,7 @@ const useSortColumnsRows = (sourceColumns, sourceRows) => {
136
136
  newColumn.withinHeaderRenderer = newColumn.headerRenderer;
137
137
  }
138
138
  if ((newColumn?.withFilter === void 0 || newColumn.withFilter === true) && activeFilters) {
139
- newColumn.headerCellClass = `${newColumn.headerCellClass} ${filterColumnClassName}`.trim();
139
+ newColumn.headerCellClass = filterColumnClassName;
140
140
  }
141
141
  newColumn.headerRenderer = DragAndDropHeaderRenderer;
142
142
  return newColumn;
@@ -4,11 +4,11 @@ import DataGrid from "react-data-grid";
4
4
  import { DndProvider } from "react-dnd";
5
5
  import { HTML5Backend } from "react-dnd-html5-backend";
6
6
  import { C as CheckboxFormatter } from "./subcomponents/CheckboxFormatter.js";
7
- import { a as filterHeight } from "./subcomponents/SelectColumn.js";
7
+ import { f as filterHeight } from "./subcomponents/SelectColumn.js";
8
8
  import { u as useSortColumnsRows } from "./hooks/useSortColumnsRows.js";
9
9
  import { u as useFilters } from "../../hooks/useFilters.js";
10
10
  import { u as useDataGrid } from "../../hooks/useDataGrid.js";
11
- import { l as TableContainerStyled, T as TableWrapperDataGridStyled } from "../../slots/DataGridSlot.js";
11
+ import { i as TableContainerStyled, T as TableWrapperDataGridStyled } from "../../slots/DataGridSlot.js";
12
12
  function Table(props) {
13
13
  const { columns, rows, onRowsChange, rowKeyGetter, selectedRows, onSelectedRowsChange } = props;
14
14
  const { finalColumns, sortColumns, setSortColumns, finalRows } = useSortColumnsRows(
@@ -16,7 +16,7 @@ function Table(props) {
16
16
  rows
17
17
  );
18
18
  const { activeFilters } = useFilters();
19
- const { onChangeColumnWidth, setRowsCount, currentRowHeight, currentRowHeaderHeight, size } = useDataGrid();
19
+ const { onChangeColumnWidth, setRowsCount, currentRowHeight, currentRowHeaderHeight } = useDataGrid();
20
20
  const ref_data_grid = useRef(null);
21
21
  const onRowClick = (row) => {
22
22
  if (selectedRows && onSelectedRowsChange) {
@@ -50,7 +50,7 @@ function Table(props) {
50
50
  const onChangeSort = (newSortColumns) => {
51
51
  setSortColumns(newSortColumns);
52
52
  };
53
- return /* @__PURE__ */ jsx(TableContainerStyled, { id: "WrapperTable", children: /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { ownerState: { size }, children: /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsx(
53
+ return /* @__PURE__ */ jsx(TableContainerStyled, { id: "WrapperTable", children: /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { children: /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsx(
54
54
  DataGrid,
55
55
  {
56
56
  className: "rdg-light",
@@ -1,19 +1,10 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from "@mui/material";
3
3
  function CheckboxIcon(props) {
4
- return /* @__PURE__ */ jsx(SvgIcon, { ...props, viewBox: "0 0 16 17", className: "checkbox-unChecked", children: /* @__PURE__ */ jsxs("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5
- /* @__PURE__ */ jsx("g", { "clip-path": "url(#clip0_13395_49048)", children: /* @__PURE__ */ jsx("path", { d: "M13.0156 2.5H3.01562C2.75041 2.5 2.49605 2.60536 2.30852 2.79289C2.12098 2.98043 2.01563 3.23478 2.01562 3.5V13.5C2.01563 13.7652 2.12098 14.0196 2.30852 14.2071C2.49605 14.3946 2.75041 14.5 3.01562 14.5H13.0156C13.2808 14.5 13.5352 14.3946 13.7227 14.2071C13.9103 14.0196 14.0156 13.7652 14.0156 13.5V3.5C14.0156 3.23478 13.9103 2.98043 13.7227 2.79289C13.5352 2.60536 13.2808 2.5 13.0156 2.5ZM3.01562 13.5V3.5H13.0156V13.5H3.01562Z", fill: "#323B3B" }) }),
6
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_13395_49048", children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "white", transform: "translate(0 0.5)" }) }) })
7
- ] }) });
4
+ return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm0 2H7a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2z" }) });
8
5
  }
9
6
  function CheckboxCheckedIcon(props) {
10
- return /* @__PURE__ */ jsxs(SvgIcon, { ...props, viewBox: "0 0 16 17", className: "checkbox-checked", children: [
11
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#clip0_13395_49057)", children: [
12
- /* @__PURE__ */ jsx("path", { d: "M13.4323 2H2.59896C2.31164 2 2.03609 2.11414 1.83293 2.3173C1.62976 2.52047 1.51563 2.79602 1.51562 3.08333V13.9167C1.51563 14.204 1.62976 14.4795 1.83293 14.6827C2.03609 14.8859 2.31164 15 2.59896 15H13.4323C13.7196 15 13.9952 14.8859 14.1983 14.6827C14.4015 14.4795 14.5156 14.204 14.5156 13.9167V3.08333C14.5156 2.79602 14.4015 2.52047 14.1983 2.3173C13.9952 2.11414 13.7196 2 13.4323 2Z", fill: "#323B3B" }),
13
- /* @__PURE__ */ jsx("path", { d: "M6.92119 11.6245L4.10001 8.8274L4.99759 7.95696L6.92119 9.84467L11.1014 5.70001L11.9996 6.58993L6.92119 11.6245Z", fill: "#F3F5F7" })
14
- ] }),
15
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_13395_49057", children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "white", transform: "translate(0 0.5)" }) }) })
16
- ] });
7
+ return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm-1.372 4.972a1.006 1.006 0 00-.928.388l-3.78 5-1.63-2.08a1.001 1.001 0 00-1.58 1.23l2.44 3.11a1 1 0 001.58-.01l4.57-6v-.03a1.006 1.006 0 00-.672-1.608z" }) });
17
8
  }
18
9
  function CheckboxIndeterminateIcon(props) {
19
10
  return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm-1.75 8h-6.5a.75.75 0 00-.75.75v.5c0 .414.336.75.75.75h6.5a.75.75 0 00.75-.75v-.5a.75.75 0 00-.75-.75z" }) });
@@ -1,19 +1,15 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
- import { useModuleDictionary, useEnvironment } from "@m4l/core";
3
+ import { useModuleDictionary } from "@m4l/core";
4
4
  import { useDrag, useDrop } from "react-dnd";
5
5
  import { HeaderRenderer } from "react-data-grid";
6
6
  import { u as useFocusRef } from "../hooks/useFocusRef.js";
7
7
  import { u as useFilters } from "../../../hooks/useFilters.js";
8
- import { m as DraggableHeaderRootStyled, n as DraggableWrapperInputBaseStyled, I as IconSearchStyled, H as HeaderInputBaseStyled } from "../../../slots/DataGridSlot.js";
9
- import { p as pathIcons } from "../../../icons.js";
10
- import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
8
+ import { j as DraggableHeaderRootStyled, k as DraggableWrapperInputBaseStyled, H as HeaderInputBaseStyled } from "../../../slots/DataGridSlot.js";
11
9
  function DraggableHeaderRenderer(props) {
12
10
  const { onColumnsReorder, column, isCellSelected, ...others } = props;
13
11
  const { ref, tabIndex } = useFocusRef(isCellSelected);
14
12
  const { getLabel } = useModuleDictionary();
15
- const { size, classes } = useDataGrid();
16
- const { host_static_assets, environment_assets } = useEnvironment();
17
13
  const { activeFilters, filters, onChangeFilter } = useFilters();
18
14
  const [filter, setFilter] = useState(filters?.get(column.key) || "");
19
15
  const [{ isDragging }, drag] = useDrag({
@@ -56,7 +52,6 @@ function DraggableHeaderRenderer(props) {
56
52
  return /* @__PURE__ */ jsxs(
57
53
  DraggableHeaderRootStyled,
58
54
  {
59
- className: classes?.draggableHeaderRoot,
60
55
  ref: (newRef) => {
61
56
  drag(newRef);
62
57
  drop(newRef);
@@ -67,27 +62,17 @@ function DraggableHeaderRenderer(props) {
67
62
  },
68
63
  children: [
69
64
  /* @__PURE__ */ jsx(HeaderRenderer, { column: newColumn, isCellSelected, ...others }),
70
- activeFilters && (column?.withFilter === void 0 || column.withFilter === true) && /* @__PURE__ */ jsxs(DraggableWrapperInputBaseStyled, { children: [
71
- /* @__PURE__ */ jsx(
72
- IconSearchStyled,
73
- {
74
- src: `${host_static_assets}/${environment_assets}/${pathIcons.search}`,
75
- color: "text.secondary",
76
- size
77
- }
78
- ),
79
- /* @__PURE__ */ jsx(
80
- HeaderInputBaseStyled,
81
- {
82
- inputRef: ref,
83
- placeholder: getLabel("data_grid.filter_holder"),
84
- tabIndex,
85
- type: "text",
86
- onChange: handleChange,
87
- value: filter
88
- }
89
- )
90
- ] })
65
+ activeFilters && (column?.withFilter === void 0 || column.withFilter === true) && /* @__PURE__ */ jsx(DraggableWrapperInputBaseStyled, { children: /* @__PURE__ */ jsx(
66
+ HeaderInputBaseStyled,
67
+ {
68
+ inputRef: ref,
69
+ placeholder: getLabel("data_grid.filter_holder"),
70
+ tabIndex,
71
+ type: "text",
72
+ onChange: handleChange,
73
+ value: filter
74
+ }
75
+ ) })
91
76
  ]
92
77
  }
93
78
  );
@@ -74,6 +74,6 @@ const SelectColumn = {
74
74
  };
75
75
  export {
76
76
  SelectColumn as S,
77
- filterHeight as a,
78
- filterColumnClassName as f
77
+ filterColumnClassName as a,
78
+ filterHeight as f
79
79
  };
@@ -1,10 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
3
- import { S as Skeleton } from "../../../../../mui_extended/Skeleton/Skeleton.js";
2
+ import { Skeleton } from "@mui/material";
4
3
  import { W as WrapperSkeletonStyled } from "../../../../slots/DataGridSlot.js";
5
4
  function SkeletonFormatter() {
6
- const { size } = useDataGrid();
7
- return /* @__PURE__ */ jsx(WrapperSkeletonStyled, { ownerState: { size }, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "100%" }) });
5
+ return /* @__PURE__ */ jsx(WrapperSkeletonStyled, { children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "100%", height: "12px" }) });
8
6
  }
9
7
  export {
10
8
  SkeletonFormatter as S
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { o as InputTextEditorStyled } from "../../../slots/DataGridSlot.js";
2
+ import { I as InputTextEditorStyled } from "../../../slots/DataGridSlot.js";
3
3
  function autoFocusAndSelect(input) {
4
4
  input?.focus();
5
5
  input?.select();
@@ -2,13 +2,11 @@ import { Maybe } from '@m4l/core';
2
2
  import { Theme } from '@mui/material/styles';
3
3
  import { Column, RowsChangeData, FormatterProps } from 'react-data-grid';
4
4
  import { MenuAction } from '../MenuActions/types';
5
- import { ActionsSlots, ColumnsConfigSlots, ControlNavigateSlots, DataGridSlots, RowsCountSlots, TableSlots, TextEditorSlots } from './slots/DataGridEnum';
5
+ import { ActionsProps } from './subcomponents/Actions/types';
6
+ import { ActionsSlots, ColumnsConfigSlots, DataGridSlots, RowsCountSlots, TableSlots, TextEditorSlots } from './slots/DataGridEnum';
6
7
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
7
8
  import { DATAGRID_PREFIX_NAME } from './constants';
8
9
  import { IGridConfig } from './contexts/DataGridContext/types';
9
- import { Sizes } from '@m4l/styles';
10
- import { SettingsProps } from './subcomponents/HeaderActions/subcomponents/types';
11
- import { PagerProps } from '../Pager';
12
10
  export type GridFormatterPropss<T, SR> = FormatterProps<T, SR>;
13
11
  export type { ColumnUncertaintyFormatter, ColumnPointsFormatter, ColumnNestedValueFormatter, } from './formatters';
14
12
  export declare type ColumnType = 'string' | 'date' | 'number' | 'boolean' | 'custom';
@@ -85,11 +83,6 @@ export interface GridProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> {
85
83
  * las configuraciones de las columnas.
86
84
  */
87
85
  onChangeUserColumns?: OnChangeUserColumns;
88
- /**
89
- * Tamaño del componente
90
- * @default 'medium'
91
- */
92
- size?: Extract<Sizes, 'small' | 'medium'>;
93
86
  }
94
87
  export declare const DATAGRID_TEST_ID = "m4ldatagrid";
95
88
  export declare const PREFIX_TEST_ATTRIBUTE = "data-testid";
@@ -100,16 +93,6 @@ export declare interface DataGridProps<TRow, TSummaryRow, TKey extends RowKey =
100
93
  customHeader?: React.ReactNode;
101
94
  visibleCustomHeader?: boolean;
102
95
  }
103
- export interface ActionsProps {
104
- withSettings?: boolean;
105
- settingsProps?: SettingsProps;
106
- withRowsCount?: boolean;
107
- withPager?: boolean;
108
- pagerOptions?: PagerProps;
109
- withLocalFilters?: boolean;
110
- leftActions?: React.ReactNode;
111
- rightActions?: React.ReactNode;
112
- }
113
96
  export type DataGridOwnerState<TRow, TSummaryRow, TKey extends RowKey = RowKey> = Pick<DataGridProps<TRow, TSummaryRow, TKey>, 'visibleCustomHeader'>;
114
- export type DataGridSlotsType = DataGridSlots | TextEditorSlots | ActionsSlots | RowsCountSlots | ColumnsConfigSlots | TableSlots | ControlNavigateSlots;
97
+ export type DataGridSlotsType = DataGridSlots | TextEditorSlots | ActionsSlots | RowsCountSlots | ColumnsConfigSlots | TableSlots;
115
98
  export type DataGridStyles = OverridesStyleRules<DataGridSlotsType, typeof DATAGRID_PREFIX_NAME, Theme>;
@@ -5,7 +5,7 @@ const dragResizeWindowStyles = {
5
5
  * @param {Object} params - Object containing theme and ownerState properties.
6
6
  * @param {Object} params.theme - Theme object for accessing theme variables.
7
7
  * @param {Object} params.ownerState - Object holding the component's current state.
8
- * @param {boolean} [params.ownerState?.hidden] - Controls visibility; if true, sets the component to be hidden and disables pointer events.
8
+ * @param {boolean} [params.ownerState.hidden] - Controls visibility; if true, sets the component to be hidden and disables pointer events.
9
9
  * @returns {Object} - Style object for the root container.
10
10
  */
11
11
  root: ({ theme, ownerState }) => ({
@@ -1,10 +1,12 @@
1
1
  import { Rnd } from 'react-rnd';
2
2
  export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
3
- ownerState?: any;
3
+ ownerState: any;
4
4
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
5
5
  export declare const IconResizeFormatterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
6
- ownerState?: any;
6
+ ownerState: any;
7
7
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
8
- export declare const RndStyled: import('@emotion/styled').StyledComponent<Pick<import('react-rnd').Props, keyof import('react-rnd').Props> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {
8
+ export declare const RndStyled: import('@emotion/styled').StyledComponent<Pick<import('react-rnd').Props, keyof import('react-rnd').Props> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
9
+ ownerState: any;
10
+ }, {}, {
9
11
  ref?: import('react').Ref<Rnd> | undefined;
10
12
  }>;