@m4l/components 9.4.5 → 9.4.6-JT19122025.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +1 -1
- package/components/DataGrid/Datagrid.styles.js +174 -153
- package/components/DataGrid/components/DataGrid/DataGrid.d.ts +28 -0
- package/components/DataGrid/{DataGrid.js → components/DataGrid/DataGrid.js} +12 -16
- package/components/DataGrid/components/DataGrid/index.d.ts +1 -0
- package/components/DataGrid/components/index.d.ts +1 -0
- package/components/DataGrid/contexts/DataGridContext/DataGridContext.d.ts +9 -0
- package/components/DataGrid/contexts/DataGridContext/DataGridContext.js +368 -0
- package/components/DataGrid/contexts/DataGridContext/index.d.ts +2 -9
- package/components/DataGrid/contexts/DataGridContext/index.js +0 -364
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +2 -1
- package/components/DataGrid/contexts/FilterContext/FilterContext.d.ts +12 -0
- package/components/DataGrid/contexts/FilterContext/FilterContext.js +50 -0
- package/components/DataGrid/contexts/FilterContext/index.d.ts +2 -12
- package/components/DataGrid/contexts/FilterContext/index.js +1 -47
- package/components/DataGrid/dictionary.d.ts +2 -1
- package/components/DataGrid/dictionary.js +3 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js +9 -6
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js +1 -1
- package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js +1 -1
- package/components/DataGrid/formatters/ColumnImageFormatter/ImageFormatterCell.js +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js +1 -1
- package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js +1 -1
- package/components/DataGrid/formatters/ColumnTagsFormatter/useColumnTags.js +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +1 -1
- package/components/DataGrid/helpers/index.d.ts +14 -13
- package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/getColumnsWidth.d.ts +2 -2
- package/components/DataGrid/helpers/persistence/getColumnsWidth/types.d.ts +25 -0
- package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/getViewMode.d.ts +2 -2
- package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/loadViewConfig.d.ts +1 -1
- package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/saveColumnsWidth.d.ts +1 -1
- package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/saveColumnsWidth.js +1 -1
- package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/saveViewConfig.d.ts +1 -1
- package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/saveViewMode.d.ts +2 -2
- package/components/DataGrid/helpers/{castMapColumnsWidthToRecord.d.ts → shared/castMapColumnsWidthToRecord/castMapColumnsWidthToRecord.d.ts} +2 -2
- package/components/DataGrid/helpers/shared/castMapColumnsWidthToRecord/castMapColumnsWidthToRecord.js +19 -0
- package/components/DataGrid/helpers/shared/castMapColumnsWidthToRecord/index.d.ts +1 -0
- package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/getAllViewModes.d.ts +1 -1
- package/components/DataGrid/helpers/{getColumnKey.d.ts → shared/getColumnKey/getColumnKey.d.ts} +1 -1
- package/components/DataGrid/helpers/shared/getColumnKey/index.d.ts +1 -0
- package/components/DataGrid/helpers/shared/getDataGridRowsFromSet/getDataGridRowsFromSet.d.ts +20 -0
- package/components/DataGrid/helpers/shared/getDataGridRowsFromSet/index.d.ts +1 -0
- package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/getIndexRowHeightVariant.d.ts +1 -1
- package/components/DataGrid/helpers/shared/getIndexRowHeightVariant/index.js +1 -0
- package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/getInitialColumnsConfig.d.ts +3 -3
- package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/getInitialColumnsConfig.js +1 -1
- package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/index.d.ts +1 -0
- package/components/DataGrid/helpers/shared/getInitialColumnsConfig/index.js +1 -0
- package/components/DataGrid/helpers/shared/getInitialColumnsConfig/types.d.ts +18 -0
- package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/getViewSpecificConfig.d.ts +2 -2
- package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/index.d.ts +1 -0
- package/components/DataGrid/helpers/shared/getViewSpecificConfig/index.js +1 -0
- package/components/DataGrid/helpers/shared/getViewSpecificConfig/types.d.ts +11 -0
- package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/getViewSuffix.d.ts +1 -1
- package/components/DataGrid/helpers/shared/getViewSuffix/index.js +1 -0
- package/components/DataGrid/hooks/index.d.ts +8 -6
- package/components/DataGrid/hooks/shared/useDataGrid/index.d.ts +1 -0
- package/components/DataGrid/hooks/shared/useDataGrid/index.js +1 -0
- package/components/DataGrid/hooks/shared/useDataGrid/useDataGrid.d.ts +9 -0
- package/components/DataGrid/hooks/{useDataGrid.js → shared/useDataGrid/useDataGrid.js} +1 -1
- package/components/DataGrid/hooks/shared/useFilters/index.d.ts +1 -0
- package/components/DataGrid/hooks/shared/useFilters/index.js +1 -0
- package/components/DataGrid/hooks/shared/useFilters/useFilters.d.ts +5 -0
- package/components/DataGrid/hooks/{useFilters.js → shared/useFilters/useFilters.js} +1 -1
- package/components/DataGrid/hooks/useChangeColumnsConfig/types.d.ts +14 -0
- package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.d.ts +1 -1
- package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.js +2 -2
- package/components/DataGrid/hooks/useChangeColumnsOrder/types.d.ts +11 -0
- package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +1 -1
- package/components/DataGrid/hooks/useColumnsWidth/types.d.ts +16 -0
- package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.d.ts +1 -1
- package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.js +1 -1
- package/components/DataGrid/hooks/useRowHeight/types.d.ts +16 -0
- package/components/DataGrid/hooks/useRowHeight/useRowHeight.d.ts +1 -18
- package/components/DataGrid/hooks/useRowHeight/useRowHeight.js +1 -1
- package/components/DataGrid/hooks/useViewConfig/types.d.ts +9 -0
- package/components/DataGrid/hooks/useViewConfig/useViewConfig.d.ts +1 -1
- package/components/DataGrid/hooks/useViewMode/types.d.ts +22 -0
- package/components/DataGrid/hooks/useViewMode/useViewMode.d.ts +1 -9
- package/components/DataGrid/hooks/useViewMode/useViewMode.js +2 -2
- package/components/DataGrid/icons.d.ts +1 -0
- package/components/DataGrid/icons.js +2 -1
- package/components/DataGrid/index.d.ts +4 -4
- package/components/DataGrid/slots/DataGridEnum.d.ts +4 -1
- package/components/DataGrid/slots/DataGridEnum.js +3 -0
- package/components/DataGrid/slots/DataGridSlot.d.ts +3 -0
- package/components/DataGrid/slots/DataGridSlot.js +52 -37
- package/components/DataGrid/slots/index.d.ts +2 -0
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +21 -1
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +2 -2
- package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/ControlNavigate/index.js +1 -0
- package/components/DataGrid/subcomponents/ControlNavigate/subcomponents/RowsCount/RowsCount.d.ts +17 -0
- package/components/DataGrid/subcomponents/{HeaderActions/subcomponents/RowsCount/index.js → ControlNavigate/subcomponents/RowsCount/RowsCount.js} +2 -2
- package/components/DataGrid/subcomponents/ControlNavigate/subcomponents/RowsCount/index.d.ts +1 -0
- package/components/DataGrid/subcomponents/ControlNavigate/subcomponents/RowsCount/index.js +1 -0
- package/components/DataGrid/subcomponents/ControlNavigate/types.js +1 -0
- package/components/DataGrid/subcomponents/HeaderActions/HeaderActions.d.ts +13 -0
- package/components/DataGrid/subcomponents/HeaderActions/HeaderActions.js +55 -0
- package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +2 -5
- package/components/DataGrid/subcomponents/HeaderActions/index.js +1 -42
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/Density.d.ts +19 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/Density.js +74 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.d.ts +1 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +1 -74
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/Filter.d.ts +12 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/Filter.js +34 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/index.d.ts +1 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/index.js +1 -34
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.d.ts +19 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.js +70 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.d.ts +1 -7
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.js +1 -67
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.d.ts +16 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +125 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.d.ts +1 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.js +1 -125
- package/components/DataGrid/subcomponents/HeaderActions/types.js +1 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/formatter.d.ts +17 -3
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/useColumnEditLabel.d.ts +23 -1
- package/components/DataGrid/subcomponents/editors/TextEditor/TextEditor.d.ts +50 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/TextEditor.js +55 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +1 -20
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -55
- package/components/DataGrid/subcomponents/editors/index.d.ts +2 -0
- package/components/DataGrid/subcomponents/index.d.ts +3 -0
- package/components/DataGrid/types.d.ts +13 -1
- package/components/DataGrid/views/CardsView/CardsView.d.ts +6 -0
- package/components/DataGrid/{subcomponents/Cards/index.js → views/CardsView/CardsView.js} +13 -11
- package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/calculateCardHeight}/calculateCardHeight.d.ts +1 -1
- package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/calculateCardHeight}/calculateCardHeight.js +1 -1
- package/components/DataGrid/views/CardsView/helpers/calculateCardHeight/index.d.ts +1 -0
- package/components/DataGrid/views/CardsView/helpers/calculateCardHeight/index.js +1 -0
- package/components/DataGrid/views/CardsView/helpers/scrollToCardElement/index.d.ts +1 -0
- package/components/DataGrid/views/CardsView/helpers/scrollToCardElement/index.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useCardContent/index.d.ts +1 -0
- package/components/DataGrid/views/CardsView/hooks/useCardContent/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/hooks → views/CardsView/hooks/useCardContent}/useCardContent.d.ts +2 -2
- package/components/DataGrid/{subcomponents/Cards/hooks → views/CardsView/hooks/useCardContent}/useCardContent.js +48 -6
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/index.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/types.d.ts +19 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/types.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/useModalDetail.d.ts +6 -0
- package/components/DataGrid/{hooks/useModalCardDetail.js → views/CardsView/hooks/useModalDetail/useModalDetail.js} +17 -14
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/index.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/types.d.ts +11 -0
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/types.js +1 -0
- package/components/DataGrid/{hooks → views/CardsView/hooks/useProcessedColumns}/useProcessedColumns.d.ts +3 -3
- package/components/DataGrid/{hooks → views/CardsView/hooks/useProcessedColumns}/useProcessedColumns.js +2 -2
- package/components/DataGrid/views/CardsView/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardDetails/index.d.ts → views/CardsView/subcomponents/CardDetails/CardDetails.d.ts} +2 -2
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardDetails/index.js → views/CardsView/subcomponents/CardDetails/CardDetails.js} +57 -15
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/types.d.ts +38 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/CardRow.d.ts +11 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardRow/index.js → views/CardsView/subcomponents/CardRow/CardRow.js} +21 -25
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardHeader/index.d.ts → views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/CardHeader.d.ts} +1 -1
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardHeader/index.js → views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/CardHeader.js} +6 -6
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/types.d.ts +11 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/types.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/LazyLoadCard/index.d.ts → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/LazyLoadCard.d.ts} +1 -1
- package/components/DataGrid/{subcomponents/Cards/subcomponents/LazyLoadCard/index.js → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/LazyLoadCard.js} +1 -1
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/IntersectCard/index.d.ts → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/IntersectCard.d.ts} +1 -1
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/types.d.ts +35 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/types.d.ts +30 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/types.d.ts +72 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/Settings.d.ts +6 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/Settings/index.js → views/CardsView/subcomponents/Settings/Settings.js} +4 -10
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts +7 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards/index.js → views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js} +15 -15
- package/components/DataGrid/views/CardsView/subcomponents/Settings/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts +10 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.js → views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js} +19 -19
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards → views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig}/types.d.ts +2 -2
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/types.js +1 -0
- package/components/DataGrid/views/CardsView/types.d.ts +18 -0
- package/components/DataGrid/views/CardsView/types.js +1 -0
- package/components/DataGrid/{subcomponents/Table/index.d.ts → views/TableView/TableView.d.ts} +1 -1
- package/components/DataGrid/{subcomponents/Table/index.js → views/TableView/TableView.js} +9 -9
- package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/helpers/getDragHeaderRenderer}/getDragHeaderRenderer.js +1 -1
- package/components/DataGrid/views/TableView/helpers/getDragHeaderRenderer/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/helpers/getDragHeaderRenderer/index.js +1 -0
- package/components/DataGrid/views/TableView/helpers/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/helpers/index.js +1 -0
- package/components/DataGrid/views/TableView/hooks/useFocusRef/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/hooks/useFocusRef/index.js +1 -0
- package/components/DataGrid/views/TableView/hooks/useFocusRef/useFocusRef.d.ts +20 -0
- package/components/DataGrid/views/TableView/hooks/useHeaderMenuActions/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/hooks/useHeaderMenuActions/index.js +1 -0
- package/components/DataGrid/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.d.ts +27 -0
- package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useHeaderMenuActions}/useHeaderMenuActions.js +3 -3
- package/components/DataGrid/views/TableView/hooks/useSortColumnsRows/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/hooks/useSortColumnsRows/index.js +1 -0
- package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useSortColumnsRows}/useSortColumnsRows.js +8 -10
- package/components/DataGrid/views/TableView/subcomponents/ActionsColumn/ActionsColumn.d.ts +14 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/ActionsColumn}/ActionsColumn.js +4 -8
- package/components/DataGrid/views/TableView/subcomponents/ActionsColumn/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/ActionsColumn/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/CheckboxFormatter.d.ts +15 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/CheckboxFormatter}/CheckboxFormatter.js +2 -1
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/CustomIcons.d.ts +105 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/CustomIcons.js +50 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/DraggableHeaderRenderer.d.ts +24 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/DraggableHeaderRenderer}/DraggableHeaderRenderer.js +14 -8
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/types.d.ts +14 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/HeaderRenderClick/HeaderRenderClick.d.ts +26 -0
- package/components/DataGrid/{subcomponents/Table → views/TableView}/subcomponents/HeaderRenderClick/HeaderRenderClick.js +2 -2
- package/components/DataGrid/{subcomponents/Table → views/TableView}/subcomponents/HeaderRenderClick/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/HeaderRenderClick/index.js +1 -0
- package/components/DataGrid/{subcomponents/Table → views/TableView}/subcomponents/HeaderRenderClick/types.d.ts +60 -22
- package/components/DataGrid/views/TableView/subcomponents/HeaderRenderClick/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/RadioSelectColumn.d.ts +65 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/RadioSelectColumn}/RadioSelectColumn.js +3 -3
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.d.ts +22 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.js +14 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/index.js +1 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/SelectColumn}/SelectColumn.js +4 -4
- package/components/DataGrid/views/TableView/subcomponents/SelectColumn/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/SelectColumn/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/Settings.d.ts +6 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/Settings.js +29 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts +7 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.js → views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js} +9 -9
- package/components/DataGrid/views/TableView/subcomponents/Settings/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts +10 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +309 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/types.d.ts +4 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/types.js +1 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents/SkeletonFormatter/index.js → views/TableView/subcomponents/SkeletonFormatter/SkeletonFormatter.js} +1 -1
- package/components/DataGrid/views/TableView/subcomponents/SkeletonFormatter/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/SkeletonFormatter/index.js +1 -0
- package/components/DataGrid/{subcomponents/CheckboxCellAdapter/index.js → views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.js} +4 -4
- package/components/DataGrid/views/adapters/CheckboxCellAdapter/index.d.ts +2 -0
- package/components/DataGrid/views/adapters/CheckboxCellAdapter/index.js +1 -0
- package/components/DataGrid/views/adapters/CheckboxCellAdapter/types.js +1 -0
- package/components/DataGrid/{subcomponents/RenderContent/index.d.ts → views/adapters/RenderContent/RenderContent.d.ts} +1 -1
- package/components/DataGrid/views/adapters/RenderContent/RenderContent.js +11 -0
- package/components/DataGrid/views/adapters/RenderContent/index.d.ts +1 -0
- package/components/DataGrid/views/adapters/RenderContent/index.js +1 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/ImageText/ImageText.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/MenuActions/MenuActions.js +1 -1
- package/components/MenuActions/dictionary.js +2 -2
- package/components/NumberInput/NumberInput.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/ObjectLogs/dictionary.js +1 -1
- package/components/ObjectLogs/hooks/useDetailFormatter.d.ts +1 -1
- package/components/ObjectLogs/hooks/useObjectLogsColumns.js +2 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +2 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +2 -2
- package/components/PDFViewer/PDFViewer.js +1 -1
- package/components/PrintingSystem/PrintingSystem.js +1 -1
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/WindowBase/WindowBase.js +1 -1
- package/components/WindowConfirm/WindowConfirm.js +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +1 -1
- package/components/commercial/TopBar/TopBar.js +1 -1
- package/components/commercial/TopBar/component/ConteinItem/index.js +1 -1
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/ColorFormatter/ColorFormatter.js +1 -1
- package/components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js +1 -1
- package/components/formatters/DateFormatter/DateFormatter.js +1 -1
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +1 -1
- package/components/formatters/ImageFormatter/ImageFormatter.js +1 -1
- package/components/formatters/ImageFormatter/ImageFormatter.styles.js +1 -0
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PointsFormatter/PointsFormatter.js +1 -1
- package/components/formatters/PriceFormatter/PriceFormatter.js +1 -1
- package/components/formatters/UncertaintyFormatter/UncertaintyFormatter.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
- package/components/hook-form/RHFCheckableList/RHFCheckableList.js +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/ColorPickerField.js +1 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.js +1 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +1 -1
- package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Avatar/Avatar.js +1 -1
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.js +1 -1
- package/components/mui_extended/Badge/Badge.js +1 -1
- package/components/mui_extended/CircularProgress/CircularProgress.js +1 -1
- package/components/mui_extended/DateTimePicker/DateTimePicker.js +1 -1
- package/components/mui_extended/Dialog/Dialog.js +1 -1
- package/components/mui_extended/ImageButton/ImageButton.js +1 -1
- package/components/mui_extended/MenuDivider/MenuDivider.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Stack/Stack.js +1 -1
- package/components/mui_extended/TextField/TextField.js +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +1 -1
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +1 -1
- package/hooks/useDataGridPersistence/helpers.d.ts +1 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +1 -1
- package/index.js +86 -86
- package/not_recognized/index.js +25 -100
- package/package.json +1 -1
- package/test/getNameDataTestId.js +2 -2
- package/components/DataGrid/DataGrid.d.ts +0 -9
- package/components/DataGrid/formatters/ColumnIconFormatter/constants.d.ts +0 -4
- package/components/DataGrid/formatters/ColumnIconFormatter/tests/ColumnIconFormatter.test.d.ts +0 -1
- package/components/DataGrid/formatters/ColumnImageFormatter/tests/ColumnImageFormatter.test.d.ts +0 -1
- package/components/DataGrid/helpers/castMapColumnsWidthToRecord.js +0 -13
- package/components/DataGrid/hooks/useDataGrid.d.ts +0 -7
- package/components/DataGrid/hooks/useFilters.d.ts +0 -1
- package/components/DataGrid/hooks/useModalCardDetail.d.ts +0 -6
- package/components/DataGrid/subcomponents/Cards/index.d.ts +0 -5
- package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.d.ts +0 -11
- package/components/DataGrid/subcomponents/Cards/types.d.ts +0 -167
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/types.d.ts +0 -2
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/RowsCount/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/index.d.ts +0 -5
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -2
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +0 -283
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.d.ts +0 -2
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +0 -8
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards/index.d.ts +0 -7
- package/components/DataGrid/subcomponents/RenderContent/index.js +0 -11
- package/components/DataGrid/subcomponents/Table/hooks/useFocusRef.d.ts +0 -7
- package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +0 -6
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.d.ts +0 -4
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.d.ts +0 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.d.ts +0 -53
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +0 -25
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +0 -10
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.d.ts +0 -5
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.d.ts +0 -6
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.js +0 -12
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.d.ts +0 -64
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/types.d.ts +0 -2
- package/components/DataGrid/tests/ColumnsFormatters.test.d.ts +0 -1
- package/components/DataGrid/tests/DataGrid.test.d.ts +0 -1
- package/components/DataGrid/tests/HeaderRenderClick.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CardDetails.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CardHeader.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CardRow.test.d.ts +0 -1
- package/components/DataGrid/tests/components/Cards.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CheckboxCellAdapter.test.d.ts +0 -1
- package/components/DataGrid/tests/components/ColumnsConfigCards.test.d.ts +0 -1
- package/components/DataGrid/tests/components/IntersectCard.test.d.ts +0 -1
- package/components/DataGrid/tests/components/ViewMode.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useCardContent.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useModalDetail.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useModalSettingsCards.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useProcessedColumns.test.d.ts +0 -1
- package/components/DataGrid/tests/table/subcomponents/RadioFormatter.test.d.ts +0 -1
- package/components/DataGrid/tests/table/subcomponents/RadioSelectColumn.test.d.ts +0 -1
- package/components/DataGrid/tests/useHeaderMenuActions.test.d.ts +0 -1
- package/components/DataGrid/tests/useSortColumnsRows.test.d.ts +0 -1
- package/components/DataGrid/types.helpers.d.ts +0 -55
- package/components/DataGrid/types.hooks.d.ts +0 -81
- package/components/DataGrid/utils/getDataGridRowsFromSet.d.ts +0 -4
- /package/components/DataGrid/{helpers/getAllViewModes → components/DataGrid}/index.js +0 -0
- /package/components/DataGrid/{helpers/getColumnsWidth/index.js → contexts/DataGridContext/types.js} +0 -0
- /package/components/DataGrid/{helpers/getIndexRowHeightVariant/index.js → contexts/FilterContext/types.js} +0 -0
- /package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/getColumnsWidth.js +0 -0
- /package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/getColumnsWidth.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getInitialColumnsConfig → persistence/getColumnsWidth}/index.js +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/getViewMode.js +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/getViewMode.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/index.js +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSpecificConfig → persistence/loadViewConfig}/index.js +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/loadViewConfig.js +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/loadViewConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → persistence/saveColumnsWidth}/index.js +0 -0
- /package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/saveColumnsWidth.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/saveViewConfig}/index.js +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/saveViewConfig.js +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/saveViewConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveViewMode}/index.js +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/saveViewMode.js +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/saveViewMode.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → shared/castMapColumnsWidthToRecord}/index.js +0 -0
- /package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/getAllViewModes.js +0 -0
- /package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/getAllViewModes.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → shared/getAllViewModes}/index.js +0 -0
- /package/components/DataGrid/helpers/{getColumnKey.js → shared/getColumnKey/getColumnKey.js} +0 -0
- /package/components/DataGrid/{subcomponents/Table/subcomponents/HeaderRenderClick → helpers/shared/getColumnKey}/index.js +0 -0
- /package/components/DataGrid/{utils → helpers/shared/getDataGridRowsFromSet}/getDataGridRowsFromSet.js +0 -0
- /package/components/DataGrid/{types.helpers.js → helpers/shared/getDataGridRowsFromSet/index.js} +0 -0
- /package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/getIndexRowHeightVariant.js +0 -0
- /package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/getIndexRowHeightVariant.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/getInitialColumnsConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/getViewSpecificConfig.js +0 -0
- /package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/getViewSpecificConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/getViewSuffix.js +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/getViewSuffix.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/index.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/scrollToCardElement}/scrollToCardElement.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/scrollToCardElement}/scrollToCardElement.js +0 -0
- /package/components/DataGrid/{subcomponents/Cards/subcomponents/IntersectCard/index.js → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/IntersectCard.js} +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions/subcomponents → views/CardsView/subcomponents/Settings}/hooks/useModalSettings/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions → views/CardsView}/subcomponents/Settings/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/helpers/getDragHeaderRenderer}/getDragHeaderRenderer.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useFocusRef}/useFocusRef.js +0 -0
- /package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useSortColumnsRows}/useSortColumnsRows.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/SelectColumn}/SelectColumn.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards → views/TableView/subcomponents/Settings/hooks/useModalSettings}/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions → views/TableView}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/subcomponents/SkeletonFormatter/index.d.ts → views/TableView/subcomponents/SkeletonFormatter/SkeletonFormatter.d.ts} +0 -0
- /package/components/DataGrid/{subcomponents/CheckboxCellAdapter/index.d.ts → views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.d.ts} +0 -0
- /package/components/DataGrid/{subcomponents → views/adapters}/CheckboxCellAdapter/types.d.ts +0 -0
|
@@ -1,55 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { P as InputTextEditorStyled } from "../../../slots/DataGridSlot.js";
|
|
3
|
-
function autoFocusAndSelect(input) {
|
|
4
|
-
input?.focus();
|
|
5
|
-
input?.select();
|
|
6
|
-
}
|
|
7
|
-
function TextEditor({
|
|
8
|
-
row,
|
|
9
|
-
column,
|
|
10
|
-
onRowChange,
|
|
11
|
-
onClose
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
InputTextEditorStyled,
|
|
15
|
-
{
|
|
16
|
-
ref: autoFocusAndSelect,
|
|
17
|
-
value: row[column.key],
|
|
18
|
-
onChange: (event) => onRowChange({ ...row, [column.key]: event.target.value }),
|
|
19
|
-
onBlur: () => onClose(true)
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
function NumberEditor({
|
|
24
|
-
row,
|
|
25
|
-
column,
|
|
26
|
-
onRowChange,
|
|
27
|
-
onClose
|
|
28
|
-
}) {
|
|
29
|
-
const handleKeyDown = (event) => {
|
|
30
|
-
if (event.key === "ArrowUp" || event.key === "ArrowDown") {
|
|
31
|
-
onClose(true);
|
|
32
|
-
}
|
|
33
|
-
if (event.key === "Enter") {
|
|
34
|
-
onClose(true);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
return /* @__PURE__ */ jsx(
|
|
38
|
-
InputTextEditorStyled,
|
|
39
|
-
{
|
|
40
|
-
ref: autoFocusAndSelect,
|
|
41
|
-
type: "number",
|
|
42
|
-
value: row[column.key],
|
|
43
|
-
onKeyDown: handleKeyDown,
|
|
44
|
-
onChange: (event) => onRowChange({
|
|
45
|
-
...row,
|
|
46
|
-
[column.key]: event.target.value !== "" ? Number(event.target.value) : ""
|
|
47
|
-
}),
|
|
48
|
-
onBlur: () => onClose(true)
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
NumberEditor as N,
|
|
54
|
-
TextEditor as T
|
|
55
|
-
};
|
|
1
|
+
|
|
@@ -8,7 +8,7 @@ import { DATAGRID_PREFIX_NAME } from './constants';
|
|
|
8
8
|
import { IGridConfigExtended, ViewMode } from './contexts/DataGridContext/types';
|
|
9
9
|
import { Sizes } from '@m4l/styles';
|
|
10
10
|
import { PagerProps } from '../Pager';
|
|
11
|
-
import { SettingsProps } from './
|
|
11
|
+
import { SettingsProps } from './views/TableView/subcomponents/Settings/types';
|
|
12
12
|
import { ReactNode } from 'react';
|
|
13
13
|
export type GridFormatterPropss<T, SR> = RenderCellProps<T, SR>;
|
|
14
14
|
export type { ColumnUncertaintyFormatter, ColumnPointsFormatter, ColumnNestedValueFormatter, } from './formatters';
|
|
@@ -228,6 +228,10 @@ export interface UseModalDetailProps<TRow> {
|
|
|
228
228
|
columns: readonly Column<TRow, any>[];
|
|
229
229
|
viewMode: ViewMode;
|
|
230
230
|
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, any>) => void>;
|
|
231
|
+
/**
|
|
232
|
+
* Array completo de todas las filas (necesario para reconstruir el array al editar en el modal)
|
|
233
|
+
*/
|
|
234
|
+
rows: readonly TRow[];
|
|
231
235
|
}
|
|
232
236
|
/**
|
|
233
237
|
* Configuración de una columna específica en vista "cards"
|
|
@@ -287,6 +291,14 @@ export interface CardContentProps<TRow> {
|
|
|
287
291
|
columns: readonly Column<TRow, any>[];
|
|
288
292
|
originalColumns: readonly Column<TRow, any>[];
|
|
289
293
|
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, any>) => void>;
|
|
294
|
+
/**
|
|
295
|
+
* Array completo de todas las filas (necesario para reconstruir el array al editar)
|
|
296
|
+
*/
|
|
297
|
+
rows: readonly TRow[];
|
|
298
|
+
/**
|
|
299
|
+
* Índice de la fila actual en el array de filas
|
|
300
|
+
*/
|
|
301
|
+
rowIndex: number;
|
|
290
302
|
}
|
|
291
303
|
/**
|
|
292
304
|
* Configuración de densidad para el DataGrid.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RowKey } from '../../types';
|
|
2
|
+
import { CardsViewProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente que muestra las filas del DataGrid en formato de tarjetas.
|
|
5
|
+
*/
|
|
6
|
+
export declare function CardsView<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: CardsViewProps<TRow, TSummaryRow, TKey>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useMemo, useEffect } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { c as calculateCardHeight } from "./helpers/calculateCardHeight.js";
|
|
7
|
-
import {
|
|
8
|
-
import { s as scrollToCardElement } from "./helpers/scrollToCardElement.js";
|
|
3
|
+
import { i as CardsContainerStyled } from "../../slots/DataGridSlot.js";
|
|
4
|
+
import { u as useProcessedColumns } from "./hooks/useProcessedColumns/useProcessedColumns.js";
|
|
5
|
+
import { u as useModalDetail } from "./hooks/useModalDetail/useModalDetail.js";
|
|
6
|
+
import { c as calculateCardHeight } from "./helpers/calculateCardHeight/calculateCardHeight.js";
|
|
7
|
+
import { s as scrollToCardElement } from "./helpers/scrollToCardElement/scrollToCardElement.js";
|
|
9
8
|
import { C as ContainerFlow } from "../../../ContainerFlow/ContainerFlow.js";
|
|
10
|
-
|
|
9
|
+
import { C as CardRow } from "./subcomponents/CardRow/CardRow.js";
|
|
10
|
+
function CardsView(props) {
|
|
11
11
|
const {
|
|
12
12
|
rows,
|
|
13
13
|
columns,
|
|
@@ -28,8 +28,8 @@ function Cards(props) {
|
|
|
28
28
|
});
|
|
29
29
|
const handleOpenDetail = useModalDetail({
|
|
30
30
|
columns: allProcessedColumns,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
onRowsChange,
|
|
32
|
+
rows
|
|
33
33
|
});
|
|
34
34
|
const cardHeight = useMemo(() => {
|
|
35
35
|
const imageHeight = processedColumns.reduce((totalHeight, col) => {
|
|
@@ -77,7 +77,7 @@ function Cards(props) {
|
|
|
77
77
|
if (processedColumns.length === 0) {
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
80
|
-
return /* @__PURE__ */ jsx(CardsContainerStyled, { "data-testid": "cards-container", ref: containerRef, children: /* @__PURE__ */ jsx(ContainerFlow, { variant: "grid-layout", minWidth: 280, children: rows.map((row) => {
|
|
80
|
+
return /* @__PURE__ */ jsx(CardsContainerStyled, { "data-testid": "cards-container", ref: containerRef, children: /* @__PURE__ */ jsx(ContainerFlow, { variant: "grid-layout", minWidth: 280, children: rows.map((row, rowIndex) => {
|
|
81
81
|
const rowKey = rowKeyGetter(row);
|
|
82
82
|
const isChecked = checkedRows?.has(rowKey) || false;
|
|
83
83
|
const showCheckbox = checkedRows !== void 0 && onCheckedRowsChange !== void 0;
|
|
@@ -85,6 +85,8 @@ function Cards(props) {
|
|
|
85
85
|
CardRow,
|
|
86
86
|
{
|
|
87
87
|
row,
|
|
88
|
+
rows,
|
|
89
|
+
rowIndex,
|
|
88
90
|
columns: processedColumns,
|
|
89
91
|
originalColumns: allProcessedColumns,
|
|
90
92
|
rowKeyGetter,
|
|
@@ -104,5 +106,5 @@ function Cards(props) {
|
|
|
104
106
|
}) }) });
|
|
105
107
|
}
|
|
106
108
|
export {
|
|
107
|
-
|
|
109
|
+
CardsView as C
|
|
108
110
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalculateCardHeightProps } from '
|
|
1
|
+
import { CalculateCardHeightProps } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Calcula la altura estimada de una card basándose en el número de columnas visibles.
|
|
4
4
|
* @param visibleColumnsCount - Número de columnas visibles en la card
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calculateCardHeight';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scrollToCardElement';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useCardContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CardContentProps } from '
|
|
1
|
+
import { CardContentProps } from '../../../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Hook que encapsula toda la lógica de renderizado del contenido de una Card
|
|
4
4
|
*/
|
|
5
|
-
export declare function useCardContent<TRow>({ row, columns, onRowsChange, }: CardContentProps<TRow>): {
|
|
5
|
+
export declare function useCardContent<TRow>({ row, rows, rowIndex, columns, onRowsChange, }: CardContentProps<TRow>): {
|
|
6
6
|
cardContent: import("react/jsx-runtime").JSX.Element[];
|
|
7
7
|
columnsCount: number;
|
|
8
8
|
};
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { j as ContainerLabelValueColumnStyled, k as ContentWrapperColumnStyled, L as LabelHeaderColumnStyled, E as EditorCellWrapperStyled, V as ValueColumnStyled, l as EditablePlaceholderStyled, m as IconButtonEditStyled } from "../../../../slots/DataGridSlot.js";
|
|
4
|
+
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
5
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
6
|
+
import { p as pathIcons } from "../../../../icons.js";
|
|
7
|
+
import { u as useComponentSize } from "../../../../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
5
9
|
function useCardContent({
|
|
6
10
|
row,
|
|
11
|
+
rows,
|
|
12
|
+
rowIndex,
|
|
7
13
|
columns,
|
|
8
14
|
onRowsChange
|
|
9
15
|
}) {
|
|
10
16
|
const { getConfigColumns, size } = useDataGrid();
|
|
17
|
+
const { getLabel } = useModuleDictionary();
|
|
18
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
19
|
+
const { currentSize } = useComponentSize(size);
|
|
11
20
|
const [editingColumnKey, setEditingColumnKey] = useState(null);
|
|
12
21
|
const columnsConfig = getConfigColumns("cards");
|
|
13
22
|
const cardContent = columns.map((column, index) => {
|
|
@@ -34,8 +43,11 @@ function useCardContent({
|
|
|
34
43
|
*/
|
|
35
44
|
onRowChange: (updatedRow) => {
|
|
36
45
|
if (onRowsChange) {
|
|
37
|
-
|
|
38
|
-
|
|
46
|
+
const updatedRows = rows.map(
|
|
47
|
+
(r, i) => i === rowIndex ? updatedRow : r
|
|
48
|
+
);
|
|
49
|
+
onRowsChange(updatedRows, {
|
|
50
|
+
indexes: [rowIndex],
|
|
39
51
|
column
|
|
40
52
|
});
|
|
41
53
|
}
|
|
@@ -55,8 +67,11 @@ function useCardContent({
|
|
|
55
67
|
*/
|
|
56
68
|
onRowChange: (updatedRow) => {
|
|
57
69
|
if (onRowsChange) {
|
|
58
|
-
|
|
59
|
-
|
|
70
|
+
const updatedRows = rows.map(
|
|
71
|
+
(r, i) => i === rowIndex ? updatedRow : r
|
|
72
|
+
);
|
|
73
|
+
onRowsChange(updatedRows, {
|
|
74
|
+
indexes: [rowIndex],
|
|
60
75
|
column
|
|
61
76
|
});
|
|
62
77
|
}
|
|
@@ -64,6 +79,33 @@ function useCardContent({
|
|
|
64
79
|
});
|
|
65
80
|
return /* @__PURE__ */ jsx(ValueColumnStyled, { variant: "body", color: "text.primary", children: cellContent });
|
|
66
81
|
}
|
|
82
|
+
const rawValue = row[column.key];
|
|
83
|
+
const isEmpty = rawValue === null || rawValue === void 0 || rawValue === "";
|
|
84
|
+
const isEditable = !!column.renderEditCell;
|
|
85
|
+
if (isEditable) {
|
|
86
|
+
return /* @__PURE__ */ jsxs(EditablePlaceholderStyled, { children: [
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
ValueColumnStyled,
|
|
89
|
+
{
|
|
90
|
+
variant: "body",
|
|
91
|
+
color: isEmpty ? "text.secondary" : "text.primary",
|
|
92
|
+
children: isEmpty ? getLabel(DICTIONARY.EDIT_PLACEHOLDER) : rawValue
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ jsx(
|
|
96
|
+
IconButtonEditStyled,
|
|
97
|
+
{
|
|
98
|
+
src: `${host_static_assets}/${environment_assets}/${pathIcons.edit}`,
|
|
99
|
+
onClick: () => {
|
|
100
|
+
setEditingColumnKey(column.key);
|
|
101
|
+
},
|
|
102
|
+
size: currentSize,
|
|
103
|
+
role: "button",
|
|
104
|
+
"aria-label": "Editar texto"
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
] });
|
|
108
|
+
}
|
|
67
109
|
return /* @__PURE__ */ jsx(ValueColumnStyled, { variant: "body", color: "text.primary", children: row[column.key] ?? "-" });
|
|
68
110
|
})()
|
|
69
111
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Column, RowsChangeData } from 'react-data-grid';
|
|
2
|
+
import { Maybe } from '@m4l/core';
|
|
3
|
+
/**
|
|
4
|
+
* Props para el hook useModalDetail
|
|
5
|
+
*/
|
|
6
|
+
export interface UseModalDetailProps<TRow> {
|
|
7
|
+
/**
|
|
8
|
+
* Columnas a mostrar en el modal de detalle
|
|
9
|
+
*/
|
|
10
|
+
columns: readonly Column<TRow, any>[];
|
|
11
|
+
/**
|
|
12
|
+
* Función para manejar cambios en las filas (para editores)
|
|
13
|
+
*/
|
|
14
|
+
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, any>) => void>;
|
|
15
|
+
/**
|
|
16
|
+
* Array completo de todas las filas (necesario para reconstruir el array al editar en el modal)
|
|
17
|
+
*/
|
|
18
|
+
rows: readonly TRow[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseModalDetailProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook que renderiza el modal de detalle para cualquier vista
|
|
4
|
+
* mostrando TODAS las columnas sin excepción
|
|
5
|
+
*/
|
|
6
|
+
export declare const useModalDetail: <TRow>({ columns, onRowsChange, rows, }: UseModalDetailProps<TRow>) => (row: TRow) => void;
|
|
@@ -2,19 +2,19 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
3
|
import { useIsMobile } from "@m4l/graphics";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
|
-
import { u as useModal } from "
|
|
6
|
-
import {
|
|
7
|
-
import { p as pathIcons } from "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { W as WindowBase } from "
|
|
13
|
-
import { A as ActionCancel } from "
|
|
5
|
+
import { u as useModal } from "../../../../../../hooks/useModal/index.js";
|
|
6
|
+
import { n as ContentModalSettingStyled, D as DataGridRootStyled } from "../../../../slots/DataGridSlot.js";
|
|
7
|
+
import { p as pathIcons } from "../../../../icons.js";
|
|
8
|
+
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
9
|
+
import { C as CardDetails } from "../../subcomponents/CardDetails/CardDetails.js";
|
|
10
|
+
import { A as ActionsContainer } from "../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
11
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
12
|
+
import { W as WindowBase } from "../../../../../WindowBase/WindowBase.js";
|
|
13
|
+
import { A as ActionCancel } from "../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
14
14
|
const useModalDetail = ({
|
|
15
15
|
columns,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
onRowsChange,
|
|
17
|
+
rows
|
|
18
18
|
}) => {
|
|
19
19
|
const { getConfigColumns, size } = useDataGrid();
|
|
20
20
|
const { openModal, closeModal } = useModal();
|
|
@@ -23,7 +23,8 @@ const useModalDetail = ({
|
|
|
23
23
|
const isMobile = useIsMobile();
|
|
24
24
|
const handleOpenDetail = useCallback(
|
|
25
25
|
(row) => {
|
|
26
|
-
const viewColumnsConfig = getConfigColumns(
|
|
26
|
+
const viewColumnsConfig = getConfigColumns("cards");
|
|
27
|
+
const rowIndex = rows.findIndex((r) => r === row);
|
|
27
28
|
openModal({
|
|
28
29
|
initialWidth: 500,
|
|
29
30
|
initialHeight: 680,
|
|
@@ -42,6 +43,8 @@ const useModalDetail = ({
|
|
|
42
43
|
CardDetails,
|
|
43
44
|
{
|
|
44
45
|
row,
|
|
46
|
+
rows,
|
|
47
|
+
rowIndex,
|
|
45
48
|
columns,
|
|
46
49
|
viewColumnsConfig,
|
|
47
50
|
onRowsChange,
|
|
@@ -56,6 +59,7 @@ const useModalDetail = ({
|
|
|
56
59
|
},
|
|
57
60
|
[
|
|
58
61
|
columns,
|
|
62
|
+
rows,
|
|
59
63
|
onRowsChange,
|
|
60
64
|
size,
|
|
61
65
|
getConfigColumns,
|
|
@@ -64,8 +68,7 @@ const useModalDetail = ({
|
|
|
64
68
|
getLabel,
|
|
65
69
|
host_static_assets,
|
|
66
70
|
environment_assets,
|
|
67
|
-
isMobile
|
|
68
|
-
viewMode
|
|
71
|
+
isMobile
|
|
69
72
|
]
|
|
70
73
|
);
|
|
71
74
|
return handleOpenDetail;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opciones para el hook useProcessedColumns
|
|
3
|
+
*/
|
|
4
|
+
export interface ProcessedColumnsOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Si es true, aplica el filtro de visibilidad según la configuración.
|
|
7
|
+
* Si es false, muestra todas las columnas (útil para el modal de detalle).
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
applyVisibilityFilter?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Column } from 'react-data-grid';
|
|
2
|
-
import { ProcessedColumnsOptions } from '
|
|
2
|
+
import { ProcessedColumnsOptions } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Hook que procesa columnas para cualquier vista que no sea Table.
|
|
5
5
|
* - Aplica configuración de visibilidad y orden (opcional)
|
|
@@ -38,8 +38,8 @@ export declare function useProcessedColumns<TRow, TSummaryRow>(columns: readonly
|
|
|
38
38
|
visible?: boolean;
|
|
39
39
|
hidden?: boolean;
|
|
40
40
|
fixed?: boolean;
|
|
41
|
-
type: import('
|
|
42
|
-
align?: import('
|
|
41
|
+
type: import('../../../../types').ColumnType;
|
|
42
|
+
align?: import('../../../../types').ColumnAlign;
|
|
43
43
|
isDraggable?: boolean;
|
|
44
44
|
withFilter?: boolean;
|
|
45
45
|
withinHeaderRenderer?: import('react').FunctionComponent<import('react-data-grid').RenderHeaderCellProps<TRow, TSummaryRow>> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { d as DATAGRID_SELECT_COLUMN_KEY, e as DATAGRID_ACTIONS_COLUMN_KEY } from "../../../../constants.js";
|
|
3
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
4
4
|
function useProcessedColumns(columns, options = {}) {
|
|
5
5
|
const { applyVisibilityFilter = true } = options;
|
|
6
6
|
const { getConfigColumns, viewMode } = useDataGrid();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CardDetailsProps } from '
|
|
1
|
+
import { CardDetailsProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Componente genérico que renderiza TODAS las columnas de una fila
|
|
4
4
|
* en formato detalle dentro del modal.
|
|
5
5
|
*
|
|
6
6
|
* A diferencia del componente Cards, este muestra TODAS las columnas
|
|
7
7
|
*/
|
|
8
|
-
export declare function CardDetails<TRow>({ row, columns, viewColumnsConfig, onRowsChange, size, }: CardDetailsProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function CardDetails<TRow>({ row, columns, viewColumnsConfig, onRowsChange, size, rows, rowIndex, }: CardDetailsProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { o as CardDetailContainerStyled, j as ContainerLabelValueColumnStyled, k as ContentWrapperColumnStyled, L as LabelHeaderColumnStyled, E as EditorCellWrapperStyled, V as ValueColumnStyled, l as EditablePlaceholderStyled, m as IconButtonEditStyled } from "../../../../slots/DataGridSlot.js";
|
|
4
|
+
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
5
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
6
|
+
import { p as pathIcons } from "../../../../icons.js";
|
|
7
|
+
import { u as useComponentSize } from "../../../../../../hooks/useComponentSize/useComponentSize.js";
|
|
4
8
|
function CardDetails({
|
|
5
9
|
row,
|
|
6
10
|
columns,
|
|
7
11
|
viewColumnsConfig,
|
|
8
12
|
onRowsChange,
|
|
9
|
-
size = "medium"
|
|
13
|
+
size = "medium",
|
|
14
|
+
rows,
|
|
15
|
+
rowIndex
|
|
10
16
|
}) {
|
|
11
17
|
const [editingColumnKey, setEditingColumnKey] = useState(null);
|
|
12
18
|
const [refreshCounter, setRefreshCounter] = useState(0);
|
|
19
|
+
const { getLabel } = useModuleDictionary();
|
|
20
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
21
|
+
const { currentSize } = useComponentSize(size);
|
|
22
|
+
const currentRow = rows[rowIndex] || row;
|
|
13
23
|
const handleForceRefresh = useCallback(() => {
|
|
14
24
|
setRefreshCounter((prev) => prev + 1);
|
|
15
25
|
}, []);
|
|
@@ -17,10 +27,8 @@ function CardDetails({
|
|
|
17
27
|
if (column.renderCell) {
|
|
18
28
|
return {
|
|
19
29
|
...column,
|
|
20
|
-
// Agregar onAfterChange al objeto de la columna
|
|
21
|
-
|
|
22
|
-
onAfterChange: handleForceRefresh
|
|
23
|
-
}
|
|
30
|
+
// Agregar onAfterChange al objeto de la columna
|
|
31
|
+
onAfterChange: handleForceRefresh
|
|
24
32
|
};
|
|
25
33
|
}
|
|
26
34
|
return column;
|
|
@@ -30,7 +38,8 @@ function CardDetails({
|
|
|
30
38
|
(config) => config.key === modifiedColumn.key
|
|
31
39
|
);
|
|
32
40
|
const originalColumn = columns[index];
|
|
33
|
-
const
|
|
41
|
+
const hasInteractiveFormatter = !!modifiedColumn.onAfterChange;
|
|
42
|
+
const columnKey = hasInteractiveFormatter ? `${originalColumn.key}-${refreshCounter}` : `${originalColumn.key}`;
|
|
34
43
|
const shouldShowTitle = configColumn?.showTitle !== false;
|
|
35
44
|
return /* @__PURE__ */ jsx(ContainerLabelValueColumnStyled, { children: /* @__PURE__ */ jsxs(
|
|
36
45
|
ContentWrapperColumnStyled,
|
|
@@ -48,15 +57,18 @@ function CardDetails({
|
|
|
48
57
|
if (modifiedColumn.renderEditCell && editingColumnKey === modifiedColumn.key) {
|
|
49
58
|
return /* @__PURE__ */ jsx(EditorCellWrapperStyled, { ownerState: { size }, children: modifiedColumn.renderEditCell({
|
|
50
59
|
column: originalColumn,
|
|
51
|
-
row,
|
|
60
|
+
row: currentRow,
|
|
52
61
|
rowIdx: index,
|
|
53
62
|
/**
|
|
54
63
|
* onRowChange es una función que se ejecuta cuando el usuario edita una celda.
|
|
55
64
|
*/
|
|
56
65
|
onRowChange: (updatedRow) => {
|
|
57
66
|
if (onRowsChange) {
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
const updatedRows = rows.map(
|
|
68
|
+
(r, i) => i === rowIndex ? updatedRow : r
|
|
69
|
+
);
|
|
70
|
+
onRowsChange(updatedRows, {
|
|
71
|
+
indexes: [rowIndex],
|
|
60
72
|
column: originalColumn
|
|
61
73
|
});
|
|
62
74
|
}
|
|
@@ -66,8 +78,8 @@ function CardDetails({
|
|
|
66
78
|
}
|
|
67
79
|
if (modifiedColumn.renderCell) {
|
|
68
80
|
const cellContent = modifiedColumn.renderCell({
|
|
69
|
-
column:
|
|
70
|
-
row,
|
|
81
|
+
column: modifiedColumn,
|
|
82
|
+
row: currentRow,
|
|
71
83
|
rowIdx: index,
|
|
72
84
|
isCellSelected: false,
|
|
73
85
|
tabIndex: -1,
|
|
@@ -76,8 +88,11 @@ function CardDetails({
|
|
|
76
88
|
*/
|
|
77
89
|
onRowChange: (updatedRow) => {
|
|
78
90
|
if (onRowsChange) {
|
|
79
|
-
|
|
80
|
-
|
|
91
|
+
const updatedRows = rows.map(
|
|
92
|
+
(r, i) => i === rowIndex ? updatedRow : r
|
|
93
|
+
);
|
|
94
|
+
onRowsChange(updatedRows, {
|
|
95
|
+
indexes: [rowIndex],
|
|
81
96
|
column: originalColumn
|
|
82
97
|
});
|
|
83
98
|
}
|
|
@@ -85,7 +100,34 @@ function CardDetails({
|
|
|
85
100
|
});
|
|
86
101
|
return /* @__PURE__ */ jsx(ValueColumnStyled, { variant: "body", color: "text.primary", children: cellContent });
|
|
87
102
|
}
|
|
88
|
-
|
|
103
|
+
const rawValue = currentRow[modifiedColumn.key];
|
|
104
|
+
const isEmpty = rawValue === null || rawValue === void 0 || rawValue === "";
|
|
105
|
+
const isEditable = !!modifiedColumn.renderEditCell;
|
|
106
|
+
if (isEditable) {
|
|
107
|
+
return /* @__PURE__ */ jsxs(EditablePlaceholderStyled, { children: [
|
|
108
|
+
/* @__PURE__ */ jsx(
|
|
109
|
+
ValueColumnStyled,
|
|
110
|
+
{
|
|
111
|
+
variant: "body",
|
|
112
|
+
color: isEmpty ? "text.secondary" : "text.primary",
|
|
113
|
+
children: isEmpty ? getLabel(DICTIONARY.EDIT_PLACEHOLDER) : rawValue
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ jsx(
|
|
117
|
+
IconButtonEditStyled,
|
|
118
|
+
{
|
|
119
|
+
src: `${host_static_assets}/${environment_assets}/${pathIcons.edit}`,
|
|
120
|
+
onClick: () => {
|
|
121
|
+
setEditingColumnKey(modifiedColumn.key);
|
|
122
|
+
},
|
|
123
|
+
size: currentSize,
|
|
124
|
+
role: "button",
|
|
125
|
+
"aria-label": "Editar texto"
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] });
|
|
129
|
+
}
|
|
130
|
+
return /* @__PURE__ */ jsx(ValueColumnStyled, { variant: "body", color: "text.primary", children: rawValue ?? "-" });
|
|
89
131
|
})()
|
|
90
132
|
]
|
|
91
133
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|