@m4l/components 9.4.5 → 9.4.6-JT19122025.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +1 -1
- package/components/DataGrid/Datagrid.styles.js +174 -153
- package/components/DataGrid/components/DataGrid/DataGrid.d.ts +28 -0
- package/components/DataGrid/{DataGrid.js → components/DataGrid/DataGrid.js} +12 -16
- package/components/DataGrid/components/DataGrid/index.d.ts +1 -0
- package/components/DataGrid/components/index.d.ts +1 -0
- package/components/DataGrid/contexts/DataGridContext/DataGridContext.d.ts +9 -0
- package/components/DataGrid/contexts/DataGridContext/DataGridContext.js +368 -0
- package/components/DataGrid/contexts/DataGridContext/index.d.ts +2 -9
- package/components/DataGrid/contexts/DataGridContext/index.js +0 -364
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +2 -1
- package/components/DataGrid/contexts/FilterContext/FilterContext.d.ts +12 -0
- package/components/DataGrid/contexts/FilterContext/FilterContext.js +50 -0
- package/components/DataGrid/contexts/FilterContext/index.d.ts +2 -12
- package/components/DataGrid/contexts/FilterContext/index.js +1 -47
- package/components/DataGrid/dictionary.d.ts +2 -1
- package/components/DataGrid/dictionary.js +3 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js +9 -6
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js +1 -1
- package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js +1 -1
- package/components/DataGrid/formatters/ColumnImageFormatter/ImageFormatterCell.js +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js +1 -1
- package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js +1 -1
- package/components/DataGrid/formatters/ColumnTagsFormatter/useColumnTags.js +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +1 -1
- package/components/DataGrid/helpers/index.d.ts +14 -13
- package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/getColumnsWidth.d.ts +2 -2
- package/components/DataGrid/helpers/persistence/getColumnsWidth/types.d.ts +25 -0
- package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/getViewMode.d.ts +2 -2
- package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/loadViewConfig.d.ts +1 -1
- package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/saveColumnsWidth.d.ts +1 -1
- package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/saveColumnsWidth.js +1 -1
- package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/saveViewConfig.d.ts +1 -1
- package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/saveViewMode.d.ts +2 -2
- package/components/DataGrid/helpers/{castMapColumnsWidthToRecord.d.ts → shared/castMapColumnsWidthToRecord/castMapColumnsWidthToRecord.d.ts} +2 -2
- package/components/DataGrid/helpers/shared/castMapColumnsWidthToRecord/castMapColumnsWidthToRecord.js +19 -0
- package/components/DataGrid/helpers/shared/castMapColumnsWidthToRecord/index.d.ts +1 -0
- package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/getAllViewModes.d.ts +1 -1
- package/components/DataGrid/helpers/{getColumnKey.d.ts → shared/getColumnKey/getColumnKey.d.ts} +1 -1
- package/components/DataGrid/helpers/shared/getColumnKey/index.d.ts +1 -0
- package/components/DataGrid/helpers/shared/getDataGridRowsFromSet/getDataGridRowsFromSet.d.ts +20 -0
- package/components/DataGrid/helpers/shared/getDataGridRowsFromSet/index.d.ts +1 -0
- package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/getIndexRowHeightVariant.d.ts +1 -1
- package/components/DataGrid/helpers/shared/getIndexRowHeightVariant/index.js +1 -0
- package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/getInitialColumnsConfig.d.ts +3 -3
- package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/getInitialColumnsConfig.js +1 -1
- package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/index.d.ts +1 -0
- package/components/DataGrid/helpers/shared/getInitialColumnsConfig/index.js +1 -0
- package/components/DataGrid/helpers/shared/getInitialColumnsConfig/types.d.ts +18 -0
- package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/getViewSpecificConfig.d.ts +2 -2
- package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/index.d.ts +1 -0
- package/components/DataGrid/helpers/shared/getViewSpecificConfig/index.js +1 -0
- package/components/DataGrid/helpers/shared/getViewSpecificConfig/types.d.ts +11 -0
- package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/getViewSuffix.d.ts +1 -1
- package/components/DataGrid/helpers/shared/getViewSuffix/index.js +1 -0
- package/components/DataGrid/hooks/index.d.ts +8 -6
- package/components/DataGrid/hooks/shared/useDataGrid/index.d.ts +1 -0
- package/components/DataGrid/hooks/shared/useDataGrid/index.js +1 -0
- package/components/DataGrid/hooks/shared/useDataGrid/useDataGrid.d.ts +9 -0
- package/components/DataGrid/hooks/{useDataGrid.js → shared/useDataGrid/useDataGrid.js} +1 -1
- package/components/DataGrid/hooks/shared/useFilters/index.d.ts +1 -0
- package/components/DataGrid/hooks/shared/useFilters/index.js +1 -0
- package/components/DataGrid/hooks/shared/useFilters/useFilters.d.ts +5 -0
- package/components/DataGrid/hooks/{useFilters.js → shared/useFilters/useFilters.js} +1 -1
- package/components/DataGrid/hooks/useChangeColumnsConfig/types.d.ts +14 -0
- package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.d.ts +1 -1
- package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.js +2 -2
- package/components/DataGrid/hooks/useChangeColumnsOrder/types.d.ts +11 -0
- package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +1 -1
- package/components/DataGrid/hooks/useColumnsWidth/types.d.ts +16 -0
- package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.d.ts +1 -1
- package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.js +1 -1
- package/components/DataGrid/hooks/useRowHeight/types.d.ts +16 -0
- package/components/DataGrid/hooks/useRowHeight/useRowHeight.d.ts +1 -18
- package/components/DataGrid/hooks/useRowHeight/useRowHeight.js +1 -1
- package/components/DataGrid/hooks/useViewConfig/types.d.ts +9 -0
- package/components/DataGrid/hooks/useViewConfig/useViewConfig.d.ts +1 -1
- package/components/DataGrid/hooks/useViewMode/types.d.ts +22 -0
- package/components/DataGrid/hooks/useViewMode/useViewMode.d.ts +1 -9
- package/components/DataGrid/hooks/useViewMode/useViewMode.js +2 -2
- package/components/DataGrid/icons.d.ts +1 -0
- package/components/DataGrid/icons.js +2 -1
- package/components/DataGrid/index.d.ts +4 -4
- package/components/DataGrid/slots/DataGridEnum.d.ts +4 -1
- package/components/DataGrid/slots/DataGridEnum.js +3 -0
- package/components/DataGrid/slots/DataGridSlot.d.ts +3 -0
- package/components/DataGrid/slots/DataGridSlot.js +52 -37
- package/components/DataGrid/slots/index.d.ts +2 -0
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +21 -1
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +2 -2
- package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/ControlNavigate/index.js +1 -0
- package/components/DataGrid/subcomponents/ControlNavigate/subcomponents/RowsCount/RowsCount.d.ts +17 -0
- package/components/DataGrid/subcomponents/{HeaderActions/subcomponents/RowsCount/index.js → ControlNavigate/subcomponents/RowsCount/RowsCount.js} +2 -2
- package/components/DataGrid/subcomponents/ControlNavigate/subcomponents/RowsCount/index.d.ts +1 -0
- package/components/DataGrid/subcomponents/ControlNavigate/subcomponents/RowsCount/index.js +1 -0
- package/components/DataGrid/subcomponents/ControlNavigate/types.js +1 -0
- package/components/DataGrid/subcomponents/HeaderActions/HeaderActions.d.ts +13 -0
- package/components/DataGrid/subcomponents/HeaderActions/HeaderActions.js +55 -0
- package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +2 -5
- package/components/DataGrid/subcomponents/HeaderActions/index.js +1 -42
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/Density.d.ts +19 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/Density.js +74 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.d.ts +1 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +1 -74
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/Filter.d.ts +12 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/Filter.js +34 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/index.d.ts +1 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/index.js +1 -34
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.d.ts +19 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.js +70 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.d.ts +1 -7
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.js +1 -67
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.d.ts +16 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +125 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.d.ts +1 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.js +1 -125
- package/components/DataGrid/subcomponents/HeaderActions/types.js +1 -0
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/formatter.d.ts +17 -3
- package/components/DataGrid/subcomponents/editors/EditLabelEditor/useColumnEditLabel.d.ts +23 -1
- package/components/DataGrid/subcomponents/editors/TextEditor/TextEditor.d.ts +50 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/TextEditor.js +55 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +1 -20
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -55
- package/components/DataGrid/subcomponents/editors/index.d.ts +2 -0
- package/components/DataGrid/subcomponents/index.d.ts +3 -0
- package/components/DataGrid/types.d.ts +13 -1
- package/components/DataGrid/views/CardsView/CardsView.d.ts +6 -0
- package/components/DataGrid/{subcomponents/Cards/index.js → views/CardsView/CardsView.js} +13 -11
- package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/calculateCardHeight}/calculateCardHeight.d.ts +1 -1
- package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/calculateCardHeight}/calculateCardHeight.js +1 -1
- package/components/DataGrid/views/CardsView/helpers/calculateCardHeight/index.d.ts +1 -0
- package/components/DataGrid/views/CardsView/helpers/calculateCardHeight/index.js +1 -0
- package/components/DataGrid/views/CardsView/helpers/scrollToCardElement/index.d.ts +1 -0
- package/components/DataGrid/views/CardsView/helpers/scrollToCardElement/index.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useCardContent/index.d.ts +1 -0
- package/components/DataGrid/views/CardsView/hooks/useCardContent/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/hooks → views/CardsView/hooks/useCardContent}/useCardContent.d.ts +2 -2
- package/components/DataGrid/{subcomponents/Cards/hooks → views/CardsView/hooks/useCardContent}/useCardContent.js +48 -6
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/index.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/types.d.ts +19 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/types.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useModalDetail/useModalDetail.d.ts +6 -0
- package/components/DataGrid/{hooks/useModalCardDetail.js → views/CardsView/hooks/useModalDetail/useModalDetail.js} +17 -14
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/index.js +1 -0
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/types.d.ts +11 -0
- package/components/DataGrid/views/CardsView/hooks/useProcessedColumns/types.js +1 -0
- package/components/DataGrid/{hooks → views/CardsView/hooks/useProcessedColumns}/useProcessedColumns.d.ts +3 -3
- package/components/DataGrid/{hooks → views/CardsView/hooks/useProcessedColumns}/useProcessedColumns.js +2 -2
- package/components/DataGrid/views/CardsView/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardDetails/index.d.ts → views/CardsView/subcomponents/CardDetails/CardDetails.d.ts} +2 -2
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardDetails/index.js → views/CardsView/subcomponents/CardDetails/CardDetails.js} +57 -15
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/types.d.ts +38 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardDetails/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/CardRow.d.ts +11 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardRow/index.js → views/CardsView/subcomponents/CardRow/CardRow.js} +21 -25
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardHeader/index.d.ts → views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/CardHeader.d.ts} +1 -1
- package/components/DataGrid/{subcomponents/Cards/subcomponents/CardHeader/index.js → views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/CardHeader.js} +6 -6
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/types.d.ts +11 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/types.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/LazyLoadCard/index.d.ts → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/LazyLoadCard.d.ts} +1 -1
- package/components/DataGrid/{subcomponents/Cards/subcomponents/LazyLoadCard/index.js → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/LazyLoadCard.js} +1 -1
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/index.js +1 -0
- package/components/DataGrid/{subcomponents/Cards/subcomponents/IntersectCard/index.d.ts → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/IntersectCard.d.ts} +1 -1
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/types.d.ts +35 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/types.d.ts +30 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/types.d.ts +72 -0
- package/components/DataGrid/views/CardsView/subcomponents/CardRow/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/Settings.d.ts +6 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/Settings/index.js → views/CardsView/subcomponents/Settings/Settings.js} +4 -10
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts +7 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards/index.js → views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js} +15 -15
- package/components/DataGrid/views/CardsView/subcomponents/Settings/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/index.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts +10 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.js → views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js} +19 -19
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +2 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards → views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig}/types.d.ts +2 -2
- package/components/DataGrid/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/types.js +1 -0
- package/components/DataGrid/views/CardsView/subcomponents/Settings/types.js +1 -0
- package/components/DataGrid/views/CardsView/types.d.ts +18 -0
- package/components/DataGrid/views/CardsView/types.js +1 -0
- package/components/DataGrid/{subcomponents/Table/index.d.ts → views/TableView/TableView.d.ts} +1 -1
- package/components/DataGrid/{subcomponents/Table/index.js → views/TableView/TableView.js} +9 -9
- package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/helpers/getDragHeaderRenderer}/getDragHeaderRenderer.js +1 -1
- package/components/DataGrid/views/TableView/helpers/getDragHeaderRenderer/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/helpers/getDragHeaderRenderer/index.js +1 -0
- package/components/DataGrid/views/TableView/helpers/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/helpers/index.js +1 -0
- package/components/DataGrid/views/TableView/hooks/useFocusRef/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/hooks/useFocusRef/index.js +1 -0
- package/components/DataGrid/views/TableView/hooks/useFocusRef/useFocusRef.d.ts +20 -0
- package/components/DataGrid/views/TableView/hooks/useHeaderMenuActions/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/hooks/useHeaderMenuActions/index.js +1 -0
- package/components/DataGrid/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.d.ts +27 -0
- package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useHeaderMenuActions}/useHeaderMenuActions.js +3 -3
- package/components/DataGrid/views/TableView/hooks/useSortColumnsRows/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/hooks/useSortColumnsRows/index.js +1 -0
- package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useSortColumnsRows}/useSortColumnsRows.js +8 -10
- package/components/DataGrid/views/TableView/subcomponents/ActionsColumn/ActionsColumn.d.ts +14 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/ActionsColumn}/ActionsColumn.js +4 -8
- package/components/DataGrid/views/TableView/subcomponents/ActionsColumn/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/ActionsColumn/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/CheckboxFormatter.d.ts +15 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/CheckboxFormatter}/CheckboxFormatter.js +2 -1
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/CustomIcons.d.ts +105 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/CustomIcons.js +50 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/CheckboxFormatter/subcomponents/CustomIcons/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/DraggableHeaderRenderer.d.ts +24 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/DraggableHeaderRenderer}/DraggableHeaderRenderer.js +14 -8
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/types.d.ts +14 -0
- package/components/DataGrid/views/TableView/subcomponents/DraggableHeaderRenderer/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/HeaderRenderClick/HeaderRenderClick.d.ts +26 -0
- package/components/DataGrid/{subcomponents/Table → views/TableView}/subcomponents/HeaderRenderClick/HeaderRenderClick.js +2 -2
- package/components/DataGrid/{subcomponents/Table → views/TableView}/subcomponents/HeaderRenderClick/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/HeaderRenderClick/index.js +1 -0
- package/components/DataGrid/{subcomponents/Table → views/TableView}/subcomponents/HeaderRenderClick/types.d.ts +60 -22
- package/components/DataGrid/views/TableView/subcomponents/HeaderRenderClick/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/RadioSelectColumn.d.ts +65 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/RadioSelectColumn}/RadioSelectColumn.js +3 -3
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.d.ts +22 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.js +14 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/index.js +1 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/SelectColumn}/SelectColumn.js +4 -4
- package/components/DataGrid/views/TableView/subcomponents/SelectColumn/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/SelectColumn/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/Settings.d.ts +6 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/Settings.js +29 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.d.ts +7 -0
- package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.js → views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js} +9 -9
- package/components/DataGrid/views/TableView/subcomponents/Settings/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.d.ts +10 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +309 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +2 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/types.js +1 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/types.d.ts +4 -0
- package/components/DataGrid/views/TableView/subcomponents/Settings/types.js +1 -0
- package/components/DataGrid/{subcomponents/Table/subcomponents/SkeletonFormatter/index.js → views/TableView/subcomponents/SkeletonFormatter/SkeletonFormatter.js} +1 -1
- package/components/DataGrid/views/TableView/subcomponents/SkeletonFormatter/index.d.ts +1 -0
- package/components/DataGrid/views/TableView/subcomponents/SkeletonFormatter/index.js +1 -0
- package/components/DataGrid/{subcomponents/CheckboxCellAdapter/index.js → views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.js} +4 -4
- package/components/DataGrid/views/adapters/CheckboxCellAdapter/index.d.ts +2 -0
- package/components/DataGrid/views/adapters/CheckboxCellAdapter/index.js +1 -0
- package/components/DataGrid/views/adapters/CheckboxCellAdapter/types.js +1 -0
- package/components/DataGrid/{subcomponents/RenderContent/index.d.ts → views/adapters/RenderContent/RenderContent.d.ts} +1 -1
- package/components/DataGrid/views/adapters/RenderContent/RenderContent.js +11 -0
- package/components/DataGrid/views/adapters/RenderContent/index.d.ts +1 -0
- package/components/DataGrid/views/adapters/RenderContent/index.js +1 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/ImageText/ImageText.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/MenuActions/MenuActions.js +1 -1
- package/components/MenuActions/dictionary.js +2 -2
- package/components/NumberInput/NumberInput.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/ObjectLogs/dictionary.js +1 -1
- package/components/ObjectLogs/hooks/useDetailFormatter.d.ts +1 -1
- package/components/ObjectLogs/hooks/useObjectLogsColumns.js +2 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +2 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +2 -2
- package/components/PDFViewer/PDFViewer.js +1 -1
- package/components/PrintingSystem/PrintingSystem.js +1 -1
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/WindowBase/WindowBase.js +1 -1
- package/components/WindowConfirm/WindowConfirm.js +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +1 -1
- package/components/commercial/TopBar/TopBar.js +1 -1
- package/components/commercial/TopBar/component/ConteinItem/index.js +1 -1
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/ColorFormatter/ColorFormatter.js +1 -1
- package/components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js +1 -1
- package/components/formatters/DateFormatter/DateFormatter.js +1 -1
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +1 -1
- package/components/formatters/ImageFormatter/ImageFormatter.js +1 -1
- package/components/formatters/ImageFormatter/ImageFormatter.styles.js +1 -0
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PointsFormatter/PointsFormatter.js +1 -1
- package/components/formatters/PriceFormatter/PriceFormatter.js +1 -1
- package/components/formatters/UncertaintyFormatter/UncertaintyFormatter.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
- package/components/hook-form/RHFCheckableList/RHFCheckableList.js +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/ColorPickerField.js +1 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.js +1 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +1 -1
- package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Avatar/Avatar.js +1 -1
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.js +1 -1
- package/components/mui_extended/Badge/Badge.js +1 -1
- package/components/mui_extended/CircularProgress/CircularProgress.js +1 -1
- package/components/mui_extended/DateTimePicker/DateTimePicker.js +1 -1
- package/components/mui_extended/Dialog/Dialog.js +1 -1
- package/components/mui_extended/ImageButton/ImageButton.js +1 -1
- package/components/mui_extended/MenuDivider/MenuDivider.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Stack/Stack.js +1 -1
- package/components/mui_extended/TextField/TextField.js +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.js +1 -1
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +1 -1
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +1 -1
- package/hooks/useDataGridPersistence/helpers.d.ts +1 -1
- package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +1 -1
- package/index.js +86 -86
- package/not_recognized/index.js +25 -100
- package/package.json +1 -1
- package/test/getNameDataTestId.js +2 -2
- package/components/DataGrid/DataGrid.d.ts +0 -9
- package/components/DataGrid/formatters/ColumnIconFormatter/constants.d.ts +0 -4
- package/components/DataGrid/formatters/ColumnIconFormatter/tests/ColumnIconFormatter.test.d.ts +0 -1
- package/components/DataGrid/formatters/ColumnImageFormatter/tests/ColumnImageFormatter.test.d.ts +0 -1
- package/components/DataGrid/helpers/castMapColumnsWidthToRecord.js +0 -13
- package/components/DataGrid/hooks/useDataGrid.d.ts +0 -7
- package/components/DataGrid/hooks/useFilters.d.ts +0 -1
- package/components/DataGrid/hooks/useModalCardDetail.d.ts +0 -6
- package/components/DataGrid/subcomponents/Cards/index.d.ts +0 -5
- package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.d.ts +0 -11
- package/components/DataGrid/subcomponents/Cards/types.d.ts +0 -167
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/types.d.ts +0 -2
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/RowsCount/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/index.d.ts +0 -5
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -2
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +0 -283
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.d.ts +0 -2
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +0 -8
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards/index.d.ts +0 -7
- package/components/DataGrid/subcomponents/RenderContent/index.js +0 -11
- package/components/DataGrid/subcomponents/Table/hooks/useFocusRef.d.ts +0 -7
- package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +0 -6
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.d.ts +0 -4
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.d.ts +0 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.d.ts +0 -53
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +0 -25
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +0 -10
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.d.ts +0 -5
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.d.ts +0 -6
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.js +0 -12
- package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.d.ts +0 -64
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/types.d.ts +0 -2
- package/components/DataGrid/tests/ColumnsFormatters.test.d.ts +0 -1
- package/components/DataGrid/tests/DataGrid.test.d.ts +0 -1
- package/components/DataGrid/tests/HeaderRenderClick.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CardDetails.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CardHeader.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CardRow.test.d.ts +0 -1
- package/components/DataGrid/tests/components/Cards.test.d.ts +0 -1
- package/components/DataGrid/tests/components/CheckboxCellAdapter.test.d.ts +0 -1
- package/components/DataGrid/tests/components/ColumnsConfigCards.test.d.ts +0 -1
- package/components/DataGrid/tests/components/IntersectCard.test.d.ts +0 -1
- package/components/DataGrid/tests/components/ViewMode.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useCardContent.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useModalDetail.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useModalSettingsCards.test.d.ts +0 -1
- package/components/DataGrid/tests/hooks/useProcessedColumns.test.d.ts +0 -1
- package/components/DataGrid/tests/table/subcomponents/RadioFormatter.test.d.ts +0 -1
- package/components/DataGrid/tests/table/subcomponents/RadioSelectColumn.test.d.ts +0 -1
- package/components/DataGrid/tests/useHeaderMenuActions.test.d.ts +0 -1
- package/components/DataGrid/tests/useSortColumnsRows.test.d.ts +0 -1
- package/components/DataGrid/types.helpers.d.ts +0 -55
- package/components/DataGrid/types.hooks.d.ts +0 -81
- package/components/DataGrid/utils/getDataGridRowsFromSet.d.ts +0 -4
- /package/components/DataGrid/{helpers/getAllViewModes → components/DataGrid}/index.js +0 -0
- /package/components/DataGrid/{helpers/getColumnsWidth/index.js → contexts/DataGridContext/types.js} +0 -0
- /package/components/DataGrid/{helpers/getIndexRowHeightVariant/index.js → contexts/FilterContext/types.js} +0 -0
- /package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/getColumnsWidth.js +0 -0
- /package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/getColumnsWidth.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getColumnsWidth → persistence/getColumnsWidth}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getInitialColumnsConfig → persistence/getColumnsWidth}/index.js +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/getViewMode.js +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/getViewMode.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewMode → persistence/getViewMode}/index.js +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSpecificConfig → persistence/loadViewConfig}/index.js +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/loadViewConfig.js +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/loadViewConfig}/loadViewConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → persistence/saveColumnsWidth}/index.js +0 -0
- /package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveColumnsWidth}/saveColumnsWidth.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{loadViewConfig → persistence/saveViewConfig}/index.js +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/saveViewConfig.js +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → persistence/saveViewConfig}/saveViewConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveColumnsWidth → persistence/saveViewMode}/index.js +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/saveViewMode.js +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → persistence/saveViewMode}/saveViewMode.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewConfig → shared/castMapColumnsWidthToRecord}/index.js +0 -0
- /package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/getAllViewModes.js +0 -0
- /package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/getAllViewModes.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getAllViewModes → shared/getAllViewModes}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{saveViewMode → shared/getAllViewModes}/index.js +0 -0
- /package/components/DataGrid/helpers/{getColumnKey.js → shared/getColumnKey/getColumnKey.js} +0 -0
- /package/components/DataGrid/{subcomponents/Table/subcomponents/HeaderRenderClick → helpers/shared/getColumnKey}/index.js +0 -0
- /package/components/DataGrid/{utils → helpers/shared/getDataGridRowsFromSet}/getDataGridRowsFromSet.js +0 -0
- /package/components/DataGrid/{types.helpers.js → helpers/shared/getDataGridRowsFromSet/index.js} +0 -0
- /package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/getIndexRowHeightVariant.js +0 -0
- /package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/getIndexRowHeightVariant.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getIndexRowHeightVariant → shared/getIndexRowHeightVariant}/index.d.ts +0 -0
- /package/components/DataGrid/helpers/{getInitialColumnsConfig → shared/getInitialColumnsConfig}/getInitialColumnsConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/getViewSpecificConfig.js +0 -0
- /package/components/DataGrid/helpers/{getViewSpecificConfig → shared/getViewSpecificConfig}/getViewSpecificConfig.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/getViewSuffix.js +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/getViewSuffix.test.d.ts +0 -0
- /package/components/DataGrid/helpers/{getViewSuffix → shared/getViewSuffix}/index.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/scrollToCardElement}/scrollToCardElement.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Cards/helpers → views/CardsView/helpers/scrollToCardElement}/scrollToCardElement.js +0 -0
- /package/components/DataGrid/{subcomponents/Cards/subcomponents/IntersectCard/index.js → views/CardsView/subcomponents/CardRow/subcomponents/LazyLoadCard/subcomponents/IntersectCard/IntersectCard.js} +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions/subcomponents → views/CardsView/subcomponents/Settings}/hooks/useModalSettings/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions → views/CardsView}/subcomponents/Settings/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/helpers/getDragHeaderRenderer}/getDragHeaderRenderer.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useFocusRef}/useFocusRef.js +0 -0
- /package/components/DataGrid/{subcomponents/Table/hooks → views/TableView/hooks/useSortColumnsRows}/useSortColumnsRows.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/subcomponents → views/TableView/subcomponents/SelectColumn}/SelectColumn.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions/subcomponents/hooks/useModalSettingsCards → views/TableView/subcomponents/Settings/hooks/useModalSettings}/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/HeaderActions → views/TableView}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +0 -0
- /package/components/DataGrid/{subcomponents/Table/subcomponents/SkeletonFormatter/index.d.ts → views/TableView/subcomponents/SkeletonFormatter/SkeletonFormatter.d.ts} +0 -0
- /package/components/DataGrid/{subcomponents/CheckboxCellAdapter/index.d.ts → views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.d.ts} +0 -0
- /package/components/DataGrid/{subcomponents → views/adapters}/CheckboxCellAdapter/types.d.ts +0 -0
|
@@ -0,0 +1,309 @@
|
|
|
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 { v as ColumnsConfigWrapperStyled, w as ColumnsConfigDataGridStyled, x as ColumnsConfigSelColumnsStyled, y as TableWrapperDataGridStyled, z 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(
|
|
31
|
+
(props, ref) => {
|
|
32
|
+
const refdata_grid = useRef(null);
|
|
33
|
+
const {
|
|
34
|
+
onCloseSettings,
|
|
35
|
+
columnsConfig,
|
|
36
|
+
onChangeColumnsConfig,
|
|
37
|
+
rowHeight,
|
|
38
|
+
classes,
|
|
39
|
+
size,
|
|
40
|
+
columns
|
|
41
|
+
} = props;
|
|
42
|
+
const { getLabel } = useModuleDictionary();
|
|
43
|
+
const [isInit, setIsInit] = useState(true);
|
|
44
|
+
const [rows, setRows] = useState(
|
|
45
|
+
getRowsFromColumnsConfig(columnsConfig, columns)
|
|
46
|
+
);
|
|
47
|
+
const [selRows, setSelRows] = useState(() => /* @__PURE__ */ new Set());
|
|
48
|
+
const divRef = useRef(null);
|
|
49
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
50
|
+
useImperativeHandle(ref, () => ({
|
|
51
|
+
onClickIntro: handleIntro,
|
|
52
|
+
current: divRef.current
|
|
53
|
+
}));
|
|
54
|
+
const columnsdata_grid = useMemo(
|
|
55
|
+
() => [
|
|
56
|
+
{
|
|
57
|
+
key: "name",
|
|
58
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMN_NAME),
|
|
59
|
+
width: 220,
|
|
60
|
+
resizable: true,
|
|
61
|
+
type: "string",
|
|
62
|
+
...getAlignClass("left")
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
key: "originalIndex",
|
|
66
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMN_POSITION),
|
|
67
|
+
width: 50,
|
|
68
|
+
type: "number",
|
|
69
|
+
...getAlignClass("center")
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: "visible",
|
|
73
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMN_VISIBLE),
|
|
74
|
+
width: 80,
|
|
75
|
+
type: "boolean",
|
|
76
|
+
renderCell: ColumnInteractiveCheckFormatter,
|
|
77
|
+
...getAlignClass("center")
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
key: "frozen",
|
|
81
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMNS_FROZEN),
|
|
82
|
+
width: 80,
|
|
83
|
+
type: "boolean",
|
|
84
|
+
renderCell: ColumnInteractiveCheckFormatter,
|
|
85
|
+
...getAlignClass("center")
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
[getLabel]
|
|
89
|
+
);
|
|
90
|
+
const checkAll = () => {
|
|
91
|
+
setRows(rows.map((row) => ({ ...row, visible: true })));
|
|
92
|
+
};
|
|
93
|
+
const unCheckAll = () => {
|
|
94
|
+
setRows(rows.map((row) => ({ ...row, visible: false })));
|
|
95
|
+
};
|
|
96
|
+
const restoreAll = () => {
|
|
97
|
+
setRows(
|
|
98
|
+
rows.map((row) => ({
|
|
99
|
+
...row,
|
|
100
|
+
visible: row.originalVisible,
|
|
101
|
+
frozen: row.originalFrozen,
|
|
102
|
+
index: row.originalIndex
|
|
103
|
+
})).sort((a, b) => a.index - b.index)
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
if (isInit === false) {
|
|
108
|
+
setRows(getRowsFromColumnsConfig(columnsConfig, columns));
|
|
109
|
+
}
|
|
110
|
+
setIsInit(false);
|
|
111
|
+
}, [columnsConfig]);
|
|
112
|
+
const rowSelectedIndex = useMemo(() => {
|
|
113
|
+
let rowIndex = -1;
|
|
114
|
+
if (selRows.size !== 1) {
|
|
115
|
+
return rowIndex;
|
|
116
|
+
}
|
|
117
|
+
const iterator = selRows.entries();
|
|
118
|
+
const entry = iterator.next().value?.[1];
|
|
119
|
+
rowIndex = rows.findIndex((row) => row.key === entry);
|
|
120
|
+
return rowIndex;
|
|
121
|
+
}, [rows, selRows]);
|
|
122
|
+
const handleMoveFirst = () => {
|
|
123
|
+
if (rowSelectedIndex === -1) {
|
|
124
|
+
return -1;
|
|
125
|
+
}
|
|
126
|
+
const newRows = [...rows];
|
|
127
|
+
newRows.splice(rowSelectedIndex, 1);
|
|
128
|
+
newRows.splice(0, 0, rows[rowSelectedIndex]);
|
|
129
|
+
refdata_grid.current?.selectCell({ idx: 0, rowIdx: 0 });
|
|
130
|
+
setRows(newRows);
|
|
131
|
+
};
|
|
132
|
+
const handleMoveLast = () => {
|
|
133
|
+
if (rowSelectedIndex === -1) {
|
|
134
|
+
return -1;
|
|
135
|
+
}
|
|
136
|
+
const newRows = [...rows];
|
|
137
|
+
newRows.splice(rowSelectedIndex, 1);
|
|
138
|
+
newRows.splice(newRows.length, 0, rows[rowSelectedIndex]);
|
|
139
|
+
refdata_grid.current?.selectCell({ idx: 0, rowIdx: newRows.length - 1 });
|
|
140
|
+
setRows(newRows);
|
|
141
|
+
};
|
|
142
|
+
const handleMoveUpDownd = (position) => {
|
|
143
|
+
if (rowSelectedIndex === -1) {
|
|
144
|
+
return -1;
|
|
145
|
+
}
|
|
146
|
+
const newRows = [...rows];
|
|
147
|
+
const element = newRows[rowSelectedIndex];
|
|
148
|
+
newRows.splice(rowSelectedIndex, 1);
|
|
149
|
+
newRows.splice(rowSelectedIndex + position, 0, element);
|
|
150
|
+
refdata_grid.current?.selectCell({
|
|
151
|
+
idx: 0,
|
|
152
|
+
rowIdx: rowSelectedIndex + position
|
|
153
|
+
});
|
|
154
|
+
setRows(newRows);
|
|
155
|
+
};
|
|
156
|
+
const getColumnConfigByKey = (key) => {
|
|
157
|
+
const rowIndexFinded = rows.findIndex((row) => row.key === key);
|
|
158
|
+
if (rowIndexFinded > -1) {
|
|
159
|
+
return {
|
|
160
|
+
visible: rows[rowIndexFinded].visible,
|
|
161
|
+
frozen: rows[rowIndexFinded].frozen
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
return void 0;
|
|
165
|
+
};
|
|
166
|
+
const getRowIndex = (column) => {
|
|
167
|
+
const rowIndexFinded = rows.findIndex((row) => row.key === column.key);
|
|
168
|
+
if (rowIndexFinded > -1) {
|
|
169
|
+
return rowIndexFinded;
|
|
170
|
+
}
|
|
171
|
+
return columnsConfig.findIndex(
|
|
172
|
+
(columnConfig) => columnConfig.key === column.key
|
|
173
|
+
);
|
|
174
|
+
};
|
|
175
|
+
const handleIntro = () => {
|
|
176
|
+
const newColumnsConfig = columnsConfig.map((columnConfig) => {
|
|
177
|
+
const newColumnConfig = { ...columnConfig };
|
|
178
|
+
if (!columnConfig.hidden) {
|
|
179
|
+
const columnConfigRow = getColumnConfigByKey(columnConfig.key);
|
|
180
|
+
if (columnConfigRow) {
|
|
181
|
+
newColumnConfig.visible = columnConfigRow.visible;
|
|
182
|
+
newColumnConfig.frozen = columnConfigRow.frozen;
|
|
183
|
+
}
|
|
184
|
+
const rowIndex = rows.findIndex(
|
|
185
|
+
(row) => row.key === columnConfig.key
|
|
186
|
+
);
|
|
187
|
+
if (rowIndex > -1) {
|
|
188
|
+
newColumnConfig.index = rowIndex;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return newColumnConfig;
|
|
192
|
+
}).sort((a, b) => getRowIndex(a) - getRowIndex(b));
|
|
193
|
+
onChangeColumnsConfig(newColumnsConfig);
|
|
194
|
+
onCloseSettings();
|
|
195
|
+
};
|
|
196
|
+
const onInternalSelectedRowsChange = () => {
|
|
197
|
+
};
|
|
198
|
+
const onInternalRowsChange = (newRows) => {
|
|
199
|
+
setRows(newRows);
|
|
200
|
+
};
|
|
201
|
+
const onCellClick = ({ row }) => {
|
|
202
|
+
if (selRows.has(row.key)) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const mySet = /* @__PURE__ */ new Set([row.key]);
|
|
206
|
+
setSelRows(mySet);
|
|
207
|
+
};
|
|
208
|
+
return /* @__PURE__ */ jsxs(ColumnsConfigWrapperStyled, { ref: divRef, children: [
|
|
209
|
+
/* @__PURE__ */ jsxs(ColumnsConfigDataGridStyled, { children: [
|
|
210
|
+
/* @__PURE__ */ jsx(ColumnsConfigSelColumnsStyled, { ownerState: { size }, children: getLabel(DICTIONARY.SETTINGS_SEL_COLUMNS) }),
|
|
211
|
+
/* @__PURE__ */ jsx(
|
|
212
|
+
TableWrapperDataGridStyled,
|
|
213
|
+
{
|
|
214
|
+
className: classes?.tableWrapperDataGrid,
|
|
215
|
+
ownerState: { size },
|
|
216
|
+
children: /* @__PURE__ */ jsx(
|
|
217
|
+
DataGrid,
|
|
218
|
+
{
|
|
219
|
+
ref: refdata_grid,
|
|
220
|
+
rowHeight,
|
|
221
|
+
columns: columnsdata_grid,
|
|
222
|
+
rows,
|
|
223
|
+
onRowsChange: onInternalRowsChange,
|
|
224
|
+
selectedRows: selRows,
|
|
225
|
+
onSelectedRowsChange: onInternalSelectedRowsChange,
|
|
226
|
+
onCellClick,
|
|
227
|
+
rowKeyGetter: (row) => row.key,
|
|
228
|
+
defaultColumnOptions: { resizable: true, sortable: true }
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
] }),
|
|
234
|
+
/* @__PURE__ */ jsxs(ColumnsConfigActiosStyled, { children: [
|
|
235
|
+
/* @__PURE__ */ jsx(
|
|
236
|
+
IconButton,
|
|
237
|
+
{
|
|
238
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_FIRST),
|
|
239
|
+
onClick: handleMoveFirst,
|
|
240
|
+
"aria-label": "move first place",
|
|
241
|
+
disabled: rowSelectedIndex < 1,
|
|
242
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveFirstPlace}`
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
/* @__PURE__ */ jsx(
|
|
246
|
+
IconButton,
|
|
247
|
+
{
|
|
248
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_UP),
|
|
249
|
+
onClick: () => handleMoveUpDownd(-1),
|
|
250
|
+
"aria-label": "move up place",
|
|
251
|
+
disabled: rowSelectedIndex < 1,
|
|
252
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveUpPlace}`
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
/* @__PURE__ */ jsx(
|
|
256
|
+
IconButton,
|
|
257
|
+
{
|
|
258
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_LAST),
|
|
259
|
+
onClick: handleMoveLast,
|
|
260
|
+
"aria-label": "move last place",
|
|
261
|
+
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
262
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveLastPlace}`
|
|
263
|
+
}
|
|
264
|
+
),
|
|
265
|
+
/* @__PURE__ */ jsx(
|
|
266
|
+
IconButton,
|
|
267
|
+
{
|
|
268
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_DOWN),
|
|
269
|
+
onClick: () => handleMoveUpDownd(1),
|
|
270
|
+
"aria-label": "move down place",
|
|
271
|
+
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
272
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.moveDownPlace}`
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
/* @__PURE__ */ jsx(
|
|
276
|
+
IconButton,
|
|
277
|
+
{
|
|
278
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_VISIBLE_ALL),
|
|
279
|
+
onClick: checkAll,
|
|
280
|
+
"aria-label": "check visible all",
|
|
281
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.checkAll}`
|
|
282
|
+
}
|
|
283
|
+
),
|
|
284
|
+
/* @__PURE__ */ jsx(
|
|
285
|
+
IconButton,
|
|
286
|
+
{
|
|
287
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_NO_VISIBLE_ALL),
|
|
288
|
+
onClick: unCheckAll,
|
|
289
|
+
"aria-label": "un check all",
|
|
290
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.uncheckAll}`
|
|
291
|
+
}
|
|
292
|
+
),
|
|
293
|
+
/* @__PURE__ */ jsx(
|
|
294
|
+
IconButton,
|
|
295
|
+
{
|
|
296
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_RESTORE),
|
|
297
|
+
onClick: restoreAll,
|
|
298
|
+
"aria-label": "Restore columns",
|
|
299
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.restoreColumns}`
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
] })
|
|
303
|
+
] });
|
|
304
|
+
}
|
|
305
|
+
);
|
|
306
|
+
ColumnsConfig.displayName = "ColumnsConfig";
|
|
307
|
+
export {
|
|
308
|
+
ColumnsConfig as C
|
|
309
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
3
2
|
import { S as Skeleton } from "../../../../../mui_extended/Skeleton/Skeleton.js";
|
|
4
3
|
import { W as WrapperSkeletonStyled } from "../../../../slots/DataGridSlot.js";
|
|
4
|
+
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
5
5
|
function SkeletonFormatter() {
|
|
6
6
|
const { size } = useDataGrid();
|
|
7
7
|
return /* @__PURE__ */ jsx(WrapperSkeletonStyled, { ownerState: { size }, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "100%" }) });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SkeletonFormatter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useContext } from "react";
|
|
3
3
|
import { SelectCellFormatter } from "react-data-grid";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { S as CheckboxCellWrapperStyled } from "../../../slots/DataGridSlot.js";
|
|
5
|
+
import { a as DataGridContext } from "../../../contexts/DataGridContext/DataGridContext.js";
|
|
6
|
+
import { R as RadioFormatter } from "../../TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.js";
|
|
7
|
+
import { C as CheckboxFormatter } from "../../TableView/subcomponents/CheckboxFormatter/CheckboxFormatter.js";
|
|
8
8
|
const CheckboxCellAdapter = forwardRef(function CheckboxCellAdapter2(props, ref) {
|
|
9
9
|
const {
|
|
10
10
|
value,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { T as TableView } from "../../TableView/TableView.js";
|
|
3
|
+
import { C as CardsView } from "../../CardsView/CardsView.js";
|
|
4
|
+
import { u as useDataGrid } from "../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
5
|
+
function RenderContent(props) {
|
|
6
|
+
const { viewMode } = useDataGrid();
|
|
7
|
+
return /* @__PURE__ */ jsx(Fragment, { children: viewMode === "table" ? /* @__PURE__ */ jsx(TableView, { ...props }) : /* @__PURE__ */ jsx(CardsView, { ...props }) });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
RenderContent as R
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RenderContent } from './RenderContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
3
3
|
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
4
4
|
import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../../constants.js";
|
|
5
5
|
import { u as useDynamicFilterBase } from "./useDynamicFilterBase.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
3
3
|
import { D as DYNAMIC_SORT_KEY_COMPONENT } from "../../constants.js";
|
|
4
4
|
import { D as DynamicSortSlots } from "../../slots/SlotsEnum.js";
|
|
5
5
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
3
3
|
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
4
4
|
import { D as DYNAMIC_SORT_KEY_COMPONENT } from "../../constants.js";
|
|
5
5
|
import { u as useDynamicSortBase } from "./useDynamicSortBase.js";
|
package/components/Icon/Icon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
5
|
import { I as ICON_PREFIX, a as ICON_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import { g as getComponentClasses, a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -4,7 +4,7 @@ import { useModuleSkeleton } from "@m4l/core";
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { L as LazyLoadComponent } from "./subcomponents/LazyLoadComponent/index.js";
|
|
6
6
|
import { D as DivContainerSkeletonStyled, I as ImgSkeleton, a as ImgStyled } from "./slots/ImageSlots.js";
|
|
7
|
-
import {
|
|
7
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
8
|
import { s as svgDataUriSkeleton, I as IMAGE_CLASSES, a as IMAGE_KEY_COMPONENT } from "./constant.js";
|
|
9
9
|
import { I as ImageSlots } from "./slots/ImageEnum.js";
|
|
10
10
|
function Image(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { b as IntersectComponentStyled } from "../../slots/ImageSlots.js";
|
|
4
|
-
import {
|
|
4
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
5
|
import { a as IMAGE_KEY_COMPONENT } from "../../constant.js";
|
|
6
6
|
import { I as ImageSlots } from "../../slots/ImageEnum.js";
|
|
7
7
|
const checkIntersections = (entries) => {
|
|
@@ -4,7 +4,7 @@ import { I as ImageTextContainerRoot, a as ImageContainerStyled, b as ImgStyled,
|
|
|
4
4
|
import { I as IMG_ALT, a as IMAGE_TEXT_CLASSES, b as IMAGE_TEXT_KEY_COMPONENT } from "./constants.js";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { useRef } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
8
|
import { u as useIsVisible } from "../../hooks/useIsVisible/useIsVisible.js";
|
|
9
9
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
10
10
|
const ImageText = (props) => {
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useFirstRender, useLocales } from "@m4l/graphics";
|
|
4
4
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
5
|
-
import {
|
|
5
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { I as Image } from "../Image/Image.js";
|
|
8
8
|
import { L as LanguagePopoverRootStyled, P as PaperStyled } from "./slots/LanguagePopoverSlots.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
5
5
|
import { L as LINEAR_PROGRESS_INDETERMINATE_KEY_COMPONENT } from "./constants.js";
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { L as LoadingErrorRootStyled, a as LoadingErrorStyled, b as LinearProgressIndeterminateStyled, c as LoadingErrorContainerStyled, d as LoadingErrorContentStyled, e as LoadingErrorImageStyled, f as LoadingErrorTextContainerStyled, g as LoadingErrorTitleDescriptionStyled, h as LoadingErrorDividerStyled, i as LoadingErrorButtonContainerStyled, j as LoadingErrorRecommendationTextStyled } from "./slots/LoadingErrorSlots.js";
|
|
4
4
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
5
|
-
import {
|
|
5
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { L as LOADING_ERROR_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { d as dictionary } from "./dictionary.js";
|
|
@@ -5,7 +5,7 @@ import { u as useComponentSize } from "../../hooks/useComponentSize/useComponent
|
|
|
5
5
|
import { P as Popover } from "../mui_extended/Popover/Popover.js";
|
|
6
6
|
import { M as MenuItem } from "../mui_extended/MenuItem/MenuItem.js";
|
|
7
7
|
import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_, b as MENU_ACTIONS_CLASSES } from "./constants.js";
|
|
8
|
-
import {
|
|
8
|
+
import { g as getMenuActionsDictionary, D as DICTIONARY } from "./dictionary.js";
|
|
9
9
|
import { M as MenuDivider } from "../mui_extended/MenuDivider/MenuDivider.js";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { M as MenuListStyled, a as MenuLoaderStyled, R as RootStyled, I as IconButtonStyled, H as HeaderMenuActionsStyled, F as FooterMenuActionsStyled } from "./slots/MenuActionsSlots.js";
|
|
@@ -3,7 +3,7 @@ import clsx from "clsx";
|
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
5
5
|
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
6
|
-
import {
|
|
6
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
7
|
import { u as useNumberInput } from "./hooks/useNumberInput/useNumberInput.js";
|
|
8
8
|
import { S as SkeletonStyled, R as RootStyled, I as InputStyled, C as ContainButtonsAdornmentStyled, a as ContainerButtonsStyled, b as IncrementButtonStyled, D as DecrementButtonStyled } from "./slots/NumberInputSlots.js";
|
|
9
9
|
import { N as NUMBER_INPUT_KEY_COMPONENT } from "./constants.js";
|
|
@@ -56,11 +56,9 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
60
59
|
case "numberInput:inputChange":
|
|
61
60
|
onChange?.(event, fieldValue);
|
|
62
61
|
break;
|
|
63
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
64
62
|
case "numberInput:clamp":
|
|
65
63
|
onChange?.(event, fieldValue);
|
|
66
64
|
break;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDataGridComponentsDictionary } from "../
|
|
1
|
+
import { g as getDataGridComponentsDictionary } from "../datagrid/dictionary.js";
|
|
2
2
|
import { g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/dictionary.js";
|
|
3
3
|
const DICTIONARY_OBJECT_LOGS_ID = "object_logs";
|
|
4
4
|
function getObjectLogsComponentsDictionary() {
|
|
@@ -2,8 +2,8 @@ import { useMemo } from "react";
|
|
|
2
2
|
import { useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { D as DICTIONARY } from "../dictionary.js";
|
|
4
4
|
import { u as useDetailFormatter } from "./useDetailFormatter.js";
|
|
5
|
-
import { u as useColumnIcon } from "../../
|
|
6
|
-
import { u as useColumnDate } from "../../
|
|
5
|
+
import { u as useColumnIcon } from "../../datagrid/formatters/ColumnIconFormatter/useColumnIcon.js";
|
|
6
|
+
import { u as useColumnDate } from "../../datagrid/formatters/ColumnDateFormatter/useColumnDate.js";
|
|
7
7
|
const useObjectLogsColumns = (type) => {
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
9
9
|
const columnDate = useColumnDate({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { D as DataGrid } from "../../../DataGrid/DataGrid.js";
|
|
4
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
5
4
|
import { C as ContainerWrapperStyled, G as GridWrapperStyled } from "../../slots/ObjectLogsSlots.js";
|
|
6
5
|
import { usePaginate } from "@m4l/graphics";
|
|
7
6
|
import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
|
|
8
7
|
import { a as OBJECT_LOGS_M4L_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
|
|
9
|
-
import {
|
|
8
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
10
9
|
import { u as useFilterAndSort } from "../../hooks/useFilterAndSort.js";
|
|
10
|
+
import { D as DataGrid } from "../../../datagrid/components/DataGrid/DataGrid.js";
|
|
11
11
|
import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
|
|
12
12
|
function ObjectLogsByM4L(props) {
|
|
13
13
|
const { resourceId, objectId, dataTestId = "" } = props;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { D as DataGrid } from "../../../DataGrid/DataGrid.js";
|
|
4
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
5
4
|
import { C as ContainerWrapperStyled, G as GridWrapperStyled } from "../../slots/ObjectLogsSlots.js";
|
|
6
5
|
import { useRows } from "@m4l/graphics";
|
|
7
6
|
import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
|
|
8
7
|
import { b as OBJECT_LOGS_OTHERS_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
|
|
9
|
-
import {
|
|
8
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
10
9
|
import { u as useFilterAndSort } from "../../hooks/useFilterAndSort.js";
|
|
10
|
+
import { D as DataGrid } from "../../../datagrid/components/DataGrid/DataGrid.js";
|
|
11
11
|
import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
|
|
12
12
|
function ObjectLogsByOthers(props) {
|
|
13
13
|
const { dataTestId = "", resourceSerialId, resourceTypeId } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
3
|
-
import {
|
|
3
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
4
4
|
import { P as PDFViewerRootStyled, a as PreviewPDFStyled } from "./slots/PDFViewerSlots.js";
|
|
5
5
|
import { P as PDFViewerSlots } from "./slots/PDFViewerEnum.js";
|
|
6
6
|
import { P as PDF_VIEWER_KEY_COMPONENT } from "./constants.js";
|
|
@@ -7,7 +7,7 @@ import { P as PrintingSystemRootStyled } from "./slots/PrintingSystemSlots.js";
|
|
|
7
7
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
8
8
|
import { P as PRINTING_SYSTEM_KEY_COMPONENT } from "./constants.js";
|
|
9
9
|
import { P as PrintingSystemSlots } from "./slots/PrintingSystemEnum.js";
|
|
10
|
-
import {
|
|
10
|
+
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { p as printingSystemStyles } from "./PrintingSystem.styles.js";
|
|
13
13
|
const PrintingSystem = forwardRef((props, ref) => {
|
|
@@ -3,7 +3,7 @@ import React, { useId } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
5
5
|
import { T as TEST_PROPS_DATA, C as COMPONENT_PREFIX, P as PROPERTY_VALUE_KEY_COMPONENT } from "./constants.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a as getNameDataTestId, g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
7
|
import { P as PropertyValueRootStyled, N as NameStyled, V as ValueStyled } from "./slots/PropertyValueSlots.js";
|
|
8
8
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
9
9
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|