@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,78 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Step, StepperOwnerState, StepperProps } from '../types';
|
|
3
|
-
export interface StepperState extends Pick<StepperProps, 'storeId' | 'visibleTitle' | 'steps' | 'indicatorType' | 'orientation' | 'size' | 'visibilityData'> {
|
|
4
|
-
/**
|
|
5
|
-
* "ownerState" estado a nivel de clases del componente
|
|
6
|
-
*/
|
|
7
|
-
ownerState: StepperOwnerState;
|
|
8
|
-
/**
|
|
9
|
-
* "currentStep" step actual
|
|
10
|
-
*/
|
|
11
|
-
currentStep: number;
|
|
12
|
-
/**
|
|
13
|
-
* "host_static_assets" ruta base de los assets estáticos
|
|
14
|
-
*/
|
|
15
|
-
host_static_assets: string;
|
|
16
|
-
/**
|
|
17
|
-
* "environment_assets" ruta del entorno de assets
|
|
18
|
-
*/
|
|
19
|
-
environment_assets: string;
|
|
20
|
-
/**
|
|
21
|
-
* "completedSteps" pasos completados
|
|
22
|
-
*/
|
|
23
|
-
completedSteps: number[];
|
|
24
|
-
/**
|
|
25
|
-
* "stepValidationStatus" estado de validación por cada step
|
|
26
|
-
* - true: el paso es válido
|
|
27
|
-
*/
|
|
28
|
-
stepValidationStatus: Record<number, boolean>;
|
|
29
|
-
/**
|
|
30
|
-
* "isValidating" indica si el stepper está en proceso de validación
|
|
31
|
-
*/
|
|
32
|
-
isValidating: boolean;
|
|
33
|
-
}
|
|
34
|
-
export interface StepperStateWithActions extends StepperState {
|
|
35
|
-
actions: {
|
|
36
|
-
/**
|
|
37
|
-
* inicializa el estado del componente con los steps que provienen desde afuera
|
|
38
|
-
*/
|
|
39
|
-
init: (steps: Array<Step>) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Establece el paso actual
|
|
42
|
-
* @param currentStep - Índice del paso actual
|
|
43
|
-
*/
|
|
44
|
-
setCurrentStep: (currentStep: number) => void;
|
|
45
|
-
/**
|
|
46
|
-
* Marca un paso como completado
|
|
47
|
-
* @param stepIndex - Índice del paso
|
|
48
|
-
*/
|
|
49
|
-
setCompletedStep: (stepIndex: number) => void;
|
|
50
|
-
/**
|
|
51
|
-
* Establece el estado de validación de un paso
|
|
52
|
-
* @param stepIndex - Índice del paso
|
|
53
|
-
* @param isValid - Estado de validación del paso
|
|
54
|
-
*/
|
|
55
|
-
setStepValidationStatus: (stepIndex: number, isValid: boolean) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Retrocede al paso anterior válido
|
|
58
|
-
* @param formData - Datos del formulario para evaluar conditions
|
|
59
|
-
* @param visibilityData - Datos adicionales para evaluar conditions
|
|
60
|
-
*/
|
|
61
|
-
prevStep: (formData?: Record<string, any>, visibilityData?: any) => void;
|
|
62
|
-
/**
|
|
63
|
-
* Valida el paso actual y avanza al siguiente si es válido
|
|
64
|
-
* @param validateFn - Función de validación
|
|
65
|
-
* @param formData - Datos del formulario para evaluar conditions
|
|
66
|
-
* @param visibilityData - Datos adicionales para evaluar conditions
|
|
67
|
-
*/
|
|
68
|
-
nextStep: (validateFn: () => Promise<boolean>, formData?: Record<string, any>, visibilityData?: any) => Promise<boolean>;
|
|
69
|
-
/**
|
|
70
|
-
* resetStepper - Resetea el Stepper a su estado inicial
|
|
71
|
-
*/
|
|
72
|
-
resetStepper: () => void;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export interface StepperContextProps extends StepperProps {
|
|
76
|
-
children: ReactNode;
|
|
77
|
-
}
|
|
78
|
-
export type InitialStoreProps = Pick<StepperState, 'ownerState' | 'storeId' | 'steps' | 'visibleTitle' | 'host_static_assets' | 'environment_assets' | 'indicatorType' | 'orientation' | 'visibilityData'>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ContentAreaProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* El componente ContentArea renderiza el área de contenido del Stepper.
|
|
4
|
-
* Contiene el encabezado con un icono, titulo y descripción, y el contenido del step actual.
|
|
5
|
-
*/
|
|
6
|
-
export declare function ContentArea(props: ContentAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { u as useStepper } from "../../hooks/useStepper/index.js";
|
|
3
|
-
import { a as ContentAreaStyled, b as ContentAreaHeaderStyled } from "../../slots/StepperSlot.js";
|
|
4
|
-
import { W as WrapperIcon } from "./subcomponents/WrapperIcon/index.js";
|
|
5
|
-
import { W as WrapperTitle } from "./subcomponents/WrapperTitle/index.js";
|
|
6
|
-
function ContentArea(props) {
|
|
7
|
-
const { children } = props;
|
|
8
|
-
const { orientation } = useStepper((state) => ({
|
|
9
|
-
orientation: state.orientation
|
|
10
|
-
}));
|
|
11
|
-
const ownerState = {
|
|
12
|
-
orientation
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ jsxs(ContentAreaStyled, { ownerState, children: [
|
|
15
|
-
/* @__PURE__ */ jsxs(ContentAreaHeaderStyled, { children: [
|
|
16
|
-
/* @__PURE__ */ jsx(WrapperIcon, {}),
|
|
17
|
-
/* @__PURE__ */ jsx(WrapperTitle, {})
|
|
18
|
-
] }),
|
|
19
|
-
children
|
|
20
|
-
] });
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
ContentArea as C
|
|
24
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { W as WrapperIconStyled, I as IconStyled } from "../../../../slots/StepperSlot.js";
|
|
4
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
5
|
-
import { u as useStepper } from "../../../../hooks/useStepper/index.js";
|
|
6
|
-
function WrapperIcon() {
|
|
7
|
-
const { steps, currentStep, host_static_assets, environment_assets } = useStepper((state) => ({
|
|
8
|
-
host_static_assets: state.host_static_assets,
|
|
9
|
-
environment_assets: state.environment_assets,
|
|
10
|
-
steps: state.steps,
|
|
11
|
-
currentStep: state.currentStep
|
|
12
|
-
}));
|
|
13
|
-
const currentStepConfig = useMemo(() => {
|
|
14
|
-
return steps[currentStep];
|
|
15
|
-
}, [steps, currentStep]);
|
|
16
|
-
return /* @__PURE__ */ jsx(WrapperIconStyled, { children: /* @__PURE__ */ jsx(
|
|
17
|
-
IconStyled,
|
|
18
|
-
{
|
|
19
|
-
color: "primary.enabled",
|
|
20
|
-
src: currentStepConfig.icon ? currentStepConfig.icon : `${host_static_assets}/${environment_assets}/${pathIcons.patronum}`
|
|
21
|
-
}
|
|
22
|
-
) });
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
WrapperIcon as W
|
|
26
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { u as useStepper } from "../../../../hooks/useStepper/index.js";
|
|
4
|
-
import { c as WrapperTitleStyled, T as TitleStyled, D as DescriptionStyled } from "../../../../slots/StepperSlot.js";
|
|
5
|
-
function WrapperTitle() {
|
|
6
|
-
const { steps, currentStep } = useStepper((state) => ({
|
|
7
|
-
steps: state.steps,
|
|
8
|
-
currentStep: state.currentStep
|
|
9
|
-
}));
|
|
10
|
-
const currentStepConfig = useMemo(() => {
|
|
11
|
-
return steps[currentStep];
|
|
12
|
-
}, [steps, currentStep]);
|
|
13
|
-
if (!currentStepConfig) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
return /* @__PURE__ */ jsxs(WrapperTitleStyled, { children: [
|
|
17
|
-
/* @__PURE__ */ jsx(TitleStyled, { variant: "paragraphDens", children: currentStepConfig.title }),
|
|
18
|
-
currentStepConfig.description && /* @__PURE__ */ jsx(DescriptionStyled, { variant: "body", children: currentStepConfig.description })
|
|
19
|
-
] });
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
WrapperTitle as W
|
|
23
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* El componente StepArea renderiza el área de pasos del Stepper.
|
|
3
|
-
* Muestra solo los pasos que cumplen su condition según los datos del formulario.
|
|
4
|
-
* Utiliza el hook useStepper para obtener el estado actual y los pasos definidos.
|
|
5
|
-
*/
|
|
6
|
-
export declare function StepArea(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { useFormContext, useWatch } from "react-hook-form";
|
|
4
|
-
import { u as useStepper } from "../../hooks/useStepper/index.js";
|
|
5
|
-
import { d as StepAreaStyled, e as StepStyled, f as StepNameStyled } from "../../slots/StepperSlot.js";
|
|
6
|
-
import { I as Indicator } from "./subcomponents/Inidicator/index.js";
|
|
7
|
-
import { e as evaluateVisibilityStepCondition } from "../../helpers/evaluateVisibilityStepCondition/index.js";
|
|
8
|
-
function StepArea() {
|
|
9
|
-
const { trigger, clearErrors } = useFormContext();
|
|
10
|
-
const formValues = useWatch();
|
|
11
|
-
const {
|
|
12
|
-
currentStep,
|
|
13
|
-
steps,
|
|
14
|
-
visibleTitle,
|
|
15
|
-
setCurrentStep,
|
|
16
|
-
orientation,
|
|
17
|
-
setStepValidationStatus,
|
|
18
|
-
stepValidationStatus,
|
|
19
|
-
visibilityData
|
|
20
|
-
} = useStepper((state) => ({
|
|
21
|
-
currentStep: state.currentStep,
|
|
22
|
-
steps: state.steps,
|
|
23
|
-
visibleTitle: state.visibleTitle,
|
|
24
|
-
setCurrentStep: state.actions.setCurrentStep,
|
|
25
|
-
indicatorType: state.indicatorType,
|
|
26
|
-
orientation: state.orientation,
|
|
27
|
-
setStepValidationStatus: state.actions.setStepValidationStatus,
|
|
28
|
-
stepValidationStatus: state.stepValidationStatus,
|
|
29
|
-
visibilityData: state.visibilityData
|
|
30
|
-
}));
|
|
31
|
-
const validSteps = useMemo(() => {
|
|
32
|
-
return steps.filter(
|
|
33
|
-
(step) => evaluateVisibilityStepCondition(step, formValues || {}, visibilityData)
|
|
34
|
-
);
|
|
35
|
-
}, [steps, formValues, visibilityData]);
|
|
36
|
-
const ownerState = {
|
|
37
|
-
visibleTitle,
|
|
38
|
-
orientation,
|
|
39
|
-
totalSteps: validSteps.length
|
|
40
|
-
};
|
|
41
|
-
const handleStepClick = async (targetIndex) => {
|
|
42
|
-
const currentIndex = validSteps.findIndex(
|
|
43
|
-
(step) => step.key === steps[currentStep].key
|
|
44
|
-
);
|
|
45
|
-
if (targetIndex === currentIndex) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const isNavigatingForward = targetIndex > currentIndex;
|
|
49
|
-
const targetOriginalIndex = steps.findIndex(
|
|
50
|
-
(s) => s.key === validSteps[targetIndex].key
|
|
51
|
-
);
|
|
52
|
-
if (!isNavigatingForward) {
|
|
53
|
-
setCurrentStep(targetOriginalIndex);
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const isSkippingSteps = targetIndex > currentIndex + 1;
|
|
57
|
-
if (isSkippingSteps) {
|
|
58
|
-
for (let i = currentIndex; i < targetIndex; i++) {
|
|
59
|
-
const step = validSteps[i];
|
|
60
|
-
const stepOriginalIndex = steps.findIndex((s) => s.key === step.key);
|
|
61
|
-
const isValid = await trigger(step.validationFields);
|
|
62
|
-
if (!isValid) {
|
|
63
|
-
setCurrentStep(stepOriginalIndex);
|
|
64
|
-
setStepValidationStatus(stepOriginalIndex, false);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
setStepValidationStatus(stepOriginalIndex, true);
|
|
68
|
-
}
|
|
69
|
-
} else {
|
|
70
|
-
const currentStepData = validSteps[currentIndex];
|
|
71
|
-
const currentStepOriginalIndex = steps.findIndex(
|
|
72
|
-
(s) => s.key === currentStepData.key
|
|
73
|
-
);
|
|
74
|
-
const isCurrentValid = await trigger(currentStepData.validationFields);
|
|
75
|
-
if (!isCurrentValid) {
|
|
76
|
-
setStepValidationStatus(currentStepOriginalIndex, false);
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
setStepValidationStatus(currentStepOriginalIndex, true);
|
|
80
|
-
}
|
|
81
|
-
setCurrentStep(targetOriginalIndex);
|
|
82
|
-
if (isNavigatingForward) {
|
|
83
|
-
const currentStepData = validSteps[currentIndex];
|
|
84
|
-
const currentStepOriginalIndex = steps.findIndex(
|
|
85
|
-
(s) => s.key === currentStepData.key
|
|
86
|
-
);
|
|
87
|
-
const isCurrentStepValid = stepValidationStatus[currentStepOriginalIndex] !== false;
|
|
88
|
-
if (isCurrentStepValid) {
|
|
89
|
-
const targetStep = validSteps[targetIndex];
|
|
90
|
-
const targetStepFields = targetStep.validationFields || [];
|
|
91
|
-
if (targetStepFields.length > 0) {
|
|
92
|
-
clearErrors(targetStepFields);
|
|
93
|
-
setTimeout(() => {
|
|
94
|
-
clearErrors(targetStepFields);
|
|
95
|
-
setStepValidationStatus(targetOriginalIndex, true);
|
|
96
|
-
}, 100);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
return /* @__PURE__ */ jsx(StepAreaStyled, { ownerState, children: validSteps.map((step, validIndex) => {
|
|
102
|
-
const originalIndex = steps.findIndex((s) => s.key === step.key);
|
|
103
|
-
return /* @__PURE__ */ jsxs(
|
|
104
|
-
StepStyled,
|
|
105
|
-
{
|
|
106
|
-
role: "button",
|
|
107
|
-
onClick: () => handleStepClick(validIndex),
|
|
108
|
-
ownerState: { ...ownerState, currentStep, step: validIndex },
|
|
109
|
-
children: [
|
|
110
|
-
visibleTitle && /* @__PURE__ */ jsx(
|
|
111
|
-
StepNameStyled,
|
|
112
|
-
{
|
|
113
|
-
variant: "body",
|
|
114
|
-
ownerState: { ...ownerState, currentStep, step: validIndex },
|
|
115
|
-
children: step.title
|
|
116
|
-
}
|
|
117
|
-
),
|
|
118
|
-
/* @__PURE__ */ jsx(
|
|
119
|
-
Indicator,
|
|
120
|
-
{
|
|
121
|
-
currentStep,
|
|
122
|
-
step: validIndex,
|
|
123
|
-
totalSteps: validSteps.length,
|
|
124
|
-
originalStepIndex: originalIndex
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
step.key
|
|
130
|
-
);
|
|
131
|
-
}) });
|
|
132
|
-
}
|
|
133
|
-
export {
|
|
134
|
-
StepArea as S
|
|
135
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { g as IndicatorStyled, h as TextNumberStyled } from "../../../../slots/StepperSlot.js";
|
|
4
|
-
import { u as useStepper } from "../../../../hooks/useStepper/index.js";
|
|
5
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
6
|
-
import { useIsMobile } from "@m4l/graphics";
|
|
7
|
-
import { u as useComponentSize } from "../../../../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
-
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
9
|
-
function Indicator(props) {
|
|
10
|
-
const { step, currentStep, totalSteps, originalStepIndex } = props;
|
|
11
|
-
const {
|
|
12
|
-
host_static_assets,
|
|
13
|
-
environment_assets,
|
|
14
|
-
orientation,
|
|
15
|
-
size,
|
|
16
|
-
indicatorType,
|
|
17
|
-
stepValidationStatus
|
|
18
|
-
} = useStepper((state) => ({
|
|
19
|
-
host_static_assets: state.host_static_assets,
|
|
20
|
-
environment_assets: state.environment_assets,
|
|
21
|
-
orientation: state.orientation,
|
|
22
|
-
size: state.size,
|
|
23
|
-
indicatorType: state.indicatorType,
|
|
24
|
-
stepValidationStatus: state.stepValidationStatus
|
|
25
|
-
}));
|
|
26
|
-
const { currentSize } = useComponentSize(size);
|
|
27
|
-
const ownerState = {
|
|
28
|
-
size: currentSize,
|
|
29
|
-
currentStep,
|
|
30
|
-
step,
|
|
31
|
-
totalSteps,
|
|
32
|
-
orientation,
|
|
33
|
-
indicatorType,
|
|
34
|
-
stepValidationStatus
|
|
35
|
-
};
|
|
36
|
-
const isMobile = useIsMobile();
|
|
37
|
-
const effectiveIndicatorType = useMemo(() => {
|
|
38
|
-
return isMobile ? "dot" : indicatorType;
|
|
39
|
-
}, [isMobile, indicatorType]);
|
|
40
|
-
const { isCompleted, isValidStep, hasBeenValidated } = useMemo(() => {
|
|
41
|
-
const completed = currentStep > originalStepIndex;
|
|
42
|
-
const validationStatus = stepValidationStatus[originalStepIndex];
|
|
43
|
-
const validated = validationStatus !== void 0;
|
|
44
|
-
const valid = validationStatus === true;
|
|
45
|
-
return {
|
|
46
|
-
isCompleted: completed,
|
|
47
|
-
isValidStep: valid,
|
|
48
|
-
hasBeenValidated: validated
|
|
49
|
-
};
|
|
50
|
-
}, [currentStep, originalStepIndex, stepValidationStatus]);
|
|
51
|
-
return /* @__PURE__ */ jsx(IndicatorStyled, { ownerState, children: hasBeenValidated && !isValidStep ? (
|
|
52
|
-
// Mostrar error solo si ha sido validado y es inválido
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
54
|
-
Icon,
|
|
55
|
-
{
|
|
56
|
-
src: `${host_static_assets}/${environment_assets}/${pathIcons.circleError}`,
|
|
57
|
-
size: "small",
|
|
58
|
-
color: "error.contrastText"
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
) : isCompleted && isValidStep ? (
|
|
62
|
-
// Mostrar completado solo si está completado Y es válido
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
64
|
-
Icon,
|
|
65
|
-
{
|
|
66
|
-
src: `${host_static_assets}/${environment_assets}/${effectiveIndicatorType === "number" ? pathIcons.circleCheck : pathIcons.dotOutline}`,
|
|
67
|
-
size: "small",
|
|
68
|
-
color: "primary.semanticText"
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
) : (
|
|
72
|
-
// Mostrar estado normal (número o dot) para pasos no validados o actuales
|
|
73
|
-
/* @__PURE__ */ jsx(TextNumberStyled, { variant: "body", ownerState: { currentStep, step }, children: effectiveIndicatorType === "number" ? step + 1 : /* @__PURE__ */ jsx(
|
|
74
|
-
Icon,
|
|
75
|
-
{
|
|
76
|
-
src: `${host_static_assets}/${environment_assets}/${currentStep === originalStepIndex ? pathIcons.dotSelected : pathIcons.dotOutline}`,
|
|
77
|
-
size: "small",
|
|
78
|
-
color: currentStep === originalStepIndex ? "primary.semanticText" : "text.disabled"
|
|
79
|
-
}
|
|
80
|
-
) })
|
|
81
|
-
) });
|
|
82
|
-
}
|
|
83
|
-
export {
|
|
84
|
-
Indicator as I
|
|
85
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { D as DICTIONARY } from "../../../dictionary.js";
|
|
3
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { u as useStepperActions } from "../../../hooks/useStepperActions/useStepperActions.js";
|
|
5
|
-
import { B as Button } from "../../../../mui_extended/Button/Button.js";
|
|
6
|
-
function StepperCancelButton() {
|
|
7
|
-
const { getLabel } = useModuleDictionary();
|
|
8
|
-
const { cancelAction } = useStepperActions();
|
|
9
|
-
const handleCancel = () => {
|
|
10
|
-
cancelAction();
|
|
11
|
-
};
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
-
Button,
|
|
14
|
-
{
|
|
15
|
-
type: "button",
|
|
16
|
-
label: getLabel(DICTIONARY.LABEL_CANCEL_BUTTON),
|
|
17
|
-
variant: "outlined",
|
|
18
|
-
color: "default",
|
|
19
|
-
onClick: handleCancel
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
StepperCancelButton as S
|
|
25
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { u as useStepper } from "../../../hooks/useStepper/index.js";
|
|
3
|
-
import { p as pathIcons } from "../../../icons.js";
|
|
4
|
-
import { useIsMobile } from "@m4l/graphics";
|
|
5
|
-
import { D as DICTIONARY } from "../../../dictionary.js";
|
|
6
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
7
|
-
import { u as useStepperActions } from "../../../hooks/useStepperActions/useStepperActions.js";
|
|
8
|
-
import { I as IconButton } from "../../../../mui_extended/IconButton/IconButton.js";
|
|
9
|
-
import { B as Button } from "../../../../mui_extended/Button/Button.js";
|
|
10
|
-
function StepperNextButton() {
|
|
11
|
-
const { nextStepAction } = useStepperActions();
|
|
12
|
-
const isMobile = useIsMobile();
|
|
13
|
-
const { getLabel } = useModuleDictionary();
|
|
14
|
-
const { host_static_assets, environment_assets } = useStepper((state) => ({
|
|
15
|
-
host_static_assets: state.host_static_assets,
|
|
16
|
-
environment_assets: state.environment_assets
|
|
17
|
-
}));
|
|
18
|
-
const handleNext = async () => {
|
|
19
|
-
await nextStepAction();
|
|
20
|
-
};
|
|
21
|
-
return isMobile ? /* @__PURE__ */ jsx(
|
|
22
|
-
IconButton,
|
|
23
|
-
{
|
|
24
|
-
type: "button",
|
|
25
|
-
onClick: handleNext,
|
|
26
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.arrowRight}`,
|
|
27
|
-
"data-testid": "stepper-next-button",
|
|
28
|
-
variant: "contained",
|
|
29
|
-
color: "primary"
|
|
30
|
-
}
|
|
31
|
-
) : /* @__PURE__ */ jsx(
|
|
32
|
-
Button,
|
|
33
|
-
{
|
|
34
|
-
type: "button",
|
|
35
|
-
label: getLabel(DICTIONARY.LABEL_NEXT_BUTTON),
|
|
36
|
-
variant: "contained",
|
|
37
|
-
color: "primary",
|
|
38
|
-
onClick: handleNext,
|
|
39
|
-
endIcon: `${host_static_assets}/${environment_assets}/${pathIcons.arrowRight}`,
|
|
40
|
-
"data-testid": "stepper-next-button"
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
StepperNextButton as S
|
|
46
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { u as useStepper } from "../../../hooks/useStepper/index.js";
|
|
4
|
-
import { p as pathIcons } from "../../../icons.js";
|
|
5
|
-
import { useIsMobile } from "@m4l/graphics";
|
|
6
|
-
import { D as DICTIONARY } from "../../../dictionary.js";
|
|
7
|
-
import { u as useStepperActions } from "../../../hooks/useStepperActions/useStepperActions.js";
|
|
8
|
-
import { I as IconButton } from "../../../../mui_extended/IconButton/IconButton.js";
|
|
9
|
-
import { B as Button } from "../../../../mui_extended/Button/Button.js";
|
|
10
|
-
function StepperPrevButton() {
|
|
11
|
-
const { host_static_assets, environment_assets, currentStep } = useStepper(
|
|
12
|
-
(state) => ({
|
|
13
|
-
host_static_assets: state.host_static_assets,
|
|
14
|
-
environment_assets: state.environment_assets,
|
|
15
|
-
currentStep: state.currentStep
|
|
16
|
-
})
|
|
17
|
-
);
|
|
18
|
-
const isMobile = useIsMobile();
|
|
19
|
-
const { getLabel } = useModuleDictionary();
|
|
20
|
-
const { prevStepAction } = useStepperActions();
|
|
21
|
-
const handlePrev = () => {
|
|
22
|
-
prevStepAction();
|
|
23
|
-
};
|
|
24
|
-
if (currentStep === 0) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
return isMobile ? /* @__PURE__ */ jsx(
|
|
28
|
-
IconButton,
|
|
29
|
-
{
|
|
30
|
-
type: "button",
|
|
31
|
-
onClick: handlePrev,
|
|
32
|
-
icon: `${host_static_assets}/${environment_assets}/${pathIcons.arrowLeft}`,
|
|
33
|
-
"data-testid": "stepper-prev-button",
|
|
34
|
-
variant: "outline",
|
|
35
|
-
color: "default"
|
|
36
|
-
}
|
|
37
|
-
) : /* @__PURE__ */ jsx(
|
|
38
|
-
Button,
|
|
39
|
-
{
|
|
40
|
-
type: "button",
|
|
41
|
-
label: !isMobile ? getLabel(DICTIONARY.LABEL_PREV_BUTTON) : "",
|
|
42
|
-
variant: "outlined",
|
|
43
|
-
color: "default",
|
|
44
|
-
onClick: handlePrev,
|
|
45
|
-
startIcon: `${host_static_assets}/${environment_assets}/${pathIcons.arrowLeft}`,
|
|
46
|
-
"data-testid": "stepper-prev-button"
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
StepperPrevButton as S
|
|
52
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { D as DICTIONARY } from "../../../dictionary.js";
|
|
3
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { B as Button } from "../../../../mui_extended/Button/Button.js";
|
|
5
|
-
function StepperSubmitButton() {
|
|
6
|
-
const { getLabel } = useModuleDictionary();
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
-
Button,
|
|
9
|
-
{
|
|
10
|
-
type: "submit",
|
|
11
|
-
label: getLabel(DICTIONARY.LABEL_SUBMIT_BUTTON),
|
|
12
|
-
variant: "contained",
|
|
13
|
-
color: "primary",
|
|
14
|
-
"data-testid": "stepper-submit-button"
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
StepperSubmitButton as S
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StepperContentProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente StepperContent - Contenedor que renderiza todos los Steps
|
|
4
|
-
* Cada Step maneja su propia lógica de renderizado condicional
|
|
5
|
-
* SOLO acepta componentes Step como hijos.
|
|
6
|
-
*/
|
|
7
|
-
export declare function StepperContent(props: StepperContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, Children, isValidElement } from "react";
|
|
3
|
-
import { S as Step } from "./subcomponents/Step/index.js";
|
|
4
|
-
function StepperContent(props) {
|
|
5
|
-
const { children } = props;
|
|
6
|
-
const validSteps = useMemo(() => {
|
|
7
|
-
const steps = [];
|
|
8
|
-
Children.forEach(children, (child) => {
|
|
9
|
-
if (isValidElement(child) && child.type === Step) {
|
|
10
|
-
steps.push(child);
|
|
11
|
-
} else {
|
|
12
|
-
throw new Error(
|
|
13
|
-
"StepperContent: Solo se permiten componentes Step como hijos."
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
return steps;
|
|
18
|
-
}, [children]);
|
|
19
|
-
return /* @__PURE__ */ jsx(Fragment, { children: validSteps });
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
StepperContent as S
|
|
23
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StepProps } from '../../../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente Step - Representa un paso individual en el Stepper
|
|
4
|
-
* Solo se renderiza cuando el step actual coincide con stepKey Y la condition es true
|
|
5
|
-
*/
|
|
6
|
-
export declare function Step(props: StepProps): import("react/jsx-runtime").JSX.Element | null;
|