@alfadocs/ui-kit 1.128.0 → 1.130.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 (173) hide show
  1. package/dist/_chunks/{appointment-card-0PebvrOS.js → appointment-card-vbUsDh70.js} +49 -72
  2. package/dist/_chunks/{appointment-timeline-Czd4PBkF.js → appointment-timeline-B5pfBl-b.js} +2 -2
  3. package/dist/_chunks/{appointment-tray-B04zKY7g.js → appointment-tray-BhiXetjs.js} +2 -2
  4. package/dist/_chunks/{calendar-_sgjuH3L.js → calendar-DzR-vdJ5.js} +614 -563
  5. package/dist/_chunks/calendar-appointment-editor-dialog-CXch4Pmu.js +13663 -0
  6. package/dist/_chunks/{calendar-event-card-DXAYWH6k.js → calendar-event-card-BNEzkjm-.js} +142 -132
  7. package/dist/_chunks/{care-plan-card-bGTIliXc.js → care-plan-card-CwgkImOD.js} +2 -2
  8. package/dist/_chunks/{care-plan-header-k8FslxsU.js → care-plan-header-Dx5OMkc9.js} +2 -2
  9. package/dist/_chunks/{clinical-note-card-DHn5W_bv.js → clinical-note-card-pPaeWWnu.js} +2 -2
  10. package/dist/_chunks/{contact-card-CGpbYuxl.js → contact-card-BSY2YpLZ.js} +2 -2
  11. package/dist/_chunks/{contact-profile-card-CCgf0Ntt.js → contact-profile-card-CsZNMlws.js} +2 -2
  12. package/dist/_chunks/contact-round-DiSvB3LP.js +18 -0
  13. package/dist/_chunks/{default-tabs-DOuHEKI5.js → default-tabs-BnB6FUEW.js} +2 -2
  14. package/dist/_chunks/{entity-summary-BanguTa6.js → entity-summary-KHM0PnSI.js} +56 -68
  15. package/dist/_chunks/file-pen-line-k4uMBM3h.js +29 -0
  16. package/dist/_chunks/{header-settings-DsvheAOt.js → header-settings-ZGvYAuKF.js} +101 -97
  17. package/dist/_chunks/{info-tip-C-MPkShR.js → info-tip-B3cn3fY2.js} +2 -2
  18. package/dist/_chunks/{link-DtCfnLnF.js → link-CeV7FoI6.js} +2 -2
  19. package/dist/_chunks/{marketplace-app-shell-BOBWmzoT.js → marketplace-app-shell-D_HA8CKx.js} +2 -2
  20. package/dist/_chunks/{nav-grid-D2xVcHTO.js → nav-grid-dEgDAri3.js} +2 -2
  21. package/dist/_chunks/{note-attachment-cnj2JRrg.js → note-attachment-MNTIqdSz.js} +2 -2
  22. package/dist/_chunks/{note-timeline-BrjHBQfx.js → note-timeline-BQeW0VZY.js} +2 -2
  23. package/dist/_chunks/{notes-panel-n1JFNQ5u.js → notes-panel-DIY7eNsq.js} +2 -2
  24. package/dist/_chunks/{patient-details-Cba9HQj_.js → patient-details-DBtEITfE.js} +2 -2
  25. package/dist/_chunks/{patient-field-row-CtDihADs.js → patient-field-row-a5d4QijH.js} +2 -2
  26. package/dist/_chunks/{patient-search-D_S7joff.js → patient-search-OAwFgOW3.js} +2 -2
  27. package/dist/_chunks/{patient-summary-card-DnLdbtsw.js → patient-summary-card-BUcZ-gaL.js} +3 -3
  28. package/dist/_chunks/{payment-request-card-CEIalOtr.js → payment-request-card-Dv4WbRBe.js} +2 -2
  29. package/dist/_chunks/{product-hub-panel-CqRJlmb7.js → product-hub-panel-a8wdVOUt.js} +2 -2
  30. package/dist/_chunks/{public-footer-C8UIzqLJ.js → public-footer-D0cqScpz.js} +2 -2
  31. package/dist/_chunks/{signature-request-Dzs0jZsd.js → signature-request-DW2PSp66.js} +3 -3
  32. package/dist/_chunks/{signed-out-frame-fUf7tqs3.js → signed-out-frame-Oa2e1yps.js} +2 -2
  33. package/dist/_chunks/task-editor-CVRrDqpe.js +1256 -0
  34. package/dist/_chunks/{toast-BNoN8Qjh.js → toast-DQ1Zu1kk.js} +264 -251
  35. package/dist/_chunks/{treatment-receipt-1VnuinhY.js → treatment-receipt-BZzwvsnY.js} +73 -56
  36. package/dist/_chunks/use-appointment-details-read-BrykoTOR.js +2475 -0
  37. package/dist/_chunks/{whatsapp-button-DV9JFmtq.js → whatsapp-button-XbozeDl_.js} +32 -25
  38. package/dist/agent-catalog.json +49 -16
  39. package/dist/agent-i18n/en.json +5 -5
  40. package/dist/browser-support.js +1 -1
  41. package/dist/components/_shared/patient-picker.d.ts +10 -0
  42. package/dist/components/appointment-card/index.js +2 -2
  43. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +30 -1
  44. package/dist/components/appointment-details-panel/appointment-details-panel.links.d.ts +15 -0
  45. package/dist/components/appointment-details-panel/appointment-details-panel.recurrence.d.ts +9 -0
  46. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +12 -3
  47. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +63 -1
  48. package/dist/components/appointment-details-panel/index.d.ts +2 -1
  49. package/dist/components/appointment-details-panel/index.js +5 -4
  50. package/dist/components/appointment-timeline/index.js +1 -1
  51. package/dist/components/bill-table/index.js +1 -1
  52. package/dist/components/calendar/calendar.d.ts +22 -0
  53. package/dist/components/calendar/index.js +1 -1
  54. package/dist/components/calendar-event-card/calendar-event-card.d.ts +8 -0
  55. package/dist/components/calendar-event-card/index.js +1 -1
  56. package/dist/components/care-plan-card/index.js +1 -1
  57. package/dist/components/care-plan-header/index.js +1 -1
  58. package/dist/components/clinical-note-card/index.js +1 -1
  59. package/dist/components/contact-card/index.js +1 -1
  60. package/dist/components/contact-profile-card/index.js +1 -1
  61. package/dist/components/entity-summary/index.js +1 -1
  62. package/dist/components/header-settings/index.js +1 -1
  63. package/dist/components/info-tip/index.js +1 -1
  64. package/dist/components/link/index.js +1 -1
  65. package/dist/components/nav-grid/index.js +1 -1
  66. package/dist/components/note-timeline/index.js +1 -1
  67. package/dist/components/notes-panel/index.js +1 -1
  68. package/dist/components/patient-details/index.js +1 -1
  69. package/dist/components/patient-search/index.js +1 -1
  70. package/dist/components/patient-summary-card/index.js +1 -1
  71. package/dist/components/payment-card/index.js +1 -1
  72. package/dist/components/product-hub-tray/index.js +1 -1
  73. package/dist/components/public-footer/index.js +1 -1
  74. package/dist/components/task-editor/index.js +1 -1
  75. package/dist/components/toast/index.js +1 -1
  76. package/dist/components/treatment-receipt/index.d.ts +2 -2
  77. package/dist/components/treatment-receipt/index.js +2 -1
  78. package/dist/components/treatment-receipt/treatment-receipt.d.ts +11 -1
  79. package/dist/components/whatsapp-button/index.js +1 -1
  80. package/dist/core.css +1 -1
  81. package/dist/fullcalendar.css +5 -1
  82. package/dist/host-compat.css +4 -1
  83. package/dist/i18n/locales/ar.d.ts +119 -4
  84. package/dist/i18n/locales/ar.js +130 -15
  85. package/dist/i18n/locales/de.d.ts +119 -4
  86. package/dist/i18n/locales/de.js +130 -15
  87. package/dist/i18n/locales/el.d.ts +119 -4
  88. package/dist/i18n/locales/el.js +130 -15
  89. package/dist/i18n/locales/en.d.ts +119 -4
  90. package/dist/i18n/locales/en.js +122 -10
  91. package/dist/i18n/locales/es.d.ts +119 -4
  92. package/dist/i18n/locales/es.js +130 -15
  93. package/dist/i18n/locales/fr.d.ts +119 -4
  94. package/dist/i18n/locales/fr.js +130 -15
  95. package/dist/i18n/locales/hi.d.ts +119 -4
  96. package/dist/i18n/locales/hi.js +130 -15
  97. package/dist/i18n/locales/it.d.ts +119 -4
  98. package/dist/i18n/locales/it.js +130 -15
  99. package/dist/i18n/locales/ja.d.ts +119 -4
  100. package/dist/i18n/locales/ja.js +130 -15
  101. package/dist/i18n/locales/nl.d.ts +119 -4
  102. package/dist/i18n/locales/nl.js +130 -15
  103. package/dist/i18n/locales/pl.d.ts +119 -4
  104. package/dist/i18n/locales/pl.js +130 -15
  105. package/dist/i18n/locales/pt.d.ts +119 -4
  106. package/dist/i18n/locales/pt.js +130 -15
  107. package/dist/i18n/locales/ro.d.ts +119 -4
  108. package/dist/i18n/locales/ro.js +130 -15
  109. package/dist/i18n/locales/ru.d.ts +119 -4
  110. package/dist/i18n/locales/ru.js +130 -15
  111. package/dist/i18n/locales/sq.d.ts +119 -4
  112. package/dist/i18n/locales/sq.js +130 -15
  113. package/dist/i18n/locales/sv.d.ts +119 -4
  114. package/dist/i18n/locales/sv.js +130 -15
  115. package/dist/i18n/locales/tr.d.ts +119 -4
  116. package/dist/i18n/locales/tr.js +130 -15
  117. package/dist/i18n/locales/zh.d.ts +119 -4
  118. package/dist/i18n/locales/zh.js +130 -15
  119. package/dist/index.js +1112 -1107
  120. package/dist/locales/ar.json +130 -15
  121. package/dist/locales/de.json +130 -15
  122. package/dist/locales/el.json +130 -15
  123. package/dist/locales/en.json +122 -7
  124. package/dist/locales/es.json +130 -15
  125. package/dist/locales/fr.json +130 -15
  126. package/dist/locales/hi.json +130 -15
  127. package/dist/locales/it.json +130 -15
  128. package/dist/locales/ja.json +130 -15
  129. package/dist/locales/nl.json +130 -15
  130. package/dist/locales/pl.json +130 -15
  131. package/dist/locales/pt.json +130 -15
  132. package/dist/locales/ro.json +130 -15
  133. package/dist/locales/ru.json +130 -15
  134. package/dist/locales/sq.json +130 -15
  135. package/dist/locales/sv.json +130 -15
  136. package/dist/locales/tr.json +130 -15
  137. package/dist/locales/zh.json +130 -15
  138. package/dist/patterns/calendar/calendar-appointment-details.d.ts +83 -2
  139. package/dist/patterns/calendar/calendar-archive.d.ts +12 -0
  140. package/dist/patterns/calendar/calendar-care-rules.d.ts +19 -23
  141. package/dist/patterns/calendar/calendar-delete-confirm.d.ts +18 -0
  142. package/dist/patterns/calendar/calendar-document-scope-confirm.d.ts +12 -0
  143. package/dist/patterns/calendar/calendar-editor-guard.d.ts +12 -0
  144. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +13 -2
  145. package/dist/patterns/calendar/calendar-load-error.d.ts +11 -0
  146. package/dist/patterns/calendar/calendar-patient-locked.d.ts +13 -0
  147. package/dist/patterns/calendar/calendar-patient-picker.d.ts +6 -1
  148. package/dist/patterns/calendar/calendar-prompts.d.ts +11 -0
  149. package/dist/patterns/calendar/calendar-settings-ical.d.ts +11 -0
  150. package/dist/patterns/calendar/calendar-settings-overlay.d.ts +73 -0
  151. package/dist/patterns/calendar/calendar-settings-panel.d.ts +62 -0
  152. package/dist/patterns/calendar/calendar-settings-practice.d.ts +20 -0
  153. package/dist/patterns/calendar/calendar-status-colours.d.ts +18 -0
  154. package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +17 -2
  155. package/dist/patterns/calendar/calendar-workspace.d.ts +285 -6
  156. package/dist/patterns/calendar/calendar-workspace.model.d.ts +103 -17
  157. package/dist/patterns/calendar/calendar.data.d.ts +9 -3
  158. package/dist/patterns/calendar/calendar.journey.d.ts +69 -5
  159. package/dist/patterns/calendar/calendar.model.d.ts +129 -22
  160. package/dist/patterns/calendar/calendar.preferences.d.ts +4 -0
  161. package/dist/patterns/calendar/calendar.sheets.d.ts +129 -18
  162. package/dist/patterns/calendar/calendar.surface.d.ts +64 -6
  163. package/dist/patterns/calendar/calendar.types.d.ts +231 -6
  164. package/dist/patterns/calendar/index.d.ts +9 -6
  165. package/dist/patterns/calendar/index.js +18 -15
  166. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  167. package/dist/patterns/signature-request/index.js +1 -1
  168. package/dist/patterns/signed-out-frame/index.js +1 -1
  169. package/dist/tokens.css +5 -1
  170. package/package.json +1 -1
  171. package/dist/_chunks/calendar-appointment-editor-dialog-CGDDGMdo.js +0 -10974
  172. package/dist/_chunks/task-editor-C05yx7JJ.js +0 -1218
  173. package/dist/_chunks/use-appointment-details-read-Bm408XzX.js +0 -2198
