@alfadocs/ui-kit 1.11.0 → 1.12.4

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 (48) hide show
  1. package/dist/_chunks/{actions-cell-renderer-xfSYiTXQ.js → actions-cell-renderer-BCEjn3-f.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-rows-d44s_whc.js → anamnesis-summary-rows-BfhxWPO3.js} +1421 -1418
  3. package/dist/_chunks/appointment-timeline-DCn0Jx55.js +403 -0
  4. package/dist/_chunks/{balance-badge-cell-C_Qz76x7.js → balance-badge-cell-BrlikHfT.js} +317 -290
  5. package/dist/_chunks/{chart-Bkr1Sh4o.js → chart-C6eHTxkO.js} +2 -2
  6. package/dist/_chunks/{control-room-rail-Cj2iX9h_.js → control-room-rail-iO_BCaq1.js} +2 -2
  7. package/dist/_chunks/{editable-currency-cell-renderer-zLf_bXvL.js → editable-currency-cell-renderer-B7TVZ5ZJ.js} +2 -2
  8. package/dist/_chunks/{face-scheme-BfDi4YkW.js → face-scheme-CZaKm6fG.js} +2 -2
  9. package/dist/_chunks/{file-manager-Df6hyUYg.js → file-manager-Moc7sUFj.js} +3 -3
  10. package/dist/_chunks/{header-settings-CVC_davE.js → header-settings-J-ZCAfir.js} +2 -2
  11. package/dist/_chunks/{icon-button-group-D6SVMteH.js → icon-button-group-VCCod3Hz.js} +154 -145
  12. package/dist/_chunks/{link-cell-renderer-Cp2MSlJl.js → link-cell-renderer-CenJx-_7.js} +197 -181
  13. package/dist/_chunks/{marketplace-app-shell-Chfdia7m.js → marketplace-app-shell-DDQXQ8hX.js} +2 -2
  14. package/dist/_chunks/{notes-panel-e9cJWVRg.js → notes-panel-CymneXtl.js} +93 -91
  15. package/dist/_chunks/{signature-request-CW30B77U.js → signature-request-DVDTKLjM.js} +2 -2
  16. package/dist/_chunks/{theme-toggle-DuMhQNFS.js → theme-toggle-uEwoKjl3.js} +2 -2
  17. package/dist/_chunks/{tool-rail-CHyUmulN.js → tool-rail-8Scslq3X.js} +2 -2
  18. package/dist/_chunks/{whatsapp-button-Ca9towA4.js → whatsapp-button-CuFIHJzG.js} +27 -19
  19. package/dist/agent-catalog.json +2 -2
  20. package/dist/agent-i18n/en.json +1 -1
  21. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  22. package/dist/components/appointment-timeline/appointment-timeline.d.ts +8 -0
  23. package/dist/components/appointment-timeline/index.js +1 -1
  24. package/dist/components/chart/index.js +1 -1
  25. package/dist/components/control-room-rail/index.js +1 -1
  26. package/dist/components/data-table/filters/date-range-filter.d.ts +22 -0
  27. package/dist/components/data-table/index.js +3 -3
  28. package/dist/components/face-scheme/index.js +1 -1
  29. package/dist/components/file-manager/index.js +1 -1
  30. package/dist/components/header-settings/index.js +1 -1
  31. package/dist/components/icon-button-group/index.js +1 -1
  32. package/dist/components/notes-panel/index.js +1 -1
  33. package/dist/components/notes-panel/notes-panel.d.ts +6 -0
  34. package/dist/components/patient-table/index.js +1 -1
  35. package/dist/components/theme-toggle/index.js +1 -1
  36. package/dist/components/tool-rail/index.js +1 -1
  37. package/dist/components/tool-rail/tool-rail.d.ts +1 -1
  38. package/dist/components/whatsapp-button/index.js +1 -1
  39. package/dist/host-compat.css +7 -1
  40. package/dist/index.js +16 -16
  41. package/dist/patterns/anamnesis/anamnesis-config.d.ts +18 -7
  42. package/dist/patterns/anamnesis/anamnesis-types.d.ts +8 -0
  43. package/dist/patterns/anamnesis/index.js +1 -1
  44. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  45. package/dist/patterns/signature-request/index.js +1 -1
  46. package/dist/tokens.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/_chunks/appointment-timeline-0mwtpErq.js +0 -388
@@ -9,7 +9,7 @@ import { C as w } from "./card-DPmk26CL.js";
9
9
  import { D as m } from "./dropdown-menu-DU-Hrf33.js";
10
10
  import { T as q } from "./tab-bar-DvFJIQfL.js";
