@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,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owner of the review can cancel the review request.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Alert } from "@webiny/admin-ui";
|
|
6
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
7
|
+
import { observer } from "mobx-react-lite";
|
|
8
|
+
export const WorkflowStateBarCancelReview = WorkflowStateBarComponent.createDecorator(Original => {
|
|
9
|
+
return observer(function WorkflowStateBarCancelReviewDecorator(props) {
|
|
10
|
+
const {
|
|
11
|
+
presenter
|
|
12
|
+
} = props;
|
|
13
|
+
const step = presenter.vm.step;
|
|
14
|
+
if (!presenter.vm.canCancel || !step) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
16
|
+
}
|
|
17
|
+
return /*#__PURE__*/React.createElement(Alert, {
|
|
18
|
+
icon: null,
|
|
19
|
+
swatchColor: step.color,
|
|
20
|
+
actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert.Action, {
|
|
21
|
+
text: "Cancel Review Request",
|
|
22
|
+
onClick: presenter.showCancelReviewDialog
|
|
23
|
+
}))
|
|
24
|
+
}, "This entry is now under review. You can cancel the review request.");
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=WorkflowStateBarCancelReview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Alert","WorkflowStateBarComponent","observer","WorkflowStateBarCancelReview","createDecorator","Original","WorkflowStateBarCancelReviewDecorator","props","presenter","step","vm","canCancel","createElement","icon","swatchColor","color","actions","Fragment","Action","text","onClick","showCancelReviewDialog"],"sources":["WorkflowStateBarCancelReview.tsx"],"sourcesContent":["/**\n * Owner of the review can cancel the review request.\n */\nimport React from \"react\";\nimport { Alert } from \"@webiny/admin-ui\";\nimport { WorkflowStateBarComponent } from \"../WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\n\nexport const WorkflowStateBarCancelReview = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarCancelReviewDecorator(props) {\n const { presenter } = props;\n\n const step = presenter.vm.step;\n if (!presenter.vm.canCancel || !step) {\n return <Original {...props} />;\n }\n\n return (\n <Alert\n icon={null}\n swatchColor={step.color}\n actions={\n <>\n <Alert.Action\n text={\"Cancel Review Request\"}\n onClick={presenter.showCancelReviewDialog}\n />\n </>\n }\n >\n This entry is now under review. You can cancel the review request.\n </Alert>\n );\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAE1C,OAAO,MAAMC,4BAA4B,GAAGF,yBAAyB,CAACG,eAAe,CAACC,QAAQ,IAAI;EAC9F,OAAOH,QAAQ,CAAC,SAASI,qCAAqCA,CAACC,KAAK,EAAE;IAClE,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,MAAME,IAAI,GAAGD,SAAS,CAACE,EAAE,CAACD,IAAI;IAC9B,IAAI,CAACD,SAAS,CAACE,EAAE,CAACC,SAAS,IAAI,CAACF,IAAI,EAAE;MAClC,oBAAOV,KAAA,CAAAa,aAAA,CAACP,QAAQ,EAAKE,KAAQ,CAAC;IAClC;IAEA,oBACIR,KAAA,CAAAa,aAAA,CAACZ,KAAK;MACFa,IAAI,EAAE,IAAK;MACXC,WAAW,EAAEL,IAAI,CAACM,KAAM;MACxBC,OAAO,eACHjB,KAAA,CAAAa,aAAA,CAAAb,KAAA,CAAAkB,QAAA,qBACIlB,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACkB,MAAM;QACTC,IAAI,EAAE,uBAAwB;QAC9BC,OAAO,EAAEZ,SAAS,CAACa;MAAuB,CAC7C,CACH;IACL,GACJ,oEAEM,CAAC;EAEhB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Any error the GraphQL API returns related to workflow states.
|
|
3
|
+
* The are some specific error codes that the UI can handle accordingly.
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Alert } from "@webiny/admin-ui";
|
|
7
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
8
|
+
import { observer } from "mobx-react-lite";
|
|
9
|
+
const shouldRenderOriginal = error => {
|
|
10
|
+
if (!error?.code) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
return ["WORKFLOW_STATE_NOT_FOUND"].includes(error.code);
|
|
14
|
+
};
|
|
15
|
+
export const WorkflowStateBarError = WorkflowStateBarComponent.createDecorator(Original => {
|
|
16
|
+
return observer(function WorkflowStateBarErrorDecorator(props) {
|
|
17
|
+
const {
|
|
18
|
+
presenter
|
|
19
|
+
} = props;
|
|
20
|
+
if (shouldRenderOriginal(presenter.vm.error)) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
22
|
+
}
|
|
23
|
+
return /*#__PURE__*/React.createElement(Alert, {
|
|
24
|
+
type: "danger"
|
|
25
|
+
}, presenter.vm.error?.message, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), "For more information, please check the browser console.");
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=WorkflowStateBarError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Alert","WorkflowStateBarComponent","observer","shouldRenderOriginal","error","code","includes","WorkflowStateBarError","createDecorator","Original","WorkflowStateBarErrorDecorator","props","presenter","vm","createElement","type","message"],"sources":["WorkflowStateBarError.tsx"],"sourcesContent":["/**\n * Any error the GraphQL API returns related to workflow states.\n * The are some specific error codes that the UI can handle accordingly.\n */\nimport React from \"react\";\nimport { Alert } from \"@webiny/admin-ui\";\nimport { WorkflowStateBarComponent } from \"../WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\nimport { IWorkflowStateError } from \"~/Gateways/index.js\";\n\nconst shouldRenderOriginal = (error: IWorkflowStateError | null) => {\n if (!error?.code) {\n return true;\n }\n return [\"WORKFLOW_STATE_NOT_FOUND\"].includes(error.code);\n};\n\nexport const WorkflowStateBarError = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarErrorDecorator(props) {\n const { presenter } = props;\n\n if (shouldRenderOriginal(presenter.vm.error)) {\n return <Original {...props} />;\n }\n\n return (\n <Alert type=\"danger\">\n {presenter.vm.error?.message}\n <br />\n <br />\n For more information, please check the browser console.\n </Alert>\n );\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAG1C,MAAMC,oBAAoB,GAAIC,KAAiC,IAAK;EAChE,IAAI,CAACA,KAAK,EAAEC,IAAI,EAAE;IACd,OAAO,IAAI;EACf;EACA,OAAO,CAAC,0BAA0B,CAAC,CAACC,QAAQ,CAACF,KAAK,CAACC,IAAI,CAAC;AAC5D,CAAC;AAED,OAAO,MAAME,qBAAqB,GAAGN,yBAAyB,CAACO,eAAe,CAACC,QAAQ,IAAI;EACvF,OAAOP,QAAQ,CAAC,SAASQ,8BAA8BA,CAACC,KAAK,EAAE;IAC3D,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,IAAIR,oBAAoB,CAACS,SAAS,CAACC,EAAE,CAACT,KAAK,CAAC,EAAE;MAC1C,oBAAOL,KAAA,CAAAe,aAAA,CAACL,QAAQ,EAAKE,KAAQ,CAAC;IAClC;IAEA,oBACIZ,KAAA,CAAAe,aAAA,CAACd,KAAK;MAACe,IAAI,EAAC;IAAQ,GACfH,SAAS,CAACC,EAAE,CAACT,KAAK,EAAEY,OAAO,eAC5BjB,KAAA,CAAAe,aAAA,WAAK,CAAC,eACNf,KAAA,CAAAe,aAAA,WAAK,CAAC,2DAEH,CAAC;EAEhB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Any loading related to workflow states.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Alert, Loader } from "@webiny/admin-ui";
|
|
6
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
7
|
+
import { observer } from "mobx-react-lite";
|
|
8
|
+
export const WorkflowStateBarLoading = WorkflowStateBarComponent.createDecorator(Original => {
|
|
9
|
+
return observer(function WorkflowStateBarLoadingDecorator(props) {
|
|
10
|
+
const {
|
|
11
|
+
presenter
|
|
12
|
+
} = props;
|
|
13
|
+
if (!presenter.vm.loading) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
15
|
+
}
|
|
16
|
+
return /*#__PURE__*/React.createElement(Alert, null, /*#__PURE__*/React.createElement(Loader, {
|
|
17
|
+
size: "sm",
|
|
18
|
+
variant: "accent",
|
|
19
|
+
indeterminate: true
|
|
20
|
+
}));
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=WorkflowStateBarLoading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Alert","Loader","WorkflowStateBarComponent","observer","WorkflowStateBarLoading","createDecorator","Original","WorkflowStateBarLoadingDecorator","props","presenter","vm","loading","createElement","size","variant","indeterminate"],"sources":["WorkflowStateBarLoading.tsx"],"sourcesContent":["/**\n * Any loading related to workflow states.\n */\nimport React from \"react\";\nimport { Alert, Loader } from \"@webiny/admin-ui\";\nimport { WorkflowStateBarComponent } from \"../WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\n\nexport const WorkflowStateBarLoading = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarLoadingDecorator(props) {\n const { presenter } = props;\n\n if (!presenter.vm.loading) {\n return <Original {...props} />;\n }\n return (\n <Alert>\n <Loader size=\"sm\" variant=\"accent\" indeterminate={true} />\n </Alert>\n );\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,MAAM,QAAQ,kBAAkB;AAChD,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAE1C,OAAO,MAAMC,uBAAuB,GAAGF,yBAAyB,CAACG,eAAe,CAACC,QAAQ,IAAI;EACzF,OAAOH,QAAQ,CAAC,SAASI,gCAAgCA,CAACC,KAAK,EAAE;IAC7D,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,IAAI,CAACC,SAAS,CAACC,EAAE,CAACC,OAAO,EAAE;MACvB,oBAAOZ,KAAA,CAAAa,aAAA,CAACN,QAAQ,EAAKE,KAAQ,CAAC;IAClC;IACA,oBACIT,KAAA,CAAAa,aAAA,CAACZ,KAAK,qBACFD,KAAA,CAAAa,aAAA,CAACX,MAAM;MAACY,IAAI,EAAC,IAAI;MAACC,OAAO,EAAC,QAAQ;MAACC,aAAa,EAAE;IAAK,CAAE,CACtD,CAAC;EAEhB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When state is approved.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Alert } from "@webiny/admin-ui";
|
|
6
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
7
|
+
import { observer } from "mobx-react-lite";
|
|
8
|
+
export const WorkflowStateBarRejected = WorkflowStateBarComponent.createDecorator(Original => {
|
|
9
|
+
return observer(function WorkflowStateBarRejectedDecorator(props) {
|
|
10
|
+
const {
|
|
11
|
+
presenter
|
|
12
|
+
} = props;
|
|
13
|
+
const step = presenter.vm.lastRejectedStep;
|
|
14
|
+
if (!step) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
16
|
+
}
|
|
17
|
+
return /*#__PURE__*/React.createElement(Alert, {
|
|
18
|
+
icon: null,
|
|
19
|
+
swatchColor: step.color,
|
|
20
|
+
actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert.Action, {
|
|
21
|
+
className: "mr-sm",
|
|
22
|
+
text: "View Comment",
|
|
23
|
+
onClick: () => {
|
|
24
|
+
presenter.showCommentDialog(step.id);
|
|
25
|
+
}
|
|
26
|
+
}), /*#__PURE__*/React.createElement(Alert.Action, {
|
|
27
|
+
text: "Remove Review Request",
|
|
28
|
+
onClick: presenter.cancel
|
|
29
|
+
})),
|
|
30
|
+
type: "warning"
|
|
31
|
+
}, "This entry was rejected.");
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=WorkflowStateBarRejected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Alert","WorkflowStateBarComponent","observer","WorkflowStateBarRejected","createDecorator","Original","WorkflowStateBarRejectedDecorator","props","presenter","step","vm","lastRejectedStep","createElement","icon","swatchColor","color","actions","Fragment","Action","className","text","onClick","showCommentDialog","id","cancel","type"],"sources":["WorkflowStateBarRejected.tsx"],"sourcesContent":["/**\n * When state is approved.\n */\nimport React from \"react\";\nimport { Alert } from \"@webiny/admin-ui\";\nimport { WorkflowStateBarComponent } from \"../WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\n\nexport const WorkflowStateBarRejected = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarRejectedDecorator(props) {\n const { presenter } = props;\n\n const step = presenter.vm.lastRejectedStep;\n\n if (!step) {\n return <Original {...props} />;\n }\n\n return (\n <Alert\n icon={null}\n swatchColor={step.color}\n actions={\n <>\n <Alert.Action\n className={\"mr-sm\"}\n text={\"View Comment\"}\n onClick={() => {\n presenter.showCommentDialog(step.id);\n }}\n />\n <Alert.Action text={\"Remove Review Request\"} onClick={presenter.cancel} />\n </>\n }\n type=\"warning\"\n >\n This entry was rejected.\n </Alert>\n );\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAE1C,OAAO,MAAMC,wBAAwB,GAAGF,yBAAyB,CAACG,eAAe,CAACC,QAAQ,IAAI;EAC1F,OAAOH,QAAQ,CAAC,SAASI,iCAAiCA,CAACC,KAAK,EAAE;IAC9D,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,MAAME,IAAI,GAAGD,SAAS,CAACE,EAAE,CAACC,gBAAgB;IAE1C,IAAI,CAACF,IAAI,EAAE;MACP,oBAAOV,KAAA,CAAAa,aAAA,CAACP,QAAQ,EAAKE,KAAQ,CAAC;IAClC;IAEA,oBACIR,KAAA,CAAAa,aAAA,CAACZ,KAAK;MACFa,IAAI,EAAE,IAAK;MACXC,WAAW,EAAEL,IAAI,CAACM,KAAM;MACxBC,OAAO,eACHjB,KAAA,CAAAa,aAAA,CAAAb,KAAA,CAAAkB,QAAA,qBACIlB,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACkB,MAAM;QACTC,SAAS,EAAE,OAAQ;QACnBC,IAAI,EAAE,cAAe;QACrBC,OAAO,EAAEA,CAAA,KAAM;UACXb,SAAS,CAACc,iBAAiB,CAACb,IAAI,CAACc,EAAE,CAAC;QACxC;MAAE,CACL,CAAC,eACFxB,KAAA,CAAAa,aAAA,CAACZ,KAAK,CAACkB,MAAM;QAACE,IAAI,EAAE,uBAAwB;QAACC,OAAO,EAAEb,SAAS,CAACgB;MAAO,CAAE,CAC3E,CACL;MACDC,IAAI,EAAC;IAAS,GACjB,0BAEM,CAAC;EAEhB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Anybody can request a review of an entry if they have write access.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Alert } from "@webiny/admin-ui";
|
|
6
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
7
|
+
import { observer } from "mobx-react-lite";
|
|
8
|
+
export const WorkflowStateBarRequestReview = WorkflowStateBarComponent.createDecorator(Original => {
|
|
9
|
+
return observer(function WorkflowStateBarRequestReviewDecorator(props) {
|
|
10
|
+
const {
|
|
11
|
+
presenter
|
|
12
|
+
} = props;
|
|
13
|
+
if (presenter.vm.state) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
15
|
+
}
|
|
16
|
+
return /*#__PURE__*/React.createElement(Alert, {
|
|
17
|
+
icon: null,
|
|
18
|
+
actions: /*#__PURE__*/React.createElement(Alert.Action, {
|
|
19
|
+
text: "Request Review",
|
|
20
|
+
onClick: presenter.showRequestReviewDialog
|
|
21
|
+
})
|
|
22
|
+
}, "This item is not under review. You can request review.");
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=WorkflowStateBarRequestReview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Alert","WorkflowStateBarComponent","observer","WorkflowStateBarRequestReview","createDecorator","Original","WorkflowStateBarRequestReviewDecorator","props","presenter","vm","state","createElement","icon","actions","Action","text","onClick","showRequestReviewDialog"],"sources":["WorkflowStateBarRequestReview.tsx"],"sourcesContent":["/**\n * Anybody can request a review of an entry if they have write access.\n */\nimport React from \"react\";\nimport { Alert } from \"@webiny/admin-ui\";\nimport { WorkflowStateBarComponent } from \"../WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\n\nexport const WorkflowStateBarRequestReview = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarRequestReviewDecorator(props) {\n const { presenter } = props;\n\n if (presenter.vm.state) {\n return <Original {...props} />;\n }\n return (\n <Alert\n icon={null}\n actions={\n <Alert.Action\n text={\"Request Review\"}\n onClick={presenter.showRequestReviewDialog}\n />\n }\n >\n This item is not under review. You can request review.\n </Alert>\n );\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAE1C,OAAO,MAAMC,6BAA6B,GAAGF,yBAAyB,CAACG,eAAe,CAACC,QAAQ,IAAI;EAC/F,OAAOH,QAAQ,CAAC,SAASI,sCAAsCA,CAACC,KAAK,EAAE;IACnE,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,IAAIC,SAAS,CAACC,EAAE,CAACC,KAAK,EAAE;MACpB,oBAAOX,KAAA,CAAAY,aAAA,CAACN,QAAQ,EAAKE,KAAQ,CAAC;IAClC;IACA,oBACIR,KAAA,CAAAY,aAAA,CAACX,KAAK;MACFY,IAAI,EAAE,IAAK;MACXC,OAAO,eACHd,KAAA,CAAAY,aAAA,CAACX,KAAK,CAACc,MAAM;QACTC,IAAI,EAAE,gBAAiB;QACvBC,OAAO,EAAER,SAAS,CAACS;MAAwB,CAC9C;IACJ,GACJ,wDAEM,CAAC;EAEhB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User can approve or reject the item in review.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Alert } from "@webiny/admin-ui";
|
|
6
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
7
|
+
import { observer } from "mobx-react-lite";
|
|
8
|
+
import { WorkflowStateValue } from "../../../../types.js";
|
|
9
|
+
export const WorkflowStateBarReview = WorkflowStateBarComponent.createDecorator(Original => {
|
|
10
|
+
return observer(function WorkflowStateBarReviewDecorator(props) {
|
|
11
|
+
const {
|
|
12
|
+
presenter
|
|
13
|
+
} = props;
|
|
14
|
+
const {
|
|
15
|
+
step
|
|
16
|
+
} = presenter.vm;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* If current user cannot review the step, continue.
|
|
20
|
+
*/
|
|
21
|
+
if (!step?.canReview || step.state !== WorkflowStateValue.inReview) {
|
|
22
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Current user can review and is not an owner of the review step - can take over the review.
|
|
26
|
+
*/
|
|
27
|
+
//
|
|
28
|
+
else if (!step.isOwner) {
|
|
29
|
+
const displayName = step.savedBy?.displayName || "unknown: " + step.savedBy?.id || "N/A";
|
|
30
|
+
return /*#__PURE__*/React.createElement(Alert, {
|
|
31
|
+
swatchColor: step.color,
|
|
32
|
+
actions: /*#__PURE__*/React.createElement(Alert.Action, {
|
|
33
|
+
text: "Take Over",
|
|
34
|
+
onClick: presenter.showTakeOverDialog,
|
|
35
|
+
className: "ml-sm"
|
|
36
|
+
})
|
|
37
|
+
}, "This item is currently under ", /*#__PURE__*/React.createElement("strong", null, step.title), " review, but you are not the owner of the review. Owner is ", displayName, ". You can take it over if you want to.");
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Current user is reviewing and can approve or reject.
|
|
41
|
+
*/
|
|
42
|
+
return /*#__PURE__*/React.createElement(Alert, {
|
|
43
|
+
swatchColor: step.color,
|
|
44
|
+
icon: null,
|
|
45
|
+
actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert.Action, {
|
|
46
|
+
text: "Approve",
|
|
47
|
+
onClick: presenter.showApproveDialog
|
|
48
|
+
}), /*#__PURE__*/React.createElement(Alert.Action, {
|
|
49
|
+
text: "Reject",
|
|
50
|
+
onClick: presenter.showRejectDialog,
|
|
51
|
+
className: "ml-sm"
|
|
52
|
+
}))
|
|
53
|
+
}, "This item is currently under ", /*#__PURE__*/React.createElement("strong", null, step.title), " review.");
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=WorkflowStateBarReview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Alert","WorkflowStateBarComponent","observer","WorkflowStateValue","WorkflowStateBarReview","createDecorator","Original","WorkflowStateBarReviewDecorator","props","presenter","step","vm","canReview","state","inReview","createElement","isOwner","displayName","savedBy","id","swatchColor","color","actions","Action","text","onClick","showTakeOverDialog","className","title","icon","Fragment","showApproveDialog","showRejectDialog"],"sources":["WorkflowStateBarReview.tsx"],"sourcesContent":["/**\n * User can approve or reject the item in review.\n */\nimport React from \"react\";\nimport { Alert } from \"@webiny/admin-ui\";\nimport { WorkflowStateBarComponent } from \"../WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\nimport { WorkflowStateValue } from \"~/types.js\";\n\nexport const WorkflowStateBarReview = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarReviewDecorator(props) {\n const { presenter } = props;\n\n const { step } = presenter.vm;\n\n /**\n * If current user cannot review the step, continue.\n */\n if (!step?.canReview || step.state !== WorkflowStateValue.inReview) {\n return <Original {...props} />;\n }\n /**\n * Current user can review and is not an owner of the review step - can take over the review.\n */\n //\n else if (!step.isOwner) {\n const displayName =\n step.savedBy?.displayName || \"unknown: \" + step.savedBy?.id || \"N/A\";\n return (\n <Alert\n swatchColor={step.color}\n actions={\n <Alert.Action\n text={\"Take Over\"}\n onClick={presenter.showTakeOverDialog}\n className={\"ml-sm\"}\n />\n }\n >\n This item is currently under <strong>{step.title}</strong> review, but you are\n not the owner of the review. Owner is {displayName}. You can take it over if you\n want to.\n </Alert>\n );\n }\n /**\n * Current user is reviewing and can approve or reject.\n */\n return (\n <Alert\n swatchColor={step.color}\n icon={null}\n actions={\n <>\n <Alert.Action text={\"Approve\"} onClick={presenter.showApproveDialog} />\n <Alert.Action\n text={\"Reject\"}\n onClick={presenter.showRejectDialog}\n className={\"ml-sm\"}\n />\n </>\n }\n >\n This item is currently under <strong>{step.title}</strong> review.\n </Alert>\n );\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,kBAAkB;AAE3B,OAAO,MAAMC,sBAAsB,GAAGH,yBAAyB,CAACI,eAAe,CAACC,QAAQ,IAAI;EACxF,OAAOJ,QAAQ,CAAC,SAASK,+BAA+BA,CAACC,KAAK,EAAE;IAC5D,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,MAAM;MAAEE;IAAK,CAAC,GAAGD,SAAS,CAACE,EAAE;;IAE7B;AACR;AACA;IACQ,IAAI,CAACD,IAAI,EAAEE,SAAS,IAAIF,IAAI,CAACG,KAAK,KAAKV,kBAAkB,CAACW,QAAQ,EAAE;MAChE,oBAAOf,KAAA,CAAAgB,aAAA,CAACT,QAAQ,EAAKE,KAAQ,CAAC;IAClC;IACA;AACR;AACA;IACQ;IAAA,KACK,IAAI,CAACE,IAAI,CAACM,OAAO,EAAE;MACpB,MAAMC,WAAW,GACbP,IAAI,CAACQ,OAAO,EAAED,WAAW,IAAI,WAAW,GAAGP,IAAI,CAACQ,OAAO,EAAEC,EAAE,IAAI,KAAK;MACxE,oBACIpB,KAAA,CAAAgB,aAAA,CAACf,KAAK;QACFoB,WAAW,EAAEV,IAAI,CAACW,KAAM;QACxBC,OAAO,eACHvB,KAAA,CAAAgB,aAAA,CAACf,KAAK,CAACuB,MAAM;UACTC,IAAI,EAAE,WAAY;UAClBC,OAAO,EAAEhB,SAAS,CAACiB,kBAAmB;UACtCC,SAAS,EAAE;QAAQ,CACtB;MACJ,GACJ,+BACgC,eAAA5B,KAAA,CAAAgB,aAAA,iBAASL,IAAI,CAACkB,KAAc,CAAC,+DACpB,EAACX,WAAW,EAAC,wCAEhD,CAAC;IAEhB;IACA;AACR;AACA;IACQ,oBACIlB,KAAA,CAAAgB,aAAA,CAACf,KAAK;MACFoB,WAAW,EAAEV,IAAI,CAACW,KAAM;MACxBQ,IAAI,EAAE,IAAK;MACXP,OAAO,eACHvB,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAA+B,QAAA,qBACI/B,KAAA,CAAAgB,aAAA,CAACf,KAAK,CAACuB,MAAM;QAACC,IAAI,EAAE,SAAU;QAACC,OAAO,EAAEhB,SAAS,CAACsB;MAAkB,CAAE,CAAC,eACvEhC,KAAA,CAAAgB,aAAA,CAACf,KAAK,CAACuB,MAAM;QACTC,IAAI,EAAE,QAAS;QACfC,OAAO,EAAEhB,SAAS,CAACuB,gBAAiB;QACpCL,SAAS,EAAE;MAAQ,CACtB,CACH;IACL,GACJ,+BACgC,eAAA5B,KAAA,CAAAgB,aAAA,iBAASL,IAAI,CAACkB,KAAc,CAAC,YACvD,CAAC;EAEhB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
3
|
+
import { observer } from "mobx-react-lite";
|
|
4
|
+
import { Alert } from "@webiny/admin-ui";
|
|
5
|
+
import { WorkflowStateValue } from "../../../../types.js";
|
|
6
|
+
export const WorkflowStateBarStartReview = WorkflowStateBarComponent.createDecorator(Original => {
|
|
7
|
+
return observer(function WorkflowStateBarStartReviewDecorator(props) {
|
|
8
|
+
const {
|
|
9
|
+
presenter
|
|
10
|
+
} = props;
|
|
11
|
+
const {
|
|
12
|
+
step
|
|
13
|
+
} = presenter.vm;
|
|
14
|
+
if (!step || step.state !== WorkflowStateValue.pending) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
16
|
+
} else if (!step.canReview) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert, {
|
|
18
|
+
swatchColor: step.color
|
|
19
|
+
}, "This item is currently under ", /*#__PURE__*/React.createElement("strong", null, step.title), " review, but you are not in the team assigned to review it."));
|
|
20
|
+
}
|
|
21
|
+
return /*#__PURE__*/React.createElement(Alert, {
|
|
22
|
+
swatchColor: step.color,
|
|
23
|
+
actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert.Action, {
|
|
24
|
+
text: "Start Review",
|
|
25
|
+
onClick: presenter.start
|
|
26
|
+
}))
|
|
27
|
+
}, "You can start the review for ", /*#__PURE__*/React.createElement("strong", null, step.title), ".");
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=WorkflowStateBarStartReview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","WorkflowStateBarComponent","observer","Alert","WorkflowStateValue","WorkflowStateBarStartReview","createDecorator","Original","WorkflowStateBarStartReviewDecorator","props","presenter","step","vm","state","pending","createElement","canReview","Fragment","swatchColor","color","title","actions","Action","text","onClick","start"],"sources":["WorkflowStateBarStartReview.tsx"],"sourcesContent":["import React from \"react\";\nimport { WorkflowStateBarComponent } from \"~/Components/WorkflowState/Bar/WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\nimport { Alert } from \"@webiny/admin-ui\";\nimport { WorkflowStateValue } from \"~/types.js\";\n\nexport const WorkflowStateBarStartReview = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarStartReviewDecorator(props) {\n const { presenter } = props;\n\n const { step } = presenter.vm;\n if (!step || step.state !== WorkflowStateValue.pending) {\n return <Original {...props} />;\n } else if (!step.canReview) {\n return (\n <>\n <Alert swatchColor={step.color}>\n This item is currently under <strong>{step.title}</strong> review, but you\n are not in the team assigned to review it.\n </Alert>\n </>\n );\n }\n\n return (\n <Alert\n swatchColor={step.color}\n actions={\n <>\n <Alert.Action text={\"Start Review\"} onClick={presenter.start} />\n </>\n }\n >\n You can start the review for <strong>{step.title}</strong>.\n </Alert>\n );\n });\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,kBAAkB;AAE3B,OAAO,MAAMC,2BAA2B,GAAGJ,yBAAyB,CAACK,eAAe,CAACC,QAAQ,IAAI;EAC7F,OAAOL,QAAQ,CAAC,SAASM,oCAAoCA,CAACC,KAAK,EAAE;IACjE,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,MAAM;MAAEE;IAAK,CAAC,GAAGD,SAAS,CAACE,EAAE;IAC7B,IAAI,CAACD,IAAI,IAAIA,IAAI,CAACE,KAAK,KAAKT,kBAAkB,CAACU,OAAO,EAAE;MACpD,oBAAOd,KAAA,CAAAe,aAAA,CAACR,QAAQ,EAAKE,KAAQ,CAAC;IAClC,CAAC,MAAM,IAAI,CAACE,IAAI,CAACK,SAAS,EAAE;MACxB,oBACIhB,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAiB,QAAA,qBACIjB,KAAA,CAAAe,aAAA,CAACZ,KAAK;QAACe,WAAW,EAAEP,IAAI,CAACQ;MAAM,GAAC,+BACC,eAAAnB,KAAA,CAAAe,aAAA,iBAASJ,IAAI,CAACS,KAAc,CAAC,+DAEvD,CACT,CAAC;IAEX;IAEA,oBACIpB,KAAA,CAAAe,aAAA,CAACZ,KAAK;MACFe,WAAW,EAAEP,IAAI,CAACQ,KAAM;MACxBE,OAAO,eACHrB,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAiB,QAAA,qBACIjB,KAAA,CAAAe,aAAA,CAACZ,KAAK,CAACmB,MAAM;QAACC,IAAI,EAAE,cAAe;QAACC,OAAO,EAAEd,SAAS,CAACe;MAAM,CAAE,CACjE;IACL,GACJ,+BACgC,eAAAzB,KAAA,CAAAe,aAAA,iBAASJ,IAAI,CAACS,KAAc,CAAC,KACvD,CAAC;EAEhB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When no workflow, we do not show the workflow state bar or do anything after this decorator.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { WorkflowStateBarComponent } from "../WorkflowStateBarComponent.js";
|
|
6
|
+
import { observer } from "mobx-react-lite";
|
|
7
|
+
export const WorkflowStateBarWorkflow = WorkflowStateBarComponent.createDecorator(Original => {
|
|
8
|
+
return observer(function WorkflowStateBarWorkflowDecorator(props) {
|
|
9
|
+
const {
|
|
10
|
+
presenter
|
|
11
|
+
} = props;
|
|
12
|
+
if (!presenter.vm.workflow) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
return /*#__PURE__*/React.createElement(Original, props);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=WorkflowStateBarWorkflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","WorkflowStateBarComponent","observer","WorkflowStateBarWorkflow","createDecorator","Original","WorkflowStateBarWorkflowDecorator","props","presenter","vm","workflow","createElement"],"sources":["WorkflowStateBarWorkflow.tsx"],"sourcesContent":["/**\n * When no workflow, we do not show the workflow state bar or do anything after this decorator.\n */\nimport React from \"react\";\nimport { WorkflowStateBarComponent } from \"../WorkflowStateBarComponent.js\";\nimport { observer } from \"mobx-react-lite\";\n\nexport const WorkflowStateBarWorkflow = WorkflowStateBarComponent.createDecorator(Original => {\n return observer(function WorkflowStateBarWorkflowDecorator(props) {\n const { presenter } = props;\n\n if (!presenter.vm.workflow) {\n return null;\n }\n return <Original {...props} />;\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,yBAAyB;AAClC,SAASC,QAAQ,QAAQ,iBAAiB;AAE1C,OAAO,MAAMC,wBAAwB,GAAGF,yBAAyB,CAACG,eAAe,CAACC,QAAQ,IAAI;EAC1F,OAAOH,QAAQ,CAAC,SAASI,iCAAiCA,CAACC,KAAK,EAAE;IAC9D,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK;IAE3B,IAAI,CAACC,SAAS,CAACC,EAAE,CAACC,QAAQ,EAAE;MACxB,OAAO,IAAI;IACf;IACA,oBAAOV,KAAA,CAAAW,aAAA,CAACN,QAAQ,EAAKE,KAAQ,CAAC;EAClC,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface IApproveDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const ApproveDialog: (props: IApproveDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ApproveDialog as BaseApproveDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const ApproveDialog = 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(BaseApproveDialog, {
|
|
12
|
+
onApprove: presenter.approve,
|
|
13
|
+
hide: presenter.hideDialog,
|
|
14
|
+
loading: presenter.vm.loading,
|
|
15
|
+
title: step.title
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=ApproveDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ApproveDialog","BaseApproveDialog","props","presenter","step","vm","createElement","onApprove","approve","hide","hideDialog","loading","title"],"sources":["ApproveDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { ApproveDialog as BaseApproveDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface IApproveDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const ApproveDialog = (props: IApproveDialogProps) => {\n const { presenter } = props;\n const step = presenter.vm.step;\n if (!step) {\n return null;\n }\n\n return (\n <BaseApproveDialog\n onApprove={presenter.approve}\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,aAAa,IAAIC,iBAAiB;AAO3C,OAAO,MAAMD,aAAa,GAAIE,KAA0B,IAAK;EACzD,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,iBAAiB;IACdM,SAAS,EAAEJ,SAAS,CAACK,OAAQ;IAC7BC,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 IApproveSuccessDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const ApproveSuccessDialog: (props: IApproveSuccessDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ApproveSuccessDialog as BaseApproveSuccessDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const ApproveSuccessDialog = 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(BaseApproveSuccessDialog, {
|
|
12
|
+
hide: presenter.hideDialog,
|
|
13
|
+
title: step.title
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=ApproveSuccessDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ApproveSuccessDialog","BaseApproveSuccessDialog","props","presenter","step","vm","createElement","hide","hideDialog","title"],"sources":["ApproveSuccessDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { ApproveSuccessDialog as BaseApproveSuccessDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface IApproveSuccessDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const ApproveSuccessDialog = (props: IApproveSuccessDialogProps) => {\n const { presenter } = props;\n\n const step = presenter.vm.step;\n\n if (!step) {\n return null;\n }\n\n return <BaseApproveSuccessDialog hide={presenter.hideDialog} title={step.title} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,oBAAoB,IAAIC,wBAAwB;AAOzD,OAAO,MAAMD,oBAAoB,GAAIE,KAAiC,IAAK;EACvE,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,wBAAwB;IAACM,IAAI,EAAEJ,SAAS,CAACK,UAAW;IAACC,KAAK,EAAEL,IAAI,CAACK;EAAM,CAAE,CAAC;AACtF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface ICancelReviewDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const CancelReviewDialog: (props: ICancelReviewDialogProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CancelReviewDialog as BaseCancelReviewDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const CancelReviewDialog = props => {
|
|
4
|
+
const {
|
|
5
|
+
presenter
|
|
6
|
+
} = props;
|
|
7
|
+
return /*#__PURE__*/React.createElement(BaseCancelReviewDialog, {
|
|
8
|
+
onCancelReview: presenter.cancel,
|
|
9
|
+
hide: presenter.hideDialog,
|
|
10
|
+
loading: presenter.vm.loading
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=CancelReviewDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","CancelReviewDialog","BaseCancelReviewDialog","props","presenter","createElement","onCancelReview","cancel","hide","hideDialog","loading","vm"],"sources":["CancelReviewDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { CancelReviewDialog as BaseCancelReviewDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface ICancelReviewDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const CancelReviewDialog = (props: ICancelReviewDialogProps) => {\n const { presenter } = props;\n\n return (\n <BaseCancelReviewDialog\n onCancelReview={presenter.cancel}\n hide={presenter.hideDialog}\n loading={presenter.vm.loading}\n />\n );\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,oBACIH,KAAA,CAAAK,aAAA,CAACH,sBAAsB;IACnBI,cAAc,EAAEF,SAAS,CAACG,MAAO;IACjCC,IAAI,EAAEJ,SAAS,CAACK,UAAW;IAC3BC,OAAO,EAAEN,SAAS,CAACO,EAAE,CAACD;EAAQ,CACjC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface ICommentDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const CommentDialog: (props: ICommentDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CommentDialog as BaseCommentDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const CommentDialog = props => {
|
|
4
|
+
const {
|
|
5
|
+
presenter
|
|
6
|
+
} = props;
|
|
7
|
+
const step = presenter.vm.dialog?.step;
|
|
8
|
+
if (!step) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return /*#__PURE__*/React.createElement(BaseCommentDialog, {
|
|
12
|
+
step: step,
|
|
13
|
+
hide: presenter.hideDialog
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=CommentDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","CommentDialog","BaseCommentDialog","props","presenter","step","vm","dialog","createElement","hide","hideDialog"],"sources":["CommentDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { CommentDialog as BaseCommentDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface ICommentDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const CommentDialog = (props: ICommentDialogProps) => {\n const { presenter } = props;\n\n const step = presenter.vm.dialog?.step;\n\n if (!step) {\n return null;\n }\n\n return <BaseCommentDialog step={step} hide={presenter.hideDialog} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,IAAIC,iBAAiB;AAO3C,OAAO,MAAMD,aAAa,GAAIE,KAA0B,IAAK;EACzD,MAAM;IAAEC;EAAU,CAAC,GAAGD,KAAK;EAE3B,MAAME,IAAI,GAAGD,SAAS,CAACE,EAAE,CAACC,MAAM,EAAEF,IAAI;EAEtC,IAAI,CAACA,IAAI,EAAE;IACP,OAAO,IAAI;EACf;EAEA,oBAAOL,KAAA,CAAAQ,aAAA,CAACN,iBAAiB;IAACG,IAAI,EAAEA,IAAK;IAACI,IAAI,EAAEL,SAAS,CAACM;EAAW,CAAE,CAAC;AACxE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface IRejectDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const RejectDialog: (props: IRejectDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RejectDialog as BaseRejectDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const RejectDialog = 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(BaseRejectDialog, {
|
|
12
|
+
onReject: presenter.reject,
|
|
13
|
+
hide: presenter.hideDialog,
|
|
14
|
+
loading: presenter.vm.loading,
|
|
15
|
+
title: step.title
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=RejectDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","RejectDialog","BaseRejectDialog","props","presenter","step","vm","createElement","onReject","reject","hide","hideDialog","loading","title"],"sources":["RejectDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { RejectDialog as BaseRejectDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface IRejectDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const RejectDialog = (props: IRejectDialogProps) => {\n const { presenter } = props;\n const step = presenter.vm.step;\n if (!step) {\n return null;\n }\n\n return (\n <BaseRejectDialog\n onReject={presenter.reject}\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,YAAY,IAAIC,gBAAgB;AAOzC,OAAO,MAAMD,YAAY,GAAIE,KAAyB,IAAK;EACvD,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,gBAAgB;IACbM,QAAQ,EAAEJ,SAAS,CAACK,MAAO;IAC3BC,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 IRejectSuccessDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const RejectSuccessDialog: (props: IRejectSuccessDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RejectSuccessDialog as BaseRejectSuccessDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const RejectSuccessDialog = 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(BaseRejectSuccessDialog, {
|
|
12
|
+
hide: presenter.hideDialog,
|
|
13
|
+
title: step.title
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=RejectSuccessDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","RejectSuccessDialog","BaseRejectSuccessDialog","props","presenter","step","vm","createElement","hide","hideDialog","title"],"sources":["RejectSuccessDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { RejectSuccessDialog as BaseRejectSuccessDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface IRejectSuccessDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const RejectSuccessDialog = (props: IRejectSuccessDialogProps) => {\n const { presenter } = props;\n\n const step = presenter.vm.step;\n\n if (!step) {\n return null;\n }\n\n return <BaseRejectSuccessDialog hide={presenter.hideDialog} title={step.title} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,IAAIC,uBAAuB;AAOvD,OAAO,MAAMD,mBAAmB,GAAIE,KAAgC,IAAK;EACrE,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,uBAAuB;IAACM,IAAI,EAAEJ,SAAS,CAACK,UAAW;IAACC,KAAK,EAAEL,IAAI,CAACK;EAAM,CAAE,CAAC;AACrF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface IRequestReviewDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const RequestReviewDialog: (props: IRequestReviewDialogProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RequestReviewDialog as BaseRequestReviewDialog } from "../../../WorkflowStateDialogs/index.js";
|
|
3
|
+
export const RequestReviewDialog = props => {
|
|
4
|
+
const {
|
|
5
|
+
presenter
|
|
6
|
+
} = props;
|
|
7
|
+
return /*#__PURE__*/React.createElement(BaseRequestReviewDialog, {
|
|
8
|
+
onRequestReview: presenter.requestReview,
|
|
9
|
+
hide: presenter.hideDialog,
|
|
10
|
+
loading: presenter.vm.loading
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=RequestReviewDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","RequestReviewDialog","BaseRequestReviewDialog","props","presenter","createElement","onRequestReview","requestReview","hide","hideDialog","loading","vm"],"sources":["RequestReviewDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { RequestReviewDialog as BaseRequestReviewDialog } from \"~/Components/WorkflowStateDialogs/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\n\ninterface IRequestReviewDialogProps {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const RequestReviewDialog = (props: IRequestReviewDialogProps) => {\n const { presenter } = props;\n\n return (\n <BaseRequestReviewDialog\n onRequestReview={presenter.requestReview}\n hide={presenter.hideDialog}\n loading={presenter.vm.loading}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,IAAIC,uBAAuB;AAOvD,OAAO,MAAMD,mBAAmB,GAAIE,KAAgC,IAAK;EACrE,MAAM;IAAEC;EAAU,CAAC,GAAGD,KAAK;EAE3B,oBACIH,KAAA,CAAAK,aAAA,CAACH,uBAAuB;IACpBI,eAAe,EAAEF,SAAS,CAACG,aAAc;IACzCC,IAAI,EAAEJ,SAAS,CAACK,UAAW;IAC3BC,OAAO,EAAEN,SAAS,CAACO,EAAE,CAACD;EAAQ,CACjC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IWorkflowStatePresenter } from "../../../../Presenters/index.js";
|
|
3
|
+
interface IStartDialogProps {
|
|
4
|
+
presenter: IWorkflowStatePresenter;
|
|
5
|
+
}
|
|
6
|
+
export declare const StartDialog: (props: IStartDialogProps) => React.JSX.Element | null;
|
|
7
|
+
export {};
|