@almadar/std 15.1.0 → 15.2.1

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.
Files changed (40) hide show
  1. package/behaviors/registry/app/organisms/std-coding-academy.orb +191 -189
  2. package/behaviors/registry/core/atoms/std-app-layout.orb +46 -44
  3. package/behaviors/registry/core/atoms/std-dashboard-grid-layout.orb +99 -61
  4. package/behaviors/registry/core/atoms/std-display.orb +7 -5
  5. package/behaviors/registry/core/atoms/std-multi-party-flow.orb +519 -515
  6. package/behaviors/registry/core/atoms/std-stack-layout.orb +15 -13
  7. package/behaviors/registry/core/molecules/std-master-detail-layout.orb +19 -13
  8. package/behaviors/registry/core/molecules/std-tabs-layout.orb +13 -9
  9. package/behaviors/registry/variations/views/std-graphs-bar.orb +56 -0
  10. package/behaviors/registry/variations/views/std-graphs-donut.orb +56 -0
  11. package/behaviors/registry/variations/views/std-graphs-histogram.orb +56 -0
  12. package/behaviors/registry/variations/views/std-graphs-line.orb +56 -0
  13. package/behaviors/registry/variations/views/std-graphs-pie.orb +56 -0
  14. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +191 -189
  15. package/dist/behaviors/registry/core/atoms/std-app-layout.orb +46 -44
  16. package/dist/behaviors/registry/core/atoms/std-dashboard-grid-layout.orb +99 -61
  17. package/dist/behaviors/registry/core/atoms/std-display.orb +7 -5
  18. package/dist/behaviors/registry/core/atoms/std-multi-party-flow.orb +519 -515
  19. package/dist/behaviors/registry/core/atoms/std-stack-layout.orb +15 -13
  20. package/dist/behaviors/registry/core/molecules/std-master-detail-layout.orb +19 -13
  21. package/dist/behaviors/registry/core/molecules/std-tabs-layout.orb +13 -9
  22. package/dist/behaviors/registry/variations/views/std-graphs-bar.orb +56 -0
  23. package/dist/behaviors/registry/variations/views/std-graphs-donut.orb +56 -0
  24. package/dist/behaviors/registry/variations/views/std-graphs-histogram.orb +56 -0
  25. package/dist/behaviors/registry/variations/views/std-graphs-line.orb +56 -0
  26. package/dist/behaviors/registry/variations/views/std-graphs-pie.orb +56 -0
  27. package/dist/registry/app/organisms/std-coding-academy.orb +191 -189
  28. package/dist/registry/core/atoms/std-app-layout.orb +46 -44
  29. package/dist/registry/core/atoms/std-dashboard-grid-layout.orb +99 -61
  30. package/dist/registry/core/atoms/std-display.orb +7 -5
  31. package/dist/registry/core/atoms/std-multi-party-flow.orb +519 -515
  32. package/dist/registry/core/atoms/std-stack-layout.orb +15 -13
  33. package/dist/registry/core/molecules/std-master-detail-layout.orb +19 -13
  34. package/dist/registry/core/molecules/std-tabs-layout.orb +13 -9
  35. package/dist/registry/variations/views/std-graphs-bar.orb +56 -0
  36. package/dist/registry/variations/views/std-graphs-donut.orb +56 -0
  37. package/dist/registry/variations/views/std-graphs-histogram.orb +56 -0
  38. package/dist/registry/variations/views/std-graphs-line.orb +56 -0
  39. package/dist/registry/variations/views/std-graphs-pie.orb +56 -0
  40. package/package.json +1 -1
@@ -43,33 +43,33 @@
43
43
  "render-ui",
44
44
  "main",
