@dashspec/renderer 0.1.4 → 0.1.5

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,25 @@ under the new version.
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.1.5] - 2026-11-18
18
+
19
+ ### Added
20
+
21
+ - Table `maxHeight`: rows grow up to this many px, then scroll (in a `fit` card they otherwise
22
+ set the card's height).
23
+ - Kpi `unitStyle: "value"`: the unit in the number's own type ("93.9%").
24
+ - Theme `scale.chip` (`radius`, `border`, `weight`, `paddingX`, `height`, `fontSize`) for status
25
+ chips; the defaults are the existing look.
26
+
27
+ ### Changed
28
+
29
+ - `fit` cards that start on the same grid row grow together, so a row keeps one height, and a
30
+ KPI's target chip stays at the bottom of a taller card.
31
+
32
+ ### Fixed
33
+
34
+ - A KPI's number turns the action colour on hover only when the panel has an `on.click` handler.
35
+
17
36
  ## [0.1.4] - 2026-11-18
18
37
 
19
38
  ### Added
@@ -123,7 +142,8 @@ First public release.
123
142
  never reach object prototypes, values inserted into Markdown are escaped, and custom
124
143
  code runs in the sandbox by default. See [docs/security.md](docs/security.md).
125
144
 
126
- [Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.4...HEAD
145
+ [Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.5...HEAD
146
+ [0.1.5]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.4...v0.1.5
127
147
  [0.1.4]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.3...v0.1.4
128
148
  [0.1.3]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.2...v0.1.3
129
149
  [0.1.2]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.1...v0.1.2
@@ -1808,7 +1808,7 @@ function migrateDocument(input, widgets = []) {
1808
1808
  import { z as z10 } from "zod";
1809
1809
 
1810
1810
  // src/version.ts
1811
- var RENDERER_VERSION = "0.1.4";
1811
+ var RENDERER_VERSION = "0.1.5";
1812
1812
  var parse2 = (v) => {
1813
1813
  const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
1814
1814
  return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
@@ -2739,6 +2739,8 @@ var KpiContract = {
2739
2739
  schema: z20.object({
2740
2740
  ...Common2,
2741
2741
  unit: z20.string().optional(),
2742
+ /** "small" (default): the unit in small text after the number; "value": in the number's own type ("93.9%"). */
2743
+ unitStyle: z20.enum(["small", "value"]).default("small"),
2742
2744
  format: Format.optional(),
2743
2745
  decimals: z20.number().int().min(0).max(6).optional(),
2744
2746
  /** Target or plan: a number, or a path in the datasource result. Shown in the footer and used for the status chip. */
@@ -2877,6 +2879,8 @@ var Agg = z25.enum(["sum", "avg", "min", "max", "count"]);
2877
2879
  var schema = z25.object({
2878
2880
  ...Common2,
2879
2881
  columns: z25.array(Column).optional(),
2882
+ /** Tallest the rows get, in px; past it they scroll. Default: the card's height. */
2883
+ maxHeight: z25.number().int().min(60).optional(),
2880
2884
  /** Columns from the data: a path in the datasource result to a list of { key, label }. */
2881
2885
  columnsFrom: z25.object({
2882
2886
  path: z25.string(),
@@ -3388,4 +3392,4 @@ export {
3388
3392
  RepeaterContract,
3389
3393
  builtInWidgetChecks
3390
3394
  };
3391
- //# sourceMappingURL=chunk-2HHYJ5WX.js.map
3395
+ //# sourceMappingURL=chunk-7J6WHLG6.js.map