@m4l/components 9.2.56-beta.2 → 9.2.57
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/getStylesColorsByMode.d.ts +4 -4
- package/@types/augmentations.d.ts +1 -1
- package/@types/types.d.ts +9 -10
- package/components/AccountPopover/AccountPopover.js +4 -3
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +32 -32
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +14 -13
- package/components/AccountPopover/types.d.ts +2 -2
- package/components/AppBar/AppBar.js +9 -6
- package/components/AppBar/slots/AppBarSlots.d.ts +16 -16
- package/components/AppBar/styles.js +1 -2
- package/components/AppBar/types.d.ts +2 -2
- package/components/Chip/ChipStyles.js +12 -12
- package/components/Chip/slots/ChipSlots.d.ts +6 -6
- package/components/Color/Color.styles.js +11 -11
- package/components/Color/slots/ColorSlots.d.ts +5 -5
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormIntro/ActionFormIntro.js +1 -0
- 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/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DataGrid/DataGrid.js +8 -29
- package/components/DataGrid/constants.d.ts +0 -1
- package/components/DataGrid/constants.js +0 -2
- package/components/DataGrid/contexts/DataGridContext/index.js +44 -31
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +1 -6
- package/components/DataGrid/dictionary.d.ts +2 -1
- package/components/DataGrid/dictionary.js +22 -21
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +2 -0
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js +2 -2
- package/components/DataGrid/icons.d.ts +0 -1
- package/components/DataGrid/icons.js +3 -4
- package/components/DataGrid/slots/DataGridEnum.d.ts +0 -6
- package/components/DataGrid/slots/DataGridEnum.js +2 -10
- package/components/DataGrid/slots/DataGridSlot.d.ts +0 -9
- package/components/DataGrid/slots/DataGridSlot.js +14 -35
- package/components/DataGrid/styles.js +484 -0
- package/components/DataGrid/subcomponents/Actions/index.d.ts +5 -0
- package/components/DataGrid/subcomponents/Actions/index.js +49 -0
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Density/index.js +7 -8
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Filter/index.js +2 -2
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +7 -0
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/MobileMenuActions/index.js +4 -4
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/RowsCount/index.js +4 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +5 -0
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/index.js +4 -6
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +47 -57
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +3 -4
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/types.d.ts +4 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +7 -0
- package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/hooks/useModalSettings/index.js +7 -11
- package/components/DataGrid/subcomponents/Actions/types.d.ts +16 -0
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +5 -5
- package/components/DataGrid/subcomponents/Table/index.js +4 -4
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +3 -12
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +13 -28
- package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +2 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +2 -4
- package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
- package/components/DataGrid/types.d.ts +3 -20
- package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +1 -1
- package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +5 -3
- 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 +19 -19
- 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 +3 -2
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +4 -3
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -0
- package/components/DynamicFilter/types.d.ts +1 -1
- package/components/DynamicSort/DynamicSort.styles.js +13 -13
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +19 -19
- package/components/DynamicSort/store/DynamicSortStore.js +2 -2
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -2
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -0
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +5 -4
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +3 -2
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -2
- package/components/GridLayout/styles.js +82 -4
- 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 +1 -0
- package/components/Image/types.d.ts +2 -2
- package/components/Label/Label.styles.js +11 -11
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.styles.js +3 -3
- package/components/LoadingError/LoadingError.js +2 -1
- 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/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NoItemSelected/NoItemSelected.js +5 -3
- package/components/NoItemSelected/NoItemSelected.styles.js +4 -4
- package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +7 -7
- package/components/NumberInput/NumberInput.styles.js +20 -20
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/hooks/useDetailFormatter.js +2 -3
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +20 -20
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +3 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +3 -1
- package/components/ObjectLogs/types.d.ts +2 -2
- package/components/Pager/Pager.js +3 -2
- package/components/Pager/Pager.styles.js +12 -13
- package/components/Pager/slots/PagerEnum.d.ts +1 -2
- package/components/Pager/slots/PagerEnum.js +0 -1
- package/components/Pager/slots/PagerSlots.d.ts +0 -1
- package/components/Pager/slots/PagerSlots.js +2 -7
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +18 -16
- package/components/Pager/subcomponents/PagerActions/PagerActions.js +2 -4
- package/components/Pager/subcomponents/PagerActions/types.d.ts +0 -1
- 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 +1 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -0
- package/components/PrintingSystem/subcomponents/DividerNode/index.js +1 -0
- package/components/PrintingSystem/subcomponents/FooterNode/index.js +1 -0
- package/components/PrintingSystem/subcomponents/GridNode/index.js +5 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/index.js +1 -0
- package/components/PrintingSystem/subcomponents/PageNode/index.js +1 -0
- package/components/PrintingSystem/subcomponents/PaperNode/index.js +5 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +2 -0
- package/components/PrintingSystem/subcomponents/SectionNode/index.js +1 -0
- package/components/PrintingSystem/types.d.ts +2 -2
- package/components/PropertyValue/PropertyValue.js +4 -3
- package/components/PropertyValue/PropertyValue.styles.js +3 -3
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
- package/components/ScrollBar/ScrollBar.d.ts +3 -3
- package/components/ScrollBar/ScrollBar.js +45 -5
- package/components/ScrollBar/ScrollBar.styles.js +52 -5
- package/components/ScrollBar/constants.d.ts +2 -4
- package/components/ScrollBar/constants.js +5 -2
- package/components/ScrollBar/slots/ScrollBarEnum.d.ts +4 -0
- package/components/ScrollBar/slots/ScrollBarEnum.js +8 -0
- package/components/ScrollBar/slots/ScrollBarSlots.d.ts +6 -1
- package/components/ScrollBar/slots/ScrollBarSlots.js +13 -7
- package/components/ScrollBar/slots/index.d.ts +2 -0
- package/components/ScrollBar/types.d.ts +42 -12
- 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 +4 -4
- 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 +2 -11
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +10 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +1 -0
- 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 +1 -0
- package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -2
- package/components/SideBar/types.d.ts +2 -9
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/WindowBase/WindowBase.js +6 -8
- package/components/WindowBase/WindowBase.styles.js +107 -208
- 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 +23 -18
- package/components/WindowBase/slots/WindowBaseSlots.js +12 -13
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +12 -22
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +2 -5
- 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 +0 -9
- package/components/WindowBase/types.d.ts +0 -10
- package/components/WindowConfirm/WindowConfirm.js +3 -2
- package/components/WindowConfirm/WindowConfirm.styles.js +4 -4
- package/components/areas/components/AreasAdmin/AreasAdmin.js +17 -12
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +21 -13
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +23 -23
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +4 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +4 -3
- package/components/areas/components/AreasAdmin/types.d.ts +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +2 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +5 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +1 -8
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +3 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +1 -0
- package/components/areas/contexts/AreasContext/index.js +1 -1
- package/components/areas/contexts/AreasContext/store.js +1 -1
- 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 +9 -2
- package/components/extended/React-Resizable/helpers.js +13 -15
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +1 -0
- 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 +8 -8
- 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/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +2 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +7 -1
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +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/slots/RHFTextFieldSlots.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 +10 -9
- 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 +22 -22
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +7 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +6 -5
- package/components/hook-form/RHFormContext/index.d.ts +1 -1
- package/components/index.d.ts +0 -2
- package/components/mui_extended/Accordion/Accordion.js +21 -31
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +12 -12
- package/components/mui_extended/Accordion/styles.js +33 -56
- package/components/mui_extended/Accordion/types.d.ts +6 -39
- 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 +17 -17
- package/components/mui_extended/Avatar/Avatar.js +1 -1
- package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
- package/components/mui_extended/Avatar/styles.js +3 -3
- package/components/mui_extended/Badge/Badge.js +2 -1
- 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/ButtonStyles.js +25 -25
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- 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 +12 -12
- package/components/mui_extended/Divider/Divider.js +2 -1
- package/components/mui_extended/Divider/Divider.styles.js +9 -9
- package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.js +2 -3
- 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 +5 -5
- package/components/mui_extended/IconButton/types.d.ts +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.styles.js +5 -5
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuDivider/MenuDivider.js +2 -1
- package/components/mui_extended/MenuDivider/MenuDivider.styles.js +9 -9
- package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +10 -10
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +7 -7
- package/components/mui_extended/MenuItem/types.d.ts +3 -8
- package/components/mui_extended/NavLink/NavLink.js +2 -1
- 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 +1 -0
- 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/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Select/Select.js +3 -2
- package/components/mui_extended/Select/Select.styles.js +10 -10
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +12 -12
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Skeleton/skeleton.styles.js +4 -4
- package/components/mui_extended/Stack/Stack.styles.js +3 -3
- package/components/mui_extended/Stack/slots/StackSlot.d.ts +2 -2
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.js +0 -2
- package/components/mui_extended/Tab/Tab.styles.js +48 -26
- package/components/mui_extended/Tab/types.d.ts +0 -4
- package/components/mui_extended/TabContent/TabContent.js +1 -1
- package/components/mui_extended/TabContent/TabContent.styles.js +4 -2
- package/components/mui_extended/TabContent/slots/TabContentSlots.d.ts +2 -2
- package/components/mui_extended/TabContent/types.d.ts +2 -2
- package/components/mui_extended/Tabs/Tabs.styles.js +1 -2
- package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.styles.js +22 -22
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +9 -9
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- 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/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/Typography/typography.styles.js +7 -7
- package/components/mui_extended/index.d.ts +2 -0
- package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +2 -2
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +9 -7
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +0 -2
- package/hooks/useComponentSize/useComponentSize.d.ts +3 -3
- package/hooks/useComponentSize/useComponentSize.js +2 -5
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -6
- package/hooks/useDynamicFilterAndSort/styles.js +7 -8
- package/hooks/useDynamicFilterAndSort/types.d.ts +2 -2
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +15 -8
- package/index.js +24 -24
- package/package.json +3 -3
- package/storybook/components/Chip/Chip.stories.d.ts +0 -4
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +0 -16
- package/storybook/components/Icon/Icon.stories.d.ts +0 -4
- package/storybook/components/ObjectLogs/ObjectLogs.stories.d.ts +2 -2
- package/storybook/components/WindowBase/windowBase.stories.d.ts +7 -60
- package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +20 -72
- package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +24 -24
- package/storybook/components/extended/scrollBar/ScrollBar.stories.d.ts +7 -0
- package/storybook/components/extended/scrollBar/ScrollBarDecorator.d.ts +11 -0
- package/.storybook/utils/flattenDeep.d.ts +0 -8
- package/components/DataGrid/Datagrid.styles.js +0 -598
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +0 -5
- package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +0 -30
- package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +0 -2
- package/components/DataGrid/subcomponents/ControlNavigate/types.d.ts +0 -7
- package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +0 -5
- package/components/DataGrid/subcomponents/HeaderActions/index.js +0 -39
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/MobileMenuActions/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/index.d.ts +0 -4
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +0 -7
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/types.d.ts +0 -2
- package/components/DataGrid/subcomponents/HeaderActions/types.d.ts +0 -4
- package/components/Pager/index.d.ts +0 -2
- package/components/ScrollBar/index.d.ts +0 -2
- package/components/ScrollBar/index.js +0 -1
- package/components/ScrollBar/slots/ScrollbarEnum.d.ts +0 -3
- package/components/ScrollBar/slots/ScrollbarEnum.js +0 -7
- package/storybook/tootls/WrapperLineGuide/WrapperLineGuide.d.ts +0 -9
- package/storybook/tootls/WrapperLineGuide/styles.d.ts +0 -1
- package/storybook/tootls/WrapperLineGuide/types.d.ts +0 -5
- /package/components/DataGrid/{Datagrid.styles.d.ts → styles.d.ts} +0 -0
- /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Density/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Density/types.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Filter/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/RowsCount/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -0
- /package/components/DataGrid/subcomponents/{HeaderActions → Actions}/subcomponents/hooks/useModalSettings/types.d.ts +0 -0
- /package/components/{Pager → ScrollBar/slots}/index.js +0 -0
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { T as Table } from "./subcomponents/Table/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { A as Actions } from "./subcomponents/Actions/index.js";
|
|
4
4
|
import { F as FilterProvider } from "./contexts/FilterContext/index.js";
|
|
5
5
|
import { D as DataGridProvider } from "./contexts/DataGridContext/index.js";
|
|
6
6
|
import { T as TEST_PROP_COLUMNS } from "./types.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
8
8
|
import { a as getNameDataTestId } from "../../test/getNameDataTestId.js";
|
|
9
|
-
import {
|
|
9
|
+
import { D as DATAGRID_PREFIX_NAME } from "./constants.js";
|
|
10
10
|
import { D as DataGridRootStyled, C as CustomHeaderStyled } from "./slots/DataGridSlot.js";
|
|
11
11
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
12
12
|
import { useRef } from "react";
|
|
13
|
-
import { C as ControlNavigate } from "./subcomponents/ControlNavigate/ControlNavigate.js";
|
|
14
|
-
import { useModuleSkeleton } from "@m4l/core";
|
|
15
|
-
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
16
13
|
function DataGrid(props) {
|
|
17
14
|
const {
|
|
18
15
|
id,
|
|
@@ -34,28 +31,13 @@ function DataGrid(props) {
|
|
|
34
31
|
customHeader: CustomHeader,
|
|
35
32
|
visibleCustomHeader = true,
|
|
36
33
|
defaultUserColumns,
|
|
37
|
-
onChangeUserColumns
|
|
38
|
-
size
|
|
34
|
+
onChangeUserColumns
|
|
39
35
|
} = props;
|
|
40
|
-
const {
|
|
41
|
-
withSettings,
|
|
42
|
-
settingsProps,
|
|
43
|
-
// TotalRecords
|
|
44
|
-
withRowsCount,
|
|
45
|
-
// WithLocalFilters
|
|
46
|
-
withLocalFilters,
|
|
47
|
-
leftActions,
|
|
48
|
-
rightActions,
|
|
49
|
-
withPager,
|
|
50
|
-
pagerOptions
|
|
51
|
-
} = actionsProps;
|
|
52
|
-
const { currentSize } = useComponentSize(size);
|
|
53
36
|
const refDataGrid = useRef(null);
|
|
54
37
|
const classRoot = getComponentSlotRoot(DATAGRID_PREFIX_NAME);
|
|
55
38
|
const ownerState = {
|
|
56
39
|
visibleCustomHeader
|
|
57
40
|
};
|
|
58
|
-
const isSkeleton = useModuleSkeleton();
|
|
59
41
|
return /* @__PURE__ */ jsx(
|
|
60
42
|
DataGridRootStyled,
|
|
61
43
|
{
|
|
@@ -63,8 +45,7 @@ function DataGrid(props) {
|
|
|
63
45
|
className: classRoot,
|
|
64
46
|
...process.env.NODE_ENV !== "production" ? {
|
|
65
47
|
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
66
|
-
[TEST_PROP_ID]: getNameDataTestId(DATAGRID_PREFIX_NAME, "root", dataTestId)
|
|
67
|
-
[TEST_SKELETON]: isSkeleton ? true : false
|
|
48
|
+
[TEST_PROP_ID]: getNameDataTestId(DATAGRID_PREFIX_NAME, "root", dataTestId)
|
|
68
49
|
} : {},
|
|
69
50
|
children: /* @__PURE__ */ jsx(
|
|
70
51
|
DataGridProvider,
|
|
@@ -82,13 +63,12 @@ function DataGrid(props) {
|
|
|
82
63
|
rows,
|
|
83
64
|
onChangeUserColumns,
|
|
84
65
|
defaultUserColumns,
|
|
85
|
-
size: currentSize,
|
|
86
66
|
children: /* @__PURE__ */ jsxs(FilterProvider, { initialActiveFilters: false, children: [
|
|
87
67
|
withActions && actionsProps && /* @__PURE__ */ jsx(
|
|
88
|
-
|
|
68
|
+
Actions,
|
|
89
69
|
{
|
|
90
|
-
...
|
|
91
|
-
|
|
70
|
+
...actionsProps,
|
|
71
|
+
columns
|
|
92
72
|
}
|
|
93
73
|
),
|
|
94
74
|
CustomHeader ? /* @__PURE__ */ jsx(CustomHeaderStyled, { ownerState, children: CustomHeader }) : null,
|
|
@@ -104,8 +84,7 @@ function DataGrid(props) {
|
|
|
104
84
|
rowKeyGetter,
|
|
105
85
|
onRowsChange
|
|
106
86
|
}
|
|
107
|
-
)
|
|
108
|
-
withPager && /* @__PURE__ */ jsx(ControlNavigate, { size: currentSize, ...{ withPager, pagerOptions } })
|
|
87
|
+
)
|
|
109
88
|
] })
|
|
110
89
|
}
|
|
111
90
|
)
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
2
2
|
export declare const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
3
3
|
export declare const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
4
|
-
export declare const TEST_SKELETON = "data-skeleton";
|
|
5
4
|
export declare enum DATAGRID_SEMANTIC_WIDTHS {
|
|
6
5
|
actions = 40,
|
|
7
6
|
bigChip = 190,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
2
2
|
const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
3
3
|
const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
4
|
-
const TEST_SKELETON = "data-skeleton";
|
|
5
4
|
var DATAGRID_SEMANTIC_WIDTHS = /* @__PURE__ */ ((DATAGRID_SEMANTIC_WIDTHS2) => {
|
|
6
5
|
DATAGRID_SEMANTIC_WIDTHS2[DATAGRID_SEMANTIC_WIDTHS2["actions"] = 40] = "actions";
|
|
7
6
|
DATAGRID_SEMANTIC_WIDTHS2[DATAGRID_SEMANTIC_WIDTHS2["bigChip"] = 190] = "bigChip";
|
|
@@ -26,7 +25,6 @@ var DATAGRID_SEMANTIC_WIDTHS = /* @__PURE__ */ ((DATAGRID_SEMANTIC_WIDTHS2) => {
|
|
|
26
25
|
})(DATAGRID_SEMANTIC_WIDTHS || {});
|
|
27
26
|
export {
|
|
28
27
|
DATAGRID_PREFIX_NAME as D,
|
|
29
|
-
TEST_SKELETON as T,
|
|
30
28
|
DATAGRID_SELECT_COLUMN_KEY as a,
|
|
31
29
|
DATAGRID_SEMANTIC_WIDTHS as b,
|
|
32
30
|
DATAGRID_ACTIONS_COLUMN_KEY as c
|
|
@@ -2,9 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useMemo, useEffect, useCallback, createContext } from "react";
|
|
3
3
|
import { c as castMapColumnsWidthToRecord } from "../../helpers/castMapColumnsWidthToRecord.js";
|
|
4
4
|
import { useFirstRender } from "@m4l/graphics";
|
|
5
|
-
import {
|
|
6
|
-
import { D as DATAGRID_PREFIX_NAME } from "../../constants.js";
|
|
7
|
-
import { C as ControlNavigateSlots, a as ColumnsConfigSlots, T as TextEditorSlots, b as TableSlots, R as RowsCountSlots, A as ActionsSlots, D as DataGridSlots } from "../../slots/DataGridEnum.js";
|
|
5
|
+
import { deepEqual } from "fast-equals";
|
|
8
6
|
const DataGridContext = createContext(null);
|
|
9
7
|
const getColumnConfigByKey = (key, storeColumnsConfig) => {
|
|
10
8
|
let indexFind = -1;
|
|
@@ -42,7 +40,7 @@ function getColumnsConfig(id, columns, defaultUserColumns = void 0) {
|
|
|
42
40
|
index: columnConfigIndex > -1 ? columnConfigIndex : index,
|
|
43
41
|
visible: columnConfig.visible === void 0 ? true : columnConfig.visible,
|
|
44
42
|
frozen: columnConfig.frozen ?? false,
|
|
45
|
-
|
|
43
|
+
originalIndex: index,
|
|
46
44
|
originalVisible: column.visible === void 0 ? true : column.visible,
|
|
47
45
|
originalFrozen: column.frozen ?? false
|
|
48
46
|
};
|
|
@@ -110,28 +108,15 @@ function DataGridProvider(props) {
|
|
|
110
108
|
rows,
|
|
111
109
|
rowsCount,
|
|
112
110
|
rowActionsGetter,
|
|
113
|
-
rowHeights = [32, 40
|
|
114
|
-
rowHeaderHeights = [32, 40
|
|
115
|
-
initialRowHeightVariant = "
|
|
111
|
+
rowHeights = [28, 32, 40],
|
|
112
|
+
rowHeaderHeights = [28, 32, 40],
|
|
113
|
+
initialRowHeightVariant = "compact",
|
|
116
114
|
checkedRows,
|
|
117
115
|
onCheckedRowsChange,
|
|
118
116
|
rowKeyGetter,
|
|
119
|
-
onChangeUserColumns
|
|
120
|
-
size
|
|
117
|
+
onChangeUserColumns
|
|
121
118
|
} = props;
|
|
122
|
-
const isFirstRender = useFirstRender();
|
|
123
|
-
const classes = getComponentClasses(
|
|
124
|
-
DATAGRID_PREFIX_NAME,
|
|
125
|
-
{
|
|
126
|
-
...DataGridSlots,
|
|
127
|
-
...ActionsSlots,
|
|
128
|
-
...RowsCountSlots,
|
|
129
|
-
...TableSlots,
|
|
130
|
-
...TextEditorSlots,
|
|
131
|
-
...ColumnsConfigSlots,
|
|
132
|
-
...ControlNavigateSlots
|
|
133
|
-
}
|
|
134
|
-
);
|
|
119
|
+
const isFirstRender = useFirstRender([columns, id]);
|
|
135
120
|
const [columnsWidths, setColumnsWidths] = useState(
|
|
136
121
|
/* @__PURE__ */ new Map()
|
|
137
122
|
);
|
|
@@ -170,13 +155,43 @@ function DataGridProvider(props) {
|
|
|
170
155
|
}, [defaultUserColumns]);
|
|
171
156
|
useEffect(() => {
|
|
172
157
|
if (!isFirstRender) {
|
|
158
|
+
const finalColumnsConfig = [];
|
|
159
|
+
for (let i = 0; i < columnsConfig.length; i++) {
|
|
160
|
+
const columnIndex = columns.findIndex((c) => c.key === columnsConfig[i]?.key);
|
|
161
|
+
if (columnIndex !== -1) {
|
|
162
|
+
const column = columns[columnIndex];
|
|
163
|
+
finalColumnsConfig.push({
|
|
164
|
+
...columnsConfig[i],
|
|
165
|
+
// name: column.name as string,
|
|
166
|
+
originalIndex: columnIndex,
|
|
167
|
+
originalFrozen: column.frozen ?? false,
|
|
168
|
+
originalVisible: column.visible ?? true
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
173
172
|
const newColumns = columns.filter((column, index) => column.key !== columnsConfig[index]?.key);
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
173
|
+
if (newColumns.length > 0) {
|
|
174
|
+
const colLength = finalColumnsConfig.length;
|
|
175
|
+
const newColConfig = getColumnsConfig(id, newColumns).map((columnConfig, index) => {
|
|
176
|
+
const columnIndex = columns.findIndex((c) => c.key === newColumns[index].key);
|
|
177
|
+
const column = newColumns[index];
|
|
178
|
+
const indexNewCol = index + colLength;
|
|
179
|
+
return {
|
|
180
|
+
...columnConfig,
|
|
181
|
+
index: indexNewCol,
|
|
182
|
+
name: column.name,
|
|
183
|
+
originalIndex: columnIndex,
|
|
184
|
+
originalFrozen: column.frozen ?? false,
|
|
185
|
+
originalVisible: column.visible ?? true
|
|
186
|
+
};
|
|
187
|
+
});
|
|
188
|
+
finalColumnsConfig.push(...newColConfig);
|
|
189
|
+
}
|
|
190
|
+
if (deepEqual(columnsConfig, finalColumnsConfig)) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
console.log("useEffect columnsConfig changed", columnsConfig, finalColumnsConfig);
|
|
194
|
+
setColumnsConfigOptions(finalColumnsConfig);
|
|
180
195
|
}
|
|
181
196
|
}, [columns, id]);
|
|
182
197
|
const onChangeColumnsConfig = useCallback(
|
|
@@ -250,9 +265,7 @@ function DataGridProvider(props) {
|
|
|
250
265
|
setRowHeightVariant: setCurrentRowHeightInternal,
|
|
251
266
|
onCheckedRowsChange,
|
|
252
267
|
rowKeyGetter,
|
|
253
|
-
onChangeUserColumns
|
|
254
|
-
classes,
|
|
255
|
-
size
|
|
268
|
+
onChangeUserColumns
|
|
256
269
|
},
|
|
257
270
|
children
|
|
258
271
|
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { RowKey, RowHeightVariants, GridProps } from '../../types';
|
|
3
3
|
import { Maybe } from '@m4l/core';
|
|
4
|
-
import { ActionsSlots, ColumnsConfigSlots, ControlNavigateSlots, DataGridSlots, RowsCountSlots, TableSlots, TextEditorSlots } from '../../slots/DataGridEnum';
|
|
5
4
|
export interface BaseConfigColumn {
|
|
6
5
|
key: string;
|
|
7
6
|
visible: boolean;
|
|
8
7
|
index: number;
|
|
9
8
|
frozen: boolean;
|
|
10
|
-
name: string;
|
|
11
9
|
}
|
|
12
10
|
export interface IConfigColumn extends BaseConfigColumn {
|
|
13
11
|
hidden: boolean;
|
|
14
|
-
|
|
12
|
+
originalIndex: number;
|
|
15
13
|
originalVisible: boolean;
|
|
16
14
|
originalFrozen: boolean;
|
|
17
15
|
}
|
|
@@ -23,7 +21,6 @@ export interface DataGridProviderProps<TRow, TSummaryRow, TKey extends RowKey =
|
|
|
23
21
|
id: number | string;
|
|
24
22
|
children: ReactNode;
|
|
25
23
|
rowsCount: number;
|
|
26
|
-
size: GridProps<any, any, any>['size'];
|
|
27
24
|
}
|
|
28
25
|
export type RowHeightState = {
|
|
29
26
|
rowHVariant: RowHeightVariants;
|
|
@@ -41,6 +38,4 @@ export interface DataGridContextProps<TRow, TSummaryRow, TKey extends RowKey = R
|
|
|
41
38
|
onChangeColumnsConfig: (newColumnsConfig: IConfigColumn[]) => void;
|
|
42
39
|
onChangeColumnsOrder: (sourceKey: string, targetKey: string) => void;
|
|
43
40
|
onChangeColumnWidth: (columnKey: string, width: number) => void;
|
|
44
|
-
classes?: Record<DataGridSlots | ActionsSlots | RowsCountSlots | TableSlots | TextEditorSlots | ColumnsConfigSlots | ControlNavigateSlots, string>;
|
|
45
|
-
size: GridProps<any, any, any>['size'];
|
|
46
41
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
export declare const DATAGRID_DICTIONARY_ID = "data_grid";
|
|
1
2
|
/**
|
|
2
3
|
* TODO: Documentar
|
|
3
4
|
*/
|
|
4
5
|
export declare function getDataGridComponentsDictionary(): string[];
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const DICTIONARY: {
|
|
6
7
|
LABEL_ACTIONS: string;
|
|
7
8
|
LABEL_ROWS_PER_PAGE: string;
|
|
8
9
|
LABEL_OF: string;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { g as getMenuActionsComponentsDictionary } from "../MenuActions/dictionary.js";
|
|
2
2
|
import { g as getModalDictionary } from "../ModalDialog/dictionary.js";
|
|
3
3
|
import { g as getPagerComponentsDictionary } from "../Pager/dicctionary.js";
|
|
4
|
+
const DATAGRID_DICTIONARY_ID = "data_grid";
|
|
4
5
|
function getDataGridComponentsDictionary() {
|
|
5
|
-
return [
|
|
6
|
+
return [DATAGRID_DICTIONARY_ID].concat(getPagerComponentsDictionary()).concat(getMenuActionsComponentsDictionary()).concat(getModalDictionary());
|
|
6
7
|
}
|
|
7
|
-
const
|
|
8
|
-
DENSITY_COMPACT: `${
|
|
9
|
-
DENSITY_STANDARD: `${
|
|
10
|
-
DENSITY_CONFORTABLE: `${
|
|
11
|
-
DENSITY_TOOLTIP: `${
|
|
12
|
-
TOOLTIP_FILTER_HIDE: `${
|
|
13
|
-
TOOLTIP_FILTER_SHOW: `${
|
|
14
|
-
SETTINGS_COLUMN_NAME: `${
|
|
15
|
-
SETTINGS_COLUMN_POSITION: `${
|
|
16
|
-
SETTINGS_COLUMN_VISIBLE: `${
|
|
17
|
-
SETTINGS_COLUMNS_FROZEN: `${
|
|
18
|
-
SETTINGS_SEL_COLUMNS: `${
|
|
19
|
-
SETTINGS_MOVE_FIRST: `${
|
|
20
|
-
SETTINGS_MOVE_UP: `${
|
|
21
|
-
SETTINGS_MOVE_LAST: `${
|
|
22
|
-
SETTINGS_MOVE_DOWN: `${
|
|
23
|
-
SETTINGS_VISIBLE_ALL: `${
|
|
24
|
-
SETTINGS_NO_VISIBLE_ALL: `${
|
|
25
|
-
SETTINGS_RESTORE: `${
|
|
8
|
+
const DICTIONARY = {
|
|
9
|
+
DENSITY_COMPACT: `${DATAGRID_DICTIONARY_ID}.density_compact`,
|
|
10
|
+
DENSITY_STANDARD: `${DATAGRID_DICTIONARY_ID}.density_standard`,
|
|
11
|
+
DENSITY_CONFORTABLE: `${DATAGRID_DICTIONARY_ID}.density_confortable`,
|
|
12
|
+
DENSITY_TOOLTIP: `${DATAGRID_DICTIONARY_ID}.tooltip_density`,
|
|
13
|
+
TOOLTIP_FILTER_HIDE: `${DATAGRID_DICTIONARY_ID}.tooltip_filter_hide`,
|
|
14
|
+
TOOLTIP_FILTER_SHOW: `${DATAGRID_DICTIONARY_ID}.tooltip_filter_show`,
|
|
15
|
+
SETTINGS_COLUMN_NAME: `${DATAGRID_DICTIONARY_ID}.settings_column_name`,
|
|
16
|
+
SETTINGS_COLUMN_POSITION: `${DATAGRID_DICTIONARY_ID}.settings_column_position`,
|
|
17
|
+
SETTINGS_COLUMN_VISIBLE: `${DATAGRID_DICTIONARY_ID}.settings_column_visible`,
|
|
18
|
+
SETTINGS_COLUMNS_FROZEN: `${DATAGRID_DICTIONARY_ID}.settings_column_frozen`,
|
|
19
|
+
SETTINGS_SEL_COLUMNS: `${DATAGRID_DICTIONARY_ID}.settings_sel_columns`,
|
|
20
|
+
SETTINGS_MOVE_FIRST: `${DATAGRID_DICTIONARY_ID}.settings_move_first`,
|
|
21
|
+
SETTINGS_MOVE_UP: `${DATAGRID_DICTIONARY_ID}.settings_move_up`,
|
|
22
|
+
SETTINGS_MOVE_LAST: `${DATAGRID_DICTIONARY_ID}.settings_move_last`,
|
|
23
|
+
SETTINGS_MOVE_DOWN: `${DATAGRID_DICTIONARY_ID}.settings_move_down`,
|
|
24
|
+
SETTINGS_VISIBLE_ALL: `${DATAGRID_DICTIONARY_ID}.settings_visible_all`,
|
|
25
|
+
SETTINGS_NO_VISIBLE_ALL: `${DATAGRID_DICTIONARY_ID}.settings_no_visible_all`,
|
|
26
|
+
SETTINGS_RESTORE: `${DATAGRID_DICTIONARY_ID}.settings_restore`
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
DICTIONARY as D,
|
|
29
30
|
getDataGridComponentsDictionary as g
|
|
30
31
|
};
|
|
@@ -24,6 +24,7 @@ function ColumnIconFormatter(props) {
|
|
|
24
24
|
children: /* @__PURE__ */ jsx(
|
|
25
25
|
IconStyled,
|
|
26
26
|
{
|
|
27
|
+
ownerState: {},
|
|
27
28
|
src: iconUrl,
|
|
28
29
|
onClick,
|
|
29
30
|
tooltipContent: tooltip,
|
|
@@ -37,6 +38,7 @@ function ColumnIconFormatter(props) {
|
|
|
37
38
|
return /* @__PURE__ */ jsx(
|
|
38
39
|
IconStyled,
|
|
39
40
|
{
|
|
41
|
+
ownerState: {},
|
|
40
42
|
src: iconUrl,
|
|
41
43
|
onClick,
|
|
42
44
|
tooltipContent: tooltip,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Checkbox } from "@mui/material";
|
|
3
3
|
function ColumnInteractiveCheckFormatter(props) {
|
|
4
4
|
const { row, onRowChange, column } = props;
|
|
5
5
|
const handleChange = () => {
|
|
@@ -8,7 +8,7 @@ function ColumnInteractiveCheckFormatter(props) {
|
|
|
8
8
|
onRowChange(newRow);
|
|
9
9
|
};
|
|
10
10
|
return /* @__PURE__ */ jsx(
|
|
11
|
-
|
|
11
|
+
Checkbox,
|
|
12
12
|
{
|
|
13
13
|
size: "small",
|
|
14
14
|
checked: row[column.key] || false,
|
|
@@ -2,8 +2,8 @@ const pathIcons = {
|
|
|
2
2
|
compact: "frontend/components/data_grid/assets/icons/compact.svg",
|
|
3
3
|
standard: "frontend/components/data_grid/assets/icons/standard.svg",
|
|
4
4
|
confortable: "frontend/components/data_grid/assets/icons/confortable.svg",
|
|
5
|
-
filter: "frontend/components/data_grid/assets/icons/
|
|
6
|
-
configuration: "frontend/components/data_grid/assets/icons/
|
|
5
|
+
filter: "frontend/components/data_grid/assets/icons/filter.svg",
|
|
6
|
+
configuration: "frontend/components/data_grid/assets/icons/configuration.svg",
|
|
7
7
|
menu: "frontend/components/data_grid/assets/icons/menu.svg",
|
|
8
8
|
moveFirstPlace: "frontend/components/data_grid/assets/icons/move_first_place.svg",
|
|
9
9
|
moveUpPlace: "frontend/components/data_grid/assets/icons/move_up_place.svg",
|
|
@@ -11,8 +11,7 @@ const pathIcons = {
|
|
|
11
11
|
moveDownPlace: "frontend/components/data_grid/assets/icons/move_down_place.svg",
|
|
12
12
|
checkAll: "frontend/components/data_grid/assets/icons/check_all.svg",
|
|
13
13
|
uncheckAll: "frontend/components/data_grid/assets/icons/uncheck_all.svg",
|
|
14
|
-
restoreColumns: "frontend/components/data_grid/assets/icons/restore_columns.svg"
|
|
15
|
-
search: "frontend/components/data_grid/assets/icons/search.svg"
|
|
14
|
+
restoreColumns: "frontend/components/data_grid/assets/icons/restore_columns.svg"
|
|
16
15
|
};
|
|
17
16
|
export {
|
|
18
17
|
pathIcons as p
|
|
@@ -4,8 +4,6 @@ export declare enum DataGridSlots {
|
|
|
4
4
|
}
|
|
5
5
|
export declare enum ActionsSlots {
|
|
6
6
|
actionsRoot = "actionsRoot",
|
|
7
|
-
containerLeftActions = "containerLeftActions",
|
|
8
|
-
containerRightActions = "containerRightActions",
|
|
9
7
|
actionsConfigContainer = "actionsConfigContainer"
|
|
10
8
|
}
|
|
11
9
|
export declare enum RowsCountSlots {
|
|
@@ -17,7 +15,6 @@ export declare enum TableSlots {
|
|
|
17
15
|
tableContaniner = "tableContaniner",
|
|
18
16
|
tableWrapperDataGrid = "tableWrapperDataGrid",
|
|
19
17
|
draggableHeaderRoot = "draggableHeaderRoot",
|
|
20
|
-
iconSearch = "iconSearch",
|
|
21
18
|
draggableWrapperInputBase = "draggableWrapperInputBase",
|
|
22
19
|
headerInputBase = "headerInputBase",
|
|
23
20
|
wrapperSkeleton = "wrapperSkeleton",
|
|
@@ -32,6 +29,3 @@ export declare enum ColumnsConfigSlots {
|
|
|
32
29
|
columnsConfigDataGrid = "columnsConfigDataGrid",
|
|
33
30
|
columnsConfigActios = "columnsConfigActios"
|
|
34
31
|
}
|
|
35
|
-
export declare enum ControlNavigateSlots {
|
|
36
|
-
controlNavigate = "controlNavigate"
|
|
37
|
-
}
|
|
@@ -5,8 +5,6 @@ var DataGridSlots = /* @__PURE__ */ ((DataGridSlots2) => {
|
|
|
5
5
|
})(DataGridSlots || {});
|
|
6
6
|
var ActionsSlots = /* @__PURE__ */ ((ActionsSlots2) => {
|
|
7
7
|
ActionsSlots2["actionsRoot"] = "actionsRoot";
|
|
8
|
-
ActionsSlots2["containerLeftActions"] = "containerLeftActions";
|
|
9
|
-
ActionsSlots2["containerRightActions"] = "containerRightActions";
|
|
10
8
|
ActionsSlots2["actionsConfigContainer"] = "actionsConfigContainer";
|
|
11
9
|
return ActionsSlots2;
|
|
12
10
|
})(ActionsSlots || {});
|
|
@@ -20,7 +18,6 @@ var TableSlots = /* @__PURE__ */ ((TableSlots2) => {
|
|
|
20
18
|
TableSlots2["tableContaniner"] = "tableContaniner";
|
|
21
19
|
TableSlots2["tableWrapperDataGrid"] = "tableWrapperDataGrid";
|
|
22
20
|
TableSlots2["draggableHeaderRoot"] = "draggableHeaderRoot";
|
|
23
|
-
TableSlots2["iconSearch"] = "iconSearch";
|
|
24
21
|
TableSlots2["draggableWrapperInputBase"] = "draggableWrapperInputBase";
|
|
25
22
|
TableSlots2["headerInputBase"] = "headerInputBase";
|
|
26
23
|
TableSlots2["wrapperSkeleton"] = "wrapperSkeleton";
|
|
@@ -38,16 +35,11 @@ var ColumnsConfigSlots = /* @__PURE__ */ ((ColumnsConfigSlots2) => {
|
|
|
38
35
|
ColumnsConfigSlots2["columnsConfigActios"] = "columnsConfigActios";
|
|
39
36
|
return ColumnsConfigSlots2;
|
|
40
37
|
})(ColumnsConfigSlots || {});
|
|
41
|
-
var ControlNavigateSlots = /* @__PURE__ */ ((ControlNavigateSlots2) => {
|
|
42
|
-
ControlNavigateSlots2["controlNavigate"] = "controlNavigate";
|
|
43
|
-
return ControlNavigateSlots2;
|
|
44
|
-
})(ControlNavigateSlots || {});
|
|
45
38
|
export {
|
|
46
39
|
ActionsSlots as A,
|
|
47
|
-
|
|
40
|
+
ColumnsConfigSlots as C,
|
|
48
41
|
DataGridSlots as D,
|
|
49
42
|
RowsCountSlots as R,
|
|
50
43
|
TextEditorSlots as T,
|
|
51
|
-
|
|
52
|
-
TableSlots as b
|
|
44
|
+
TableSlots as a
|
|
53
45
|
};
|
|
@@ -11,8 +11,6 @@ export declare const CustomHeaderStyled: import('@emotion/styled').StyledCompone
|
|
|
11
11
|
* ****************
|
|
12
12
|
*/
|
|
13
13
|
export declare const ActionsRootStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
14
|
-
export declare const ContainerLeftActionsStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
15
|
-
export declare const ContainerRightActionsStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
14
|
export declare const ActionsConfigContainerStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
17
15
|
/**
|
|
18
16
|
* ****************
|
|
@@ -39,7 +37,6 @@ export declare const ColumnsConfigActiosStyled: import('@emotion/styled').Styled
|
|
|
39
37
|
export declare const TableContainerStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
40
38
|
export declare const TableWrapperDataGridStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
41
39
|
export declare const DraggableHeaderRootStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
42
|
-
export declare const IconSearchStyled: import('@emotion/styled').StyledComponent<any, {}, {}>;
|
|
43
40
|
export declare const DraggableWrapperInputBaseStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
44
41
|
export declare const HeaderInputBaseStyled: import('@emotion/styled').StyledComponent<any, {}, {}>;
|
|
45
42
|
export declare const WrapperSkeletonStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -50,9 +47,3 @@ export declare const ContentModalSettingStyled: import('@emotion/styled').Styled
|
|
|
50
47
|
* ****************
|
|
51
48
|
*/
|
|
52
49
|
export declare const InputTextEditorStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import('react').ClassAttributes<HTMLInputElement> | keyof import('react').InputHTMLAttributes<HTMLInputElement>>, {}>;
|
|
53
|
-
/**
|
|
54
|
-
* ****************
|
|
55
|
-
* Slots ControlNavigate
|
|
56
|
-
* ****************
|
|
57
|
-
*/
|
|
58
|
-
export declare const ControlNavigateStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { InputBase } from "@mui/material";
|
|
3
3
|
import { D as DATAGRID_PREFIX_NAME } from "../constants.js";
|
|
4
|
-
import { D as DataGridSlots, T as TextEditorSlots, A as ActionsSlots,
|
|
5
|
-
import { d as dataGridStyles } from "../
|
|
6
|
-
import { I as Icon } from "../../Icon/Icon.js";
|
|
4
|
+
import { D as DataGridSlots, T as TextEditorSlots, A as ActionsSlots, a as TableSlots, R as RowsCountSlots, C as ColumnsConfigSlots } from "./DataGridEnum.js";
|
|
5
|
+
import { d as dataGridStyles } from "../styles.js";
|
|
7
6
|
const DataGridRootStyled = styled("div", {
|
|
8
7
|
name: DATAGRID_PREFIX_NAME,
|
|
9
8
|
slot: DataGridSlots.datagridRoot
|
|
@@ -16,14 +15,6 @@ const ActionsRootStyled = styled("div", {
|
|
|
16
15
|
name: DATAGRID_PREFIX_NAME,
|
|
17
16
|
slot: ActionsSlots.actionsRoot
|
|
18
17
|
})(dataGridStyles.actionsRoot);
|
|
19
|
-
const ContainerLeftActionsStyled = styled("div", {
|
|
20
|
-
name: DATAGRID_PREFIX_NAME,
|
|
21
|
-
slot: ActionsSlots.containerLeftActions
|
|
22
|
-
})(dataGridStyles.containerLeftActions);
|
|
23
|
-
const ContainerRightActionsStyled = styled("div", {
|
|
24
|
-
name: DATAGRID_PREFIX_NAME,
|
|
25
|
-
slot: ActionsSlots.containerRightActions
|
|
26
|
-
})(dataGridStyles.containerRightActions);
|
|
27
18
|
const ActionsConfigContainerStyled = styled("div", {
|
|
28
19
|
name: DATAGRID_PREFIX_NAME,
|
|
29
20
|
slot: ActionsSlots.actionsConfigContainer
|
|
@@ -68,10 +59,6 @@ const DraggableHeaderRootStyled = styled("div", {
|
|
|
68
59
|
name: DATAGRID_PREFIX_NAME,
|
|
69
60
|
slot: TableSlots.draggableHeaderRoot
|
|
70
61
|
})(dataGridStyles.draggableHeaderRoot);
|
|
71
|
-
const IconSearchStyled = styled(Icon, {
|
|
72
|
-
name: DATAGRID_PREFIX_NAME,
|
|
73
|
-
slot: TableSlots.iconSearch
|
|
74
|
-
})(dataGridStyles.iconSearch);
|
|
75
62
|
const DraggableWrapperInputBaseStyled = styled("div", {
|
|
76
63
|
name: DATAGRID_PREFIX_NAME,
|
|
77
64
|
slot: TableSlots.draggableWrapperInputBase
|
|
@@ -92,32 +79,24 @@ const InputTextEditorStyled = styled("input", {
|
|
|
92
79
|
name: DATAGRID_PREFIX_NAME,
|
|
93
80
|
slot: TextEditorSlots.inputTexEditor
|
|
94
81
|
})(dataGridStyles.inputTexEditor);
|
|
95
|
-
const ControlNavigateStyled = styled("div", {
|
|
96
|
-
name: DATAGRID_PREFIX_NAME,
|
|
97
|
-
slot: ControlNavigateSlots.controlNavigate
|
|
98
|
-
})(dataGridStyles.controlNavigate);
|
|
99
82
|
export {
|
|
100
83
|
ActionsRootStyled as A,
|
|
101
84
|
CustomHeaderStyled as C,
|
|
102
85
|
DataGridRootStyled as D,
|
|
103
86
|
HeaderInputBaseStyled as H,
|
|
104
|
-
|
|
87
|
+
InputTextEditorStyled as I,
|
|
105
88
|
RowsCountRootStyled as R,
|
|
106
89
|
TableWrapperDataGridStyled as T,
|
|
107
90
|
WrapperSkeletonStyled as W,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
TableContainerStyled as l,
|
|
120
|
-
DraggableHeaderRootStyled as m,
|
|
121
|
-
DraggableWrapperInputBaseStyled as n,
|
|
122
|
-
InputTextEditorStyled as o
|
|
91
|
+
ActionsConfigContainerStyled as a,
|
|
92
|
+
RowsCountLabelStyled as b,
|
|
93
|
+
RowsCountValueStyled as c,
|
|
94
|
+
ColumnsConfigWrapperStyled as d,
|
|
95
|
+
ColumnsConfigSelColumnsStyled as e,
|
|
96
|
+
ColumnsConfigDataGridStyled as f,
|
|
97
|
+
ColumnsConfigActiosStyled as g,
|
|
98
|
+
ContentModalSettingStyled as h,
|
|
99
|
+
TableContainerStyled as i,
|
|
100
|
+
DraggableHeaderRootStyled as j,
|
|
101
|
+
DraggableWrapperInputBaseStyled as k
|
|
123
102
|
};
|