@alfadocs/ui-kit 1.135.0 → 1.137.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 (216) hide show
  1. package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
  2. package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
  3. package/dist/_chunks/{alia-sidebar-CtwhdASP.js → alia-sidebar-CVBlKur9.js} +3 -3
  4. package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
  5. package/dist/_chunks/appointment-details-panel.history-DrIMDQYf.js +314 -0
  6. package/dist/_chunks/appointment-details-panel.identity-C20Y9xNC.js +223 -0
  7. package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
  8. package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
  9. package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
  10. package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
  11. package/dist/_chunks/calendar-appointment-editor-dialog-D0n_bVsT.js +5518 -0
  12. package/dist/_chunks/calendar-editor-discard-host-1UfmMOEb.js +1336 -0
  13. package/dist/_chunks/calendar-editor-guard-9fShhNIA.js +31 -0
  14. package/dist/_chunks/calendar-waiting-list-panel-Ckd6tSeu.js +981 -0
  15. package/dist/_chunks/calendar-workspace.model-DrOoxY1b.js +1557 -0
  16. package/dist/_chunks/calendar.sheets-Datc0-IT.js +4585 -0
  17. package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
  18. package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
  19. package/dist/_chunks/{chat-input-CX4dxBq7.js → chat-input-BmvnuZqj.js} +114 -109
  20. package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
  21. package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
  22. package/dist/_chunks/color-picker-CC8ZfntU.js +582 -0
  23. package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
  24. package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
  25. package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
  26. package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
  27. package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-CirR3C_m.js} +3 -3
  28. package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
  29. package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
  30. package/dist/_chunks/{fiscal-code-input-BBvU7sAo.js → fiscal-code-input-DZlpaMGg.js} +2 -2
  31. package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
  32. package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
  33. package/dist/_chunks/{iban-input-DuTwKok5.js → iban-input-CdSLRzQN.js} +2 -2
  34. package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
  35. package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
  36. package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
  37. package/dist/_chunks/list-todo-KWvUhmT_.js +33 -0
  38. package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
  39. package/dist/_chunks/{notes-panel-BvjAo4RQ.js → notes-panel-DsEKNtsw.js} +2 -2
  40. package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
  41. package/dist/_chunks/palettes-CKVXYTzo.js +172 -0
  42. package/dist/_chunks/{patient-account-settings-B2XbN_Fe.js → patient-account-settings-COybehKx.js} +3 -3
  43. package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
  44. package/dist/_chunks/{patient-check-in-resume-B7NY-6KI.js → patient-check-in-resume-DZnyYDKH.js} +40 -40
  45. package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-Dv7EiTCo.js} +2 -2
  46. package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-DuHWGlLz.js} +3 -3
  47. package/dist/_chunks/patient-picker-BZJuOgMw.js +173 -0
  48. package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
  49. package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
  50. package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-D-cDzOim.js} +2 -2
  51. package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
  52. package/dist/_chunks/{portal-details-DCIiGkHA.js → portal-details-DdzvroYP.js} +2 -2
  53. package/dist/_chunks/{portal-documents-DJOH8pZx.js → portal-documents-CNmoYWFc.js} +3 -3
  54. package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
  55. package/dist/_chunks/{privacy-mask-C19dJFMk.js → privacy-mask-C2ZLKrMh.js} +5 -5
  56. package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
  57. package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
  58. package/dist/_chunks/{rich-text-editor-DjHL1b3E.js → rich-text-editor-C48omVjq.js} +2 -2
  59. package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
  60. package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
  61. package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
  62. package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
  63. package/dist/_chunks/task-editor-wKbFbGqW.js +1093 -0
  64. package/dist/_chunks/{tasks-panel-6EzdnwT8.js → tasks-panel-DbtJS4QI.js} +2 -2
  65. package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
  66. package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
  67. package/dist/_chunks/use-appointment-details-read-jGkJalX8.js +1966 -0
  68. package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
  69. package/dist/agent-catalog.json +282 -6
  70. package/dist/agent-i18n/en.json +26 -4
  71. package/dist/appointment-editor-panel/index.js +100 -0
  72. package/dist/booking-tools-data/index.js +82 -0
  73. package/dist/browser-support.js +1 -1
  74. package/dist/calendar-action-buttons/index.js +178 -0
  75. package/dist/components/ai-prompt-input/index.js +1 -1
  76. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +68 -5
  77. package/dist/components/ai-summary-panel/index.d.ts +1 -1
  78. package/dist/components/ai-summary-panel/index.js +1 -1
  79. package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
  80. package/dist/components/appointment-details-panel/index.js +6 -5
  81. package/dist/components/audio-recorder/index.js +1 -1
  82. package/dist/components/bill-line-table/index.js +1 -1
  83. package/dist/components/bill-table/index.js +1 -1
  84. package/dist/components/bishop-score/index.js +1 -1
  85. package/dist/components/booking/index.js +1 -1
  86. package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
  87. package/dist/components/call-status-chip/index.d.ts +3 -0
  88. package/dist/components/call-status-chip/index.js +5 -0
  89. package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
  90. package/dist/components/calls-panel/calls-panel.d.ts +153 -0
  91. package/dist/components/calls-panel/index.d.ts +4 -0
  92. package/dist/components/calls-panel/index.js +6 -0
  93. package/dist/components/chat-input/chat-input.d.ts +17 -0
  94. package/dist/components/chat-input/index.js +1 -1
  95. package/dist/components/chat-message/index.js +1 -1
  96. package/dist/components/color-picker/index.js +5 -4
  97. package/dist/components/communications-panel/communications-panel.d.ts +15 -3
  98. package/dist/components/communications-panel/index.js +1 -1
  99. package/dist/components/data-grid/index.js +2 -2
  100. package/dist/components/data-table/index.js +2 -2
  101. package/dist/components/document-preview/index.js +1 -1
  102. package/dist/components/entity-summary/entity-summary.d.ts +29 -1
  103. package/dist/components/entity-summary/index.js +1 -1
  104. package/dist/components/file-manager/index.js +1 -1
  105. package/dist/components/fiscal-code-input/index.js +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/heatmap/index.js +1 -1
  108. package/dist/components/iban-input/index.js +1 -1
  109. package/dist/components/index.d.ts +2 -0
  110. package/dist/components/invoice-upload-list/index.js +1 -1
  111. package/dist/components/muscle-scheme/index.js +1 -1
  112. package/dist/components/notes-panel/index.js +1 -1
  113. package/dist/components/optical-prescription/index.js +1 -1
  114. package/dist/components/patient-details/index.js +1 -1
  115. package/dist/components/patient-summary-card/index.js +1 -1
  116. package/dist/components/patient-table/index.js +1 -1
  117. package/dist/components/pregnancy-dating/index.js +1 -1
  118. package/dist/components/rich-text-editor/index.js +2 -2
  119. package/dist/components/select/index.js +1 -1
  120. package/dist/components/select/select.d.ts +8 -0
  121. package/dist/components/session-countdown/index.js +1 -1
  122. package/dist/components/skeleton-scheme/index.js +1 -1
  123. package/dist/components/tabs/index.js +1 -1
  124. package/dist/components/task-editor/index.js +1 -1
  125. package/dist/components/tasks-panel/index.js +1 -1
  126. package/dist/components/unit-converter/index.js +1 -1
  127. package/dist/components/voice-control-panel/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/find-free-slots-panel/index.js +58 -0
  130. package/dist/host-compat.css +4 -1
  131. package/dist/i18n/locales/ar.d.ts +72 -3
  132. package/dist/i18n/locales/ar.js +74 -5
  133. package/dist/i18n/locales/de.d.ts +72 -3
  134. package/dist/i18n/locales/de.js +74 -5
  135. package/dist/i18n/locales/el.d.ts +72 -3
  136. package/dist/i18n/locales/el.js +74 -5
  137. package/dist/i18n/locales/en.d.ts +72 -3
  138. package/dist/i18n/locales/en.js +73 -4
  139. package/dist/i18n/locales/es.d.ts +72 -3
  140. package/dist/i18n/locales/es.js +74 -5
  141. package/dist/i18n/locales/fr.d.ts +72 -3
  142. package/dist/i18n/locales/fr.js +74 -5
  143. package/dist/i18n/locales/hi.d.ts +72 -3
  144. package/dist/i18n/locales/hi.js +74 -5
  145. package/dist/i18n/locales/it.d.ts +83 -14
  146. package/dist/i18n/locales/it.js +84 -15
  147. package/dist/i18n/locales/ja.d.ts +72 -3
  148. package/dist/i18n/locales/ja.js +74 -5
  149. package/dist/i18n/locales/nl.d.ts +72 -3
  150. package/dist/i18n/locales/nl.js +74 -5
  151. package/dist/i18n/locales/pl.d.ts +72 -3
  152. package/dist/i18n/locales/pl.js +74 -5
  153. package/dist/i18n/locales/pt.d.ts +72 -3
  154. package/dist/i18n/locales/pt.js +74 -5
  155. package/dist/i18n/locales/ro.d.ts +72 -3
  156. package/dist/i18n/locales/ro.js +74 -5
  157. package/dist/i18n/locales/ru.d.ts +72 -3
  158. package/dist/i18n/locales/ru.js +74 -5
  159. package/dist/i18n/locales/sq.d.ts +72 -3
  160. package/dist/i18n/locales/sq.js +74 -5
  161. package/dist/i18n/locales/sv.d.ts +72 -3
  162. package/dist/i18n/locales/sv.js +74 -5
  163. package/dist/i18n/locales/tr.d.ts +72 -3
  164. package/dist/i18n/locales/tr.js +74 -5
  165. package/dist/i18n/locales/zh.d.ts +72 -3
  166. package/dist/i18n/locales/zh.js +74 -5
  167. package/dist/index.js +1329 -1318
  168. package/dist/locales/ar.json +74 -5
  169. package/dist/locales/de.json +74 -5
  170. package/dist/locales/el.json +74 -5
  171. package/dist/locales/en.json +73 -4
  172. package/dist/locales/es.json +74 -5
  173. package/dist/locales/fr.json +74 -5
  174. package/dist/locales/hi.json +74 -5
  175. package/dist/locales/it.json +84 -15
  176. package/dist/locales/ja.json +74 -5
  177. package/dist/locales/nl.json +74 -5
  178. package/dist/locales/pl.json +74 -5
  179. package/dist/locales/pt.json +74 -5
  180. package/dist/locales/ro.json +74 -5
  181. package/dist/locales/ru.json +74 -5
  182. package/dist/locales/sq.json +74 -5
  183. package/dist/locales/sv.json +74 -5
  184. package/dist/locales/tr.json +74 -5
  185. package/dist/locales/zh.json +74 -5
  186. package/dist/online-bookings-panel/index.js +69 -0
  187. package/dist/patterns/alia-assistant/index.js +1 -1
  188. package/dist/patterns/anamnesis/index.js +1 -1
  189. package/dist/patterns/calendar/booking-tools/appointment-editor-panel.d.ts +46 -0
  190. package/dist/patterns/calendar/booking-tools/booking-tools-data.d.ts +48 -0
  191. package/dist/patterns/calendar/booking-tools/calendar-action-buttons.d.ts +55 -0
  192. package/dist/patterns/calendar/booking-tools/find-free-slots-panel.d.ts +35 -0
  193. package/dist/patterns/calendar/booking-tools/online-bookings-panel.d.ts +61 -0
  194. package/dist/patterns/calendar/booking-tools/waiting-list-panel.d.ts +58 -0
  195. package/dist/patterns/calendar/calendar-editor-discard-host.d.ts +20 -0
  196. package/dist/patterns/calendar/calendar-print-sheet.d.ts +16 -0
  197. package/dist/patterns/calendar/calendar-workspace.model.d.ts +7 -0
  198. package/dist/patterns/calendar/calendar.model.d.ts +9 -0
  199. package/dist/patterns/calendar/calendar.sheets.d.ts +59 -17
  200. package/dist/patterns/calendar/index.js +24 -20
  201. package/dist/patterns/patient-account-settings/index.js +1 -1
  202. package/dist/patterns/patient-check-in/index.js +1 -1
  203. package/dist/patterns/patient-portal/index.js +2 -2
  204. package/dist/patterns/patient-sign-in/index.js +2 -2
  205. package/dist/patterns/registration-form/index.js +1 -1
  206. package/dist/patterns/signature-request/index.js +1 -1
  207. package/dist/tokens.css +1 -1
  208. package/dist/waiting-list-panel/index.js +158 -0
  209. package/package.json +35 -2
  210. package/dist/_chunks/ai-summary-panel-B70S2lgC.js +0 -455
  211. package/dist/_chunks/calendar-appointment-editor-dialog-I5PfWudy.js +0 -13773
  212. package/dist/_chunks/color-picker-AcaWuKah.js +0 -745
  213. package/dist/_chunks/communications-panel-BKPHCiMB.js +0 -973
  214. package/dist/_chunks/entity-summary-CpNk6ybN.js +0 -266
  215. package/dist/_chunks/task-editor-DvwqPfFR.js +0 -1257
  216. package/dist/_chunks/use-appointment-details-read-6_OmOwUs.js +0 -2476
