@dashspec/renderer 0.1.17 → 0.1.19

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,26 @@ under the new version.
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.1.19] - 2026-11-18
18
+
19
+ ### Added
20
+
21
+ - Tiles `items`: fixed tiles instead of data rows (e.g. from fields of one object), whose values can
22
+ be templates.
23
+
24
+ ## [0.1.18] - 2026-11-18
25
+
26
+ ### Added
27
+
28
+ - Datasource `enabled`: an expression; the source loads only while it is true (e.g. a row's detail
29
+ that needs a picked row). While false nothing is requested and an earlier result is kept.
30
+
31
+ ### Fixed
32
+
33
+ - Cards with `fit` no longer flicker: measurements are batched per frame, number animations don't
34
+ trigger them, and a card shrinks only if it is still smaller a moment later.
35
+ - Chart drill-down replay without `clear()` (0.1.17) is kept; tables get a thin scrollbar.
36
+
17
37
  ## [0.1.17] - 2026-11-18
18
38
 
19
39
  ### Fixed
@@ -277,7 +297,9 @@ First public release.
277
297
  never reach object prototypes, values inserted into Markdown are escaped, and custom
278
298
  code runs in the sandbox by default. See [docs/security.md](docs/security.md).
279
299
 
280
- [Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.17...HEAD
300
+ [Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.19...HEAD
301
+ [0.1.19]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.18...v0.1.19
302
+ [0.1.18]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.17...v0.1.18
281
303
  [0.1.17]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.16...v0.1.17
282
304
  [0.1.16]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.15...v0.1.16
283
305
  [0.1.15]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.14...v0.1.15
@@ -1166,6 +1166,11 @@ var TransformStep = dispatch("op", steps, (v) => {
1166
1166
  var Common = {
1167
1167
  description: z4.string().optional(),
1168
1168
  load: z4.enum(["onLoad", "lazy", "manual"]).optional(),
1169
+ /**
1170
+ * Load only while this expression is true, e.g. "panels.heats.ui.expanded != null" (a detail that needs a picked
1171
+ * row). While false nothing is requested and an earlier result is kept.
1172
+ */
1173
+ enabled: Expression.optional(),
1169
1174
  refresh: z4.object({
1170
1175
  every: Duration.optional(),
1171
1176
  whenVisible: z4.boolean().optional(),
@@ -1830,7 +1835,7 @@ function migrateDocument(input, widgets = []) {
1830
1835
  import { z as z10 } from "zod";
1831
1836
 
1832
1837
  // src/version.ts
1833
- var RENDERER_VERSION = "0.1.17";
1838
+ var RENDERER_VERSION = "0.1.19";
1834
1839
  var parse2 = (v) => {
1835
1840
  const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
1836
1841
  return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
@@ -3007,6 +3012,8 @@ var TilesContract = {
3007
3012
  version: 1,
3008
3013
  schema: z26.object({
3009
3014
  ...Common2,
3015
+ /** Fixed tiles instead of data rows: objects whose fields `label`, `value`, `caption`… read; values can be templates. */
3016
+ items: z26.array(z26.record(z26.unknown())).optional(),
3010
3017
  label: z26.string(),
3011
3018
  /** A field, or a template over the tile's `row` (e.g. "${row.value ?? row.passed}"). */
3012
3019
  value: z26.string(),
@@ -3490,4 +3497,4 @@ export {
3490
3497
  RepeaterContract,
3491
3498
  builtInWidgetChecks
3492
3499
  };
3493
- //# sourceMappingURL=chunk-GIG2M37B.js.map
3500
+ //# sourceMappingURL=chunk-NBE6ESGQ.js.map