@alfadocs/ui-kit 1.4.10 → 1.4.11

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.4.10",
3
+ "packageVersion": "1.4.11",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
package/dist/index.js CHANGED
@@ -215,7 +215,7 @@ import { T as Gg } from "./_chunks/transaction-chip-DJCstquX.js";
215
215
  import { W as Hg, a as wg } from "./_chunks/whatsapp-button-BIy6NaJK.js";
216
216
  import { C as Wg, W as Ug, a as Kg, b as Yg, c as Xg, i as qg, l as zg, m as jg, r as Qg, w as Jg, d as Zg, e as $g, f as aC } from "./_chunks/workflow-map-C5PGP6cD.js";
217
217
  import { A as sC, a as rC, b as oC, c as tC } from "./_chunks/alia-sidebar-Bg53-ZOT.js";
218
- import { A as iC, a as pC, L as mC, P as lC, S as dC, T as AC, b as cC, c as fC, d as gC, e as CC, f as SC, g as xC, h as TC, i as uC, j as PC, k as IC, l as EC, m as bC, n as RC, o as _C, p as NC, r as hC, q as DC, s as FC, t as MC, u as LC } from "./_chunks/anamnesis-summary-rows-BWjPUp0m.js";
218
+ import { A as iC, a as pC, L as mC, P as lC, S as dC, T as AC, b as cC, c as fC, d as gC, e as CC, f as SC, g as xC, h as TC, i as uC, j as PC, k as IC, l as EC, m as bC, n as RC, o as _C, p as NC, r as hC, q as DC, s as FC, t as MC, u as LC } from "./_chunks/anamnesis-summary-rows-Dw3l6nOD.js";
219
219
  import { C as yC, M as kC, P as BC } from "./_chunks/marketplace-app-shell-BxOiy25s.js";
220
220
  import { P as vC } from "./_chunks/payment-automation-upsell-CZZPGfs0.js";
221
221
  import { S as wC } from "./_chunks/signature-request-C4UBfVRZ.js";
@@ -0,0 +1,29 @@
1
+ import type { Visit } from './anamnesis-types';
2
+ /** Column id of the synthetic merged first visit. A record must not hold a
3
+ * real visit with this id. */
4
+ export declare const BASELINE_VISIT_ID = "baseline";
5
+ export interface VisitBaseline {
6
+ /** The synthetic merged first visit; `null` when the record holds fewer
7
+ * than two first visits. */
8
+ baseline: Visit | null;
9
+ /** The first visits folded into it, oldest first. Empty when `baseline`
10
+ * is null. */
11
+ sources: Visit[];
12
+ /** The list every downstream read runs on: `[baseline, ...non-first visits
13
+ * in record order]` — or the INPUT ARRAY ITSELF when nothing merged. */
14
+ visits: Visit[];
15
+ /** What the picker may toggle: `visits` minus the baseline (the input
16
+ * array itself when nothing merged). */
17
+ pickable: Visit[];
18
+ }
19
+ export interface ResolveBaselineOptions {
20
+ /** A visit that stays its own column even when it is a first visit —
21
+ * compile mode's editable newest visit. Omitted = every first visit folds. */
22
+ keepId?: string;
23
+ }
24
+ export declare function isBaselineVisit(visit: Visit): boolean;
25
+ /** Resolve the effective visit list. Never mutates `visits` or any visit in
26
+ * it; the synthetic visit is built field by field so nothing of a source's
27
+ * identity (id, source label, practitioner) leaks into it. */
28
+ export declare function resolveBaseline(visits: readonly Visit[], { keepId }?: ResolveBaselineOptions): VisitBaseline;
29
+ //# sourceMappingURL=anamnesis-baseline.d.ts.map
@@ -78,9 +78,12 @@ export interface AnamnesisComparePanelProps {
78
78
  * unframed above it — the two read as one surface, not a boxed table under
79
79
  * a bare one. */
80
80
  framed?: boolean;
81
+ /** The first visits the merged baseline column folds together, oldest
82
+ * first — its header lists them exactly as the grid's does. */
83
+ baselineSources?: readonly Visit[];
81
84
  }
82
85
  /** Slot 4's contents: a header carrying the way out, the visit picker, then
83
86
  * one matrix of differences. The enclosing `Collapsible` lives in
84
87
  * `anamnesis-evolution.tsx`. */
85
- export declare function AnamnesisComparePanel({ visits, columns, selectedIds, onSelectionChange, diff, seriesByKey, pathologies, annotations, onSelectAnnotation, t, onClose, framed, }: AnamnesisComparePanelProps): import("react/jsx-runtime").JSX.Element;
88
+ export declare function AnamnesisComparePanel({ visits, columns, selectedIds, onSelectionChange, diff, seriesByKey, pathologies, annotations, onSelectAnnotation, t, onClose, framed, baselineSources, }: AnamnesisComparePanelProps): import("react/jsx-runtime").JSX.Element;
86
89
  //# sourceMappingURL=anamnesis-compare-panel.d.ts.map
