@m4l/components 9.4.6-BE20260109-beta.2 → 9.4.6-BE20260120

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 (230) hide show
  1. package/@types/types.d.ts +17 -18
  2. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +3 -3
  3. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +1 -1
  4. package/components/CheckableList/CheckableList.js +46 -23
  5. package/components/CheckableList/CheckableList.test.d.ts +1 -0
  6. package/components/CheckableList/dictionary.d.ts +1 -0
  7. package/components/CheckableList/hooks/useCheckableListHandlers.test.d.ts +1 -0
  8. package/components/CheckableList/hooks/useCheckableListItems.js +8 -6
  9. package/components/CheckableList/hooks/useCheckableListItems.test.d.ts +1 -0
  10. package/components/CheckableList/hooks/useCheckableListRender.js +44 -29
  11. package/components/CheckableList/hooks/useCheckableListRender.test.d.ts +1 -0
  12. package/components/CheckableList/hooks/useCheckableListSelection.test.d.ts +1 -0
  13. package/components/CheckableList/hooks/useCheckableListState.test.d.ts +1 -0
  14. package/components/CheckableList/hooks/useCheckableListVirtualization.test.d.ts +1 -0
  15. package/components/CheckableList/slots/styled.d.ts +4 -4
  16. package/components/Chip/slots/ChipSlots.d.ts +1 -1
  17. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.d.ts +34 -0
  18. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.js +46 -0
  19. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.styles.d.ts +2 -0
  20. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.styles.js +7 -0
  21. package/components/CommonActions/components/ActionFormSubmitProgrammatic/constanst.d.ts +6 -0
  22. package/components/CommonActions/components/ActionFormSubmitProgrammatic/constanst.js +7 -0
  23. package/components/CommonActions/components/ActionFormSubmitProgrammatic/index.d.ts +2 -0
  24. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticEnum.d.ts +3 -0
  25. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticEnum.js +7 -0
  26. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -0
  27. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.js +12 -0
  28. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/index.d.ts +2 -0
  29. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/index.js +1 -0
  30. package/components/CommonActions/components/ActionFormSubmitProgrammatic/types.d.ts +36 -0
  31. package/components/CommonActions/index.d.ts +1 -0
  32. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +7 -27
  33. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +3 -5
  34. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +3 -5
  35. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +7 -31
  36. package/components/EditLabel/slots/EditLabelSlots.d.ts +1 -1
  37. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  38. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  39. package/components/Label/slots/LabelSlots.d.ts +2 -2
  40. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  41. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  42. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
  43. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  44. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  45. package/components/SettingsLayout/SettingsLayout.js +4 -3
  46. package/components/SettingsLayout/constants.d.ts +1 -0
  47. package/components/SettingsLayout/constants.js +5 -3
  48. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +1 -1
  49. package/components/SettingsLayout/slots/SettingsLayoutSlots.js +1 -1
  50. package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +1 -1
  51. package/components/SettingsLayout/types.d.ts +4 -0
  52. package/components/SideBar/subcomponents/ContentComponent/style.js +15 -2
  53. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  54. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
  55. package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
  56. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  57. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
  58. package/components/areas/contexts/AreasContext/store.js +1 -1
  59. package/components/datagrids/Datagrid.styles.js +24 -0
  60. package/components/datagrids/components/BaseDataGrid/BaseDataGrid.d.ts +12 -0
  61. package/components/datagrids/components/BaseDataGrid/BaseDataGrid.js +131 -0
  62. package/components/datagrids/components/BaseDataGrid/index.d.ts +1 -0
  63. package/components/datagrids/components/BaseDataGrid/index.js +1 -0
  64. package/components/datagrids/components/DataGridMain/DataGridMain.js +22 -134
  65. package/components/datagrids/components/TreeDataGrid/TreeDataGrid.d.ts +22 -0
  66. package/components/datagrids/components/TreeDataGrid/TreeDataGrid.js +50 -0
  67. package/components/datagrids/components/TreeDataGrid/TreeDataGrid.test.d.ts +1 -0
  68. package/components/datagrids/components/TreeDataGrid/index.d.ts +1 -0
  69. package/components/datagrids/components/TreeDataGrid/index.js +1 -0
  70. package/components/datagrids/constants.js +3 -5
  71. package/components/datagrids/contexts/DataGridContext/DataGridContext.js +8 -4
  72. package/components/datagrids/contexts/DataGridContext/types.d.ts +19 -3
  73. package/components/datagrids/dictionary.d.ts +3 -0
  74. package/components/datagrids/dictionary.js +4 -0
  75. package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.d.ts +15 -0
  76. package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.js +32 -0
  77. package/components/datagrids/formatters/ColumnBooleanFormatter/index.d.ts +1 -0
  78. package/components/datagrids/formatters/ColumnBooleanFormatter/useColumnBoolean.d.ts +1 -0
  79. package/components/datagrids/formatters/ColumnBooleanFormatter/useColumnBoolean.js +2 -0
  80. package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.d.ts +16 -0
  81. package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.js +37 -0
  82. package/components/datagrids/formatters/ColumnChipStatusFormatter/index.d.ts +1 -0
  83. package/components/datagrids/formatters/ColumnChipStatusFormatter/useColumnChipStatus.d.ts +1 -0
  84. package/components/datagrids/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +2 -0
  85. package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.d.ts +14 -0
  86. package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.js +24 -0
  87. package/components/datagrids/formatters/ColumnColorFormatter/index.d.ts +1 -0
  88. package/components/datagrids/formatters/ColumnColorFormatter/useColumnColor.d.ts +1 -0
  89. package/components/datagrids/formatters/ColumnColorFormatter/useColumnColor.js +3 -1
  90. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.d.ts +15 -0
  91. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.js +35 -0
  92. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/index.d.ts +1 -0
  93. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.d.ts +1 -0
  94. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js +2 -0
  95. package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.d.ts +9 -0
  96. package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.js +35 -0
  97. package/components/datagrids/formatters/ColumnDateFormatter/index.d.ts +1 -0
  98. package/components/datagrids/formatters/ColumnDateFormatter/useColumnDate.d.ts +1 -0
  99. package/components/datagrids/formatters/ColumnDateFormatter/useColumnDate.js +2 -0
  100. package/components/datagrids/formatters/ColumnIconFormatter/ColumnIconGroupFormatter.d.ts +13 -0
  101. package/components/datagrids/formatters/ColumnIconFormatter/ColumnIconGroupFormatter.js +17 -0
  102. package/components/datagrids/formatters/ColumnIconFormatter/index.d.ts +1 -0
  103. package/components/datagrids/formatters/ColumnIconFormatter/useColumnIcon.d.ts +1 -0
  104. package/components/datagrids/formatters/ColumnIconFormatter/useColumnIcon.js +3 -1
  105. package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.d.ts +15 -0
  106. package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.js +33 -0
  107. package/components/datagrids/formatters/ColumnImageFormatter/index.d.ts +1 -0
  108. package/components/datagrids/formatters/ColumnImageFormatter/useColumnImage.d.ts +1 -0
  109. package/components/datagrids/formatters/ColumnImageFormatter/useColumnImage.js +3 -1
  110. package/components/datagrids/formatters/ColumnInteractiveCheckFormatter/formatter.d.ts +12 -1
  111. package/components/datagrids/formatters/ColumnInteractiveCheckFormatter/formatter.js +6 -0
  112. package/components/datagrids/formatters/ColumnNestedValueFormatter/ColumnNestedValueGroupFormatter.d.ts +14 -0
  113. package/components/datagrids/formatters/ColumnNestedValueFormatter/ColumnNestedValueGroupFormatter.js +22 -0
  114. package/components/datagrids/formatters/ColumnNestedValueFormatter/formatter.d.ts +33 -1
  115. package/components/datagrids/formatters/ColumnNestedValueFormatter/formatter.js +3 -2
  116. package/components/datagrids/formatters/ColumnNestedValueFormatter/index.d.ts +1 -0
  117. package/components/datagrids/formatters/ColumnNestedValueFormatter/types.d.ts +19 -1
  118. package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +35 -2
  119. package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +24 -8
  120. package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.d.ts +15 -0
  121. package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.js +28 -0
  122. package/components/datagrids/formatters/ColumnPointsFormatter/index.d.ts +1 -0
  123. package/components/datagrids/formatters/ColumnPointsFormatter/useColumnPoints.d.ts +1 -0
  124. package/components/datagrids/formatters/ColumnPointsFormatter/useColumnPoints.js +2 -0
  125. package/components/datagrids/formatters/ColumnPriceFormatter/ColumnPriceGroupFormatter.d.ts +14 -0
  126. package/components/datagrids/formatters/ColumnPriceFormatter/ColumnPriceGroupFormatter.js +26 -0
  127. package/components/datagrids/formatters/ColumnPriceFormatter/index.d.ts +1 -0
  128. package/components/datagrids/formatters/ColumnPriceFormatter/useColumnPrice.d.ts +1 -0
  129. package/components/datagrids/formatters/ColumnPriceFormatter/useColumnPrice.js +2 -0
  130. package/components/datagrids/formatters/ColumnTagsFormatter/ColumnTagsGroupFormatter.d.ts +13 -0
  131. package/components/datagrids/formatters/ColumnTagsFormatter/ColumnTagsGroupFormatter.js +21 -0
  132. package/components/datagrids/formatters/ColumnTagsFormatter/index.d.ts +1 -0
  133. package/components/datagrids/formatters/ColumnTagsFormatter/useColumnTags.d.ts +1 -0
  134. package/components/datagrids/formatters/ColumnTagsFormatter/useColumnTags.js +2 -0
  135. package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.d.ts +15 -0
  136. package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.js +27 -0
  137. package/components/datagrids/formatters/ColumnUncertaintyFormatter/index.d.ts +1 -0
  138. package/components/datagrids/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +1 -0
  139. package/components/datagrids/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +2 -0
  140. package/components/datagrids/helpers/shared/getInitialColumnsConfig/getInitialColumnsConfig.js +8 -0
  141. package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.js +10 -3
  142. package/components/datagrids/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +1 -0
  143. package/components/datagrids/hooks/useChangeColumnsOrder/useChangeColumnsOrder.js +12 -4
  144. package/components/datagrids/icons.d.ts +5 -0
  145. package/components/datagrids/icons.js +5 -1
  146. package/components/datagrids/index.d.ts +2 -1
  147. package/components/datagrids/slots/DataGridEnum.d.ts +3 -1
  148. package/components/datagrids/slots/DataGridEnum.js +2 -0
  149. package/components/datagrids/slots/DataGridSlot.d.ts +2 -0
  150. package/components/datagrids/slots/DataGridSlot.js +12 -2
  151. package/components/datagrids/tests/helpers/types.d.ts +10 -0
  152. package/components/datagrids/types.d.ts +52 -0
  153. package/components/datagrids/views/CardsView/hooks/useProcessedColumns/useProcessedColumns.d.ts +2 -0
  154. package/components/datagrids/views/CardsView/hooks/useProcessedColumns/useProcessedColumns.js +3 -2
  155. package/components/datagrids/views/TableView/TableView.d.ts +4 -4
  156. package/components/datagrids/views/TableView/TableView.js +41 -3
  157. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.d.ts +28 -0
  158. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.js +15 -0
  159. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.test.d.ts +1 -0
  160. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/index.d.ts +1 -0
  161. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/index.js +1 -0
  162. package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.d.ts +20 -0
  163. package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.js +13 -0
  164. package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.test.d.ts +1 -0
  165. package/components/datagrids/views/TableView/helpers/getGroupBy/index.d.ts +1 -0
  166. package/components/datagrids/views/TableView/helpers/getGroupBy/index.js +1 -0
  167. package/components/datagrids/views/TableView/helpers/index.d.ts +2 -0
  168. package/components/datagrids/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.js +62 -1
  169. package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +39 -11
  170. package/components/datagrids/views/TableView/subcomponents/ActionsColumn/ActionsColumn.js +1 -1
  171. package/components/datagrids/views/TableView/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  172. package/components/datagrids/views/TableView/subcomponents/RadioSelectColumn/RadioSelectColumn.js +2 -2
  173. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.d.ts +10 -0
  174. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.js +35 -0
  175. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.test.d.ts +1 -0
  176. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/index.d.ts +2 -0
  177. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/index.js +1 -0
  178. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/types.d.ts +12 -0
  179. package/components/datagrids/views/TableView/subcomponents/SelectColumn/SelectColumn.js +46 -14
  180. package/components/datagrids/views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +13 -2
  181. package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +47 -13
  182. package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +22 -0
  183. package/components/datagrids/views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.js +1 -1
  184. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  185. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  186. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  187. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  188. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
  189. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  190. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  191. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  192. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  193. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
  194. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +5 -5
  195. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +1 -1
  196. package/components/mui_extended/Autocomplete/Autocomplete.js +7 -3
  197. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +76 -45
  198. package/components/mui_extended/Autocomplete/constants.d.ts +23 -0
  199. package/components/mui_extended/Autocomplete/constants.js +9 -1
  200. package/components/mui_extended/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +9 -4
  201. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.d.ts +5 -1
  202. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +42 -10
  203. package/components/mui_extended/Autocomplete/hooks/useMultipleChips.js +25 -6
  204. package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.d.ts +6 -1
  205. package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.js +8 -1
  206. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +5 -2
  207. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +9 -4
  208. package/components/mui_extended/Autocomplete/subcomponents/renderOptions/index.js +4 -3
  209. package/components/mui_extended/Autocomplete/types.d.ts +9 -2
  210. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  211. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +1 -1
  212. package/components/mui_extended/MenuItem/MenuItem.js +13 -15
  213. package/components/mui_extended/MenuItem/MenuItem.styles.js +33 -46
  214. package/components/mui_extended/MenuItem/constants.d.ts +1 -1
  215. package/components/mui_extended/MenuItem/slots/MenuItemEnum.d.ts +0 -1
  216. package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +0 -1
  217. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -5
  218. package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -6
  219. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
  220. package/components/mui_extended/Radio/slots/styled.d.ts +1 -1
  221. package/components/mui_extended/Select/Select.js +1 -1
  222. package/components/mui_extended/Select/slots/SelectSlots.d.ts +3 -3
  223. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  224. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
  225. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  226. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +3 -3
  227. package/hooks/usePopoverContainer/usePopoverContainer.d.ts +1 -1
  228. package/hooks/usePopoverContainer/usePopoverContainer.js +10 -10
  229. package/index.js +116 -88
  230. package/package.json +1 -1
