@almadar/std 14.29.4 → 14.30.0

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.
@@ -17,7 +17,7 @@
17
17
  {
18
18
  "name": "title",
19
19
  "type": "string",
20
- "default": ""
20
+ "required": true
21
21
  },
22
22
  {
23
23
  "name": "description",
@@ -27,12 +27,26 @@
27
27
  {
28
28
  "name": "category",
29
29
  "type": "string",
30
- "default": ""
30
+ "default": "",
31
+ "values": [
32
+ "marketing",
33
+ "engineering",
34
+ "design",
35
+ "operations",
36
+ ""
37
+ ]
31
38
  },
32
39
  {
33
40
  "name": "priority",
34
41
  "type": "string",
35
- "default": ""
42
+ "default": "",
43
+ "values": [
44
+ "low",
45
+ "medium",
46
+ "high",
47
+ "urgent",
48
+ ""
49
+ ]
36
50
  },
37
51
  {
38
52
  "name": "notes",
@@ -46,16 +60,16 @@
46
60
  "items": {
47
61
  "type": "object",
48
62
  "properties": {
49
- "title": {
50
- "name": "title",
63
+ "description": {
64
+ "name": "description",
51
65
  "type": "string"
52
66
  },
53
67
  "id": {
54
68
  "name": "id",
55
69
  "type": "string"
56
70
  },
57
- "description": {
58
- "name": "description",
71
+ "title": {
72
+ "name": "title",
59
73
  "type": "string"
60
74
  }
61
75
  }
@@ -327,8 +341,8 @@
327
341
  "render-ui",
328
342
  "main",
329
343
  {
330
- "title": "Loading wizard…",
331
- "type": "loading-state"
344
+ "type": "loading-state",
345
+ "title": "Loading wizard…"
332
346
  }
333
347
  ]
334
348
  ]
@@ -361,21 +375,21 @@
361
375
  "fn",
362
376
  "step",
363
377
  {
364
- "id": [
378
+ "description": [
365
379
  "object/get",
366
380
  "@step",
367
- "key"
381
+ "description",
382
+ ""
368
383
  ],
369
384
  "title": [
370
385
  "object/get",
371
386
  "@step",
372
387
  "label"
373
388
  ],
374
- "description": [
389
+ "id": [
375
390
  "object/get",
376
391
  "@step",
377
- "description",
378
- ""
392
+ "key"
379
393
  ]
380
394
  }
381
395
  ]
@@ -493,6 +507,7 @@
493
507
  {
494
508
  "type": "stack",
495
509
  "direction": "vertical",
510
+ "gap": "lg",
496
511
  "children": [
497
512
  {
498
513
  "children": [
@@ -501,35 +516,42 @@
501
516
  "type": "icon"
502
517
  },
503
518
  {
519
+ "variant": "h3",
504
520
  "content": "@config.title",
505
- "type": "typography",
506
- "variant": "h3"
521
+ "type": "typography"
507
522
  }
508
523
  ],
509
- "direction": "horizontal",
510
- "align": "center",
511
524
  "type": "stack",
512
- "gap": "sm"
525
+ "gap": "sm",
526
+ "direction": "horizontal",
527
+ "align": "center"
513
528
  },
514
529
  {
515
530
  "allowNavigation": false,
531
+ "steps": "@entity.wizardSteps",
516
532
  "currentStep": "@entity.currentStepIndex",
517
- "type": "wizard-progress",
518
- "steps": "@entity.wizardSteps"
533
+ "type": "wizard-progress"
519
534
  },
520
535
  {
521
536
  "type": "card",
522
537
  "children": [
523
538
  {
539
+ "type": "stack",
540
+ "gap": "md",
541
+ "direction": "vertical",
524
542
  "children": [
525
543
  {
544
+ "align": "center",
545
+ "direction": "horizontal",
526
546
  "children": [
527
547
  {
528
- "type": "icon",
529
548
  "size": "lg",
549
+ "type": "icon",
530
550
  "name": "@entity.currentStepIcon"
531
551
  },
532
552
  {
553
+ "type": "stack",
554
+ "gap": "xs",
533
555
  "children": [
534
556
  {
535
557
  "type": "typography",
@@ -537,74 +559,66 @@
537
559
  "variant": "h2"
538
560
  },
539
561
  {
540
- "color": "muted",
562
+ "variant": "body",
541
563
  "type": "typography",
542
- "content": "@entity.currentStepDescription",
543
- "variant": "body"
564
+ "color": "muted",
565
+ "content": "@entity.currentStepDescription"
544
566
  }
545
567
  ],
546
- "direction": "vertical",
547
- "type": "stack",
548
- "gap": "xs"
568
+ "direction": "vertical"
549
569
  }
550
570
  ],
551
- "direction": "horizontal",
552
- "gap": "sm",
553
- "align": "center",
554
- "type": "stack"
571
+ "type": "stack",
572
+ "gap": "sm"
555
573
  },
556
574
  {
557
575
  "type": "divider"
558
576
  },
559
577
  {
560
- "mode": "edit",
561
- "entity": "@entity",
562
578
  "submitEvent": "ADVANCE",
579
+ "mode": "edit",
580
+ "cancelEvent": "CANCEL",
581
+ "showCancel": false,
563
582
  "fields": "@entity.currentFields",
583
+ "entity": "@entity",
564
584
  "showSubmit": false,
565
- "cancelEvent": "CANCEL",
566
- "type": "form-section",
567
- "showCancel": false
585
+ "type": "form-section"
568
586
  }
569
- ],
570
- "gap": "md",
571
- "type": "stack",
572
- "direction": "vertical"
587
+ ]
573
588
  }
574
589
  ]
575
590
  },
576
591
  {
577
- "type": "stack",
578
- "align": "center",
592
+ "direction": "horizontal",
579
593
  "children": [
580
594
  {
595
+ "action": "RETREAT",
581
596
  "icon": "chevron-left",
582
- "type": "button",
583
- "label": "Back",
584
597
  "disabled": "@entity.isFirstStep",
585
- "variant": "ghost",
586
- "action": "RETREAT"
598
+ "label": "Back",
599
+ "type": "button",
600
+ "variant": "ghost"
587
601
  },
588
602
  {
603
+ "action": "CANCEL",
589
604
  "variant": "ghost",
605
+ "type": "button",
590
606
  "label": "Cancel wizard",
591
- "action": "CANCEL",
592
- "icon": "x",
593
- "type": "button"
607
+ "icon": "x"
594
608
  },
595
609
  {
596
- "icon": "@entity.primaryActionIcon",
597
- "type": "button",
598
- "variant": "primary",
610
+ "action": "ADVANCE",
599
611
  "label": "@entity.primaryActionLabel",
600
- "action": "ADVANCE"
612
+ "variant": "primary",
613
+ "icon": "@entity.primaryActionIcon",
614
+ "type": "button"
601
615
  }
602
616
  ],
603
617
  "gap": "sm",
604
- "direction": "horizontal"
618
+ "type": "stack",
619
+ "align": "center"
605
620
  }
606
- ],
607
- "gap": "lg"
621
+ ]
608
622
  }
609
623
  ]