@@ -58,9 +58,27 @@ export interface AppointmentDetailsPatient {
58
58
  }
59
59
  /** The platform's six `recurrence_frequency` values. */
60
60
  export type AppointmentRecurrenceFrequency = 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'semiannual' | 'yearly';
61
+ /** A weekday of the platform's `recurrenceByDay` (RRULE BYDAY). */
62
+ export type AppointmentRecurrenceWeekday = 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA' | 'SU';
63
+ /** One `recurrenceByDay` entry: a plain weekday (`'TU'`) or the nth or last
64
+ * one of the month (`'3TU'`, `'-1TU'`). */
65
+ export type AppointmentRecurrenceByDay = AppointmentRecurrenceWeekday | `${1 | 2 | 3 | 4 | -1}${AppointmentRecurrenceWeekday}`;
61
66
  /** How signing was requested: platform
62
67
  * `DoctorAppointment.requiredObjectsSignMode` `via_sms` or `via_email`. */
63
68
  export type AppointmentSignChannel = 'sms' | 'email';
69
+ /** Where one treatment consent stands for this appointment: not created
70
+ * yet, sent and waiting for the signature, or signed. */
71
+ export type AppointmentConsentState = 'missing' | 'requested' | 'signed';
72
+ /** One treatment consent of this appointment (HTP-3395). A new consent is
73
+ * made for every visit, so the list belongs to the appointment, never to
74
+ * the patient. */
75
+ export interface AppointmentConsentItem {
76
+ id: string;
77
+ /** The consent's name. A name can imply a treatment: privacy mode shows
78
+ * no document list at all. */
79
+ name: string;
80
+ state: AppointmentConsentState;
81
+ }
64
82
  /** The form fields an edit can touch (the platform's audit vocabulary). */