11
11
  import { a as A, H as G, g as J, f as z, e as K, c as Q, d as U } from "./header-DUXRIPyM.js";
12
- import { H as X } from "./header-settings-CVC_davE.js";
12
+ import { H as X } from "./header-settings-J-ZCAfir.js";
13
13
  import { S as Y } from "./sign-in-with-alfadocs-button-BLe_quy5.js";
14
14
  import { S as Z, g as _, b as aa, a as ea, j as sa, k as ta, i as ra, h as I } from "./sidebar-C-Gr2LL-.js";
15
15
  import { T as na } from "./theme-root-BOO73p5t.js";
@@ -529,4 +529,4 @@ export {
529
529
  ka as M,
530
530
  g as P
531
531
  };
532
- //# sourceMappingURL=marketplace-app-shell-Chfdia7m.js.map
532
+ //# sourceMappingURL=marketplace-app-shell-DDQXQ8hX.js.map
@@ -1,16 +1,16 @@
1
1
  import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as se, useRef as a, useState as S, useId as oe, useCallback as le, useEffect as ce, useImperativeHandle as de, useMemo as ue } from "react";
3
- import { c as pe } from "./index-D2ZczOXr.js";
4
- import { useTranslation as fe } from "react-i18next";
5
- import { u as me } from "./registry-DvAUVLHh.js";
6
- import { C as ge } from "./clinical-note-card-BBgFd2nB.js";
7
- import { R as he } from "./rich-text-editor-BDfFtK4H.js";
2
+ import { forwardRef as oe, useRef as a, useState as M, useId as le, useCallback as ce, useEffect as de, useImperativeHandle as ue, useMemo as pe } from "react";
3
+ import { c as fe } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as me } from "react-i18next";
5
+ import { u as ge } from "./registry-DvAUVLHh.js";
6
+ import { C as he } from "./clinical-note-card-BBgFd2nB.js";
7
+ import { R as ve } from "./rich-text-editor-BDfFtK4H.js";
8
8
  import { T as be } from "./text-area-Bt3p7Pt0.js";