610
624
  ]
@@ -623,9 +637,9 @@
623
637
  "render-ui",
624
638
  "main",
625
639
  {
640
+ "type": "error-state",
626
641
  "title": "Failed to load",
627
- "message": "@entity.errorMessage",
628
- "type": "error-state"
642
+ "message": "@entity.errorMessage"
629
643
  }
630
644
  ]
631
645
  ]
@@ -640,8 +654,8 @@
640
654
  "WizardView",
641
655
  {
642
656
  "emit": {
643
- "failure": "WizardLoadFailed",
644
- "success": "WizardLoaded"
657
+ "success": "WizardLoaded",
658
+ "failure": "WizardLoadFailed"
645
659
  }
646
660
  }
647
661
  ],
@@ -649,8 +663,8 @@
649
663
  "render-ui",
650
664
  "main",
651
665
  {
652
- "type": "loading-state",
653
- "title": "Refreshing…"
666
+ "title": "Refreshing…",
667
+ "type": "loading-state"
654
668
  }
655
669
  ]
656
670
  ]
@@ -670,8 +684,8 @@
670
684
  "main",
671
685
  {
672
686
  "message": "@entity.errorMessage",
673
- "type": "error-state",
674
- "title": "Save failed"
687
+ "title": "Save failed",
688
+ "type": "error-state"
675
689
  }
