@m4l/components 9.2.57 → 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/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 +6 -6
- package/components/Color/Color.styles.js +11 -11
- package/components/Color/slots/ColorSlots.d.ts +5 -5
- package/components/CommonActions/components/ActionCancel/ActionCancel.js +1 -1
- 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 +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/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DataGrid/DataGrid.js +36 -8
- 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 +23 -5
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +4 -0
- 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 +4 -3
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.js +3 -2
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.js +4 -4
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.js +5 -2
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +34 -24
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +4 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +8 -0
- package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/index.js +11 -6
- package/components/DataGrid/subcomponents/HeaderActions/types.d.ts +5 -0
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -6
- 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/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 +2 -3
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +3 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -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 +0 -1
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +4 -5
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- 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/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 +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/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- 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/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- 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/ToastContainer/slots/toastContainerSlots.d.ts +2 -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 +23 -23
- 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 +8 -8
- 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/reducer/RHFAutocompleteReducer.js +0 -5
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -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 +22 -22
- 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/index.d.ts +1 -1
- 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/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 +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/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 +1 -2
- 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 +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 +5 -5
- 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/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuDivider/MenuDivider.js +1 -2
- 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 +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/Popper/slots/PopperStlots.d.ts +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 +12 -12
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Skeleton/Skeleton.js +2 -2
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- 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 +2 -2
- package/components/mui_extended/Tab/Slots/TabSlots.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/Tabs/slots/TabsSlots.d.ts +1 -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 +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/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 +3 -3
- 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/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 -49
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +0 -7
- package/components/DataGrid/subcomponents/Actions/types.d.ts +0 -16
- 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/Filter/index.js +0 -0
- /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/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/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/Settings/types.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
|
@@ -8,80 +8,75 @@
|
|
|
8
8
|
* Root component for the WindowBase container.
|
|
9
9
|
*/
|
|
10
10
|
export declare const WindowBaseStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
11
|
-
ownerState
|
|
11
|
+
ownerState?: any;
|
|
12
12
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
13
|
/**
|
|
14
14
|
* Content component for the WindowBase container.
|
|
15
15
|
*/
|
|
16
16
|
export declare const ContentWindowStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
17
|
-
ownerState
|
|
17
|
+
ownerState?: any;
|
|
18
18
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
19
|
/**
|
|
20
20
|
* Header container for the component.
|
|
21
21
|
*/
|
|
22
22
|
export declare const HeaderWindowComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
|
-
ownerState
|
|
23
|
+
ownerState?: any;
|
|
24
24
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
25
25
|
/**
|
|
26
26
|
* Content wrapper for the header.
|
|
27
27
|
*/
|
|
28
28
|
export declare const HeaderContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
29
|
-
ownerState
|
|
29
|
+
ownerState?: any;
|
|
30
30
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
31
31
|
/**
|
|
32
32
|
* Icon component for the header.
|
|
33
33
|
*/
|
|
34
34
|
export declare const IconWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
35
|
-
ownerState
|
|
35
|
+
ownerState?: any;
|
|
36
36
|
}, {}, {}>;
|
|
37
37
|
/**
|
|
38
38
|
* Title component for the header.
|
|
39
39
|
*/
|
|
40
40
|
export declare const TitleWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
41
|
-
ownerState
|
|
41
|
+
ownerState?: any;
|
|
42
42
|
}, {}, {}>;
|
|
43
43
|
/**
|
|
44
44
|
* Subtitle component for the header.
|
|
45
45
|
*/
|
|
46
46
|
export declare const SubtitleWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
47
|
-
ownerState
|
|
47
|
+
ownerState?: any;
|
|
48
48
|
}, {}, {}>;
|
|
49
49
|
/**
|
|
50
50
|
* Subtitle container for the header.
|
|
51
51
|
*/
|
|
52
|
-
export declare const
|
|
53
|
-
ownerState
|
|
54
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
55
|
-
/**
|
|
56
|
-
* Point component for the header.
|
|
57
|
-
*/
|
|
58
|
-
export declare const PointStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
59
|
-
ownerState: any;
|
|
52
|
+
export declare const ContainerTitleSubtitleStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
53
|
+
ownerState?: any;
|
|
60
54
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
61
55
|
/**
|
|
62
56
|
* Point icon component for the header.
|
|
63
57
|
*/
|
|
64
58
|
export declare const PointIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
65
|
-
ownerState
|
|
59
|
+
ownerState?: any;
|
|
66
60
|
}, {}, {}>;
|
|
67
61
|
/**
|
|
68
62
|
* Wrapper for icons in the header.
|
|
69
63
|
*/
|
|
70
64
|
export declare const IconsWrapperStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
71
|
-
ownerState
|
|
65
|
+
ownerState?: any;
|
|
72
66
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
73
67
|
/**
|
|
74
68
|
* Styled component for menu actions in the header.
|
|
75
69
|
*/
|
|
76
70
|
export declare const MenuActionsWindowsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../MenuActions/types').MenuActionsProps, keyof import('../../MenuActions/types').MenuActionsProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
77
|
-
ownerState
|
|
78
|
-
}, {}, {}>;
|
|
79
|
-
export declare const LinearProgressIndeterminateStyled: import('@emotion/styled').StyledComponent<Pick<import('../../LinearProgressIndeterminate/types').LinearProgressIndeterminateProps, keyof import('../../LinearProgressIndeterminate/types').LinearProgressIndeterminateProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
80
|
-
ownerState: any;
|
|
71
|
+
ownerState?: any;
|
|
81
72
|
}, {}, {}>;
|
|
73
|
+
export declare const LinearProgressIndeterminateStyled: import('@emotion/styled').StyledComponent<Pick<import('../../LinearProgressIndeterminate/types').LinearProgressIndeterminateProps, keyof import('../../LinearProgressIndeterminate/types').LinearProgressIndeterminateProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
82
74
|
export declare const ContentEditionInfoStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
83
|
-
ownerState
|
|
75
|
+
ownerState?: any;
|
|
84
76
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
85
77
|
export declare const WindowContainerComponentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
86
|
-
ownerState
|
|
78
|
+
ownerState?: any;
|
|
87
79
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
80
|
+
export declare const ToastContainerStyled: import('@emotion/styled').StyledComponent<Pick<import('../../ToastContainer/types').ToastContainerProps, keyof import('../../ToastContainer/types').ToastContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
81
|
+
ownerState?: any;
|
|
82
|
+
}, {}, {}>;
|
|
@@ -2,6 +2,7 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { W as WINDOW_BASE_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { W as WindowBaseSlots } from "./WindowBaseEnum.js";
|
|
4
4
|
import { w as windowBaseStyles } from "../WindowBase.styles.js";
|
|
5
|
+
import { T as ToastContainer } from "../../ToastContainer/ToastContainer.js";
|
|
5
6
|
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
6
7
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
7
8
|
import { M as MenuActions } from "../../MenuActions/MenuActions.js";
|
|
@@ -34,14 +35,10 @@ const SubtitleWindowStyled = styled(Typography, {
|
|
|
34
35
|
name: WINDOW_BASE_KEY_COMPONENT,
|
|
35
36
|
slot: WindowBaseSlots.headerSubTitleWindowBase
|
|
36
37
|
})(windowBaseStyles.headerSubTitleWindowBase);
|
|
37
|
-
const
|
|
38
|
+
const ContainerTitleSubtitleStyled = styled("div", {
|
|
38
39
|
name: WINDOW_BASE_KEY_COMPONENT,
|
|
39
|
-
slot: WindowBaseSlots.
|
|
40
|
-
})(windowBaseStyles.
|
|
41
|
-
const PointStyled = styled("div", {
|
|
42
|
-
name: WINDOW_BASE_KEY_COMPONENT,
|
|
43
|
-
slot: WindowBaseSlots.pointWindowBase
|
|
44
|
-
})(windowBaseStyles.pointWindowBase);
|
|
40
|
+
slot: WindowBaseSlots.containerTitleSubtitle
|
|
41
|
+
})(windowBaseStyles.containerTitleSubtitle);
|
|
45
42
|
const PointIconStyled = styled(Icon, {
|
|
46
43
|
name: WINDOW_BASE_KEY_COMPONENT,
|
|
47
44
|
slot: WindowBaseSlots.pointIcon
|
|
@@ -66,20 +63,24 @@ const WindowContainerComponentStyled = styled("div", {
|
|
|
66
63
|
name: WINDOW_BASE_KEY_COMPONENT,
|
|
67
64
|
slot: WindowBaseSlots.windowContainerComponent
|
|
68
65
|
})(windowBaseStyles?.windowContainerComponent);
|
|
66
|
+
const ToastContainerStyled = styled(ToastContainer, {
|
|
67
|
+
name: WINDOW_BASE_KEY_COMPONENT,
|
|
68
|
+
slot: WindowBaseSlots.toastContainer
|
|
69
|
+
})(windowBaseStyles?.toastContainer);
|
|
69
70
|
export {
|
|
70
71
|
ContentWindowStyled as C,
|
|
71
72
|
HeaderWindowComponentStyled as H,
|
|
72
73
|
IconWindowStyled as I,
|
|
73
74
|
LinearProgressIndeterminateStyled as L,
|
|
74
75
|
MenuActionsWindowsStyled as M,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
PointIconStyled as P,
|
|
77
|
+
SubtitleWindowStyled as S,
|
|
78
|
+
ToastContainerStyled as T,
|
|
78
79
|
WindowBaseStyled as W,
|
|
79
80
|
WindowContainerComponentStyled as a,
|
|
80
81
|
ContentEditionInfoStyled as b,
|
|
81
82
|
HeaderContentStyled as c,
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
ContainerTitleSubtitleStyled as d,
|
|
84
|
+
TitleWindowStyled as e,
|
|
84
85
|
IconsWrapperStyled as f
|
|
85
86
|
};
|
|
@@ -7,7 +7,7 @@ import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js"
|
|
|
7
7
|
import { deepEqual } from "fast-equals";
|
|
8
8
|
import { useFormatter } from "@m4l/graphics";
|
|
9
9
|
import { u as useButtonActions } from "./useButtonActions.js";
|
|
10
|
-
import { H as HeaderWindowComponentStyled, c as HeaderContentStyled, I as IconWindowStyled,
|
|
10
|
+
import { H as HeaderWindowComponentStyled, c as HeaderContentStyled, I as IconWindowStyled, d as ContainerTitleSubtitleStyled, e as TitleWindowStyled, P as PointIconStyled, S as SubtitleWindowStyled, f as IconsWrapperStyled, M as MenuActionsWindowsStyled } from "../../slots/WindowBaseSlots.js";
|
|
11
11
|
const HeaderWindowBase = (props) => {
|
|
12
12
|
const {
|
|
13
13
|
title,
|
|
@@ -16,10 +16,12 @@ const HeaderWindowBase = (props) => {
|
|
|
16
16
|
iconUrl,
|
|
17
17
|
size,
|
|
18
18
|
selected,
|
|
19
|
+
maximized,
|
|
19
20
|
version,
|
|
20
21
|
buildTime,
|
|
21
22
|
variant,
|
|
22
|
-
actions = []
|
|
23
|
+
actions = [],
|
|
24
|
+
type
|
|
23
25
|
} = props;
|
|
24
26
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
25
27
|
const { dateFormatter } = useFormatter();
|
|
@@ -72,7 +74,9 @@ const HeaderWindowBase = (props) => {
|
|
|
72
74
|
startIcon: action.iconUrl,
|
|
73
75
|
label: action.label,
|
|
74
76
|
onClick: action.onClick,
|
|
75
|
-
disabled: action.disabled
|
|
77
|
+
disabled: action.disabled,
|
|
78
|
+
color: action.color,
|
|
79
|
+
className: action.className
|
|
76
80
|
};
|
|
77
81
|
}).flat()
|
|
78
82
|
];
|
|
@@ -83,37 +87,42 @@ const HeaderWindowBase = (props) => {
|
|
|
83
87
|
label: buildTime ? `${version} - ${dateFormatter.formatDate(new Date(buildTime), dateFormatter.datetimeFormat)}` : version,
|
|
84
88
|
onClick: () => {
|
|
85
89
|
},
|
|
86
|
-
disabled: true
|
|
90
|
+
disabled: true,
|
|
91
|
+
color: "default"
|
|
92
|
+
//className: 'version-action',
|
|
87
93
|
});
|
|
88
94
|
}
|
|
89
95
|
return memoizedActions;
|
|
90
96
|
}, [insideActions, version, host_static_assets, environment_assets, buildTime, dateFormatter]);
|
|
91
97
|
const ownerState = {
|
|
92
98
|
selected,
|
|
99
|
+
maximized,
|
|
93
100
|
variant,
|
|
94
|
-
size
|
|
101
|
+
size,
|
|
102
|
+
type
|
|
95
103
|
};
|
|
96
104
|
const IconButtonLeftActions = useButtonActions(leftActions);
|
|
97
105
|
const IconButtonRightActions = useButtonActions(rightActions);
|
|
98
106
|
return /* @__PURE__ */ jsxs(HeaderWindowComponentStyled, { className: dragResizeWindowRNDClasses.draggableHandle, ownerState, children: [
|
|
99
107
|
/* @__PURE__ */ jsxs(HeaderContentStyled, { ownerState, children: [
|
|
100
108
|
iconUrl && /* @__PURE__ */ jsx(IconWindowStyled, { size, ownerState, src: iconUrl, "aria-label": "main icon" }),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
/* @__PURE__ */ jsxs(ContainerTitleSubtitleStyled, { size, ownerState, children: [
|
|
110
|
+
/* @__PURE__ */ jsx(TitleWindowStyled, { variant: type === "popup" || type === "modal" ? "body" : "captionDens", size, skeletonWidth: 100, ownerState, children: title }),
|
|
111
|
+
subTitle && /* @__PURE__ */ jsx(
|
|
104
112
|
PointIconStyled,
|
|
105
113
|
{
|
|
106
114
|
src: `${host_static_assets}/${environment_assets}/frontend/components/window_base/assets/icons/${ICONS.POINT}`,
|
|
107
115
|
size,
|
|
108
116
|
ownerState
|
|
109
117
|
}
|
|
110
|
-
)
|
|
111
|
-
/* @__PURE__ */ jsx(SubtitleWindowStyled, { size, ownerState, children: subTitle })
|
|
118
|
+
),
|
|
119
|
+
subTitle && /* @__PURE__ */ jsx(SubtitleWindowStyled, { variant: type === "popup" || type === "modal" ? "body" : "captionDens", size, skeletonWidth: 100, ownerState, children: subTitle })
|
|
112
120
|
] })
|
|
113
121
|
] }),
|
|
114
122
|
/* @__PURE__ */ jsxs(
|
|
115
123
|
IconsWrapperStyled,
|
|
116
124
|
{
|
|
125
|
+
id: "icons-wrapper",
|
|
117
126
|
className: dragResizeWindowRNDClasses.draggableCancel,
|
|
118
127
|
ownerState,
|
|
119
128
|
children: [
|
|
@@ -125,6 +134,7 @@ const HeaderWindowBase = (props) => {
|
|
|
125
134
|
ownerState,
|
|
126
135
|
icon: `${host_static_assets}/${environment_assets}/frontend/components/window_base/assets/icons/${ICONS.MORE_VERTICAL}`,
|
|
127
136
|
arrowType: "no-arrow",
|
|
137
|
+
iconButtonClassName: "window-actions",
|
|
128
138
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
129
139
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
130
140
|
paperProps: { style: { marginTop: "12px" } },
|
|
@@ -135,9 +145,11 @@ const HeaderWindowBase = (props) => {
|
|
|
135
145
|
onClose && /* @__PURE__ */ jsx(
|
|
136
146
|
IconButton,
|
|
137
147
|
{
|
|
138
|
-
icon: `${host_static_assets}/${environment_assets}/frontend/components/
|
|
148
|
+
icon: `${host_static_assets}/${environment_assets}/frontend/components/window_base/assets/icons/${ICONS.CLOSE}`,
|
|
139
149
|
onClick: onClose,
|
|
140
|
-
"aria-label": "close"
|
|
150
|
+
"aria-label": "close",
|
|
151
|
+
color: "error",
|
|
152
|
+
className: "close-button window-actions"
|
|
141
153
|
}
|
|
142
154
|
)
|
|
143
155
|
]
|
|
@@ -32,7 +32,7 @@ import { WindowBaseAction, WindowBaseProps } from '../../types';
|
|
|
32
32
|
* - `selected` modifies the visual appearance to indicate the selected state.
|
|
33
33
|
* @see WindowBaseProps - General properties for the window base.
|
|
34
34
|
*/
|
|
35
|
-
export type HeaderProps = Pick<WindowBaseProps, 'title' | 'subTitle' | 'iconUrl' | 'onClose' | 'version' | 'selected' | 'variant' | 'buildTime'> & {
|
|
35
|
+
export type HeaderProps = Pick<WindowBaseProps, 'title' | 'subTitle' | 'iconUrl' | 'onClose' | 'version' | 'selected' | 'variant' | 'type' | 'buildTime' | 'maximized'> & {
|
|
36
36
|
actions?: WindowBaseAction[];
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -12,7 +12,9 @@ const useButtonActions = (actions) => {
|
|
|
12
12
|
disabled: groupAction.disabled,
|
|
13
13
|
selected: groupAction.key === action.selectedActionKey,
|
|
14
14
|
onClick: groupAction.onClick || (() => {
|
|
15
|
-
})
|
|
15
|
+
}),
|
|
16
|
+
color: groupAction.color,
|
|
17
|
+
className: action.className
|
|
16
18
|
},
|
|
17
19
|
groupAction.key
|
|
18
20
|
)) }, action.key);
|
|
@@ -24,7 +26,8 @@ const useButtonActions = (actions) => {
|
|
|
24
26
|
label: action.label,
|
|
25
27
|
disabled: action.disabled,
|
|
26
28
|
onClick: action.onClick || (() => {
|
|
27
|
-
})
|
|
29
|
+
}),
|
|
30
|
+
className: action.className
|
|
28
31
|
},
|
|
29
32
|
action.key
|
|
30
33
|
);
|
|
@@ -6,5 +6,5 @@ import { MemoizedIconButtonProps } from './types';
|
|
|
6
6
|
* This component renders an `IconButton` with an icon and tooltip.
|
|
7
7
|
* It is memoized to avoid unnecessary re-renders when the props do not change.
|
|
8
8
|
*/
|
|
9
|
-
declare const MemoizedIconButton: React.MemoExoticComponent<({ iconUrl, label, disabled, onClick, selected }: MemoizedIconButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
declare const MemoizedIconButton: React.MemoExoticComponent<({ iconUrl, label, disabled, onClick, color, className, selected }: MemoizedIconButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
10
|
export default MemoizedIconButton;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
|
|
4
4
|
const MemoizedIconButton = React.memo(
|
|
5
|
-
({ iconUrl, label, disabled, onClick, selected }) => /* @__PURE__ */ jsx(IconButton, { role: "button", "aria-label": label, tooltip: label, icon: iconUrl, disabled, onClick, selected })
|
|
5
|
+
({ iconUrl, label, disabled, onClick, color, className, selected }) => /* @__PURE__ */ jsx(IconButton, { role: "button", "aria-label": label, tooltip: label, icon: iconUrl, disabled, onClick, color, className, selected })
|
|
6
6
|
);
|
|
7
7
|
export {
|
|
8
8
|
MemoizedIconButton as M
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconButtonProps } from '../../../mui_extended/IconButton/types';
|
|
1
2
|
/**
|
|
2
3
|
* Props for the `MemoizedIconButton` component.
|
|
3
4
|
*/
|
|
@@ -18,6 +19,14 @@ export interface MemoizedIconButtonProps {
|
|
|
18
19
|
* Callback function executed when the button is clicked.
|
|
19
20
|
*/
|
|
20
21
|
onClick: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Color of the button.
|
|
24
|
+
*/
|
|
25
|
+
color?: IconButtonProps['color'];
|
|
26
|
+
/**
|
|
27
|
+
* Define el nombre de la clase del componente
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
21
30
|
/**
|
|
22
31
|
* Whether the button is selected.
|
|
23
32
|
*/
|
|
@@ -5,6 +5,7 @@ import { Theme } from '@mui/material/styles';
|
|
|
5
5
|
import { Sizes } from '@m4l/styles';
|
|
6
6
|
import { MenuItemAction } from '../MenuActions/types';
|
|
7
7
|
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
8
|
+
import { EmergeType } from '../areas/types';
|
|
8
9
|
/**
|
|
9
10
|
* Opciones para la ventana.
|
|
10
11
|
*/
|
|
@@ -76,6 +77,7 @@ export type WindowBaseModuleAction = Omit<ModuleActionMenuItem, 'visibility'> |
|
|
|
76
77
|
*/
|
|
77
78
|
export type WindowBaseAction = WindowBaseModuleAction & {
|
|
78
79
|
place: 'left' | 'right' | 'inside';
|
|
80
|
+
className?: string;
|
|
79
81
|
};
|
|
80
82
|
/**
|
|
81
83
|
* Interface representing the main properties of the `WindowBase` component.
|
|
@@ -120,6 +122,11 @@ export interface WindowBaseProps {
|
|
|
120
122
|
* When `true`, the window may display a visual indicator to denote selection.
|
|
121
123
|
*/
|
|
122
124
|
selected?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Indicates if the window is maximized.
|
|
127
|
+
* When `true`, the window may display a visual indicator to denote maximization.
|
|
128
|
+
*/
|
|
129
|
+
maximized?: boolean;
|
|
123
130
|
/**
|
|
124
131
|
* The version label for the window.
|
|
125
132
|
* Useful for displaying version information (e.g., `1.0.0`) in the header or footer.
|
|
@@ -166,6 +173,13 @@ export interface WindowBaseProps {
|
|
|
166
173
|
* Additional information displayed in the window.
|
|
167
174
|
*/
|
|
168
175
|
editionInfo?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Type of window.
|
|
178
|
+
* - `'modal'`: A modal window.
|
|
179
|
+
* - `'window'`: A window.
|
|
180
|
+
* Default is `'window'` if not specified.
|
|
181
|
+
*/
|
|
182
|
+
type?: EmergeType;
|
|
169
183
|
}
|
|
170
184
|
/**
|
|
171
185
|
* Type representing the possible values of `WindowBaseSlots`.
|
|
@@ -184,8 +198,10 @@ export type WindowBaseType = keyof typeof WindowBaseSlots;
|
|
|
184
198
|
*/
|
|
185
199
|
export type WindowBaseOwnerState = Pick<WindowBaseProps, 'size'> & {
|
|
186
200
|
selected?: WindowBaseProps['selected'];
|
|
201
|
+
maximized?: WindowBaseProps['maximized'];
|
|
187
202
|
variant?: WindowBaseProps['variant'];
|
|
188
203
|
size?: WindowBaseProps['size'];
|
|
204
|
+
type?: WindowBaseProps['type'];
|
|
189
205
|
};
|
|
190
206
|
/**
|
|
191
207
|
* Type for defining custom styles for the `WindowBase` component.
|
|
@@ -34,10 +34,9 @@ const WindowConfirm = (props) => {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
const { currentSize } = useComponentSize(size);
|
|
37
|
-
const normalizedSize = currentSize === "large" ? "medium" : currentSize;
|
|
38
37
|
const ownerState = {
|
|
39
38
|
windowConfirmColor: "default",
|
|
40
|
-
windowConfirmSize:
|
|
39
|
+
windowConfirmSize: currentSize,
|
|
41
40
|
windowConfirmVariant: variant
|
|
42
41
|
};
|
|
43
42
|
const getVariantMapping = (variantType) => {
|
|
@@ -57,7 +56,7 @@ const WindowConfirm = (props) => {
|
|
|
57
56
|
info: `${host_static_assets}/${environment_assets}/frontend/components/window_confirm/assets/icons/Info.svg`
|
|
58
57
|
};
|
|
59
58
|
const iconUrl = iconMap[variant] || iconMap.warning;
|
|
60
|
-
return /* @__PURE__ */ jsx(AppearanceComponentProvider, { defaultSize: currentSize, children: /* @__PURE__ */ jsx(WindowBase, { iconUrl, variant: "
|
|
59
|
+
return /* @__PURE__ */ jsx(AppearanceComponentProvider, { defaultSize: currentSize, children: /* @__PURE__ */ jsx(WindowBase, { iconUrl, variant: "outlined", title: getLabel("modal_dialog.label_window_confirm"), onClose: () => closeModal(), type: "modal", children: /* @__PURE__ */ jsx(
|
|
61
60
|
WindowConfirmRootStyled,
|
|
62
61
|
{
|
|
63
62
|
className: clsx(getComponentSlotRoot(WINDOW_CONFIRM_KEY_COMPONENT)),
|
|
@@ -12,17 +12,17 @@ const windowConfirmStyles = {
|
|
|
12
12
|
borderRadius: theme.vars.size.borderRadius.r0,
|
|
13
13
|
background: theme.vars.palette.background.default,
|
|
14
14
|
...theme.generalSettings.isMobile ? {
|
|
15
|
-
...ownerState
|
|
15
|
+
...ownerState?.windowBaseSize === "small" && {
|
|
16
16
|
height: theme.vars.size.mobile.small.container
|
|
17
17
|
},
|
|
18
|
-
...ownerState
|
|
18
|
+
...ownerState?.windowBaseSize === "medium" && {
|
|
19
19
|
height: theme.vars.size.mobile.medium.container
|
|
20
20
|
}
|
|
21
21
|
} : {
|
|
22
|
-
...ownerState
|
|
22
|
+
...ownerState?.windowBaseSize === "small" && {
|
|
23
23
|
height: theme.vars.size.desktop.small.container
|
|
24
24
|
},
|
|
25
|
-
...ownerState
|
|
25
|
+
...ownerState?.windowBaseSize === "medium" && {
|
|
26
26
|
height: theme.vars.size.desktop.medium.container
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -92,9 +92,7 @@ const windowConfirmStyles = {
|
|
|
92
92
|
/**
|
|
93
93
|
* Actions Container Styles
|
|
94
94
|
*/
|
|
95
|
-
actionsContainer:
|
|
96
|
-
padding: theme.vars.size.baseSpacings.sp3
|
|
97
|
-
}),
|
|
95
|
+
actionsContainer: {},
|
|
98
96
|
windowBaseRoot: {},
|
|
99
97
|
messageIllustration: {},
|
|
100
98
|
actionCancel: {},
|
|
@@ -13,7 +13,6 @@ import { useIsMobile } from "@m4l/graphics";
|
|
|
13
13
|
import { A as AREAS_ADMIN_KEY_COMPONENT } from "./constants.js";
|
|
14
14
|
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
15
15
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
16
|
-
import { S as ScrollBar } from "../../../ScrollBar/ScrollBar.js";
|
|
17
16
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
18
17
|
import { T as Typography } from "../../../mui_extended/Typography/Typography.js";
|
|
19
18
|
import { M as MenuActions } from "../../../MenuActions/MenuActions.js";
|
|
@@ -28,10 +27,9 @@ const AreasAdmin = (props) => {
|
|
|
28
27
|
} = props;
|
|
29
28
|
const isMobile = useIsMobile();
|
|
30
29
|
const { currentSize } = useComponentSize(size);
|
|
31
|
-
const normalizedSize = currentSize === "large" ? "medium" : currentSize;
|
|
32
30
|
const areas = useAreasStore((state) => state.areasIds ?? [], shallow);
|
|
33
31
|
const currentAreaId = useAreasStore((state) => state.currentAreaId, shallow);
|
|
34
|
-
const status = useAreasStore((state) => state.ownerState
|
|
32
|
+
const status = useAreasStore((state) => state.ownerState?.status);
|
|
35
33
|
const areasLength = useAreasStore((state) => state.areasIds.length);
|
|
36
34
|
const { addArea } = useAreasStore((state) => state.areasActions, shallow);
|
|
37
35
|
const { maximizeLayout } = useAreasStore((state) => state.areaActions);
|
|
@@ -66,7 +64,7 @@ const AreasAdmin = (props) => {
|
|
|
66
64
|
const ownerState = {
|
|
67
65
|
isMobile,
|
|
68
66
|
color,
|
|
69
|
-
size:
|
|
67
|
+
size: currentSize
|
|
70
68
|
};
|
|
71
69
|
const onTouched = (layoutId) => {
|
|
72
70
|
maximizeLayout(currentAreaId, layoutId);
|
|
@@ -94,26 +92,23 @@ const AreasAdmin = (props) => {
|
|
|
94
92
|
children: /* @__PURE__ */ jsx(
|
|
95
93
|
AreasAdminContentStyled,
|
|
96
94
|
{
|
|
97
|
-
size:
|
|
98
|
-
ownerState: {},
|
|
95
|
+
size: currentSize,
|
|
99
96
|
role: "presentation",
|
|
100
97
|
ref: divRef,
|
|
101
98
|
children: /* @__PURE__ */ jsx(
|
|
102
99
|
AreasContainerChipIconStyled,
|
|
103
100
|
{
|
|
104
|
-
size:
|
|
105
|
-
ownerState: {},
|
|
101
|
+
size: currentSize,
|
|
106
102
|
children: /* @__PURE__ */ jsx(
|
|
107
103
|
AreasContainerContentChipsStyled,
|
|
108
104
|
{
|
|
109
|
-
size:
|
|
110
|
-
ownerState: {},
|
|
105
|
+
size: currentSize,
|
|
111
106
|
children: !isMobile ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
112
107
|
/* @__PURE__ */ jsx(
|
|
113
108
|
IconButtonAddAreaStyled,
|
|
114
109
|
{
|
|
115
110
|
"aria-label": "Agregar área",
|
|
116
|
-
size:
|
|
111
|
+
size: currentSize,
|
|
117
112
|
variant: "contained",
|
|
118
113
|
ownerState,
|
|
119
114
|
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
@@ -121,15 +116,14 @@ const AreasAdmin = (props) => {
|
|
|
121
116
|
tooltip: getLabel(getAreasDictionary(AREAS_DICCTIONARY.area_add_new))
|
|
122
117
|
}
|
|
123
118
|
),
|
|
124
|
-
/* @__PURE__ */ jsx(
|
|
119
|
+
/* @__PURE__ */ jsx(
|
|
125
120
|
AreaContentChipStyled,
|
|
126
121
|
{
|
|
127
|
-
size:
|
|
128
|
-
|
|
129
|
-
children: Array.isArray(areas) && areas.length > 0 && areas.map((areaId) => /* @__PURE__ */ jsx(
|
|
122
|
+
size: currentSize,
|
|
123
|
+
children: areas.map((areaId) => /* @__PURE__ */ jsx(
|
|
130
124
|
AreaChip,
|
|
131
125
|
{
|
|
132
|
-
size:
|
|
126
|
+
size: currentSize,
|
|
133
127
|
color,
|
|
134
128
|
areaId,
|
|
135
129
|
selected: areaId === currentAreaId,
|
|
@@ -138,13 +132,13 @@ const AreasAdmin = (props) => {
|
|
|
138
132
|
areaId
|
|
139
133
|
))
|
|
140
134
|
}
|
|
141
|
-
)
|
|
142
|
-
maximizedId && windowsLayouts.length > 1 && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(ContainerAdminWindowsStyled, { size:
|
|
143
|
-
/* @__PURE__ */ jsx(Typography, { size:
|
|
135
|
+
),
|
|
136
|
+
maximizedId && windowsLayouts.length > 1 && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(ContainerAdminWindowsStyled, { size: currentSize, ownerState, children: [
|
|
137
|
+
/* @__PURE__ */ jsx(Typography, { size: currentSize, children: getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_window)) }),
|
|
144
138
|
/* @__PURE__ */ jsx(
|
|
145
139
|
MenuActions,
|
|
146
140
|
{
|
|
147
|
-
size:
|
|
141
|
+
size: currentSize,
|
|
148
142
|
icon: `${host_static_assets}/${environment_assets}/frontend/components/areas_admin/assets/icons/${ICONS.PENDING_ORDER}`,
|
|
149
143
|
arrowType: "no-arrow",
|
|
150
144
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as getSizeStyles } from "../../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
2
|
const areasAdminStyles = {
|
|
3
3
|
/**
|
|
4
4
|
* Root areas admin Styles
|
|
@@ -7,14 +7,7 @@ const areasAdminStyles = {
|
|
|
7
7
|
width: "100%",
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: "row",
|
|
10
|
-
|
|
11
|
-
display: "flex",
|
|
12
|
-
flexDirection: "row",
|
|
13
|
-
alignItems: "center"
|
|
14
|
-
},
|
|
15
|
-
"& .simplebar-placeholder": {
|
|
16
|
-
width: "100% !important"
|
|
17
|
-
},
|
|
10
|
+
overflow: "auto",
|
|
18
11
|
paddingRight: theme.vars.size.baseSpacings["sp2-5"]
|
|
19
12
|
}),
|
|
20
13
|
/**
|
|
@@ -54,39 +47,44 @@ const areasAdminStyles = {
|
|
|
54
47
|
display: "flex",
|
|
55
48
|
flexDirection: "row",
|
|
56
49
|
gap: theme.vars.size.baseSpacings.sp1,
|
|
57
|
-
alignItems: "center"
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
overflow: "auto hidden"
|
|
58
52
|
}),
|
|
59
53
|
/**
|
|
60
54
|
* Root area chip Styles
|
|
61
55
|
*/
|
|
62
56
|
areaChipRoot: () => ({
|
|
63
|
-
width: "
|
|
57
|
+
width: "fit-content",
|
|
58
|
+
maxWidth: "fit-content",
|
|
64
59
|
display: "flex",
|
|
65
60
|
flexDirection: "row"
|
|
66
61
|
}),
|
|
67
62
|
/**
|
|
68
63
|
* Root area container chip edit button
|
|
69
64
|
*/
|
|
70
|
-
areaContainerChipEditButton: () => ({
|
|
65
|
+
areaContainerChipEditButton: ({ theme }) => ({
|
|
71
66
|
display: "flex",
|
|
72
|
-
flexDirection: "row"
|
|
67
|
+
flexDirection: "row",
|
|
68
|
+
"& .M4LIcon-icon": {
|
|
69
|
+
backgroundColor: `${theme.vars.palette.primary.contrastText}!important`
|
|
70
|
+
}
|
|
73
71
|
}),
|
|
74
72
|
/**
|
|
75
73
|
* Chip areas Styles
|
|
76
74
|
*/
|
|
77
75
|
chipAreas: ({ theme, ownerState }) => ({
|
|
78
76
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
79
|
-
...
|
|
80
|
-
theme
|
|
81
|
-
ownerState
|
|
77
|
+
...getSizeStyles(
|
|
78
|
+
theme,
|
|
79
|
+
ownerState?.size || "small",
|
|
82
80
|
"action"
|
|
83
81
|
),
|
|
84
82
|
"&:hover > .M4LAreasAdmin-menuActionsChip": {
|
|
85
83
|
opacity: 1,
|
|
86
84
|
pointerEvents: "auto"
|
|
87
85
|
},
|
|
88
|
-
|
|
89
|
-
backgroundColor:
|
|
86
|
+
"& .M4LIcon-icon": {
|
|
87
|
+
backgroundColor: ownerState?.isAreaSelected ? `${theme.vars.palette.primary.contrastText}!important` : `${theme.vars.palette.text.secondary}!important`
|
|
90
88
|
}
|
|
91
89
|
}),
|
|
92
90
|
/**
|
|
@@ -94,11 +92,14 @@ const areasAdminStyles = {
|
|
|
94
92
|
*/
|
|
95
93
|
iconButtonAddArea: ({ theme, ownerState }) => ({
|
|
96
94
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
97
|
-
...
|
|
98
|
-
theme
|
|
99
|
-
ownerState
|
|
95
|
+
...getSizeStyles(
|
|
96
|
+
theme,
|
|
97
|
+
ownerState?.size || "small",
|
|
100
98
|
"action"
|
|
101
|
-
)
|
|
99
|
+
),
|
|
100
|
+
"& .M4LIcon-icon": {
|
|
101
|
+
backgroundColor: `${theme.vars.palette.text.primary}!important`
|
|
102
|
+
}
|
|
102
103
|
}),
|
|
103
104
|
/**
|
|
104
105
|
* Menu actions Styles
|
|
@@ -159,7 +160,7 @@ const areasAdminStyles = {
|
|
|
159
160
|
gap: theme.vars.size.baseSpacings.sp1
|
|
160
161
|
}),
|
|
161
162
|
buttonAddArea: ({ theme }) => ({
|
|
162
|
-
color: theme.vars.palette.primary.
|
|
163
|
+
color: theme.vars.palette.primary.semanticText
|
|
163
164
|
}),
|
|
164
165
|
/**
|
|
165
166
|
* Root edit area chip container
|