@@ -14,7 +14,7 @@ import { F as yn } from "./form-field-CyHfOVKF.js";
14
14
  import { K as bn } from "./kbd-Bx7eQv9f.js";
15
15
  import { L as pe } from "./list-CNnn7DOD.js";
16
16
  import { L as xn } from "./live-region-C41SO3cA.js";
17
- import { S as wn } from "./select-uESzXTX6.js";
17
+ import { S as wn } from "./select-CIXKyUMw.js";
18
18
  import { a as Nn, b as Ct, c as Cn, d as kn } from "./ai-fab-pill-BOu96kCx.js";
19
19
  import { c as An } from "./compose-refs-C0k0tdqF.js";
20
20
  import { g as Rn, a as En } from "./glass-surface-CPok0jEe.js";
@@ -1145,4 +1145,4 @@ export {
1145
1145
  no as V,
1146
1146
  Gn as v
1147
1147
  };
1148
- //# sourceMappingURL=voice-control-panel-Be_c0CQ0.js.map
1148
+ //# sourceMappingURL=voice-control-panel-Cp4vs1iy.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.135.0",
3
+ "packageVersion": "1.137.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -564,7 +564,7 @@
564
564
  "state": [
565
565
  {
566
566
  "name": "status",
567
- "type": "'consent-required' | 'loading' | 'ready' | 'stale' | 'insufficient-data' | 'credits-exhausted' | 'error'",
567
+ "type": "'consent-required' | 'loading' | 'ready' | 'stale' | 'insufficient-data' | 'not-generated' | 'credits-exhausted' | 'error'",
568
568
  "description": "The face the panel shows.",
569
569
  "descriptionKey": "ui.agent.aiSummaryPanel.state.status"
570
570
  },
@@ -579,6 +579,24 @@
579
579
  "type": "number",
580
580
  "description": "How many sections the summary holds. A count only.",
581
581
  "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionCount"
582
+ },
583
+ {
584
+ "name": "sectionsReady",
585
+ "type": "number",
586
+ "description": "How many sections have content (ready or out of date). A count only.",
587
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionsReady"
588
+ },
589
+ {
590
+ "name": "sectionsLoading",
591
+ "type": "number",
592
+ "description": "How many sections are still being created. A count only; zero unless sections are produced separately.",
593
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionsLoading"
594
+ },
595
+ {
596
+ "name": "sectionsFailed",
597
+ "type": "number",
598
+ "description": "How many sections could not be created. A count only; zero unless sections are produced separately.",
599
+ "descriptionKey": "ui.agent.aiSummaryPanel.state.sectionsFailed"
582
600
  }