676
690
  ]
677
691
  ]
@@ -811,118 +825,118 @@
811
825
  "render-ui",
812
826
  "main",
813
827
  {
814
- "direction": "vertical",
815
- "type": "stack",
816
828
  "gap": "lg",
829
+ "type": "stack",
830
+ "direction": "vertical",
817
831
  "children": [
818
832
  {
819
- "direction": "horizontal",
833
+ "gap": "sm",
820
834
  "align": "center",
821
- "type": "stack",
822
835
  "children": [
823
836
  {
824
- "type": "icon",
825
- "name": "list-checks"
837
+ "name": "list-checks",
838
+ "type": "icon"
826
839
  },
827
840
  {
828
- "type": "typography",
829
841
  "content": "@config.title",
830
- "variant": "h3"
842
+ "variant": "h3",
843
+ "type": "typography"
831
844
  }
832
845
  ],
833
- "gap": "sm"
846
+ "direction": "horizontal",
847
+ "type": "stack"
834
848
  },
835
849
  {
836
- "allowNavigation": false,
837
- "type": "wizard-progress",
850
+ "currentStep": "@entity.currentStepIndex",
838
851
  "steps": "@entity.wizardSteps",
839
- "currentStep": "@entity.currentStepIndex"
852
+ "type": "wizard-progress",
853
+ "allowNavigation": false
840
854
  },
841
855
  {
856
+ "type": "card",
842
857
  "children": [
843
858
  {
859
+ "type": "stack",
844
860
  "children": [
845
861
  {
846
862
  "direction": "horizontal",
863
+ "align": "center",
847
864
  "children": [
848
865
  {
849
- "name": "@entity.currentStepIcon",
866
+ "size": "lg",
850
867
  "type": "icon",
851
- "size": "lg"
868
+ "name": "@entity.currentStepIcon"
852
869
  },
853
870
  {
854
871
  "type": "stack",
855
- "direction": "vertical",
856
872
  "gap": "xs",
857
873
  "children": [
858
874
  {
859
875
  "variant": "h2",
860
- "type": "typography",
861
- "content": "@entity.currentStepLabel"
876
+ "content": "@entity.currentStepLabel",
877
+ "type": "typography"
862
878
  },
863
879
  {
864
- "type": "typography",
865
- "color": "muted",
880
+ "variant": "body",
866
881
  "content": "@entity.currentStepDescription",
867
- "variant": "body"
882
+ "color": "muted",
883
+ "type": "typography"
868
884
  }
869
- ]
885
+ ],
886
+ "direction": "vertical"
870
887
  }
871
888
  ],
872
889
  "gap": "sm",
873
- "align": "center",
874
890
  "type": "stack"
875
891
  },
876
892
  {
877
893
  "type": "divider"
878
894
  },
879
895
  {
896
+ "showCancel": false,
897
+ "showSubmit": false,
880
898
  "type": "form-section",
881
899
  "cancelEvent": "CANCEL",
882
- "showSubmit": false,
883
- "showCancel": false,
900
+ "submitEvent": "ADVANCE",
884
901
  "fields": "@entity.currentFields",
885
- "entity": "@entity",
886
902
  "mode": "edit",
887
- "submitEvent": "ADVANCE"
903
+ "entity": "@entity"
888
904
  }
889
905
  ],
890
906
  "direction": "vertical",
891
- "type": "stack",
892
907
  "gap": "md"
893
908
  }
894
- ],
895
- "type": "card"
909
+ ]
896
910
  },
