@dudousxd/nestjs-catalog 0.4.1 → 0.5.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.
@@ -79,6 +79,22 @@ export interface DashboardCard {
79
79
  savedQueryId: string;
80
80
  /** Overrides the saved query's own title on this dashboard. */
81
81
  title?: string;
82
+ /**
83
+ * Overrides the saved query's chart library on this dashboard.
84
+ *
85
+ * Separate from the query's own choice because the two answer different
86
+ * questions. The query says how this ANSWER is best drawn, once, wherever it
87
+ * appears; the card says how it should look HERE, next to the other cards on
88
+ * this board. A dashboard that mixes two chart libraries' idea of a bar looks
89
+ * like two dashboards, and fixing that by editing the saved query would
90
+ * change it on every other board that uses it.
91
+ *
92
+ * Undefined falls back to the query's `visualization.library`, which in turn
93
+ * falls back to the built-in renderer. A name nobody registered degrades to
94
+ * the built-in rather than failing — a dashboard should come back plainer,
95
+ * not broken.
96
+ */
97
+ library?: string;
82
98
  /** 1–4, in a twelve-column grid. Kept coarse on purpose. */
83
99
  width: 1 | 2 | 3 | 4;
84
100
  position: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-catalog",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "A metadata registry for NestJS: object types, properties and relations, derived from your ORM and enriched with decorators.",
5
5
  "license": "MIT",
6
6
  "author": "Davide Carvalho",