@sentropic/design-system-svelte 0.35.1 → 0.37.0

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.
Files changed (69) hide show
  1. package/LICENSE.THIRD-PARTY.md +74 -1
  2. package/dist/Calendar.svelte +28 -1
  3. package/dist/Calendar.svelte.d.ts +7 -0
  4. package/dist/Calendar.svelte.d.ts.map +1 -1
  5. package/dist/ContentSwitcher.svelte +6 -1
  6. package/dist/DiagramCard.svelte +282 -0
  7. package/dist/DiagramCard.svelte.d.ts +44 -0
  8. package/dist/DiagramCard.svelte.d.ts.map +1 -0
  9. package/dist/DiagramCardHeader.svelte +173 -0
  10. package/dist/DiagramCardHeader.svelte.d.ts +37 -0
  11. package/dist/DiagramCardHeader.svelte.d.ts.map +1 -0
  12. package/dist/DiagramZone.svelte +378 -0
  13. package/dist/DiagramZone.svelte.d.ts +45 -0
  14. package/dist/DiagramZone.svelte.d.ts.map +1 -0
  15. package/dist/DiagramZoneHeader.svelte +97 -0
  16. package/dist/DiagramZoneHeader.svelte.d.ts +40 -0
  17. package/dist/DiagramZoneHeader.svelte.d.ts.map +1 -0
  18. package/dist/MenuPopover.svelte +101 -12
  19. package/dist/MenuPopover.svelte.d.ts.map +1 -1
  20. package/dist/Pagination.svelte +5 -0
  21. package/dist/RadioGroup.svelte +4 -1
  22. package/dist/TimeRangePicker.svelte +19 -1
  23. package/dist/TimeRangePicker.svelte.d.ts.map +1 -1
  24. package/dist/diagram-icons/DiagramIcon.svelte +65 -0
  25. package/dist/diagram-icons/DiagramIcon.svelte.d.ts +11 -0
  26. package/dist/diagram-icons/DiagramIcon.svelte.d.ts.map +1 -0
  27. package/dist/diagram-icons/PROVENANCE.md +72 -0
  28. package/dist/diagram-icons/index.d.ts +6 -0
  29. package/dist/diagram-icons/index.d.ts.map +1 -0
  30. package/dist/diagram-icons/index.js +4 -0
  31. package/dist/diagram-icons/registry.d.ts +52 -0
  32. package/dist/diagram-icons/registry.d.ts.map +1 -0
  33. package/dist/diagram-icons/registry.js +79 -0
  34. package/dist/diagram-render/index.d.ts +17 -0
  35. package/dist/diagram-render/index.d.ts.map +1 -0
  36. package/dist/diagram-render/index.js +11 -0
  37. package/dist/diagram-render/renderCardSvg.d.ts +83 -0
  38. package/dist/diagram-render/renderCardSvg.d.ts.map +1 -0
  39. package/dist/diagram-render/renderCardSvg.js +149 -0
  40. package/dist/diagram-render/renderZoneSvg.d.ts +88 -0
  41. package/dist/diagram-render/renderZoneSvg.d.ts.map +1 -0
  42. package/dist/diagram-render/renderZoneSvg.js +184 -0
  43. package/dist/diagramCardModel.d.ts +582 -0
  44. package/dist/diagramCardModel.d.ts.map +1 -0
  45. package/dist/diagramCardModel.js +1133 -0
  46. package/dist/index.d.ts +5 -0
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +2 -0
  49. package/dist/presence-badge/LockPresenceBadge.svelte +490 -0
  50. package/dist/presence-badge/LockPresenceBadge.svelte.d.ts +18 -0
  51. package/dist/presence-badge/LockPresenceBadge.svelte.d.ts.map +1 -0
  52. package/dist/presence-badge/index.d.ts +6 -0
  53. package/dist/presence-badge/index.d.ts.map +1 -0
  54. package/dist/presence-badge/index.js +3 -0
  55. package/dist/rich-text-editor/ComposerEditor.svelte +485 -0
  56. package/dist/rich-text-editor/ComposerEditor.svelte.d.ts +16 -0
  57. package/dist/rich-text-editor/ComposerEditor.svelte.d.ts.map +1 -0
  58. package/dist/rich-text-editor/RichTextEditor.svelte +557 -0
  59. package/dist/rich-text-editor/RichTextEditor.svelte.d.ts +45 -0
  60. package/dist/rich-text-editor/RichTextEditor.svelte.d.ts.map +1 -0
  61. package/dist/rich-text-editor/RichTextEditorFixture.svelte.d.ts +8 -0
  62. package/dist/rich-text-editor/RichTextEditorFixture.svelte.d.ts.map +1 -0
  63. package/dist/rich-text-editor/RichTextEditorNestedFixture.svelte.d.ts +13 -0
  64. package/dist/rich-text-editor/RichTextEditorNestedFixture.svelte.d.ts.map +1 -0
  65. package/dist/rich-text-editor/index.d.ts +10 -0
  66. package/dist/rich-text-editor/index.d.ts.map +1 -0
  67. package/dist/rich-text-editor/index.js +4 -0
  68. package/dist/rich-text-editor/rich-text-editor.css +115 -0
  69. package/package.json +54 -7
