@almadar/std 14.34.0 → 14.36.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-embedded-dashboard",
3
- "version": "1.1.0",
4
- "description": "std-embedded-dashboard — on-the-fly dashboard composer organism for embedding inside host products. Provides a 12-slot tiled layout scaffolded from std-dashboard-grid-layout. The host emits ITEMS_LOADED { data: [...] } on the bus; appended tile traits subscribe to it directly. Agents call dispatchOrbitalFactory('std-embedded-dashboard', 'DashboardOrbital', { entityName, config, extraTraits, traitOverrides }) — extraTraits append tile instances; traitOverrides.DashboardLayout.config.tileXTrait binds them to grid slots; unbound slots fall back to the org's Default* sample tiles (rendering a realistic standalone preview).",
3
+ "version": "1.2.0",
4
+ "description": "Use for any analytics/BI dashboard (KPIs + charts + filters + export). Prefer over domain organisms (CRUD apps); this composes tiles only.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "DashboardOrbital",
@@ -84,31 +84,31 @@
84
84
  "name": "DefaultKpiStats",
85
85
  "linkedEntity": "Dashboard",
86
86
  "config": {
87
- "title": "Key Metrics",
88
87
  "metrics": [
89
88
  {
90
- "trendPolarity": "higher-is-better",
91
- "format": "currency",
92
- "trend": 8.0,
93
89
  "label": "Revenue",
90
+ "variant": "success",
91
+ "trendPolarity": "higher-is-better",
94
92
  "trendFormat": "percent",
95
- "value": 142000.0,
96
93
  "icon": "trending-up",
97
- "variant": "success"
94
+ "value": 142000.0,
95
+ "trend": 8.0,
96
+ "format": "currency"
98
97
  },
99
98
  {
100
- "trend": 5.0,
101
- "format": "currency",
102
- "icon": "repeat",
103
99
  "variant": "primary",
104
- "value": 11833.0,
105
- "label": "MRR",
106
100
  "trendPolarity": "higher-is-better",
107
- "trendFormat": "percent"
101
+ "label": "MRR",
102
+ "trendFormat": "percent",
103
+ "format": "currency",
104
+ "trend": 5.0,
105
+ "value": 11833.0,
106
+ "icon": "repeat"
108
107
  },
109
108
  {
110
- "value": 248.0,
111
- "trendPolarity": "higher-is-better",
109
+ "icon": "users",
110
+ "variant": "info",
111
+ "format": "number",
112
112
  "sparklineData": [
113
113
  180.0,
114
114
  195.0,
@@ -118,24 +118,24 @@
118
118
  238.0,
119
119
  248.0
120
120
  ],
121
- "icon": "users",
122
121
  "trend": 12.0,
123
- "variant": "info",
124
- "format": "number",
122
+ "trendPolarity": "higher-is-better",
123
+ "value": 248.0,
125
124
  "label": "Customers",
126
125
  "trendFormat": "percent"
127
126
  },
128
127
  {
129
- "label": "Churn",
130
- "trend": 1.0,
131
- "format": "percent",
132
- "trendPolarity": "lower-is-better",
128
+ "trendFormat": "percent",
133
129
  "value": 2.0,
134
130
  "icon": "trending-down",
135
- "trendFormat": "percent",
136
- "variant": "warning"
131
+ "variant": "warning",
132
+ "label": "Churn",
133
+ "trendPolarity": "lower-is-better",
134
+ "trend": 1.0,
135
+ "format": "percent"
137
136
  }
138
- ]
137
+ ],
138
+ "title": "Key Metrics"
139
139
  }
140
140
  },
141
141
  {
@@ -143,11 +143,11 @@
143
143
  "name": "DefaultRevenueChart",
144
144
  "linkedEntity": "Dashboard",
145
145
  "config": {
146
- "showLegend": false,
147
- "title": "Revenue by Quarter",
148
146
  "height": 240.0,
149
147
  "subtitle": "Last 4 quarters",
150
- "chartType": "bar"
148
+ "showLegend": false,
149
+ "chartType": "bar",
150
+ "title": "Revenue by Quarter"
151
151
  }
152
152
  },
153
153
  {
@@ -155,11 +155,11 @@
155
155
  "name": "DefaultDistributionChart",
156
156
  "linkedEntity": "Dashboard",
157
157
  "config": {
158
+ "title": "Revenue Distribution",
159
+ "subtitle": "By segment",
158
160
  "chartType": "pie",
159
- "height": 240.0,
160
161
  "showLegend": true,
161
- "title": "Revenue Distribution",
162
- "subtitle": "By segment"
162
+ "height": 240.0
163
163
  }
164
164
  },
165
165
  {
@@ -167,9 +167,9 @@
167
167
  "name": "DefaultScatter",
168
168
  "linkedEntity": "Dashboard",
169
169
  "config": {
170
+ "subtitle": "Per customer",
170
171
  "title": "Spend vs Revenue",
171
- "height": 240.0,
172
- "subtitle": "Per customer"
172
+ "height": 240.0
173
173
  }
174
174
  },
175
175
  {
@@ -177,9 +177,9 @@
177
177
  "name": "DefaultDateRange",
178
178
  "linkedEntity": "Dashboard",
179
179
  "config": {
180
- "event": "DATE_RANGE_CHANGED",
180
+ "fromLabel": "From",
181
181
  "toLabel": "To",
182
- "fromLabel": "From"
182
+ "event": "DATE_RANGE_CHANGED"
183
183
  }
184
184
  },
185
185
  {
@@ -187,8 +187,8 @@
187
187
  "name": "DefaultExport",
188
188
  "linkedEntity": "Dashboard",
189
189
  "config": {
190
- "tileId": "dashboard",
191
- "event": "EXPORT_REQUESTED"
190
+ "event": "EXPORT_REQUESTED",
191
+ "tileId": "dashboard"
192
192
  }
193
193
  },
194
194
  {
@@ -196,7 +196,10 @@
196
196
  "name": "DashboardLayout",
197
197
  "linkedEntity": "Dashboard",
198
198
  "config": {
199
- "tile1Trait": "@trait.DefaultKpiStats",
199
+ "tile2Trait": "@trait.DefaultRevenueChart",
200
+ "tile4Trait": "@trait.DefaultScatter",
201
+ "appName": "Dashboard",
202
+ "minTileWidth": 320.0,
200
203
  "tile5Trait": "@trait.DefaultDateRange",
201
204
  "tile3Trait": "@trait.DefaultDistributionChart",
202
205
  "tile6Trait": "@trait.DefaultExport",
@@ -207,10 +210,7 @@
207
210
  "href": "/dashboard"
208
211
  }
209
212
  ],
210
- "appName": "Dashboard",
211
- "minTileWidth": 320.0,
212
- "tile2Trait": "@trait.DefaultRevenueChart",
213
- "tile4Trait": "@trait.DefaultScatter"
213
+ "tile1Trait": "@trait.DefaultKpiStats"
214
214
  }
215
215
  }
216
216
  ],