@dashspec/renderer 0.1.35 → 0.1.36

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.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,19 @@ under the new version.
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.1.36] - 2026-11-19
18
+
19
+ ### Added
20
+
21
+ - Grid `fillRows`: when a panel is hidden, the panels left on its row share the row's width. Off by default.
22
+ - Charts: `average` (a number or a path; the line, `${avg}` and colorBy use it instead of the computed average),
23
+ `toneField` + `toneMap` (bar colours from a field of the data).
24
+
25
+ ### Fixed
26
+
27
+ - Inside a dashboard, a mouse click no longer leaves a focus outline (a host's global `:focus` style); keyboard
28
+ focus still shows one.
29
+
17
30
  ## [0.1.35] - 2026-11-19
18
31
 
19
32
  ### Fixed
@@ -1288,7 +1288,9 @@ var Grid = z5.object({
1288
1288
  * Pixel-exact heights for viewers: `fit` panels get exactly their content's height (not rounded up to whole
1289
1289
  * rows), and the gap below every panel stays `gap`. Authored sizes keep their meaning. Off by default.
1290
1290
  */
1291
- exactHeights: z5.boolean().optional()
1291
+ exactHeights: z5.boolean().optional(),
1292
+ /** When a panel is hidden, the others that start on its row share the row's width (a row of cards stays full). */
1293
+ fillRows: z5.boolean().optional()
1292
1294
  }).strict();
1293
1295
 
1294
1296
  // src/core/schema/modals.ts
@@ -1840,7 +1842,7 @@ function migrateDocument(input, widgets = []) {
1840
1842
  import { z as z10 } from "zod";
1841
1843
 
1842
1844
  // src/version.ts
1843
- var RENDERER_VERSION = "0.1.35";
1845
+ var RENDERER_VERSION = "0.1.36";
1844
1846
  var parse2 = (v) => {
1845
1847
  const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
1846
1848
  return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
@@ -3193,6 +3195,12 @@ var cartesianProps = {
3193
3195
  labels: z28.record(z28.string()).optional(),
3194
3196
  /** Colour per y field or series value; the rest keep the theme's series order. */
3195
3197
  seriesColors: z28.record(z28.string()).optional(),
3198
+ /** Average for the line and colorBy: a number or a path in the datasource result; computed when left out. */
3199
+ average: z28.union([z28.number(), z28.string()]).optional(),
3200
+ /** Colour each bar from this row field (single series), mapped by toneMap. */
3201
+ toneField: z28.string().optional(),
3202
+ /** toneField values → "good", "bad", "partial" or a CSS colour. */
3203
+ toneMap: z28.record(z28.string()).optional(),
3196
3204
  /** "html": the series legend as a list in the header row instead of inside the chart. */
3197
3205
  legendStyle: z28.enum(["chart", "html"]).optional(),
3198
3206
  /** No value label on bars whose value is 0. */
@@ -3516,4 +3524,4 @@ export {
3516
3524
  RepeaterContract,
3517
3525
  builtInWidgetChecks
3518
3526
  };
3519
- //# sourceMappingURL=chunk-42NZL3WV.js.map
3527
+ //# sourceMappingURL=chunk-AB4M257L.js.map