45
45
  {
46
+ "type": "stack",
47
+ "direction": "vertical",
46
48
  "gap": "md",
47
49
  "className": "max-w-5xl mx-auto w-full",
48
- "type": "stack",
49
50
  "children": [
50
51
  {
52
+ "align": "center",
53
+ "type": "stack",
54
+ "direction": "horizontal",
51
55
  "children": [
52
56
  {
53
57
  "type": "icon",
54
58
  "name": "@config.icon"
55
59
  },
56
60
  {
57
- "type": "typography",
58
61
  "variant": "h2",
59
- "content": "@config.title"
62
+ "content": "@config.title",
63
+ "type": "typography"
60
64
  }
61
65
  ],
62
- "direction": "horizontal",
63
- "align": "center",
64
- "gap": "sm",
65
- "type": "stack"
66
+ "gap": "sm"
66
67
  },
67
68
  {
68
69
  "type": "divider"
69
70
  },
70
71
  "@config.contentTrait"
71
- ],
72
- "direction": "vertical"
72
+ ]
73
73
  }
74
74
  ]
75
75
  ]
@@ -77,9 +77,6 @@
77
77
  ]
78
78
  },
79
79
  "config": {
80
- "contentTrait": {
81
- "type": "trait"
82
- },
83
80
  "icon": {
84
81
  "type": "string",
85
82
  "default": "list",
@@ -91,6 +88,11 @@
91
88
  "default": "List",
92
89
  "label": "Section title",
93
90
  "description": "Heading shown in the layout chrome"
91
+ },
92
+ "contentTrait": {
93
+ "type": "trait",
94
+ "label": "Content trait",
95
+ "description": "Trait rendered inside the stack layout body"
94
96
  }
95
97
  },
96
98
  "scope": "instance"
@@ -109,4 +111,4 @@
109
111
  ]
110
112
  }
111
113
  ]
112
- }
114
+ }
@@ -53,11 +53,12 @@
53
53
  "render-ui",
54
54
  "main",
55
55
  {
56
- "gap": "md",
56
+ "direction": "vertical",
57
+ "type": "stack",
57
58
  "className": "max-w-6xl mx-auto w-full",
59
+ "gap": "md",
58
60
  "children": [
59
61
  {
60
- "gap": "sm",
61
62
  "children": [
62
63
  {
63
64
  "type": "icon",
@@ -69,17 +70,16 @@
69
70
  "content": "@config.title"
70
71
  }
71
72
  ],
73
+ "align": "center",
72
74
  "type": "stack",
73
75
  "direction": "horizontal",
74
- "align": "center"
76
+ "gap": "sm"
75
77
  },
76
78
  {
77
79
  "type": "divider"
78
80
  },
79
81
  "@config.masterTrait"
80
- ],
81
- "type": "stack",
82
- "direction": "vertical"
82
+ ]
83
83
  }
84
84
  ]
85
85
  ]
@@ -87,16 +87,22 @@
87
87
  ]
88
88
  },
89
89
  "config": {
90
- "title": {
91
- "type": "string",
92
- "default": "Master / Detail"
90
+ "masterTrait": {
91
+ "type": "trait",
92
+ "label": "Master trait",
93
+ "description": "Trait reference rendered as the master list on the left"
93
94
  },
94
95
  "icon": {
95
96
  "type": "string",
96
- "default": "list"
97
+ "default": "list",
98
+ "label": "Header icon",
99
+ "description": "Icon name displayed next to the title"
97
100
  },
98
- "masterTrait": {
99
- "type": "trait"
101
+ "title": {
102
+ "type": "string",
103
+ "default": "Master / Detail",
104
+ "label": "Page title",
105
+ "description": "Heading shown above the master/detail layout"
100
106
  }
101
107
  },
102
108
  "scope": "instance"
@@ -118,4 +124,4 @@
118
124
  ]
119
125
  }
120
126
  ]
121
- }
127
+ }
@@ -53,33 +53,33 @@
53
53
  "render-ui",
54
54
  "main",
