workflow-editor 0.0.81-up-tmp21 → 0.0.81-up-tmp23
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/index.full.min.js +316 -318
- package/dist/style.css +5 -5
- package/es/index.mjs +13 -14
- package/es/style.css +141 -141
- package/es/workflow-editor/index.mjs +6 -4
- package/es/{workflow-history → workflow-editor}/src/workflow-history.vue.mjs +10 -10
- package/lib/index.cjs +7 -7
- package/lib/style.css +144 -144
- package/lib/workflow-editor/index.cjs +4 -4
- package/lib/{workflow-history → workflow-editor}/src/workflow-history.vue.cjs +3 -3
- package/package.json +1 -1
- package/es/workflow-history/index.mjs +0 -8
- package/lib/workflow-history/index.cjs +0 -7
- /package/es/{workflow-history → workflow-editor}/src/workflow-history.vue2.mjs +0 -0
- /package/lib/{workflow-history → workflow-editor}/src/workflow-history.vue2.cjs +0 -0
package/dist/style.css
CHANGED
|
@@ -498,29 +498,29 @@ g text{
|
|
|
498
498
|
.current-tache text{
|
|
499
499
|
fill: white
|
|
500
500
|
}
|
|
501
|
-
.main[data-v-
|
|
501
|
+
.main[data-v-6658e14b] {
|
|
502
502
|
position: relative;
|
|
503
503
|
display: flex;
|
|
504
504
|
height: 100%;
|
|
505
505
|
width: 100%;
|
|
506
506
|
}
|
|
507
|
-
.canvas-container[data-v-
|
|
507
|
+
.canvas-container[data-v-6658e14b] {
|
|
508
508
|
position: relative;
|
|
509
509
|
height: 100%;
|
|
510
510
|
width: 100%;
|
|
511
511
|
}
|
|
512
|
-
section[data-v-
|
|
512
|
+
section[data-v-6658e14b] {
|
|
513
513
|
overflow: hidden;
|
|
514
514
|
width: 100%;
|
|
515
515
|
height: 100%;
|
|
516
516
|
padding: 0;
|
|
517
517
|
}
|
|
518
|
-
.canvas[data-v-
|
|
518
|
+
.canvas[data-v-6658e14b] {
|
|
519
519
|
overflow: auto;
|
|
520
520
|
height: 100%;
|
|
521
521
|
padding: 0;
|
|
522
522
|
min-height: 500px;
|
|
523
523
|
}
|
|
524
|
-
.canvas[data-v-
|
|
524
|
+
.canvas[data-v-6658e14b] .draggable {
|
|
525
525
|
cursor: default;
|
|
526
526
|
}
|
package/es/index.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import o from "./workflow-editor/index.mjs";
|
|
2
|
-
import r from "./
|
|
3
|
-
import { default as default2 } from "./
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const e = [o, r], s = function(o2) {
|
|
8
|
-
s.installed || (e.forEach((r2) => {
|
|
2
|
+
import r from "./plugins/index.mjs";
|
|
3
|
+
import { default as default2 } from "./src/i18n/langs/cn.mjs";
|
|
4
|
+
import { default as default3 } from "./src/i18n/langs/en.mjs";
|
|
5
|
+
const t = o.WorkflowEditor, n = o.WorkflowHistory, f = o.wfEditorStore, i = [t, n], s = function(o2) {
|
|
6
|
+
s.installed || (i.forEach((r2) => {
|
|
9
7
|
o2.component(r2.name, r2);
|
|
10
|
-
}), o2.use(
|
|
11
|
-
};
|
|
8
|
+
}), o2.use(r));
|
|
9
|
+
}, e = { wfEditorInstall: s, WorkflowEditor: t, wfEditorStore: f };
|
|
12
10
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
t as WorkflowEditor,
|
|
12
|
+
n as WorkflowHistory,
|
|
13
|
+
e as default,
|
|
14
|
+
default2 as wfEditorCn,
|
|
15
|
+
default3 as wfEditorEn,
|
|
17
16
|
s as wfEditorInstall,
|
|
18
|
-
|
|
17
|
+
f as wfEditorStore
|
|
19
18
|
};
|
package/es/style.css
CHANGED
|
@@ -100,31 +100,45 @@ pre[data-v-865cb4ee] {
|
|
|
100
100
|
/* 去掉卡片和tab表头的距离 */
|
|
101
101
|
[data-v-865cb4ee] .el-tabs__header {
|
|
102
102
|
margin: 0;
|
|
103
|
-
}.main[data-v-
|
|
103
|
+
}.main[data-v-6658e14b] {
|
|
104
104
|
position: relative;
|
|
105
105
|
display: flex;
|
|
106
106
|
height: 100%;
|
|
107
107
|
width: 100%;
|
|
108
108
|
}
|
|
109
|
-
.canvas-container[data-v-
|
|
109
|
+
.canvas-container[data-v-6658e14b] {
|
|
110
110
|
position: relative;
|
|
111
111
|
height: 100%;
|
|
112
112
|
width: 100%;
|
|
113
113
|
}
|
|
114
|
-
section[data-v-
|
|
114
|
+
section[data-v-6658e14b] {
|
|
115
115
|
overflow: hidden;
|
|
116
116
|
width: 100%;
|
|
117
117
|
height: 100%;
|
|
118
118
|
padding: 0;
|
|
119
119
|
}
|
|
120
|
-
.canvas[data-v-
|
|
120
|
+
.canvas[data-v-6658e14b] {
|
|
121
121
|
overflow: auto;
|
|
122
122
|
height: 100%;
|
|
123
123
|
padding: 0;
|
|
124
124
|
min-height: 500px;
|
|
125
125
|
}
|
|
126
|
-
.canvas[data-v-
|
|
126
|
+
.canvas[data-v-6658e14b] .draggable {
|
|
127
127
|
cursor: default;
|
|
128
|
+
}h3[data-v-0d941719] {
|
|
129
|
+
color: #999999;
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding: 0;
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
font-size: 18px;
|
|
134
|
+
}
|
|
135
|
+
.el-button[data-v-0d941719] {
|
|
136
|
+
margin: 6px 0;
|
|
137
|
+
min-width: 110px;
|
|
138
|
+
padding: 9px 15px;
|
|
139
|
+
}
|
|
140
|
+
.el-button i[data-v-0d941719] {
|
|
141
|
+
padding-right: 4px;
|
|
128
142
|
}
|
|
129
143
|
#svg{
|
|
130
144
|
/* border:1px solid red; */
|
|
@@ -172,51 +186,6 @@ g text{
|
|
|
172
186
|
.current-tache text{
|
|
173
187
|
fill: white
|
|
174
188
|
}
|
|
175
|
-
h3[data-v-0d941719] {
|
|
176
|
-
color: #999999;
|
|
177
|
-
margin: 0;
|
|
178
|
-
padding: 0;
|
|
179
|
-
font-weight: bold;
|
|
180
|
-
font-size: 18px;
|
|
181
|
-
}
|
|
182
|
-
.el-button[data-v-0d941719] {
|
|
183
|
-
margin: 6px 0;
|
|
184
|
-
min-width: 110px;
|
|
185
|
-
padding: 9px 15px;
|
|
186
|
-
}
|
|
187
|
-
.el-button i[data-v-0d941719] {
|
|
188
|
-
padding-right: 4px;
|
|
189
|
-
}
|
|
190
|
-
#svg{
|
|
191
|
-
/* border:1px solid red; */
|
|
192
|
-
background: white;
|
|
193
|
-
background-image:
|
|
194
|
-
linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
|
|
195
|
-
linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
|
|
196
|
-
linear-gradient(#e5e5e5 1px, transparent 0),
|
|
197
|
-
linear-gradient(90deg,#e5e5e5 1px, transparent 0);
|
|
198
|
-
background-size:
|
|
199
|
-
15px 15px,
|
|
200
|
-
15px 15px,
|
|
201
|
-
75px 75px,
|
|
202
|
-
75px 75px;
|
|
203
|
-
}
|
|
204
|
-
g{
|
|
205
|
-
font-size: 16px;
|
|
206
|
-
}
|
|
207
|
-
g text{
|
|
208
|
-
dominant-baseline: middle;
|
|
209
|
-
}
|
|
210
|
-
.selected{
|
|
211
|
-
fill: #fff;
|
|
212
|
-
stroke: #f00;
|
|
213
|
-
stroke-width: 2;
|
|
214
|
-
}
|
|
215
|
-
.task-tache{
|
|
216
|
-
fill: #fff;
|
|
217
|
-
stroke: #666;
|
|
218
|
-
stroke-width: 2;
|
|
219
|
-
}
|
|
220
189
|
|
|
221
190
|
.svg-icon {
|
|
222
191
|
width: 1em;
|
|
@@ -254,17 +223,38 @@ li[data-v-7e8a1cf6] {
|
|
|
254
223
|
li[data-v-7e8a1cf6] {
|
|
255
224
|
list-style-type: none;
|
|
256
225
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
226
|
+
#svg{
|
|
227
|
+
/* border:1px solid red; */
|
|
228
|
+
background: white;
|
|
229
|
+
background-image:
|
|
230
|
+
linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
|
|
231
|
+
linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
|
|
232
|
+
linear-gradient(#e5e5e5 1px, transparent 0),
|
|
233
|
+
linear-gradient(90deg,#e5e5e5 1px, transparent 0);
|
|
234
|
+
background-size:
|
|
235
|
+
15px 15px,
|
|
236
|
+
15px 15px,
|
|
237
|
+
75px 75px,
|
|
238
|
+
75px 75px;
|
|
239
|
+
}
|
|
240
|
+
g{
|
|
241
|
+
font-size: 16px;
|
|
242
|
+
}
|
|
243
|
+
g text{
|
|
244
|
+
dominant-baseline: middle;
|
|
245
|
+
}
|
|
246
|
+
.selected{
|
|
247
|
+
fill: #fff;
|
|
248
|
+
stroke: #f00;
|
|
249
|
+
stroke-width: 2;
|
|
250
|
+
}
|
|
251
|
+
.task-tache{
|
|
252
|
+
fill: #fff;
|
|
253
|
+
stroke: #666;
|
|
254
|
+
stroke-width: 2;
|
|
265
255
|
}
|
|
266
256
|
|
|
267
|
-
.
|
|
257
|
+
.start{
|
|
268
258
|
stroke-width: 0;
|
|
269
259
|
fill:#fff;
|
|
270
260
|
}
|
|
@@ -274,38 +264,19 @@ li[data-v-7e8a1cf6] {
|
|
|
274
264
|
fill:#fff;
|
|
275
265
|
}
|
|
276
266
|
|
|
277
|
-
.human-decision{
|
|
278
|
-
stroke-width: 0;
|
|
279
|
-
fill:#fff;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
267
|
.decision{
|
|
283
268
|
stroke-width: 0;
|
|
284
269
|
fill:#fff;
|
|
285
270
|
}
|
|
286
|
-
|
|
287
|
-
.transition[data-v-a1576cad] {
|
|
288
|
-
stroke-width: 2;
|
|
289
|
-
stroke: #666;
|
|
290
|
-
fill: none;
|
|
291
|
-
cursor: pointer;
|
|
292
|
-
}
|
|
293
|
-
.selected[data-v-a1576cad] {
|
|
294
|
-
stroke: red;
|
|
295
|
-
}
|
|
296
|
-
.transition-dragger[data-v-a1576cad] {
|
|
297
|
-
stroke: red;
|
|
298
|
-
stroke-width: 1;
|
|
299
|
-
fill: white;
|
|
300
|
-
cursor: move;
|
|
301
|
-
}
|
|
302
|
-
.no-events[data-v-a1576cad] {
|
|
303
|
-
pointer-events: none;
|
|
304
|
-
}
|
|
305
271
|
#_subprocess-content[data-v-2b195c05] {
|
|
306
272
|
width: 100%;
|
|
307
273
|
height: calc(100vh - 200px);
|
|
308
|
-
}
|
|
274
|
+
}
|
|
275
|
+
.end{
|
|
276
|
+
stroke-width: 0;
|
|
277
|
+
fill:#fff;
|
|
278
|
+
}
|
|
279
|
+
.tooltip[data-v-ac799913] {
|
|
309
280
|
position: absolute;
|
|
310
281
|
background: #fff;
|
|
311
282
|
min-width: 150px;
|
|
@@ -320,17 +291,22 @@ li[data-v-7e8a1cf6] {
|
|
|
320
291
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
321
292
|
word-break: break-all;
|
|
322
293
|
}
|
|
294
|
+
.decision{
|
|
295
|
+
stroke-width: 0;
|
|
296
|
+
fill:#fff;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.human-decision{
|
|
300
|
+
stroke-width: 0;
|
|
301
|
+
fill:#fff;
|
|
302
|
+
}
|
|
303
|
+
|
|
323
304
|
.virtual-transition{
|
|
324
305
|
stroke-width: 2;
|
|
325
306
|
stroke:#000;
|
|
326
307
|
stroke-dasharray: 2 2;
|
|
327
308
|
fill: none;
|
|
328
309
|
}
|
|
329
|
-
|
|
330
|
-
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
331
|
-
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
332
|
-
padding-top: 0;
|
|
333
|
-
}
|
|
334
310
|
|
|
335
311
|
.selection-region{
|
|
336
312
|
stroke: blue;
|
|
@@ -346,6 +322,30 @@ li[data-v-7e8a1cf6] {
|
|
|
346
322
|
pointer-events:none;
|
|
347
323
|
}
|
|
348
324
|
|
|
325
|
+
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
326
|
+
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
327
|
+
padding-top: 0;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.transition[data-v-a1576cad] {
|
|
331
|
+
stroke-width: 2;
|
|
332
|
+
stroke: #666;
|
|
333
|
+
fill: none;
|
|
334
|
+
cursor: pointer;
|
|
335
|
+
}
|
|
336
|
+
.selected[data-v-a1576cad] {
|
|
337
|
+
stroke: red;
|
|
338
|
+
}
|
|
339
|
+
.transition-dragger[data-v-a1576cad] {
|
|
340
|
+
stroke: red;
|
|
341
|
+
stroke-width: 1;
|
|
342
|
+
fill: white;
|
|
343
|
+
cursor: move;
|
|
344
|
+
}
|
|
345
|
+
.no-events[data-v-a1576cad] {
|
|
346
|
+
pointer-events: none;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
349
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
350
350
|
.properties-editor[data-v-0e44fe8c] .el-dialog__body{
|
|
351
351
|
padding-top: 0
|
|
@@ -356,6 +356,11 @@ li[data-v-7e8a1cf6] {
|
|
|
356
356
|
padding-top: 0
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
+
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
360
|
+
.properties-editor[data-v-adb7c2ff] .el-dialog__body{
|
|
361
|
+
padding-top: 0
|
|
362
|
+
}
|
|
363
|
+
|
|
359
364
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
360
365
|
.properties-editor[data-v-bd66d235] .el-dialog__body{
|
|
361
366
|
padding-top: 0
|
|
@@ -375,11 +380,6 @@ li[data-v-7e8a1cf6] {
|
|
|
375
380
|
stroke-width:1px;
|
|
376
381
|
fill-opacity: 1;
|
|
377
382
|
}
|
|
378
|
-
|
|
379
|
-
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
380
|
-
.properties-editor[data-v-adb7c2ff] .el-dialog__body{
|
|
381
|
-
padding-top: 0
|
|
382
|
-
}
|
|
383
383
|
|
|
384
384
|
.resizer{
|
|
385
385
|
stroke: blue;
|
|
@@ -387,26 +387,6 @@ li[data-v-7e8a1cf6] {
|
|
|
387
387
|
fill: white;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
.control-point[data-v-0ff53a0a]{
|
|
391
|
-
fill: #fff;
|
|
392
|
-
cursor: move;
|
|
393
|
-
}
|
|
394
|
-
.control-line[data-v-0ff53a0a] {
|
|
395
|
-
stroke-dasharray: 2 2
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.control-point[data-v-788fb0ae]{
|
|
399
|
-
fill: #fff;
|
|
400
|
-
cursor: move;
|
|
401
|
-
}
|
|
402
|
-
.control-line[data-v-788fb0ae] {
|
|
403
|
-
stroke-dasharray: 2 2
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.el-checkbox[data-v-c019538f]{
|
|
407
|
-
margin-left: 20px;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
390
|
.percent[data-v-a219b06d] {
|
|
411
391
|
margin-left: 10px;
|
|
412
392
|
color: red;
|
|
@@ -422,6 +402,26 @@ ul li[data-v-39fac73c] {
|
|
|
422
402
|
.sub-li[data-v-39fac73c] {
|
|
423
403
|
padding-left: 10px;
|
|
424
404
|
}
|
|
405
|
+
.el-checkbox[data-v-c019538f]{
|
|
406
|
+
margin-left: 20px;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.control-point[data-v-788fb0ae]{
|
|
410
|
+
fill: #fff;
|
|
411
|
+
cursor: move;
|
|
412
|
+
}
|
|
413
|
+
.control-line[data-v-788fb0ae] {
|
|
414
|
+
stroke-dasharray: 2 2
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.control-point[data-v-0ff53a0a]{
|
|
418
|
+
fill: #fff;
|
|
419
|
+
cursor: move;
|
|
420
|
+
}
|
|
421
|
+
.control-line[data-v-0ff53a0a] {
|
|
422
|
+
stroke-dasharray: 2 2
|
|
423
|
+
}
|
|
424
|
+
|
|
425
425
|
.percent[data-v-c1c7385b]{
|
|
426
426
|
margin-left: 10px;
|
|
427
427
|
color:red;
|
|
@@ -432,26 +432,6 @@ ul li[data-v-39fac73c] {
|
|
|
432
432
|
margin-left: 20px;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
.percent[data-v-6aef99ff]{
|
|
436
|
-
margin-left: 10px;
|
|
437
|
-
color:red;
|
|
438
|
-
font-size:1.2em;
|
|
439
|
-
}
|
|
440
|
-
.group[data-v-98300543] {
|
|
441
|
-
font-size: 14px;
|
|
442
|
-
width: 100%;
|
|
443
|
-
}
|
|
444
|
-
.item[data-v-98300543] {
|
|
445
|
-
float: left;
|
|
446
|
-
list-style-type: none;
|
|
447
|
-
width: 33.33%;
|
|
448
|
-
margin-bottom: 18px;
|
|
449
|
-
}
|
|
450
|
-
.item-content[data-v-98300543] {
|
|
451
|
-
height: calc(100vh - 300px);
|
|
452
|
-
padding-left: 20px;
|
|
453
|
-
overflow: auto;
|
|
454
|
-
}
|
|
455
435
|
.el-tag + .el-tag[data-v-aaf48aff] {
|
|
456
436
|
margin-left: 10px;
|
|
457
437
|
}
|
|
@@ -474,9 +454,36 @@ select[data-v-aaf48aff]{
|
|
|
474
454
|
line-height: 32px;
|
|
475
455
|
}
|
|
476
456
|
|
|
457
|
+
.percent[data-v-6aef99ff]{
|
|
458
|
+
margin-left: 10px;
|
|
459
|
+
color:red;
|
|
460
|
+
font-size:1.2em;
|
|
461
|
+
}
|
|
462
|
+
.group[data-v-98300543] {
|
|
463
|
+
font-size: 14px;
|
|
464
|
+
width: 100%;
|
|
465
|
+
}
|
|
466
|
+
.item[data-v-98300543] {
|
|
467
|
+
float: left;
|
|
468
|
+
list-style-type: none;
|
|
469
|
+
width: 33.33%;
|
|
470
|
+
margin-bottom: 18px;
|
|
471
|
+
}
|
|
472
|
+
.item-content[data-v-98300543] {
|
|
473
|
+
height: calc(100vh - 300px);
|
|
474
|
+
padding-left: 20px;
|
|
475
|
+
overflow: auto;
|
|
476
|
+
}
|
|
477
477
|
span[data-v-4e29ea06] {
|
|
478
478
|
margin: 0 10px;
|
|
479
479
|
}
|
|
480
|
+
|
|
481
|
+
.searchResult {
|
|
482
|
+
color:red
|
|
483
|
+
}
|
|
484
|
+
.inline-input-custom {
|
|
485
|
+
width : 90%
|
|
486
|
+
}
|
|
480
487
|
#appContainer[data-v-9458f3bf] .el-checkbox {
|
|
481
488
|
display: block;
|
|
482
489
|
}
|
|
@@ -516,10 +523,3 @@ span[data-v-4e29ea06] {
|
|
|
516
523
|
.inline-input-custom {
|
|
517
524
|
width : 90%
|
|
518
525
|
}
|
|
519
|
-
|
|
520
|
-
.searchResult {
|
|
521
|
-
color:red
|
|
522
|
-
}
|
|
523
|
-
.inline-input-custom {
|
|
524
|
-
width : 90%
|
|
525
|
-
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import o from "./src/workflow-editor.vue.mjs";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import r from "./src/store/workflow-editor.mjs";
|
|
3
|
+
import t from "./src/workflow-history.vue.mjs";
|
|
4
|
+
o.install = function(r2) {
|
|
5
|
+
r2.component(o.name, o), r2.component(t.name, t);
|
|
4
6
|
};
|
|
5
|
-
const
|
|
7
|
+
const m = { WorkflowEditor: o, WorkflowHistory: t, wfEditorStore: r };
|
|
6
8
|
export {
|
|
7
|
-
|
|
9
|
+
m as default
|
|
8
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "./assets/wf-editor-icons.mjs";
|
|
2
2
|
import { mapGetters as s, mapMutations as t } from "vuex";
|
|
3
|
-
import { processTemplate as e, initializeProcessData as o, removeTextProperty as r } from "
|
|
4
|
-
import i from "
|
|
3
|
+
import { processTemplate as e, initializeProcessData as o, removeTextProperty as r } from "./util.mjs";
|
|
4
|
+
import i from "./main/wf-history-canvas.vue.mjs";
|
|
5
5
|
import n from "xml-js";
|
|
6
|
-
import
|
|
7
|
-
import { resolveComponent as
|
|
6
|
+
import a from "./api.mjs";
|
|
7
|
+
import { resolveComponent as c, openBlock as l, createElementBlock as h, createElementVNode as u, createVNode as m, withModifiers as p } from "vue";
|
|
8
8
|
import "./workflow-history.vue2.mjs";
|
|
9
9
|
import d from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
10
|
const f = { name: "WorkflowHistory", components: { WfHistoryCanvas: i }, props: { id: { type: Number, default: null } }, data: function() {
|
|
@@ -12,7 +12,7 @@ const f = { name: "WorkflowHistory", components: { WfHistoryCanvas: i }, props:
|
|
|
12
12
|
}, computed: { ...s("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...s(["sidebar"]) }, watch: {}, created: function() {
|
|
13
13
|
this.showHistory();
|
|
14
14
|
}, mounted: function() {
|
|
15
|
-
}, methods: { ...
|
|
15
|
+
}, methods: { ...a, ...t("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
|
|
16
16
|
this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((s2) => {
|
|
17
17
|
this.allProcessI18n = s2;
|
|
18
18
|
const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
|
|
@@ -26,10 +26,10 @@ const f = { name: "WorkflowHistory", components: { WfHistoryCanvas: i }, props:
|
|
|
26
26
|
const t2 = n.xml2js(s2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
|
|
27
27
|
r(t2.process), this.process = t2.process, o(this.process);
|
|
28
28
|
} } }, w = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, v = { class: "main" };
|
|
29
|
-
const
|
|
30
|
-
const n2 =
|
|
29
|
+
const y = d(f, [["render", function(s2, t2, e2, o2, r2, i2) {
|
|
30
|
+
const n2 = c("wf-history-canvas");
|
|
31
31
|
return l(), h("div", w, [u("div", v, [u("section", null, [m(n2, { onselectstart: "return false", process: s2.process, histories: s2.histories, "current-tasks": s2.currentTasks, "all-process-i18n": s2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: p(i2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
|
|
32
|
-
}], ["__scopeId", "data-v-
|
|
32
|
+
}], ["__scopeId", "data-v-6658e14b"]]);
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
y as default
|
|
35
35
|
};
|
package/lib/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}),
|
|
7
|
-
};
|
|
8
|
-
exports.
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const o = require("./workflow-editor/index.cjs"), r = require("./plugins/index.cjs"), e = require("./src/i18n/langs/cn.cjs"), t = require("./src/i18n/langs/en.cjs"), i = o.WorkflowEditor, s = o.WorkflowHistory, n = o.wfEditorStore, l = [i, s], d = function(o2) {
|
|
4
|
+
d.installed || (l.forEach((r2) => {
|
|
5
|
+
o2.component(r2.name, r2);
|
|
6
|
+
}), o2.use(r));
|
|
7
|
+
}, f = { wfEditorInstall: d, WorkflowEditor: i, wfEditorStore: n };
|
|
8
|
+
exports.wfEditorCn = e, exports.wfEditorEn = t, exports.WorkflowEditor = i, exports.WorkflowHistory = s, exports.default = f, exports.wfEditorInstall = d, exports.wfEditorStore = n;
|