@m4l/components 9.4.10-JT14012026.beta.1 → 9.4.11

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 (244) hide show
  1. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +6 -6
  2. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
  3. package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
  4. package/components/Card/constants.d.ts +1 -1
  5. package/components/CheckableList/slots/styled.d.ts +9 -9
  6. package/components/Chip/slots/ChipSlots.d.ts +2 -2
  7. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  8. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  9. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.d.ts +34 -0
  10. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.js +46 -0
  11. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.styles.d.ts +2 -0
  12. package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.styles.js +7 -0
  13. package/components/CommonActions/components/ActionFormSubmitProgrammatic/constanst.d.ts +6 -0
  14. package/components/CommonActions/components/ActionFormSubmitProgrammatic/constanst.js +7 -0
  15. package/components/CommonActions/components/ActionFormSubmitProgrammatic/index.d.ts +2 -0
  16. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticEnum.d.ts +3 -0
  17. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticEnum.js +7 -0
  18. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -0
  19. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.js +12 -0
  20. package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/index.d.ts +2 -0
  21. package/components/CommonActions/components/ActionFormSubmitProgrammatic/types.d.ts +36 -0
  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/CommonActions/index.d.ts +1 -0
  25. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
  26. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +21 -1
  27. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +8 -3
  28. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +1 -1
  29. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +5 -2
  30. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  31. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +1 -1
  32. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -3
  33. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.d.ts +21 -1
  34. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +8 -3
  35. package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
  36. package/components/GridLayout/classes/index.d.ts +1 -1
  37. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  38. package/components/ImageText/constants.d.ts +1 -1
  39. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  40. package/components/Label/slots/LabelSlots.d.ts +3 -3
  41. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  42. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  43. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  44. package/components/MenuActions/constants.d.ts +1 -1
  45. package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
  46. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  47. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
  48. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  49. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
  50. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  51. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  52. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
  53. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  54. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  55. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
  56. package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
  57. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  58. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +3 -3
  59. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +1 -1
  60. package/components/areas/contexts/AreasContext/store.js +1 -1
  61. package/components/datagrids/Datagrid.styles.js +0 -24
  62. package/components/datagrids/components/DataGridMain/DataGridMain.js +134 -22
  63. package/components/datagrids/constants.js +5 -3
  64. package/components/datagrids/contexts/DataGridContext/DataGridContext.js +4 -8
  65. package/components/datagrids/contexts/DataGridContext/types.d.ts +3 -19
  66. package/components/datagrids/dictionary.d.ts +0 -3
  67. package/components/datagrids/dictionary.js +0 -4
  68. package/components/datagrids/formatters/ColumnBooleanFormatter/index.d.ts +0 -1
  69. package/components/datagrids/formatters/ColumnBooleanFormatter/useColumnBoolean.d.ts +0 -1
  70. package/components/datagrids/formatters/ColumnBooleanFormatter/useColumnBoolean.js +0 -2
  71. package/components/datagrids/formatters/ColumnChipStatusFormatter/index.d.ts +0 -1
  72. package/components/datagrids/formatters/ColumnChipStatusFormatter/useColumnChipStatus.d.ts +0 -1
  73. package/components/datagrids/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +0 -2
  74. package/components/datagrids/formatters/ColumnColorFormatter/index.d.ts +0 -1
  75. package/components/datagrids/formatters/ColumnColorFormatter/useColumnColor.d.ts +0 -1
  76. package/components/datagrids/formatters/ColumnColorFormatter/useColumnColor.js +1 -3
  77. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/index.d.ts +0 -1
  78. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.d.ts +0 -1
  79. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js +0 -2
  80. package/components/datagrids/formatters/ColumnDateFormatter/index.d.ts +0 -1
  81. package/components/datagrids/formatters/ColumnDateFormatter/useColumnDate.d.ts +0 -1
  82. package/components/datagrids/formatters/ColumnDateFormatter/useColumnDate.js +0 -2
  83. package/components/datagrids/formatters/ColumnIconFormatter/index.d.ts +0 -1
  84. package/components/datagrids/formatters/ColumnIconFormatter/useColumnIcon.d.ts +0 -1
  85. package/components/datagrids/formatters/ColumnIconFormatter/useColumnIcon.js +1 -3
  86. package/components/datagrids/formatters/ColumnImageFormatter/index.d.ts +0 -1
  87. package/components/datagrids/formatters/ColumnImageFormatter/useColumnImage.d.ts +0 -1
  88. package/components/datagrids/formatters/ColumnImageFormatter/useColumnImage.js +1 -3
  89. package/components/datagrids/formatters/ColumnInteractiveCheckFormatter/formatter.d.ts +1 -12
  90. package/components/datagrids/formatters/ColumnInteractiveCheckFormatter/formatter.js +0 -6
  91. package/components/datagrids/formatters/ColumnNestedValueFormatter/index.d.ts +0 -1
  92. package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +0 -1
  93. package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +0 -2
  94. package/components/datagrids/formatters/ColumnPointsFormatter/index.d.ts +0 -1
  95. package/components/datagrids/formatters/ColumnPointsFormatter/useColumnPoints.d.ts +0 -1
  96. package/components/datagrids/formatters/ColumnPointsFormatter/useColumnPoints.js +0 -2
  97. package/components/datagrids/formatters/ColumnPriceFormatter/index.d.ts +0 -1
  98. package/components/datagrids/formatters/ColumnPriceFormatter/useColumnPrice.d.ts +0 -1
  99. package/components/datagrids/formatters/ColumnPriceFormatter/useColumnPrice.js +0 -2
  100. package/components/datagrids/formatters/ColumnTagsFormatter/index.d.ts +0 -1
  101. package/components/datagrids/formatters/ColumnTagsFormatter/useColumnTags.d.ts +0 -1
  102. package/components/datagrids/formatters/ColumnTagsFormatter/useColumnTags.js +0 -2
  103. package/components/datagrids/formatters/ColumnUncertaintyFormatter/index.d.ts +0 -1
  104. package/components/datagrids/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +0 -1
  105. package/components/datagrids/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +0 -2
  106. package/components/datagrids/helpers/shared/getInitialColumnsConfig/getInitialColumnsConfig.js +0 -8
  107. package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.js +3 -10
  108. package/components/datagrids/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +0 -1
  109. package/components/datagrids/hooks/useChangeColumnsOrder/useChangeColumnsOrder.js +4 -12
  110. package/components/datagrids/icons.d.ts +0 -5
  111. package/components/datagrids/icons.js +1 -5
  112. package/components/datagrids/index.d.ts +1 -2
  113. package/components/datagrids/slots/DataGridEnum.d.ts +1 -3
  114. package/components/datagrids/slots/DataGridEnum.js +0 -2
  115. package/components/datagrids/slots/DataGridSlot.d.ts +0 -2
  116. package/components/datagrids/slots/DataGridSlot.js +2 -12
  117. package/components/datagrids/types.d.ts +0 -52
  118. package/components/datagrids/views/CardsView/hooks/useProcessedColumns/useProcessedColumns.d.ts +0 -2
  119. package/components/datagrids/views/CardsView/hooks/useProcessedColumns/useProcessedColumns.js +2 -3
  120. package/components/datagrids/views/TableView/TableView.d.ts +4 -4
  121. package/components/datagrids/views/TableView/TableView.js +3 -41
  122. package/components/datagrids/views/TableView/helpers/index.d.ts +0 -2
  123. package/components/datagrids/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.js +1 -62
  124. package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +13 -39
  125. package/components/datagrids/views/TableView/subcomponents/ActionsColumn/ActionsColumn.js +1 -1
  126. package/components/datagrids/views/TableView/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  127. package/components/datagrids/views/TableView/subcomponents/RadioSelectColumn/RadioSelectColumn.js +2 -2
  128. package/components/datagrids/views/TableView/subcomponents/SelectColumn/SelectColumn.js +14 -46
  129. package/components/datagrids/views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +2 -13
  130. package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +13 -47
  131. package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +0 -22
  132. package/components/datagrids/views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.js +1 -1
  133. package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  134. package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  135. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +6 -6
  136. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  137. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  138. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  139. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  140. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
  141. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  142. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  143. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  144. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  145. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
  146. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  147. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
  148. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +3 -3
  149. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  150. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  151. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  152. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  153. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
  154. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
  155. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
  156. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
  157. package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
  158. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +3 -3
  159. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
  160. package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
  161. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  162. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +2 -2
  163. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  164. package/components/mui_extended/DatePicker/constants.d.ts +1 -1
  165. package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +3 -3
  166. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
  167. package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
  168. package/components/mui_extended/IconButton/constants.d.ts +1 -1
  169. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
  170. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  171. package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  172. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
  173. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
  174. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  175. package/components/mui_extended/Radio/slots/styled.d.ts +2 -2
  176. package/components/mui_extended/Select/constants.d.ts +1 -1
  177. package/components/mui_extended/Select/slots/SelectSlots.d.ts +5 -5
  178. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  179. package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
  180. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +2 -2
  181. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
  182. package/components/mui_extended/TextField/constants.d.ts +1 -1
  183. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +4 -4
  184. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
  185. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  186. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  187. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  188. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +4 -4
  189. package/hooks/usePopoverContainer/index.d.ts +1 -0
  190. package/hooks/usePopoverContainer/usePopoverContainer.d.ts +35 -6
  191. package/hooks/usePopoverContainer/usePopoverContainer.js +21 -10
  192. package/index.js +92 -114
  193. package/not_recognized/index.js +100 -25
  194. package/package.json +1 -1
  195. package/test/mocks.d.ts +2 -2
  196. package/components/datagrids/components/BaseDataGrid/BaseDataGrid.d.ts +0 -12
  197. package/components/datagrids/components/BaseDataGrid/BaseDataGrid.js +0 -131
  198. package/components/datagrids/components/BaseDataGrid/index.d.ts +0 -1
  199. package/components/datagrids/components/TreeDataGrid/TreeDataGrid.d.ts +0 -22
  200. package/components/datagrids/components/TreeDataGrid/TreeDataGrid.js +0 -50
  201. package/components/datagrids/components/TreeDataGrid/TreeDataGrid.test.d.ts +0 -1
  202. package/components/datagrids/components/TreeDataGrid/index.d.ts +0 -1
  203. package/components/datagrids/components/TreeDataGrid/index.js +0 -1
  204. package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.d.ts +0 -15
  205. package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.js +0 -32
  206. package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.d.ts +0 -16
  207. package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.js +0 -37
  208. package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.d.ts +0 -14
  209. package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.js +0 -24
  210. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.d.ts +0 -15
  211. package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.js +0 -35
  212. package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.d.ts +0 -9
  213. package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.js +0 -35
  214. package/components/datagrids/formatters/ColumnIconFormatter/ColumnIconGroupFormatter.d.ts +0 -13
  215. package/components/datagrids/formatters/ColumnIconFormatter/ColumnIconGroupFormatter.js +0 -17
  216. package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.d.ts +0 -15
  217. package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.js +0 -33
  218. package/components/datagrids/formatters/ColumnNestedValueFormatter/ColumnNestedValueGroupFormatter.d.ts +0 -14
  219. package/components/datagrids/formatters/ColumnNestedValueFormatter/ColumnNestedValueGroupFormatter.js +0 -22
  220. package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.d.ts +0 -15
  221. package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.js +0 -28
  222. package/components/datagrids/formatters/ColumnPriceFormatter/ColumnPriceGroupFormatter.d.ts +0 -14
  223. package/components/datagrids/formatters/ColumnPriceFormatter/ColumnPriceGroupFormatter.js +0 -26
  224. package/components/datagrids/formatters/ColumnTagsFormatter/ColumnTagsGroupFormatter.d.ts +0 -13
  225. package/components/datagrids/formatters/ColumnTagsFormatter/ColumnTagsGroupFormatter.js +0 -21
  226. package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.d.ts +0 -15
  227. package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.js +0 -27
  228. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.d.ts +0 -28
  229. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.js +0 -15
  230. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.test.d.ts +0 -1
  231. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/index.d.ts +0 -1
  232. package/components/datagrids/views/TableView/helpers/defaultRowGrouper/index.js +0 -1
  233. package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.d.ts +0 -20
  234. package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.js +0 -13
  235. package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.test.d.ts +0 -1
  236. package/components/datagrids/views/TableView/helpers/getGroupBy/index.d.ts +0 -1
  237. package/components/datagrids/views/TableView/helpers/getGroupBy/index.js +0 -1
  238. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.d.ts +0 -10
  239. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.js +0 -35
  240. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.test.d.ts +0 -1
  241. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/index.d.ts +0 -2
  242. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/index.js +0 -1
  243. package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/types.d.ts +0 -12
  244. /package/components/{datagrids/components/BaseDataGrid → CommonActions/components/ActionFormSubmitProgrammatic/slots}/index.js +0 -0
