@nocobase/plugin-workflow-manual 2.2.0-beta.9 → 2.3.0-alpha.1

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 ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client-v2';
2
+ export { default } from './dist/client-v2';
package/client-v2.js ADDED
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ module.exports = require('./dist/client-v2/index.js');
@@ -0,0 +1,10 @@
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 type { CollectionOptions } from '@nocobase/flow-engine';
10
+ export declare const workflowManualTaskCollections: CollectionOptions[];
@@ -0,0 +1,9 @@
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
+ export { default } from './plugin';
@@ -0,0 +1,10 @@
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
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client-v2"),require("react-router-dom"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-manual/client-v2",["@nocobase/client-v2","react-router-dom","react","antd","@nocobase/plugin-workflow/client-v2","@ant-design/icons","@nocobase/flow-engine"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-manual/client-v2"]=t(require("@nocobase/client-v2"),require("react-router-dom"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine")):e["@nocobase/plugin-workflow-manual/client-v2"]=t(e["@nocobase/client-v2"],e["react-router-dom"],e.react,e.antd,e["@nocobase/plugin-workflow/client-v2"],e["@ant-design/icons"],e["@nocobase/flow-engine"])}(self,function(e,t,n,r,o,a,l){return function(){"use strict";var i={375:function(e){e.exports=a},485:function(t){t.exports=e},694:function(e){e.exports=l},197:function(e){e.exports=o},59:function(e){e.exports=r},155:function(e){e.exports=n},442:function(e){e.exports=t}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.g.importScripts&&(s=u.g.location+"");var s,f=u.g.document;if(!s&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(s=f.currentScript.src),!s)){var p=f.getElementsByTagName("script");if(p.length)for(var b=p.length-1;b>-1&&(!s||!/^http(s?):/.test(s));)s=p[b--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");u.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var d={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@nocobase/plugin-workflow-manual/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-workflow-manual/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",a="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var l=window.location.pathname||"/",i=l.indexOf(a);e=i>=0?l.slice(0,i+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-workflow-manual/dist/client-v2/"}u.p=e}(),!function(){u.r(d),u.d(d,{default:function(){return W}});var e,t=u(485),n=u(197),r="manual",o=[{value:0,label:'{{t("Pending", { ns: "workflow" })}}',color:"gold"},{value:1,label:'{{t("Resolved", { ns: "workflow" })}}',color:"green"},{value:-3,label:'{{t("Aborted", { ns: "workflow" })}}',color:"volcano"},{value:-5,label:'{{t("Rejected", { ns: "workflow" })}}',color:"red"}];o.reduce(function(e,t){var n,r;return Object.assign(e,(n={},r=t.value,r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n))},{});var a=u(375),l=u(694),i=u(59),c=u(155),s=u.n(c),f=u(442),p=[{name:"workflows",dataCategory:"system",hidden:!0,shared:!0,fields:[{name:"id",type:"snowflakeId",primaryKey:!0,allowNull:!1},{name:"title",type:"string",interface:"input",uiSchema:{type:"string",title:'{{t("Name")}}',"x-component":"Input"}}]},{name:"workflowManualTasks",dataCategory:"business",filterTargetKey:"id",hidden:!0,shared:!0,fields:[{name:"id",type:"snowflakeId",primaryKey:!0,allowNull:!1},{name:"title",type:"string",interface:"input",uiSchema:{type:"string",title:'{{t("Task title", { ns: "workflow-manual" })}}',"x-component":"Input"}},{name:"workflow",type:"belongsTo",target:"workflows",interface:"m2o",uiSchema:{type:"object",title:'{{t("Workflow", { ns: "workflow" })}}',"x-component":"AssociationField","x-component-props":{fieldNames:{label:"title",value:"id"}}}}]}],b="@nocobase/plugin-workflow-manual";function w(){var e=(0,l.useFlowEngine)();return function(t,n){return e.context.t(t,function(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){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ns:[b,"client"],nsMode:"fallback"},n))}}function y(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 v(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,o)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=["node.id","node.title","job.id","job.status","job.result","workflow.id","workflow.title","workflow.enabled","execution.id","execution.status"],h=["node.config","workflow.config","workflow.options"],k="workflowManualTasksFilter",O={$and:[{title:{$includes:""}},{"workflow.title":{$includes:""}}]},S=(g(e={},n.TASK_STATUS.PENDING,{filter:{status:0,"execution.status":0}}),g(e,n.TASK_STATUS.COMPLETED,{filter:{status:[1,-3,-5]}}),e);function j(e){return!!e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!Array.isArray(e)}function x(e,t){return t.split(".").reduce(function(e,t){return j(e)?e[t]:void 0},e)}function P(e,t){var n=x(e,t);if(null!=n)return String(n)}function T(e){return!j(e)||function e(t){return null==t||""===t||(Array.isArray(t)?t.every(e):!!j(t)&&Object.values(t).every(e))}(e)}function _(){if(!("u"<typeof window)){var e=new URLSearchParams(window.location.search).get(k);if(e)try{var t=JSON.parse(e);return j(t)&&!T(t)?t:void 0}catch(e){return}}}function E(e){return String(e).padStart(2,"0")}function A(e){var t=e.record,n=w(),r=t.status,a=x(t,"execution.status");if(null==r&&null!=a&&0!==a)return s().createElement(i.Tag,null,n("Unprocessed"));var l=o.find(function(e){return e.value===r});return l?s().createElement(i.Tag,{color:l.color},n(l.label)):s().createElement(i.Tag,null,null==r?"-":String(r))}function R(e){var n,r,o,a,u,p=e.onlyIcon,b=w(),d=(0,f.useNavigate)(),y=(0,f.useLocation)(),v=null==(a=(0,l.useFlowEngine)().context.dataSourceManager)||null==(o=a.getDataSource)||null==(r=o.call(a,"main"))||null==(n=r.getCollection)?void 0:n.call(r,"workflowManualTasks"),g=b("Filter"),m=(0,c.useCallback)(function(e){var t,n,r;d((n=new URLSearchParams(y.search),T(e)?n.delete(k):n.set(k,JSON.stringify(e)),r=n.toString(),"".concat(y.pathname).concat(r?"?".concat(r):"").concat(null!=(t=y.hash)?t:"")),{replace:!0})},[y,d]),h=s().createElement(t.CollectionFilter,{key:y.search||"empty-filter",collection:v,initialValue:null!=(u=_())?u:O,onChange:m,t:b,filterableFieldNames:["title","workflow"],buttonText:p?"":void 0,showCount:!1,buttonProps:{"aria-label":p?g:void 0}});return p?s().createElement(i.Tooltip,{title:g},h):h}function C(e){if(!e||"/"===e)return"";var t=e.replace(/\/+$/,"");return t.startsWith("/")?t:"/".concat(t)}var M={key:r,title:'{{t("My manual tasks", { ns: "'.concat(b,'" })}}'),collection:"workflowManualTasks",action:"listMine",useActionParams:function(e){var t,n,r,o,a,l=null!=(a=S[e])?a:{},i=(t=l.filter,n=_(),T(t)?null!=n?n:{}:T(n)?null!=t?t:{}:{$and:[t,n]});return r=function(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){g(e,t,n[t])})}return e}({},l),o=o={filter:i,appends:m,except:h},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r},Actions:function(e){var n=e.onlyIcon,r=e.reload,o=i.App.useApp().message,l=w(),u=(0,c.useCallback)(function(){var e;return(e=function(){return function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(l,"next",{value:c(0)}),i(l,"throw",{value:c(1)}),i(l,"return",{value:c(2)}),"function"==typeof Symbol&&i(l,Symbol.iterator,{value:function(){return this}}),l;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,null==r?void 0:r()];case 1:return e.sent(),[3,3];case 2:return console.error("Failed to refresh workflow manual tasks",e.sent()),o.error(l("Load failed")),[3,3];case 3:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){v(a,r,o,l,i,"next",e)}function i(e){v(a,r,o,l,i,"throw",e)}l(void 0)})})()},[o,r,l]),f=s().createElement(i.Button,{icon:s().createElement(a.ReloadOutlined,null),onClick:u,"aria-label":l("Refresh")},n?null:l("Refresh"));return s().createElement(t.ExtendCollectionsProvider,{collections:p},s().createElement(i.Space,{size:"small",wrap:!0},n?s().createElement(i.Tooltip,{title:l("Refresh")},f):f,s().createElement(R,{onlyIcon:n})))},Item:function(){var e,t,r=(0,n.useWorkflowTaskRecord)().record,o=w(),a=null!=(e=null!=(t=P(r,"title"))?t:P(r,"node.title"))?e:o("Task"),l=P(r,"workflow.title");return s().createElement(i.Card,{size:"small",hoverable:!0,title:a,extra:l},s().createElement(i.Descriptions,{column:1,size:"small",items:[{key:"createdAt",label:o("Created at"),children:function(e){var t="string"==typeof e||"number"==typeof e?String(e):void 0;if(!t)return"-";var n=new Date(t);return Number.isNaN(n.getTime())?t:"".concat(n.getFullYear(),"-").concat(E(n.getMonth()+1),"-").concat(E(n.getDate())," ").concat(E(n.getHours()),":").concat(E(n.getMinutes()),":").concat(E(n.getSeconds()))}(r.createdAt)},{key:"status",label:o("Status"),children:s().createElement(A,{record:r})}]}))},Detail:function(){var e,o,c,u,f=(0,n.useWorkflowTaskRecord)().record,p=(0,l.useFlowContext)(),b=function(e,n){var o=(u=C(e),s=C("u"<typeof window?e:window.__nocobase_public_path__||e),f=C((0,t.stripModernClientPrefix)(s)),p=u===s?"":s&&u.startsWith("".concat(s,"/"))?u.slice(s.length):"","".concat(f).concat(p)),a=null==n?"":encodeURIComponent(String(n)),l="".concat(o,"/admin/workflow/tasks/").concat(r,"/pending").concat(a?"/".concat(a):"");if("u"<typeof window||null==n)return l;var i=(b=window.location.pathname,(d=C(e))?b===d?"/":b.startsWith("".concat(d,"/"))?b.slice(d.length):b:b),c="/admin/workflow/tasks/";if(i.startsWith(c)){var u,s,f,p,b,d,w,v=function(e){if(Array.isArray(e))return e}(w=i.slice(c.length).split("/"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(w)||function(e){if(e){if("string"==typeof e)return y(e,void 0);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 y(e,void 0)}}(w)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),g=v[0],m=v[1],h=v[2];if(0===v.slice(3).length&&m&&g===r&&(h===String(n)||h===a)){var k="".concat(o,"/admin/workflow/tasks/").concat(r,"/").concat(m,"/").concat(a);return"".concat(k).concat(window.location.search).concat(window.location.hash)}}return l}(null!=(e=null==p||null==(c=p.router)||null==(o=c.getBasename)?void 0:o.call(c))?e:null==p||null==(u=p.router)?void 0:u.basename,(0,n.getWorkflowTaskRecordKey)(f)),d=w();return s().createElement(i.Result,{status:"info",title:d("Manual task cannot be processed on the new page"),subTitle:d("Manual tasks are not yet supported on the new page. Return to the legacy page to process this task."),extra:s().createElement(i.Button,{type:"primary",href:b,icon:s().createElement(a.ArrowRightOutlined,{"aria-hidden":!0})},d("Return to legacy page"))})}};function I(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,o)}function N(e,t,n){return(N=D()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$(o,n.prototype),o}).apply(null,arguments)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t="function"==typeof Map?new Map:void 0;return(F=function(e){if(null===e||-1===Function.toString.call(e).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,n)}function n(){return N(e,arguments,q(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$(n,e)})(e)}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}var W=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function o(){var e,t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return e=o,t=arguments,e=q(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,D()?Reflect.construct(e,t||[],q(this).constructor):e.apply(this,t))}return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&$(o,e),t=[{key:"load",value:function(){var e;return(e=function(){var e,t,o;return function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(l,"next",{value:c(0)}),i(l,"throw",{value:c(1)}),i(l,"return",{value:c(2)}),"function"==typeof Symbol&&i(l,Symbol.iterator,{value:function(){return this}}),l;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(a){return null==(o=null!=(e=this.app.pm.get(n.PluginWorkflowClientV2))?e:this.app.pm.get("workflow"))||null==(t=o.registerTaskType)||t.call(o,r,M),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){I(a,r,o,l,i,"next",e)}function i(e){I(a,r,o,l,i,"throw",e)}l(void 0)})}).call(this)}}],function(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)}}(o.prototype,t),o}(F(t.Plugin))}(),d}()});
@@ -0,0 +1,10 @@
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
+ export declare const NAMESPACE = "@nocobase/plugin-workflow-manual";
10
+ export declare function useT(): (key: string, options?: Record<string, unknown>) => string;
@@ -0,0 +1,13 @@
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 { Plugin, type Application } from '@nocobase/client-v2';
10
+ export declare class PluginWorkflowManualClientV2 extends Plugin<Record<string, never>, Application> {
11
+ load(): Promise<void>;
12
+ }
13
+ export default PluginWorkflowManualClientV2;
@@ -0,0 +1,17 @@
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 { type TaskTypeOptions, type WorkflowTaskStatus } from '@nocobase/plugin-workflow/client-v2';
10
+ type RecordObject = Record<string, unknown>;
11
+ export declare function useManualTaskActionParams(status: WorkflowTaskStatus): {
12
+ filter: RecordObject;
13
+ appends: string[];
14
+ except: string[];
15
+ };
16
+ export declare const manualTaskType: TaskTypeOptions;
17
+ export {};
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.2.0-beta.9",
11
+ "@nocobase/client": "2.3.0-alpha.1",
12
12
  "react": "18.2.0",
13
13
  "react-router-dom": "6.30.1",
14
14
  "@formily/react": "2.3.7",
@@ -19,14 +19,16 @@ module.exports = {
19
19
  "dayjs": "1.11.13",
20
20
  "react-i18next": "11.18.6",
21
21
  "lodash": "4.18.1",
22
- "@nocobase/plugin-workflow": "2.2.0-beta.9",
23
- "@nocobase/plugin-mobile": "2.2.0-beta.9",
24
- "@nocobase/utils": "2.2.0-beta.9",
25
- "@nocobase/server": "2.2.0-beta.9",
26
- "@nocobase/database": "2.2.0-beta.9",
27
- "@nocobase/actions": "2.2.0-beta.9",
28
- "@nocobase/test": "2.2.0-beta.9",
29
- "@nocobase/plugin-workflow-test": "2.2.0-beta.9",
22
+ "@nocobase/plugin-workflow": "2.3.0-alpha.1",
23
+ "@nocobase/plugin-mobile": "2.3.0-alpha.1",
24
+ "@nocobase/flow-engine": "2.3.0-alpha.1",
25
+ "@nocobase/client-v2": "2.3.0-alpha.1",
26
+ "@nocobase/utils": "2.3.0-alpha.1",
27
+ "@nocobase/server": "2.3.0-alpha.1",
28
+ "@nocobase/database": "2.3.0-alpha.1",
29
+ "@nocobase/actions": "2.3.0-alpha.1",
30
+ "@nocobase/test": "2.3.0-alpha.1",
31
+ "@nocobase/plugin-workflow-test": "2.3.0-alpha.1",
30
32
  "@formily/core": "2.3.7",
31
33
  "sequelize": "6.35.2"
32
34
  };
