@m4l/components 9.3.9 → 9.3.10-BE220825-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +9 -0
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
- package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/filterFieldsSeedData.d.ts +1 -1
- package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/getRowsWithBackendSimulation.d.ts +2 -2
- package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/sortsSeedData.d.ts +1 -1
- package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/types.d.ts +3 -3
- package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/useSeed.d.ts +2 -2
- package/components/FormContainer/FormContainer.d.ts +7 -0
- package/components/FormContainer/FormContainer.js +38 -0
- package/components/FormContainer/FormContainer.styles.d.ts +2 -0
- package/components/FormContainer/FormContainer.styles.js +27 -0
- package/components/FormContainer/constants.d.ts +2 -0
- package/components/FormContainer/constants.js +8 -0
- package/components/FormContainer/index.d.ts +1 -0
- package/components/FormContainer/index.js +1 -0
- package/components/FormContainer/slots/FormContainerEnum.d.ts +5 -0
- package/components/FormContainer/slots/FormContainerEnum.js +9 -0
- package/components/FormContainer/slots/FormContainerSlots.d.ts +9 -0
- package/components/FormContainer/slots/FormContainerSlots.js +21 -0
- package/components/FormContainer/test/FormContainer.test.d.ts +1 -0
- package/components/FormContainer/types.d.ts +11 -0
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/PaperForm/PaperForm.js +6 -4
- package/components/PaperForm/index.js +1 -0
- package/components/PaperForm/styles.js +31 -13
- package/components/PaperForm/types.d.ts +3 -2
- package/components/PropertyValue/PropertyValue.styles.js +1 -0
- package/components/SideBar/tests/constants.d.ts +1 -0
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/index.d.ts +2 -1
- package/index.js +4 -2
- package/package.json +1 -1
- package/.storybook/constants.d.ts +0 -21
- package/.storybook/decorators/WithAppearanceContext/WithAppearanceContext.d.ts +0 -6
- package/.storybook/decorators/WithAppearanceContext/index.d.ts +0 -0
- package/.storybook/decorators/WithContexts/WithContexts.d.ts +0 -5
- package/.storybook/decorators/WithContexts/constants.d.ts +0 -10
- package/.storybook/decorators/WithContexts/index.d.ts +0 -1
- package/.storybook/decorators/WithContexts/styles.d.ts +0 -1
- package/.storybook/decorators/WithContexts/subcomponents/AppWithTheme.d.ts +0 -6
- package/.storybook/decorators/WithContexts/types.d.ts +0 -7
- package/.storybook/decorators/WithDictionaryContext/WithDictionaryContext.d.ts +0 -21
- package/.storybook/decorators/WithDictionaryContext/contants.d.ts +0 -3
- package/.storybook/decorators/WithDictionaryContext/index.d.ts +0 -1
- package/.storybook/decorators/WithForm/WithForm.d.ts +0 -8
- package/.storybook/decorators/WithForm/index.d.ts +0 -1
- package/.storybook/decorators/WithFormAutoValidation/WithFormAutoValidation.d.ts +0 -7
- package/.storybook/decorators/WithFormAutoValidation/index.d.ts +0 -1
- package/.storybook/decorators/WithPopupsProvider/WithPopupsProvider.d.ts +0 -10
- package/.storybook/decorators/WithPopupsProvider/index.d.ts +0 -1
- package/.storybook/decorators/WithScaleIcons/WithScaleIcons.d.ts +0 -7
- package/.storybook/decorators/WithScaleIcons/index.d.ts +0 -1
- package/.storybook/decorators/WithWindowsContainer/WithWindowsContainer.d.ts +0 -5
- package/.storybook/decorators/WithWindowsContainer/index.d.ts +0 -2
- package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/WindowsContainer.d.ts +0 -5
- package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/index.d.ts +0 -1
- package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/types.d.ts +0 -4
- package/.storybook/decorators/WithWindowsContainerSizer/WithWindowsContainerSizer.d.ts +0 -5
- package/.storybook/decorators/WithWindowsToolsAndParmsMFContexts/WithWindowsToolsAndParmsMFContexts.d.ts +0 -5
- package/.storybook/decorators/WithWrapper/WithWrapper.d.ts +0 -24
- package/.storybook/decorators/WithWrapper/index.d.ts +0 -1
- package/.storybook/decorators/WithWrapper/types.d.ts +0 -11
- package/.storybook/decorators/index.d.ts +0 -7
- package/.storybook/main.d.ts +0 -3
- package/.storybook/mocks/config-msw.d.ts +0 -21
- package/.storybook/mocks/index.d.ts +0 -2
- package/.storybook/mocks/network-mocks.d.ts +0 -1
- package/.storybook/storybook.vite.d.ts +0 -2
- package/.storybook/test-utils/index.d.ts +0 -1
- package/.storybook/test-utils/waitForHelpers.d.ts +0 -4
- package/.storybook/utils/flattenDeep.d.ts +0 -8
- package/.storybook/utils/getGlobalsFromSearchParams.d.ts +0 -7
- package/.storybook/utils/getStylesColorsByMode.d.ts +0 -820
- package/components/extended/React-Resizable/Resizable/stories/constants.d.ts +0 -3
- package/components/extended/React-Resizable/Resizable/stories/types.d.ts +0 -3
- package/components/extended/React-Resizable/ResizableBox/stories/constants.d.ts +0 -3
- package/components/extended/React-Resizable/ResizableBox/stories/types.d.ts +0 -3
- package/components/mui_extended/FormControlLabel/FormControlLabel.stories.d.ts +0 -15
- package/hooks/useComponentSize/useComponentSize.stories.d.ts +0 -47
- package/storybook/components/AccountPopover/AccountPopover.stories.d.ts +0 -11
- package/storybook/components/Areas/AreasAdmin/AreasAdmin.stories.d.ts +0 -8
- package/storybook/components/Areas/AreasViewer/AreasViewer.stories.d.ts +0 -7
- package/storybook/components/Areas/AreasViewer/hooks/useWindowsActions.d.ts +0 -4
- package/storybook/components/Areas/AreasViewer/moks/mokData.d.ts +0 -14
- package/storybook/components/Areas/AreasViewer/subcomponents/AreasViewerRender.d.ts +0 -4
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/Launcher.d.ts +0 -5
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupButton.d.ts +0 -21
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupContentExample.d.ts +0 -4
- package/storybook/components/Areas/AreasViewer/subcomponents/layouts/ClientsLayout.d.ts +0 -4
- package/storybook/components/Areas/AreasViewer/subcomponents/layouts/UsersLayout.d.ts +0 -4
- package/storybook/components/Areas/AreasViewerWithNetwork/AreasViewerWithNetwork.stories.d.ts +0 -7
- package/storybook/components/Areas/AreasViewerWithNetwork/moks/mokData.d.ts +0 -14
- package/storybook/components/Areas/AreasViewerWithNetwork/moks/mokRed.d.ts +0 -1
- package/storybook/components/Areas/AreasViewerWithNetwork/subcomponents/ClientsHeaderActions.d.ts +0 -4
- package/storybook/components/Areas/AreasViewerWithNetwork/subcomponents/UsersHeaderActions.d.ts +0 -4
- package/storybook/components/Areas/AreasViewerWithNetwork/subcomponents/WithExtendedContainer.d.ts +0 -5
- package/storybook/components/Card/Card.stories.d.ts +0 -45
- package/storybook/components/Card/subcomponents/ContentCard.d.ts +0 -8
- package/storybook/components/Card/subcomponents/constants.d.ts +0 -9
- package/storybook/components/Chip/Chip.stories.d.ts +0 -37
- package/storybook/components/Color/Color.stories.d.ts +0 -14
- package/storybook/components/ContainerFlow/ContainerFlow.stories.d.ts +0 -32
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn1Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn2Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn3Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexWrap/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderGridLayout/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/wrapperItems/index.d.ts +0 -10
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +0 -87
- package/storybook/components/DataGrid/MswHandles.d.ts +0 -1
- package/storybook/components/DataGrid/subcomponents/DataGridRender.d.ts +0 -20
- package/storybook/components/DragResizeWindowRND/stories/DragResizeWindowRND.stories.d.ts +0 -10
- package/storybook/components/DragResizeWindowRND/stories/constants.d.ts +0 -3
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/ContentExample.d.ts +0 -4
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/RNDWindowsContainer.d.ts +0 -5
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/index.d.ts +0 -1
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/RNDWindowsContainer/types.d.ts +0 -4
- package/storybook/components/DragResizeWindowRND/stories/subcomponents/WithExtendedContainer.d.ts +0 -5
- package/storybook/components/DragResizeWindowRND/stories/types.d.ts +0 -3
- package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +0 -49
- package/storybook/components/DynamicFilter/mocks/mocksData.d.ts +0 -1
- package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +0 -45
- package/storybook/components/HelperError/HelperError.stories.d.ts +0 -9
- package/storybook/components/Icon/Icon.stories.d.ts +0 -25
- package/storybook/components/Label/Label.stories.d.ts +0 -18
- package/storybook/components/LanguagePopover/LanguagePopover.stories.d.ts +0 -17
- package/storybook/components/LanguagePopover/moks/mokData.d.ts +0 -4
- package/storybook/components/LoadingError/Loadingerror.stories.d.ts +0 -9
- package/storybook/components/MenuActions/MenuActions.stories.d.ts +0 -72
- package/storybook/components/ModalDialog/ModalDialog.stories.d.ts +0 -8
- package/storybook/components/ModalDialog/subcomponent/WithExtendedContainer.d.ts +0 -33
- package/storybook/components/NoItemPrivileges/NoItemPrivileges.stories.d.ts +0 -12
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +0 -12
- package/storybook/components/NumberInput/NumberInput.default.stories.d.ts +0 -17
- package/storybook/components/ObjectLogs/ObjectLogs.stories.d.ts +0 -7
- package/storybook/components/ObjectLogs/mockData/index.d.ts +0 -4
- package/storybook/components/PDFViewer/PDFViewer.stories.d.ts +0 -9
- package/storybook/components/Pager/Pager.stories.d.ts +0 -21
- package/storybook/components/Pager/subcomopnents/WithContextDataProvider.d.ts +0 -4
- package/storybook/components/PopupsViewer/basic.stories.d.ts +0 -16
- package/storybook/components/PopupsViewer/dictionary.d.ts +0 -1
- package/storybook/components/PopupsViewer/subcomponents/PopupActions.d.ts +0 -6
- package/storybook/components/PopupsViewer/subcomponents/PopupContentExample.d.ts +0 -5
- package/storybook/components/PopupsViewer/subcomponents/WithExtendedPopupsContainer.d.ts +0 -5
- package/storybook/components/PopupsViewer/subcomponents/initialPopups.d.ts +0 -6
- package/storybook/components/PopupsViewer/types.d.ts +0 -3
- package/storybook/components/PrintingSystem/PrintingSystem.stories.d.ts +0 -6
- package/storybook/components/PropertyValue/PropertyValue.stories.d.ts +0 -65
- package/storybook/components/ScrollBar/ScrollBar.stories.d.ts +0 -7
- package/storybook/components/SettingsLayout/SettingsLayout.stories.d.ts +0 -6
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/SettingsLayoutsRender.d.ts +0 -5
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/index.d.ts +0 -1
- package/storybook/components/SideBar/SideBar.stories.d.ts +0 -24
- package/storybook/components/SideBar/data/menuData.d.ts +0 -2
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +0 -4
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/constants.d.ts +0 -3
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +0 -4
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +0 -14
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +0 -5
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +0 -5
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/SibarDecorator.d.ts +0 -3
- package/storybook/components/ToastContainer/ToastContainer.stories.d.ts +0 -47
- package/storybook/components/WindowBase/windowBase.stories.d.ts +0 -69
- package/storybook/components/WindowConfirm/windowConfirm.stories.d.ts +0 -8
- package/storybook/components/appBar/AppBar.stories.d.ts +0 -9
- package/storybook/components/commonActions/components/ActionCancel/ActionCancel.stories.d.ts +0 -22
- package/storybook/components/commonActions/components/ActionFormCancel/ActionFormCancel.stories.d.ts +0 -6
- package/storybook/components/commonActions/components/ActionFormIntro/ActionFormIntro.stories.d.ts +0 -14
- package/storybook/components/commonActions/components/ActionIntro/ActionIntro.stories.d.ts +0 -22
- package/storybook/components/commonActions/components/ActionsContainer/ActionsContainer.stories.d.ts +0 -13
- package/storybook/components/extended/React-Json-Viewer/ReactJsonViewer.stories.d.ts +0 -9
- package/storybook/components/extended/React-Router-Dom/NavLink/NavLInk.stories.d.ts +0 -16
- package/storybook/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.stories.d.ts +0 -9
- package/storybook/components/extended/React-Splitter-Layout/SplitLayout.stories.d.ts +0 -13
- package/storybook/components/extended/React-resizable-panels/SplitLayout.stories.d.ts +0 -13
- package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +0 -77
- package/storybook/components/extended/mui/Autocomplete/AutoComple.stories.d.ts +0 -21
- package/storybook/components/extended/mui/Badge/Badge.stories.d.ts +0 -37
- package/storybook/components/extended/mui/Button/Button.stories.d.ts +0 -19
- package/storybook/components/extended/mui/Button/ButtonDataGridWithActions.d.ts +0 -5
- package/storybook/components/extended/mui/CheckBox/CheckBox.stories.d.ts +0 -19
- package/storybook/components/extended/mui/CircularProgress/CircularProgress.default.stories.d.ts +0 -14
- package/storybook/components/extended/mui/CircularProgress/CircularProgress.sizes.stories.d.ts +0 -18
- package/storybook/components/extended/mui/DataTimePicker/DataTimePicker.stories.d.ts +0 -21
- package/storybook/components/extended/mui/Dialog/Dialog.stories.d.ts +0 -7
- package/storybook/components/extended/mui/Dialog/subcomponents/ContentExample.d.ts +0 -29
- package/storybook/components/extended/mui/Dialog/subcomponents/WithExtendedContainer.d.ts +0 -34
- package/storybook/components/extended/mui/Divider/Divider.stories.d.ts +0 -15
- package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +0 -39
- package/storybook/components/extended/mui/LoadingButton/LoadingButton.stories.d.ts +0 -42
- package/storybook/components/extended/mui/MenuDivider/MenuDivider.stories.d.ts +0 -25
- package/storybook/components/extended/mui/MenuItem/MenuItem.stories.d.ts +0 -65
- package/storybook/components/extended/mui/Popover/Popover.stories.d.ts +0 -14
- package/storybook/components/extended/mui/Popover/WithPopoverContext.d.ts +0 -11
- package/storybook/components/extended/mui/Popover/types.d.ts +0 -11
- package/storybook/components/extended/mui/Popper/Popper.stories.d.ts +0 -9
- package/storybook/components/extended/mui/Select/Select.stories.d.ts +0 -38
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Circular/skeleton.defaultCircular.stories.d.ts +0 -14
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rectangular/skeleton.defaultRectangular.stories.d.ts +0 -14
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rounded/skeleton.defaultRounded.stories.d.ts +0 -15
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Text/skeleton.defaultText.stories.d.ts +0 -15
- package/storybook/components/extended/mui/Stack/Stack.stories.d.ts +0 -13
- package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +0 -57
- package/storybook/components/extended/mui/TabContent/TabContent.stories.d.ts +0 -17
- package/storybook/components/extended/mui/Tabs/Tabs.stories.d.ts +0 -8
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +0 -32
- package/storybook/components/extended/mui/TimePicker/TimePicker.stories.d.ts +0 -21
- package/storybook/components/extended/mui/ToggleButton/ToggleButton.stories.d.ts +0 -53
- package/storybook/components/extended/mui/ToggleIconButton/ToggleIconButton.stories.d.ts +0 -49
- package/storybook/components/extended/mui/Tooltip/Tooltip.stories.d.ts +0 -17
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/body/Estados/typography.body.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/bodyDens/Estados/typography.bodyDens.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h1/Estados/typography.h1.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h2/Estados/typography.h2.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h3/Estados/typography.h3.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h5/Estados/typography.h5.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraph/Estados/typography.paragraph.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraphDens/Estados/typography.paragraphDens.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitle/Estados/typography.subtitle.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitleDens/Estados/typography.subtitleDens.estados.stories.d.ts +0 -23
- package/storybook/components/extended/mui/avatar/Avatar.stories.d.ts +0 -12
- package/storybook/components/extended/react-resizable/ResizableBox/resizableBox.stories.d.ts +0 -13
- package/storybook/components/formatters/BooleanFormatter/BooleanFormatter.stories.d.ts +0 -41
- package/storybook/components/formatters/ChipStatusFormatter/ChipStatusFormatter.stories.d.ts +0 -13
- package/storybook/components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.stories.d.ts +0 -13
- package/storybook/components/formatters/DateFormatter/DateFormatter.stories.d.ts +0 -29
- package/storybook/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.stories.d.ts +0 -157
- package/storybook/components/formatters/DistanceToNowFormatter/subcomponents/WithDTNFProvider.d.ts +0 -5
- package/storybook/components/formatters/DistanceToNowFormatter/types.d.ts +0 -3
- package/storybook/components/formatters/PeriodFormatter/PeriodFormatter.stories.d.ts +0 -36
- package/storybook/components/formatters/PoinsFormatter/PointsFormatter.stories.d.ts +0 -21
- package/storybook/components/formatters/PriceFormatter/PriceFormatter.stories.d.ts +0 -17
- package/storybook/components/formatters/UncertaintyFormatter/UncertaintyFormatter.stories.d.ts +0 -13
- package/storybook/components/image/image.stories.d.ts +0 -11
- package/storybook/components/paperForm/PaperForm.stories.d.ts +0 -26
- package/storybook/hook-form/RHFAutocomplete/RHFAutocomplete.stories.d.ts +0 -22
- package/storybook/hook-form/RHFAutocomplete/constants.d.ts +0 -23
- package/storybook/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.stories.d.ts +0 -23
- package/storybook/hook-form/RHFAutocompleteAsync/constants.d.ts +0 -14
- package/storybook/hook-form/RHFAutocompleteAsync/handlers.d.ts +0 -1
- package/storybook/hook-form/RHFCheckBox/RHFCheckBox.stories.d.ts +0 -8
- package/storybook/hook-form/RHFColorPicker/RHFColorPicker.stories.d.ts +0 -21
- package/storybook/hook-form/RHFDateTime/RHFDateTime.stories.d.ts +0 -21
- package/storybook/hook-form/RHFNumberInput/RHFNumberInput.stories.d.ts +0 -21
- package/storybook/hook-form/RHFPeriod/RHFPeriod.stories.d.ts +0 -8
- package/storybook/hook-form/RHFSelect/RHFSelect.stories.d.ts +0 -32
- package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +0 -25
- package/storybook/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.stories.d.ts +0 -27
- package/storybook/hook-form/RHFTimePicker/RHFTimePicker.stories.d.ts +0 -21
- package/storybook/hook-form/RHFUploadImage/RHFUploadImage.stories.d.ts +0 -8
- package/storybook/hook-form/RHFUploadSingleFile/RHFUploadSingleFile.stories.d.ts +0 -11
- package/storybook/wrappers/LineGuide/LineGuide.d.ts +0 -9
- package/storybook/wrappers/LineGuide/styles.d.ts +0 -1
- package/storybook/wrappers/LineGuide/types.d.ts +0 -5
- /package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/getRows.d.ts +0 -0
- /package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/icons.d.ts +0 -0
- /package/{storybook/components/DataGrid → components/DataGrid/tests}/helpers/useColumns.d.ts +0 -0
package/@types/types.d.ts
CHANGED
|
@@ -153,6 +153,8 @@ import { CardOwnerState, CardSlotsType } from '../components/Card/types';
|
|
|
153
153
|
import { ContainerFlowOwnerState, ContainerFlowSlotsType } from '../components/ContainerFlow/types';
|
|
154
154
|
import { NoItemPrivilegesOwnerState, NoItemPrivilegesSlotsType } from '../components/NoItemPrivileges/types';
|
|
155
155
|
import { ImageTextOwnerState, ImageTextSlotsType } from '../components/ImageText/types';
|
|
156
|
+
import { FormContainerOwnerState, FormContainerSlotsType } from '../components/FormContainer/types';
|
|
157
|
+
|
|
156
158
|
declare module '@mui/material/styles' {
|
|
157
159
|
// Define the slots in the theme
|
|
158
160
|
interface ComponentNameToClassKey {
|
|
@@ -238,6 +240,7 @@ declare module '@mui/material/styles' {
|
|
|
238
240
|
M4LNoItemPrivileges: NoItemPrivilegesSlotsType;
|
|
239
241
|
M4LSettingsLayoutBase: SettingsLayoutSlotsType;
|
|
240
242
|
M4LImageText: ImageTextSlotsType;
|
|
243
|
+
M4LFormContainer: FormContainerSlotsType;
|
|
241
244
|
}
|
|
242
245
|
interface ComponentsPropsList {
|
|
243
246
|
// Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
|
|
@@ -323,6 +326,7 @@ declare module '@mui/material/styles' {
|
|
|
323
326
|
M4LNoItemPrivileges: Partial<NoItemPrivilegesOwnerState>;
|
|
324
327
|
M4LSettingsLayoutBase: Partial<SettingsLayoutOwnerState>;
|
|
325
328
|
M4LImageText: Partial<ImageTextOwnerState>;
|
|
329
|
+
M4LFormContainer: Partial<FormContainerOwnerState>;
|
|
326
330
|
}
|
|
327
331
|
interface Components {
|
|
328
332
|
M4LDynamicFilter?: {
|
|
@@ -745,5 +749,10 @@ declare module '@mui/material/styles' {
|
|
|
745
749
|
styleOverrides?: ComponentsOverrides<Theme>['M4LImageText'];
|
|
746
750
|
variants?: ComponentsVariants['M4LImageText'];
|
|
747
751
|
};
|
|
752
|
+
M4LFormContainer?: {
|
|
753
|
+
defaultProps?: ComponentsPropsList['M4LFormContainer'];
|
|
754
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LFormContainer'];
|
|
755
|
+
variants?: ComponentsVariants['M4LFormContainer'];
|
|
756
|
+
};
|
|
748
757
|
}
|
|
749
758
|
}
|
|
@@ -17,6 +17,7 @@ function getComparator(columns, sortColumn) {
|
|
|
17
17
|
return column.customSort;
|
|
18
18
|
}
|
|
19
19
|
switch (typeOrder) {
|
|
20
|
+
//Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
|
|
20
21
|
case "number":
|
|
21
22
|
return (a, b) => {
|
|
22
23
|
try {
|
|
@@ -25,6 +26,7 @@ function getComparator(columns, sortColumn) {
|
|
|
25
26
|
return -1;
|
|
26
27
|
}
|
|
27
28
|
};
|
|
29
|
+
//Por defecto retorna una función de ordenamiento de string
|
|
28
30
|
default:
|
|
29
31
|
return (a, b) => {
|
|
30
32
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowType } from './types';
|
|
2
|
-
import { RawFilterFieldApply } from '
|
|
3
|
-
import { RawSortFieldApply } from '
|
|
2
|
+
import { RawFilterFieldApply } from '../../../DynamicFilter/types';
|
|
3
|
+
import { RawSortFieldApply } from '../../../DynamicSort/types';
|
|
4
4
|
/**
|
|
5
5
|
* Función que simula el comportamiento del backend
|
|
6
6
|
* Recibe exactamente los mismos parámetros que se enviarían al backend real
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RenderHeaderCellProps } from 'react-data-grid';
|
|
2
|
-
import { ChipStatusFormatterProps } from '
|
|
3
|
-
import { DeepKeyOf } from '../../../../
|
|
4
|
-
import { ColumnAlign } from '
|
|
2
|
+
import { ChipStatusFormatterProps } from '../../../formatters/ChipStatusFormatter/types';
|
|
3
|
+
import { DeepKeyOf } from '../../../../utils/types';
|
|
4
|
+
import { ColumnAlign } from '../../types';
|
|
5
5
|
export interface SeedProps {
|
|
6
6
|
quantity: number;
|
|
7
7
|
withBoolean?: boolean;
|
|
@@ -4,8 +4,8 @@ import { SeedProps } from './types';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const useSeed: (props: SeedProps) => {
|
|
6
6
|
columns: readonly import('react-data-grid').Column<import('./types').RowType, unknown>[];
|
|
7
|
-
filters: import('
|
|
8
|
-
sorts: import('
|
|
7
|
+
filters: import('../../..').FilterField[];
|
|
8
|
+
sorts: import('../../..').SortField[];
|
|
9
9
|
rows: import('./types').RowType[];
|
|
10
10
|
rowsMultiSort: import('./types').RowType[];
|
|
11
11
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormContainerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que contiene un formulario y un grupo de botones.
|
|
4
|
+
* @param props - Propiedades del componente.
|
|
5
|
+
* @returns Componente FormContainer.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FormContainer: (props: FormContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { R as RootStyled, F as FormContainerStyled } from "./slots/FormContainerSlots.js";
|
|
3
|
+
import { F as FORM_CONTAINER_CLASSES } from "./constants.js";
|
|
4
|
+
import React, { useMemo } from "react";
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
import { A as ActionsContainer } from "../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
7
|
+
const FormContainer = (props) => {
|
|
8
|
+
const { children, className } = props;
|
|
9
|
+
const { fields, footer } = useMemo(() => {
|
|
10
|
+
const fields2 = [];
|
|
11
|
+
let footer2 = null;
|
|
12
|
+
React.Children.forEach(children, (child) => {
|
|
13
|
+
if (React.isValidElement(child)) {
|
|
14
|
+
if (child.type === ActionsContainer) {
|
|
15
|
+
footer2 = child;
|
|
16
|
+
} else {
|
|
17
|
+
fields2.push(child);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return { fields: fields2, footer: footer2 };
|
|
22
|
+
}, [children]);
|
|
23
|
+
return /* @__PURE__ */ jsxs(
|
|
24
|
+
RootStyled,
|
|
25
|
+
{
|
|
26
|
+
role: "region",
|
|
27
|
+
"aria-label": "formContainer",
|
|
28
|
+
className: clsx(FORM_CONTAINER_CLASSES.root, className),
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsx(FormContainerStyled, { children: fields }),
|
|
31
|
+
footer
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
FormContainer as F
|
|
38
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const formContainerStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Estilos para el contenedor principal.
|
|
4
|
+
*/
|
|
5
|
+
root: () => ({
|
|
6
|
+
display: "flex",
|
|
7
|
+
width: "100%",
|
|
8
|
+
height: "100%",
|
|
9
|
+
overflow: "auto",
|
|
10
|
+
flexDirection: "column"
|
|
11
|
+
}),
|
|
12
|
+
/**
|
|
13
|
+
* Estilos para el contenedor del formulario.
|
|
14
|
+
*/
|
|
15
|
+
formContainer: ({ theme }) => ({
|
|
16
|
+
display: "flex",
|
|
17
|
+
width: "100%",
|
|
18
|
+
flexGrow: 1,
|
|
19
|
+
overflow: "auto",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
gap: theme.vars.size.baseSpacings.sp4
|
|
22
|
+
}),
|
|
23
|
+
buttonGroup: {}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
formContainerStyles as f
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { F as FormContainerSlots } from "./slots/FormContainerEnum.js";
|
|
3
|
+
const FORM_CONTAINER_COMPONENT_KEY = "M4LFormContainer";
|
|
4
|
+
const FORM_CONTAINER_CLASSES = getComponentClasses(FORM_CONTAINER_COMPONENT_KEY, FormContainerSlots);
|
|
5
|
+
export {
|
|
6
|
+
FORM_CONTAINER_CLASSES as F,
|
|
7
|
+
FORM_CONTAINER_COMPONENT_KEY as a
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FormContainer } from './FormContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var FormContainerSlots = /* @__PURE__ */ ((FormContainerSlots2) => {
|
|
2
|
+
FormContainerSlots2["root"] = "root";
|
|
3
|
+
FormContainerSlots2["formContainer"] = "formContainer";
|
|
4
|
+
FormContainerSlots2["buttonGroup"] = "buttonGroup";
|
|
5
|
+
return FormContainerSlots2;
|
|
6
|
+
})(FormContainerSlots || {});
|
|
7
|
+
export {
|
|
8
|
+
FormContainerSlots as F
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('../types').FormContainerOwnerState> & Record<string, unknown>) | undefined;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const FormContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState?: (Partial<import('../types').FormContainerOwnerState> & Record<string, unknown>) | undefined;
|
|
6
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const ButtonGroupStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
8
|
+
ownerState?: (Partial<import('../types').FormContainerOwnerState> & Record<string, unknown>) | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { styled } from "@mui/material";
|
|
2
|
+
import { a as FORM_CONTAINER_COMPONENT_KEY } from "../constants.js";
|
|
3
|
+
import { F as FormContainerSlots } from "./FormContainerEnum.js";
|
|
4
|
+
import { f as formContainerStyles } from "../FormContainer.styles.js";
|
|
5
|
+
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
6
|
+
const RootStyled = styled("div", {
|
|
7
|
+
name: FORM_CONTAINER_COMPONENT_KEY,
|
|
8
|
+
slot: FormContainerSlots.root
|
|
9
|
+
})(formContainerStyles?.root);
|
|
10
|
+
const FormContainerStyled = styled("div", {
|
|
11
|
+
name: FORM_CONTAINER_COMPONENT_KEY,
|
|
12
|
+
slot: FormContainerSlots.formContainer
|
|
13
|
+
})(formContainerStyles?.formContainer);
|
|
14
|
+
styled(ActionsContainer, {
|
|
15
|
+
name: FORM_CONTAINER_COMPONENT_KEY,
|
|
16
|
+
slot: FormContainerSlots.buttonGroup
|
|
17
|
+
})(formContainerStyles?.buttonGroup);
|
|
18
|
+
export {
|
|
19
|
+
FormContainerStyled as F,
|
|
20
|
+
RootStyled as R
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
2
|
+
import { FormContainerSlots } from './slots/FormContainerEnum';
|
|
3
|
+
import { FORM_CONTAINER_COMPONENT_KEY } from './constants';
|
|
4
|
+
import { Theme } from '@mui/material/styles';
|
|
5
|
+
export interface FormContainerProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export type FormContainerOwnerState = {};
|
|
10
|
+
export type FormContainerSlotsType = keyof typeof FormContainerSlots;
|
|
11
|
+
export type FormContainerStyles = M4LOverridesStyleRules<FormContainerSlotsType, typeof FORM_CONTAINER_COMPONENT_KEY, Theme>;
|
|
@@ -56,9 +56,11 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
59
60
|
case "numberInput:inputChange":
|
|
60
61
|
onChange?.(event, fieldValue);
|
|
61
62
|
break;
|
|
63
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
62
64
|
case "numberInput:clamp":
|
|
63
65
|
onChange?.(event, fieldValue);
|
|
64
66
|
break;
|
|
@@ -24,7 +24,8 @@ function PaperForm(props) {
|
|
|
24
24
|
color = "default",
|
|
25
25
|
size = "medium",
|
|
26
26
|
isForm = false,
|
|
27
|
-
variant = "standard"
|
|
27
|
+
variant = "standard",
|
|
28
|
+
height = "auto"
|
|
28
29
|
} = props;
|
|
29
30
|
const { currentSize } = useComponentSize(size);
|
|
30
31
|
const paperFormRef = useRef(null);
|
|
@@ -33,7 +34,8 @@ function PaperForm(props) {
|
|
|
33
34
|
size: currentSize,
|
|
34
35
|
color,
|
|
35
36
|
isForm,
|
|
36
|
-
paperFormVariant: variant
|
|
37
|
+
paperFormVariant: variant,
|
|
38
|
+
height
|
|
37
39
|
};
|
|
38
40
|
return /* @__PURE__ */ jsxs(
|
|
39
41
|
PaperFormRootStyled,
|
|
@@ -43,8 +45,8 @@ function PaperForm(props) {
|
|
|
43
45
|
ownerState: { ...ownerState },
|
|
44
46
|
...process.env.NODE_ENV !== "production" ? { "data-testid": dataTestId } : {},
|
|
45
47
|
children: [
|
|
46
|
-
/* @__PURE__ */ jsx(Header, { urlIcon, title, color, size }),
|
|
47
|
-
/* @__PURE__ */ jsx(ContentStyled, { ownerState: {
|
|
48
|
+
variant !== "text" && /* @__PURE__ */ jsx(Header, { urlIcon, title, color, size }),
|
|
49
|
+
/* @__PURE__ */ jsx(ContentStyled, { ownerState: { ...ownerState }, children: renderChildren(children) })
|
|
48
50
|
]
|
|
49
51
|
}
|
|
50
52
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as getSizeStyles } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
2
|
const paperFormStyles = {
|
|
3
3
|
/**
|
|
4
4
|
*************************************************************
|
|
@@ -6,14 +6,26 @@ const paperFormStyles = {
|
|
|
6
6
|
* @param theme
|
|
7
7
|
***********************************************************
|
|
8
8
|
*/
|
|
9
|
-
paperFormRoot: ({ theme }) => ({
|
|
10
|
-
borderRadius: theme.size.borderRadius.r1,
|
|
9
|
+
paperFormRoot: ({ theme, ownerState }) => ({
|
|
11
10
|
background: theme.vars.palette.background.default,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
...ownerState?.paperFormVariant !== "text" && {
|
|
12
|
+
borderRadius: theme.size.borderRadius.r1,
|
|
13
|
+
border: `${theme.size.borderStroke.container}`,
|
|
14
|
+
borderColor: theme.vars.palette.border.default
|
|
15
|
+
},
|
|
15
16
|
width: "100%",
|
|
16
|
-
|
|
17
|
+
overflow: "auto",
|
|
18
|
+
...ownerState?.height === "full" && {
|
|
19
|
+
flexGrow: 1,
|
|
20
|
+
display: "flex",
|
|
21
|
+
flexDirection: "column",
|
|
22
|
+
flexShrink: 1,
|
|
23
|
+
minHeight: "200px"
|
|
24
|
+
},
|
|
25
|
+
...ownerState?.height === "auto" && {
|
|
26
|
+
height: "auto",
|
|
27
|
+
flexShrink: 0
|
|
28
|
+
},
|
|
17
29
|
container: "container / inline-size"
|
|
18
30
|
}),
|
|
19
31
|
/**
|
|
@@ -32,10 +44,14 @@ const paperFormStyles = {
|
|
|
32
44
|
borderRadius: `${theme.vars.size.borderRadius.r1} ${theme.vars.size.borderRadius.r1} 0 0`,
|
|
33
45
|
background: theme.vars.palette[ownerState?.color ?? "default"].hoverOpacity,
|
|
34
46
|
alignSelf: "stretch",
|
|
35
|
-
...
|
|
36
|
-
theme
|
|
47
|
+
...getSizeStyles(
|
|
48
|
+
theme,
|
|
37
49
|
ownerState?.size || "medium",
|
|
38
|
-
"container"
|
|
50
|
+
"container",
|
|
51
|
+
(size) => ({
|
|
52
|
+
height: size,
|
|
53
|
+
minHeight: size
|
|
54
|
+
})
|
|
39
55
|
)
|
|
40
56
|
}),
|
|
41
57
|
/**
|
|
@@ -67,15 +83,17 @@ const paperFormStyles = {
|
|
|
67
83
|
*/
|
|
68
84
|
containerContent: ({ theme, ownerState }) => ({
|
|
69
85
|
width: "100%",
|
|
70
|
-
height: "auto",
|
|
86
|
+
height: ownerState?.height === "full" ? "100%" : "auto",
|
|
71
87
|
display: "flex",
|
|
72
88
|
flexDirection: ownerState?.isForm ? "row" : "column",
|
|
73
89
|
alignItems: ownerState?.isForm ? "flex-start" : "center",
|
|
74
90
|
justifyContent: ownerState?.isForm ? "flex-start" : "center",
|
|
75
91
|
gap: ownerState?.isForm ? theme.vars.size.baseSpacings.sp3 : theme.vars.size.baseSpacings.sp0,
|
|
76
92
|
flexWrap: ownerState?.isForm ? "wrap" : "nowrap",
|
|
77
|
-
padding: theme.vars.size.baseSpacings.sp3,
|
|
78
|
-
background: theme.vars.palette.background.default
|
|
93
|
+
padding: ownerState?.paperFormVariant === "text" ? "0px" : theme.vars.size.baseSpacings.sp3,
|
|
94
|
+
background: theme.vars.palette.background.default,
|
|
95
|
+
flex: 1,
|
|
96
|
+
overflow: "auto"
|
|
79
97
|
})
|
|
80
98
|
};
|
|
81
99
|
export {
|
|
@@ -9,11 +9,12 @@ export interface PaperFormProps {
|
|
|
9
9
|
urlIcon?: string;
|
|
10
10
|
title: string;
|
|
11
11
|
children?: ReactNode | PropertyValueProps[];
|
|
12
|
-
variant?: 'standard';
|
|
12
|
+
variant?: 'standard' | 'text';
|
|
13
13
|
color?: Extract<ComponentPalletColor, 'default'>;
|
|
14
14
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
15
15
|
isForm?: boolean;
|
|
16
16
|
dataTestId?: string;
|
|
17
|
+
height?: 'auto' | 'full';
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* ***************************************
|
|
@@ -25,7 +26,7 @@ interface CommonsProps {
|
|
|
25
26
|
paperFormVariant?: PaperFormProps['variant'];
|
|
26
27
|
}
|
|
27
28
|
export type HeaderProps = Omit<PaperFormProps, 'children' | 'isForm' | 'variant'> & CommonsProps;
|
|
28
|
-
export type PaperFormOwnerState = Pick<PaperFormProps, 'isForm' | 'color' | 'size'> & CommonsProps;
|
|
29
|
+
export type PaperFormOwnerState = Pick<PaperFormProps, 'isForm' | 'color' | 'size' | 'height'> & CommonsProps;
|
|
29
30
|
/**
|
|
30
31
|
* ***********************************
|
|
31
32
|
* Slots para los estilos utilizados
|
|
@@ -48,6 +48,7 @@ const propertyValueStyles = {
|
|
|
48
48
|
alignItems: "center",
|
|
49
49
|
gap: theme.vars.size.baseSpacings["sp1"],
|
|
50
50
|
width: ownerState?.semanticWidth ? "auto" : "200px",
|
|
51
|
+
height: ownerState?.valueHeight ? ownerState?.valueHeight : "auto",
|
|
51
52
|
overflow: "hidden",
|
|
52
53
|
color: theme.vars.palette.text.primary,
|
|
53
54
|
paddingTop: !ownerState?.isForm ? theme.vars.size.baseSpacings.sp1 : void 0,
|
|
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
441
441
|
bounds: {
|
|
442
442
|
left: MARGIN_GRIDLAYOUT,
|
|
443
443
|
top: MARGIN_GRIDLAYOUT,
|
|
444
|
-
right: -
|
|
445
|
-
bottom: -
|
|
444
|
+
right: -MARGIN_GRIDLAYOUT,
|
|
445
|
+
bottom: -MARGIN_GRIDLAYOUT
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -65,6 +65,11 @@ const RHFAutocompleteAsyncReducer = (onChangeFilterParms) => (state, action) =>
|
|
|
65
65
|
...state,
|
|
66
66
|
isOpen: false
|
|
67
67
|
};
|
|
68
|
+
// case actionsType.SET_SELECTED_OPTIONS_TO_AUTOCOMPLETE:
|
|
69
|
+
// return {
|
|
70
|
+
// ...state,
|
|
71
|
+
// selectedOptions: action.payload,
|
|
72
|
+
// };
|
|
68
73
|
default:
|
|
69
74
|
return state;
|
|
70
75
|
}
|
package/components/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './mui_extended';
|
|
|
18
18
|
export * from './formatters';
|
|
19
19
|
export * from './formatters/dictionary';
|
|
20
20
|
export * from './formatters/types';
|
|
21
|
+
export * from './FormContainer';
|
|
21
22
|
export * from './GridLayout';
|
|
22
23
|
export * from './HelmetPage';
|
|
23
24
|
export * from './HelperError';
|
|
@@ -36,7 +37,7 @@ export * from './ImageText';
|
|
|
36
37
|
export * from './NoItemSelected';
|
|
37
38
|
export * from './NoItemPrivileges';
|
|
38
39
|
export * from './ObjectLogs';
|
|
39
|
-
export * from './PaperForm
|
|
40
|
+
export * from './PaperForm';
|
|
40
41
|
export * from './PDFViewer';
|
|
41
42
|
export * from './popups';
|
|
42
43
|
export * from './PrintingSystem';
|
package/index.js
CHANGED
|
@@ -122,6 +122,7 @@ import { C as C17 } from "./components/formatters/ChipStatusFormatter/ChipStatus
|
|
|
122
122
|
import { g as g17 } from "./components/formatters/DistanceToNowFormatter/dictionary.js";
|
|
123
123
|
import { D as D9 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
124
124
|
import { g as g18 } from "./components/formatters/dictionary.js";
|
|
125
|
+
import { F as F2 } from "./components/FormContainer/FormContainer.js";
|
|
125
126
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
126
127
|
import { R as R4 } from "./components/GridLayout/subcomponents/Responsive/index.js";
|
|
127
128
|
import { c as c2, e as e2, d as d3 } from "./components/GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
@@ -193,7 +194,7 @@ import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
|
|
|
193
194
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
194
195
|
import { S as S10 } from "./components/SettingsLayout/SettingsLayout.js";
|
|
195
196
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
196
|
-
import { F as
|
|
197
|
+
import { F as F3, R as R23, u as u16 } from "./components/hook-form/RHFormContext/index.js";
|
|
197
198
|
import { g as g29 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
198
199
|
import { u as u17 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
199
200
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
@@ -282,7 +283,8 @@ export {
|
|
|
282
283
|
a13 as DynamicMFParmsProvider,
|
|
283
284
|
D5 as DynamicSort,
|
|
284
285
|
F as FixedSizeList,
|
|
285
|
-
F2 as
|
|
286
|
+
F2 as FormContainer,
|
|
287
|
+
F3 as FormProviderCustom,
|
|
286
288
|
G as GridLayout,
|
|
287
289
|
H as HamburgerMenu,
|
|
288
290
|
H2 as HelmetPage,
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ThemeUserColor } from '@m4l/styles';
|
|
2
|
-
export declare const MODES: {
|
|
3
|
-
light: string;
|
|
4
|
-
dark: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const MODES_BACKGROUNDS: Record<keyof Omit<typeof MODES, 'both'>, string>;
|
|
7
|
-
export declare const MODES_ITEMS: {
|
|
8
|
-
value: string;
|
|
9
|
-
title: string;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const DEVICE_TYPES: {
|
|
12
|
-
automatic: string;
|
|
13
|
-
mobile: string;
|
|
14
|
-
desktop: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const DEVICE_TYPES_ITEMS: {
|
|
17
|
-
value: string;
|
|
18
|
-
title: string;
|
|
19
|
-
}[];
|
|
20
|
-
export declare const COLORS_THEME: Record<ThemeUserColor, ThemeUserColor>;
|
|
21
|
-
export declare const COLORS_THEME_ITEMS: Record<string, string>[];
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const USER: string;
|
|
2
|
-
export declare const PWD: string;
|
|
3
|
-
export declare const DATABASE = "";
|
|
4
|
-
export declare const ENVIRONMENT_ASSETS: string;
|
|
5
|
-
export declare const HOST_API_LOCAL: string;
|
|
6
|
-
export declare const HOST_API_REMOTE: string;
|
|
7
|
-
export declare const HOST_STATIC_ASSETS: string;
|
|
8
|
-
export declare const DOMAIN_TOKEN: string;
|
|
9
|
-
export declare const STORYBOOK_MODULE_ID: string;
|
|
10
|
-
export declare const STORYBOOK_ISOLATION_MODULE_ID: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WithContexts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RootStyle: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AppThemeProps } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* AppWithTheme es un componente que se encarga de proveer el contexto de tema a la aplicación.
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
export declare const AppWithTheme: ({ themeMode, themeColor, children }: AppThemeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface GlobalContextType {
|
|
3
|
-
data: any;
|
|
4
|
-
isLoading: boolean;
|
|
5
|
-
loadDataForFirstStory: () => Promise<void>;
|
|
6
|
-
checkIncomingData: () => Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Decorador usado para cargar el diccionario de componente.
|
|
10
|
-
* Si tiene varias historias, solo se cargará la primera,
|
|
11
|
-
* la demas esperaran a que la primera termine de llamar la API.
|
|
12
|
-
*/
|
|
13
|
-
export declare const WithDictionaryContext: React.FC<{
|
|
14
|
-
comps: string[];
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Contexto para extraer el value del contexto
|
|
19
|
-
*/
|
|
20
|
-
export declare const useStoryBookDictionaryContext: () => GlobalContextType;
|
|
21
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WithDictionaryContext';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StoryFn } from '@storybook/react';
|
|
2
|
-
/**
|
|
3
|
-
* Decorator that adds the form context to the story and triggers validation after a delay.
|
|
4
|
-
*/
|
|
5
|
-
export declare const WithForms: ({ values, validationSchema }: {
|
|
6
|
-
values?: {} | undefined;
|
|
7
|
-
validationSchema?: {} | undefined;
|
|
8
|
-
}) => (Story: StoryFn) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WithForm';
|