@m4l/components 9.4.6-JT16122025.beta.1 → 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 +37 -96
- 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 -367
- 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 +1 -1
- package/components/DataGrid/dictionary.js +1 -1
- 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/index.d.ts +4 -4
- package/components/DataGrid/slots/DataGridSlot.js +29 -29
- 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 +1 -1
- package/components/DataGrid/views/CardsView/CardsView.d.ts +6 -0
- package/components/DataGrid/{subcomponents/Cards/index.js → views/CardsView/CardsView.js} +8 -9
- 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 +1 -1
- package/components/DataGrid/{subcomponents/Cards/hooks → views/CardsView/hooks/useCardContent}/useCardContent.js +5 -5
- 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} +11 -13
- 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} +1 -1
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardDetails/index.js → views/CardsView/subcomponents/CardDetails/CardDetails.js} +1 -1
- 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/{subcomponents/Cards/subcomponents/CardRow/index.d.ts → views/CardsView/subcomponents/CardRow/CardRow.d.ts} +1 -1
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardRow/index.js → views/CardsView/subcomponents/CardRow/CardRow.js} +17 -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 +1 -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/{subcomponents/Table/subcomponents → views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons}/CustomIcons.js +1 -1
- 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 +1 -1
- 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/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/ColumnColorFormatter/tests/ColumnColorFormatter.test.d.ts +0 -1
- package/components/DataGrid/formatters/ColumnColorFormatter/tests/useColumnColor.test.d.ts +0 -1
- 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/formatters/ColumnTagsFormatter/tests/ColumnTagsFormatter.test.d.ts +0 -1
- package/components/DataGrid/formatters/ColumnTagsFormatter/tests/useColumnTags.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/types.d.ts +0 -183
- 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/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
|
@@ -240,7 +240,7 @@ export {
|
|
|
240
240
|
NameColumnStyled as F,
|
|
241
241
|
IconColumnStyled as G,
|
|
242
242
|
DraggableHeaderRootStyled as H,
|
|
243
|
-
|
|
243
|
+
InputTextEditorStyled as I,
|
|
244
244
|
ButtonHeaderActionsStyled as J,
|
|
245
245
|
DraggableWrapperInputBaseStyled as K,
|
|
246
246
|
LabelHeaderColumnStyled as L,
|
|
@@ -250,34 +250,34 @@ export {
|
|
|
250
250
|
MenuListStyled as P,
|
|
251
251
|
HeaderRenderClickStyled as Q,
|
|
252
252
|
RowsCountRootStyled as R,
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
CheckboxCellWrapperStyled as S,
|
|
254
|
+
TextToggleCardButtonStyled as T,
|
|
255
255
|
ValueColumnStyled as V,
|
|
256
256
|
WrapperSkeletonStyled as W,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
257
|
+
ControlNavigateStyled as a,
|
|
258
|
+
RowsCountLabelStyled as b,
|
|
259
|
+
RowsCountValueStyled as c,
|
|
260
|
+
ActionsConfigContainerStyled as d,
|
|
261
|
+
ContainerLeftActionsStyled as e,
|
|
262
|
+
ContainerRightActionsStyled as f,
|
|
263
|
+
ContainerToggleCardsStyled as g,
|
|
264
|
+
CardToggleButtonStyled as h,
|
|
265
|
+
CardsContainerStyled as i,
|
|
266
|
+
ContainerLabelValueColumnStyled as j,
|
|
267
|
+
ContentWrapperColumnStyled as k,
|
|
268
|
+
EditablePlaceholderStyled as l,
|
|
269
|
+
IconButtonEditStyled as m,
|
|
270
|
+
ContentModalSettingStyled as n,
|
|
271
|
+
CardDetailContainerStyled as o,
|
|
272
|
+
CardContentWrapperStyled as p,
|
|
273
|
+
CardContentStyled as q,
|
|
274
|
+
CardStyled as r,
|
|
275
|
+
CardHeaderStyled as s,
|
|
276
|
+
CardHeaderLeftStyled as t,
|
|
277
|
+
CardHeaderRightStyled as u,
|
|
278
|
+
ColumnsConfigWrapperStyled as v,
|
|
279
|
+
ColumnsConfigDataGridStyled as w,
|
|
280
|
+
ColumnsConfigSelColumnsStyled as x,
|
|
281
|
+
TableWrapperDataGridStyled as y,
|
|
282
|
+
ColumnsConfigActiosStyled as z
|
|
283
283
|
};
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import { ControlNavigateProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* Componente que renderiza el control de
|
|
3
|
+
* Componente que renderiza el control de navegación del DataGrid.
|
|
4
|
+
*
|
|
5
|
+
* Muestra opciones de navegación y conteo de filas:
|
|
6
|
+
* - **RowsCount**: Muestra el total de filas (solo cuando no hay pager y no es móvil)
|
|
7
|
+
* - **Pager**: Componente de paginación con navegación entre páginas
|
|
8
|
+
* @param props.withRowsCount - Si muestra el contador de filas (default: true)
|
|
9
|
+
* @param props.withPager - Si muestra el paginador (default: true)
|
|
10
|
+
* @param props.pagerOptions - Opciones de configuración del paginador
|
|
11
|
+
* @param props.size - Tamaño del componente
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ControlNavigate
|
|
15
|
+
* withPager
|
|
16
|
+
* pagerOptions={{
|
|
17
|
+
* totalRecords: 100,
|
|
18
|
+
* pageSize: 10,
|
|
19
|
+
* currentPage: 1,
|
|
20
|
+
* onPageChange: (page) => setPage(page)
|
|
21
|
+
* }}
|
|
22
|
+
* />
|
|
23
|
+
* ```
|
|
4
24
|
*/
|
|
5
25
|
export declare const ControlNavigate: (props: ControlNavigateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIsMobile } from "@m4l/graphics";
|
|
3
|
-
import {
|
|
4
|
-
import { R as RowsCount } from "../HeaderActions/subcomponents/RowsCount/index.js";
|
|
3
|
+
import { a as ControlNavigateStyled } from "../../slots/DataGridSlot.js";
|
|
5
4
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
5
|
+
import { R as RowsCount } from "./subcomponents/RowsCount/RowsCount.js";
|
|
6
6
|
import { P as Pager } from "../../../Pager/Pager.js";
|
|
7
7
|
const ControlNavigate = (props) => {
|
|
8
8
|
const {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { ControlNavigate } from './ControlNavigate';
|
|
2
|
-
export
|
|
2
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/components/DataGrid/subcomponents/ControlNavigate/subcomponents/RowsCount/RowsCount.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente que muestra el contador de filas del DataGrid.
|
|
3
|
+
*
|
|
4
|
+
* Muestra una etiqueta con el total de filas visibles en formato:
|
|
5
|
+
* "Filas: {count}"
|
|
6
|
+
*
|
|
7
|
+
* Características:
|
|
8
|
+
* - Muestra skeleton mientras se cargan los datos
|
|
9
|
+
* - Se adapta al tamaño configurado del DataGrid
|
|
10
|
+
* - Usa el diccionario para internacionalización
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // Se usa internamente en ControlNavigate
|
|
14
|
+
* {withRowsCount && !withPager && !isMobile && <RowsCount />}
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function RowsCount(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { R as RowsCountRootStyled, b as RowsCountLabelStyled, c as RowsCountValueStyled } from "../../../../slots/DataGridSlot.js";
|
|
5
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
6
6
|
function RowsCount() {
|
|
7
7
|
const { rowsCount, size } = useDataGrid();
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RowsCount } from './RowsCount';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HeaderActionsProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que renderiza las acciones del DataGrid.
|
|
4
|
+
*
|
|
5
|
+
* Incluye controles para:
|
|
6
|
+
* - Densidad de filas (compact, standard, confortable)
|
|
7
|
+
* - Filtros locales
|
|
8
|
+
* - Configuración de columnas (específica por vista)
|
|
9
|
+
* - Toggle de modo de vista (table/cards)
|
|
10
|
+
*
|
|
11
|
+
* En móviles, todas las acciones se consolidan en un menú desplegable.
|
|
12
|
+
*/
|
|
13
|
+
export declare function HeaderActions(props: HeaderActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useIsMobile } from "@m4l/graphics";
|
|
3
|
+
import { A as ActionsRootStyled, d as ActionsConfigContainerStyled, e as ContainerLeftActionsStyled, f as ContainerRightActionsStyled } from "../../slots/DataGridSlot.js";
|
|
4
|
+
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
5
|
+
import { M as MobileMenuActions } from "./subcomponents/MobileMenuActions/MobileMenuActions.js";
|
|
6
|
+
import { D as Density } from "./subcomponents/Density/Density.js";
|
|
7
|
+
import { F as Filter } from "./subcomponents/Filter/Filter.js";
|
|
8
|
+
import { V as ViewMode } from "./subcomponents/ViewMode/ViewMode.js";
|
|
9
|
+
import { S as Settings } from "../../views/CardsView/subcomponents/Settings/Settings.js";
|
|
10
|
+
import { S as Settings$1 } from "../../views/TableView/subcomponents/Settings/Settings.js";
|
|
11
|
+
import { u as useDataGrid } from "../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
12
|
+
function HeaderActions(props) {
|
|
13
|
+
const {
|
|
14
|
+
withSettings = true,
|
|
15
|
+
settingsProps,
|
|
16
|
+
withLocalFilters,
|
|
17
|
+
leftActions,
|
|
18
|
+
rightActions,
|
|
19
|
+
withPager,
|
|
20
|
+
size,
|
|
21
|
+
columns
|
|
22
|
+
} = props;
|
|
23
|
+
const isMobile = useIsMobile();
|
|
24
|
+
const { rowHeights, viewMode, cardsViewConfig } = useDataGrid();
|
|
25
|
+
const { currentSize } = useComponentSize(size);
|
|
26
|
+
const renderSettings = () => {
|
|
27
|
+
if (!withSettings) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
if (viewMode === "cards" && cardsViewConfig?.customRender) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
if (viewMode === "cards") {
|
|
34
|
+
return /* @__PURE__ */ jsx(Settings, { ...settingsProps, columns });
|
|
35
|
+
}
|
|
36
|
+
return /* @__PURE__ */ jsx(Settings$1, { ...settingsProps, columns });
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ jsx(ActionsRootStyled, { ownerState: { size: currentSize }, children: isMobile ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
39
|
+
leftActions,
|
|
40
|
+
/* @__PURE__ */ jsx(MobileMenuActions, { columns }),
|
|
41
|
+
rightActions
|
|
42
|
+
] }) : /* @__PURE__ */ jsxs(ActionsConfigContainerStyled, { ownerState: { withPager }, children: [
|
|
43
|
+
/* @__PURE__ */ jsxs(ContainerLeftActionsStyled, { children: [
|
|
44
|
+
leftActions,
|
|
45
|
+
typeof rowHeights !== "number" && viewMode !== "cards" && /* @__PURE__ */ jsx(Density, {}),
|
|
46
|
+
withLocalFilters && /* @__PURE__ */ jsx(Filter, {}),
|
|
47
|
+
renderSettings(),
|
|
48
|
+
cardsViewConfig !== void 0 && /* @__PURE__ */ jsx(ViewMode, {})
|
|
49
|
+
] }),
|
|
50
|
+
rightActions && /* @__PURE__ */ jsx(ContainerRightActionsStyled, { children: rightActions })
|
|
51
|
+
] }) });
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
HeaderActions as H
|
|
55
|
+
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Componente que renderiza las acciones del DataGrid
|
|
4
|
-
*/
|
|
5
|
-
export declare function HeaderActions(props: HeaderActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { HeaderActions } from './HeaderActions';
|
|
2
|
+
export * from './types';
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { F as Filter } from "./subcomponents/Filter/index.js";
|
|
3
|
-
import { S as Settings } from "./subcomponents/Settings/index.js";
|
|
4
|
-
import { D as Density } from "./subcomponents/Density/index.js";
|
|
5
|
-
import { V as ViewMode } from "./subcomponents/ViewMode/index.js";
|
|
6
|
-
import { u as useDataGrid } from "../../hooks/useDataGrid.js";
|
|
7
|
-
import { useIsMobile } from "@m4l/graphics";
|
|
8
|
-
import { M as MobileMenuActions } from "./subcomponents/MobileMenuActions/index.js";
|
|
9
|
-
import { A as ActionsRootStyled, o as ActionsConfigContainerStyled, p as ContainerLeftActionsStyled, q as ContainerRightActionsStyled } from "../../slots/DataGridSlot.js";
|
|
10
|
-
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
function HeaderActions(props) {
|
|
12
|
-
const {
|
|
13
|
-
withSettings = true,
|
|
14
|
-
settingsProps,
|
|
15
|
-
withLocalFilters,
|
|
16
|
-
leftActions,
|
|
17
|
-
rightActions,
|
|
18
|
-
withPager,
|
|
19
|
-
size,
|
|
20
|
-
columns
|
|
21
|
-
} = props;
|
|
22
|
-
const isMobile = useIsMobile();
|
|
23
|
-
const { rowHeights, viewMode, cardsViewConfig } = useDataGrid();
|
|
24
|
-
const { currentSize } = useComponentSize(size);
|
|
25
|
-
return /* @__PURE__ */ jsx(ActionsRootStyled, { ownerState: { size: currentSize }, children: isMobile ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
-
leftActions,
|
|
27
|
-
/* @__PURE__ */ jsx(MobileMenuActions, { columns }),
|
|
28
|
-
rightActions
|
|
29
|
-
] }) : /* @__PURE__ */ jsxs(ActionsConfigContainerStyled, { ownerState: { withPager }, children: [
|
|
30
|
-
/* @__PURE__ */ jsxs(ContainerLeftActionsStyled, { children: [
|
|
31
|
-
leftActions,
|
|
32
|
-
typeof rowHeights !== "number" && viewMode !== "cards" && /* @__PURE__ */ jsx(Density, {}),
|
|
33
|
-
withLocalFilters && /* @__PURE__ */ jsx(Filter, {}),
|
|
34
|
-
withSettings && !(viewMode === "cards" && cardsViewConfig?.customRender) && /* @__PURE__ */ jsx(Settings, { ...settingsProps, columns }),
|
|
35
|
-
cardsViewConfig !== void 0 && /* @__PURE__ */ jsx(ViewMode, {})
|
|
36
|
-
] }),
|
|
37
|
-
rightActions && /* @__PURE__ */ jsx(ContainerRightActionsStyled, { children: rightActions })
|
|
38
|
-
] }) });
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
HeaderActions as H
|
|
42
|
-
};
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente que permite cambiar la densidad (altura) de las filas del DataGrid.
|
|
3
|
+
*
|
|
4
|
+
* Muestra un menú desplegable con tres opciones de densidad:
|
|
5
|
+
* - **compact**: Filas compactas con menor altura
|
|
6
|
+
* - **standard**: Filas con altura estándar (default)
|
|
7
|
+
* - **confortable**: Filas con mayor altura para mejor legibilidad
|
|
8
|
+
*
|
|
9
|
+
* El componente solo se renderiza si `rowHeights` no es un número fijo,
|
|
10
|
+
* permitiendo al usuario personalizar la visualización de los datos.
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // Se usa internamente en HeaderActions
|
|
14
|
+
* <HeaderActions>
|
|
15
|
+
* <Density />
|
|
16
|
+
* </HeaderActions>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function Density(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { M as MenuActions } from "../../../../../MenuActions/MenuActions.js";
|
|
5
|
+
import { p as pathIcons } from "../../../../icons.js";
|
|
6
|
+
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
7
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
8
|
+
function Density() {
|
|
9
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
+
const { rowHeights, currentRowHeightVariant, setRowHeightVariant } = useDataGrid();
|
|
11
|
+
const { getLabel } = useModuleDictionary();
|
|
12
|
+
const menuActions = useMemo(() => {
|
|
13
|
+
if (typeof rowHeights === "number") {
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
type: "menuItem",
|
|
19
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.compact}`,
|
|
20
|
+
onClick: () => setRowHeightVariant("compact"),
|
|
21
|
+
disabled: currentRowHeightVariant === "compact",
|
|
22
|
+
label: getLabel(DICTIONARY.DENSITY_COMPACT)
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
type: "menuItem",
|
|
26
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.standard}`,
|
|
27
|
+
onClick: () => setRowHeightVariant("standard"),
|
|
28
|
+
disabled: currentRowHeightVariant === "standard",
|
|
29
|
+
label: getLabel(DICTIONARY.DENSITY_STANDARD)
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: "menuItem",
|
|
33
|
+
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.confortable}`,
|
|
34
|
+
onClick: () => setRowHeightVariant("confortable"),
|
|
35
|
+
disabled: currentRowHeightVariant === "confortable",
|
|
36
|
+
label: getLabel(DICTIONARY.DENSITY_CONFORTABLE)
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
}, [
|
|
40
|
+
rowHeights,
|
|
41
|
+
currentRowHeightVariant,
|
|
42
|
+
setRowHeightVariant,
|
|
43
|
+
host_static_assets,
|
|
44
|
+
environment_assets,
|
|
45
|
+
getLabel
|
|
46
|
+
]);
|
|
47
|
+
const currenViewIcon = useMemo(() => {
|
|
48
|
+
if (currentRowHeightVariant === "compact") {
|
|
49
|
+
return `${host_static_assets}/${environment_assets}/${pathIcons.compact}`;
|
|
50
|
+
}
|
|
51
|
+
if (currentRowHeightVariant === "standard") {
|
|
52
|
+
return `${host_static_assets}/${environment_assets}/${pathIcons.standard}`;
|
|
53
|
+
}
|
|
54
|
+
return `${host_static_assets}/${environment_assets}/${pathIcons.confortable}`;
|
|
55
|
+
}, [currentRowHeightVariant, host_static_assets, environment_assets]);
|
|
56
|
+
if (menuActions.length === 0) {
|
|
57
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
58
|
+
}
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
MenuActions,
|
|
61
|
+
{
|
|
62
|
+
arrowType: "right-top",
|
|
63
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
64
|
+
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
65
|
+
menuActions,
|
|
66
|
+
icon: currenViewIcon,
|
|
67
|
+
toolTip: getLabel(DICTIONARY.DENSITY_TOOLTIP),
|
|
68
|
+
paperProps: { style: { marginTop: "5px" } }
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
Density as D
|
|
74
|
+
};
|
|
@@ -1,74 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { M as MenuActions } from "../../../../../MenuActions/MenuActions.js";
|
|
5
|
-
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
6
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
7
|
-
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
8
|
-
function Density() {
|
|
9
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
-
const { rowHeights, currentRowHeightVariant, setRowHeightVariant } = useDataGrid();
|
|
11
|
-
const { getLabel } = useModuleDictionary();
|
|
12
|
-
const menuActions = useMemo(() => {
|
|
13
|
-
if (typeof rowHeights === "number") {
|
|
14
|
-
return [];
|
|
15
|
-
}
|
|
16
|
-
return [
|
|
17
|
-
{
|
|
18
|
-
type: "menuItem",
|
|
19
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.compact}`,
|
|
20
|
-
onClick: () => setRowHeightVariant("compact"),
|
|
21
|
-
disabled: currentRowHeightVariant === "compact",
|
|
22
|
-
label: getLabel(DICTIONARY.DENSITY_COMPACT)
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
type: "menuItem",
|
|
26
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.standard}`,
|
|
27
|
-
onClick: () => setRowHeightVariant("standard"),
|
|
28
|
-
disabled: currentRowHeightVariant === "standard",
|
|
29
|
-
label: getLabel(DICTIONARY.DENSITY_STANDARD)
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
type: "menuItem",
|
|
33
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.confortable}`,
|
|
34
|
-
onClick: () => setRowHeightVariant("confortable"),
|
|
35
|
-
disabled: currentRowHeightVariant === "confortable",
|
|
36
|
-
label: getLabel(DICTIONARY.DENSITY_CONFORTABLE)
|
|
37
|
-
}
|
|
38
|
-
];
|
|
39
|
-
}, [
|
|
40
|
-
rowHeights,
|
|
41
|
-
currentRowHeightVariant,
|
|
42
|
-
setRowHeightVariant,
|
|
43
|
-
host_static_assets,
|
|
44
|
-
environment_assets,
|
|
45
|
-
getLabel
|
|
46
|
-
]);
|
|
47
|
-
const currenViewIcon = useMemo(() => {
|
|
48
|
-
if (currentRowHeightVariant === "compact") {
|
|
49
|
-
return `${host_static_assets}/${environment_assets}/${pathIcons.compact}`;
|
|
50
|
-
}
|
|
51
|
-
if (currentRowHeightVariant === "standard") {
|
|
52
|
-
return `${host_static_assets}/${environment_assets}/${pathIcons.standard}`;
|
|
53
|
-
}
|
|
54
|
-
return `${host_static_assets}/${environment_assets}/${pathIcons.confortable}`;
|
|
55
|
-
}, [currentRowHeightVariant, host_static_assets, environment_assets]);
|
|
56
|
-
if (menuActions.length === 0) {
|
|
57
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
58
|
-
}
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
60
|
-
MenuActions,
|
|
61
|
-
{
|
|
62
|
-
arrowType: "right-top",
|
|
63
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
64
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
65
|
-
menuActions,
|
|
66
|
-
icon: currenViewIcon,
|
|
67
|
-
toolTip: getLabel(DICTIONARY.DENSITY_TOOLTIP),
|
|
68
|
-
paperProps: { style: { marginTop: "5px" } }
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
Density as D
|
|
74
|
-
};
|
|
1
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente que renderiza el botón de filtro en el DataGrid.
|
|
3
|
+
*
|
|
4
|
+
* Permite activar/desactivar los filtros locales de las columnas o,
|
|
5
|
+
* si existe `externalFilterSettings`, abre el popover de filtros externos.
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* // Se usa internamente en HeaderActions cuando withLocalFilters es true
|
|
9
|
+
* {withLocalFilters && <Filter />}
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare function Filter(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButton.js";
|
|
4
|
+
import { p as pathIcons } from "../../../../icons.js";
|
|
5
|
+
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
6
|
+
import { u as useFilters } from "../../../../hooks/shared/useFilters/useFilters.js";
|
|
7
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/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,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
|
+
};
|