65
83
  export type AppointmentHistoryField = 'patient' | 'type' | 'care' | 'operator' | 'chair' | 'colour' | 'time' | 'duration';
66
84
  /**
@@ -147,6 +165,26 @@ export type AppointmentHistoryKind = AppointmentHistoryEntry['kind'];
147
165
  /** The create-document menu's kinds, as the platform's
148
166
  * AppointmentDocumentDropdownApp offers them. */
149
167
  export type AppointmentDocumentKind = 'folder' | 'template' | 'empty' | 'identification' | 'webcam' | 'bill';
168
+ /**
169
+ * The links the old pop-over offered, each a host seam: a member the
170
+ * host does not pass is withheld, never shown disabled. The links open in
171
+ * the same tab, as `createTaskUrl` does.
172
+ */
173
+ export interface AppointmentDetailsShortcuts {
174
+ /** Set up advanced e-signature for this patient. Shown with the "not set
175
+ * up" warning, when the patient has at least one required document
176
+ * (signed or not) and advanced signature is not set up. */
177
+ advancedSignatureUrl?: string;
178
+ /** The patient's record on the anamnesis section. Shown next to the
179
+ * expired-anamnesis badge. */
180
+ renewAnamnesisUrl?: string;
181
+ /** The payment requests page. Shown next to the money chips, and only
182
+ * while one of them is on view. The host decides the practice has no
183
+ * online payments. */
184
+ unlockPaymentsUrl?: string;
185
+ /** The linked care plan. Makes the plan line a link. */
186
+ carePlanUrl?: string;
187
+ }
150
188
  /**
151
189
  * One occurrence as the host reads it (platform
152
190
  * `getEventPopoverContentAction`, route
@@ -192,7 +230,19 @@ export interface AppointmentDetailsRead {
192
230
  * informational: the scope question belongs to the host's editor. */
