@dashspec/renderer 0.1.1 → 0.1.3
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 +21 -1
- package/dist/{chunk-ZUNMBDGH.js → chunk-HB2WSKUI.js} +13 -3
- package/dist/{chunk-ZUNMBDGH.js.map → chunk-HB2WSKUI.js.map} +1 -1
- package/dist/{core-DXRBVGyG.d.ts → core-uvLuoQ3X.d.ts} +7 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/docs/widgets.md +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,24 @@ under the new version.
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.1.3] - 2026-11-18
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- `valueAxis` on BarChart and LineChart: `min`, `max`, `atLeast` (the top is at least this and
|
|
22
|
+
grows when a value is higher, so drill-down levels share one scale) and `step` between ticks.
|
|
23
|
+
|
|
24
|
+
## [0.1.2] - 2026-11-18
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- A KPI with no value keeps its card: the title, the target line and its `emptyText` (or "—")
|
|
29
|
+
stay, instead of the panel's generic "No data" replacing the whole card.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- `empty: "widget"` on a widget definition: the widget draws its own empty state.
|
|
34
|
+
|
|
17
35
|
## [0.1.1] - 2026-11-18
|
|
18
36
|
|
|
19
37
|
### Fixed
|
|
@@ -85,6 +103,8 @@ First public release.
|
|
|
85
103
|
never reach object prototypes, values inserted into Markdown are escaped, and custom
|
|
86
104
|
code runs in the sandbox by default. See [docs/security.md](docs/security.md).
|
|
87
105
|
|
|
88
|
-
[Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.
|
|
106
|
+
[Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.3...HEAD
|
|
107
|
+
[0.1.3]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.2...v0.1.3
|
|
108
|
+
[0.1.2]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.1...v0.1.2
|
|
89
109
|
[0.1.1]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.0...v0.1.1
|
|
90
110
|
[0.1.0]: https://github.com/vaskar-nowpurchase/dashspec-renderer/releases/tag/v0.1.0
|
|
@@ -1805,7 +1805,7 @@ function migrateDocument(input, widgets = []) {
|
|
|
1805
1805
|
import { z as z10 } from "zod";
|
|
1806
1806
|
|
|
1807
1807
|
// src/version.ts
|
|
1808
|
-
var RENDERER_VERSION = "0.1.
|
|
1808
|
+
var RENDERER_VERSION = "0.1.3";
|
|
1809
1809
|
var parse2 = (v) => {
|
|
1810
1810
|
const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
|
|
1811
1811
|
return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
|
|
@@ -3074,7 +3074,17 @@ var cartesianProps = {
|
|
|
3074
3074
|
decimals: z28.number().int().min(0).max(6).optional(),
|
|
3075
3075
|
/** A number, or a path in the datasource result. */
|
|
3076
3076
|
target: z28.union([z28.number(), z28.string()]).optional(),
|
|
3077
|
-
targetLabel: z28.string().optional()
|
|
3077
|
+
targetLabel: z28.string().optional(),
|
|
3078
|
+
/**
|
|
3079
|
+
* The value axis: fixed `min` / `max`, `atLeast` (the top is at least this and grows when a value is higher, so
|
|
3080
|
+
* every drill level shares one scale), and `step` between ticks.
|
|
3081
|
+
*/
|
|
3082
|
+
valueAxis: z28.object({
|
|
3083
|
+
min: z28.number().optional(),
|
|
3084
|
+
max: z28.number().optional(),
|
|
3085
|
+
atLeast: z28.number().optional(),
|
|
3086
|
+
step: z28.number().positive().optional()
|
|
3087
|
+
}).strict().optional()
|
|
3078
3088
|
};
|
|
3079
3089
|
var BarChartContract = {
|
|
3080
3090
|
kind: "BarChart",
|
|
@@ -3369,4 +3379,4 @@ export {
|
|
|
3369
3379
|
RepeaterContract,
|
|
3370
3380
|
builtInWidgetChecks
|
|
3371
3381
|
};
|
|
3372
|
-
//# sourceMappingURL=chunk-
|
|
3382
|
+
//# sourceMappingURL=chunk-HB2WSKUI.js.map
|