@dashspec/renderer 0.1.4 → 0.1.6

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,34 @@ under the new version.
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.1.6] - 2026-11-18
18
+
19
+ ### Added
20
+
21
+ - `ui.FilterBar`: register your own whole filter bar (any layout and design) on the provider, a
22
+ design system or the renderer. It gets the shown filters with their definitions, their values,
23
+ `setFilter`, `reset`, `isDefault`, the views with `setView`, and `renderControl(name)` to reuse
24
+ DashSpec's control for one filter. New types `UIFilterBarProps`, `UIFilterDef`.
25
+
26
+ ## [0.1.5] - 2026-11-18
27
+
28
+ ### Added
29
+
30
+ - Table `maxHeight`: rows grow up to this many px, then scroll (in a `fit` card they otherwise
31
+ set the card's height).
32
+ - Kpi `unitStyle: "value"`: the unit in the number's own type ("93.9%").
33
+ - Theme `scale.chip` (`radius`, `border`, `weight`, `paddingX`, `height`, `fontSize`) for status
34
+ chips; the defaults are the existing look.
35
+
36
+ ### Changed
37
+
38
+ - `fit` cards that start on the same grid row grow together, so a row keeps one height, and a
39
+ KPI's target chip stays at the bottom of a taller card.
40
+
41
+ ### Fixed
42
+
43
+ - A KPI's number turns the action colour on hover only when the panel has an `on.click` handler.
44
+
17
45
  ## [0.1.4] - 2026-11-18
18
46
 
19
47
  ### Added
@@ -123,7 +151,9 @@ First public release.
123
151
  never reach object prototypes, values inserted into Markdown are escaped, and custom
124
152
  code runs in the sandbox by default. See [docs/security.md](docs/security.md).
125
153
 
126
- [Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.4...HEAD
154
+ [Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.6...HEAD
155
+ [0.1.6]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.5...v0.1.6
156
+ [0.1.5]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.4...v0.1.5
127
157
  [0.1.4]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.3...v0.1.4
128
158
  [0.1.3]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.2...v0.1.3
129
159
  [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.6";
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-U4JCC3MX.js.map