@alfadocs/ui-kit 1.47.0 → 1.48.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 (442) hide show
  1. package/dist/_chunks/{actions-cell-renderer-B5m9lwgC.js → actions-cell-renderer-DMittsR3.js} +4 -4
  2. package/dist/_chunks/{address-autocomplete-Bq-1n1UX.js → address-autocomplete-Dp5uMvKP.js} +61 -60
  3. package/dist/_chunks/{address-fields-jFfjxOQR.js → address-fields-QfC-N3pw.js} +5 -5
  4. package/dist/_chunks/{agenda-card-DyQtHb9z.js → agenda-card-C4h0xMGi.js} +2 -2
  5. package/dist/_chunks/{agenda-tray-CBaJASb5.js → agenda-tray-DNZYW2xt.js} +4 -4
  6. package/dist/_chunks/{ai-credits-notice-xszqOZTC.js → ai-credits-notice-C-kz_RrY.js} +3 -3
  7. package/dist/_chunks/{ai-permission-notice-D7I2U-cz.js → ai-permission-notice-BRZeS3mT.js} +3 -3
  8. package/dist/_chunks/{ai-prompt-input-DXknpQCB.js → ai-prompt-input-CxvnXsAs.js} +82 -82
  9. package/dist/_chunks/{alia-sidebar-CUqaJNPQ.js → alia-sidebar-Crn8OGPF.js} +7 -7
  10. package/dist/_chunks/{anamnesis-card-xtEhyojD.js → anamnesis-card-D8Si-2GV.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-card-CclBbiXg.js → anamnesis-summary-card-DPyScUMM.js} +2 -2
  12. package/dist/_chunks/{anamnesis-summary-rows-DI-UX5r6.js → anamnesis-summary-rows-CZirLRuv.js} +12 -12
  13. package/dist/_chunks/{antenatal-schedule-timeline-CXk_tzWG.js → antenatal-schedule-timeline-8fm3vPSV.js} +2 -2
  14. package/dist/_chunks/{appointment-card-DluZy8Iv.js → appointment-card-CvGU0QP6.js} +5 -5
  15. package/dist/_chunks/{appointment-peek-BsfCpiJs.js → appointment-peek--dmWznLZ.js} +5 -5
  16. package/dist/_chunks/{appointment-timeline-Cs5f9viN.js → appointment-timeline-y9uYZMUd.js} +6 -6
  17. package/dist/_chunks/{appointment-tray-CLrGGnKR.js → appointment-tray-BTecNeSb.js} +4 -4
  18. package/dist/_chunks/appointment-workflow-status-CS8ufF1f.js +66 -0
  19. package/dist/_chunks/{audio-recorder-B7dT-Y3v.js → audio-recorder-DZBtAvLH.js} +4 -4
  20. package/dist/_chunks/{autocomplete-MpBhz-fG.js → autocomplete-DSasZUf6.js} +65 -64
  21. package/dist/_chunks/{badge-BudgzTe_.js → badge-BAkd6_Pj.js} +24 -17
  22. package/dist/_chunks/{balance-badge-cell-YGrYdrvR.js → balance-badge-cell-CA0YNJMR.js} +6 -6
  23. package/dist/_chunks/{bishop-score-Cu70iv9C.js → bishop-score-BMLRvXYF.js} +4 -4
  24. package/dist/_chunks/{bmi-calculator-C9N19aLX.js → bmi-calculator-DUhRyyrA.js} +3 -3
  25. package/dist/_chunks/{booking-C4MwImkS.js → booking-BQYFDcrz.js} +10 -10
  26. package/dist/_chunks/{breadcrumb-agut0PwN.js → breadcrumb-D3boYzD4.js} +50 -49
  27. package/dist/_chunks/{button-CaUe1uyd.js → button-18oBsI3n.js} +54 -50
  28. package/dist/_chunks/button-group-BSDqso_C.js +408 -0
  29. package/dist/_chunks/{calendar-OzSeTb4V.js → calendar-DjoJ9ovF.js} +11 -17
  30. package/dist/_chunks/{calendar-event-card-B6N5h1dO.js → calendar-event-card-BUbKBPv_.js} +55 -73
  31. package/dist/_chunks/calendar-workspace-D8zX9JWm.js +10423 -0
  32. package/dist/_chunks/{care-plan-card-BOv0NRle.js → care-plan-card-ciBaaguw.js} +4 -4
  33. package/dist/_chunks/{care-plan-entry-card-d-rZD4li.js → care-plan-entry-card-D7A0whiZ.js} +5 -5
  34. package/dist/_chunks/{care-plan-header-CEmBXn6-.js → care-plan-header-DKV1gLqv.js} +4 -4
  35. package/dist/_chunks/{carousel.agent-z1yLBpyC.js → carousel.agent-DqDGR2yH.js} +2 -2
  36. package/dist/_chunks/{chart-D8ucl8hH.js → chart-VjuXDXOZ.js} +3 -3
  37. package/dist/_chunks/{chat-input-Cj7ZYQr5.js → chat-input-BVho_SqP.js} +2 -2
  38. package/dist/_chunks/{chat-message-BMVxiUIX.js → chat-message-Co_NRGM4.js} +3 -3
  39. package/dist/_chunks/{smartphone-DaPcFw-X.js → circle-dashed-CUj6o2cA.js} +3 -14
  40. package/dist/_chunks/{city-input-DaQc-Hbj.js → city-input-BGYc4lRV.js} +2 -2
  41. package/dist/_chunks/{clinical-note-card-DdsGYMmI.js → clinical-note-card-DYDQ3q2x.js} +89 -74
  42. package/dist/_chunks/{code-block-BB-viuTn.js → code-block-C_eNHWaa.js} +2 -2
  43. package/dist/_chunks/combobox-B_rLwmSv.js +578 -0
  44. package/dist/_chunks/{command-palette-DQl_SNEv.js → command-palette-DhgGo7GJ.js} +82 -80
  45. package/dist/_chunks/{connection-status-BmA9T0UO.js → connection-status-Cfux3TvH.js} +4 -4
  46. package/dist/_chunks/{contact-profile-card-C0WpwpVV.js → contact-profile-card-Dj4NgBL-.js} +3 -3
  47. package/dist/_chunks/control-room-rail-DAO0qfOI.js +379 -0
  48. package/dist/_chunks/{copy-field-B8XRVmQv.js → copy-field-Cm4y5Bff.js} +2 -2
  49. package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-C5jZjO8O.js} +2 -2
  50. package/dist/_chunks/{cycle-calculator-BH2StWoT.js → cycle-calculator-B9lBRNiZ.js} +3 -3
  51. package/dist/_chunks/{dashboard-grid-BcXWL5S9.js → dashboard-grid-uX7x1ePj.js} +2 -2
  52. package/dist/_chunks/{data-table-DnKOmEVw.js → data-table-DWOSxlsy.js} +9 -9
  53. package/dist/_chunks/{data-table-tabs-B9SXA5VP.js → data-table-tabs-CzYYKp2_.js} +3 -3
  54. package/dist/_chunks/{dependent-selector-BHDP0nBB.js → dependent-selector-BR_8D2Qu.js} +2 -2
  55. package/dist/_chunks/{description-list-BsJ_6CQE.js → description-list-1A2DEbE6.js} +2 -2
  56. package/dist/_chunks/{document-preview-COV0BC6n.js → document-preview-Od2Hz4z5.js} +13 -12
  57. package/dist/_chunks/{document-scanner-B1abl-A4.js → document-scanner-p0aGlzCy.js} +3 -3
  58. package/dist/_chunks/{dropdown-menu-DU-Hrf33.js → dropdown-menu-C8PaW3lR.js} +110 -96
  59. package/dist/_chunks/{due-date-calculator-Buh_mVHq.js → due-date-calculator-BVqJaxzd.js} +4 -4
  60. package/dist/_chunks/{editable-currency-cell-renderer-OUkUv7U4.js → editable-currency-cell-renderer-D_G2Ap61.js} +4 -4
  61. package/dist/_chunks/{editable-description-ADMVFPUz.js → editable-description-B4NVdjvd.js} +3 -3
  62. package/dist/_chunks/{editor-overlay-DwNKaI22.js → editor-overlay-BDiBvQmL.js} +2 -2
  63. package/dist/_chunks/{empty-state-BUN_UAWf.js → empty-state-DTBZ1ENT.js} +2 -2
  64. package/dist/_chunks/{entity-card-I-Gio5wo.js → entity-card-D1Yrh9wf.js} +2 -1
  65. package/dist/_chunks/{entity-summary-DXejuQ8i.js → entity-summary-Ckz_U00H.js} +3 -3
  66. package/dist/_chunks/{error-boundary-BNT2iQ1w.js → error-boundary-BxTqEXqj.js} +2 -2
  67. package/dist/_chunks/euro-Dsuz4ixO.js +22 -0
  68. package/dist/_chunks/{face-scheme-mIhwrQXt.js → face-scheme-fku-RShg.js} +71 -71
  69. package/dist/_chunks/{fetal-weight-wx4ycKc6.js → fetal-weight-B69yOS9W.js} +3 -3
  70. package/dist/_chunks/{field-array-BW9KeeXG.js → field-array-lIXrFWS0.js} +3 -3
  71. package/dist/_chunks/file-BuG1VMAy.js +21 -0
  72. package/dist/_chunks/{file-Cwe9VC1A.js → file-image-cDgE-BTy.js} +2 -19
  73. package/dist/_chunks/{file-manager-DOcJGIx2.js → file-manager-CqgxLqoA.js} +15 -14
  74. package/dist/_chunks/{file-upload-BDpb08GM.js → file-upload-B242a_Y1.js} +53 -52
  75. package/dist/_chunks/{finished-terminal-DJd7Z_po.js → finished-terminal-B2oqXO0Y.js} +2 -2
  76. package/dist/_chunks/fiscal-code-input-BEF8eKIG.js +572 -0
  77. package/dist/_chunks/{freemium-paywall-BaW5ODc9.js → freemium-paywall-B6JITu4l.js} +2 -2
  78. package/dist/_chunks/{gestational-age-calculator-CwbecTul.js → gestational-age-calculator-DsGN6_HS.js} +5 -5
  79. package/dist/_chunks/handled-rejection-6gqCf5vt.js +13 -0
  80. package/dist/_chunks/{hcg-doubling-BcXriXJe.js → hcg-doubling-D2SH-e7t.js} +3 -3
  81. package/dist/_chunks/{header-3o9o9v_T.js → header-CCjp5GvE.js} +2 -2
  82. package/dist/_chunks/{header-settings-BEfx_-TF.js → header-settings-ZXa6hXuu.js} +5 -5
  83. package/dist/_chunks/{help-me-write-templates-DHIwa4xR.js → help-me-write-templates-DQtT1qs_.js} +5 -5
  84. package/dist/_chunks/history-CK2JaU2g.js +16 -0
  85. package/dist/_chunks/{hover-card-nUae8NPJ.js → hover-card-BplP5SzQ.js} +2 -2
  86. package/dist/_chunks/{icon-button-CehAeZoP.js → icon-button-CY7GU_Se.js} +2 -2
  87. package/dist/_chunks/icon-button-group-B_426QN_.js +431 -0
  88. package/dist/_chunks/{icon-picker-DMEelg9v.js → icon-picker-ZLebyB0U.js} +3 -3
  89. package/dist/_chunks/{image-cropper-BjPjT7wU.js → image-cropper-_HiNN79d.js} +2 -2
  90. package/dist/_chunks/{info-tip-iP2Pm9dh.js → info-tip-laBxZhKu.js} +2 -2
  91. package/dist/_chunks/{insert-result-DPnOBD85.js → insert-result-CSuPQyKL.js} +2 -2
  92. package/dist/_chunks/{key-value-pair-DaQI_LZB.js → key-value-pair-Dcdl3Gni.js} +2 -2
  93. package/dist/_chunks/{kit-extensions-DuoFF1R3.js → kit-extensions-BTJSnM_H.js} +6 -6
  94. package/dist/_chunks/{link-cell-renderer-s3oHzOwi.js → link-cell-renderer-Tswqf6BT.js} +7 -7
  95. package/dist/_chunks/{locale-picker-CH3kfrIG.js → locale-picker-DGkQmhV9.js} +170 -180
  96. package/dist/_chunks/{map-view-CHw4RL6w.js → map-view-Bb7ClKSF.js} +2 -2
  97. package/dist/_chunks/{marketplace-app-shell-PB89Dkk_.js → marketplace-app-shell-Dehuxbi-.js} +6 -6
  98. package/dist/_chunks/menu-row-BAr8bx1I.js +95 -0
  99. package/dist/_chunks/{message-card-V3sFPiQI.js → message-card-DKOtnBHy.js} +3 -3
  100. package/dist/_chunks/{message-tray-CrRIHfiQ.js → message-tray-COMEtmyr.js} +4 -4
  101. package/dist/_chunks/{multi-select-CtPd7g4x.js → multi-select-N4Smh-gj.js} +114 -113
  102. package/dist/_chunks/{muscle-scheme-UVz_x4iE.js → muscle-scheme-Co0NIgbU.js} +3 -3
  103. package/dist/_chunks/{note-attachment-CwDir3kK.js → note-attachment-CGjNTrAC.js} +2 -2
  104. package/dist/_chunks/{note-timeline-Dn_XTo1s.js → note-timeline-CVnKL0p6.js} +2 -2
  105. package/dist/_chunks/notes-panel-BiOxZL_0.js +1111 -0
  106. package/dist/_chunks/{notification-card-B2gLO6dK.js → notification-card-DDzBCi8l.js} +3 -3
  107. package/dist/_chunks/{notification-tray-BOEKegVV.js → notification-tray-PnH2PBlZ.js} +4 -4
  108. package/dist/_chunks/{operator-hero-XIdwDmN2.js → operator-hero-5061fkY5.js} +3 -3
  109. package/dist/_chunks/{optical-prescription-LGgmtcST.js → optical-prescription-DUufWXfZ.js} +3 -3
  110. package/dist/_chunks/{pagination-EkD5SiCK.js → pagination-B0N2qGy_.js} +83 -82
  111. package/dist/_chunks/panel-subview-CzHutkA8.js +217 -0
  112. package/dist/_chunks/{patient-details-yrgkSeEY.js → patient-details-C23Hdm8v.js} +3 -3
  113. package/dist/_chunks/{patient-field-row-DCMkFGqI.js → patient-field-row-DElFbpKc.js} +12 -12
  114. package/dist/_chunks/{patient-search-5QcmQKJD.js → patient-search-DgXdGkhK.js} +4 -4
  115. package/dist/_chunks/{patient-summary-card-CmEFflGS.js → patient-summary-card-C36L3h7h.js} +7 -7
  116. package/dist/_chunks/{payment-automation-upsell-BKmBXU4i.js → payment-automation-upsell-ugi4np1l.js} +3 -3
  117. package/dist/_chunks/{payment-request-card-Cer6XXCn.js → payment-request-card-DMJB57Tv.js} +5 -5
  118. package/dist/_chunks/{periodontal-chart-DJoZS_o7.js → periodontal-chart-DbGzKDj7.js} +2 -2
  119. package/dist/_chunks/{periodontal-chart-card-Nd1ZoYWb.js → periodontal-chart-card-DvHyP47v.js} +3 -3
  120. package/dist/_chunks/{periodontal-diagnosis-C7pfPOct.js → periodontal-diagnosis-B8WqI0eU.js} +2 -2
  121. package/dist/_chunks/{periodontal-risk-chart-B2tNFa15.js → periodontal-risk-chart-DsFRFFSz.js} +2 -2
  122. package/dist/_chunks/{phone-input-IWrGOCwm.js → phone-input-sQj-zi59.js} +85 -86
  123. package/dist/_chunks/{popover-DO-pssF3.js → popover-Dvb40vPH.js} +2 -2
  124. package/dist/_chunks/{practice-profile-hero-DxoLlQr5.js → practice-profile-hero-CPy5h2yI.js} +2 -2
  125. package/dist/_chunks/{practice-results-D11Zpt27.js → practice-results-t2BHht91.js} +7 -7
  126. package/dist/_chunks/{pregnancy-dating-DcyV9ZRD.js → pregnancy-dating-lfjjZVZH.js} +5 -5
  127. package/dist/_chunks/{pregnancy-weight-gain-Bfq4Kwt5.js → pregnancy-weight-gain-WpNt-S0q.js} +3 -3
  128. package/dist/_chunks/{privacy-lock-CbFCAMM3.js → privacy-lock-D6gq0GDg.js} +3 -3
  129. package/dist/_chunks/privacy-mask-BC5lw2zB.js +81 -0
  130. package/dist/_chunks/{product-hub-panel-w40-_-1s.js → product-hub-panel-CKeSCSeE.js} +3 -3
  131. package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BiszMRRY.js} +2 -2
  132. package/dist/_chunks/{public-header.agent-D-EBVskf.js → public-header.agent-B9wDmUeB.js} +3 -3
  133. package/dist/_chunks/{radiograph-panel.agent-LrILY2lN.js → radiograph-panel.agent-TmyIvTOa.js} +6 -6
  134. package/dist/_chunks/{reviews-panel-2GVuxGeT.js → reviews-panel-BdwFp_0c.js} +4 -4
  135. package/dist/_chunks/{rich-text-editor-BwDV2XkZ.js → rich-text-editor-y6ML0KeV.js} +12 -11
  136. package/dist/_chunks/{search-bar-CCmViqaa.js → search-bar-6bHatpYJ.js} +69 -67
  137. package/dist/_chunks/{select-CLSUnKjF.js → select-upNAltly.js} +89 -88
  138. package/dist/_chunks/{session-countdown-BqppPrw6.js → session-countdown-ACJyTXH2.js} +2 -2
  139. package/dist/_chunks/{sheet-C8WIDFS8.js → sheet-D0Lh0KR2.js} +2 -2
  140. package/dist/_chunks/{sign-in-with-alfadocs-button-DWwBJtyE.js → sign-in-with-alfadocs-button-CDyJAIzW.js} +2 -2
  141. package/dist/_chunks/{signature-request-D_j2aQu1.js → signature-request-15D363w5.js} +6 -6
  142. package/dist/_chunks/{signature-status-chip-D4NsrdeI.js → signature-status-chip-Dz6sS2oA.js} +2 -2
  143. package/dist/_chunks/{slot-grid-B3eOPkKD.js → slot-grid-4fWH3Euk.js} +4 -4
  144. package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
  145. package/dist/_chunks/{streaming-text-CE1u_oGa.js → streaming-text-eRiizArc.js} +2 -2
  146. package/dist/_chunks/{tab-bar-Cw9UK18Z.js → tab-bar-BHFf6knq.js} +9 -9
  147. package/dist/_chunks/{tabs-BnRaLT0y.js → tabs-CFsuMQ5H.js} +82 -81
  148. package/dist/_chunks/{tag-Ci3xJPcH.js → tag-B65tLWvD.js} +24 -21
  149. package/dist/_chunks/{task-card-qTKD1fIT.js → task-card-CTTQfPS6.js} +72 -55
  150. package/dist/_chunks/task-editor-DlvTwAfv.js +1243 -0
  151. package/dist/_chunks/{task-tray-DIwjAIes.js → task-tray-JA-qp_pB.js} +4 -4
  152. package/dist/_chunks/tasks-panel-C_dVDQKJ.js +1243 -0
  153. package/dist/_chunks/{theme-toggle-BP0XRGMM.js → theme-toggle-LUBxlNDm.js} +4 -4
  154. package/dist/_chunks/{toast-ZZfhA5u0.js → toast-CT8hjr9r.js} +2 -2
  155. package/dist/_chunks/{token-insert-menu-A9B5AJw6.js → token-insert-menu-klwbxVKh.js} +3 -3
  156. package/dist/_chunks/{tool-rail-CCFqDfAn.js → tool-rail-DEeX4PdN.js} +144 -137
  157. package/dist/_chunks/{tooth-scheme-DPAq0vQK.js → tooth-scheme-BkjhkI8g.js} +4 -4
  158. package/dist/_chunks/{treatment-receipt-DU0OewqH.js → treatment-receipt-C-gWZ6uv.js} +3 -3
  159. package/dist/_chunks/{unit-converter-C-LpGzrN.js → unit-converter-Dp_KDxE6.js} +3 -3
  160. package/dist/_chunks/use-appointment-details-read-D2FH-cHF.js +2045 -0
  161. package/dist/_chunks/use-list-reflow-C7O4Uqnl.js +133 -0
  162. package/dist/_chunks/use-priority-overflow-Cdmb5EiR.js +108 -0
  163. package/dist/_chunks/{variables-menu-vXUaSBj4.js → variables-menu-aJLKJ_cu.js} +127 -136
  164. package/dist/_chunks/{warning-stack-C0glSB7p.js → warning-stack-CEgYkI1z.js} +3 -3
  165. package/dist/_chunks/{widget-picker-B1sj6uyf.js → widget-picker-CilQvcNL.js} +2 -2
  166. package/dist/_chunks/{workflow-map-DhR_h5yw.js → workflow-map-qGkQTNvS.js} +30 -29
  167. package/dist/_chunks/{workflow-status-CuJAOuKL.js → workflow-status-ClHfz4Kr.js} +209 -167
  168. package/dist/agent-catalog.json +371 -26
  169. package/dist/agent-i18n/en.json +41 -9
  170. package/dist/components/_shared/appointment-format.d.ts +52 -0
  171. package/dist/{patterns/calendar/calendar-editor-fields.d.ts → components/_shared/compact-editor-fields.d.ts} +6 -5
  172. package/dist/components/_shared/handled-rejection.d.ts +2 -0
  173. package/dist/components/_shared/menu-row.d.ts +17 -0
  174. package/dist/components/_shared/patient-identity.d.ts +7 -0
  175. package/dist/components/_shared/patient-picker.d.ts +24 -0
  176. package/dist/components/_shared/privacy-mask.d.ts +29 -0
  177. package/dist/components/address-autocomplete/index.js +1 -1
  178. package/dist/components/address-fields/index.js +1 -1
  179. package/dist/components/agenda-card/index.js +1 -1
  180. package/dist/components/agenda-tray/index.js +1 -1
  181. package/dist/components/ai-credits-notice/index.js +1 -1
  182. package/dist/components/ai-permission-notice/index.js +1 -1
  183. package/dist/components/ai-prompt-input/index.js +1 -1
  184. package/dist/components/anamnesis-card/index.js +1 -1
  185. package/dist/components/anamnesis-summary-card/index.js +1 -1
  186. package/dist/components/appointment-card/index.js +2 -2
  187. package/dist/components/appointment-details-panel/appointment-details-panel.agent.d.ts +4 -0
  188. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +134 -0
  189. package/dist/components/appointment-details-panel/appointment-details-panel.focus.d.ts +7 -0
  190. package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +12 -0
  191. package/dist/components/appointment-details-panel/appointment-details-panel.identity.d.ts +41 -0
  192. package/dist/{patterns/calendar/calendar-info-hover.d.ts → components/appointment-details-panel/appointment-details-panel.info-hover.d.ts} +1 -1
  193. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +51 -0
  194. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +326 -0
  195. package/dist/components/appointment-details-panel/index.d.ts +8 -0
  196. package/dist/components/appointment-details-panel/index.js +8 -0
  197. package/dist/components/appointment-details-panel/use-appointment-details-read.d.ts +32 -0
  198. package/dist/components/appointment-peek/index.js +1 -1
  199. package/dist/components/appointment-timeline/index.js +1 -1
  200. package/dist/components/audio-recorder/index.js +1 -1
  201. package/dist/components/autocomplete/index.js +1 -1
  202. package/dist/components/badge/index.js +1 -1
  203. package/dist/components/bishop-score/index.js +1 -1
  204. package/dist/components/bmi-calculator/index.js +1 -1
  205. package/dist/components/booking/index.js +1 -1
  206. package/dist/components/breadcrumb/index.js +1 -1
  207. package/dist/components/button/button.d.ts +2 -1
  208. package/dist/components/button/index.js +2 -2
  209. package/dist/components/button-group/button-group.d.ts +19 -2
  210. package/dist/components/button-group/index.js +1 -1
  211. package/dist/components/calendar/calendar.d.ts +5 -1
  212. package/dist/components/calendar/index.js +1 -1
  213. package/dist/components/calendar-event-card/index.js +1 -1
  214. package/dist/components/care-plan-card/index.js +1 -1
  215. package/dist/components/care-plan-entry-card/index.js +1 -1
  216. package/dist/components/care-plan-header/index.js +1 -1
  217. package/dist/components/carousel/index.js +1 -1
  218. package/dist/components/chart/index.js +1 -1
  219. package/dist/components/chat-input/index.js +1 -1
  220. package/dist/components/chat-message/index.js +1 -1
  221. package/dist/components/city-input/index.js +1 -1
  222. package/dist/components/clinical-note-card/clinical-note-card.d.ts +13 -5
  223. package/dist/components/clinical-note-card/index.js +1 -1
  224. package/dist/components/combobox/combobox.d.ts +9 -4
  225. package/dist/components/combobox/index.js +1 -1
  226. package/dist/components/command-palette/index.js +1 -1
  227. package/dist/components/connection-status/index.js +1 -1
  228. package/dist/components/contact-profile-card/index.js +1 -1
  229. package/dist/components/control-room-rail/control-room-rail.d.ts +21 -3
  230. package/dist/components/control-room-rail/index.d.ts +1 -1
  231. package/dist/components/control-room-rail/index.js +1 -1
  232. package/dist/components/copy-field/index.js +1 -1
  233. package/dist/components/country-select/index.js +1 -1
  234. package/dist/components/cycle-calculator/index.js +1 -1
  235. package/dist/components/dashboard-grid/index.js +1 -1
  236. package/dist/components/data-table/index.js +4 -4
  237. package/dist/components/data-table-tabs/index.js +1 -1
  238. package/dist/components/dependent-selector/index.js +1 -1
  239. package/dist/components/description-list/index.js +1 -1
  240. package/dist/components/document-preview/index.js +1 -1
  241. package/dist/components/document-scanner/index.js +1 -1
  242. package/dist/components/dropdown-menu/index.js +1 -1
  243. package/dist/components/due-date-calculator/index.js +2 -2
  244. package/dist/components/editable-description/index.js +1 -1
  245. package/dist/components/editor-overlay/index.js +1 -1
  246. package/dist/components/empty-state/index.js +1 -1
  247. package/dist/components/entity-summary/index.js +1 -1
  248. package/dist/components/error-boundary/index.js +1 -1
  249. package/dist/components/face-scheme/index.js +1 -1
  250. package/dist/components/fetal-weight/index.js +1 -1
  251. package/dist/components/field-array/index.js +1 -1
  252. package/dist/components/file-manager/index.js +1 -1
  253. package/dist/components/file-upload/index.js +1 -1
  254. package/dist/components/finished-terminal/index.js +1 -1
  255. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +7 -0
  256. package/dist/components/fiscal-code-input/index.d.ts +1 -1
  257. package/dist/components/fiscal-code-input/index.js +8 -7
  258. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +19 -4
  259. package/dist/components/freemium-paywall/index.js +1 -1
  260. package/dist/components/gestational-age-calculator/index.js +1 -1
  261. package/dist/components/hcg-doubling/index.js +1 -1
  262. package/dist/components/header/index.js +1 -1
  263. package/dist/components/header-settings/index.js +1 -1
  264. package/dist/components/hover-card/index.js +1 -1
  265. package/dist/components/icon-button/index.js +1 -1
  266. package/dist/components/icon-button-group/index.js +1 -1
  267. package/dist/components/icon-picker/index.js +1 -1
  268. package/dist/components/image-cropper/index.js +1 -1
  269. package/dist/components/index.d.ts +2 -0
  270. package/dist/components/info-tip/index.js +1 -1
  271. package/dist/components/key-value-pair/index.js +1 -1
  272. package/dist/components/locale-picker/index.js +1 -1
  273. package/dist/components/map-view/index.js +1 -1
  274. package/dist/components/message-card/index.js +1 -1
  275. package/dist/components/message-tray/index.js +1 -1
  276. package/dist/components/multi-select/index.js +1 -1
  277. package/dist/components/muscle-scheme/index.js +1 -1
  278. package/dist/components/note-timeline/index.js +1 -1
  279. package/dist/components/notes-panel/index.d.ts +1 -1
  280. package/dist/components/notes-panel/index.js +1 -1
  281. package/dist/components/notes-panel/notes-panel.d.ts +102 -26
  282. package/dist/components/notification-card/index.js +1 -1
  283. package/dist/components/notification-tray/index.js +1 -1
  284. package/dist/components/operator-hero/index.js +1 -1
  285. package/dist/components/optical-prescription/index.js +1 -1
  286. package/dist/components/pagination/index.js +1 -1
  287. package/dist/components/panel-subview/index.js +1 -1
  288. package/dist/components/patient-details/index.js +1 -1
  289. package/dist/components/patient-search/index.js +1 -1
  290. package/dist/components/patient-summary-card/index.js +1 -1
  291. package/dist/components/patient-table/index.js +1 -1
  292. package/dist/components/payment-card/index.js +1 -1
  293. package/dist/components/periodontal-chart/index.js +1 -1
  294. package/dist/components/periodontal-chart-card/index.js +1 -1
  295. package/dist/components/periodontal-diagnosis/index.js +1 -1
  296. package/dist/components/periodontal-risk-chart/index.js +1 -1
  297. package/dist/components/phone-input/index.js +1 -1
  298. package/dist/components/popover/index.js +1 -1
  299. package/dist/components/practice-profile-hero/index.js +1 -1
  300. package/dist/components/practice-results/index.js +1 -1
  301. package/dist/components/pregnancy-dating/index.js +1 -1
  302. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  303. package/dist/components/privacy-lock/index.js +1 -1
  304. package/dist/components/product-hub-tray/index.js +1 -1
  305. package/dist/components/province-select/index.js +1 -1
  306. package/dist/components/public-header/index.js +1 -1
  307. package/dist/components/radiograph-panel/index.js +1 -1
  308. package/dist/components/reviews-panel/index.js +1 -1
  309. package/dist/components/rich-text-editor/index.js +2 -2
  310. package/dist/components/search-bar/index.js +1 -1
  311. package/dist/components/select/index.js +1 -1
  312. package/dist/components/session-countdown/index.js +1 -1
  313. package/dist/components/sheet/index.js +1 -1
  314. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  315. package/dist/components/signature-field/signature-field.d.ts +1 -1
  316. package/dist/components/signature-status-chip/index.js +1 -1
  317. package/dist/components/skeleton-scheme/index.js +17 -17
  318. package/dist/components/slot-grid/index.js +1 -1
  319. package/dist/components/streaming-text/index.js +1 -1
  320. package/dist/components/tab-bar/index.js +1 -1
  321. package/dist/components/tabs/index.js +1 -1
  322. package/dist/components/tag/index.js +1 -1
  323. package/dist/components/task-card/index.js +1 -1
  324. package/dist/components/task-card/task-card.d.ts +6 -0
  325. package/dist/components/task-editor/index.d.ts +4 -0
  326. package/dist/components/task-editor/index.js +6 -0
  327. package/dist/components/task-editor/task-editor.agent.d.ts +4 -0
  328. package/dist/components/task-editor/task-editor.d.ts +240 -0
  329. package/dist/components/task-editor/use-task-editor-form.d.ts +101 -0
  330. package/dist/components/task-tray/index.js +1 -1
  331. package/dist/components/tasks-panel/index.d.ts +1 -1
  332. package/dist/components/tasks-panel/index.js +1 -1
  333. package/dist/components/tasks-panel/tasks-panel.d.ts +84 -12
  334. package/dist/components/theme-toggle/index.js +1 -1
  335. package/dist/components/toast/index.js +1 -1
  336. package/dist/components/token-insert-menu/index.js +1 -1
  337. package/dist/components/tool-rail/index.js +1 -1
  338. package/dist/components/tooth-scheme/index.js +1 -1
  339. package/dist/components/treatment-receipt/index.js +1 -1
  340. package/dist/components/unit-converter/index.js +1 -1
  341. package/dist/components/variables-menu/index.js +1 -1
  342. package/dist/components/warning-stack/index.js +1 -1
  343. package/dist/components/widget-picker/index.js +1 -1
  344. package/dist/components/workflow/index.js +1 -1
  345. package/dist/components/workflow-status/appointment-workflow-status.d.ts +55 -0
  346. package/dist/components/workflow-status/index.d.ts +2 -0
  347. package/dist/components/workflow-status/index.js +7 -2
  348. package/dist/components/workflow-status/workflow-status.d.ts +35 -0
  349. package/dist/hooks/index.js +2 -2
  350. package/dist/hooks/use-exit-transition.d.ts +5 -0
  351. package/dist/hooks/use-priority-overflow.d.ts +11 -2
  352. package/dist/host-compat.css +7 -1
  353. package/dist/i18n/locales/ar.d.ts +29 -10
  354. package/dist/i18n/locales/ar.js +33 -14
  355. package/dist/i18n/locales/de.d.ts +29 -10
  356. package/dist/i18n/locales/de.js +33 -14
  357. package/dist/i18n/locales/el.d.ts +29 -10
  358. package/dist/i18n/locales/el.js +33 -14
  359. package/dist/i18n/locales/en.d.ts +29 -10
  360. package/dist/i18n/locales/en.js +33 -14
  361. package/dist/i18n/locales/es.d.ts +29 -10
  362. package/dist/i18n/locales/es.js +33 -14
  363. package/dist/i18n/locales/fr.d.ts +29 -10
  364. package/dist/i18n/locales/fr.js +33 -14
  365. package/dist/i18n/locales/hi.d.ts +29 -10
  366. package/dist/i18n/locales/hi.js +33 -14
  367. package/dist/i18n/locales/it.d.ts +29 -10
  368. package/dist/i18n/locales/it.js +33 -14
  369. package/dist/i18n/locales/ja.d.ts +29 -10
  370. package/dist/i18n/locales/ja.js +33 -14
  371. package/dist/i18n/locales/nl.d.ts +29 -10
  372. package/dist/i18n/locales/nl.js +33 -14
  373. package/dist/i18n/locales/pl.d.ts +29 -10
  374. package/dist/i18n/locales/pl.js +33 -14
  375. package/dist/i18n/locales/pt.d.ts +29 -10
  376. package/dist/i18n/locales/pt.js +33 -14
  377. package/dist/i18n/locales/ro.d.ts +29 -10
  378. package/dist/i18n/locales/ro.js +33 -14
  379. package/dist/i18n/locales/ru.d.ts +29 -10
  380. package/dist/i18n/locales/ru.js +33 -14
  381. package/dist/i18n/locales/sq.d.ts +29 -10
  382. package/dist/i18n/locales/sq.js +33 -14
  383. package/dist/i18n/locales/sv.d.ts +29 -10
  384. package/dist/i18n/locales/sv.js +33 -14
  385. package/dist/i18n/locales/tr.d.ts +29 -10
  386. package/dist/i18n/locales/tr.js +33 -14
  387. package/dist/i18n/locales/zh.d.ts +29 -10
  388. package/dist/i18n/locales/zh.js +33 -14
  389. package/dist/i18n/registerUiBundle.d.ts +5 -9
  390. package/dist/index.js +742 -728
  391. package/dist/locales/ar.json +33 -14
  392. package/dist/locales/de.json +33 -14
  393. package/dist/locales/el.json +33 -14
  394. package/dist/locales/en.json +33 -14
  395. package/dist/locales/es.json +33 -14
  396. package/dist/locales/fr.json +33 -14
  397. package/dist/locales/hi.json +33 -14
  398. package/dist/locales/it.json +33 -14
  399. package/dist/locales/ja.json +33 -14
  400. package/dist/locales/nl.json +33 -14
  401. package/dist/locales/pl.json +33 -14
  402. package/dist/locales/pt.json +33 -14
  403. package/dist/locales/ro.json +33 -14
  404. package/dist/locales/ru.json +33 -14
  405. package/dist/locales/sq.json +33 -14
  406. package/dist/locales/sv.json +33 -14
  407. package/dist/locales/tr.json +33 -14
  408. package/dist/locales/zh.json +33 -14
  409. package/dist/patterns/alia-assistant/index.js +1 -1
  410. package/dist/patterns/anamnesis/index.js +1 -1
  411. package/dist/patterns/calendar/calendar-appointment-details.d.ts +25 -95
  412. package/dist/patterns/calendar/calendar-patient-picker.d.ts +4 -3
  413. package/dist/patterns/calendar/calendar-privacy.d.ts +1 -22
  414. package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -13
  415. package/dist/patterns/calendar/calendar-task-editor.d.ts +9 -13
  416. package/dist/patterns/calendar/calendar-workspace.d.ts +160 -1
  417. package/dist/patterns/calendar/calendar-workspace.model.d.ts +17 -12
  418. package/dist/patterns/calendar/calendar.journey.d.ts +40 -4
  419. package/dist/patterns/calendar/calendar.model.d.ts +10 -17
  420. package/dist/patterns/calendar/calendar.sheets.d.ts +18 -14
  421. package/dist/patterns/calendar/calendar.surface.d.ts +6 -1
  422. package/dist/patterns/calendar/calendar.types.d.ts +24 -100
  423. package/dist/patterns/calendar/index.d.ts +4 -3
  424. package/dist/patterns/calendar/index.js +1 -1
  425. package/dist/patterns/help-me-write-templates/index.js +1 -1
  426. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  427. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  428. package/dist/patterns/signature-request/index.js +1 -1
  429. package/dist/tokens.css +1 -1
  430. package/package.json +22 -5
  431. package/dist/_chunks/button-group-CA1tmu39.js +0 -325
  432. package/dist/_chunks/calendar-workspace-DDnQmiIL.js +0 -12427
  433. package/dist/_chunks/combobox-DnSdYssy.js +0 -522
  434. package/dist/_chunks/control-room-rail-Cv7GpMqX.js +0 -354
  435. package/dist/_chunks/fiscal-code-input-ODQRd_Sw.js +0 -553
  436. package/dist/_chunks/icon-button-group-DZKC6KGf.js +0 -428
  437. package/dist/_chunks/notes-panel-CHbDDMx8.js +0 -683
  438. package/dist/_chunks/panel-subview-CYnuX-KR.js +0 -171
  439. package/dist/_chunks/tasks-panel-DncuBPIZ.js +0 -844
  440. package/dist/_chunks/use-list-reflow-Cw43nxw5.js +0 -100
  441. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +0 -101
  442. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +0 -37