193
231
  recurrence?: {
194
232
  frequency: AppointmentRecurrenceFrequency;
233
+ /** Occurrences in the series. Absent when the series ends on a
234
+ * date (`untilIso`) or has no end. */
195
235
  count?: number;
236
+ /** Platform `recurrenceInterval`: every N steps of `frequency`.
237
+ * Absent means 1. Read for daily, weekly, monthly and yearly only. */
238
+ interval?: number;
239
+ /** Platform `recurrenceByDay`. Weekly: the chosen weekdays. Monthly
240
+ * or yearly: one ordinal code (`'3TU'`, `'-1TU'`). Absent means the
241
+ * plain rule. */
242
+ byDay?: readonly AppointmentRecurrenceByDay[];
243
+ /** The last day the series may land on, a local `Y-m-d` (or a
244
+ * zone-less date-time, read as local). Platform `recurrenceUntil`. */
245
+ untilIso?: string;
196
246
  requiresScope: boolean;
197
247
  };
198
248
  };
@@ -232,8 +282,12 @@ export interface AppointmentDetailsRead {
232
282
  elementsLabel?: string;
233
283
  /** Platform `CarePlanEntry.done`. */
234
284
  done: boolean;
235
- /** At least one bill row for the entry (pop-over `dto.billed`). */
285
+ /** At least one bill row for the entry (pop-over `dto.billed`).
286
+ * The fallback when `billing` is absent. */
236
287
  billed: boolean;
288
+ /** The billing state; wins over `billed`. Send `'reversed'` for an
289
+ * entry whose bill was reversed: the panel shows it as unbilled. */
290
+ billing?: 'billed' | 'unbilled' | 'reversed';
237
291
  /** Platform `scheduledCarePhases` for this appointment. */
238
292
  phases: string[];
239
293
  /** Absent = prices withheld for this viewer. */
@@ -265,6 +319,14 @@ export interface AppointmentDetailsRead {
265
319
  requestedVia?: AppointmentSignChannel;
266
320
  /** Platform pop-over `hasAdvancedElectronicSignatureSetup`. */
267
321
  aesSetUp: boolean;
322
+ /** The treatment consents of this appointment, listed read-only under
323
+ * the documents to sign, always on view (a list on the patient card, not
324
+ * only the chip's hover card). They show even when `required` is 0.
325
+ * The host counts the consents in `required` and the unsigned ones in
326
+ * `toComplete`: the chip and its count follow `toComplete`. The panel
327
+ * never creates or sends them: the editor does (HTP-3395). Absent or
328
+ * `[]` = none to list. */
329
+ consents?: AppointmentConsentItem[];
268
330
  };
269
331
  /** The appointment's history, read with the details. Absent = not sent
270
332
  * with this read: the History button then follows the panel's `history`
@@ -3,6 +3,7 @@ export type { AppointmentDetailsPanelProps, AppointmentDetailsPanelHandle, } fro
3
3
  export { useAppointmentDetailsRead } from './use-appointment-details-read';
4
4
  export type { AppointmentDetailsReadResult } from './use-appointment-details-read';
5
5
  export { parseAppointmentStartIso } from '../_shared/appointment-format';
6
- export type { AppointmentDetailsRead, AppointmentDetailsHistory, AppointmentDetailsPatient, AppointmentDetailsState, AppointmentDetailsSnapshot, AppointmentDetailsLoader, UseAppointmentDetailsReadOptions, AppointmentDetailsNotesPreview, AppointmentDetailsOperatorLabel, AppointmentDetailsChairLabel, AppointmentHistoryEntry, AppointmentHistoryKind, AppointmentHistoryField, AppointmentHistoryChange, AppointmentRecurrenceFrequency, AppointmentSignChannel, AppointmentDocumentKind, AppointmentPhoneNumber, AppointmentPhoneLabel, AppointmentAnamnesisAnswer, } from './appointment-details-panel.types';
6
+ export type { AppointmentDetailsRead, AppointmentDetailsHistory, AppointmentDetailsPatient, AppointmentDetailsShortcuts, AppointmentDetailsState, AppointmentDetailsSnapshot, AppointmentDetailsLoader, UseAppointmentDetailsReadOptions, AppointmentDetailsNotesPreview, AppointmentDetailsOperatorLabel, AppointmentDetailsChairLabel, AppointmentHistoryEntry, AppointmentHistoryKind, AppointmentHistoryField, AppointmentHistoryChange, AppointmentRecurrenceFrequency, AppointmentRecurrenceByDay, AppointmentRecurrenceWeekday, AppointmentSignChannel, AppointmentConsentItem, AppointmentConsentState, AppointmentDocumentKind, AppointmentPhoneNumber, AppointmentPhoneLabel, AppointmentAnamnesisAnswer, } from './appointment-details-panel.types';
7
+ export { DETAILS_SHORTCUT_ACTIONS } from './appointment-details-panel.links';
7
8
  export { appointmentDetailsPanelAgent } from './appointment-details-panel.agent';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,9 @@
1
- import { A as e, a as n, p, u as s } from "../../_chunks/use-appointment-details-read-Bm408XzX.js";
1
+ import { A as e, D as n, a as p, p as s, u as i } from "../../_chunks/use-appointment-details-read-BrykoTOR.js";
2
2
  export {
3
3
  e as AppointmentDetailsPanel,
4
- n as appointmentDetailsPanelAgent,
5
- p as parseAppointmentStartIso,
6
- s as useAppointmentDetailsRead
4
+ n as DETAILS_SHORTCUT_ACTIONS,
5
+ p as appointmentDetailsPanelAgent,
6
+ s as parseAppointmentStartIso,
7
+ i as useAppointmentDetailsRead
7
8
  };
8
9
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { A as i, a as t } from "../../_chunks/appointment-timeline-Czd4PBkF.js";
1
+ import { A as i, a as t } from "../../_chunks/appointment-timeline-B5pfBl-b.js";
2
2
  export {
3
3
  i as AppointmentTimeline,
4
4
  t as appointmentTimelineAgent
@@ -1,4 +1,4 @@
1
- import { B as S, a as T, b as a, c as I, d as B, e as s, f as A, g as E, h as O, i as l, j as D, k as N, l as e, m as U, u as R } from "../../_chunks/default-tabs-DOuHEKI5.js";
1
+ import { B as S, a as T, b as a, c as I, d as B, e as s, f as A, g as E, h as O, i as l, j as D, k as N, l as e, m as U, u as R } from "../../_chunks/default-tabs-BnB6FUEW.js";
2
2
  export {
3
3
  S as BILL_ACTION_DISABLED_REASONS,
4
4
  T as BILL_COUNTERPARTY_KINDS,
@@ -93,6 +93,12 @@ export interface CalendarEvent {
93
93
  * filling.
94
94
  */
95
95
  isDraft?: boolean;
96
+ /**
97
+ * Steps the card back with a light tint and muted text (see
98
+ * `CalendarEventCard.faded`). The workspace sets it on a shown cancelled
99
+ * appointment.
100
+ */
101
+ faded?: boolean;
96
102
  /**
97
103
  * A REAL booked appointment whose details the host is still fetching —
98
104
  * an occupancy-first host draws the block from the slot it occupies
@@ -129,6 +135,13 @@ export interface CalendarEvent {
129
135
  * accessible name, never rendered as a visible chip on the cell itself.
130
136
  */
131
137
  optionCount?: number;
138
+ /**
139
+ * On a background availability cell: a click books it straight away (one
140
+ * answer, and the user may book). The cell is then named by that action
141
+ * ("Free, 09:00 to 09:30, Book"), not by an options count, because no
142
+ * options list opens.
143
+ */
144
+ bookable?: boolean;
132
145
  }
