@m4l/components 9.2.56 → 9.2.58-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/.storybook/decorators/WithWindowsToolsContext/WithContextWindowTools.d.ts +5 -0
- package/.storybook/utils/flattenDeep.d.ts +8 -0
- package/.storybook/utils/getStylesColorsByMode.d.ts +52 -4
- package/@types/augmentations.d.ts +1 -1
- package/@types/types.d.ts +10 -9
- package/components/AccountPopover/AccountPopover.js +3 -4
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +32 -32
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +13 -14
- package/components/AccountPopover/types.d.ts +2 -2
- package/components/AppBar/AppBar.js +6 -9
- package/components/AppBar/slots/AppBarSlots.d.ts +16 -16
- package/components/AppBar/styles.js +2 -1
- package/components/AppBar/types.d.ts +2 -2
- package/components/Chip/Chip.js +1 -1
- package/components/Chip/ChipStyles.js +12 -12
- package/components/Chip/slots/ChipSlots.d.ts +5 -5
- package/components/Color/Color.styles.js +11 -11
- package/components/Color/slots/ColorSlots.d.ts +4 -4
- package/components/CommonActions/components/ActionCancel/ActionCancel.js +1 -1
- package/components/CommonActions/components/ActionFormIntro/ActionFormIntro.js +0 -1
- package/components/CommonActions/components/ActionFormIntro/slots/ActionFormIntroSlots.d.ts +2 -2
- package/components/CommonActions/components/ActionFormIntro/types.d.ts +2 -2
- package/components/CommonActions/components/ActionIntro/ActionIntro.js +1 -1
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +1 -1
- package/components/DataGrid/DataGrid.js +36 -7
- package/components/DataGrid/Datagrid.styles.js +630 -0
- package/components/DataGrid/constants.d.ts +9 -0
- package/components/DataGrid/constants.js +9 -3
- package/components/DataGrid/contexts/DataGridContext/index.js +62 -13
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +5 -2
- package/components/DataGrid/dictionary.d.ts +2 -1
- package/components/DataGrid/dictionary.js +22 -21
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +0 -2
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js +2 -2
- package/components/DataGrid/icons.d.ts +1 -0
- package/components/DataGrid/icons.js +4 -3
- package/components/DataGrid/index.d.ts +1 -1
- package/components/DataGrid/slots/DataGridEnum.d.ts +6 -0
- package/components/DataGrid/slots/DataGridEnum.js +10 -2
- package/components/DataGrid/slots/DataGridSlot.d.ts +9 -0
- package/components/DataGrid/slots/DataGridSlot.js +35 -14
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +5 -0
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +30 -0
- package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +2 -0
- package/components/DataGrid/subcomponents/ControlNavigate/types.d.ts +7 -0
- package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +5 -0
- package/components/DataGrid/subcomponents/HeaderActions/index.js +40 -0
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.js +8 -7
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.js +2 -2
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.d.ts +7 -0
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.js +5 -3
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.js +4 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/index.d.ts +5 -0
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.js +7 -3
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +57 -47
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +6 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/types.d.ts +4 -0
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +8 -0
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/index.js +13 -7
- package/components/DataGrid/subcomponents/HeaderActions/types.d.ts +5 -0
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -4
- package/components/DataGrid/subcomponents/Table/index.js +4 -4
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +12 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +28 -13
- package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +3 -3
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +4 -2
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
- package/components/DataGrid/types.d.ts +20 -3
- package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +1 -1
- package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +3 -5
- package/components/DynamicFilter/DynamicFilter.styles.js +13 -13
- package/components/DynamicFilter/dictionary.d.ts +1 -0
- package/components/DynamicFilter/dictionary.js +2 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +17 -17
- package/components/DynamicFilter/store/DynamicFilterStore.js +2 -2
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -2
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +2 -3
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +3 -4
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
- package/components/DynamicFilter/types.d.ts +1 -1
- package/components/DynamicSort/DynamicSort.styles.js +13 -13
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +17 -17
- package/components/DynamicSort/store/DynamicSortStore.js +2 -2
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -2
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +4 -5
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -3
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -2
- package/components/GridLayout/styles.js +4 -82
- package/components/HelperError/HelperError.styles.js +4 -4
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/Icon.styles.js +10 -10
- package/components/Image/Image.js +1 -1
- package/components/Image/image.styles.js +1 -1
- package/components/Image/slots/ImageSlots.d.ts +12 -12
- package/components/Image/subcomponents/IntersectComponent/index.js +0 -1
- package/components/Image/types.d.ts +2 -2
- package/components/Label/Label.js +1 -1
- package/components/Label/Label.styles.js +22 -13
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.styles.js +3 -3
- package/components/LoadingError/LoadingError.js +1 -2
- package/components/LoadingError/LoadingError.styles.js +6 -3
- package/components/MenuActions/MenuActions.js +3 -3
- package/components/MenuActions/MenuActions.styles.js +4 -4
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +12 -12
- package/components/MenuActions/types.d.ts +3 -3
- package/components/NoItemSelected/NoItemSelected.js +23 -7
- package/components/NoItemSelected/NoItemSelected.styles.js +24 -17
- package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +7 -7
- package/components/NumberInput/NumberInput.styles.js +20 -20
- package/components/ObjectLogs/hooks/useDetailFormatter.js +3 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +20 -20
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -4
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -4
- package/components/ObjectLogs/types.d.ts +2 -2
- package/components/Pager/Pager.js +2 -3
- package/components/Pager/Pager.styles.js +13 -12
- package/components/Pager/index.d.ts +2 -0
- package/components/Pager/slots/PagerEnum.d.ts +2 -1
- package/components/Pager/slots/PagerEnum.js +1 -0
- package/components/Pager/slots/PagerSlots.d.ts +1 -0
- package/components/Pager/slots/PagerSlots.js +7 -2
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +16 -18
- package/components/Pager/subcomponents/PagerActions/PagerActions.js +4 -2
- package/components/Pager/subcomponents/PagerActions/types.d.ts +1 -0
- package/components/PaperForm/components/Header.js +2 -2
- package/components/PaperForm/slots/PaperFormSlots.d.ts +10 -10
- package/components/PaperForm/styles.js +7 -7
- package/components/PaperForm/types.d.ts +2 -2
- package/components/PrintingSystem/slots/PrintingSystemSlots.d.ts +42 -42
- package/components/PrintingSystem/subcomponents/BodyNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/DividerNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/FooterNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/GridNode/index.js +0 -5
- package/components/PrintingSystem/subcomponents/HeaderNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/PageNode/index.js +0 -1
- package/components/PrintingSystem/subcomponents/PaperNode/index.js +0 -5
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +0 -2
- package/components/PrintingSystem/subcomponents/SectionNode/index.js +0 -1
- package/components/PrintingSystem/types.d.ts +2 -2
- package/components/PropertyValue/PropertyValue.js +3 -4
- package/components/PropertyValue/PropertyValue.styles.js +36 -31
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
- package/components/ScrollBar/ScrollBar.d.ts +3 -3
- package/components/ScrollBar/ScrollBar.js +6 -45
- package/components/ScrollBar/ScrollBar.styles.js +7 -52
- package/components/ScrollBar/constants.d.ts +5 -2
- package/components/ScrollBar/constants.js +4 -4
- package/components/ScrollBar/index.d.ts +2 -0
- package/components/ScrollBar/index.js +1 -0
- package/components/ScrollBar/slots/ScrollBarSlots.d.ts +2 -5
- package/components/ScrollBar/slots/ScrollBarSlots.js +7 -13
- package/components/ScrollBar/slots/ScrollbarEnum.d.ts +3 -0
- package/components/ScrollBar/slots/ScrollbarEnum.js +7 -0
- package/components/ScrollBar/types.d.ts +19 -38
- package/components/SideBar/slots/SideBarSlots.d.ts +34 -34
- package/components/SideBar/subcomponents/ContentComponent/style.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentComponent/style.js +10 -7
- package/components/SideBar/subcomponents/ContentGroups/index.js +3 -3
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/styles.js +15 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -10
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +0 -1
- package/components/SideBar/subcomponents/FooterSidebar/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/HeaderSidebar/index.js +2 -2
- package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/SideBarDesktop/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +2 -2
- package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -1
- package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -2
- package/components/SideBar/types.d.ts +9 -2
- package/components/WindowBase/WindowBase.js +13 -7
- package/components/WindowBase/WindowBase.styles.js +233 -116
- package/components/WindowBase/icons.js +2 -2
- package/components/WindowBase/slots/WindowBaseEnum.d.ts +3 -3
- package/components/WindowBase/slots/WindowBaseEnum.js +2 -2
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +18 -23
- package/components/WindowBase/slots/WindowBaseSlots.js +13 -12
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +24 -12
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +5 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +9 -0
- package/components/WindowBase/types.d.ts +16 -0
- package/components/WindowConfirm/WindowConfirm.js +2 -3
- package/components/WindowConfirm/WindowConfirm.styles.js +5 -7
- package/components/areas/components/AreasAdmin/AreasAdmin.js +14 -20
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +24 -23
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +21 -21
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +2 -5
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +3 -4
- package/components/areas/components/AreasAdmin/types.d.ts +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +12 -4
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +7 -4
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +5 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +20 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +7 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +8 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +7 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +0 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/types.d.ts +6 -0
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +2 -9
- package/components/areas/contexts/AreasContext/helpers/helper.js +14 -16
- package/components/areas/contexts/AreasContext/index.js +1 -1
- package/components/areas/contexts/AreasContext/store.js +4 -4
- package/components/areas/contexts/AreasContext/types.d.ts +1 -1
- package/components/areas/icons.d.ts +2 -2
- package/components/areas/icons.js +4 -4
- package/components/commercial/SectionCommercial/classes/index.d.ts +2 -2
- package/components/commercial/SectionCommercial/classes/index.js +3 -3
- package/components/commercial/SectionCommercial/types.d.ts +1 -1
- package/components/extended/React-Resizable/helpers.d.ts +2 -9
- package/components/extended/React-Resizable/helpers.js +15 -13
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +0 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.d.ts +4 -4
- package/components/extended/React-Spinners/PropagateLoaderSpinner/types.d.ts +2 -2
- package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +3 -3
- package/components/extended/React-resizable-panels/SplitLayout.styles.js +6 -6
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +4 -4
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +3 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +1 -1
- package/components/formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.d.ts +2 -2
- package/components/formatters/PeriodFormatter/PeriodFormatter.styles.js +1 -1
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +2 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +2 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/hook-form/RHFDateTime/types.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
- package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +13 -17
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +2 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/types.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +2 -2
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +8 -8
- package/components/hook-form/RHFTextFieldPassword/types.d.ts +2 -2
- package/components/hook-form/RHFTimePicker/types.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +3 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +22 -22
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +9 -10
- package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.styles.js +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +20 -20
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +2 -7
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +5 -6
- package/components/hook-form/RHFormContext/styles.js +2 -1
- package/components/index.d.ts +2 -0
- package/components/mui_extended/Accordion/Accordion.js +32 -22
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +12 -12
- package/components/mui_extended/Accordion/styles.js +60 -33
- package/components/mui_extended/Accordion/types.d.ts +39 -6
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +3 -3
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +1 -1
- package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +3 -1
- package/components/mui_extended/Autocomplete/renderOptions/index.js +3 -2
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +14 -14
- package/components/mui_extended/Avatar/Avatar.js +1 -1
- package/components/mui_extended/Avatar/styles.js +3 -3
- package/components/mui_extended/Badge/Badge.js +1 -2
- package/components/mui_extended/Badge/Badge.styles.js +9 -9
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +2 -2
- package/components/mui_extended/Badge/types.d.ts +2 -2
- package/components/mui_extended/Button/Button.js +4 -5
- package/components/mui_extended/Button/ButtonStyles.js +37 -26
- package/components/mui_extended/CheckBox/CheckBox.js +2 -2
- package/components/mui_extended/CheckBox/CheckBox.styles.js +12 -12
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +12 -12
- package/components/mui_extended/CheckBox/types.d.ts +2 -2
- package/components/mui_extended/CircularProgress/CircularProgress.styles.js +5 -5
- package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +49 -49
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +8 -8
- package/components/mui_extended/Divider/Divider.js +1 -2
- package/components/mui_extended/Divider/Divider.styles.js +9 -9
- package/components/mui_extended/IconButton/IconButton.js +3 -2
- package/components/mui_extended/IconButton/IconButton.styles.js +21 -21
- package/components/mui_extended/IconButton/helpers/getIconButtonColors.d.ts +1 -1
- package/components/mui_extended/IconButton/helpers/getIconButtonColors.js +4 -4
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +4 -4
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.js +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.styles.js +5 -5
- package/components/mui_extended/MenuDivider/MenuDivider.js +1 -2
- package/components/mui_extended/MenuDivider/MenuDivider.styles.js +9 -9
- package/components/mui_extended/MenuItem/MenuItem.styles.js +10 -10
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +6 -6
- package/components/mui_extended/MenuItem/types.d.ts +8 -3
- package/components/mui_extended/NavLink/NavLink.js +1 -2
- package/components/mui_extended/NavLink/NavLink.styles.js +9 -9
- package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +4 -4
- package/components/mui_extended/Popover/Popover.js +0 -1
- package/components/mui_extended/Popover/slots/PopoverSlots.d.ts +2 -2
- package/components/mui_extended/Popover/types.d.ts +3 -3
- package/components/mui_extended/Popper/PopperStyles.js +1 -1
- package/components/mui_extended/Select/Select.js +2 -3
- package/components/mui_extended/Select/Select.styles.js +10 -10
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +11 -11
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Skeleton/Skeleton.js +2 -2
- package/components/mui_extended/Skeleton/skeleton.styles.js +6 -5
- package/components/mui_extended/Skeleton/types.d.ts +1 -1
- package/components/mui_extended/Stack/Stack.styles.js +3 -3
- package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.js +2 -0
- package/components/mui_extended/Tab/Tab.styles.js +27 -49
- package/components/mui_extended/Tab/types.d.ts +4 -0
- package/components/mui_extended/TabContent/TabContent.js +2 -2
- package/components/mui_extended/TabContent/TabContent.styles.js +13 -7
- package/components/mui_extended/TabContent/index.d.ts +1 -0
- package/components/mui_extended/TabContent/slots/TabContentSlots.d.ts +2 -2
- package/components/mui_extended/TabContent/types.d.ts +3 -2
- package/components/mui_extended/Tabs/Tabs.styles.js +2 -1
- package/components/mui_extended/TextField/TextField.js +11 -6
- package/components/mui_extended/TextField/TextField.styles.js +71 -68
- package/components/mui_extended/TextField/constants.d.ts +1 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +2 -1
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +1 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
- package/components/mui_extended/TextField/types.d.ts +7 -0
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +6 -6
- package/components/mui_extended/Tooltip/Tooltip.styles.js +1 -1
- package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +3 -3
- package/components/mui_extended/Typography/Typography.js +2 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +4 -4
- package/components/mui_extended/Typography/types.d.ts +3 -2
- package/components/mui_extended/Typography/typography.styles.js +12 -9
- package/components/mui_extended/index.d.ts +0 -2
- package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +4 -4
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +7 -9
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +2 -0
- package/hooks/useComponentSize/useComponentSize.d.ts +3 -3
- package/hooks/useComponentSize/useComponentSize.js +5 -2
- package/hooks/useDynamicFilterAndSort/icons.d.ts +2 -2
- package/hooks/useDynamicFilterAndSort/icons.js +2 -2
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -6
- package/hooks/useDynamicFilterAndSort/styles.js +8 -7
- package/hooks/useDynamicFilterAndSort/types.d.ts +2 -2
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +16 -10
- package/index.js +57 -55
- package/package.json +1 -1
- package/storybook/components/Chip/Chip.stories.d.ts +4 -0
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +16 -0
- package/storybook/components/Icon/Icon.stories.d.ts +4 -0
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +4 -0
- package/storybook/components/ObjectLogs/ObjectLogs.stories.d.ts +2 -2
- package/storybook/components/PropertyValue/PropertyValue.stories.d.ts +5 -1
- package/storybook/components/{extended/scrollBar → ScrollBar}/ScrollBar.stories.d.ts +2 -2
- package/storybook/components/WindowBase/windowBase.stories.d.ts +64 -7
- package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +72 -20
- package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +24 -24
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +11 -0
- package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +13 -0
- package/storybook/wrappers/LineGuide/LineGuide.d.ts +9 -0
- package/storybook/wrappers/LineGuide/styles.d.ts +1 -0
- package/storybook/wrappers/LineGuide/types.d.ts +5 -0
- package/components/DataGrid/styles.js +0 -484
- package/components/DataGrid/subcomponents/Actions/index.d.ts +0 -5
- package/components/DataGrid/subcomponents/Actions/index.js +0 -48
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +0 -6
- package/components/DataGrid/subcomponents/Actions/subcomponents/types.d.ts +0 -2
- package/components/DataGrid/subcomponents/Actions/types.d.ts +0 -13
- package/components/ScrollBar/slots/ScrollBarEnum.d.ts +0 -4
- package/components/ScrollBar/slots/ScrollBarEnum.js +0 -8
- package/components/ScrollBar/slots/index.d.ts +0 -2
- package/storybook/components/extended/scrollBar/ScrollBarDecorator.d.ts +0 -11
- /package/components/DataGrid/{styles.d.ts → Datagrid.styles.d.ts} +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/types.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/types.d.ts +0 -0
- /package/components/{ScrollBar/slots → Pager}/index.js +0 -0
|
@@ -5,12 +5,13 @@ import { u as useFilters } from "../../../../hooks/useFilters.js";
|
|
|
5
5
|
import { u as useModalSettings } from "../hooks/useModalSettings/index.js";
|
|
6
6
|
import { p as pathIcons } from "../../../../icons.js";
|
|
7
7
|
import { M as MenuActions } from "../../../../../MenuActions/MenuActions.js";
|
|
8
|
-
const MobileMenuActions = () => {
|
|
8
|
+
const MobileMenuActions = (props) => {
|
|
9
|
+
const { columns } = props;
|
|
9
10
|
const { getLabel } = useModuleDictionary();
|
|
10
11
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
11
|
-
const { currentRowHeightVariant, setRowHeightVariant } = useDataGrid();
|
|
12
|
+
const { currentRowHeightVariant, setRowHeightVariant, size } = useDataGrid();
|
|
12
13
|
const { activeFilters, setActiveFilters } = useFilters();
|
|
13
|
-
const modalSettings = useModalSettings();
|
|
14
|
+
const modalSettings = useModalSettings(size, columns);
|
|
14
15
|
const toggleIcon = () => {
|
|
15
16
|
setActiveFilters(!activeFilters);
|
|
16
17
|
};
|
|
@@ -52,6 +53,7 @@ const MobileMenuActions = () => {
|
|
|
52
53
|
return /* @__PURE__ */ jsx(
|
|
53
54
|
MenuActions,
|
|
54
55
|
{
|
|
56
|
+
className: "mobile-menu-actions",
|
|
55
57
|
icon: `${host_static_assets}/${environment_assets}/${pathIcons.menu}`,
|
|
56
58
|
arrowType: "no-arrow",
|
|
57
59
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.js
RENAMED
|
@@ -2,14 +2,14 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
4
|
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
5
|
-
import { R as RowsCountRootStyled,
|
|
5
|
+
import { R as RowsCountRootStyled, e as RowsCountLabelStyled, f as RowsCountValueStyled } from "../../../../slots/DataGridSlot.js";
|
|
6
6
|
function RowsCount() {
|
|
7
|
-
const { rowsCount } = useDataGrid();
|
|
7
|
+
const { rowsCount, size } = useDataGrid();
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
9
9
|
const isSkeleton = useModuleSkeleton();
|
|
10
10
|
return /* @__PURE__ */ jsx(RowsCountRootStyled, { children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11
|
-
/* @__PURE__ */ jsx(RowsCountLabelStyled, { children: getLabel("data_grid.rows") }),
|
|
12
|
-
/* @__PURE__ */ jsx(RowsCountValueStyled, { children: rowsCount })
|
|
11
|
+
/* @__PURE__ */ jsx(RowsCountLabelStyled, { ownerState: { size }, children: getLabel("data_grid.rows") }),
|
|
12
|
+
/* @__PURE__ */ jsx(RowsCountValueStyled, { ownerState: { size }, children: rowsCount })
|
|
13
13
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14
14
|
/* @__PURE__ */ jsx(RowsCountLabelStyled, { children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "40px", height: "16px" }) }),
|
|
15
15
|
/* @__PURE__ */ jsx(RowsCountValueStyled, { children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "20px", height: "16px" }) })
|
package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.js
RENAMED
|
@@ -3,9 +3,12 @@ import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButt
|
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { u as useModalSettings } from "../hooks/useModalSettings/index.js";
|
|
5
5
|
import { p as pathIcons } from "../../../../icons.js";
|
|
6
|
-
|
|
6
|
+
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
7
|
+
function Settings(props) {
|
|
8
|
+
const { columns } = props;
|
|
7
9
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
8
|
-
const
|
|
10
|
+
const { size } = useDataGrid();
|
|
11
|
+
const modalSettings = useModalSettings(size, columns);
|
|
9
12
|
const { getLabel } = useModuleDictionary();
|
|
10
13
|
return /* @__PURE__ */ jsx(
|
|
11
14
|
IconButton,
|
|
@@ -13,7 +16,8 @@ function Settings() {
|
|
|
13
16
|
tooltip: getLabel("data_grid.tooltip_settings"),
|
|
14
17
|
onClick: modalSettings,
|
|
15
18
|
"aria-label": "settings",
|
|
16
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}
|
|
19
|
+
icon: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`,
|
|
20
|
+
"data-testid": "settings-button"
|
|
17
21
|
}
|
|
18
22
|
);
|
|
19
23
|
}
|
|
@@ -4,28 +4,35 @@ import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
|
4
4
|
import DataGrid from "react-data-grid";
|
|
5
5
|
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
6
6
|
import { p as pathIcons } from "../../../../../../icons.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { g as ColumnsConfigWrapperStyled, h as ColumnsConfigDataGridStyled, i as ColumnsConfigSelColumnsStyled, T as TableWrapperDataGridStyled, j as ColumnsConfigActiosStyled } from "../../../../../../slots/DataGridSlot.js";
|
|
8
|
+
import { D as DICTIONARY } from "../../../../../../dictionary.js";
|
|
9
9
|
import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
10
|
-
function getRowsFromColumnsConfig(columnsConfig) {
|
|
11
|
-
return columnsConfig.filter((
|
|
12
|
-
(
|
|
13
|
-
key:
|
|
14
|
-
name:
|
|
15
|
-
visible:
|
|
16
|
-
frozen:
|
|
17
|
-
originalIndex:
|
|
18
|
-
originalFrozen:
|
|
19
|
-
originalVisible:
|
|
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
20
|
})
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
+
const getAlignClass = (align) => {
|
|
24
|
+
const cellClass = align !== void 0 ? `rdg-cell-align-${align}` : "";
|
|
25
|
+
return {
|
|
26
|
+
cellClass,
|
|
27
|
+
headerCellClass: cellClass
|
|
28
|
+
};
|
|
29
|
+
};
|
|
23
30
|
const ColumnsConfig = forwardRef((props, ref) => {
|
|
24
31
|
const refdata_grid = useRef(null);
|
|
25
|
-
const { onCloseSettings, columnsConfig, onChangeColumnsConfig, rowHeight } = props;
|
|
32
|
+
const { onCloseSettings, columnsConfig, onChangeColumnsConfig, rowHeight, classes, size, columns } = props;
|
|
26
33
|
const { getLabel } = useModuleDictionary();
|
|
27
34
|
const [isInit, setIsInit] = useState(true);
|
|
28
|
-
const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig));
|
|
35
|
+
const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig, columns));
|
|
29
36
|
const [selRows, setSelRows] = useState(() => /* @__PURE__ */ new Set());
|
|
30
37
|
const divRef = useRef(null);
|
|
31
38
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -37,33 +44,34 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
37
44
|
() => [
|
|
38
45
|
{
|
|
39
46
|
key: "name",
|
|
40
|
-
name: getLabel(
|
|
47
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMN_NAME),
|
|
41
48
|
width: 220,
|
|
42
49
|
resizable: true,
|
|
43
|
-
type: "string"
|
|
50
|
+
type: "string",
|
|
51
|
+
...getAlignClass("left")
|
|
44
52
|
},
|
|
45
53
|
{
|
|
46
54
|
key: "originalIndex",
|
|
47
|
-
name: getLabel(
|
|
55
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMN_POSITION),
|
|
48
56
|
width: 50,
|
|
49
57
|
type: "number",
|
|
50
|
-
|
|
58
|
+
...getAlignClass("center")
|
|
51
59
|
},
|
|
52
60
|
{
|
|
53
61
|
key: "visible",
|
|
54
|
-
name: getLabel(
|
|
62
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMN_VISIBLE),
|
|
55
63
|
width: 80,
|
|
56
64
|
type: "boolean",
|
|
57
65
|
formatter: ColumnInteractiveCheckFormatter,
|
|
58
|
-
|
|
66
|
+
...getAlignClass("center")
|
|
59
67
|
},
|
|
60
68
|
{
|
|
61
69
|
key: "frozen",
|
|
62
|
-
name: getLabel(
|
|
70
|
+
name: getLabel(DICTIONARY.SETTINGS_COLUMNS_FROZEN),
|
|
63
71
|
width: 80,
|
|
64
72
|
type: "boolean",
|
|
65
73
|
formatter: ColumnInteractiveCheckFormatter,
|
|
66
|
-
|
|
74
|
+
...getAlignClass("center")
|
|
67
75
|
}
|
|
68
76
|
],
|
|
69
77
|
[getLabel]
|
|
@@ -86,7 +94,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
86
94
|
};
|
|
87
95
|
useEffect(() => {
|
|
88
96
|
if (isInit === false) {
|
|
89
|
-
setRows(getRowsFromColumnsConfig(columnsConfig));
|
|
97
|
+
setRows(getRowsFromColumnsConfig(columnsConfig, columns));
|
|
90
98
|
}
|
|
91
99
|
setIsInit(false);
|
|
92
100
|
}, [columnsConfig]);
|
|
@@ -176,28 +184,30 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
176
184
|
setSelRows(mySet);
|
|
177
185
|
};
|
|
178
186
|
return /* @__PURE__ */ jsxs(ColumnsConfigWrapperStyled, { ref: divRef, children: [
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
187
|
+
/* @__PURE__ */ jsxs(ColumnsConfigDataGridStyled, { children: [
|
|
188
|
+
/* @__PURE__ */ jsx(ColumnsConfigSelColumnsStyled, { ownerState: { size }, children: getLabel(DICTIONARY.SETTINGS_SEL_COLUMNS) }),
|
|
189
|
+
/* @__PURE__ */ jsx(TableWrapperDataGridStyled, { className: classes?.tableWrapperDataGrid, ownerState: { size }, children: /* @__PURE__ */ jsx(
|
|
190
|
+
DataGrid,
|
|
191
|
+
{
|
|
192
|
+
ref: refdata_grid,
|
|
193
|
+
rowHeight,
|
|
194
|
+
columns: columnsdata_grid,
|
|
195
|
+
rows,
|
|
196
|
+
onRowsChange: onInternalRowsChange,
|
|
197
|
+
selectedRows: selRows,
|
|
198
|
+
onSelectedRowsChange: onInternalSelectedRowsChange,
|
|
199
|
+
onRowClick,
|
|
200
|
+
rowKeyGetter: (row) => row.key,
|
|
201
|
+
cellNavigationMode: "CHANGE_ROW",
|
|
202
|
+
defaultColumnOptions: { resizable: true, sortable: true }
|
|
203
|
+
}
|
|
204
|
+
) })
|
|
205
|
+
] }),
|
|
196
206
|
/* @__PURE__ */ jsxs(ColumnsConfigActiosStyled, { children: [
|
|
197
207
|
/* @__PURE__ */ jsx(
|
|
198
208
|
IconButton,
|
|
199
209
|
{
|
|
200
|
-
tooltip: getLabel(
|
|
210
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_FIRST),
|
|
201
211
|
onClick: handleMoveFirst,
|
|
202
212
|
"aria-label": "move first place",
|
|
203
213
|
disabled: rowSelectedIndex < 1,
|
|
@@ -207,7 +217,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
207
217
|
/* @__PURE__ */ jsx(
|
|
208
218
|
IconButton,
|
|
209
219
|
{
|
|
210
|
-
tooltip: getLabel(
|
|
220
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_UP),
|
|
211
221
|
onClick: () => handleMoveUpDownd(-1),
|
|
212
222
|
"aria-label": "move up place",
|
|
213
223
|
disabled: rowSelectedIndex < 1,
|
|
@@ -217,7 +227,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
217
227
|
/* @__PURE__ */ jsx(
|
|
218
228
|
IconButton,
|
|
219
229
|
{
|
|
220
|
-
tooltip: getLabel(
|
|
230
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_LAST),
|
|
221
231
|
onClick: handleMoveLast,
|
|
222
232
|
"aria-label": "move last place",
|
|
223
233
|
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
@@ -227,7 +237,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
227
237
|
/* @__PURE__ */ jsx(
|
|
228
238
|
IconButton,
|
|
229
239
|
{
|
|
230
|
-
tooltip: getLabel(
|
|
240
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_MOVE_DOWN),
|
|
231
241
|
onClick: () => handleMoveUpDownd(1),
|
|
232
242
|
"aria-label": "move down place",
|
|
233
243
|
disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
|
|
@@ -237,7 +247,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
237
247
|
/* @__PURE__ */ jsx(
|
|
238
248
|
IconButton,
|
|
239
249
|
{
|
|
240
|
-
tooltip: getLabel(
|
|
250
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_VISIBLE_ALL),
|
|
241
251
|
onClick: checkAll,
|
|
242
252
|
"aria-label": "check visible all",
|
|
243
253
|
icon: `${host_static_assets}/${environment_assets}/${pathIcons.checkAll}`
|
|
@@ -246,7 +256,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
246
256
|
/* @__PURE__ */ jsx(
|
|
247
257
|
IconButton,
|
|
248
258
|
{
|
|
249
|
-
tooltip: getLabel(
|
|
259
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_NO_VISIBLE_ALL),
|
|
250
260
|
onClick: unCheckAll,
|
|
251
261
|
"aria-label": "un check all",
|
|
252
262
|
icon: `${host_static_assets}/${environment_assets}/${pathIcons.uncheckAll}`
|
|
@@ -255,7 +265,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
255
265
|
/* @__PURE__ */ jsx(
|
|
256
266
|
IconButton,
|
|
257
267
|
{
|
|
258
|
-
tooltip: getLabel(
|
|
268
|
+
tooltip: getLabel(DICTIONARY.SETTINGS_RESTORE),
|
|
259
269
|
onClick: restoreAll,
|
|
260
270
|
"aria-label": "Restore columns",
|
|
261
271
|
icon: `${host_static_assets}/${environment_assets}/${pathIcons.restoreColumns}`
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { IConfigColumn } from '../../../../../../contexts/DataGridContext/types';
|
|
1
|
+
import { DataGridContextProps, IConfigColumn } from '../../../../../../contexts/DataGridContext/types';
|
|
2
|
+
import { GridProps } from '../../../../../../types';
|
|
3
|
+
import { Column } from 'react-data-grid';
|
|
2
4
|
export interface Row {
|
|
3
5
|
key: string;
|
|
4
6
|
name: string;
|
|
@@ -16,9 +18,12 @@ export type ColumnsConfigRef = {
|
|
|
16
18
|
};
|
|
17
19
|
export interface ConfigProps {
|
|
18
20
|
onCloseSettings: () => void;
|
|
21
|
+
columns: readonly Column<any, any>[];
|
|
19
22
|
columnsConfig: IConfigColumn[];
|
|
20
23
|
onChangeColumnsConfig: (newColumnsConfig: IConfigColumn[]) => void;
|
|
21
24
|
rowHeight: number;
|
|
25
|
+
classes: DataGridContextProps<unknown, unknown>['classes'];
|
|
26
|
+
size: GridProps<unknown, unknown>['size'];
|
|
22
27
|
}
|
|
23
28
|
export interface CheckFormatterProps {
|
|
24
29
|
key: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -5,15 +5,15 @@ import { useRef, useCallback } from "react";
|
|
|
5
5
|
import { u as useDataGrid } from "../../../../../hooks/useDataGrid.js";
|
|
6
6
|
import { u as useModal } from "../../../../../../../hooks/useModal/index.js";
|
|
7
7
|
import { C as ColumnsConfig } from "../../Settings/subcomponents/ColumnsConfig/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { k as ContentModalSettingStyled, D as DataGridRootStyled } from "../../../../../slots/DataGridSlot.js";
|
|
9
9
|
import { p as pathIcons } from "../../../../../icons.js";
|
|
10
10
|
import { A as ActionsContainer } from "../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
11
11
|
import { W as WindowBase } from "../../../../../../WindowBase/WindowBase.js";
|
|
12
12
|
import { A as ActionCancel } from "../../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
13
13
|
import { A as ActionIntro } from "../../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
14
|
-
const useModalSettings = () => {
|
|
14
|
+
const useModalSettings = (size, columns) => {
|
|
15
15
|
const { openModal, closeModal } = useModal();
|
|
16
|
-
const { columnsConfig, onChangeColumnsConfig, currentRowHeight } = useDataGrid();
|
|
16
|
+
const { columnsConfig, onChangeColumnsConfig, currentRowHeight, classes } = useDataGrid();
|
|
17
17
|
const { getLabel } = useModuleDictionary();
|
|
18
18
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
19
19
|
const isMobile = useIsMobile();
|
|
@@ -40,17 +40,23 @@ const useModalSettings = () => {
|
|
|
40
40
|
title: getLabel("data_grid.settings_title"),
|
|
41
41
|
iconUrl: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`,
|
|
42
42
|
onClose: closeModal,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
className: "settings-modal",
|
|
44
|
+
variant: "outlined",
|
|
45
|
+
type: "modal",
|
|
46
|
+
children: /* @__PURE__ */ jsxs(ContentModalSettingStyled, { classes: classes?.contentModalSetting, children: [
|
|
47
|
+
/* @__PURE__ */ jsx(DataGridRootStyled, { children: /* @__PURE__ */ jsx(
|
|
45
48
|
ColumnsConfig,
|
|
46
49
|
{
|
|
47
50
|
ref,
|
|
48
51
|
rowHeight: currentRowHeight,
|
|
49
52
|
columnsConfig,
|
|
50
53
|
onChangeColumnsConfig: handleColumnsSetting,
|
|
51
|
-
onCloseSettings
|
|
54
|
+
onCloseSettings,
|
|
55
|
+
classes,
|
|
56
|
+
size,
|
|
57
|
+
columns
|
|
52
58
|
}
|
|
53
|
-
) })
|
|
59
|
+
) }),
|
|
54
60
|
/* @__PURE__ */ jsxs(ActionsContainer, { children: [
|
|
55
61
|
/* @__PURE__ */ jsx(ActionCancel, { onClick: closeModal }),
|
|
56
62
|
/* @__PURE__ */ jsx(ActionIntro, { onClick: onClickIntro })
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useState, useEffect, useMemo } from "react";
|
|
2
2
|
import { g as getDragHeaderRenderer } from "./getDragHeaderRenderer.js";
|
|
3
3
|
import { A as ActionsColumn } from "../subcomponents/ActionsColumn.js";
|
|
4
|
-
import {
|
|
4
|
+
import { f as filterColumnClassName, S as SelectColumn } from "../subcomponents/SelectColumn.js";
|
|
5
5
|
import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
6
6
|
import { u as useFilters } from "../../../hooks/useFilters.js";
|
|
7
7
|
import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
|
|
8
8
|
import { S as SkeletonFormatter } from "../subcomponents/SkeletonFormatter/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { c as DATAGRID_SELECT_COLUMN_KEY } from "../../../constants.js";
|
|
10
10
|
function getComparator(columns, sortColumn) {
|
|
11
11
|
const column = columns.find((d) => d.key === sortColumn);
|
|
12
12
|
let typeOrder = "string";
|
|
@@ -119,9 +119,11 @@ const useSortColumnsRows = (sourceColumns, sourceRows) => {
|
|
|
119
119
|
const finalColumns = useMemo(() => {
|
|
120
120
|
const DragAndDropHeaderRenderer = getDragHeaderRenderer(onChangeColumnsOrder);
|
|
121
121
|
return columns.map((c) => {
|
|
122
|
+
const cellClass = c.align !== void 0 ? `rdg-cell-align-${c.align}` : `rdg-cell-align-${getAligByType(c.type)}`;
|
|
122
123
|
const newColumn = {
|
|
123
124
|
...c,
|
|
124
|
-
cellClass
|
|
125
|
+
cellClass,
|
|
126
|
+
headerCellClass: cellClass
|
|
125
127
|
};
|
|
126
128
|
if (newColumn.key === DATAGRID_SELECT_COLUMN_KEY || newColumn.isDraggable !== void 0 && newColumn.isDraggable === false) {
|
|
127
129
|
return newColumn;
|
|
@@ -134,7 +136,7 @@ const useSortColumnsRows = (sourceColumns, sourceRows) => {
|
|
|
134
136
|
newColumn.withinHeaderRenderer = newColumn.headerRenderer;
|
|
135
137
|
}
|
|
136
138
|
if ((newColumn?.withFilter === void 0 || newColumn.withFilter === true) && activeFilters) {
|
|
137
|
-
newColumn.headerCellClass = filterColumnClassName;
|
|
139
|
+
newColumn.headerCellClass = `${newColumn.headerCellClass} ${filterColumnClassName}`.trim();
|
|
138
140
|
}
|
|
139
141
|
newColumn.headerRenderer = DragAndDropHeaderRenderer;
|
|
140
142
|
return newColumn;
|
|
@@ -4,11 +4,11 @@ import DataGrid from "react-data-grid";
|
|
|
4
4
|
import { DndProvider } from "react-dnd";
|
|
5
5
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
6
6
|
import { C as CheckboxFormatter } from "./subcomponents/CheckboxFormatter.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as filterHeight } from "./subcomponents/SelectColumn.js";
|
|
8
8
|
import { u as useSortColumnsRows } from "./hooks/useSortColumnsRows.js";
|
|
9
9
|
import { u as useFilters } from "../../hooks/useFilters.js";
|
|
10
10
|
import { u as useDataGrid } from "../../hooks/useDataGrid.js";
|
|
11
|
-
import {
|
|
11
|
+
import { l as TableContainerStyled, T as TableWrapperDataGridStyled } from "../../slots/DataGridSlot.js";
|
|
12
12
|
function Table(props) {
|
|
13
13
|
const { columns, rows, onRowsChange, rowKeyGetter, selectedRows, onSelectedRowsChange } = props;
|
|
14
14
|
const { finalColumns, sortColumns, setSortColumns, finalRows } = useSortColumnsRows(
|
|
@@ -16,7 +16,7 @@ function Table(props) {
|
|
|
16
16
|
rows
|
|
17
17
|
);
|
|
18
18
|
const { activeFilters } = useFilters();
|
|
19
|
-
const { onChangeColumnWidth, setRowsCount, currentRowHeight, currentRowHeaderHeight } = useDataGrid();
|
|
19
|
+
const { onChangeColumnWidth, setRowsCount, currentRowHeight, currentRowHeaderHeight, size } = useDataGrid();
|
|
20
20
|
const ref_data_grid = useRef(null);
|
|
21
21
|
const onRowClick = (row) => {
|
|
22
22
|
if (selectedRows && onSelectedRowsChange) {
|
|
@@ -50,7 +50,7 @@ function Table(props) {
|
|
|
50
50
|
const onChangeSort = (newSortColumns) => {
|
|
51
51
|
setSortColumns(newSortColumns);
|
|
52
52
|
};
|
|
53
|
-
return /* @__PURE__ */ jsx(TableContainerStyled, { id: "WrapperTable", children: /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { children: /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsx(
|
|
53
|
+
return /* @__PURE__ */ jsx(TableContainerStyled, { id: "WrapperTable", children: /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { ownerState: { size }, children: /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsx(
|
|
54
54
|
DataGrid,
|
|
55
55
|
{
|
|
56
56
|
className: "rdg-light",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
|
|
3
3
|
import { useTheme } from "@mui/material";
|
|
4
|
-
import {
|
|
4
|
+
import { d as DATAGRID_SEMANTIC_WIDTHS, e as DATAGRID_ACTIONS_COLUMN_KEY } from "../../../constants.js";
|
|
5
5
|
import { M as MenuActions } from "../../../../MenuActions/MenuActions.js";
|
|
6
6
|
function ActionsFormatter(props) {
|
|
7
7
|
const { rowActionsGetter } = useDataGrid();
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SvgIcon } from "@mui/material";
|
|
3
3
|
function CheckboxIcon(props) {
|
|
4
|
-
return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */
|
|
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
|
+
] }) });
|
|
5
8
|
}
|
|
6
9
|
function CheckboxCheckedIcon(props) {
|
|
7
|
-
return /* @__PURE__ */
|
|
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
|
+
] });
|
|
8
17
|
}
|
|
9
18
|
function CheckboxIndeterminateIcon(props) {
|
|
10
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" }) });
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
+
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
4
|
import { useDrag, useDrop } from "react-dnd";
|
|
5
5
|
import { HeaderRenderer } from "react-data-grid";
|
|
6
6
|
import { u as useFocusRef } from "../hooks/useFocusRef.js";
|
|
7
7
|
import { u as useFilters } from "../../../hooks/useFilters.js";
|
|
8
|
-
import {
|
|
8
|
+
import { m as DraggableHeaderRootStyled, n as DraggableWrapperInputBaseStyled, I as IconSearchStyled, H as HeaderInputBaseStyled } from "../../../slots/DataGridSlot.js";
|
|
9
|
+
import { p as pathIcons } from "../../../icons.js";
|
|
10
|
+
import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
|
|
9
11
|
function DraggableHeaderRenderer(props) {
|
|
10
12
|
const { onColumnsReorder, column, isCellSelected, ...others } = props;
|
|
11
13
|
const { ref, tabIndex } = useFocusRef(isCellSelected);
|
|
12
14
|
const { getLabel } = useModuleDictionary();
|
|
15
|
+
const { size, classes } = useDataGrid();
|
|
16
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
17
|
const { activeFilters, filters, onChangeFilter } = useFilters();
|
|
14
18
|
const [filter, setFilter] = useState(filters?.get(column.key) || "");
|
|
15
19
|
const [{ isDragging }, drag] = useDrag({
|
|
@@ -52,6 +56,7 @@ function DraggableHeaderRenderer(props) {
|
|
|
52
56
|
return /* @__PURE__ */ jsxs(
|
|
53
57
|
DraggableHeaderRootStyled,
|
|
54
58
|
{
|
|
59
|
+
className: classes?.draggableHeaderRoot,
|
|
55
60
|
ref: (newRef) => {
|
|
56
61
|
drag(newRef);
|
|
57
62
|
drop(newRef);
|
|
@@ -62,17 +67,27 @@ function DraggableHeaderRenderer(props) {
|
|
|
62
67
|
},
|
|
63
68
|
children: [
|
|
64
69
|
/* @__PURE__ */ jsx(HeaderRenderer, { column: newColumn, isCellSelected, ...others }),
|
|
65
|
-
activeFilters && (column?.withFilter === void 0 || column.withFilter === true) && /* @__PURE__ */
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
activeFilters && (column?.withFilter === void 0 || column.withFilter === true) && /* @__PURE__ */ jsxs(DraggableWrapperInputBaseStyled, { children: [
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
IconSearchStyled,
|
|
73
|
+
{
|
|
74
|
+
src: `${host_static_assets}/${environment_assets}/${pathIcons.search}`,
|
|
75
|
+
color: "text.secondary",
|
|
76
|
+
size
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsx(
|
|
80
|
+
HeaderInputBaseStyled,
|
|
81
|
+
{
|
|
82
|
+
inputRef: ref,
|
|
83
|
+
placeholder: getLabel("data_grid.filter_holder"),
|
|
84
|
+
tabIndex,
|
|
85
|
+
type: "text",
|
|
86
|
+
onChange: handleChange,
|
|
87
|
+
value: filter
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] })
|
|
76
91
|
]
|
|
77
92
|
}
|
|
78
93
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRowSelection, SelectCellFormatter } from "react-data-grid";
|
|
3
3
|
import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as DATAGRID_SELECT_COLUMN_KEY } from "../../../constants.js";
|
|
5
5
|
const filterColumnClassName = "filter-cell";
|
|
6
6
|
const filterHeight = 35;
|
|
7
7
|
function SelectGroupFormatter(props) {
|
|
@@ -74,6 +74,6 @@ const SelectColumn = {
|
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
76
|
SelectColumn as S,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
filterHeight as a,
|
|
78
|
+
filterColumnClassName as f
|
|
79
79
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { u as useDataGrid } from "../../../../hooks/useDataGrid.js";
|
|
3
|
+
import { S as Skeleton } from "../../../../../mui_extended/Skeleton/Skeleton.js";
|
|
3
4
|
import { W as WrapperSkeletonStyled } from "../../../../slots/DataGridSlot.js";
|
|
4
5
|
function SkeletonFormatter() {
|
|
5
|
-
|
|
6
|
+
const { size } = useDataGrid();
|
|
7
|
+
return /* @__PURE__ */ jsx(WrapperSkeletonStyled, { ownerState: { size }, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "100%" }) });
|
|
6
8
|
}
|
|
7
9
|
export {
|
|
8
10
|
SkeletonFormatter as S
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { o as InputTextEditorStyled } from "../../../slots/DataGridSlot.js";
|
|
3
3
|
function autoFocusAndSelect(input) {
|
|
4
4
|
input?.focus();
|
|
5
5
|
input?.select();
|