@dashspec/renderer 0.1.13 → 0.1.15
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 -1
- package/dist/{chunk-42YQDK6L.js → chunk-WRLIWT7F.js} +7 -2
- package/dist/chunk-WRLIWT7F.js.map +1 -0
- package/dist/{core-C6GFuH_O.d.ts → core-CLhuHvGm.d.ts} +72 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/schema.json +4 -0
- package/docs/data.md +1 -0
- package/docs/theming.md +2 -1
- package/package.json +1 -1
- package/dist/chunk-42YQDK6L.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,26 @@ under the new version.
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.1.15] - 2026-11-18
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Table `rowKey` may be a template combining fields (`"${row.heat}-${row.part}"`) when no single
|
|
22
|
+
field is unique, so `expand` opens only the clicked row.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- A `fit` card also shrinks when its content changes without the card resizing (fewer rows, an empty
|
|
27
|
+
state, a closed detail row); it measures again on content changes, not only on resize.
|
|
28
|
+
|
|
29
|
+
## [0.1.14] - 2026-11-18
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- Panel `style.variant`, and theme `widgets["Kind:variant"]`: style one panel of a kind differently
|
|
34
|
+
from the others (e.g. one compact table).
|
|
35
|
+
- Expression helper `first(list, field)`: the first item whose field is truthy.
|
|
36
|
+
|
|
17
37
|
## [0.1.13] - 2026-11-18
|
|
18
38
|
|
|
19
39
|
### Fixed
|
|
@@ -240,7 +260,9 @@ First public release.
|
|
|
240
260
|
never reach object prototypes, values inserted into Markdown are escaped, and custom
|
|
241
261
|
code runs in the sandbox by default. See [docs/security.md](docs/security.md).
|
|
242
262
|
|
|
243
|
-
[Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.
|
|
263
|
+
[Unreleased]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.15...HEAD
|
|
264
|
+
[0.1.15]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.14...v0.1.15
|
|
265
|
+
[0.1.14]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.13...v0.1.14
|
|
244
266
|
[0.1.13]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.12...v0.1.13
|
|
245
267
|
[0.1.12]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.11...v0.1.12
|
|
246
268
|
[0.1.11]: https://github.com/vaskar-nowpurchase/dashspec-renderer/compare/v0.1.10...v0.1.11
|
|
@@ -438,6 +438,8 @@ function createHelpers(t = {}) {
|
|
|
438
438
|
max: (...v) => v.flat().map(num2).reduce((a, b) => Math.max(a, b), Number.NEGATIVE_INFINITY),
|
|
439
439
|
sum: (list2, key) => Array.isArray(list2) ? list2.reduce((a, x) => a + num2(key ? x?.[key] : x) || a, 0) : 0,
|
|
440
440
|
/** First item of `list` whose `key` equals `value`. */
|
|
441
|
+
/** The first item whose `key` is truthy (e.g. waiting > 0), or undefined. */
|
|
442
|
+
first: (list2, key) => Array.isArray(list2) ? list2.find((x) => x && typeof x === "object" && Boolean(x[key])) : void 0,
|
|
441
443
|
lookup: (list2, key, value) => Array.isArray(list2) ? list2.find((x) => x && typeof x === "object" && x[key] === value) : void 0,
|
|
442
444
|
join: (list2, sep = ",") => Array.isArray(list2) ? list2.join(sep) : list2 === null || list2 === void 0 ? "" : String(list2),
|
|
443
445
|
lower: (v) => String(v ?? "").toLowerCase(),
|
|
@@ -1407,6 +1409,8 @@ var DataBinding = z7.union([
|
|
|
1407
1409
|
]);
|
|
1408
1410
|
var PanelStyle = z7.object({
|
|
1409
1411
|
tone: z7.enum(["default", "subtle", "accent", "plain"]).optional(),
|
|
1412
|
+
/** A name a theme can style this panel by: `theme.widgets["Table:compact"]` targets Tables with variant "compact". */
|
|
1413
|
+
variant: z7.string().regex(/^[A-Za-z][\w-]*$/).optional(),
|
|
1410
1414
|
padding: z7.union([z7.enum(["none", "compact", "normal", "roomy"]), z7.number().int().min(0).max(64)]).optional(),
|
|
1411
1415
|
hideHeader: z7.boolean().optional(),
|
|
1412
1416
|
minHeight: z7.number().int().min(0).optional(),
|
|
@@ -1826,7 +1830,7 @@ function migrateDocument(input, widgets = []) {
|
|
|
1826
1830
|
import { z as z10 } from "zod";
|
|
1827
1831
|
|
|
1828
1832
|
// src/version.ts
|
|
1829
|
-
var RENDERER_VERSION = "0.1.
|
|
1833
|
+
var RENDERER_VERSION = "0.1.15";
|
|
1830
1834
|
var parse2 = (v) => {
|
|
1831
1835
|
const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
|
|
1832
1836
|
return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
|
|
@@ -2980,6 +2984,7 @@ var schema = z25.object({
|
|
|
2980
2984
|
/** Per-column filters (columns with `filter`). "server": writes `ui.filters` ({ column: value }). */
|
|
2981
2985
|
filtering: z25.object({ enabled: z25.boolean().default(true), mode: z25.enum(["client", "server"]).default("client") }).strict().optional(),
|
|
2982
2986
|
sticky: z25.boolean().default(true),
|
|
2987
|
+
/** A field, or a template combining several ("${row.heat}-${row.part}") when no single field is unique. */
|
|
2983
2988
|
rowKey: z25.string().optional(),
|
|
2984
2989
|
/** Rows shown in grey, e.g. "row.pending == 0" (nothing to act on). */
|
|
2985
2990
|
rowMutedWhen: z25.string().optional(),
|
|
@@ -3485,4 +3490,4 @@ export {
|
|
|
3485
3490
|
RepeaterContract,
|
|
3486
3491
|
builtInWidgetChecks
|
|
3487
3492
|
};
|
|
3488
|
-
//# sourceMappingURL=chunk-
|
|
3493
|
+
//# sourceMappingURL=chunk-WRLIWT7F.js.map
|