55
55
  {
56
+ "gap": "md",
56
57
  "className": "max-w-6xl mx-auto w-full",
57
- "direction": "vertical",
58
58
  "type": "stack",
59
59
  "children": [
60
60
  {
61
61
  "type": "stack",
62
+ "direction": "horizontal",
62
63
  "children": [
63
64
  {
64
65
  "type": "icon",
65
66
  "name": "@config.icon"
66
67
  },
67
68
  {
68
- "variant": "h2",
69
69
  "type": "typography",
70
- "content": "@config.title"
70
+ "content": "@config.title",
71
+ "variant": "h2"
71
72
  }
72
73
  ],
73
- "align": "center",
74
74
  "gap": "sm",
75
- "direction": "horizontal"
75
+ "align": "center"
76
76
  },
77
77
  {
78
78
  "type": "divider"
79
79
  },
80
80
  "@trait.TabsLayoutTabs"
81
81
  ],
82
- "gap": "md"
82
+ "direction": "vertical"
83
83
  }
84
84
  ]
85
85
  ]
@@ -89,11 +89,15 @@
89
89
  "config": {
90
90
  "title": {
91
91
  "type": "string",
92
- "default": "Tabbed View"
92
+ "default": "Tabbed View",
93
+ "label": "Page title",
94
+ "description": "Heading shown above the tab strip"
93
95
  },
94
96
  "icon": {
95
97
  "type": "string",
96
- "default": "layout"
98
+ "default": "layout",
99
+ "label": "Header icon",
100
+ "description": "Icon name displayed next to the title"
97
101
  }
98
102
  },
99
103
  "scope": "instance"
@@ -115,4 +119,4 @@
115
119
  ]
116
120
  }
117
121
  ]