@@ -17,9 +17,12 @@
17
17
  "Field name existed in form": "Field name existed in form",
18
18
  "Filter settings": "Filter settings",
19
19
  "Manual": "Manual",
20
+ "Manual task cannot be processed on the new page": "Manual task cannot be processed on the new page",
21
+ "Manual tasks are not yet supported on the new page. Return to the legacy page to process this task.": "Manual tasks are not yet supported on the new page. Return to the legacy page to process this task.",
20
22
  "My manual tasks": "My manual tasks",
21
23
  "Negotiation": "Negotiation",
22
24
  "Please check one of your update record form, and add at least one filter condition in form settings.": "Please check one of your update record form, and add at least one filter condition in form settings.",
25
+ "Return to legacy page": "Return to legacy page",
23
26
  "Save temporarily": "Save temporarily",
24
27
  "Separately": "Separately",
25
28
  "Task": "Task",
@@ -33,4 +36,4 @@
33
36
  "Values preset in this form will override user submitted ones when continue or reject.": "Values preset in this form will override user submitted ones when continue or reject.",
34
37
  "View user interface": "View user interface",
35
38
  "Workflow todos": "Workflow todos"
36
- }
39
+ }
@@ -17,9 +17,12 @@
17
17
  "Field name existed in form": "表单中已有对应标识的字段",
