@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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Column, RowsChangeData } from 'react-data-grid';
|
|
2
|
+
import { Maybe } from '@m4l/core';
|
|
3
|
+
import { IViewConfig } from '../../../../contexts/DataGridContext/types';
|
|
4
|
+
import { Sizes } from '@m4l/styles';
|
|
5
|
+
/**
|
|
6
|
+
* Props para el componente CardDetails
|
|
7
|
+
*/
|
|
8
|
+
export interface CardDetailsProps<TRow> {
|
|
9
|
+
/**
|
|
10
|
+
* Fila que se mostrará en el detalle
|
|
11
|
+
*/
|
|
12
|
+
row: TRow;
|
|
13
|
+
/**
|
|
14
|
+
* Array completo de todas las filas (necesario para reconstruir el array al editar)
|
|
15
|
+
*/
|
|
16
|
+
rows: readonly TRow[];
|
|
17
|
+
/**
|
|
18
|
+
* Índice de la fila actual en el array de filas
|
|
19
|
+
*/
|
|
20
|
+
rowIndex: number;
|
|
21
|
+
/**
|
|
22
|
+
* Columnas que se mostrarán en el detalle
|
|
23
|
+
*/
|
|
24
|
+
columns: readonly Column<TRow, any>[];
|
|
25
|
+
/**
|
|
26
|
+
* Configuración de las columnas de la vista
|
|
27
|
+
*/
|
|
28
|
+
viewColumnsConfig: IViewConfig<any, any>[];
|
|
29
|
+
/**
|
|
30
|
+
* Función para manejar cambios en las filas (para editores)
|
|
31
|
+
*/
|
|
32
|
+
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, any>) => void>;
|
|
33
|
+
/**
|
|
34
|
+
* Tamaño del componente
|
|
35
|
+
* @default 'medium'
|
|
36
|
+
*/
|
|
37
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RowKey } from '../../../../types';
|
|
2
|
+
import { CardRowProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente que muestra una fila de tarjetas.
|
|
5
|
+
*/
|
|
6
|
+
declare function CardRowComponent<TRow, TKey extends RowKey = RowKey>({ row, rows, rowIndex, columns, originalColumns, rowKeyGetter, selectedRows, onSelectedRowsChange, onRowsChange, customRender, minHeight, isChecked, checkedRows, showCheckbox, onCheckedRowsChange, onOpenDetail, }: CardRowProps<TRow, TKey>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* Componente que muestra CardRow
|
|
9
|
+
*/
|
|
10
|
+
export declare const CardRow: typeof CardRowComponent;
|
|
11
|
+
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React, { useMemo } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { L as LazyLoadCard } from "../LazyLoadCard/index.js";
|
|
5
|
-
import { u as useCardContent } from "../../hooks/useCardContent.js";
|
|
6
|
-
import { C as CardHeader } from "../CardHeader/index.js";
|
|
3
|
+
import { p as CardContentWrapperStyled, q as CardContentStyled, r as CardStyled } from "../../../../slots/DataGridSlot.js";
|
|
7
4
|
import { deepEqual } from "fast-equals";
|
|
5
|
+
import { u as useCardContent } from "../../hooks/useCardContent/useCardContent.js";
|
|
6
|
+
import { C as CardHeader } from "./subcomponents/CardHeader/CardHeader.js";
|
|
7
|
+
import { L as LazyLoadCard } from "./subcomponents/LazyLoadCard/LazyLoadCard.js";
|
|
8
8
|
function CardRowComponent({
|
|
9
9
|
row,
|
|
10
|
+
rows,
|
|
11
|
+
rowIndex,
|
|
10
12
|
columns,
|
|
11
13
|
originalColumns,
|
|
12
14
|
rowKeyGetter,
|
|
@@ -24,6 +26,8 @@ function CardRowComponent({
|
|
|
24
26
|
const hasCustomRender = customRender !== void 0;
|
|
25
27
|
const { cardContent } = useCardContent({
|
|
26
28
|
row,
|
|
29
|
+
rows,
|
|
30
|
+
rowIndex,
|
|
27
31
|
columns,
|
|
28
32
|
onRowsChange
|
|
29
33
|
});
|
|
@@ -71,29 +75,21 @@ function CardRowComponent({
|
|
|
71
75
|
onSelectedRowsChange(mySet);
|
|
72
76
|
}
|
|
73
77
|
};
|
|
74
|
-
return /* @__PURE__ */ jsx(
|
|
75
|
-
|
|
78
|
+
return /* @__PURE__ */ jsx(LazyLoadCard, { threshold: 200, minHeight, rowKey: rowKeyGetter(row), children: /* @__PURE__ */ jsx(
|
|
79
|
+
CardStyled,
|
|
76
80
|
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
selected: selectedRows?.has(rowKeyGetter(row))
|
|
88
|
-
},
|
|
89
|
-
onClick: onCardClick,
|
|
90
|
-
"data-testid": "data-grid-card",
|
|
91
|
-
"data-row-key": rowKeyGetter(row),
|
|
92
|
-
children: content
|
|
93
|
-
}
|
|
94
|
-
)
|
|
81
|
+
variant: "outlined",
|
|
82
|
+
selected: selectedRows?.has(rowKeyGetter(row)),
|
|
83
|
+
ownerState: {
|
|
84
|
+
checked: isChecked,
|
|
85
|
+
selected: selectedRows?.has(rowKeyGetter(row))
|
|
86
|
+
},
|
|
87
|
+
onClick: onCardClick,
|
|
88
|
+
"data-testid": "data-grid-card",
|
|
89
|
+
"data-row-key": rowKeyGetter(row),
|
|
90
|
+
children: content
|
|
95
91
|
}
|
|
96
|
-
);
|
|
92
|
+
) });
|
|
97
93
|
}
|
|
98
94
|
const CardRow = React.memo(CardRowComponent, (prevProps, nextProps) => {
|
|
99
95
|
return deepEqual(prevProps, nextProps);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useCallback } from "react";
|
|
3
3
|
import { useEnvironment } from "@m4l/core";
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { M as MenuActions } from "
|
|
4
|
+
import { s as CardHeaderStyled, t as CardHeaderLeftStyled, u as CardHeaderRightStyled } from "../../../../../../slots/DataGridSlot.js";
|
|
5
|
+
import { p as pathIcons } from "../../../../../../icons.js";
|
|
6
|
+
import { C as CheckboxCellAdapter } from "../../../../../adapters/CheckboxCellAdapter/CheckboxCellAdapter.js";
|
|
7
|
+
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
8
|
+
import { u as useDataGrid } from "../../../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
9
|
+
import { M as MenuActions } from "../../../../../../../MenuActions/MenuActions.js";
|
|
10
10
|
function CardHeader({
|
|
11
11
|
row,
|
|
12
12
|
onOpenDetail,
|
package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props para el componente CardHeader
|
|
3
|
+
*/
|
|
4
|
+
export interface CardHeaderProps<TRow> {
|
|
5
|
+
row: TRow;
|
|
6
|
+
onOpenDetail: (row: TRow) => void;
|
|
7
|
+
isChecked?: boolean;
|
|
8
|
+
showCheckbox?: boolean;
|
|
9
|
+
checkedRows?: ReadonlySet<any>;
|
|
10
|
+
onCheckedRowsChange?: (rows: ReadonlySet<any>) => void;
|
|
11
|
+
}
|
package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { I as IntersectCard } from "
|
|
3
|
+
import { I as IntersectCard } from "./subcomponents/IntersectCard/IntersectCard.js";
|
|
4
4
|
const isIntersectionObserverAvailable = () => {
|
|
5
5
|
return typeof window !== "undefined" && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
|
6
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props para el componente IntersectCard
|
|
3
|
+
*/
|
|
4
|
+
export interface IntersectCardProps {
|
|
5
|
+
/**
|
|
6
|
+
* Función callback que se ejecuta cuando el elemento entra en el viewport.
|
|
7
|
+
* Recibe true cuando el elemento es visible.
|
|
8
|
+
* @param visible - Estado de visibilidad del elemento
|
|
9
|
+
*/
|
|
10
|
+
setIsVisible: (visible: boolean) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Distancia en píxeles desde el borde del viewport donde se activa la detección.
|
|
13
|
+
* Un valor de 100 significa que el elemento se considerará visible cuando esté
|
|
14
|
+
* a 100px o menos del área visible de la pantalla.
|
|
15
|
+
* @default 100
|
|
16
|
+
*/
|
|
17
|
+
threshold: number;
|
|
18
|
+
/**
|
|
19
|
+
* Altura mínima del placeholder en píxeles
|
|
20
|
+
* @default '120px'
|
|
21
|
+
*/
|
|
22
|
+
minHeight?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Clave de la fila
|
|
25
|
+
*/
|
|
26
|
+
rowKey?: string | number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Tipo extendido para el elemento div que incluye el método setIsVisible.
|
|
30
|
+
* Este método se adjunta dinámicamente al elemento DOM para que el Observer
|
|
31
|
+
* pueda comunicarse con el componente React.
|
|
32
|
+
*/
|
|
33
|
+
export type IntersectCardRef = HTMLDivElement & {
|
|
34
|
+
setIsVisible?: (visible: boolean) => void;
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props para el componente LazyLoadCard
|
|
4
|
+
*/
|
|
5
|
+
export interface LazyLoadCardProps {
|
|
6
|
+
/**
|
|
7
|
+
* Contenido a renderizar cuando la card sea visible
|
|
8
|
+
*/
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Habilita o deshabilita el IntersectionObserver.
|
|
12
|
+
* Si es false, el contenido se renderiza inmediatamente.
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
enableIntersectionObserver?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Distancia en píxeles desde el borde del viewport donde se activa la detección.
|
|
18
|
+
* @default 100
|
|
19
|
+
*/
|
|
20
|
+
threshold?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Altura mínima del placeholder en píxeles
|
|
23
|
+
* @default 120
|
|
24
|
+
*/
|
|
25
|
+
minHeight?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Clave de la fila
|
|
28
|
+
*/
|
|
29
|
+
rowKey?: string | number;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Column, RowsChangeData } from 'react-data-grid';
|
|
2
|
+
import { CardsViewConfig, RowKey } from '../../../../types';
|
|
3
|
+
import { Maybe } from '@m4l/core';
|
|
4
|
+
/**
|
|
5
|
+
* Props para el componente CardRow
|
|
6
|
+
*/
|
|
7
|
+
export interface CardRowProps<TRow, TKey extends RowKey = RowKey> {
|
|
8
|
+
/**
|
|
9
|
+
* Fila que se mostrará en la tarjeta
|
|
10
|
+
*/
|
|
11
|
+
row: TRow;
|
|
12
|
+
/**
|
|
13
|
+
* Array completo de todas las filas (necesario para reconstruir el array al editar)
|
|
14
|
+
*/
|
|
15
|
+
rows: readonly TRow[];
|
|
16
|
+
/**
|
|
17
|
+
* Índice de la fila actual en el array de filas
|
|
18
|
+
*/
|
|
19
|
+
rowIndex: number;
|
|
20
|
+
/**
|
|
21
|
+
* Columnas que se mostrarán en la tarjeta (procesadas, filtradas por visibilidad)
|
|
22
|
+
*/
|
|
23
|
+
columns: readonly Column<TRow, any>[];
|
|
24
|
+
/**
|
|
25
|
+
* Columnas originales sin filtrar (para el modal de detalle)
|
|
26
|
+
*/
|
|
27
|
+
originalColumns: readonly Column<TRow, any>[];
|
|
28
|
+
/**
|
|
29
|
+
* Función que devuelve la clave de la fila
|
|
30
|
+
*/
|
|
31
|
+
rowKeyGetter: (row: TRow) => TKey;
|
|
32
|
+
/**
|
|
33
|
+
* Filas seleccionadas actualmente
|
|
34
|
+
*/
|
|
35
|
+
selectedRows?: ReadonlySet<TKey>;
|
|
36
|
+
/**
|
|
37
|
+
* Función para manejar el cambio de filas seleccionadas
|
|
38
|
+
*/
|
|
39
|
+
onSelectedRowsChange?: (mapRowsSelected: ReadonlySet<TKey>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Función para manejar cambios en las filas (para editores)
|
|
42
|
+
*/
|
|
43
|
+
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, any>) => void>;
|
|
44
|
+
/**
|
|
45
|
+
* Indica si se debe renderizar el contenido personalizado de la tarjeta
|
|
46
|
+
*/
|
|
47
|
+
customRender?: CardsViewConfig<TRow>['customRender'];
|
|
48
|
+
/**
|
|
49
|
+
* Altura mínima de la tarjeta
|
|
50
|
+
*/
|
|
51
|
+
minHeight: number;
|
|
52
|
+
/**
|
|
53
|
+
* Indica si la fila está chequeada
|
|
54
|
+
*/
|
|
55
|
+
isChecked: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Indica si se debe mostrar el checkbox para checkedRows
|
|
58
|
+
*/
|
|
59
|
+
showCheckbox: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Filas chequeadas actualmente
|
|
62
|
+
*/
|
|
63
|
+
checkedRows?: ReadonlySet<TKey>;
|
|
64
|
+
/**
|
|
65
|
+
* Función para manejar el cambio de filas chequeadas
|
|
66
|
+
*/
|
|
67
|
+
onCheckedRowsChange?: (mapRowsChecked: ReadonlySet<TKey>) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Función para abrir el modal de detalle de la fila
|
|
70
|
+
*/
|
|
71
|
+
onOpenDetail: (row: TRow) => void;
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SettingsProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que renderiza el icono de configuración para CardsView.
|
|
4
|
+
* Abre el modal de configuración de columnas específico para la vista de cards.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Settings(props: SettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButton.js";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { u as useModalSettings } from "../hooks/useModalSettings/index.js";
|
|
5
4
|
import { p as pathIcons } from "../../../../icons.js";
|
|
6
|
-
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
7
|
-
import { u as
|
|
5
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
6
|
+
import { u as useModalSettings } from "./hooks/useModalSettings/useModalSettings.js";
|
|
8
7
|
function Settings(props) {
|
|
9
8
|
const { columns } = props;
|
|
10
9
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
11
|
-
const { size
|
|
10
|
+
const { size } = useDataGrid();
|
|
12
11
|
const modalSettings = useModalSettings(size, columns);
|
|
13
|
-
const modalSettingsCards = useModalSettingsCards(size, columns);
|
|
14
12
|
const { getLabel } = useModuleDictionary();
|
|
15
13
|
const handleClick = () => {
|
|
16
|
-
|
|
17
|
-
modalSettings();
|
|
18
|
-
} else {
|
|
19
|
-
modalSettingsCards();
|
|
20
|
-
}
|
|
14
|
+
modalSettings();
|
|
21
15
|
};
|
|
22
16
|
return /* @__PURE__ */ jsx(
|
|
23
17
|
IconButton,
|
package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GridProps } from '../../../../../../types';
|
|
2
|
+
import { Column } from 'react-data-grid';
|
|
3
|
+
/**
|
|
4
|
+
* Hook que renderiza el modal de configuración de las columnas
|
|
5
|
+
* de la vista de cards
|
|
6
|
+
*/
|
|
7
|
+
export declare const useModalSettings: (size: GridProps<unknown, unknown>["size"], columns: readonly Column<any, any>[]) => () => 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 { useRef, useCallback } from "react";
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { W as WindowBase } from "
|
|
12
|
-
import { A as ActionCancel } from "
|
|
13
|
-
import { A as ActionIntro } from "
|
|
14
|
-
const
|
|
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 { C as ColumnsConfig } from "../../subcomponents/ColumnsConfig/ColumnsConfig.js";
|
|
9
|
+
import { A as ActionsContainer } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
10
|
+
import { u as useDataGrid } from "../../../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
11
|
+
import { W as WindowBase } from "../../../../../../../WindowBase/WindowBase.js";
|
|
12
|
+
import { A as ActionCancel } from "../../../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
14
|
+
const useModalSettings = (size, columns) => {
|
|
15
15
|
const { openModal, closeModal } = useModal();
|
|
16
16
|
const { getConfigColumns, onChangeColumnsConfig, currentRowHeight, classes } = useDataGrid();
|
|
17
|
-
const
|
|
17
|
+
const columnsConfig = getConfigColumns("cards");
|
|
18
18
|
const { getLabel } = useModuleDictionary();
|
|
19
19
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
20
20
|
const isMobile = useIsMobile();
|
|
@@ -46,12 +46,12 @@ const useModalSettingsCards = (size, columns) => {
|
|
|
46
46
|
emergeType: "modal",
|
|
47
47
|
children: /* @__PURE__ */ jsxs(ContentModalSettingStyled, { classes: classes?.contentModalSetting, children: [
|
|
48
48
|
/* @__PURE__ */ jsx(DataGridRootStyled, { children: /* @__PURE__ */ jsx(
|
|
49
|
-
|
|
49
|
+
ColumnsConfig,
|
|
50
50
|
{
|
|
51
51
|
ref,
|
|
52
52
|
rowHeight: currentRowHeight,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
columnsConfig,
|
|
54
|
+
onChangeColumnsConfig: handleColumnsSetting,
|
|
55
55
|
onCloseSettings,
|
|
56
56
|
classes,
|
|
57
57
|
size,
|
|
@@ -70,5 +70,5 @@ const useModalSettingsCards = (size, columns) => {
|
|
|
70
70
|
return onClickSettings;
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
73
|
-
|
|
73
|
+
useModalSettings as u
|
|
74
74
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColumnAlign } from '../../../../../../types';
|
|
2
|
+
import { ColumnsConfigRef, ConfigProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* función encargada de definir la clase css de alineación
|
|
5
|
+
*/
|
|
6
|
+
export declare const getAlignClass: (align: ColumnAlign) => {
|
|
7
|
+
cellClass: string;
|
|
8
|
+
headerCellClass: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ColumnsConfig: import('react').ForwardRefExoticComponent<ConfigProps & import('react').RefAttributes<ColumnsConfigRef>>;
|
|
@@ -4,11 +4,11 @@ import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
|
4
4
|
import DataGrid from "react-data-grid";
|
|
5
5
|
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
6
6
|
import { p as pathIcons } from "../../../../../../icons.js";
|
|
7
|
-
import {
|
|
7
|
+
import { v as ColumnsConfigWrapperStyled, w as ColumnsConfigDataGridStyled, x as ColumnsConfigSelColumnsStyled, y as TableWrapperDataGridStyled, z as ColumnsConfigActiosStyled } from "../../../../../../slots/DataGridSlot.js";
|
|
8
8
|
import { D as DICTIONARY } from "../../../../../../dictionary.js";
|
|
9
9
|
import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function getRowsFromColumnsConfig(columnsConfig, columns) {
|
|
11
|
+
return columnsConfig.filter((cConfig) => !cConfig.hidden).map(
|
|
12
12
|
(cConfig) => ({
|
|
13
13
|
key: cConfig.key,
|
|
14
14
|
name: columns?.find((c) => c.key === cConfig.key)?.name ?? "",
|
|
@@ -27,13 +27,13 @@ const getAlignClass = (align) => {
|
|
|
27
27
|
headerCellClass: cellClass
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
const
|
|
30
|
+
const ColumnsConfig = forwardRef(
|
|
31
31
|
(props, ref) => {
|
|
32
32
|
const refdata_grid = useRef(null);
|
|
33
33
|
const {
|
|
34
34
|
onCloseSettings,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
columnsConfig,
|
|
36
|
+
onChangeColumnsConfig,
|
|
37
37
|
rowHeight,
|
|
38
38
|
classes,
|
|
39
39
|
size,
|
|
@@ -42,7 +42,7 @@ const ColumnsConfigCards = forwardRef(
|
|
|
42
42
|
const { getLabel } = useModuleDictionary();
|
|
43
43
|
const [isInit, setIsInit] = useState(true);
|
|
44
44
|
const [rows, setRows] = useState(
|
|
45
|
-
|
|
45
|
+
getRowsFromColumnsConfig(columnsConfig, columns)
|
|
46
46
|
);
|
|
47
47
|
const [selRows, setSelRows] = useState(
|
|
48
48
|
() => /* @__PURE__ */ new Set()
|
|
@@ -100,10 +100,10 @@ const ColumnsConfigCards = forwardRef(
|
|
|
100
100
|
};
|
|
101
101
|
useEffect(() => {
|
|
102
102
|
if (isInit === false) {
|
|
103
|
-
setRows(
|
|
103
|
+
setRows(getRowsFromColumnsConfig(columnsConfig, columns));
|
|
104
104
|
}
|
|
105
105
|
setIsInit(false);
|
|
106
|
-
}, [
|
|
106
|
+
}, [columnsConfig]);
|
|
107
107
|
const rowSelectedIndex = useMemo(() => {
|
|
108
108
|
let rowIndex = -1;
|
|
109
109
|
if (selRows.size !== 1) {
|
|
@@ -163,21 +163,21 @@ const ColumnsConfigCards = forwardRef(
|
|
|
163
163
|
if (rowIndexFinded > -1) {
|
|
164
164
|
return rowIndexFinded;
|
|
165
165
|
}
|
|
166
|
-
return
|
|
167
|
-
(
|
|
166
|
+
return columnsConfig.findIndex(
|
|
167
|
+
(columnConfig) => columnConfig.key === column.key
|
|
168
168
|
);
|
|
169
169
|
};
|
|
170
170
|
const handleIntro = () => {
|
|
171
|
-
const newColumnsConfig =
|
|
172
|
-
const newColumnConfig = { ...
|
|
173
|
-
if (!
|
|
174
|
-
const columnConfigRow = getColumnConfigByKey(
|
|
171
|
+
const newColumnsConfig = columnsConfig.map((columnConfig) => {
|
|
172
|
+
const newColumnConfig = { ...columnConfig };
|
|
173
|
+
if (!columnConfig.hidden) {
|
|
174
|
+
const columnConfigRow = getColumnConfigByKey(columnConfig.key);
|
|
175
175
|
if (columnConfigRow) {
|
|
176
176
|
newColumnConfig.visible = columnConfigRow.visible;
|
|
177
177
|
newColumnConfig.showTitle = columnConfigRow.showTitle;
|
|
178
178
|
}
|
|
179
179
|
const rowIndex = rows.findIndex(
|
|
180
|
-
(row) => row.key ===
|
|
180
|
+
(row) => row.key === columnConfig.key
|
|
181
181
|
);
|
|
182
182
|
if (rowIndex > -1) {
|
|
183
183
|
newColumnConfig.index = rowIndex;
|
|
@@ -185,7 +185,7 @@ const ColumnsConfigCards = forwardRef(
|
|
|
185
185
|
}
|
|
186
186
|
return newColumnConfig;
|
|
187
187
|
}).sort((a, b) => getRowIndex(a) - getRowIndex(b));
|
|
188
|
-
|
|
188
|
+
onChangeColumnsConfig(newColumnsConfig);
|
|
189
189
|
onCloseSettings();
|
|
190
190
|
};
|
|
191
191
|
const onInternalSelectedRowsChange = () => {
|
|
@@ -298,7 +298,7 @@ const ColumnsConfigCards = forwardRef(
|
|
|
298
298
|
] });
|
|
299
299
|
}
|
|
300
300
|
);
|
|
301
|
-
|
|
301
|
+
ColumnsConfig.displayName = "ColumnsConfig";
|
|
302
302
|
export {
|
|
303
|
-
|
|
303
|
+
ColumnsConfig as C
|
|
304
304
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -19,8 +19,8 @@ export type ColumnsConfigRef = {
|
|
|
19
19
|
export interface ConfigProps {
|
|
20
20
|
onCloseSettings: () => void;
|
|
21
21
|
columns: readonly Column<any, any>[];
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
columnsConfig: IViewConfig[];
|
|
23
|
+
onChangeColumnsConfig: (newColumnsConfig: IViewConfig[]) => void;
|
|
24
24
|
rowHeight: number;
|
|
25
25
|
classes: DataGridContextProps<unknown, unknown>['classes'];
|
|
26
26
|
size: GridProps<unknown, unknown>['size'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|