@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,167 +0,0 @@
|
|
|
1
|
-
import { Column, RowsChangeData } from 'react-data-grid';
|
|
2
|
-
import { CardsViewConfig, RowKey } from '../../types';
|
|
3
|
-
import { Maybe } from '@m4l/core';
|
|
4
|
-
import { IViewConfig } from '../../contexts/DataGridContext/types';
|
|
5
|
-
import { Sizes } from '@m4l/styles';
|
|
6
|
-
/**
|
|
7
|
-
* Props para el componente IntersectCard
|
|
8
|
-
*/
|
|
9
|
-
export interface IntersectCardProps {
|
|
10
|
-
/**
|
|
11
|
-
* Función callback que se ejecuta cuando el elemento entra en el viewport.
|
|
12
|
-
* Recibe true cuando el elemento es visible.
|
|
13
|
-
* @param visible - Estado de visibilidad del elemento
|
|
14
|
-
*/
|
|
15
|
-
setIsVisible: (visible: boolean) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Distancia en píxeles desde el borde del viewport donde se activa la detección.
|
|
18
|
-
* Un valor de 100 significa que el elemento se considerará visible cuando esté
|
|
19
|
-
* a 100px o menos del área visible de la pantalla.
|
|
20
|
-
* @default 100
|
|
21
|
-
*/
|
|
22
|
-
threshold: number;
|
|
23
|
-
/**
|
|
24
|
-
* Altura mínima del placeholder en píxeles
|
|
25
|
-
* @default '120px'
|
|
26
|
-
*/
|
|
27
|
-
minHeight?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Clave de la fila
|
|
30
|
-
*/
|
|
31
|
-
rowKey?: string | number;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Tipo extendido para el elemento div que incluye el método setIsVisible.
|
|
35
|
-
* Este método se adjunta dinámicamente al elemento DOM para que el Observer
|
|
36
|
-
* pueda comunicarse con el componente React.
|
|
37
|
-
*/
|
|
38
|
-
export type IntersectCardRef = HTMLDivElement & {
|
|
39
|
-
setIsVisible?: (visible: boolean) => void;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Props para el componente LazyLoadCard
|
|
43
|
-
*/
|
|
44
|
-
export interface LazyLoadCardProps {
|
|
45
|
-
/**
|
|
46
|
-
* Contenido de la card que se renderizará una vez que sea visible.
|
|
47
|
-
* Típicamente será un componente Card con los datos de la fila.
|
|
48
|
-
*/
|
|
49
|
-
children: React.ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Habilita o deshabilita el lazy loading con IntersectionObserver.
|
|
52
|
-
* Si se deshabilita, la card se renderiza inmediatamente.
|
|
53
|
-
* @default true
|
|
54
|
-
*/
|
|
55
|
-
enableIntersectionObserver?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Distancia en píxeles desde el borde del viewport donde se activa la carga.
|
|
58
|
-
* Un valor más alto carga las cards antes de que sean visibles,
|
|
59
|
-
* mejorando la experiencia del usuario.
|
|
60
|
-
* @default 100
|
|
61
|
-
*/
|
|
62
|
-
threshold?: number;
|
|
63
|
-
/**
|
|
64
|
-
* Altura mínima del placeholder en píxeles
|
|
65
|
-
* @default 120
|
|
66
|
-
*/
|
|
67
|
-
minHeight?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Clave de la fila
|
|
70
|
-
*/
|
|
71
|
-
rowKey?: string | number;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Props para el componente CardRow
|
|
75
|
-
*/
|
|
76
|
-
export interface CardRowProps<TRow, TKey extends RowKey = RowKey> {
|
|
77
|
-
/**
|
|
78
|
-
* Fila que se mostrará en la tarjeta
|
|
79
|
-
*/
|
|
80
|
-
row: TRow;
|
|
81
|
-
/**
|
|
82
|
-
* Columnas que se mostrarán en la tarjeta (procesadas, filtradas por visibilidad)
|
|
83
|
-
*/
|
|
84
|
-
columns: readonly Column<TRow, any>[];
|
|
85
|
-
/**
|
|
86
|
-
* Columnas originales sin filtrar (para el modal de detalle)
|
|
87
|
-
*/
|
|
88
|
-
originalColumns: readonly Column<TRow, any>[];
|
|
89
|
-
/**
|
|
90
|
-
* Función que devuelve la clave de la fila
|
|
91
|
-
*/
|
|
92
|
-
rowKeyGetter: (row: TRow) => TKey;
|
|
93
|
-
/**
|
|
94
|
-
* Filas seleccionadas actualmente
|
|
95
|
-
*/
|
|
96
|
-
selectedRows?: ReadonlySet<TKey>;
|
|
97
|
-
/**
|
|
98
|
-
* Función para manejar el cambio de filas seleccionadas
|
|
99
|
-
*/
|
|
100
|
-
onSelectedRowsChange?: (mapRowsSelected: ReadonlySet<TKey>) => void;
|
|
101
|
-
/**
|
|
102
|
-
* Función para manejar cambios en las filas (para editores)
|
|
103
|
-
*/
|
|
104
|
-
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, any>) => void>;
|
|
105
|
-
/**
|
|
106
|
-
* Indica si se debe renderizar el contenido personalizado de la tarjeta
|
|
107
|
-
*/
|
|
108
|
-
customRender?: CardsViewConfig<TRow>['customRender'];
|
|
109
|
-
/**
|
|
110
|
-
* Altura mínima de la tarjeta
|
|
111
|
-
*/
|
|
112
|
-
minHeight: number;
|
|
113
|
-
/**
|
|
114
|
-
* Indica si la fila está chequeada
|
|
115
|
-
*/
|
|
116
|
-
isChecked: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Indica si se debe mostrar el checkbox para checkedRows
|
|
119
|
-
*/
|
|
120
|
-
showCheckbox: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Filas chequeadas actualmente
|
|
123
|
-
*/
|
|
124
|
-
checkedRows?: ReadonlySet<TKey>;
|
|
125
|
-
/**
|
|
126
|
-
* Función para manejar el cambio de filas chequeadas
|
|
127
|
-
*/
|
|
128
|
-
onCheckedRowsChange?: (mapRowsChecked: ReadonlySet<TKey>) => void;
|
|
129
|
-
/**
|
|
130
|
-
* Función para abrir el modal de detalle de la fila
|
|
131
|
-
*/
|
|
132
|
-
onOpenDetail: (row: TRow) => void;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Props para el componente CardDetails
|
|
136
|
-
*/
|
|
137
|
-
export interface CardDetailsProps<TRow> {
|
|
138
|
-
row: TRow;
|
|
139
|
-
columns: readonly Column<TRow, any>[];
|
|
140
|
-
viewColumnsConfig: IViewConfig<any, any>[];
|
|
141
|
-
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, any>) => void>;
|
|
142
|
-
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Props para el componente CardHeader
|
|
146
|
-
*/
|
|
147
|
-
export interface CardHeaderProps<TRow> {
|
|
148
|
-
row: TRow;
|
|
149
|
-
onOpenDetail: (row: TRow) => void;
|
|
150
|
-
isChecked?: boolean;
|
|
151
|
-
showCheckbox?: boolean;
|
|
152
|
-
checkedRows?: ReadonlySet<any>;
|
|
153
|
-
onCheckedRowsChange?: (rows: ReadonlySet<any>) => void;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Props para el helper calculateCardHeight
|
|
157
|
-
*/
|
|
158
|
-
export interface CalculateCardHeightProps {
|
|
159
|
-
/**
|
|
160
|
-
* Número de columnas visibles en la card
|
|
161
|
-
*/
|
|
162
|
-
visibleColumnsCount: number;
|
|
163
|
-
/**
|
|
164
|
-
* Altura mínima personalizada (opcional, para customRender)
|
|
165
|
-
*/
|
|
166
|
-
customMinHeight?: number;
|
|
167
|
-
}
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect } from "react";
|
|
3
|
-
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import DataGrid from "react-data-grid";
|
|
5
|
-
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
6
|
-
import { p as pathIcons } from "../../../../../../icons.js";
|
|
7
|
-
import { s as ColumnsConfigWrapperStyled, t as ColumnsConfigDataGridStyled, u as ColumnsConfigSelColumnsStyled, T as TableWrapperDataGridStyled, v as ColumnsConfigActiosStyled } from "../../../../../../slots/DataGridSlot.js";
|
|
8
|
-
import { D as DICTIONARY } from "../../../../../../dictionary.js";
|
|
9
|
-
import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
10
|
-
function getRowsFromColumnsConfig(columnsConfig, columns) {
|
|
11
|
-
return columnsConfig.filter((cConfig) => !cConfig.hidden).map(
|
|
12
|
-
(cConfig) => ({
|
|
13
|
-
key: cConfig.key,
|
|
14
|
-
name: columns?.find((c) => c.key === cConfig.key)?.name ?? "",
|
|
15
|
-
visible: cConfig.visible === void 0 ? true : cConfig.visible,
|
|
16
|
-
frozen: cConfig.frozen === void 0 ? false : cConfig.frozen,
|
|
17
|
-
originalIndex: cConfig.originalIndex,
|
|
18
|
-
originalFrozen: cConfig.originalFrozen,
|
|
19
|
-
originalVisible: cConfig.originalVisible
|
|
20
|
-
})
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
const getAlignClass = (align) => {
|
|
24
|
-
const cellClass = align !== void 0 ? `rdg-cell-align-${align}` : "";
|
|
25
|
-
return {
|
|
26
|
-
cellClass,
|
|
27
|
-
headerCellClass: cellClass
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
const ColumnsConfig = forwardRef((props, ref) => {
|
|
31
|
-
const refdata_grid = useRef(null);
|
|
32
|
-
const { onCloseSettings, columnsConfig, onChangeColumnsConfig, rowHeight, classes, size, columns } = props;
|
|
33
|
-
const { getLabel } = useModuleDictionary();
|
|
34
|
-
const [isInit, setIsInit] = useState(true);
|
|
35
|
-
const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig, columns));
|
|
36
|
-
const [selRows, setSelRows] = useState(() => /* @__PURE__ */ new Set());
|
|
37
|
-
const divRef = useRef(null);
|
|
38
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
39
|
-
useImperativeHandle(ref, () => ({
|
|
40
|
-
onClickIntro: handleIntro,
|
|
41
|
-
current: divRef.current
|
|
42
|
-
}));
|
|
43
|
-
const columnsdata_grid = useMemo(
|
|
44
|
-
() => [
|
|
45
|
-
{
|
|
46
|
-
key: "name",
|
|
47
|
-
name: getLabel(DICTIONARY.SETTINGS_COLUMN_NAME),
|
|
48
|
-
width: 220,
|
|
49
|
-
resizable: true,
|
|
50
|
-
type: "string",
|
|
51
|
-
...getAlignClass("left")
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
key: "originalIndex",
|
|
55
|
-
name: getLabel(DICTIONARY.SETTINGS_COLUMN_POSITION),
|
|
56
|
-
width: 50,
|
|
57
|
-
type: "number",
|
|
58
|
-
...getAlignClass("center")
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
key: "visible",
|
|
62
|
-
name: getLabel(DICTIONARY.SETTINGS_COLUMN_VISIBLE),
|
|
63
|
-
width: 80,
|
|
64
|
-
type: "boolean",
|
|
65
|
-
renderCell: ColumnInteractiveCheckFormatter,
|
|
66
|
-
...getAlignClass("center")
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
key: "frozen",
|
|
70
|
-
name: getLabel(DICTIONARY.SETTINGS_COLUMNS_FROZEN),
|
|
71
|
-
width: 80,
|
|
72
|
-
type: "boolean",
|
|
73
|
-
renderCell: ColumnInteractiveCheckFormatter,
|
|
74
|
-
...getAlignClass("center")
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
[getLabel]
|
|
78
|
-
);
|
|
79
|
-
const checkAll = () => {
|
|
80
|
-
setRows(rows.map((row) => ({ ...row, visible: true })));
|
|
81
|
-
};
|
|
82
|
-
const unCheckAll = () => {
|
|
83
|
-
setRows(rows.map((row) => ({ ...row, visible: false })));
|
|
84
|
-
};
|
|
85
|
-
const restoreAll = () => {
|
|
86
|
-
setRows(
|
|
87
|
-
rows.map((row) => ({
|
|
88
|
-
...row,
|
|
89
|
-
visible: row.originalVisible,
|
|
90
|
-
frozen: row.originalFrozen,
|
|
91
|
-
index: row.originalIndex
|
|
92
|
-
})).sort((a, b) => a.index - b.index)
|
|
93
|
-
);
|
|
94
|
-
};
|
|
95
|
-
useEffect(() => {
|
|
96
|
-
if (isInit === false) {
|
|
97
|
-
setRows(getRowsFromColumnsConfig(columnsConfig, columns));
|
|
98
|
-
}
|
|
99
|
-
setIsInit(false);
|
|
100
|
-
}, [columnsConfig]);
|
|
101
|
-
const rowSelectedIndex = useMemo(() => {
|
|
102
|
-
let rowIndex = -1;
|
|
103
|
-
if (selRows.size !== 1) {
|
|
104
|
-
return rowIndex;
|
|
105
|
-
}
|
|
106
|
-
const iterator = selRows.entries();
|
|
107
|
-
const entry = iterator.next().value?.[1];
|
|
108
|
-
rowIndex = rows.findIndex((row) => row.key === entry);
|
|
109
|
-
return rowIndex;
|
|
110
|
-
}, [rows, selRows]);
|
|
111
|
-
const handleMoveFirst = () => {
|
|
112
|
-
if (rowSelectedIndex === -1) {
|
|
113
|
-
return -1;
|
|
114
|
-
}
|
|
115
|
-
const newRows = [...rows];
|
|
116
|
-
newRows.splice(rowSelectedIndex, 1);
|
|
117
|
-
newRows.splice(0, 0, rows[rowSelectedIndex]);
|
|
118
|
-
refdata_grid.current?.selectCell({ idx: 0, rowIdx: 0 });
|
|
119
|
-
setRows(newRows);
|
|
120
|
-
};
|
|
121
|
-
const handleMoveLast = () => {
|
|
122
|
-
if (rowSelectedIndex === -1) {
|
|
123
|
-
return -1;
|
|
124
|
-
}
|
|
125
|
-
const newRows = [...rows];
|
|
126
|
-
newRows.splice(rowSelectedIndex, 1);
|
|
127
|
-
newRows.splice(newRows.length, 0, rows[rowSelectedIndex]);
|
|
128
|
-
refdata_grid.current?.selectCell({ idx: 0, rowIdx: newRows.length - 1 });
|
|
129
|
-
setRows(newRows);
|
|
130
|
-
};
|
|
131
|
-
const handleMoveUpDownd = (position) => {
|
|
132
|
-
if (rowSelectedIndex === -1) {
|
|
133
|
-
return -1;
|
|
134
|
-
}
|
|
135
|
-
const newRows = [...rows];
|
|
136
|
-
const element = newRows[rowSelectedIndex];
|
|
137
|
-
newRows.splice(rowSelectedIndex, 1);
|
|
138
|
-
newRows.splice(rowSelectedIndex + position, 0, element);
|
|
139
|
-
refdata_grid.current?.selectCell({ idx: 0, rowIdx: rowSelectedIndex + position });
|
|
140
|
-
setRows(newRows);
|
|
141
|
-
};
|
|
142
|
-
const getColumnConfigByKey = (key) => {
|
|
143
|
-
const rowIndexFinded = rows.findIndex((row) => row.key === key);
|
|
144
|
-
if (rowIndexFinded > -1) {
|
|
145
|
-
return {
|
|
146
|
-
visible: rows[rowIndexFinded].visible,
|
|
147
|
-
frozen: rows[rowIndexFinded].frozen
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
return void 0;
|
|
151
|
-
};
|
|
152
|
-
const getRowIndex = (column) => {
|
|
153
|
-
const rowIndexFinded = rows.findIndex((row) => row.key === column.key);
|
|
154
|
-
if (rowIndexFinded > -1) {
|
|
155
|
-
return rowIndexFinded;
|
|
156
|
-
}
|
|
157
|
-
return columnsConfig.findIndex((columnConfig) => columnConfig.key === column.key);
|
|
158
|
-
};
|
|
159
|
-
const handleIntro = () => {
|
|
160
|
-
const newColumnsConfig = columnsConfig.map((columnConfig) => {
|
|
161
|
-
const newColumnConfig = { ...columnConfig };
|
|
162
|
-
if (!columnConfig.hidden) {
|
|
163
|
-
const columnConfigRow = getColumnConfigByKey(columnConfig.key);
|
|
164
|
-
if (columnConfigRow) {
|
|
165
|
-
newColumnConfig.visible = columnConfigRow.visible;
|
|
166
|
-
newColumnConfig.frozen = columnConfigRow.frozen;
|
|
167
|
-
}
|
|
168
|
-
const rowIndex = rows.findIndex((row) => row.key === columnConfig.key);
|
|
169
|
-
if (rowIndex > -1) {
|
|
170
|
-
newColumnConfig.index = rowIndex;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
return newColumnConfig;
|
|
174
|
-
}).sort((a, b) => getRowIndex(a) - getRowIndex(b));
|
|
175
|
-
onChangeColumnsConfig(newColumnsConfig);
|
|
176
|
-
onCloseSettings();
|
|
177
|
-
};
|
|
178
|
-
const onInternalSelectedRowsChange = () => {
|
|
179
|
-
};
|
|
180
|
-
const onInternalRowsChange = (newRows) => {
|
|
181
|
-
setRows(newRows);
|
|
182
|
-
};
|
|
183
|
-
const onCellClick = ({ row }) => {
|
|
184
|
-
if (selRows.has(row.key)) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
const mySet = /* @__PURE__ */ new Set([row.key]);
|
|
188
|
-
setSelRows(mySet);
|
|
189
|
-
};
|
|
190
|
-
return /* @__PURE__ */ jsxs(ColumnsConfigWrapperStyled, { ref: divRef, children: [
|
|
191
|
-
/* @__PURE__ */ jsxs(ColumnsConfigDataGridStyled, { children: [
|
|
192
|
-
/* @__PURE__ */ jsx(ColumnsConfigSelColumnsStyled, { ownerState: { size }, children: getLabel(DICTIONARY.SETTINGS_SEL_COLUMNS) }),
|
|
193
|
-
/* @__PURE__ */ jsx(TableWrapperDataGridStyled, { className: classes?.tableWrapperDataGrid, ownerState: { size }, children: /* @__PURE__ */ jsx(
|
|
194
|
-
DataGrid,
|
|
195
|
-
{
|
|
196
|
-
ref: refdata_grid,
|
|
197
|
-
rowHeight,
|
|
198
|
-
columns: columnsdata_grid,
|
|
199
|
-
rows,
|
|
200
|
-
onRowsChange: onInternalRowsChange,
|
|
201
|
-
selectedRows: selRows,
|
|
202
|
-
onSelectedRowsChange: onInternalSelectedRowsChange,
|
|
203
|
-
onCellClick,
|
|
204
|
-
rowKeyGetter: (row) => row.key,
|
|
205
|
-
defaultColumnOptions: { resizable: true, sortable: true }
|
|
206
|
-
}
|
|
207
|
-
) })
|
|
208
|
-
] }),
|
|
209
|
-
/* @__PURE__ */ jsxs(ColumnsConfigActiosStyled, { children: [
|
|
210
|
-
/* @__PURE__ */ jsx(
|
|
211
|
-
IconButton,
|
|
212
|
-
{
|
|
213
|
-
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_FIRST),
|
|
214
|
-
onClick: handleMoveFirst,
|
|
215
|
-
"aria-label": "move first place",
|
|
216
|
-
disabled: rowSelectedIndex < 1,
|
|
217
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveFirstPlace}`
|
|
218
|
-
}
|
|
219
|
-
),
|
|
220
|
-
/* @__PURE__ */ jsx(
|
|
221
|
-
IconButton,
|
|
222
|
-
{
|
|
223
|
-
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_UP),
|
|
224
|
-
onClick: () => handleMoveUpDownd(-1),
|
|
225
|
-
"aria-label": "move up place",
|
|
226
|
-
disabled: rowSelectedIndex < 1,
|
|
227
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveUpPlace}`
|
|
228
|
-
}
|
|
229
|
-
),
|
|
230
|
-
/* @__PURE__ */ jsx(
|
|
231
|
-
IconButton,
|
|
232
|
-
{
|
|
233
|
-
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_LAST),
|
|
234
|
-
onClick: handleMoveLast,
|
|
235
|
-
"aria-label": "move last place",
|
|
236
|
-
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
237
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveLastPlace}`
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
/* @__PURE__ */ jsx(
|
|
241
|
-
IconButton,
|
|
242
|
-
{
|
|
243
|
-
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_DOWN),
|
|
244
|
-
onClick: () => handleMoveUpDownd(1),
|
|
245
|
-
"aria-label": "move down place",
|
|
246
|
-
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
247
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveDownPlace}`
|
|
248
|
-
}
|
|
249
|
-
),
|
|
250
|
-
/* @__PURE__ */ jsx(
|
|
251
|
-
IconButton,
|
|
252
|
-
{
|
|
253
|
-
tooltip: getLabel(DICTIONARY.SETTINGS_VISIBLE_ALL),
|
|
254
|
-
onClick: checkAll,
|
|
255
|
-
"aria-label": "check visible all",
|
|
256
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.checkAll}`
|
|
257
|
-
}
|
|
258
|
-
),
|
|
259
|
-
/* @__PURE__ */ jsx(
|
|
260
|
-
IconButton,
|
|
261
|
-
{
|
|
262
|
-
tooltip: getLabel(DICTIONARY.SETTINGS_NO_VISIBLE_ALL),
|
|
263
|
-
onClick: unCheckAll,
|
|
264
|
-
"aria-label": "un check all",
|
|
265
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.uncheckAll}`
|
|
266
|
-
}
|
|
267
|
-
),
|
|
268
|
-
/* @__PURE__ */ jsx(
|
|
269
|
-
IconButton,
|
|
270
|
-
{
|
|
271
|
-
tooltip: getLabel(DICTIONARY.SETTINGS_RESTORE),
|
|
272
|
-
onClick: restoreAll,
|
|
273
|
-
"aria-label": "Restore columns",
|
|
274
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.restoreColumns}`
|
|
275
|
-
}
|
|
276
|
-
)
|
|
277
|
-
] })
|
|
278
|
-
] });
|
|
279
|
-
});
|
|
280
|
-
ColumnsConfig.displayName = "ColumnsConfig";
|
|
281
|
-
export {
|
|
282
|
-
ColumnsConfig as C
|
|
283
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GridProps } from '../../../../../types';
|
|
2
|
-
import { Column } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Hook que renderiza el modal de configuración de las columnas
|
|
5
|
-
* de la tabla
|
|
6
|
-
*/
|
|
7
|
-
declare const useModalSettings: (size: GridProps<unknown, unknown>["size"], columns: readonly Column<any, any>[]) => () => void;
|
|
8
|
-
export default useModalSettings;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GridProps } from '../../../../../types';
|
|
2
|
-
import { Column } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Hook que renderiza el modal de configuración de las columnas
|
|
5
|
-
* de la tabla
|
|
6
|
-
*/
|
|
7
|
-
export declare const useModalSettingsCards: (size: GridProps<unknown, unknown>["size"], columns: readonly Column<any, any>[]) => () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { u as useDataGrid } from "../../hooks/useDataGrid.js";
|
|
3
|
-
import { C as Cards } from "../Cards/index.js";
|
|
4
|
-
import { T as Table } from "../Table/index.js";
|
|
5
|
-
function RenderContent(props) {
|
|
6
|
-
const { viewMode } = useDataGrid();
|
|
7
|
-
return /* @__PURE__ */ jsx(Fragment, { children: viewMode === "table" ? /* @__PURE__ */ jsx(Table, { ...props }) : /* @__PURE__ */ jsx(Cards, { ...props }) });
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
RenderContent as R
|
|
11
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Column, SortColumn } from 'react-data-grid';
|
|
2
|
-
import { MenuAction } from '../subcomponents/HeaderRenderClick/types';
|
|
3
|
-
/**
|
|
4
|
-
* Función que retorna las acciones del menu del header de la columna
|
|
5
|
-
*/
|
|
6
|
-
export declare function useHeaderMenuActions<Trow, TSummaryRow>(columnKey: string | null, finalColumns: readonly Column<Trow, TSummaryRow>[], defaultSortable: boolean, handleSortFromPopover?: (newSortColumns: SortColumn[]) => void): MenuAction[];
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { SvgIconProps } from '@mui/material';
|
|
2
|
-
/**
|
|
3
|
-
* TODO: Documentar
|
|
4
|
-
*/
|
|
5
|
-
export declare function CloseIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
/**
|
|
7
|
-
* TODO: Documentar
|
|
8
|
-
*/
|
|
9
|
-
export declare function StarIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* TODO: Documentar
|
|
12
|
-
*/
|
|
13
|
-
export declare function InfoIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
/**
|
|
15
|
-
* TODO: Documentar
|
|
16
|
-
*/
|
|
17
|
-
export declare function WarningIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
/**
|
|
19
|
-
* TODO: Documentar
|
|
20
|
-
*/
|
|
21
|
-
export declare function SuccessIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
/**
|
|
23
|
-
* TODO: Documentar
|
|
24
|
-
*/
|
|
25
|
-
export declare function ErrorIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
/**
|
|
27
|
-
* TODO: Documentar
|
|
28
|
-
*/
|
|
29
|
-
export declare function CheckboxIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
/**
|
|
31
|
-
* TODO: Documentar
|
|
32
|
-
*/
|
|
33
|
-
export declare function CheckboxCheckedIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
/**
|
|
35
|
-
* TODO: Documentar
|
|
36
|
-
*/
|
|
37
|
-
export declare function CheckboxIndeterminateIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
/**
|
|
39
|
-
* TODO: Documentar
|
|
40
|
-
*/
|
|
41
|
-
export declare function InputSelectIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
/**
|
|
43
|
-
* TODO: Documentar
|
|
44
|
-
*/
|
|
45
|
-
export declare function TreeViewCollapseIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
/**
|
|
47
|
-
* TODO: Documentar
|
|
48
|
-
*/
|
|
49
|
-
export declare function TreeViewExpandIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
/**
|
|
51
|
-
* TODO: Documentar
|
|
52
|
-
*/
|
|
53
|
-
export declare function TreeViewEndIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { SvgIcon } from "@mui/material";
|
|
3
|
-
function CheckboxIcon(props) {
|
|
4
|
-
return /* @__PURE__ */ jsx(SvgIcon, { ...props, viewBox: "0 0 16 17", className: "checkbox-unChecked", children: /* @__PURE__ */ jsxs("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5
|
-
/* @__PURE__ */ jsx("g", { "clip-path": "url(#clip0_13395_49048)", children: /* @__PURE__ */ jsx("path", { d: "M13.0156 2.5H3.01562C2.75041 2.5 2.49605 2.60536 2.30852 2.79289C2.12098 2.98043 2.01563 3.23478 2.01562 3.5V13.5C2.01563 13.7652 2.12098 14.0196 2.30852 14.2071C2.49605 14.3946 2.75041 14.5 3.01562 14.5H13.0156C13.2808 14.5 13.5352 14.3946 13.7227 14.2071C13.9103 14.0196 14.0156 13.7652 14.0156 13.5V3.5C14.0156 3.23478 13.9103 2.98043 13.7227 2.79289C13.5352 2.60536 13.2808 2.5 13.0156 2.5ZM3.01562 13.5V3.5H13.0156V13.5H3.01562Z", fill: "#323B3B" }) }),
|
|
6
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_13395_49048", children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "white", transform: "translate(0 0.5)" }) }) })
|
|
7
|
-
] }) });
|
|
8
|
-
}
|
|
9
|
-
function CheckboxCheckedIcon(props) {
|
|
10
|
-
return /* @__PURE__ */ jsxs(SvgIcon, { ...props, viewBox: "0 0 16 17", className: "checkbox-checked", children: [
|
|
11
|
-
/* @__PURE__ */ jsxs("g", { "clip-path": "url(#clip0_13395_49057)", children: [
|
|
12
|
-
/* @__PURE__ */ jsx("path", { d: "M13.4323 2H2.59896C2.31164 2 2.03609 2.11414 1.83293 2.3173C1.62976 2.52047 1.51563 2.79602 1.51562 3.08333V13.9167C1.51563 14.204 1.62976 14.4795 1.83293 14.6827C2.03609 14.8859 2.31164 15 2.59896 15H13.4323C13.7196 15 13.9952 14.8859 14.1983 14.6827C14.4015 14.4795 14.5156 14.204 14.5156 13.9167V3.08333C14.5156 2.79602 14.4015 2.52047 14.1983 2.3173C13.9952 2.11414 13.7196 2 13.4323 2Z", fill: "#323B3B" }),
|
|
13
|
-
/* @__PURE__ */ jsx("path", { d: "M6.92119 11.6245L4.10001 8.8274L4.99759 7.95696L6.92119 9.84467L11.1014 5.70001L11.9996 6.58993L6.92119 11.6245Z", fill: "#F3F5F7" })
|
|
14
|
-
] }),
|
|
15
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_13395_49057", children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "white", transform: "translate(0 0.5)" }) }) })
|
|
16
|
-
] });
|
|
17
|
-
}
|
|
18
|
-
function CheckboxIndeterminateIcon(props) {
|
|
19
|
-
return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm-1.75 8h-6.5a.75.75 0 00-.75.75v.5c0 .414.336.75.75.75h6.5a.75.75 0 00.75-.75v-.5a.75.75 0 00-.75-.75z" }) });
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
CheckboxIndeterminateIcon as C,
|
|
23
|
-
CheckboxCheckedIcon as a,
|
|
24
|
-
CheckboxIcon as b
|
|
25
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RenderHeaderCellProps } from 'react-data-grid';
|
|
2
|
-
interface DraggableHeaderRendererProps<TRow> extends RenderHeaderCellProps<TRow> {
|
|
3
|
-
onColumnsReorder: (sourceKey: string, targetKey: string) => void;
|
|
4
|
-
openPopover?: (anchorEl: HTMLElement, columnKey: string) => void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* TODO: Documentar
|
|
8
|
-
*/
|
|
9
|
-
export declare function DraggableHeaderRenderer<TRow>(props: DraggableHeaderRendererProps<TRow>): any;
|
|
10
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HeaderRenderClickProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente que renderiza un menú de acciones para un encabezado de columna en un DataGrid.
|
|
4
|
-
*/
|
|
5
|
-
export declare function HeaderRenderClick(props: HeaderRenderClickProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RenderCheckboxProps } from 'react-data-grid';
|
|
2
|
-
/**
|
|
3
|
-
* Componente visual del Radio que se renderiza dentro de cada celda del DataGrid.
|
|
4
|
-
* ¿Para que sirve? Es un wrapper alrededor del componente Radio del MUI que adapta las props de react-data-grid
|
|
5
|
-
*/
|
|
6
|
-
export declare const RadioFormatter: import('react').ForwardRefExoticComponent<RenderCheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { R as Radio } from "../../../../mui_extended/Radio/Radio.js";
|
|
4
|
-
const RadioFormatter = forwardRef(function RadioFormatter2({ onChange, checked, ...props }, _ref) {
|
|
5
|
-
function handleChange(e) {
|
|
6
|
-
onChange(e.target.checked, e.nativeEvent.shiftKey);
|
|
7
|
-
}
|
|
8
|
-
return /* @__PURE__ */ jsx(Radio, { checked, onChange: handleChange, ...props });
|
|
9
|
-
});
|
|
10
|
-
export {
|
|
11
|
-
RadioFormatter as R
|
|
12
|
-
};
|