@alfadocs/ui-kit 1.4.9 → 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.
@@ -17,7 +17,7 @@ import { S as Ft } from "./spinner-hbwuKwMf.js";
17
17
  import { I as tt } from "./icon-button-9c9Gp41m.js";
18
18
  import { S as Be } from "./select-BW5ecXlX.js";
19
19
  import { C as Ge } from "./combobox-DiMLItyu.js";
20
- import { M as Ue } from "./multi-select-CC52Qws6.js";
20
+ import { M as Ue } from "./multi-select-DqL4o0qV.js";
21
21
  import { S as _e } from "./skeleton-CZbwyJAA.js";
22
22
  import { E as dt } from "./empty-state-Df0tM6Kn.js";
23
23
  import { S as $t } from "./stepper-accordion-BeVMZPuG.js";
@@ -2703,4 +2703,4 @@ export {
2703
2703
  Q as O,
2704
2704
  Cs as b
2705
2705
  };
2706
- //# sourceMappingURL=booking-BHziT711.js.map
2706
+ //# sourceMappingURL=booking-DuSkvE5x.js.map
@@ -5,7 +5,7 @@ import { D as H } from "./date-range-picker-CDrZ8Zh0.js";
5
5
  import { useTranslation as L } from "react-i18next";
6
6
  import { C as Q } from "./checkbox-BuZ1u__2.js";
7
7
  import { B as P } from "./button-BvNtqHAS.js";
8
- import { M as W } from "./multi-select-CC52Qws6.js";
8
+ import { M as W } from "./multi-select-DqL4o0qV.js";
9
9
  import { S as X } from "./scroll-area-BZOvUhwQ.js";
10
10
  import { A as $ } from "./autocomplete-BrONKN8l.js";
11
11
  import { N as D } from "./number-input-DOe5VYei.js";
@@ -769,4 +769,4 @@ export {
769
769
  Ae as f,
770
770
  qe as g
771
771
  };
