sequential-workflow-designer 0.14.2
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 +9 -0
- package/README.md +227 -0
- package/css/designer-dark.css +162 -0
- package/css/designer-light.css +161 -0
- package/css/designer.css +286 -0
- package/dist/index.umd.js +4497 -0
- package/lib/cjs/index.cjs +4315 -0
- package/lib/esm/index.js +4266 -0
- package/lib/index.d.ts +1129 -0
- package/package.json +91 -0
package/css/designer.css
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
|
|
2
|
+
.sqd-designer {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
.sqd-designer, .sqd-drag, .sqd-context-menu {
|
|
9
|
+
font-size: 13px;
|
|
10
|
+
line-height: 1em;
|
|
11
|
+
}
|
|
12
|
+
.sqd-hidden {
|
|
13
|
+
display: none !important;
|
|
14
|
+
}
|
|
15
|
+
.sqd-disabled {
|
|
16
|
+
opacity: 0.25;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* .sqd-toolbox */
|
|
20
|
+
|
|
21
|
+
.sqd-toolbox, .sqd-toolbox-filter {
|
|
22
|
+
font-size: 11px;
|
|
23
|
+
line-height: 1.2em;
|
|
24
|
+
}
|
|
25
|
+
.sqd-toolbox {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 10px;
|
|
28
|
+
left: 10px;
|
|
29
|
+
z-index: 20;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
border-radius: 10px;
|
|
32
|
+
width: 130px;
|
|
33
|
+
user-select: none;
|
|
34
|
+
}
|
|
35
|
+
.sqd-toolbox-header {
|
|
36
|
+
position: relative;
|
|
37
|
+
padding: 15px 10px;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
.sqd-toolbox-header-title {
|
|
41
|
+
display: block;
|
|
42
|
+
font-size: 1.2em;
|
|
43
|
+
line-height: 1em;
|
|
44
|
+
font-weight: bold;
|
|
45
|
+
}
|
|
46
|
+
.sqd-toolbox-toggle-icon {
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 50%;
|
|
49
|
+
right: 10px;
|
|
50
|
+
width: 16px;
|
|
51
|
+
height: 16px;
|
|
52
|
+
margin: -8px 0 0;
|
|
53
|
+
}
|
|
54
|
+
.sqd-toolbox-header:hover .sqd-toolbox-toggle-icon {
|
|
55
|
+
opacity: .6;
|
|
56
|
+
}
|
|
57
|
+
.sqd-scrollbox {
|
|
58
|
+
position: relative;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
.sqd-scrollbox-body {
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
}
|
|
66
|
+
.sqd-toolbox-filter {
|
|
67
|
+
display: block;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
padding: 6px 8px;
|
|
70
|
+
outline: none;
|
|
71
|
+
width: 110px;
|
|
72
|
+
margin: 0 10px 10px;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
border-radius: 10px;
|
|
75
|
+
}
|
|
76
|
+
.sqd-toolbox-group-title {
|
|
77
|
+
text-align: center;
|
|
78
|
+
padding: 5px 0;
|
|
79
|
+
margin: 0 10px 10px;
|
|
80
|
+
border-radius: 10px;
|
|
81
|
+
}
|
|
82
|
+
.sqd-toolbox-item {
|
|
83
|
+
position: relative;
|
|
84
|
+
border-radius: 5px;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
margin: 0 10px 10px;
|
|
87
|
+
width: 110px;
|
|
88
|
+
cursor: move;
|
|
89
|
+
}
|
|
90
|
+
.sqd-toolbox-item-icon {
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: 50%;
|
|
93
|
+
left: 5px;
|
|
94
|
+
margin-top: -10px;
|
|
95
|
+
width: 20px;
|
|
96
|
+
height: 20px;
|
|
97
|
+
}
|
|
98
|
+
.sqd-toolbox-item-icon.sqd-no-icon {
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
}
|
|
101
|
+
.sqd-toolbox-item-icon-image {
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
}
|
|
105
|
+
.sqd-toolbox-item-text {
|
|
106
|
+
position: relative;
|
|
107
|
+
display: block;
|
|
108
|
+
padding: 10px 10px 10px 30px;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
text-overflow: ellipsis;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.sqd-drag {
|
|
115
|
+
position: absolute;
|
|
116
|
+
z-index: 9999999;
|
|
117
|
+
pointer-events: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* .sqd-control-bar */
|
|
121
|
+
|
|
122
|
+
.sqd-control-bar {
|
|
123
|
+
position: absolute;
|
|
124
|
+
bottom: 10px;
|
|
125
|
+
left: 10px;
|
|
126
|
+
z-index: 20;
|
|
127
|
+
padding: 8px 0 8px 8px;
|
|
128
|
+
border-radius: 10px;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
131
|
+
.sqd-control-bar-button {
|
|
132
|
+
display: inline-block;
|
|
133
|
+
width: 32px;
|
|
134
|
+
height: 32px;
|
|
135
|
+
border-radius: 5px;
|
|
136
|
+
margin-right: 8px;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
}
|
|
140
|
+
.sqd-control-bar-button-icon {
|
|
141
|
+
width: 24px;
|
|
142
|
+
height: 24px;
|
|
143
|
+
margin: 3px 0 0 3px;
|
|
144
|
+
}
|
|
145
|
+
.sqd-control-bar-button.sqd-disabled .sqd-control-bar-button-icon {
|
|
146
|
+
opacity: .2;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* .sqd-workspace */
|
|
150
|
+
|
|
151
|
+
.sqd-workspace {
|
|
152
|
+
flex: 1;
|
|
153
|
+
position: relative;
|
|
154
|
+
display: block;
|
|
155
|
+
user-select: none;
|
|
156
|
+
}
|
|
157
|
+
.sqd-workspace-canvas {
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: 0;
|
|
160
|
+
left: 0;
|
|
161
|
+
cursor: move;
|
|
162
|
+
}
|
|
163
|
+
.sqd-grid-path {
|
|
164
|
+
stroke-width: 1;
|
|
165
|
+
}
|
|
166
|
+
.sqd-join {
|
|
167
|
+
stroke-width: 2;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* .sqd-context-menu */
|
|
171
|
+
|
|
172
|
+
.sqd-context-menu {
|
|
173
|
+
position: absolute;
|
|
174
|
+
z-index: 2000000000;
|
|
175
|
+
border-radius: 4px;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
padding: 5px;
|
|
178
|
+
}
|
|
179
|
+
.sqd-context-menu-group, .sqd-context-menu-item {
|
|
180
|
+
width: 130px;
|
|
181
|
+
padding: 8px 10px;
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
}
|
|
186
|
+
.sqd-context-menu-group {
|
|
187
|
+
font-size: 11px;
|
|
188
|
+
line-height: 1em;
|
|
189
|
+
}
|
|
190
|
+
.sqd-context-menu-item {
|
|
191
|
+
border-radius: 5px;
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
transition: background 70ms;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* .sqd-smart-editor */
|
|
197
|
+
|
|
198
|
+
.sqd-smart-editor-toggle {
|
|
199
|
+
position: absolute;
|
|
200
|
+
top: 0;
|
|
201
|
+
z-index: 29;
|
|
202
|
+
width: 36px;
|
|
203
|
+
height: 64px;
|
|
204
|
+
border-bottom-left-radius: 10px;
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
}
|
|
207
|
+
.sqd-smart-editor-toggle-icon {
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 50%;
|
|
210
|
+
left: 50%;
|
|
211
|
+
width: 24px;
|
|
212
|
+
height: 24px;
|
|
213
|
+
margin: -12px 0 0 -12px;
|
|
214
|
+
}
|
|
215
|
+
.sqd-smart-editor-toggle:hover .sqd-smart-editor-toggle-icon {
|
|
216
|
+
opacity: .6;
|
|
217
|
+
}
|
|
218
|
+
.sqd-smart-editor {
|
|
219
|
+
z-index: 30;
|
|
220
|
+
}
|
|
221
|
+
.sqd-layout-desktop .sqd-smart-editor {
|
|
222
|
+
position: relative;
|
|
223
|
+
width: 300px;
|
|
224
|
+
}
|
|
225
|
+
.sqd-layout-desktop .sqd-smart-editor-toggle {
|
|
226
|
+
right: 300px;
|
|
227
|
+
}
|
|
228
|
+
.sqd-layout-desktop .sqd-smart-editor-toggle.sqd-collapsed {
|
|
229
|
+
right: 0;
|
|
230
|
+
}
|
|
231
|
+
.sqd-layout-mobile .sqd-smart-editor {
|
|
232
|
+
position: absolute;
|
|
233
|
+
top: 0;
|
|
234
|
+
right: 0;
|
|
235
|
+
bottom: 0;
|
|
236
|
+
left: 41px;
|
|
237
|
+
}
|
|
238
|
+
.sqd-layout-mobile .sqd-smart-editor-toggle {
|
|
239
|
+
left: 5px;
|
|
240
|
+
}
|
|
241
|
+
.sqd-layout-mobile .sqd-smart-editor-toggle.sqd-collapsed {
|
|
242
|
+
left: auto;
|
|
243
|
+
right: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* .sqd-step-task */
|
|
247
|
+
|
|
248
|
+
.sqd-step-task-rect {
|
|
249
|
+
stroke-width: 1;
|
|
250
|
+
}
|
|
251
|
+
.sqd-step-task-rect.sqd-selected {
|
|
252
|
+
stroke-width: 2;
|
|
253
|
+
}
|
|
254
|
+
.sqd-step-task-text {
|
|
255
|
+
text-anchor: left;
|
|
256
|
+
dominant-baseline: central;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* .sqd-input + .sqd-output */
|
|
260
|
+
|
|
261
|
+
.sqd-input {
|
|
262
|
+
stroke-width: 2;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* .sqd-region */
|
|
266
|
+
|
|
267
|
+
.sqd-region {
|
|
268
|
+
stroke-width: 2;
|
|
269
|
+
stroke-dasharray: 3;
|
|
270
|
+
}
|
|
271
|
+
.sqd-region.sqd-selected {
|
|
272
|
+
stroke-width: 2;
|
|
273
|
+
stroke-dasharray: 0;
|
|
274
|
+
}
|
|
275
|
+
.sqd-label-text {
|
|
276
|
+
text-anchor: middle;
|
|
277
|
+
dominant-baseline: central;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* .sqd-placeholder */
|
|
281
|
+
|
|
282
|
+
.sqd-placeholder .sqd-placeholder-rect {
|
|
283
|
+
stroke-width: 1;
|
|
284
|
+
stroke-dasharray: 3;
|
|
285
|
+
transition: fill 100ms;
|
|
286
|
+
}
|