@@ -0,0 +1,582 @@
1
+ /**
2
+ * DiagramCard shared model — geometry, projection and line layout (DC-1).
3
+ *
4
+ * Pure TypeScript, zero imports: the Svelte `DiagramCard` (barrel graph)
5
+ * and the `diagram-render` pure renderer (subpath graph) both consume this
6
+ * module, so it must live outside both subpath directories and import
7
+ * nothing. Glyph path data arrives via props (resolved by the caller from
8
+ * the `diagram-icons` subpath); this module never resolves a glyph name.
9
+ *
10
+ * One geometry source (§5.6): every number below is frozen by
11
+ * spec/SPEC_EVOL_DS_DIAGRAM_CARDS.md §5.3/Appendix A and mirrors
12
+ * - the `diagramCard` component tokens (`packages/tokens/src/component.ts`),
13
+ * - `packages/diagram-canvas/src/layout/measure.ts`
14
+ * (`FIXED_CARD_WIDTH 460`, `FIXED_CARD_HEIGHT 200`,
15
+ * `TOGGLE_ALLOCATION 66`, `CONTENT_INSET 16`, `RULE_GAP 4`).
16
+ * The token↔constant agreement test asserts the sources agree.
17
+ *
18
+ * Line boxes use the kit's 1/64 px grid (`floor(size * 1.3 * 64) / 64`,
19
+ * cf. `frameHeaderContent`): with those boxes the frozen content sums
20
+ * exactly — footer text-box bottom at `198 − 9.25`, rule gaps 4/4 — instead
21
+ * of drifting by fractional pixels (DIF-04). Text baselines follow the
22
+ * kit's glyph bounds: a 24 px role sits 22 px above its baseline, the
23
+ * 22 px kicker and the 32 px title at their own size (cf. the frozen SVG:
24
+ * kicker baseline `headerY + 16 + 22`, title `+ 32`, subtitle `+ 22`).
25
+ */
26
+ /** Frozen card geometry, in card pixels (spec §5.3, Appendix A). */
27
+ export declare const CARD_GEOMETRY: {
28
+ readonly width: 460;
29
+ readonly height: 200;
30
+ readonly borderWidth: 2;
31
+ readonly accentWidth: 8;
32
+ readonly padding: 8;
33
+ /** Card left edge → header icon left edge (accent 8 + padding 8). */
34
+ readonly headerInset: 16;
35
+ readonly iconSize: 70;
36
+ readonly iconTextGap: 6;
37
+ readonly kicker: {
38
+ readonly size: 22;
39
+ readonly weight: 400;
40
+ readonly lineHeight: 1.3;
41
+ readonly letterSpacingEm: 0.04;
42
+ };
43
+ readonly title: {
44
+ readonly size: 32;
45
+ readonly weight: 700;
46
+ readonly lineHeight: 1.3;
47
+ };
48
+ /** Header row → body block. */
49
+ readonly gap: 6;
50
+ readonly body: {
51
+ readonly size: 24;
52
+ readonly weight: 400;
53
+ readonly lineHeight: 1.3;
54
+ };
55
+ /** Accent-bar left edge → first body glyph. */
56
+ readonly bodyInsetFromBar: 14;
57
+ readonly ruleHeight: 1;
58
+ readonly ruleMargin: 4;
59
+ readonly ruleInsetStart: 16;
60
+ readonly ruleInsetEnd: 10;
61
+ readonly footer: {
62
+ readonly size: 24;
63
+ readonly weight: 700;
64
+ readonly lineHeight: 1.3;
65
+ };
66
+ /** Footer text-box bottom → inner edge of the bottom border. */
67
+ readonly footerBottomInset: 9.25;
68
+ /**
69
+ * Title/kicker width reservation when the toggle slot is present
70
+ * (hrpn tints.css `header { padding-right: 66px }`: the 66 px the +/−
71
+ * control needs in the header's inline-end).
72
+ */
73
+ readonly toggleAllocation: 66;
74
+ /** The toggle slot box itself: the 32 px DS IconButton (sm) square. */
75
+ readonly toggleBoxSize: 32;
76
+ /**
77
+ * Header text width of a folded card (toggle present, icon present):
78
+ * the owner-pinned 290 px — the hrpn folded-card title width
79
+ * (356 − 66 = 290). Plain cards keep `contentRight − headerTextX`
80
+ * (358 px with the icon).
81
+ */
82
+ readonly foldedHeaderTextWidth: 290;
83
+ /** Card allocations, frozen-box-derived (see module doc). */
84
+ readonly allocatedLines: {
85
+ readonly kicker: 1;
86
+ readonly title: 2;
87
+ readonly body: 2;
88
+ readonly footer: 1;
89
+ };
90
+ };
91
+ /** Line box height for a size at 1.3, on the 1/64 px grid. */
92
+ export declare function lineBoxHeight(size: number): number;
93
+ /**
94
+ * Alphabetic baseline inside a line box starting at `top`, per the kit's
95
+ * glyph bounds: 24 px roles (body/subtitle/footer) sit 22 px above the
96
+ * baseline; the 22 px kicker and the 32 px title at their own size.
97
+ */
98
+ export declare function baselineOf(top: number, size: number): number;
99
+ /** Presentation-shaped input (structural subset of `EntityPresentation`,
100
+ * `diagram-presentation@1` — no import so this module stays dependency-free). */
101
+ export interface CardPresentationInput {
102
+ readonly form: "card" | "container" | "legend" | "legend-key";
103
+ readonly text: {
104
+ readonly title?: string;
105
+ readonly kicker?: string;
106
+ readonly body?: string;
107
+ readonly detail?: string;
108
+ readonly subtitle?: string;
109
+ readonly footer?: string;
110
+ };
111
+ readonly icon?: string;
112
+ readonly categoryRef?: string;
113
+ /** Neutral status prop: drawn as a dashed border, independent of tint. */
114
+ readonly proposed?: boolean;
115
+ }
116
+ /** Resolved glyph path data (structural twin of the `diagram-icons`
117
+ * registry record — no import so the barrel never resolves that graph). */
118
+ export interface DiagramGlyphPaths {
119
+ readonly face: string;
120
+ readonly line?: string;
121
+ readonly darkLine?: true;
122
+ readonly text?: string;
123
+ }
124
+ export interface DiagramCardToggle {
125
+ readonly collapsed: boolean;
126
+ readonly label: string;
127
+ /**
128
+ * Host wiring (Svelte `DiagramCard` calls it; the static SVG renderer
129
+ * ignores it). Kept on the shared type so both renderers accept the same
130
+ * toggle value.
131
+ */
132
+ readonly onToggle?: () => void;
133
+ }
134
+ export interface DiagramCardProps {
135
+ readonly entityId: string;
136
+ readonly kicker?: string;
137
+ readonly title: string;
138
+ /** Body lines in order; trailing `detailCount` lines render secondary. */
139
+ readonly body: readonly string[];
140
+ readonly detailCount?: number;
141
+ readonly footer?: string;
142
+ readonly icon?: string;
143
+ readonly iconGlyph?: DiagramGlyphPaths;
144
+ readonly tone?: string;
145
+ /**
146
+ * Neutral status prop: `true` draws the border dashed (owner criterion:
147
+ * a proposed state is always dashed), independently of `tone` — the tint
148
+ * stays host-supplied legend meaning.
149
+ */
150
+ readonly proposed?: boolean;
151
+ readonly toggle?: DiagramCardToggle;
152
+ /**
153
+ * Owner variant: `"center"` centres every text slot horizontally inside its
154
+ * frozen allocation (same 460 × 200 box). Default `"left"`.
155
+ */
156
+ readonly align?: "left" | "center";
157
+ /**
158
+ * Body rendering mode. `"leaf"` (default): left/top-aligned function/detail
159
+ * lines at the body inset. `"subtitle"`: the collapsed-zone subtitle —
160
+ * wrapped at the frozen 396 px measure and centred horizontally and
161
+ * vertically inside the card body area (§6.2.1).
162
+ */
163
+ readonly bodyMode?: "leaf" | "subtitle";
164
+ }
165
+ export type CardResolveResult = {
166
+ readonly kind: "card";
167
+ readonly props: DiagramCardProps;
168
+ } | {
169
+ readonly kind: "label";
170
+ };
171
+ export interface ProjectCardOptions {
172
+ readonly entityId: string;
173
+ readonly toggle?: DiagramCardToggle;
174
+ readonly resolveGlyph?: (name: string) => DiagramGlyphPaths | undefined;
175
+ }
176
+ /**
177
+ * Shared `EntityPresentation` → props projection (§4.2), consumed by both
178
+ * renderers. A missing presentation entry (or a non-card form, or no title)
179
+ * resolves to `{ kind: "label" }`: the host renders a simple label node and
180
+ * no card (L-R12). The glyph name maps through the injected resolver, which
181
+ * the `diagram-render` subpath wires to the icon registry; a name with no
182
+ * record yields no glyph and the layout raises `card-icon-unknown`.
183
+ */
184
+ export declare function projectCardProps(presentation: CardPresentationInput | undefined, opts: ProjectCardOptions): CardResolveResult;
185
+ /** Text wrapping injected by the host (the shipped `LineMeasurer` in
186
+ * production; a deterministic greedy wrapper in tests). `tooWide` is true
187
+ * when an emitted line exceeds `availableWidth` (typically one unbreakable
188
+ * word wider than the allocation) — the layout raises `card-overflow` for
189
+ * it exactly like for a line-count overflow (DC-D4). `lineWidths` carries
190
+ * the measured width of every emitted line so horizontal overflow is
191
+ * reported as `neededPx > allocatedPx` (Astra J4); hosts injecting a
192
+ * measurer without per-line widths still get the line-count diagnostic. */
193
+ export interface CardMeasuredText {
194
+ readonly lines: readonly string[];
195
+ readonly tooWide: boolean;
196
+ readonly lineWidths?: readonly number[];
197
+ }
198
+ export type CardLineMeasure = (text: string, role: "kicker" | "title" | "body" | "footer", availableWidth: number, allocatedLines: number) => CardMeasuredText;
199
+ /**
200
+ * Deterministic greedy wrapper over the pinned per-character advances.
201
+ * Production hosts inject their measured ‘LineMeasurer’; tests and
202
+ * static strings use this. It mirrors the frozen reference measurer
203
+ * (`cardTextWidth`/`wrapText` of the pinned kit): every candidate line is
204
+ * measured as a whole — `sum(advance × size) + 2` px safety — with the
205
+ * unknown-glyph fallback at 0.7 em, and the kicker is uppercased and
206
+ * tracked at 0.04 em before lookup (the kicker renders uppercase with
207
+ * `letter-spacing: 0.04em`). Corpus fixtures wrap exactly where the
208
+ * reference wraps; overflow fixtures overflow under every metric.
209
+ */
210
+ export declare function defaultCardMeasure(text: string, role: "kicker" | "title" | "body" | "footer", availableWidth: number): CardMeasuredText;
211
+ /**
212
+ * Structural twin of the `diagram-canvas` `MeasureRequest` (no import —
213
+ * this module stays dependency-free): every canvas `TextRole` is listed,
214
+ * so a `(request: CardMeasureRequest) => CardLineLayout` function is
215
+ * assignable to the canvas `LineMeasurer` without a cast.
216
+ */
217
+ export interface CardMeasureRequest {
218
+ readonly text: string;
219
+ readonly role: "kicker" | "title" | "body" | "footer" | "subtitle" | "detail" | "legend-label" | "edge-label";
220
+ readonly availableWidth: number;
221
+ readonly allocatedLines: number;
222
+ readonly folded?: boolean;
223
+ }
224
+ /** Structural twin of the `diagram-canvas` `LineLayout`. */
225
+ export interface CardLineLayout {
226
+ readonly lines: readonly string[];
227
+ readonly width: number;
228
+ readonly height: number;
229
+ readonly overflow: boolean;
230
+ }
231
+ /**
232
+ * Bridge from the card measurer to the canvas `LineMeasurer` shape: a host
233
+ * pairing `diagram-canvas` with these renderers passes `cardLineMeasurer()`
234
+ * straight as the injected `LineMeasurer` — no adapter, no role cast.
235
+ * Every canvas role maps onto the card role with the same font size
236
+ * (subtitle, detail, legend-label and edge-label measure as body),
237
+ * `width` is the widest emitted line, `height` the line count at the
238
+ * role's line box, and `overflow` reports a too-wide line or a line-count
239
+ * overflow.
240
+ */
241
+ export declare function cardLineMeasurer(measure?: CardLineMeasure): (request: CardMeasureRequest) => CardLineLayout;
242
+ export interface LaidOutLine {
243
+ readonly text: string;
244
+ /** Anchor x: start edge for `"start"`, centre for `"middle"` (align variant). */
245
+ readonly x: number;
246
+ readonly baseline: number;
247
+ readonly size: number;
248
+ readonly weight: number;
249
+ readonly secondary: boolean;
250
+ readonly anchor: "start" | "middle";
251
+ }
252
+ export interface CardDiagnostic {
253
+ readonly code: "card-overflow" | "card-icon-unknown";
254
+ readonly slot: string;
255
+ readonly entityId: string;
256
+ readonly neededPx: number;
257
+ readonly allocatedPx: number;
258
+ /**
259
+ * Original, unwrapped slot text. Overflow is refused, never shortened
260
+ * (owner criterion: overflow = refusal, never a truncation), so the
261
+ * diagnostic carries the source string the host must shorten.
262
+ */
263
+ readonly text?: string;
264
+ }
265
+ /**
266
+ * Overflow = refusal (owner criterion, DC-1 review): the first overflow
267
+ * diagnostic of a layout, or `undefined` when the content fits. Both
268
+ * renderers (pure SVG and Svelte) refuse on exactly this predicate, so the
269
+ * two contracts cannot diverge.
270
+ */
271
+ export declare function firstOverflowDiagnostic<D extends {
272
+ readonly code: string;
273
+ }>(diagnostics: readonly D[]): D | undefined;
274
+ /**
275
+ * Optional-slot header geometry, derived ONCE here and applied identically
276
+ * by `layoutCard`, `layoutZone`, `renderCardSvg`/`renderZoneSvg` and the
277
+ * Svelte header row (review pass 2, item 10). The 70 px icon floor applies
278
+ * only when the icon slot is present: without an icon the header row is
279
+ * exactly the kicker + title line boxes, so the body/subtitle start no
280
+ * longer jumps by ~28 px between the model and the Svelte header. With an
281
+ * icon, both the icon and the text band are centred in the block — the same
282
+ * `align-items: center` the Svelte header row paints.
283
+ */
284
+ export interface HeaderSlotGeometry {
285
+ readonly kickerHeight: number;
286
+ readonly titleHeight: number;
287
+ /** Kicker + title line-box height (0 when both slots are omitted). */
288
+ readonly contentHeight: number;
289
+ /** Header row height: `max(icon 70, content)` with icon, `content` without. */
290
+ readonly blockHeight: number;
291
+ /** Text band top, relative to the block top: centred in the block. */
292
+ readonly textTopOffset: number;
293
+ /** Icon top, relative to the block top: centred in the block (0 without icon). */
294
+ readonly iconTopOffset: number;
295
+ }
296
+ export declare function headerSlotGeometry(opts: {
297
+ readonly hasIcon: boolean;
298
+ readonly kickerLines: number;
299
+ readonly titleLines: number;
300
+ }): HeaderSlotGeometry;
301
+ export interface CardLayout {
302
+ readonly box: {
303
+ readonly width: number;
304
+ readonly height: number;
305
+ };
306
+ readonly contentTop: number;
307
+ readonly contentRight: number;
308
+ readonly iconBox?: {
309
+ readonly x: number;
310
+ readonly y: number;
311
+ readonly size: number;
312
+ };
313
+ readonly headerTextX: number;
314
+ readonly headerTextWidth: number;
315
+ readonly kicker: readonly LaidOutLine[];
316
+ readonly title: readonly LaidOutLine[];
317
+ readonly headerBlockHeight: number;
318
+ readonly bodyX: number;
319
+ readonly bodyWidth: number;
320
+ /** Body allocation: vertical centring reference in `subtitle` body mode (§6.2.1). */
321
+ readonly bodyArea: {
322
+ readonly top: number;
323
+ readonly bottom: number;
324
+ };
325
+ readonly body: readonly LaidOutLine[];
326
+ readonly bodyBottom: number;
327
+ /** Present only when `footer` is set: exactly one rule (§5.4, DH-04). */
328
+ readonly ruleY?: number;
329
+ readonly ruleX1: number;
330
+ readonly ruleX2: number;
331
+ /** Footer lines as measured (wrapped, never joined back), pinned bottom-up. */
332
+ readonly footerLines: readonly LaidOutLine[];
333
+ /** Footer text-box bottom (pinned at `height − border − 9.25`). */
334
+ readonly footerBottom: number;
335
+ readonly toggleBox?: {
336
+ readonly x: number;
337
+ readonly y: number;
338
+ readonly size: number;
339
+ };
340
+ readonly diagnostics: readonly CardDiagnostic[];
341
+ }
342
+ /**
343
+ * Lay out one card: wrap every slot against its frozen allocation, position
344
+ * every line, pin the footer, emit diagnostics. Never truncates or clips
345
+ * (DC-D4): the layout always describes the complete content inside the
346
+ * fixed 460 × 200 box. Any overflow — a too-wide line, a line-count
347
+ * overflow, or a combined header+body height that does not fit the space
348
+ * above the pinned rule — raises `card-overflow` carrying the original slot
349
+ * text, and both renderers refuse on it (overflow = refusal, owner
350
+ * criterion): no normal card is emitted until the content fits. An icon
351
+ * name with no glyph data raises `card-icon-unknown` and the slot collapses.
352
+ */
353
+ export declare function layoutCard(props: DiagramCardProps, measure: CardLineMeasure): CardLayout;
354
+ /**
355
+ * Frozen zone geometry (spec §6.4). Mirrors the `diagramZone` component
356
+ * tokens (`packages/tokens/src/component.ts`) and the `diagram-canvas`
357
+ * `measure.ts` constants (`CONTENT_INSET 16`, `RULE_GAP 4`,
358
+ * `SUBTITLE_TO_RULE_GAP 4`, `RULE_TO_FIRST_CHILD_GAP 16`,
359
+ * `LAST_CHILD_TO_BOTTOM_GAP 16`, `TOGGLE_ALLOCATION 66`,
360
+ * `FIXED_CARD_WIDTH 460`, `FIXED_CARD_HEIGHT 200`); the token↔constant
361
+ * agreement test asserts the sources agree. Fields shared with the atomic
362
+ * card alias `CARD_GEOMETRY` directly — one geometry source (§5.6).
363
+ */
364
+ export declare const ZONE_GEOMETRY: {
365
+ readonly radius: 0;
366
+ readonly borderWidth: 1.5;
367
+ readonly headerInset: 16;
368
+ readonly iconSize: 70;
369
+ readonly iconTextGap: 6;
370
+ readonly kicker: {
371
+ readonly size: 22;
372
+ readonly weight: 400;
373
+ readonly lineHeight: 1.3;
374
+ readonly letterSpacingEm: 0.04;
375
+ };
376
+ readonly title: {
377
+ readonly size: 32;
378
+ readonly weight: 700;
379
+ readonly lineHeight: 1.3;
380
+ };
381
+ readonly subtitle: {
382
+ readonly size: 24;
383
+ readonly weight: 400;
384
+ readonly lineHeight: 1.3;
385
+ };
386
+ /** Rendered title → subtitle gap: alias of the card `gap` (§6.4). */
387
+ readonly subtitleGap: 6;
388
+ readonly headerRuleGap: 4;
389
+ readonly contentInsetTop: 16;
390
+ readonly contentInsetBottom: 16;
391
+ readonly contentInsetInline: 16;
392
+ readonly ruleHeight: 1;
393
+ readonly ruleMargin: 4;
394
+ readonly ruleInsetStart: 16;
395
+ readonly ruleInsetEnd: 10;
396
+ readonly footer: {
397
+ readonly size: 24;
398
+ readonly weight: 700;
399
+ readonly lineHeight: 1.3;
400
+ };
401
+ readonly footerBottomInset: 9.25;
402
+ readonly toggleAllocation: 66;
403
+ readonly toggleBoxSize: 32;
404
+ /**
405
+ * Expanded toggle top inset: the frozen SVG places every zone toggle at
406
+ * `y + 10` (flush under the frame's top edge), while the header band
407
+ * starts at `y + 16`.
408
+ */
409
+ readonly toggleTopInset: 10;
410
+ /**
411
+ * Expanded header text inset from the frame's left edge: the kit wraps
412
+ * kicker/title at `width − 178` (icon 16 + 70 + gap 6, toggle room, right
413
+ * inset) — 314 px at the PEOPLE width 492.
414
+ */
415
+ readonly headerTextInset: 178;
416
+ readonly collapsedWidth: 460;
417
+ readonly collapsedHeight: 200;
418
+ readonly collapsedInset: 16;
419
+ readonly collapsedSubtitleMarginInline: 16;
420
+ readonly allocatedLines: {
421
+ readonly kicker: 1;
422
+ readonly title: 2;
423
+ readonly subtitle: 2;
424
+ readonly footer: 1;
425
+ };
426
+ };
427
+ /** Centred collapsed-subtitle measure (§6.2.1): 460 − 2 × (16 + 16). */
428
+ export declare const COLLAPSED_SUBTITLE_MEASURE: number;
429
+ export interface DiagramZoneToggle {
430
+ readonly collapsed: boolean;
431
+ readonly label: string;
432
+ readonly onToggle?: () => void;
433
+ }
434
+ export interface DiagramZoneProps {
435
+ readonly entityId: string;
436
+ readonly kicker?: string;
437
+ readonly title: string;
438
+ readonly subtitle?: string;
439
+ /**
440
+ * Zone footer, both states (§6.1): folding never changes the footer —
441
+ * collapsed it pins the card rule, expanded it pins at the frame bottom.
442
+ */
443
+ readonly footer?: string;
444
+ readonly icon?: string;
445
+ readonly iconGlyph?: DiagramGlyphPaths;
446
+ readonly tone?: string;
447
+ /** Neutral status prop: dashed border in both states, independent of tint. */
448
+ readonly proposed?: boolean;
449
+ readonly collapsed: boolean;
450
+ readonly toggleLabel?: string;
451
+ /** Owner variant: `"center"` centres every text slot, both states. */
452
+ readonly align?: "left" | "center";
453
+ /**
454
+ * Occurrence box supplied by the host layout (§6.1: the component paints
455
+ * around the box it is given). Collapsed, the box is the frozen
456
+ * 460 × 200 card; expanded, `width`/`height` size the frame.
457
+ */
458
+ readonly x?: number;
459
+ readonly y?: number;
460
+ readonly width?: number;
461
+ readonly height?: number;
462
+ }
463
+ /**
464
+ * Collapsed-zone → atomic-card props mapping (§6.2 field table): the
465
+ * subtitle becomes the centred body (`bodyMode: "subtitle"`), the footer
466
+ * pins the rule, the toggle takes the top-right slot. Shared by
467
+ * `layoutZone` and both renderers so the collapsed zone is the card.
468
+ */
469
+ export declare function zoneCollapsedCardProps(props: DiagramZoneProps): DiagramCardProps;
470
+ export interface ZoneDiagnostic {
471
+ /**
472
+ * `zone-overflow` / `zone-icon-unknown` are the zone's own; a descendant
473
+ * card or nested zone keeps its own `card-overflow` / `card-icon-unknown`
474
+ * code with its own `entityId` when `renderZoneSvg` aggregates them.
475
+ */
476
+ readonly code: "zone-overflow" | "zone-icon-unknown" | "card-overflow" | "card-icon-unknown";
477
+ readonly slot: string;
478
+ readonly entityId: string;
479
+ readonly neededPx: number;
480
+ readonly allocatedPx: number;
481
+ /** Original, unwrapped slot text (overflow = refusal keeps the source). */
482
+ readonly text?: string;
483
+ }
484
+ export interface ZoneChildSpec {
485
+ readonly kind: "card" | "zone";
486
+ readonly x: number;
487
+ readonly y: number;
488
+ readonly card?: DiagramCardProps;
489
+ readonly zone?: DiagramZoneProps;
490
+ readonly children?: readonly ZoneChildSpec[];
491
+ }
492
+ export interface ZoneLayout {
493
+ readonly box: {
494
+ readonly x: number;
495
+ readonly y: number;
496
+ readonly width: number;
497
+ readonly height: number;
498
+ };
499
+ readonly collapsed: boolean;
500
+ /** Collapsed: the card layout of the folded card (same geometry source). */
501
+ readonly card?: CardLayout;
502
+ /** Expanded: header + rule + footer geometry inside the frame. */
503
+ readonly header?: {
504
+ readonly iconBox?: {
505
+ readonly x: number;
506
+ readonly y: number;
507
+ readonly size: number;
508
+ } | undefined;
509
+ readonly headerTextX: number;
510
+ readonly headerTextWidth: number;
511
+ readonly kicker: readonly LaidOutLine[];
512
+ readonly title: readonly LaidOutLine[];
513
+ readonly headerBlockHeight: number;
514
+ readonly subtitle: readonly LaidOutLine[];
515
+ /** Subtitle wrap width: `min(width, 460) − 26` — the single geometry
516
+ * source shared with `renderZoneSvg` and the Svelte header. */
517
+ readonly subtitleWidth: number;
518
+ readonly subtitleBottom: number;
519
+ readonly ruleY: number;
520
+ readonly contentTop: number;
521
+ readonly toggleBox?: {
522
+ readonly x: number;
523
+ readonly y: number;
524
+ readonly size: number;
525
+ } | undefined;
526
+ /** Footer lines, pinned at the frame bottom in the expanded state too
527
+ * (§6.1: folding never changes the footer). */
528
+ readonly footer: readonly LaidOutLine[];
529
+ /** Rule above the footer block (same insets as the header rule). */
530
+ readonly footerRuleY?: number;
531
+ readonly footerBottom: number;
532
+ };
533
+ readonly diagnostics: readonly ZoneDiagnostic[];
534
+ }
535
+ /**
536
+ * Lay out one zone. Collapsed, the zone IS the atomic card (§6.2): the
537
+ * subtitle wraps at the frozen 396 px measure and centres in the card body
538
+ * area (`bodyMode: "subtitle"`), the footer pins the rule, and the toggle
539
+ * takes the top-right slot. Expanded, the frame carries the shared header
540
+ * (icon 70 at the 16 px inset, text at x + 92), the subtitle under the
541
+ * icon from the left inset, the header rule 4 px under the subtitle (or
542
+ * the header block), and the content box 16 px under the rule.
543
+ */
544
+ export declare function layoutZone(props: DiagramZoneProps, measure: CardLineMeasure, children?: readonly ZoneChildSpec[]): ZoneLayout;
545
+ /** Presentation-shaped zone input (structural subset of `EntityPresentation`). */
546
+ export interface ZonePresentationInput {
547
+ readonly form: "card" | "container" | "legend" | "legend-key";
548
+ readonly text: {
549
+ readonly title?: string;
550
+ readonly kicker?: string;
551
+ readonly subtitle?: string;
552
+ readonly footer?: string;
553
+ };
554
+ readonly icon?: string;
555
+ readonly categoryRef?: string;
556
+ /** Neutral status prop: drawn as a dashed border, independent of tint. */
557
+ readonly proposed?: boolean;
558
+ }
559
+ export type ZoneResolveResult = {
560
+ readonly kind: "zone";
561
+ readonly props: DiagramZoneProps;
562
+ } | {
563
+ readonly kind: "label";
564
+ };
565
+ export interface ProjectZoneOptions {
566
+ readonly entityId: string;
567
+ readonly collapsed: boolean;
568
+ readonly toggleLabel?: string;
569
+ readonly align?: "left" | "center";
570
+ readonly x?: number;
571
+ readonly y?: number;
572
+ readonly width?: number;
573
+ readonly height?: number;
574
+ readonly resolveGlyph?: (name: string) => DiagramGlyphPaths | undefined;
575
+ }
576
+ /**
577
+ * Shared `EntityPresentation` → zone props projection (§4.2/§6.1): container
578
+ * and legend forms resolve to a zone; a missing entry or no title resolves
579
+ * to `{ kind: "label" }` (L-R12).
580
+ */
581
+ export declare function projectZoneProps(presentation: ZonePresentationInput | undefined, opts: ProjectZoneOptions): ZoneResolveResult;
582
+ //# sourceMappingURL=diagramCardModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagramCardModel.d.ts","sourceRoot":"","sources":["../src/lib/diagramCardModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,oEAAoE;AACpE,eAAO,MAAM,aAAa;;;;;;IAMxB,qEAAqE;;;;;;;;;;;;;;;IAMrE,+BAA+B;;;;;;;IAG/B,+CAA+C;;;;;;;;;;;IAO/C,gEAAgE;;IAEhE;;;;OAIG;;IAEH,uEAAuE;;IAEvE;;;;;OAKG;;IAEH,6DAA6D;;;;;;;CAErD,CAAC;AAEX,8DAA8D;AAC9D,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;k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