@tachybase/plugin-workflow-analysis 0.23.58 → 1.0.18
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/dist/client/index.js +1 -1
- package/dist/externalVersion.js +4 -4
- package/dist/server/plugin.js +8 -0
- package/package.json +9 -9
package/dist/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("react"),require("@tachybase/module-workflow/client"),require("react-router-dom"),require("@tachybase/schema")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","react","@tachybase/module-workflow/client","react-router-dom","@tachybase/schema"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o["@tachybase/plugin-workflow-analysis"]={},o["@tachybase/client"],o.jsxRuntime,o.react,o["@tachybase/module-workflow"],o["react-router-dom"],o["@tachybase/schema"]))})(this,function(o,e,t,m,p,s,d){"use strict";var j=Object.defineProperty,E=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?j(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))N.call(e,t)&&w(o,t,e[t]);if(b)for(var t of b(e))O.call(e,t)&&w(o,t,e[t]);return o},x=(o,e)=>E(o,W(e));var h=(o,e,t)=>new Promise((m,p)=>{var s=i=>{try{r(t.next(i))}catch(l){p(l)}},d=i=>{try{r(t.throw(i))}catch(l){p(l)}},r=i=>i.done?m(i.value):Promise.resolve(i.value).then(s,d);r((t=t.apply(o,e)).next())});const r="@tachybase/plugin-workflow-analysis",i=n=>e.tval(n,{ns:r}),l=()=>{const{workflowId:n}=e.useCollectionRecordData(),{setVisible:c}=e.useActionContext();return t.jsx(s.Link,{to:p.getWorkflowDetailPath(n),onClick:()=>c(!1),children:`#${n}`})},C=()=>{const{t:n}=e.useTranslation(),{id:c}=e.useCollectionRecordData(),{setVisible:a}=e.useActionContext();return t.jsx(s.Link,{to:p.getWorkflowExecutionsPath(c),onClick:()=>a(!1),children:n("View")})},g=()=>{const{t:n}=e.useTranslation(),{executionId:c}=e.useCollectionRecordData(),{setVisible:a}=e.useActionContext();return t.jsx(s.Link,{to:p.getWorkflowExecutionsPath(c),onClick:()=>a(!1),children:n("View")})},k=()=>{var a;const{node:n}=e.useCollectionRecordData(),c=(a=n.workflow)==null?void 0:a.title;return t.jsx("span",{style:{textAlign:"center",cursor:"pointer"},children:c})},T=()=>{const n=e.useCollectionRecordData(),{setVisible:c}=e.useActionContext();return t.jsx(s.Link,{to:p.getWorkflowDetailPath(n.node.workflowId),onClick:()=>c(!1),children:`#${n.node.workflowId}`})},y={name:"executions",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"m2o",type:"belongsTo",name:"workflow",target:"workflows",targetKey:"workflowId",foreignKey:"id",collectionName:"workflows",uiSchema:{type:"object",title:`{{t("Workflow title", { ns: "${r}" })}}`,"x-component":"AssociationField","x-component-props":{fieldNames:{value:"title",label:"title"}}}},{interface:"createdAt",type:"datetime",name:"createdAt",uiSchema:{type:"datetime",title:`{{t("Triggered at", { ns: "${r}" })}}`,"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{interface:"integer",type:"bigInt",name:"executionCost",uiSchema:{type:"bigInt",title:`{{t("Execution time", { ns: "${r}" })}}`,"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{type:"number",name:"status",interface:"select",uiSchema:{title:`{{t("Status", { ns: "${r}" })}}`,type:"string","x-component":"Select","x-decorator":"FormItem",enum:p.ExecutionStatusOptions}}]},v={name:"workflows",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{type:"string",name:"title",interface:"input",uiSchema:{title:'{{t("Name")}}',type:"string","x-component":"Input",required:!0}}]},S={type:"void",properties:{[d.uid()]:{type:"void","x-component":"CardItem","x-decorator":"TableBlockProvider","x-decorator-props":{collection:y,action:"list",params:{pageSize:20,sort:["-createdAt"]}},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{filter:{type:"void",title:'{{ t("Filter") }}',"x-action":"filter","x-designer":"Filter.Action.Designer","x-component":"Filter.Action","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"},refresher:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-use-component-props":"useRefreshActionProps","x-designer":"Action.Designer","x-component-props":{icon:"ReloadOutlined"},"x-align":"right"}}},table:{type:"array","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"id"},properties:{actions:{type:"void",title:'{{ t("Actions") }}',"x-component":"TableV2.Column","x-component-props":{width:50},properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{link:{type:"void","x-component":"ExecutionLink"}}}}},id:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:50},properties:{id:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}},workflow:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20,align:"center",style:{display:"grid",placeItems:"center"}},properties:{workflow:{type:"string","x-collection-field":"executions.workflow","x-component":"CollectionField","x-read-pretty":!0}}},createdAt:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:100},properties:{createdAt:{type:"datetime","x-component":"CollectionField","x-component-props":{showTime:!0},"x-read-pretty":!0}}},executionCost:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{executionCost:{type:"bigInt","x-component":"CollectionField","x-read-pretty":!0}}},workflowId:{type:"void",title:`{{t("Version", { ns: "${r}" })}}`,"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:50},properties:{workflowId:{type:"number","x-component":"executionVersionColumn","x-read-pretty":!0}}},status:{type:"void",title:`{{t("Status", { ns: "${r}" })}}`,"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{status:{type:"number","x-decorator":"ExecutionStatusColumn","x-component":"CollectionField","x-read-pretty":!0}}}}}}}}},f={name:"jobs",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"createdAt",type:"datetime",name:"createdAt",uiSchema:{type:"datetime",title:`{{t("Triggered at", { ns: "${r}" })}}`,"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{interface:"integer",type:"bigInt",name:"cost",uiSchema:{type:"bigInt",title:`{{t("Execution time(ms)", { ns: "${r}" })}}`,"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{type:"number",name:"status",interface:"select",uiSchema:{title:`{{t("Status", { ns: "${r}" })}}`,type:"string","x-component":"Select","x-decorator":"FormItem",enum:p.JobStatusOptions}},{name:"node",type:"belongsTo",interface:"m2o",target:"node",targetKey:"id",foreignKey:"nodeId",collectionName:"node",uiSchema:{type:"object",title:i("Node"),"x-component":"AssociationField","x-component-props":{fieldNames:{value:"title",label:"title"}}}}]},I={name:"node",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:i("Node ID"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"input",type:"string",name:"title",uiSchema:{type:"string",title:i("Node title"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{name:"workflow",type:"belongsTo",interface:"m2m",target:"workflow",targetKey:"id",foreignKey:"workflowId",collectionName:"workflow",uiSchema:{type:"object",title:i("Workflow"),"x-component":"AssociationField","x-component-props":{fieldNames:{value:"title",label:"title"}}}}]},V={name:"workflow",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:i("Workflow ID"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"input",type:"string",name:"title",uiSchema:{type:"string",title:i("Workflow title"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}}]},A={type:"void",properties:{[d.uid()]:{type:"void","x-component":"CardItem","x-decorator":"TableBlockProvider","x-decorator-props":{collection:f,action:"list",params:{pageSize:20,sort:["-createdAt"],appends:["node.workflow","node"],filter:{}}},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{filter:{type:"void",title:'{{ t("Filter") }}',"x-action":"filter","x-designer":"Filter.Action.Designer","x-component":"Filter.Action","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"},refresher:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-use-component-props":"useRefreshActionProps","x-designer":"Action.Designer","x-component-props":{icon:"ReloadOutlined"},"x-align":"right"}}},table:{type:"array","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"id"},properties:{actions:{type:"void",title:'{{ t("Actions") }}',"x-component":"TableV2.Column","x-component-props":{width:50},properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{link:{type:"void","x-component":"jobsLink"}}}}},id:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{id:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}},node:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20,align:"center",style:{display:"grid",placeItems:"center"}},title:i("Node title"),properties:{node:{type:"string","x-collection-field":"jobs.node","x-component":"CollectionField","x-read-pretty":!0}}},workflow:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20,align:"center",style:{display:"grid",placeItems:"center"}},title:i("Workflow title"),properties:{workflow:{type:"string","x-component":"jobWorkflowTitleColumn","x-read-pretty":!0}}},createdAt:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:100},properties:{createdAt:{type:"datetime","x-component":"CollectionField","x-component-props":{showTime:!0},"x-read-pretty":!0}}},cost:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{cost:{type:"bigInt","x-component":"CollectionField","x-read-pretty":!0}}},version:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:50},title:'{{ t("Version") }}',properties:{version:{type:"number","x-component":"jobVersionColumn","x-read-pretty":!0}}},status:{type:"void",title:`{{t("Status", { ns: "${r}" })}}`,"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{status:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}}}}}}}};function D(){const n=m.useContext(e.SchemaComponentContext);return t.jsx(e.ExtendCollectionsProvider,{collections:[y,v],children:t.jsx(e.SchemaComponentContext.Provider,{value:x(u({},n),{designable:!1}),children:t.jsx(e.SchemaComponent,{schema:S,components:{ExecutionLink:C,executionVersionColumn:l},scope:{}})})})}function F(){const n=m.useContext(e.SchemaComponentContext);return t.jsx(e.ExtendCollectionsProvider,{collections:[f,I,V],children:t.jsx(e.SchemaComponentContext.Provider,{value:x(u({},n),{designable:!1}),children:t.jsx(e.SchemaComponent,{schema:A,components:{jobsLink:g,jobVersionColumn:T,jobWorkflowTitleColumn:k},scope:{}})})})}class P extends e.Plugin{load(){return h(this,null,function*(){this.app.systemSettingsManager.add("business-components.executionanalysis",{title:`{{t("Executions analysis", { ns: "${r}" })}}`,icon:"FileSearchOutlined",Component:D,sort:99}),this.app.systemSettingsManager.add("business-components.jobanalysis",{title:`{{t("Jobs analysis", { ns: "${r}" })}}`,icon:"FileSearchOutlined",Component:F,sort:100})})}}o.default=P,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("react"),require("@tachybase/module-workflow/client"),require("react-router-dom"),require("@tachybase/schema")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","react","@tachybase/module-workflow/client","react-router-dom","@tachybase/schema"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o["@tachybase/plugin-workflow-analysis"]={},o["@tachybase/client"],o.jsxRuntime,o.react,o["@tachybase/module-workflow"],o["react-router-dom"],o["@tachybase/schema"]))})(this,function(o,e,t,m,p,c,d){"use strict";var j=Object.defineProperty,E=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?j(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))N.call(e,t)&&w(o,t,e[t]);if(b)for(var t of b(e))O.call(e,t)&&w(o,t,e[t]);return o},x=(o,e)=>E(o,W(e));var h=(o,e,t)=>new Promise((m,p)=>{var c=i=>{try{r(t.next(i))}catch(l){p(l)}},d=i=>{try{r(t.throw(i))}catch(l){p(l)}},r=i=>i.done?m(i.value):Promise.resolve(i.value).then(c,d);r((t=t.apply(o,e)).next())});const r="@tachybase/plugin-workflow-analysis",i=n=>e.tval(n,{ns:r}),l=()=>{const{workflowId:n}=e.useCollectionRecordData(),{setVisible:s}=e.useActionContext();return t.jsx(c.Link,{to:p.getWorkflowDetailPath(n),onClick:()=>s(!1),children:`#${n}`})},C=()=>{const{t:n}=e.useTranslation(),{id:s}=e.useCollectionRecordData(),{setVisible:a}=e.useActionContext();return t.jsx(c.Link,{to:p.getWorkflowExecutionsPath(s),onClick:()=>a(!1),children:n("View")})},g=()=>{const{t:n}=e.useTranslation(),{executionId:s}=e.useCollectionRecordData(),{setVisible:a}=e.useActionContext();return t.jsx(c.Link,{to:p.getWorkflowExecutionsPath(s),onClick:()=>a(!1),children:n("View")})},k=()=>{var a;const{node:n}=e.useCollectionRecordData(),s=(a=n.workflow)==null?void 0:a.title;return t.jsx("span",{style:{textAlign:"center",cursor:"pointer"},children:s})},T=()=>{const n=e.useCollectionRecordData(),{setVisible:s}=e.useActionContext();return t.jsx(c.Link,{to:p.getWorkflowDetailPath(n.node.workflowId),onClick:()=>s(!1),children:`#${n.node.workflowId}`})},y={name:"executions",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"m2o",type:"belongsTo",name:"workflow",target:"workflows",targetKey:"workflowId",foreignKey:"id",collectionName:"workflows",uiSchema:{type:"object",title:`{{t("Workflow title", { ns: "${r}" })}}`,"x-component":"AssociationField","x-component-props":{fieldNames:{value:"title",label:"title"}}}},{interface:"createdAt",type:"datetime",name:"createdAt",uiSchema:{type:"datetime",title:`{{t("Triggered at", { ns: "${r}" })}}`,"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{interface:"integer",type:"bigInt",name:"executionCost",uiSchema:{type:"bigInt",title:`{{t("Execution time", { ns: "${r}" })}}`,"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{type:"number",name:"status",interface:"select",uiSchema:{title:`{{t("Status", { ns: "${r}" })}}`,type:"string","x-component":"Select","x-decorator":"FormItem",enum:p.ExecutionStatusOptions}}]},v={name:"workflows",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{type:"string",name:"title",interface:"input",uiSchema:{title:'{{t("Name")}}',type:"string","x-component":"Input",required:!0}}]},S={type:"void",properties:{[d.uid()]:{type:"void","x-component":"CardItem","x-decorator":"TableBlockProvider","x-decorator-props":{collection:y,action:"list",params:{pageSize:20,sort:["-createdAt"]}},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{filter:{type:"void",title:'{{ t("Filter") }}',"x-action":"filter","x-designer":"Filter.Action.Designer","x-component":"Filter.Action","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"},refresher:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-use-component-props":"useRefreshActionProps","x-designer":"Action.Designer","x-component-props":{icon:"ReloadOutlined"},"x-align":"right"}}},table:{type:"array","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"id"},properties:{actions:{type:"void",title:'{{ t("Actions") }}',"x-component":"TableV2.Column","x-component-props":{width:50},properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{link:{type:"void","x-component":"ExecutionLink"}}}}},id:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:50},properties:{id:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}},workflow:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20,align:"center",style:{display:"grid",placeItems:"center"}},properties:{workflow:{type:"string","x-collection-field":"executions.workflow","x-component":"CollectionField","x-read-pretty":!0}}},createdAt:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:100},properties:{createdAt:{type:"datetime","x-component":"CollectionField","x-component-props":{showTime:!0},"x-read-pretty":!0}}},executionCost:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{executionCost:{type:"bigInt","x-component":"CollectionField","x-read-pretty":!0}}},workflowId:{type:"void",title:`{{t("Version", { ns: "${r}" })}}`,"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:50},properties:{workflowId:{type:"number","x-component":"executionVersionColumn","x-read-pretty":!0}}},status:{type:"void",title:`{{t("Status", { ns: "${r}" })}}`,"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{status:{type:"number","x-decorator":"ExecutionStatusColumn","x-component":"CollectionField","x-read-pretty":!0}}}}}}}}},f={name:"jobs",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"createdAt",type:"datetime",name:"createdAt",uiSchema:{type:"datetime",title:`{{t("Triggered at", { ns: "${r}" })}}`,"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{interface:"integer",type:"bigInt",name:"cost",uiSchema:{type:"bigInt",title:`{{t("Execution time(ms)", { ns: "${r}" })}}`,"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{type:"number",name:"status",interface:"select",uiSchema:{title:`{{t("Status", { ns: "${r}" })}}`,type:"string","x-component":"Select","x-decorator":"FormItem",enum:p.JobStatusOptions}},{name:"node",type:"belongsTo",interface:"m2o",target:"node",targetKey:"id",foreignKey:"nodeId",collectionName:"node",uiSchema:{type:"object",title:i("Node"),"x-component":"AssociationField","x-component-props":{fieldNames:{value:"title",label:"title"}}}}]},I={name:"node",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:i("Node ID"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"input",type:"string",name:"title",uiSchema:{type:"string",title:i("Node title"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{name:"workflow",type:"belongsTo",interface:"m2m",target:"workflow",targetKey:"id",foreignKey:"workflowId",collectionName:"workflow",uiSchema:{type:"object",title:i("Workflow"),"x-component":"AssociationField","x-component-props":{fieldNames:{value:"title",label:"title"}}}}]},V={name:"workflow",fields:[{interface:"id",type:"bigInt",name:"id",uiSchema:{type:"number",title:i("Workflow ID"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}},{interface:"input",type:"string",name:"title",uiSchema:{type:"string",title:i("Workflow title"),"x-component":"Input","x-component-props":{},"x-read-pretty":!0}}]},A={type:"void",properties:{[d.uid()]:{type:"void","x-component":"CardItem","x-decorator":"TableBlockProvider","x-decorator-props":{collection:f,action:"list",params:{pageSize:20,sort:["-createdAt"],appends:["node.workflow","node"],filter:{}}},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{filter:{type:"void",title:'{{ t("Filter") }}',"x-action":"filter","x-designer":"Filter.Action.Designer","x-component":"Filter.Action","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"},refresher:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-use-component-props":"useRefreshActionProps","x-designer":"Action.Designer","x-component-props":{icon:"ReloadOutlined"},"x-align":"right"}}},table:{type:"array","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"id"},properties:{actions:{type:"void",title:'{{ t("Actions") }}',"x-component":"TableV2.Column","x-component-props":{width:50},properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{link:{type:"void","x-component":"jobsLink"}}}}},id:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{id:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}},node:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20,align:"center",style:{display:"grid",placeItems:"center"}},title:i("Node title"),properties:{node:{type:"string","x-collection-field":"jobs.node","x-component":"CollectionField","x-read-pretty":!0}}},workflow:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20,align:"center",style:{display:"grid",placeItems:"center"}},title:i("Workflow title"),properties:{workflow:{type:"string","x-component":"jobWorkflowTitleColumn","x-read-pretty":!0}}},createdAt:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:100},properties:{createdAt:{type:"datetime","x-component":"CollectionField","x-component-props":{showTime:!0},"x-read-pretty":!0}}},cost:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{cost:{type:"bigInt","x-component":"CollectionField","x-read-pretty":!0}}},version:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:50},title:'{{ t("Version") }}',properties:{version:{type:"number","x-component":"jobVersionColumn","x-read-pretty":!0}}},status:{type:"void",title:`{{t("Status", { ns: "${r}" })}}`,"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{sorter:!0,width:50},properties:{status:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}}}}}}}};function D(){const n=m.useContext(e.SchemaComponentContext);return t.jsx(e.ExtendCollectionsProvider,{collections:[y,v],children:t.jsx(e.SchemaComponentContext.Provider,{value:x(u({},n),{designable:!1}),children:t.jsx(e.SchemaComponent,{schema:S,components:{ExecutionLink:C,executionVersionColumn:l},scope:{}})})})}function F(){const n=m.useContext(e.SchemaComponentContext);return t.jsx(e.ExtendCollectionsProvider,{collections:[f,I,V],children:t.jsx(e.SchemaComponentContext.Provider,{value:x(u({},n),{designable:!1}),children:t.jsx(e.SchemaComponent,{schema:A,components:{jobsLink:g,jobVersionColumn:T,jobWorkflowTitleColumn:k},scope:{}})})})}class P extends e.Plugin{load(){return h(this,null,function*(){this.app.systemSettingsManager.add("business-components.executionanalysis",{title:`{{t("Executions analysis", { ns: "${r}" })}}`,icon:"FileSearchOutlined",Component:D,sort:99,aclSnippet:"pm.business-components.executionanalysis"}),this.app.systemSettingsManager.add("business-components.jobanalysis",{title:`{{t("Jobs analysis", { ns: "${r}" })}}`,icon:"FileSearchOutlined",Component:F,sort:100,aclSnippet:"pm.business-components.jobanalysis"})})}}o.default=P,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "0.
|
|
4
|
-
"@tachybase/server": "0.
|
|
5
|
-
"@tachybase/module-workflow": "0.
|
|
3
|
+
"@tachybase/client": "1.0.18",
|
|
4
|
+
"@tachybase/server": "1.0.18",
|
|
5
|
+
"@tachybase/module-workflow": "1.0.18",
|
|
6
6
|
"react-router-dom": "6.28.1",
|
|
7
|
-
"@tachybase/schema": "0.
|
|
7
|
+
"@tachybase/schema": "1.0.18"
|
|
8
8
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -28,6 +28,14 @@ class PluginWorkflowAnalysisServer extends import_server.Plugin {
|
|
|
28
28
|
async beforeLoad() {
|
|
29
29
|
}
|
|
30
30
|
async load() {
|
|
31
|
+
this.app.acl.registerSnippet({
|
|
32
|
+
name: "pm.business-components.executionanalysis",
|
|
33
|
+
actions: ["executions:list"]
|
|
34
|
+
});
|
|
35
|
+
this.app.acl.registerSnippet({
|
|
36
|
+
name: "pm.business-components.jobanalysis",
|
|
37
|
+
actions: ["jobs:list"]
|
|
38
|
+
});
|
|
31
39
|
}
|
|
32
40
|
async install() {
|
|
33
41
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-workflow-analysis",
|
|
3
3
|
"displayName": "Workflow analysis tool",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.18",
|
|
5
5
|
"description": "Workflow Analysis Tool: Used for Time Consumption and Error Analysis",
|
|
6
6
|
"main": "dist/server/index.js",
|
|
7
7
|
"devDependencies": {
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"react-router-dom": "6.28.1"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@tachybase/actions": "0.
|
|
15
|
-
"@tachybase/client": "0.
|
|
16
|
-
"@tachybase/database": "0.
|
|
17
|
-
"@tachybase/module-workflow": "0.
|
|
18
|
-
"@tachybase/schema": "0.
|
|
19
|
-
"@tachybase/test": "0.
|
|
20
|
-
"@tachybase/server": "0.
|
|
21
|
-
"@tachybase/utils": "0.
|
|
14
|
+
"@tachybase/actions": "1.0.18",
|
|
15
|
+
"@tachybase/client": "1.0.18",
|
|
16
|
+
"@tachybase/database": "1.0.18",
|
|
17
|
+
"@tachybase/module-workflow": "1.0.18",
|
|
18
|
+
"@tachybase/schema": "1.0.18",
|
|
19
|
+
"@tachybase/test": "1.0.18",
|
|
20
|
+
"@tachybase/server": "1.0.18",
|
|
21
|
+
"@tachybase/utils": "1.0.18"
|
|
22
22
|
}
|
|
23
23
|
}
|