897
911
  {
898
- "direction": "horizontal",
899
912
  "type": "stack",
900
- "align": "center",
913
+ "direction": "horizontal",
901
914
  "gap": "sm",
902
915
  "children": [
903
916
  {
904
- "icon": "chevron-left",
905
- "type": "button",
917
+ "label": "Back",
906
918
  "variant": "ghost",
907
- "disabled": "@entity.isFirstStep",
919
+ "type": "button",
908
920
  "action": "RETREAT",
909
- "label": "Back"
921
+ "icon": "chevron-left",
922
+ "disabled": "@entity.isFirstStep"
910
923
  },
911
924
  {
912
925
  "icon": "x",
913
- "action": "CANCEL",
914
926
  "type": "button",
915
927
  "label": "Cancel wizard",
916
- "variant": "ghost"
928
+ "variant": "ghost",
929
+ "action": "CANCEL"
917
930
  },
918
931
  {
919
- "action": "ADVANCE",
920
- "icon": "@entity.primaryActionIcon",
921
- "label": "@entity.primaryActionLabel",
922
932
  "type": "button",
923
- "variant": "primary"
933
+ "variant": "primary",
934
+ "label": "@entity.primaryActionLabel",
935
+ "action": "ADVANCE",
936
+ "icon": "@entity.primaryActionIcon"
924
937
  }
925
- ]
938
+ ],
939
+ "align": "center"
926
940
  }
927
941
  ]
928
942
  }
@@ -947,8 +961,8 @@
947
961
  "@payload.data",
948
962
  {
949
963
  "emit": {
950
- "failure": "WizardSaveFailed",
951
- "success": "WizardSaved"
964
+ "success": "WizardSaved",
965
+ "failure": "WizardSaveFailed"
952
966
  }
953
967
  }
954
968
  ],
@@ -956,43 +970,43 @@
956
970
  "render-ui",
957
971
  "main",
958
972
  {
959
- "type": "stack",
960
973
  "gap": "lg",
961
- "direction": "vertical",
974
+ "type": "stack",
962
975
  "align": "center",
963
976
  "children": [
964
977
  {
978
+ "type": "icon",
965
979
  "name": "check-circle",
966
- "size": "lg",
967
- "type": "icon"
980
+ "size": "lg"
968
981
  },
969
982
  {
970
- "content": "Complete",
971
- "align": "center",
972
983
  "variant": "h2",
984
+ "align": "center",
985
+ "content": "Complete",
973
986
  "type": "typography"
974
987
  },
975
988
  {
976
- "type": "typography",
977
989
  "variant": "body",
978
- "content": "@entity.completionMessage",
979
990
  "align": "center",
991
+ "type": "typography",
992
+ "content": "@entity.completionMessage",
980
993
  "color": "muted"
981
994
  },
982
995
  {
983
996
  "currentStep": "@entity.totalSteps",
984
997
  "steps": "@entity.wizardSteps",
985
- "allowNavigation": false,
986
- "type": "wizard-progress"
998
+ "type": "wizard-progress",
999
+ "allowNavigation": false
987
1000
  },
988
1001
  {
1002
+ "label": "Start a new wizard",
989
1003
  "variant": "secondary",
1004
+ "type": "button",
990
1005
  "action": "RESTART",
991
- "label": "Start a new wizard",
992
- "icon": "rotate-ccw",
993
- "type": "button"
1006
+ "icon": "rotate-ccw"
994
1007
  }
995
- ]
1008
+ ],
1009
+ "direction": "vertical"
996
1010
  }
997
1011
  ]
998
1012
  ]
@@ -1128,120 +1142,120 @@
1128
1142
  "render-ui",
1129
1143
  "main",
