From 491b6d2b17d4b9175930a0f5e15a6f54f8da8c62 Mon Sep 17 00:00:00 2001
From: Matthias Lehner <143808484+matthiaslehnertum@users.noreply.github.com>
Date: Mon, 16 Oct 2023 04:47:00 +0900
Subject: [PATCH] Add initial bpmn diagram implementation (#303)
---
.gitignore | 3 +-
public/index.html.ejs | 3 +-
.../components/create-pane/create-pane.tsx | 5 +
src/main/i18n/de.json | 23 ++++
src/main/i18n/en.json | 23 ++++
.../bpmn-annotation-component.tsx | 41 +++++++
.../bpmn/bpmn-annotation/bpmn-annotation.ts | 18 +++
.../bpmn-call-activity-component.tsx | 35 ++++++
.../bpmn-call-activity/bpmn-call-activity.ts | 15 +++
.../bpmn-conversation-component.tsx | 35 ++++++
.../bpmn-conversation-update.tsx | 94 ++++++++++++++
.../bpmn-conversation/bpmn-conversation.ts | 47 +++++++
.../packages/bpmn/bpmn-diagram-preview.ts | 93 ++++++++++++++
.../bpmn-end-event-component.tsx | 55 +++++++++
.../bpmn/bpmn-end-event/bpmn-end-event.ts | 27 ++++
.../bpmn/bpmn-flow/bpmn-flow-component.tsx | 90 ++++++++++++++
.../bpmn/bpmn-flow/bpmn-flow-update.tsx | 115 ++++++++++++++++++
src/main/packages/bpmn/bpmn-flow/bpmn-flow.ts | 40 ++++++
.../bpmn-gateway/bpmn-gateway-component.tsx | 47 +++++++
.../bpmn/bpmn-gateway/bpmn-gateway-update.tsx | 110 +++++++++++++++++
.../bpmn/bpmn-gateway/bpmn-gateway.ts | 54 ++++++++
.../bpmn-complex-gateway-component.tsx | 48 ++++++++
.../bpmn-event-based-gateway-component.tsx | 54 ++++++++
...xclusive-event-based-gateway-component.tsx | 48 ++++++++
.../bpmn-exclusive-gateway-component.tsx | 38 ++++++
.../bpmn-inclusive-gateway-component.tsx | 34 ++++++
...parallel-event-based-gateway-component.tsx | 44 +++++++
.../bpmn-parallel-gateway-component.tsx | 38 ++++++
.../bpmn-intermediate-event-component.tsx | 60 +++++++++
.../bpmn-intermediate-event.ts | 26 ++++
.../bpmn-start-event-component.tsx | 54 ++++++++
.../bpmn/bpmn-start-event/bpmn-start-event.ts | 27 ++++
.../bpmn-subprocess-component.tsx | 35 ++++++
.../bpmn/bpmn-subprocess/bpmn-subprocess.ts | 15 +++
.../bpmn/bpmn-task/bpmn-task-component.tsx | 34 ++++++
src/main/packages/bpmn/bpmn-task/bpmn-task.ts | 15 +++
.../bpmn-transaction-component.tsx | 44 +++++++
.../bpmn/bpmn-transaction/bpmn-transaction.ts | 15 +++
src/main/packages/bpmn/index.ts | 18 +++
src/main/packages/components.ts | 22 ++++
src/main/packages/diagram-type.ts | 1 +
src/main/packages/popups.ts | 14 +++
src/main/packages/uml-element-type.ts | 6 +-
src/main/packages/uml-elements.ts | 20 +++
src/main/packages/uml-relationship-type.ts | 6 +-
src/main/packages/uml-relationships.ts | 2 +
src/main/typings.ts | 14 +++
.../bpmn-annotation-component-test.tsx.snap | 43 +++++++
.../bpmn-annotation-component-test.tsx | 24 ++++
...bpmn-call-activity-component-test.tsx.snap | 38 ++++++
.../bpmn-call-activity-component-test.tsx | 26 ++++
.../bpmn-conversation-component-test.tsx.snap | 34 ++++++
.../bpmn-conversation-component-test.tsx | 26 ++++
.../bpmn-end-event-component-test.tsx.snap | 36 ++++++
.../bpmn-end-event-component-test.tsx | 26 ++++
.../bpmn-flow-component-test.tsx.snap | 69 +++++++++++
.../bpmn-flow/bpmn-flow-component-test.tsx | 26 ++++
.../bpmn-gateway-component-test.tsx.snap | 47 +++++++
.../bpmn-gateway-component-test.tsx | 26 ++++
...intermediate-event-component-test.tsx.snap | 43 +++++++
...bpmn-intermediate-event-component-test.tsx | 26 ++++
.../bpmn-start-event-component-test.tsx.snap | 35 ++++++
.../bpmn-start-event-component-test.tsx | 26 ++++
.../bpmn-subprocess-component-test.tsx.snap | 38 ++++++
.../bpmn-subprocess-component-test.tsx | 26 ++++
.../bpmn-task-component-test.tsx.snap | 37 ++++++
.../bpmn-task/bpmn-task-component-test.tsx | 26 ++++
.../bpmn-transaction-component-test.tsx.snap | 48 ++++++++
.../bpmn-transaction-component-test.tsx | 26 ++++
69 files changed, 2453 insertions(+), 4 deletions(-)
create mode 100644 src/main/packages/bpmn/bpmn-annotation/bpmn-annotation-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-annotation/bpmn-annotation.ts
create mode 100644 src/main/packages/bpmn/bpmn-call-activity/bpmn-call-activity-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-call-activity/bpmn-call-activity.ts
create mode 100644 src/main/packages/bpmn/bpmn-conversation/bpmn-conversation-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-conversation/bpmn-conversation-update.tsx
create mode 100644 src/main/packages/bpmn/bpmn-conversation/bpmn-conversation.ts
create mode 100644 src/main/packages/bpmn/bpmn-diagram-preview.ts
create mode 100644 src/main/packages/bpmn/bpmn-end-event/bpmn-end-event-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-end-event/bpmn-end-event.ts
create mode 100644 src/main/packages/bpmn/bpmn-flow/bpmn-flow-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-flow/bpmn-flow-update.tsx
create mode 100644 src/main/packages/bpmn/bpmn-flow/bpmn-flow.ts
create mode 100644 src/main/packages/bpmn/bpmn-gateway/bpmn-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/bpmn-gateway-update.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/bpmn-gateway.ts
create mode 100644 src/main/packages/bpmn/bpmn-gateway/gateways-components/bpmn-complex-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/gateways-components/bpmn-event-based-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/gateways-components/bpmn-exclusive-event-based-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/gateways-components/bpmn-exclusive-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/gateways-components/bpmn-inclusive-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/gateways-components/bpmn-parallel-event-based-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-gateway/gateways-components/bpmn-parallel-gateway-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-intermediate-event/bpmn-intermediate-event-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-intermediate-event/bpmn-intermediate-event.ts
create mode 100644 src/main/packages/bpmn/bpmn-start-event/bpmn-start-event-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-start-event/bpmn-start-event.ts
create mode 100644 src/main/packages/bpmn/bpmn-subprocess/bpmn-subprocess-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-subprocess/bpmn-subprocess.ts
create mode 100644 src/main/packages/bpmn/bpmn-task/bpmn-task-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-task/bpmn-task.ts
create mode 100644 src/main/packages/bpmn/bpmn-transaction/bpmn-transaction-component.tsx
create mode 100644 src/main/packages/bpmn/bpmn-transaction/bpmn-transaction.ts
create mode 100644 src/main/packages/bpmn/index.ts
create mode 100644 src/tests/unit/packages/bpmn/bpmn-annotation/__snapshots__/bpmn-annotation-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-annotation/bpmn-annotation-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-call-activity/__snapshots__/bpmn-call-activity-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-call-activity/bpmn-call-activity-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-conversation/__snapshots__/bpmn-conversation-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-conversation/bpmn-conversation-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-end-event/__snapshots__/bpmn-end-event-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-end-event/bpmn-end-event-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-flow/__snapshots__/bpmn-flow-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-flow/bpmn-flow-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-gateway/__snapshots__/bpmn-gateway-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-gateway/bpmn-gateway-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-intermediate-event/__snapshots__/bpmn-intermediate-event-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-intermediate-event/bpmn-intermediate-event-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-start-event/__snapshots__/bpmn-start-event-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-start-event/bpmn-start-event-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-subprocess/__snapshots__/bpmn-subprocess-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-subprocess/bpmn-subprocess-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-task/__snapshots__/bpmn-task-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-task/bpmn-task-component-test.tsx
create mode 100644 src/tests/unit/packages/bpmn/bpmn-transaction/__snapshots__/bpmn-transaction-component-test.tsx.snap
create mode 100644 src/tests/unit/packages/bpmn/bpmn-transaction/bpmn-transaction-component-test.tsx
diff --git a/.gitignore b/.gitignore
index 541fa922a..f697294d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,5 @@ dist/
/coverage/
/docs/build/
cypress
-test-report.html
\ No newline at end of file
+test-report.html
+**/.DS_Store
diff --git a/public/index.html.ejs b/public/index.html.ejs
index 329fcb85b..446a166c5 100644
--- a/public/index.html.ejs
+++ b/public/index.html.ejs
@@ -36,6 +36,7 @@
+
@@ -88,4 +89,4 @@