@nocobase/plugin-workflow 2.2.0-beta.14 → 2.2.0-beta.16
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/119.e7dbd037d52d1286.js +10 -0
- package/dist/client/142.fb4936d78fc80007.js +10 -0
- package/dist/client/159.cc9a0f2d92cab2c1.js +10 -0
- package/dist/client/276.69fb2aea13bc7c37.js +10 -0
- package/dist/client/346.66d060d37843d3d1.js +10 -0
- package/dist/client/382.d37fba14a6b91b0b.js +10 -0
- package/dist/client/394.a37310b78419ad7a.js +10 -0
- package/dist/client/438.6c6409d821d8c353.js +10 -0
- package/dist/client/509.88792f5bd054b2af.js +10 -0
- package/dist/client/54.d81b710f7b4c1cd5.js +10 -0
- package/dist/client/618.1aa6c21d0f2840cb.js +10 -0
- package/dist/client/635.ff6085589e23d39b.js +10 -0
- package/dist/client/67.92c849b5dbe07c33.js +10 -0
- package/dist/client/719.f011fde3ad54571e.js +10 -0
- package/dist/client/728.711fd4f1ed7d4e6a.js +10 -0
- package/dist/client/739.49407722fca8d236.js +10 -0
- package/dist/client/759.13aab01e6912ed8d.js +10 -0
- package/dist/client/772.1ebaef11a0ac8688.js +10 -0
- package/dist/client/782.47792ce10fc0d5fb.js +10 -0
- package/dist/client/828.6880ab21513b1968.js +10 -0
- package/dist/client/87.083467b89aaf3e53.js +10 -0
- package/dist/client/938.26493fc09ba1ccbc.js +10 -0
- package/dist/client/964.5ab736effd480a42.js +10 -0
- package/dist/client/972.dd7f074d5f12e171.js +10 -0
- package/dist/client/AddNodeContext.d.ts +1 -9
- package/dist/client/BranchContext.d.ts +2 -10
- package/dist/client/FlowContext.d.ts +10 -5
- package/dist/client/NodeClipboardContext.d.ts +12 -2
- package/dist/client/NodeDragContext.d.ts +14 -2
- package/dist/client/RemoveNodeContext.d.ts +16 -2
- package/dist/client/WorkflowTasks.d.ts +26 -3
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +1 -1
- package/dist/client/nodeVariableUtils.d.ts +7 -6
- package/dist/client/nodes/calculation.d.ts +3 -75
- package/dist/client/nodes/condition.d.ts +7 -111
- package/dist/client/nodes/create.d.ts +3 -124
- package/dist/client/nodes/destroy.d.ts +2 -57
- package/dist/client/nodes/end.d.ts +2 -23
- package/dist/client/nodes/index.d.ts +2 -91
- package/dist/client/nodes/multi-conditions.d.ts +10 -48
- package/dist/client/nodes/output.d.ts +2 -44
- package/dist/client/nodes/query.d.ts +3 -255
- package/dist/client/nodes/update.d.ts +2 -117
- package/dist/client/style.d.ts +7 -27
- package/dist/client/triggers/collection.d.ts +3 -181
- package/dist/client/triggers/index.d.ts +2 -36
- package/dist/client/triggers/schedule/index.d.ts +8 -65
- package/dist/client/utils.d.ts +4 -5
- package/dist/client/variable.d.ts +7 -53
- package/dist/client-v2/119.81195bcd0d451279.js +10 -0
- package/dist/client-v2/142.a8c8df2a9abb43c5.js +10 -0
- package/dist/client-v2/159.cb221540c286cd32.js +10 -0
- package/dist/client-v2/276.7f746d899e221e2f.js +10 -0
- package/dist/client-v2/326.bdc99ad8e7590970.js +10 -0
- package/dist/client-v2/346.8c038b3c99d4fdc9.js +10 -0
- package/dist/client-v2/382.05f5482bb512b179.js +10 -0
- package/dist/client-v2/387.5e61d648d16dbf1b.js +10 -0
- package/dist/client-v2/394.515ed058e7f72797.js +10 -0
- package/dist/client-v2/438.b7df0416b66f8f64.js +10 -0
- package/dist/client-v2/513.617697f74783a611.js +10 -0
- package/dist/client-v2/54.d3daf06e53092726.js +10 -0
- package/dist/client-v2/635.14a6f21cf4f16345.js +10 -0
- package/dist/client-v2/677.7382807126d9621a.js +10 -0
- package/dist/client-v2/719.05cf070ef89a78f4.js +10 -0
- package/dist/client-v2/728.4e8322ff8fce87b9.js +10 -0
- package/dist/client-v2/739.5b60845103064f8d.js +10 -0
- package/dist/client-v2/759.7b162ad3adf450f1.js +10 -0
- package/dist/client-v2/772.8e5148d8c1518449.js +10 -0
- package/dist/client-v2/938.717e47af39485b29.js +10 -0
- package/dist/client-v2/ExecutionCanvas.d.ts +15 -0
- package/dist/client-v2/canvas/AddNodeContext.d.ts +35 -0
- package/dist/client-v2/canvas/AddNodeContext.shared.d.ts +33 -0
- package/dist/client-v2/canvas/AddNodeSlot.d.ts +20 -0
- package/dist/client-v2/canvas/Branch.d.ts +32 -0
- package/dist/client-v2/canvas/BranchContext.d.ts +29 -0
- package/dist/client-v2/canvas/BranchRenderContext.d.ts +14 -0
- package/dist/client-v2/canvas/CanvasContent.d.ts +20 -0
- package/dist/client-v2/canvas/DownstreamBranchIndex.d.ts +20 -0
- package/dist/client-v2/canvas/Instruction.d.ts +139 -0
- package/dist/{client/triggers/schedule/EndsByField.d.ts → client-v2/canvas/JobButton.d.ts} +3 -3
- package/dist/client-v2/canvas/Node.d.ts +38 -0
- package/dist/client-v2/canvas/NodeClipboardContext.d.ts +64 -0
- package/dist/client-v2/canvas/NodeConfigDrawer.d.ts +27 -0
- package/dist/client-v2/canvas/NodeDragContext.d.ts +83 -0
- package/dist/client-v2/canvas/RemoveNodeContext.d.ts +45 -0
- package/dist/client-v2/canvas/WorkflowTypedVariableInput.d.ts +16 -0
- package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +40 -0
- package/dist/client-v2/canvas/WorkflowVariableJsonTextArea.d.ts +15 -0
- package/dist/client-v2/canvas/WorkflowVariableTag.d.ts +22 -0
- package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +18 -0
- package/dist/client-v2/canvas/adaptVariableOptionToMetaTree.d.ts +48 -0
- package/dist/client-v2/canvas/addNodeController.d.ts +70 -0
- package/dist/client-v2/canvas/collectionFieldOptions.d.ts +57 -0
- package/dist/client-v2/canvas/contexts.d.ts +86 -0
- package/dist/client-v2/canvas/dropImpact.d.ts +28 -0
- package/dist/client-v2/canvas/instructionAvailability.d.ts +26 -0
- package/dist/client-v2/canvas/nodeRenderDispatch.d.ts +79 -0
- package/dist/client-v2/canvas/nodeTree.d.ts +21 -0
- package/dist/client-v2/canvas/nodeVariableUtils.d.ts +14 -0
- package/dist/client-v2/canvas/removeNodeUtils.d.ts +31 -0
- package/dist/client-v2/canvas/style.d.ts +35 -0
- package/dist/client-v2/canvas/textAreaInsertion.d.ts +14 -0
- package/dist/client-v2/canvas/useWorkflowInstruction.d.ts +23 -0
- package/dist/client-v2/canvas/useWorkflowVariableOptions.d.ts +40 -0
- package/dist/client-v2/canvas/workflowVariableConverters.d.ts +13 -0
- package/dist/client-v2/components/Calculation.d.ts +18 -0
- package/dist/client-v2/components/ExecutionStatusIcon.d.ts +18 -0
- package/dist/{client/triggers/schedule/RepeatField.d.ts → client-v2/components/ExecutionStatusTag.d.ts} +3 -4
- package/dist/client-v2/components/ExecutionViewHeader.d.ts +29 -0
- package/dist/client-v2/components/ExecutionsDropdown.d.ts +25 -0
- package/dist/client-v2/components/FilterDynamicComponent.d.ts +28 -0
- package/dist/client-v2/components/HideVariableContext.d.ts +11 -0
- package/dist/client-v2/components/JobResultModal.d.ts +11 -0
- package/dist/client-v2/components/RadioWithTooltip.d.ts +23 -0
- package/dist/client-v2/components/SyncModeSelect.d.ts +16 -0
- package/dist/{client/triggers/schedule/OnField.d.ts → client-v2/components/SyncModeTag.d.ts} +3 -3
- package/dist/client-v2/components/TestRunButton.d.ts +36 -0
- package/dist/client-v2/components/TimeoutInput.d.ts +15 -0
- package/dist/client-v2/components/WorkflowCanvasHeader.d.ts +17 -0
- package/dist/client-v2/components/WorkflowDetailsModal.d.ts +25 -0
- package/dist/client-v2/components/WorkflowEnabledSwitch.d.ts +16 -0
- package/dist/client-v2/components/WorkflowMenu.d.ts +17 -0
- package/dist/client-v2/components/WorkflowRevisionsDropdown.d.ts +15 -0
- package/dist/client-v2/components/WorkflowVariableWrapper.d.ts +25 -0
- package/dist/client-v2/components/collection/AppendsSelect.d.ts +15 -0
- package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +24 -0
- package/dist/client-v2/components/collection/CollectionCascader.d.ts +15 -0
- package/dist/client-v2/components/collection/FieldsSelect.d.ts +16 -0
- package/dist/client-v2/components/collection/PaginationFields.d.ts +14 -0
- package/dist/client-v2/components/collection/SortFieldsInput.d.ts +19 -0
- package/dist/client-v2/components/collection/TriggerCollectionRecordSelect.d.ts +15 -0
- package/dist/client-v2/components/collection/index.d.ts +16 -0
- package/dist/client-v2/components/collection/utils.d.ts +42 -0
- package/dist/client-v2/components/formatResultForDisplay.d.ts +17 -0
- package/dist/client-v2/components/jobStatus.d.ts +27 -0
- package/dist/client-v2/components/renderEngineReference.d.ts +10 -0
- package/dist/client-v2/components/workflowCanvas.d.ts +41 -0
- package/dist/client-v2/constants.d.ts +19 -0
- package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +16 -0
- package/dist/client-v2/index.d.ts +48 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +41 -0
- package/dist/{client → client-v2}/models/NodeDetailsGridModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/NodeDetailsModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/NodeValueModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/TaskCardCommonItemModel.d.ts +1 -1
- package/dist/client-v2/models/WorkflowTasksTopbarActionModel.d.ts +18 -0
- package/dist/{client → client-v2}/models/index.d.ts +2 -0
- package/dist/client-v2/models/triggerWorkflows.d.ts +43 -0
- package/dist/client-v2/nodes/calculation.d.ts +38 -0
- package/dist/client-v2/nodes/collectionNode.d.ts +29 -0
- package/dist/client-v2/nodes/components/calculation.d.ts +11 -0
- package/dist/client-v2/nodes/components/collection.d.ts +15 -0
- package/dist/client-v2/nodes/components/condition.d.ts +25 -0
- package/dist/client-v2/nodes/components/conditionShared.d.ts +20 -0
- package/dist/client-v2/nodes/components/create.d.ts +12 -0
- package/dist/client-v2/nodes/components/destroy.d.ts +12 -0
- package/dist/{client/triggers/schedule/ScheduleConfig.d.ts → client-v2/nodes/components/end.d.ts} +1 -1
- package/dist/client-v2/nodes/components/filter.d.ts +17 -0
- package/dist/client-v2/nodes/components/multi-conditions.d.ts +13 -0
- package/dist/client-v2/nodes/components/multiConditionsShared.d.ts +20 -0
- package/dist/client-v2/nodes/components/output.d.ts +10 -0
- package/dist/client-v2/nodes/components/query.d.ts +12 -0
- package/dist/client-v2/nodes/components/update.d.ts +12 -0
- package/dist/client-v2/nodes/condition.d.ts +46 -0
- package/dist/client-v2/nodes/create.d.ts +30 -0
- package/dist/client-v2/nodes/destroy.d.ts +24 -0
- package/dist/client-v2/nodes/end.d.ts +21 -0
- package/dist/client-v2/nodes/multi-conditions.d.ts +34 -0
- package/dist/client-v2/nodes/output.d.ts +29 -0
- package/dist/client-v2/nodes/query.d.ts +32 -0
- package/dist/client-v2/nodes/update.d.ts +25 -0
- package/dist/client-v2/pages/ExecutionHistoryDrawer.d.ts +13 -0
- package/dist/client-v2/pages/ExecutionViewPage.d.ts +10 -0
- package/dist/client-v2/pages/WorkflowCanvasPage.d.ts +10 -0
- package/dist/client-v2/pages/WorkflowCategoryTabs.d.ts +25 -0
- package/dist/client-v2/pages/WorkflowFormDrawer.d.ts +40 -0
- package/dist/client-v2/pages/WorkflowPane.d.ts +10 -0
- package/dist/client-v2/pages/WorkflowTasksPage.d.ts +10 -0
- package/dist/client-v2/plugin.d.ts +119 -0
- package/dist/client-v2/taskCenter.d.ts +105 -0
- package/dist/client-v2/triggers/ExecuteWorkflowButton.d.ts +35 -0
- package/dist/client-v2/triggers/TriggerConfig.d.ts +22 -0
- package/dist/client-v2/triggers/TriggerExecutionButton.d.ts +13 -0
- package/dist/client-v2/triggers/collection/CollectionConfig.d.ts +14 -0
- package/dist/client-v2/triggers/collection/TriggerCollectionConfig.d.ts +11 -0
- package/dist/client-v2/triggers/collection/constants.d.ts +28 -0
- package/dist/client-v2/triggers/collection/index.d.ts +40 -0
- package/dist/client-v2/triggers/index.d.ts +63 -0
- package/dist/client-v2/triggers/schedule/EndsByField.d.ts +17 -0
- package/dist/client-v2/triggers/schedule/OnField.d.ts +20 -0
- package/dist/client-v2/triggers/schedule/RepeatField.d.ts +23 -0
- package/dist/client-v2/triggers/schedule/ScheduleConfig.d.ts +17 -0
- package/dist/client-v2/triggers/schedule/ScheduleModes.d.ts +41 -0
- package/dist/{client → client-v2}/triggers/schedule/TriggerScheduleConfig.d.ts +1 -0
- package/dist/{client → client-v2}/triggers/schedule/constants.d.ts +8 -5
- package/dist/client-v2/triggers/schedule/index.d.ts +40 -0
- package/dist/client-v2/triggers/schedule/locale/Cron.zh-CN.d.ts +11 -0
- package/dist/client-v2/utils/contextSingleton.d.ts +9 -0
- package/dist/common/collections/userWorkflowTaskStats.d.ts +54 -0
- package/dist/common/collections/userWorkflowTaskStats.js +87 -0
- package/dist/common/collections/workflows.d.ts +16 -0
- package/dist/common/collections/workflows.js +5 -0
- package/dist/common/defaultWorkflowFilter.d.ts +21 -0
- package/dist/common/defaultWorkflowFilter.js +38 -0
- package/dist/common/executionStatus.d.ts +44 -0
- package/dist/common/executionStatus.js +133 -0
- package/dist/externalVersion.js +16 -13
- package/dist/locale/de-DE.json +14 -1
- package/dist/locale/en-US.json +29 -1
- package/dist/locale/es-ES.json +14 -1
- package/dist/locale/fr-FR.json +14 -1
- package/dist/locale/hu-HU.json +14 -1
- package/dist/locale/id-ID.json +14 -1
- package/dist/locale/it-IT.json +14 -1
- package/dist/locale/ja-JP.json +14 -1
- package/dist/locale/ko-KR.json +14 -1
- package/dist/locale/nl-NL.json +14 -1
- package/dist/locale/pt-BR.json +14 -1
- package/dist/locale/ru-RU.json +14 -1
- package/dist/locale/tr-TR.json +14 -1
- package/dist/locale/uk-UA.json +14 -1
- package/dist/locale/vi-VN.json +14 -1
- package/dist/locale/zh-CN.json +28 -1
- package/dist/locale/zh-TW.json +20 -1
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/server/Dispatcher.d.ts +24 -13
- package/dist/server/Dispatcher.js +162 -144
- package/dist/server/ExecutionTimeoutManager.js +2 -1
- package/dist/server/Plugin.d.ts +57 -11
- package/dist/server/Plugin.js +355 -15
- package/dist/server/Processor.d.ts +1 -7
- package/dist/server/Processor.js +11 -7
- package/dist/server/actions/executions.js +3 -6
- package/dist/server/actions/index.js +3 -1
- package/dist/server/actions/jobs.js +1 -2
- package/dist/server/actions/userWorkflowTaskStats.d.ts +10 -0
- package/dist/server/actions/userWorkflowTaskStats.js +112 -0
- package/dist/server/actions/workflows.d.ts +1 -0
- package/dist/server/actions/workflows.js +28 -2
- package/dist/server/collections/userWorkflowTaskStats.d.ts +11 -0
- package/dist/server/collections/userWorkflowTaskStats.js +43 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/types/Execution.d.ts +2 -0
- package/dist/server/types/Job.d.ts +5 -0
- package/dist/server/types/Workflow.d.ts +1 -0
- package/dist/server/utils.d.ts +1 -0
- package/dist/server/utils.js +5 -0
- package/dist/swagger/index.d.ts +68 -1
- package/dist/swagger/index.js +61 -1
- package/package.json +4 -2
- package/dist/client/618.c91be3f6e4d73501.js +0 -10
- package/dist/client/67.6eab22df32aca212.js +0 -10
- package/dist/client/964.5e11e1820fece37b.js +0 -10
- package/dist/client/triggers/schedule/ScheduleModes.d.ts +0 -170
- package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -42
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
"use strict";(self.webpackChunk_nocobase_plugin_workflow=self.webpackChunk_nocobase_plugin_workflow||[]).push([["964"],{2596:function(e,t,n){n.d(t,{i:function(){return x}});var r=n(2059),o=n(9155),l=n.n(o);let a=(0,o.createContext)(null),i={didCatch:!1,error:null};class c extends o.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=i}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];null==(t=(n=this.props).onReset)||t.call(n,{args:o,reason:"imperative-api"}),this.setState(i)}}componentDidCatch(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)){var o,l;null==(o=(l=this.props).onReset)||o.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(i)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:l,error:i}=this.state,c=e;if(l){let e={error:i,resetErrorBoundary:this.resetErrorBoundary};if((0,o.isValidElement)(r))c=r;else if("function"==typeof t)c=t(e);else if(n)c=(0,o.createElement)(n,e);else throw i}return(0,o.createElement)(a.Provider,{value:{didCatch:l,error:i,resetErrorBoundary:this.resetErrorBoundary}},c)}}var s=n(7375),u=n(3342),d=n(5324),m=n(8083),f=n(404),p=n(3872),y=n(6660),b=n(8201),v=n(4562);function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function h(){var e=w(["\n margin-top: 0 !important;\n "]);return h=function(){return e},e}function g(){var e=w(["\n margin-bottom: 1em;\n "]);return g=function(){return e},e}function k(){var e=w(["\n margin-top: 0 !important;\n "]);return k=function(){return e},e}function x(e){var t,n,o=e.entry,a=(0,y.A)().styles,i=(0,v.sD)(),w=(0,f.x)(),x=(0,u.useCompile)(),C=(0,u.usePlugin)(d.default),O=function(e){if(Array.isArray(e))return e}(t=l().useState(100))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],l=!0,a=!1;try{for(r=r.call(e);!(l=(t=r.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(a)throw n}}return o}}(t)||function(e){if(e){if("string"==typeof e)return E(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),j=O[0],S=O[1],A=null==w?void 0:w.clipboard,P=A?C.instructions.get(A.type):null,N=A?P?x(P.title):A.type:"";return l().createElement("div",{className:"workflow-canvas-wrapper"},l().createElement(c,{FallbackComponent:u.ErrorFallback,onError:console.error},l().createElement("div",{className:"workflow-canvas",style:{zoom:j/100}},l().createElement("div",{className:(0,u.cx)(a.branchBlockClass,(0,u.css)(h()))},l().createElement("div",{className:a.branchClass},i?l().createElement(r.Alert,{type:"warning",message:(0,p.vV)("Executed workflow cannot be modified. Could be copied to a new version to modify."),showIcon:!0,className:(0,u.css)(g())}):null,l().createElement(b.Vo,null),l().createElement("div",{className:(0,u.cx)(a.branchBlockClass,(0,u.css)(k()))},l().createElement(m.lg,{entry:o})),l().createElement("div",{className:a.terminalClass},(0,p.vV)("End")))))),A?l().createElement("div",{className:a.clipboardPreviewClass},l().createElement("div",{className:"workflow-clipboard-header"},l().createElement("span",null,(0,p.vV)("Copied node")),l().createElement(r.Button,{type:"text",size:"small",icon:l().createElement(s.CloseOutlined,null),onClick:function(){var e;return null==w||null==(e=w.clearClipboard)?void 0:e.call(w)}})),l().createElement("div",{className:"workflow-clipboard-card"},l().createElement("div",{className:"workflow-clipboard-type"},N),l().createElement("div",{className:"workflow-clipboard-title"},null!=(n=A.title)?n:A.type))):null,l().createElement("div",{className:"workflow-canvas-zoomer"},l().createElement(r.Slider,{vertical:!0,reverse:!0,defaultValue:100,step:10,min:10,value:j,onChange:S})))}},3639:function(e,t,n){n.r(t),n.d(t,{ExecutionPage:function(){return T}});var r=n(3342),o=n(9155),l=n.n(o),a=n(4442),i=n(2059),c=n(7768),s=n(7375),u=n(5953),d=n(5324),m=n(2596),f=n(1958),p=n(7428),y=n(7846),b=n(3872),v=n(7065),E=n(6660),w=n(6072),h=n(6773);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){k(e,t,n[t])})}return e}function C(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var l=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(l.push(n.value),!t||l.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw r}}return l}}(e,t)||S(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}}var A=(0,o.createContext)({jobData:{},loading:!1});function P(){return(0,o.useContext)(A)}function N(e){var t=P(),n=t.jobData;if(t.loading)return l().createElement(i.Spin,null);var o=(0,h.get)(n,"result");return l().createElement(r.Input.JSON,C(x({},e),{value:o,disabled:!0}))}function D(){var e=P(),t=e.jobData;if(e.loading)return null;var n=(0,h.get)(t,"log");return l().createElement(v.KV,{value:n})}function V(e){var t,n,a=e.job,c=e.setViewJob,s=(0,r.usePlugin)(d.default).instructions,u=(0,r.useCompile)(),m=(0,E.A)().styles,f=(t=a.id,(0,r.useRequest)({resource:"jobs",action:"get",params:{filterByTk:t}},{cacheKey:"job-".concat(t)})),y=f.data,v=f.loading,w=null!=(n=(0,h.get)(y,"data"))?n:a,g=(null!=a?a:{}).node,O=void 0===g?{}:g,j=s.get(O.type),S=(0,o.useMemo)(function(){return{jobData:w,loading:v}},[w,v]);return l().createElement(r.ActionContextProvider,{value:{visible:!!a,setVisible:c}},l().createElement(A.Provider,{value:S},l().createElement(r.SchemaComponent,{components:{JobResult:N,JobLog:D},schema:{type:"void",properties:k({},"".concat(w.id,"-").concat(w.updatedAt,"-modal"),{type:"void","x-decorator":"Form","x-decorator-props":{initialValue:C(x({},a,w),{node:O})},"x-component":"Action.Modal",title:l().createElement("div",{className:m.nodeTitleClass},l().createElement(i.Tag,null,u(null==j?void 0:j.title)),l().createElement("strong",null,O.title),l().createElement("span",{className:"workflow-node-id"},"#",O.id)),properties:{status:{type:"number",title:'{{t("Status", { ns: "'.concat(b.CU,'" })}}'),"x-decorator":"FormItem","x-component":"Select",enum:p.ox,"x-read-pretty":!0},updatedAt:{type:"string",title:'{{t("Executed at", { ns: "'.concat(b.CU,'" })}}'),"x-decorator":"FormItem","x-component":"DatePicker","x-component-props":{showTime:!0},"x-read-pretty":!0},result:{type:"object",title:'{{t("Node result", { ns: "'.concat(b.CU,'" })}}'),"x-decorator":"FormItem","x-component":"JobResult","x-component-props":{className:m.nodeJobResultClass,autoSize:{minRows:4,maxRows:32}}},log:{type:"string","x-component":"JobLog"}}})}})))}function I(){var e=(0,y.$K)(),t=e.viewJob,n=e.setViewJob;return t?l().createElement(V,{job:t,setViewJob:n}):null}function R(e){var t=(0,y.$K)().execution,n=(0,r.useAPIClient)(),u=(0,a.useNavigate)(),d=(0,E.A)().styles,m=(0,r.useResourceActionContext)().refresh,b=O((0,o.useState)([]),2),v=b[0],h=b[1],g=O((0,o.useState)([]),2),k=g[0],x=g[1],C=O((0,o.useState)(null),2),S=C[0],A=C[1],P=O((0,o.useState)(null),2),N=P[0],D=P[1],V=O((0,o.useState)(null),2),I=V[0],R=V[1],B=(0,o.useCallback)(function(e){t&&e&&(S!==t.id&&n.resource("executions").list({filter:{key:t.key,id:{$lt:t.id}},sort:"-id",pageSize:10,fields:["id","status","createdAt"]}).then(function(e){var n=e.data;A(t.id),h(n.data)}).catch(function(){}),(N!==t.id||I&&Date.now()-Number(I)>6e4&&k.length<10)&&n.resource("executions").list({filter:{key:t.key,id:{$gt:t.id}},sort:"id",pageSize:10,fields:["id","status","createdAt"]}).then(function(e){var n=e.data;D(t.id),R(Date.now()),x(n.data.reverse())}).catch(function(){}))},[t,S,N,I,k.length,n]),T=(0,o.useCallback)(function(e){var n=e.key;n!=t.id&&u((0,w.mz)(n))},[t.id,u]);return t?l().createElement(i.Space,null,l().createElement(i.Dropdown,{onOpenChange:B,menu:{onClick:T,defaultSelectedKeys:["".concat(t.id)],className:(0,r.cx)(d.dropdownClass,d.executionsDropdownRowClass),items:j(k).concat([t],j(v)).map(function(e){return{key:e.id,label:l().createElement(l().Fragment,null,l().createElement("span",{className:"id"},"#".concat(e.id)),l().createElement("time",null,(0,c.str2moment)(e.createdAt).format("YYYY-MM-DD HH:mm:ss"))),icon:l().createElement("span",null,l().createElement(f.p,{statusMap:p.$Y,status:e.status}))}})}},l().createElement(i.Space,null,l().createElement("strong",null,"#".concat(t.id)),l().createElement(s.DownOutlined,null))),l().createElement(i.Button,{type:"link",size:"small",icon:l().createElement(s.ReloadOutlined,null),onClick:m})):null}function B(){var e,t,n,d=(0,u.useTranslation)().t,f=(0,r.useCompile)(),v=(0,r.useResourceActionContext)(),E=v.data,h=v.loading,g=v.refresh,k=(0,r.useDocumentTitle)().setTitle,x=O((0,o.useState)(null),2),C=x[0],j=x[1],S=(0,r.useApp)(),A=(0,r.useAPIClient)();(0,o.useEffect)(function(){var e,t=(null!=(e=null==E?void 0:E.data)?e:{}).workflow;null==k||k("".concat((null==t?void 0:t.title)?"".concat(t.title," - "):"").concat((0,b.vV)("Execution history")))},[null==E?void 0:E.data,k]);var P=(0,o.useCallback)(function(){i.Modal.confirm({title:(0,b.vV)("Cancel the execution"),icon:l().createElement(s.ExclamationCircleFilled,null),content:(0,b.vV)("Are you sure you want to cancel the execution?"),onOk:function(){A.resource("executions").cancel({filterByTk:null==E?void 0:E.data.id}).then(function(){i.message.success(d("Operation succeeded")),g()}).catch(function(e){console.error(e.data.error)})}})},[A,null==E?void 0:E.data.id,g,d]),N=(0,o.useCallback)(function(){history.back()},[]);if(!(null==E?void 0:E.data))return h?l().createElement(i.Spin,null):l().createElement(i.Result,{status:"404",title:"Not found"});var D=null!=(e=null==E?void 0:E.data)?e:{},V=D.jobs,B=D.workflow,T=function(e,t){if(null==e)return{};var n,r,o,l={};if("u">typeof Reflect&&Reflect.ownKeys){for(o=0,n=Reflect.ownKeys(Object(e));o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r]);return l}if(l=function(e,t){if(null==e)return{};var n,r,o={},l=Object.getOwnPropertyNames(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r]);return l}(D,["jobs","workflow"]),z=(B||{}).nodes,J=void 0===z?[]:z;(0,w.KD)(J),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Map;e.forEach(function(e){e.jobs=[],n.set(e.id,e)}),t.forEach(function(e){var t=n.get(e.nodeId);t&&(t.jobs.push(e),e.node={id:t.id,key:t.key,title:t.title,type:t.type})}),e.forEach(function(e){e.jobs=e.jobs.sort(function(e,t){return e.id-t.id})})}(J,void 0===V?[]:V);var M=J.find(function(e){return!e.upstream}),K=p.$Y[T.status];return B?l().createElement(y.cB.Provider,{value:{workflow:B.type?B:null,nodes:J,execution:T,viewJob:C,setViewJob:j}},l().createElement("div",{className:"workflow-toolbar"},l().createElement("header",null,l().createElement(i.Breadcrumb,{items:[{title:l().createElement(a.Link,{to:S.pluginSettingsManager.getRoutePath("workflow")},(0,b.vV)("Workflow"))},{title:l().createElement(i.Tooltip,{title:"Key: ".concat(B.key)},l().createElement(a.Link,{to:(0,w.Yz)(B.id)},B.title))},{title:l().createElement(R,null)}]})),l().createElement("aside",null,l().createElement(i.Tag,{color:K.color},l().createElement(i.Space,null,f(K.label),T.reason?l().createElement(i.Tooltip,{title:f(null!=(t=null==(n=p.BI[T.reason])?void 0:n.label)?t:T.reason),placement:"bottom"},l().createElement(s.QuestionCircleOutlined,null)):null)),T.status?null:l().createElement(i.Tooltip,{title:(0,b.vV)("Cancel the execution")},l().createElement(i.Button,{type:"link",danger:!0,onClick:P,shape:"circle",size:"small",icon:l().createElement(s.StopOutlined,null)})),l().createElement("time",null,(0,c.str2moment)(T.updatedAt).format("YYYY-MM-DD HH:mm:ss")))),l().createElement(m.i,{entry:M}),l().createElement(I,null)):l().createElement(i.Result,{status:"404",title:(0,b.vV)("Not found"),subTitle:(0,b.vV)("Workflow of execution is not existed"),extra:l().createElement(i.Button,{onClick:N},(0,b.vV)("Go back"))})}var T=function(){var e,t,n,o=(0,a.useParams)(),i=(0,E.A)().styles;return l().createElement("div",{className:(0,r.cx)(i.workflowPageClass)},l().createElement(r.SchemaComponent,{schema:{type:"void",properties:(e={},t="execution_".concat(o.id),n={type:"void","x-decorator":"ResourceActionProvider","x-decorator-props":{collection:{name:"executions",fields:[]},resourceName:"executions",request:{resource:"executions",action:"get",params:{filter:o,appends:["jobs","workflow","workflow.nodes","workflow.versionStats","workflow.stats"],except:["jobs.result","workflow.options"]}}},"x-component":"ExecutionCanvas"},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)},components:{ExecutionCanvas:B}}))}}}]);
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
export declare const ScheduleModes: {
|
|
11
|
-
[x: number]: {
|
|
12
|
-
fieldset: {
|
|
13
|
-
startsOn: {
|
|
14
|
-
type: string;
|
|
15
|
-
title: string;
|
|
16
|
-
'x-decorator': string;
|
|
17
|
-
'x-component': string;
|
|
18
|
-
'x-component-props': {
|
|
19
|
-
showTime: boolean;
|
|
20
|
-
};
|
|
21
|
-
required: boolean;
|
|
22
|
-
'x-reactions'?: undefined;
|
|
23
|
-
};
|
|
24
|
-
repeat: {
|
|
25
|
-
type: string;
|
|
26
|
-
title: string;
|
|
27
|
-
'x-decorator': string;
|
|
28
|
-
'x-component': string;
|
|
29
|
-
'x-reactions': {
|
|
30
|
-
target: string;
|
|
31
|
-
fulfill: {
|
|
32
|
-
state: {
|
|
33
|
-
visible: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
endsOn: {
|
|
39
|
-
type: string;
|
|
40
|
-
title: string;
|
|
41
|
-
'x-decorator': string;
|
|
42
|
-
'x-component': string;
|
|
43
|
-
'x-component-props': {
|
|
44
|
-
showTime: boolean;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
limit: {
|
|
48
|
-
type: string;
|
|
49
|
-
title: string;
|
|
50
|
-
'x-decorator': string;
|
|
51
|
-
'x-component': string;
|
|
52
|
-
'x-component-props': {
|
|
53
|
-
placeholder: string;
|
|
54
|
-
min: number;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
collection?: undefined;
|
|
58
|
-
appends?: undefined;
|
|
59
|
-
};
|
|
60
|
-
triggerFieldset: {
|
|
61
|
-
date: {
|
|
62
|
-
type: string;
|
|
63
|
-
title: string;
|
|
64
|
-
'x-decorator': string;
|
|
65
|
-
'x-component': string;
|
|
66
|
-
'x-component-props': {
|
|
67
|
-
nullable: boolean;
|
|
68
|
-
changeOnSelect: boolean;
|
|
69
|
-
render(props: any): React.JSX.Element;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
data?: undefined;
|
|
73
|
-
};
|
|
74
|
-
validate(config: any): boolean;
|
|
75
|
-
} | {
|
|
76
|
-
fieldset: {
|
|
77
|
-
collection: {
|
|
78
|
-
'x-component-props': {
|
|
79
|
-
dataSourceFilter(item: any): any;
|
|
80
|
-
};
|
|
81
|
-
'x-reactions': any[];
|
|
82
|
-
type: string;
|
|
83
|
-
title: string;
|
|
84
|
-
required: boolean;
|
|
85
|
-
'x-decorator': string;
|
|
86
|
-
'x-component': string;
|
|
87
|
-
};
|
|
88
|
-
startsOn: {
|
|
89
|
-
type: string;
|
|
90
|
-
title: string;
|
|
91
|
-
'x-decorator': string;
|
|
92
|
-
'x-component': string;
|
|
93
|
-
'x-reactions': {
|
|
94
|
-
target: string;
|
|
95
|
-
fulfill: {
|
|
96
|
-
state: {
|
|
97
|
-
visible: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
}[];
|
|
101
|
-
required: boolean;
|
|
102
|
-
'x-component-props'?: undefined;
|
|
103
|
-
};
|
|
104
|
-
repeat: {
|
|
105
|
-
type: string;
|
|
106
|
-
title: string;
|
|
107
|
-
'x-decorator': string;
|
|
108
|
-
'x-component': string;
|
|
109
|
-
'x-reactions': {
|
|
110
|
-
target: string;
|
|
111
|
-
fulfill: {
|
|
112
|
-
state: {
|
|
113
|
-
visible: string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
}[];
|
|
117
|
-
};
|
|
118
|
-
endsOn: {
|
|
119
|
-
type: string;
|
|
120
|
-
title: string;
|
|
121
|
-
'x-decorator': string;
|
|
122
|
-
'x-component': string;
|
|
123
|
-
'x-component-props'?: undefined;
|
|
124
|
-
};
|
|
125
|
-
limit: {
|
|
126
|
-
type: string;
|
|
127
|
-
title: string;
|
|
128
|
-
'x-decorator': string;
|
|
129
|
-
'x-component': string;
|
|
130
|
-
'x-component-props': {
|
|
131
|
-
placeholder: string;
|
|
132
|
-
min: number;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
appends: {
|
|
136
|
-
'x-reactions': {
|
|
137
|
-
dependencies: string[];
|
|
138
|
-
fulfill: {
|
|
139
|
-
state: {
|
|
140
|
-
visible: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
}[];
|
|
144
|
-
type: string;
|
|
145
|
-
title: string;
|
|
146
|
-
description: string;
|
|
147
|
-
'x-decorator': string;
|
|
148
|
-
'x-component': string;
|
|
149
|
-
'x-component-props': {
|
|
150
|
-
title: string;
|
|
151
|
-
multiple: boolean;
|
|
152
|
-
useCollection(): any;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
triggerFieldset: {
|
|
157
|
-
data: {
|
|
158
|
-
type: string;
|
|
159
|
-
title: string;
|
|
160
|
-
description: string;
|
|
161
|
-
'x-decorator': string;
|
|
162
|
-
'x-component': string;
|
|
163
|
-
default: any;
|
|
164
|
-
required: boolean;
|
|
165
|
-
};
|
|
166
|
-
date?: undefined;
|
|
167
|
-
};
|
|
168
|
-
validate(config: any): any;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: {
|
|
10
|
-
everyText: string;
|
|
11
|
-
emptyMonths: string;
|
|
12
|
-
emptyMonthDays: string;
|
|
13
|
-
emptyMonthDaysShort: string;
|
|
14
|
-
emptyWeekDays: string;
|
|
15
|
-
emptyWeekDaysShort: string;
|
|
16
|
-
emptyHours: string;
|
|
17
|
-
emptyMinutes: string;
|
|
18
|
-
emptyMinutesForHourPeriod: string;
|
|
19
|
-
yearOption: string;
|
|
20
|
-
monthOption: string;
|
|
21
|
-
weekOption: string;
|
|
22
|
-
dayOption: string;
|
|
23
|
-
hourOption: string;
|
|
24
|
-
minuteOption: string;
|
|
25
|
-
rebootOption: string;
|
|
26
|
-
prefixPeriod: string;
|
|
27
|
-
prefixMonths: string;
|
|
28
|
-
prefixMonthDays: string;
|
|
29
|
-
prefixWeekDays: string;
|
|
30
|
-
prefixWeekDaysForMonthAndYearPeriod: string;
|
|
31
|
-
prefixHours: string;
|
|
32
|
-
prefixMinutes: string;
|
|
33
|
-
prefixMinutesForHourPeriod: string;
|
|
34
|
-
suffixMinutesForHourPeriod: string;
|
|
35
|
-
errorInvalidCron: string;
|
|
36
|
-
clearButtonText: string;
|
|
37
|
-
weekDays: string[];
|
|
38
|
-
months: string[];
|
|
39
|
-
altWeekDays: string[];
|
|
40
|
-
altMonths: string[];
|
|
41
|
-
};
|
|
42
|
-
export default _default;
|