@jylups/flowable-bpmn-js 0.0.0-stage → 0.0.0
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/LICENSE +21 -0
- package/README.md +282 -2
- package/assets/flowable-bpmn-js-touch.css +76 -0
- package/assets/flowable-bpmn-js.css +70 -0
- package/dist/assets/bpmn-font/css/bpmn-codes.css +110 -0
- package/dist/assets/bpmn-font/css/bpmn-embedded.css +168 -0
- package/dist/assets/bpmn-font/css/bpmn.css +166 -0
- package/dist/assets/bpmn-font/font/bpmn.eot +0 -0
- package/dist/assets/bpmn-font/font/bpmn.svg +228 -0
- package/dist/assets/bpmn-font/font/bpmn.ttf +0 -0
- package/dist/assets/bpmn-font/font/bpmn.woff +0 -0
- package/dist/assets/bpmn-font/font/bpmn.woff2 +0 -0
- package/dist/assets/bpmn-js-bpmnlint.css +263 -0
- package/dist/assets/bpmn-js.css +151 -0
- package/dist/assets/diagram-js.css +1325 -0
- package/dist/assets/flowable-bpmn-js-touch.css +76 -0
- package/dist/assets/flowable-bpmn-js.css +70 -0
- package/dist/assets/properties-panel.css +1905 -0
- package/dist/flowable-bpmn-modeler.development.js +128087 -0
- package/dist/flowable-bpmn-modeler.development.js.map +1 -0
- package/dist/flowable-bpmn-modeler.production.min.js +348 -0
- package/dist/flowable-bpmn-navigated-viewer.development.js +28092 -0
- package/dist/flowable-bpmn-navigated-viewer.development.js.map +1 -0
- package/dist/flowable-bpmn-navigated-viewer.production.min.js +2 -0
- package/dist/flowable-bpmn-viewer.development.js +26751 -0
- package/dist/flowable-bpmn-viewer.development.js.map +1 -0
- package/dist/flowable-bpmn-viewer.production.min.js +2 -0
- package/index.d.ts +107 -0
- package/index.js +32 -0
- package/lib/Modeler.js +68 -0
- package/lib/NavigatedViewer.js +30 -0
- package/lib/NewDiagram.js +69 -0
- package/lib/Theme.js +32 -0
- package/lib/Viewer.js +32 -0
- package/lib/distro/Modeler.js +5 -0
- package/lib/distro/NavigatedViewer.js +5 -0
- package/lib/distro/Viewer.js +5 -0
- package/lib/draw/TypedTaskRenderer.js +81 -0
- package/lib/draw/index.js +10 -0
- package/lib/features/touch/InputTracker.js +34 -0
- package/lib/features/touch/LICENSE +21 -0
- package/lib/features/touch/TouchContextPad.js +197 -0
- package/lib/features/touch/TouchInteraction.js +1276 -0
- package/lib/features/touch/TouchLabelEditing.js +60 -0
- package/lib/features/touch/index.js +40 -0
- package/lib/features/typed-tasks/ReplaceWithTypedTaskHandler.js +63 -0
- package/lib/features/typed-tasks/TypedTaskPaletteProvider.js +76 -0
- package/lib/features/typed-tasks/TypedTaskReplaceMenuProvider.js +71 -0
- package/lib/features/typed-tasks/TypedTasks.js +127 -0
- package/lib/features/typed-tasks/icons.js +99 -0
- package/lib/features/typed-tasks/index.js +17 -0
- package/lib/lint/FlowableLinting.js +23 -0
- package/lib/lint/index.js +44 -0
- package/lib/lint/module.js +15 -0
- package/lib/lint/rules/called-element.js +19 -0
- package/lib/lint/rules/service-task-implementation.js +81 -0
- package/lib/lint/rules/valid-durations.js +102 -0
- package/lib/lint/values.js +71 -0
- package/lib/xml/FlowableXML.js +50 -0
- package/lib/xml/index.js +6 -0
- package/package.json +80 -4
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic tokens, copied from `@bpmn-io/theme` to style the components
|
|
3
|
+
* according to this theme.
|
|
4
|
+
*
|
|
5
|
+
* Names and values of the tokens should stay intact with the `@bpmn-io/theme`
|
|
6
|
+
* source of truth, to ensure matching styles and allow overrides with an
|
|
7
|
+
* alternative theme.
|
|
8
|
+
*/
|
|
9
|
+
.bio-theme-parent {
|
|
10
|
+
--bio-surface-subtle: hsl(225, 10%, 97%);
|
|
11
|
+
--bio-text: hsl(225, 10%, 15%);
|
|
12
|
+
--bio-text-subtle: hsl(225, 10%, 35%);
|
|
13
|
+
--bio-text-on-primary: hsl(0, 0%, 100%);
|
|
14
|
+
--bio-border: hsl(225, 10%, 75%);
|
|
15
|
+
--bio-border-subtle: hsl(225, 10%, 85%);
|
|
16
|
+
--bio-neutral-subtle: hsl(225, 10%, 80%);
|
|
17
|
+
--bio-danger: hsl(360, 100%, 45%);
|
|
18
|
+
--bio-info: hsl(205, 100%, 40%);
|
|
19
|
+
--bio-danger-marker: var(--bio-danger);
|
|
20
|
+
--bio-warning-marker: hsl(28, 100%, 45%);
|
|
21
|
+
--bio-success-marker: hsl(150, 86%, 30%);
|
|
22
|
+
--bio-info-marker: var(--bio-info);
|
|
23
|
+
--bio-radius-sm: 2px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.djs-parent {
|
|
27
|
+
--bjsl-color-info: var(--bio-info-marker);
|
|
28
|
+
--bjsl-color-warning: var(--bio-warning-marker);
|
|
29
|
+
--bjsl-color-error: var(--bio-danger-marker);
|
|
30
|
+
--bjsl-color-success: var(--bio-success-marker);
|
|
31
|
+
|
|
32
|
+
--bjsl-font-color: var(--bio-text);
|
|
33
|
+
--bjsl-font-family: 'Arial', sans-serif;
|
|
34
|
+
--bjsl-font-size: 13px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.bjsl-overlay {
|
|
38
|
+
z-index: 500;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.bjsl-overlay * {
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.bjsl-overlay:hover {
|
|
46
|
+
z-index: 1000;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.bjsl-dropdown {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.bjsl-overlay:hover .bjsl-dropdown,
|
|
54
|
+
.bjsl-dropdown.open {
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.bjsl-issues {
|
|
59
|
+
padding: 8px;
|
|
60
|
+
color: var(--bjsl-font-color);
|
|
61
|
+
font-family: var(--bjsl-font-family);
|
|
62
|
+
font-size: var(--bjsl-font-size);
|
|
63
|
+
background: var(--bio-surface-subtle);
|
|
64
|
+
border: solid 1px var(--bio-border);
|
|
65
|
+
border-radius: var(--bio-radius-sm);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.bjsl-icon {
|
|
69
|
+
--icon-color: var(--bio-text-on-primary);
|
|
70
|
+
background: var(--icon-bg-color);
|
|
71
|
+
color: var(--icon-color);
|
|
72
|
+
border-radius: 100%;
|
|
73
|
+
height: 20px;
|
|
74
|
+
width: 20px;
|
|
75
|
+
padding: 5px;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bjsl-icon svg {
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.bjsl-icon-error {
|
|
87
|
+
--icon-bg-color: var(--bjsl-color-error);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.bjsl-icon-warning {
|
|
91
|
+
--icon-bg-color: var(--bjsl-color-warning);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.bjsl-icon-info {
|
|
95
|
+
--icon-bg-color: var(--bjsl-color-info);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.bjsl-overlay {
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.bjsl-issues-top-right .bjsl-dropdown,
|
|
103
|
+
.bjsl-issues-bottom-right .bjsl-dropdown-content {
|
|
104
|
+
top: 0;
|
|
105
|
+
left: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.bjsl-issues-bottom-right .bjsl-dropdown,
|
|
109
|
+
.bjsl-issues-top-right .bjsl-dropdown-content {
|
|
110
|
+
bottom: 0;
|
|
111
|
+
left: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.bjsl-issues-top-right .bjsl-dropdown-content {
|
|
115
|
+
padding-bottom: 5px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.bjsl-issues-bottom-right .bjsl-dropdown-content {
|
|
119
|
+
padding-top: 5px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.bjsl-dropdown-content {
|
|
123
|
+
min-width: 260px;
|
|
124
|
+
position: absolute;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.bjsl-dropdown {
|
|
128
|
+
position: absolute;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.bjsl-issues {
|
|
132
|
+
list-style: none;
|
|
133
|
+
margin: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.bjsl-issues ul {
|
|
137
|
+
list-style: none;
|
|
138
|
+
margin: 0;
|
|
139
|
+
padding: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.bjsl-issues li {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: row;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.bjsl-issues .icon {
|
|
149
|
+
width: 1em;
|
|
150
|
+
height: 1em;
|
|
151
|
+
margin-top: 1px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.bjsl-issues li + li {
|
|
155
|
+
margin-top: .5rem;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.bjsl-issues .icon {
|
|
159
|
+
--icon-color: var(--bjsl-font-color);
|
|
160
|
+
|
|
161
|
+
color: var(--icon-color);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.bjsl-issues .error .icon {
|
|
165
|
+
--icon-color: var(--bjsl-color-error);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.bjsl-issues .warning .icon {
|
|
169
|
+
--icon-color: var(--bjsl-color-warning);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.bjsl-issues .info .icon {
|
|
173
|
+
--icon-color: var(--bjsl-color-info);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.bjsl-issues .message {
|
|
177
|
+
color: var(--bjsl-font-color);
|
|
178
|
+
margin-left: .5em;
|
|
179
|
+
text-decoration: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.bjsl-issues .rule {
|
|
183
|
+
color: var(--bjsl-font-color);
|
|
184
|
+
margin-left: .5em;
|
|
185
|
+
font-family: monospace;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.bjsl-issues .bjsl-issue-heading {
|
|
189
|
+
margin-left: 0px;
|
|
190
|
+
font-weight: bold;
|
|
191
|
+
margin-bottom: 100px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.bjsl-child-issues hr {
|
|
195
|
+
display: block;
|
|
196
|
+
height: 1px;
|
|
197
|
+
border: 0;
|
|
198
|
+
border-top: 1px solid var(--bio-border-subtle);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.bjsl-child-issues ul {
|
|
202
|
+
margin-top: 7px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.bjsl-issues a:hover {
|
|
206
|
+
text-decoration: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.bjsl-id-hint {
|
|
210
|
+
background-color: var(--bio-neutral-subtle);
|
|
211
|
+
padding: 1px;
|
|
212
|
+
padding-left: 5px;
|
|
213
|
+
padding-right: 5px;
|
|
214
|
+
font-weight: bold;
|
|
215
|
+
border-radius: 20px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Summary button styles
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
.bjsl-button {
|
|
224
|
+
border-radius: 100px;
|
|
225
|
+
position: absolute;
|
|
226
|
+
bottom: 20px;
|
|
227
|
+
left: 50%;
|
|
228
|
+
transform: translate(-50%);
|
|
229
|
+
background-color: var(--bio-surface-subtle);
|
|
230
|
+
padding: 5px 10px;
|
|
231
|
+
border: none;
|
|
232
|
+
color: var(--bio-text-subtle);
|
|
233
|
+
display: flex;
|
|
234
|
+
outline: none;
|
|
235
|
+
font-weight: bold;
|
|
236
|
+
font-size: var(--bjsl-font-size);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.bjsl-button-inactive:hover {
|
|
240
|
+
color: var(--bio-text);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.bjsl-button .icon {
|
|
244
|
+
margin-right: 10px;
|
|
245
|
+
margin-top: 1px;
|
|
246
|
+
width: .9em;
|
|
247
|
+
height: .9em;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.bjsl-button-success {
|
|
251
|
+
background-color: var(--bjsl-color-success);
|
|
252
|
+
color: var(--bio-text-on-primary);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.bjsl-button-error {
|
|
256
|
+
background-color: var(--bjsl-color-error);
|
|
257
|
+
color: var(--bio-text-on-primary);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.bjsl-button-warning {
|
|
261
|
+
background-color: var(--bjsl-color-warning);
|
|
262
|
+
color: var(--bio-text-on-primary);
|
|
263
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic tokens, copied from `@bpmn-io/theme` to style the components
|
|
3
|
+
* according to this theme.
|
|
4
|
+
*
|
|
5
|
+
* Names and values of the tokens should stay intact with the `@bpmn-io/theme`
|
|
6
|
+
* source of truth, to ensure matching styles and allow overrides with an
|
|
7
|
+
* alternative theme.
|
|
8
|
+
*/
|
|
9
|
+
.bio-theme-parent {
|
|
10
|
+
--bio-surface-subtle: hsl(225, 10%, 97%);
|
|
11
|
+
--bio-text-on-primary: hsl(0, 0%, 100%);
|
|
12
|
+
--bio-border: hsl(225, 10%, 75%);
|
|
13
|
+
--bio-primary: hsl(205, 100%, 40%);
|
|
14
|
+
--bio-focus: hsl(205, 100%, 40%);
|
|
15
|
+
--bio-radius-md: 3px;
|
|
16
|
+
--bio-radius-lg: 4px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.bjs-container {
|
|
20
|
+
--bjs-font-family: Arial, sans-serif;
|
|
21
|
+
|
|
22
|
+
--accent-color: var(--bio-primary);
|
|
23
|
+
|
|
24
|
+
--breadcrumbs-font-family: var(--bjs-font-family);
|
|
25
|
+
--breadcrumbs-item-color: var(--accent-color);
|
|
26
|
+
--breadcrumbs-background-color: var(--bio-surface-subtle);
|
|
27
|
+
--breadcrumbs-border-color: var(--bio-border);
|
|
28
|
+
--breadcrumbs-focus-outline-color: var(--bio-focus);
|
|
29
|
+
--drilldown-fill-color: var(--bio-text-on-primary);
|
|
30
|
+
--drilldown-background-color: var(--accent-color);
|
|
31
|
+
--drilldown-focus-outline-color: var(--bio-focus);
|
|
32
|
+
|
|
33
|
+
--button-border-radius: var(--bio-radius-md);
|
|
34
|
+
--surface-border-radius: var(--bio-radius-lg);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.bjs-breadcrumbs {
|
|
38
|
+
position: absolute;
|
|
39
|
+
display: none;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
align-items: center;
|
|
42
|
+
top: 20px;
|
|
43
|
+
left: 20px;
|
|
44
|
+
padding: 5px 10px;
|
|
45
|
+
margin: 0px;
|
|
46
|
+
font-family: var(--breadcrumbs-font-family);
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
line-height: normal;
|
|
49
|
+
background-color: var(--breadcrumbs-background-color);
|
|
50
|
+
border: solid 1px var(--breadcrumbs-border-color);
|
|
51
|
+
border-radius: var(--surface-border-radius);
|
|
52
|
+
row-gap: 5px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.bjs-breadcrumbs-shown .bjs-breadcrumbs {
|
|
56
|
+
display: flex;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.djs-palette-shown .bjs-breadcrumbs {
|
|
60
|
+
left: 90px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {
|
|
64
|
+
left: 140px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.bjs-breadcrumbs li {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.bjs-breadcrumbs a.bjs-crumb {
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
color: var(--breadcrumbs-item-color);
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.bjs-breadcrumbs a.bjs-crumb:focus-visible {
|
|
79
|
+
outline: solid 1px var(--breadcrumbs-focus-outline-color);
|
|
80
|
+
outline-offset: 1px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.bjs-breadcrumbs li:not(:first-child)::before {
|
|
84
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" /><path d="M0 0h24v24H0z" fill="none" /></svg>');
|
|
85
|
+
padding: 0 8px;
|
|
86
|
+
height: 1em;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.bjs-breadcrumbs .bjs-crumb {
|
|
90
|
+
display: inline-block;
|
|
91
|
+
max-width: 200px;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
text-overflow: ellipsis;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.bjs-drilldown {
|
|
98
|
+
width: 20px;
|
|
99
|
+
height: 20px;
|
|
100
|
+
|
|
101
|
+
padding: 0px;
|
|
102
|
+
margin-left: -20px;
|
|
103
|
+
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
border: none;
|
|
106
|
+
border-radius: var(--button-border-radius);
|
|
107
|
+
|
|
108
|
+
fill: var(--drilldown-fill-color);
|
|
109
|
+
background-color: var(--drilldown-background-color);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.bjs-drilldown:focus-visible {
|
|
113
|
+
outline: solid 1px var(--drilldown-focus-outline-color);
|
|
114
|
+
outline-offset: 1px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.bjs-drilldown-empty {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.selected .bjs-drilldown-empty {
|
|
122
|
+
display: inherit;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-popup="align-elements"] .djs-popup-results {
|
|
126
|
+
display: flex;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[data-popup="align-elements"] .djs-popup-body [data-group] + [data-group] {
|
|
130
|
+
border-left: 1px solid var(--popup-border-color);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[data-popup="align-elements"] [data-group="align"] {
|
|
134
|
+
display: grid;
|
|
135
|
+
grid-template-columns: repeat(3, 1fr);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-popup="align-elements"] .djs-popup-body .entry {
|
|
139
|
+
padding: 6px 8px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-popup="align-elements"] .djs-popup-body .entry:not(:first-child) {
|
|
143
|
+
margin-top: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-popup="align-elements"] .djs-popup-entry-icon {
|
|
147
|
+
display: block;
|
|
148
|
+
margin: 0;
|
|
149
|
+
height: 20px;
|
|
150
|
+
width: 20px;
|
|
151
|
+
}
|