@@ -1,131 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { BaseDataGrid } from './BaseDataGrid';
@@ -1,22 +0,0 @@
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;
@@ -1,50 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { TreeDataGrid } from './TreeDataGrid';
@@ -1,15 +0,0 @@
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;
@@ -1,32 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import React from "react";
3
- import { getPropertyByString } from "@m4l/core";
4
- import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/BooleanFormatter.js";
5
- function ColumnBooleanGroupFormatter(props) {
6
- const { fieldValue, presentationType, Component = React.Fragment } = props;
7
- return (groupProps) => {
8
- const { childRows } = groupProps;
9
- if (childRows.length === 0) {
10
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
11
- }
12
- const representativeRow = childRows[0];
13
- const valueMaybeString = getPropertyByString(representativeRow, fieldValue);
14
- let fixedValue;
15
- if (typeof valueMaybeString === "boolean") {
16
- fixedValue = valueMaybeString;
17
- } else {
18
- fixedValue = void 0;
19
- }
20
- return /* @__PURE__ */ jsx(
21
- BooleanFormatter,
22
- {
23
- presentationType,
24
- value: fixedValue,
25
- Component
26
- }
27
- );
28
- };
29
- }
30
- export {
31
- ColumnBooleanGroupFormatter as C
32
- };
@@ -1,16 +0,0 @@
1
- import { ColumnChipStatusFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar un chip de estado en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar un ChipStatus 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
- * - fieldStatus: Campo que contiene el valor del estado
11
- * - fieldLabel: Campo o función que genera la etiqueta del chip
12
- * - statusesColors: Mapeo de estados a colores
13
- * - fallbackColor: Color por defecto si el estado no tiene mapeo
14
- * @returns Función que recibe RenderGroupCellProps y retorna el ChipStatusFormatter
15
- */
16
- export declare const ColumnChipStatusGroupFormatter: <TRow>(props: ColumnChipStatusFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,37 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import { getPropertyByString } from "@m4l/core";
3
- import { C as ChipStatusFormatterColumnWrapperStyled } from "../../../formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.js";
4
- import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
5
- import { C as ChipStatusFormatter } from "../../../formatters/ChipStatusFormatter/ChipStatusFormatter.js";
6
- const ColumnChipStatusGroupFormatter = (props) => {
7
- const { fieldStatus, fieldLabel, statusesColors, fallbackColor } = props;
8
- return (groupProps) => {
9
- const { childRows } = groupProps;
10
- if (childRows.length === 0) {
11
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
12
- }
13
- const representativeRow = childRows[0];
14
- const cleanFieldStatus = fieldStatus.toString().startsWith("row.") ? fieldStatus.toString().substring(4) : fieldStatus.toString();
15
- const cleanFieldLabel = typeof fieldLabel === "string" && fieldLabel.startsWith("row.") ? fieldLabel.substring(4) : fieldLabel;
16
- const status = getNullGuard(
17
- getPropertyByString(representativeRow, cleanFieldStatus)
18
- );
19
- const baseLabel = typeof cleanFieldLabel === "string" ? getNullGuard(
20
- getPropertyByString(representativeRow, cleanFieldLabel)
21
- ) : typeof fieldLabel === "function" ? fieldLabel(representativeRow, status) : "";
22
- const label = `${baseLabel} (${childRows.length})`;
23
- return /* @__PURE__ */ jsx(
24
- ChipStatusFormatter,
25
- {
26
- label,
27
- status,
28
- statusesColors,
29
- Component: ChipStatusFormatterColumnWrapperStyled,
30
- fallbackColor
31
- }
32
- );
33
- };
34
- };
35
- export {
36
- ColumnChipStatusGroupFormatter as C
37
- };
@@ -1,14 +0,0 @@
1
- import { RenderGroupCellProps } from 'react-data-grid';
2
- import { ColumnColorFormatterProps } from './types';
3
- /**
4
- * Formatter para mostrar colores en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar un color 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 del color
11
- * - size: Tamaño del indicador de color
12
- * @returns Función que recibe RenderGroupCellProps y retorna el ColorFormatter
13
- */
14
- export declare const ColumnColorGroupFormatter: <TRow>(props: ColumnColorFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,24 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import { getPropertyByString } from "@m4l/core";
3
- import { C as ColorFormatter } from "../../../formatters/ColorFormatter/ColorFormatter.js";
4
- const ColumnColorGroupFormatter = (props) => {
5
- const { fieldValue, size = "medium" } = props;
6
- return (groupProps) => {
7
- const { childRows } = groupProps;
8
- if (childRows.length === 0) {
9
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
10
- }
11
- const representativeRow = childRows[0];
12
- const colorValue = getPropertyByString(representativeRow, fieldValue.toString());
13
- let fixedValue;
14
- if (typeof colorValue === "string") {
15
- fixedValue = colorValue;
16
- } else {
17
- fixedValue = null;
18
- }
19
- return /* @__PURE__ */ jsx(ColorFormatter, { value: fixedValue, size });
20
- };
21
- };
22
- export {
23
- ColumnColorGroupFormatter as C
24
- };
@@ -1,15 +0,0 @@
1
- import { ColumnConcatenatedValuesFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar valores concatenados en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar valores concatenados 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: Array de campos a concatenar
11
- * - fieldSeparator: Separador entre valores
12
- * - Component: Componente wrapper opcional
13
- * @returns Función que recibe RenderGroupCellProps y retorna el ConcatenatedFormatter
14
- */
15
- export declare function ColumnConcatenatedValuesGroupFormatter<TRow>(props: ColumnConcatenatedValuesFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,35 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import React from "react";
3
- import { getPropertyByString } from "@m4l/core";
4
- import { C as ConcatenatedFormatter } from "../../../formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
5
- function ColumnConcatenatedValuesGroupFormatter(props) {
6
- const { fieldValue, fieldSeparator, Component = React.Fragment } = props;
7
- return (groupProps) => {
8
- const { childRows } = groupProps;
9
- if (childRows.length === 0) {
10
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
11
- }
12
- const representativeRow = childRows[0];
13
- const values = fieldValue.map((element) => {
14
- const valueMaybeString = getPropertyByString(representativeRow, element);
15
- let fixedValue;
16
- if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
17
- fixedValue = valueMaybeString.toString();
18
- } else {
19
- fixedValue = "";
20
- }
21
- return fixedValue;
22
- });
23
- return /* @__PURE__ */ jsx(
24
- ConcatenatedFormatter,
25
- {
26
- values,
27
- separator: fieldSeparator,
28
- Component
29
- }
30
- );
31
- };
32
- }
33
- export {
34
- ColumnConcatenatedValuesGroupFormatter as C
35
- };
@@ -1,9 +0,0 @@
1
- import { ColumnDateFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar una fecha en filas de grupo (TreeDataGrid).
5
- * Usa la primera fila del grupo (childRows[0]) como fuente de datos.
6
- * @param props - Propiedades del formatter (fieldValue, presentationType, Component)
7
- * @returns Función que recibe RenderGroupCellProps y retorna el DateFormatter
8
- */
9
- export declare function ColumnDateGroupFormatter<TRow>(props: ColumnDateFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,35 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import { getPropertyByString } from "@m4l/core";
3
- import React from "react";
4
- import { D as DateFormatter } from "../../../formatters/DateFormatter/DateFormatter.js";
5
- function ColumnDateGroupFormatter(props) {
6
- const { fieldValue, presentationType, Component = React.Fragment } = props;
7
- return (groupProps) => {
8
- const { childRows } = groupProps;
9
- if (childRows.length === 0) {
10
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
11
- }
12
- const representativeRow = childRows[0];
13
- const valueMaybeDateStringNumber = getPropertyByString(
14
- representativeRow,
15
- fieldValue
16
- );
17
- let fixedValue;
18
- if (typeof valueMaybeDateStringNumber === "string" || typeof valueMaybeDateStringNumber === "number" || valueMaybeDateStringNumber instanceof Date) {
19
- fixedValue = valueMaybeDateStringNumber;
20
- } else {
21
- fixedValue = "";
22
- }
23
- return /* @__PURE__ */ jsx(
24
- DateFormatter,
25
- {
26
- presentationType,
27
- value: fixedValue,
28
- Component
29
- }
30
- );
31
- };
32
- }
33
- export {
34
- ColumnDateGroupFormatter as C
35
- };
@@ -1,13 +0,0 @@
1
- import { ColumnIconFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar iconos en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar iconos 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
- * - getIconProps: Función que obtiene las props del icono de una fila
11
- * @returns Función que recibe RenderGroupCellProps y retorna el IconsFormatter
12
- */
13
- export declare const ColumnIconGroupFormatter: <TRow>(props: ColumnIconFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import { I as IconsFormatter } from "../../../formatters/IconsFormatter/IconsFormatter.js";
3
- const ColumnIconGroupFormatter = (props) => {
4
- const { getIconProps } = props;
5
- return (groupProps) => {
6
- const { childRows } = groupProps;
7
- if (childRows.length === 0) {
8
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
9
- }
10
- const representativeRow = childRows[0];
11
- const iconProps = getIconProps(representativeRow);
12
- return /* @__PURE__ */ jsx(IconsFormatter, { icons: iconProps });
13
- };
14
- };
15
- export {
16
- ColumnIconGroupFormatter as C
17
- };
@@ -1,15 +0,0 @@
1
- import { ColumnImageFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar imágenes en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar una imagen 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 la URL de la imagen
11
- * - fieldText: Campo opcional para el texto
12
- * - cover: Modo de ajuste de la imagen
13
- * @returns Función que recibe RenderGroupCellProps y retorna el ImageFormatter
14
- */
15
- export declare const ColumnImageGroupFormatter: <TRow>(props: ColumnImageFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,33 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import { getPropertyByString } from "@m4l/core";
3
- import { I as ImageFormatter } from "../../../formatters/ImageFormatter/ImageFormatter.js";
4
- const ColumnImageGroupFormatter = (props) => {
5
- const { fieldValue, fieldText, cover } = props;
6
- return (groupProps) => {
7
- const { childRows } = groupProps;
8
- if (childRows.length === 0) {
9
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
10
- }
11
- const representativeRow = childRows[0];
12
- const src = getPropertyByString(
13
- representativeRow,
14
- fieldValue.toString()
15
- );
16
- const text = fieldText ? getPropertyByString(representativeRow, fieldText.toString()) : void 0;
17
- if (!src) {
18
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
19
- }
20
- return /* @__PURE__ */ jsx(
21
- ImageFormatter,
22
- {
23
- src,
24
- alt: text || src,
25
- text: text ?? void 0,
26
- cover
27
- }
28
- );
29
- };
30
- };
31
- export {
32
- ColumnImageGroupFormatter as C
33
- };
@@ -1,14 +0,0 @@
1
- import { ColumnNestedValueFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar valores anidados en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar un valor anidado 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 anidado a mostrar (ej: 'user.name')
11
- * - Component: Componente wrapper opcional
12
- * @returns Función que recibe RenderGroupCellProps y retorna el valor formateado
13
- */
14
- export declare function ColumnNestedValueGroupFormatter<TRow>(props: ColumnNestedValueFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import React from "react";
3
- import { getPropertyByString } from "@m4l/core";
4
- import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
5
- function ColumnNestedValueGroupFormatter(props) {
6
- const { fieldValue, Component = React.Fragment } = props;
7
- return (groupProps) => {
8
- const { childRows } = groupProps;
9
- if (childRows.length === 0) {
10
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
11
- }
12
- const representativeRow = childRows[0];
13
- const property = getNullGuard(
14
- getPropertyByString(representativeRow, fieldValue)
15
- );
16
- const value = typeof property === "object" ? JSON.stringify(property) : property;
17
- return /* @__PURE__ */ jsx(Component, { children: value });
18
- };
19
- }
20
- export {
21
- ColumnNestedValueGroupFormatter as C
22
- };
@@ -1,15 +0,0 @@
1
- import { ColumnPointsFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar puntos de calibración en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar puntos 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 de los puntos
11
- * - fieldUnit: Campo que contiene la unidad de los puntos
12
- * - Component: Componente wrapper opcional
13
- * @returns Función que recibe RenderGroupCellProps y retorna el PointsFormatter
14
- */
15
- export declare const ColumnPointsGroupFormatter: <TRow>(props: ColumnPointsFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import React from "react";
3
- import { P as PointsFormatter } from "../../../formatters/PointsFormatter/PointsFormatter.js";
4
- const ColumnPointsGroupFormatter = (props) => {
5
- const { Component = React.Fragment } = props;
6
- const fieldValue = props.fieldValue;
7
- const fieldUnit = props.fieldUnit;
8
- return (groupProps) => {
9
- const { childRows } = groupProps;
10
- if (childRows.length === 0) {
11
- return /* @__PURE__ */ jsx(Fragment, { children: "-" });
12
- }
13
- const representativeRow = childRows[0];
14
- return /* @__PURE__ */ jsx(
15
- PointsFormatter,
16
- {
17
- obProps: representativeRow,
18
- ...props,
19
- fieldValue,
20
- fieldUnit,
21
- Component
22
- }
23
- );
24
- };
25
- };
26
- export {
27
- ColumnPointsGroupFormatter as C
28
- };
@@ -1,14 +0,0 @@
1
- import { ColumnPriceFormatterProps } from './types';
2
- import { RenderGroupCellProps } from 'react-data-grid';
3
- /**
4
- * Formatter para mostrar un precio en filas de grupo (TreeDataGrid).
5
- *
6
- * Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
7
- * mostrar un precio 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 del precio
11
- * - Component: Componente wrapper opcional
12
- * @returns Función que recibe RenderGroupCellProps y retorna el PriceFormatter
13
- */
14
- export declare const ColumnPriceGroupFormatter: <TRow>(props: ColumnPriceFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;