@almadar/std 13.2.6 → 13.3.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-display",
3
- "version": "1.0.0",
4
- "description": "std-display as a Function",
3
+ "version": "1.1.0",
4
+ "description": "std-display DEPRECATED. The earlier shape inlined a hard-coded\nchart + graph-view + several stat cards into a single render-ui spec\nwith @entity.X bindings that no transition explicitly set, which\nviolates the explicit-binding rule (gap #25 in\ndocs/Almadar_Std_Verification.md). The chart payload was hand-\nauthored literal data, not aggregated from a real entity stream.\n\nUse these instead:\n std-stats — embeddable stat-card aggregations (count / sum / avg\n / min / max / distinct), ITEMS_LOADED listener.\n std-graphs — embeddable charts (bar / line / pie / area / donut),\n config-driven categoryField + aggregation, same\n ITEMS_LOADED listener shape.\n\nCompose them in a molecule alongside std-browse the same way\nstd-filtered-list composes std-search / std-filter / std-browse /\nstd-pagination. See std-dashboard.lolo for the canonical pattern.\n\nThis file is preserved (and still embedded) so existing projects\nthat import `std/behaviors/std-display` keep loading; new dashboards\nshould target std-stats + std-graphs.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "DisplayItemOrbital",
@@ -11,29 +11,8 @@
11
11
  "fields": [
12
12
  {
13
13
  "name": "id",
14
- "type": "string"
15
- },
16
- {
17
- "name": "name",
18
- "type": "string"
19
- },
20
- {
21
- "name": "description",
22
- "type": "string"
23
- },
24
- {
25
- "name": "status",
26
14
  "type": "string",
27
- "default": "active",
28
- "values": [
29
- "active",
30
- "inactive",
31
- "pending"
32
- ]
33
- },
34
- {
35
- "name": "createdAt",
36
- "type": "string"
15
+ "required": true
37
16
  }
38
17
  ]
39
18
  },
@@ -42,1522 +21,51 @@
42
21
  "name": "DisplayItemDisplay",
43
22
  "category": "interaction",
44
23
  "linkedEntity": "DisplayItem",