@@ -1,683 +0,0 @@
1
- import { jsxs as d, jsx as n, Fragment as pt } from "react/jsx-runtime";
2
- import { forwardRef as ft, useRef as p, useState as x, useId as mt, useCallback as T, useEffect as me, useImperativeHandle as gt, useMemo as ht } from "react";
3
- import { c as Ce } from "./index-D2ZczOXr.js";
4
- import { useTranslation as vt } from "react-i18next";
5
- import { u as yt } from "./registry-DvAUVLHh.js";
6
- import { C as bt } from "./clinical-note-card-DdsGYMmI.js";
7
- import { R as Ct } from "./rich-text-editor-BwDV2XkZ.js";
8
- import { T as Pt } from "./text-area-Bt3p7Pt0.js";
9
- import { A as I } from "./alert-CiQ5Pa3Q.js";
10
- import { B as z } from "./button-CaUe1uyd.js";
11
- import { I as ge } from "./icon-button-CehAeZoP.js";
12
- import { S as wt } from "./switch-OILsBLWo.js";
13
- import { T as xt } from "./tooltip-Cp-PLePW.js";
14
- import { C as he } from "./card-DPmk26CL.js";
15
- import { C as Tt, S as M } from "./skeleton-B1KTdJ4N.js";
16
- import { D as v } from "./dialog-BJiLqhx6.js";
17
- import { P as Et } from "./panel-header-D_mTdhUp.js";
18
- import { a as Nt, u as Vt, R as Rt } from "./use-list-reflow-Cw43nxw5.js";
19
- import { u as kt } from "./use-theme-CAuo6EYT.js";
20
- import { N as St } from "./notebook-pen-CO7HoM-W.js";
21
- import { P as _t } from "./pencil-B1sKKyuT.js";
22
- import { T as It } from "./trash-2-uumy3fy1.js";
23
- function ve(i, c) {
24
- return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string" && i.message.trim() ? i.message : c;
25
- }
26
- const zt = {
27
- id: "notes-panel",
28
- // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
29
- // with no dedicated capability in the closed vocabulary.
30
- capabilities: ["submit"],
31
- state: {
32
- notes: {
33
- type: "Array<{ id?: string; pinned: boolean; flagged: boolean; clinical: boolean }>",
34
- descriptionKey: "ui.agent.notesPanel.state.notes",
35
- description: "Timeline note ids + pinned / flagged / clinical flags. Never the note body or author (both PHI).",
36
- read: (i) => i.getNotes()
37
- },
38
- canAddClinical: {
39
- type: "boolean",
40
- descriptionKey: "ui.agent.notesPanel.state.canAddClinical",
41
- description: "Whether the current user may write clinical notes (the practice_add_clinical_note permission gate).",
42
- read: (i) => i.canAddClinical()
43
- },
44
- currentNoteId: {
45
- type: "string | null",
46
- descriptionKey: "ui.agent.notesPanel.state.currentNoteId",
47
- description: "Id of the note the host has addressed — the one marked, scrolled to and focused. Null when none is. An id only, never note content.",
48
- read: (i) => i.getCurrentNoteId()
49
- }
50
- },
51
- actions: {
52
- add_note: {
53
- // Writes a clinical/admin note body — patient-identifiable content. PHI.
54
- safety: "phi",
55
- argsType: "{ content: string; clinical: boolean }",
56
- argsSchema: {
57
- type: "object",
58
- properties: {
59
- content: {
60
- type: "string",
61
- description: "Note body. Rich HTML for the rich composer, else plain text."
62
- },
63
- clinical: {
64
- type: "boolean",
65
- description: "Whether the note is clinical. Requires the clinical-note permission; the submission is dropped when the gate is closed."
66
- }
67
- },
68
- required: ["content", "clinical"]
69
- },
70
- openWorld: !0,
71
- descriptionKey: "ui.agent.notesPanel.actions.addNote",
72
- description: "Compose and commit a new note. A clinical note requires the clinical-note permission (read canAddClinical first).",
73
- examples: [
74
- {
75
- args: { content: "Patient reported improvement.", clinical: !0 },
76
- note: "Add a clinical note."
77
- }
78
- ],
79
- invoke: (i, c) => i.addNote(c)
80
- },
81
- toggle_pin: {
82
- // Re-orders the timeline (pinned notes lead) — reversible view write.
83
- safety: "write",
84
- argsType: "{ id: string }",
85
- argsSchema: {
86
- type: "object",
87
- properties: { id: { type: "string" } },
88
- required: ["id"]
89
- },
90
- idempotent: !1,
91
- descriptionKey: "ui.agent.notesPanel.actions.togglePin",
92
- description: "Toggle the pinned state of the note with the given id. Refused for a deleted note or one whose actions.pin is false.",
93
- invoke: (i, c) => {
94
- i.togglePin(c.id);
95
- }
96
- },
97
- toggle_flag: {
98
- safety: "write",
99
- argsType: "{ id: string }",
100
- argsSchema: {
101
- type: "object",
102
- properties: { id: { type: "string" } },
103
- required: ["id"]
104
- },
105
- idempotent: !1,
106
- descriptionKey: "ui.agent.notesPanel.actions.toggleFlag",
107
- description: "Toggle the flagged state of the note with the given id.",
108
- invoke: (i, c) => {
109
- i.toggleFlag(c.id);
110
- }
111
- }
112
- },
113
- domHooks: {
114
- root: {
115
- attr: "data-component",
116
- value: "notes-panel",
117
- description: "Marks the NotesPanel region."
118
- },
119
- instanceId: {
120
- attr: "data-component-id",
121
- sourceProp: "id",
122
- description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
123
- }
124
- }
125
- }, jt = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", At = Ce(
126
- "ds:relative ds:flex ds:flex-col ds:rounded-[var(--radius-lg)]",
127
- {
128
- variants: {
129
- current: {
130
- true: "ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
131
- false: ""
132
- },
133
- washed: { true: jt, false: "" }
134
- },
135
- defaultVariants: { current: !1, washed: !1 }
136
- }
137
- ), ye = Ce(
138
- "ds:pointer-events-none ds:absolute ds:inset-0 ds:rounded-[var(--radius-lg)] ds:bg-[color:var(--accent)]",
139
- {
140
- variants: {
141
- state: {
142
- addressed: [
143
- "ds:opacity-0",
144
- "ds:animate-[note-addressed_calc(var(--animation-duration)*9)_var(--ease-in-out)]",
145
- "ds:motion-reduce:animate-none ds:motion-reduce:opacity-[var(--opacity-12)]",
146
- "ds:[.theme-accessible_&]:animate-none ds:[.theme-accessible_&]:opacity-[var(--opacity-12)]"
147
- ].join(" "),
148
- editing: "ds:opacity-[var(--opacity-12)]"
149
- }
150
- }
151
- }
152
- ), Lt = "ds:opacity-0", Ht = [
153
- "ds:transition-opacity ds:duration-[var(--animation-duration)]",
154
- "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
155
- ].join(" "), Ot = [3, 2, 3];
156
- function be(i) {
157
- return i ? /<img\b/i.test(i) ? !0 : i.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
158
- }
159
- const on = ft(
160
- function({
161
- id: c,
162
- notes: j,
163
- onAddNote: m,
164
- status: C = "ready",
165
- onRetry: X,
166
- currentNoteId: y,
167
- currentNoteKey: Z,
168
- composer: g = "rich",
169
- editorToolbar: Pe = "standard",
170
- redactor: we,
171
- imageUploadUrl: xe,
172
- showClinicalToggle: Te = !0,
173
- canAddClinicalNote: A = !0,
174
- clinicalGatedReason: Ee,
175
- defaultClinical: E = !1,
176
- onRequestAiDraft: Ne,
177
- aiDraftFormat: Ve,
178
- aiPrivacyNotice: Re,
179
- onDictate: ke,
180
- onProofread: Se,
181
- onAutoFormat: _e,
182
- aiConsent: Ie,
183
- variables: ze,
184
- validateVariable: je,
185
- onVariableValidityChange: Ae,
186
- renderHelpMeWrite: Le,
187
- aiTemplates: He,
188
- onAiApplied: Oe,
189
- onUploadImage: Be,
190
- onAiCreditsExhausted: De,
191
- showExtensions: We,
192
- aiCreditsNotice: qe,
193
- extensions: Fe,
194
- extensionContext: Ke,
195
- onExtensionRun: Me,
196
- composerBefore: $e,
197
- composerAfter: Ge,
198
- onTogglePin: L,
199
- onToggleFlag: H,
200
- noteActions: ee,
201
- onEditNote: N,
202
- editClinical: Ye = !1,
203
- onDeleteNote: h,
204
- confirmDelete: $ = !0,
205
- title: Je,
206
- composerPlaceholder: Qe,
207
- addNoteLabel: Ue,
208
- emptyState: Xe,
209
- className: Ze,
210
- "aria-label": G,
211
- ...et
212
- }, tt) {
213
- const { t: a, i18n: te } = vt(), b = p(null), [P, V] = x(""), [O, B] = x(E), [u, ne] = x(!1), [ae, R] = x(null), [r, Y] = x(null), ie = p(!1);
214
- C === "loading" && (ie.current = !0);
215
- const nt = ie.current ? Tt : "", at = Je ?? a("notesPanel.title", { defaultValue: "Notes" }), se = mt(), le = Qe ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), re = r !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), it = g === "rich" ? be(P) : P.trim().length > 0, st = T(() => {
216
- var w;
217
- if (!(r !== null ? N : m) || u) return;
218
- const t = g === "rich", o = t ? ((w = b.current) == null ? void 0 : w.getHTML()) ?? P : P.trim();
219
- if (t ? !be(o) : !o) return;
220
- const l = () => {
221
- var f;
222
- t && ((f = b.current) == null || f.clear()), V(""), B(E), Y(null);
223
- };
224
- R(null);
225
- let s;
226
- try {
227
- s = r !== null && N ? N(r, { content: o, clinical: O }) : m == null ? void 0 : m({ content: o, clinical: O });
228
- } catch (f) {
229
- R(ve(f, a("notesPanel.addFailed")));
230
- return;
231
- }
232
- if (!s || typeof s.then != "function") return l();
233
- ne(!0), Promise.resolve(s).then(
234
- l,
235
- (f) => R(ve(f, a("notesPanel.addFailed")))
236
- ).finally(() => ne(!1));
237
- }, [
238
- g,
239
- P,
240
- O,
241
- E,
242
- r,
243
- m,
244
- N,
245
- u,
246
- a
247
- ]), oe = Te && (r === null || Ye), de = T(
248
- (e) => {
249
- try {
250
- return new Intl.DateTimeFormat(te.language, {
251
- day: "numeric",
252
- month: "long",
253
- year: "numeric",
254
- hour: "2-digit",
255
- minute: "2-digit"
256
- }).format(new Date(e.dateIso));
257
- } catch {
258
- return e.dateIso;
259
- }
260
- },
261
- [te.language]
262
- ), lt = T(
263
- (e) => {
264
- var o, l, s;
265
- if (!e.id || u) return;
266
- const t = e.content ?? "";
267
- R(null), Y(e.id), B(e.clinical ?? !1), V(t), g === "rich" && ((o = b.current) == null || o.clear(), (l = b.current) == null || l.insertAtCursor(t, { asHtml: !0 })), (s = b.current) == null || s.focus();
268
- },
269
- [g, u]
270
- ), D = T(() => {
271
- var e;
272
- g === "rich" && ((e = b.current) == null || e.clear()), V(""), B(E), R(null), Y(null);
273
- }, [g, E]), ce = r === null || j.some((e) => e.id === r && !e.deleted);
274
- me(() => {
275
- ce || D();
276
- }, [ce, D]);
277
- const k = [...j].sort(
278
- (e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
279
- ), { resolvedTheme: rt } = kt(), ue = rt.endsWith("-accessible") || void 0, { containerRef: ot } = Nt({
280
- key: k.map((e) => e.id).join(),
281
- reduceMotion: ue
282
- }), S = Vt({ reduceMotion: ue }), [W, q] = x(null), dt = T(
283
- (e) => {
284
- h && ($ ? q(e) : S.leave(e, () => h(e)));
285
- },
286
- [$, S, h]
287
- ), ct = T(() => {
288
- if (!W || !h) return;
289
- const e = W;
290
- q(null), S.leave(e, () => h(e));
291
- }, [W, h, S]), J = p(null);
292
- me(() => {
293
- var e, t;
294
- y && ((e = J.current) == null || e.scrollIntoView({ block: "center" }), (t = J.current) == null || t.focus());
295
- }, [y, Z]);
296
- const Q = p(j);
297
- Q.current = j;
298
- const _ = p(m);
299
- _.current = m;
300
- const F = p(L);
301
- F.current = L;
302
- const K = p(H);
303
- K.current = H;
304
- const U = p(A);
305
- U.current = A;
306
- const pe = p(y);
307
- pe.current = y;
308
- const fe = p(null);
309
- gt(tt, () => fe.current, []);
310
- const ut = ht(
311
- () => ({
312
- // Ids + flags only — never the note body or author (both PHI).
313
- getNotes: () => Q.current.map((e) => ({
314
- id: e.id,
315
- pinned: !!e.pinned,
316
- flagged: !!e.flagged,
317
- clinical: !!e.clinical
318
- })),
319
- canAddNote: () => !!_.current,
320
- canAddClinical: () => U.current,
321
- getCurrentNoteId: () => pe.current ?? null,
322
- addNote: (e) => {
323
- var t;
324
- if (!(e.clinical && !U.current))
325
- return (t = _.current) == null ? void 0 : t.call(_, e);
326
- },
327
- togglePin: (e) => {
328
- var o, l;
329
- const t = Q.current.find((s) => s.id === e);
330
- t && (t.deleted || ((o = t.actions) == null ? void 0 : o.pin) === !1) || (l = F.current) == null || l.call(F, e);
331
- },
332
- toggleFlag: (e) => {
333
- var t;
334
- return (t = K.current) == null ? void 0 : t.call(K, e);
335
- }
336
- }),
337
- []
338
- );
339
- return yt(zt, ut, c), /* @__PURE__ */ d(
340
- "section",
341
- {
342
- ref: fe,
343
- "data-component": "notes-panel",
344
- "data-component-id": c,
345
- "aria-labelledby": G ? void 0 : se,
346
- "aria-label": G,
347
- className: ["ds:flex ds:flex-col", Ze].filter(Boolean).join(" "),
348
- ...et,
349
- children: [
350
- /* @__PURE__ */ n(
351
- Et,
352
- {
353
- title: at,
354
- icon: /* @__PURE__ */ n(St, { "aria-hidden": "true" }),
355
- headingId: G ? void 0 : se,
356
- sticky: !0,
357
- divider: !0
358
- }
359
- ),
360
- /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
361
- m || r !== null ? /* @__PURE__ */ d(
362
- "div",
363
- {
364
- "data-notes-panel-composer": r !== null ? "edit" : "add",
365
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
366
- children: [
367
- $e,
368
- g === "rich" ? /* @__PURE__ */ n(
369
- Ct,
370
- {
371
- ref: b,
372
- ariaLabel: re,
373
- placeholder: le,
374
- toolbar: Pe,
375
- minHeight: "fill",
376
- redactor: we,
377
- imageUploadUrl: xe,
378
- readOnly: u,
379
- onChange: ({ html: e }) => V(e),
380
- onRequestAiDraft: Ne,
381
- aiDraftFormat: Ve,
382
- aiPrivacyNotice: Re,
383
- onDictate: ke,
384
- onProofread: Se,
385
- onAutoFormat: _e,
386
- aiConsent: Ie,
387
- variables: ze,
388
- validateVariable: je,
389
- onVariableValidityChange: Ae,
390
- renderHelpMeWrite: Le,
391
- aiTemplates: He,
392
- onAiApplied: Oe,
393
- onUploadImage: Be,
394
- onAiCreditsExhausted: De,
395
- showExtensions: We,
396
- aiCreditsNotice: qe,
397
- extensions: Fe,
398
- extensionContext: Ke,
399
- onExtensionRun: Me,
400
- aiConsentHeadingLevel: 3
401
- }
402
- ) : /* @__PURE__ */ n(
403
- Pt,
404
- {
405
- value: P,
406
- readOnly: u,
407
- onChange: (e) => V(e.target.value),
408
- placeholder: le,
409
- autoResize: !0,
410
- minRows: 2,
411
- maxRows: 6,
412
- "aria-label": re
413
- }
414
- ),
415
- /* @__PURE__ */ d(
416
- "div",
417
- {
418
- className: [
419
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
420
- oe ? "ds:justify-between" : "ds:justify-end"
421
- ].join(" "),
422
- children: [
423
- oe ? (() => {
424
- const e = u || !A, t = A ? void 0 : Ee ?? a("notesPanel.clinicalGated", {
425
- defaultValue: "You do not have permission to write clinical notes."
426
- }), o = /* @__PURE__ */ n(
427
- wt,
428
- {
429
- size: "sm",
430
- label: a("notesPanel.clinicalToggle", {
431
- defaultValue: "Clinical note"
432
- }),
433
- checked: O,
434
- onCheckedChange: B,
435
- disabled: e
436
- }
437
- );
438
- return e && t ? /* @__PURE__ */ n(xt, { label: t, children: /* @__PURE__ */ n("span", { tabIndex: 0, children: o }) }) : o;
439
- })() : null,
440
- /* @__PURE__ */ d("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
441
- r !== null ? /* @__PURE__ */ n(
442
- z,
443
- {
444
- type: "button",
445
- size: "sm",
446
- intent: "ghost",
447
- onClick: D,
448
- disabled: u,
449
- children: a("notesPanel.cancelEdit", { defaultValue: "Cancel" })
450
- }
451
- ) : null,
452
- /* @__PURE__ */ n(
453
- z,
454
- {
455
- type: "button",
456
- size: "sm",
457
- onClick: st,
458
- disabled: !it,
459
- loading: u,
460
- children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : Ue ?? a("notesPanel.add", { defaultValue: "Add note" })
461
- }
462
- )
463
- ] })
464
- ]
465
- }
466
- ),
467
- ae ? /* @__PURE__ */ n(I, { variant: "error", children: /* @__PURE__ */ n(I.Description, { children: ae }) }) : null,
468
- Ge
469
- ]
470
- }
471
- ) : null,
472
- C === "loading" && k.length === 0 ? (
473
- /* Note-shaped placeholders, not a spinner: the reader sees where
474
- the notes will land and how many to expect. The status text is
475
- for assistive tech only; sighted readers get the motion. */
476
- /* @__PURE__ */ d(
477
- "div",
478
- {
479
- "data-notes-panel-loading": "",
480
- "aria-busy": "true",
481
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
482
- children: [
483
- /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }),
484
- Ot.map((e, t) => /* @__PURE__ */ n(he, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ n(he.Body, { children: /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
485
- /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
486
- /* @__PURE__ */ n(
487
- M,
488
- {
489
- variant: "circular",
490
- size: "sm",
491
- stagger: t * 2
492
- }
493
- ),
494
- /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
495
- /* @__PURE__ */ n(
496
- M,
497
- {
498
- variant: "text",
499
- size: "sm",
500
- stagger: t * 2,
501
- width: "40%"
502
- }
503
- ),
504
- /* @__PURE__ */ n(
505
- M,
506
- {
507
- variant: "text",
508
- size: "sm",
509
- stagger: t * 2,
510
- width: "25%"
511
- }
512
- )
513
- ] })
514
- ] }),
515
- /* @__PURE__ */ n(
516
- M,
517
- {
518
- variant: "text",
519
- size: "sm",
520
- lines: e,
521
- stagger: t * 2 + 1
522
- }
523
- )
524
- ] }) }) }, t))
525
- ]
526
- }
527
- )
528
- ) : C === "error" ? /* @__PURE__ */ d(I, { variant: "error", children: [
529
- /* @__PURE__ */ n(I.Description, { children: a("notesPanel.loadError") }),
530
- X ? /* @__PURE__ */ n(I.Action, { children: /* @__PURE__ */ n(z, { intent: "secondary", size: "sm", onClick: X, children: a("notesPanel.retry") }) }) : null
531
- ] }) : null,
532
- C === "loading" && k.length > 0 ? /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }) : null,
533
- k.length > 0 ? /* @__PURE__ */ n(
534
- "ul",
535
- {
536
- ref: ot,
537
- "aria-busy": C === "loading" || void 0,
538
- className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${nt}`.trim(),
539
- children: k.map(({ actions: e, ...t }, o) => {
540
- const l = y != null && t.id === y, s = t.id, w = s != null && r === s, f = s != null && S.isLeaving(s);
541
- return /* @__PURE__ */ d(
542
- "li",
543
- {
544
- ref: l ? J : void 0,
545
- tabIndex: l ? -1 : void 0,
546
- "aria-current": l ? "true" : void 0,
547
- "data-reflow-id": s,
548
- "data-leaving": f ? "" : void 0,
549
- "data-editing": w ? "" : void 0,
550
- className: [
551
- At({
552
- current: l,
553
- washed: l || w
554
- }),
555
- Ht,
556
- Rt,
557
- f ? Lt : ""
558
- ].filter(Boolean).join(" "),
559
- children: [
560
- l ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
561
- defaultValue: "Current note"
562
- }) }) : null,
563
- w ? /* @__PURE__ */ n(
564
- "span",
565
- {
566
- "aria-hidden": "true",
567
- "data-notes-panel-wash": "editing",
568
- className: ye({ state: "editing" })
569
- }
570
- ) : l ? /* @__PURE__ */ n(
571
- "span",
572
- {
573
- "aria-hidden": "true",
574
- "data-notes-panel-wash": "addressed",
575
- className: ye({ state: "addressed" })
576
- },
577
- `${y}:${Z ?? ""}`
578
- ) : null,
579
- /* @__PURE__ */ n(
580
- bt,
581
- {
582
- surface: "elevated",
583
- truncate: !l,
584
- headerActions: /* @__PURE__ */ d(pt, { children: [
585
- ee ? ee({ ...t, actions: e }) : null,
586
- N && s && !t.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ n(
587
- ge,
588
- {
589
- icon: /* @__PURE__ */ n(_t, {}),
590
- intent: "ghost",
591
- size: "sm",
592
- "aria-label": a("notesPanel.editNamed", {
593
- date: de(t),
594
- defaultValue: "Edit note · {{date}}"
595
- }),
596
- tooltip: a("notesPanel.edit", {
597
- defaultValue: "Edit note"
598
- }),
599
- "aria-pressed": r === s,
600
- disabled: u,
601
- "data-notes-panel-edit": "",
602
- onClick: () => r === s ? D() : lt(t)
603
- }
604
- ) : null,
605
- h && s && !t.deleted ? /* @__PURE__ */ n(
606
- ge,
607
- {
608
- icon: /* @__PURE__ */ n(It, {}),
609
- intent: "ghost",
610
- size: "sm",
611
- "aria-label": a("notesPanel.deleteNamed", {
612
- date: de(t),
613
- defaultValue: "Delete note · {{date}}"
614
- }),
615
- tooltip: a("notesPanel.delete", {
616
- defaultValue: "Delete note"
617
- }),
618
- onClick: () => dt(s)
619
- }
620
- ) : null
621
- ] }),
622
- ...t,
623
- onTogglePin: L && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => L(t.id) : void 0,
624
- onToggleFlag: H && t.id ? () => H(t.id) : void 0
625
- }
626
- )
627
- ]
628
- },
629
- t.id ?? o
630
- );
631
- })
632
- }
633
- ) : C !== "ready" ? null : Xe ?? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) })
634
- ] }),
635
- h && $ ? /* @__PURE__ */ n(
636
- v,
637
- {
638
- open: W !== null,
639
- onOpenChange: (e) => !e && q(null),
640
- children: /* @__PURE__ */ d(v.Content, { variant: "alert", size: "sm", children: [
641
- /* @__PURE__ */ n(v.Header, { children: /* @__PURE__ */ n(v.Title, { children: a("notesPanel.deleteConfirmTitle", {
642
- defaultValue: "Delete this note?"
643
- }) }) }),
644
- /* @__PURE__ */ n(v.Body, { children: /* @__PURE__ */ n(v.Description, { children: a("notesPanel.deleteConfirmBody", {
645
- defaultValue: "The note will be removed from the record."
646
- }) }) }),
647
- /* @__PURE__ */ d(v.Footer, { children: [
648
- /* @__PURE__ */ n(v.Close, { asChild: !0, children: /* @__PURE__ */ n(
649
- z,
650
- {
651
- intent: "secondary",
652
- size: "sm",
653
- onClick: () => q(null),
654
- children: a("notesPanel.deleteConfirmCancel", {
655
- defaultValue: "Cancel"
656
- })
657
- }
658
- ) }),
659
- /* @__PURE__ */ n(
660
- z,
661
- {
662
- intent: "destructive",
663
- size: "sm",
664
- onClick: ct,
665
- children: a("notesPanel.deleteConfirmAction", {
666
- defaultValue: "Delete"
667
- })
668
- }
669
- )
670
- ] })
671
- ] })
672
- }
673
- ) : null
674
- ]
675
- }
676
- );
677
- }
678
- );
679
- export {
680
- on as N,
681
- ve as g
682
- };
683
- //# sourceMappingURL=notes-panel-CHbDDMx8.js.map