workflow-editor 0.0.81-up-tmp21 → 0.0.81-up-tmp24

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/style.css CHANGED
@@ -498,29 +498,29 @@ g text{
498
498
  .current-tache text{
499
499
  fill: white
500
500
  }
501
- .main[data-v-14c5e870] {
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-14c5e870] {
507
+ .canvas-container[data-v-6658e14b] {
508
508
  position: relative;
509
509
  height: 100%;
510
510
  width: 100%;
511
511
  }
512
- section[data-v-14c5e870] {
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-14c5e870] {
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-14c5e870] .draggable {
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 "./workflow-history/index.mjs";
3
- import { default as default2 } from "./workflow-editor/src/store/workflow-editor.mjs";
4
- import t from "./plugins/index.mjs";
5
- import { default as default3 } from "./src/i18n/langs/cn.mjs";
6
- import { default as default4 } from "./src/i18n/langs/en.mjs";
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(t));
11
- };
8
+ }), o2.use(r));
9
+ }, e = { wfEditorInstall: s, WorkflowEditor: t, wfEditorStore: f };
12
10
  export {
13
- o as WorkflowEditor,
14
- r as WorkflowHistory,
15
- default3 as wfEditorCn,
16
- default4 as wfEditorEn,
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
- default2 as wfEditorStore
17
+ f as wfEditorStore
19
18
  };