@@ -58,6 +58,6 @@ export declare const EditAreaHeaderStyled: import('@emotion/styled').StyledCompo
58
58
  export declare const EditAreaChipMobileContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
59
59
  ownerState?: (Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>) | undefined;
60
60
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
61
- export declare const NameChipMobileStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
61
+ export declare const NameChipMobileStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
62
62
  ownerState?: (Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>) | undefined;
63
63
  }, {}, {}>;
@@ -326,7 +326,7 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
326
326
  for (let index = 0; index < get().hashAreas[areaId].layoutItemsIds.length; index++) {
327
327
  const layoutItemId = get().hashAreas[areaId].layoutItemsIds[index];
328
328
  const layoutItem = get().hashWindows[layoutItemId];
329
- if (layoutItem.parentId === removeLayoutId) {
329
+ if (layoutItem && layoutItem.parentId === removeLayoutId) {
330
330
  get().areaActions.closeLayout(areaId, layoutItem.windowId);
331
331
  }
332
332
  }
@@ -1141,6 +1141,30 @@ const dataGridStyles = {
1141
1141
  minWidth: "max-content",
1142
1142
  overflow: "visible",
1143
1143
  flexWrap: "nowrap"
1144
+ }),
1145
+ /**
1146
+ * Estilos para el contenedor raíz del renderizador de celdas de grupo por defecto
1147
+ */
1148
+ defaultRenderGroupCellRoot: ({ theme, ownerState }) => ({
1149
+ display: "flex",
1150
+ alignItems: "center",
1151
+ gap: theme.vars.size.baseSpacings.sp2,
1152
+ cursor: "pointer",
1153
+ width: "100%",
1154
+ justifyContent: ownerState?.align === "center" ? "center" : ownerState?.align === "right" ? "flex-end" : "flex-start"
1155
+ }),
1156
+ /**
1157
+ * Estilos para el texto del renderizador de celdas de grupo por defecto
1158
+ */
1159
+ defaultRenderGroupCellText: ({ ownerState }) => ({
1160
+ fontWeight: 600,
1161
+ display: "-webkit-box",
1162
+ WebkitBoxOrient: "vertical",
1163
+ WebkitLineClamp: ownerState?.currentRowHeightVariant === "compact" ? 1 : ownerState?.currentRowHeightVariant === "confortable" ? 3 : 2,
1164
+ overflow: "hidden",
1165
+ textOverflow: "ellipsis",
1166
+ wordBreak: "break-word",
1167
+ whiteSpace: "normal"
1144
1168
  })