1130
1144
  {
1145
+ "type": "stack",
1146
+ "direction": "vertical",
1131
1147
  "children": [
1132
1148
  {
1149
+ "direction": "horizontal",
1133
1150
  "type": "stack",
1134
- "align": "center",
1135
- "gap": "sm",
1136
1151
  "children": [
1137
1152
  {
1138
- "type": "icon",
1139
- "name": "list-checks"
1153
+ "name": "list-checks",
1154
+ "type": "icon"
1140
1155
  },
1141
1156
  {
1142
- "variant": "h3",
1143
1157
  "type": "typography",
1144
- "content": "@config.title"
1158
+ "content": "@config.title",
1159
+ "variant": "h3"
1145
1160
  }
1146
1161
  ],
1147
- "direction": "horizontal"
1162
+ "align": "center",
1163
+ "gap": "sm"
1148
1164
  },
1149
1165
  {
1150
1166
  "allowNavigation": false,
1151
- "type": "wizard-progress",
1152
1167
  "steps": "@entity.wizardSteps",
1153
- "currentStep": "@entity.currentStepIndex"
1168
+ "currentStep": "@entity.currentStepIndex",
1169
+ "type": "wizard-progress"
1154
1170
  },
1155
1171
  {
1172
+ "type": "card",
1156
1173
  "children": [
1157
1174
  {
1175
+ "gap": "md",
1176
+ "direction": "vertical",
1158
1177
  "children": [
1159
1178
  {
1160
- "type": "stack",
1161
- "direction": "horizontal",
1162
1179
  "align": "center",
1163
- "gap": "sm",
1180
+ "type": "stack",
1164
1181
  "children": [
1165
1182
  {
1166
- "name": "@entity.currentStepIcon",
1167
1183
  "size": "lg",
1184
+ "name": "@entity.currentStepIcon",
1168
1185
  "type": "icon"
1169
1186
  },
1170
1187
  {
1188
+ "type": "stack",
1171
1189
  "gap": "xs",
1172
1190
  "children": [
1173
1191
  {
1174
- "content": "@entity.currentStepLabel",
1175
1192
  "type": "typography",
1193
+ "content": "@entity.currentStepLabel",
1176
1194
  "variant": "h2"
1177
1195
  },
1178
1196
  {
1179
- "color": "muted",
1180
1197
  "variant": "body",
1181
1198
  "type": "typography",
1182
- "content": "@entity.currentStepDescription"
1199
+ "content": "@entity.currentStepDescription",
1200
+ "color": "muted"
1183
1201
  }
1184
1202
  ],
1185
- "type": "stack",
1186
1203
  "direction": "vertical"
1187
1204
  }
1188
- ]
1205
+ ],
1206
+ "gap": "sm",
1207
+ "direction": "horizontal"
1189
1208
  },
1190
1209
  {
1191
1210
  "type": "divider"
1192
1211
  },
1193
1212
  {
1194
1213
  "type": "form-section",
1214
+ "fields": "@entity.currentFields",
1195
1215
  "cancelEvent": "CANCEL",
1196
- "mode": "edit",
1197
1216
  "showCancel": false,
1198
- "fields": "@entity.currentFields",
1199
1217
  "showSubmit": false,
1200
1218
  "entity": "@entity",
1201
- "submitEvent": "ADVANCE"
1219
+ "submitEvent": "ADVANCE",
1220
+ "mode": "edit"
1202
1221
  }
1203
1222
  ],
1204
- "gap": "md",
1205
- "type": "stack",
1206
- "direction": "vertical"
1223
+ "type": "stack"
1207
1224
  }
1208
- ],
1209
- "type": "card"
1225
+ ]
1210
1226
  },
1211
1227
  {
1212
- "direction": "horizontal",
1213
1228
  "children": [
1214
1229
  {
1215
- "icon": "chevron-left",
1216
- "variant": "ghost",
1217
- "action": "RETREAT",
1218
1230
  "type": "button",
1231
+ "variant": "ghost",
1232
+ "icon": "chevron-left",
1219
1233
  "label": "Back",
1234
+ "action": "RETREAT",
1220
1235
  "disabled": "@entity.isFirstStep"
1221
1236
  },
1222
1237
  {
1223
1238
  "label": "Cancel wizard",
1224
- "action": "CANCEL",
1225
1239
  "variant": "ghost",
1226
- "icon": "x",
1227
- "type": "button"
1240
+ "type": "button",
1241
+ "action": "CANCEL",
1242
+ "icon": "x"
1228
1243
  },
1229
1244
  {
1230
- "variant": "primary",
1231
- "icon": "@entity.primaryActionIcon",
1232
1245
  "type": "button",
1246
+ "action": "ADVANCE",
1233
1247
  "label": "@entity.primaryActionLabel",
1234
- "action": "ADVANCE"
1248
+ "variant": "primary",
1249
+ "icon": "@entity.primaryActionIcon"
1235
1250
  }
1236
1251
  ],
1237
- "align": "center",
1252
+ "gap": "sm",
1238
1253
  "type": "stack",
1239
- "gap": "sm"
1254
+ "direction": "horizontal",
1255
+ "align": "center"
1240
1256
  }
