@dashspec/renderer 0.1.27 → 0.1.29
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 +23 -0
- package/dist/{chunk-4OUWLEBB.js → chunk-5QEL4G7I.js} +13 -3
- package/dist/{chunk-4OUWLEBB.js.map → chunk-5QEL4G7I.js.map} +1 -1
- package/dist/{core-BHAqRR6L.d.ts → core-DXB9suSF.d.ts} +1 -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 +46 -13
- package/dist/index.js.map +1 -1
- package/docs/styling-hooks.md +1 -1
- package/docs/theming.md +1 -1
- package/docs/widgets.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,29 @@ under the new version.
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.1.29] - 2026-11-19
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- A panel's `subtitle` (a documented common prop) was never drawn; it now shows under the title as `.ds-panel-subtitle`.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- Theme `scale.control.valueColor` / `valueWeight`: the value of a select without a label (default: primary colour, 500).
|
|
26
|
+
|
|
27
|
+
## [0.1.28] - 2026-11-19
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- Charts: `legendStyle: "html"` (multi-series legend as a list in the header row), `hideZeroLabels`,
|
|
32
|
+
`maxDecimals` (value labels without trailing zeros), `valueAxis.minStep` (e.g. whole-number ticks).
|
|
33
|
+
- Panels: `liveText` replaces the live badge text; `{time}` (HH:MM) and `{ago}` are filled.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- Chart text (axes, value labels, tooltips) uses the theme's `label` type role family. The default role is the
|
|
38
|
+
body font, so default charts look the same.
|
|
39
|
+
|
|
17
40
|
## [0.1.27] - 2026-11-19
|
|
18
41
|
|
|
19
42
|
### Fixed
|
|
@@ -1835,7 +1835,7 @@ function migrateDocument(input, widgets = []) {
|
|
|
1835
1835
|
import { z as z10 } from "zod";
|
|
1836
1836
|
|
|
1837
1837
|
// src/version.ts
|
|
1838
|
-
var RENDERER_VERSION = "0.1.
|
|
1838
|
+
var RENDERER_VERSION = "0.1.29";
|
|
1839
1839
|
var parse2 = (v) => {
|
|
1840
1840
|
const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
|
|
1841
1841
|
return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
|
|
@@ -2607,6 +2607,8 @@ var Common2 = {
|
|
|
2607
2607
|
meta: z12.string().optional(),
|
|
2608
2608
|
/** Shows "● Live, updated just now" from the datasource's last update (amber when a refresh failed). */
|
|
2609
2609
|
live: z12.boolean().optional(),
|
|
2610
|
+
/** Text of the live badge instead of "Live, updated …": `{time}` is the last update as HH:MM, `{ago}` as "2 min ago". */
|
|
2611
|
+
liveText: z12.string().optional(),
|
|
2610
2612
|
data: z12.unknown().optional(),
|
|
2611
2613
|
/** Anything the underlying library supports, merged last. */
|
|
2612
2614
|
options: z12.record(z12.unknown()).optional(),
|
|
@@ -3186,6 +3188,12 @@ var cartesianProps = {
|
|
|
3186
3188
|
labels: z28.record(z28.string()).optional(),
|
|
3187
3189
|
/** Colour per y field or series value; the rest keep the theme's series order. */
|
|
3188
3190
|
seriesColors: z28.record(z28.string()).optional(),
|
|
3191
|
+
/** "html": the series legend as a list in the header row instead of inside the chart. */
|
|
3192
|
+
legendStyle: z28.enum(["chart", "html"]).optional(),
|
|
3193
|
+
/** No value label on bars whose value is 0. */
|
|
3194
|
+
hideZeroLabels: z28.boolean().optional(),
|
|
3195
|
+
/** Value labels with at most this many decimals, trailing zeros dropped. */
|
|
3196
|
+
maxDecimals: z28.number().int().min(0).max(6).optional(),
|
|
3189
3197
|
unit: z28.string().optional(),
|
|
3190
3198
|
format: Format.optional(),
|
|
3191
3199
|
decimals: z28.number().int().min(0).max(6).optional(),
|
|
@@ -3202,7 +3210,9 @@ var cartesianProps = {
|
|
|
3202
3210
|
min: z28.number().optional(),
|
|
3203
3211
|
max: z28.number().optional(),
|
|
3204
3212
|
atLeast: z28.number().optional(),
|
|
3205
|
-
step: z28.number().positive().optional()
|
|
3213
|
+
step: z28.number().positive().optional(),
|
|
3214
|
+
/** Smallest step between ticks, e.g. 1 for whole-number counts. */
|
|
3215
|
+
minStep: z28.number().positive().optional()
|
|
3206
3216
|
}).strict().optional()
|
|
3207
3217
|
};
|
|
3208
3218
|
var BarChartContract = {
|
|
@@ -3501,4 +3511,4 @@ export {
|
|
|
3501
3511
|
RepeaterContract,
|
|
3502
3512
|
builtInWidgetChecks
|
|
3503
3513
|
};
|
|
3504
|
-
//# sourceMappingURL=chunk-
|
|
3514
|
+
//# sourceMappingURL=chunk-5QEL4G7I.js.map
|