@almadar/std 14.29.3 → 14.29.4
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-wizard",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "std-wizard — generic N-step
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "std-wizard — generic N-step data-collection wizard (Vercel deploy / GitHub repo create / Stripe Connect onboarding style). Each step has its own form fields. Topology = loading / running / completed / cancelled / error. ADVANCE is guard-routed: not-last-step advances; last-step transitions to completed. Distinct from std-step-flow (approval-decision) — wizard collects data via form-section per step, step-flow collects yes/no decisions.",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "WizardOrbital",
|
|
@@ -15,35 +15,43 @@
|
|
|
15
15
|
"required": true
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"name": "
|
|
18
|
+
"name": "title",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"default": ""
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "description",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"default": ""
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "category",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"default": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "priority",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"default": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "notes",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"default": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "wizardSteps",
|
|
19
44
|
"type": "array",
|
|
20
45
|
"default": [],
|
|
21
46
|
"items": {
|
|
22
47
|
"type": "object",
|
|
23
48
|
"properties": {
|
|
24
|
-
"
|
|
25
|
-
"name": "
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
"status": {
|
|
29
|
-
"name": "status",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"values": [
|
|
32
|
-
"pending",
|
|
33
|
-
"current",
|
|
34
|
-
"completed"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"number": {
|
|
38
|
-
"name": "number",
|
|
39
|
-
"type": "number"
|
|
40
|
-
},
|
|
41
|
-
"key": {
|
|
42
|
-
"name": "key",
|
|
49
|
+
"title": {
|
|
50
|
+
"name": "title",
|
|
43
51
|
"type": "string"
|
|
44
52
|
},
|
|
45
|
-
"
|
|
46
|
-
"name": "
|
|
53
|
+
"id": {
|
|
54
|
+
"name": "id",
|
|
47
55
|
"type": "string"
|
|
48
56
|
},
|
|
49
57
|
"description": {
|
|
@@ -63,6 +71,49 @@
|
|
|
63
71
|
"type": "number",
|
|
64
72
|
"default": 0.0
|
|
65
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"name": "currentStepLabel",
|
|
76
|
+
"type": "string",
|
|
77
|
+
"default": ""
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "currentStepDescription",
|
|
81
|
+
"type": "string",
|
|
82
|
+
"default": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "currentStepIcon",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"default": "circle"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "currentFields",
|
|
91
|
+
"type": "array",
|
|
92
|
+
"default": [],
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "isFirstStep",
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"default": true
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "isLastStep",
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"default": false
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "primaryActionLabel",
|
|
109
|
+
"type": "string",
|
|
110
|
+
"default": "Next"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "primaryActionIcon",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"default": "chevron-right"
|
|
116
|
+
},
|
|
66
117
|
{
|
|
67
118
|
"name": "completionMessage",
|
|
68
119
|
"type": "string",
|
|
@@ -98,18 +149,6 @@
|
|
|
98
149
|
{
|
|
99
150
|
"event": "RETREAT"
|
|
100
151
|
},
|
|
101
|
-
{
|
|
102
|
-
"event": "SKIP"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"event": "COMPLETE",
|
|
106
|
-
"payloadSchema": [
|
|
107
|
-
{
|
|
108
|
-
"name": "data",
|
|
109
|
-
"type": "object"
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
152
|
{
|
|
114
153
|
"event": "CANCEL",
|
|
115
154
|
"payloadSchema": [
|
|
@@ -143,6 +182,28 @@
|
|
|
143
182
|
"type": "string"
|
|
144
183
|
}
|
|
145
184
|
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"event": "WizardSaved",
|
|
188
|
+
"payloadSchema": [
|
|
189
|
+
{
|
|
190
|
+
"name": "row",
|
|
191
|
+
"type": "object"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"event": "WizardSaveFailed",
|
|
197
|
+
"payloadSchema": [
|
|
198
|
+
{
|
|
199
|
+
"name": "error",
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "code",
|
|
204
|
+
"type": "string"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
146
207
|
}
|
|
147
208
|
],
|
|
148
209
|
"stateMachine": {
|
|
@@ -231,20 +292,6 @@
|
|
|
231
292
|
"key": "RETREAT",
|
|
232
293
|
"name": "Retreat"
|
|
233
294
|
},
|
|
234
|
-
{
|
|
235
|
-
"key": "SKIP",
|
|
236
|
-
"name": "Skip"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"key": "COMPLETE",
|
|
240
|
-
"name": "Complete",
|
|
241
|
-
"payloadSchema": [
|
|
242
|
-
{
|
|
243
|
-
"name": "data",
|
|
244
|
-
"type": "object"
|
|
245
|
-
}
|
|
246
|
-
]
|
|
247
|
-
},
|
|
248
295
|
{
|
|
249
296
|
"key": "CANCEL",
|
|
250
297
|
"name": "Cancel",
|
|
@@ -271,8 +318,8 @@
|
|
|
271
318
|
"WizardView",
|
|
272
319
|
{
|
|
273
320
|
"emit": {
|
|
274
|
-
"
|
|
275
|
-
"
|
|
321
|
+
"success": "WizardLoaded",
|
|
322
|
+
"failure": "WizardLoadFailed"
|
|
276
323
|
}
|
|
277
324
|
}
|
|
278
325
|
],
|
|
@@ -280,8 +327,8 @@
|
|
|
280
327
|
"render-ui",
|
|
281
328
|
"main",
|
|
282
329
|
{
|
|
283
|
-
"
|
|
284
|
-
"
|
|
330
|
+
"title": "Loading wizard…",
|
|
331
|
+
"type": "loading-state"
|
|
285
332
|
}
|
|
286
333
|
]
|
|
287
334
|
]
|
|
@@ -306,7 +353,7 @@
|
|
|
306
353
|
],
|
|
307
354
|
[
|
|
308
355
|
"set",
|
|
309
|
-
"@entity.
|
|
356
|
+
"@entity.wizardSteps",
|
|
310
357
|
[
|
|
311
358
|
"array/map",
|
|
312
359
|
"@config.steps",
|
|
@@ -314,24 +361,16 @@
|
|
|
314
361
|
"fn",
|
|
315
362
|
"step",
|
|
316
363
|
{
|
|
317
|
-
"
|
|
318
|
-
"object/get",
|
|
319
|
-
"@step",
|
|
320
|
-
"label"
|
|
321
|
-
],
|
|
322
|
-
"key": [
|
|
364
|
+
"id": [
|
|
323
365
|
"object/get",
|
|
324
366
|
"@step",
|
|
325
367
|
"key"
|
|
326
368
|
],
|
|
327
|
-
"
|
|
369
|
+
"title": [
|
|
328
370
|
"object/get",
|
|
329
371
|
"@step",
|
|
330
|
-
"
|
|
331
|
-
"circle"
|
|
372
|
+
"label"
|
|
332
373
|
],
|
|
333
|
-
"status": "current",
|
|
334
|
-
"number": 1.0,
|
|
335
374
|
"description": [
|
|
336
375
|
"object/get",
|
|
337
376
|
"@step",
|
|
@@ -342,132 +381,230 @@
|
|
|
342
381
|
]
|
|
343
382
|
]
|
|
344
383
|
],
|
|
384
|
+
[
|
|
385
|
+
"set",
|
|
386
|
+
"@entity.currentStepLabel",
|
|
387
|
+
[
|
|
388
|
+
"object/get",
|
|
389
|
+
[
|
|
390
|
+
"array/nth",
|
|
391
|
+
"@config.steps",
|
|
392
|
+
0.0
|
|
393
|
+
],
|
|
394
|
+
"label"
|
|
395
|
+
]
|
|
396
|
+
],
|
|
397
|
+
[
|
|
398
|
+
"set",
|
|
399
|
+
"@entity.currentStepDescription",
|
|
400
|
+
[
|
|
401
|
+
"object/get",
|
|
402
|
+
[
|
|
403
|
+
"array/nth",
|
|
404
|
+
"@config.steps",
|
|
405
|
+
0.0
|
|
406
|
+
],
|
|
407
|
+
"description",
|
|
408
|
+
""
|
|
409
|
+
]
|
|
410
|
+
],
|
|
411
|
+
[
|
|
412
|
+
"set",
|
|
413
|
+
"@entity.currentStepIcon",
|
|
414
|
+
[
|
|
415
|
+
"object/get",
|
|
416
|
+
[
|
|
417
|
+
"array/nth",
|
|
418
|
+
"@config.steps",
|
|
419
|
+
0.0
|
|
420
|
+
],
|
|
421
|
+
"icon",
|
|
422
|
+
"circle"
|
|
423
|
+
]
|
|
424
|
+
],
|
|
425
|
+
[
|
|
426
|
+
"set",
|
|
427
|
+
"@entity.currentFields",
|
|
428
|
+
[
|
|
429
|
+
"object/get",
|
|
430
|
+
[
|
|
431
|
+
"array/nth",
|
|
432
|
+
"@config.steps",
|
|
433
|
+
0.0
|
|
434
|
+
],
|
|
435
|
+
"fields",
|
|
436
|
+
[]
|
|
437
|
+
]
|
|
438
|
+
],
|
|
439
|
+
[
|
|
440
|
+
"set",
|
|
441
|
+
"@entity.isFirstStep",
|
|
442
|
+
true
|
|
443
|
+
],
|
|
444
|
+
[
|
|
445
|
+
"set",
|
|
446
|
+
"@entity.isLastStep",
|
|
447
|
+
[
|
|
448
|
+
"=",
|
|
449
|
+
[
|
|
450
|
+
"array/len",
|
|
451
|
+
"@config.steps"
|
|
452
|
+
],
|
|
453
|
+
1.0
|
|
454
|
+
]
|
|
455
|
+
],
|
|
456
|
+
[
|
|
457
|
+
"set",
|
|
458
|
+
"@entity.primaryActionLabel",
|
|
459
|
+
[
|
|
460
|
+
"if",
|
|
461
|
+
[
|
|
462
|
+
"=",
|
|
463
|
+
[
|
|
464
|
+
"array/len",
|
|
465
|
+
"@config.steps"
|
|
466
|
+
],
|
|
467
|
+
1.0
|
|
468
|
+
],
|
|
469
|
+
"Submit",
|
|
470
|
+
"Next"
|
|
471
|
+
]
|
|
472
|
+
],
|
|
473
|
+
[
|
|
474
|
+
"set",
|
|
475
|
+
"@entity.primaryActionIcon",
|
|
476
|
+
[
|
|
477
|
+
"if",
|
|
478
|
+
[
|
|
479
|
+
"=",
|
|
480
|
+
[
|
|
481
|
+
"array/len",
|
|
482
|
+
"@config.steps"
|
|
483
|
+
],
|
|
484
|
+
1.0
|
|
485
|
+
],
|
|
486
|
+
"check-circle",
|
|
487
|
+
"chevron-right"
|
|
488
|
+
]
|
|
489
|
+
],
|
|
345
490
|
[
|
|
346
491
|
"render-ui",
|
|
347
492
|
"main",
|
|
348
493
|
{
|
|
494
|
+
"type": "stack",
|
|
349
495
|
"direction": "vertical",
|
|
350
496
|
"children": [
|
|
351
497
|
{
|
|
352
498
|
"children": [
|
|
353
499
|
{
|
|
354
|
-
"
|
|
355
|
-
"
|
|
500
|
+
"name": "list-checks",
|
|
501
|
+
"type": "icon"
|
|
356
502
|
},
|
|
357
503
|
{
|
|
358
|
-
"
|
|
504
|
+
"content": "@config.title",
|
|
359
505
|
"type": "typography",
|
|
360
|
-
"
|
|
506
|
+
"variant": "h3"
|
|
361
507
|
}
|
|
362
508
|
],
|
|
363
509
|
"direction": "horizontal",
|
|
510
|
+
"align": "center",
|
|
364
511
|
"type": "stack",
|
|
365
|
-
"gap": "sm"
|
|
366
|
-
"align": "center"
|
|
512
|
+
"gap": "sm"
|
|
367
513
|
},
|
|
368
514
|
{
|
|
369
|
-
"
|
|
515
|
+
"allowNavigation": false,
|
|
516
|
+
"currentStep": "@entity.currentStepIndex",
|
|
517
|
+
"type": "wizard-progress",
|
|
518
|
+
"steps": "@entity.wizardSteps"
|
|
370
519
|
},
|
|
371
520
|
{
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"renderItem": [
|
|
375
|
-
"fn",
|
|
376
|
-
"step",
|
|
521
|
+
"type": "card",
|
|
522
|
+
"children": [
|
|
377
523
|
{
|
|
378
|
-
"type": "card",
|
|
379
524
|
"children": [
|
|
380
525
|
{
|
|
381
|
-
"type": "stack",
|
|
382
|
-
"align": "center",
|
|
383
526
|
"children": [
|
|
384
527
|
{
|
|
385
528
|
"type": "icon",
|
|
386
|
-
"
|
|
529
|
+
"size": "lg",
|
|
530
|
+
"name": "@entity.currentStepIcon"
|
|
387
531
|
},
|
|
388
532
|
{
|
|
389
|
-
"type": "stack",
|
|
390
|
-
"direction": "vertical",
|
|
391
|
-
"gap": "xs",
|
|
392
533
|
"children": [
|
|
393
534
|
{
|
|
394
535
|
"type": "typography",
|
|
395
|
-
"
|
|
396
|
-
"
|
|
536
|
+
"content": "@entity.currentStepLabel",
|
|
537
|
+
"variant": "h2"
|
|
397
538
|
},
|
|
398
539
|
{
|
|
399
|
-
"variant": "caption",
|
|
400
540
|
"color": "muted",
|
|
401
541
|
"type": "typography",
|
|
402
|
-
"content": "@
|
|
542
|
+
"content": "@entity.currentStepDescription",
|
|
543
|
+
"variant": "body"
|
|
403
544
|
}
|
|
404
|
-
]
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
"
|
|
408
|
-
"variant": "primary",
|
|
409
|
-
"label": "@step.status"
|
|
545
|
+
],
|
|
546
|
+
"direction": "vertical",
|
|
547
|
+
"type": "stack",
|
|
548
|
+
"gap": "xs"
|
|
410
549
|
}
|
|
411
550
|
],
|
|
412
551
|
"direction": "horizontal",
|
|
413
|
-
"gap": "sm"
|
|
552
|
+
"gap": "sm",
|
|
553
|
+
"align": "center",
|
|
554
|
+
"type": "stack"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"type": "divider"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"mode": "edit",
|
|
561
|
+
"entity": "@entity",
|
|
562
|
+
"submitEvent": "ADVANCE",
|
|
563
|
+
"fields": "@entity.currentFields",
|
|
564
|
+
"showSubmit": false,
|
|
565
|
+
"cancelEvent": "CANCEL",
|
|
566
|
+
"type": "form-section",
|
|
567
|
+
"showCancel": false
|
|
414
568
|
}
|
|
415
|
-
]
|
|
569
|
+
],
|
|
570
|
+
"gap": "md",
|
|
571
|
+
"type": "stack",
|
|
572
|
+
"direction": "vertical"
|
|
416
573
|
}
|
|
417
|
-
]
|
|
418
|
-
"entity": "@entity.steps",
|
|
419
|
-
"fields": []
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"type": "divider"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"submitEvent": "ADVANCE",
|
|
426
|
-
"cancelEvent": "CANCEL",
|
|
427
|
-
"entity": "@entity",
|
|
428
|
-
"fields": "@config.currentFields",
|
|
429
|
-
"type": "form-section",
|
|
430
|
-
"mode": "edit"
|
|
574
|
+
]
|
|
431
575
|
},
|
|
432
576
|
{
|
|
433
577
|
"type": "stack",
|
|
434
|
-
"direction": "horizontal",
|
|
435
|
-
"gap": "sm",
|
|
436
578
|
"align": "center",
|
|
437
579
|
"children": [
|
|
438
580
|
{
|
|
439
|
-
"icon": "
|
|
440
|
-
"variant": "ghost",
|
|
441
|
-
"action": "RETREAT",
|
|
442
|
-
"type": "button",
|
|
443
|
-
"label": "Back"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"action": "SKIP",
|
|
447
|
-
"variant": "secondary",
|
|
448
|
-
"icon": "skip-forward",
|
|
581
|
+
"icon": "chevron-left",
|
|
449
582
|
"type": "button",
|
|
450
|
-
"label": "
|
|
583
|
+
"label": "Back",
|
|
584
|
+
"disabled": "@entity.isFirstStep",
|
|
585
|
+
"variant": "ghost",
|
|
586
|
+
"action": "RETREAT"
|
|
451
587
|
},
|
|
452
588
|
{
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"action": "
|
|
456
|
-
"
|
|
457
|
-
"
|
|
589
|
+
"variant": "ghost",
|
|
590
|
+
"label": "Cancel wizard",
|
|
591
|
+
"action": "CANCEL",
|
|
592
|
+
"icon": "x",
|
|
593
|
+
"type": "button"
|
|
458
594
|
},
|
|
459
595
|
{
|
|
460
|
-
"icon": "
|
|
461
|
-
"label": "Cancel",
|
|
596
|
+
"icon": "@entity.primaryActionIcon",
|
|
462
597
|
"type": "button",
|
|
463
|
-
"
|
|
464
|
-
"
|
|
598
|
+
"variant": "primary",
|
|
599
|
+
"label": "@entity.primaryActionLabel",
|
|
600
|
+
"action": "ADVANCE"
|
|
465
601
|
}
|
|
466
|
-
]
|
|
602
|
+
],
|
|
603
|
+
"gap": "sm",
|
|
604
|
+
"direction": "horizontal"
|
|
467
605
|
}
|
|
468
606
|
],
|
|
469
|
-
"gap": "
|
|
470
|
-
"type": "stack"
|
|
607
|
+
"gap": "lg"
|
|
471
608
|
}
|
|
472
609
|
]
|
|
473
610
|
]
|
|
@@ -486,24 +623,34 @@
|
|
|
486
623
|
"render-ui",
|
|
487
624
|
"main",
|
|
488
625
|
{
|
|
489
|
-
"type": "error-state",
|
|
490
626
|
"title": "Failed to load",
|
|
491
|
-
"message": "@entity.errorMessage"
|
|
627
|
+
"message": "@entity.errorMessage",
|
|
628
|
+
"type": "error-state"
|
|
492
629
|
}
|
|
493
630
|
]
|
|
494
631
|
]
|
|
495
632
|
},
|
|
496
633
|
{
|
|
497
634
|
"from": "loading",
|
|
498
|
-
"to": "
|
|
635
|
+
"to": "loading",
|
|
499
636
|
"event": "WizardSaved",
|
|
500
637
|
"effects": [
|
|
638
|
+
[
|
|
639
|
+
"fetch",
|
|
640
|
+
"WizardView",
|
|
641
|
+
{
|
|
642
|
+
"emit": {
|
|
643
|
+
"failure": "WizardLoadFailed",
|
|
644
|
+
"success": "WizardLoaded"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
],
|
|
501
648
|
[
|
|
502
649
|
"render-ui",
|
|
503
650
|
"main",
|
|
504
651
|
{
|
|
505
|
-
"
|
|
506
|
-
"
|
|
652
|
+
"type": "loading-state",
|
|
653
|
+
"title": "Refreshing…"
|
|
507
654
|
}
|
|
508
655
|
]
|
|
509
656
|
]
|
|
@@ -533,6 +680,10 @@
|
|
|
533
680
|
"from": "running",
|
|
534
681
|
"to": "running",
|
|
535
682
|
"event": "ADVANCE",
|
|
683
|
+
"guard": [
|
|
684
|
+
"not",
|
|
685
|
+
"@entity.isLastStep"
|
|
686
|
+
],
|
|
536
687
|
"effects": [
|
|
537
688
|
[
|
|
538
689
|
"set",
|
|
@@ -545,192 +696,303 @@
|
|
|
545
696
|
],
|
|
546
697
|
[
|
|
547
698
|
"set",
|
|
548
|
-
"@entity.
|
|
699
|
+
"@entity.currentStepLabel",
|
|
549
700
|
[
|
|
550
|
-
"
|
|
551
|
-
"@config.steps",
|
|
701
|
+
"object/get",
|
|
552
702
|
[
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
"@step",
|
|
559
|
-
"description",
|
|
560
|
-
""
|
|
561
|
-
],
|
|
562
|
-
"icon": [
|
|
563
|
-
"object/get",
|
|
564
|
-
"@step",
|
|
565
|
-
"icon",
|
|
566
|
-
"circle"
|
|
567
|
-
],
|
|
568
|
-
"label": [
|
|
569
|
-
"object/get",
|
|
570
|
-
"@step",
|
|
571
|
-
"label"
|
|
572
|
-
],
|
|
573
|
-
"key": [
|
|
574
|
-
"object/get",
|
|
575
|
-
"@step",
|
|
576
|
-
"key"
|
|
577
|
-
],
|
|
578
|
-
"number": 1.0,
|
|
579
|
-
"status": "current"
|
|
580
|
-
}
|
|
581
|
-
]
|
|
703
|
+
"array/nth",
|
|
704
|
+
"@config.steps",
|
|
705
|
+
"@entity.currentStepIndex"
|
|
706
|
+
],
|
|
707
|
+
"label"
|
|
582
708
|
]
|
|
583
709
|
],
|
|
584
710
|
[
|
|
585
|
-
"
|
|
586
|
-
"
|
|
587
|
-
|
|
588
|
-
"
|
|
589
|
-
|
|
711
|
+
"set",
|
|
712
|
+
"@entity.currentStepDescription",
|
|
713
|
+
[
|
|
714
|
+
"object/get",
|
|
715
|
+
[
|
|
716
|
+
"array/nth",
|
|
717
|
+
"@config.steps",
|
|
718
|
+
"@entity.currentStepIndex"
|
|
719
|
+
],
|
|
720
|
+
"description",
|
|
721
|
+
""
|
|
722
|
+
]
|
|
723
|
+
],
|
|
724
|
+
[
|
|
725
|
+
"set",
|
|
726
|
+
"@entity.currentStepIcon",
|
|
727
|
+
[
|
|
728
|
+
"object/get",
|
|
729
|
+
[
|
|
730
|
+
"array/nth",
|
|
731
|
+
"@config.steps",
|
|
732
|
+
"@entity.currentStepIndex"
|
|
733
|
+
],
|
|
734
|
+
"icon",
|
|
735
|
+
"circle"
|
|
736
|
+
]
|
|
737
|
+
],
|
|
738
|
+
[
|
|
739
|
+
"set",
|
|
740
|
+
"@entity.currentFields",
|
|
741
|
+
[
|
|
742
|
+
"object/get",
|
|
743
|
+
[
|
|
744
|
+
"array/nth",
|
|
745
|
+
"@config.steps",
|
|
746
|
+
"@entity.currentStepIndex"
|
|
747
|
+
],
|
|
748
|
+
"fields",
|
|
749
|
+
[]
|
|
750
|
+
]
|
|
751
|
+
],
|
|
752
|
+
[
|
|
753
|
+
"set",
|
|
754
|
+
"@entity.isFirstStep",
|
|
755
|
+
[
|
|
756
|
+
"=",
|
|
757
|
+
"@entity.currentStepIndex",
|
|
758
|
+
0.0
|
|
759
|
+
]
|
|
760
|
+
],
|
|
761
|
+
[
|
|
762
|
+
"set",
|
|
763
|
+
"@entity.isLastStep",
|
|
764
|
+
[
|
|
765
|
+
"=",
|
|
766
|
+
"@entity.currentStepIndex",
|
|
767
|
+
[
|
|
768
|
+
"-",
|
|
769
|
+
"@entity.totalSteps",
|
|
770
|
+
1.0
|
|
771
|
+
]
|
|
772
|
+
]
|
|
773
|
+
],
|
|
774
|
+
[
|
|
775
|
+
"set",
|
|
776
|
+
"@entity.primaryActionLabel",
|
|
777
|
+
[
|
|
778
|
+
"if",
|
|
779
|
+
[
|
|
780
|
+
"=",
|
|
781
|
+
"@entity.currentStepIndex",
|
|
782
|
+
[
|
|
783
|
+
"-",
|
|
784
|
+
"@entity.totalSteps",
|
|
785
|
+
1.0
|
|
786
|
+
]
|
|
787
|
+
],
|
|
788
|
+
"Submit",
|
|
789
|
+
"Next"
|
|
790
|
+
]
|
|
791
|
+
],
|
|
792
|
+
[
|
|
793
|
+
"set",
|
|
794
|
+
"@entity.primaryActionIcon",
|
|
795
|
+
[
|
|
796
|
+
"if",
|
|
797
|
+
[
|
|
798
|
+
"=",
|
|
799
|
+
"@entity.currentStepIndex",
|
|
800
|
+
[
|
|
801
|
+
"-",
|
|
802
|
+
"@entity.totalSteps",
|
|
803
|
+
1.0
|
|
804
|
+
]
|
|
805
|
+
],
|
|
806
|
+
"check-circle",
|
|
807
|
+
"chevron-right"
|
|
808
|
+
]
|
|
809
|
+
],
|
|
810
|
+
[
|
|
811
|
+
"render-ui",
|
|
812
|
+
"main",
|
|
813
|
+
{
|
|
814
|
+
"direction": "vertical",
|
|
815
|
+
"type": "stack",
|
|
816
|
+
"gap": "lg",
|
|
590
817
|
"children": [
|
|
591
818
|
{
|
|
592
819
|
"direction": "horizontal",
|
|
820
|
+
"align": "center",
|
|
821
|
+
"type": "stack",
|
|
593
822
|
"children": [
|
|
594
823
|
{
|
|
595
824
|
"type": "icon",
|
|
596
825
|
"name": "list-checks"
|
|
597
826
|
},
|
|
598
827
|
{
|
|
599
|
-
"
|
|
828
|
+
"type": "typography",
|
|
600
829
|
"content": "@config.title",
|
|
601
|
-
"
|
|
830
|
+
"variant": "h3"
|
|
602
831
|
}
|
|
603
832
|
],
|
|
604
|
-
"align": "center",
|
|
605
|
-
"type": "stack",
|
|
606
833
|
"gap": "sm"
|
|
607
834
|
},
|
|
608
835
|
{
|
|
609
|
-
"
|
|
836
|
+
"allowNavigation": false,
|
|
837
|
+
"type": "wizard-progress",
|
|
838
|
+
"steps": "@entity.wizardSteps",
|
|
839
|
+
"currentStep": "@entity.currentStepIndex"
|
|
610
840
|
},
|
|
611
841
|
{
|
|
612
|
-
"
|
|
613
|
-
"gap": "sm",
|
|
614
|
-
"entity": "@entity.steps",
|
|
615
|
-
"renderItem": [
|
|
616
|
-
"fn",
|
|
617
|
-
"step",
|
|
842
|
+
"children": [
|
|
618
843
|
{
|
|
619
|
-
"type": "card",
|
|
620
844
|
"children": [
|
|
621
845
|
{
|
|
622
846
|
"direction": "horizontal",
|
|
623
|
-
"align": "center",
|
|
624
847
|
"children": [
|
|
625
848
|
{
|
|
849
|
+
"name": "@entity.currentStepIcon",
|
|
626
850
|
"type": "icon",
|
|
627
|
-
"
|
|
851
|
+
"size": "lg"
|
|
628
852
|
},
|
|
629
853
|
{
|
|
854
|
+
"type": "stack",
|
|
855
|
+
"direction": "vertical",
|
|
856
|
+
"gap": "xs",
|
|
630
857
|
"children": [
|
|
631
858
|
{
|
|
632
|
-
"
|
|
633
|
-
"
|
|
634
|
-
"
|
|
859
|
+
"variant": "h2",
|
|
860
|
+
"type": "typography",
|
|
861
|
+
"content": "@entity.currentStepLabel"
|
|
635
862
|
},
|
|
636
863
|
{
|
|
637
864
|
"type": "typography",
|
|
638
|
-
"variant": "caption",
|
|
639
865
|
"color": "muted",
|
|
640
|
-
"content": "@
|
|
866
|
+
"content": "@entity.currentStepDescription",
|
|
867
|
+
"variant": "body"
|
|
641
868
|
}
|
|
642
|
-
]
|
|
643
|
-
"direction": "vertical",
|
|
644
|
-
"gap": "xs",
|
|
645
|
-
"type": "stack"
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"variant": "primary",
|
|
649
|
-
"type": "badge",
|
|
650
|
-
"label": "@step.status"
|
|
869
|
+
]
|
|
651
870
|
}
|
|
652
871
|
],
|
|
653
872
|
"gap": "sm",
|
|
873
|
+
"align": "center",
|
|
654
874
|
"type": "stack"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"type": "divider"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"type": "form-section",
|
|
881
|
+
"cancelEvent": "CANCEL",
|
|
882
|
+
"showSubmit": false,
|
|
883
|
+
"showCancel": false,
|
|
884
|
+
"fields": "@entity.currentFields",
|
|
885
|
+
"entity": "@entity",
|
|
886
|
+
"mode": "edit",
|
|
887
|
+
"submitEvent": "ADVANCE"
|
|
655
888
|
}
|
|
656
|
-
]
|
|
889
|
+
],
|
|
890
|
+
"direction": "vertical",
|
|
891
|
+
"type": "stack",
|
|
892
|
+
"gap": "md"
|
|
657
893
|
}
|
|
658
894
|
],
|
|
659
|
-
"type": "
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
"type": "divider"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
"entity": "@entity",
|
|
666
|
-
"type": "form-section",
|
|
667
|
-
"fields": "@config.currentFields",
|
|
668
|
-
"submitEvent": "ADVANCE",
|
|
669
|
-
"mode": "edit",
|
|
670
|
-
"cancelEvent": "CANCEL"
|
|
895
|
+
"type": "card"
|
|
671
896
|
},
|
|
672
897
|
{
|
|
673
898
|
"direction": "horizontal",
|
|
674
899
|
"type": "stack",
|
|
900
|
+
"align": "center",
|
|
901
|
+
"gap": "sm",
|
|
675
902
|
"children": [
|
|
676
903
|
{
|
|
677
|
-
"
|
|
904
|
+
"icon": "chevron-left",
|
|
905
|
+
"type": "button",
|
|
678
906
|
"variant": "ghost",
|
|
907
|
+
"disabled": "@entity.isFirstStep",
|
|
679
908
|
"action": "RETREAT",
|
|
680
|
-
"
|
|
681
|
-
"type": "button"
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
"type": "button",
|
|
685
|
-
"label": "Skip",
|
|
686
|
-
"variant": "secondary",
|
|
687
|
-
"action": "SKIP",
|
|
688
|
-
"icon": "skip-forward"
|
|
909
|
+
"label": "Back"
|
|
689
910
|
},
|
|
690
911
|
{
|
|
691
|
-
"
|
|
692
|
-
"action": "
|
|
912
|
+
"icon": "x",
|
|
913
|
+
"action": "CANCEL",
|
|
693
914
|
"type": "button",
|
|
694
|
-
"
|
|
695
|
-
"
|
|
915
|
+
"label": "Cancel wizard",
|
|
916
|
+
"variant": "ghost"
|
|
696
917
|
},
|
|
697
918
|
{
|
|
698
|
-
"
|
|
919
|
+
"action": "ADVANCE",
|
|
920
|
+
"icon": "@entity.primaryActionIcon",
|
|
921
|
+
"label": "@entity.primaryActionLabel",
|
|
699
922
|
"type": "button",
|
|
700
|
-
"
|
|
701
|
-
"icon": "x",
|
|
702
|
-
"label": "Cancel"
|
|
923
|
+
"variant": "primary"
|
|
703
924
|
}
|
|
704
|
-
]
|
|
705
|
-
"align": "center",
|
|
706
|
-
"gap": "sm"
|
|
925
|
+
]
|
|
707
926
|
}
|
|
708
|
-
]
|
|
709
|
-
"gap": "md"
|
|
927
|
+
]
|
|
710
928
|
}
|
|
711
929
|
]
|
|
712
930
|
]
|
|
713
931
|
},
|
|
714
932
|
{
|
|
715
933
|
"from": "running",
|
|
716
|
-
"to": "
|
|
717
|
-
"event": "
|
|
934
|
+
"to": "completed",
|
|
935
|
+
"event": "ADVANCE",
|
|
936
|
+
"guard": "@entity.isLastStep",
|
|
718
937
|
"effects": [
|
|
719
938
|
[
|
|
720
939
|
"set",
|
|
721
|
-
"@entity.
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
940
|
+
"@entity.completionMessage",
|
|
941
|
+
"All steps completed. Your submission has been recorded."
|
|
942
|
+
],
|
|
943
|
+
[
|
|
944
|
+
"persist",
|
|
945
|
+
"update",
|
|
946
|
+
"WizardView",
|
|
947
|
+
"@payload.data",
|
|
948
|
+
{
|
|
949
|
+
"emit": {
|
|
950
|
+
"failure": "WizardSaveFailed",
|
|
951
|
+
"success": "WizardSaved"
|
|
952
|
+
}
|
|
953
|
+
}
|
|
727
954
|
],
|
|
728
955
|
[
|
|
729
956
|
"render-ui",
|
|
730
957
|
"main",
|
|
731
958
|
{
|
|
732
|
-
"
|
|
733
|
-
"
|
|
959
|
+
"type": "stack",
|
|
960
|
+
"gap": "lg",
|
|
961
|
+
"direction": "vertical",
|
|
962
|
+
"align": "center",
|
|
963
|
+
"children": [
|
|
964
|
+
{
|
|
965
|
+
"name": "check-circle",
|
|
966
|
+
"size": "lg",
|
|
967
|
+
"type": "icon"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"content": "Complete",
|
|
971
|
+
"align": "center",
|
|
972
|
+
"variant": "h2",
|
|
973
|
+
"type": "typography"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"type": "typography",
|
|
977
|
+
"variant": "body",
|
|
978
|
+
"content": "@entity.completionMessage",
|
|
979
|
+
"align": "center",
|
|
980
|
+
"color": "muted"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"currentStep": "@entity.totalSteps",
|
|
984
|
+
"steps": "@entity.wizardSteps",
|
|
985
|
+
"allowNavigation": false,
|
|
986
|
+
"type": "wizard-progress"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"variant": "secondary",
|
|
990
|
+
"action": "RESTART",
|
|
991
|
+
"label": "Start a new wizard",
|
|
992
|
+
"icon": "rotate-ccw",
|
|
993
|
+
"type": "button"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
734
996
|
}
|
|
735
997
|
]
|
|
736
998
|
]
|
|
@@ -738,171 +1000,248 @@
|
|
|
738
1000
|
{
|
|
739
1001
|
"from": "running",
|
|
740
1002
|
"to": "running",
|
|
741
|
-
"event": "
|
|
1003
|
+
"event": "RETREAT",
|
|
742
1004
|
"effects": [
|
|
743
1005
|
[
|
|
744
1006
|
"set",
|
|
745
1007
|
"@entity.currentStepIndex",
|
|
746
1008
|
[
|
|
747
|
-
"
|
|
1009
|
+
"-",
|
|
748
1010
|
"@entity.currentStepIndex",
|
|
749
1011
|
1.0
|
|
750
1012
|
]
|
|
751
1013
|
],
|
|
752
1014
|
[
|
|
753
|
-
"
|
|
754
|
-
"
|
|
755
|
-
|
|
756
|
-
"
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
"event": "COMPLETE",
|
|
766
|
-
"effects": [
|
|
1015
|
+
"set",
|
|
1016
|
+
"@entity.currentStepLabel",
|
|
1017
|
+
[
|
|
1018
|
+
"object/get",
|
|
1019
|
+
[
|
|
1020
|
+
"array/nth",
|
|
1021
|
+
"@config.steps",
|
|
1022
|
+
"@entity.currentStepIndex"
|
|
1023
|
+
],
|
|
1024
|
+
"label"
|
|
1025
|
+
]
|
|
1026
|
+
],
|
|
767
1027
|
[
|
|
768
1028
|
"set",
|
|
769
|
-
"@entity.
|
|
770
|
-
|
|
1029
|
+
"@entity.currentStepDescription",
|
|
1030
|
+
[
|
|
1031
|
+
"object/get",
|
|
1032
|
+
[
|
|
1033
|
+
"array/nth",
|
|
1034
|
+
"@config.steps",
|
|
1035
|
+
"@entity.currentStepIndex"
|
|
1036
|
+
],
|
|
1037
|
+
"description",
|
|
1038
|
+
""
|
|
1039
|
+
]
|
|
771
1040
|
],
|
|
772
1041
|
[
|
|
773
1042
|
"set",
|
|
774
|
-
"@entity.
|
|
1043
|
+
"@entity.currentStepIcon",
|
|
775
1044
|
[
|
|
776
|
-
"
|
|
777
|
-
"@config.steps",
|
|
1045
|
+
"object/get",
|
|
778
1046
|
[
|
|
779
|
-
"
|
|
780
|
-
"
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
1047
|
+
"array/nth",
|
|
1048
|
+
"@config.steps",
|
|
1049
|
+
"@entity.currentStepIndex"
|
|
1050
|
+
],
|
|
1051
|
+
"icon",
|
|
1052
|
+
"circle"
|
|
1053
|
+
]
|
|
1054
|
+
],
|
|
1055
|
+
[
|
|
1056
|
+
"set",
|
|
1057
|
+
"@entity.currentFields",
|
|
1058
|
+
[
|
|
1059
|
+
"object/get",
|
|
1060
|
+
[
|
|
1061
|
+
"array/nth",
|
|
1062
|
+
"@config.steps",
|
|
1063
|
+
"@entity.currentStepIndex"
|
|
1064
|
+
],
|
|
1065
|
+
"fields",
|
|
1066
|
+
[]
|
|
1067
|
+
]
|
|
1068
|
+
],
|
|
1069
|
+
[
|
|
1070
|
+
"set",
|
|
1071
|
+
"@entity.isFirstStep",
|
|
1072
|
+
[
|
|
1073
|
+
"=",
|
|
1074
|
+
"@entity.currentStepIndex",
|
|
1075
|
+
0.0
|
|
1076
|
+
]
|
|
1077
|
+
],
|
|
1078
|
+
[
|
|
1079
|
+
"set",
|
|
1080
|
+
"@entity.isLastStep",
|
|
1081
|
+
[
|
|
1082
|
+
"=",
|
|
1083
|
+
"@entity.currentStepIndex",
|
|
1084
|
+
[
|
|
1085
|
+
"-",
|
|
1086
|
+
"@entity.totalSteps",
|
|
1087
|
+
1.0
|
|
807
1088
|
]
|
|
808
1089
|
]
|
|
809
1090
|
],
|
|
1091
|
+
[
|
|
1092
|
+
"set",
|
|
1093
|
+
"@entity.primaryActionLabel",
|
|
1094
|
+
[
|
|
1095
|
+
"if",
|
|
1096
|
+
[
|
|
1097
|
+
"=",
|
|
1098
|
+
"@entity.currentStepIndex",
|
|
1099
|
+
[
|
|
1100
|
+
"-",
|
|
1101
|
+
"@entity.totalSteps",
|
|
1102
|
+
1.0
|
|
1103
|
+
]
|
|
1104
|
+
],
|
|
1105
|
+
"Submit",
|
|
1106
|
+
"Next"
|
|
1107
|
+
]
|
|
1108
|
+
],
|
|
1109
|
+
[
|
|
1110
|
+
"set",
|
|
1111
|
+
"@entity.primaryActionIcon",
|
|
1112
|
+
[
|
|
1113
|
+
"if",
|
|
1114
|
+
[
|
|
1115
|
+
"=",
|
|
1116
|
+
"@entity.currentStepIndex",
|
|
1117
|
+
[
|
|
1118
|
+
"-",
|
|
1119
|
+
"@entity.totalSteps",
|
|
1120
|
+
1.0
|
|
1121
|
+
]
|
|
1122
|
+
],
|
|
1123
|
+
"check-circle",
|
|
1124
|
+
"chevron-right"
|
|
1125
|
+
]
|
|
1126
|
+
],
|
|
810
1127
|
[
|
|
811
1128
|
"render-ui",
|
|
812
1129
|
"main",
|
|
813
1130
|
{
|
|
814
|
-
"type": "stack",
|
|
815
|
-
"gap": "md",
|
|
816
|
-
"direction": "vertical",
|
|
817
1131
|
"children": [
|
|
818
1132
|
{
|
|
819
|
-
"align": "center",
|
|
820
1133
|
"type": "stack",
|
|
821
|
-
"
|
|
1134
|
+
"align": "center",
|
|
1135
|
+
"gap": "sm",
|
|
822
1136
|
"children": [
|
|
823
1137
|
{
|
|
824
|
-
"
|
|
825
|
-
"
|
|
1138
|
+
"type": "icon",
|
|
1139
|
+
"name": "list-checks"
|
|
826
1140
|
},
|
|
827
1141
|
{
|
|
828
|
-
"type": "typography",
|
|
829
1142
|
"variant": "h3",
|
|
830
|
-
"
|
|
1143
|
+
"type": "typography",
|
|
1144
|
+
"content": "@config.title"
|
|
831
1145
|
}
|
|
832
1146
|
],
|
|
833
|
-
"
|
|
1147
|
+
"direction": "horizontal"
|
|
834
1148
|
},
|
|
835
1149
|
{
|
|
836
|
-
"
|
|
1150
|
+
"allowNavigation": false,
|
|
1151
|
+
"type": "wizard-progress",
|
|
1152
|
+
"steps": "@entity.wizardSteps",
|
|
1153
|
+
"currentStep": "@entity.currentStepIndex"
|
|
837
1154
|
},
|
|
838
1155
|
{
|
|
839
|
-
"
|
|
840
|
-
"fn",
|
|
841
|
-
"step",
|
|
1156
|
+
"children": [
|
|
842
1157
|
{
|
|
843
|
-
"type": "card",
|
|
844
1158
|
"children": [
|
|
845
1159
|
{
|
|
1160
|
+
"type": "stack",
|
|
1161
|
+
"direction": "horizontal",
|
|
846
1162
|
"align": "center",
|
|
847
1163
|
"gap": "sm",
|
|
848
|
-
"type": "stack",
|
|
849
1164
|
"children": [
|
|
850
1165
|
{
|
|
851
|
-
"
|
|
852
|
-
"
|
|
1166
|
+
"name": "@entity.currentStepIcon",
|
|
1167
|
+
"size": "lg",
|
|
1168
|
+
"type": "icon"
|
|
853
1169
|
},
|
|
854
1170
|
{
|
|
855
|
-
"
|
|
1171
|
+
"gap": "xs",
|
|
856
1172
|
"children": [
|
|
857
1173
|
{
|
|
858
|
-
"
|
|
859
|
-
"
|
|
860
|
-
"
|
|
1174
|
+
"content": "@entity.currentStepLabel",
|
|
1175
|
+
"type": "typography",
|
|
1176
|
+
"variant": "h2"
|
|
861
1177
|
},
|
|
862
1178
|
{
|
|
863
1179
|
"color": "muted",
|
|
1180
|
+
"variant": "body",
|
|
864
1181
|
"type": "typography",
|
|
865
|
-
"
|
|
866
|
-
"content": "@step.description"
|
|
1182
|
+
"content": "@entity.currentStepDescription"
|
|
867
1183
|
}
|
|
868
1184
|
],
|
|
869
|
-
"
|
|
870
|
-
"
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
"variant": "success",
|
|
874
|
-
"type": "badge",
|
|
875
|
-
"label": "@step.status"
|
|
1185
|
+
"type": "stack",
|
|
1186
|
+
"direction": "vertical"
|
|
876
1187
|
}
|
|
877
|
-
]
|
|
878
|
-
|
|
1188
|
+
]
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"type": "divider"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"type": "form-section",
|
|
1195
|
+
"cancelEvent": "CANCEL",
|
|
1196
|
+
"mode": "edit",
|
|
1197
|
+
"showCancel": false,
|
|
1198
|
+
"fields": "@entity.currentFields",
|
|
1199
|
+
"showSubmit": false,
|
|
1200
|
+
"entity": "@entity",
|
|
1201
|
+
"submitEvent": "ADVANCE"
|
|
879
1202
|
}
|
|
880
|
-
]
|
|
1203
|
+
],
|
|
1204
|
+
"gap": "md",
|
|
1205
|
+
"type": "stack",
|
|
1206
|
+
"direction": "vertical"
|
|
881
1207
|
}
|
|
882
1208
|
],
|
|
883
|
-
"
|
|
884
|
-
"gap": "sm",
|
|
885
|
-
"type": "data-list",
|
|
886
|
-
"entity": "@entity.steps"
|
|
1209
|
+
"type": "card"
|
|
887
1210
|
},
|
|
888
1211
|
{
|
|
1212
|
+
"direction": "horizontal",
|
|
889
1213
|
"children": [
|
|
890
1214
|
{
|
|
891
|
-
"
|
|
892
|
-
"
|
|
893
|
-
"
|
|
1215
|
+
"icon": "chevron-left",
|
|
1216
|
+
"variant": "ghost",
|
|
1217
|
+
"action": "RETREAT",
|
|
1218
|
+
"type": "button",
|
|
1219
|
+
"label": "Back",
|
|
1220
|
+
"disabled": "@entity.isFirstStep"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"label": "Cancel wizard",
|
|
1224
|
+
"action": "CANCEL",
|
|
1225
|
+
"variant": "ghost",
|
|
1226
|
+
"icon": "x",
|
|
1227
|
+
"type": "button"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"variant": "primary",
|
|
1231
|
+
"icon": "@entity.primaryActionIcon",
|
|
1232
|
+
"type": "button",
|
|
1233
|
+
"label": "@entity.primaryActionLabel",
|
|
1234
|
+
"action": "ADVANCE"
|
|
894
1235
|
}
|
|
895
1236
|
],
|
|
896
|
-
"
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
"type": "button",
|
|
900
|
-
"label": "Restart",
|
|
901
|
-
"icon": "rotate-ccw",
|
|
902
|
-
"action": "RESTART",
|
|
903
|
-
"variant": "secondary"
|
|
1237
|
+
"align": "center",
|
|
1238
|
+
"type": "stack",
|
|
1239
|
+
"gap": "sm"
|
|
904
1240
|
}
|
|
905
|
-
]
|
|
1241
|
+
],
|
|
1242
|
+
"direction": "vertical",
|
|
1243
|
+
"gap": "lg",
|
|
1244
|
+
"type": "stack"
|
|
906
1245
|
}
|
|
907
1246
|
]
|
|
908
1247
|
]
|
|
@@ -921,43 +1260,37 @@
|
|
|
921
1260
|
"render-ui",
|
|
922
1261
|
"main",
|
|
923
1262
|
{
|
|
924
|
-
"
|
|
1263
|
+
"align": "center",
|
|
1264
|
+
"gap": "lg",
|
|
925
1265
|
"children": [
|
|
926
1266
|
{
|
|
927
|
-
"
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
"name": "x-circle"
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
"content": "Cancelled",
|
|
934
|
-
"variant": "h3",
|
|
935
|
-
"type": "typography"
|
|
936
|
-
}
|
|
937
|
-
],
|
|
938
|
-
"gap": "sm",
|
|
939
|
-
"type": "stack",
|
|
940
|
-
"direction": "horizontal",
|
|
941
|
-
"align": "center"
|
|
1267
|
+
"type": "icon",
|
|
1268
|
+
"size": "lg",
|
|
1269
|
+
"name": "x-circle"
|
|
942
1270
|
},
|
|
943
1271
|
{
|
|
944
|
-
"
|
|
1272
|
+
"content": "Cancelled",
|
|
1273
|
+
"variant": "h2",
|
|
1274
|
+
"align": "center",
|
|
1275
|
+
"type": "typography"
|
|
945
1276
|
},
|
|
946
1277
|
{
|
|
1278
|
+
"content": "The wizard was cancelled. No data was submitted.",
|
|
1279
|
+
"color": "muted",
|
|
1280
|
+
"align": "center",
|
|
947
1281
|
"type": "typography",
|
|
948
|
-
"variant": "body"
|
|
949
|
-
"content": "Wizard cancelled."
|
|
1282
|
+
"variant": "body"
|
|
950
1283
|
},
|
|
951
1284
|
{
|
|
952
|
-
"
|
|
953
|
-
"label": "Restart",
|
|
954
|
-
"type": "button",
|
|
1285
|
+
"action": "RESTART",
|
|
955
1286
|
"variant": "secondary",
|
|
956
|
-
"
|
|
1287
|
+
"icon": "rotate-ccw",
|
|
1288
|
+
"label": "Start a new wizard",
|
|
1289
|
+
"type": "button"
|
|
957
1290
|
}
|
|
958
1291
|
],
|
|
959
1292
|
"type": "stack",
|
|
960
|
-
"
|
|
1293
|
+
"direction": "vertical"
|
|
961
1294
|
}
|
|
962
1295
|
]
|
|
963
1296
|
]
|
|
@@ -972,6 +1305,21 @@
|
|
|
972
1305
|
"@entity.currentStepIndex",
|
|
973
1306
|
0.0
|
|
974
1307
|
],
|
|
1308
|
+
[
|
|
1309
|
+
"set",
|
|
1310
|
+
"@entity.completionMessage",
|
|
1311
|
+
""
|
|
1312
|
+
],
|
|
1313
|
+
[
|
|
1314
|
+
"fetch",
|
|
1315
|
+
"WizardView",
|
|
1316
|
+
{
|
|
1317
|
+
"emit": {
|
|
1318
|
+
"failure": "WizardLoadFailed",
|
|
1319
|
+
"success": "WizardLoaded"
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
],
|
|
975
1323
|
[
|
|
976
1324
|
"render-ui",
|
|
977
1325
|
"main",
|
|
@@ -992,6 +1340,21 @@
|
|
|
992
1340
|
"@entity.currentStepIndex",
|
|
993
1341
|
0.0
|
|
994
1342
|
],
|
|
1343
|
+
[
|
|
1344
|
+
"set",
|
|
1345
|
+
"@entity.cancelReason",
|
|
1346
|
+
""
|
|
1347
|
+
],
|
|
1348
|
+
[
|
|
1349
|
+
"fetch",
|
|
1350
|
+
"WizardView",
|
|
1351
|
+
{
|
|
1352
|
+
"emit": {
|
|
1353
|
+
"success": "WizardLoaded",
|
|
1354
|
+
"failure": "WizardLoadFailed"
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
995
1358
|
[
|
|
996
1359
|
"render-ui",
|
|
997
1360
|
"main",
|
|
@@ -1024,43 +1387,36 @@
|
|
|
1024
1387
|
"type": "[object]",
|
|
1025
1388
|
"default": [
|
|
1026
1389
|
{
|
|
1027
|
-
"description": "Basic information",
|
|
1028
|
-
"key": "details",
|
|
1029
1390
|
"fields": [
|
|
1030
1391
|
"title",
|
|
1031
1392
|
"description"
|
|
1032
1393
|
],
|
|
1033
|
-
"
|
|
1034
|
-
"
|
|
1394
|
+
"description": "Basic information",
|
|
1395
|
+
"key": "details",
|
|
1396
|
+
"label": "Details",
|
|
1397
|
+
"icon": "file-text"
|
|
1035
1398
|
},
|
|
1036
1399
|
{
|
|
1037
|
-
"
|
|
1038
|
-
"description": "Configure preferences",
|
|
1400
|
+
"key": "options",
|
|
1039
1401
|
"fields": [
|
|
1040
1402
|
"category",
|
|
1041
1403
|
"priority"
|
|
1042
1404
|
],
|
|
1043
1405
|
"label": "Options",
|
|
1044
|
-
"
|
|
1406
|
+
"description": "Configure preferences",
|
|
1407
|
+
"icon": "settings"
|
|
1045
1408
|
},
|
|
1046
1409
|
{
|
|
1047
1410
|
"key": "review",
|
|
1048
1411
|
"label": "Review",
|
|
1049
1412
|
"icon": "check-circle",
|
|
1050
|
-
"description": "Confirm and submit",
|
|
1051
1413
|
"fields": [
|
|
1052
1414
|
"notes"
|
|
1053
|
-
]
|
|
1415
|
+
],
|
|
1416
|
+
"description": "Confirm and submit"
|
|
1054
1417
|
}
|
|
1055
1418
|
]
|
|
1056
1419
|
},
|
|
1057
|
-
"currentFields": {
|
|
1058
|
-
"type": "[string]",
|
|
1059
|
-
"default": [
|
|
1060
|
-
"title",
|
|
1061
|
-
"description"
|
|
1062
|
-
]
|
|
1063
|
-
},
|
|
1064
1420
|
"title": {
|
|
1065
1421
|
"type": "string",
|
|
1066
1422
|
"default": "Wizard"
|