133
146
  export interface CalendarResource {
134
147
  id: string;
@@ -462,6 +475,15 @@ export interface CalendarProps {
462
475
  * derives it from `CalendarData.dayLoadState`.
463
476
  */
464
477
  loadingDates?: readonly string[];
478
+ /**
479
+ * Local ISO `YYYY-MM-DD` dates whose rows FAILED to load. Not the loading
480
+ * wash: a failed day takes a flat error tint, a dashed edge and a visible
481
+ * alert icon plus a visually-hidden "could not be loaded" word (in its
482
+ * date header, or on the cell in month view), with no `aria-busy`, because
483
+ * nothing is arriving. A date in both lists is an error. The grid cannot
484
+ * tell the person why or offer Retry, so the host shows both beside it.
485
+ */
486
+ errorDates?: readonly string[];
465
487
  /** Lower bound of the time axis (e.g. '07:00'). */
466
488
  slotMinTime?: string;
467
489
  /** Upper bound of the time axis (e.g. '23:00'). */
@@ -1,4 +1,4 @@
1
- import { C as r, c as l, r as n } from "../../_chunks/calendar-_sgjuH3L.js";
1
+ import { C as r, c as l, r as n } from "../../_chunks/calendar-DzR-vdJ5.js";
2
2
  export {
3
3
  r as Calendar,
4
4
  l as calendarAgent,
@@ -174,6 +174,14 @@ export interface CalendarEventCardProps extends Omit<HTMLAttributes<HTMLDivEleme
174
174
  * treatment regardless.
175
175
  */
176
176
  colorStyle?: 'solid' | 'tinted';
177
+ /**
178
+ * Steps the card back: a light tint of the picker colour with muted text
179
+ * and a softer border, whatever `colorStyle` says. Colour only, no
180
+ * opacity, so the text stays readable. The calendar sets it on a shown
181
+ * cancelled appointment. Tasks and drafts keep their own treatment.
182
+ * @default false
183
+ */
184
+ faded?: boolean;
177
185
  /**
178
186
  * Resource title (chair/operator) woven into the composed aria-label
179
187
  * only — never rendered visually. The Calendar adapter resolves
@@ -1,4 +1,4 @@
1
- import { C as e } from "../../_chunks/calendar-event-card-DXAYWH6k.js";
1
+ import { C as e } from "../../_chunks/calendar-event-card-BNEzkjm-.js";
2
2
  export {
3
3
  e as CalendarEventCard
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as e, c as C } from "../../_chunks/care-plan-card-bGTIliXc.js";
1
+ import { C as e, c as C } from "../../_chunks/care-plan-card-CwgkImOD.js";
2
2
  export {
3
3
  e as CarePlanCard,
4
4
  C as carePlanCardAgent
@@ -1,4 +1,4 @@
1
- import { C as r, c as n } from "../../_chunks/care-plan-header-k8FslxsU.js";
1
+ import { C as r, c as n } from "../../_chunks/care-plan-header-Dx5OMkc9.js";
2
2
  export {
3
3
  r as CarePlanHeader,
4
4
  n as carePlanHeaderAgent
@@ -1,4 +1,4 @@
1
- import { C as e, c as i } from "../../_chunks/clinical-note-card-DHn5W_bv.js";
1
+ import { C as e, c as i } from "../../_chunks/clinical-note-card-pPaeWWnu.js";
2
2
  export {
3
3
  e as ClinicalNoteCard,
4
4
  i as clinicalNoteCardAgent
@@ -1,4 +1,4 @@
1
- import { C as r } from "../../_chunks/contact-card-CGpbYuxl.js";
1
+ import { C as r } from "../../_chunks/contact-card-BSY2YpLZ.js";
2
2
  export {
3
3
  r as ContactCard
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-CCgf0Ntt.js";
1
+ import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-CsZNMlws.js";
2
2
  export {
3
3
  _ as CONTACT_PROFILE_CARD_ROW_ICONS,
4
4
  O as CONTACT_PROFILE_CARD_ROW_KEYS,
@@ -1,4 +1,4 @@
1
- import { E as t } from "../../_chunks/entity-summary-BanguTa6.js";
1
+ import { E as t } from "../../_chunks/entity-summary-KHM0PnSI.js";
2
2
  export {
3
3
  t as EntitySummary
4
4
  };
@@ -1,4 +1,4 @@
1
- import { H as t } from "../../_chunks/header-settings-DsvheAOt.js";
1
+ import { H as t } from "../../_chunks/header-settings-ZGvYAuKF.js";
2
2
  export {
3
3
  t as HeaderSettings
4
4
  };
@@ -1,4 +1,4 @@
1
- import { I as f, i as n } from "../../_chunks/info-tip-C-MPkShR.js";
1
+ import { I as f, i as n } from "../../_chunks/info-tip-B3cn3fY2.js";
2
2
  export {
3
3
  f as InfoTip,
4
4
  n as infoTipAgent
@@ -1,4 +1,4 @@
1
- import { L } from "../../_chunks/link-DtCfnLnF.js";
1
+ import { L } from "../../_chunks/link-CeV7FoI6.js";
2
2
  export {
3
3
  L as Link
4
4
  };
@@ -1,4 +1,4 @@
1
- import { N as i, n, t as s } from "../../_chunks/nav-grid-D2xVcHTO.js";
1
+ import { N as i, n, t as s } from "../../_chunks/nav-grid-dEgDAri3.js";
2
2
  export {
3
3
  i as NavGrid,
4
4
  n as navGridAgent,
@@ -1,4 +1,4 @@
1
- import { N as i, n as o } from "../../_chunks/note-timeline-BrjHBQfx.js";
1
+ import { N as i, n as o } from "../../_chunks/note-timeline-BQeW0VZY.js";
2
2
  export {
3
3
  i as NoteTimeline,
4
4
  o as noteTimelineAgent
@@ -1,4 +1,4 @@
1
- import { N as a } from "../../_chunks/notes-panel-n1JFNQ5u.js";
1
+ import { N as a } from "../../_chunks/notes-panel-DIY7eNsq.js";
2
2
  export {
3
3
  a as NotesPanel
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as e, p as i } from "../../_chunks/patient-details-Cba9HQj_.js";
1
+ import { P as e, p as i } from "../../_chunks/patient-details-DBtEITfE.js";
2
2
  export {
3
3
  e as PatientDetails,
4
4
  i as patientDetailsAgent
@@ -1,4 +1,4 @@
1
- import { P as t, p as r } from "../../_chunks/patient-search-D_S7joff.js";
1
+ import { P as t, p as r } from "../../_chunks/patient-search-OAwFgOW3.js";
2
2
  export {
3
3
  t as PatientSearch,
4
4
  r as patientSearchAgent
@@ -1,4 +1,4 @@
1
- import { P as t, p as m } from "../../_chunks/patient-summary-card-DnLdbtsw.js";
1
+ import { P as t, p as m } from "../../_chunks/patient-summary-card-BUcZ-gaL.js";
2
2
  export {
3
3
  t as PatientSummaryCard,
4
4
  m as patientSummaryCardAgent
@@ -1,4 +1,4 @@
1
- import { P as t, a as n, p as r, b as s } from "../../_chunks/payment-request-card-CEIalOtr.js";
1
+ import { P as t, a as n, p as r, b as s } from "../../_chunks/payment-request-card-Dv4WbRBe.js";
2
2
  export {
3
3
  t as PaymentCard,
4
4
  n as PaymentRequestCard,
@@ -1,4 +1,4 @@
1
- import { P as u, a as o, p as t, b as e } from "../../_chunks/product-hub-panel-CqRJlmb7.js";
1
+ import { P as u, a as o, p as t, b as e } from "../../_chunks/product-hub-panel-a8wdVOUt.js";
2
2
  import { i as s } from "../../_chunks/is-safe-url-DkETxeHz.js";
3
3
  export {
4
4
  u as ProductHubPanel,
@@ -1,4 +1,4 @@
1
- import { D as s, a as e, P as r, S as A, c as L } from "../../_chunks/public-footer-C8UIzqLJ.js";
1
+ import { D as s, a as e, P as r, S as A, c as L } from "../../_chunks/public-footer-D0cqScpz.js";
2
2
  import { p as _ } from "../../_chunks/public-footer.agent-CRZCrq3_.js";
3
3
  export {
4
4
  s as DEFAULT_MARKETING_BASE_URL,
@@ -1,4 +1,4 @@
1
- import { T as o, t as r } from "../../_chunks/task-editor-C05yx7JJ.js";
1
+ import { T as o, t as r } from "../../_chunks/task-editor-CVRrDqpe.js";
2
2
  export {
3
3
  o as TaskEditor,
4
4
  r as taskEditorAgent
@@ -1,4 +1,4 @@
1
- import { T as s, t as o, a as r, b as e, c as n, d as c } from "../../_chunks/toast-BNoN8Qjh.js";
1
+ import { T as s, t as o, a as r, b as e, c as n, d as c } from "../../_chunks/toast-DQ1Zu1kk.js";
2
2
  import { t as g } from "../../_chunks/toast.agent-DNQ0JYGv.js";
3
3
  export {
4
4
  s as Toaster,
@@ -1,4 +1,4 @@
1
- export { TreatmentReceipt } from './treatment-receipt';
2
- export type { TreatmentReceiptLine, TreatmentReceiptProps, } from './treatment-receipt';
1
+ export { TreatmentReceipt, isBilled } from './treatment-receipt';
2
+ export type { TreatmentBilling, TreatmentReceiptLine, TreatmentReceiptProps, } from './treatment-receipt';
3
3
  export { treatmentReceiptAgent } from './treatment-receipt.agent';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,8 @@
1
- import { T as r } from "../../_chunks/treatment-receipt-1VnuinhY.js";
1
+ import { T as r, i as a } from "../../_chunks/treatment-receipt-BZzwvsnY.js";
2
2
  import { t as m } from "../../_chunks/treatment-receipt.agent-bpFm2RPH.js";
3
3
  export {
4
4
  r as TreatmentReceipt,
5
+ a as isBilled,
5
6
  m as treatmentReceiptAgent
6
7
  };
7
8
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,8 @@
1
1
  import { type HTMLAttributes } from 'react';
2
+ export type TreatmentBilling = 'billed' | 'unbilled' | 'reversed';
3
+ /** One rule for "is this line billed": `billing` wins, `billed` is the
4
+ * fallback for hosts that send only the flag. A reversed line is not billed. */
5
+ export declare function isBilled(line: Pick<TreatmentReceiptLine, 'billed' | 'billing'>): boolean;
2
6
  export interface TreatmentReceiptLine {
3
7
  /** Stable key for the line. */
4
8
  id: string;
@@ -12,8 +16,14 @@ export interface TreatmentReceiptLine {
12
16
  phases?: string[];
13
17
  /** The treatment has been carried out. */
14
18
  done?: boolean;
15
- /** The treatment has been invoiced. */
19
+ /** The treatment has been invoiced. Fallback when `billing` is absent. */
16
20
  billed?: boolean;
21
+ /**
22
+ * The billing state, when the host knows more than billed or not. Wins over
23
+ * `billed`. `'reversed'` is a bill that was cancelled: the line reads as
24
+ * unbilled, so staff see work that still needs a bill.
25
+ */
26
+ billing?: TreatmentBilling;
17
27
  /** Minor units. Absent means prices are withheld from this viewer. */
18
28
  priceCents?: number;
19
29
  }
@@ -1,4 +1,4 @@
1
- import { W as t, a as s } from "../../_chunks/whatsapp-button-DV9JFmtq.js";
1
+ import { W as t, a as s } from "../../_chunks/whatsapp-button-XbozeDl_.js";
2
2
  export {
3
3
  t as WhatsAppButton,
4
4
  s as WhatsAppGlyph