gbflowengine 0.1.0 → 0.1.1

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.
Files changed (79) hide show
  1. package/README.md +271 -271
  2. package/dist/gbflowengine.css +1 -1
  3. package/dist/gbflowengine.js +8232 -6913
  4. package/dist/gbflowengine.js.map +1 -1
  5. package/dist/gbflowengine.umd.cjs +2 -2
  6. package/dist/gbflowengine.umd.cjs.map +1 -1
  7. package/package.json +85 -84
  8. package/src/center/DefinitionInspect.vue +291 -291
  9. package/src/center/FlowCenter.vue +33 -33
  10. package/src/center/index.js +29 -29
  11. package/src/center/storage.js +748 -748
  12. package/src/core/flow/condition.js +160 -160
  13. package/src/core/flow/customNode.js +385 -385
  14. package/src/core/flow/defaults.js +124 -124
  15. package/src/core/flow/flowConstant.js +265 -265
  16. package/src/core/flow/flowNodeUtils.js +29 -29
  17. package/src/core/flow/index.js +47 -47
  18. package/src/core/flow/node.js +44 -44
  19. package/src/core/flow/nodeFactory.js +58 -58
  20. package/src/core/flow/prediction.js +325 -325
  21. package/src/core/flow/schema.js +864 -864
  22. package/src/definition/FlowDefinitionDesigner.vue +338 -338
  23. package/src/definition/index.js +9 -9
  24. package/src/index.js +39 -39
  25. package/src/storage.js +200 -200
  26. package/src/testing/FlowTestPanel.vue +2502 -2502
  27. package/src/testing/UserConfigDrawer.vue +376 -376
  28. package/src/testing/diagram/FlowProgressDiagram.vue +318 -318
  29. package/src/testing/diagramModel.js +517 -517
  30. package/src/testing/index.js +23 -23
  31. package/src/testing/mock.js +246 -246
  32. package/src/testing/oaExecutors.js +51 -51
  33. package/src/testing/oaSeed.js +467 -467
  34. package/src/testing/sample.js +412 -412
  35. package/src/testing/seed.js +122 -122
  36. package/src/utils/format.js +27 -27
  37. package/src/visual/FlowCanvas.vue +440 -440
  38. package/src/visual/NodeProgressDetail.vue +43 -43
  39. package/src/visual/NodeStatusBadge.vue +17 -17
  40. package/src/visual/NodeWrap.vue +46 -46
  41. package/src/visual/ScWorkflow.vue +49 -49
  42. package/src/visual/SelectDialog.vue +459 -459
  43. package/src/visual/conditionHelpers.js +116 -116
  44. package/src/visual/index.js +6 -6
  45. package/src/visual/nodes/AddNode.vue +222 -222
  46. package/src/visual/nodes/ApproverNode.vue +347 -347
  47. package/src/visual/nodes/BranchNode.vue +441 -441
  48. package/src/visual/nodes/CustomNode.vue +339 -339
  49. package/src/visual/nodes/EndNode.vue +21 -21
  50. package/src/visual/nodes/PassNode.vue +100 -100
  51. package/src/visual/nodes/PromoterNode.vue +134 -134
  52. package/src/visual/nodes/RejectNode.vue +100 -100
  53. package/src/visual/nodes/SendNode.vue +151 -151
  54. package/src/visual/styles.scss +879 -879
  55. package/src/visual/useScNodeStatus.js +18 -18
  56. package/src/workbench/OaWorkbench.vue +1341 -1341
  57. package/src/workbench/components/ApprovalWorkspace.vue +2090 -2090
  58. package/src/workbench/components/CategoryIcon.vue +74 -74
  59. package/src/workbench/components/NotificationIcon.vue +73 -73
  60. package/src/workbench/components/ProcessSteps.vue +557 -557
  61. package/src/workbench/components/ResubmitDialog.vue +227 -227
  62. package/src/workbench/components/SidebarNav.vue +138 -138
  63. package/src/workbench/components/StartFlowDialog.vue +1058 -1058
  64. package/src/workbench/components/UserAvatar.vue +68 -68
  65. package/src/workbench/model.js +1080 -1080
  66. package/src/workbench/pages/DesignPage.vue +798 -798
  67. package/src/workbench/pages/HomePage.vue +1050 -1050
  68. package/src/workbench/pages/MonitorPage.vue +1029 -1029
  69. package/src/workbench/pages/NotificationsPage.vue +554 -554
  70. package/src/workbench/pages/RequestsPage.vue +644 -644
  71. package/src/workbench/pages/TaskCenterPage.vue +1155 -1155
  72. package/src/workbench/pages/TemplatesPage.vue +680 -680
  73. package/src/workbench/styles.scss +555 -555
  74. package/types/center.d.ts +5 -5
  75. package/types/core.d.ts +479 -479
  76. package/types/definition.d.ts +4 -4
  77. package/types/index.d.ts +34 -34
  78. package/types/testing.d.ts +20 -20
  79. package/types/visual.d.ts +20 -20