583
601
  ],
584
602
  "actions": [
@@ -599,10 +617,10 @@
599
617
  "safety": "write",
600
618
  "openWorld": true,
601
619
  "errors": [
602
- "The panel is not in the error or not-enough-data face, is read-only or privacy mode is on.",
620
+ "The panel is not in the error, not-enough-data or not-generated face, is read-only or privacy mode is on.",
603
621
  "A request is already in flight."
604
622
  ],
605
- "description": "Ask for a summary again after an error or when data was added. Spends AI credits. Settles with the host's answer.",
623
+ "description": "Ask for a summary after an error, when data was added or when none was generated yet. Spends AI credits. Settles with the host's answer.",
606
624
  "descriptionKey": "ui.agent.aiSummaryPanel.actions.generate"
607
625
  },
608
626
  {
@@ -615,6 +633,54 @@
615
633
  ],
616
634
  "description": "Replace the summary with a new one. Spends AI credits. Settles with the host's answer.",
617
635
  "descriptionKey": "ui.agent.aiSummaryPanel.actions.regenerate"
636
+ },
637
+ {
638
+ "name": "generate_section",
639
+ "safety": "write",
640
+ "argsType": "{ sectionId: string }",
641
+ "argsSchema": {
642
+ "type": "object",
643
+ "properties": {
644
+ "sectionId": {
645
+ "type": "string"
646
+ }
647
+ },
648
+ "required": [
649
+ "sectionId"
650
+ ]
651
+ },
652
+ "openWorld": true,
653
+ "errors": [
654
+ "The panel shows no summary, is read-only, privacy mode is on or the host gave no way to ask for one section.",
655
+ "There is no section with that id.",
656
+ "A request is already in flight."
657
+ ],
658
+ "description": "Ask for one section that has no content yet, such as one that failed. Spends AI credits. Only call this when the user asks for it. Settles with the host's answer.",
659
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.generateSection"
660
+ },
661
+ {
662
+ "name": "regenerate_section",
663
+ "safety": "write",
664
+ "argsType": "{ sectionId: string }",
665
+ "argsSchema": {
666
+ "type": "object",
667
+ "properties": {
668
+ "sectionId": {
669
+ "type": "string"
670
+ }
671
+ },
672
+ "required": [
673
+ "sectionId"
674
+ ]
675
+ },
676
+ "openWorld": true,
677
+ "errors": [
678
+ "The panel shows no summary, is read-only, privacy mode is on or the host gave no way to ask for one section.",
679
+ "There is no section with that id.",
680
+ "A request is already in flight."
681
+ ],
682
+ "description": "Replace one section that has content with a new one. Spends AI credits. Only call this when the user asks for it. Settles with the host's answer.",
683
+ "descriptionKey": "ui.agent.aiSummaryPanel.actions.regenerateSection"
618
684
  }