772
- //# sourceMappingURL=link-cell-renderer-DIKlJhEq.js.map
772
+ //# sourceMappingURL=link-cell-renderer-C8npOgmM.js.map
@@ -507,6 +507,7 @@ const rt = {
507
507
  /* @__PURE__ */ n(D.Portal, { children: /* @__PURE__ */ n(
508
508
  D.Content,
509
509
  {
510
+ "data-component": "multi-select-list",
510
511
  onOpenAutoFocus: (e) => e.preventDefault(),
511
512
  onCloseAutoFocus: (e) => e.preventDefault(),
512
513
  align: "start",
@@ -623,4 +624,4 @@ export {
623
624
  nt as a,
624
625
  rt as m
625
626
  };
626
- //# sourceMappingURL=multi-select-CC52Qws6.js.map
627
+ //# sourceMappingURL=multi-select-DqL4o0qV.js.map
@@ -4,7 +4,7 @@ import { useTranslation as $ } from "react-i18next";
4
4
  import { a as p, T as b, A as be, d as ne, D as P, e as ge } from "./actions-cell-renderer-C67oj7mR.js";
5
5
  import { S as Ce } from "./select-BW5ecXlX.js";
6
6
  import { u as ve } from "./registry-DvAUVLHh.js";
7
- import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as ie, D as K, C as Te, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-DIKlJhEq.js";
7
+ import { I as Ne, L as we, b as L, a as _, c as U, N as H, d as F, S as R, T as ie, D as K, C as Te, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-C8npOgmM.js";
8
8
  import { B as ae } from "./badge-DCOqV9mI.js";
9
9
  import { c as Pe } from "./index-D2ZczOXr.js";
10
10
  import { T as We } from "./timestamp-BV2lC-wV.js";
@@ -1101,4 +1101,4 @@ export {
1101
1101
  q as g,
1102
1102
  tt as u
1103
1103
  };
1104
- //# sourceMappingURL=patient-table-DQKcWowi.js.map
1104
+ //# sourceMappingURL=patient-table-zifAcsjV.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.4.9",
3
+ "packageVersion": "1.4.11",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -56,6 +56,12 @@ export interface AnamnesisSummaryCardProps extends Omit<HTMLAttributes<HTMLDivEl
56
56
  * sections. Default `true`; absent when nothing is flagged.
57
57
  */
58
58
  highlightedGroup?: boolean;
59
+ /**
60
+ * Render ONLY the highlighted-answers group — no sections, no unanswered
61
+ * footer — for a card whose sole job is the flagged answers. Empty copy
62
+ * when nothing is flagged. Default `false`.
63
+ */
64
+ highlightedOnly?: boolean;
59
65
  /** `'elevated'` (default) — Card with shadow; `'flat'` — outlined Card. */
60
66
  surface?: 'flat' | 'elevated';
61
67
  /** `'comfortable'` (default) or `'compact'` (tighter row gap + paddings). */
@@ -1,4 +1,4 @@
1
- import { A as r, a as s } from "../../_chunks/anamnesis-summary-card-FNSkuUMB.js";
1
+ import { A as r, a as s } from "../../_chunks/anamnesis-summary-card-CpQViN5l.js";
2
2
  export {
3
3
  r as AnamnesisSummaryCard,
4
4
  s as anamnesisSummaryCardAgent
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-BHziT711.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-DuSkvE5x.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
@@ -1,6 +1,6 @@
1
1
  import { A as r, D as l, T as t, a as s, b as n, c as o, d, e as i, f as C } from "../../_chunks/actions-cell-renderer-C67oj7mR.js";
2
2
  import { B as T, C as F, E as g, a as b, R as u, T as c, b as m, r as f, u as x } from "../../_chunks/editable-currency-cell-renderer-DyMbSyDK.js";
3
- import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-DIKlJhEq.js";
3
+ import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-C8npOgmM.js";
4
4
  export {
5
5
  r as ActionsCellRenderer,
6
6
  T as BalanceCellRenderer,
@@ -1,4 +1,4 @@
1
- import { M as a, m as l, a as i } from "../../_chunks/multi-select-CC52Qws6.js";
1
+ import { M as a, m as l, a as i } from "../../_chunks/multi-select-DqL4o0qV.js";
2
2
  export {
3
3
  a as MultiSelect,
4
4
  l as multiSelectAgent,
@@ -1,4 +1,4 @@
1
- import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-DQKcWowi.js";
1
+ import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-zifAcsjV.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ import { T as we, t as Ve } from "./_chunks/token-insert-menu-D8FgXl33.js";
44
44
  import { F as Ue, b as Ke, f as Ye } from "./_chunks/file-upload-CwxdqkMK.js";
45
45
  import { F as qe } from "./_chunks/form-field-M5UpX65Z.js";
46
46
  import { F as je, u as Qe } from "./_chunks/form-field-context-B3APVHKx.js";
47
- import { M as Ze, m as $e, a as as } from "./_chunks/multi-select-CC52Qws6.js";
47
+ import { M as Ze, m as $e, a as as } from "./_chunks/multi-select-DqL4o0qV.js";
48
48
  import { N as ss, u as rs } from "./_chunks/number-input-DOe5VYei.js";
49
49
  import { O as ts } from "./_chunks/otp-input-DzBQ-CpE.js";
50
50
  import { P as is, u as ps } from "./_chunks/use-password-requirements-Bwtqx1qN.js";
@@ -77,7 +77,7 @@ import { C as Ur } from "./_chunks/contact-card-0hnFJwrz.js";
77
77
  import { C as Yr } from "./_chunks/counter-dRlTNC_y.js";
78
78
  import { A as qr, D as zr, T as jr, a as Qr, b as Jr, c as Zr, d as $r, e as ao, f as eo } from "./_chunks/actions-cell-renderer-C67oj7mR.js";
79
79
  import { B as ro, C as oo, E as to, a as no, R as io, T as po, b as mo, r as lo, u as Ao } from "./_chunks/editable-currency-cell-renderer-DyMbSyDK.js";
80
- import { C as fo, D as go, a as Co, b as So, I as xo, L as To, N as uo, c as Po, S as Io, d as Eo, e as bo, T as Ro, f as _o, g as No, U as ho } from "./_chunks/link-cell-renderer-DIKlJhEq.js";
80
+ import { C as fo, D as go, a as Co, b as So, I as xo, L as To, N as uo, c as Po, S as Io, d as Eo, e as bo, T as Ro, f as _o, g as No, U as ho } from "./_chunks/link-cell-renderer-C8npOgmM.js";
81
81
  import { D as Fo, d as Mo, a as Lo, b as Oo } from "./_chunks/data-table-tabs-C8uDThT3.js";
82
82
  import { C as ko, c as Bo } from "./_chunks/clinical-note-card-D63x_AkK.js";
83
83
  import { D as vo } from "./_chunks/description-list-Ck7fKdt5.js";
@@ -180,7 +180,7 @@ import { T as md } from "./_chunks/typing-indicator-DHeVN4ob.js";
180
180
  import { A as dd } from "./_chunks/anamnesis-card-C4FVp9wO.js";
181
181
  import { D as cd, F as fd, a as gd, M as Cd, b as Sd, e as xd, f as Td, g as ud, c as Pd, m as Id, r as Ed, v as bd } from "./_chunks/muscle-scheme-yfzP_xoJ.js";
182
182
  import { A as _d, a as Nd, b as hd, c as Dd, d as Fd, e as Md, C as Ld, f as Od, g as yd, D as kd, h as Bd, E as Gd, L as vd, O as Hd, P as wd, i as Vd, j as Wd, k as Ud, l as Kd, R as Yd, S as Xd, m as qd, n as zd, o as jd, p as Qd, q as Jd, r as Zd, s as $d, t as aA, u as eA, v as sA, w as rA, x as oA, y as tA, z as nA, B as iA, F as pA } from "./_chunks/optical-prescription-Brs0CeP3.js";
183
- import { B as lA, C as dA, O as AA, b as cA } from "./_chunks/booking-BHziT711.js";
183
+ import { B as lA, C as dA, O as AA, b as cA } from "./_chunks/booking-DuSkvE5x.js";
184
184
  import { C as gA, c as CA, r as SA } from "./_chunks/calendar-4dXTvsCz.js";
185
185
  import { C as TA } from "./_chunks/calendar-event-card-C6qGtywL.js";
186
186
  import { C as PA, c as IA } from "./_chunks/care-plan-card-DiyK3Eys.js";
@@ -190,8 +190,8 @@ import { O as FA, o as MA } from "./_chunks/operator-hero-DVy0RGoD.js";
190
190
  import { P as OA, p as yA } from "./_chunks/patient-details-Bf4iTAPp.js";
191
191
  import { P as BA, p as GA } from "./_chunks/patient-search-NQemeJlL.js";
192
192
  import { P as HA, p as wA } from "./_chunks/patient-summary-card-dkV6a53T.js";
193
- import { A as WA, a as UA } from "./_chunks/anamnesis-summary-card-FNSkuUMB.js";
194
- import { B as YA, C as XA, N as qA, P as zA, a as jA, b as QA, g as JA, u as ZA } from "./_chunks/patient-table-DQKcWowi.js";
193
+ import { A as WA, a as UA } from "./_chunks/anamnesis-summary-card-CpQViN5l.js";
194
+ import { B as YA, C as XA, N as qA, P as zA, a as jA, b as QA, g as JA, u as ZA } from "./_chunks/patient-table-zifAcsjV.js";
195
195
  import { B as ac, M as ec, P as sc, a as rc, b as oc, c as tc, d as nc, S as ic, e as pc, f as mc, g as lc, h as dc, p as Ac, i as cc, j as fc, k as gc, s as Cc, t as Sc, l as xc } from "./_chunks/periodontal-chart-CfFgKXWa.js";
196
196
  import { P as uc, a as Pc, p as Ic } from "./_chunks/periodontal-chart-card--6yTUsrQ.js";
197
197
  import { D as bc, P as Rc, a as _c, b as Nc, c as hc, S as Dc, e as Fc, i as Mc, p as Lc } from "./_chunks/periodontal-diagnosis-cco40xTa.js";
@@ -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-6tOCXdoz.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-6tOCXdoz.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,