@dashspec/renderer 0.1.42 → 0.1.44
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/{FlowMapView-BSTKU7D4.js → FlowMapView-7ROMAXSY.js} +20 -20
- package/dist/FlowMapView-7ROMAXSY.js.map +1 -0
- package/dist/{chunk-O4BYNRCA.js → chunk-HAYQEYMT.js} +5 -3
- package/dist/chunk-HAYQEYMT.js.map +1 -0
- package/dist/{core-B0gU-OwN.d.ts → core-BoII3OIB.d.ts} +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +625 -619
- package/dist/index.js.map +1 -1
- package/dist/schema.json +3 -0
- package/docs/json-format.md +1 -1
- package/package.json +1 -1
- package/dist/FlowMapView-BSTKU7D4.js.map +0 -1
- package/dist/chunk-O4BYNRCA.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.44] - 2026-11-19
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- `Container` runs its `on.click` (a selectable card made of atoms); it is then one keyboard button.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- `FlowMap` used the class `ds-flow`, which the grid's narrow (phone) layout also uses: the narrow layout lost its
|
|
26
|
+
gaps and wrapping, and drawers looked cramped. The FlowMap's classes are now `ds-flowmap-*`.
|
|
27
|
+
- `FlowMap` grows with its drawing in the narrow layout too.
|
|
28
|
+
|
|
29
|
+
## [0.1.43] - 2026-11-19
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- `DateRange` filters take `single: true`: the calendar picks one date (from = to); the presets stay (e.g. Today,
|
|
34
|
+
Yesterday or a date).
|
|
35
|
+
|
|
17
36
|
## [0.1.42] - 2026-11-19
|
|
18
37
|
|
|
19
38
|
### Added
|
|
@@ -170,7 +170,7 @@ function MarkerShape({ m, x, y, dim }) {
|
|
|
170
170
|
m.color,
|
|
171
171
|
m.shape === "diamond" ? "var(--ds-color-status-good-solid)" : "var(--ds-color-action-primary)"
|
|
172
172
|
);
|
|
173
|
-
const common = { className: "ds-
|
|
173
|
+
const common = { className: "ds-flowmap-shape", fill, style: { "--ds-flowmap-fill": fill } };
|
|
174
174
|
if (m.shape === "diamond") {
|
|
175
175
|
const r = s / 2;
|
|
176
176
|
return /* @__PURE__ */ jsx("path", { ...common, d: `M ${x} ${y - r} L ${x + r} ${y} L ${x} ${y + r} L ${x - r} ${y} Z` });
|
|
@@ -199,11 +199,11 @@ function Chip({ x, y, value, unit, tone }) {
|
|
|
199
199
|
}
|
|
200
200
|
}, [value, unit]);
|
|
201
201
|
const width = w + CHIP_PAD * 2;
|
|
202
|
-
return /* @__PURE__ */ jsxs("g", { className: "ds-
|
|
202
|
+
return /* @__PURE__ */ jsxs("g", { className: "ds-flowmap-chip", "data-tone": tone, children: [
|
|
203
203
|
/* @__PURE__ */ jsx("rect", { x: x - width / 2, y: y + CHIP_TOP, width, height: CHIP_H, rx: 4 }),
|
|
204
204
|
/* @__PURE__ */ jsxs("text", { ref, x, y: y + CHIP_TOP + CHIP_H / 2, textAnchor: "middle", dominantBaseline: "central", children: [
|
|
205
|
-
/* @__PURE__ */ jsx("tspan", { className: "ds-
|
|
206
|
-
unit ? /* @__PURE__ */ jsx("tspan", { className: "ds-
|
|
205
|
+
/* @__PURE__ */ jsx("tspan", { className: "ds-flowmap-chip-value", children: value }),
|
|
206
|
+
unit ? /* @__PURE__ */ jsx("tspan", { className: "ds-flowmap-chip-unit", dx: CHIP_GAP, children: unit }) : null
|
|
207
207
|
] })
|
|
208
208
|
] });
|
|
209
209
|
}
|
|
@@ -232,7 +232,7 @@ function HoverCard({
|
|
|
232
232
|
ref.current = el;
|
|
233
233
|
if (el && !host) setHost(el.closest(".ds-root"));
|
|
234
234
|
},
|
|
235
|
-
className: "ds-
|
|
235
|
+
className: "ds-flowmap-hover",
|
|
236
236
|
role: "tooltip",
|
|
237
237
|
style: { left: pos.left, top: pos.top },
|
|
238
238
|
onMouseEnter: onEnter,
|
|
@@ -304,7 +304,7 @@ function FlowMapView({ spec, data, emit, helpers, renderSlot }) {
|
|
|
304
304
|
const legendItems = [
|
|
305
305
|
...Object.entries(markers).filter(([, m]) => m.legend).map(([kind, m]) => ({ kind, label: m.legend, m }))
|
|
306
306
|
];
|
|
307
|
-
const legend = spec.legend && (legendItems.length || spec.attention?.legend) ? /* @__PURE__ */ jsxs("ul", { className: "ds-
|
|
307
|
+
const legend = spec.legend && (legendItems.length || spec.attention?.legend) ? /* @__PURE__ */ jsxs("ul", { className: "ds-flowmap-legend", children: [
|
|
308
308
|
legendItems.map((l) => /* @__PURE__ */ jsxs("li", { children: [
|
|
309
309
|
/* @__PURE__ */ jsx("svg", { width: "22", height: "22", viewBox: "-11 -11 22 22", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
310
310
|
MarkerShape,
|
|
@@ -318,7 +318,7 @@ function FlowMapView({ spec, data, emit, helpers, renderSlot }) {
|
|
|
318
318
|
l.label
|
|
319
319
|
] }, l.kind)),
|
|
320
320
|
anyUntracked && spec.untrackedLegend ? /* @__PURE__ */ jsxs("li", { "data-kind": "untracked", children: [
|
|
321
|
-
/* @__PURE__ */ jsx("svg", { width: "22", height: "22", viewBox: "-11 -11 22 22", "aria-hidden": "true", children: /* @__PURE__ */ jsx("circle", { className: "ds-
|
|
321
|
+
/* @__PURE__ */ jsx("svg", { width: "22", height: "22", viewBox: "-11 -11 22 22", "aria-hidden": "true", children: /* @__PURE__ */ jsx("circle", { className: "ds-flowmap-untracked", r: 8 }) }),
|
|
322
322
|
spec.untrackedLegend
|
|
323
323
|
] }) : null,
|
|
324
324
|
spec.attention?.legend ? /* @__PURE__ */ jsxs("li", { "data-kind": "attention", children: [
|
|
@@ -345,23 +345,23 @@ function FlowMapView({ spec, data, emit, helpers, renderSlot }) {
|
|
|
345
345
|
const s = byId.get(id);
|
|
346
346
|
return String(spec.siteLabel ? read(spec.siteLabel, s?.row, helpers) ?? site : site);
|
|
347
347
|
};
|
|
348
|
-
return /* @__PURE__ */ jsxs("div", { className: "ds-
|
|
348
|
+
return /* @__PURE__ */ jsxs("div", { className: "ds-flowmap", ref: findHead, children: [
|
|
349
349
|
head && legend ? createPortal(legend, head) : legend,
|
|
350
|
-
/* @__PURE__ */ jsx("div", { className: "ds-
|
|
350
|
+
/* @__PURE__ */ jsx("div", { className: "ds-flowmap-scroll", children: /* @__PURE__ */ jsxs(
|
|
351
351
|
"svg",
|
|
352
352
|
{
|
|
353
|
-
className: "ds-
|
|
353
|
+
className: "ds-flowmap-svg",
|
|
354
354
|
viewBox: `0 0 ${layout.width} ${layout.height}`,
|
|
355
355
|
style: { maxWidth: layout.width, minWidth: spec.minWidth },
|
|
356
356
|
"data-inspecting": inspecting || void 0,
|
|
357
357
|
role: "group",
|
|
358
358
|
"aria-label": spec.title ?? "Flow",
|
|
359
359
|
children: [
|
|
360
|
-
layout.tracks.map((t) => /* @__PURE__ */ jsx("path", { className: "ds-
|
|
360
|
+
layout.tracks.map((t) => /* @__PURE__ */ jsx("path", { className: "ds-flowmap-track", "data-dashed": t.dashed || void 0, d: t.d }, t.d)),
|
|
361
361
|
layout.chevrons.map((c) => /* @__PURE__ */ jsx(
|
|
362
362
|
"path",
|
|
363
363
|
{
|
|
364
|
-
className: "ds-
|
|
364
|
+
className: "ds-flowmap-chevron",
|
|
365
365
|
d: `M ${c.x - 2.5 * c.dir} ${c.y - 4} L ${c.x + 2.5 * c.dir} ${c.y} L ${c.x - 2.5 * c.dir} ${c.y + 4}`
|
|
366
366
|
},
|
|
367
367
|
`${c.x}-${c.y}`
|
|
@@ -372,7 +372,7 @@ function FlowMapView({ spec, data, emit, helpers, renderSlot }) {
|
|
|
372
372
|
const w = label.length * 6 + 16;
|
|
373
373
|
const lines = wrapFlowLabel(s?.label ?? "", t.id === selected).length;
|
|
374
374
|
const top = t.y - TAG_TOP - (lines - 1) * LABEL_LINE;
|
|
375
|
-
return /* @__PURE__ */ jsxs("g", { className: "ds-
|
|
375
|
+
return /* @__PURE__ */ jsxs("g", { className: "ds-flowmap-tag", "data-dim": inspecting || void 0, children: [
|
|
376
376
|
/* @__PURE__ */ jsx("rect", { x: t.x - w / 2, y: top, width: w, height: TAG_H, rx: TAG_H / 2 }),
|
|
377
377
|
/* @__PURE__ */ jsx("text", { x: t.x, y: top + TAG_H / 2, textAnchor: "middle", dominantBaseline: "central", children: label })
|
|
378
378
|
] }, t.id);
|
|
@@ -397,7 +397,7 @@ function FlowMapView({ spec, data, emit, helpers, renderSlot }) {
|
|
|
397
397
|
return /* @__PURE__ */ jsxs(
|
|
398
398
|
"g",
|
|
399
399
|
{
|
|
400
|
-
className: "ds-
|
|
400
|
+
className: "ds-flowmap-step",
|
|
401
401
|
role: "button",
|
|
402
402
|
tabIndex: s.tracked ? 0 : -1,
|
|
403
403
|
"aria-label": `${s.label}${s.tracked ? `, ${s.value}${s.unit ? ` ${s.unit}` : ""}` : ""}`,
|
|
@@ -411,7 +411,7 @@ function FlowMapView({ spec, data, emit, helpers, renderSlot }) {
|
|
|
411
411
|
onMouseEnter: (e) => {
|
|
412
412
|
if (!s.tracked || inspecting) return;
|
|
413
413
|
keep();
|
|
414
|
-
const hit = e.currentTarget.querySelector(".ds-
|
|
414
|
+
const hit = e.currentTarget.querySelector(".ds-flowmap-hit");
|
|
415
415
|
setHover({ id: s.id, rect: (hit ?? e.currentTarget).getBoundingClientRect() });
|
|
416
416
|
emit("hover", "step", { datum: s.row, value: s.id });
|
|
417
417
|
},
|
|
@@ -431,13 +431,13 @@ function FlowMapView({ spec, data, emit, helpers, renderSlot }) {
|
|
|
431
431
|
}
|
|
432
432
|
},
|
|
433
433
|
children: [
|
|
434
|
-
/* @__PURE__ */ jsx("text", { className: "ds-
|
|
435
|
-
s.attention ? spec.attention?.halo ? /* @__PURE__ */ jsx(Pic, { img: spec.attention.halo, x: p.x, y: p.y, dim, className: "ds-
|
|
434
|
+
/* @__PURE__ */ jsx("text", { className: "ds-flowmap-label", textAnchor: "middle", "data-selected": isSel || void 0, children: lines.map((line, i) => /* @__PURE__ */ jsx("tspan", { x: p.x, y: firstY + i * lineH, children: line }, `${i}-${line}`)) }),
|
|
435
|
+
s.attention ? spec.attention?.halo ? /* @__PURE__ */ jsx(Pic, { img: spec.attention.halo, x: p.x, y: p.y, dim, className: "ds-flowmap-halo" }) : /* @__PURE__ */ jsx("circle", { className: "ds-flowmap-halo", cx: p.x, cy: p.y, r: 22, fill: attnColor, opacity: 0.14 }) : null,
|
|
436
436
|
isSel && !s.attention ? spec.selection?.halo ? /* @__PURE__ */ jsx(Pic, { img: spec.selection.halo, x: p.x, y: p.y }) : /* @__PURE__ */ jsx("circle", { cx: p.x, cy: p.y, r: 22, fill: selColor, opacity: 0.14 }) : null,
|
|
437
|
-
s.tracked ? /* @__PURE__ */ jsx(MarkerShape, { m, x: p.x, y: p.y, dim }) : /* @__PURE__ */ jsx("circle", { className: "ds-
|
|
437
|
+
s.tracked ? /* @__PURE__ */ jsx(MarkerShape, { m, x: p.x, y: p.y, dim }) : /* @__PURE__ */ jsx("circle", { className: "ds-flowmap-untracked", cx: p.x, cy: p.y, r: 9 }),
|
|
438
438
|
s.attention ? ring ? /* @__PURE__ */ jsx(Pic, { img: ring, x: p.x, y: p.y, dim }) : /* @__PURE__ */ jsx("circle", { cx: p.x, cy: p.y, r: 15, fill: "none", stroke: attnColor, strokeWidth: 2.5 }) : null,
|
|
439
439
|
isSel && !s.attention || hover?.id === s.id && !inspecting ? spec.selection?.ring ? /* @__PURE__ */ jsx(Pic, { img: spec.selection.ring, x: p.x, y: p.y }) : /* @__PURE__ */ jsx("circle", { cx: p.x, cy: p.y, r: 16, fill: "none", stroke: selColor, strokeWidth: 2.5 }) : null,
|
|
440
|
-
/* @__PURE__ */ jsx("circle", { className: "ds-
|
|
440
|
+
/* @__PURE__ */ jsx("circle", { className: "ds-flowmap-hit", cx: p.x, cy: p.y, r: 22 }),
|
|
441
441
|
s.tracked ? /* @__PURE__ */ jsx(Chip, { x: p.x, y: p.y, value: s.value, unit: s.unit, tone: chipTone }) : null
|
|
442
442
|
]
|
|
443
443
|
},
|
|
@@ -455,4 +455,4 @@ export {
|
|
|
455
455
|
flowColor,
|
|
456
456
|
wrapFlowLabel
|
|
457
457
|
};
|
|
458
|
-
//# sourceMappingURL=FlowMapView-
|
|
458
|
+
//# sourceMappingURL=FlowMapView-7ROMAXSY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/widgets/builtins/FlowMapView.tsx","../src/widgets/shared/flowLayout.ts"],"sourcesContent":["import {\n type CSSProperties,\n type ReactNode,\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { scope } from \"../../core/expr/evaluate\";\nimport { interpolate } from \"../../core/expr/template\";\nimport { evalOver } from \"../shared/chips\";\nimport { type PlacedStep, layoutFlow } from \"../shared/flowLayout\";\nimport { asRows, field } from \"../shared/format\";\nimport { safeImageSrc } from \"../shared/safeSrc\";\nimport type { WidgetProps } from \"../types\";\nimport type { FlowMapProps } from \"./FlowMap\";\n\ntype Obj = Record<string, unknown>;\ntype Img = { src: string; dimmedSrc?: string | undefined; size?: number | undefined };\ntype MarkerSpec = {\n shape?: \"circle\" | \"diamond\" | \"square\" | \"triangle\" | undefined;\n color?: string | undefined;\n size?: number | undefined;\n image?: Img | undefined;\n legend?: string | undefined;\n chipTone?: string | undefined;\n};\n\n/** Labels: centred, at most this wide before wrapping, their last line this far above the marker. */\nconst LABEL_W = 136;\nconst LABEL_CHAR_W = 6.4;\nconst LABEL_GAP = 20;\nconst LABEL_LINE = 17;\nconst LABEL_LINE_SELECTED = 19;\n/** The value chip: its top below the marker centre, height, padding. */\nconst CHIP_TOP = 18;\nconst CHIP_H = 25;\nconst CHIP_PAD = 10;\nconst CHIP_GAP = 4;\n/** The site tag: its top above the step, height. */\nconst TAG_TOP = 60;\nconst TAG_H = 17;\n/** The pointer may move from a step to its hover card in this time. */\nconst CLOSE_DELAY = 150;\n\n/** A theme colour path (\"status.good.solid\") becomes its CSS variable; anything else is a CSS colour. */\nexport function flowColor(c: string | undefined, fallback: string): string {\n if (!c) return fallback;\n if (/^[a-z]+(\\.[a-zA-Z]+)+$/.test(c))\n return `var(--ds-color-${c\n .split(\".\")\n .map((p) => p.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`))\n .join(\"-\")})`;\n return /^[#a-zA-Z0-9(),.%\\s-]+$/.test(c) ? c : fallback;\n}\n\n/** Greedy wrap to the label box (\"Mould Cooling &\" / \"Knockout\"). */\nexport function wrapFlowLabel(label: string, oneLine: boolean): string[] {\n if (oneLine) return [label];\n const lines: string[] = [];\n for (const word of label.split(\" \")) {\n const last = lines[lines.length - 1];\n if (last !== undefined && (last.length + 1 + word.length) * LABEL_CHAR_W <= LABEL_W)\n lines[lines.length - 1] = `${last} ${word}`;\n else lines.push(word);\n }\n return lines;\n}\n\n/** A field name, or a `${row…}` template over the row. */\nfunction read(spec: string | undefined, row: unknown, helpers: unknown): unknown {\n if (!spec) return undefined;\n if (!spec.includes(\"${\")) return field(row, spec);\n try {\n return interpolate(spec, scope({ row }, helpers as Obj));\n } catch {\n return undefined;\n }\n}\n\nfunction MarkerShape({ m, x, y, dim }: { m: MarkerSpec; x: number; y: number; dim: boolean }) {\n const src = m.image ? safeImageSrc(dim && m.image.dimmedSrc ? m.image.dimmedSrc : m.image.src) : undefined;\n if (src) {\n const s = m.image?.size ?? 26;\n return <image href={src} x={x - s / 2} y={y - s / 2} width={s} height={s} pointerEvents=\"none\" />;\n }\n const s = m.size ?? (m.shape === \"diamond\" ? 24 : 20);\n const fill = flowColor(\n m.color,\n m.shape === \"diamond\" ? \"var(--ds-color-status-good-solid)\" : \"var(--ds-color-action-primary)\",\n );\n const common = { className: \"ds-flowmap-shape\", fill, style: { \"--ds-flowmap-fill\": fill } as CSSProperties };\n if (m.shape === \"diamond\") {\n const r = s / 2;\n return <path {...common} d={`M ${x} ${y - r} L ${x + r} ${y} L ${x} ${y + r} L ${x - r} ${y} Z`} />;\n }\n if (m.shape === \"square\") return <rect {...common} x={x - s / 2} y={y - s / 2} width={s} height={s} rx={3} />;\n if (m.shape === \"triangle\") {\n const r = s / 2;\n return <path {...common} d={`M ${x} ${y - r} L ${x + r} ${y + r} L ${x - r} ${y + r} Z`} />;\n }\n return <circle {...common} cx={x} cy={y} r={s / 2} />;\n}\n\nfunction Pic({ img, x, y, dim, className }: { img: Img; x: number; y: number; dim?: boolean; className?: string }) {\n const src = safeImageSrc(dim && img.dimmedSrc ? img.dimmedSrc : img.src);\n if (!src) return null;\n const s = img.size ?? 32;\n return (\n <image href={src} x={x - s / 2} y={y - s / 2} width={s} height={s} className={className} pointerEvents=\"none\" />\n );\n}\n\n/** The value chip, sized to its measured text. */\nfunction Chip({ x, y, value, unit, tone }: { x: number; y: number; value: string; unit: string; tone: string }) {\n const ref = useRef<SVGTextElement | null>(null);\n const [w, setW] = useState(value.length * 8 + (unit ? CHIP_GAP + unit.length * 6.4 : 0));\n // biome-ignore lint/correctness/useExhaustiveDependencies: measure again when the text changes\n useLayoutEffect(() => {\n const t = ref.current;\n if (t && typeof t.getComputedTextLength === \"function\") {\n const len = t.getComputedTextLength();\n if (len > 0) setW(len);\n }\n }, [value, unit]);\n const width = w + CHIP_PAD * 2;\n return (\n <g className=\"ds-flowmap-chip\" data-tone={tone}>\n <rect x={x - width / 2} y={y + CHIP_TOP} width={width} height={CHIP_H} rx={4} />\n <text ref={ref} x={x} y={y + CHIP_TOP + CHIP_H / 2} textAnchor=\"middle\" dominantBaseline=\"central\">\n <tspan className=\"ds-flowmap-chip-value\">{value}</tspan>\n {unit ? (\n <tspan className=\"ds-flowmap-chip-unit\" dx={CHIP_GAP}>\n {unit}\n </tspan>\n ) : null}\n </text>\n </g>\n );\n}\n\n/** The hover card: above the step (below when there is no room), inside the dashboard. */\nfunction HoverCard({\n rect,\n children,\n onEnter,\n onLeave,\n}: {\n rect: DOMRect;\n children: ReactNode;\n onEnter: () => void;\n onLeave: () => void;\n}) {\n const ref = useRef<HTMLDivElement | null>(null);\n const [host, setHost] = useState<Element | null>(null);\n const [pos, setPos] = useState({ left: -9999, top: -9999 });\n useLayoutEffect(() => {\n const el = ref.current;\n if (!el) return;\n const { width, height } = el.getBoundingClientRect();\n const cx = rect.left + rect.width / 2;\n const left = Math.max(8, Math.min(cx - width / 2, window.innerWidth - width - 8));\n const above = rect.top - height - 12;\n setPos({ left, top: above >= 8 ? above : rect.bottom + 12 });\n }, [rect]);\n const body = (\n <div\n ref={(el) => {\n ref.current = el;\n if (el && !host) setHost(el.closest(\".ds-root\"));\n }}\n className=\"ds-flowmap-hover\"\n role=\"tooltip\"\n style={{ left: pos.left, top: pos.top }}\n onMouseEnter={onEnter}\n onMouseLeave={onLeave}\n >\n {children}\n </div>\n );\n return host ? createPortal(body, host) : body;\n}\n\n/** The FlowMap's component, loaded on first use (see FlowMap.tsx). */\nexport function FlowMapView({ spec, data, emit, helpers, renderSlot }: WidgetProps<FlowMapProps>) {\n // `details`: values kept apart from the route, joined onto each step as `row.detail`.\n const details = spec.details && typeof spec.details === \"object\" ? (spec.details as Obj) : undefined;\n const rows = useMemo(\n () =>\n asRows(data).map((r) => {\n if (!details || !r || typeof r !== \"object\") return r;\n const id = String(field(r, spec.id) ?? \"\");\n return { ...(r as Obj), detail: Object.hasOwn(details, id) ? details[id] : null };\n }),\n [data, details, spec.id],\n );\n const markers = (spec.markers ?? {}) as Record<string, MarkerSpec>;\n const steps = useMemo(\n () =>\n rows.map((row) => {\n const id = String(field(row, spec.id) ?? \"\");\n const kind = String(read(spec.kind, row, helpers) ?? \"default\");\n const tracked = spec.trackedWhen ? Boolean(evalOver(spec.trackedWhen, { row }, helpers)) : true;\n const value = read(spec.value, row, helpers);\n return {\n id,\n row,\n kind,\n label: String(read(spec.label, row, helpers) ?? id),\n group: spec.group ? String(field(row, spec.group) ?? \"\") : undefined,\n site: spec.site ? ((field(row, spec.site) as string | null | undefined) ?? undefined) : undefined,\n tracked,\n attention: tracked && spec.attentionWhen ? Boolean(evalOver(spec.attentionWhen, { row }, helpers)) : false,\n value: value === null || value === undefined || value === \"\" ? spec.emptyValue : String(value),\n unit:\n value === null || value === undefined || value === \"\" ? \"\" : String(read(spec.unit, row, helpers) ?? \"\"),\n };\n }),\n // biome-ignore lint/correctness/useExhaustiveDependencies: rows/spec/helpers identify the input\n [rows, spec, helpers],\n );\n const byId = useMemo(() => new Map(steps.map((s) => [s.id, s])), [steps]);\n const layout = useMemo(\n () =>\n layoutFlow(\n steps.map((s) => ({ id: s.id, group: s.group, site: s.site })),\n spec.layout ?? {},\n ),\n [steps, spec.layout],\n );\n\n const selected = spec.selected || undefined;\n const inspecting = Boolean(selected && byId.has(selected));\n const [hover, setHover] = useState<{ id: string; rect: DOMRect } | null>(null);\n const timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n useEffect(() => () => clearTimeout(timer.current), []);\n const keep = useCallback(() => clearTimeout(timer.current), []);\n const closeSoon = useCallback(() => {\n clearTimeout(timer.current);\n timer.current = setTimeout(() => setHover(null), CLOSE_DELAY);\n }, []);\n // A step opened while its card was showing: the card goes.\n useEffect(() => {\n if (inspecting) setHover(null);\n }, [inspecting]);\n\n // The legend, drawn in the panel header next to the title.\n const [head, setHead] = useState<Element | null>(null);\n const findHead = useCallback((el: HTMLDivElement | null) => {\n setHead(el?.closest(\".ds-panel\")?.querySelector(\":scope > .ds-panel-head .ds-panel-tools\") ?? null);\n }, []);\n const anyUntracked = steps.some((s) => !s.tracked);\n const legendItems = [\n ...Object.entries(markers)\n .filter(([, m]) => m.legend)\n .map(([kind, m]) => ({ kind, label: m.legend as string, m })),\n ];\n const legend =\n spec.legend && (legendItems.length || spec.attention?.legend) ? (\n <ul className=\"ds-flowmap-legend\">\n {legendItems.map((l) => (\n <li key={l.kind}>\n <svg width=\"22\" height=\"22\" viewBox=\"-11 -11 22 22\" aria-hidden=\"true\">\n <MarkerShape\n m={{ ...l.m, size: l.m.image ? 22 : l.m.shape === \"diamond\" ? 16 : 18 }}\n x={0}\n y={0}\n dim={false}\n />\n </svg>\n {l.label}\n </li>\n ))}\n {anyUntracked && spec.untrackedLegend ? (\n <li data-kind=\"untracked\">\n <svg width=\"22\" height=\"22\" viewBox=\"-11 -11 22 22\" aria-hidden=\"true\">\n <circle className=\"ds-flowmap-untracked\" r={8} />\n </svg>\n {spec.untrackedLegend}\n </li>\n ) : null}\n {spec.attention?.legend ? (\n <li data-kind=\"attention\">\n <svg width=\"22\" height=\"22\" viewBox=\"-11 -11 22 22\" aria-hidden=\"true\">\n <circle\n r={9}\n fill=\"var(--ds-color-surface-card)\"\n stroke={flowColor(spec.attention.color, \"var(--ds-color-status-bad-fg)\")}\n strokeWidth={2}\n />\n <circle r={5.5} fill=\"var(--ds-color-action-primary)\" />\n </svg>\n {spec.attention.legend}\n </li>\n ) : null}\n </ul>\n ) : null;\n\n const markerFor = (kind: string): MarkerSpec => markers[kind] ?? markers.default ?? { shape: \"circle\" };\n const attnColor = flowColor(spec.attention?.color, \"var(--ds-color-status-bad-fg)\");\n const selColor = flowColor(spec.selection?.color, \"var(--ds-color-action-primary)\");\n const hovered = hover ? byId.get(hover.id) : undefined;\n\n const tagFor = (id: string, site: string) => {\n const s = byId.get(id);\n return String(spec.siteLabel ? (read(spec.siteLabel, s?.row, helpers) ?? site) : site);\n };\n\n return (\n <div className=\"ds-flowmap\" ref={findHead}>\n {head && legend ? createPortal(legend, head) : legend}\n <div className=\"ds-flowmap-scroll\">\n <svg\n className=\"ds-flowmap-svg\"\n viewBox={`0 0 ${layout.width} ${layout.height}`}\n style={{ maxWidth: layout.width, minWidth: spec.minWidth }}\n data-inspecting={inspecting || undefined}\n // biome-ignore lint/a11y/useSemanticElements: an SVG drawing, which a fieldset can't hold\n role=\"group\"\n aria-label={spec.title ?? \"Flow\"}\n >\n {layout.tracks.map((t) => (\n <path key={t.d} className=\"ds-flowmap-track\" data-dashed={t.dashed || undefined} d={t.d} />\n ))}\n {layout.chevrons.map((c) => (\n <path\n key={`${c.x}-${c.y}`}\n className=\"ds-flowmap-chevron\"\n d={`M ${c.x - 2.5 * c.dir} ${c.y - 4} L ${c.x + 2.5 * c.dir} ${c.y} L ${c.x - 2.5 * c.dir} ${c.y + 4}`}\n />\n ))}\n {layout.siteStarts.map((t) => {\n const s = byId.get(t.id);\n const label = tagFor(t.id, t.site);\n const w = label.length * 6 + 16;\n const lines = wrapFlowLabel(s?.label ?? \"\", t.id === selected).length;\n const top = t.y - TAG_TOP - (lines - 1) * LABEL_LINE;\n return (\n <g key={t.id} className=\"ds-flowmap-tag\" data-dim={inspecting || undefined}>\n <rect x={t.x - w / 2} y={top} width={w} height={TAG_H} rx={TAG_H / 2} />\n <text x={t.x} y={top + TAG_H / 2} textAnchor=\"middle\" dominantBaseline=\"central\">\n {label}\n </text>\n </g>\n );\n })}\n {layout.steps.map((p: PlacedStep) => {\n const s = byId.get(p.id);\n if (!s) return null;\n const isSel = selected === s.id;\n const dim = inspecting && spec.dimOthers && !isSel;\n const m = markerFor(s.kind);\n const lines = wrapFlowLabel(s.label, p.feed || isSel);\n const lineH = isSel ? LABEL_LINE_SELECTED : LABEL_LINE;\n const firstY = p.y - LABEL_GAP - (lines.length - 1) * lineH;\n const ring = spec.attention?.ring?.[s.kind] ?? spec.attention?.ring?.default;\n const open = () => {\n if (!s.tracked) return;\n keep();\n setHover(null);\n emit(\"click\", \"step\", { datum: s.row, value: s.id });\n };\n const chipTone = isSel ? \"selected\" : dim ? \"dim\" : (m.chipTone ?? \"neutral\");\n return (\n <g\n key={s.id}\n className=\"ds-flowmap-step\"\n // biome-ignore lint/a11y/useSemanticElements: an SVG group; a button element can't sit inside SVG\n role=\"button\"\n tabIndex={s.tracked ? 0 : -1}\n aria-label={`${s.label}${s.tracked ? `, ${s.value}${s.unit ? ` ${s.unit}` : \"\"}` : \"\"}`}\n aria-disabled={!s.tracked || undefined}\n aria-pressed={isSel}\n data-kind={s.kind}\n data-dim={dim || undefined}\n data-selected={isSel || undefined}\n data-untracked={!s.tracked || undefined}\n data-attention={s.attention || undefined}\n onMouseEnter={(e) => {\n if (!s.tracked || inspecting) return;\n keep();\n const hit = e.currentTarget.querySelector(\".ds-flowmap-hit\") as SVGElement | null;\n setHover({ id: s.id, rect: (hit ?? e.currentTarget).getBoundingClientRect() });\n emit(\"hover\", \"step\", { datum: s.row, value: s.id });\n }}\n onMouseLeave={() => {\n closeSoon();\n emit(\"hoverEnd\", \"step\", { datum: s.row, value: s.id });\n }}\n onFocus={(e) => {\n if (s.tracked && !inspecting) setHover({ id: s.id, rect: e.currentTarget.getBoundingClientRect() });\n }}\n onBlur={closeSoon}\n onClick={open}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n open();\n }\n }}\n >\n <text className=\"ds-flowmap-label\" textAnchor=\"middle\" data-selected={isSel || undefined}>\n {lines.map((line, i) => (\n <tspan key={`${i}-${line}`} x={p.x} y={firstY + i * lineH}>\n {line}\n </tspan>\n ))}\n </text>\n {s.attention ? (\n spec.attention?.halo ? (\n <Pic img={spec.attention.halo} x={p.x} y={p.y} dim={dim} className=\"ds-flowmap-halo\" />\n ) : (\n <circle className=\"ds-flowmap-halo\" cx={p.x} cy={p.y} r={22} fill={attnColor} opacity={0.14} />\n )\n ) : null}\n {isSel && !s.attention ? (\n spec.selection?.halo ? (\n <Pic img={spec.selection.halo} x={p.x} y={p.y} />\n ) : (\n <circle cx={p.x} cy={p.y} r={22} fill={selColor} opacity={0.14} />\n )\n ) : null}\n {s.tracked ? (\n <MarkerShape m={m} x={p.x} y={p.y} dim={dim} />\n ) : (\n <circle className=\"ds-flowmap-untracked\" cx={p.x} cy={p.y} r={9} />\n )}\n {s.attention ? (\n ring ? (\n <Pic img={ring} x={p.x} y={p.y} dim={dim} />\n ) : (\n <circle cx={p.x} cy={p.y} r={15} fill=\"none\" stroke={attnColor} strokeWidth={2.5} />\n )\n ) : null}\n {(isSel && !s.attention) || (hover?.id === s.id && !inspecting) ? (\n spec.selection?.ring ? (\n <Pic img={spec.selection.ring} x={p.x} y={p.y} />\n ) : (\n <circle cx={p.x} cy={p.y} r={16} fill=\"none\" stroke={selColor} strokeWidth={2.5} />\n )\n ) : null}\n <circle className=\"ds-flowmap-hit\" cx={p.x} cy={p.y} r={22} />\n {s.tracked ? <Chip x={p.x} y={p.y} value={s.value} unit={s.unit} tone={chipTone} /> : null}\n </g>\n );\n })}\n </svg>\n </div>\n {hover && hovered ? (\n <HoverCard rect={hover.rect} onEnter={keep} onLeave={closeSoon}>\n {renderSlot(\"hover\", { item: hovered.row as Obj })}\n </HoverCard>\n ) : null}\n </div>\n );\n}\n","/**\n * The FlowMap layout: a process flow as feed rows that merge into one step, then a main path that snakes in rows,\n * joined by U-bends. Pure (no React, no DOM), so it is tested on its own and the same input always draws the same map.\n */\n\nexport interface FlowLayoutStep {\n id: string;\n /** The row (feed) the step belongs to; steps without one are all on the main path. */\n group?: string | undefined;\n /** The site the step is at; a track into a step at a new site is dashed and tagged. */\n site?: string | undefined;\n}\n\nexport interface FlowLayoutOptions {\n /** Steps per main-path row before it turns (default 6). */\n perRow?: number | undefined;\n /** Distance between steps along a row, px (default 160). */\n colGap?: number | undefined;\n /** First column's centre, px from the left (default 110). */\n left?: number | undefined;\n /** First feed row's centre, px from the top (default 70). */\n top?: number | undefined;\n /** Between feed rows, px (default 110). */\n feedGap?: number | undefined;\n /** From the merge row to the second main row, px (default 220). */\n firstRowGap?: number | undefined;\n /** Between later main rows, px (default 200). */\n rowGap?: number | undefined;\n /** How far a track starts before a row's first step, px (default 40). */\n stub?: number | undefined;\n /** How far a U-bend reaches past the last column on the right / left, px (defaults 147 / 133). */\n bendRight?: number | undefined;\n bendLeft?: number | undefined;\n /** Canvas width, px (default 1030); room below the last row, px (default 100). */\n width?: number | undefined;\n bottom?: number | undefined;\n /** The group that continues as the main path (default: the last group). */\n mainGroup?: string | undefined;\n /** How many of the main group's steps stay on its own feed row before the merge (default 1). */\n mainStartsAt?: number | undefined;\n /** Which feed row the main path starts on (default: the middle one). */\n mergeRow?: number | undefined;\n}\n\nexport interface PlacedStep extends FlowLayoutStep {\n x: number;\n y: number;\n /** On a feed row (its label stays on one line). */\n feed: boolean;\n}\n\nexport interface FlowTrack {\n d: string;\n dashed: boolean;\n}\n\nexport interface FlowLayoutResult {\n steps: PlacedStep[];\n tracks: FlowTrack[];\n /** Direction marks along the track. */\n chevrons: { x: number; y: number; dir: 1 | -1 }[];\n /** The first step at a new site: where its tag goes. */\n siteStarts: { id: string; site: string; x: number; y: number }[];\n width: number;\n height: number;\n}\n\nconst DEFAULTS = {\n perRow: 6,\n colGap: 160,\n left: 110,\n top: 70,\n feedGap: 110,\n firstRowGap: 220,\n rowGap: 200,\n stub: 40,\n bendRight: 147,\n bendLeft: 133,\n width: 1030,\n bottom: 100,\n mainStartsAt: 1,\n};\n\n/** Lays out the steps (in route order). An empty list gives an empty map. */\nexport function layoutFlow(input: readonly FlowLayoutStep[], options: FlowLayoutOptions = {}): FlowLayoutResult {\n const o = {\n ...DEFAULTS,\n ...(Object.fromEntries(Object.entries(options).filter(([, v]) => v !== undefined)) as FlowLayoutOptions),\n } as typeof DEFAULTS & FlowLayoutOptions;\n const perRow = Math.max(1, Math.floor(o.perRow));\n const colX = (col: number) => o.left + col * o.colGap;\n const empty = { steps: [], tracks: [], chevrons: [], siteStarts: [], width: o.width, height: o.top + o.bottom };\n if (input.length === 0) return empty;\n\n // Rows by group, in first-seen order; the main group continues as the main path.\n const order: string[] = [];\n const byGroup = new Map<string, FlowLayoutStep[]>();\n for (const s of input) {\n const g = s.group ?? \"\";\n if (!byGroup.has(g)) {\n byGroup.set(g, []);\n order.push(g);\n }\n byGroup.get(g)?.push(s);\n }\n const mainKey =\n o.mainGroup !== undefined && byGroup.has(o.mainGroup) ? o.mainGroup : (order[order.length - 1] as string);\n const mainAll = byGroup.get(mainKey) ?? [];\n const split = order.length > 1 ? Math.min(Math.max(0, o.mainStartsAt), mainAll.length - 1) : 0;\n const feeds = [\n ...order.filter((g) => g !== mainKey).map((g) => byGroup.get(g) ?? []),\n mainAll.slice(0, split),\n ].filter((f) => f.length > 0);\n const mainSteps = mainAll.slice(split);\n const mergeRow = Math.min(Math.max(0, o.mergeRow ?? Math.floor(feeds.length / 2)), Math.max(0, feeds.length - 1));\n const feedCols = feeds.length ? Math.max(...feeds.map((f) => f.length)) : 0;\n const mainTop = o.top + mergeRow * o.feedGap;\n const rowY = (row: number) => mainTop + (row === 0 ? 0 : o.firstRowGap + (row - 1) * o.rowGap);\n const lastCol = Math.max(perRow - 1, feedCols);\n\n // The main path: from the column after the feeds, snaking at either edge.\n const main: PlacedStep[] = [];\n let row = 0;\n let col = feedCols;\n let dir: 1 | -1 = 1;\n for (const s of mainSteps) {\n main.push({ ...s, x: colX(col), y: rowY(row), feed: false });\n const next = col + dir;\n if (next < 0 || next > lastCol) {\n row += 1;\n dir = dir === 1 ? -1 : 1;\n } else col = next;\n }\n const merge = main[0];\n\n const steps: PlacedStep[] = [];\n const tracks: FlowTrack[] = [];\n const chevrons: FlowLayoutResult[\"chevrons\"] = [];\n const siteStarts: FlowLayoutResult[\"siteStarts\"] = [];\n\n // Feeds: a stub, the steps, then a curve (or a straight run) into the merge step, landing flat.\n feeds.forEach((feed, f) => {\n const y = o.top + f * o.feedGap;\n const placed = feed.map((s, i) => ({ ...s, x: colX(i), y, feed: true }));\n steps.push(...placed);\n const start = colX(0) - o.stub;\n const end = merge ?? placed[placed.length - 1];\n if (!end) return;\n const bendFrom = colX(Math.max(0, feedCols - 1));\n const mid = (bendFrom + end.x) / 2;\n tracks.push({\n d:\n y === end.y\n ? `M ${start} ${y} H ${end.x}`\n : `M ${start} ${y} H ${bendFrom} C ${mid} ${y} ${mid} ${end.y} ${end.x} ${end.y}`,\n dashed: false,\n });\n chevrons.push({ x: colX(0) + o.colGap / 2, y, dir: 1 });\n });\n steps.push(...main);\n // No feeds: the main path still starts with a stub.\n if (feeds.length === 0 && merge) tracks.push({ d: `M ${merge.x - o.stub} ${merge.y} H ${merge.x}`, dashed: false });\n\n // The main track: straight along a row with a chevron between steps, U-bends between rows.\n main.slice(1).forEach((to, i) => {\n const from = main[i] as PlacedStep;\n const dashed = Boolean(to.site) && to.site !== from.site;\n if (from.y === to.y) {\n tracks.push({ d: `M ${from.x} ${from.y} H ${to.x}`, dashed });\n chevrons.push({ x: (from.x + to.x) / 2, y: from.y, dir: to.x > from.x ? 1 : -1 });\n } else {\n const out = from.x >= colX(lastCol) ? from.x + o.bendRight : from.x - o.bendLeft;\n tracks.push({ d: `M ${from.x} ${from.y} C ${out} ${from.y} ${out} ${to.y} ${to.x} ${to.y}`, dashed });\n }\n if (dashed) siteStarts.push({ id: to.id, site: to.site as string, x: to.x, y: to.y });\n });\n\n const lastY = main.length ? (main[main.length - 1] as PlacedStep).y : Math.max(...steps.map((s) => s.y));\n return { steps, tracks, chevrons, siteStarts, width: o.width, height: lastY + o.bottom };\n}\n"],"mappings":";;;;;;;;;;;;;AAAA;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;;;ACyD7B,IAAM,WAAW;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,SAAS;AAAA,EACT,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,cAAc;AAChB;AAGO,SAAS,WAAW,OAAkC,UAA6B,CAAC,GAAqB;AAC9G,QAAM,IAAI;AAAA,IACR,GAAG;AAAA,IACH,GA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M,GAAG,EAAE,GAAG,GAAG,EAAE,GAAG,KAAU,IAE1C,oBAAC,YAAO,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI,MAAK,QAAO,QAAQ,WAAW,aAAa,KAAK,IAElF;AAAA,kBACF,SAAS,CAAC,EAAE,aAAe,OAAO,OAAO,EAAE,MAAM,CAAC,aAClD,KAAK,WAAW,OACd,oBAAC,OAAI,KAAK,KAAK,UAAU,MAAM,GAAG,EAAE,GAAG,GAAG,EAAE,GAAG,IAE/C,oBAAC,YAAO,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI,MAAK,QAAO,QAAQ,UAAU,aAAa,KAAK,IAEjF;AAAA,kBACJ,oBAAC,YAAO,WAAU,kBAAiB,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI;AAAA,kBAC3D,EAAE,UAAU,oBAAC,QAAK,GAAG,EAAE,GAAG,GAAG,EAAE,GAAG,OAAO,EAAE,OAAO,MAAM,EAAE,MAAM,MAAM,UAAU,IAAK;AAAA;AAAA;AAAA,cA7EjF,EAAE;AAAA,YA8ET;AAAA,UAEJ,CAAC;AAAA;AAAA;AAAA,IACH,GACF;AAAA,IACC,SAAS,UACR,oBAAC,aAAU,MAAM,MAAM,MAAM,SAAS,MAAM,SAAS,WAClD,qBAAW,SAAS,EAAE,MAAM,QAAQ,IAAW,CAAC,GACnD,IACE;AAAA,KACN;AAEJ;","names":["col","row","s"]}
|
|
@@ -980,7 +980,9 @@ var kinds = {
|
|
|
980
980
|
default: DateRangeValue.optional(),
|
|
981
981
|
min: Template.optional(),
|
|
982
982
|
max: Template.optional(),
|
|
983
|
-
maxDays: z6.number().int().min(1).optional()
|
|
983
|
+
maxDays: z6.number().int().min(1).optional(),
|
|
984
|
+
/** The calendar picks one date (from = to) instead of a range; the presets stay. */
|
|
985
|
+
single: z6.boolean().optional()
|
|
984
986
|
}).strict(),
|
|
985
987
|
Date: z6.object({
|
|
986
988
|
...base,
|
|
@@ -1469,7 +1471,7 @@ function migrateDocument(input, widgets = []) {
|
|
|
1469
1471
|
import { z as z10 } from "zod";
|
|
1470
1472
|
|
|
1471
1473
|
// src/version.ts
|
|
1472
|
-
var RENDERER_VERSION = "0.1.
|
|
1474
|
+
var RENDERER_VERSION = "0.1.44";
|
|
1473
1475
|
var parse2 = (v) => {
|
|
1474
1476
|
const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
|
|
1475
1477
|
return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
|
|
@@ -3202,4 +3204,4 @@ export {
|
|
|
3202
3204
|
RepeaterContract,
|
|
3203
3205
|
builtInWidgetChecks
|
|
3204
3206
|
};
|
|
3205
|
-
//# sourceMappingURL=chunk-
|
|
3207
|
+
//# sourceMappingURL=chunk-HAYQEYMT.js.map
|