619
685
  ],
620
686
  "domHooks": {
@@ -2962,6 +3028,215 @@
2962
3028
  }
2963
3029
  }
2964
3030
  },
3031
+ {
3032
+ "kind": "component",
3033
+ "id": "call-status-chip",
3034
+ "capabilities": [],
3035
+ "state": [],
3036
+ "actions": [],
3037
+ "domHooks": {
3038
+ "root": {
3039
+ "attr": "data-component",
3040
+ "value": "call-status-chip",
3041
+ "description": "Marks the element as a kit CallStatusChip. The root also emits data-status with the kind of fact (connected, no_answer, busy, wrong_number, left_voicemail, missed, incoming, outgoing or custom) and data-tone with the tone it is drawn in (positive, caution, negative or neutral)."
3042
+ }
3043
+ }
3044
+ },
3045
+ {
3046
+ "kind": "component",
3047
+ "id": "calls-panel",
3048
+ "capabilities": [
3049
+ "open",
3050
+ "close",
3051
+ "submit",
3052
+ "edit_inline"
3053
+ ],
3054
+ "state": [
3055
+ {
3056
+ "name": "callCount",
3057
+ "type": "number",
3058
+ "description": "How many logged calls the list holds. A count only, never a call. Zero under privacy.",
3059
+ "descriptionKey": "ui.agent.callsPanel.state.callCount"
3060
+ },
3061
+ {
3062
+ "name": "automaticCount",
3063
+ "type": "number",
3064
+ "description": "How many calls were logged by other software, such as a phone system. A count only: never a number, a name or a link. Zero under privacy.",
3065
+ "descriptionKey": "ui.agent.callsPanel.state.automaticCount"
3066
+ },
3067
+ {
3068
+ "name": "missedCount",
3069
+ "type": "number",
3070
+ "description": "How many incoming calls nobody answered. A count only. Zero under privacy.",
3071
+ "descriptionKey": "ui.agent.callsPanel.state.missedCount"
3072
+ },
3073
+ {
3074
+ "name": "status",
3075
+ "type": "'ready' | 'loading' | 'error'",
3076
+ "description": "The state of the host's read of the calls.",
3077
+ "descriptionKey": "ui.agent.callsPanel.state.status"
3078
+ },
3079
+ {
3080
+ "name": "formOpen",
3081
+ "type": "boolean",
3082
+ "description": "Whether the \"Log a call\" form is showing.",
3083
+ "descriptionKey": "ui.agent.callsPanel.state.formOpen"
3084
+ },
3085
+ {
3086
+ "name": "privacy",
3087
+ "type": "{ masked: true } | null",
3088
+ "description": "Reads { masked: true } when privacy mode withholds the calls, else null.",
3089
+ "descriptionKey": "ui.agent.callsPanel.state.privacy"
3090
+ }
3091
+ ],
3092
+ "actions": [
3093
+ {
3094
+ "name": "open_form",
3095
+ "safety": "write",
3096
+ "idempotent": true,
3097
+ "errors": [
3098
+ "The panel is read-only, privacy mode is on, or the host gave no way to log a call."
3099
+ ],
3100
+ "description": "Open the \"Log a call\" form, as the button does.",
3101
+ "descriptionKey": "ui.agent.callsPanel.actions.openForm"
3102
+ },
3103
+ {
3104
+ "name": "close_form",
3105
+ "safety": "read",
3106
+ "idempotent": true,
3107
+ "errors": [
3108
+ "A call is being saved."
3109
+ ],
3110
+ "description": "Close the form and discard what was typed in it.",
3111
+ "descriptionKey": "ui.agent.callsPanel.actions.closeForm"
3112
+ },
3113
+ {
3114
+ "name": "submit_call",
3115
+ "safety": "phi",
3116
+ "argsType": "{ dateIso: string; purposeId?: string | null; outcomeId?: string | null; description?: string }",
3117
+ "argsSchema": {
3118
+ "type": "object",
3119
+ "properties": {
3120
+ "dateIso": {
3121
+ "type": "string",
3122
+ "description": "ISO-8601 instant the call took place."
3123
+ },
3124
+ "purposeId": {
3125
+ "type": [
3126
+ "string",
3127
+ "null"
3128
+ ]
3129
+ },
3130
+ "outcomeId": {
3131
+ "type": [
3132
+ "string",
3133
+ "null"
3134
+ ]
3135
+ },
3136
+ "description": {
3137
+ "type": "string"
3138
+ }
3139
+ },
3140
+ "required": [
3141
+ "dateIso"
3142
+ ]
3143
+ },
3144
+ "openWorld": true,
3145
+ "errors": [
3146
+ "The date is missing or not a date.",
3147
+ "The purpose or outcome is not one the host offered.",
3148
+ "The panel is read-only, privacy mode is on, or the host gave no way to log a call.",
3149
+ "A write is already in progress.",
3150
+ "The host refused the call. The panel keeps the form and shows the host's message."
3151
+ ],
3152
+ "examples": [
3153
+ {
3154
+ "args": {
3155
+ "dateIso": "2026-06-24T09:30:00Z",
3156
+ "outcomeId": "connected",
3157
+ "description": "Confirmed the visit."
3158
+ },
3159
+ "note": "Log a connected call."
3160
+ }
3161
+ ],
3162
+ "description": "Log a call made to the patient. Settles with the host's answer; a refusal rejects.",
3163
+ "descriptionKey": "ui.agent.callsPanel.actions.logCall"
3164
+ },
3165
+ {
3166
+ "name": "edit_call",
3167
+ "safety": "phi",
3168
+ "argsType": "{ id: string; description: string }",
3169
+ "argsSchema": {
3170
+ "type": "object",
3171
+ "properties": {
3172
+ "id": {
3173
+ "type": "string"
3174
+ },
3175
+ "description": {
3176
+ "type": "string",
3177
+ "minLength": 1
3178
+ }
3179
+ },
3180
+ "required": [
3181
+ "id",
3182
+ "description"
3183
+ ]
3184
+ },
3185
+ "idempotent": true,
3186
+ "openWorld": true,
3187
+ "errors": [
3188
+ "No call has that id.",
3189
+ "The description is empty.",
3190
+ "The panel is read-only, privacy mode is on, or the host gave no way to edit a call.",
3191
+ "A write is already in progress.",
3192
+ "The host refused the edit. The panel keeps the text and shows the host's message."
3193
+ ],
3194
+ "description": "Replace the description of a logged call. Only the description can change. Settles with the host's answer.",
3195
+ "descriptionKey": "ui.agent.callsPanel.actions.updateCall"
3196
+ },
3197
+ {
3198
+ "name": "delete_call",
3199
+ "safety": "destructive",
3200
+ "argsType": "{ id: string }",
3201
+ "argsSchema": {
3202
+ "type": "object",
3203
+ "properties": {
3204
+ "id": {
3205
+ "type": "string"
3206
+ }
3207
+ },
3208
+ "required": [
3209
+ "id"
3210
+ ]
3211
+ },
3212
+ "openWorld": true,
3213
+ "errors": [
3214
+ "No call has that id.",
3215
+ "The panel is read-only, privacy mode is on, or the host gave no way to delete a call.",
3216
+ "A write is already in progress.",
3217
+ "The host refused the delete."
3218
+ ],
3219
+ "description": "Delete a logged call. Settles with the host's answer; a refusal rejects.",
3220
+ "descriptionKey": "ui.agent.callsPanel.actions.deleteCall"
3221
+ }
3222
+ ],
3223
+ "domHooks": {
3224
+ "root": {
3225
+ "attr": "data-component",
3226
+ "value": "calls-panel",
3227
+ "description": "Marks the CallsPanel region."
3228
+ },
3229
+ "instanceId": {
3230
+ "attr": "data-component-id",
3231
+ "sourceProp": "id",
3232
+ "description": "Sourced from the id prop. Required to address a specific panel from the agent."
3233
+ },
3234
+ "item": {
3235
+ "attr": "data-call-id",
3236
+ "description": "Stable call id on each rendered call. Never a description, a purpose or a date."
3237
+ }
3238
+ }
3239
+ },
2965
3240
  {
2966
3241
  "kind": "component",
2967
3242
  "id": "card",
@@ -3408,7 +3683,7 @@
3408
3683
  "name": "submit",
3409
3684
  "safety": "write",
3410
3685
  "openWorld": true,
3411
- "description": "Submit the current composer state via onSubmit.",
3686
+ "description": "Submit the current composer state via onSubmit. An empty composer is submitted only when allowEmptySubmit is set; otherwise nothing is sent.",
3412
3687
  "descriptionKey": "ui.agent.chatInput.actions.submit"
3413
3688
  },