1241
1257
  ],
1242
- "direction": "vertical",
1243
- "gap": "lg",
1244
- "type": "stack"
1258
+ "gap": "lg"
1245
1259
  }
1246
1260
  ]
1247
1261
  ]
@@ -1260,37 +1274,37 @@
1260
1274
  "render-ui",
1261
1275
  "main",
1262
1276
  {
1263
- "align": "center",
1277
+ "type": "stack",
1278
+ "direction": "vertical",
1264
1279
  "gap": "lg",
1280
+ "align": "center",
1265
1281
  "children": [
1266
1282
  {
1267
1283
  "type": "icon",
1268
- "size": "lg",
1269
- "name": "x-circle"
1284
+ "name": "x-circle",
1285
+ "size": "lg"
1270
1286
  },
1271
1287
  {
1272
- "content": "Cancelled",
1273
- "variant": "h2",
1274
1288
  "align": "center",
1275
- "type": "typography"
1289
+ "variant": "h2",
1290
+ "type": "typography",
1291
+ "content": "Cancelled"
1276
1292
  },
1277
1293
  {
1278
- "content": "The wizard was cancelled. No data was submitted.",
1279
- "color": "muted",
1280
- "align": "center",
1281
1294
  "type": "typography",
1282
- "variant": "body"
1295
+ "variant": "body",
1296
+ "align": "center",
1297
+ "color": "muted",
1298
+ "content": "The wizard was cancelled. No data was submitted."
1283
1299
  },
1284
1300
  {
1285
- "action": "RESTART",
1286
1301
  "variant": "secondary",
1287
- "icon": "rotate-ccw",
1302
+ "type": "button",
1288
1303
  "label": "Start a new wizard",
1289
- "type": "button"
1304
+ "icon": "rotate-ccw",
1305
+ "action": "RESTART"
1290
1306
  }
1291
- ],
1292
- "type": "stack",
1293
- "direction": "vertical"
1307
+ ]
1294
1308
  }
1295
1309
  ]
1296
1310
  ]
@@ -1315,8 +1329,8 @@
1315
1329
  "WizardView",
1316
1330
  {
1317
1331
  "emit": {
1318
- "failure": "WizardLoadFailed",
1319
- "success": "WizardLoaded"
1332
+ "success": "WizardLoaded",
1333
+ "failure": "WizardLoadFailed"
1320
1334
  }
1321
1335
  }
1322
1336
  ],
@@ -1324,8 +1338,8 @@
1324
1338
  "render-ui",
1325
1339
  "main",
1326
1340
  {
1327
- "title": "Restarting…",
1328
- "type": "loading-state"
1341
+ "type": "loading-state",
1342
+ "title": "Restarting…"
1329
1343
  }
1330
1344
  ]
1331
1345
  ]
@@ -1387,14 +1401,14 @@
1387
1401
  "type": "[object]",
1388
1402
  "default": [
1389
1403
  {
1404
+ "label": "Details",
1405
+ "icon": "file-text",
1390
1406
  "fields": [
1391
1407
  "title",
1392
1408
  "description"
1393
1409
  ],
1394
- "description": "Basic information",
1395
1410
  "key": "details",
1396
- "label": "Details",
1397
- "icon": "file-text"
1411
+ "description": "Basic information"
1398
1412
  },
1399
1413
  {
1400
1414
  "key": "options",
@@ -1403,16 +1417,16 @@
1403
1417
  "priority"
1404
1418
  ],
1405
1419
  "label": "Options",
1406
- "description": "Configure preferences",
1407
- "icon": "settings"
1420
+ "icon": "settings",
1421
+ "description": "Configure preferences"
1408
1422
  },
1409
1423
  {
1410
- "key": "review",
1411
- "label": "Review",
1412
1424
  "icon": "check-circle",
1425
+ "key": "review",
1413
1426
  "fields": [
1414
1427
  "notes"
1415
1428
  ],
1429
+ "label": "Review",
1416
1430
  "description": "Confirm and submit"
1417
1431
  }
1418
1432
  ]