9
- import { B as ve } from "./button-nJaPh_HC.js";
10
- import { C as ye } from "./checkbox-BuZ1u__2.js";
11
- import { P as xe } from "./panel-header-D313n_9-.js";
12
- import { N as Pe } from "./notebook-pen-CO7HoM-W.js";
13
- const Ce = {
9
+ import { B as ye } from "./button-nJaPh_HC.js";
10
+ import { C as xe } from "./checkbox-BuZ1u__2.js";
11
+ import { P as Pe } from "./panel-header-D313n_9-.js";
12
+ import { N as Ce } from "./notebook-pen-CO7HoM-W.js";
13
+ const Ne = {
14
14
  id: "notes-panel",
15
15
  // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
16
16
  // with no dedicated capability in the closed vocabulary.
@@ -111,7 +111,7 @@ const Ce = {
111
111
  description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
112
112
  }
113
113
  }
114
- }, Ne = pe(
114
+ }, we = fe(
115
115
  "ds:flex ds:flex-col ds:rounded-[var(--radius-md)] ds:border-s-2 ds:ps-[var(--spacing-sm)]",
116
116
  {
117
117
  variants: {
@@ -123,81 +123,82 @@ const Ce = {
123
123
  defaultVariants: { current: !1 }
124
124
  }
125
125
  );
126
- function M(n) {
126
+ function z(n) {
127
127
  return n ? /<img\b/i.test(n) ? !0 : n.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
128
128
  }
129
- const Se = se(
129
+ const Me = oe(
130
130
  function({
131
131
  id: s,
132
132
  notes: x,
133
133
  onAddNote: l,
134
134
  currentNoteId: c,
135
- currentNoteKey: z,
135
+ currentNoteKey: B,
136
136
  composer: f = "rich",
137
- editorToolbar: B = "standard",
138
- redactor: L,
139
- imageUploadUrl: W,
137
+ editorToolbar: L = "standard",
138
+ redactor: W,
139
+ imageUploadUrl: E,
140
140
  showClinicalToggle: I = !0,
141
141
  canAddClinicalNote: m = !0,
142
- clinicalGatedReason: E,
142
+ clinicalGatedReason: D,
143
143
  defaultClinical: P = !1,
144
- onRequestAiDraft: D,
145
- aiDraftFormat: G,
146
- aiPrivacyNotice: Y,
147
- onDictate: F,
148
- onProofread: J,
149
- onAutoFormat: O,
144
+ onRequestAiDraft: G,
145
+ aiDraftFormat: Y,
146
+ aiPrivacyNotice: F,
147
+ onDictate: J,
148
+ onProofread: O,
149
+ onAutoFormat: Q,
150
150
  onTogglePin: g,
151
151
  onToggleFlag: h,
152
- title: Q,
153
- composerPlaceholder: U,
154
- addNoteLabel: X,
155
- emptyState: Z,
156
- className: $,
152
+ noteActions: V,
153
+ title: U,
154
+ composerPlaceholder: X,
155
+ addNoteLabel: Z,
156
+ emptyState: $,
157
+ className: ee,
157
158
  "aria-label": C,
158
- ...ee
159
- }, te) {
160
- const { t: o } = fe(), N = a(null), [d, w] = S(""), [b, V] = S(P), ne = Q ?? o("notesPanel.title", { defaultValue: "Notes" }), j = oe(), H = U ?? o("notesPanel.placeholder", { defaultValue: "Add a note…" }), q = o("notesPanel.composerLabel", {
159
+ ...te
160
+ }, ne) {
161
+ const { t: o } = me(), N = a(null), [d, w] = M(""), [v, j] = M(P), ie = U ?? o("notesPanel.title", { defaultValue: "Notes" }), H = le(), q = X ?? o("notesPanel.placeholder", { defaultValue: "Add a note…" }), K = o("notesPanel.composerLabel", {
161
162
  defaultValue: "New note"
162
- }), ie = f === "rich" ? M(d) : d.trim().length > 0, re = le(() => {
163
+ }), re = f === "rich" ? z(d) : d.trim().length > 0, ae = ce(() => {
163
164
  var e, t;
164
165
  if (l) {
165
166
  if (f === "rich") {
166
167
  const i = ((e = N.current) == null ? void 0 : e.getHTML()) ?? d;
167
- if (!M(i)) return;
168
- l({ content: i, clinical: b }), (t = N.current) == null || t.clear();
168
+ if (!z(i)) return;
169
+ l({ content: i, clinical: v }), (t = N.current) == null || t.clear();
169
170
  } else {
170
171
  const i = d.trim();
171
172
  if (!i) return;
172
- l({ content: i, clinical: b });
173
+ l({ content: i, clinical: v });
173
174
  }
174
- w(""), V(P);
175
+ w(""), j(P);
175
176
  }
176
- }, [f, d, b, P, l]), A = [...x].sort(
177
+ }, [f, d, v, P, l]), T = [...x].sort(
177
178
  (e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
178
179
  ), R = a(null);
179
- ce(() => {
180
+ de(() => {
180
181
  var e, t;
181
182
  c && ((e = R.current) == null || e.scrollIntoView({ block: "center" }), (t = R.current) == null || t.focus());
182
- }, [c, z]);
183
- const K = a(x);
184
- K.current = x;
183
+ }, [c, B]);
184
+ const _ = a(x);
185
+ _.current = x;
185
186
  const u = a(l);
186
187
  u.current = l;
187
- const v = a(g);
188
- v.current = g;
188
+ const b = a(g);
189
+ b.current = g;
189
190
  const y = a(h);
190
191
  y.current = h;
191
192
  const k = a(m);
192
193
  k.current = m;
193
- const T = a(c);
194
- T.current = c;
195
- const _ = a(null);
196
- de(te, () => _.current, []);
197
- const ae = ue(
194
+ const A = a(c);
195
+ A.current = c;
196
+ const S = a(null);
197
+ ue(ne, () => S.current, []);
198
+ const se = pe(
198
199
  () => ({
199
200
  // Ids + flags only — never the note body or author (both PHI).
200
- getNotes: () => K.current.map((e) => ({
201
+ getNotes: () => _.current.map((e) => ({
201
202
  id: e.id,
202
203
  pinned: !!e.pinned,
203
204
  flagged: !!e.flagged,
@@ -205,14 +206,14 @@ const Se = se(
205
206
  })),
206
207
  canAddNote: () => !!u.current,
207
208
  canAddClinical: () => k.current,
208
- getCurrentNoteId: () => T.current ?? null,
209
+ getCurrentNoteId: () => A.current ?? null,
209
210
  addNote: (e) => {
210
211
  var t;
211
212
  e.clinical && !k.current || (t = u.current) == null || t.call(u, e);
212
213
  },
213
214
  togglePin: (e) => {
214
215
  var t;
215
- return (t = v.current) == null ? void 0 : t.call(v, e);
216
+ return (t = b.current) == null ? void 0 : t.call(b, e);
216
217
  },
217
218
  toggleFlag: (e) => {
218
219
  var t;
@@ -221,23 +222,23 @@ const Se = se(
221
222
  }),
222
223
  []
223
224
  );
224
- return me(Ce, ae, s), /* @__PURE__ */ p(
225
+ return ge(Ne, se, s), /* @__PURE__ */ p(
225
226
  "section",
226
227
  {
227
- ref: _,
228
+ ref: S,
228
229
  "data-component": "notes-panel",
229
230
  "data-component-id": s,
230
- "aria-labelledby": C ? void 0 : j,
231
+ "aria-labelledby": C ? void 0 : H,
231
232
  "aria-label": C,
232
- className: ["ds:flex ds:flex-col", $].filter(Boolean).join(" "),
233
- ...ee,
233
+ className: ["ds:flex ds:flex-col", ee].filter(Boolean).join(" "),
234
+ ...te,
234
235
  children: [
235
236
  /* @__PURE__ */ r(
236
- xe,
237
+ Pe,
237
238
  {
238
- title: ne,
239
- icon: /* @__PURE__ */ r(Pe, { "aria-hidden": "true" }),
240
- headingId: C ? void 0 : j,
239
+ title: ie,
240
+ icon: /* @__PURE__ */ r(Ce, { "aria-hidden": "true" }),
241
+ headingId: C ? void 0 : H,
241
242
  sticky: !0,
242
243
  divider: !0
243
244
  }
@@ -245,33 +246,33 @@ const Se = se(
245
246
  /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
246
247
  l ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
247
248
  f === "rich" ? /* @__PURE__ */ r(
248
- he,
249
+ ve,
249
250
  {
250
251
  ref: N,
251
- ariaLabel: q,
252
- placeholder: H,
253
- toolbar: B,
252
+ ariaLabel: K,
253
+ placeholder: q,
254
+ toolbar: L,
254
255
  minHeight: "sm",
255
- redactor: L,
256
- imageUploadUrl: W,
256
+ redactor: W,
257
+ imageUploadUrl: E,
257
258
  onChange: ({ html: e }) => w(e),
258
- onRequestAiDraft: D,
259
- aiDraftFormat: G,
260
- aiPrivacyNotice: Y,
261
- onDictate: F,
262
- onProofread: J,
263
- onAutoFormat: O
259
+ onRequestAiDraft: G,
260
+ aiDraftFormat: Y,
261
+ aiPrivacyNotice: F,
262
+ onDictate: J,
263
+ onProofread: O,
264
+ onAutoFormat: Q
264
265
  }
265
266
  ) : /* @__PURE__ */ r(
266
267
  be,
267
268
  {
268
269
  value: d,
269
270
  onChange: (e) => w(e.target.value),
270
- placeholder: H,
271
+ placeholder: q,
271
272
  autoResize: !0,
272
273
  minRows: 2,
273
274
  maxRows: 6,
274
- "aria-label": q
275
+ "aria-label": K
275
276
  }
276
277
  ),
277
278
  /* @__PURE__ */ p(
@@ -283,35 +284,35 @@ const Se = se(
283
284
  ].join(" "),
284
285
  children: [
285
286
  I ? /* @__PURE__ */ r(
286
- ye,
287
+ xe,
287
288
  {
288
289
  size: "sm",
289
290
  label: o("notesPanel.clinicalToggle", {
290
291
  defaultValue: "Clinical note"
291
292
  }),
292
- checked: b,
293
- onCheckedChange: (e) => V(e === !0),
293
+ checked: v,
294
+ onCheckedChange: (e) => j(e === !0),
294
295
  disabled: !m,
295
- disabledReason: m ? void 0 : E ?? o("notesPanel.clinicalGated", {
296
+ disabledReason: m ? void 0 : D ?? o("notesPanel.clinicalGated", {
296
297
  defaultValue: "You do not have permission to write clinical notes."
297
298
  })
298
299
  }
299
300
  ) : null,
300
301
  /* @__PURE__ */ r(
301
- ve,
302
+ ye,
302
303
  {
303
304
  type: "button",
304
305
  size: "sm",
305
- onClick: re,
306
- disabled: !ie,
307
- children: X ?? o("notesPanel.add", { defaultValue: "Add note" })
306
+ onClick: ae,
307
+ disabled: !re,
308
+ children: Z ?? o("notesPanel.add", { defaultValue: "Add note" })
308
309
  }
309
310
  )
310
311
  ]
311
312
  }
312
313
  )
313
314
  ] }) : null,
314
- A.length > 0 ? /* @__PURE__ */ r("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: A.map((e, t) => {
315
+ T.length > 0 ? /* @__PURE__ */ r("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: T.map((e, t) => {
315
316
  const i = c != null && e.id === c;
316
317
  return /* @__PURE__ */ p(
317
318
  "li",
@@ -319,13 +320,13 @@ const Se = se(
319
320
  ref: i ? R : void 0,
320
321
  tabIndex: i ? -1 : void 0,
321
322
  "aria-current": i ? "true" : void 0,
322
- className: Ne({ current: i }),
323
+ className: we({ current: i }),
323
324
  children: [
324
325
  i ? /* @__PURE__ */ r("span", { className: "ds:sr-only", children: o("notesPanel.current", {
325
326
  defaultValue: "Current note"
326
327
  }) }) : null,
327
328
  /* @__PURE__ */ r(
328
- ge,
329
+ he,
329
330
  {
330
331
  surface: "elevated",
331
332
  truncate: !i,
@@ -333,12 +334,13 @@ const Se = se(
333
334
  onTogglePin: g && e.id ? () => g(e.id) : void 0,
334
335
  onToggleFlag: h && e.id ? () => h(e.id) : void 0
335
336
  }
336
- )
337
+ ),
338
+ V ? /* @__PURE__ */ r("div", { className: "ds:flex ds:justify-end ds:gap-[var(--spacing-2xs)] ds:pt-[var(--spacing-2xs)]", children: V(e) }) : null
337
339
  ]
338
340
  },
339
341
  e.id ?? t
340
342
  );
341
- }) }) : Z ?? /* @__PURE__ */ r("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: o("notesPanel.empty", { defaultValue: "No notes yet." }) })
343
+ }) }) : $ ?? /* @__PURE__ */ r("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: o("notesPanel.empty", { defaultValue: "No notes yet." }) })
342
344
  ] })
343
345
  ]
344
346
  }
@@ -346,6 +348,6 @@ const Se = se(
346
348
  }
347
349
  );
348
350
  export {
349
- Se as N
351
+ Me as N
350
352
  };
351
- //# sourceMappingURL=notes-panel-e9cJWVRg.js.map
353
+ //# sourceMappingURL=notes-panel-CymneXtl.js.map
@@ -5,7 +5,7 @@ import { D as m } from "./dialog-UbKJCi1X.js";
5
5
  import { B as z } from "./button-nJaPh_HC.js";
6
6
  import { I as xe } from "./icon-button-DA2CAGHZ.js";
7
7
  import { C as Y } from "./checkbox-BuZ1u__2.js";
8
- import { a as Re } from "./whatsapp-button-Ca9towA4.js";
8
+ import { a as Re } from "./whatsapp-button-CuFIHJzG.js";
9
9
  import { S as Z } from "./select-BW5ecXlX.js";
10
10
  import { S as be } from "./switch-OILsBLWo.js";
11
11
  import { A as _ } from "./alert-CiJT540z.js";
@@ -414,4 +414,4 @@ Me.displayName = "SignatureRequestModal";
414
414
  export {
415
415
  Me as S
416
416
  };
417
- //# sourceMappingURL=signature-request-CW30B77U.js.map
417
+ //# sourceMappingURL=signature-request-DVDTKLjM.js.map
@@ -3,7 +3,7 @@ import { forwardRef as M, useRef as k, useImperativeHandle as N, useMemo as _, u
3
3
  import { c as P } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as g } from "react-i18next";
5
5
  import { I as y } from "./icon-button-DA2CAGHZ.js";
6
- import { I as j } from "./icon-button-group-D6SVMteH.js";
6
+ import { I as j } from "./icon-button-group-VCCod3Hz.js";
7
7
  import { S as K } from "./switch-OILsBLWo.js";
8
8
  import { D as o } from "./dropdown-menu-DU-Hrf33.js";
9
9
  import { u as x } from "./use-theme-CAuo6EYT.js";
@@ -364,4 +364,4 @@ export {
364
364
  F as T,
365
365
  D as t
366
366
  };
367
- //# sourceMappingURL=theme-toggle-DuMhQNFS.js.map
367
+ //# sourceMappingURL=theme-toggle-uEwoKjl3.js.map
@@ -81,7 +81,7 @@ const Le = {
81
81
  description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
82
82
  }
83
83
  }
84
- }, Ke = "ds:[inline-size:3rem]", je = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", ae = "--tool-rail-panel-inline-size", Pe = 288, Me = 640, qe = 352, Be = w(
84
+ }, Ke = "ds:[inline-size:3rem]", je = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", ae = "--tool-rail-panel-inline-size", Pe = 288, Me = 880, qe = 352, Be = w(
85
85
  ["ds:flex ds:shrink-0 ds:h-full", "ds:bg-[var(--background)]"].join(" "),
86
86
  {
87
87
  variants: {
@@ -521,4 +521,4 @@ export {
521
521
  Ze as T,
522
522
  Le as t
523
523
  };
524
- //# sourceMappingURL=tool-rail-CHyUmulN.js.map
524
+ //# sourceMappingURL=tool-rail-8Scslq3X.js.map
@@ -1,11 +1,11 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as _, useMemo as A } from "react";
3
3
  import { c as m } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as j } from "react-i18next";
5
5
  function u({
6
6
  className: a
7
7
  }) {
8
- return /* @__PURE__ */ o(
8
+ return /* @__PURE__ */ r(
9
9
  "svg",
10
10
  {
11
11
  "aria-hidden": "true",
@@ -13,11 +13,11 @@ function u({
13
13
  fill: "currentColor",
14
14
  xmlns: "http://www.w3.org/2000/svg",
15
15
  className: a,
16
- children: /* @__PURE__ */ o("path", { d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.149-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.71.306 1.263.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z" })
16
+ children: /* @__PURE__ */ r("path", { d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.149-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.71.306 1.263.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z" })
17
17
  }
18
18
  );
19
19
  }
20
- const C = m(
20
+ const k = m(
21
21
  [
22
22
  // `position` is provided by `positionVariants` below — `static`
23
23
  // sets `ds:relative` (so the pseudo-element touch-target anchors),
@@ -119,7 +119,7 @@ const C = m(
119
119
  size: "md"
120
120
  }
121
121
  }
122
- ), k = m("", {
122
+ ), C = m("", {
123
123
  variants: {
124
124
  position: {
125
125
  // `relative` so the `::before` pseudo touch-target (defined in
@@ -142,15 +142,15 @@ function B(a, n) {
142
142
  const s = a.replace(/\D/g, "");
143
143
  if (s.length === 0)
144
144
  return null;
145
- const r = `https://wa.me/${s}`;
146
- return n ? `${r}?text=${encodeURIComponent(n)}` : r;
145
+ const d = `https://wa.me/${s}`;
146
+ return n ? `${d}?text=${encodeURIComponent(n)}` : d;
147
147
  }
148
148
  const L = _(
149
149
  ({
150
150
  phoneNumber: a,
151
151
  message: n,
152
152
  variant: s = "pill",
153
- size: r = "md",
153
+ size: d = "md",
154
154
  position: h,
155
155
  label: g,
156
156
  tone: w = "standard",
@@ -161,29 +161,37 @@ const L = _(
161
161
  () => B(a, n),
162
162
  [a, n]
163
163
  ), e = g ?? p(s === "fab" ? "whatsApp.fabLabel" : w === "question" ? "whatsApp.questionPrompt" : "whatsApp.label"), y = [
164
- C({ variant: s, size: r }),
165
- k({ position: h }),
164
+ k({ variant: s, size: d }),
165
+ C({ position: h }),
166
166
  x
167
- ].filter(Boolean).join(" "), d = f === null, v = {
167
+ ].filter(Boolean).join(" "), o = f === null, v = {
168
168
  ref: z,
169
- ...d ? {} : {
169
+ ...o ? {} : {
170
170
  href: f,
171
171
  target: "_blank",
172
172
  rel: "noopener noreferrer"
173
173
  },
174
- "aria-disabled": d ? !0 : void 0,
174
+ /* An <a> without href has NO implicit role, and `aria-disabled` is
175
+ prohibited on a roleless element (axe aria-prohibited-attr). Give
176
+ the disabled anchor an explicit link role so the state is legal
177
+ and assistive tech still announces it. */
178
+ /* `tabIndex` too: an <a> without href is not focusable, and
179
+ `aria-disabled` presupposes something focus CAN reach — otherwise
180
+ the reason the control is disabled never reaches a keyboard. */
181
+ ...o ? { role: "link", tabIndex: 0 } : {},
182
+ "aria-disabled": o ? !0 : void 0,
175
183
  "data-component": "whatsapp-button",
176
184
  "data-variant": s,
177
185
  onClick: (l) => {
178
186
  var b;
179
- d && l.preventDefault(), (b = i.onClick) == null || b.call(i, l);
187
+ o && l.preventDefault(), (b = i.onClick) == null || b.call(i, l);
180
188
  },
181
189
  className: y
182
- }, t = d ? null : p("link.opensInNewTab", "Opens in a new tab");
190
+ }, t = o ? null : p("link.opensInNewTab", "Opens in a new tab");
183
191
  if (s === "fab") {
184
192
  const l = typeof e == "string" ? t ? `${e} — ${t}` : e : void 0;
185
193
  return /* @__PURE__ */ c("a", { ...i, ...v, "aria-label": l, children: [
186
- /* @__PURE__ */ o(u, {}),
194
+ /* @__PURE__ */ r(u, {}),
187
195
  typeof e != "string" ? /* @__PURE__ */ c("span", { className: "ds:sr-only", children: [
188
196
  e,
189
197
  t ? ` — ${t}` : null
@@ -191,8 +199,8 @@ const L = _(
191
199
  ] });
192
200
  }
193
201
  return /* @__PURE__ */ c("a", { ...i, ...v, children: [
194
- /* @__PURE__ */ o(u, {}),
195
- /* @__PURE__ */ o("span", { children: e }),
202
+ /* @__PURE__ */ r(u, {}),
203
+ /* @__PURE__ */ r("span", { children: e }),
196
204
  t ? /* @__PURE__ */ c("span", { className: "ds:sr-only", children: [
197
205
  " — ",
198
206
  t
@@ -205,4 +213,4 @@ export {
205
213
  L as W,
206
214
  u as a
207
215
  };
208
- //# sourceMappingURL=whatsapp-button-Ca9towA4.js.map
216
+ //# sourceMappingURL=whatsapp-button-CuFIHJzG.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.11.0",
3
+ "packageVersion": "1.12.4",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -15732,7 +15732,7 @@
15732
15732
  {
15733
15733
  "name": "set_target",
15734
15734
  "safety": "phi",
15735
- "description": "Set or clear the patient's target for one parameter. The four the nutrition plan is written in — target weight, target BMI, daily energy, protein are set from the summary strip at the top of the Diagnosis surface; waist is set from its capture block, through the same editor. Each tile's edit button opens a small form: nothing is committed until Save, a value outside the parameter's sane range is refused rather than silently clamped, and Clear removes the goal rather than setting it to zero. A target belongs to the record, not to a visit — setting one records no measurement. Writes patient clinical data.",
15735
+ "description": "Set or clear the patient's target for one parameter. Every parameter the practice tracks as a goal is set from the summary strip at the top of the Diagnosis surface the kit seeds target weight, target BMI, daily energy and protein, and a practice can track any numeric parameter it flags as a goal; a targetable parameter that is not tracked (waist, by default) is set from its capture block, through the same editor. Each tile's edit button opens a small form: nothing is committed until Save, a value outside the parameter's sane range is refused rather than silently clamped, and Clear removes the goal rather than setting it to zero. A target belongs to the record, not to a visit — setting one records no measurement. Writes patient clinical data.",
15736
15736
  "descriptionKey": "ui.agent.anamnesis.workflows.setTarget",
15737
15737
  "uiActions": [
15738
15738
  "popover.open",
@@ -1539,7 +1539,7 @@
1539
1539
  "saveIntake": "Persist the patient's questionnaire answers. Writes patient-identifiable clinical history.",
1540
1540
  "selectView": "Switch the diagnostic workspace between the read-only summary of the patient's questionnaire, the current-visit compile view and the across-visits evolution view. The summary is selected on arrival.",
1541
1541
  "recordMeasurement": "Record or correct an anthropometric, dietary-intake (daily energy, protein) or blood-test value for the current visit. BMI is computed from weight and height and cannot be recorded. Writes patient clinical data.",
1542
- "setTarget": "Set or clear the patient's target for one parameter. The four the nutrition plan is written in — target weight, target BMI, daily energy, protein are set from the summary strip at the top of the Diagnosis surface; waist is set from its capture block, through the same editor. Each tile's edit button opens a small form: nothing is committed until Save, a value outside the parameter's sane range is refused rather than silently clamped, and Clear removes the goal rather than setting it to zero. A target belongs to the record, not to a visit — setting one records no measurement. Writes patient clinical data.",
1542
+ "setTarget": "Set or clear the patient's target for one parameter. Every parameter the practice tracks as a goal is set from the summary strip at the top of the Diagnosis surface the kit seeds target weight, target BMI, daily energy and protein, and a practice can track any numeric parameter it flags as a goal; a targetable parameter that is not tracked (waist, by default) is set from its capture block, through the same editor. Each tile's edit button opens a small form: nothing is committed until Save, a value outside the parameter's sane range is refused rather than silently clamped, and Clear removes the goal rather than setting it to zero. A target belongs to the record, not to a visit — setting one records no measurement. Writes patient clinical data.",
1543
1543
  "assignPathologies": "Assign or remove coded pathologies for the current visit via the multi-select, reading the current assignments.",
1544
1544
  "readIntakeDigest": "Read the Summary tab: the at-a-glance digest of the patient's questionnaire — why they came, the conditions and medication they carry, the symptoms they report and their daily habits — and, one disclosure below it, the full answer list with its from-patient origin markers. Read-only; clinician-only; no mutation.",
1545
1545
  "resolveMissingAnswers": "Read how many required questionnaire answers are still missing, jump to the first of them — which crosses from the read-only Summary to the Compile tab and opens the unanswered-questions block that holds it — and record the answer there. Writes patient clinical history.",
@@ -88,7 +88,7 @@ declare const appointmentCardVariants: (props?: ({
88
88
  interactive?: boolean | null | undefined;
89
89
  surface?: "elevated" | "flat" | null | undefined;
90
90
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
91
- export interface AppointmentCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'role' | 'title'>, VariantProps<typeof appointmentCardVariants> {
91
+ export interface AppointmentCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'title'>, VariantProps<typeof appointmentCardVariants> {
92
92
  /** The appointment to render. */
93
93
  item: AppointmentItem;
94
94
  /** Visual density. */
@@ -29,6 +29,14 @@ export interface AppointmentTimelineProps extends Omit<HTMLAttributes<HTMLElemen
29
29
  currency?: string;
30
30
  /** Visual density passed to each AppointmentCard. */
31
31
  size?: 'sm' | 'md';
32
+ /**
33
+ * Lead each row with the PATIENT (avatar + name as the row title) rather
34
+ * than the operator. Default `false`: the timeline was built for a
35
+ * patient-scoped rail, where repeating the name on every row is noise. A
36
+ * clinic-wide agenda — "who is coming in next" across the practice —
37
+ * passes `true`, and rows with no patient read as "No patient".
38
+ */
39
+ showPatient?: boolean;
32
40
  /** Fires when a row is activated. */
33
41
  onOpenAppointment?: (item: AppointmentItem) => void;
34
42
  /** Load earlier (past) appointments — fired when the top edge is reached. */
@@ -1,4 +1,4 @@
1
- import { A as i, a as t } from "../../_chunks/appointment-timeline-0mwtpErq.js";
1
+ import { A as i, a as t } from "../../_chunks/appointment-timeline-DCn0Jx55.js";
2
2
  export {
3
3
  i as AppointmentTimeline,
4
4
  t as appointmentTimelineAgent
@@ -1,4 +1,4 @@
1
- import { C as t, c as s, a as c } from "../../_chunks/chart-Bkr1Sh4o.js";
1
+ import { C as t, c as s, a as c } from "../../_chunks/chart-C6eHTxkO.js";
2
2
  export {
3
3
  t as Chart,
4
4
  s as chartAgent,
@@ -1,4 +1,4 @@
1
- import { C as r, a as l, c as a, u as t, b as e, d as n } from "../../_chunks/control-room-rail-Cj2iX9h_.js";
1
+ import { C as r, a as l, c as a, u as t, b as e, d as n } from "../../_chunks/control-room-rail-iO_BCaq1.js";
2
2
  export {
3
3
  r as ControlRoomProvider,
4
4
  l as ControlRoomRail,
@@ -32,6 +32,28 @@ export interface DateRangeFilterParams {
32
32
  placeholder?: string;
33
33
  commitMode?: 'auto' | 'apply';
34
34
  }
35
+ /**
36
+ * The model stores calendar days (`YYYY-MM-DD`), never instants: a range is
37
+ * "from this day to that day" in the user's own calendar. So the day is read
38
+ * off the local date parts — `toISOString()` would shift a local midnight to
39
+ * the previous day anywhere east of UTC.
40
+ */
41
+ export declare function toIsoDate(d: Date | undefined): string | null;
42
+ /** A bare day parses as LOCAL midnight; anything with a time/offset as-is. */
43
+ export declare function fromIsoDate(s: string | null | undefined): Date | undefined;
44
+ /**
45
+ * The calendar day a cell value stands for, as `YYYY-MM-DD`.
46
+ *
47
+ * An ISO string is read as the day it was WRITTEN with — `2026-04-15T17:32+02:00`
48
+ * is the 15th and `1933-04-04T00:00+01:00` the 4th, whatever zone the browser
49
+ * runs in. (Reducing the instant to the viewer's local day would move a
50
+ * practice-local timestamp across midnight for anyone in another zone, and
51
+ * made the result depend on the machine running the grid.) A `Date` has no
52
+ * offset of its own, so it is read in local time.
53
+ */
54
+ export declare function dayOf(cellValue: unknown): string | null;
55
+ /** Whether a cell's day lies within `[dateFrom, dateTo]` (either end open). */
56
+ export declare function dayInRange(cellValue: unknown, dateFrom: string | null | undefined, dateTo: string | null | undefined): boolean;
35
57
  export declare function DateRangeFilter(props: CustomFilterProps<unknown, unknown, DateRangeFilterModel>): import("react/jsx-runtime").JSX.Element;
36
58
  /**
37
59
  * Floating-filter companion for `DateRangeFilter`.