From 762943eaf9f425508fe642a15cec312735a13dd1 Mon Sep 17 00:00:00 2001 From: wumail <1059037014@qq.com> Date: Thu, 30 Nov 2023 16:57:37 +0800 Subject: [PATCH] feat: add demo of logicflow-engine --- demo/bpmn-and-engine/.gitignore | 24 + demo/bpmn-and-engine/.vscode/extensions.json | 3 + demo/bpmn-and-engine/README.md | 18 + demo/bpmn-and-engine/index.html | 24 + demo/bpmn-and-engine/package.json | 27 + demo/bpmn-and-engine/public/vite.svg | 1 + demo/bpmn-and-engine/src/App.vue | 22 + demo/bpmn-and-engine/src/assets/vue.svg | 1 + .../src/components/FlowController.vue | 91 + .../Panels/components/condition.vue | 25 + .../src/components/Panels/components/index.ts | 13 + .../components/Panels/components/normal.vue | 45 + .../components/Panels/components/panels.vue | 36 + .../Panels/components/processRef.vue | 29 + .../Panels/components/timerDefinition.vue | 57 + .../components/Panels/components/variable.vue | 26 + .../src/components/Panels/index.ts | 16 + .../src/components/Panels/index.vue | 79 + .../src/components/Pattern.vue | 118 + .../src/components/SvgIcon.vue | 47 + demo/bpmn-and-engine/src/components/Tools.vue | 25 + .../src/custom/edges/curvedEdge.ts | 206 + demo/bpmn-and-engine/src/engine/nodes/end.ts | 14 + .../src/engine/nodes/gateway.ts | 19 + .../bpmn-and-engine/src/engine/nodes/start.ts | 28 + demo/bpmn-and-engine/src/engine/nodes/task.ts | 24 + .../src/icons/bpmn-empty-state.svg | 14 + demo/bpmn-and-engine/src/icons/bpmn-entry.svg | 3 + .../src/icons/bpmn-icon-association.svg | 3 + .../icons/bpmn-icon-business-rule-task.svg | 6 + .../src/icons/bpmn-icon-call-activity.svg | 3 + .../src/icons/bpmn-icon-collaboration.svg | 11 + .../src/icons/bpmn-icon-conditional-flow.svg | 3 + .../src/icons/bpmn-icon-connection.svg | 3 + ...pmn-icon-data-input-output-association.svg | 4 + .../src/icons/bpmn-icon-data-input.svg | 3 + .../src/icons/bpmn-icon-data-object.svg | 3 + .../src/icons/bpmn-icon-data-output.svg | 3 + .../src/icons/bpmn-icon-data-store.svg | 3 + .../src/icons/bpmn-icon-default-flow.svg | 3 + .../src/icons/bpmn-icon-end-event-cancel.svg | 3 + .../bpmn-icon-end-event-compensation.svg | 3 + .../src/icons/bpmn-icon-end-event-error.svg | 3 + .../icons/bpmn-icon-end-event-escalation.svg | 3 + .../src/icons/bpmn-icon-end-event-link.svg | 3 + .../src/icons/bpmn-icon-end-event-message.svg | 3 + .../icons/bpmn-icon-end-event-multiple.svg | 3 + .../src/icons/bpmn-icon-end-event-none.svg | 3 + .../src/icons/bpmn-icon-end-event-signal.svg | 3 + .../icons/bpmn-icon-end-event-terminate.svg | 3 + .../bpmn-icon-event-subprocess-expanded.svg | 3 + .../src/icons/bpmn-icon-gateway-complex.svg | 3 + .../icons/bpmn-icon-gateway-eventbased.svg | 3 + .../src/icons/bpmn-icon-gateway-none.svg | 3 + .../src/icons/bpmn-icon-gateway-or.svg | 3 + .../src/icons/bpmn-icon-gateway-parallel.svg | 3 + .../src/icons/bpmn-icon-gateway-xor.svg | 3 + .../src/icons/bpmn-icon-group.svg | 3 + ...n-icon-intermediate-event-catch-cancel.svg | 3 + ...-intermediate-event-catch-compensation.svg | 3 + ...con-intermediate-event-catch-condition.svg | 3 + ...mn-icon-intermediate-event-catch-error.svg | 3 + ...on-intermediate-event-catch-escalation.svg | 3 + ...pmn-icon-intermediate-event-catch-link.svg | 3 + ...-icon-intermediate-event-catch-message.svg | 3 + ...icon-intermediate-event-catch-multiple.svg | 3 + ...event-catch-non-interrupting-condition.svg | 3 + ...vent-catch-non-interrupting-escalation.svg | 3 + ...e-event-catch-non-interrupting-message.svg | 3 + ...-event-catch-non-interrupting-multiple.svg | 3 + ...-event-catch-non-interrupting-parallel.svg | 3 + ...te-event-catch-non-interrupting-signal.svg | 3 + ...ate-event-catch-non-interrupting-timer.svg | 3 + ...rmediate-event-catch-parallel-multiple.svg | 3 + ...n-icon-intermediate-event-catch-signal.svg | 3 + ...mn-icon-intermediate-event-catch-timer.svg | 3 + .../bpmn-icon-intermediate-event-none.svg | 3 + ...-intermediate-event-throw-compensation.svg | 3 + ...on-intermediate-event-throw-escalation.svg | 3 + ...pmn-icon-intermediate-event-throw-link.svg | 3 + ...-icon-intermediate-event-throw-message.svg | 3 + ...icon-intermediate-event-throw-multiple.svg | 3 + ...n-icon-intermediate-event-throw-signal.svg | 3 + .../src/icons/bpmn-icon-lane.svg | 3 + .../src/icons/bpmn-icon-manual-task.svg | 3 + .../src/icons/bpmn-icon-message-flow.svg | 3 + .../src/icons/bpmn-icon-participant.svg | 3 + .../src/icons/bpmn-icon-process.svg | 3 + .../src/icons/bpmn-icon-receive-task.svg | 3 + .../src/icons/bpmn-icon-script-task.svg | 3 + .../src/icons/bpmn-icon-send-task.svg | 3 + .../src/icons/bpmn-icon-service-task.svg | 3 + .../bpmn-icon-start-event-compensation.svg | 3 + .../icons/bpmn-icon-start-event-condition.svg | 3 + .../src/icons/bpmn-icon-start-event-error.svg | 3 + .../bpmn-icon-start-event-escalation.svg | 3 + .../icons/bpmn-icon-start-event-message.svg | 3 + .../icons/bpmn-icon-start-event-multiple.svg | 3 + ...start-event-non-interrupting-condition.svg | 3 + ...tart-event-non-interrupting-escalation.svg | 3 + ...n-start-event-non-interrupting-message.svg | 3 + ...-start-event-non-interrupting-multiple.svg | 3 + ...ent-non-interrupting-parallel-multiple.svg | 3 + ...on-start-event-non-interrupting-signal.svg | 3 + ...con-start-event-non-interrupting-timer.svg | 3 + .../src/icons/bpmn-icon-start-event-none.svg | 3 + ...pmn-icon-start-event-parallel-multiple.svg | 3 + .../icons/bpmn-icon-start-event-signal.svg | 3 + .../src/icons/bpmn-icon-start-event-timer.svg | 3 + .../icons/bpmn-icon-subprocess-collapsed.svg | 3 + .../icons/bpmn-icon-subprocess-expanded.svg | 3 + .../src/icons/bpmn-icon-task-none.svg | 3 + .../src/icons/bpmn-icon-text-annotation.svg | 3 + .../src/icons/bpmn-icon-transaction.svg | 3 + .../src/icons/bpmn-icon-user-task.svg | 3 + .../src/icons/bpmn-multiple-state.svg | 22 + .../src/icons/flow-control-pause.svg | 3 + .../src/icons/flow-control-play.svg | 3 + .../src/icons/flow-control-refresh.svg | 4 + .../src/icons/flow-control-stop.svg | 3 + demo/bpmn-and-engine/src/icons/index.js | 223 + demo/bpmn-and-engine/src/main.ts | 6 + demo/bpmn-and-engine/src/pages/index.vue | 383 ++ demo/bpmn-and-engine/src/style.css | 80 + demo/bpmn-and-engine/src/vite-env.d.ts | 1 + demo/bpmn-and-engine/tsconfig.json | 25 + demo/bpmn-and-engine/tsconfig.node.json | 10 + demo/bpmn-and-engine/vite.config.ts | 34 + demo/bpmn-and-engine/yarn.lock | 4328 +++++++++++++++++ examples/dist/index.html | 2 +- examples/examples/config.json | 2 +- .../demo/config.json" | 6 + examples/src/screenshots/bpmn-and-engine.png | Bin 0 -> 28964 bytes yarn.lock | 570 ++- 134 files changed, 7007 insertions(+), 6 deletions(-) create mode 100644 demo/bpmn-and-engine/.gitignore create mode 100644 demo/bpmn-and-engine/.vscode/extensions.json create mode 100644 demo/bpmn-and-engine/README.md create mode 100644 demo/bpmn-and-engine/index.html create mode 100644 demo/bpmn-and-engine/package.json create mode 100644 demo/bpmn-and-engine/public/vite.svg create mode 100644 demo/bpmn-and-engine/src/App.vue create mode 100644 demo/bpmn-and-engine/src/assets/vue.svg create mode 100644 demo/bpmn-and-engine/src/components/FlowController.vue create mode 100644 demo/bpmn-and-engine/src/components/Panels/components/condition.vue create mode 100644 demo/bpmn-and-engine/src/components/Panels/components/index.ts create mode 100644 demo/bpmn-and-engine/src/components/Panels/components/normal.vue create mode 100644 demo/bpmn-and-engine/src/components/Panels/components/panels.vue create mode 100644 demo/bpmn-and-engine/src/components/Panels/components/processRef.vue create mode 100644 demo/bpmn-and-engine/src/components/Panels/components/timerDefinition.vue create mode 100644 demo/bpmn-and-engine/src/components/Panels/components/variable.vue create mode 100644 demo/bpmn-and-engine/src/components/Panels/index.ts create mode 100644 demo/bpmn-and-engine/src/components/Panels/index.vue create mode 100644 demo/bpmn-and-engine/src/components/Pattern.vue create mode 100644 demo/bpmn-and-engine/src/components/SvgIcon.vue create mode 100644 demo/bpmn-and-engine/src/components/Tools.vue create mode 100644 demo/bpmn-and-engine/src/custom/edges/curvedEdge.ts create mode 100644 demo/bpmn-and-engine/src/engine/nodes/end.ts create mode 100644 demo/bpmn-and-engine/src/engine/nodes/gateway.ts create mode 100644 demo/bpmn-and-engine/src/engine/nodes/start.ts create mode 100644 demo/bpmn-and-engine/src/engine/nodes/task.ts create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-empty-state.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-entry.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-association.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-business-rule-task.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-call-activity.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-collaboration.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-conditional-flow.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-connection.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-data-input-output-association.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-data-input.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-data-object.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-data-output.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-data-store.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-default-flow.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-cancel.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-compensation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-error.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-escalation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-link.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-message.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-none.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-signal.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-end-event-terminate.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-event-subprocess-expanded.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-gateway-complex.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-gateway-eventbased.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-gateway-none.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-gateway-or.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-gateway-parallel.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-gateway-xor.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-group.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-cancel.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-compensation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-condition.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-error.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-escalation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-link.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-message.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-non-interrupting-condition.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-non-interrupting-escalation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-non-interrupting-message.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-non-interrupting-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-non-interrupting-parallel.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-non-interrupting-signal.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-non-interrupting-timer.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-parallel-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-signal.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-catch-timer.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-none.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-throw-compensation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-throw-escalation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-throw-link.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-throw-message.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-throw-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-intermediate-event-throw-signal.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-lane.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-manual-task.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-message-flow.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-participant.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-process.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-receive-task.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-script-task.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-send-task.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-service-task.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-compensation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-condition.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-error.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-escalation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-message.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-non-interrupting-condition.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-non-interrupting-escalation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-non-interrupting-message.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-non-interrupting-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-non-interrupting-parallel-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-non-interrupting-signal.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-non-interrupting-timer.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-none.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-parallel-multiple.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-signal.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-start-event-timer.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-subprocess-collapsed.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-subprocess-expanded.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-task-none.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-text-annotation.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-transaction.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-icon-user-task.svg create mode 100644 demo/bpmn-and-engine/src/icons/bpmn-multiple-state.svg create mode 100644 demo/bpmn-and-engine/src/icons/flow-control-pause.svg create mode 100644 demo/bpmn-and-engine/src/icons/flow-control-play.svg create mode 100644 demo/bpmn-and-engine/src/icons/flow-control-refresh.svg create mode 100644 demo/bpmn-and-engine/src/icons/flow-control-stop.svg create mode 100644 demo/bpmn-and-engine/src/icons/index.js create mode 100644 demo/bpmn-and-engine/src/main.ts create mode 100644 demo/bpmn-and-engine/src/pages/index.vue create mode 100644 demo/bpmn-and-engine/src/style.css create mode 100644 demo/bpmn-and-engine/src/vite-env.d.ts create mode 100644 demo/bpmn-and-engine/tsconfig.json create mode 100644 demo/bpmn-and-engine/tsconfig.node.json create mode 100644 demo/bpmn-and-engine/vite.config.ts create mode 100644 demo/bpmn-and-engine/yarn.lock create mode 100644 examples/src/screenshots/bpmn-and-engine.png diff --git a/demo/bpmn-and-engine/.gitignore b/demo/bpmn-and-engine/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/demo/bpmn-and-engine/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/demo/bpmn-and-engine/.vscode/extensions.json b/demo/bpmn-and-engine/.vscode/extensions.json new file mode 100644 index 0000000..c0a6e5a --- /dev/null +++ b/demo/bpmn-and-engine/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] +} diff --git a/demo/bpmn-and-engine/README.md b/demo/bpmn-and-engine/README.md new file mode 100644 index 0000000..ef72fd5 --- /dev/null +++ b/demo/bpmn-and-engine/README.md @@ -0,0 +1,18 @@ +# Vue 3 + TypeScript + Vite + +This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 ` + +
+ + + +