package/es/style.css CHANGED
@@ -1,4 +1,29 @@
1
- @charset "UTF-8";
1
+ @charset "UTF-8";.main[data-v-6658e14b] {
2
+ position: relative;
3
+ display: flex;
4
+ height: 100%;
5
+ width: 100%;
6
+ }
7
+ .canvas-container[data-v-6658e14b] {
8
+ position: relative;
9
+ height: 100%;
10
+ width: 100%;
11
+ }
12
+ section[data-v-6658e14b] {
13
+ overflow: hidden;
14
+ width: 100%;
15
+ height: 100%;
16
+ padding: 0;
17
+ }
18
+ .canvas[data-v-6658e14b] {
19
+ overflow: auto;
20
+ height: 100%;
21
+ padding: 0;
22
+ min-height: 500px;
23
+ }
24
+ .canvas[data-v-6658e14b] .draggable {
25
+ cursor: default;
26
+ }
2
27
  .button-area[data-v-865cb4ee] {
3
28
  padding: 5px 0 5px 5px;
4
29
  height: 50px;
@@ -100,31 +125,6 @@ pre[data-v-865cb4ee] {
100
125
  /* 去掉卡片和tab表头的距离 */
101
126
  [data-v-865cb4ee] .el-tabs__header {
102
127
  margin: 0;
103
- }.main[data-v-14c5e870] {
104
- position: relative;
105
- display: flex;
106
- height: 100%;
107
- width: 100%;
108
- }
109
- .canvas-container[data-v-14c5e870] {
110
- position: relative;
111
- height: 100%;
112
- width: 100%;
113
- }
114
- section[data-v-14c5e870] {
115
- overflow: hidden;
116
- width: 100%;
117
- height: 100%;
118
- padding: 0;
119
- }
120
- .canvas[data-v-14c5e870] {
121
- overflow: auto;
122
- height: 100%;
123
- padding: 0;
124
- min-height: 500px;
125
- }
126
- .canvas[data-v-14c5e870] .draggable {
127
- cursor: default;
128
128
  }
129
129
  #svg{
130
130
  /* border:1px solid red; */
@@ -155,22 +155,14 @@ g text{
155
155
  fill: #fff;
156
156
  stroke: #666;
157
157
  stroke-width: 2;
158
- }
159
- .passed-tache .task-tache{
160
- fill: green;
161
- stroke: green;
162
- stroke-width: 2;
163
- }
164
- .current-tache .task-tache{
165
- fill: red;
166
- stroke: red;
167
- stroke-width: 2;
168
- }
169
- .passed-tache text{
170
- fill:white;
171
- }
172
- .current-tache text{
173
- fill: white
158
+ }
159
+
160
+ .svg-icon {
161
+ width: 1em;
162
+ height: 1em;
163
+ vertical-align: -0.15em;
164
+ fill: currentColor;
165
+ overflow: hidden;
174
166
  }
175
167
  h3[data-v-0d941719] {
176
168
  color: #999999;
@@ -187,43 +179,14 @@ h3[data-v-0d941719] {
187
179
  .el-button i[data-v-0d941719] {
188
180
  padding-right: 4px;
189
181
  }
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;
182
+ .start{
183
+ stroke-width: 0;
184
+ fill:#fff;
219
185
  }
220
186
 
221
- .svg-icon {
222
- width: 1em;
223
- height: 1em;
224
- vertical-align: -0.15em;
225
- fill: currentColor;
226
- overflow: hidden;
187
+ .end{
188
+ stroke-width: 0;
189
+ fill:#fff;
227
190
  }
228
191
  li[data-v-7e8a1cf6] {
229
192
  color: #333;
@@ -254,19 +217,56 @@ li[data-v-7e8a1cf6] {
254
217
  li[data-v-7e8a1cf6] {
255
218
  list-style-type: none;
256
219
  }
257
- .start{
258
- stroke-width: 0;
259
- fill:#fff;
260
- }
261
-
262
220
  .decision{
263
221
  stroke-width: 0;
264
222
  fill:#fff;
265
223
  }
266
224
 
267
- .end{
268
- stroke-width: 0;
269
- fill:#fff;
225
+ #svg{
226
+ /* border:1px solid red; */
227
+ background: white;
228
+ background-image:
229
+ linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
230
+ linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
231
+ linear-gradient(#e5e5e5 1px, transparent 0),
232
+ linear-gradient(90deg,#e5e5e5 1px, transparent 0);
233
+ background-size:
234
+ 15px 15px,
235
+ 15px 15px,
236
+ 75px 75px,
237
+ 75px 75px;
238
+ }
239
+ g{
240
+ font-size: 16px;
241
+ }
242
+ g text{
243
+ dominant-baseline: middle;
244
+ }
245
+ .selected{
246
+ fill: #fff;
247
+ stroke: #f00;
248
+ stroke-width: 2;
249
+ }
250
+ .task-tache{
251
+ fill: #fff;
252
+ stroke: #666;
253
+ stroke-width: 2;
254
+ }
255
+ .passed-tache .task-tache{
256
+ fill: green;
257
+ stroke: green;
258
+ stroke-width: 2;
259
+ }
260
+ .current-tache .task-tache{
261
+ fill: red;
262
+ stroke: red;
263
+ stroke-width: 2;
264
+ }
265
+ .passed-tache text{
266
+ fill:white;
267
+ }
268
+ .current-tache text{
269
+ fill: white
270
270
  }
271
271
 
272
272
  .decision{
@@ -274,12 +274,12 @@ li[data-v-7e8a1cf6] {
274
274
  fill:#fff;
275
275
  }
276
276
 
277
- .human-decision{
277
+ .decision{
278
278
  stroke-width: 0;
279
279
  fill:#fff;
280
280
  }
281
281
 
282
- .decision{
282
+ .human-decision{
283
283
  stroke-width: 0;
284
284
  fill:#fff;
285
285
  }
@@ -302,35 +302,13 @@ li[data-v-7e8a1cf6] {
302
302
  .no-events[data-v-a1576cad] {
303
303
  pointer-events: none;
304
304
  }
305
- #_subprocess-content[data-v-2b195c05] {
306
- width: 100%;
307
- height: calc(100vh - 200px);
308
- }.tooltip[data-v-ac799913] {
309
- position: absolute;
310
- background: #fff;
311
- min-width: 150px;
312
- border-radius: 4px;
313
- border: 1px solid #ebeef5;
314
- padding: 12px;
315
- z-index: 2000;
316
- color: #606266;
317
- line-height: 1.4;
318
- text-align: justify;
319
- font-size: 14px;
320
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
321
- word-break: break-all;
322
- }
305
+
323
306
  .virtual-transition{
324
307
  stroke-width: 2;
325
308
  stroke:#000;
326
309
  stroke-dasharray: 2 2;
327
310
  fill: none;
328
311
  }
329
-
330
- /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
331
- .properties-editor[data-v-1651d82a] .el-dialog__body {
332
- padding-top: 0;
333
- }
334
312
 
335
313
  .selection-region{
336
314
  stroke: blue;
@@ -346,6 +324,11 @@ li[data-v-7e8a1cf6] {
346
324
  pointer-events:none;
347
325
  }
348
326
 
327
+ /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
328
+ .properties-editor[data-v-1651d82a] .el-dialog__body {
329
+ padding-top: 0;
330
+ }
331
+
349
332
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
350
333
  .properties-editor[data-v-0e44fe8c] .el-dialog__body{
351
334
  padding-top: 0
@@ -355,11 +338,39 @@ li[data-v-7e8a1cf6] {
355
338
  .properties-editor[data-v-af76d417] .el-dialog__body{
356
339
  padding-top: 0
357
340
  }
358
-
341
+ .tooltip[data-v-ac799913] {
342
+ position: absolute;
343
+ background: #fff;
344
+ min-width: 150px;
345
+ border-radius: 4px;
346
+ border: 1px solid #ebeef5;
347
+ padding: 12px;
348
+ z-index: 2000;
349
+ color: #606266;
350
+ line-height: 1.4;
351
+ text-align: justify;
352
+ font-size: 14px;
353
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
354
+ word-break: break-all;
355
+ }
359
356
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
360
357
  .properties-editor[data-v-bd66d235] .el-dialog__body{
361
358
  padding-top: 0
362
359
  }
360
+
361
+ /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
362
+ .properties-editor[data-v-adb7c2ff] .el-dialog__body{
363
+ padding-top: 0
364
+ }
365
+ #_subprocess-content[data-v-2b195c05] {
366
+ width: 100%;
367
+ height: calc(100vh - 200px);
368
+ }
369
+ .resizer{
370
+ stroke: blue;
371
+ stroke-width: 1;
372
+ fill: white;
373
+ }
363
374
 
364
375
  .joint-container{
365
376
  stroke-width: 0;
@@ -375,38 +386,23 @@ li[data-v-7e8a1cf6] {
375
386
  stroke-width:1px;
376
387
  fill-opacity: 1;
377
388
  }
378
-
379
- /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
380
- .properties-editor[data-v-adb7c2ff] .el-dialog__body{
381
- padding-top: 0
382
- }
383
-
384
- .resizer{
385
- stroke: blue;
386
- stroke-width: 1;
387
- fill: white;
388
- }
389
389
 
390
- .control-point[data-v-0ff53a0a]{
390
+ .control-point[data-v-788fb0ae]{
391
391
  fill: #fff;
392
392
  cursor: move;
393
393
  }
394
- .control-line[data-v-0ff53a0a] {
394
+ .control-line[data-v-788fb0ae] {
395
395
  stroke-dasharray: 2 2
396
396
  }
397
397
 
398
- .control-point[data-v-788fb0ae]{
398
+ .control-point[data-v-0ff53a0a]{
399
399
  fill: #fff;
400
400
  cursor: move;
401
401
  }
402
- .control-line[data-v-788fb0ae] {
402
+ .control-line[data-v-0ff53a0a] {
403
403
  stroke-dasharray: 2 2
404
404
  }
405
405
 
406
- .el-checkbox[data-v-c019538f]{
407
- margin-left: 20px;
408
- }
409
-
410
406
  .percent[data-v-a219b06d] {
411
407
  margin-left: 10px;
412
408
  color: red;
@@ -422,6 +418,10 @@ ul li[data-v-39fac73c] {
422
418
  .sub-li[data-v-39fac73c] {
423
419
  padding-left: 10px;
424
420
  }
421
+ .el-checkbox[data-v-c019538f]{
422
+ margin-left: 20px;
423
+ }
424
+
425
425
  .percent[data-v-c1c7385b]{
426
426
  margin-left: 10px;
427
427
  color:red;
@@ -437,21 +437,7 @@ ul li[data-v-39fac73c] {
437
437
  color:red;
438
438
  font-size:1.2em;
439
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
- }
440
+
455
441
  .el-tag + .el-tag[data-v-aaf48aff] {
456
442
  margin-left: 10px;
457
443
  }
@@ -477,7 +463,21 @@ select[data-v-aaf48aff]{
477
463
  span[data-v-4e29ea06] {
478
464
  margin: 0 10px;
479
465
  }
480
- #appContainer[data-v-9458f3bf] .el-checkbox {
466
+ .group[data-v-98300543] {
467
+ font-size: 14px;
468
+ width: 100%;
469
+ }
470
+ .item[data-v-98300543] {
471
+ float: left;
472
+ list-style-type: none;
473
+ width: 33.33%;
474
+ margin-bottom: 18px;
475
+ }
476
+ .item-content[data-v-98300543] {
477
+ height: calc(100vh - 300px);
478
+ padding-left: 20px;
479
+ overflow: auto;
480
+ }#appContainer[data-v-9458f3bf] .el-checkbox {
481
481
  display: block;
482
482
  }
483
483
  #appContainer[data-v-9458f3bf] .el-transfer-panel {
@@ -491,6 +491,13 @@ span[data-v-4e29ea06] {
491
491
  word-break: keep-all;
492
492
  width: 55%;
493
493
  }
494
+ .searchResult {
495
+ color:red
496
+ }
497
+ .inline-input-custom {
498
+ width : 90%
499
+ }
500
+
494
501
  #custTabOne[data-v-7feaa2da] .el-tabs__content {
495
502
  height: 500px;
496
503
  }
@@ -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
- o.install = function(t2) {
3
- t2.component(o.name, o);
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 t = { WorkflowEditor: o };
7
+ const m = { WorkflowEditor: o, WorkflowHistory: t, wfEditorStore: r };
6
8
  export {
7
- t as default
9
+ m as default
8
10
  };
@@ -1,10 +1,10 @@
1
- import "../../workflow-editor/src/assets/wf-editor-icons.mjs";
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 "../../workflow-editor/src/util.mjs";
4
- import i from "../../workflow-editor/src/main/wf-history-canvas.vue.mjs";
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 c from "../../workflow-editor/src/api.mjs";
7
- import { resolveComponent as a, openBlock as l, createElementBlock as h, createElementVNode as u, createVNode as m, withModifiers as p } from "vue";
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: { ...c, ...t("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
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 k = d(f, [["render", function(s2, t2, e2, o2, r2, i2) {
30
- const n2 = a("wf-history-canvas");
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-14c5e870"]]);
32
+ }], ["__scopeId", "data-v-6658e14b"]]);
33
33
  export {
34
- k as default
34
+ y as default
35
35
  };
package/lib/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const r = require("./workflow-editor/index.cjs"), o = require("./workflow-history/index.cjs"), e = require("./workflow-editor/src/store/workflow-editor.cjs"), t = require("./plugins/index.cjs"), s = require("./src/i18n/langs/cn.cjs"), i = require("./src/i18n/langs/en.cjs"), n = [r, o], c = function(r2) {
4
- c.installed || (n.forEach((o2) => {
5
- r2.component(o2.name, o2);
6
- }), r2.use(t));
7
- };
8
- exports.WorkflowEditor = r, exports.WorkflowHistory = o, exports.wfEditorStore = e, exports.wfEditorCn = s, exports.wfEditorEn = i, exports.wfEditorInstall = c;
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;