18
18
  "Filter settings": "筛选设置",
19
19
  "Manual": "人工处理",
20
+ "Manual task cannot be processed on the new page": "人工任务无法在新版页面中处理",
21
+ "Manual tasks are not yet supported on the new page. Return to the legacy page to process this task.": "新版页面暂不支持处理人工任务,请返回旧版页面处理该任务。",
20
22
  "My manual tasks": "我的人工任务",
21
23
  "Negotiation": "协商机制",
22
24
  "Please check one of your update record form, and add at least one filter condition in form settings.": "请检查您的其中的更新数据表单,并在表单设置中至少添加一个筛选条件。",
25
+ "Return to legacy page": "返回旧版页面",
23
26
  "Save temporarily": "暂存",
24
27
  "Separately": "分别处理",
25
28
  "Task": "Task",
@@ -33,4 +36,4 @@
33
36
  "Values preset in this form will override user submitted ones when continue or reject.": "表单中预设的字段值会在用户提交继续或拒绝时覆盖相应字段的值。",
34
37
  "View user interface": "查看界面",
35
38
  "Workflow todos": "工作流待办"
36
- }
39
+ }
@@ -1 +1 @@
1
- {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-07-06T02:57:00.119Z"}
1
+ {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-07-16T12:58:46.976Z"}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Could be used for workflows which some of decisions are made by users.",
7
7
  "description.ru-RU": "Может использоваться в рабочих процессах, где какие-то решения принимаются пользователями.",
8
8
  "description.zh-CN": "用于人工控制部分决策的流程。",
9
- "version": "2.2.0-beta.9",
9
+ "version": "2.3.0-alpha.1",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/workflow-manual",
@@ -26,7 +26,9 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@nocobase/client": "2.x",
29
+ "@nocobase/client-v2": "2.x",
29
30
  "@nocobase/database": "2.x",
31
+ "@nocobase/flow-engine": "2.x",
30
32
  "@nocobase/plugin-data-source-main": "2.x",
31
33
  "@nocobase/plugin-mobile": "2.x",
32
34
  "@nocobase/plugin-users": "2.x",
@@ -35,7 +37,7 @@
35
37
  "@nocobase/test": "2.x",
36
38
  "@nocobase/utils": "2.x"
37
39
  },
38
- "gitHead": "60e3d7abbaa0c7cead76f71a4f3d5eedb6b8acdb",
40
+ "gitHead": "2377df8ceb12549149017f7f14a61207bf6e49a2",
39
41
  "keywords": [
40
42
  "Workflow"
41
43
  ]