1145
1169
  };
1146
1170
  export {
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { DataGridProps, RowKey } from '../../types';
3
+ /**
4
+ * BaseDataGrid - Componente interno que contiene toda la lógica compartida
5
+ * entre DataGrid y TreeDataGrid.
6
+ *
7
+ * IMPORTANTE: Este componente es INTERNO y NO debe ser exportado públicamente.
8
+ * Los usuarios deben usar DataGrid o TreeDataGrid.
9
+ */
10
+ export declare function BaseDataGrid<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: DataGridProps<TRow, TSummaryRow, TKey> & {
11
+ children: ReactNode;
12
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,131 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useRef } from "react";
3
+ import { useModuleSkeleton } from "@m4l/core";
4
+ import { T as TEST_PROP_COLUMNS } from "../../types.js";
5
+ import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
6
+ import { a as getNameDataTestId } from "../../../../test/getNameDataTestId.js";
7
+ import { T as TEST_SKELETON, D as DATAGRID_PREFIX_NAME } from "../../constants.js";
8
+ import { D as DataGridRootStyled, C as CustomHeaderStyled } from "../../slots/DataGridSlot.js";
9
+ import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
10
+ import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
11
+ import { D as DataGridProvider } from "../../contexts/DataGridContext/DataGridContext.js";
12
+ import { F as FilterProvider } from "../../contexts/FilterContext/FilterContext.js";
13
+ import { H as HeaderActions } from "../../subcomponents/HeaderActions/HeaderActions.js";
14
+ import { C as ControlNavigate } from "../../subcomponents/ControlNavigate/ControlNavigate.js";
15
+ function BaseDataGrid(props) {
16
+ const {
17
+ id,
18
+ withActions = true,
19
+ rows,
20
+ columns,
21
+ actionsProps,
22
+ rowKeyGetter,
23
+ rowActionsGetter,
24
+ rowHeaderHeights,
25
+ rowHeights,
26
+ initialRowHeightVariant,
27
+ checkedRows,
28
+ onCheckedRowsChange,
29
+ checkedRowsMultiple,
30
+ dataTestId = "",
31
+ customHeader: CustomHeader,
32
+ visibleCustomHeader = true,
33
+ defaultConfig,
34
+ onChangeConfig,
35
+ defaultUserColumns,
36
+ onChangeUserColumns,
37
+ size,
38
+ externalSortSettings,
39
+ externalFilterSettings,
40
+ defaultViewMode,
41
+ cardsViewConfig,
42
+ children
43
+ } = props;
44
+ const {
45
+ withSettings,
46
+ settingsProps,
47
+ withRowsCount,
48
+ withLocalFilters,
49
+ leftActions,
50
+ rightActions,
51
+ withPager,
52
+ pagerOptions
53
+ } = actionsProps;
54
+ const { currentSize } = useComponentSize(size);
55
+ const refDataGrid = useRef(null);
56
+ const classRoot = getComponentSlotRoot(DATAGRID_PREFIX_NAME);
57
+ const ownerState = {
58
+ visibleCustomHeader
59
+ };
60
+ const isSkeleton = useModuleSkeleton();
61
+ return /* @__PURE__ */ jsx(
62
+ DataGridRootStyled,
63
+ {
64
+ ref: refDataGrid,
65
+ className: classRoot,
66
+ ...process.env.NODE_ENV !== "production" ? {
67
+ [TEST_PROP_COLUMNS]: JSON.stringify(columns),
68
+ [TEST_PROP_ID]: getNameDataTestId(
69
+ DATAGRID_PREFIX_NAME,
70
+ "root",
71
+ dataTestId
72
+ ),
73
+ [TEST_SKELETON]: isSkeleton ? true : false
74
+ } : {},
75
+ children: /* @__PURE__ */ jsx(
76
+ DataGridProvider,
77
+ {
78
+ id,
79
+ columns,
80
+ rowHeights,
81
+ rowHeaderHeights,
82
+ initialRowHeightVariant,
83
+ rowsCount: rows.length,
84
+ checkedRows,
85
+ rowActionsGetter,
86
+ onCheckedRowsChange,
87
+ checkedRowsMultiple,
88
+ rowKeyGetter,
89
+ rows,
90
+ defaultConfig,
91
+ onChangeConfig,
92
+ defaultUserColumns,
93
+ onChangeUserColumns,
94
+ size: currentSize,
95
+ externalSortSettings,
96
+ externalFilterSettings,
97
+ defaultViewMode,
98
+ cardsViewConfig,
99
+ children: /* @__PURE__ */ jsxs(FilterProvider, { initialActiveFilters: false, children: [
100
+ withActions && actionsProps && /* @__PURE__ */ jsx(
101
+ HeaderActions,
102
+ {
103
+ withSettings,
104
+ settingsProps,
105
+ withRowsCount,
106
+ withLocalFilters,
107
+ leftActions,
108
+ rightActions,
109
+ withPager,
110
+ columns,
111
+ size: currentSize
112
+ }
113
+ ),
114
+ CustomHeader ? /* @__PURE__ */ jsx(CustomHeaderStyled, { ownerState, children: CustomHeader }) : null,
115
+ children,
116
+ withPager && /* @__PURE__ */ jsx(
117
+ ControlNavigate,
118
+ {
119
+ size: currentSize,
120
+ ...{ withPager, pagerOptions }
121
+ }
122
+ )
123
+ ] })
124
+ }
125
+ )
126
+ }
127
+ );
128
+ }
129
+ export {
130
+ BaseDataGrid as B
131
+ };
@@ -0,0 +1 @@
1
+ export { BaseDataGrid } from './BaseDataGrid';
@@ -1,150 +1,38 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { useRef } from "react";
3
- import { useModuleSkeleton } from "@m4l/core";
4
- import { T as TEST_PROP_COLUMNS } from "../../types.js";
5
- import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
6
- import { a as getNameDataTestId } from "../../../../test/getNameDataTestId.js";
7
- import { T as TEST_SKELETON, D as DATAGRID_PREFIX_NAME } from "../../constants.js";
8
- import { D as DataGridRootStyled, C as CustomHeaderStyled } from "../../slots/DataGridSlot.js";
9
- import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
10
- import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
11
- import { D as DataGridProvider } from "../../contexts/DataGridContext/DataGridContext.js";
12
- import { F as FilterProvider } from "../../contexts/FilterContext/FilterContext.js";
13
- import { H as HeaderActions } from "../../subcomponents/HeaderActions/HeaderActions.js";
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { B as BaseDataGrid } from "../BaseDataGrid/BaseDataGrid.js";
14
3
  import { R as RenderContent } from "../../views/adapters/RenderContent/RenderContent.js";
15
- import { C as ControlNavigate } from "../../subcomponents/ControlNavigate/ControlNavigate.js";
16
4
  function DataGrid(props) {
17
5
  const {
18
6
  id,
19
- withActions = true,
20
- rows,
7
+ withActions,
21
8
  columns,
22
- actionsProps,
9
+ rows,
23
10
  selectedRows,
24
11
  onSelectedRowsChange,
25
12
  rowKeyGetter,
26
- rowActionsGetter,
27
13
  onRowsChange,
28
- rowHeaderHeights,
29
- rowHeights,
30
- initialRowHeightVariant,
31
- checkedRows,
32
- onCheckedRowsChange,
33
- checkedRowsMultiple,
34
- dataTestId = "",
35
- customHeader: CustomHeader,
36
- visibleCustomHeader = true,
37
- defaultConfig,
38
- onChangeConfig,
39
- defaultUserColumns,
40
- onChangeUserColumns,
41
- size,
42
- externalSortSettings,
43
- externalFilterSettings,
44
- defaultViewMode,
45
14
  cardsViewConfig,
46
- focusOnRowKey
15
+ focusOnRowKey,
16
+ checkedRows,
17
+ onCheckedRowsChange
47
18
  } = props;
48
- const {
49
- withSettings,
50
- settingsProps,
51
- withRowsCount,
52
- withLocalFilters,
53
- leftActions,
54
- rightActions,
55
- withPager,
56
- pagerOptions
57
- } = actionsProps;
58
- const { currentSize } = useComponentSize(size);
59
- const refDataGrid = useRef(null);
60
- const classRoot = getComponentSlotRoot(DATAGRID_PREFIX_NAME);
61
- const ownerState = {
62
- visibleCustomHeader
63
- };
64
- const isSkeleton = useModuleSkeleton();
65
- return /* @__PURE__ */ jsx(
66
- DataGridRootStyled,
19
+ return /* @__PURE__ */ jsx(BaseDataGrid, { ...props, children: /* @__PURE__ */ jsx(
20
+ RenderContent,
67
21
  {
68
- ref: refDataGrid,
69
- className: classRoot,
70
- ...process.env.NODE_ENV !== "production" ? {
71
- [TEST_PROP_COLUMNS]: JSON.stringify(columns),
72
- [TEST_PROP_ID]: getNameDataTestId(
73
- DATAGRID_PREFIX_NAME,
74
- "root",
75
- dataTestId
76
- ),
77
- [TEST_SKELETON]: isSkeleton ? true : false
78
- } : {},
79
- children: /* @__PURE__ */ jsx(
80
- DataGridProvider,
81
- {
82
- id: props.id,
83
- columns,
84
- rowHeights,
85
- rowHeaderHeights,
86
- initialRowHeightVariant,
87
- rowsCount: rows.length,
88
- checkedRows,
89
- rowActionsGetter,
90
- onCheckedRowsChange,
91
- checkedRowsMultiple,
92
- rowKeyGetter,
93
- rows,
94
- defaultConfig,
95
- onChangeConfig,
96
- defaultUserColumns,
97
- onChangeUserColumns,
98
- size: currentSize,
99
- externalSortSettings,
100
- externalFilterSettings,
101
- defaultViewMode,
102
- cardsViewConfig,
103
- children: /* @__PURE__ */ jsxs(FilterProvider, { initialActiveFilters: false, children: [
104
- withActions && actionsProps && /* @__PURE__ */ jsx(
105
- HeaderActions,
106
- {
107
- withSettings,
108
- settingsProps,
109
- withRowsCount,
110
- withLocalFilters,
111
- leftActions,
112
- rightActions,
113
- withPager,
114
- columns,
115
- size: currentSize
116
- }
117
- ),
118
- CustomHeader ? /* @__PURE__ */ jsx(CustomHeaderStyled, { ownerState, children: CustomHeader }) : null,
119
- /* @__PURE__ */ jsx(
120
- RenderContent,
121
- {
122
- id,
123
- withActions,
124
- columns,
125
- rows,
126
- selectedRows,
127
- onSelectedRowsChange,
128
- rowKeyGetter,
129
- onRowsChange,
130
- cardsViewConfig,
131
- focusOnRowKey,
132
- checkedRows,
133
- onCheckedRowsChange
134
- }
135
- ),
136
- withPager && /* @__PURE__ */ jsx(
137
- ControlNavigate,
138
- {
139
- size: currentSize,
140
- ...{ withPager, pagerOptions }
141
- }
142
- )
143
- ] })
144
- }
145
- )
22
+ id,
23
+ withActions,
24
+ columns,
25
+ rows,
26
+ selectedRows,
27
+ onSelectedRowsChange,
28
+ rowKeyGetter,
29
+ onRowsChange,
30
+ cardsViewConfig,
31
+ focusOnRowKey,
32
+ checkedRows,
33
+ onCheckedRowsChange
146
34
  }
147
- );
35
+ ) });
148
36
  }
149
37
  export {
150
38
  DataGrid as D
@@ -0,0 +1,22 @@
1
+ import { TreeDataGridProps, RowKey } from '../../types';
2
+ /**
3
+ * TreeDataGrid es un componente para mostrar datos jerárquicos con agrupación.
4
+ *
5
+ * Características principales:
6
+ * - Vista de tabla con agrupación jerárquica
7
+ * - Expansión/colapso de grupos
8
+ * - Todas las funcionalidades del DataGrid (paginación, filtros, ordenamiento, etc.)
9
+ *
10
+ * IMPORTANTE: Solo soporta vista de tabla (no cards).
11
+ *
12
+ * El groupBy se calcula automáticamente desde las columnas con grouped=true,
13
+ * ordenadas por groupOrder. El desarrollador solo define:
14
+ * - `grouped: true` en columnas que deben agruparse por defecto
15
+ * - `groupable: true` en columnas que el usuario puede agrupar/desagrupar
16
+ *
17
+ * Modos de control para expandedGroupIds:
18
+ * - Sin props: Estado interno, todos los grupos colapsados inicialmente
19
+ * - Solo expandedGroupIds: Usa ese valor como inicial, luego maneja internamente
20
+ * - expandedGroupIds + onExpandedGroupIdsChange: Modo controlado, padre maneja estado
21
+ */
22
+ export declare function TreeDataGrid<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: TreeDataGridProps<TRow, TSummaryRow, TKey>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,50 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { T as TableView } from "../../views/TableView/TableView.js";
4
+ import { B as BaseDataGrid } from "../BaseDataGrid/BaseDataGrid.js";
5
+ function TreeDataGrid(props) {
6
+ const {
7
+ id,
8
+ withActions,
9
+ columns,
10
+ rows,
11
+ selectedRows,
12
+ onSelectedRowsChange,
13
+ rowKeyGetter,
14
+ onRowsChange,
15
+ focusOnRowKey,
16
+ checkedRows,
17
+ onCheckedRowsChange,
18
+ rowGrouper,
19
+ expandedGroupIds: expandedGroupIdsProp,
20
+ onExpandedGroupIdsChange: onExpandedGroupIdsChangeProp
21
+ } = props;
22
+ const [internalExpandedGroupIds, setInternalExpandedGroupIds] = useState(() => new Set(expandedGroupIdsProp ?? []));
23
+ const isControlled = expandedGroupIdsProp !== void 0 && onExpandedGroupIdsChangeProp !== void 0;
24
+ const expandedGroupIds = isControlled ? expandedGroupIdsProp : internalExpandedGroupIds;
25
+ const onExpandedGroupIdsChange = isControlled ? onExpandedGroupIdsChangeProp : setInternalExpandedGroupIds;
26
+ return /* @__PURE__ */ jsx(BaseDataGrid, { ...props, children: /* @__PURE__ */ jsx(
27
+ TableView,
28
+ {
29
+ id,
30
+ withActions,
31
+ columns,
32
+ rows,
33
+ selectedRows,
34
+ onSelectedRowsChange,
35
+ rowKeyGetter,
36
+ onRowsChange,
37
+ focusOnRowKey,
38
+ checkedRows,
39
+ onCheckedRowsChange,
40
+ treeProps: {
41
+ rowGrouper,
42
+ expandedGroupIds,
43
+ onExpandedGroupIdsChange
44
+ }
45
+ }
46
+ ) });
47
+ }
48
+ export {
49
+ TreeDataGrid as T
50
+ };
@@ -0,0 +1 @@
1
+ export { TreeDataGrid } from './TreeDataGrid';
@@ -1,5 +1,4 @@
1
1
  const DATAGRID_PREFIX_NAME = "M4LDataGrid";
2
- const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
3
2
  const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
4
3
  const TEST_SKELETON = "data-skeleton";
5
4
  const DATAGRID_HEADER_RENDER_CLICK_KEY = "M4LDataGrid-HeaderRenderClick";
@@ -45,8 +44,7 @@ export {
45
44
  DATAGRID_ROW_HEIGHTS as a,
46
45
  DATAGRID_ROW_HEADER_HEIGHTS as b,
47
46
  DATAGRID_ID_DICTIONARY as c,
48
- DATAGRID_SELECT_COLUMN_KEY as d,
49
- DATAGRID_ACTIONS_COLUMN_KEY as e,
50
- DATAGRID_SEMANTIC_WIDTHS as f,
51
- DATAGRID_HEADER_RENDER_CLICK_KEY as g
47
+ DATAGRID_ACTIONS_COLUMN_KEY as d,
48
+ DATAGRID_SEMANTIC_WIDTHS as e,
49
+ DATAGRID_HEADER_RENDER_CLICK_KEY as f
52
50
  };
@@ -192,8 +192,8 @@ function DataGridProvider(props) {
192
192
  columns,
193
193
  "table",
194
194
  resolvedDefaultConfig?.columnsConfig,
195
- { frozen: false },
196
- { originalFrozen: false }
195
+ { frozen: false, grouped: false, groupOrder: 0 },
196
+ { originalFrozen: false, originalGrouped: false, originalGroupOrder: 0 }
197
197
  )
198
198
  );
199
199
  const finalCardsConfig = (() => {
@@ -267,12 +267,16 @@ function DataGridProvider(props) {
267
267
  if (newColumnsForView.length > 0) {
268
268
  const colLength = currentConfig.length;
269
269
  const viewSpecificDefaults = viewModeParam === "cards" ? { showTitle: false } : {
270
- frozen: false
270
+ frozen: false,
271
+ grouped: false,
272
+ groupOrder: 0
271
273
  };
272
274
  const originalViewSpecificDefaults = viewModeParam === "cards" ? {
273
275
  originalShowTitle: false
274
276
  } : {
275
- originalFrozen: false
277
+ originalFrozen: false,
278
+ originalGrouped: false,
279
+ originalGroupOrder: 0
276
280
  };
277
281
  const newColConfig = getInitialColumnsConfig(
278
282
  id,
@@ -23,16 +23,26 @@ export interface BaseConfigColumn {
23
23
  visible: boolean;
24
24
  index: number;
25
25
  frozen: boolean;
26
+ /**
27
+ * Si la columna está agrupada actualmente.
28
+ * Solo aplica para TreeDataGrid.
29
+ */
30
+ grouped?: boolean;
31
+ /**
32
+ * Orden en la jerarquía de agrupación (0 = primer nivel).
33
+ * Solo aplica para TreeDataGrid.
34
+ */
35
+ groupOrder?: number;
26
36
  /**
27
37
  * @deprecated internamente el componente usa el name de columns.
28
38
  */
29
39
  name?: string;
30
40
  }
31
41
  /**
32
- * Configuración base para vista cards - omite frozen y agrega showTitle
42
+ * Configuración base para vista cards - omite frozen, grouped y groupOrder y agrega showTitle
33
43
  * USO: Los desarrolladores pasan esto en defaultUserColumns.columnsConfigCards
34
44
  */
35
- export interface BaseConfigColumnCards extends Omit<BaseConfigColumn, 'frozen'> {
45
+ export interface BaseConfigColumnCards extends Omit<BaseConfigColumn, 'frozen' | 'grouped' | 'groupOrder'> {
36
46
  showTitle: boolean;
37
47
  }
38
48
  /**
@@ -44,12 +54,16 @@ export interface IConfigColumn extends BaseConfigColumn {
44
54
  originalIndex: number;
45
55
  originalVisible: boolean;
46
56
  originalFrozen: boolean;
57
+ /** Valor original de grouped definido en la columna */
58
+ originalGrouped?: boolean;
59
+ /** Valor original de groupOrder */
60
+ originalGroupOrder?: number;
47
61
  }
48
62
  /**
49
63
  * Configuración extendida para cards (estado interno)
50
64
  * USO INTERNO: El contexto agrega estas propiedades para tracking y gestión de estado
51
65
  */
52
- export interface IConfigColumnCards extends Omit<IConfigColumn, 'frozen' | 'originalFrozen'> {
66
+ export interface IConfigColumnCards extends Omit<IConfigColumn, 'frozen' | 'originalFrozen' | 'grouped' | 'groupOrder' | 'originalGrouped' | 'originalGroupOrder'> {
53
67
  showTitle: boolean;
54
68
  originalShowTitle: boolean;
55
69
  }
@@ -60,7 +74,9 @@ export type ViewMode = 'table' | 'cards';
60
74
  * EXTENSIBILIDAD: Agregar aquí nuevas propiedades para nuevas vistas (ej: columnsConfigList)
61
75
  */
62
76
  export interface IGridConfigExtended extends IGridConfig {
77
+ /** Configuración de columnas para vista cards */
63
78
  columnsConfigCards?: BaseConfigColumnCards[];
79
+ /** Modo de vista actual (table/cards) */
64
80
  viewMode?: ViewMode;
65
81
  }
66
82
  export interface DataGridProviderProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Pick<GridProps<TRow, TSummaryRow, TKey>, 'rows' | 'columns' | 'rowActionsGetter' | 'rowHeaderHeights' | 'rowHeights' | 'initialRowHeightVariant' | 'checkedRows' | 'onCheckedRowsChange' | 'checkedRowsMultiple' | 'rowKeyGetter' | 'externalSortSettings' | 'externalFilterSettings' | 'defaultViewMode' | 'cardsViewConfig'> {
@@ -34,6 +34,9 @@ export declare const DICTIONARY: {
34
34
  UNFREEZE_COLUMN: string;
35
35
  HIDE_COLUMN: string;
36
36
  ADD_FILTER_COLUMN: string;
37
+ SETTINGS_COLUMN_GROUP: string;
38
+ GROUP_BY_COLUMN: string;
39
+ REMOVE_GROUP_COLUMN: string;
37
40
  VIEW_MODE_TABLE: string;
38
41
  VIEW_MODE_CARDS: string;
39
42
  TOOLTIP_VIEW_MODE: string;
@@ -34,6 +34,10 @@ const DICTIONARY = {
34
34
  UNFREEZE_COLUMN: `${DATAGRID_ID_DICTIONARY}.unfreeze_column`,
35
35
  HIDE_COLUMN: `${DATAGRID_ID_DICTIONARY}.hide_column`,
36
36
  ADD_FILTER_COLUMN: `${DATAGRID_ID_DICTIONARY}.add_filter`,
37
+ // Labels para agrupación de columnas (Row Grouping)
38
+ SETTINGS_COLUMN_GROUP: `${DATAGRID_ID_DICTIONARY}.settings_column_group`,
39
+ GROUP_BY_COLUMN: `${DATAGRID_ID_DICTIONARY}.group_by_column`,
40
+ REMOVE_GROUP_COLUMN: `${DATAGRID_ID_DICTIONARY}.remove_group_column`,
37
41
  VIEW_MODE_TABLE: `${DATAGRID_ID_DICTIONARY}.view_mode_table`,
38
42
  VIEW_MODE_CARDS: `${DATAGRID_ID_DICTIONARY}.view_mode_cards`,
39
43
  TOOLTIP_VIEW_MODE: `${DATAGRID_ID_DICTIONARY}.tooltip_view_mode`,
@@ -0,0 +1,15 @@
1
+ import { ColumnBooleanFormatterProps } from './types';
2
+ import { RenderGroupCellProps } from 'react-data-grid';
3
+ /**
4
+ * Formatter para mostrar valores booleanos en filas de grupo (TreeDataGrid).
5
+ *
6
+ * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
+ * mostrar un valor booleano en el encabezado del grupo. Usa la primera fila
8
+ * del grupo (childRows[0]) como fuente de datos representativa.
9
+ * @param props - Propiedades del formatter que incluyen:
10
+ * - fieldValue: Campo que contiene el valor booleano
11
+ * - presentationType: Tipo de presentación (text, icon, etc.)
12
+ * - Component: Componente wrapper opcional
13
+ * @returns Función que recibe RenderGroupCellProps y retorna el BooleanFormatter
14
+ */
15
+ export declare function ColumnBooleanGroupFormatter<TRow>(props: ColumnBooleanFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;