@almadar/std 14.29.0 → 14.29.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.
- package/behaviors/registry/app/molecules/std-vendor-onboarding.orb +305 -257
- package/behaviors/registry/core/atoms/std-step-flow.orb +718 -346
- package/behaviors/registry/core/molecules/std-wizard-form.orb +254 -183
- package/dist/behaviors/registry/app/molecules/std-vendor-onboarding.orb +305 -257
- package/dist/behaviors/registry/core/atoms/std-step-flow.orb +718 -346
- package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +254 -183
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-step-flow",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "std-step-flow — generic N-step sequential decision chain (
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "std-step-flow — generic N-step sequential decision chain (Stripe Connect / TurboTax / Vercel deploy style). `config.steps` is an array of step definitions; the trait projects the current step into a prominent body card and a `wizard-progress` stepper bar at the top. One primary button ADVANCEs along the chain; at the last step the same button finalizes (label/icon/variant swap via entity binding, state routed via guard). REJECT/ESCALATE terminate. Topology = loading / running / approved / rejected / escalated / error.",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "StepFlowOrbital",
|
|
@@ -15,40 +15,23 @@
|
|
|
15
15
|
"required": true
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"name": "
|
|
18
|
+
"name": "wizardSteps",
|
|
19
19
|
"type": "array",
|
|
20
20
|
"default": [],
|
|
21
21
|
"items": {
|
|
22
22
|
"type": "object",
|
|
23
23
|
"properties": {
|
|
24
|
-
"
|
|
25
|
-
"name": "
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
"key": {
|
|
29
|
-
"name": "key",
|
|
24
|
+
"id": {
|
|
25
|
+
"name": "id",
|
|
30
26
|
"type": "string"
|
|
31
27
|
},
|
|
32
|
-
"
|
|
33
|
-
"name": "
|
|
28
|
+
"title": {
|
|
29
|
+
"name": "title",
|
|
34
30
|
"type": "string"
|
|
35
31
|
},
|
|
36
|
-
"
|
|
37
|
-
"name": "
|
|
32
|
+
"description": {
|
|
33
|
+
"name": "description",
|
|
38
34
|
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"number": {
|
|
41
|
-
"name": "number",
|
|
42
|
-
"type": "number"
|
|
43
|
-
},
|
|
44
|
-
"status": {
|
|
45
|
-
"name": "status",
|
|
46
|
-
"type": "string",
|
|
47
|
-
"values": [
|
|
48
|
-
"pending",
|
|
49
|
-
"current",
|
|
50
|
-
"approved"
|
|
51
|
-
]
|
|
52
35
|
}
|
|
53
36
|
}
|
|
54
37
|
}
|
|
@@ -63,6 +46,46 @@
|
|
|
63
46
|
"type": "number",
|
|
64
47
|
"default": 0.0
|
|
65
48
|
},
|
|
49
|
+
{
|
|
50
|
+
"name": "currentStepLabel",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"default": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "currentStepDescription",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"default": ""
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "currentStepIcon",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": "user"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "isFirstStep",
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "isLastStep",
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"default": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "primaryActionLabel",
|
|
76
|
+
"type": "string",
|
|
77
|
+
"default": "Approve & Continue"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "primaryActionVariant",
|
|
81
|
+
"type": "string",
|
|
82
|
+
"default": "primary"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "primaryActionIcon",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"default": "chevron-right"
|
|
88
|
+
},
|
|
66
89
|
{
|
|
67
90
|
"name": "finalStatus",
|
|
68
91
|
"type": "string",
|
|
@@ -106,7 +129,7 @@
|
|
|
106
129
|
]
|
|
107
130
|
},
|
|
108
131
|
{
|
|
109
|
-
"event": "
|
|
132
|
+
"event": "BACK",
|
|
110
133
|
"payloadSchema": [
|
|
111
134
|
{
|
|
112
135
|
"name": "id",
|
|
@@ -262,8 +285,8 @@
|
|
|
262
285
|
]
|
|
263
286
|
},
|
|
264
287
|
{
|
|
265
|
-
"key": "
|
|
266
|
-
"name": "
|
|
288
|
+
"key": "BACK",
|
|
289
|
+
"name": "Back",
|
|
267
290
|
"payloadSchema": [
|
|
268
291
|
{
|
|
269
292
|
"name": "id",
|
|
@@ -330,8 +353,8 @@
|
|
|
330
353
|
"render-ui",
|
|
331
354
|
"main",
|
|
332
355
|
{
|
|
333
|
-
"
|
|
334
|
-
"
|
|
356
|
+
"type": "loading-state",
|
|
357
|
+
"title": "Loading review…"
|
|
335
358
|
}
|
|
336
359
|
]
|
|
337
360
|
]
|
|
@@ -356,7 +379,7 @@
|
|
|
356
379
|
],
|
|
357
380
|
[
|
|
358
381
|
"set",
|
|
359
|
-
"@entity.
|
|
382
|
+
"@entity.wizardSteps",
|
|
360
383
|
[
|
|
361
384
|
"array/map",
|
|
362
385
|
"@config.steps",
|
|
@@ -364,149 +387,247 @@
|
|
|
364
387
|
"fn",
|
|
365
388
|
"step",
|
|
366
389
|
{
|
|
367
|
-
"
|
|
368
|
-
"object/get",
|
|
369
|
-
"@step",
|
|
370
|
-
"key"
|
|
371
|
-
],
|
|
372
|
-
"label": [
|
|
390
|
+
"description": [
|
|
373
391
|
"object/get",
|
|
374
392
|
"@step",
|
|
375
|
-
"
|
|
393
|
+
"description",
|
|
394
|
+
""
|
|
376
395
|
],
|
|
377
|
-
"
|
|
396
|
+
"id": [
|
|
378
397
|
"object/get",
|
|
379
398
|
"@step",
|
|
380
|
-
"
|
|
381
|
-
"user"
|
|
399
|
+
"key"
|
|
382
400
|
],
|
|
383
|
-
"
|
|
384
|
-
"description": [
|
|
401
|
+
"title": [
|
|
385
402
|
"object/get",
|
|
386
403
|
"@step",
|
|
387
|
-
"
|
|
388
|
-
|
|
389
|
-
],
|
|
390
|
-
"status": "current"
|
|
404
|
+
"label"
|
|
405
|
+
]
|
|
391
406
|
}
|
|
392
407
|
]
|
|
393
408
|
]
|
|
394
409
|
],
|
|
410
|
+
[
|
|
411
|
+
"set",
|
|
412
|
+
"@entity.currentStepLabel",
|
|
413
|
+
[
|
|
414
|
+
"object/get",
|
|
415
|
+
[
|
|
416
|
+
"array/nth",
|
|
417
|
+
"@config.steps",
|
|
418
|
+
0.0
|
|
419
|
+
],
|
|
420
|
+
"label"
|
|
421
|
+
]
|
|
422
|
+
],
|
|
423
|
+
[
|
|
424
|
+
"set",
|
|
425
|
+
"@entity.currentStepDescription",
|
|
426
|
+
[
|
|
427
|
+
"object/get",
|
|
428
|
+
[
|
|
429
|
+
"array/nth",
|
|
430
|
+
"@config.steps",
|
|
431
|
+
0.0
|
|
432
|
+
],
|
|
433
|
+
"description",
|
|
434
|
+
""
|
|
435
|
+
]
|
|
436
|
+
],
|
|
437
|
+
[
|
|
438
|
+
"set",
|
|
439
|
+
"@entity.currentStepIcon",
|
|
440
|
+
[
|
|
441
|
+
"object/get",
|
|
442
|
+
[
|
|
443
|
+
"array/nth",
|
|
444
|
+
"@config.steps",
|
|
445
|
+
0.0
|
|
446
|
+
],
|
|
447
|
+
"icon",
|
|
448
|
+
"user"
|
|
449
|
+
]
|
|
450
|
+
],
|
|
451
|
+
[
|
|
452
|
+
"set",
|
|
453
|
+
"@entity.isFirstStep",
|
|
454
|
+
true
|
|
455
|
+
],
|
|
456
|
+
[
|
|
457
|
+
"set",
|
|
458
|
+
"@entity.isLastStep",
|
|
459
|
+
[
|
|
460
|
+
"=",
|
|
461
|
+
[
|
|
462
|
+
"array/len",
|
|
463
|
+
"@config.steps"
|
|
464
|
+
],
|
|
465
|
+
1.0
|
|
466
|
+
]
|
|
467
|
+
],
|
|
468
|
+
[
|
|
469
|
+
"set",
|
|
470
|
+
"@entity.primaryActionLabel",
|
|
471
|
+
[
|
|
472
|
+
"if",
|
|
473
|
+
[
|
|
474
|
+
"=",
|
|
475
|
+
[
|
|
476
|
+
"array/len",
|
|
477
|
+
"@config.steps"
|
|
478
|
+
],
|
|
479
|
+
1.0
|
|
480
|
+
],
|
|
481
|
+
"Finalize Approval",
|
|
482
|
+
"Approve & Continue"
|
|
483
|
+
]
|
|
484
|
+
],
|
|
485
|
+
[
|
|
486
|
+
"set",
|
|
487
|
+
"@entity.primaryActionVariant",
|
|
488
|
+
[
|
|
489
|
+
"if",
|
|
490
|
+
[
|
|
491
|
+
"=",
|
|
492
|
+
[
|
|
493
|
+
"array/len",
|
|
494
|
+
"@config.steps"
|
|
495
|
+
],
|
|
496
|
+
1.0
|
|
497
|
+
],
|
|
498
|
+
"success",
|
|
499
|
+
"primary"
|
|
500
|
+
]
|
|
501
|
+
],
|
|
502
|
+
[
|
|
503
|
+
"set",
|
|
504
|
+
"@entity.primaryActionIcon",
|
|
505
|
+
[
|
|
506
|
+
"if",
|
|
507
|
+
[
|
|
508
|
+
"=",
|
|
509
|
+
[
|
|
510
|
+
"array/len",
|
|
511
|
+
"@config.steps"
|
|
512
|
+
],
|
|
513
|
+
1.0
|
|
514
|
+
],
|
|
515
|
+
"check-circle",
|
|
516
|
+
"chevron-right"
|
|
517
|
+
]
|
|
518
|
+
],
|
|
395
519
|
[
|
|
396
520
|
"render-ui",
|
|
397
521
|
"main",
|
|
398
522
|
{
|
|
523
|
+
"direction": "vertical",
|
|
524
|
+
"type": "stack",
|
|
525
|
+
"gap": "lg",
|
|
399
526
|
"children": [
|
|
400
527
|
{
|
|
401
528
|
"direction": "horizontal",
|
|
402
|
-
"type": "stack",
|
|
403
|
-
"align": "center",
|
|
404
529
|
"children": [
|
|
405
530
|
{
|
|
406
|
-
"
|
|
407
|
-
"
|
|
531
|
+
"type": "icon",
|
|
532
|
+
"name": "shield-check"
|
|
408
533
|
},
|
|
409
534
|
{
|
|
410
|
-
"type": "typography",
|
|
411
535
|
"content": "@config.title",
|
|
536
|
+
"type": "typography",
|
|
412
537
|
"variant": "h3"
|
|
413
538
|
}
|
|
414
539
|
],
|
|
540
|
+
"type": "stack",
|
|
541
|
+
"align": "center",
|
|
415
542
|
"gap": "sm"
|
|
416
543
|
},
|
|
417
544
|
{
|
|
418
|
-
"type": "
|
|
545
|
+
"type": "wizard-progress",
|
|
546
|
+
"currentStep": "@entity.currentStepIndex",
|
|
547
|
+
"steps": "@entity.wizardSteps",
|
|
548
|
+
"allowNavigation": false
|
|
419
549
|
},
|
|
420
550
|
{
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"entity": "@entity.steps",
|
|
424
|
-
"type": "data-list",
|
|
425
|
-
"renderItem": [
|
|
426
|
-
"fn",
|
|
427
|
-
"step",
|
|
551
|
+
"type": "card",
|
|
552
|
+
"children": [
|
|
428
553
|
{
|
|
429
|
-
"type": "card",
|
|
430
554
|
"children": [
|
|
431
555
|
{
|
|
556
|
+
"type": "stack",
|
|
557
|
+
"gap": "sm",
|
|
558
|
+
"direction": "horizontal",
|
|
559
|
+
"align": "center",
|
|
432
560
|
"children": [
|
|
433
561
|
{
|
|
434
562
|
"type": "icon",
|
|
435
|
-
"name": "@
|
|
563
|
+
"name": "@entity.currentStepIcon",
|
|
564
|
+
"size": "lg"
|
|
436
565
|
},
|
|
437
566
|
{
|
|
438
|
-
"gap": "xs",
|
|
439
|
-
"type": "stack",
|
|
440
|
-
"direction": "vertical",
|
|
441
567
|
"children": [
|
|
442
568
|
{
|
|
443
|
-
"content": "@step.label",
|
|
444
569
|
"type": "typography",
|
|
445
|
-
"
|
|
570
|
+
"content": "@entity.currentStepLabel",
|
|
571
|
+
"variant": "h2"
|
|
446
572
|
},
|
|
447
573
|
{
|
|
448
|
-
"variant": "caption",
|
|
449
|
-
"content": "@step.description",
|
|
450
574
|
"type": "typography",
|
|
451
|
-
"color": "muted"
|
|
575
|
+
"color": "muted",
|
|
576
|
+
"content": "@entity.currentStepDescription",
|
|
577
|
+
"variant": "body"
|
|
452
578
|
}
|
|
453
|
-
]
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
"
|
|
457
|
-
"type": "badge",
|
|
458
|
-
"label": "@step.status"
|
|
579
|
+
],
|
|
580
|
+
"type": "stack",
|
|
581
|
+
"direction": "vertical",
|
|
582
|
+
"gap": "xs"
|
|
459
583
|
}
|
|
460
|
-
]
|
|
461
|
-
"align": "center",
|
|
462
|
-
"type": "stack",
|
|
463
|
-
"direction": "horizontal",
|
|
464
|
-
"gap": "sm"
|
|
584
|
+
]
|
|
465
585
|
}
|
|
466
|
-
]
|
|
586
|
+
],
|
|
587
|
+
"direction": "vertical",
|
|
588
|
+
"gap": "md",
|
|
589
|
+
"type": "stack"
|
|
467
590
|
}
|
|
468
591
|
]
|
|
469
592
|
},
|
|
470
593
|
{
|
|
471
|
-
"
|
|
594
|
+
"align": "center",
|
|
472
595
|
"gap": "sm",
|
|
596
|
+
"direction": "horizontal",
|
|
473
597
|
"type": "stack",
|
|
474
598
|
"children": [
|
|
475
599
|
{
|
|
476
|
-
"action": "
|
|
477
|
-
"
|
|
478
|
-
"
|
|
479
|
-
"label": "Approve Step",
|
|
480
|
-
"icon": "check"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"icon": "check-circle",
|
|
484
|
-
"label": "Finalize Approval",
|
|
485
|
-
"action": "COMPLETE",
|
|
600
|
+
"action": "BACK",
|
|
601
|
+
"icon": "chevron-left",
|
|
602
|
+
"disabled": "@entity.isFirstStep",
|
|
486
603
|
"type": "button",
|
|
487
|
-
"
|
|
604
|
+
"label": "Back",
|
|
605
|
+
"variant": "ghost"
|
|
488
606
|
},
|
|
489
607
|
{
|
|
490
|
-
"label": "Reject",
|
|
491
|
-
"variant": "danger",
|
|
492
608
|
"type": "button",
|
|
493
609
|
"action": "REJECT",
|
|
610
|
+
"variant": "ghost",
|
|
611
|
+
"label": "Reject",
|
|
494
612
|
"icon": "x"
|
|
495
613
|
},
|
|
496
614
|
{
|
|
497
|
-
"variant": "
|
|
615
|
+
"variant": "ghost",
|
|
498
616
|
"type": "button",
|
|
617
|
+
"label": "Escalate",
|
|
499
618
|
"action": "ESCALATE",
|
|
500
|
-
"icon": "alert-triangle"
|
|
501
|
-
|
|
619
|
+
"icon": "alert-triangle"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"type": "button",
|
|
623
|
+
"label": "@entity.primaryActionLabel",
|
|
624
|
+
"variant": "@entity.primaryActionVariant",
|
|
625
|
+
"action": "ADVANCE",
|
|
626
|
+
"icon": "@entity.primaryActionIcon"
|
|
502
627
|
}
|
|
503
|
-
]
|
|
504
|
-
"align": "center"
|
|
628
|
+
]
|
|
505
629
|
}
|
|
506
|
-
]
|
|
507
|
-
"direction": "vertical",
|
|
508
|
-
"gap": "md",
|
|
509
|
-
"type": "stack"
|
|
630
|
+
]
|
|
510
631
|
}
|
|
511
632
|
]
|
|
512
633
|
]
|
|
@@ -525,9 +646,9 @@
|
|
|
525
646
|
"render-ui",
|
|
526
647
|
"main",
|
|
527
648
|
{
|
|
649
|
+
"message": "@entity.errorMessage",
|
|
528
650
|
"title": "Failed to load",
|
|
529
|
-
"type": "error-state"
|
|
530
|
-
"message": "@entity.errorMessage"
|
|
651
|
+
"type": "error-state"
|
|
531
652
|
}
|
|
532
653
|
]
|
|
533
654
|
]
|
|
@@ -535,17 +656,7 @@
|
|
|
535
656
|
{
|
|
536
657
|
"from": "loading",
|
|
537
658
|
"to": "running",
|
|
538
|
-
"event": "StepItemsSaved"
|
|
539
|
-
"effects": [
|
|
540
|
-
[
|
|
541
|
-
"render-ui",
|
|
542
|
-
"main",
|
|
543
|
-
{
|
|
544
|
-
"title": "Refreshing…",
|
|
545
|
-
"type": "loading-state"
|
|
546
|
-
}
|
|
547
|
-
]
|
|
548
|
-
]
|
|
659
|
+
"event": "StepItemsSaved"
|
|
549
660
|
},
|
|
550
661
|
{
|
|
551
662
|
"from": "loading",
|
|
@@ -572,6 +683,10 @@
|
|
|
572
683
|
"from": "running",
|
|
573
684
|
"to": "running",
|
|
574
685
|
"event": "ADVANCE",
|
|
686
|
+
"guard": [
|
|
687
|
+
"not",
|
|
688
|
+
"@entity.isLastStep"
|
|
689
|
+
],
|
|
575
690
|
"effects": [
|
|
576
691
|
[
|
|
577
692
|
"set",
|
|
@@ -584,157 +699,233 @@
|
|
|
584
699
|
],
|
|
585
700
|
[
|
|
586
701
|
"set",
|
|
587
|
-
"@entity.
|
|
702
|
+
"@entity.currentStepLabel",
|
|
588
703
|
[
|
|
589
|
-
"
|
|
590
|
-
"@config.steps",
|
|
704
|
+
"object/get",
|
|
591
705
|
[
|
|
592
|
-
"
|
|
593
|
-
"
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
706
|
+
"array/nth",
|
|
707
|
+
"@config.steps",
|
|
708
|
+
"@entity.currentStepIndex"
|
|
709
|
+
],
|
|
710
|
+
"label"
|
|
711
|
+
]
|
|
712
|
+
],
|
|
713
|
+
[
|
|
714
|
+
"set",
|
|
715
|
+
"@entity.currentStepDescription",
|
|
716
|
+
[
|
|
717
|
+
"object/get",
|
|
718
|
+
[
|
|
719
|
+
"array/nth",
|
|
720
|
+
"@config.steps",
|
|
721
|
+
"@entity.currentStepIndex"
|
|
722
|
+
],
|
|
723
|
+
"description",
|
|
724
|
+
""
|
|
725
|
+
]
|
|
726
|
+
],
|
|
727
|
+
[
|
|
728
|
+
"set",
|
|
729
|
+
"@entity.currentStepIcon",
|
|
730
|
+
[
|
|
731
|
+
"object/get",
|
|
732
|
+
[
|
|
733
|
+
"array/nth",
|
|
734
|
+
"@config.steps",
|
|
735
|
+
"@entity.currentStepIndex"
|
|
736
|
+
],
|
|
737
|
+
"icon",
|
|
738
|
+
"user"
|
|
739
|
+
]
|
|
740
|
+
],
|
|
741
|
+
[
|
|
742
|
+
"set",
|
|
743
|
+
"@entity.isFirstStep",
|
|
744
|
+
[
|
|
745
|
+
"=",
|
|
746
|
+
"@entity.currentStepIndex",
|
|
747
|
+
0.0
|
|
748
|
+
]
|
|
749
|
+
],
|
|
750
|
+
[
|
|
751
|
+
"set",
|
|
752
|
+
"@entity.isLastStep",
|
|
753
|
+
[
|
|
754
|
+
"=",
|
|
755
|
+
"@entity.currentStepIndex",
|
|
756
|
+
[
|
|
757
|
+
"-",
|
|
758
|
+
"@entity.totalSteps",
|
|
759
|
+
1.0
|
|
620
760
|
]
|
|
621
761
|
]
|
|
622
762
|
],
|
|
763
|
+
[
|
|
764
|
+
"set",
|
|
765
|
+
"@entity.primaryActionLabel",
|
|
766
|
+
[
|
|
767
|
+
"if",
|
|
768
|
+
[
|
|
769
|
+
"=",
|
|
770
|
+
"@entity.currentStepIndex",
|
|
771
|
+
[
|
|
772
|
+
"-",
|
|
773
|
+
"@entity.totalSteps",
|
|
774
|
+
1.0
|
|
775
|
+
]
|
|
776
|
+
],
|
|
777
|
+
"Finalize Approval",
|
|
778
|
+
"Approve & Continue"
|
|
779
|
+
]
|
|
780
|
+
],
|
|
781
|
+
[
|
|
782
|
+
"set",
|
|
783
|
+
"@entity.primaryActionVariant",
|
|
784
|
+
[
|
|
785
|
+
"if",
|
|
786
|
+
[
|
|
787
|
+
"=",
|
|
788
|
+
"@entity.currentStepIndex",
|
|
789
|
+
[
|
|
790
|
+
"-",
|
|
791
|
+
"@entity.totalSteps",
|
|
792
|
+
1.0
|
|
793
|
+
]
|
|
794
|
+
],
|
|
795
|
+
"success",
|
|
796
|
+
"primary"
|
|
797
|
+
]
|
|
798
|
+
],
|
|
799
|
+
[
|
|
800
|
+
"set",
|
|
801
|
+
"@entity.primaryActionIcon",
|
|
802
|
+
[
|
|
803
|
+
"if",
|
|
804
|
+
[
|
|
805
|
+
"=",
|
|
806
|
+
"@entity.currentStepIndex",
|
|
807
|
+
[
|
|
808
|
+
"-",
|
|
809
|
+
"@entity.totalSteps",
|
|
810
|
+
1.0
|
|
811
|
+
]
|
|
812
|
+
],
|
|
813
|
+
"check-circle",
|
|
814
|
+
"chevron-right"
|
|
815
|
+
]
|
|
816
|
+
],
|
|
623
817
|
[
|
|
624
818
|
"render-ui",
|
|
625
819
|
"main",
|
|
626
820
|
{
|
|
627
821
|
"type": "stack",
|
|
628
|
-
"
|
|
822
|
+
"gap": "lg",
|
|
629
823
|
"children": [
|
|
630
824
|
{
|
|
631
|
-
"align": "center",
|
|
632
825
|
"children": [
|
|
633
826
|
{
|
|
634
827
|
"name": "shield-check",
|
|
635
828
|
"type": "icon"
|
|
636
829
|
},
|
|
637
830
|
{
|
|
831
|
+
"content": "@config.title",
|
|
638
832
|
"variant": "h3",
|
|
639
|
-
"type": "typography"
|
|
640
|
-
"content": "@config.title"
|
|
833
|
+
"type": "typography"
|
|
641
834
|
}
|
|
642
835
|
],
|
|
836
|
+
"align": "center",
|
|
837
|
+
"type": "stack",
|
|
643
838
|
"gap": "sm",
|
|
644
|
-
"direction": "horizontal"
|
|
645
|
-
"type": "stack"
|
|
839
|
+
"direction": "horizontal"
|
|
646
840
|
},
|
|
647
841
|
{
|
|
648
|
-
"type": "
|
|
842
|
+
"type": "wizard-progress",
|
|
843
|
+
"currentStep": "@entity.currentStepIndex",
|
|
844
|
+
"allowNavigation": false,
|
|
845
|
+
"steps": "@entity.wizardSteps"
|
|
649
846
|
},
|
|
650
847
|
{
|
|
651
|
-
"
|
|
652
|
-
"gap": "sm",
|
|
653
|
-
"fields": [],
|
|
654
|
-
"renderItem": [
|
|
655
|
-
"fn",
|
|
656
|
-
"step",
|
|
848
|
+
"children": [
|
|
657
849
|
{
|
|
658
|
-
"type": "card",
|
|
659
850
|
"children": [
|
|
660
851
|
{
|
|
661
|
-
"type": "stack",
|
|
662
|
-
"direction": "horizontal",
|
|
663
|
-
"align": "center",
|
|
664
852
|
"children": [
|
|
665
853
|
{
|
|
666
|
-
"
|
|
667
|
-
"
|
|
854
|
+
"type": "icon",
|
|
855
|
+
"name": "@entity.currentStepIcon",
|
|
856
|
+
"size": "lg"
|
|
668
857
|
},
|
|
669
858
|
{
|
|
670
859
|
"gap": "xs",
|
|
671
|
-
"direction": "vertical",
|
|
672
860
|
"children": [
|
|
673
861
|
{
|
|
674
|
-
"
|
|
675
|
-
"
|
|
676
|
-
"
|
|
862
|
+
"content": "@entity.currentStepLabel",
|
|
863
|
+
"variant": "h2",
|
|
864
|
+
"type": "typography"
|
|
677
865
|
},
|
|
678
866
|
{
|
|
679
|
-
"
|
|
867
|
+
"content": "@entity.currentStepDescription",
|
|
868
|
+
"variant": "body",
|
|
680
869
|
"color": "muted",
|
|
681
|
-
"
|
|
682
|
-
"variant": "caption"
|
|
870
|
+
"type": "typography"
|
|
683
871
|
}
|
|
684
872
|
],
|
|
873
|
+
"direction": "vertical",
|
|
685
874
|
"type": "stack"
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
"variant": "primary",
|
|
689
|
-
"label": "@step.status",
|
|
690
|
-
"type": "badge"
|
|
691
875
|
}
|
|
692
876
|
],
|
|
693
|
-
"gap": "sm"
|
|
877
|
+
"gap": "sm",
|
|
878
|
+
"type": "stack",
|
|
879
|
+
"direction": "horizontal",
|
|
880
|
+
"align": "center"
|
|
694
881
|
}
|
|
695
|
-
]
|
|
882
|
+
],
|
|
883
|
+
"gap": "md",
|
|
884
|
+
"direction": "vertical",
|
|
885
|
+
"type": "stack"
|
|
696
886
|
}
|
|
697
887
|
],
|
|
698
|
-
"
|
|
888
|
+
"type": "card"
|
|
699
889
|
},
|
|
700
890
|
{
|
|
701
|
-
"gap": "sm",
|
|
702
|
-
"direction": "horizontal",
|
|
703
891
|
"type": "stack",
|
|
892
|
+
"align": "center",
|
|
704
893
|
"children": [
|
|
705
894
|
{
|
|
895
|
+
"label": "Back",
|
|
896
|
+
"icon": "chevron-left",
|
|
897
|
+
"disabled": "@entity.isFirstStep",
|
|
898
|
+
"variant": "ghost",
|
|
706
899
|
"type": "button",
|
|
707
|
-
"
|
|
708
|
-
"icon": "check",
|
|
709
|
-
"label": "Approve Step",
|
|
710
|
-
"action": "ADVANCE"
|
|
900
|
+
"action": "BACK"
|
|
711
901
|
},
|
|
712
902
|
{
|
|
713
|
-
"
|
|
714
|
-
"icon": "check-circle",
|
|
715
|
-
"action": "COMPLETE",
|
|
903
|
+
"action": "REJECT",
|
|
716
904
|
"type": "button",
|
|
717
|
-
"variant": "success"
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
905
|
"icon": "x",
|
|
721
|
-
"
|
|
722
|
-
"
|
|
723
|
-
"action": "REJECT",
|
|
724
|
-
"label": "Reject"
|
|
906
|
+
"label": "Reject",
|
|
907
|
+
"variant": "ghost"
|
|
725
908
|
},
|
|
726
909
|
{
|
|
727
910
|
"icon": "alert-triangle",
|
|
728
|
-
"variant": "
|
|
911
|
+
"variant": "ghost",
|
|
912
|
+
"type": "button",
|
|
729
913
|
"label": "Escalate",
|
|
730
|
-
"action": "ESCALATE"
|
|
731
|
-
|
|
914
|
+
"action": "ESCALATE"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"type": "button",
|
|
918
|
+
"variant": "@entity.primaryActionVariant",
|
|
919
|
+
"label": "@entity.primaryActionLabel",
|
|
920
|
+
"icon": "@entity.primaryActionIcon",
|
|
921
|
+
"action": "ADVANCE"
|
|
732
922
|
}
|
|
733
923
|
],
|
|
734
|
-
"
|
|
924
|
+
"direction": "horizontal",
|
|
925
|
+
"gap": "sm"
|
|
735
926
|
}
|
|
736
927
|
],
|
|
737
|
-
"
|
|
928
|
+
"direction": "vertical"
|
|
738
929
|
}
|
|
739
930
|
]
|
|
740
931
|
]
|
|
@@ -742,137 +933,302 @@
|
|
|
742
933
|
{
|
|
743
934
|
"from": "running",
|
|
744
935
|
"to": "approved",
|
|
745
|
-
"event": "
|
|
936
|
+
"event": "ADVANCE",
|
|
937
|
+
"guard": "@entity.isLastStep",
|
|
746
938
|
"effects": [
|
|
747
939
|
[
|
|
748
940
|
"set",
|
|
749
941
|
"@entity.finalStatus",
|
|
750
942
|
"approved"
|
|
751
943
|
],
|
|
944
|
+
[
|
|
945
|
+
"render-ui",
|
|
946
|
+
"main",
|
|
947
|
+
{
|
|
948
|
+
"align": "center",
|
|
949
|
+
"direction": "vertical",
|
|
950
|
+
"children": [
|
|
951
|
+
{
|
|
952
|
+
"size": "lg",
|
|
953
|
+
"type": "icon",
|
|
954
|
+
"name": "check-circle"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"align": "center",
|
|
958
|
+
"variant": "h2",
|
|
959
|
+
"type": "typography",
|
|
960
|
+
"content": "Approved"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"type": "typography",
|
|
964
|
+
"variant": "body",
|
|
965
|
+
"color": "muted",
|
|
966
|
+
"content": "All review steps completed successfully.",
|
|
967
|
+
"align": "center"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"type": "wizard-progress",
|
|
971
|
+
"allowNavigation": false,
|
|
972
|
+
"steps": "@entity.wizardSteps",
|
|
973
|
+
"currentStep": "@entity.totalSteps"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"action": "RESTART",
|
|
977
|
+
"label": "Start a new review",
|
|
978
|
+
"icon": "rotate-ccw",
|
|
979
|
+
"variant": "secondary",
|
|
980
|
+
"type": "button"
|
|
981
|
+
}
|
|
982
|
+
],
|
|
983
|
+
"gap": "lg",
|
|
984
|
+
"type": "stack"
|
|
985
|
+
}
|
|
986
|
+
]
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"from": "running",
|
|
991
|
+
"to": "running",
|
|
992
|
+
"event": "BACK",
|
|
993
|
+
"effects": [
|
|
752
994
|
[
|
|
753
995
|
"set",
|
|
754
|
-
"@entity.
|
|
996
|
+
"@entity.currentStepIndex",
|
|
755
997
|
[
|
|
756
|
-
"
|
|
757
|
-
"@
|
|
998
|
+
"-",
|
|
999
|
+
"@entity.currentStepIndex",
|
|
1000
|
+
1.0
|
|
1001
|
+
]
|
|
1002
|
+
],
|
|
1003
|
+
[
|
|
1004
|
+
"set",
|
|
1005
|
+
"@entity.currentStepLabel",
|
|
1006
|
+
[
|
|
1007
|
+
"object/get",
|
|
758
1008
|
[
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
1009
|
+
"array/nth",
|
|
1010
|
+
"@config.steps",
|
|
1011
|
+
"@entity.currentStepIndex"
|
|
1012
|
+
],
|
|
1013
|
+
"label"
|
|
1014
|
+
]
|
|
1015
|
+
],
|
|
1016
|
+
[
|
|
1017
|
+
"set",
|
|
1018
|
+
"@entity.currentStepDescription",
|
|
1019
|
+
[
|
|
1020
|
+
"object/get",
|
|
1021
|
+
[
|
|
1022
|
+
"array/nth",
|
|
1023
|
+
"@config.steps",
|
|
1024
|
+
"@entity.currentStepIndex"
|
|
1025
|
+
],
|
|
1026
|
+
"description",
|
|
1027
|
+
""
|
|
1028
|
+
]
|
|
1029
|
+
],
|
|
1030
|
+
[
|
|
1031
|
+
"set",
|
|
1032
|
+
"@entity.currentStepIcon",
|
|
1033
|
+
[
|
|
1034
|
+
"object/get",
|
|
1035
|
+
[
|
|
1036
|
+
"array/nth",
|
|
1037
|
+
"@config.steps",
|
|
1038
|
+
"@entity.currentStepIndex"
|
|
1039
|
+
],
|
|
1040
|
+
"icon",
|
|
1041
|
+
"user"
|
|
1042
|
+
]
|
|
1043
|
+
],
|
|
1044
|
+
[
|
|
1045
|
+
"set",
|
|
1046
|
+
"@entity.isFirstStep",
|
|
1047
|
+
[
|
|
1048
|
+
"=",
|
|
1049
|
+
"@entity.currentStepIndex",
|
|
1050
|
+
0.0
|
|
1051
|
+
]
|
|
1052
|
+
],
|
|
1053
|
+
[
|
|
1054
|
+
"set",
|
|
1055
|
+
"@entity.isLastStep",
|
|
1056
|
+
[
|
|
1057
|
+
"=",
|
|
1058
|
+
"@entity.currentStepIndex",
|
|
1059
|
+
[
|
|
1060
|
+
"-",
|
|
1061
|
+
"@entity.totalSteps",
|
|
1062
|
+
1.0
|
|
787
1063
|
]
|
|
788
1064
|
]
|
|
789
1065
|
],
|
|
1066
|
+
[
|
|
1067
|
+
"set",
|
|
1068
|
+
"@entity.primaryActionLabel",
|
|
1069
|
+
[
|
|
1070
|
+
"if",
|
|
1071
|
+
[
|
|
1072
|
+
"=",
|
|
1073
|
+
"@entity.currentStepIndex",
|
|
1074
|
+
[
|
|
1075
|
+
"-",
|
|
1076
|
+
"@entity.totalSteps",
|
|
1077
|
+
1.0
|
|
1078
|
+
]
|
|
1079
|
+
],
|
|
1080
|
+
"Finalize Approval",
|
|
1081
|
+
"Approve & Continue"
|
|
1082
|
+
]
|
|
1083
|
+
],
|
|
1084
|
+
[
|
|
1085
|
+
"set",
|
|
1086
|
+
"@entity.primaryActionVariant",
|
|
1087
|
+
[
|
|
1088
|
+
"if",
|
|
1089
|
+
[
|
|
1090
|
+
"=",
|
|
1091
|
+
"@entity.currentStepIndex",
|
|
1092
|
+
[
|
|
1093
|
+
"-",
|
|
1094
|
+
"@entity.totalSteps",
|
|
1095
|
+
1.0
|
|
1096
|
+
]
|
|
1097
|
+
],
|
|
1098
|
+
"success",
|
|
1099
|
+
"primary"
|
|
1100
|
+
]
|
|
1101
|
+
],
|
|
1102
|
+
[
|
|
1103
|
+
"set",
|
|
1104
|
+
"@entity.primaryActionIcon",
|
|
1105
|
+
[
|
|
1106
|
+
"if",
|
|
1107
|
+
[
|
|
1108
|
+
"=",
|
|
1109
|
+
"@entity.currentStepIndex",
|
|
1110
|
+
[
|
|
1111
|
+
"-",
|
|
1112
|
+
"@entity.totalSteps",
|
|
1113
|
+
1.0
|
|
1114
|
+
]
|
|
1115
|
+
],
|
|
1116
|
+
"check-circle",
|
|
1117
|
+
"chevron-right"
|
|
1118
|
+
]
|
|
1119
|
+
],
|
|
790
1120
|
[
|
|
791
1121
|
"render-ui",
|
|
792
1122
|
"main",
|
|
793
1123
|
{
|
|
1124
|
+
"type": "stack",
|
|
794
1125
|
"direction": "vertical",
|
|
795
1126
|
"children": [
|
|
796
1127
|
{
|
|
797
1128
|
"gap": "sm",
|
|
798
1129
|
"type": "stack",
|
|
1130
|
+
"direction": "horizontal",
|
|
1131
|
+
"align": "center",
|
|
799
1132
|
"children": [
|
|
800
1133
|
{
|
|
801
1134
|
"type": "icon",
|
|
802
|
-
"name": "check
|
|
1135
|
+
"name": "shield-check"
|
|
803
1136
|
},
|
|
804
1137
|
{
|
|
805
|
-
"
|
|
1138
|
+
"content": "@config.title",
|
|
806
1139
|
"type": "typography",
|
|
807
|
-
"
|
|
1140
|
+
"variant": "h3"
|
|
808
1141
|
}
|
|
809
|
-
]
|
|
810
|
-
"direction": "horizontal",
|
|
811
|
-
"align": "center"
|
|
1142
|
+
]
|
|
812
1143
|
},
|
|
813
1144
|
{
|
|
814
|
-
"
|
|
1145
|
+
"steps": "@entity.wizardSteps",
|
|
1146
|
+
"currentStep": "@entity.currentStepIndex",
|
|
1147
|
+
"allowNavigation": false,
|
|
1148
|
+
"type": "wizard-progress"
|
|
815
1149
|
},
|
|
816
1150
|
{
|
|
817
|
-
"type": "
|
|
818
|
-
"
|
|
819
|
-
"fields": [],
|
|
820
|
-
"renderItem": [
|
|
821
|
-
"fn",
|
|
822
|
-
"step",
|
|
1151
|
+
"type": "card",
|
|
1152
|
+
"children": [
|
|
823
1153
|
{
|
|
1154
|
+
"type": "stack",
|
|
1155
|
+
"direction": "vertical",
|
|
824
1156
|
"children": [
|
|
825
1157
|
{
|
|
1158
|
+
"type": "stack",
|
|
826
1159
|
"children": [
|
|
827
1160
|
{
|
|
828
|
-
"
|
|
829
|
-
"
|
|
1161
|
+
"type": "icon",
|
|
1162
|
+
"name": "@entity.currentStepIcon",
|
|
1163
|
+
"size": "lg"
|
|
830
1164
|
},
|
|
831
1165
|
{
|
|
832
1166
|
"direction": "vertical",
|
|
833
1167
|
"type": "stack",
|
|
1168
|
+
"gap": "xs",
|
|
834
1169
|
"children": [
|
|
835
1170
|
{
|
|
836
|
-
"
|
|
837
|
-
"
|
|
838
|
-
"
|
|
1171
|
+
"variant": "h2",
|
|
1172
|
+
"type": "typography",
|
|
1173
|
+
"content": "@entity.currentStepLabel"
|
|
839
1174
|
},
|
|
840
1175
|
{
|
|
841
|
-
"color": "muted",
|
|
842
|
-
"content": "@step.description",
|
|
843
1176
|
"type": "typography",
|
|
844
|
-
"
|
|
1177
|
+
"content": "@entity.currentStepDescription",
|
|
1178
|
+
"color": "muted",
|
|
1179
|
+
"variant": "body"
|
|
845
1180
|
}
|
|
846
|
-
]
|
|
847
|
-
"gap": "xs"
|
|
848
|
-
},
|
|
849
|
-
{
|
|
850
|
-
"type": "badge",
|
|
851
|
-
"variant": "success",
|
|
852
|
-
"label": "@step.status"
|
|
1181
|
+
]
|
|
853
1182
|
}
|
|
854
1183
|
],
|
|
855
|
-
"
|
|
856
|
-
"type": "stack",
|
|
1184
|
+
"align": "center",
|
|
857
1185
|
"direction": "horizontal",
|
|
858
|
-
"
|
|
1186
|
+
"gap": "sm"
|
|
859
1187
|
}
|
|
860
1188
|
],
|
|
861
|
-
"
|
|
1189
|
+
"gap": "md"
|
|
862
1190
|
}
|
|
863
|
-
]
|
|
864
|
-
"gap": "sm"
|
|
1191
|
+
]
|
|
865
1192
|
},
|
|
866
1193
|
{
|
|
867
|
-
"
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
1194
|
+
"children": [
|
|
1195
|
+
{
|
|
1196
|
+
"variant": "ghost",
|
|
1197
|
+
"label": "Back",
|
|
1198
|
+
"type": "button",
|
|
1199
|
+
"action": "BACK",
|
|
1200
|
+
"icon": "chevron-left",
|
|
1201
|
+
"disabled": "@entity.isFirstStep"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"action": "REJECT",
|
|
1205
|
+
"icon": "x",
|
|
1206
|
+
"type": "button",
|
|
1207
|
+
"label": "Reject",
|
|
1208
|
+
"variant": "ghost"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"action": "ESCALATE",
|
|
1212
|
+
"icon": "alert-triangle",
|
|
1213
|
+
"type": "button",
|
|
1214
|
+
"label": "Escalate",
|
|
1215
|
+
"variant": "ghost"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"type": "button",
|
|
1219
|
+
"label": "@entity.primaryActionLabel",
|
|
1220
|
+
"variant": "@entity.primaryActionVariant",
|
|
1221
|
+
"action": "ADVANCE",
|
|
1222
|
+
"icon": "@entity.primaryActionIcon"
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
"gap": "sm",
|
|
1226
|
+
"type": "stack",
|
|
1227
|
+
"align": "center",
|
|
1228
|
+
"direction": "horizontal"
|
|
872
1229
|
}
|
|
873
1230
|
],
|
|
874
|
-
"
|
|
875
|
-
"gap": "md"
|
|
1231
|
+
"gap": "lg"
|
|
876
1232
|
}
|
|
877
1233
|
]
|
|
878
1234
|
]
|
|
@@ -898,59 +1254,51 @@
|
|
|
898
1254
|
{
|
|
899
1255
|
"type": "stack",
|
|
900
1256
|
"direction": "vertical",
|
|
901
|
-
"
|
|
1257
|
+
"align": "center",
|
|
902
1258
|
"children": [
|
|
903
1259
|
{
|
|
904
|
-
"
|
|
905
|
-
"
|
|
906
|
-
"
|
|
907
|
-
{
|
|
908
|
-
"name": "x-circle",
|
|
909
|
-
"type": "icon"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"variant": "h3",
|
|
913
|
-
"type": "typography",
|
|
914
|
-
"content": "Rejected"
|
|
915
|
-
}
|
|
916
|
-
],
|
|
917
|
-
"gap": "sm",
|
|
918
|
-
"align": "center"
|
|
1260
|
+
"name": "x-circle",
|
|
1261
|
+
"type": "icon",
|
|
1262
|
+
"size": "lg"
|
|
919
1263
|
},
|
|
920
1264
|
{
|
|
921
|
-
"
|
|
1265
|
+
"variant": "h2",
|
|
1266
|
+
"content": "Rejected",
|
|
1267
|
+
"type": "typography",
|
|
1268
|
+
"align": "center"
|
|
922
1269
|
},
|
|
923
1270
|
{
|
|
924
1271
|
"type": "card",
|
|
925
1272
|
"children": [
|
|
926
1273
|
{
|
|
927
|
-
"
|
|
928
|
-
"type": "stack",
|
|
1274
|
+
"direction": "vertical",
|
|
929
1275
|
"children": [
|
|
930
1276
|
{
|
|
931
|
-
"variant": "caption",
|
|
932
1277
|
"type": "typography",
|
|
933
|
-
"
|
|
934
|
-
"content": "Reason"
|
|
1278
|
+
"variant": "caption",
|
|
1279
|
+
"content": "Reason",
|
|
1280
|
+
"color": "muted"
|
|
935
1281
|
},
|
|
936
1282
|
{
|
|
937
|
-
"
|
|
1283
|
+
"type": "typography",
|
|
938
1284
|
"content": "@entity.rejectionReason",
|
|
939
|
-
"
|
|
1285
|
+
"variant": "body"
|
|
940
1286
|
}
|
|
941
1287
|
],
|
|
942
|
-
"
|
|
1288
|
+
"gap": "sm",
|
|
1289
|
+
"type": "stack"
|
|
943
1290
|
}
|
|
944
1291
|
]
|
|
945
1292
|
},
|
|
946
1293
|
{
|
|
947
|
-
"action": "RESTART",
|
|
948
|
-
"type": "button",
|
|
949
|
-
"label": "Restart",
|
|
950
1294
|
"variant": "secondary",
|
|
951
|
-
"icon": "rotate-ccw"
|
|
1295
|
+
"icon": "rotate-ccw",
|
|
1296
|
+
"type": "button",
|
|
1297
|
+
"label": "Start a new review",
|
|
1298
|
+
"action": "RESTART"
|
|
952
1299
|
}
|
|
953
|
-
]
|
|
1300
|
+
],
|
|
1301
|
+
"gap": "lg"
|
|
954
1302
|
}
|
|
955
1303
|
]
|
|
956
1304
|
]
|
|
@@ -969,43 +1317,37 @@
|
|
|
969
1317
|
"render-ui",
|
|
970
1318
|
"main",
|
|
971
1319
|
{
|
|
972
|
-
"
|
|
973
|
-
"gap": "md",
|
|
1320
|
+
"gap": "lg",
|
|
974
1321
|
"direction": "vertical",
|
|
1322
|
+
"align": "center",
|
|
975
1323
|
"children": [
|
|
976
1324
|
{
|
|
977
|
-
"
|
|
978
|
-
"
|
|
979
|
-
"
|
|
980
|
-
{
|
|
981
|
-
"type": "icon",
|
|
982
|
-
"name": "alert-triangle"
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
"content": "Escalated",
|
|
986
|
-
"type": "typography",
|
|
987
|
-
"variant": "h3"
|
|
988
|
-
}
|
|
989
|
-
],
|
|
990
|
-
"type": "stack",
|
|
991
|
-
"align": "center"
|
|
1325
|
+
"size": "lg",
|
|
1326
|
+
"name": "alert-triangle",
|
|
1327
|
+
"type": "icon"
|
|
992
1328
|
},
|
|
993
1329
|
{
|
|
994
|
-
"
|
|
1330
|
+
"variant": "h2",
|
|
1331
|
+
"align": "center",
|
|
1332
|
+
"type": "typography",
|
|
1333
|
+
"content": "Escalated"
|
|
995
1334
|
},
|
|
996
1335
|
{
|
|
997
1336
|
"variant": "body",
|
|
998
1337
|
"content": "This item has been escalated for further review.",
|
|
999
|
-
"type": "typography"
|
|
1338
|
+
"type": "typography",
|
|
1339
|
+
"color": "muted",
|
|
1340
|
+
"align": "center"
|
|
1000
1341
|
},
|
|
1001
1342
|
{
|
|
1002
|
-
"variant": "secondary",
|
|
1003
|
-
"label": "Restart",
|
|
1004
1343
|
"action": "RESTART",
|
|
1344
|
+
"type": "button",
|
|
1005
1345
|
"icon": "rotate-ccw",
|
|
1006
|
-
"
|
|
1346
|
+
"variant": "secondary",
|
|
1347
|
+
"label": "Start a new review"
|
|
1007
1348
|
}
|
|
1008
|
-
]
|
|
1349
|
+
],
|
|
1350
|
+
"type": "stack"
|
|
1009
1351
|
}
|
|
1010
1352
|
]
|
|
1011
1353
|
]
|
|
@@ -1025,12 +1367,22 @@
|
|
|
1025
1367
|
"@entity.currentStepIndex",
|
|
1026
1368
|
0.0
|
|
1027
1369
|
],
|
|
1370
|
+
[
|
|
1371
|
+
"fetch",
|
|
1372
|
+
"StepFlowView",
|
|
1373
|
+
{
|
|
1374
|
+
"emit": {
|
|
1375
|
+
"success": "StepItemsLoaded",
|
|
1376
|
+
"failure": "StepItemsLoadFailed"
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
],
|
|
1028
1380
|
[
|
|
1029
1381
|
"render-ui",
|
|
1030
1382
|
"main",
|
|
1031
1383
|
{
|
|
1032
|
-
"
|
|
1033
|
-
"
|
|
1384
|
+
"type": "loading-state",
|
|
1385
|
+
"title": "Restarting…"
|
|
1034
1386
|
}
|
|
1035
1387
|
]
|
|
1036
1388
|
]
|
|
@@ -1055,6 +1407,16 @@
|
|
|
1055
1407
|
"@entity.rejectionReason",
|
|
1056
1408
|
""
|
|
1057
1409
|
],
|
|
1410
|
+
[
|
|
1411
|
+
"fetch",
|
|
1412
|
+
"StepFlowView",
|
|
1413
|
+
{
|
|
1414
|
+
"emit": {
|
|
1415
|
+
"success": "StepItemsLoaded",
|
|
1416
|
+
"failure": "StepItemsLoadFailed"
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
],
|
|
1058
1420
|
[
|
|
1059
1421
|
"render-ui",
|
|
1060
1422
|
"main",
|
|
@@ -1080,6 +1442,16 @@
|
|
|
1080
1442
|
"@entity.currentStepIndex",
|
|
1081
1443
|
0.0
|
|
1082
1444
|
],
|
|
1445
|
+
[
|
|
1446
|
+
"fetch",
|
|
1447
|
+
"StepFlowView",
|
|
1448
|
+
{
|
|
1449
|
+
"emit": {
|
|
1450
|
+
"success": "StepItemsLoaded",
|
|
1451
|
+
"failure": "StepItemsLoadFailed"
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
],
|
|
1083
1455
|
[
|
|
1084
1456
|
"render-ui",
|
|
1085
1457
|
"main",
|
|
@@ -1099,8 +1471,8 @@
|
|
|
1099
1471
|
"render-ui",
|
|
1100
1472
|
"main",
|
|
1101
1473
|
{
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1474
|
+
"title": "Retrying…",
|
|
1475
|
+
"type": "loading-state"
|
|
1104
1476
|
}
|
|
1105
1477
|
]
|
|
1106
1478
|
]
|
|
@@ -1108,32 +1480,32 @@
|
|
|
1108
1480
|
]
|
|
1109
1481
|
},
|
|
1110
1482
|
"config": {
|
|
1483
|
+
"title": {
|
|
1484
|
+
"type": "string",
|
|
1485
|
+
"default": "Review"
|
|
1486
|
+
},
|
|
1111
1487
|
"steps": {
|
|
1112
1488
|
"type": "[object]",
|
|
1113
1489
|
"default": [
|
|
1114
1490
|
{
|
|
1115
1491
|
"label": "Manager Review",
|
|
1116
|
-
"
|
|
1492
|
+
"icon": "user",
|
|
1117
1493
|
"key": "manager",
|
|
1118
|
-
"
|
|
1494
|
+
"description": "Initial review by direct manager"
|
|
1119
1495
|
},
|
|
1120
1496
|
{
|
|
1121
|
-
"label": "Director Approval",
|
|
1122
|
-
"description": "Department director sign-off",
|
|
1123
1497
|
"icon": "users",
|
|
1124
|
-
"
|
|
1498
|
+
"label": "Director Approval",
|
|
1499
|
+
"key": "director",
|
|
1500
|
+
"description": "Department director sign-off"
|
|
1125
1501
|
},
|
|
1126
1502
|
{
|
|
1503
|
+
"icon": "shield",
|
|
1127
1504
|
"key": "executive",
|
|
1128
1505
|
"label": "Executive Sign-off",
|
|
1129
|
-
"description": "Final executive approval"
|
|
1130
|
-
"icon": "shield"
|
|
1506
|
+
"description": "Final executive approval"
|
|
1131
1507
|
}
|
|
1132
1508
|
]
|
|
1133
|
-
},
|
|
1134
|
-
"title": {
|
|
1135
|
-
"type": "string",
|
|
1136
|
-
"default": "Review"
|
|
1137
1509
|
}
|
|
1138
1510
|
},
|
|
1139
1511
|
"scope": "instance"
|