@webiny/app-workflows 0.0.0-unstable.61c048f412
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/Components/AdminConfig/WorkflowsMenu.d.ts +2 -0
- package/Components/AdminConfig/WorkflowsMenu.js +25 -0
- package/Components/AdminConfig/WorkflowsMenu.js.map +1 -0
- package/Components/App/ContentReviews.d.ts +2 -0
- package/Components/App/ContentReviews.js +34 -0
- package/Components/App/ContentReviews.js.map +1 -0
- package/Components/App/WorkflowsAdminApp.d.ts +5 -0
- package/Components/App/WorkflowsAdminApp.js +18 -0
- package/Components/App/WorkflowsAdminApp.js.map +1 -0
- package/Components/App/index.d.ts +1 -0
- package/Components/App/index.js +3 -0
- package/Components/App/index.js.map +1 -0
- package/Components/Common/Options/OptionItem/Approve.d.ts +8 -0
- package/Components/Common/Options/OptionItem/Approve.js +25 -0
- package/Components/Common/Options/OptionItem/Approve.js.map +1 -0
- package/Components/Common/Options/OptionItem/OpenInNewWindow.d.ts +24 -0
- package/Components/Common/Options/OptionItem/OpenInNewWindow.js +9 -0
- package/Components/Common/Options/OptionItem/OpenInNewWindow.js.map +1 -0
- package/Components/Common/Options/OptionItem/Reject.d.ts +8 -0
- package/Components/Common/Options/OptionItem/Reject.js +25 -0
- package/Components/Common/Options/OptionItem/Reject.js.map +1 -0
- package/Components/Common/Options/OptionItem/Start.d.ts +8 -0
- package/Components/Common/Options/OptionItem/Start.js +24 -0
- package/Components/Common/Options/OptionItem/Start.js.map +1 -0
- package/Components/Common/Options/OptionItem/TakeOver.d.ts +8 -0
- package/Components/Common/Options/OptionItem/TakeOver.js +23 -0
- package/Components/Common/Options/OptionItem/TakeOver.js.map +1 -0
- package/Components/Common/Options/WorkflowStateOptions.d.ts +11 -0
- package/Components/Common/Options/WorkflowStateOptions.js +67 -0
- package/Components/Common/Options/WorkflowStateOptions.js.map +1 -0
- package/Components/Common/Options/index.d.ts +2 -0
- package/Components/Common/Options/index.js +4 -0
- package/Components/Common/Options/index.js.map +1 -0
- package/Components/Common/TagState.d.ts +7 -0
- package/Components/Common/TagState.js +14 -0
- package/Components/Common/TagState.js.map +1 -0
- package/Components/Common/TagStep.d.ts +7 -0
- package/Components/Common/TagStep.js +14 -0
- package/Components/Common/TagStep.js.map +1 -0
- package/Components/Common/YouCanTrackAllContentReviewsHere.d.ts +2 -0
- package/Components/Common/YouCanTrackAllContentReviewsHere.js +15 -0
- package/Components/Common/YouCanTrackAllContentReviewsHere.js.map +1 -0
- package/Components/Common/index.d.ts +5 -0
- package/Components/Common/index.js +6 -0
- package/Components/Common/index.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarApproved.d.ts +5 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarApproved.js +29 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarApproved.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarCancelReview.d.ts +5 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarCancelReview.js +28 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarCancelReview.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarError.d.ts +6 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarError.js +29 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarError.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarLoading.d.ts +5 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarLoading.js +24 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarLoading.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRejected.d.ts +5 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRejected.js +35 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRejected.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRequestReview.d.ts +5 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRequestReview.js +26 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRequestReview.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarReview.d.ts +5 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarReview.js +57 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarReview.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarStartReview.d.ts +2 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarStartReview.js +31 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarStartReview.js.map +1 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarWorkflow.d.ts +5 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarWorkflow.js +19 -0
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarWorkflow.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/ApproveDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/ApproveDialog.js +19 -0
- package/Components/WorkflowState/Bar/Dialogs/ApproveDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/ApproveSuccessDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/ApproveSuccessDialog.js +17 -0
- package/Components/WorkflowState/Bar/Dialogs/ApproveSuccessDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/CancelReviewDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/CancelReviewDialog.js +14 -0
- package/Components/WorkflowState/Bar/Dialogs/CancelReviewDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/CommentDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/CommentDialog.js +17 -0
- package/Components/WorkflowState/Bar/Dialogs/CommentDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/RejectDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/RejectDialog.js +19 -0
- package/Components/WorkflowState/Bar/Dialogs/RejectDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/RejectSuccessDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/RejectSuccessDialog.js +17 -0
- package/Components/WorkflowState/Bar/Dialogs/RejectSuccessDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/RequestReviewDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/RequestReviewDialog.js +14 -0
- package/Components/WorkflowState/Bar/Dialogs/RequestReviewDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/StartDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/StartDialog.js +19 -0
- package/Components/WorkflowState/Bar/Dialogs/StartDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/StartSuccessDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/StartSuccessDialog.js +17 -0
- package/Components/WorkflowState/Bar/Dialogs/StartSuccessDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/TakeOverDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/TakeOverDialog.js +21 -0
- package/Components/WorkflowState/Bar/Dialogs/TakeOverDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/TakeOverSuccessDialog.d.ts +7 -0
- package/Components/WorkflowState/Bar/Dialogs/TakeOverSuccessDialog.js +17 -0
- package/Components/WorkflowState/Bar/Dialogs/TakeOverSuccessDialog.js.map +1 -0
- package/Components/WorkflowState/Bar/Dialogs/index.d.ts +11 -0
- package/Components/WorkflowState/Bar/Dialogs/index.js +13 -0
- package/Components/WorkflowState/Bar/Dialogs/index.js.map +1 -0
- package/Components/WorkflowState/Bar/WorkflowStateBar.d.ts +22 -0
- package/Components/WorkflowState/Bar/WorkflowStateBar.js +35 -0
- package/Components/WorkflowState/Bar/WorkflowStateBar.js.map +1 -0
- package/Components/WorkflowState/Bar/WorkflowStateBarComponent.d.ts +40 -0
- package/Components/WorkflowState/Bar/WorkflowStateBarComponent.js +23 -0
- package/Components/WorkflowState/Bar/WorkflowStateBarComponent.js.map +1 -0
- package/Components/WorkflowState/Bar/WorkflowStateBarDialogs.d.ts +4 -0
- package/Components/WorkflowState/Bar/WorkflowStateBarDialogs.js +58 -0
- package/Components/WorkflowState/Bar/WorkflowStateBarDialogs.js.map +1 -0
- package/Components/WorkflowState/Bar/index.d.ts +1 -0
- package/Components/WorkflowState/Bar/index.js +3 -0
- package/Components/WorkflowState/Bar/index.js.map +1 -0
- package/Components/WorkflowState/Overlay/WorkflowStateOverlay.d.ts +15 -0
- package/Components/WorkflowState/Overlay/WorkflowStateOverlay.js +17 -0
- package/Components/WorkflowState/Overlay/WorkflowStateOverlay.js.map +1 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltip.d.ts +10 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltip.js +47 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltip.js.map +1 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContent.d.ts +9 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContent.js +42 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContent.js.map +1 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.d.ts +10 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.js +26 -0
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.js.map +1 -0
- package/Components/WorkflowState/WorkflowStateProvider.d.ts +17 -0
- package/Components/WorkflowState/WorkflowStateProvider.js +44 -0
- package/Components/WorkflowState/WorkflowStateProvider.js.map +1 -0
- package/Components/WorkflowState/index.d.ts +5 -0
- package/Components/WorkflowState/index.js +7 -0
- package/Components/WorkflowState/index.js.map +1 -0
- package/Components/WorkflowState/useWorkflowState.d.ts +1 -0
- package/Components/WorkflowState/useWorkflowState.js +11 -0
- package/Components/WorkflowState/useWorkflowState.js.map +1 -0
- package/Components/WorkflowStateDialogs/ApproveDialog.d.ts +9 -0
- package/Components/WorkflowStateDialogs/ApproveDialog.js +48 -0
- package/Components/WorkflowStateDialogs/ApproveDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/ApproveSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStateDialogs/ApproveSuccessDialog.js +34 -0
- package/Components/WorkflowStateDialogs/ApproveSuccessDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/CancelReviewDialog.d.ts +8 -0
- package/Components/WorkflowStateDialogs/CancelReviewDialog.js +36 -0
- package/Components/WorkflowStateDialogs/CancelReviewDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/CommentDialog.d.ts +8 -0
- package/Components/WorkflowStateDialogs/CommentDialog.js +47 -0
- package/Components/WorkflowStateDialogs/CommentDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/RejectDialog.d.ts +9 -0
- package/Components/WorkflowStateDialogs/RejectDialog.js +83 -0
- package/Components/WorkflowStateDialogs/RejectDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/RejectSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStateDialogs/RejectSuccessDialog.js +32 -0
- package/Components/WorkflowStateDialogs/RejectSuccessDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/RequestReviewDialog.d.ts +8 -0
- package/Components/WorkflowStateDialogs/RequestReviewDialog.js +36 -0
- package/Components/WorkflowStateDialogs/RequestReviewDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/StartDialog.d.ts +9 -0
- package/Components/WorkflowStateDialogs/StartDialog.js +37 -0
- package/Components/WorkflowStateDialogs/StartDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/StartSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStateDialogs/StartSuccessDialog.js +32 -0
- package/Components/WorkflowStateDialogs/StartSuccessDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/TakeOverDialog.d.ts +10 -0
- package/Components/WorkflowStateDialogs/TakeOverDialog.js +38 -0
- package/Components/WorkflowStateDialogs/TakeOverDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/TakeOverSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStateDialogs/TakeOverSuccessDialog.js +32 -0
- package/Components/WorkflowStateDialogs/TakeOverSuccessDialog.js.map +1 -0
- package/Components/WorkflowStateDialogs/index.d.ts +11 -0
- package/Components/WorkflowStateDialogs/index.js +13 -0
- package/Components/WorkflowStateDialogs/index.js.map +1 -0
- package/Components/WorkflowStateList/List/WorkflowStateList.d.ts +4 -0
- package/Components/WorkflowStateList/List/WorkflowStateList.js +100 -0
- package/Components/WorkflowStateList/List/WorkflowStateList.js.map +1 -0
- package/Components/WorkflowStateList/List/WorkflowStateListFilters.d.ts +4 -0
- package/Components/WorkflowStateList/List/WorkflowStateListFilters.js +68 -0
- package/Components/WorkflowStateList/List/WorkflowStateListFilters.js.map +1 -0
- package/Components/WorkflowStateList/List/WorkflowStateListOptions.d.ts +9 -0
- package/Components/WorkflowStateList/List/WorkflowStateListOptions.js +13 -0
- package/Components/WorkflowStateList/List/WorkflowStateListOptions.js.map +1 -0
- package/Components/WorkflowStateList/List/WorkflowStateListView.d.ts +7 -0
- package/Components/WorkflowStateList/List/WorkflowStateListView.js +28 -0
- package/Components/WorkflowStateList/List/WorkflowStateListView.js.map +1 -0
- package/Components/WorkflowStateList/List/index.d.ts +2 -0
- package/Components/WorkflowStateList/List/index.js +4 -0
- package/Components/WorkflowStateList/List/index.js.map +1 -0
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlay.d.ts +14 -0
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlay.js +32 -0
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlay.js.map +1 -0
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlayView.d.ts +8 -0
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlayView.js +34 -0
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlayView.js.map +1 -0
- package/Components/WorkflowStateList/Overlay/index.d.ts +1 -0
- package/Components/WorkflowStateList/Overlay/index.js +3 -0
- package/Components/WorkflowStateList/Overlay/index.js.map +1 -0
- package/Components/WorkflowStateList/Provider/WorkflowStateListProvider.d.ts +16 -0
- package/Components/WorkflowStateList/Provider/WorkflowStateListProvider.js +37 -0
- package/Components/WorkflowStateList/Provider/WorkflowStateListProvider.js.map +1 -0
- package/Components/WorkflowStateList/Provider/index.d.ts +1 -0
- package/Components/WorkflowStateList/Provider/index.js +3 -0
- package/Components/WorkflowStateList/Provider/index.js.map +1 -0
- package/Components/WorkflowStateList/hooks/index.d.ts +1 -0
- package/Components/WorkflowStateList/hooks/index.js +3 -0
- package/Components/WorkflowStateList/hooks/index.js.map +1 -0
- package/Components/WorkflowStateList/hooks/useWorkflowStateList.d.ts +1 -0
- package/Components/WorkflowStateList/hooks/useWorkflowStateList.js +11 -0
- package/Components/WorkflowStateList/hooks/useWorkflowStateList.js.map +1 -0
- package/Components/WorkflowStateList/index.d.ts +2 -0
- package/Components/WorkflowStateList/index.js +4 -0
- package/Components/WorkflowStateList/index.js.map +1 -0
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCard.d.ts +8 -0
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCard.js +55 -0
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCard.js.map +1 -0
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCardTabs.d.ts +9 -0
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCardTabs.js +65 -0
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCardTabs.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/ApproveDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/ApproveDialog.js +25 -0
- package/Components/WorkflowStatesWidget/Dialogs/ApproveDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/ApproveSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/ApproveSuccessDialog.js +17 -0
- package/Components/WorkflowStatesWidget/Dialogs/ApproveSuccessDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/RejectDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/RejectDialog.js +25 -0
- package/Components/WorkflowStatesWidget/Dialogs/RejectDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/RejectSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/RejectSuccessDialog.js +17 -0
- package/Components/WorkflowStatesWidget/Dialogs/RejectSuccessDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/StartDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/StartDialog.js +25 -0
- package/Components/WorkflowStatesWidget/Dialogs/StartDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/StartSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/StartSuccessDialog.js +17 -0
- package/Components/WorkflowStatesWidget/Dialogs/StartSuccessDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverDialog.js +28 -0
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverSuccessDialog.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverSuccessDialog.js +17 -0
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverSuccessDialog.js.map +1 -0
- package/Components/WorkflowStatesWidget/Dialogs/index.d.ts +8 -0
- package/Components/WorkflowStatesWidget/Dialogs/index.js +10 -0
- package/Components/WorkflowStatesWidget/Dialogs/index.js.map +1 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateList.d.ts +7 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateList.js +18 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateList.js.map +1 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateRow.d.ts +9 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateRow.js +24 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateRow.js.map +1 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateRowOptions.d.ts +9 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateRowOptions.js +33 -0
- package/Components/WorkflowStatesWidget/List/WorkflowStateRowOptions.js.map +1 -0
- package/Components/WorkflowStatesWidget/Provider/WorkflowStatesProvider.d.ts +17 -0
- package/Components/WorkflowStatesWidget/Provider/WorkflowStatesProvider.js +34 -0
- package/Components/WorkflowStatesWidget/Provider/WorkflowStatesProvider.js.map +1 -0
- package/Components/WorkflowStatesWidget/Row/WorkflowStateRowDescription.d.ts +7 -0
- package/Components/WorkflowStatesWidget/Row/WorkflowStateRowDescription.js +22 -0
- package/Components/WorkflowStatesWidget/Row/WorkflowStateRowDescription.js.map +1 -0
- package/Components/WorkflowStatesWidget/WorkflowStatesOwnWidget.d.ts +6 -0
- package/Components/WorkflowStatesWidget/WorkflowStatesOwnWidget.js +27 -0
- package/Components/WorkflowStatesWidget/WorkflowStatesOwnWidget.js.map +1 -0
- package/Components/WorkflowStatesWidget/WorkflowStatesRequestedWidget.d.ts +6 -0
- package/Components/WorkflowStatesWidget/WorkflowStatesRequestedWidget.js +27 -0
- package/Components/WorkflowStatesWidget/WorkflowStatesRequestedWidget.js.map +1 -0
- package/Components/WorkflowStatesWidget/hooks/useWorkflowStatesWidget.d.ts +1 -0
- package/Components/WorkflowStatesWidget/hooks/useWorkflowStatesWidget.js +11 -0
- package/Components/WorkflowStatesWidget/hooks/useWorkflowStatesWidget.js.map +1 -0
- package/Components/WorkflowStatesWidget/index.d.ts +2 -0
- package/Components/WorkflowStatesWidget/index.js +4 -0
- package/Components/WorkflowStatesWidget/index.js.map +1 -0
- package/Components/WorkflowsEditor/DataList/WorkflowsDataList.d.ts +8 -0
- package/Components/WorkflowsEditor/DataList/WorkflowsDataList.js +46 -0
- package/Components/WorkflowsEditor/DataList/WorkflowsDataList.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Error/FormattedError.d.ts +7 -0
- package/Components/WorkflowsEditor/Editor/Error/FormattedError.js +37 -0
- package/Components/WorkflowsEditor/Editor/Error/FormattedError.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Error/WorkflowError.d.ts +7 -0
- package/Components/WorkflowsEditor/Editor/Error/WorkflowError.js +41 -0
- package/Components/WorkflowsEditor/Editor/Error/WorkflowError.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormColor.d.ts +2 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormColor.js +22 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormColor.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormDescription.d.ts +2 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormDescription.js +13 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormDescription.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormNotifications.d.ts +7 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormNotifications.js +44 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormNotifications.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTeams.d.ts +2 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTeams.js +39 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTeams.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTitle.d.ts +2 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTitle.js +15 -0
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTitle.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/InactiveStep.d.ts +7 -0
- package/Components/WorkflowsEditor/Editor/Step/InactiveStep.js +19 -0
- package/Components/WorkflowsEditor/Editor/Step/InactiveStep.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/NewStep.d.ts +7 -0
- package/Components/WorkflowsEditor/Editor/Step/NewStep.js +58 -0
- package/Components/WorkflowsEditor/Editor/Step/NewStep.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/Step/RemoveStep.d.ts +7 -0
- package/Components/WorkflowsEditor/Editor/Step/Step/RemoveStep.js +36 -0
- package/Components/WorkflowsEditor/Editor/Step/Step/RemoveStep.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/Step/Step.d.ts +18 -0
- package/Components/WorkflowsEditor/Editor/Step/Step.js +150 -0
- package/Components/WorkflowsEditor/Editor/Step/Step.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditor.d.ts +6 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditor.js +49 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditor.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditorSteps.d.ts +8 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditorSteps.js +50 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditorSteps.js.map +1 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditorView.d.ts +9 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditorView.js +31 -0
- package/Components/WorkflowsEditor/Editor/WorkflowEditorView.js.map +1 -0
- package/Components/WorkflowsEditor/WorkflowsEditor.d.ts +3 -0
- package/Components/WorkflowsEditor/WorkflowsEditor.js +8 -0
- package/Components/WorkflowsEditor/WorkflowsEditor.js.map +1 -0
- package/Components/WorkflowsEditor/WorkflowsEditorBase.d.ts +11 -0
- package/Components/WorkflowsEditor/WorkflowsEditorBase.js +42 -0
- package/Components/WorkflowsEditor/WorkflowsEditorBase.js.map +1 -0
- package/Components/WorkflowsEditor/index.d.ts +1 -0
- package/Components/WorkflowsEditor/index.js +3 -0
- package/Components/WorkflowsEditor/index.js.map +1 -0
- package/Components/WorkflowsPermissions/HasWorkflowsEditorPermission.d.ts +5 -0
- package/Components/WorkflowsPermissions/HasWorkflowsEditorPermission.js +10 -0
- package/Components/WorkflowsPermissions/HasWorkflowsEditorPermission.js.map +1 -0
- package/Components/WorkflowsPermissions/WorkflowsPermissions.d.ts +8 -0
- package/Components/WorkflowsPermissions/WorkflowsPermissions.js +22 -0
- package/Components/WorkflowsPermissions/WorkflowsPermissions.js.map +1 -0
- package/Components/WorkflowsPermissions/WorkflowsPermissionsForm.d.ts +8 -0
- package/Components/WorkflowsPermissions/WorkflowsPermissionsForm.js +61 -0
- package/Components/WorkflowsPermissions/WorkflowsPermissionsForm.js.map +1 -0
- package/Components/WorkflowsPermissions/constants.d.ts +1 -0
- package/Components/WorkflowsPermissions/constants.js +3 -0
- package/Components/WorkflowsPermissions/constants.js.map +1 -0
- package/Components/WorkflowsPermissions/index.d.ts +4 -0
- package/Components/WorkflowsPermissions/index.js +5 -0
- package/Components/WorkflowsPermissions/index.js.map +1 -0
- package/Components/WorkflowsPermissions/permissionPlugin.d.ts +2 -0
- package/Components/WorkflowsPermissions/permissionPlugin.js +11 -0
- package/Components/WorkflowsPermissions/permissionPlugin.js.map +1 -0
- package/Components/WorkflowsPermissions/useWorkflowsPermission.d.ts +5 -0
- package/Components/WorkflowsPermissions/useWorkflowsPermission.js +33 -0
- package/Components/WorkflowsPermissions/useWorkflowsPermission.js.map +1 -0
- package/Components/helpers/index.d.ts +2 -0
- package/Components/helpers/index.js +4 -0
- package/Components/helpers/index.js.map +1 -0
- package/Components/helpers/stateName.d.ts +2 -0
- package/Components/helpers/stateName.js +17 -0
- package/Components/helpers/stateName.js.map +1 -0
- package/Components/helpers/tagStateVariant.d.ts +3 -0
- package/Components/helpers/tagStateVariant.js +17 -0
- package/Components/helpers/tagStateVariant.js.map +1 -0
- package/Gateways/WorkflowNotificationTypesGateway.d.ts +10 -0
- package/Gateways/WorkflowNotificationTypesGateway.js +29 -0
- package/Gateways/WorkflowNotificationTypesGateway.js.map +1 -0
- package/Gateways/WorkflowStateGateway.d.ts +17 -0
- package/Gateways/WorkflowStateGateway.js +189 -0
- package/Gateways/WorkflowStateGateway.js.map +1 -0
- package/Gateways/WorkflowStateListGateway.d.ts +13 -0
- package/Gateways/WorkflowStateListGateway.js +88 -0
- package/Gateways/WorkflowStateListGateway.js.map +1 -0
- package/Gateways/WorkflowStatesWidgetGateway.d.ts +16 -0
- package/Gateways/WorkflowStatesWidgetGateway.js +133 -0
- package/Gateways/WorkflowStatesWidgetGateway.js.map +1 -0
- package/Gateways/WorkflowsGateway.d.ts +13 -0
- package/Gateways/WorkflowsGateway.js +77 -0
- package/Gateways/WorkflowsGateway.js.map +1 -0
- package/Gateways/abstraction/WorkflowNotificationTypesGateway.d.ts +16 -0
- package/Gateways/abstraction/WorkflowNotificationTypesGateway.js +3 -0
- package/Gateways/abstraction/WorkflowNotificationTypesGateway.js.map +1 -0
- package/Gateways/abstraction/WorkflowStateGateway.d.ts +107 -0
- package/Gateways/abstraction/WorkflowStateGateway.js +3 -0
- package/Gateways/abstraction/WorkflowStateGateway.js.map +1 -0
- package/Gateways/abstraction/WorkflowStateListGateway.d.ts +50 -0
- package/Gateways/abstraction/WorkflowStateListGateway.js +3 -0
- package/Gateways/abstraction/WorkflowStateListGateway.js.map +1 -0
- package/Gateways/abstraction/WorkflowStatesWidgetGateway.d.ts +69 -0
- package/Gateways/abstraction/WorkflowStatesWidgetGateway.js +3 -0
- package/Gateways/abstraction/WorkflowStatesWidgetGateway.js.map +1 -0
- package/Gateways/abstraction/WorkflowsGateway.d.ts +45 -0
- package/Gateways/abstraction/WorkflowsGateway.js +3 -0
- package/Gateways/abstraction/WorkflowsGateway.js.map +1 -0
- package/Gateways/graphql/workflowNotifications.d.ts +11 -0
- package/Gateways/graphql/workflowNotifications.js +26 -0
- package/Gateways/graphql/workflowNotifications.js.map +1 -0
- package/Gateways/graphql/workflowStates.d.ts +142 -0
- package/Gateways/graphql/workflowStates.js +171 -0
- package/Gateways/graphql/workflowStates.js.map +1 -0
- package/Gateways/graphql/workflows.d.ts +69 -0
- package/Gateways/graphql/workflows.js +67 -0
- package/Gateways/graphql/workflows.js.map +1 -0
- package/Gateways/index.d.ts +12 -0
- package/Gateways/index.js +7 -0
- package/Gateways/index.js.map +1 -0
- package/LICENSE +21 -0
- package/Models/WorkflowModel.d.ts +18 -0
- package/Models/WorkflowModel.js +78 -0
- package/Models/WorkflowModel.js.map +1 -0
- package/Models/WorkflowStateModel.d.ts +34 -0
- package/Models/WorkflowStateModel.js +117 -0
- package/Models/WorkflowStateModel.js.map +1 -0
- package/Models/WorkflowStateStepModel.d.ts +20 -0
- package/Models/WorkflowStateStepModel.js +44 -0
- package/Models/WorkflowStateStepModel.js.map +1 -0
- package/Models/WorkflowStepModel.d.ts +13 -0
- package/Models/WorkflowStepModel.js +29 -0
- package/Models/WorkflowStepModel.js.map +1 -0
- package/Models/abstractions/WorkflowModel.d.ts +13 -0
- package/Models/abstractions/WorkflowModel.js +3 -0
- package/Models/abstractions/WorkflowModel.js.map +1 -0
- package/Models/abstractions/WorkflowStateModel.d.ts +18 -0
- package/Models/abstractions/WorkflowStateModel.js +3 -0
- package/Models/abstractions/WorkflowStateModel.js.map +1 -0
- package/Models/abstractions/WorkflowStateStepModel.d.ts +5 -0
- package/Models/abstractions/WorkflowStateStepModel.js +3 -0
- package/Models/abstractions/WorkflowStateStepModel.js.map +1 -0
- package/Models/abstractions/WorkflowStepModel.d.ts +5 -0
- package/Models/abstractions/WorkflowStepModel.js +3 -0
- package/Models/abstractions/WorkflowStepModel.js.map +1 -0
- package/Models/index.d.ts +8 -0
- package/Models/index.js +6 -0
- package/Models/index.js.map +1 -0
- package/Presenters/WorkflowStateListPresenter.d.ts +24 -0
- package/Presenters/WorkflowStateListPresenter.js +54 -0
- package/Presenters/WorkflowStateListPresenter.js.map +1 -0
- package/Presenters/WorkflowStatePresenter.d.ts +51 -0
- package/Presenters/WorkflowStatePresenter.js +225 -0
- package/Presenters/WorkflowStatePresenter.js.map +1 -0
- package/Presenters/WorkflowStatesWidgetPresenter.d.ts +34 -0
- package/Presenters/WorkflowStatesWidgetPresenter.js +273 -0
- package/Presenters/WorkflowStatesWidgetPresenter.js.map +1 -0
- package/Presenters/WorkflowsPresenter.d.ts +31 -0
- package/Presenters/WorkflowsPresenter.js +108 -0
- package/Presenters/WorkflowsPresenter.js.map +1 -0
- package/Presenters/abstractions/WorkflowStateListPresenter.d.ts +58 -0
- package/Presenters/abstractions/WorkflowStateListPresenter.js +3 -0
- package/Presenters/abstractions/WorkflowStateListPresenter.js.map +1 -0
- package/Presenters/abstractions/WorkflowStatePresenter.d.ts +37 -0
- package/Presenters/abstractions/WorkflowStatePresenter.js +3 -0
- package/Presenters/abstractions/WorkflowStatePresenter.js.map +1 -0
- package/Presenters/abstractions/WorkflowStatesWidgetPresenter.d.ts +38 -0
- package/Presenters/abstractions/WorkflowStatesWidgetPresenter.js +3 -0
- package/Presenters/abstractions/WorkflowStatesWidgetPresenter.js.map +1 -0
- package/Presenters/abstractions/WorkflowsPresenter.d.ts +25 -0
- package/Presenters/abstractions/WorkflowsPresenter.js +3 -0
- package/Presenters/abstractions/WorkflowsPresenter.js.map +1 -0
- package/Presenters/index.d.ts +11 -0
- package/Presenters/index.js +6 -0
- package/Presenters/index.js.map +1 -0
- package/README.md +11 -0
- package/Repositories/WorkflowNotificationTypesRepository.d.ts +16 -0
- package/Repositories/WorkflowNotificationTypesRepository.js +29 -0
- package/Repositories/WorkflowNotificationTypesRepository.js.map +1 -0
- package/Repositories/WorkflowStateListRepository.d.ts +26 -0
- package/Repositories/WorkflowStateListRepository.js +74 -0
- package/Repositories/WorkflowStateListRepository.js.map +1 -0
- package/Repositories/WorkflowStateRepository.d.ts +22 -0
- package/Repositories/WorkflowStateRepository.js +131 -0
- package/Repositories/WorkflowStateRepository.js.map +1 -0
- package/Repositories/WorkflowStatesWidgetRepository.d.ts +24 -0
- package/Repositories/WorkflowStatesWidgetRepository.js +137 -0
- package/Repositories/WorkflowStatesWidgetRepository.js.map +1 -0
- package/Repositories/WorkflowsRepository.d.ts +21 -0
- package/Repositories/WorkflowsRepository.js +86 -0
- package/Repositories/WorkflowsRepository.js.map +1 -0
- package/Repositories/abstractions/WorkflowNotificationTypesRepository.d.ts +7 -0
- package/Repositories/abstractions/WorkflowNotificationTypesRepository.js +3 -0
- package/Repositories/abstractions/WorkflowNotificationTypesRepository.js.map +1 -0
- package/Repositories/abstractions/WorkflowStateListRepository.d.ts +13 -0
- package/Repositories/abstractions/WorkflowStateListRepository.js +3 -0
- package/Repositories/abstractions/WorkflowStateListRepository.js.map +1 -0
- package/Repositories/abstractions/WorkflowStateRepository.d.ts +37 -0
- package/Repositories/abstractions/WorkflowStateRepository.js +3 -0
- package/Repositories/abstractions/WorkflowStateRepository.js.map +1 -0
- package/Repositories/abstractions/WorkflowStatesWidgetRepository.d.ts +36 -0
- package/Repositories/abstractions/WorkflowStatesWidgetRepository.js +3 -0
- package/Repositories/abstractions/WorkflowStatesWidgetRepository.js.map +1 -0
- package/Repositories/abstractions/WorkflowsRepository.d.ts +17 -0
- package/Repositories/abstractions/WorkflowsRepository.js +3 -0
- package/Repositories/abstractions/WorkflowsRepository.js.map +1 -0
- package/Repositories/index.d.ts +13 -0
- package/Repositories/index.js +7 -0
- package/Repositories/index.js.map +1 -0
- package/hooks/canUseWorkflows.d.ts +3 -0
- package/hooks/canUseWorkflows.js +10 -0
- package/hooks/canUseWorkflows.js.map +1 -0
- package/index.d.ts +56 -0
- package/index.js +42 -0
- package/index.js.map +1 -0
- package/package.json +50 -0
- package/routes.d.ts +10 -0
- package/routes.js +18 -0
- package/routes.js.map +1 -0
- package/types.d.ts +90 -0
- package/types.js +19 -0
- package/types.js.map +1 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StartDialog as BaseStartDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const StartDialog = props => {
|
|
4
|
+
const {
|
|
5
|
+
presenter
|
|
6
|
+
} = props;
|
|
7
|
+
const step = presenter.vm.step;
|
|
8
|
+
if (!step) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return /*#__PURE__*/React.createElement(BaseStartDialog, {
|
|
12
|
+
onStart: presenter.start,
|
|
13
|
+
hide: presenter.hideDialog,
|
|
14
|
+
loading: presenter.vm.loading,
|
|
15
|
+
title: step.title
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=StartDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StartDialog","BaseStartDialog","props","presenter","step","vm","createElement","onStart","start","hide","hideDialog","loading","title"],"sources":["StartDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { StartDialog as BaseStartDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface IStartDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const StartDialog = (props: IStartDialogProps) => {\n const { presenter } = props;\n const step = presenter.vm.step;\n if (!step) {\n return null;\n }\n\n return (\n <BaseStartDialog\n onStart={presenter.start}\n hide={presenter.hideDialog}\n loading={presenter.vm.loading}\n title={step.title}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,IAAIC,eAAe;AAOvC,OAAO,MAAMD,WAAW,GAAIE,KAAwB,IAAK;EACrD,MAAM;IAAEC;EAAU,CAAC,GAAGD,KAAK;EAC3B,MAAME,IAAI,GAAGD,SAAS,CAACE,EAAE,CAACD,IAAI;EAC9B,IAAI,CAACA,IAAI,EAAE;IACP,OAAO,IAAI;EACf;EAEA,oBACIL,KAAA,CAAAO,aAAA,CAACL,eAAe;IACZM,OAAO,EAAEJ,SAAS,CAACK,KAAM;IACzBC,IAAI,EAAEN,SAAS,CAACO,UAAW;IAC3BC,OAAO,EAAER,SAAS,CAACE,EAAE,CAACM,OAAQ;IAC9BC,KAAK,EAAER,IAAI,CAACQ;EAAM,CACrB,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface IStartSuccessDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const StartSuccessDialog: (props: IStartSuccessDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StartSuccessDialog as BaseStartSuccessDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const StartSuccessDialog = props => {
|
|
4
|
+
const {
|
|
5
|
+
presenter
|
|
6
|
+
} = props;
|
|
7
|
+
const step = presenter.vm.step;
|
|
8
|
+
if (!step) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return /*#__PURE__*/React.createElement(BaseStartSuccessDialog, {
|
|
12
|
+
hide: presenter.hideDialog,
|
|
13
|
+
title: step.title
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=StartSuccessDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StartSuccessDialog","BaseStartSuccessDialog","props","presenter","step","vm","createElement","hide","hideDialog","title"],"sources":["StartSuccessDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { StartSuccessDialog as BaseStartSuccessDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface IStartSuccessDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const StartSuccessDialog = (props: IStartSuccessDialogProps) => {\n const { presenter } = props;\n\n const step = presenter.vm.step;\n\n if (!step) {\n return null;\n }\n\n return <BaseStartSuccessDialog hide={presenter.hideDialog} title={step.title} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,IAAIC,sBAAsB;AAOrD,OAAO,MAAMD,kBAAkB,GAAIE,KAA+B,IAAK;EACnE,MAAM;IAAEC;EAAU,CAAC,GAAGD,KAAK;EAE3B,MAAME,IAAI,GAAGD,SAAS,CAACE,EAAE,CAACD,IAAI;EAE9B,IAAI,CAACA,IAAI,EAAE;IACP,OAAO,IAAI;EACf;EAEA,oBAAOL,KAAA,CAAAO,aAAA,CAACL,sBAAsB;IAACM,IAAI,EAAEJ,SAAS,CAACK,UAAW;IAACC,KAAK,EAAEL,IAAI,CAACK;EAAM,CAAE,CAAC;AACpF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface ITakeOverDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const TakeOverDialog: (props: ITakeOverDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TakeOverDialog as BaseTakeOverDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const TakeOverDialog = props => {
|
|
4
|
+
const {
|
|
5
|
+
presenter
|
|
6
|
+
} = props;
|
|
7
|
+
const step = presenter.vm.step;
|
|
8
|
+
if (!step) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
const displayName = step.savedBy?.displayName || "unknown: " + step.savedBy?.id || "N/A";
|
|
12
|
+
return /*#__PURE__*/React.createElement(BaseTakeOverDialog, {
|
|
13
|
+
onTakeOver: presenter.takeOver,
|
|
14
|
+
hide: presenter.hideDialog,
|
|
15
|
+
loading: presenter.vm.loading,
|
|
16
|
+
title: step.title,
|
|
17
|
+
displayName: displayName
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=TakeOverDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TakeOverDialog","BaseTakeOverDialog","props","presenter","step","vm","displayName","savedBy","id","createElement","onTakeOver","takeOver","hide","hideDialog","loading","title"],"sources":["TakeOverDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { TakeOverDialog as BaseTakeOverDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface ITakeOverDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const TakeOverDialog = (props: ITakeOverDialogProps) => {\n const { presenter } = props;\n const step = presenter.vm.step;\n if (!step) {\n return null;\n }\n\n const displayName = step.savedBy?.displayName || \"unknown: \" + step.savedBy?.id || \"N/A\";\n\n return (\n <BaseTakeOverDialog\n onTakeOver={presenter.takeOver}\n hide={presenter.hideDialog}\n loading={presenter.vm.loading}\n title={step.title}\n displayName={displayName}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,kBAAkB;AAO7C,OAAO,MAAMD,cAAc,GAAIE,KAA2B,IAAK;EAC3D,MAAM;IAAEC;EAAU,CAAC,GAAGD,KAAK;EAC3B,MAAME,IAAI,GAAGD,SAAS,CAACE,EAAE,CAACD,IAAI;EAC9B,IAAI,CAACA,IAAI,EAAE;IACP,OAAO,IAAI;EACf;EAEA,MAAME,WAAW,GAAGF,IAAI,CAACG,OAAO,EAAED,WAAW,IAAI,WAAW,GAAGF,IAAI,CAACG,OAAO,EAAEC,EAAE,IAAI,KAAK;EAExF,oBACIT,KAAA,CAAAU,aAAA,CAACR,kBAAkB;IACfS,UAAU,EAAEP,SAAS,CAACQ,QAAS;IAC/BC,IAAI,EAAET,SAAS,CAACU,UAAW;IAC3BC,OAAO,EAAEX,SAAS,CAACE,EAAE,CAACS,OAAQ;IAC9BC,KAAK,EAAEX,IAAI,CAACW,KAAM;IAClBT,WAAW,EAAEA;EAAY,CAC5B,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface ITakeOverSuccessDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const TakeOverSuccessDialog: (props: ITakeOverSuccessDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TakeOverSuccessDialog as BaseTakeOverSuccessDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const TakeOverSuccessDialog = props => {
|
|
4
|
+
const {
|
|
5
|
+
presenter
|
|
6
|
+
} = props;
|
|
7
|
+
const step = presenter.vm.step;
|
|
8
|
+
if (!step) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return /*#__PURE__*/React.createElement(BaseTakeOverSuccessDialog, {
|
|
12
|
+
hide: presenter.hideDialog,
|
|
13
|
+
title: step.title
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=TakeOverSuccessDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TakeOverSuccessDialog","BaseTakeOverSuccessDialog","props","presenter","step","vm","createElement","hide","hideDialog","title"],"sources":["TakeOverSuccessDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { TakeOverSuccessDialog as BaseTakeOverSuccessDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface ITakeOverSuccessDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const TakeOverSuccessDialog = (props: ITakeOverSuccessDialogProps) => {\n const { presenter } = props;\n\n const step = presenter.vm.step;\n\n if (!step) {\n return null;\n }\n\n return <BaseTakeOverSuccessDialog hide={presenter.hideDialog} title={step.title} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,qBAAqB,IAAIC,yBAAyB;AAO3D,OAAO,MAAMD,qBAAqB,GAAIE,KAAkC,IAAK;EACzE,MAAM;IAAEC;EAAU,CAAC,GAAGD,KAAK;EAE3B,MAAME,IAAI,GAAGD,SAAS,CAACE,EAAE,CAACD,IAAI;EAE9B,IAAI,CAACA,IAAI,EAAE;IACP,OAAO,IAAI;EACf;EAEA,oBAAOL,KAAA,CAAAO,aAAA,CAACL,yBAAyB;IAACM,IAAI,EAAEJ,SAAS,CAACK,UAAW;IAACC,KAAK,EAAEL,IAAI,CAACK;EAAM,CAAE,CAAC;AACvF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./ApproveDialog.js";
|
|
2
|
+
export * from "./ApproveSuccessDialog.js";
|
|
3
|
+
export * from "./CancelReviewDialog.js";
|
|
4
|
+
export * from "./CommentDialog.js";
|
|
5
|
+
export * from "./RejectDialog.js";
|
|
6
|
+
export * from "./RejectSuccessDialog.js";
|
|
7
|
+
export * from "./RequestReviewDialog.js";
|
|
8
|
+
export * from "./StartDialog.js";
|
|
9
|
+
export * from "./StartSuccessDialog.js";
|
|
10
|
+
export * from "./TakeOverDialog.js";
|
|
11
|
+
export * from "./TakeOverSuccessDialog.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./ApproveDialog.js";
|
|
2
|
+
export * from "./ApproveSuccessDialog.js";
|
|
3
|
+
export * from "./CancelReviewDialog.js";
|
|
4
|
+
export * from "./CommentDialog.js";
|
|
5
|
+
export * from "./RejectDialog.js";
|
|
6
|
+
export * from "./RejectSuccessDialog.js";
|
|
7
|
+
export * from "./RequestReviewDialog.js";
|
|
8
|
+
export * from "./StartDialog.js";
|
|
9
|
+
export * from "./StartSuccessDialog.js";
|
|
10
|
+
export * from "./TakeOverDialog.js";
|
|
11
|
+
export * from "./TakeOverSuccessDialog.js";
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ApproveDialog.js\";\nexport * from \"./ApproveSuccessDialog.js\";\nexport * from \"./CancelReviewDialog.js\";\nexport * from \"./CommentDialog.js\";\nexport * from \"./RejectDialog.js\";\nexport * from \"./RejectSuccessDialog.js\";\nexport * from \"./RequestReviewDialog.js\";\nexport * from \"./StartDialog.js\";\nexport * from \"./StartSuccessDialog.js\";\nexport * from \"./TakeOverDialog.js\";\nexport * from \"./TakeOverSuccessDialog.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflow, IWorkflowState } from "../../../types.js";
|
|
3
|
+
interface IWorkflowStateBarPropsChildrenParams {
|
|
4
|
+
workflow: IWorkflow;
|
|
5
|
+
state?: IWorkflowState | null;
|
|
6
|
+
}
|
|
7
|
+
interface IWorkflowStateBarPropsChildren {
|
|
8
|
+
(params: IWorkflowStateBarPropsChildrenParams): React.ReactElement | React.ReactElement[] | null;
|
|
9
|
+
}
|
|
10
|
+
export interface IWorkflowStateBarProps {
|
|
11
|
+
/**
|
|
12
|
+
* To have access to a state and workflow, render function is meant to be used.
|
|
13
|
+
* It will rerender on every state change, and it will provide the latest state and workflow.
|
|
14
|
+
*
|
|
15
|
+
* Also, this way we avoid using MobX in the consumers of this component.
|
|
16
|
+
*/
|
|
17
|
+
children?: IWorkflowStateBarPropsChildren | React.ReactElement | React.ReactElement[] | null;
|
|
18
|
+
}
|
|
19
|
+
export declare const WorkflowStateBar: ((props: IWorkflowStateBarProps) => React.JSX.Element | null) & {
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
import { Plugins } from "@webiny/app";
|
|
4
|
+
import { WorkflowStateBarError } from "./Bars/WorkflowStateBarError.js";
|
|
5
|
+
import { WorkflowStateBarLoading } from "./Bars/WorkflowStateBarLoading.js";
|
|
6
|
+
import { WorkflowStateBarRequestReview } from "./Bars/WorkflowStateBarRequestReview.js";
|
|
7
|
+
import { WorkflowStateBarCancelReview } from "./Bars/WorkflowStateBarCancelReview.js";
|
|
8
|
+
import { WorkflowStateBarReview } from "./Bars/WorkflowStateBarReview.js";
|
|
9
|
+
import { WorkflowStateBarApproved } from "./Bars/WorkflowStateBarApproved.js";
|
|
10
|
+
import { WorkflowStateBarRejected } from "./Bars/WorkflowStateBarRejected.js";
|
|
11
|
+
import { WorkflowStateBarWorkflow } from "./Bars/WorkflowStateBarWorkflow.js";
|
|
12
|
+
import { WorkflowStateBarComponent } from "./WorkflowStateBarComponent.js";
|
|
13
|
+
import { WorkflowStateBarStartReview } from "./Bars/WorkflowStateBarStartReview.js";
|
|
14
|
+
import { useWorkflowState } from "../useWorkflowState.js";
|
|
15
|
+
import { WorkflowStateBarDialogs } from "./WorkflowStateBarDialogs.js";
|
|
16
|
+
export const WorkflowStateBar = observer(props => {
|
|
17
|
+
const {
|
|
18
|
+
presenter
|
|
19
|
+
} = useWorkflowState();
|
|
20
|
+
/**
|
|
21
|
+
* If no workflow, do not show anything - there might not be a workflow assigned.
|
|
22
|
+
* We do not want to show loading or error states in this case.
|
|
23
|
+
*/
|
|
24
|
+
if (!presenter.vm.workflow) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WorkflowStateBarDialogs, null), /*#__PURE__*/React.createElement(Plugins, null, /*#__PURE__*/React.createElement(WorkflowStateBarApproved, null), /*#__PURE__*/React.createElement(WorkflowStateBarRejected, null), /*#__PURE__*/React.createElement(WorkflowStateBarReview, null), /*#__PURE__*/React.createElement(WorkflowStateBarStartReview, null), /*#__PURE__*/React.createElement(WorkflowStateBarCancelReview, null), /*#__PURE__*/React.createElement(WorkflowStateBarRequestReview, null), /*#__PURE__*/React.createElement(WorkflowStateBarLoading, null), /*#__PURE__*/React.createElement(WorkflowStateBarWorkflow, null), /*#__PURE__*/React.createElement(WorkflowStateBarError, null)), /*#__PURE__*/React.createElement(WorkflowStateBarComponent, {
|
|
28
|
+
presenter: presenter
|
|
29
|
+
}), typeof props.children === "function" ? props.children({
|
|
30
|
+
state: presenter.vm.state,
|
|
31
|
+
workflow: presenter.vm.workflow
|
|
32
|
+
}) : props.children);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=WorkflowStateBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","observer","Plugins","WorkflowStateBarError","WorkflowStateBarLoading","WorkflowStateBarRequestReview","WorkflowStateBarCancelReview","WorkflowStateBarReview","WorkflowStateBarApproved","WorkflowStateBarRejected","WorkflowStateBarWorkflow","WorkflowStateBarComponent","WorkflowStateBarStartReview","useWorkflowState","WorkflowStateBarDialogs","WorkflowStateBar","props","presenter","vm","workflow","createElement","Fragment","children","state"],"sources":["WorkflowStateBar.tsx"],"sourcesContent":["import React from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { Plugins } from \"@webiny/app\";\nimport { WorkflowStateBarError } from \"./Bars/WorkflowStateBarError.js\";\nimport { WorkflowStateBarLoading } from \"./Bars/WorkflowStateBarLoading.js\";\nimport { WorkflowStateBarRequestReview } from \"./Bars/WorkflowStateBarRequestReview.js\";\nimport { WorkflowStateBarCancelReview } from \"./Bars/WorkflowStateBarCancelReview.js\";\nimport { WorkflowStateBarReview } from \"./Bars/WorkflowStateBarReview.js\";\nimport { WorkflowStateBarApproved } from \"./Bars/WorkflowStateBarApproved.js\";\nimport { WorkflowStateBarRejected } from \"./Bars/WorkflowStateBarRejected.js\";\nimport { WorkflowStateBarWorkflow } from \"./Bars/WorkflowStateBarWorkflow.js\";\nimport { WorkflowStateBarComponent } from \"./WorkflowStateBarComponent.js\";\nimport { WorkflowStateBarStartReview } from \"./Bars/WorkflowStateBarStartReview.js\";\nimport { useWorkflowState } from \"../useWorkflowState.js\";\nimport { WorkflowStateBarDialogs } from \"~/Components/WorkflowState/Bar/WorkflowStateBarDialogs.js\";\nimport type { IWorkflow, IWorkflowState } from \"~/types.js\";\n\ninterface IWorkflowStateBarPropsChildrenParams {\n workflow: IWorkflow;\n state?: IWorkflowState | null;\n}\ninterface IWorkflowStateBarPropsChildren {\n (\n params: IWorkflowStateBarPropsChildrenParams\n ): React.ReactElement | React.ReactElement[] | null;\n}\nexport interface IWorkflowStateBarProps {\n /**\n * To have access to a state and workflow, render function is meant to be used.\n * It will rerender on every state change, and it will provide the latest state and workflow.\n *\n * Also, this way we avoid using MobX in the consumers of this component.\n */\n children?: IWorkflowStateBarPropsChildren | React.ReactElement | React.ReactElement[] | null;\n}\n\nexport const WorkflowStateBar = observer((props: IWorkflowStateBarProps) => {\n const { presenter } = useWorkflowState();\n /**\n * If no workflow, do not show anything - there might not be a workflow assigned.\n * We do not want to show loading or error states in this case.\n */\n if (!presenter.vm.workflow) {\n return null;\n }\n\n return (\n <>\n <WorkflowStateBarDialogs />\n <Plugins>\n <WorkflowStateBarApproved />\n <WorkflowStateBarRejected />\n <WorkflowStateBarReview />\n <WorkflowStateBarStartReview />\n <WorkflowStateBarCancelReview />\n <WorkflowStateBarRequestReview />\n <WorkflowStateBarLoading />\n <WorkflowStateBarWorkflow />\n <WorkflowStateBarError />\n </Plugins>\n <WorkflowStateBarComponent presenter={presenter} />\n {typeof props.children === \"function\"\n ? props.children({ state: presenter.vm.state, workflow: presenter.vm.workflow })\n : props.children}\n </>\n );\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,qBAAqB;AAC9B,SAASC,uBAAuB;AAChC,SAASC,6BAA6B;AACtC,SAASC,4BAA4B;AACrC,SAASC,sBAAsB;AAC/B,SAASC,wBAAwB;AACjC,SAASC,wBAAwB;AACjC,SAASC,wBAAwB;AACjC,SAASC,yBAAyB;AAClC,SAASC,2BAA2B;AACpC,SAASC,gBAAgB;AACzB,SAASC,uBAAuB;AAsBhC,OAAO,MAAMC,gBAAgB,GAAGd,QAAQ,CAAEe,KAA6B,IAAK;EACxE,MAAM;IAAEC;EAAU,CAAC,GAAGJ,gBAAgB,CAAC,CAAC;EACxC;AACJ;AACA;AACA;EACI,IAAI,CAACI,SAAS,CAACC,EAAE,CAACC,QAAQ,EAAE;IACxB,OAAO,IAAI;EACf;EAEA,oBACInB,KAAA,CAAAoB,aAAA,CAAApB,KAAA,CAAAqB,QAAA,qBACIrB,KAAA,CAAAoB,aAAA,CAACN,uBAAuB,MAAE,CAAC,eAC3Bd,KAAA,CAAAoB,aAAA,CAAClB,OAAO,qBACJF,KAAA,CAAAoB,aAAA,CAACZ,wBAAwB,MAAE,CAAC,eAC5BR,KAAA,CAAAoB,aAAA,CAACX,wBAAwB,MAAE,CAAC,eAC5BT,KAAA,CAAAoB,aAAA,CAACb,sBAAsB,MAAE,CAAC,eAC1BP,KAAA,CAAAoB,aAAA,CAACR,2BAA2B,MAAE,CAAC,eAC/BZ,KAAA,CAAAoB,aAAA,CAACd,4BAA4B,MAAE,CAAC,eAChCN,KAAA,CAAAoB,aAAA,CAACf,6BAA6B,MAAE,CAAC,eACjCL,KAAA,CAAAoB,aAAA,CAAChB,uBAAuB,MAAE,CAAC,eAC3BJ,KAAA,CAAAoB,aAAA,CAACV,wBAAwB,MAAE,CAAC,eAC5BV,KAAA,CAAAoB,aAAA,CAACjB,qBAAqB,MAAE,CACnB,CAAC,eACVH,KAAA,CAAAoB,aAAA,CAACT,yBAAyB;IAACM,SAAS,EAAEA;EAAU,CAAE,CAAC,EAClD,OAAOD,KAAK,CAACM,QAAQ,KAAK,UAAU,GAC/BN,KAAK,CAACM,QAAQ,CAAC;IAAEC,KAAK,EAAEN,SAAS,CAACC,EAAE,CAACK,KAAK;IAAEJ,QAAQ,EAAEF,SAAS,CAACC,EAAE,CAACC;EAAS,CAAC,CAAC,GAC9EH,KAAK,CAACM,QACd,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../Presenters/index.js";
|
|
3
|
+
export interface IWorkflowStateBarComponentProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Code should never reach this point, as all possible states should be handled by decorators.
|
|
8
|
+
* This is just a fallback to help debugging.
|
|
9
|
+
*/
|
|
10
|
+
export declare const WorkflowStateBarComponent: ((props: IWorkflowStateBarComponentProps) => React.JSX.Element) & {
|
|
11
|
+
displayName: string;
|
|
12
|
+
} & {
|
|
13
|
+
original: ((props: IWorkflowStateBarComponentProps) => React.JSX.Element) & {
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
originalName: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
} & {
|
|
19
|
+
original: ((props: IWorkflowStateBarComponentProps) => React.JSX.Element) & {
|
|
20
|
+
displayName: string;
|
|
21
|
+
} & {
|
|
22
|
+
original: ((props: IWorkflowStateBarComponentProps) => React.JSX.Element) & {
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
originalName: string;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
originalName: string;
|
|
29
|
+
displayName: string;
|
|
30
|
+
} & {
|
|
31
|
+
createDecorator: (decorator: import("@webiny/app/index").ComponentDecorator<((props: IWorkflowStateBarComponentProps) => React.JSX.Element) & {
|
|
32
|
+
displayName: string;
|
|
33
|
+
} & {
|
|
34
|
+
original: ((props: IWorkflowStateBarComponentProps) => React.JSX.Element) & {
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
originalName: string;
|
|
38
|
+
displayName: string;
|
|
39
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
40
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Alert, makeDecoratable } from "@webiny/admin-ui";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { observer } from "mobx-react-lite";
|
|
4
|
+
const debug = process.env.DEBUG === "true";
|
|
5
|
+
/**
|
|
6
|
+
* Code should never reach this point, as all possible states should be handled by decorators.
|
|
7
|
+
* This is just a fallback to help debugging.
|
|
8
|
+
*/
|
|
9
|
+
export const WorkflowStateBarComponent = makeDecoratable("WorkflowStateBarComponent", observer(props => {
|
|
10
|
+
const {
|
|
11
|
+
presenter
|
|
12
|
+
} = props;
|
|
13
|
+
if (presenter.vm.loading) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(Alert, null, "Loading...");
|
|
15
|
+
} else if (!debug) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(Alert, null, "Something went wrong, please contact the administrator.");
|
|
17
|
+
}
|
|
18
|
+
return /*#__PURE__*/React.createElement(Alert, null, /*#__PURE__*/React.createElement("div", null, "Debugging info:"), JSON.stringify({
|
|
19
|
+
...presenter.vm
|
|
20
|
+
}));
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=WorkflowStateBarComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","makeDecoratable","React","observer","debug","process","env","DEBUG","WorkflowStateBarComponent","props","presenter","vm","loading","createElement","JSON","stringify"],"sources":["WorkflowStateBarComponent.tsx"],"sourcesContent":["import { Alert, makeDecoratable } from \"@webiny/admin-ui\";\nimport React from \"react\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\nimport { observer } from \"mobx-react-lite\";\n\nexport interface IWorkflowStateBarComponentProps {\n presenter: IWorkflowStatePresenter;\n}\n\nconst debug = process.env.DEBUG === \"true\";\n/**\n * Code should never reach this point, as all possible states should be handled by decorators.\n * This is just a fallback to help debugging.\n */\nexport const WorkflowStateBarComponent = makeDecoratable(\n \"WorkflowStateBarComponent\",\n observer((props: IWorkflowStateBarComponentProps) => {\n const { presenter } = props;\n\n if (presenter.vm.loading) {\n return <Alert>Loading...</Alert>;\n } else if (!debug) {\n return <Alert>Something went wrong, please contact the administrator.</Alert>;\n }\n\n return (\n <Alert>\n <div>Debugging info:</div>\n {JSON.stringify({\n ...presenter.vm\n })}\n </Alert>\n );\n })\n);\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,eAAe,QAAQ,kBAAkB;AACzD,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,QAAQ,QAAQ,iBAAiB;AAM1C,MAAMC,KAAK,GAAGC,OAAO,CAACC,GAAG,CAACC,KAAK,KAAK,MAAM;AAC1C;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAGP,eAAe,CACpD,2BAA2B,EAC3BE,QAAQ,CAAEM,KAAsC,IAAK;EACjD,MAAM;IAAEC;EAAU,CAAC,GAAGD,KAAK;EAE3B,IAAIC,SAAS,CAACC,EAAE,CAACC,OAAO,EAAE;IACtB,oBAAOV,KAAA,CAAAW,aAAA,CAACb,KAAK,QAAC,YAAiB,CAAC;EACpC,CAAC,MAAM,IAAI,CAACI,KAAK,EAAE;IACf,oBAAOF,KAAA,CAAAW,aAAA,CAACb,KAAK,QAAC,yDAA8D,CAAC;EACjF;EAEA,oBACIE,KAAA,CAAAW,aAAA,CAACb,KAAK,qBACFE,KAAA,CAAAW,aAAA,cAAK,iBAAoB,CAAC,EACzBC,IAAI,CAACC,SAAS,CAAC;IACZ,GAAGL,SAAS,CAACC;EACjB,CAAC,CACE,CAAC;AAEhB,CAAC,CACL,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
import { useWorkflowState } from "../useWorkflowState.js";
|
|
4
|
+
import { ApproveDialog, ApproveSuccessDialog, CancelReviewDialog, CommentDialog, RejectDialog, RejectSuccessDialog, RequestReviewDialog, StartDialog, StartSuccessDialog, TakeOverDialog, TakeOverSuccessDialog } from "./Dialogs/index.js";
|
|
5
|
+
export const WorkflowStateBarDialogs = observer(() => {
|
|
6
|
+
const {
|
|
7
|
+
presenter
|
|
8
|
+
} = useWorkflowState();
|
|
9
|
+
switch (presenter.vm.dialog?.type) {
|
|
10
|
+
case "cancelReview":
|
|
11
|
+
return /*#__PURE__*/React.createElement(CancelReviewDialog, {
|
|
12
|
+
presenter: presenter
|
|
13
|
+
});
|
|
14
|
+
case "requestReview":
|
|
15
|
+
return /*#__PURE__*/React.createElement(RequestReviewDialog, {
|
|
16
|
+
presenter: presenter
|
|
17
|
+
});
|
|
18
|
+
case "start":
|
|
19
|
+
return /*#__PURE__*/React.createElement(StartDialog, {
|
|
20
|
+
presenter: presenter
|
|
21
|
+
});
|
|
22
|
+
case "start:success":
|
|
23
|
+
return /*#__PURE__*/React.createElement(StartSuccessDialog, {
|
|
24
|
+
presenter: presenter
|
|
25
|
+
});
|
|
26
|
+
case "approve":
|
|
27
|
+
return /*#__PURE__*/React.createElement(ApproveDialog, {
|
|
28
|
+
presenter: presenter
|
|
29
|
+
});
|
|
30
|
+
case "approve:success":
|
|
31
|
+
return /*#__PURE__*/React.createElement(ApproveSuccessDialog, {
|
|
32
|
+
presenter: presenter
|
|
33
|
+
});
|
|
34
|
+
case "reject":
|
|
35
|
+
return /*#__PURE__*/React.createElement(RejectDialog, {
|
|
36
|
+
presenter: presenter
|
|
37
|
+
});
|
|
38
|
+
case "reject:success":
|
|
39
|
+
return /*#__PURE__*/React.createElement(RejectSuccessDialog, {
|
|
40
|
+
presenter: presenter
|
|
41
|
+
});
|
|
42
|
+
case "comment":
|
|
43
|
+
return /*#__PURE__*/React.createElement(CommentDialog, {
|
|
44
|
+
presenter: presenter
|
|
45
|
+
});
|
|
46
|
+
case "takeOver":
|
|
47
|
+
return /*#__PURE__*/React.createElement(TakeOverDialog, {
|
|
48
|
+
presenter: presenter
|
|
49
|
+
});
|
|
50
|
+
case "takeOver:success":
|
|
51
|
+
return /*#__PURE__*/React.createElement(TakeOverSuccessDialog, {
|
|
52
|
+
presenter: presenter
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=WorkflowStateBarDialogs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","observer","useWorkflowState","ApproveDialog","ApproveSuccessDialog","CancelReviewDialog","CommentDialog","RejectDialog","RejectSuccessDialog","RequestReviewDialog","StartDialog","StartSuccessDialog","TakeOverDialog","TakeOverSuccessDialog","WorkflowStateBarDialogs","presenter","vm","dialog","type","createElement"],"sources":["WorkflowStateBarDialogs.tsx"],"sourcesContent":["import React from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { useWorkflowState } from \"../useWorkflowState.js\";\nimport {\n ApproveDialog,\n ApproveSuccessDialog,\n CancelReviewDialog,\n CommentDialog,\n RejectDialog,\n RejectSuccessDialog,\n RequestReviewDialog,\n StartDialog,\n StartSuccessDialog,\n TakeOverDialog,\n TakeOverSuccessDialog\n} from \"./Dialogs/index.js\";\n\nexport const WorkflowStateBarDialogs = observer(() => {\n const { presenter } = useWorkflowState();\n\n switch (presenter.vm.dialog?.type) {\n case \"cancelReview\":\n return <CancelReviewDialog presenter={presenter} />;\n case \"requestReview\":\n return <RequestReviewDialog presenter={presenter} />;\n case \"start\":\n return <StartDialog presenter={presenter} />;\n case \"start:success\":\n return <StartSuccessDialog presenter={presenter} />;\n case \"approve\":\n return <ApproveDialog presenter={presenter} />;\n case \"approve:success\":\n return <ApproveSuccessDialog presenter={presenter} />;\n case \"reject\":\n return <RejectDialog presenter={presenter} />;\n case \"reject:success\":\n return <RejectSuccessDialog presenter={presenter} />;\n case \"comment\":\n return <CommentDialog presenter={presenter} />;\n case \"takeOver\":\n return <TakeOverDialog presenter={presenter} />;\n case \"takeOver:success\":\n return <TakeOverSuccessDialog presenter={presenter} />;\n }\n return null;\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,gBAAgB;AACzB,SACIC,aAAa,EACbC,oBAAoB,EACpBC,kBAAkB,EAClBC,aAAa,EACbC,YAAY,EACZC,mBAAmB,EACnBC,mBAAmB,EACnBC,WAAW,EACXC,kBAAkB,EAClBC,cAAc,EACdC,qBAAqB;AAGzB,OAAO,MAAMC,uBAAuB,GAAGb,QAAQ,CAAC,MAAM;EAClD,MAAM;IAAEc;EAAU,CAAC,GAAGb,gBAAgB,CAAC,CAAC;EAExC,QAAQa,SAAS,CAACC,EAAE,CAACC,MAAM,EAAEC,IAAI;IAC7B,KAAK,cAAc;MACf,oBAAOlB,KAAA,CAAAmB,aAAA,CAACd,kBAAkB;QAACU,SAAS,EAAEA;MAAU,CAAE,CAAC;IACvD,KAAK,eAAe;MAChB,oBAAOf,KAAA,CAAAmB,aAAA,CAACV,mBAAmB;QAACM,SAAS,EAAEA;MAAU,CAAE,CAAC;IACxD,KAAK,OAAO;MACR,oBAAOf,KAAA,CAAAmB,aAAA,CAACT,WAAW;QAACK,SAAS,EAAEA;MAAU,CAAE,CAAC;IAChD,KAAK,eAAe;MAChB,oBAAOf,KAAA,CAAAmB,aAAA,CAACR,kBAAkB;QAACI,SAAS,EAAEA;MAAU,CAAE,CAAC;IACvD,KAAK,SAAS;MACV,oBAAOf,KAAA,CAAAmB,aAAA,CAAChB,aAAa;QAACY,SAAS,EAAEA;MAAU,CAAE,CAAC;IAClD,KAAK,iBAAiB;MAClB,oBAAOf,KAAA,CAAAmB,aAAA,CAACf,oBAAoB;QAACW,SAAS,EAAEA;MAAU,CAAE,CAAC;IACzD,KAAK,QAAQ;MACT,oBAAOf,KAAA,CAAAmB,aAAA,CAACZ,YAAY;QAACQ,SAAS,EAAEA;MAAU,CAAE,CAAC;IACjD,KAAK,gBAAgB;MACjB,oBAAOf,KAAA,CAAAmB,aAAA,CAACX,mBAAmB;QAACO,SAAS,EAAEA;MAAU,CAAE,CAAC;IACxD,KAAK,SAAS;MACV,oBAAOf,KAAA,CAAAmB,aAAA,CAACb,aAAa;QAACS,SAAS,EAAEA;MAAU,CAAE,CAAC;IAClD,KAAK,UAAU;MACX,oBAAOf,KAAA,CAAAmB,aAAA,CAACP,cAAc;QAACG,SAAS,EAAEA;MAAU,CAAE,CAAC;IACnD,KAAK,kBAAkB;MACnB,oBAAOf,KAAA,CAAAmB,aAAA,CAACN,qBAAqB;QAACE,SAAS,EAAEA;MAAU,CAAE,CAAC;EAC9D;EACA,OAAO,IAAI;AACf,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./WorkflowStateBar.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./WorkflowStateBar.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowState } from "../../../types.js";
|
|
3
|
+
interface IWorkflowStateOverlayPropsChildrenProps {
|
|
4
|
+
state: IWorkflowState | undefined;
|
|
5
|
+
}
|
|
6
|
+
interface IWorkflowStateOverlayPropsChildren {
|
|
7
|
+
(props: IWorkflowStateOverlayPropsChildrenProps): React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface IWorkflowStateOverlayProps {
|
|
10
|
+
children: React.ReactNode | IWorkflowStateOverlayPropsChildren;
|
|
11
|
+
}
|
|
12
|
+
export declare const WorkflowStateOverlay: (({ children }: IWorkflowStateOverlayProps) => React.ReactNode) & {
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useWorkflowState } from "../useWorkflowState.js";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
export const WorkflowStateOverlay = observer(({
|
|
4
|
+
children
|
|
5
|
+
}) => {
|
|
6
|
+
const {
|
|
7
|
+
presenter
|
|
8
|
+
} = useWorkflowState();
|
|
9
|
+
if (typeof children === "function") {
|
|
10
|
+
return children({
|
|
11
|
+
state: presenter.vm.state || undefined
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return children;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=WorkflowStateOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useWorkflowState","observer","WorkflowStateOverlay","children","presenter","state","vm","undefined"],"sources":["WorkflowStateOverlay.tsx"],"sourcesContent":["import React from \"react\";\nimport { useWorkflowState } from \"../useWorkflowState.js\";\nimport { observer } from \"mobx-react-lite\";\nimport type { IWorkflowState } from \"~/types.js\";\n\ninterface IWorkflowStateOverlayPropsChildrenProps {\n state: IWorkflowState | undefined;\n}\n\ninterface IWorkflowStateOverlayPropsChildren {\n (props: IWorkflowStateOverlayPropsChildrenProps): React.ReactNode;\n}\n\nexport interface IWorkflowStateOverlayProps {\n children: React.ReactNode | IWorkflowStateOverlayPropsChildren;\n}\n\nexport const WorkflowStateOverlay = observer(({ children }: IWorkflowStateOverlayProps) => {\n const { presenter } = useWorkflowState();\n if (typeof children === \"function\") {\n return children({ state: presenter.vm.state || undefined });\n }\n return children;\n});\n"],"mappings":"AACA,SAASA,gBAAgB;AACzB,SAASC,QAAQ,QAAQ,iBAAiB;AAe1C,OAAO,MAAMC,oBAAoB,GAAGD,QAAQ,CAAC,CAAC;EAAEE;AAAqC,CAAC,KAAK;EACvF,MAAM;IAAEC;EAAU,CAAC,GAAGJ,gBAAgB,CAAC,CAAC;EACxC,IAAI,OAAOG,QAAQ,KAAK,UAAU,EAAE;IAChC,OAAOA,QAAQ,CAAC;MAAEE,KAAK,EAAED,SAAS,CAACE,EAAE,CAACD,KAAK,IAAIE;IAAU,CAAC,CAAC;EAC/D;EACA,OAAOJ,QAAQ;AACnB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../Presenters/index.js";
|
|
3
|
+
export interface IWorkflowStateTooltipButtonProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
Icon?: React.ComponentType;
|
|
6
|
+
}
|
|
7
|
+
export interface IWorkflowStateTooltipProps {
|
|
8
|
+
Icon?: React.ComponentType;
|
|
9
|
+
}
|
|
10
|
+
export declare const WorkflowStateTooltip: (props: IWorkflowStateTooltipProps) => React.JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Icon as IconWrap, Popover } from "@webiny/admin-ui";
|
|
3
|
+
import { ReactComponent as WorkflowStateTooltipIcon } from "@webiny/icons/list.svg";
|
|
4
|
+
import { WorkflowStateTooltipContent } from "./WorkflowStateTooltipContent.js";
|
|
5
|
+
import { observer } from "mobx-react-lite";
|
|
6
|
+
import { useWorkflowState } from "../useWorkflowState.js";
|
|
7
|
+
const WorkflowStateTooltipObserver = observer(props => {
|
|
8
|
+
const {
|
|
9
|
+
presenter,
|
|
10
|
+
Icon
|
|
11
|
+
} = props;
|
|
12
|
+
const {
|
|
13
|
+
state
|
|
14
|
+
} = presenter.vm;
|
|
15
|
+
if (!state) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
19
|
+
trigger: /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Button, {
|
|
20
|
+
variant: "secondary",
|
|
21
|
+
text: /*#__PURE__*/React.createElement(IconWrap, {
|
|
22
|
+
label: "Tooltip",
|
|
23
|
+
size: "sm",
|
|
24
|
+
icon: Icon ? /*#__PURE__*/React.createElement(Icon, null) : /*#__PURE__*/React.createElement(WorkflowStateTooltipIcon, null)
|
|
25
|
+
})
|
|
26
|
+
})),
|
|
27
|
+
content: /*#__PURE__*/React.createElement(WorkflowStateTooltipContent, {
|
|
28
|
+
state: state,
|
|
29
|
+
presenter: presenter
|
|
30
|
+
}),
|
|
31
|
+
align: "center",
|
|
32
|
+
side: "bottom",
|
|
33
|
+
arrow: true,
|
|
34
|
+
close: false
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
export const WorkflowStateTooltip = props => {
|
|
38
|
+
const {
|
|
39
|
+
presenter
|
|
40
|
+
} = useWorkflowState();
|
|
41
|
+
return /*#__PURE__*/React.createElement(WorkflowStateTooltipObserver, {
|
|
42
|
+
presenter: presenter,
|
|
43
|
+
Icon: props.Icon
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=WorkflowStateTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Button","Icon","IconWrap","Popover","ReactComponent","WorkflowStateTooltipIcon","WorkflowStateTooltipContent","observer","useWorkflowState","WorkflowStateTooltipObserver","props","presenter","state","vm","createElement","trigger","variant","text","label","size","icon","content","align","side","arrow","close","WorkflowStateTooltip"],"sources":["WorkflowStateTooltip.tsx"],"sourcesContent":["import React from \"react\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\nimport { Button, Icon as IconWrap, Popover } from \"@webiny/admin-ui\";\nimport { ReactComponent as WorkflowStateTooltipIcon } from \"@webiny/icons/list.svg\";\nimport { WorkflowStateTooltipContent } from \"./WorkflowStateTooltipContent.js\";\nimport { observer } from \"mobx-react-lite\";\nimport { useWorkflowState } from \"../useWorkflowState.js\";\n\nexport interface IWorkflowStateTooltipButtonProps {\n presenter: IWorkflowStatePresenter;\n Icon?: React.ComponentType;\n}\n\nconst WorkflowStateTooltipObserver = observer((props: IWorkflowStateTooltipButtonProps) => {\n const { presenter, Icon } = props;\n const { state } = presenter.vm;\n if (!state) {\n return null;\n }\n return (\n <Popover\n trigger={\n <span>\n <Button\n variant={\"secondary\"}\n text={\n <IconWrap\n label={\"Tooltip\"}\n size={\"sm\"}\n icon={Icon ? <Icon /> : <WorkflowStateTooltipIcon />}\n />\n }\n />\n </span>\n }\n content={<WorkflowStateTooltipContent state={state} presenter={presenter} />}\n align=\"center\"\n side=\"bottom\"\n arrow={true}\n close={false}\n />\n );\n});\n\nexport interface IWorkflowStateTooltipProps {\n Icon?: React.ComponentType;\n}\n\nexport const WorkflowStateTooltip = (props: IWorkflowStateTooltipProps) => {\n const { presenter } = useWorkflowState();\n\n return <WorkflowStateTooltipObserver presenter={presenter} Icon={props.Icon} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,MAAM,EAAEC,IAAI,IAAIC,QAAQ,EAAEC,OAAO,QAAQ,kBAAkB;AACpE,SAASC,cAAc,IAAIC,wBAAwB,QAAQ,wBAAwB;AACnF,SAASC,2BAA2B;AACpC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,gBAAgB;AAOzB,MAAMC,4BAA4B,GAAGF,QAAQ,CAAEG,KAAuC,IAAK;EACvF,MAAM;IAAEC,SAAS;IAAEV;EAAK,CAAC,GAAGS,KAAK;EACjC,MAAM;IAAEE;EAAM,CAAC,GAAGD,SAAS,CAACE,EAAE;EAC9B,IAAI,CAACD,KAAK,EAAE;IACR,OAAO,IAAI;EACf;EACA,oBACIb,KAAA,CAAAe,aAAA,CAACX,OAAO;IACJY,OAAO,eACHhB,KAAA,CAAAe,aAAA,4BACIf,KAAA,CAAAe,aAAA,CAACd,MAAM;MACHgB,OAAO,EAAE,WAAY;MACrBC,IAAI,eACAlB,KAAA,CAAAe,aAAA,CAACZ,QAAQ;QACLgB,KAAK,EAAE,SAAU;QACjBC,IAAI,EAAE,IAAK;QACXC,IAAI,EAAEnB,IAAI,gBAAGF,KAAA,CAAAe,aAAA,CAACb,IAAI,MAAE,CAAC,gBAAGF,KAAA,CAAAe,aAAA,CAACT,wBAAwB,MAAE;MAAE,CACxD;IACJ,CACJ,CACC,CACT;IACDgB,OAAO,eAAEtB,KAAA,CAAAe,aAAA,CAACR,2BAA2B;MAACM,KAAK,EAAEA,KAAM;MAACD,SAAS,EAAEA;IAAU,CAAE,CAAE;IAC7EW,KAAK,EAAC,QAAQ;IACdC,IAAI,EAAC,QAAQ;IACbC,KAAK,EAAE,IAAK;IACZC,KAAK,EAAE;EAAM,CAChB,CAAC;AAEV,CAAC,CAAC;AAMF,OAAO,MAAMC,oBAAoB,GAAIhB,KAAiC,IAAK;EACvE,MAAM;IAAEC;EAAU,CAAC,GAAGH,gBAAgB,CAAC,CAAC;EAExC,oBAAOT,KAAA,CAAAe,aAAA,CAACL,4BAA4B;IAACE,SAAS,EAAEA,SAAU;IAACV,IAAI,EAAES,KAAK,CAACT;EAAK,CAAE,CAAC;AACnF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../Presenters/index.js";
|
|
3
|
+
import type { IWorkflowState } from "../../../types.js";
|
|
4
|
+
interface IWorkflowStateTooltipButtonProps {
|
|
5
|
+
presenter: IWorkflowStatePresenter;
|
|
6
|
+
state: IWorkflowState;
|
|
7
|
+
}
|
|
8
|
+
export declare const WorkflowStateTooltipContent: (props: IWorkflowStateTooltipButtonProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { Fragment, useCallback } from "react";
|
|
2
|
+
import { Grid, Tag } from "@webiny/admin-ui";
|
|
3
|
+
import { WorkflowStateTooltipContentComment } from "./WorkflowStateTooltipContentComment.js";
|
|
4
|
+
import { TagState } from "../../Common/TagState.js";
|
|
5
|
+
export const WorkflowStateTooltipContent = props => {
|
|
6
|
+
const {
|
|
7
|
+
state,
|
|
8
|
+
presenter
|
|
9
|
+
} = props;
|
|
10
|
+
const createShowComment = useCallback(step => {
|
|
11
|
+
return () => {
|
|
12
|
+
presenter.showCommentDialog(step.id);
|
|
13
|
+
};
|
|
14
|
+
}, []);
|
|
15
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
16
|
+
className: "w-[350px] text-sm",
|
|
17
|
+
gap: "small"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Grid.Column, {
|
|
19
|
+
span: 12
|
|
20
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Workflow progress")), state.steps.map(step => {
|
|
21
|
+
return /*#__PURE__*/React.createElement(Fragment, {
|
|
22
|
+
key: `step-${step.id}`
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Grid.Column, {
|
|
24
|
+
span: 4
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Tag, {
|
|
26
|
+
swatchColor: step.color,
|
|
27
|
+
content: step.title,
|
|
28
|
+
variant: "neutral-light"
|
|
29
|
+
})), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
30
|
+
span: 4
|
|
31
|
+
}, /*#__PURE__*/React.createElement(TagState, {
|
|
32
|
+
state: step.state
|
|
33
|
+
})), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
34
|
+
span: 4
|
|
35
|
+
}, /*#__PURE__*/React.createElement(WorkflowStateTooltipContentComment, {
|
|
36
|
+
showComment: createShowComment(step),
|
|
37
|
+
step: step
|
|
38
|
+
})));
|
|
39
|
+
})));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=WorkflowStateTooltipContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Fragment","useCallback","Grid","Tag","WorkflowStateTooltipContentComment","TagState","WorkflowStateTooltipContent","props","state","presenter","createShowComment","step","showCommentDialog","id","createElement","className","gap","Column","span","steps","map","key","swatchColor","color","content","title","variant","showComment"],"sources":["WorkflowStateTooltipContent.tsx"],"sourcesContent":["import React, { Fragment, useCallback } from \"react\";\nimport { Grid, Tag } from \"@webiny/admin-ui\";\nimport { WorkflowStateTooltipContentComment } from \"./WorkflowStateTooltipContentComment.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\nimport { TagState } from \"~/Components/Common/TagState.js\";\nimport type { IWorkflowState, IWorkflowStateStep } from \"~/types.js\";\n\ninterface IWorkflowStateTooltipButtonProps {\n presenter: IWorkflowStatePresenter;\n state: IWorkflowState;\n}\n\nexport const WorkflowStateTooltipContent = (props: IWorkflowStateTooltipButtonProps) => {\n const { state, presenter } = props;\n\n const createShowComment = useCallback((step: Pick<IWorkflowStateStep, \"id\">) => {\n return () => {\n presenter.showCommentDialog(step.id);\n };\n }, []);\n return (\n <Grid className={\"w-[350px] text-sm\"} gap={\"small\"}>\n <>\n <Grid.Column span={12}>\n <strong>Workflow progress</strong>\n </Grid.Column>\n {state.steps.map(step => {\n return (\n <Fragment key={`step-${step.id}`}>\n <Grid.Column span={4}>\n <Tag\n swatchColor={step.color}\n content={step.title}\n variant={\"neutral-light\"}\n />\n </Grid.Column>\n <Grid.Column span={4}>\n <TagState state={step.state} />\n </Grid.Column>\n <Grid.Column span={4}>\n <WorkflowStateTooltipContentComment\n showComment={createShowComment(step)}\n step={step}\n />\n </Grid.Column>\n </Fragment>\n );\n })}\n </>\n </Grid>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,WAAW,QAAQ,OAAO;AACpD,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAC5C,SAASC,kCAAkC;AAE3C,SAASC,QAAQ;AAQjB,OAAO,MAAMC,2BAA2B,GAAIC,KAAuC,IAAK;EACpF,MAAM;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGF,KAAK;EAElC,MAAMG,iBAAiB,GAAGT,WAAW,CAAEU,IAAoC,IAAK;IAC5E,OAAO,MAAM;MACTF,SAAS,CAACG,iBAAiB,CAACD,IAAI,CAACE,EAAE,CAAC;IACxC,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EACN,oBACId,KAAA,CAAAe,aAAA,CAACZ,IAAI;IAACa,SAAS,EAAE,mBAAoB;IAACC,GAAG,EAAE;EAAQ,gBAC/CjB,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAC,QAAA,qBACID,KAAA,CAAAe,aAAA,CAACZ,IAAI,CAACe,MAAM;IAACC,IAAI,EAAE;EAAG,gBAClBnB,KAAA,CAAAe,aAAA,iBAAQ,mBAAyB,CACxB,CAAC,EACbN,KAAK,CAACW,KAAK,CAACC,GAAG,CAACT,IAAI,IAAI;IACrB,oBACIZ,KAAA,CAAAe,aAAA,CAACd,QAAQ;MAACqB,GAAG,EAAE,QAAQV,IAAI,CAACE,EAAE;IAAG,gBAC7Bd,KAAA,CAAAe,aAAA,CAACZ,IAAI,CAACe,MAAM;MAACC,IAAI,EAAE;IAAE,gBACjBnB,KAAA,CAAAe,aAAA,CAACX,GAAG;MACAmB,WAAW,EAAEX,IAAI,CAACY,KAAM;MACxBC,OAAO,EAAEb,IAAI,CAACc,KAAM;MACpBC,OAAO,EAAE;IAAgB,CAC5B,CACQ,CAAC,eACd3B,KAAA,CAAAe,aAAA,CAACZ,IAAI,CAACe,MAAM;MAACC,IAAI,EAAE;IAAE,gBACjBnB,KAAA,CAAAe,aAAA,CAACT,QAAQ;MAACG,KAAK,EAAEG,IAAI,CAACH;IAAM,CAAE,CACrB,CAAC,eACdT,KAAA,CAAAe,aAAA,CAACZ,IAAI,CAACe,MAAM;MAACC,IAAI,EAAE;IAAE,gBACjBnB,KAAA,CAAAe,aAAA,CAACV,kCAAkC;MAC/BuB,WAAW,EAAEjB,iBAAiB,CAACC,IAAI,CAAE;MACrCA,IAAI,EAAEA;IAAK,CACd,CACQ,CACP,CAAC;EAEnB,CAAC,CACH,CACA,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStateStep } from "../../../types.js";
|
|
3
|
+
interface IWorkflowStateTooltipContentCommentProps {
|
|
4
|
+
showComment: () => void;
|
|
5
|
+
step: IWorkflowStateStep;
|
|
6
|
+
}
|
|
7
|
+
export declare const WorkflowStateTooltipContentComment: ((props: IWorkflowStateTooltipContentCommentProps) => React.JSX.Element | null) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactComponent as CommentIcon } from "@webiny/icons/comment.svg";
|
|
3
|
+
import { Icon, Tag } from "@webiny/admin-ui";
|
|
4
|
+
import { observer } from "mobx-react-lite";
|
|
5
|
+
export const WorkflowStateTooltipContentComment = observer(props => {
|
|
6
|
+
const {
|
|
7
|
+
step,
|
|
8
|
+
showComment
|
|
9
|
+
} = props;
|
|
10
|
+
if (!step.comment) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
14
|
+
onClick: showComment,
|
|
15
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
16
|
+
size: "xs",
|
|
17
|
+
icon: /*#__PURE__*/React.createElement(CommentIcon, null),
|
|
18
|
+
label: "Comments",
|
|
19
|
+
color: "neutral-strong"
|
|
20
|
+
}),
|
|
21
|
+
content: /*#__PURE__*/React.createElement(React.Fragment, null, "Comments"),
|
|
22
|
+
variant: "neutral-light"
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=WorkflowStateTooltipContentComment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ReactComponent","CommentIcon","Icon","Tag","observer","WorkflowStateTooltipContentComment","props","step","showComment","comment","createElement","onClick","icon","size","label","color","content","Fragment","variant"],"sources":["WorkflowStateTooltipContentComment.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as CommentIcon } from \"@webiny/icons/comment.svg\";\nimport { Icon, Tag } from \"@webiny/admin-ui\";\nimport type { IWorkflowStateStep } from \"~/types.js\";\nimport { observer } from \"mobx-react-lite\";\n\ninterface IWorkflowStateTooltipContentCommentProps {\n showComment: () => void;\n step: IWorkflowStateStep;\n}\n\nexport const WorkflowStateTooltipContentComment = observer(\n (props: IWorkflowStateTooltipContentCommentProps) => {\n const { step, showComment } = props;\n if (!step.comment) {\n return null;\n }\n return (\n <Tag\n onClick={showComment}\n icon={\n <Icon\n size={\"xs\"}\n icon={<CommentIcon />}\n label={\"Comments\"}\n color={\"neutral-strong\"}\n />\n }\n content={<>Comments</>}\n variant={\"neutral-light\"}\n />\n );\n }\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,WAAW,QAAQ,2BAA2B;AACzE,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,SAASC,QAAQ,QAAQ,iBAAiB;AAO1C,OAAO,MAAMC,kCAAkC,GAAGD,QAAQ,CACrDE,KAA+C,IAAK;EACjD,MAAM;IAAEC,IAAI;IAAEC;EAAY,CAAC,GAAGF,KAAK;EACnC,IAAI,CAACC,IAAI,CAACE,OAAO,EAAE;IACf,OAAO,IAAI;EACf;EACA,oBACIV,KAAA,CAAAW,aAAA,CAACP,GAAG;IACAQ,OAAO,EAAEH,WAAY;IACrBI,IAAI,eACAb,KAAA,CAAAW,aAAA,CAACR,IAAI;MACDW,IAAI,EAAE,IAAK;MACXD,IAAI,eAAEb,KAAA,CAAAW,aAAA,CAACT,WAAW,MAAE,CAAE;MACtBa,KAAK,EAAE,UAAW;MAClBC,KAAK,EAAE;IAAiB,CAC3B,CACJ;IACDC,OAAO,eAAEjB,KAAA,CAAAW,aAAA,CAAAX,KAAA,CAAAkB,QAAA,QAAE,UAAU,CAAE;IACvBC,OAAO,EAAE;EAAgB,CAC5B,CAAC;AAEV,CACJ,CAAC","ignoreList":[]}
|