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