@@ -1,879 +1,879 @@
1
- /**
2
- * Flow designer styles, 1:1 with flowlong-designer (sc-workflow layout).
3
- * Layout rules follow the MIT-licensed "sc-workflow" design by sakuya
4
- * (仿钉钉流程设计器), extended with the node types of gbflowdesign.
5
- */
6
-
7
- .sc-workflow-design {
8
- width: 100%;
9
- }
10
-
11
- .sc-workflow-design .box-scale {
12
- display: inline-block;
13
- position: relative;
14
- width: 100%;
15
- align-items: flex-start;
16
- justify-content: center;
17
- flex-wrap: wrap;
18
- min-width: min-content;
19
- }
20
-
21
- .sc-workflow-design {
22
- .node-wrap {
23
- display: inline-flex;
24
- width: 100%;
25
- flex-flow: column wrap;
26
- justify-content: flex-start;
27
- align-items: center;
28
- padding: 0;
29
- position: relative;
30
- z-index: 1;
31
- }
32
-
33
- .node-wrap-box {
34
- display: inline-flex;
35
- flex-direction: column;
36
- position: relative;
37
- width: 220px;
38
- min-height: 72px;
39
- flex-shrink: 0;
40
- background: rgb(255, 255, 255);
41
- border-radius: 4px;
42
- cursor: pointer;
43
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
44
- }
45
-
46
- .node-wrap-box::before {
47
- content: '';
48
- position: absolute;
49
- top: -12px;
50
- left: 50%;
51
- transform: translateX(-50%);
52
- width: 0;
53
- border-style: solid;
54
- border-width: 8px 6px 4px;
55
- border-color: rgb(202, 202, 202) transparent transparent;
56
- }
57
-
58
- .node-wrap-box.start-node:before {
59
- content: none;
60
- }
61
-
62
- .node-wrap-box .title {
63
- height: 24px;
64
- line-height: 24px;
65
- color: #fff;
66
- padding-left: 16px;
67
- padding-right: 30px;
68
- border-radius: 4px 4px 0 0;
69
- position: relative;
70
- display: flex;
71
- align-items: center;
72
- }
73
-
74
- .node-wrap-box .title .icon {
75
- margin-right: 5px;
76
- }
77
-
78
- .node-wrap-box .title .close {
79
- font-size: 15px;
80
- position: absolute;
81
- top: 50%;
82
- transform: translateY(-50%);
83
- right: 10px;
84
- display: none;
85
- }
86
-
87
- .node-wrap-box .content {
88
- position: relative;
89
- padding: 15px;
90
- }
91
-
92
- .node-wrap-box .content .placeholder {
93
- color: #999;
94
- }
95
-
96
- .node-wrap-box:hover .close {
97
- display: block;
98
- }
99
-
100
- .add-node-btn-box {
101
- width: 240px;
102
- display: inline-flex;
103
- flex-shrink: 0;
104
- position: relative;
105
- z-index: 1;
106
- }
107
-
108
- .add-node-btn-box:before {
109
- content: '';
110
- position: absolute;
111
- top: 0;
112
- left: 0;
113
- right: 0;
114
- bottom: 0;
115
- z-index: -1;
116
- margin: auto;
117
- width: 2px;
118
- height: 100%;
119
- background-color: rgb(202, 202, 202);
120
- }
121
-
122
- .add-node-btn {
123
- user-select: none;
124
- width: 240px;
125
- padding: 20px 0 32px;
126
- display: flex;
127
- justify-content: center;
128
- flex-shrink: 0;
129
- flex-grow: 1;
130
- }
131
-
132
- .add-branch {
133
- justify-content: center;
134
- padding: 0 10px;
135
- position: absolute;
136
- top: -16px;
137
- left: 50%;
138
- transform: translateX(-50%);
139
- transform-origin: center center;
140
- z-index: 1;
141
- display: inline-flex;
142
- align-items: center;
143
- }
144
-
145
- .branch-wrap {
146
- display: inline-flex;
147
- width: 100%;
148
- }
149
-
150
- .branch-box-wrap {
151
- display: flex;
152
- flex-flow: column wrap;
153
- align-items: center;
154
- min-height: 270px;
155
- width: 100%;
156
- flex-shrink: 0;
157
- }
158
-
159
- .col-box {
160
- display: inline-flex;
161
- flex-direction: column;
162
- align-items: center;
163
- position: relative;
164
- }
165
-
166
- .branch-box {
167
- display: flex;
168
- overflow: visible;
169
- min-height: 180px;
170
- height: auto;
171
- border-bottom: 2px solid #ccc;
172
- border-top: 2px solid #ccc;
173
- position: relative;
174
- margin-top: 15px;
175
- }
176
-
177
- .branch-box .col-box::before {
178
- content: '';
179
- position: absolute;
180
- top: 0;
181
- left: 0;
182
- right: 0;
183
- bottom: 0;
184
- z-index: 0;
185
- margin: auto;
186
- width: 2px;
187
- height: 100%;
188
- background-color: rgb(202, 202, 202);
189
- }
190
-
191
- .condition-node {
192
- display: inline-flex;
193
- flex-direction: column;
194
- min-height: 220px;
195
- }
196
-
197
- .condition-node-box {
198
- padding-top: 30px;
199
- padding-right: 50px;
200
- padding-left: 50px;
201
- justify-content: center;
202
- align-items: center;
203
- flex-grow: 1;
204
- position: relative;
205
- display: inline-flex;
206
- flex-direction: column;
207
- }
208
-
209
- .condition-node-box::before {
210
- content: '';
211
- position: absolute;
212
- top: 0;
213
- left: 0;
214
- right: 0;
215
- bottom: 0;
216
- margin: auto;
217
- width: 2px;
218
- height: 100%;
219
- background-color: rgb(202, 202, 202);
220
- }
221
-
222
- .auto-judge {
223
- position: relative;
224
- width: 220px;
225
- min-height: 72px;
226
- background: rgb(255, 255, 255);
227
- border-radius: 4px;
228
- padding: 15px;
229
- cursor: pointer;
230
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
231
- }
232
-
233
- .auto-judge::before {
234
- content: '';
235
- position: absolute;
236
- top: -12px;
237
- left: 50%;
238
- transform: translateX(-50%);
239
- width: 0;
240
- border-style: solid;
241
- border-width: 8px 6px 4px;
242
- border-color: rgb(202, 202, 202) transparent transparent;
243
- background: rgb(239, 239, 239);
244
- }
245
-
246
- .auto-judge .title {
247
- line-height: 16px;
248
- }
249
-
250
- .auto-judge .title .node-title {
251
- color: #15bc83;
252
- }
253
-
254
- .auto-judge .title .close {
255
- font-size: 15px;
256
- position: absolute;
257
- top: 15px;
258
- right: 15px;
259
- color: #999;
260
- display: none;
261
- }
262
-
263
- .auto-judge .title .priority-title {
264
- position: absolute;
265
- top: 15px;
266
- right: 15px;
267
- color: #999;
268
- }
269
-
270
- .auto-judge .content {
271
- position: relative;
272
- padding-top: 15px;
273
- }
274
-
275
- .auto-judge .content .placeholder {
276
- color: #999;
277
- }
278
-
279
- .auto-judge:hover {
280
- .close {
281
- display: block;
282
- }
283
-
284
- .priority-title {
285
- display: none;
286
- }
287
- }
288
-
289
- .top-left-cover-line,
290
- .top-right-cover-line {
291
- position: absolute;
292
- height: 3px;
293
- width: 50%;
294
- background-color: #efefef;
295
- top: -2px;
296
- }
297
-
298
- .bottom-left-cover-line,
299
- .bottom-right-cover-line {
300
- position: absolute;
301
- height: 3px;
302
- width: 50%;
303
- background-color: #efefef;
304
- bottom: -2px;
305
- }
306
-
307
- .top-left-cover-line {
308
- left: -1px;
309
- }
310
-
311
- .top-right-cover-line {
312
- right: -1px;
313
- }
314
-
315
- .bottom-left-cover-line {
316
- left: -1px;
317
- }
318
-
319
- .bottom-right-cover-line {
320
- right: -1px;
321
- }
322
-
323
- // 结束节点不像其它节点那样包在 .node-wrap 里,本身就是整行的块级容器,
324
- // 必须自己把「圆点 / 文案 / 状态徽标」竖直居中排布,否则徽标会被挤到画布最左侧。
325
- .end-node {
326
- display: flex;
327
- flex-direction: column;
328
- align-items: center;
329
- font-size: 14px;
330
- color: rgba(25, 31, 37, 0.4);
331
- }
332
-
333
- .end-node-circle {
334
- width: 10px;
335
- height: 10px;
336
- border-radius: 50%;
337
- background: #ccc;
338
- }
339
-
340
- .end-node-text {
341
- margin-top: 5px;
342
- text-align: center;
343
- }
344
-
345
- .auto-judge:hover {
346
- .sort-left {
347
- display: flex;
348
- }
349
-
350
- .sort-right {
351
- display: flex;
352
- }
353
- }
354
-
355
- .auto-judge .sort-left {
356
- position: absolute;
357
- top: 0;
358
- bottom: 0;
359
- z-index: 1;
360
- left: 0;
361
- display: none;
362
- justify-content: center;
363
- align-items: center;
364
- flex-direction: column;
365
- }
366
-
367
- .auto-judge .sort-right {
368
- position: absolute;
369
- top: 0;
370
- bottom: 0;
371
- z-index: 1;
372
- right: 0;
373
- display: none;
374
- justify-content: center;
375
- align-items: center;
376
- flex-direction: column;
377
- }
378
-
379
- .auto-judge .sort-left:hover,
380
- .auto-judge .sort-right:hover {
381
- background: #eee;
382
- }
383
-
384
- .auto-judge:after {
385
- pointer-events: none;
386
- content: '';
387
- position: absolute;
388
- top: 0;
389
- bottom: 0;
390
- left: 0;
391
- right: 0;
392
- z-index: 2;
393
- border-radius: 4px;
394
- transition: all 0.1s;
395
- }
396
-
397
- .auto-judge:hover:after {
398
- border: 1px solid #3296fa;
399
- box-shadow: 0 0 6px 0 rgba(50, 150, 250, 0.3);
400
- }
401
-
402
- .node-wrap-box:after {
403
- pointer-events: none;
404
- content: '';
405
- position: absolute;
406
- top: 0;
407
- bottom: 0;
408
- left: 0;
409
- right: 0;
410
- z-index: 2;
411
- border-radius: 4px;
412
- transition: all 0.1s;
413
- }
414
-
415
- .node-wrap-box:hover:after {
416
- border: 1px solid #3296fa;
417
- box-shadow: 0 0 6px 0 rgba(50, 150, 250, 0.3);
418
- }
419
-
420
- // branch type accents
421
- .auto-judge.auto-judge--parallel {
422
- .title .node-title {
423
- color: #3296fa;
424
- }
425
- }
426
-
427
- .auto-judge.auto-judge--inclusive {
428
- .title .node-title {
429
- color: #ff8a80;
430
- }
431
- }
432
-
433
- // read-only mode hides editing affordances but keeps the node gap/connectors
434
- &.is-readonly {
435
- .node-wrap-box .close,
436
- .auto-judge .close,
437
- .auto-judge .sort-left,
438
- .auto-judge .sort-right,
439
- .add-branch,
440
- .add-node-btn {
441
- display: none !important;
442
- }
443
-
444
- .add-node-btn-box {
445
- display: block !important;
446
- height: 0;
447
- min-height: 52px;
448
- }
449
- }
450
- }
451
-
452
- .tags-list {
453
- margin-top: 15px;
454
- width: 100%;
455
- }
456
-
457
- .add-node-popover-body ul {
458
- padding: 0;
459
- margin: 0;
460
- }
461
-
462
- .add-node-popover-body li {
463
- display: inline-block;
464
- width: 84px;
465
- text-align: center;
466
- padding: 10px 0;
467
- list-style: none;
468
- }
469
-
470
- .add-node-popover-body li .fc-add-icon {
471
- width: 40px;
472
- height: 40px;
473
- border-radius: 50%;
474
- display: inline-flex;
475
- align-items: center;
476
- justify-content: center;
477
- font-size: 18px;
478
- cursor: pointer;
479
- border: 1px solid var(--el-border-color-light);
480
- }
481
-
482
- .add-node-popover-body li .fc-add-icon .el-icon {
483
- font-size: 18px;
484
- }
485
-
486
- .add-node-popover-body li .fc-add-icon:hover {
487
- border-color: #3296fa;
488
- background: #3296fa;
489
- color: #fff !important;
490
- }
491
-
492
- .add-node-popover-body li p {
493
- font-size: 12px;
494
- margin-top: 5px;
495
- }
496
-
497
- .node-wrap-drawer__title {
498
- padding-right: 40px;
499
- }
500
-
501
- .node-wrap-drawer__title label {
502
- cursor: pointer;
503
- display: flex;
504
- align-items: center;
505
- }
506
-
507
- .node-wrap-drawer__title label:hover {
508
- border-bottom: 1px dashed #409eff;
509
- }
510
-
511
- .node-wrap-drawer__title .node-wrap-drawer__title-edit {
512
- color: #409eff;
513
- margin-left: 10px;
514
- vertical-align: middle;
515
- font-size: 14px;
516
- }
517
-
518
- .condition-drawer {
519
- .top-tips {
520
- display: flex;
521
- justify-content: space-between;
522
- align-items: center;
523
- margin-bottom: 12px;
524
- color: #646a73;
525
- }
526
-
527
- .or-branch-link-tip {
528
- margin: 10px 0;
529
- color: #646a73;
530
- }
531
-
532
- .condition-group-editor {
533
- user-select: none;
534
- border-radius: 4px;
535
- border: 1px solid #e4e5e7;
536
- position: relative;
537
- margin-bottom: 16px;
538
-
539
- .branch-delete-icon {
540
- font-size: 18px;
541
- cursor: pointer;
542
- }
543
-
544
- .header {
545
- background-color: #f4f6f8;
546
- padding: 0 12px;
547
- font-size: 14px;
548
- color: #171e31;
549
- height: 36px;
550
- display: flex;
551
- align-items: center;
552
-
553
- span {
554
- flex: 1;
555
- }
556
- }
557
-
558
- .main-content {
559
- padding: 0 12px;
560
-
561
- .condition-relation {
562
- color: #9ca2a9;
563
- display: flex;
564
- align-items: center;
565
- height: 36px;
566
- justify-content: space-between;
567
- padding: 0 2px;
568
- }
569
-
570
- .condition-content-box {
571
- display: flex;
572
- justify-content: space-between;
573
- align-items: center;
574
-
575
- > div {
576
- width: 100%;
577
- min-width: 90px;
578
- }
579
-
580
- > div:not(:first-child) {
581
- margin-left: 16px;
582
- }
583
- }
584
-
585
- .cell-box {
586
- > div {
587
- padding: 16px 0;
588
- width: 100%;
589
- min-width: 90px;
590
- color: #909399;
591
- font-size: 14px;
592
- font-weight: 600;
593
- text-align: center;
594
- }
595
- }
596
-
597
- .condition-content {
598
- display: flex;
599
- flex-direction: column;
600
- }
601
- }
602
-
603
- .sub-content {
604
- padding: 12px;
605
- }
606
- }
607
- }
608
-
609
- // dark theme, aligned with the reference project
610
- .dark .sc-workflow-design {
611
- .node-wrap-box,
612
- .auto-judge {
613
- background: #2b2b2b;
614
- }
615
-
616
- .col-box {
617
- background: var(--el-bg-color);
618
- }
619
-
620
- .top-left-cover-line,
621
- .top-right-cover-line,
622
- .bottom-left-cover-line,
623
- .bottom-right-cover-line {
624
- background-color: var(--el-bg-color);
625
- }
626
-
627
- .node-wrap-box::before,
628
- .auto-judge::before {
629
- background-color: var(--el-bg-color);
630
- }
631
-
632
- .branch-box .add-branch {
633
- background: var(--el-bg-color);
634
- }
635
-
636
- .end-node .end-node-text {
637
- color: #ccc;
638
- }
639
-
640
- .auto-judge .sort-left:hover,
641
- .auto-judge .sort-right:hover {
642
- background: var(--el-bg-color);
643
- }
644
- }
645
- /* ==================== progress overlay ==================== */
646
- .sc-status-badge {
647
- display: inline-flex;
648
- align-items: center;
649
- height: 18px;
650
- padding: 0 7px;
651
- border-radius: 9px;
652
- font-size: 11px;
653
- line-height: 18px;
654
- white-space: nowrap;
655
- background: #eef2f7;
656
- color: #64748b;
657
-
658
- &.is-completed {
659
- background: #e7f8ef;
660
- color: #0b9a6a;
661
- }
662
-
663
- &.is-current {
664
- background: #fff3d6;
665
- color: #b45309;
666
- font-weight: 600;
667
- }
668
-
669
- &.is-upcoming,
670
- &.is-predicted {
671
- background: #eaf2ff;
672
- color: #2563eb;
673
- }
674
-
675
- &.is-rejected,
676
- &.is-failed {
677
- background: #feecec;
678
- color: #dc2626;
679
- }
680
-
681
- &.is-skipped {
682
- background: #f1f5f9;
683
- color: #94a3b8;
684
- }
685
- }
686
-
687
- .node-wrap-box .title > span:not(.sc-status-badge) {
688
- flex: 1;
689
- min-width: 0;
690
- overflow: hidden;
691
- text-overflow: ellipsis;
692
- white-space: nowrap;
693
- }
694
-
695
- .node-wrap-box .title .sc-status-badge {
696
- margin-left: 6px;
697
- margin-right: 0;
698
- flex-shrink: 0;
699
- background: rgba(255, 255, 255, 0.92);
700
- font-weight: 600;
701
- }
702
-
703
- .node-wrap-box {
704
- &.is-completed {
705
- outline: 2px solid #34d399;
706
- outline-offset: 1px;
707
- }
708
-
709
- &.is-current {
710
- outline: 2px solid #f59e0b;
711
- outline-offset: 2px;
712
- animation: sc-status-pulse 2s ease-in-out infinite;
713
- }
714
-
715
- &.is-upcoming,
716
- &.is-predicted {
717
- outline: 2px dashed #60a5fa;
718
- outline-offset: 1px;
719
- }
720
-
721
- &.is-rejected,
722
- &.is-failed {
723
- outline: 2px solid #ef4444;
724
- outline-offset: 1px;
725
- }
726
-
727
- &.is-skipped {
728
- opacity: 0.48;
729
- filter: grayscale(0.35);
730
- }
731
- }
732
-
733
- .auto-judge {
734
- &.is-completed {
735
- outline: 2px solid #34d399;
736
- outline-offset: 1px;
737
- }
738
-
739
- &.is-current {
740
- outline: 2px solid #f59e0b;
741
- outline-offset: 2px;
742
- }
743
-
744
- &.is-upcoming,
745
- &.is-predicted {
746
- outline: 2px dashed #60a5fa;
747
- outline-offset: 1px;
748
- }
749
-
750
- &.is-rejected {
751
- outline: 2px solid #ef4444;
752
- outline-offset: 1px;
753
- }
754
-
755
- &.is-skipped,
756
- &.is-unselected {
757
- opacity: 0.48;
758
- filter: grayscale(0.4);
759
- }
760
- }
761
-
762
- .col-box.is-skipped,
763
- .col-box.is-unselected {
764
- .condition-node,
765
- > .node-wrap,
766
- > .branch-wrap {
767
- opacity: 0.55;
768
- }
769
- }
770
-
771
- .sc-node-policy {
772
- display: block;
773
- margin-top: 7px;
774
- padding-top: 6px;
775
- border-top: 1px dashed #eef2f7;
776
- color: #94a3b8;
777
- font-size: 11px;
778
- line-height: 1.4;
779
- }
780
-
781
- .sc-branch-status-badge {
782
- margin-top: 8px;
783
- }
784
-
785
- .branch-progress-head {
786
- display: inline-flex;
787
- align-items: center;
788
- gap: 8px;
789
- margin-top: 12px;
790
- padding: 4px 10px;
791
- border-radius: 14px;
792
- background: #f1f5f9;
793
- color: #475569;
794
- font-size: 12px;
795
- position: relative;
796
- z-index: 2;
797
-
798
- &__name {
799
- font-weight: 600;
800
- color: #1e293b;
801
- }
802
-
803
- &__decision {
804
- color: #2563eb;
805
- }
806
- }
807
-
808
- .sc-node-progress {
809
- border-top: 1px dashed #eef2f7;
810
- padding: 8px 15px 10px;
811
- font-size: 12px;
812
- line-height: 1.6;
813
- color: #64748b;
814
-
815
- &__row {
816
- display: flex;
817
- align-items: center;
818
- flex-wrap: wrap;
819
- gap: 5px;
820
- }
821
-
822
- &__row + &__row {
823
- margin-top: 3px;
824
- }
825
-
826
- &__label {
827
- color: #94a3b8;
828
- }
829
-
830
- &__person {
831
- padding: 0 6px;
832
- border-radius: 8px;
833
- background: #f1f5f9;
834
-
835
- &.is-done {
836
- background: #e7f8ef;
837
- color: #0b9a6a;
838
- }
839
- }
840
-
841
- &__note {
842
- margin-top: 4px;
843
- color: #b45309;
844
- }
845
- }
846
-
847
- .end-node {
848
- &.is-completed .end-node-circle {
849
- background: #10b981;
850
- }
851
-
852
- &.is-current .end-node-circle {
853
- background: #f59e0b;
854
- box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
855
- }
856
-
857
- &.is-skipped {
858
- opacity: 0.45;
859
- }
860
-
861
- .sc-status-badge {
862
- margin-top: 4px;
863
- }
864
- }
865
-
866
- .has-progress .node-wrap-box,
867
- .has-progress .auto-judge {
868
- cursor: inherit;
869
- }
870
-
871
- @keyframes sc-status-pulse {
872
- 0%,
873
- 100% {
874
- box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
875
- }
876
- 50% {
877
- box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.08);
878
- }
879
- }
1
+ /**
2
+ * Flow designer styles, 1:1 with flowlong-designer (sc-workflow layout).
3
+ * Layout rules follow the MIT-licensed "sc-workflow" design by sakuya
4
+ * (仿钉钉流程设计器), extended with the node types of gbflowdesign.
5
+ */
6
+
7
+ .sc-workflow-design {
8
+ width: 100%;
9
+ }
10
+
11
+ .sc-workflow-design .box-scale {
12
+ display: inline-block;
13
+ position: relative;
14
+ width: 100%;
15
+ align-items: flex-start;
16
+ justify-content: center;
17
+ flex-wrap: wrap;
18
+ min-width: min-content;
19
+ }
20
+
21
+ .sc-workflow-design {
22
+ .node-wrap {
23
+ display: inline-flex;
24
+ width: 100%;
25
+ flex-flow: column wrap;
26
+ justify-content: flex-start;
27
+ align-items: center;
28
+ padding: 0;
29
+ position: relative;
30
+ z-index: 1;
31
+ }
32
+
33
+ .node-wrap-box {
34
+ display: inline-flex;
35
+ flex-direction: column;
36
+ position: relative;
37
+ width: 220px;
38
+ min-height: 72px;
39
+ flex-shrink: 0;
40
+ background: rgb(255, 255, 255);
41
+ border-radius: 4px;
42
+ cursor: pointer;
43
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
44
+ }
45
+
46
+ .node-wrap-box::before {
47
+ content: '';
48
+ position: absolute;
49
+ top: -12px;
50
+ left: 50%;
51
+ transform: translateX(-50%);
52
+ width: 0;
53
+ border-style: solid;
54
+ border-width: 8px 6px 4px;
55
+ border-color: rgb(202, 202, 202) transparent transparent;
56
+ }
57
+
58
+ .node-wrap-box.start-node:before {
59
+ content: none;
60
+ }
61
+
62
+ .node-wrap-box .title {
63
+ height: 24px;
64
+ line-height: 24px;
65
+ color: #fff;
66
+ padding-left: 16px;
67
+ padding-right: 30px;
68
+ border-radius: 4px 4px 0 0;
69
+ position: relative;
70
+ display: flex;
71
+ align-items: center;
72
+ }
73
+
74
+ .node-wrap-box .title .icon {
75
+ margin-right: 5px;
76
+ }
77
+
78
+ .node-wrap-box .title .close {
79
+ font-size: 15px;
80
+ position: absolute;
81
+ top: 50%;
82
+ transform: translateY(-50%);
83
+ right: 10px;
84
+ display: none;
85
+ }
86
+
87
+ .node-wrap-box .content {
88
+ position: relative;
89
+ padding: 15px;
90
+ }
91
+
92
+ .node-wrap-box .content .placeholder {
93
+ color: #999;
94
+ }
95
+
96
+ .node-wrap-box:hover .close {
97
+ display: block;
98
+ }
99
+
100
+ .add-node-btn-box {
101
+ width: 240px;
102
+ display: inline-flex;
103
+ flex-shrink: 0;
104
+ position: relative;
105
+ z-index: 1;
106
+ }
107
+
108
+ .add-node-btn-box:before {
109
+ content: '';
110
+ position: absolute;
111
+ top: 0;
112
+ left: 0;
113
+ right: 0;
114
+ bottom: 0;
115
+ z-index: -1;
116
+ margin: auto;
117
+ width: 2px;
118
+ height: 100%;
119
+ background-color: rgb(202, 202, 202);
120
+ }
121
+
122
+ .add-node-btn {
123
+ user-select: none;
124
+ width: 240px;
125
+ padding: 20px 0 32px;
126
+ display: flex;
127
+ justify-content: center;
128
+ flex-shrink: 0;
129
+ flex-grow: 1;
130
+ }
131
+
132
+ .add-branch {
133
+ justify-content: center;
134
+ padding: 0 10px;
135
+ position: absolute;
136
+ top: -16px;
137
+ left: 50%;
138
+ transform: translateX(-50%);
139
+ transform-origin: center center;
140
+ z-index: 1;
141
+ display: inline-flex;
142
+ align-items: center;
143
+ }
144
+
145
+ .branch-wrap {
146
+ display: inline-flex;
147
+ width: 100%;
148
+ }
149
+
150
+ .branch-box-wrap {
151
+ display: flex;
152
+ flex-flow: column wrap;
153
+ align-items: center;
154
+ min-height: 270px;
155
+ width: 100%;
156
+ flex-shrink: 0;
157
+ }
158
+
159
+ .col-box {
160
+ display: inline-flex;
161
+ flex-direction: column;
162
+ align-items: center;
163
+ position: relative;
164
+ }
165
+
166
+ .branch-box {
167
+ display: flex;
168
+ overflow: visible;
169
+ min-height: 180px;
170
+ height: auto;
171
+ border-bottom: 2px solid #ccc;
172
+ border-top: 2px solid #ccc;
173
+ position: relative;
174
+ margin-top: 15px;
175
+ }
176
+
177
+ .branch-box .col-box::before {
178
+ content: '';
179
+ position: absolute;
180
+ top: 0;
181
+ left: 0;
182
+ right: 0;
183
+ bottom: 0;
184
+ z-index: 0;
185
+ margin: auto;
186
+ width: 2px;
187
+ height: 100%;
188
+ background-color: rgb(202, 202, 202);
189
+ }
190
+
191
+ .condition-node {
192
+ display: inline-flex;
193
+ flex-direction: column;
194
+ min-height: 220px;
195
+ }
196
+
197
+ .condition-node-box {
198
+ padding-top: 30px;
199
+ padding-right: 50px;
200
+ padding-left: 50px;
201
+ justify-content: center;
202
+ align-items: center;
203
+ flex-grow: 1;
204
+ position: relative;
205
+ display: inline-flex;
206
+ flex-direction: column;
207
+ }
208
+
209
+ .condition-node-box::before {
210
+ content: '';
211
+ position: absolute;
212
+ top: 0;
213
+ left: 0;
214
+ right: 0;
215
+ bottom: 0;
216
+ margin: auto;
217
+ width: 2px;
218
+ height: 100%;
219
+ background-color: rgb(202, 202, 202);
220
+ }
221
+
222
+ .auto-judge {
223
+ position: relative;
224
+ width: 220px;
225
+ min-height: 72px;
226
+ background: rgb(255, 255, 255);
227
+ border-radius: 4px;
228
+ padding: 15px;
229
+ cursor: pointer;
230
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
231
+ }
232
+
233
+ .auto-judge::before {
234
+ content: '';
235
+ position: absolute;
236
+ top: -12px;
237
+ left: 50%;
238
+ transform: translateX(-50%);
239
+ width: 0;
240
+ border-style: solid;
241
+ border-width: 8px 6px 4px;
242
+ border-color: rgb(202, 202, 202) transparent transparent;
243
+ background: rgb(239, 239, 239);
244
+ }
245
+
246
+ .auto-judge .title {
247
+ line-height: 16px;
248
+ }
249
+
250
+ .auto-judge .title .node-title {
251
+ color: #15bc83;
252
+ }
253
+
254
+ .auto-judge .title .close {
255
+ font-size: 15px;
256
+ position: absolute;
257
+ top: 15px;
258
+ right: 15px;
259
+ color: #999;
260
+ display: none;
261
+ }
262
+
263
+ .auto-judge .title .priority-title {
264
+ position: absolute;
265
+ top: 15px;
266
+ right: 15px;
267
+ color: #999;
268
+ }
269
+
270
+ .auto-judge .content {
271
+ position: relative;
272
+ padding-top: 15px;
273
+ }
274
+
275
+ .auto-judge .content .placeholder {
276
+ color: #999;
277
+ }
278
+
279
+ .auto-judge:hover {
280
+ .close {
281
+ display: block;
282
+ }
283
+
284
+ .priority-title {
285
+ display: none;
286
+ }
287
+ }
288
+
289
+ .top-left-cover-line,
290
+ .top-right-cover-line {
291
+ position: absolute;
292
+ height: 3px;
293
+ width: 50%;
294
+ background-color: #efefef;
295
+ top: -2px;
296
+ }
297
+
298
+ .bottom-left-cover-line,
299
+ .bottom-right-cover-line {
300
+ position: absolute;
301
+ height: 3px;
302
+ width: 50%;
303
+ background-color: #efefef;
304
+ bottom: -2px;
305
+ }
306
+
307
+ .top-left-cover-line {
308
+ left: -1px;
309
+ }
310
+
311
+ .top-right-cover-line {
312
+ right: -1px;
313
+ }
314
+
315
+ .bottom-left-cover-line {
316
+ left: -1px;
317
+ }
318
+
319
+ .bottom-right-cover-line {
320
+ right: -1px;
321
+ }
322
+
323
+ // 结束节点不像其它节点那样包在 .node-wrap 里,本身就是整行的块级容器,
324
+ // 必须自己把「圆点 / 文案 / 状态徽标」竖直居中排布,否则徽标会被挤到画布最左侧。
325
+ .end-node {
326
+ display: flex;
327
+ flex-direction: column;
328
+ align-items: center;
329
+ font-size: 14px;
330
+ color: rgba(25, 31, 37, 0.4);
331
+ }
332
+
333
+ .end-node-circle {
334
+ width: 10px;
335
+ height: 10px;
336
+ border-radius: 50%;
337
+ background: #ccc;
338
+ }
339
+
340
+ .end-node-text {
341
+ margin-top: 5px;
342
+ text-align: center;
343
+ }
344
+
345
+ .auto-judge:hover {
346
+ .sort-left {
347
+ display: flex;
348
+ }
349
+
350
+ .sort-right {
351
+ display: flex;
352
+ }
353
+ }
354
+
355
+ .auto-judge .sort-left {
356
+ position: absolute;
357
+ top: 0;
358
+ bottom: 0;
359
+ z-index: 1;
360
+ left: 0;
361
+ display: none;
362
+ justify-content: center;
363
+ align-items: center;
364
+ flex-direction: column;
365
+ }
366
+
367
+ .auto-judge .sort-right {
368
+ position: absolute;
369
+ top: 0;
370
+ bottom: 0;
371
+ z-index: 1;
372
+ right: 0;
373
+ display: none;
374
+ justify-content: center;
375
+ align-items: center;
376
+ flex-direction: column;
377
+ }
378
+
379
+ .auto-judge .sort-left:hover,
380
+ .auto-judge .sort-right:hover {
381
+ background: #eee;
382
+ }
383
+
384
+ .auto-judge:after {
385
+ pointer-events: none;
386
+ content: '';
387
+ position: absolute;
388
+ top: 0;
389
+ bottom: 0;
390
+ left: 0;
391
+ right: 0;
392
+ z-index: 2;
393
+ border-radius: 4px;
394
+ transition: all 0.1s;
395
+ }
396
+
397
+ .auto-judge:hover:after {
398
+ border: 1px solid #3296fa;
399
+ box-shadow: 0 0 6px 0 rgba(50, 150, 250, 0.3);
400
+ }
401
+
402
+ .node-wrap-box:after {
403
+ pointer-events: none;
404
+ content: '';
405
+ position: absolute;
406
+ top: 0;
407
+ bottom: 0;
408
+ left: 0;
409
+ right: 0;
410
+ z-index: 2;
411
+ border-radius: 4px;
412
+ transition: all 0.1s;
413
+ }
414
+
415
+ .node-wrap-box:hover:after {
416
+ border: 1px solid #3296fa;
417
+ box-shadow: 0 0 6px 0 rgba(50, 150, 250, 0.3);
418
+ }
419
+
420
+ // branch type accents
421
+ .auto-judge.auto-judge--parallel {
422
+ .title .node-title {
423
+ color: #3296fa;
424
+ }
425
+ }
426
+
427
+ .auto-judge.auto-judge--inclusive {
428
+ .title .node-title {
429
+ color: #ff8a80;
430
+ }
431
+ }
432
+
433
+ // read-only mode hides editing affordances but keeps the node gap/connectors
434
+ &.is-readonly {
435
+ .node-wrap-box .close,
436
+ .auto-judge .close,
437
+ .auto-judge .sort-left,
438
+ .auto-judge .sort-right,
439
+ .add-branch,
440
+ .add-node-btn {
441
+ display: none !important;
442
+ }
443
+
444
+ .add-node-btn-box {
445
+ display: block !important;
446
+ height: 0;
447
+ min-height: 52px;
448
+ }
449
+ }
450
+ }
451
+
452
+ .tags-list {
453
+ margin-top: 15px;
454
+ width: 100%;
455
+ }
456
+
457
+ .add-node-popover-body ul {
458
+ padding: 0;
459
+ margin: 0;
460
+ }
461
+
462
+ .add-node-popover-body li {
463
+ display: inline-block;
464
+ width: 84px;
465
+ text-align: center;
466
+ padding: 10px 0;
467
+ list-style: none;
468
+ }
469
+
470
+ .add-node-popover-body li .fc-add-icon {
471
+ width: 40px;
472
+ height: 40px;
473
+ border-radius: 50%;
474
+ display: inline-flex;
475
+ align-items: center;
476
+ justify-content: center;
477
+ font-size: 18px;
478
+ cursor: pointer;
479
+ border: 1px solid var(--el-border-color-light);
480
+ }
481
+
482
+ .add-node-popover-body li .fc-add-icon .el-icon {
483
+ font-size: 18px;
484
+ }
485
+
486
+ .add-node-popover-body li .fc-add-icon:hover {
487
+ border-color: #3296fa;
488
+ background: #3296fa;
489
+ color: #fff !important;
490
+ }
491
+
492
+ .add-node-popover-body li p {
493
+ font-size: 12px;
494
+ margin-top: 5px;
495
+ }
496
+
497
+ .node-wrap-drawer__title {
498
+ padding-right: 40px;
499
+ }
500
+
501
+ .node-wrap-drawer__title label {
502
+ cursor: pointer;
503
+ display: flex;
504
+ align-items: center;
505
+ }
506
+
507
+ .node-wrap-drawer__title label:hover {
508
+ border-bottom: 1px dashed #409eff;
509
+ }
510
+
511
+ .node-wrap-drawer__title .node-wrap-drawer__title-edit {
512
+ color: #409eff;
513
+ margin-left: 10px;
514
+ vertical-align: middle;
515
+ font-size: 14px;
516
+ }
517
+
518
+ .condition-drawer {
519
+ .top-tips {
520
+ display: flex;
521
+ justify-content: space-between;
522
+ align-items: center;
523
+ margin-bottom: 12px;
524
+ color: #646a73;
525
+ }
526
+
527
+ .or-branch-link-tip {
528
+ margin: 10px 0;
529
+ color: #646a73;
530
+ }
531
+
532
+ .condition-group-editor {
533
+ user-select: none;
534
+ border-radius: 4px;
535
+ border: 1px solid #e4e5e7;
536
+ position: relative;
537
+ margin-bottom: 16px;
538
+
539
+ .branch-delete-icon {
540
+ font-size: 18px;
541
+ cursor: pointer;
542
+ }
543
+
544
+ .header {
545
+ background-color: #f4f6f8;
546
+ padding: 0 12px;
547
+ font-size: 14px;
548
+ color: #171e31;
549
+ height: 36px;
550
+ display: flex;
551
+ align-items: center;
552
+
553
+ span {
554
+ flex: 1;
555
+ }
556
+ }
557
+
558
+ .main-content {
559
+ padding: 0 12px;
560
+
561
+ .condition-relation {
562
+ color: #9ca2a9;
563
+ display: flex;
564
+ align-items: center;
565
+ height: 36px;
566
+ justify-content: space-between;
567
+ padding: 0 2px;
568
+ }
569
+
570
+ .condition-content-box {
571
+ display: flex;
572
+ justify-content: space-between;
573
+ align-items: center;
574
+
575
+ > div {
576
+ width: 100%;
577
+ min-width: 90px;
578
+ }
579
+
580
+ > div:not(:first-child) {
581
+ margin-left: 16px;
582
+ }
583
+ }
584
+
585
+ .cell-box {
586
+ > div {
587
+ padding: 16px 0;
588
+ width: 100%;
589
+ min-width: 90px;
590
+ color: #909399;
591
+ font-size: 14px;
592
+ font-weight: 600;
593
+ text-align: center;
594
+ }
595
+ }
596
+
597
+ .condition-content {
598
+ display: flex;
599
+ flex-direction: column;
600
+ }
601
+ }
602
+
603
+ .sub-content {
604
+ padding: 12px;
605
+ }
606
+ }
607
+ }
608
+
609
+ // dark theme, aligned with the reference project
610
+ .dark .sc-workflow-design {
611
+ .node-wrap-box,
612
+ .auto-judge {
613
+ background: #2b2b2b;
614
+ }
615
+
616
+ .col-box {
617
+ background: var(--el-bg-color);
618
+ }
619
+
620
+ .top-left-cover-line,
621
+ .top-right-cover-line,
622
+ .bottom-left-cover-line,
623
+ .bottom-right-cover-line {
624
+ background-color: var(--el-bg-color);
625
+ }
626
+
627
+ .node-wrap-box::before,
628
+ .auto-judge::before {
629
+ background-color: var(--el-bg-color);
630
+ }
631
+
632
+ .branch-box .add-branch {
633
+ background: var(--el-bg-color);
634
+ }
635
+
636
+ .end-node .end-node-text {
637
+ color: #ccc;
638
+ }
639
+
640
+ .auto-judge .sort-left:hover,
641
+ .auto-judge .sort-right:hover {
642
+ background: var(--el-bg-color);
643
+ }
644
+ }
645
+ /* ==================== progress overlay ==================== */
646
+ .sc-status-badge {
647
+ display: inline-flex;
648
+ align-items: center;
649
+ height: 18px;
650
+ padding: 0 7px;
651
+ border-radius: 9px;
652
+ font-size: 11px;
653
+ line-height: 18px;
654
+ white-space: nowrap;
655
+ background: #eef2f7;
656
+ color: #64748b;
657
+
658
+ &.is-completed {
659
+ background: #e7f8ef;
660
+ color: #0b9a6a;
661
+ }
662
+
663
+ &.is-current {
664
+ background: #fff3d6;
665
+ color: #b45309;
666
+ font-weight: 600;
667
+ }
668
+
669
+ &.is-upcoming,
670
+ &.is-predicted {
671
+ background: #eaf2ff;
672
+ color: #2563eb;
673
+ }
674
+
675
+ &.is-rejected,
676
+ &.is-failed {
677
+ background: #feecec;
678
+ color: #dc2626;
679
+ }
680
+
681
+ &.is-skipped {
682
+ background: #f1f5f9;
683
+ color: #94a3b8;
684
+ }
685
+ }
686
+
687
+ .node-wrap-box .title > span:not(.sc-status-badge) {
688
+ flex: 1;
689
+ min-width: 0;
690
+ overflow: hidden;
691
+ text-overflow: ellipsis;
692
+ white-space: nowrap;
693
+ }
694
+
695
+ .node-wrap-box .title .sc-status-badge {
696
+ margin-left: 6px;
697
+ margin-right: 0;
698
+ flex-shrink: 0;
699
+ background: rgba(255, 255, 255, 0.92);
700
+ font-weight: 600;
701
+ }
702
+
703
+ .node-wrap-box {
704
+ &.is-completed {
705
+ outline: 2px solid #34d399;
706
+ outline-offset: 1px;
707
+ }
708
+
709
+ &.is-current {
710
+ outline: 2px solid #f59e0b;
711
+ outline-offset: 2px;
712
+ animation: sc-status-pulse 2s ease-in-out infinite;
713
+ }
714
+
715
+ &.is-upcoming,
716
+ &.is-predicted {
717
+ outline: 2px dashed #60a5fa;
718
+ outline-offset: 1px;
719
+ }
720
+
721
+ &.is-rejected,
722
+ &.is-failed {
723
+ outline: 2px solid #ef4444;
724
+ outline-offset: 1px;
725
+ }
726
+
727
+ &.is-skipped {
728
+ opacity: 0.48;
729
+ filter: grayscale(0.35);
730
+ }
731
+ }
732
+
733
+ .auto-judge {
734
+ &.is-completed {
735
+ outline: 2px solid #34d399;
736
+ outline-offset: 1px;
737
+ }
738
+
739
+ &.is-current {
740
+ outline: 2px solid #f59e0b;
741
+ outline-offset: 2px;
742
+ }
743
+
744
+ &.is-upcoming,
745
+ &.is-predicted {
746
+ outline: 2px dashed #60a5fa;
747
+ outline-offset: 1px;
748
+ }
749
+
750
+ &.is-rejected {
751
+ outline: 2px solid #ef4444;
752
+ outline-offset: 1px;
753
+ }
754
+
755
+ &.is-skipped,
756
+ &.is-unselected {
757
+ opacity: 0.48;
758
+ filter: grayscale(0.4);
759
+ }
760
+ }
761
+
762
+ .col-box.is-skipped,
763
+ .col-box.is-unselected {
764
+ .condition-node,
765
+ > .node-wrap,
766
+ > .branch-wrap {
767
+ opacity: 0.55;
768
+ }
769
+ }
770
+
771
+ .sc-node-policy {
772
+ display: block;
773
+ margin-top: 7px;
774
+ padding-top: 6px;
775
+ border-top: 1px dashed #eef2f7;
776
+ color: #94a3b8;
777
+ font-size: 11px;
778
+ line-height: 1.4;
779
+ }
780
+
781
+ .sc-branch-status-badge {
782
+ margin-top: 8px;
783
+ }
784
+
785
+ .branch-progress-head {
786
+ display: inline-flex;
787
+ align-items: center;
788
+ gap: 8px;
789
+ margin-top: 12px;
790
+ padding: 4px 10px;
791
+ border-radius: 14px;
792
+ background: #f1f5f9;
793
+ color: #475569;
794
+ font-size: 12px;
795
+ position: relative;
796
+ z-index: 2;
797
+
798
+ &__name {
799
+ font-weight: 600;
800
+ color: #1e293b;
801
+ }
802
+
803
+ &__decision {
804
+ color: #2563eb;
805
+ }
806
+ }
807
+
808
+ .sc-node-progress {
809
+ border-top: 1px dashed #eef2f7;
810
+ padding: 8px 15px 10px;
811
+ font-size: 12px;
812
+ line-height: 1.6;
813
+ color: #64748b;
814
+
815
+ &__row {
816
+ display: flex;
817
+ align-items: center;
818
+ flex-wrap: wrap;
819
+ gap: 5px;
820
+ }
821
+
822
+ &__row + &__row {
823
+ margin-top: 3px;
824
+ }
825
+
826
+ &__label {
827
+ color: #94a3b8;
828
+ }
829
+
830
+ &__person {
831
+ padding: 0 6px;
832
+ border-radius: 8px;
833
+ background: #f1f5f9;
834
+
835
+ &.is-done {
836
+ background: #e7f8ef;
837
+ color: #0b9a6a;
838
+ }
839
+ }
840
+
841
+ &__note {
842
+ margin-top: 4px;
843
+ color: #b45309;
844
+ }
845
+ }
846
+
847
+ .end-node {
848
+ &.is-completed .end-node-circle {
849
+ background: #10b981;
850
+ }
851
+
852
+ &.is-current .end-node-circle {
853
+ background: #f59e0b;
854
+ box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
855
+ }
856
+
857
+ &.is-skipped {
858
+ opacity: 0.45;
859
+ }
860
+
861
+ .sc-status-badge {
862
+ margin-top: 4px;
863
+ }
864
+ }
865
+
866
+ .has-progress .node-wrap-box,
867
+ .has-progress .auto-judge {
868
+ cursor: inherit;
869
+ }
870
+
871
+ @keyframes sc-status-pulse {
872
+ 0%,
873
+ 100% {
874
+ box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
875
+ }
876
+ 50% {
877
+ box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.08);
878
+ }
879
+ }