@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,34 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { u as useFilters } from "../../../../hooks/useFilters.js";
|
|
4
|
-
import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButton.js";
|
|
5
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
6
|
-
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
7
|
-
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
8
|
-
function Filter() {
|
|
9
|
-
const { activeFilters, setActiveFilters } = useFilters();
|
|
10
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
11
|
-
const { getLabel } = useModuleDictionary();
|
|
12
|
-
const { externalFilterSettings } = useDataGrid();
|
|
13
|
-
const toggleIcon = () => {
|
|
14
|
-
if (externalFilterSettings) {
|
|
15
|
-
externalFilterSettings.onChange?.({
|
|
16
|
-
action: "openPopoverMenuFields"
|
|
17
|
-
});
|
|
18
|
-
} else {
|
|
19
|
-
setActiveFilters(!activeFilters);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
IconButton,
|
|
24
|
-
{
|
|
25
|
-
tooltip: activeFilters ? getLabel(DICTIONARY.TOOLTIP_FILTER_HIDE) : getLabel(DICTIONARY.TOOLTIP_FILTER_SHOW),
|
|
26
|
-
onClick: toggleIcon,
|
|
27
|
-
"aria-label": "filter",
|
|
28
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.filter}`
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
Filter as F
|
|
34
|
-
};
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Column } from 'react-data-grid';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que renderiza el menú de acciones en dispositivos móviles.
|
|
4
|
+
*
|
|
5
|
+
* Consolida todas las acciones del DataGrid en un único menú desplegable
|
|
6
|
+
* para optimizar el espacio en pantallas pequeñas:
|
|
7
|
+
* - Opciones de densidad (compact, standard, confortable)
|
|
8
|
+
* - Toggle de filtros
|
|
9
|
+
* - Configuración de columnas (específica según viewMode)
|
|
10
|
+
* @param props.columns - Columnas del DataGrid para la configuración
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // Se usa internamente en HeaderActions cuando isMobile es true
|
|
14
|
+
* {isMobile && <MobileMenuActions columns={columns} />}
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const MobileMenuActions: (props: {
|
|
18
|
+
columns: readonly Column<any, any>[];
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
+
import { p as pathIcons } from "../../../../icons.js";
|
|
4
|
+
import { u as useModalSettings } from "../../../../views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
|
|
5
|
+
import { u as useModalSettings$1 } from "../../../../views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
|
|
6
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
7
|
+
import { u as useFilters } from "../../../../hooks/shared/useFilters/useFilters.js";
|
|
8
|
+
import { M as MenuActions } from "../../../../../MenuActions/MenuActions.js";
|
|
9
|
+
const MobileMenuActions = (props) => {
|
|
10
|
+
const { columns } = props;
|
|
11
|
+
const { getLabel } = useModuleDictionary();
|
|
12
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
|
+
const { currentRowHeightVariant, setRowHeightVariant, size, viewMode } = useDataGrid();
|
|
14
|
+
const { activeFilters, setActiveFilters } = useFilters();
|
|
15
|
+
const tableModalSettings = useModalSettings(size, columns);
|
|
16
|
+
const cardsModalSettings = useModalSettings$1(size, columns);
|
|
17
|
+
const modalSettings = viewMode === "cards" ? cardsModalSettings : tableModalSettings;
|
|
18
|
+
const toggleIcon = () => {
|
|
19
|
+
setActiveFilters(!activeFilters);
|
|
20
|
+
};
|
|
21
|
+
const menuActions = [
|
|
22
|
+
{
|
|
23
|
+
type: "menuItem",
|
|
24
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.compact}`,
|
|
25
|
+
onClick: () => setRowHeightVariant("compact"),
|
|
26
|
+
disabled: currentRowHeightVariant === "compact",
|
|
27
|
+
label: getLabel("data_grid.density_compact")
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "menuItem",
|
|
31
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.standard}`,
|
|
32
|
+
onClick: () => setRowHeightVariant("standard"),
|
|
33
|
+
disabled: currentRowHeightVariant === "standard",
|
|
34
|
+
label: getLabel("data_grid.density_standard")
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: "menuItem",
|
|
38
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.confortable}`,
|
|
39
|
+
onClick: () => setRowHeightVariant("confortable"),
|
|
40
|
+
disabled: currentRowHeightVariant === "confortable",
|
|
41
|
+
label: getLabel("data_grid.density_confortable")
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: "menuItem",
|
|
45
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.filter}`,
|
|
46
|
+
onClick: () => toggleIcon(),
|
|
47
|
+
label: activeFilters ? getLabel("data_grid.tooltip_filter_hide") : getLabel("data_grid.tooltip_filter_show")
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: "menuItem",
|
|
51
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`,
|
|
52
|
+
onClick: () => modalSettings(),
|
|
53
|
+
label: getLabel("data_grid.tooltip_settings")
|
|
54
|
+
}
|
|
55
|
+
];
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
MenuActions,
|
|
58
|
+
{
|
|
59
|
+
className: "mobile-menu-actions",
|
|
60
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.menu}`,
|
|
61
|
+
arrowType: "no-arrow",
|
|
62
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
63
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
64
|
+
menuActions
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
MobileMenuActions as M
|
|
70
|
+
};
|
package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Renderiza las acciones cuando el dispositivo es un móvil
|
|
4
|
-
*/
|
|
5
|
-
export declare const MobileMenuActions: (props: {
|
|
6
|
-
columns: readonly Column<any, any>[];
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { MobileMenuActions } from './MobileMenuActions';
|
package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.js
CHANGED
|
@@ -1,67 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
4
|
-
import { u as useFilters } from "../../../../hooks/useFilters.js";
|
|
5
|
-
import { u as useModalSettings } from "../hooks/useModalSettings/index.js";
|
|
6
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
7
|
-
import { M as MenuActions } from "../../../../../MenuActions/MenuActions.js";
|
|
8
|
-
const MobileMenuActions = (props) => {
|
|
9
|
-
const { columns } = props;
|
|
10
|
-
const { getLabel } = useModuleDictionary();
|
|
11
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
12
|
-
const { currentRowHeightVariant, setRowHeightVariant, size } = useDataGrid();
|
|
13
|
-
const { activeFilters, setActiveFilters } = useFilters();
|
|
14
|
-
const modalSettings = useModalSettings(size, columns);
|
|
15
|
-
const toggleIcon = () => {
|
|
16
|
-
setActiveFilters(!activeFilters);
|
|
17
|
-
};
|
|
18
|
-
const menuActions = [
|
|
19
|
-
{
|
|
20
|
-
type: "menuItem",
|
|
21
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.compact}`,
|
|
22
|
-
onClick: () => setRowHeightVariant("compact"),
|
|
23
|
-
disabled: currentRowHeightVariant === "compact",
|
|
24
|
-
label: getLabel("data_grid.density_compact")
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: "menuItem",
|
|
28
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.standard}`,
|
|
29
|
-
onClick: () => setRowHeightVariant("standard"),
|
|
30
|
-
disabled: currentRowHeightVariant === "standard",
|
|
31
|
-
label: getLabel("data_grid.density_standard")
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
type: "menuItem",
|
|
35
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.confortable}`,
|
|
36
|
-
onClick: () => setRowHeightVariant("confortable"),
|
|
37
|
-
disabled: currentRowHeightVariant === "confortable",
|
|
38
|
-
label: getLabel("data_grid.density_confortable")
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: "menuItem",
|
|
42
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.filter}`,
|
|
43
|
-
onClick: () => toggleIcon(),
|
|
44
|
-
label: activeFilters ? getLabel("data_grid.tooltip_filter_hide") : getLabel("data_grid.tooltip_filter_show")
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: "menuItem",
|
|
48
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`,
|
|
49
|
-
onClick: () => modalSettings(),
|
|
50
|
-
label: getLabel("data_grid.tooltip_settings")
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
return /* @__PURE__ */ jsx(
|
|
54
|
-
MenuActions,
|
|
55
|
-
{
|
|
56
|
-
className: "mobile-menu-actions",
|
|
57
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.menu}`,
|
|
58
|
-
arrowType: "no-arrow",
|
|
59
|
-
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
60
|
-
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
61
|
-
menuActions
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
MobileMenuActions as M
|
|
67
|
-
};
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente que permite cambiar entre los modos de vista del DataGrid.
|
|
3
|
+
*
|
|
4
|
+
* Muestra un popover con las opciones disponibles:
|
|
5
|
+
* - **table**: Vista de tabla tradicional con filas y columnas
|
|
6
|
+
* - **cards**: Vista de tarjetas para visualización más compacta
|
|
7
|
+
*
|
|
8
|
+
* El componente solo se renderiza cuando `cardsViewConfig` está definido,
|
|
9
|
+
* indicando que la vista de cards está habilitada.
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Se usa internamente en HeaderActions cuando cardsViewConfig existe
|
|
13
|
+
* {cardsViewConfig !== undefined && <ViewMode />}
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function ViewMode(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo, useCallback } from "react";
|
|
3
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButton.js";
|
|
5
|
+
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
6
|
+
import { p as pathIcons } from "../../../../icons.js";
|
|
7
|
+
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
8
|
+
import { g as ContainerToggleCardsStyled, h as CardToggleButtonStyled, T as TextToggleCardButtonStyled } from "../../../../slots/DataGridSlot.js";
|
|
9
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
10
|
+
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
11
|
+
function ViewMode() {
|
|
12
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
|
+
const { viewMode, onViewModeChange } = useDataGrid();
|
|
14
|
+
const { getLabel } = useModuleDictionary();
|
|
15
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
16
|
+
const ownerState = {
|
|
17
|
+
viewMode
|
|
18
|
+
};
|
|
19
|
+
const open = useMemo(() => Boolean(anchorEl), [anchorEl]);
|
|
20
|
+
const handleClick = useCallback(
|
|
21
|
+
(event) => {
|
|
22
|
+
setAnchorEl(event.currentTarget);
|
|
23
|
+
},
|
|
24
|
+
[]
|
|
25
|
+
);
|
|
26
|
+
const handleClose = useCallback(() => {
|
|
27
|
+
setAnchorEl(null);
|
|
28
|
+
}, []);
|
|
29
|
+
const handleViewModeChange = useCallback(
|
|
30
|
+
(newViewMode) => {
|
|
31
|
+
onViewModeChange?.(newViewMode);
|
|
32
|
+
handleClose();
|
|
33
|
+
},
|
|
34
|
+
[onViewModeChange, handleClose]
|
|
35
|
+
);
|
|
36
|
+
const renderIcon = useMemo(() => {
|
|
37
|
+
return viewMode === "table" ? pathIcons.viewTable : pathIcons.viewCards;
|
|
38
|
+
}, [viewMode]);
|
|
39
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
IconButton,
|
|
42
|
+
{
|
|
43
|
+
tooltip: getLabel(DICTIONARY.TOOLTIP_VIEW_MODE),
|
|
44
|
+
onClick: handleClick,
|
|
45
|
+
"aria-label": "view-mode",
|
|
46
|
+
icon: `${host_static_assets}/${environment_assets}/${renderIcon}`,
|
|
47
|
+
"data-testid": "view-mode-button"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
Popover,
|
|
52
|
+
{
|
|
53
|
+
open,
|
|
54
|
+
anchorEl,
|
|
55
|
+
onClose: handleClose,
|
|
56
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
57
|
+
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
58
|
+
slotProps: {
|
|
59
|
+
paper: {
|
|
60
|
+
sx: { mt: 0.6 }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
children: /* @__PURE__ */ jsxs(ContainerToggleCardsStyled, { children: [
|
|
64
|
+
/* @__PURE__ */ jsxs(
|
|
65
|
+
CardToggleButtonStyled,
|
|
66
|
+
{
|
|
67
|
+
ownerState: { ...ownerState, isActive: viewMode === "table" },
|
|
68
|
+
variant: "outlined",
|
|
69
|
+
role: "button",
|
|
70
|
+
onClick: () => handleViewModeChange("table"),
|
|
71
|
+
"data-testid": "toggle-button-table",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
Icon,
|
|
75
|
+
{
|
|
76
|
+
src: `${host_static_assets}/${environment_assets}/${pathIcons.viewTable}`,
|
|
77
|
+
color: viewMode === "table" ? "primary.enabled" : "text.disabled"
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
TextToggleCardButtonStyled,
|
|
82
|
+
{
|
|
83
|
+
ownerState: { ...ownerState, isActive: viewMode === "table" },
|
|
84
|
+
variant: "body",
|
|
85
|
+
children: getLabel(DICTIONARY.VIEW_MODE_TABLE)
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ jsxs(
|
|
92
|
+
CardToggleButtonStyled,
|
|
93
|
+
{
|
|
94
|
+
ownerState: { ...ownerState, isActive: viewMode === "cards" },
|
|
95
|
+
variant: "outlined",
|
|
96
|
+
role: "button",
|
|
97
|
+
onClick: () => handleViewModeChange("cards"),
|
|
98
|
+
"data-testid": "toggle-button-cards",
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ jsx(
|
|
101
|
+
Icon,
|
|
102
|
+
{
|
|
103
|
+
src: `${host_static_assets}/${environment_assets}/${pathIcons.viewCards}`,
|
|
104
|
+
color: viewMode === "cards" ? "primary.enabled" : "text.disabled"
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
108
|
+
TextToggleCardButtonStyled,
|
|
109
|
+
{
|
|
110
|
+
ownerState: { ...ownerState, isActive: viewMode === "cards" },
|
|
111
|
+
variant: "body",
|
|
112
|
+
children: getLabel(DICTIONARY.VIEW_MODE_CARDS)
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] })
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] });
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
ViewMode as V
|
|
125
|
+
};
|
|
@@ -1,125 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useState, useMemo, useCallback } from "react";
|
|
3
|
-
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
5
|
-
import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButton.js";
|
|
6
|
-
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
7
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
8
|
-
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
9
|
-
import { w as ContainerToggleCardsStyled, x as CardToggleButtonStyled, y as TextToggleCardButtonStyled } from "../../../../slots/DataGridSlot.js";
|
|
10
|
-
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
11
|
-
function ViewMode() {
|
|
12
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
|
-
const { viewMode, onViewModeChange } = useDataGrid();
|
|
14
|
-
const { getLabel } = useModuleDictionary();
|
|
15
|
-
const [anchorEl, setAnchorEl] = useState(null);
|
|
16
|
-
const ownerState = {
|
|
17
|
-
viewMode
|
|
18
|
-
};
|
|
19
|
-
const open = useMemo(() => Boolean(anchorEl), [anchorEl]);
|
|
20
|
-
const handleClick = useCallback(
|
|
21
|
-
(event) => {
|
|
22
|
-
setAnchorEl(event.currentTarget);
|
|
23
|
-
},
|
|
24
|
-
[]
|
|
25
|
-
);
|
|
26
|
-
const handleClose = useCallback(() => {
|
|
27
|
-
setAnchorEl(null);
|
|
28
|
-
}, []);
|
|
29
|
-
const handleViewModeChange = useCallback(
|
|
30
|
-
(newViewMode) => {
|
|
31
|
-
onViewModeChange?.(newViewMode);
|
|
32
|
-
handleClose();
|
|
33
|
-
},
|
|
34
|
-
[onViewModeChange, handleClose]
|
|
35
|
-
);
|
|
36
|
-
const renderIcon = useMemo(() => {
|
|
37
|
-
return viewMode === "table" ? pathIcons.viewTable : pathIcons.viewCards;
|
|
38
|
-
}, [viewMode]);
|
|
39
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
41
|
-
IconButton,
|
|
42
|
-
{
|
|
43
|
-
tooltip: getLabel(DICTIONARY.TOOLTIP_VIEW_MODE),
|
|
44
|
-
onClick: handleClick,
|
|
45
|
-
"aria-label": "view-mode",
|
|
46
|
-
icon: `${host_static_assets}/${environment_assets}/${renderIcon}`,
|
|
47
|
-
"data-testid": "view-mode-button"
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
51
|
-
Popover,
|
|
52
|
-
{
|
|
53
|
-
open,
|
|
54
|
-
anchorEl,
|
|
55
|
-
onClose: handleClose,
|
|
56
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
57
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
58
|
-
slotProps: {
|
|
59
|
-
paper: {
|
|
60
|
-
sx: { mt: 0.6 }
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
children: /* @__PURE__ */ jsxs(ContainerToggleCardsStyled, { children: [
|
|
64
|
-
/* @__PURE__ */ jsxs(
|
|
65
|
-
CardToggleButtonStyled,
|
|
66
|
-
{
|
|
67
|
-
ownerState: { ...ownerState, isActive: viewMode === "table" },
|
|
68
|
-
variant: "outlined",
|
|
69
|
-
role: "button",
|
|
70
|
-
onClick: () => handleViewModeChange("table"),
|
|
71
|
-
"data-testid": "toggle-button-table",
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ jsx(
|
|
74
|
-
Icon,
|
|
75
|
-
{
|
|
76
|
-
src: `${host_static_assets}/${environment_assets}/${pathIcons.viewTable}`,
|
|
77
|
-
color: viewMode === "table" ? "primary.enabled" : "text.disabled"
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
TextToggleCardButtonStyled,
|
|
82
|
-
{
|
|
83
|
-
ownerState: { ...ownerState, isActive: viewMode === "table" },
|
|
84
|
-
variant: "body",
|
|
85
|
-
children: getLabel(DICTIONARY.VIEW_MODE_TABLE)
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
/* @__PURE__ */ jsxs(
|
|
92
|
-
CardToggleButtonStyled,
|
|
93
|
-
{
|
|
94
|
-
ownerState: { ...ownerState, isActive: viewMode === "cards" },
|
|
95
|
-
variant: "outlined",
|
|
96
|
-
role: "button",
|
|
97
|
-
onClick: () => handleViewModeChange("cards"),
|
|
98
|
-
"data-testid": "toggle-button-cards",
|
|
99
|
-
children: [
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
101
|
-
Icon,
|
|
102
|
-
{
|
|
103
|
-
src: `${host_static_assets}/${environment_assets}/${pathIcons.viewCards}`,
|
|
104
|
-
color: viewMode === "cards" ? "primary.enabled" : "text.disabled"
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
/* @__PURE__ */ jsx(
|
|
108
|
-
TextToggleCardButtonStyled,
|
|
109
|
-
{
|
|
110
|
-
ownerState: { ...ownerState, isActive: viewMode === "cards" },
|
|
111
|
-
variant: "body",
|
|
112
|
-
children: getLabel(DICTIONARY.VIEW_MODE_CARDS)
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
]
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
] })
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
] });
|
|
122
|
-
}
|
|
123
|
-
export {
|
|
124
|
-
ViewMode as V
|
|
125
|
-
};
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import { ColumnEditLabelFormatterProps } from './types';
|
|
2
2
|
import { RenderCellProps } from 'react-data-grid';
|
|
3
3
|
/**
|
|
4
|
-
* Formatter para mostrar
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Formatter para mostrar una etiqueta editable en una columna del DataGrid.
|
|
5
|
+
*
|
|
6
|
+
* Renderiza un campo de texto editable que permite modificar el valor
|
|
7
|
+
* directamente en la celda de la tabla.
|
|
8
|
+
* @param props.fieldLabel - Campo del objeto row a mostrar/editar
|
|
9
|
+
* @param props.fieldWidth - Ancho del campo de edición
|
|
10
|
+
* @returns Función render para react-data-grid
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* const columns = [
|
|
14
|
+
* {
|
|
15
|
+
* key: 'label',
|
|
16
|
+
* name: 'Etiqueta',
|
|
17
|
+
* renderCell: ColumnEditLabelFormatter({ fieldLabel: 'label' })
|
|
18
|
+
* }
|
|
19
|
+
* ];
|
|
20
|
+
* ```
|
|
7
21
|
*/
|
|
8
22
|
export declare const ColumnEditLabelFormatter: <TRow>(props: ColumnEditLabelFormatterProps<TRow>) => (renderProps: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { ColumnEditLabelFormatterProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Hook que retorna el formatter, filter y customSort para columnas con etiquetas editables.
|
|
4
|
+
*
|
|
5
|
+
* Proporciona una configuración completa para columnas que necesitan:
|
|
6
|
+
* - Renderizado con EditLabelFormatter
|
|
7
|
+
* - Filtrado personalizado por el campo de etiqueta
|
|
8
|
+
* - Ordenamiento personalizado por el campo de etiqueta
|
|
9
|
+
* @param props.fieldLabel - Campo del objeto row a usar
|
|
10
|
+
* @param props.fieldWidth - Ancho del campo de edición
|
|
11
|
+
* @returns Objeto con formatter, customFilter y customSort
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const { formatter, customFilter, customSort } = useColumnEditLabel({
|
|
15
|
+
* fieldLabel: 'name',
|
|
16
|
+
* fieldWidth: 200
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* const columns = [{
|
|
20
|
+
* key: 'name',
|
|
21
|
+
* renderCell: formatter,
|
|
22
|
+
* customFilter,
|
|
23
|
+
* customSort
|
|
24
|
+
* }];
|
|
25
|
+
* ```
|
|
4
26
|
*/
|
|
5
27
|
export declare const useColumnEditLabel: <TRow>(props: ColumnEditLabelFormatterProps<TRow>) => {
|
|
6
28
|
formatter: (renderProps: import('react-data-grid').RenderCellProps<TRow, unknown>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RenderEditCellProps } from 'react-data-grid';
|
|
2
|
+
/**
|
|
3
|
+
* Editor para campos de texto en el DataGrid.
|
|
4
|
+
*
|
|
5
|
+
* Permite editar valores de texto inline con las siguientes características:
|
|
6
|
+
* - Auto-enfoque al abrir
|
|
7
|
+
* - Selección automática del texto existente
|
|
8
|
+
* - Cierra al perder el foco (onBlur)
|
|
9
|
+
* @param props.row - Fila actual del DataGrid
|
|
10
|
+
* @param props.column - Columna actual del DataGrid
|
|
11
|
+
* @param props.onRowChange - Función para actualizar la fila
|
|
12
|
+
* @param props.onClose - Función para cerrar el editor
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const columns = [
|
|
16
|
+
* {
|
|
17
|
+
* key: 'name',
|
|
18
|
+
* name: 'Nombre',
|
|
19
|
+
* renderEditCell: TextEditor
|
|
20
|
+
* }
|
|
21
|
+
* ];
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function TextEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: RenderEditCellProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
/**
|
|
26
|
+
* Editor para campos numéricos en el DataGrid.
|
|
27
|
+
*
|
|
28
|
+
* Permite editar valores numéricos inline con las siguientes características:
|
|
29
|
+
* - Auto-enfoque al abrir
|
|
30
|
+
* - Selección automática del texto existente
|
|
31
|
+
* - Navegación con flechas arriba/abajo cierra el editor
|
|
32
|
+
* - Enter cierra el editor guardando cambios
|
|
33
|
+
* - Convierte valores vacíos a string vacío
|
|
34
|
+
* @param props.row - Fila actual del DataGrid
|
|
35
|
+
* @param props.column - Columna actual del DataGrid
|
|
36
|
+
* @param props.onRowChange - Función para actualizar la fila
|
|
37
|
+
* @param props.onClose - Función para cerrar el editor
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* const columns = [
|
|
41
|
+
* {
|
|
42
|
+
* key: 'quantity',
|
|
43
|
+
* name: 'Cantidad',
|
|
44
|
+
* renderEditCell: NumberEditor
|
|
45
|
+
* }
|
|
46
|
+
* ];
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function NumberEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: RenderEditCellProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export default TextEditor;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { I 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,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Editor para campos de texto en el DataGrid.
|
|
4
|
-
* Permite editar valores de texto con navegación por teclado.
|
|
5
|
-
* @param row - Fila actual del DataGrid
|
|
6
|
-
* @param column - Columna actual del DataGrid
|
|
7
|
-
* @param onRowChange - Función para actualizar la fila
|
|
8
|
-
* @param onClose - Función para cerrar el editor
|
|
9
|
-
*/
|
|
10
|
-
export declare function TextEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: RenderEditCellProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
/**
|
|
12
|
-
* Editor para campos numéricos en el DataGrid.
|
|
13
|
-
* Permite editar valores numéricos con validación y navegación por teclado.
|
|
14
|
-
* @param row - Fila actual del DataGrid
|
|
15
|
-
* @param column - Columna actual del DataGrid
|
|
16
|
-
* @param onRowChange - Función para actualizar la fila
|
|
17
|
-
* @param onClose - Función para cerrar el editor
|
|
18
|
-
*/
|
|
19
|
-
export declare function NumberEditor<TRow, TSummaryRow>({ row, column, onRowChange, onClose, }: RenderEditCellProps<TRow, TSummaryRow>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export default TextEditor;
|
|
1
|
+
export { TextEditor, NumberEditor } from './TextEditor';
|