@operato/flow 10.29.80 → 10.29.83
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/stories/ox-flow-editor.stories.d.ts +24 -0
- package/dist/stories/ox-flow-editor.stories.js +249 -0
- package/package.json +22 -6
- package/CHANGELOG.md +0 -1556
- package/dist/src/api/tasks.js.map +0 -1
- package/dist/src/base/anchor-instance.js.map +0 -1
- package/dist/src/base/flow-edge-instance.js.map +0 -1
- package/dist/src/base/flow-node-abstract.js.map +0 -1
- package/dist/src/components/flow-debug-panel.js.map +0 -1
- package/dist/src/components/flow-executor.js.map +0 -1
- package/dist/src/components/flow-options-builder.js.map +0 -1
- package/dist/src/components/flow-properties-panel.js.map +0 -1
- package/dist/src/components/flow-side-panel.js.map +0 -1
- package/dist/src/components/flow-sidebar.js.map +0 -1
- package/dist/src/components/flow-toolbar.js.map +0 -1
- package/dist/src/components/property-editor.js.map +0 -1
- package/dist/src/components/property-panel/data-mapper-popup.js.map +0 -1
- package/dist/src/components/property-panel/task-selection-popup.js.map +0 -1
- package/dist/src/context/flow-context.js.map +0 -1
- package/dist/src/context/flow-debug-context.js.map +0 -1
- package/dist/src/context/flow-edit-context.js.map +0 -1
- package/dist/src/handlers/dnd-event-handler.js.map +0 -1
- package/dist/src/handlers/flow-event-handler.js.map +0 -1
- package/dist/src/handlers/keydown-event-handler.js.map +0 -1
- package/dist/src/handlers/pointer-event-handler.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/nodes/decision.js.map +0 -1
- package/dist/src/nodes/end-event.js.map +0 -1
- package/dist/src/nodes/index.js.map +0 -1
- package/dist/src/nodes/intermediate-event.js.map +0 -1
- package/dist/src/nodes/iterator.js.map +0 -1
- package/dist/src/nodes/select.js.map +0 -1
- package/dist/src/nodes/start-event.js.map +0 -1
- package/dist/src/nodes/subflow.js.map +0 -1
- package/dist/src/nodes/task.js.map +0 -1
- package/dist/src/ox-flow-editor.js.map +0 -1
- package/dist/src/ox-flow-monitor.js.map +0 -1
- package/dist/src/property-editors/ox-input-anchors.js.map +0 -1
- package/dist/src/property-editors/ox-property-editor-anchors.js.map +0 -1
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils/generate-mapping-scheme.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import '../src/ox-flow-editor.js';
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import { TemplateResult } from 'lit';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: string;
|
|
7
|
+
argTypes: {
|
|
8
|
+
model: {
|
|
9
|
+
control: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
interface Story<T> {
|
|
15
|
+
(args: T): TemplateResult;
|
|
16
|
+
args?: Partial<T>;
|
|
17
|
+
argTypes?: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
interface ArgTypes {
|
|
20
|
+
model: object;
|
|
21
|
+
}
|
|
22
|
+
export declare const Regular: Story<ArgTypes>;
|
|
23
|
+
export declare const Standard: Story<ArgTypes>;
|
|
24
|
+
export declare const Select: Story<ArgTypes>;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import '../src/ox-flow-editor.js';
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import { html } from 'lit';
|
|
4
|
+
import { BasicFlowNodeTypes } from '../src/index.js';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'ox-flow-editor',
|
|
7
|
+
component: 'ox-flow-editor',
|
|
8
|
+
argTypes: {
|
|
9
|
+
model: { control: 'object' }
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const Template = ({ model }) => html `
|
|
13
|
+
<link
|
|
14
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
15
|
+
rel="stylesheet"
|
|
16
|
+
/>
|
|
17
|
+
<link
|
|
18
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
19
|
+
rel="stylesheet"
|
|
20
|
+
/>
|
|
21
|
+
<link
|
|
22
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
23
|
+
rel="stylesheet"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
27
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
28
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
29
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
30
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
31
|
+
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
32
|
+
|
|
33
|
+
<style>
|
|
34
|
+
ox-flow-editor {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 1200px;
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
40
|
+
|
|
41
|
+
<ox-flow-editor .availableNodeTypes=${BasicFlowNodeTypes} .model=${model}></ox-flow-editor>
|
|
42
|
+
`;
|
|
43
|
+
export const Regular = Template.bind({});
|
|
44
|
+
Regular.args = {
|
|
45
|
+
model: {
|
|
46
|
+
nodes: [],
|
|
47
|
+
edges: []
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export const Standard = Template.bind({});
|
|
51
|
+
Standard.args = {
|
|
52
|
+
model: {
|
|
53
|
+
nodes: [
|
|
54
|
+
{
|
|
55
|
+
id: 'start-1',
|
|
56
|
+
type: 'start',
|
|
57
|
+
label: 'Start',
|
|
58
|
+
pos: { x: 200, y: 100 }
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: 'task-1',
|
|
62
|
+
type: 'task',
|
|
63
|
+
label: 'Task',
|
|
64
|
+
pos: { x: 200, y: 250 }
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 'decision-1',
|
|
68
|
+
type: 'decision',
|
|
69
|
+
label: 'Decision',
|
|
70
|
+
pos: { x: 200, y: 400 }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'task-2',
|
|
74
|
+
type: 'task',
|
|
75
|
+
label: 'Yes Task',
|
|
76
|
+
pos: { x: 200, y: 550 }
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 'task-3',
|
|
80
|
+
type: 'task',
|
|
81
|
+
label: 'No Task',
|
|
82
|
+
pos: { x: 360, y: 550 }
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'end-1',
|
|
86
|
+
type: 'end',
|
|
87
|
+
label: 'End',
|
|
88
|
+
pos: { x: 200, y: 700 }
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
edges: [
|
|
92
|
+
{
|
|
93
|
+
id: 'edge1',
|
|
94
|
+
from: { nodeId: 'start-1', anchorId: 'out' },
|
|
95
|
+
to: { nodeId: 'task-1', anchorId: 'in' }
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 'edge2',
|
|
99
|
+
from: { nodeId: 'task-1', anchorId: 'out' },
|
|
100
|
+
to: { nodeId: 'decision-1', anchorId: 'in' }
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'edge3',
|
|
104
|
+
from: { nodeId: 'decision-1', anchorId: 'yes' },
|
|
105
|
+
to: { nodeId: 'task-2', anchorId: 'in' },
|
|
106
|
+
label: 'Yes',
|
|
107
|
+
weight: 2
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 'edge4',
|
|
111
|
+
from: { nodeId: 'decision-1', anchorId: 'no' },
|
|
112
|
+
to: { nodeId: 'task-3', anchorId: 'in' },
|
|
113
|
+
label: 'No',
|
|
114
|
+
weight: 1
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: 'edge5',
|
|
118
|
+
from: { nodeId: 'task-2', anchorId: 'out' },
|
|
119
|
+
to: { nodeId: 'end-1', anchorId: 'in' }
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: 'edge6',
|
|
123
|
+
from: { nodeId: 'task-3', anchorId: 'out' },
|
|
124
|
+
to: { nodeId: 'end-1', anchorId: 'in' }
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
export const Select = Template.bind({});
|
|
130
|
+
Select.args = {
|
|
131
|
+
model: {
|
|
132
|
+
nodes: [
|
|
133
|
+
{
|
|
134
|
+
id: 'start-1',
|
|
135
|
+
type: 'start',
|
|
136
|
+
label: 'Start',
|
|
137
|
+
pos: { x: 450, y: 100 }
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
id: 'task-0',
|
|
141
|
+
type: 'task',
|
|
142
|
+
label: 'Task',
|
|
143
|
+
pos: { x: 450, y: 250 }
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: 'select-1',
|
|
147
|
+
type: 'select',
|
|
148
|
+
label: 'Select',
|
|
149
|
+
options: {
|
|
150
|
+
outputCount: 4
|
|
151
|
+
},
|
|
152
|
+
pos: { x: 450, y: 400 }
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: 'task-1',
|
|
156
|
+
type: 'task',
|
|
157
|
+
label: 'Task 1',
|
|
158
|
+
pos: { x: 220, y: 550 }
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: 'task-2',
|
|
162
|
+
type: 'task',
|
|
163
|
+
label: 'Task 2',
|
|
164
|
+
pos: { x: 370, y: 550 }
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: 'task-3',
|
|
168
|
+
type: 'task',
|
|
169
|
+
label: 'Task 3',
|
|
170
|
+
pos: { x: 520, y: 550 }
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: 'task-4',
|
|
174
|
+
type: 'task',
|
|
175
|
+
label: 'Task 4',
|
|
176
|
+
pos: { x: 670, y: 550 }
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: 'end-1',
|
|
180
|
+
type: 'end',
|
|
181
|
+
label: 'End',
|
|
182
|
+
pos: { x: 450, y: 700 }
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
edges: [
|
|
186
|
+
{
|
|
187
|
+
id: 'edge1',
|
|
188
|
+
from: { nodeId: 'start-1', anchorId: 'out' },
|
|
189
|
+
to: { nodeId: 'task-0', anchorId: 'in' }
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: 'edge2',
|
|
193
|
+
from: { nodeId: 'task-0', anchorId: 'out' },
|
|
194
|
+
to: { nodeId: 'select-1', anchorId: 'in' },
|
|
195
|
+
label: 'case 1',
|
|
196
|
+
weight: 3
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 'edge3',
|
|
200
|
+
from: { nodeId: 'select-1', anchorId: 'out-1' },
|
|
201
|
+
to: { nodeId: 'task-1', anchorId: 'in' },
|
|
202
|
+
label: 'case 1',
|
|
203
|
+
weight: 4
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 'edge4',
|
|
207
|
+
from: { nodeId: 'select-1', anchorId: 'out-2' },
|
|
208
|
+
to: { nodeId: 'task-2', anchorId: 'in' },
|
|
209
|
+
label: 'case 2',
|
|
210
|
+
weight: 3
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: 'edge5',
|
|
214
|
+
from: { nodeId: 'select-1', anchorId: 'out-3' },
|
|
215
|
+
to: { nodeId: 'task-3', anchorId: 'in' },
|
|
216
|
+
label: 'case 3',
|
|
217
|
+
weight: 2
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: 'edge6',
|
|
221
|
+
from: { nodeId: 'select-1', anchorId: 'out-4' },
|
|
222
|
+
to: { nodeId: 'task-4', anchorId: 'in' },
|
|
223
|
+
label: 'case 4',
|
|
224
|
+
weight: 1
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: 'edge7',
|
|
228
|
+
from: { nodeId: 'task-1', anchorId: 'out' },
|
|
229
|
+
to: { nodeId: 'end-1', anchorId: 'in' }
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: 'edge8',
|
|
233
|
+
from: { nodeId: 'task-2', anchorId: 'out' },
|
|
234
|
+
to: { nodeId: 'end-1', anchorId: 'in' }
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: 'edge9',
|
|
238
|
+
from: { nodeId: 'task-3', anchorId: 'out' },
|
|
239
|
+
to: { nodeId: 'end-1', anchorId: 'in' }
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: 'edge10',
|
|
243
|
+
from: { nodeId: 'task-4', anchorId: 'out' },
|
|
244
|
+
to: { nodeId: 'end-1', anchorId: 'in' }
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
//# sourceMappingURL=ox-flow-editor.stories.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/flow",
|
|
3
|
-
"version": "10.29.
|
|
3
|
+
"version": "10.29.83",
|
|
4
4
|
"description": "Visual Scenario Flow Builder & Viewer",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"type": "module",
|
|
@@ -23,6 +23,22 @@
|
|
|
23
23
|
"./ox-flow-editor.js": "./dist/src/ox-flow-editor.js",
|
|
24
24
|
"./ox-flow-monitor.js": "./dist/src/ox-flow-monitor.js"
|
|
25
25
|
},
|
|
26
|
+
"files": [
|
|
27
|
+
"README.md",
|
|
28
|
+
"assets",
|
|
29
|
+
"dist",
|
|
30
|
+
"themes",
|
|
31
|
+
"translations",
|
|
32
|
+
"types",
|
|
33
|
+
"!**/*.map",
|
|
34
|
+
"!**/*.test.*",
|
|
35
|
+
"!**/*.spec.*",
|
|
36
|
+
"!**/test/**",
|
|
37
|
+
"!**/tests/**",
|
|
38
|
+
"!**/__tests__/**",
|
|
39
|
+
"!**/*.tsbuildinfo",
|
|
40
|
+
"!**/.DS_Store"
|
|
41
|
+
],
|
|
26
42
|
"typesVersions": {
|
|
27
43
|
"*": {
|
|
28
44
|
"ox-flow-editor.js": [
|
|
@@ -47,9 +63,9 @@
|
|
|
47
63
|
},
|
|
48
64
|
"dependencies": {
|
|
49
65
|
"@lit/context": "1.1.4",
|
|
50
|
-
"@operato/data-mapper": "^10.29.
|
|
51
|
-
"@operato/popup": "^10.29.
|
|
52
|
-
"@operato/property-editor": "^10.29.
|
|
66
|
+
"@operato/data-mapper": "^10.29.83",
|
|
67
|
+
"@operato/popup": "^10.29.83",
|
|
68
|
+
"@operato/property-editor": "^10.29.83",
|
|
53
69
|
"dagre-esm": "^0.8.5",
|
|
54
70
|
"i18next": "^24.2.1",
|
|
55
71
|
"lit": "^3.1.2",
|
|
@@ -60,7 +76,7 @@
|
|
|
60
76
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
61
77
|
"@open-wc/eslint-config": "^12.0.3",
|
|
62
78
|
"@open-wc/testing": "^4.0.0",
|
|
63
|
-
"@operato/styles": "^10.29.
|
|
79
|
+
"@operato/styles": "^10.29.83",
|
|
64
80
|
"@types/dagre": "^0.7.52",
|
|
65
81
|
"@types/lodash-es": "^4.17.5",
|
|
66
82
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -90,5 +106,5 @@
|
|
|
90
106
|
"prettier --write"
|
|
91
107
|
]
|
|
92
108
|
},
|
|
93
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "2ca4d6573a612baf0613c92dce13b424604022d5"
|
|
94
110
|
}
|