@almadar/std 14.29.2 → 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-recurrence",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "std-recurrence —
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "std-recurrence — recurring-rule definition + upcoming runs (Stripe Subscriptions / Cron Hub style). The viewing state shows a plain-English rule sentence and the next N dated runs as an agenda timeline. Per-run exception modal supports skip / reschedule. Topology = loading / defining_rule / viewing / awaiting_exception_decision / cancelled / error.",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "RecurrenceOrbital",
|
|
@@ -14,6 +14,21 @@
|
|
|
14
14
|
"type": "string",
|
|
15
15
|
"required": true
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
"name": "title",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"default": ""
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "notes",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"default": ""
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "date",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"default": ""
|
|
31
|
+
},
|
|
17
32
|
{
|
|
18
33
|
"name": "occurrences",
|
|
19
34
|
"type": "array",
|
|
@@ -21,31 +36,41 @@
|
|
|
21
36
|
"items": {
|
|
22
37
|
"type": "object",
|
|
23
38
|
"properties": {
|
|
24
|
-
"date": {
|
|
25
|
-
"name": "date",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
"notes": {
|
|
29
|
-
"name": "notes",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"label": {
|
|
33
|
-
"name": "label",
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"id": {
|
|
37
|
-
"name": "id",
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
39
|
"status": {
|
|
41
40
|
"name": "status",
|
|
42
41
|
"type": "string",
|
|
42
|
+
"values": [
|
|
43
|
+
"complete",
|
|
44
|
+
"active",
|
|
45
|
+
"pending",
|
|
46
|
+
"error"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"rawStatus": {
|
|
50
|
+
"name": "rawStatus",
|
|
51
|
+
"type": "string",
|
|
43
52
|
"values": [
|
|
44
53
|
"scheduled",
|
|
45
54
|
"skipped",
|
|
46
55
|
"completed",
|
|
47
56
|
"rescheduled"
|
|
48
57
|
]
|
|
58
|
+
},
|
|
59
|
+
"title": {
|
|
60
|
+
"name": "title",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"description": {
|
|
64
|
+
"name": "description",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"id": {
|
|
68
|
+
"name": "id",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"date": {
|
|
72
|
+
"name": "date",
|
|
73
|
+
"type": "string"
|
|
49
74
|
}
|
|
50
75
|
}
|
|
51
76
|
}
|
|
@@ -81,6 +106,11 @@
|
|
|
81
106
|
"type": "number",
|
|
82
107
|
"default": 0.0
|
|
83
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"name": "summaryText",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"default": ""
|
|
113
|
+
},
|
|
84
114
|
{
|
|
85
115
|
"name": "currentOccurrenceId",
|
|
86
116
|
"type": "string",
|
|
@@ -137,10 +167,6 @@
|
|
|
137
167
|
{
|
|
138
168
|
"event": "OPEN_EXCEPTION",
|
|
139
169
|
"payloadSchema": [
|
|
140
|
-
{
|
|
141
|
-
"name": "id",
|
|
142
|
-
"type": "string"
|
|
143
|
-
},
|
|
144
170
|
{
|
|
145
171
|
"name": "row",
|
|
146
172
|
"type": "object",
|
|
@@ -200,6 +226,28 @@
|
|
|
200
226
|
"type": "string"
|
|
201
227
|
}
|
|
202
228
|
]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"event": "RecurrenceSaved",
|
|
232
|
+
"payloadSchema": [
|
|
233
|
+
{
|
|
234
|
+
"name": "row",
|
|
235
|
+
"type": "object"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"event": "RecurrenceSaveFailed",
|
|
241
|
+
"payloadSchema": [
|
|
242
|
+
{
|
|
243
|
+
"name": "error",
|
|
244
|
+
"type": "string"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "code",
|
|
248
|
+
"type": "string"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
203
251
|
}
|
|
204
252
|
],
|
|
205
253
|
"stateMachine": {
|
|
@@ -209,7 +257,7 @@
|
|
|
209
257
|
"isInitial": true
|
|
210
258
|
},
|
|
211
259
|
{
|
|
212
|
-
"name": "
|
|
260
|
+
"name": "viewing"
|
|
213
261
|
},
|
|
214
262
|
{
|
|
215
263
|
"name": "defining_rule"
|
|
@@ -285,10 +333,6 @@
|
|
|
285
333
|
"key": "OPEN_EXCEPTION",
|
|
286
334
|
"name": "Open Exception",
|
|
287
335
|
"payloadSchema": [
|
|
288
|
-
{
|
|
289
|
-
"name": "id",
|
|
290
|
-
"type": "string"
|
|
291
|
-
},
|
|
292
336
|
{
|
|
293
337
|
"name": "row",
|
|
294
338
|
"type": "object",
|
|
@@ -358,8 +402,8 @@
|
|
|
358
402
|
"RecurrenceView",
|
|
359
403
|
{
|
|
360
404
|
"emit": {
|
|
361
|
-
"
|
|
362
|
-
"
|
|
405
|
+
"success": "RecurrenceLoaded",
|
|
406
|
+
"failure": "RecurrenceLoadFailed"
|
|
363
407
|
}
|
|
364
408
|
}
|
|
365
409
|
],
|
|
@@ -375,9 +419,74 @@
|
|
|
375
419
|
},
|
|
376
420
|
{
|
|
377
421
|
"from": "loading",
|
|
378
|
-
"to": "
|
|
422
|
+
"to": "viewing",
|
|
379
423
|
"event": "RecurrenceLoaded",
|
|
380
424
|
"effects": [
|
|
425
|
+
[
|
|
426
|
+
"set",
|
|
427
|
+
"@entity.frequency",
|
|
428
|
+
[
|
|
429
|
+
"object/get",
|
|
430
|
+
[
|
|
431
|
+
"array/first",
|
|
432
|
+
"@payload.data"
|
|
433
|
+
],
|
|
434
|
+
"frequency",
|
|
435
|
+
"weekly"
|
|
436
|
+
]
|
|
437
|
+
],
|
|
438
|
+
[
|
|
439
|
+
"set",
|
|
440
|
+
"@entity.interval",
|
|
441
|
+
[
|
|
442
|
+
"object/get",
|
|
443
|
+
[
|
|
444
|
+
"array/first",
|
|
445
|
+
"@payload.data"
|
|
446
|
+
],
|
|
447
|
+
"interval",
|
|
448
|
+
1.0
|
|
449
|
+
]
|
|
450
|
+
],
|
|
451
|
+
[
|
|
452
|
+
"set",
|
|
453
|
+
"@entity.startDate",
|
|
454
|
+
[
|
|
455
|
+
"object/get",
|
|
456
|
+
[
|
|
457
|
+
"array/first",
|
|
458
|
+
"@payload.data"
|
|
459
|
+
],
|
|
460
|
+
"startDate",
|
|
461
|
+
""
|
|
462
|
+
]
|
|
463
|
+
],
|
|
464
|
+
[
|
|
465
|
+
"set",
|
|
466
|
+
"@entity.endDate",
|
|
467
|
+
[
|
|
468
|
+
"object/get",
|
|
469
|
+
[
|
|
470
|
+
"array/first",
|
|
471
|
+
"@payload.data"
|
|
472
|
+
],
|
|
473
|
+
"endDate",
|
|
474
|
+
""
|
|
475
|
+
]
|
|
476
|
+
],
|
|
477
|
+
[
|
|
478
|
+
"set",
|
|
479
|
+
"@entity.endAfterCount",
|
|
480
|
+
[
|
|
481
|
+
"object/get",
|
|
482
|
+
[
|
|
483
|
+
"array/first",
|
|
484
|
+
"@payload.data"
|
|
485
|
+
],
|
|
486
|
+
"endAfterCount",
|
|
487
|
+
0.0
|
|
488
|
+
]
|
|
489
|
+
],
|
|
381
490
|
[
|
|
382
491
|
"set",
|
|
383
492
|
"@entity.occurrences",
|
|
@@ -388,31 +497,32 @@
|
|
|
388
497
|
"fn",
|
|
389
498
|
"row",
|
|
390
499
|
{
|
|
391
|
-
"
|
|
500
|
+
"rawStatus": "scheduled",
|
|
501
|
+
"date": [
|
|
392
502
|
"object/get",
|
|
393
503
|
"@row",
|
|
394
|
-
"
|
|
504
|
+
"date",
|
|
395
505
|
""
|
|
396
506
|
],
|
|
397
|
-
"status": "scheduled",
|
|
398
507
|
"id": [
|
|
399
508
|
"object/get",
|
|
400
509
|
"@row",
|
|
401
510
|
"id",
|
|
402
511
|
""
|
|
403
512
|
],
|
|
404
|
-
"
|
|
513
|
+
"title": [
|
|
405
514
|
"object/get",
|
|
406
515
|
"@row",
|
|
407
|
-
"
|
|
408
|
-
""
|
|
516
|
+
"title",
|
|
517
|
+
"Occurrence"
|
|
409
518
|
],
|
|
410
|
-
"
|
|
519
|
+
"description": [
|
|
411
520
|
"object/get",
|
|
412
521
|
"@row",
|
|
413
|
-
"
|
|
522
|
+
"notes",
|
|
414
523
|
""
|
|
415
|
-
]
|
|
524
|
+
],
|
|
525
|
+
"status": "active"
|
|
416
526
|
}
|
|
417
527
|
]
|
|
418
528
|
]
|
|
@@ -421,114 +531,144 @@
|
|
|
421
531
|
"render-ui",
|
|
422
532
|
"main",
|
|
423
533
|
{
|
|
424
|
-
"gap": "
|
|
534
|
+
"gap": "lg",
|
|
535
|
+
"type": "stack",
|
|
425
536
|
"direction": "vertical",
|
|
426
537
|
"children": [
|
|
427
538
|
{
|
|
428
|
-
"type": "stack",
|
|
429
|
-
"align": "center",
|
|
430
|
-
"direction": "horizontal",
|
|
431
|
-
"gap": "sm",
|
|
432
539
|
"children": [
|
|
433
540
|
{
|
|
434
|
-
"
|
|
435
|
-
"
|
|
541
|
+
"name": "repeat",
|
|
542
|
+
"type": "icon"
|
|
436
543
|
},
|
|
437
544
|
{
|
|
545
|
+
"type": "typography",
|
|
438
546
|
"content": "@config.title",
|
|
439
|
-
"variant": "h3"
|
|
440
|
-
|
|
547
|
+
"variant": "h3"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"variant": "success",
|
|
551
|
+
"label": "Active",
|
|
552
|
+
"type": "badge"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"action": "EDIT_RULE",
|
|
556
|
+
"icon": "settings",
|
|
557
|
+
"variant": "primary",
|
|
558
|
+
"type": "button",
|
|
559
|
+
"label": "Edit rule"
|
|
441
560
|
}
|
|
442
|
-
]
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
"type": "
|
|
561
|
+
],
|
|
562
|
+
"direction": "horizontal",
|
|
563
|
+
"align": "center",
|
|
564
|
+
"type": "stack",
|
|
565
|
+
"gap": "sm"
|
|
446
566
|
},
|
|
447
567
|
{
|
|
448
|
-
"
|
|
449
|
-
"
|
|
450
|
-
"fields": [],
|
|
451
|
-
"type": "data-list",
|
|
452
|
-
"renderItem": [
|
|
453
|
-
"fn",
|
|
454
|
-
"occ",
|
|
568
|
+
"type": "card",
|
|
569
|
+
"children": [
|
|
455
570
|
{
|
|
456
|
-
"
|
|
571
|
+
"direction": "vertical",
|
|
457
572
|
"children": [
|
|
458
573
|
{
|
|
574
|
+
"direction": "horizontal",
|
|
459
575
|
"align": "center",
|
|
460
576
|
"children": [
|
|
461
577
|
{
|
|
462
|
-
"
|
|
463
|
-
"type": "
|
|
578
|
+
"color": "muted",
|
|
579
|
+
"type": "typography",
|
|
580
|
+
"content": "Repeats every"
|
|
464
581
|
},
|
|
465
582
|
{
|
|
466
|
-
"
|
|
467
|
-
"
|
|
468
|
-
"
|
|
469
|
-
{
|
|
470
|
-
"type": "typography",
|
|
471
|
-
"content": "@occ.label",
|
|
472
|
-
"variant": "h4"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"variant": "caption",
|
|
476
|
-
"type": "typography",
|
|
477
|
-
"color": "muted",
|
|
478
|
-
"content": "@occ.date"
|
|
479
|
-
}
|
|
480
|
-
],
|
|
481
|
-
"gap": "xs"
|
|
583
|
+
"content": "@entity.interval",
|
|
584
|
+
"weight": "bold",
|
|
585
|
+
"type": "typography"
|
|
482
586
|
},
|
|
483
587
|
{
|
|
484
|
-
"
|
|
485
|
-
"
|
|
486
|
-
"type": "
|
|
588
|
+
"weight": "bold",
|
|
589
|
+
"content": "@entity.frequency",
|
|
590
|
+
"type": "typography"
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
"type": "stack",
|
|
594
|
+
"gap": "xs"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"children": [
|
|
598
|
+
{
|
|
599
|
+
"content": "Starts",
|
|
600
|
+
"color": "muted",
|
|
601
|
+
"type": "typography"
|
|
487
602
|
},
|
|
488
603
|
{
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
"type": "
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
604
|
+
"content": "@entity.startDate",
|
|
605
|
+
"weight": "bold",
|
|
606
|
+
"type": "typography"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"color": "muted",
|
|
610
|
+
"content": "·",
|
|
611
|
+
"type": "typography"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"type": "typography",
|
|
615
|
+
"content": "Ends",
|
|
616
|
+
"color": "muted"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"weight": "bold",
|
|
620
|
+
"type": "typography",
|
|
621
|
+
"content": "@entity.endDate"
|
|
498
622
|
}
|
|
499
623
|
],
|
|
500
624
|
"direction": "horizontal",
|
|
501
|
-
"
|
|
502
|
-
"gap": "
|
|
625
|
+
"align": "center",
|
|
626
|
+
"gap": "xs",
|
|
627
|
+
"type": "stack"
|
|
503
628
|
}
|
|
504
|
-
]
|
|
629
|
+
],
|
|
630
|
+
"type": "stack",
|
|
631
|
+
"gap": "xs"
|
|
632
|
+
}
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"content": "Next runs",
|
|
637
|
+
"variant": "h4",
|
|
638
|
+
"type": "typography"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"type": "timeline",
|
|
642
|
+
"entity": "@entity.occurrences",
|
|
643
|
+
"fields": [
|
|
644
|
+
"title",
|
|
645
|
+
"description",
|
|
646
|
+
"date",
|
|
647
|
+
"status"
|
|
648
|
+
],
|
|
649
|
+
"itemActions": [
|
|
650
|
+
{
|
|
651
|
+
"event": "OPEN_EXCEPTION",
|
|
652
|
+
"label": "Manage"
|
|
505
653
|
}
|
|
506
654
|
]
|
|
507
655
|
},
|
|
508
656
|
{
|
|
657
|
+
"direction": "horizontal",
|
|
509
658
|
"gap": "sm",
|
|
510
659
|
"type": "stack",
|
|
660
|
+
"align": "center",
|
|
511
661
|
"children": [
|
|
512
662
|
{
|
|
513
|
-
"type": "button",
|
|
514
|
-
"label": "Edit Rule",
|
|
515
|
-
"variant": "secondary",
|
|
516
|
-
"icon": "settings",
|
|
517
|
-
"action": "EDIT_RULE"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"type": "button",
|
|
521
|
-
"label": "End Schedule",
|
|
522
|
-
"action": "CANCEL_SCHEDULE",
|
|
523
663
|
"variant": "danger",
|
|
524
|
-
"
|
|
664
|
+
"action": "CANCEL_SCHEDULE",
|
|
665
|
+
"label": "End schedule",
|
|
666
|
+
"icon": "x-circle",
|
|
667
|
+
"type": "button"
|
|
525
668
|
}
|
|
526
|
-
]
|
|
527
|
-
"direction": "horizontal",
|
|
528
|
-
"align": "center"
|
|
669
|
+
]
|
|
529
670
|
}
|
|
530
|
-
]
|
|
531
|
-
"type": "stack"
|
|
671
|
+
]
|
|
532
672
|
}
|
|
533
673
|
]
|
|
534
674
|
]
|
|
@@ -556,15 +696,25 @@
|
|
|
556
696
|
},
|
|
557
697
|
{
|
|
558
698
|
"from": "loading",
|
|
559
|
-
"to": "
|
|
699
|
+
"to": "loading",
|
|
560
700
|
"event": "RecurrenceSaved",
|
|
561
701
|
"effects": [
|
|
702
|
+
[
|
|
703
|
+
"fetch",
|
|
704
|
+
"RecurrenceView",
|
|
705
|
+
{
|
|
706
|
+
"emit": {
|
|
707
|
+
"success": "RecurrenceLoaded",
|
|
708
|
+
"failure": "RecurrenceLoadFailed"
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
],
|
|
562
712
|
[
|
|
563
713
|
"render-ui",
|
|
564
714
|
"main",
|
|
565
715
|
{
|
|
566
|
-
"
|
|
567
|
-
"
|
|
716
|
+
"title": "Refreshing…",
|
|
717
|
+
"type": "loading-state"
|
|
568
718
|
}
|
|
569
719
|
]
|
|
570
720
|
]
|
|
@@ -583,15 +733,15 @@
|
|
|
583
733
|
"render-ui",
|
|
584
734
|
"main",
|
|
585
735
|
{
|
|
586
|
-
"type": "error-state",
|
|
587
736
|
"title": "Save failed",
|
|
588
|
-
"message": "@entity.errorMessage"
|
|
737
|
+
"message": "@entity.errorMessage",
|
|
738
|
+
"type": "error-state"
|
|
589
739
|
}
|
|
590
740
|
]
|
|
591
741
|
]
|
|
592
742
|
},
|
|
593
743
|
{
|
|
594
|
-
"from": "
|
|
744
|
+
"from": "viewing",
|
|
595
745
|
"to": "defining_rule",
|
|
596
746
|
"event": "EDIT_RULE",
|
|
597
747
|
"effects": [
|
|
@@ -599,44 +749,46 @@
|
|
|
599
749
|
"render-ui",
|
|
600
750
|
"main",
|
|
601
751
|
{
|
|
602
|
-
"gap": "md",
|
|
603
752
|
"children": [
|
|
604
753
|
{
|
|
605
|
-
"
|
|
754
|
+
"gap": "sm",
|
|
606
755
|
"children": [
|
|
607
756
|
{
|
|
608
|
-
"
|
|
609
|
-
"label": "Back",
|
|
610
|
-
"variant": "ghost",
|
|
757
|
+
"type": "button",
|
|
611
758
|
"action": "CANCEL_RULE",
|
|
612
|
-
"
|
|
759
|
+
"variant": "ghost",
|
|
760
|
+
"icon": "arrow-left",
|
|
761
|
+
"label": "Back"
|
|
613
762
|
},
|
|
614
763
|
{
|
|
615
|
-
"
|
|
616
|
-
"
|
|
764
|
+
"type": "icon",
|
|
765
|
+
"name": "settings"
|
|
617
766
|
},
|
|
618
767
|
{
|
|
619
|
-
"
|
|
620
|
-
"
|
|
621
|
-
"
|
|
768
|
+
"content": "Edit recurrence rule",
|
|
769
|
+
"variant": "h3",
|
|
770
|
+
"type": "typography"
|
|
622
771
|
}
|
|
623
772
|
],
|
|
624
773
|
"direction": "horizontal",
|
|
625
|
-
"
|
|
626
|
-
"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"type": "divider"
|
|
774
|
+
"align": "center",
|
|
775
|
+
"type": "stack"
|
|
630
776
|
},
|
|
631
777
|
{
|
|
632
|
-
"
|
|
633
|
-
"
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
778
|
+
"type": "card",
|
|
779
|
+
"children": [
|
|
780
|
+
{
|
|
781
|
+
"type": "form-section",
|
|
782
|
+
"entity": "@entity",
|
|
783
|
+
"cancelEvent": "CANCEL_RULE",
|
|
784
|
+
"fields": "@config.formFields",
|
|
785
|
+
"submitEvent": "SAVE_RULE",
|
|
786
|
+
"mode": "edit"
|
|
787
|
+
}
|
|
788
|
+
]
|
|
638
789
|
}
|
|
639
790
|
],
|
|
791
|
+
"gap": "md",
|
|
640
792
|
"type": "stack",
|
|
641
793
|
"direction": "vertical"
|
|
642
794
|
}
|
|
@@ -644,14 +796,14 @@
|
|
|
644
796
|
]
|
|
645
797
|
},
|
|
646
798
|
{
|
|
647
|
-
"from": "
|
|
799
|
+
"from": "viewing",
|
|
648
800
|
"to": "awaiting_exception_decision",
|
|
649
801
|
"event": "OPEN_EXCEPTION",
|
|
650
802
|
"effects": [
|
|
651
803
|
[
|
|
652
804
|
"set",
|
|
653
805
|
"@entity.currentOccurrenceId",
|
|
654
|
-
"@payload.id"
|
|
806
|
+
"@payload.row.id"
|
|
655
807
|
],
|
|
656
808
|
[
|
|
657
809
|
"set",
|
|
@@ -661,83 +813,97 @@
|
|
|
661
813
|
[
|
|
662
814
|
"set",
|
|
663
815
|
"@entity.currentOccurrenceLabel",
|
|
664
|
-
"@payload.row.
|
|
816
|
+
"@payload.row.title"
|
|
665
817
|
],
|
|
666
818
|
[
|
|
667
819
|
"render-ui",
|
|
668
820
|
"main",
|
|
669
821
|
{
|
|
670
822
|
"gap": "md",
|
|
823
|
+
"type": "stack",
|
|
824
|
+
"direction": "vertical",
|
|
671
825
|
"children": [
|
|
672
826
|
{
|
|
673
827
|
"align": "center",
|
|
674
828
|
"children": [
|
|
675
829
|
{
|
|
676
|
-
"icon": "arrow-left",
|
|
677
830
|
"variant": "ghost",
|
|
831
|
+
"icon": "arrow-left",
|
|
832
|
+
"type": "button",
|
|
678
833
|
"label": "Back",
|
|
679
|
-
"action": "CLOSE_EXCEPTION"
|
|
680
|
-
"type": "button"
|
|
834
|
+
"action": "CLOSE_EXCEPTION"
|
|
681
835
|
},
|
|
682
836
|
{
|
|
683
|
-
"
|
|
684
|
-
"
|
|
837
|
+
"name": "calendar-clock",
|
|
838
|
+
"type": "icon"
|
|
685
839
|
},
|
|
686
840
|
{
|
|
687
|
-
"type": "typography",
|
|
688
841
|
"variant": "h3",
|
|
842
|
+
"type": "typography",
|
|
689
843
|
"content": "@entity.currentOccurrenceLabel"
|
|
690
844
|
},
|
|
691
845
|
{
|
|
692
|
-
"
|
|
846
|
+
"variant": "primary",
|
|
693
847
|
"label": "@entity.currentOccurrenceDate",
|
|
694
|
-
"
|
|
848
|
+
"type": "badge"
|
|
695
849
|
}
|
|
696
850
|
],
|
|
697
|
-
"type": "stack",
|
|
698
851
|
"direction": "horizontal",
|
|
852
|
+
"type": "stack",
|
|
699
853
|
"gap": "sm"
|
|
700
854
|
},
|
|
701
855
|
{
|
|
702
|
-
"type": "divider"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
"type": "stack",
|
|
706
|
-
"direction": "horizontal",
|
|
707
856
|
"children": [
|
|
708
857
|
{
|
|
709
|
-
"
|
|
710
|
-
"
|
|
711
|
-
"
|
|
712
|
-
"
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
858
|
+
"direction": "vertical",
|
|
859
|
+
"gap": "sm",
|
|
860
|
+
"type": "stack",
|
|
861
|
+
"children": [
|
|
862
|
+
{
|
|
863
|
+
"content": "What would you like to do with this occurrence?",
|
|
864
|
+
"variant": "body",
|
|
865
|
+
"type": "typography"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"children": [
|
|
869
|
+
{
|
|
870
|
+
"actionPayload": {
|
|
871
|
+
"id": "@entity.currentOccurrenceId"
|
|
872
|
+
},
|
|
873
|
+
"variant": "secondary",
|
|
874
|
+
"icon": "skip-forward",
|
|
875
|
+
"type": "button",
|
|
876
|
+
"action": "SKIP_OCCURRENCE",
|
|
877
|
+
"label": "Skip"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"actionPayload": {
|
|
881
|
+
"id": "@entity.currentOccurrenceId"
|
|
882
|
+
},
|
|
883
|
+
"variant": "primary",
|
|
884
|
+
"label": "Reschedule",
|
|
885
|
+
"action": "RESCHEDULE_OCCURRENCE",
|
|
886
|
+
"icon": "calendar-clock",
|
|
887
|
+
"type": "button"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"type": "stack",
|
|
891
|
+
"gap": "sm",
|
|
892
|
+
"direction": "horizontal",
|
|
893
|
+
"align": "center"
|
|
894
|
+
}
|
|
895
|
+
]
|
|
727
896
|
}
|
|
728
897
|
],
|
|
729
|
-
"
|
|
730
|
-
"gap": "sm"
|
|
898
|
+
"type": "card"
|
|
731
899
|
}
|
|
732
|
-
]
|
|
733
|
-
"type": "stack",
|
|
734
|
-
"direction": "vertical"
|
|
900
|
+
]
|
|
735
901
|
}
|
|
736
902
|
]
|
|
737
903
|
]
|
|
738
904
|
},
|
|
739
905
|
{
|
|
740
|
-
"from": "
|
|
906
|
+
"from": "viewing",
|
|
741
907
|
"to": "cancelled",
|
|
742
908
|
"event": "CANCEL_SCHEDULE",
|
|
743
909
|
"effects": [
|
|
@@ -745,43 +911,37 @@
|
|
|
745
911
|
"render-ui",
|
|
746
912
|
"main",
|
|
747
913
|
{
|
|
748
|
-
"
|
|
914
|
+
"type": "stack",
|
|
915
|
+
"direction": "vertical",
|
|
916
|
+
"gap": "lg",
|
|
917
|
+
"align": "center",
|
|
749
918
|
"children": [
|
|
750
919
|
{
|
|
751
|
-
"
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
"type": "icon"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"type": "typography",
|
|
758
|
-
"content": "Schedule Ended",
|
|
759
|
-
"variant": "h3"
|
|
760
|
-
}
|
|
761
|
-
],
|
|
762
|
-
"direction": "horizontal",
|
|
763
|
-
"type": "stack",
|
|
764
|
-
"gap": "sm",
|
|
765
|
-
"align": "center"
|
|
920
|
+
"size": "lg",
|
|
921
|
+
"name": "x-circle",
|
|
922
|
+
"type": "icon"
|
|
766
923
|
},
|
|
767
924
|
{
|
|
768
|
-
"
|
|
925
|
+
"variant": "h2",
|
|
926
|
+
"type": "typography",
|
|
927
|
+
"content": "Schedule ended",
|
|
928
|
+
"align": "center"
|
|
769
929
|
},
|
|
770
930
|
{
|
|
931
|
+
"align": "center",
|
|
771
932
|
"type": "typography",
|
|
772
|
-
"
|
|
773
|
-
"
|
|
933
|
+
"content": "This recurring schedule has been cancelled. No further occurrences will fire.",
|
|
934
|
+
"color": "muted",
|
|
935
|
+
"variant": "body"
|
|
774
936
|
},
|
|
775
937
|
{
|
|
776
938
|
"action": "RESTART",
|
|
777
|
-
"label": "Restart",
|
|
778
939
|
"type": "button",
|
|
940
|
+
"label": "Start a new schedule",
|
|
779
941
|
"variant": "secondary",
|
|
780
942
|
"icon": "rotate-ccw"
|
|
781
943
|
}
|
|
782
|
-
]
|
|
783
|
-
"direction": "vertical",
|
|
784
|
-
"type": "stack"
|
|
944
|
+
]
|
|
785
945
|
}
|
|
786
946
|
]
|
|
787
947
|
]
|
|
@@ -791,6 +951,18 @@
|
|
|
791
951
|
"to": "loading",
|
|
792
952
|
"event": "SAVE_RULE",
|
|
793
953
|
"effects": [
|
|
954
|
+
[
|
|
955
|
+
"persist",
|
|
956
|
+
"update",
|
|
957
|
+
"RecurrenceView",
|
|
958
|
+
"@payload.data",
|
|
959
|
+
{
|
|
960
|
+
"emit": {
|
|
961
|
+
"failure": "RecurrenceSaveFailed",
|
|
962
|
+
"success": "RecurrenceSaved"
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
],
|
|
794
966
|
[
|
|
795
967
|
"render-ui",
|
|
796
968
|
"main",
|
|
@@ -803,14 +975,24 @@
|
|
|
803
975
|
},
|
|
804
976
|
{
|
|
805
977
|
"from": "defining_rule",
|
|
806
|
-
"to": "
|
|
978
|
+
"to": "loading",
|
|
807
979
|
"event": "CANCEL_RULE",
|
|
808
980
|
"effects": [
|
|
981
|
+
[
|
|
982
|
+
"fetch",
|
|
983
|
+
"RecurrenceView",
|
|
984
|
+
{
|
|
985
|
+
"emit": {
|
|
986
|
+
"failure": "RecurrenceLoadFailed",
|
|
987
|
+
"success": "RecurrenceLoaded"
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
],
|
|
809
991
|
[
|
|
810
992
|
"render-ui",
|
|
811
993
|
"main",
|
|
812
994
|
{
|
|
813
|
-
"title": "Cancelling
|
|
995
|
+
"title": "Cancelling…",
|
|
814
996
|
"type": "loading-state"
|
|
815
997
|
}
|
|
816
998
|
]
|
|
@@ -821,12 +1003,27 @@
|
|
|
821
1003
|
"to": "loading",
|
|
822
1004
|
"event": "SKIP_OCCURRENCE",
|
|
823
1005
|
"effects": [
|
|
1006
|
+
[
|
|
1007
|
+
"persist",
|
|
1008
|
+
"update",
|
|
1009
|
+
"RecurrenceView",
|
|
1010
|
+
{
|
|
1011
|
+
"status": "skipped",
|
|
1012
|
+
"id": "@payload.id"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"emit": {
|
|
1016
|
+
"failure": "RecurrenceSaveFailed",
|
|
1017
|
+
"success": "RecurrenceSaved"
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
824
1021
|
[
|
|
825
1022
|
"render-ui",
|
|
826
1023
|
"main",
|
|
827
1024
|
{
|
|
828
|
-
"
|
|
829
|
-
"
|
|
1025
|
+
"title": "Skipping…",
|
|
1026
|
+
"type": "loading-state"
|
|
830
1027
|
}
|
|
831
1028
|
]
|
|
832
1029
|
]
|
|
@@ -841,6 +1038,22 @@
|
|
|
841
1038
|
"@entity.rescheduleDate",
|
|
842
1039
|
"@payload.newDate"
|
|
843
1040
|
],
|
|
1041
|
+
[
|
|
1042
|
+
"persist",
|
|
1043
|
+
"update",
|
|
1044
|
+
"RecurrenceView",
|
|
1045
|
+
{
|
|
1046
|
+
"id": "@payload.id",
|
|
1047
|
+
"status": "rescheduled",
|
|
1048
|
+
"date": "@payload.newDate"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"emit": {
|
|
1052
|
+
"failure": "RecurrenceSaveFailed",
|
|
1053
|
+
"success": "RecurrenceSaved"
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
],
|
|
844
1057
|
[
|
|
845
1058
|
"render-ui",
|
|
846
1059
|
"main",
|
|
@@ -853,15 +1066,25 @@
|
|
|
853
1066
|
},
|
|
854
1067
|
{
|
|
855
1068
|
"from": "awaiting_exception_decision",
|
|
856
|
-
"to": "
|
|
1069
|
+
"to": "loading",
|
|
857
1070
|
"event": "CLOSE_EXCEPTION",
|
|
858
1071
|
"effects": [
|
|
1072
|
+
[
|
|
1073
|
+
"fetch",
|
|
1074
|
+
"RecurrenceView",
|
|
1075
|
+
{
|
|
1076
|
+
"emit": {
|
|
1077
|
+
"success": "RecurrenceLoaded",
|
|
1078
|
+
"failure": "RecurrenceLoadFailed"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
],
|
|
859
1082
|
[
|
|
860
1083
|
"render-ui",
|
|
861
1084
|
"main",
|
|
862
1085
|
{
|
|
863
|
-
"
|
|
864
|
-
"
|
|
1086
|
+
"type": "loading-state",
|
|
1087
|
+
"title": "Closing…"
|
|
865
1088
|
}
|
|
866
1089
|
]
|
|
867
1090
|
]
|
|
@@ -871,12 +1094,22 @@
|
|
|
871
1094
|
"to": "loading",
|
|
872
1095
|
"event": "RESTART",
|
|
873
1096
|
"effects": [
|
|
1097
|
+
[
|
|
1098
|
+
"fetch",
|
|
1099
|
+
"RecurrenceView",
|
|
1100
|
+
{
|
|
1101
|
+
"emit": {
|
|
1102
|
+
"success": "RecurrenceLoaded",
|
|
1103
|
+
"failure": "RecurrenceLoadFailed"
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
],
|
|
874
1107
|
[
|
|
875
1108
|
"render-ui",
|
|
876
1109
|
"main",
|
|
877
1110
|
{
|
|
878
|
-
"
|
|
879
|
-
"
|
|
1111
|
+
"title": "Restarting…",
|
|
1112
|
+
"type": "loading-state"
|
|
880
1113
|
}
|
|
881
1114
|
]
|
|
882
1115
|
]
|
|
@@ -890,8 +1123,8 @@
|
|
|
890
1123
|
"render-ui",
|
|
891
1124
|
"main",
|
|
892
1125
|
{
|
|
893
|
-
"
|
|
894
|
-
"
|
|
1126
|
+
"type": "loading-state",
|
|
1127
|
+
"title": "Retrying…"
|
|
895
1128
|
}
|
|
896
1129
|
]
|
|
897
1130
|
]
|
|
@@ -901,7 +1134,7 @@
|
|
|
901
1134
|
"config": {
|
|
902
1135
|
"title": {
|
|
903
1136
|
"type": "string",
|
|
904
|
-
"default": "
|
|
1137
|
+
"default": "Schedule"
|
|
905
1138
|
},
|
|
906
1139
|
"formFields": {
|
|
907
1140
|
"type": "[string]",
|
|
@@ -912,10 +1145,6 @@
|
|
|
912
1145
|
"endDate",
|
|
913
1146
|
"endAfterCount"
|
|
914
1147
|
]
|
|
915
|
-
},
|
|
916
|
-
"itemLabelField": {
|
|
917
|
-
"type": "string",
|
|
918
|
-
"default": "label"
|
|
919
1148
|
}
|
|
920
1149
|
},
|
|
921
1150
|
"scope": "instance"
|