@@ -8,6 +8,10 @@ export interface AnamnesisEvolutionGridProps {
8
8
  t: TFunction;
9
9
  /** Make the newest visit column editable (compile mode). */
10
10
  editable?: boolean;
11
+ /** The visit whose column takes the inputs, by id. Omitted = the record's
12
+ * last visit. The evolution section sets it from the REAL record: on the
13
+ * merged view the last position need not be the visit being compiled. */
14
+ editableVisitId?: string;
11
15
  onCellChange?: (visit: Visit, def: NumericParameterDef, value: number | null) => void;
12
16
  /** Compare mode: the visit ids under comparison (two or more) + the CELLS
13
17
  * that differ from the compared column before them, keyed
@@ -43,6 +47,9 @@ export interface AnamnesisEvolutionGridProps {
43
47
  * event's chip in the bar above. Omitted = the lines stay decorative, which
44
48
  * is all a grid with no event bar above it can honestly offer. */
45
49
  onSelectAnnotation?: (eventId: string) => void;
50
+ /** The first visits the leftmost column merges, oldest first; the header
51
+ * lists them. Omitted = no column is synthetic. */
52
+ baselineSources?: readonly Visit[];
46
53
  }
47
- export declare function AnamnesisEvolutionGrid({ record, defs, t, editable, onCellChange, compare, framed, defaultOpenNoteVisitId, onOpenNote, visitColumns, capturableKeys, annotations, onSelectAnnotation, }: AnamnesisEvolutionGridProps): import("react/jsx-runtime").JSX.Element;
54
+ export declare function AnamnesisEvolutionGrid({ record, defs, t, editable, editableVisitId, onCellChange, compare, framed, defaultOpenNoteVisitId, onOpenNote, visitColumns, capturableKeys, annotations, onSelectAnnotation, baselineSources, }: AnamnesisEvolutionGridProps): import("react/jsx-runtime").JSX.Element;
48
55
  //# sourceMappingURL=anamnesis-evolution-grid.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { TFunction } from 'i18next';
3
- import type { OpenAnamnesisNote } from './anamnesis-types';
3
+ import type { OpenAnamnesisNote, Visit } from './anamnesis-types';
4
4
  import type { VisitColumn } from './anamnesis-window';
5
5
  /** Static class literals — Tailwind has to see every arbitrary value at build
6
6
  * time, and a class built by interpolation emits no CSS at all. */
@@ -47,9 +47,13 @@ export interface MatrixVisitHeaderProps {
47
47
  withNote?: boolean;
48
48
  /** Route the note to the host's side panel instead of opening it in place. */
49
49
  onOpenNote?: OpenAnamnesisNote;
50
+ /** The first visits this column merges, oldest first. Set only on the
51
+ * synthetic baseline column: the header then lists them instead of one
52
+ * date, and offers no note trigger (there is no single visit to open). */
53
+ mergedFrom?: readonly Visit[];
50
54
  }
51
55
  /** One visit's `<th scope="col">`, identical wherever the visit is a column. */
52
- export declare function MatrixVisitHeader({ column, t, emphasised, editable, defaultOpenNoteVisitId, withNote, onOpenNote, }: MatrixVisitHeaderProps): import("react/jsx-runtime").JSX.Element;
56
+ export declare function MatrixVisitHeader({ column, t, emphasised, editable, defaultOpenNoteVisitId, withNote, onOpenNote, mergedFrom, }: MatrixVisitHeaderProps): import("react/jsx-runtime").JSX.Element;
53
57
  export interface MatrixRowSpec {
54
58
  key: string;
55
59
  /** Full-width group banner. When set, every other field is ignored. */
@@ -20,6 +20,9 @@ export interface VisitWindowOptions {
20
20
  /** Visit ids rendered on top of the selection — the compare anchors, so a
21
21
  * compared column is never one the picker left out. */
22
22
  alsoShowIds?: Iterable<string>;
23
+ /** Ids rendered in every window and EXCLUDED from the counts — the merged
24
+ * baseline. "Showing N of M" counts only what the picker can toggle. */
25
+ alwaysShowIds?: Iterable<string>;
23
26
  }
24
27
  /** The selection the picker opens on: the first visit and the latest. On a
25
28
  * single-visit record the two collapse to one. */
@@ -1,4 +1,4 @@
1
- import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-BWjPUp0m.js";
1
+ import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-Dw3l6nOD.js";
2
2
  export {
3
3
  e as Anamnesis,
4
4
  i as AnamnesisConfigEditor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",