45
- "emits": [
46
- {
47
- "event": "DisplayItemLoaded",
48
- "description": "Fired when DisplayItem finishes loading",
49
- "scope": "internal",
50
- "payloadSchema": [
51
- {
52
- "name": "id",
53
- "type": "string"
54
- },
55
- {
56
- "name": "name",
57
- "type": "string"
58
- },
59
- {
60
- "name": "description",
61
- "type": "string"
62
- },
63
- {
64
- "name": "status",
65
- "type": "string"
66
- },
67
- {
68
- "name": "createdAt",
69
- "type": "string"
70
- }
71
- ]
72
- },
73
- {
74
- "event": "DisplayItemLoadFailed",
75
- "description": "Fired when DisplayItem fails to load",
76
- "scope": "internal",
77
- "payloadSchema": [
78
- {
79
- "name": "message",
80
- "type": "string"
81
- }
82
- ]
83
- }
84
- ],
85
24
  "stateMachine": {
86
25
  "states": [
87
26
  {
88
- "name": "loading",
27
+ "name": "idle",
89
28
  "isInitial": true
90
- },
91
- {
92
- "name": "displaying"
93
- },
94
- {
95
- "name": "refreshing"
96
29
  }
97
30
  ],
98
31
  "events": [
99
32
  {
100
33
  "key": "INIT",
101
34
  "name": "Initialize"
102
- },
103
- {
104
- "key": "LOADED",
105
- "name": "Loaded"
106
- },
107
- {
108
- "key": "REFRESH",
109
- "name": "Refresh"
110
- },
111
- {
112
- "key": "REFRESHED",
113
- "name": "Refreshed"
114
- },
115
- {
116
- "key": "DisplayItemLoaded",
117
- "name": "DisplayItem loaded",
118
- "payloadSchema": [
119
- {
120
- "name": "id",
121
- "type": "string"
122
- },
123
- {
124
- "name": "name",
125
- "type": "string"
126
- },
127
- {
128
- "name": "description",
129
- "type": "string"
130
- },
131
- {
132
- "name": "status",
133
- "type": "string"
134
- },
135
- {
136
- "name": "createdAt",
137
- "type": "string"
138
- }
139
- ]
140
- },
141
- {
142
- "key": "DisplayItemLoadFailed",
143
- "name": "DisplayItem load failed",
144
- "payloadSchema": [
145
- {
146
- "name": "message",
147
- "type": "string"
148
- }
149
- ]
150
35
  }
151
36
  ],
152
37
  "transitions": [
153
38
  {
154
- "from": "loading",
155
- "to": "displaying",
39
+ "from": "idle",
40
+ "to": "idle",
156
41
  "event": "INIT",
157
42
  "effects": [
158
- [
159
- "fetch",
160
- "DisplayItem",
161
- {
162
- "emit": {
163
- "failure": "DisplayItemLoadFailed",
164
- "success": "DisplayItemLoaded"
165
- }
166
- }
167
- ],
168
43
  [
169
44
  "render-ui",
170
45
  "main",
171
46
  {
172
- "type": "scaled-diagram",
173
- "children": [
174
- {
175
- "gap": "lg",
176
- "direction": "vertical",
177
- "type": "stack",
178
- "children": [
179
- {
180
- "type": "breadcrumb",
181
- "items": [
182
- {
183
- "href": "/",
184
- "label": "Home"
185
- },
186
- {
187
- "label": "DisplayItems"
188
- }
189
- ]
190
- },
191
- {
192
- "justify": "between",
193
- "type": "stack",
194
- "gap": "md",
195
- "direction": "horizontal",
196
- "children": [
197
- {
198
- "direction": "horizontal",
199
- "type": "stack",
200
- "children": [
201
- {
202
- "type": "icon",
203
- "name": "bar-chart-2"
204
- },
205
- {
206
- "content": "DisplayItems",
207
- "type": "typography",
208
- "variant": "h2"
209
- }
210
- ],
211
- "gap": "md"
212
- },
213
- {
214
- "variant": "secondary",
215
- "icon": "refresh-cw",
216
- "label": "Refresh",
217
- "type": "button",
218
- "action": "REFRESH"
219
- }
220
- ]
221
- },
222
- {
223
- "type": "divider"
224
- },
225
- {
226
- "type": "box",
227
- "padding": "md",
228
- "children": [
229
- {
230
- "cols": 3.0,
231
- "children": [
232
- {
233
- "children": [
234
- {
235
- "gap": "sm",
236
- "direction": "vertical",
237
- "children": [
238
- {
239
- "content": "Name",
240
- "variant": "caption",
241
- "type": "typography"
242
- },
243
- {
244
- "content": "@entity.name",
245
- "type": "typography",
246
- "variant": "h3"
247
- }
248
- ],
249
- "type": "stack"
250
- }
251
- ],
252
- "type": "card"
253
- },
254
- {
255
- "type": "card",
256
- "children": [
257
- {
258
- "direction": "vertical",
259
- "gap": "sm",
260
- "type": "stack",
261
- "children": [
262
- {
263
- "variant": "caption",
264
- "type": "typography",
265
- "content": "Description"
266
- },
267
- {
268
- "content": "@entity.description",
269
- "variant": "h3",
270
- "type": "typography"
271
- }
272
- ]
273
- }
274
- ]
275
- },
276
- {
277
- "children": [
278
- {
279
- "gap": "sm",
280
- "direction": "vertical",
281
- "type": "stack",
282
- "children": [
283
- {
284
- "variant": "caption",
285
- "content": "Status",
286
- "type": "typography"
287
- },
288
- {
289
- "type": "typography",
290
- "variant": "h3",
291
- "content": "@entity.status"
292
- }
293
- ]
294
- }
295
- ],
296
- "type": "card"
297
- },
298
- {
299
- "children": [
300
- {
301
- "type": "stack",
302
- "direction": "vertical",
303
- "gap": "sm",
304
- "children": [
305
- {
306
- "type": "typography",
307
- "variant": "caption",
308
- "content": "CreatedAt"
309
- },
310
- {
311
- "variant": "h3",
312
- "content": "@entity.createdAt",
313
- "type": "typography"
314
- }
315
- ]
316
- }
317
- ],
318
- "type": "card"
319
- }
320
- ],
321
- "type": "simple-grid"
322
- }
323
- ]
324
- },
325
- {
326
- "type": "divider"
327
- },
328
- {
329
- "cols": 2.0,
330
- "type": "grid",
331
- "gap": "md",
332
- "children": [
333
- {
334
- "children": [
335
- {
336
- "variant": "caption",
337
- "content": "Chart View",
338
- "type": "typography"
339
- }
340
- ],
341
- "type": "card"
342
- },
343
- {
344
- "children": [
345
- {
346
- "variant": "caption",
347
- "content": "Graph View",
348
- "type": "typography"
349
- }
350
- ],
351
- "type": "card"
352
- }
353
- ]
354
- },
355
- {
356
- "type": "line-chart",
357
- "data": [
358
- {
359
- "date": "Jan",
360
- "value": 12.0
361
- },
362
- {
363
- "value": 19.0,
364
- "date": "Feb"
365
- },
366
- {
367
- "date": "Mar",
368
- "value": 15.0
369
- },
370
- {
371
- "value": 25.0,
372
- "date": "Apr"
373
- },
374
- {
375
- "date": "May",
376
- "value": 22.0
377
- },
378
- {
379
- "date": "Jun",
380
- "value": 30.0
381
- }
382
- ]
383
- },
384
- {
385
- "items": [
386
- {
387
- "color": "primary",
388
- "label": "Current"
389
- },
390
- {
391
- "label": "Previous",
392
- "color": "muted"
393
- }
394
- ],
395
- "type": "chart-legend"
396
- },
397
- {
398
- "type": "graph-view",
399
- "nodes": [
400
- {
401
- "label": "Start",
402
- "id": "a"
403
- },
404
- {
405
- "id": "b",
406
- "label": "Process"
407
- },
408
- {
409
- "id": "c",
410
- "label": "End"
411
- }
412
- ],
413
- "width": 400.0,
414
- "height": 200.0,
415
- "edges": [
416
- {
417
- "source": "a",
418
- "target": "b"
419
- },
420
- {
421
- "source": "b",
422
- "target": "c"
423
- }
424
- ]
425
- }
426
- ]
427
- }
428
- ]
429
- }
430
- ]
431
- ]
432
- },
433
- {
434
- "from": "loading",
435
- "to": "displaying",
436
- "event": "LOADED",
437
- "effects": [
438
- [
439
- "fetch",
440
- "DisplayItem",
441
- {
442
- "emit": {
443
- "success": "DisplayItemLoaded",
444
- "failure": "DisplayItemLoadFailed"
445
- }
446
- }
447
- ],
448
- [
449
- "render-ui",
450
- "main",
451
- {
452
- "type": "scaled-diagram",
453
- "children": [
454
- {
455
- "direction": "vertical",
456
- "children": [
457
- {
458
- "type": "breadcrumb",
459
- "items": [
460
- {
461
- "href": "/",
462
- "label": "Home"
463
- },
464
- {
465
- "label": "DisplayItems"
466
- }
467
- ]
468
- },
469
- {
470
- "gap": "md",
471
- "direction": "horizontal",
472
- "type": "stack",
473
- "justify": "between",
474
- "children": [
475
- {
476
- "gap": "md",
477
- "children": [
478
- {
479
- "type": "icon",
480
- "name": "bar-chart-2"
481
- },
482
- {
483
- "type": "typography",
484
- "content": "DisplayItems",
485
- "variant": "h2"
486
- }
487
- ],
488
- "direction": "horizontal",
489
- "type": "stack"
490
- },
491
- {
492
- "variant": "secondary",
493
- "type": "button",
494
- "icon": "refresh-cw",
495
- "action": "REFRESH",
496
- "label": "Refresh"
497
- }
498
- ]
499
- },
500
- {
501
- "type": "divider"
502
- },
503
- {
504
- "type": "box",
505
- "padding": "md",
506
- "children": [
507
- {
508
- "children": [
509
- {
510
- "type": "card",
511
- "children": [
512
- {
513
- "direction": "vertical",
514
- "children": [
515
- {
516
- "variant": "caption",
517
- "content": "Name",
518
- "type": "typography"
519
- },
520
- {
521
- "type": "typography",
522
- "variant": "h3",
523
- "content": "@entity.name"
524
- }
525
- ],
526
- "gap": "sm",
527
- "type": "stack"
528
- }
529
- ]
530
- },
531
- {
532
- "type": "card",
533
- "children": [
534
- {
535
- "gap": "sm",
536
- "type": "stack",
537
- "direction": "vertical",
538
- "children": [
539
- {
540
- "content": "Description",
541
- "type": "typography",
542
- "variant": "caption"
543
- },
544
- {
545
- "type": "typography",
546
- "variant": "h3",
547
- "content": "@entity.description"
548
- }
549
- ]
550
- }
551
- ]
552
- },
553
- {
554
- "type": "card",
555
- "children": [
556
- {
557
- "children": [
558
- {
559
- "variant": "caption",
560
- "content": "Status",
561
- "type": "typography"
562
- },
563
- {
564
- "type": "typography",
565
- "variant": "h3",
566
- "content": "@entity.status"
567
- }
568
- ],
569
- "direction": "vertical",
570
- "type": "stack",
571
- "gap": "sm"
572
- }
573
- ]
574
- },
575
- {
576
- "type": "card",
577
- "children": [
578
- {
579
- "gap": "sm",
580
- "type": "stack",
581
- "children": [
582
- {
583
- "type": "typography",
584
- "content": "CreatedAt",
585
- "variant": "caption"
586
- },
587
- {
588
- "variant": "h3",
589
- "type": "typography",
590
- "content": "@entity.createdAt"
591
- }
592
- ],
593
- "direction": "vertical"
594
- }
595
- ]
596
- }
597
- ],
598
- "type": "simple-grid",
599
- "cols": 3.0
600
- }
601
- ]
602
- },
603
- {
604
- "type": "divider"
605
- },
606
- {
607
- "type": "grid",
608
- "cols": 2.0,
609
- "children": [
610
- {
611
- "children": [
612
- {
613
- "content": "Chart View",
614
- "type": "typography",
615
- "variant": "caption"
616
- }
617
- ],
618
- "type": "card"
619
- },
620
- {
621
- "type": "card",
622
- "children": [
623
- {
624
- "content": "Graph View",
625
- "type": "typography",
626
- "variant": "caption"
627
- }
628
- ]
629
- }
630
- ],
631
- "gap": "md"
632
- },
633
- {
634
- "data": [
635
- {
636
- "value": 12.0,
637
- "date": "Jan"
638
- },
639
- {
640
- "date": "Feb",
641
- "value": 19.0
642
- },
643
- {
644
- "date": "Mar",
645
- "value": 15.0
646
- },
647
- {
648
- "value": 25.0,
649
- "date": "Apr"
650
- },
651
- {
652
- "date": "May",
653
- "value": 22.0
654
- },
655
- {
656
- "date": "Jun",
657
- "value": 30.0
658
- }
659
- ],
660
- "type": "line-chart"
661
- },
662
- {
663
- "items": [
664
- {
665
- "label": "Current",
666
- "color": "primary"
667
- },
668
- {
669
- "label": "Previous",
670
- "color": "muted"
671
- }
672
- ],
673
- "type": "chart-legend"
674
- },
675
- {
676
- "nodes": [
677
- {
678
- "id": "a",
679
- "label": "Start"
680
- },
681
- {
682
- "id": "b",
683
- "label": "Process"
684
- },
685
- {
686
- "label": "End",
687
- "id": "c"
688
- }
689
- ],
690
- "width": 400.0,
691
- "edges": [
692
- {
693
- "source": "a",
694
- "target": "b"
695
- },
696
- {
697
- "target": "c",
698
- "source": "b"
699
- }
700
- ],
701
- "type": "graph-view",
702
- "height": 200.0
703
- }
704
- ],
705
- "type": "stack",
706
- "gap": "lg"
707
- }
708
- ]
709
- }
710
- ]
711
- ]
712
- },
713
- {
714
- "from": "displaying",
715
- "to": "displaying",
716
- "event": "INIT",
717
- "effects": [
718
- [
719
- "fetch",
720
- "DisplayItem",
721
- {
722
- "emit": {
723
- "success": "DisplayItemLoaded",
724
- "failure": "DisplayItemLoadFailed"
725
- }
726
- }
727
- ],
728
- [
729
- "render-ui",
730
- "main",
731
- {
732
- "type": "scaled-diagram",
733
- "children": [
734
- {
735
- "direction": "vertical",
736
- "type": "stack",
737
- "gap": "lg",
738
- "children": [
739
- {
740
- "items": [
741
- {
742
- "label": "Home",
743
- "href": "/"
744
- },
745
- {
746
- "label": "DisplayItems"
747
- }
748
- ],
749
- "type": "breadcrumb"
750
- },
751
- {
752
- "justify": "between",
753
- "direction": "horizontal",
754
- "type": "stack",
755
- "gap": "md",
756
- "children": [
757
- {
758
- "direction": "horizontal",
759
- "children": [
760
- {
761
- "name": "bar-chart-2",
762
- "type": "icon"
763
- },
764
- {
765
- "type": "typography",
766
- "content": "DisplayItems",
767
- "variant": "h2"
768
- }
769
- ],
770
- "gap": "md",
771
- "type": "stack"
772
- },
773
- {
774
- "icon": "refresh-cw",
775
- "variant": "secondary",
776
- "action": "REFRESH",
777
- "type": "button",
778
- "label": "Refresh"
779
- }
780
- ]
781
- },
782
- {
783
- "type": "divider"
784
- },
785
- {
786
- "type": "box",
787
- "children": [
788
- {
789
- "cols": 3.0,
790
- "type": "simple-grid",
791
- "children": [
792
- {
793
- "type": "card",
794
- "children": [
795
- {
796
- "direction": "vertical",
797
- "children": [
798
- {
799
- "content": "Name",
800
- "type": "typography",
801
- "variant": "caption"
802
- },
803
- {
804
- "type": "typography",
805
- "variant": "h3",
806
- "content": "@entity.name"
807
- }
808
- ],
809
- "type": "stack",
810
- "gap": "sm"
811
- }
812
- ]
813
- },
814
- {
815
- "children": [
816
- {
817
- "direction": "vertical",
818
- "type": "stack",
819
- "gap": "sm",
820
- "children": [
821
- {
822
- "type": "typography",
823
- "variant": "caption",
824
- "content": "Description"
825
- },
826
- {
827
- "content": "@entity.description",
828
- "variant": "h3",
829
- "type": "typography"
830
- }
831
- ]
832
- }
833
- ],
834
- "type": "card"
835
- },
836
- {
837
- "children": [
838
- {
839
- "direction": "vertical",
840
- "gap": "sm",
841
- "children": [
842
- {
843
- "type": "typography",
844
- "variant": "caption",
845
- "content": "Status"
846
- },
847
- {
848
- "type": "typography",
849
- "variant": "h3",
850
- "content": "@entity.status"
851
- }
852
- ],
853
- "type": "stack"
854
- }
855
- ],
856
- "type": "card"
857
- },
858
- {
859
- "type": "card",
860
- "children": [
861
- {
862
- "type": "stack",
863
- "children": [
864
- {
865
- "variant": "caption",
866
- "content": "CreatedAt",
867
- "type": "typography"
868
- },
869
- {
870
- "content": "@entity.createdAt",
871
- "type": "typography",
872
- "variant": "h3"
873
- }
874
- ],
875
- "gap": "sm",
876
- "direction": "vertical"
877
- }
878
- ]
879
- }
880
- ]
881
- }
882
- ],
883
- "padding": "md"
884
- },
885
- {
886
- "type": "divider"
887
- },
888
- {
889
- "type": "grid",
890
- "children": [
891
- {
892
- "children": [
893
- {
894
- "variant": "caption",
895
- "type": "typography",
896
- "content": "Chart View"
897
- }
898
- ],
899
- "type": "card"
900
- },
901
- {
902
- "type": "card",
903
- "children": [
904
- {
905
- "variant": "caption",
906
- "type": "typography",
907
- "content": "Graph View"
908
- }
909
- ]
910
- }
911
- ],
912
- "gap": "md",
913
- "cols": 2.0
914
- },
915
- {
916
- "type": "line-chart",
917
- "data": [
918
- {
919
- "value": 12.0,
920
- "date": "Jan"
921
- },
922
- {
923
- "date": "Feb",
924
- "value": 19.0
925
- },
926
- {
927
- "value": 15.0,
928
- "date": "Mar"
929
- },
930
- {
931
- "value": 25.0,
932
- "date": "Apr"
933
- },
934
- {
935
- "value": 22.0,
936
- "date": "May"
937
- },
938
- {
939
- "value": 30.0,
940
- "date": "Jun"
941
- }
942
- ]
943
- },
944
- {
945
- "type": "chart-legend",
946
- "items": [
947
- {
948
- "label": "Current",
949
- "color": "primary"
950
- },
951
- {
952
- "label": "Previous",
953
- "color": "muted"
954
- }
955
- ]
956
- },
957
- {
958
- "width": 400.0,
959
- "height": 200.0,
960
- "edges": [
961
- {
962
- "source": "a",
963
- "target": "b"
964
- },
965
- {
966
- "source": "b",
967
- "target": "c"
968
- }
969
- ],
970
- "nodes": [
971
- {
972
- "label": "Start",
973
- "id": "a"
974
- },
975
- {
976
- "id": "b",
977
- "label": "Process"
978
- },
979
- {
980
- "label": "End",
981
- "id": "c"
982
- }
983
- ],
984
- "type": "graph-view"
985
- }
986
- ]
987
- }
988
- ]
989
- }
990
- ]
991
- ]
992
- },
993
- {
994
- "from": "displaying",
995
- "to": "refreshing",
996
- "event": "REFRESH",
997
- "effects": [
998
- [
999
- "fetch",
1000
- "DisplayItem",
1001
- {
1002
- "emit": {
1003
- "failure": "DisplayItemLoadFailed",
1004
- "success": "DisplayItemLoaded"
1005
- }
1006
- }
1007
- ],
1008
- [
1009
- "render-ui",
1010
- "main",
1011
- {
1012
- "type": "scaled-diagram",
1013
- "children": [
1014
- {
1015
- "children": [
1016
- {
1017
- "type": "breadcrumb",
1018
- "items": [
1019
- {
1020
- "label": "Home",
1021
- "href": "/"
1022
- },
1023
- {
1024
- "label": "DisplayItems"
1025
- }
1026
- ]
1027
- },
1028
- {
1029
- "type": "stack",
1030
- "gap": "md",
1031
- "justify": "between",
1032
- "children": [
1033
- {
1034
- "type": "stack",
1035
- "children": [
1036
- {
1037
- "name": "bar-chart-2",
1038
- "type": "icon"
1039
- },
1040
- {
1041
- "content": "DisplayItems",
1042
- "type": "typography",
1043
- "variant": "h2"
1044
- }
1045
- ],
1046
- "direction": "horizontal",
1047
- "gap": "md"
1048
- },
1049
- {
1050
- "type": "button",
1051
- "action": "REFRESH",
1052
- "variant": "secondary",
1053
- "label": "Refresh",
1054
- "icon": "refresh-cw"
1055
- }
1056
- ],
1057
- "direction": "horizontal"
1058
- },
1059
- {
1060
- "type": "divider"
1061
- },
1062
- {
1063
- "children": [
1064
- {
1065
- "type": "simple-grid",
1066
- "cols": 3.0,
1067
- "children": [
1068
- {
1069
- "children": [
1070
- {
1071
- "type": "stack",
1072
- "gap": "sm",
1073
- "children": [
1074
- {
1075
- "type": "typography",
1076
- "variant": "caption",
1077
- "content": "Name"
1078
- },
1079
- {
1080
- "type": "typography",
1081
- "variant": "h3",
1082
- "content": "@entity.name"
1083
- }
1084
- ],
1085
- "direction": "vertical"
1086
- }
1087
- ],
1088
- "type": "card"
1089
- },
1090
- {
1091
- "children": [
1092
- {
1093
- "type": "stack",
1094
- "gap": "sm",
1095
- "direction": "vertical",
1096
- "children": [
1097
- {
1098
- "content": "Description",
1099
- "variant": "caption",
1100
- "type": "typography"
1101
- },
1102
- {
1103
- "variant": "h3",
1104
- "type": "typography",
1105
- "content": "@entity.description"
1106
- }
1107
- ]
1108
- }
1109
- ],
1110
- "type": "card"
1111
- },
1112
- {
1113
- "children": [
1114
- {
1115
- "direction": "vertical",
1116
- "gap": "sm",
1117
- "type": "stack",
1118
- "children": [
1119
- {
1120
- "type": "typography",
1121
- "content": "Status",
1122
- "variant": "caption"
1123
- },
1124
- {
1125
- "variant": "h3",
1126
- "content": "@entity.status",
1127
- "type": "typography"
1128
- }
1129
- ]
1130
- }
1131
- ],
1132
- "type": "card"
1133
- },
1134
- {
1135
- "type": "card",
1136
- "children": [
1137
- {
1138
- "children": [
1139
- {
1140
- "variant": "caption",
1141
- "type": "typography",
1142
- "content": "CreatedAt"
1143
- },
1144
- {
1145
- "variant": "h3",
1146
- "type": "typography",
1147
- "content": "@entity.createdAt"
1148
- }
1149
- ],
1150
- "direction": "vertical",
1151
- "gap": "sm",
1152
- "type": "stack"
1153
- }
1154
- ]
1155
- }
1156
- ]
1157
- }
1158
- ],
1159
- "padding": "md",
1160
- "type": "box"
1161
- },
1162
- {
1163
- "type": "divider"
1164
- },
1165
- {
1166
- "type": "grid",
1167
- "gap": "md",
1168
- "cols": 2.0,
1169
- "children": [
1170
- {
1171
- "type": "card",
1172
- "children": [
1173
- {
1174
- "content": "Chart View",
1175
- "variant": "caption",
1176
- "type": "typography"
1177
- }
1178
- ]
1179
- },
1180
- {
1181
- "children": [
1182
- {
1183
- "type": "typography",
1184
- "content": "Graph View",
1185
- "variant": "caption"
1186
- }
1187
- ],
1188
- "type": "card"
1189
- }
1190
- ]
1191
- },
1192
- {
1193
- "data": [
1194
- {
1195
- "date": "Jan",
1196
- "value": 12.0
1197
- },
1198
- {
1199
- "value": 19.0,
1200
- "date": "Feb"
1201
- },
1202
- {
1203
- "date": "Mar",
1204
- "value": 15.0
1205
- },
1206
- {
1207
- "date": "Apr",
1208
- "value": 25.0
1209
- },
1210
- {
1211
- "date": "May",
1212
- "value": 22.0
1213
- },
1214
- {
1215
- "date": "Jun",
1216
- "value": 30.0
1217
- }
1218
- ],
1219
- "type": "line-chart"
1220
- },
1221
- {
1222
- "type": "chart-legend",
1223
- "items": [
1224
- {
1225
- "label": "Current",
1226
- "color": "primary"
1227
- },
1228
- {
1229
- "color": "muted",
1230
- "label": "Previous"
1231
- }
1232
- ]
1233
- },
1234
- {
1235
- "width": 400.0,
1236
- "edges": [
1237
- {
1238
- "source": "a",
1239
- "target": "b"
1240
- },
1241
- {
1242
- "source": "b",
1243
- "target": "c"
1244
- }
1245
- ],
1246
- "type": "graph-view",
1247
- "height": 200.0,
1248
- "nodes": [
1249
- {
1250
- "label": "Start",
1251
- "id": "a"
1252
- },
1253
- {
1254
- "label": "Process",
1255
- "id": "b"
1256
- },
1257
- {
1258
- "label": "End",
1259
- "id": "c"
1260
- }
1261
- ]
1262
- }
1263
- ],
1264
- "type": "stack",
1265
- "direction": "vertical",
1266
- "gap": "lg"
1267
- }
1268
- ]
1269
- }
1270
- ]
1271
- ]
1272
- },
1273
- {
1274
- "from": "refreshing",
1275
- "to": "displaying",
1276
- "event": "REFRESHED",
1277
- "effects": [
1278
- [
1279
- "fetch",
1280
- "DisplayItem",
1281
- {
1282
- "emit": {
1283
- "success": "DisplayItemLoaded",
1284
- "failure": "DisplayItemLoadFailed"
1285
- }
1286
- }
1287
- ],
1288
- [
1289
- "render-ui",
1290
- "main",
1291
- {
1292
- "type": "scaled-diagram",
1293
- "children": [
1294
- {
1295
- "direction": "vertical",
1296
- "type": "stack",
1297
- "children": [
1298
- {
1299
- "items": [
1300
- {
1301
- "label": "Home",
1302
- "href": "/"
1303
- },
1304
- {
1305
- "label": "DisplayItems"
1306
- }
1307
- ],
1308
- "type": "breadcrumb"
1309
- },
1310
- {
1311
- "justify": "between",
1312
- "children": [
1313
- {
1314
- "children": [
1315
- {
1316
- "type": "icon",
1317
- "name": "bar-chart-2"
1318
- },
1319
- {
1320
- "variant": "h2",
1321
- "type": "typography",
1322
- "content": "DisplayItems"
1323
- }
1324
- ],
1325
- "type": "stack",
1326
- "direction": "horizontal",
1327
- "gap": "md"
1328
- },
1329
- {
1330
- "variant": "secondary",
1331
- "type": "button",
1332
- "icon": "refresh-cw",
1333
- "label": "Refresh",
1334
- "action": "REFRESH"
1335
- }
1336
- ],
1337
- "type": "stack",
1338
- "direction": "horizontal",
1339
- "gap": "md"
1340
- },
1341
- {
1342
- "type": "divider"
1343
- },
1344
- {
1345
- "padding": "md",
1346
- "children": [
1347
- {
1348
- "type": "simple-grid",
1349
- "cols": 3.0,
1350
- "children": [
1351
- {
1352
- "type": "card",
1353
- "children": [
1354
- {
1355
- "gap": "sm",
1356
- "type": "stack",
1357
- "direction": "vertical",
1358
- "children": [
1359
- {
1360
- "content": "Name",
1361
- "type": "typography",
1362
- "variant": "caption"
1363
- },
1364
- {
1365
- "type": "typography",
1366
- "variant": "h3",
1367
- "content": "@entity.name"
1368
- }
1369
- ]
1370
- }
1371
- ]
1372
- },
1373
- {
1374
- "type": "card",
1375
- "children": [
1376
- {
1377
- "type": "stack",
1378
- "gap": "sm",
1379
- "children": [
1380
- {
1381
- "variant": "caption",
1382
- "type": "typography",
1383
- "content": "Description"
1384
- },
1385
- {
1386
- "content": "@entity.description",
1387
- "type": "typography",
1388
- "variant": "h3"
1389
- }
1390
- ],
1391
- "direction": "vertical"
1392
- }
1393
- ]
1394
- },
1395
- {
1396
- "type": "card",
1397
- "children": [
1398
- {
1399
- "gap": "sm",
1400
- "direction": "vertical",
1401
- "type": "stack",
1402
- "children": [
1403
- {
1404
- "content": "Status",
1405
- "type": "typography",
1406
- "variant": "caption"
1407
- },
1408
- {
1409
- "content": "@entity.status",
1410
- "type": "typography",
1411
- "variant": "h3"
1412
- }
1413
- ]
1414
- }
1415
- ]
1416
- },
1417
- {
1418
- "children": [
1419
- {
1420
- "type": "stack",
1421
- "gap": "sm",
1422
- "direction": "vertical",
1423
- "children": [
1424
- {
1425
- "variant": "caption",
1426
- "type": "typography",
1427
- "content": "CreatedAt"
1428
- },
1429
- {
1430
- "content": "@entity.createdAt",
1431
- "type": "typography",
1432
- "variant": "h3"
1433
- }
1434
- ]
1435
- }
1436
- ],
1437
- "type": "card"
1438
- }
1439
- ]
1440
- }
1441
- ],
1442
- "type": "box"
1443
- },
1444
- {
1445
- "type": "divider"
1446
- },
1447
- {
1448
- "cols": 2.0,
1449
- "type": "grid",
1450
- "gap": "md",
1451
- "children": [
1452
- {
1453
- "type": "card",
1454
- "children": [
1455
- {
1456
- "variant": "caption",
1457
- "type": "typography",
1458
- "content": "Chart View"
1459
- }
1460
- ]
1461
- },
1462
- {
1463
- "type": "card",
1464
- "children": [
1465
- {
1466
- "content": "Graph View",
1467
- "type": "typography",
1468
- "variant": "caption"
1469
- }
1470
- ]
1471
- }
1472
- ]
1473
- },
1474
- {
1475
- "data": [
1476
- {
1477
- "date": "Jan",
1478
- "value": 12.0
1479
- },
1480
- {
1481
- "date": "Feb",
1482
- "value": 19.0
1483
- },
1484
- {
1485
- "date": "Mar",
1486
- "value": 15.0
1487
- },
1488
- {
1489
- "value": 25.0,
1490
- "date": "Apr"
1491
- },
1492
- {
1493
- "value": 22.0,
1494
- "date": "May"
1495
- },
1496
- {
1497
- "date": "Jun",
1498
- "value": 30.0
1499
- }
1500
- ],
1501
- "type": "line-chart"
1502
- },
1503
- {
1504
- "items": [
1505
- {
1506
- "color": "primary",
1507
- "label": "Current"
1508
- },
1509
- {
1510
- "label": "Previous",
1511
- "color": "muted"
1512
- }
1513
- ],
1514
- "type": "chart-legend"
1515
- },
1516
- {
1517
- "type": "graph-view",
1518
- "nodes": [
1519
- {
1520
- "label": "Start",
1521
- "id": "a"
1522
- },
1523
- {
1524
- "id": "b",
1525
- "label": "Process"
1526
- },
1527
- {
1528
- "id": "c",
1529
- "label": "End"
1530
- }
1531
- ],
1532
- "height": 200.0,
1533
- "edges": [
1534
- {
1535
- "target": "b",
1536
- "source": "a"
1537
- },
1538
- {
1539
- "source": "b",
1540
- "target": "c"
1541
- }
1542
- ],
1543
- "width": 400.0
1544
- }
1545
- ],
1546
- "gap": "lg"
1547
- }
1548
- ]
47
+ "variant": "warning",
48
+ "type": "alert",
49
+ "title": "std-display is deprecated",
50
+ "message": "@config.message"
1549
51
  }
1550
52
  ]
1551
53
  ]
1552
54
  }
1553
55
  ]
1554
56
  },
1555
- "scope": "collection"
57
+ "config": {
58
+ "message": {
59
+ "type": "string",
60
+ "default": "std-display is deprecated — use std-stats and std-graphs instead. See docs/Almadar_Std_Verification.md gap #25."
61
+ }
62
+ },
63
+ "scope": "instance"
1556
64
  }
1557
65
  ],
1558
66
  "pages": [
1559
67
  {
1560
- "name": "DisplayItemPage",
68
+ "name": "DisplayItemDisplayPage",
1561
69
  "path": "/displayitems",
1562
70
  "traits": [
1563
71
  {
@@ -1568,4 +76,4 @@
1568
76
  ]
1569
77
  }
1570
78
  ]
1571
- }
79
+ }