@m4l/components 9.3.12-JT290825.beta.1 → 9.3.13
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 +61 -207
- 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/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
- package/components/ObjectLogs/slots/ObjectLogsSlots.js +2 -2
- package/components/ObjectLogs/subcomponents/DetailDialog/index.js +2 -4
- package/components/SideBar/tests/constants.d.ts +1 -0
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/extended/React-Json-Viewer/ReactJsonViewer.js +2 -2
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.d.ts +2 -2
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js +16 -16
- package/components/extended/React-Json-Viewer/types.d.ts +2 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFormContext/index.d.ts +1 -1
- package/components/hook-form/RHFormContext/index.js +4 -5
- package/components/hook-form/RHFormContext/types.d.ts +1 -3
- package/components/index.d.ts +0 -1
- package/index.d.ts +0 -1
- package/index.js +52 -80
- package/package.json +2 -2
- 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/Stepper/Stepper.d.ts +0 -8
- package/components/Stepper/Stepper.js +0 -77
- package/components/Stepper/Stepper.styles.d.ts +0 -2
- package/components/Stepper/Stepper.styles.js +0 -289
- package/components/Stepper/constants.d.ts +0 -2
- package/components/Stepper/constants.js +0 -6
- package/components/Stepper/dictionary.d.ts +0 -8
- package/components/Stepper/dictionary.js +0 -14
- package/components/Stepper/helpers/evaluateVisibilityStepCondition/index.d.ts +0 -9
- package/components/Stepper/helpers/evaluateVisibilityStepCondition/index.js +0 -17
- package/components/Stepper/helpers/findNextVisibleValidStep/index.d.ts +0 -10
- package/components/Stepper/helpers/findNextVisibleValidStep/index.js +0 -13
- package/components/Stepper/helpers/findPrevVisibleValidStep/index.d.ts +0 -10
- package/components/Stepper/helpers/findPrevVisibleValidStep/index.js +0 -13
- package/components/Stepper/helpers/index.d.ts +0 -4
- package/components/Stepper/helpers/index.js +0 -1
- package/components/Stepper/helpers/isLastVisibleValidStep/index.d.ts +0 -10
- package/components/Stepper/helpers/isLastVisibleValidStep/index.js +0 -16
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.d.ts +0 -6
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.js +0 -16
- package/components/Stepper/hooks/useStepper/index.d.ts +0 -5
- package/components/Stepper/hooks/useStepper/index.js +0 -20
- package/components/Stepper/hooks/useStepperActions/index.d.ts +0 -1
- package/components/Stepper/hooks/useStepperActions/index.js +0 -1
- package/components/Stepper/hooks/useStepperActions/useStepperActions.d.ts +0 -8
- package/components/Stepper/hooks/useStepperActions/useStepperActions.js +0 -63
- package/components/Stepper/hooks/useStickyStepperFooter/index.d.ts +0 -7
- package/components/Stepper/hooks/useStickyStepperFooter/index.js +0 -20
- package/components/Stepper/icons.d.ts +0 -9
- package/components/Stepper/icons.js +0 -12
- package/components/Stepper/index.d.ts +0 -14
- package/components/Stepper/index.js +0 -1
- package/components/Stepper/slots/StepperEnum.d.ts +0 -26
- package/components/Stepper/slots/StepperEnum.js +0 -36
- package/components/Stepper/slots/StepperSlot.d.ts +0 -57
- package/components/Stepper/slots/StepperSlot.js +0 -97
- package/components/Stepper/store/StepperContext/index.d.ts +0 -12
- package/components/Stepper/store/StepperContext/index.js +0 -103
- package/components/Stepper/store/StepperStore/index.d.ts +0 -16
- package/components/Stepper/store/StepperStore/index.js +0 -152
- package/components/Stepper/store/types.d.ts +0 -78
- package/components/Stepper/subcomponents/ContentArea/index.d.ts +0 -6
- package/components/Stepper/subcomponents/ContentArea/index.js +0 -24
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperIcon/index.d.ts +0 -4
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperIcon/index.js +0 -26
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.d.ts +0 -4
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.js +0 -23
- package/components/Stepper/subcomponents/StepArea/index.d.ts +0 -6
- package/components/Stepper/subcomponents/StepArea/index.js +0 -135
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.d.ts +0 -5
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +0 -85
- package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.d.ts +0 -4
- package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.js +0 -25
- package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.d.ts +0 -4
- package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.js +0 -46
- package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.d.ts +0 -4
- package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.js +0 -52
- package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.d.ts +0 -4
- package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +0 -20
- package/components/Stepper/subcomponents/StepperButtons/index.d.ts +0 -4
- package/components/Stepper/subcomponents/StepperButtons/index.js +0 -1
- package/components/Stepper/subcomponents/StepperContent/index.d.ts +0 -7
- package/components/Stepper/subcomponents/StepperContent/index.js +0 -23
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts +0 -6
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +0 -42
- package/components/Stepper/subcomponents/StepperFooter/index.d.ts +0 -6
- package/components/Stepper/subcomponents/StepperFooter/index.js +0 -48
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.d.ts +0 -6
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.js +0 -9
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.d.ts +0 -6
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.js +0 -33
- package/components/Stepper/types.d.ts +0 -162
- 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/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.d.ts +0 -11
- package/helpers/getStepsAndValidationSchema/getStepsAndValidationSchema.js +0 -44
- package/helpers/getStepsAndValidationSchema/index.d.ts +0 -2
- package/helpers/getStepsAndValidationSchema/index.js +0 -1
- package/helpers/getStepsAndValidationSchema/types.d.ts +0 -21
- package/helpers/getStepsAndValidationSchema/types.js +0 -1
- package/helpers/index.d.ts +0 -1
- package/helpers/index.js +0 -1
- 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 -18
- 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/FormContainer/FormContainer.stories.d.ts +0 -9
- 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/PaperForm/PaperForm.stories.d.ts +0 -31
- 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/Stepper/Stepper.stories.d.ts +0 -28
- package/storybook/components/Stepper/api/userApi.d.ts +0 -6
- package/storybook/components/Stepper/components/AdminPermissionsStep.d.ts +0 -4
- package/storybook/components/Stepper/components/CompanySocialMediaStep.d.ts +0 -4
- package/storybook/components/Stepper/components/CompanyStep.d.ts +0 -4
- package/storybook/components/Stepper/components/ContactStep.d.ts +0 -4
- package/storybook/components/Stepper/components/ExtraInformationStep.d.ts +0 -4
- package/storybook/components/Stepper/components/ModulePermissionsStep.d.ts +0 -4
- package/storybook/components/Stepper/components/PrivilegesStep.d.ts +0 -4
- package/storybook/components/Stepper/helpers/useSteps.d.ts +0 -43
- package/storybook/components/Stepper/subcomponents/StepperDecorator.d.ts +0 -9
- package/storybook/components/Stepper/validations/CompanyData.d.ts +0 -18
- package/storybook/components/Stepper/validations/ContactData.d.ts +0 -11
- package/storybook/components/Stepper/validations/ExtraInformationData.d.ts +0 -9
- package/storybook/components/Stepper/validations/PrivilegesData.d.ts +0 -14
- 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/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
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { u as useStepper } from "../../../../hooks/useStepper/index.js";
|
|
4
|
-
import { useWatch } from "react-hook-form";
|
|
5
|
-
import { e as evaluateVisibilityStepCondition } from "../../../../helpers/evaluateVisibilityStepCondition/index.js";
|
|
6
|
-
function Step(props) {
|
|
7
|
-
const { stepKey, children } = props;
|
|
8
|
-
const formValues = useWatch();
|
|
9
|
-
const { currentStep, steps, visibilityData } = useStepper((state) => ({
|
|
10
|
-
currentStep: state.currentStep,
|
|
11
|
-
steps: state.steps,
|
|
12
|
-
visibilityData: state.visibilityData
|
|
13
|
-
}));
|
|
14
|
-
const currentStepConfig = useMemo(() => {
|
|
15
|
-
return steps[currentStep];
|
|
16
|
-
}, [steps, currentStep]);
|
|
17
|
-
const stepConfig = useMemo(() => {
|
|
18
|
-
return steps.find((step) => step.key === stepKey);
|
|
19
|
-
}, [steps, stepKey]);
|
|
20
|
-
const isStepVisible = useMemo(() => {
|
|
21
|
-
if (!currentStepConfig) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
if (stepKey !== currentStepConfig.key) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
if (stepConfig && !evaluateVisibilityStepCondition(stepConfig, formValues || {}, visibilityData)) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
return true;
|
|
31
|
-
}, [currentStepConfig, stepKey, stepConfig, formValues, visibilityData]);
|
|
32
|
-
const renderedContent = useMemo(() => {
|
|
33
|
-
if (!isStepVisible) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
37
|
-
}, [isStepVisible, children]);
|
|
38
|
-
return renderedContent;
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
Step as S
|
|
42
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StepperFooterProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* StepperFooter es el componente footer del Stepper que contiene las acciones de navegación.
|
|
4
|
-
* Puede incluir LeftActions y RightActions como children.
|
|
5
|
-
*/
|
|
6
|
-
export declare function StepperFooter(props: StepperFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, Children, isValidElement } from "react";
|
|
3
|
-
import { i as StepperFooterSectionStyled } from "../../slots/StepperSlot.js";
|
|
4
|
-
import { S as StepperFooterLeftActions } from "./subcomponents/StepperFooterLeftActions/index.js";
|
|
5
|
-
import { S as StepperFooterRightActions } from "./subcomponents/StepperFooterRightActions/index.js";
|
|
6
|
-
function StepperFooter(props) {
|
|
7
|
-
const { children, ownerState } = props;
|
|
8
|
-
const { stepperFooterLeftActions, stepperFooterRightActions } = useMemo(() => {
|
|
9
|
-
let parsedLeftActions = null;
|
|
10
|
-
let parsedRightActions = null;
|
|
11
|
-
let leftActionsCount = 0;
|
|
12
|
-
let rightActionsCount = 0;
|
|
13
|
-
if (children) {
|
|
14
|
-
Children.forEach(children, (child) => {
|
|
15
|
-
if (isValidElement(child)) {
|
|
16
|
-
if (child.type === StepperFooterLeftActions) {
|
|
17
|
-
leftActionsCount++;
|
|
18
|
-
if (leftActionsCount > 1) {
|
|
19
|
-
throw new Error(
|
|
20
|
-
"StepperFooter: Solo se permite un componente StepperFooterLeftActions. Se encontraron múltiples StepperFooterLeftActions."
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
parsedLeftActions = child;
|
|
24
|
-
} else if (child.type === StepperFooterRightActions) {
|
|
25
|
-
rightActionsCount++;
|
|
26
|
-
if (rightActionsCount > 1) {
|
|
27
|
-
throw new Error(
|
|
28
|
-
"StepperFooter: Solo se permite un componente StepperFooterRightActions. Se encontraron múltiples StepperFooterRightActions."
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
parsedRightActions = child;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
stepperFooterLeftActions: parsedLeftActions,
|
|
38
|
-
stepperFooterRightActions: parsedRightActions
|
|
39
|
-
};
|
|
40
|
-
}, [children]);
|
|
41
|
-
return /* @__PURE__ */ jsxs(StepperFooterSectionStyled, { ownerState, children: [
|
|
42
|
-
stepperFooterLeftActions,
|
|
43
|
-
stepperFooterRightActions
|
|
44
|
-
] });
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
StepperFooter as S
|
|
48
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StepperFooterLeftActionsProps } from '../../../../types';
|
|
2
|
-
/**
|
|
3
|
-
* StepperFooterLeftActions es un componente de guía de estilos para acciones del lado izquierdo del footer del Stepper.
|
|
4
|
-
* Puede recibir children para renderizar contenido personalizado.
|
|
5
|
-
*/
|
|
6
|
-
export declare function StepperFooterLeftActions(props: StepperFooterLeftActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { j as StepperFooterLeftActionsStyled } from "../../../../slots/StepperSlot.js";
|
|
3
|
-
function StepperFooterLeftActions(props) {
|
|
4
|
-
const { children } = props;
|
|
5
|
-
return /* @__PURE__ */ jsx(StepperFooterLeftActionsStyled, { children });
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
StepperFooterLeftActions as S
|
|
9
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StepperFooterRightActionsProps } from '../../../../types';
|
|
2
|
-
/**
|
|
3
|
-
* StepperFooterRightActions es un componente de guía de estilos para acciones del lado derecho del footer del Stepper.
|
|
4
|
-
* Puede recibir children para renderizar contenido personalizado.
|
|
5
|
-
*/
|
|
6
|
-
export declare function StepperFooterRightActions(props: StepperFooterRightActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { useMemo } from "react";
|
|
3
|
-
import { u as useIsLastVisibleValidStep } from "../../../../hooks/useIsLastVisibleValidStep/index.js";
|
|
4
|
-
import { k as StepperFooterRightActionsStyled } from "../../../../slots/StepperSlot.js";
|
|
5
|
-
import { S as StepperNextButton } from "../../../StepperButtons/StepperNextButton/index.js";
|
|
6
|
-
import { S as StepperSubmitButton } from "../../../StepperButtons/StepperSubmitButton/index.js";
|
|
7
|
-
function StepperFooterRightActions(props) {
|
|
8
|
-
const { children } = props;
|
|
9
|
-
const isLastVisibleValidStep = useIsLastVisibleValidStep();
|
|
10
|
-
const childrenWithoutNextButton = useMemo(() => {
|
|
11
|
-
if (!isLastVisibleValidStep) {
|
|
12
|
-
return children;
|
|
13
|
-
}
|
|
14
|
-
return React.Children.toArray(children).filter((child) => {
|
|
15
|
-
if (React.isValidElement(child)) {
|
|
16
|
-
if (child.type === StepperNextButton) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return true;
|
|
21
|
-
});
|
|
22
|
-
}, [children, isLastVisibleValidStep]);
|
|
23
|
-
const submitButton = useMemo(() => {
|
|
24
|
-
return isLastVisibleValidStep ? /* @__PURE__ */ jsx(StepperSubmitButton, {}) : null;
|
|
25
|
-
}, [isLastVisibleValidStep]);
|
|
26
|
-
return /* @__PURE__ */ jsxs(StepperFooterRightActionsStyled, { children: [
|
|
27
|
-
childrenWithoutNextButton,
|
|
28
|
-
submitButton
|
|
29
|
-
] });
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
StepperFooterRightActions as S
|
|
33
|
-
};
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
import { Sizes } from '@m4l/styles';
|
|
4
|
-
import { ContentAreaSlots, ContentSlots, StepperFooterSlots, StepperSlots } from './slots/StepperEnum';
|
|
5
|
-
import { STEPPER_PREFIX_NAME } from './constants';
|
|
6
|
-
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
7
|
-
import { Step as StepComponent } from './subcomponents/StepperContent/subcomponents/Step';
|
|
8
|
-
export type Orientation = 'horizontal' | 'vertical';
|
|
9
|
-
export type IndicatorType = 'number' | 'dot';
|
|
10
|
-
export type FormData = Record<string, string | number | boolean | null | undefined>;
|
|
11
|
-
export type VisibilityData = Record<string, string | number | boolean | null | undefined>;
|
|
12
|
-
export type Step = {
|
|
13
|
-
/**
|
|
14
|
-
* Clave única que identifica el step.
|
|
15
|
-
*/
|
|
16
|
-
key: string;
|
|
17
|
-
/**
|
|
18
|
-
* Título del step.
|
|
19
|
-
*/
|
|
20
|
-
title: string;
|
|
21
|
-
/**
|
|
22
|
-
* Descripción del step.
|
|
23
|
-
*/
|
|
24
|
-
description?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Icono del step.
|
|
27
|
-
*/
|
|
28
|
-
icon?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Array con los campos que se deben validar en el step.
|
|
31
|
-
*/
|
|
32
|
-
validationFields?: string[];
|
|
33
|
-
/**
|
|
34
|
-
* Función que determina si el step se debe mostrar.
|
|
35
|
-
* @param formData - Datos del formulario.
|
|
36
|
-
* @param visibilityData - Datos adicionales para evaluar visibilidad (ej: objectId).
|
|
37
|
-
* @returns true si el step se debe mostrar, false en caso contrario.
|
|
38
|
-
* Si no se proporciona, el step siempre se muestra.
|
|
39
|
-
*/
|
|
40
|
-
visibilityCondition?: (formData?: FormData, visibilityData?: VisibilityData) => boolean;
|
|
41
|
-
};
|
|
42
|
-
export interface StepperProps {
|
|
43
|
-
/**
|
|
44
|
-
* Children opcional para inyectar componentes adicionales
|
|
45
|
-
*/
|
|
46
|
-
children?: React.ReactNode;
|
|
47
|
-
/**
|
|
48
|
-
* "storeId" identificador del store
|
|
49
|
-
*/
|
|
50
|
-
storeId?: string;
|
|
51
|
-
/**
|
|
52
|
-
* "storeDevtoolsEnabled" determina si se debe usar devtools para el store
|
|
53
|
-
*/
|
|
54
|
-
storeDevtoolsEnabled?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* "visibleTitle": Propiedad que ejecuta condición para visualizar los titulos en el SteppArea
|
|
57
|
-
*/
|
|
58
|
-
visibleTitle?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Array con la configuración de cada step.
|
|
61
|
-
*/
|
|
62
|
-
steps: Step[];
|
|
63
|
-
/**
|
|
64
|
-
* Datos adicionales para evaluar visibilityCondition de los steps.
|
|
65
|
-
* Por ejemplo, objectId para determinar si mostrar steps después del submit inicial.
|
|
66
|
-
*/
|
|
67
|
-
visibilityData?: VisibilityData;
|
|
68
|
-
/**
|
|
69
|
-
* Indica que tipo de indicador se usará en el Stepper.
|
|
70
|
-
* Puede ser 'number' para números o 'dot' para puntos.
|
|
71
|
-
*/
|
|
72
|
-
indicatorType?: IndicatorType;
|
|
73
|
-
/**
|
|
74
|
-
* "orientation" define la orientación del Stepper.
|
|
75
|
-
*/
|
|
76
|
-
orientation?: Orientation;
|
|
77
|
-
/**
|
|
78
|
-
* Tamaño del componente, puede ser uno de los valores definidos en 'small' , 'medium'
|
|
79
|
-
*/
|
|
80
|
-
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Props del StepperContent
|
|
84
|
-
*/
|
|
85
|
-
export interface StepperContentProps {
|
|
86
|
-
/**
|
|
87
|
-
* Array de componentes Step
|
|
88
|
-
*/
|
|
89
|
-
children: ReactElement<typeof StepComponent>[];
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Props del Step
|
|
93
|
-
*/
|
|
94
|
-
export interface StepProps {
|
|
95
|
-
/**
|
|
96
|
-
* Clave única del step que determina cuándo se renderiza
|
|
97
|
-
*/
|
|
98
|
-
stepKey: string;
|
|
99
|
-
/**
|
|
100
|
-
* Contenido del step
|
|
101
|
-
*/
|
|
102
|
-
children: ReactNode;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Props del ContentArea
|
|
106
|
-
*/
|
|
107
|
-
export interface ContentAreaProps {
|
|
108
|
-
children: ReactNode;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Props del Indicator
|
|
112
|
-
*/
|
|
113
|
-
export interface IndicatorProps {
|
|
114
|
-
/**
|
|
115
|
-
* El número del paso actual.
|
|
116
|
-
*/
|
|
117
|
-
step: number;
|
|
118
|
-
/**
|
|
119
|
-
* Indica si el paso es el actual.
|
|
120
|
-
*/
|
|
121
|
-
currentStep: number;
|
|
122
|
-
/**
|
|
123
|
-
* El número total de pasos.
|
|
124
|
-
*/
|
|
125
|
-
totalSteps: number;
|
|
126
|
-
/**
|
|
127
|
-
* El índice original del paso en el array completo de pasos.
|
|
128
|
-
* Se usa para buscar el estado de validación en stepValidationStatus.
|
|
129
|
-
*/
|
|
130
|
-
originalStepIndex: number;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Props del StepperFooter
|
|
134
|
-
*/
|
|
135
|
-
export interface StepperFooterProps {
|
|
136
|
-
children?: ReactNode;
|
|
137
|
-
ownerState?: StepperOwnerState;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Props del StepperFooterLeftActions
|
|
141
|
-
*/
|
|
142
|
-
export interface StepperFooterLeftActionsProps {
|
|
143
|
-
children?: ReactNode;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Props del StepperFooterRightActions
|
|
147
|
-
*/
|
|
148
|
-
export interface StepperFooterRightActionsProps {
|
|
149
|
-
children?: ReactNode;
|
|
150
|
-
}
|
|
151
|
-
export interface StepperOwnerState extends Pick<StepperProps, 'visibleTitle'>, Record<string, unknown> {
|
|
152
|
-
step?: number;
|
|
153
|
-
currentStep?: number;
|
|
154
|
-
totalSteps?: number;
|
|
155
|
-
orientation?: Orientation;
|
|
156
|
-
indicatorType?: IndicatorType;
|
|
157
|
-
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
158
|
-
stepValidationStatus?: Record<number, boolean>;
|
|
159
|
-
stepperFooterSticky?: boolean;
|
|
160
|
-
}
|
|
161
|
-
export type StepperSlotsType = StepperSlots | ContentSlots | ContentAreaSlots | StepperFooterSlots;
|
|
162
|
-
export type StepperStyles = M4LOverridesStyleRules<StepperSlotsType, typeof STEPPER_PREFIX_NAME, Theme>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as CustomFormControlLabel } from './FormControlLabel';
|
|
3
|
-
declare const meta: Meta<typeof CustomFormControlLabel>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CustomFormControlLabel>;
|
|
6
|
-
export declare const Base: Story;
|
|
7
|
-
export declare const CheckboxType: Story;
|
|
8
|
-
export declare const SwitchType: Story;
|
|
9
|
-
export declare const RadioWithLabelOption: Story;
|
|
10
|
-
export declare const SizesRadio: Story;
|
|
11
|
-
/**
|
|
12
|
-
* TODO: Documentar
|
|
13
|
-
*/
|
|
14
|
-
export declare function ControlledRadioButtonsGroup(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare const CheckboxDisabledWithLabel: Story;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Step } from '../../components/Stepper/types';
|
|
2
|
-
import { GetStepsAndValidationSchemaProps } from './types';
|
|
3
|
-
import * as Yup from 'yup';
|
|
4
|
-
/**
|
|
5
|
-
* Hook personalizado que recibe un array de steps con validaciones y regresa todo listo para el Stepper
|
|
6
|
-
* Una sola configuración genera: validationSchema + steps + validationFields automáticamente
|
|
7
|
-
*/
|
|
8
|
-
export declare function getStepsAndValidationSchema({ steps, visibilityData, }: GetStepsAndValidationSchemaProps): {
|
|
9
|
-
validationSchema: Yup.ObjectSchema<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, Record<string, any>>, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, Record<string, any>>>, import('yup/lib/object').AssertsShape<import('yup/lib/object').Assign<import('yup/lib/object').ObjectShape, Record<string, any>>>>;
|
|
10
|
-
steps: Step[];
|
|
11
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as Yup from "yup";
|
|
2
|
-
import { e as evaluateVisibilityStepCondition } from "../../components/Stepper/helpers/evaluateVisibilityStepCondition/index.js";
|
|
3
|
-
function getStepsAndValidationSchema({
|
|
4
|
-
steps,
|
|
5
|
-
visibilityData
|
|
6
|
-
}) {
|
|
7
|
-
const validationSchema = (() => {
|
|
8
|
-
const combinedValidations = {};
|
|
9
|
-
const visibleSteps = steps.filter((step) => {
|
|
10
|
-
if (!step.visibilityCondition) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
return evaluateVisibilityStepCondition(step, void 0, visibilityData);
|
|
14
|
-
});
|
|
15
|
-
visibleSteps.forEach((step) => {
|
|
16
|
-
if (step.validationFunction) {
|
|
17
|
-
const validationResult = step.validationFunction();
|
|
18
|
-
Object.assign(combinedValidations, validationResult);
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return Yup.object().shape(combinedValidations);
|
|
22
|
-
})();
|
|
23
|
-
const processedSteps = steps.map((step) => {
|
|
24
|
-
let validationFields = [];
|
|
25
|
-
if (step.validationFunction) {
|
|
26
|
-
const validationResult = step.validationFunction();
|
|
27
|
-
validationFields = Object.keys(validationResult);
|
|
28
|
-
}
|
|
29
|
-
const processedStep = {
|
|
30
|
-
...step,
|
|
31
|
-
// Incluir todas las propiedades del step original
|
|
32
|
-
validationFields
|
|
33
|
-
// Agregar validationFields calculados
|
|
34
|
-
};
|
|
35
|
-
return processedStep;
|
|
36
|
-
});
|
|
37
|
-
return {
|
|
38
|
-
validationSchema,
|
|
39
|
-
steps: processedSteps
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
getStepsAndValidationSchema as g
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Step } from '../../components/Stepper/types';
|
|
2
|
-
/**
|
|
3
|
-
* Configuración completa de un step con validaciones incluidas
|
|
4
|
-
*/
|
|
5
|
-
export interface StepWithValidation extends Omit<Step, 'validationFields'> {
|
|
6
|
-
/**
|
|
7
|
-
* Función de validación que retorna un objeto con esquemas Yup
|
|
8
|
-
* Ejemplo: ContactDataValidation
|
|
9
|
-
*/
|
|
10
|
-
validationFunction?: () => Record<string, any>;
|
|
11
|
-
}
|
|
12
|
-
export interface GetStepsAndValidationSchemaProps {
|
|
13
|
-
/**
|
|
14
|
-
* Array de steps con sus validaciones incluidas
|
|
15
|
-
*/
|
|
16
|
-
steps: StepWithValidation[];
|
|
17
|
-
/**
|
|
18
|
-
* Datos adicionales para visibilityCondition (ej: objectId)
|
|
19
|
-
*/
|
|
20
|
-
visibilityData?: any;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/helpers/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './getStepsAndValidationSchema';
|
package/helpers/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Sizes } from '@m4l/styles';
|
|
3
|
-
/**
|
|
4
|
-
* TODO: Documentar
|
|
5
|
-
*/
|
|
6
|
-
declare const ComponentSizeBase: ({ propSize }: {
|
|
7
|
-
propSize?: Sizes;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
/**
|
|
10
|
-
* Hook usado para obtener el valor por default para la propiedad `size` de los componentes.
|
|
11
|
-
*
|
|
12
|
-
* El hook está en la ruta `packages/m4l_components/src/hooks/useComponentSize/useComponentSize.ts`.
|
|
13
|
-
*
|
|
14
|
-
* Ejemplo:
|
|
15
|
-
*
|
|
16
|
-
* ```jsx
|
|
17
|
-
* import { useComponentSize } from './useComponentSize';
|
|
18
|
-
*
|
|
19
|
-
* const Button = ({ size }) => {
|
|
20
|
-
* // currentSize sería la variable que debemos usar para calcular el size del componente en los estilos.
|
|
21
|
-
* const { currentSize } = useComponentSize(size);
|
|
22
|
-
*
|
|
23
|
-
* return (...);
|
|
24
|
-
* };
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* El valor por defecto para toda la aplicación se encuentra en `packages/m4l_styles/src/config.ts`
|
|
28
|
-
* y es `'medium'`, se puede obtener de la constante `DEFAULT_SIZE` desde `@m4l/styles`.
|
|
29
|
-
*
|
|
30
|
-
* Este valor por defecto es pasado a través del contexto `AppearanceComponentProvider` que se
|
|
31
|
-
* encuentra en `packages/m4l_components/src/contexts/AppearanceComponentContext/AppearanceComponentContext.tsx`
|
|
32
|
-
*/
|
|
33
|
-
declare const meta: Meta<typeof ComponentSizeBase>;
|
|
34
|
-
export default meta;
|
|
35
|
-
type Story = StoryObj<typeof ComponentSizeBase>;
|
|
36
|
-
/**
|
|
37
|
-
* Base useComponentSize hook, cuando no se envía el size `currentSize` es el valor por default
|
|
38
|
-
*/
|
|
39
|
-
export declare const Base: Story;
|
|
40
|
-
/**
|
|
41
|
-
* With prop size
|
|
42
|
-
*/
|
|
43
|
-
export declare const WithPropSize: Story;
|
|
44
|
-
/**
|
|
45
|
-
* With inner context
|
|
46
|
-
*/
|
|
47
|
-
export declare const WithInnerContext: Story;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { SideBar } from '../../../src/components/SideBar';
|
|
3
|
-
import { AccountPopover } from '../../../src/components/AccountPopover';
|
|
4
|
-
declare const meta: Meta<typeof AccountPopover>;
|
|
5
|
-
type Story = StoryObj<typeof SideBar>;
|
|
6
|
-
/**
|
|
7
|
-
* Componente AccountPopover por defecto.
|
|
8
|
-
* Muestra el avatar del usuario, la versión de la aplicación, el nombre del usuario y las opciones de menú.
|
|
9
|
-
*/
|
|
10
|
-
export declare const Default: Story;
|
|
11
|
-
export default meta;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { PaperForm } from '../../../../src/components/PaperForm';
|
|
3
|
-
import { AreasAdmin } from '../../../../src/components/areas/components/AreasAdmin/AreasAdmin';
|
|
4
|
-
declare const meta: Meta<typeof AreasAdmin>;
|
|
5
|
-
type Story = StoryObj<typeof PaperForm>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Skeleton: Story;
|
|
8
|
-
export default meta;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { PaperForm } from '../../../../src/components/PaperForm';
|
|
3
|
-
import { AreasViewer } from '../../../../src/components/areas/components/AreasViewer/AreasViewer';
|
|
4
|
-
declare const meta: Meta<typeof AreasViewer>;
|
|
5
|
-
type Story = StoryObj<typeof PaperForm>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export default meta;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const MOCK_CLIENTS: {
|
|
2
|
-
nombre: string;
|
|
3
|
-
correo: string;
|
|
4
|
-
telefono: string;
|
|
5
|
-
direccion: string;
|
|
6
|
-
ciudad: string;
|
|
7
|
-
}[];
|
|
8
|
-
export declare const MOCK_USERS: {
|
|
9
|
-
nombre: string;
|
|
10
|
-
apellido: string;
|
|
11
|
-
email: string;
|
|
12
|
-
telefono: string;
|
|
13
|
-
activo: boolean;
|
|
14
|
-
}[];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface PopupButtonProps {
|
|
3
|
-
title: string;
|
|
4
|
-
iconUrl: string;
|
|
5
|
-
dynamicParams: Record<string, any>;
|
|
6
|
-
/** Si se pasa este id, se intentará reemplazar el popup existente */
|
|
7
|
-
windowType?: 'simple_popup' | 'microfrontend_userd_add_edit_popup' | 'microfrontend_users_list_layout' | 'microfrontend_userd_add_edit_modal';
|
|
8
|
-
replaceMeId?: string;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
/** Callback para notificar que se ha generado un id, en caso de no recibir uno por props */
|
|
11
|
-
onPopupCreated?: (id: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const heightWindow = 180;
|
|
14
|
-
export declare const widthWindow = 460;
|
|
15
|
-
export declare const marginWindow = 10;
|
|
16
|
-
/**
|
|
17
|
-
* Botón que lanza un popup. Si se proporciona un replaceMeId, se usará ese id para reemplazar el popup existente;
|
|
18
|
-
* si no, se genera uno nuevo (incluyendo el currentAreaId) y se notifica al padre mediante onPopupCreated.
|
|
19
|
-
*/
|
|
20
|
-
export declare const PopupButton: React.FC<PopupButtonProps>;
|
|
21
|
-
export {};
|
package/storybook/components/Areas/AreasViewerWithNetwork/AreasViewerWithNetwork.stories.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { PaperForm } from '../../../../src/components/PaperForm';
|
|
3
|
-
import { AreasAdmin } from '../../../../src/components/areas/components/AreasAdmin/AreasAdmin';
|
|
4
|
-
declare const meta: Meta<typeof AreasAdmin>;
|
|
5
|
-
type Story = StoryObj<typeof PaperForm>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export default meta;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const MOCK_CLIENTS: {
|
|
2
|
-
nombre: string;
|
|
3
|
-
correo: string;
|
|
4
|
-
telefono: string;
|
|
5
|
-
direccion: string;
|
|
6
|
-
ciudad: string;
|
|
7
|
-
}[];
|
|
8
|
-
export declare const MOCK_USERS: {
|
|
9
|
-
nombre: string;
|
|
10
|
-
apellido: string;
|
|
11
|
-
email: string;
|
|
12
|
-
telefono: string;
|
|
13
|
-
activo: boolean;
|
|
14
|
-
}[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const handle_mock: import('msw').HttpHandler[];
|