@dashspec/renderer 0.1.35 → 0.1.37
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 +19 -0
- package/dist/{chunk-42NZL3WV.js → chunk-7II42B2U.js} +11 -3
- package/dist/chunk-7II42B2U.js.map +1 -0
- package/dist/{core-Dw1UQ3Me.d.ts → core-CMrDMelI.d.ts} +17 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.js +39 -7
- package/dist/index.js.map +1 -1
- package/dist/schema.json +3 -0
- package/docs/json-format.md +1 -0
- package/docs/widgets.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-42NZL3WV.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,25 @@ under the new version.
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.1.37] - 2026-11-19
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- A `link` Button got a coloured border on hover (the plain button's hover style); it now only underlines.
|
|
22
|
+
|
|
23
|
+
## [0.1.36] - 2026-11-19
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- Grid `fillRows`: when a panel is hidden, the panels left on its row share the row's width. Off by default.
|
|
28
|
+
- Charts: `average` (a number or a path; the line, `${avg}` and colorBy use it instead of the computed average),
|
|
29
|
+
`toneField` + `toneMap` (bar colours from a field of the data).
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Inside a dashboard, a mouse click no longer leaves a focus outline (a host's global `:focus` style); keyboard
|
|
34
|
+
focus still shows one.
|
|
35
|
+
|
|
17
36
|
## [0.1.35] - 2026-11-19
|
|
18
37
|
|
|
19
38
|
### 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.
|
|
1845
|
+
var RENDERER_VERSION = "0.1.37";
|
|
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-
|
|
3527
|
+
//# sourceMappingURL=chunk-7II42B2U.js.map
|