118
- }
122
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "std-graphs-bar",
3
+ "version": "1.0.0",
4
+ "description": "Bar chart view. Embeds std-graphs with the bar chartType — vertical bars, one per category bucket. Default for distribution-of-categories visualisations.",
5
+ "orbitals": [
6
+ {
7
+ "name": "BarGraphItemOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-graphs",
11
+ "as": "Graph"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "BarGraphItem",
16
+ "persistence": "runtime",
17
+ "fields": [
18
+ {
19
+ "name": "id",
20
+ "type": "string",
21
+ "required": true
22
+ },
23
+ {
24
+ "name": "chartData",
25
+ "type": "array",
26
+ "default": [],
27
+ "items": {
28
+ "type": "object"
29
+ }
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "ref": "Graph.traits.GraphItemGraph",
36
+ "name": "BarGraphItemGraph",
37
+ "linkedEntity": "BarGraphItem",
38
+ "config": {
39
+ "chartType": "bar"
40
+ }
41
+ }
42
+ ],
43
+ "pages": [
44
+ {
45
+ "name": "BarGraphPage",
46
+ "path": "/bar-graph",
47
+ "traits": [
48
+ {
49
+ "ref": "BarGraphItemGraph"
50
+ }
51
+ ]
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "std-graphs-donut",
3
+ "version": "1.0.0",
4
+ "description": "Donut chart view. Embeds std-graphs with the donut chartType — pie with a hollow centre that frees up space for a centered total/label. Reads better than pie when slices are similarly sized.",
5
+ "orbitals": [
6
+ {
7
+ "name": "DonutGraphItemOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-graphs",
11
+ "as": "Graph"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "DonutGraphItem",
16
+ "persistence": "runtime",
17
+ "fields": [
18
+ {
19
+ "name": "id",
20
+ "type": "string",
21
+ "required": true
22
+ },
23
+ {
24
+ "name": "chartData",
25
+ "type": "array",
26
+ "default": [],
27
+ "items": {
28
+ "type": "object"
29
+ }
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "ref": "Graph.traits.GraphItemGraph",
36
+ "name": "DonutGraphItemGraph",
37
+ "linkedEntity": "DonutGraphItem",
38
+ "config": {
39
+ "chartType": "donut"
40
+ }
41
+ }
42
+ ],
43
+ "pages": [
44
+ {
45
+ "name": "DonutGraphPage",
46
+ "path": "/donut-graph",
47
+ "traits": [
48
+ {
49
+ "ref": "DonutGraphItemGraph"
50
+ }
51
+ ]
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "std-graphs-histogram",
3
+ "version": "1.0.0",
4
+ "description": "Histogram view. Embeds std-graphs with the histogram chartType — pre-binned bars passed through unchanged from @payload.data (the std-graphs atom skips its categorical bucketing for this type). Best for distributions of a continuous variable.",
5
+ "orbitals": [
6
+ {
7
+ "name": "HistogramGraphItemOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-graphs",
11
+ "as": "Graph"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "HistogramGraphItem",
16
+ "persistence": "runtime",
17
+ "fields": [
18
+ {
19
+ "name": "id",
20
+ "type": "string",
21
+ "required": true
22
+ },
23
+ {
24
+ "name": "chartData",
25
+ "type": "array",
26
+ "default": [],
27
+ "items": {
28
+ "type": "object"
29
+ }
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "ref": "Graph.traits.GraphItemGraph",
36
+ "name": "HistogramGraphItemGraph",
37
+ "linkedEntity": "HistogramGraphItem",
38
+ "config": {
39
+ "chartType": "histogram"
40
+ }
41
+ }
42
+ ],
43
+ "pages": [
44
+ {
45
+ "name": "HistogramGraphPage",
46
+ "path": "/histogram-graph",
47
+ "traits": [
48
+ {
49
+ "ref": "HistogramGraphItemGraph"
50
+ }
51
+ ]
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "std-graphs-line",
3
+ "version": "1.0.0",
4
+ "description": "Line chart view. Embeds std-graphs with the line chartType — connected points over a continuous (typically time) axis. Best for trends and time-series.",
5
+ "orbitals": [
6
+ {
7
+ "name": "LineGraphItemOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-graphs",
11
+ "as": "Graph"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "LineGraphItem",
16
+ "persistence": "runtime",
17
+ "fields": [
18
+ {
19
+ "name": "id",
20
+ "type": "string",
21
+ "required": true
22
+ },
23
+ {
24
+ "name": "chartData",
25
+ "type": "array",
26
+ "default": [],
27
+ "items": {
28
+ "type": "object"
29
+ }
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "ref": "Graph.traits.GraphItemGraph",
36
+ "name": "LineGraphItemGraph",
37
+ "linkedEntity": "LineGraphItem",
38
+ "config": {
39
+ "chartType": "line"
40
+ }
41
+ }
42
+ ],
43
+ "pages": [
44
+ {
45
+ "name": "LineGraphPage",
46
+ "path": "/line-graph",
47
+ "traits": [
48
+ {
49
+ "ref": "LineGraphItemGraph"
50
+ }
51
+ ]
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "std-graphs-pie",
3
+ "version": "1.0.0",
4
+ "description": "Pie chart view. Embeds std-graphs with the pie chartType — categorical share-of-total. Best when you have ≤6 categories that sum to a meaningful whole.",
5
+ "orbitals": [
6
+ {
7
+ "name": "PieGraphItemOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-graphs",
11
+ "as": "Graph"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "PieGraphItem",
16
+ "persistence": "runtime",
17
+ "fields": [
18
+ {
19
+ "name": "id",
20
+ "type": "string",
21
+ "required": true
22
+ },
23
+ {
24
+ "name": "chartData",
25
+ "type": "array",
26
+ "default": [],
27
+ "items": {
28
+ "type": "object"
29
+ }
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "ref": "Graph.traits.GraphItemGraph",
36
+ "name": "PieGraphItemGraph",
37
+ "linkedEntity": "PieGraphItem",
38
+ "config": {
39
+ "chartType": "pie"
40
+ }
41
+ }
42
+ ],
43
+ "pages": [
44
+ {
45
+ "name": "PieGraphPage",
46
+ "path": "/pie-graph",
47
+ "traits": [
48
+ {
49
+ "ref": "PieGraphItemGraph"
50
+ }
51
+ ]
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ }