@nocobase/plugin-workflow-parallel 1.7.0-beta.1 → 1.7.0-beta.10
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.
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { RadioWithTooltip, Instruction } from '@nocobase/plugin-workflow/client';
|
|
11
|
+
declare function NodeComponent({ data }: {
|
|
12
|
+
data: any;
|
|
13
|
+
}): React.JSX.Element;
|
|
11
14
|
export default class extends Instruction {
|
|
12
15
|
title: string;
|
|
13
16
|
type: string;
|
|
@@ -34,7 +37,6 @@ export default class extends Instruction {
|
|
|
34
37
|
components: {
|
|
35
38
|
RadioWithTooltip: typeof RadioWithTooltip;
|
|
36
39
|
};
|
|
37
|
-
Component
|
|
38
|
-
data: any;
|
|
39
|
-
}): React.JSX.Element;
|
|
40
|
+
Component: typeof NodeComponent;
|
|
40
41
|
}
|
|
42
|
+
export {};
|
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-i18next"),require("@ant-design/icons"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client"),require("antd")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-parallel",["react","react-i18next","@ant-design/icons","@nocobase/client","@nocobase/plugin-workflow/client","antd"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-parallel"]=t(require("react"),require("react-i18next"),require("@ant-design/icons"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client"),require("antd")):e["@nocobase/plugin-workflow-parallel"]=t(e.react,e["react-i18next"],e["@ant-design/icons"],e["@nocobase/client"],e["@nocobase/plugin-workflow/client"],e.antd)}(self,function(e,t,n,r,o,c){return function(){"use strict";var i={482:function(e){e.exports=n},772:function(e){e.exports=r},433:function(e){e.exports=o},721:function(e){e.exports=c},156:function(t){t.exports=e},238:function(e){e.exports=t}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};u.r(l),u.d(l,{default:function(){return F}});var f=u("772"),s=u("433"),p=u.n(s),d=u("156"),b=u.n(d),y=u("721"),h=u("482"),m=u("238"),v="workflow-parallel";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 w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){return!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function P(){var e=k(["\n padding-top: 2em;\n\n > button {\n line-height: 1;\n\n .anticon {\n transform: rotate(45deg);\n }\n }\n "]);return P=function(){return e},e}function E(){var e=k(["\n visibility: ",";\n "]);return E=function(){return e},e}function _(){var e=k(["\n position: relative;\n top: 1em;\n line-height: 1;\n transform-origin: center;\n transform: rotate(45deg);\n\n .anticon {\n transform-origin: center;\n transform: rotate(-45deg);\n }\n "]);return _=function(){return e},e}var A=function(e){var t,n,r;function o(){var e,t,n,r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),t=this,n=o,r=arguments,n=O(n),x(e=function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(t,S()?Reflect.construct(n,r||[],O(t).constructor):n.apply(t,r)),"title",'{{t("Parallel branch", { ns: "'.concat(v,'" })}}')),x(e,"type","parallel"),x(e,"group","control"),x(e,"description",'{{t("Run multiple branch processes in parallel.", { ns: "'.concat(v,'" })}}')),x(e,"icon",b().createElement(h.ApartmentOutlined,{style:{}})),x(e,"fieldset",{mode:{type:"string",title:'{{t("Mode", { ns: "'.concat(v,'" })}}'),"x-decorator":"FormItem","x-component":"RadioWithTooltip","x-component-props":{options:[{value:"all",label:"{{t('All succeeded', { ns: \"".concat(v,'" })}}'),tooltip:"{{t('Continue after all branches succeeded', { ns: \"".concat(v,'" })}}')},{value:"any",label:"{{t('Any succeeded', { ns: \"".concat(v,'" })}}'),tooltip:"{{t('Continue after any branch succeeded', { ns: \"".concat(v,'" })}}')},{value:"race",label:"{{t('Any succeeded or failed', { ns: \"".concat(v,'" })}}'),tooltip:"{{t('Continue after any branch succeeded, or exit after any branch failed.', { ns: \"".concat(v,'" })}}')}]},default:"all"}}),x(e,"branching",!0),x(e,"components",{RadioWithTooltip:s.RadioWithTooltip}),e}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(o,e),t=o,n=[{key:"Component",value:function(e){var t,n,r=e.data,o=(0,s.useStyles)().styles,c=r.id;r.config.mode;var i=(0,s.useFlowContext)(),a=i.workflow,u=i.nodes.reduce(function(e,t){return t.upstreamId===c&&null!=t.branchIndex?e.concat(t):e},[]).sort(function(e,t){return e.branchIndex-t.branchIndex});var l=(t=(0,d.useState)(Math.max(2,u.length)),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var c=[],i=!0,a=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(c.push(n.value),!t||c.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{!i&&null!=o.return&&o.return()}finally{if(a)throw r}}return c}}(t,2)||function(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)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=l[0],w=l[1],x=(0,s.useGetAriaLabelOfAddButton)(r).getAriaLabel,O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,function(e){return(0,m.useTranslation)(v,e)}(t).t)(e)}("Add branch"),j=Array(Math.max(0,p-u.length)).fill(null),k=u[u.length-1];return b().createElement(s.NodeDefaultView,{data:r},b().createElement("div",{className:o.nodeSubtreeClass},b().createElement("div",{className:o.branchBlockClass},u.map(function(e){return b().createElement(s.Branch,{key:e.id,from:r,entry:e,branchIndex:e.branchIndex})}),j.map(function(e,t){return b().createElement(s.Branch,{key:"temp_".concat(u.length+t),from:r,branchIndex:(k?k.branchIndex:0)+t+1,controller:u.length+t>1?b().createElement("div",{className:(0,f.css)(P())},b().createElement(y.Button,{shape:"circle",icon:b().createElement(h.PlusOutlined,null),onClick:function(){return w(p-1)},disabled:a.executed,size:"small"})):null})})),b().createElement(y.Tooltip,{title:O,className:(0,f.css)(E(),a.executed?"hidden":"visible")},b().createElement(y.Button,{"aria-label":x("add-branch"),icon:b().createElement(h.PlusOutlined,null),className:(0,f.css)(_()),size:"small",onClick:function(){return w(p+1)},disabled:a.executed}))))}}],w(t.prototype,n),o}(s.Instruction);function I(e,t,n,r,o,c,i){try{var a=e[c](i),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function T(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var c=e.apply(t,n);function i(e){I(c,r,o,i,a,"next",e)}function a(e){I(c,r,o,i,a,"throw",e)}i(void 0)})}}function q(e,t,n){return(q=N()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&B(o,n.prototype),o}).apply(null,arguments)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t="function"==typeof Map?new Map:void 0;return(M=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return q(e,arguments,R(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B(r,e)})(e)}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}function z(e,t){var n,r,o,c,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return c={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function a(c){return function(a){return function(c){if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}var F=function(e){var t,n,r;function o(){var e,t,n;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e=this,t=o,n=arguments,t=R(t),function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(o,e),t=o,n=[{key:"afterAdd",value:function(){return T(function(){return z(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return T(function(){return z(this,function(e){return[2]})})()}},{key:"load",value:function(){var e=this;return T(function(){return z(this,function(t){return e.app.pm.get(p()).registerInstruction("parallel",A),[2]})})()}}],C(t.prototype,n),o}(M(f.Plugin));return l}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-i18next"),require("@ant-design/icons"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client"),require("antd")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-parallel",["react","react-i18next","@ant-design/icons","@nocobase/client","@nocobase/plugin-workflow/client","antd"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-parallel"]=t(require("react"),require("react-i18next"),require("@ant-design/icons"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client"),require("antd")):e["@nocobase/plugin-workflow-parallel"]=t(e.react,e["react-i18next"],e["@ant-design/icons"],e["@nocobase/client"],e["@nocobase/plugin-workflow/client"],e.antd)}(self,function(e,t,n,r,o,c){return function(){"use strict";var i={482:function(e){e.exports=n},772:function(e){e.exports=r},433:function(e){e.exports=o},721:function(e){e.exports=c},156:function(t){t.exports=e},238:function(e){e.exports=t}},u={};function a(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return i[e](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};a.r(l),a.d(l,{default:function(){return F}});var f=a("772"),s=a("433"),p=a.n(s),d=a("156"),b=a.n(d),y=a("721"),h=a("482"),m=a("238"),v="workflow-parallel";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 w(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){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e,t){return!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function k(){var e=j(["\n padding-top: 2em;\n\n > button {\n line-height: 1;\n\n .anticon {\n transform: rotate(45deg);\n }\n }\n "]);return k=function(){return e},e}function E(){var e=j(["\n visibility: ",";\n "]);return E=function(){return e},e}function P(){var e=j(["\n position: relative;\n top: 1em;\n line-height: 1;\n transform-origin: center;\n transform: rotate(45deg);\n\n .anticon {\n transform-origin: center;\n transform: rotate(-45deg);\n }\n "]);return P=function(){return e},e}function _(e){var t,n,r=e.data,o=(0,s.useStyles)().styles,c=r.id;r.config.mode;var i=(0,s.useFlowContext)().nodes,u=(0,s.useWorkflowExecuted)(),a=i.reduce(function(e,t){return t.upstreamId===c&&null!=t.branchIndex?e.concat(t):e},[]).sort(function(e,t){return e.branchIndex-t.branchIndex});var l=(t=(0,d.useState)(Math.max(2,a.length)),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var c=[],i=!0,u=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(c.push(n.value),!t||c.length!==t);i=!0);}catch(e){u=!0,r=e}finally{try{!i&&null!=o.return&&o.return()}finally{if(u)throw r}}return c}}(t,2)||function(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)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=l[0],w=l[1],x=(0,s.useGetAriaLabelOfAddButton)(r).getAriaLabel,O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,function(e){return(0,m.useTranslation)(v,e)}(t).t)(e)}("Add branch"),j=Array(Math.max(0,p-a.length)).fill(null),S=a[a.length-1];return b().createElement(s.NodeDefaultView,{data:r},b().createElement("div",{className:o.nodeSubtreeClass},b().createElement("div",{className:o.branchBlockClass},a.map(function(e){return b().createElement(s.Branch,{key:e.id,from:r,entry:e,branchIndex:e.branchIndex})}),j.map(function(e,t){return b().createElement(s.Branch,{key:"temp_".concat(a.length+t),from:r,branchIndex:(S?S.branchIndex:0)+t+1,controller:a.length+t>1?b().createElement("div",{className:(0,f.css)(k())},b().createElement(y.Button,{shape:"circle",icon:b().createElement(h.PlusOutlined,null),onClick:function(){return w(p-1)},disabled:u,size:"small"})):null})})),b().createElement(y.Tooltip,{title:O,className:(0,f.css)(E(),u?"hidden":"visible")},b().createElement(y.Button,{"aria-label":x("add-branch"),icon:b().createElement(h.PlusOutlined,null),className:(0,f.css)(P()),size:"small",onClick:function(){return w(p+1)},disabled:u}))))}var A=function(e){function t(){var e,n,r,o;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),n=this,r=t,o=arguments,r=x(r),w(e=function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,S()?Reflect.construct(r,o||[],x(n).constructor):r.apply(n,o)),"title",'{{t("Parallel branch", { ns: "'.concat(v,'" })}}')),w(e,"type","parallel"),w(e,"group","control"),w(e,"description",'{{t("Run multiple branch processes in parallel.", { ns: "'.concat(v,'" })}}')),w(e,"icon",b().createElement(h.ApartmentOutlined,{style:{}})),w(e,"fieldset",{mode:{type:"string",title:'{{t("Mode", { ns: "'.concat(v,'" })}}'),"x-decorator":"FormItem","x-component":"RadioWithTooltip","x-component-props":{options:[{value:"all",label:"{{t('All succeeded', { ns: \"".concat(v,'" })}}'),tooltip:"{{t('Continue after all branches succeeded', { ns: \"".concat(v,'" })}}')},{value:"any",label:"{{t('Any succeeded', { ns: \"".concat(v,'" })}}'),tooltip:"{{t('Continue after any branch succeeded', { ns: \"".concat(v,'" })}}')},{value:"race",label:"{{t('Any succeeded or failed', { ns: \"".concat(v,'" })}}'),tooltip:"{{t('Continue after any branch succeeded, or exit after any branch failed.', { ns: \"".concat(v,'" })}}')}]},default:"all"}}),w(e,"branching",!0),w(e,"components",{RadioWithTooltip:s.RadioWithTooltip}),w(e,"Component",_),e}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,e),t}(s.Instruction);function I(e,t,n,r,o,c,i){try{var u=e[c](i),a=u.value}catch(e){n(e);return}u.done?t(a):Promise.resolve(a).then(r,o)}function T(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var c=e.apply(t,n);function i(e){I(c,r,o,i,u,"next",e)}function u(e){I(c,r,o,i,u,"throw",e)}i(void 0)})}}function q(e,t,n){return(q=N()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&B(o,n.prototype),o}).apply(null,arguments)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t="function"==typeof Map?new Map:void 0;return(M=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return q(e,arguments,R(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B(r,e)})(e)}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}function z(e,t){var n,r,o,c,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return c={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function u(c){return function(u){return function(c){if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var F=function(e){var t,n,r;function o(){var e,t,n;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e=this,t=o,n=arguments,t=R(t),function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(o,e),t=o,n=[{key:"afterAdd",value:function(){return T(function(){return z(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return T(function(){return z(this,function(e){return[2]})})()}},{key:"load",value:function(){var e=this;return T(function(){return z(this,function(t){return e.app.pm.get(p()).registerInstruction("parallel",A),[2]})})()}}],C(t.prototype,n),o}(M(f.Plugin));return l}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"antd": "5.
|
|
12
|
+
"antd": "5.24.2",
|
|
13
13
|
"@ant-design/icons": "5.6.1",
|
|
14
|
-
"@nocobase/client": "1.7.0-beta.
|
|
15
|
-
"@nocobase/plugin-workflow": "1.7.0-beta.
|
|
14
|
+
"@nocobase/client": "1.7.0-beta.10",
|
|
15
|
+
"@nocobase/plugin-workflow": "1.7.0-beta.10",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/server": "1.7.0-beta.
|
|
18
|
-
"@nocobase/plugin-workflow-test": "1.7.0-beta.
|
|
19
|
-
"@nocobase/test": "1.7.0-beta.
|
|
20
|
-
"@nocobase/utils": "1.7.0-beta.
|
|
17
|
+
"@nocobase/server": "1.7.0-beta.10",
|
|
18
|
+
"@nocobase/plugin-workflow-test": "1.7.0-beta.10",
|
|
19
|
+
"@nocobase/test": "1.7.0-beta.10",
|
|
20
|
+
"@nocobase/utils": "1.7.0-beta.10"
|
|
21
21
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Parallel branch": "Paralleler Zweig",
|
|
3
|
+
"Run multiple branch processes in parallel.": "Führt mehrere Zweigprozesse parallel aus.",
|
|
4
|
+
"Add branch": "Zweig hinzufügen",
|
|
5
|
+
"Mode": "Ausführungsmodus",
|
|
6
|
+
"All succeeded": "Alle erfolgreich",
|
|
7
|
+
"Any succeeded": "Irgendein erfolgreich",
|
|
8
|
+
"Any succeeded or failed": "Irgendein erfolgreich oder fehlgeschlagen",
|
|
9
|
+
"Continue after all branches succeeded": "Fortfahren, nachdem alle Zweige erfolgreich waren",
|
|
10
|
+
"Continue after any branch succeeded": "Fortfahren, nachdem ein Zweig erfolgreich war",
|
|
11
|
+
"Continue after any branch succeeded, or exit after any branch failed.": "Fortfahren, nachdem ein Zweig erfolgreich war, oder beenden, nachdem ein Zweig fehlgeschlagen ist."
|
|
12
|
+
}
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"Parallel branch": "Ramo parallelo",
|
|
3
3
|
"Run multiple branch processes in parallel.": "Esegui più processi del ramo in parallelo.",
|
|
4
4
|
"Add branch": "Aggiungi ramo",
|
|
5
|
+
"Mode": "Modalità di esecuzione",
|
|
5
6
|
"All succeeded": "Tutti riusciti",
|
|
6
7
|
"Any succeeded": "Qualsiasi riuscito",
|
|
7
8
|
"Any succeeded or failed": "Qualsiasi riuscito o fallito",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Parallel branch": "Parallel branch",
|
|
3
|
+
"Run multiple branch processes in parallel.": "Run multiple branch processes in parallel.",
|
|
4
|
+
"Add branch": "Add branch",
|
|
5
|
+
"All succeeded": "All succeeded",
|
|
6
|
+
"Any succeeded": "Any succeeded",
|
|
7
|
+
"Any succeeded or failed": "Any succeeded or failed",
|
|
8
|
+
"Continue after all branches succeeded": "Continue after all branches succeeded",
|
|
9
|
+
"Continue after any branch succeeded": "Continue after any branch succeeded",
|
|
10
|
+
"Continue after any branch succeeded, or exit after any branch failed.": "Continue after any branch succeeded, or exit after any branch failed."
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流:并行分支节点",
|
|
5
5
|
"description": "Could be used for parallel execution of branch processes in the workflow.",
|
|
6
6
|
"description.zh-CN": "用于在工作流中需要并行执行的分支流程。",
|
|
7
|
-
"version": "1.7.0-beta.
|
|
7
|
+
"version": "1.7.0-beta.10",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/workflow-parallel",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nocobase/server": "1.x",
|
|
23
23
|
"@nocobase/test": "1.x"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "e9077cd02774330e9d9d0c9ff0324596207d90a0",
|
|
26
26
|
"keywords": [
|
|
27
27
|
"Workflow"
|
|
28
28
|
]
|