3414
3689
  {
@@ -3977,7 +4252,8 @@
3977
4252
  "kind": "component",
3978
4253
  "id": "communications-panel",
3979
4254
  "capabilities": [
3980
- "submit"
4255
+ "submit",
4256
+ "select_single"
3981
4257
  ],
3982
4258
  "state": [
3983
4259
  {
@@ -64,12 +64,17 @@
64
64
  "state": {
65
65
  "status": "The face the panel shows.",
66
66
  "ageBand": "How old the summary is: fresh (under 6 hours), old (6 to 24 hours) or very-old (over 24 hours). Null when there is no summary.",
67
- "sectionCount": "How many sections the summary holds. A count only."
67
+ "sectionCount": "How many sections the summary holds. A count only.",
68
+ "sectionsReady": "How many sections have content (ready or out of date). A count only.",
69
+ "sectionsLoading": "How many sections are still being created. A count only; zero unless sections are produced separately.",
70
+ "sectionsFailed": "How many sections could not be created. A count only; zero unless sections are produced separately."
68
71
  },
69
72
  "actions": {
70
73
  "grantConsent": "Record that the patient was told and agrees, then ask for the first summary. The summary spends AI credits. Only call this when the user says the patient agreed. Settles with the host's answer.",
71
- "generate": "Ask for a summary again after an error or when data was added. Spends AI credits. Settles with the host's answer.",
72
- "regenerate": "Replace the summary with a new one. Spends AI credits. Settles with the host's answer."
74
+ "generate": "Ask for a summary after an error, when data was added or when none was generated yet. Spends AI credits. Settles with the host's answer.",
75
+ "regenerate": "Replace the summary with a new one. Spends AI credits. Settles with the host's answer.",
76
+ "generateSection": "Ask for one section that has no content yet, such as one that failed. Spends AI credits. Only call this when the user asks for it. Settles with the host's answer.",
77
+ "regenerateSection": "Replace one section that has content with a new one. Spends AI credits. Only call this when the user asks for it. Settles with the host's answer."
73
78
  }
74
79
  },
75
80
  "anamnesisSummaryCard": {
@@ -273,6 +278,23 @@
273
278
  "printDaySheet": "Print the front-desk call sheet. The toolbar's printer icon opens a dialog asking which day — one day, never the visible range — and Print renders that day's appointments through the browser, scoped by the filters in force and masked when privacy mode is on. Nothing is sent to a server, but the sheet itself is a patient-identifiable document."
274
279
  }
275
280
  },
281
+ "callsPanel": {
282
+ "state": {
283
+ "callCount": "How many logged calls the list holds. A count only, never a call. Zero under privacy.",
284
+ "automaticCount": "How many calls were logged by other software, such as a phone system. A count only: never a number, a name or a link. Zero under privacy.",
285
+ "missedCount": "How many incoming calls nobody answered. A count only. Zero under privacy.",
286
+ "status": "The state of the host's read of the calls.",
287
+ "formOpen": "Whether the \"Log a call\" form is showing.",
288
+ "privacy": "Reads { masked: true } when privacy mode withholds the calls, else null."
289
+ },
290
+ "actions": {
291
+ "openForm": "Open the \"Log a call\" form, as the button does.",
292
+ "closeForm": "Close the form and discard what was typed in it.",
293
+ "logCall": "Log a call made to the patient. Settles with the host's answer; a refusal rejects.",
294
+ "updateCall": "Replace the description of a logged call. Only the description can change. Settles with the host's answer.",
295
+ "deleteCall": "Delete a logged call. Settles with the host's answer; a refusal rejects."
296
+ }
297
+ },
276
298
  "carePlanCard": {
277
299
  "state": {
278
300
  "state": "The plan lifecycle state. Enum value only — never the localised label or any PHI.",
@@ -331,7 +353,7 @@
331
353
  "actions": {
332
354
  "setValue": "Replace the composer text.",
333
355
  "clear": "Clear the composer. Irreversible from the same UI.",
334
- "submit": "Submit the current composer state via onSubmit.",
356
+ "submit": "Submit the current composer state via onSubmit. An empty composer is submitted only when allowEmptySubmit is set; otherwise nothing is sent.",
335
357
  "focus": "Move keyboard focus into the textarea."
336
358
  }
337
359
  },
@@ -0,0 +1,100 @@
1
+ import { jsx as a, jsxs as x } from "react/jsx-runtime";
2
+ import { useMemo as H, useCallback as h } from "react";
3
+ import { useTranslation as D } from "react-i18next";
4
+ import { I as j } from "../_chunks/icon-button-S8_weU3g.js";
5
+ import { a as F } from "../_chunks/panel-header-CbtlTe85.js";
6
+ import { a as G } from "../_chunks/tooltip-uEBdD1-5.js";
7
+ import { C as N, E as O } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
8
+ import { A as W, S as q } from "../_chunks/calendar.sheets-Datc0-IT.js";
9
+ import { u as z, c as B } from "../_chunks/calendar-editor-discard-host-1UfmMOEb.js";
10
+ import { X as M } from "../_chunks/x-B5YnXwCz.js";
11
+ import { P as R } from "../_chunks/privacy-mask-C2ZLKrMh.js";
12
+ import { C as X } from "../_chunks/calendar-clock-hbObjfGY.js";
13
+ function oo({
14
+ data: s,
15
+ onClose: n,
16
+ guard: r,
17
+ load: u,
18
+ platform: v,
19
+ privacy: E = !1,
20
+ onPrivacyOff: C,
21
+ closeButton: d = !1,
22
+ panelTitle: c,
23
+ prefill: o,
24
+ capabilities: g,
25
+ series: I,
26
+ ...P
27
+ }) {
28
+ const { t: i } = D("ui"), {
29
+ guard: k,
30
+ requestClose: e,
31
+ discardDialog: b
32
+ } = z(r), A = H(
33
+ () => ({ open: () => {
34
+ }, close: n }),
35
+ [n]
36
+ ), y = h(
37
+ () => e(n),
38
+ [e, n]
39
+ ), w = c ?? i(
40
+ o != null && o.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
41
+ ), S = d ? /* @__PURE__ */ a(
42
+ j,
43
+ {
44
+ icon: /* @__PURE__ */ a(M, { "aria-hidden": "true" }),
45
+ intent: "ghost",
46
+ size: "sm",
47
+ "aria-label": i("common.close", "Close"),
48
+ onClick: y
49
+ }
50
+ ) : void 0, T = E && !!(o != null && o.editEventId || o != null && o.patientId || o != null && o.bookingContact || o != null && o.care || o != null && o.waitingEntryId) ? /* @__PURE__ */ a(
51
+ R,
52
+ {
53
+ title: w,
54
+ icon: /* @__PURE__ */ a(X, { "aria-hidden": "true" }),
55
+ onTurnOff: C
56
+ }
57
+ ) : /* @__PURE__ */ a(
58
+ B,
59
+ {
60
+ eventId: o == null ? void 0 : o.editEventId,
61
+ load: u,
62
+ onCancel: n,
63
+ children: (t) => /* @__PURE__ */ a(
64
+ W,
65
+ {
66
+ ...P,
67
+ prefill: t ? {
68
+ ...t.prefill,
69
+ /* What the host asked for on top of the canonical read. */
70
+ callToAction: (o == null ? void 0 : o.callToAction) ?? t.prefill.callToAction,
71
+ waitingEntryId: (o == null ? void 0 : o.waitingEntryId) ?? t.prefill.waitingEntryId,
72
+ simpleSave: (o == null ? void 0 : o.simpleSave) ?? t.prefill.simpleSave,
73
+ bookingContact: (o == null ? void 0 : o.bookingContact) ?? t.prefill.bookingContact,
74
+ initialFocus: o == null ? void 0 : o.initialFocus
75
+ } : o,
76
+ capabilities: (t == null ? void 0 : t.capabilities) ?? g,
77
+ series: (t == null ? void 0 : t.series) ?? I,
78
+ panelTitle: c,
79
+ platform: v,
80
+ closeOnSave: !0
81
+ }
82
+ )
83
+ }
84
+ ), m = /* @__PURE__ */ a(
85
+ "div",
86
+ {
87
+ "data-component": "appointment-editor-rail-panel",
88
+ className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
89
+ children: T
90
+ }
91
+ );
92
+ return /* @__PURE__ */ x(G, { children: [
93
+ /* @__PURE__ */ a(N, { value: s, children: /* @__PURE__ */ a(q, { value: A, children: /* @__PURE__ */ a(O, { value: k, children: d ? /* @__PURE__ */ a(F, { actions: S, children: m }) : m }) }) }),
94
+ b
95
+ ] });
96
+ }
97
+ export {
98
+ oo as AppointmentEditorRailPanel
99
+ };
100
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,82 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { a as d } from "../_chunks/tooltip-uEBdD1-5.js";
3
+ import { C as p } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
4
+ import { c as y } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
5
+ import { h as P } from "../_chunks/calendar-workspace.model-DrOoxY1b.js";
6
+ function l(e) {
7
+ const s = String(e.getMonth() + 1).padStart(2, "0"), t = String(e.getDate()).padStart(2, "0");
8
+ return `${e.getFullYear()}-${s}-${t}`;
9
+ }
10
+ function D(e) {
11
+ const t = { ...{
12
+ chairs: e.chairs,
13
+ operators: e.operators,
14
+ operatorGroups: [],
15
+ inactiveOperatorIds: [],
16
+ operatorAbsences: {},
17
+ operatorAbsenceTitles: {},
18
+ holidays: [],
19
+ closedDates: [],
20
+ businessHours: { practice: {}, operators: {} },
21
+ nowIso: e.nowIso,
22
+ initialDateIso: e.nowIso.slice(0, 10),
23
+ currency: e.currency,
24
+ cares: e.cares,
25
+ patients: [],
26
+ baseEvents: [],
27
+ metaById: {},
28
+ bookingNotes: {},
29
+ bookingContacts: {},
30
+ taskDetails: {},
31
+ waitingList: [],
32
+ practiceFeatures: {
33
+ findFreeSlotsByCare: !1,
34
+ recurringPriceListCarePlanEntries: !1,
35
+ paymentAutomation: !1,
36
+ pauUpsell: !1
37
+ },
38
+ branches: [],
39
+ careDevices: {},
40
+ unsignedRequiredDocs: {},
41
+ patientsWithAes: /* @__PURE__ */ new Set(),
42
+ paidOnline: {},
43
+ bookingPhones: {},
44
+ patientById: () => {
45
+ },
46
+ patientNotes: () => [],
47
+ patientAppointments: () => [],
48
+ patientTasks: () => [],
49
+ careById: (n) => e.cares.find((r) => r.id === n),
50
+ carePlanById: () => {
51
+ },
52
+ openCarePlansForPatient: () => [],
53
+ careEntriesFromLink: () => [],
54
+ practiceClosedOn: () => !1,
55
+ closureOn: () => null,
56
+ openDatesBetween: (n, r) => {
57
+ const a = [], o = new Date(n);
58
+ o.setHours(0, 0, 0, 0);
59
+ const i = new Date(r);
60
+ for (i.setHours(0, 0, 0, 0); o.getTime() <= i.getTime(); ) {
61
+ const c = l(o);
62
+ t.businessHours.practice[o.getDay()] && !t.practiceClosedOn(c) && a.push(c), o.setDate(o.getDate() + 1);
63
+ }
64
+ return a;
65
+ },
66
+ waitingSinceIso: () => e.nowIso
67
+ }, ...e };
68
+ return t;
69
+ }
70
+ function I({
71
+ data: e,
72
+ children: s
73
+ }) {
74
+ return /* @__PURE__ */ u(d, { children: /* @__PURE__ */ u(p, { value: e, children: s }) });
75
+ }
76
+ export {
77
+ I as BookingToolsProvider,
78
+ D as createBookingToolsData,
79
+ y as createEditorGuard,
80
+ P as hiddenReasons
81
+ };
82
+ //# sourceMappingURL=index.js.map