@alfadocs/ui-kit 1.138.0 → 1.140.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 (246) hide show
  1. package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
  2. package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-YJGs2uWD.js} +5 -5
  4. package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
  5. package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
  6. package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRStPNDd.js} +4 -4
  7. package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DTqXdBED.js} +3 -3
  8. package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
  9. package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-SxSkOTnO.js → calendar-appointment-editor-dialog-BBrJlmyd.js} +7 -7
  11. package/dist/_chunks/{calendar-editor-discard-host-DjUhoFr2.js → calendar-editor-discard-host-BcMEgVEq.js} +2 -2
  12. package/dist/_chunks/{calendar-waiting-list-panel-331vzAdl.js → calendar-waiting-list-panel-Cdg9YssA.js} +3 -3
  13. package/dist/_chunks/{calendar.sheets-aodjllWd.js → calendar.sheets-DbMOO7YV.js} +113 -112
  14. package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
  15. package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
  16. package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
  17. package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
  18. package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
  19. package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
  20. package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-CRUSZcVT.js} +16 -8
  21. package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
  22. package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-CRbVCDSU.js} +3 -3
  23. package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
  24. package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
  25. package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
  26. package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
  27. package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
  28. package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
  29. package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
  30. package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
  31. package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
  32. package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-BR6vycF7.js} +3 -3
  33. package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-QddOSnIq.js} +7 -7
  34. package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-hAJplRFF.js} +6 -6
  35. package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
  36. package/dist/_chunks/medication-I6QvOq6k.js +21 -0
  37. package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
  38. package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
  39. package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
  40. package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
  41. package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
  42. package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
  43. package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
  44. package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-GzeK_2cf.js} +3 -3
  45. package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
  46. package/dist/_chunks/{patient-account-settings-Cs9y-pVA.js → patient-account-settings-DfEPHmCh.js} +2 -2
  47. package/dist/_chunks/{patient-check-in-resume-4qi_klQV.js → patient-check-in-resume-TWs8CPQr.js} +3 -3
  48. package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-D0PjzALT.js} +2 -2
  49. package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-DlpIModg.js} +7 -7
  50. package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
  51. package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
  52. package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-BP_K7g_q.js} +2 -2
  53. package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
  54. package/dist/_chunks/{portal-details-BGc_FLQk.js → portal-details-VfeOI4PB.js} +2 -2
  55. package/dist/_chunks/{portal-documents-BSI1U5lI.js → portal-documents-hGHlwmbv.js} +2 -2
  56. package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-a6WIg4oy.js} +3 -3
  57. package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
  58. package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
  59. package/dist/_chunks/print-sheet-gaxObGcm.js +328 -0
  60. package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
  61. package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
  62. package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
  63. package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
  64. package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
  65. package/dist/_chunks/save-Dn8uje3f.js +22 -0
  66. package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
  67. package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
  68. package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
  69. package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
  70. package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
  71. package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
  72. package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
  73. package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
  74. package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-B7UHCMSr.js} +2 -2
  75. package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-OBhSDXee.js} +3 -3
  76. package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
  77. package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
  78. package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
  79. package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
  80. package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
  81. package/dist/agent-catalog.json +449 -1
  82. package/dist/agent-i18n/en.json +53 -0
  83. package/dist/appointment-editor-panel/index.js +2 -2
  84. package/dist/browser-support.js +1 -1
  85. package/dist/components/_shared/medication.d.ts +28 -0
  86. package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
  87. package/dist/components/_shared/patient-picker.d.ts +7 -0
  88. package/dist/components/address-fields/index.js +1 -1
  89. package/dist/components/ai-prompt-input/index.js +1 -1
  90. package/dist/components/appointment-details-panel/index.js +1 -1
  91. package/dist/components/audio-recorder/index.js +1 -1
  92. package/dist/components/autocomplete/autocomplete.d.ts +50 -0
  93. package/dist/components/autocomplete/index.d.ts +1 -1
  94. package/dist/components/autocomplete/index.js +1 -1
  95. package/dist/components/bill-line-table/index.js +1 -1
  96. package/dist/components/bill-table/index.js +1 -1
  97. package/dist/components/bishop-score/index.js +1 -1
  98. package/dist/components/bmi-calculator/index.js +1 -1
  99. package/dist/components/booking/index.js +1 -1
  100. package/dist/components/calls-panel/index.js +1 -1
  101. package/dist/components/city-input/index.js +1 -1
  102. package/dist/components/combobox/index.js +1 -1
  103. package/dist/components/communications-panel/index.js +1 -1
  104. package/dist/components/country-select/index.js +1 -1
  105. package/dist/components/cycle-calculator/index.js +1 -1
  106. package/dist/components/data-grid/index.js +2 -2
  107. package/dist/components/data-table/index.js +2 -2
  108. package/dist/components/document-preview/index.js +1 -1
  109. package/dist/components/due-date-calculator/index.js +1 -1
  110. package/dist/components/face-scheme/index.js +1 -1
  111. package/dist/components/fetal-weight/index.js +1 -1
  112. package/dist/components/file-manager/index.js +1 -1
  113. package/dist/components/gestational-age-calculator/index.js +1 -1
  114. package/dist/components/hcg-doubling/index.js +1 -1
  115. package/dist/components/heatmap/index.js +1 -1
  116. package/dist/components/index.d.ts +5 -0
  117. package/dist/components/invoice-upload-list/index.js +1 -1
  118. package/dist/components/medication-line/index.d.ts +6 -0
  119. package/dist/components/medication-line/index.js +7 -0
  120. package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
  121. package/dist/components/medication-line/medication-line.d.ts +46 -0
  122. package/dist/components/medication-search/index.d.ts +6 -0
  123. package/dist/components/medication-search/index.js +10 -0
  124. package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
  125. package/dist/components/medication-search/medication-search.d.ts +49 -0
  126. package/dist/components/multi-select/index.js +1 -1
  127. package/dist/components/muscle-scheme/index.js +1 -1
  128. package/dist/components/notes-panel/index.js +1 -1
  129. package/dist/components/number-input/index.js +1 -1
  130. package/dist/components/optical-prescription/index.js +1 -1
  131. package/dist/components/patient-details/index.js +1 -1
  132. package/dist/components/patient-search/index.js +1 -1
  133. package/dist/components/patient-summary-card/index.js +1 -1
  134. package/dist/components/patient-table/index.js +1 -1
  135. package/dist/components/phone-input/index.js +1 -1
  136. package/dist/components/pregnancy-dating/index.js +1 -1
  137. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  138. package/dist/components/print-sheet/index.d.ts +5 -0
  139. package/dist/components/print-sheet/index.js +6 -0
  140. package/dist/components/print-sheet/print-isolation.d.ts +17 -0
  141. package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
  142. package/dist/components/print-sheet/print-sheet.d.ts +61 -0
  143. package/dist/components/province-select/index.js +1 -1
  144. package/dist/components/rich-text-editor/index.js +2 -2
  145. package/dist/components/search-bar/index.js +1 -1
  146. package/dist/components/select/index.js +1 -1
  147. package/dist/components/skeleton-scheme/index.js +1 -1
  148. package/dist/components/sync-tray/index.d.ts +4 -0
  149. package/dist/components/sync-tray/index.js +7 -0
  150. package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
  151. package/dist/components/sync-tray/sync-tray.d.ts +77 -0
  152. package/dist/components/tabs/index.js +1 -1
  153. package/dist/components/task-editor/index.js +1 -1
  154. package/dist/components/tasks-panel/index.js +1 -1
  155. package/dist/components/unit-converter/index.js +1 -1
  156. package/dist/components/variables-menu/index.js +1 -1
  157. package/dist/components/voice-control-panel/index.js +1 -1
  158. package/dist/core.css +1 -1
  159. package/dist/find-free-slots-panel/index.js +1 -1
  160. package/dist/host-compat.css +18 -1
  161. package/dist/i18n/locales/ar.d.ts +151 -0
  162. package/dist/i18n/locales/ar.js +151 -0
  163. package/dist/i18n/locales/de.d.ts +151 -0
  164. package/dist/i18n/locales/de.js +151 -0
  165. package/dist/i18n/locales/el.d.ts +151 -0
  166. package/dist/i18n/locales/el.js +151 -0
  167. package/dist/i18n/locales/en.d.ts +151 -0
  168. package/dist/i18n/locales/en.js +151 -0
  169. package/dist/i18n/locales/es.d.ts +151 -0
  170. package/dist/i18n/locales/es.js +151 -0
  171. package/dist/i18n/locales/fr.d.ts +151 -0
  172. package/dist/i18n/locales/fr.js +151 -0
  173. package/dist/i18n/locales/hi.d.ts +151 -0
  174. package/dist/i18n/locales/hi.js +151 -0
  175. package/dist/i18n/locales/it.d.ts +151 -0
  176. package/dist/i18n/locales/it.js +151 -0
  177. package/dist/i18n/locales/ja.d.ts +151 -0
  178. package/dist/i18n/locales/ja.js +151 -0
  179. package/dist/i18n/locales/nl.d.ts +151 -0
  180. package/dist/i18n/locales/nl.js +151 -0
  181. package/dist/i18n/locales/pl.d.ts +151 -0
  182. package/dist/i18n/locales/pl.js +151 -0
  183. package/dist/i18n/locales/pt.d.ts +151 -0
  184. package/dist/i18n/locales/pt.js +151 -0
  185. package/dist/i18n/locales/ro.d.ts +151 -0
  186. package/dist/i18n/locales/ro.js +151 -0
  187. package/dist/i18n/locales/ru.d.ts +151 -0
  188. package/dist/i18n/locales/ru.js +151 -0
  189. package/dist/i18n/locales/sq.d.ts +151 -0
  190. package/dist/i18n/locales/sq.js +151 -0
  191. package/dist/i18n/locales/sv.d.ts +151 -0
  192. package/dist/i18n/locales/sv.js +151 -0
  193. package/dist/i18n/locales/tr.d.ts +151 -0
  194. package/dist/i18n/locales/tr.js +151 -0
  195. package/dist/i18n/locales/zh.d.ts +151 -0
  196. package/dist/i18n/locales/zh.js +151 -0
  197. package/dist/index.js +1006 -978
  198. package/dist/locales/ar.json +151 -0
  199. package/dist/locales/de.json +151 -0
  200. package/dist/locales/el.json +151 -0
  201. package/dist/locales/en.json +151 -0
  202. package/dist/locales/es.json +151 -0
  203. package/dist/locales/fr.json +151 -0
  204. package/dist/locales/hi.json +151 -0
  205. package/dist/locales/it.json +151 -0
  206. package/dist/locales/ja.json +151 -0
  207. package/dist/locales/nl.json +151 -0
  208. package/dist/locales/pl.json +151 -0
  209. package/dist/locales/pt.json +151 -0
  210. package/dist/locales/ro.json +151 -0
  211. package/dist/locales/ru.json +151 -0
  212. package/dist/locales/sq.json +151 -0
  213. package/dist/locales/sv.json +151 -0
  214. package/dist/locales/tr.json +151 -0
  215. package/dist/locales/zh.json +151 -0
  216. package/dist/online-bookings-panel/index.js +1 -1
  217. package/dist/patterns/anamnesis/index.js +1 -1
  218. package/dist/patterns/calendar/index.js +3 -3
  219. package/dist/patterns/forgot-password-form/index.js +1 -1
  220. package/dist/patterns/login-form/index.js +1 -1
  221. package/dist/patterns/patient-account-settings/index.js +1 -1
  222. package/dist/patterns/patient-check-in/index.js +1 -1
  223. package/dist/patterns/patient-portal/index.js +2 -2
  224. package/dist/patterns/prescription/index.d.ts +11 -0
  225. package/dist/patterns/prescription/index.js +13 -0
  226. package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
  227. package/dist/patterns/prescription/prescription-composer-item.d.ts +41 -0
  228. package/dist/patterns/prescription/prescription-composer.d.ts +94 -0
  229. package/dist/patterns/prescription/prescription-history.d.ts +48 -0
  230. package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
  231. package/dist/patterns/prescription/prescription-sheet.d.ts +71 -0
  232. package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
  233. package/dist/patterns/prescription/prescription-types.d.ts +122 -0
  234. package/dist/patterns/prescription/prescription-validation.d.ts +46 -0
  235. package/dist/patterns/registration-form/index.js +1 -1
  236. package/dist/patterns/reset-password-form/index.js +1 -1
  237. package/dist/patterns/send-registration-link-form/index.js +1 -1
  238. package/dist/patterns/signature-request/index.js +1 -1
  239. package/dist/tokens.css +1 -1
  240. package/dist/waiting-list-panel/index.js +2 -2
  241. package/package.json +21 -1
  242. package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
  243. package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
  244. package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
  245. package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
  246. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.138.0",
3
+ "packageVersion": "1.140.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -10470,6 +10470,160 @@
10470
10470
  }
10471
10471
  }
10472
10472
  },
10473
+ {
10474
+ "kind": "component",
10475
+ "id": "medication-line",
10476
+ "capabilities": [
10477
+ "edit_inline"
10478
+ ],
10479
+ "state": [
10480
+ {
10481
+ "name": "value",
10482
+ "type": "string",
10483
+ "description": "The catalogue id of the medication on this line. An id only, never a name.",
10484
+ "descriptionKey": "ui.agent.medicationLine.state.value"
10485
+ }
10486
+ ],
10487
+ "actions": [
10488
+ {
10489
+ "name": "remove",
10490
+ "safety": "destructive",
10491
+ "idempotent": true,
10492
+ "description": "Remove this medication from the list. Does nothing on a read-only line.",
10493
+ "descriptionKey": "ui.agent.medicationLine.actions.remove"
10494
+ }
10495
+ ],
10496
+ "domHooks": {
10497
+ "root": {
10498
+ "attr": "data-component",
10499
+ "value": "medication-line",
10500
+ "description": "Marks one medication line. The remove button is present only on the removable variant."
10501
+ },
10502
+ "instanceId": {
10503
+ "attr": "data-component-id",
10504
+ "sourceProp": "id",
10505
+ "description": "Sourced from the id prop, when provided."
10506
+ },
10507
+ "item": {
10508
+ "attr": "data-medication-id",
10509
+ "description": "The root also emits the catalogue id of the medication. An id only, never a name."
10510
+ }
10511
+ }
10512
+ },
10513
+ {
10514
+ "kind": "component",
10515
+ "id": "medication-search",
10516
+ "capabilities": [
10517
+ "select_single",
10518
+ "filter",
10519
+ "open",
10520
+ "close"
10521
+ ],
10522
+ "state": [
10523
+ {
10524
+ "name": "value",
10525
+ "type": "string | null",
10526
+ "description": "Catalogue id of the selected medication, or null when none is selected.",
10527
+ "descriptionKey": "ui.agent.medicationSearch.state.value"
10528
+ },
10529
+ {
10530
+ "name": "query",
10531
+ "type": "string",
10532
+ "description": "The text typed in the search field while no medication is selected, and an empty string once one is selected (the field then shows the medication name, which is not state).",
10533
+ "descriptionKey": "ui.agent.medicationSearch.state.query"
10534
+ },
10535
+ {
10536
+ "name": "isOpen",
10537
+ "type": "boolean",
10538
+ "description": "True when the list of results is visible.",
10539
+ "descriptionKey": "ui.agent.medicationSearch.state.isOpen"
10540
+ }
10541
+ ],
10542
+ "actions": [
10543
+ {
10544
+ "name": "apply_filter",
10545
+ "safety": "write",
10546
+ "argsType": "{ query: string }",
10547
+ "argsSchema": {
10548
+ "type": "object",
10549
+ "properties": {
10550
+ "query": {
10551
+ "type": "string"
10552
+ }
10553
+ },
10554
+ "required": [
10555
+ "query"
10556
+ ]
10557
+ },
10558
+ "idempotent": true,
10559
+ "openWorld": true,
10560
+ "description": "Type a search into the field, as a user would. This clears any selected medication and calls the host catalogue.",
10561
+ "descriptionKey": "ui.agent.medicationSearch.actions.applyFilter"
10562
+ },
10563
+ {
10564
+ "name": "pick",
10565
+ "safety": "write",
10566
+ "argsType": "{ id: string }",
10567
+ "argsSchema": {
10568
+ "type": "object",
10569
+ "properties": {
10570
+ "id": {
10571
+ "type": "string",
10572
+ "description": "Catalogue id of a result the host search returned for the current query. Never free text."
10573
+ }
10574
+ },
10575
+ "required": [
10576
+ "id"
10577
+ ]
10578
+ },
10579
+ "returns": "boolean",
10580
+ "returnsSchema": {
10581
+ "type": "boolean",
10582
+ "description": "True when a loaded result had that id and was chosen."
10583
+ },
10584
+ "idempotent": true,
10585
+ "description": "Choose one of the currently loaded results by its catalogue id. Fails (false) for an id the search did not return.",
10586
+ "descriptionKey": "ui.agent.medicationSearch.actions.pick"
10587
+ },
10588
+ {
10589
+ "name": "clear",
10590
+ "safety": "destructive",
10591
+ "idempotent": true,
10592
+ "description": "Clear the selected medication and the search text.",
10593
+ "descriptionKey": "ui.agent.medicationSearch.actions.clear"
10594
+ },
10595
+ {
10596
+ "name": "open",
10597
+ "safety": "read",
10598
+ "idempotent": true,
10599
+ "description": "Open the list of results.",
10600
+ "descriptionKey": "ui.agent.medicationSearch.actions.open"
10601
+ },
10602
+ {
10603
+ "name": "close",
10604
+ "safety": "read",
10605
+ "idempotent": true,
10606
+ "description": "Close the list of results.",
10607
+ "descriptionKey": "ui.agent.medicationSearch.actions.close"
10608
+ }
10609
+ ],
10610
+ "domHooks": {
10611
+ "root": {
10612
+ "attr": "data-component",
10613
+ "value": "medication-search",
10614
+ "description": "Marks the MedicationSearch root."
10615
+ },
10616
+ "instanceId": {
10617
+ "attr": "data-component-id",
10618
+ "sourceProp": "id",
10619
+ "description": "Sourced from the id prop."
10620
+ },
10621
+ "item": {
10622
+ "attr": "data-option-id",
10623
+ "description": "Each result emits its catalogue id as data-option-id. Never the name."
10624
+ }
10625
+ }
10626
+ },
10473
10627
  {
10474
10628
  "kind": "component",
10475
10629
  "id": "message-card",
@@ -14601,6 +14755,47 @@
14601
14755
  }
14602
14756
  }
14603
14757
  },
14758
+ {
14759
+ "kind": "component",
14760
+ "id": "print-sheet",
14761
+ "capabilities": [],
14762
+ "state": [
14763
+ {
14764
+ "name": "isPrinting",
14765
+ "type": "boolean",
14766
+ "description": "True while the sheet is marked for print.",
14767
+ "descriptionKey": "ui.agent.printSheet.state.isPrinting"
14768
+ },
14769
+ {
14770
+ "name": "size",
14771
+ "type": "string",
14772
+ "description": "The paper size of the sheet: a4 or a5.",
14773
+ "descriptionKey": "ui.agent.printSheet.state.size"
14774
+ }
14775
+ ],
14776
+ "actions": [
14777
+ {
14778
+ "name": "print",
14779
+ "safety": "destructive",
14780
+ "idempotent": false,
14781
+ "openWorld": true,
14782
+ "description": "Open the browser's print dialog to print only this sheet. The user still chooses to print or cancel.",
14783
+ "descriptionKey": "ui.agent.printSheet.actions.print"
14784
+ }
14785
+ ],
14786
+ "domHooks": {
14787
+ "root": {
14788
+ "attr": "data-component",
14789
+ "value": "print-sheet",
14790
+ "description": "Marks the PrintSheet root. `data-size` carries the paper size, `data-density` the spacing, and `data-printing` is present while it is being printed."
14791
+ },
14792
+ "instanceId": {
14793
+ "attr": "data-component-id",
14794
+ "sourceProp": "id",
14795
+ "description": "Sourced from the id prop, when provided."
14796
+ }
14797
+ }
14798
+ },
14604
14799
  {
14605
14800
  "kind": "component",
14606
14801
  "id": "privacy-lock",
@@ -17242,6 +17437,125 @@
17242
17437
  }
17243
17438
  }
17244
17439
  },
17440
+ {
17441
+ "kind": "component",
17442
+ "id": "sync-tray",
17443
+ "capabilities": [
17444
+ "open",
17445
+ "close"
17446
+ ],
17447
+ "state": [
17448
+ {
17449
+ "name": "isOpen",
17450
+ "type": "boolean",
17451
+ "description": "Whether the panel is open. Always true for the inline variant.",
17452
+ "descriptionKey": "ui.agent.syncTray.state.isOpen"
17453
+ },
17454
+ {
17455
+ "name": "failedCount",
17456
+ "type": "number",
17457
+ "description": "How many items failed to send.",
17458
+ "descriptionKey": "ui.agent.syncTray.state.failedCount"
17459
+ },
17460
+ {
17461
+ "name": "itemIds",
17462
+ "type": "string[]",
17463
+ "description": "Ids of the listed items. Ids only, never titles or error text.",
17464
+ "descriptionKey": "ui.agent.syncTray.state.itemIds"
17465
+ }
17466
+ ],
17467
+ "actions": [
17468
+ {
17469
+ "name": "open",
17470
+ "safety": "read",
17471
+ "idempotent": true,
17472
+ "description": "Open the sync panel.",
17473
+ "descriptionKey": "ui.agent.syncTray.actions.open"
17474
+ },
17475
+ {
17476
+ "name": "close",
17477
+ "safety": "read",
17478
+ "idempotent": true,
17479
+ "description": "Close the sync panel.",
17480
+ "descriptionKey": "ui.agent.syncTray.actions.close"
17481
+ },
17482
+ {
17483
+ "name": "retry",
17484
+ "safety": "write",
17485
+ "argsType": "{ id: string }",
17486
+ "argsSchema": {
17487
+ "type": "object",
17488
+ "properties": {
17489
+ "id": {
17490
+ "type": "string"
17491
+ }
17492
+ },
17493
+ "required": [
17494
+ "id"
17495
+ ]
17496
+ },
17497
+ "idempotent": false,
17498
+ "openWorld": true,
17499
+ "errors": [
17500
+ "No item matches the given id."
17501
+ ],
17502
+ "examples": [
17503
+ {
17504
+ "args": {
17505
+ "id": "item-1"
17506
+ }
17507
+ }
17508
+ ],
17509
+ "description": "Ask the host to send a failed item again to its destination. Does nothing for an item that has not failed.",
17510
+ "descriptionKey": "ui.agent.syncTray.actions.retry"
17511
+ },
17512
+ {
17513
+ "name": "open_item",
17514
+ "safety": "read",
17515
+ "argsType": "{ id: string }",
17516
+ "argsSchema": {
17517
+ "type": "object",
17518
+ "properties": {
17519
+ "id": {
17520
+ "type": "string"
17521
+ }
17522
+ },
17523
+ "required": [
17524
+ "id"
17525
+ ]
17526
+ },
17527
+ "idempotent": true,
17528
+ "errors": [
17529
+ "No item matches the given id."
17530
+ ],
17531
+ "examples": [
17532
+ {
17533
+ "args": {
17534
+ "id": "item-1"
17535
+ }
17536
+ }
17537
+ ],
17538
+ "description": "Activate an item, as a click would. The host opens its detail.",
17539
+ "descriptionKey": "ui.agent.syncTray.actions.openItem"
17540
+ }
17541
+ ],
17542
+ "domHooks": {
17543
+ "root": {
17544
+ "attr": "data-component",
17545
+ "value": "sync-tray",
17546
+ "description": "Marks the SyncTray root."
17547
+ },
17548
+ "instanceId": {
17549
+ "attr": "data-component-id",
17550
+ "sourceProp": "id",
17551
+ "description": "Sourced from the id prop."
17552
+ },
17553
+ "item": {
17554
+ "attr": "data-sync-item-id",
17555
+ "description": "Each listed item emits its id. An id only, never a title."
17556
+ }
17557
+ }
17558
+ },
17245
17559
  {
17246
17560
  "kind": "component",
17247
17561
  "id": "tab-bar",
@@ -25473,6 +25787,140 @@
25473
25787
  }
25474
25788
  ]
25475
25789
  },
25790
+ {
25791
+ "kind": "pattern",
25792
+ "id": "prescription",
25793
+ "composes": [
25794
+ {
25795
+ "component": "combobox",
25796
+ "as": "patientPicker",
25797
+ "entity": "patient"
25798
+ },
25799
+ {
25800
+ "component": "select",
25801
+ "as": "treatmentSelect"
25802
+ },
25803
+ {
25804
+ "component": "select",
25805
+ "as": "prescriberSelect",
25806
+ "entity": "prescriber"
25807
+ },
25808
+ {
25809
+ "component": "field-array",
25810
+ "as": "medicationLines"
25811
+ },
25812
+ {
25813
+ "component": "medication-search",
25814
+ "as": "medicationSearch",
25815
+ "entity": "medication"
25816
+ },
25817
+ {
25818
+ "component": "text-input",
25819
+ "as": "dosage"
25820
+ },
25821
+ {
25822
+ "component": "text-input",
25823
+ "as": "notes"
25824
+ },
25825
+ {
25826
+ "component": "suggestion-chip",
25827
+ "as": "dosageSuggestion"
25828
+ },
25829
+ {
25830
+ "component": "error-summary",
25831
+ "as": "errorSummary"
25832
+ },
25833
+ {
25834
+ "component": "print-sheet",
25835
+ "as": "sheet"
25836
+ },
25837
+ {
25838
+ "component": "medication-line",
25839
+ "as": "sheetLine",
25840
+ "entity": "medication"
25841
+ },
25842
+ {
25843
+ "component": "data-grid",
25844
+ "as": "history"
25845
+ }
25846
+ ],
25847
+ "workflows": [
25848
+ {
25849
+ "name": "compose_prescription",
25850
+ "safety": "phi",
25851
+ "description": "Choose a patient, choose the treatment the prescription is for (every prescription is for one treatment; a treatment may belong to a care plan), choose the prescriber, then add one or more medication lines: search the host catalogue, pick a result, and enter the dosage (a host-supplied suggestion chip can fill it; free text is always allowed) and optional notes. The patient picker and the free-text dosage and notes fields are not registered with the agent runtime, because their state would hold a name or free clinical text: an assistant fills them through the host, using the composer handle (setPatient, updateItem). Save validates the draft (patient, prescriber, a treatment of the patient, at least one line, and on every line a medication, a dosage and a whole number of packs of 1 or more). Each line may also carry a duration of therapy and a not-substitutable flag, which an assistant sets through the host with updateItem; the flag is cleared whenever the medication changes, and the host must enforce that it is only used for a medicine with a code and hands it to the host, which creates the prescription and sends it to the national registry at once; the number the registry returns comes back on the record. The host supplies every patient, prescriber, catalogue row and dosage suggestion: the kit holds no clinical content.",
25852
+ "descriptionKey": "ui.agent.prescription.workflows.composePrescription",
25853
+ "uiActions": [
25854
+ "select.set_value",
25855
+ "field-array.add",
25856
+ "field-array.remove",
25857
+ "medication-search.apply_filter",
25858
+ "medication-search.pick",
25859
+ "medication-search.clear",
25860
+ "suggestion-chip.select"
25861
+ ],
25862
+ "stateReads": [
25863
+ "select.value",
25864
+ "field-array.count",
25865
+ "medication-search.value"
25866
+ ],
25867
+ "apiActions": [
25868
+ "prescription.create",
25869
+ "prescription.send"
25870
+ ]
25871
+ },
25872
+ {
25873
+ "name": "print_prescription",
25874
+ "safety": "phi",
25875
+ "description": "Print the saved prescription. Who prints follows the sheet's printMode, which is 'host' when the record has a send status (an electronic prescription) and 'sheet' otherwise. In host mode the sheet is an on-screen summary: Print and Download PDF only call the host's callbacks, and the host opens the official document the registry issues. In sheet mode the kit prints the sheet through the browser's print dialog, forced to the light theme; under privacy mode it prints masked, exactly as shown. A prescription whose send is under way or failed cannot be printed or shared in either mode. The sheet registers no print action with the agent runtime, so an assistant asks the host to print.",
25876
+ "descriptionKey": "ui.agent.prescription.workflows.printPrescription",
25877
+ "uiActions": [],
25878
+ "apiActions": [
25879
+ "prescription.print",
25880
+ "prescription.downloadPdf"
25881
+ ]
25882
+ },
25883
+ {
25884
+ "name": "send_prescription",
25885
+ "safety": "phi",
25886
+ "description": "Share the sent prescription with the patient by email, SMS or WhatsApp. It cannot be printed or shared until the registry has accepted it. The kit only calls the host callback for the chosen channel: the host builds and sends the message.",
25887
+ "descriptionKey": "ui.agent.prescription.workflows.sendPrescription",
25888
+ "uiActions": [],
25889
+ "apiActions": [
25890
+ "prescription.sendEmail",
25891
+ "prescription.sendSms",
25892
+ "prescription.sendWhatsApp"
25893
+ ]
25894
+ },
25895
+ {
25896
+ "name": "resend_prescription",
25897
+ "safety": "phi",
25898
+ "description": "Send a prescription again after the send to the national registry failed. The sheet shows a \"Send again\" button only for a failed send. The kit only calls the host callback: the host sends to the registry and passes the updated record.",
25899
+ "descriptionKey": "ui.agent.prescription.workflows.resendPrescription",
25900
+ "uiActions": [],
25901
+ "apiActions": [
25902
+ "prescription.send"
25903
+ ]
25904
+ },
25905
+ {
25906
+ "name": "review_history",
25907
+ "safety": "phi",
25908
+ "description": "Read saved prescriptions, newest first: one patient's, or the whole practice's when the table shows a Patient column (date, number, send status, patient name, treatment, care plan, one tag per medication, prescriber, specialty), sorted and filtered by column. Reopening a row and printing it again are host callbacks: the host shows that record in a sheet, which then prints like any other. The table never shows a fiscal code or date of birth, and under privacy mode it masks the patient name.",
25909
+ "descriptionKey": "ui.agent.prescription.workflows.reviewHistory",
25910
+ "uiActions": [
25911
+ "data-grid.sort_by"
25912
+ ],
25913
+ "stateReads": [
25914
+ "data-grid.rowCount",
25915
+ "data-grid.rowIds"
25916
+ ],
25917
+ "apiActions": [
25918
+ "prescription.list",
25919
+ "prescription.get"
25920
+ ]
25921
+ }
25922
+ ]
25923
+ },
25476
25924
  {
25477
25925
  "kind": "pattern",
25478
25926
  "id": "registration-form",
@@ -972,6 +972,28 @@
972
972
  "selectMarker": "Propose a marker selection by id, or pass null to clear it. Fires the host's `onMarkerClick`; selection is controlled by the host, so read the `selectedMarkerId` slot back to see whether it accepted."
973
973
  }
974
974
  },
975
+ "medicationLine": {
976
+ "state": {
977
+ "value": "The catalogue id of the medication on this line. An id only, never a name."
978
+ },
979
+ "actions": {
980
+ "remove": "Remove this medication from the list. Does nothing on a read-only line."
981
+ }
982
+ },
983
+ "medicationSearch": {
984
+ "state": {
985
+ "value": "Catalogue id of the selected medication, or null when none is selected.",
986
+ "query": "The text typed in the search field while no medication is selected, and an empty string once one is selected (the field then shows the medication name, which is not state).",
987
+ "isOpen": "True when the list of results is visible."
988
+ },
989
+ "actions": {
990
+ "applyFilter": "Type a search into the field, as a user would. This clears any selected medication and calls the host catalogue.",
991
+ "pick": "Choose one of the currently loaded results by its catalogue id. Fails (false) for an id the search did not return.",
992
+ "clear": "Clear the selected medication and the search text.",
993
+ "open": "Open the list of results.",
994
+ "close": "Close the list of results."
995
+ }
996
+ },
975
997
  "messageTray": {
976
998
  "state": {
977
999
  "items": "Currently-displayed messages. Ids + read flag only — no PHI / no sender names.",
@@ -1359,6 +1381,15 @@
1359
1381
  "getResult": "Read back the computed assessment — the same value the `result` state slot returns. Null until every input is valid."
1360
1382
  }
1361
1383
  },
1384
+ "printSheet": {
1385
+ "state": {
1386
+ "isPrinting": "True while the sheet is marked for print.",
1387
+ "size": "The paper size of the sheet: a4 or a5."
1388
+ },
1389
+ "actions": {
1390
+ "print": "Open the browser's print dialog to print only this sheet. The user still chooses to print or cancel."
1391
+ }
1392
+ },
1362
1393
  "privacyLock": {
1363
1394
  "state": {
1364
1395
  "isLocked": "True when the privacy overlay is open."
@@ -1667,6 +1698,19 @@
1667
1698
  "toggle": "Flip the on/off state."
1668
1699
  }
1669
1700
  },
1701
+ "syncTray": {
1702
+ "state": {
1703
+ "isOpen": "Whether the panel is open. Always true for the inline variant.",
1704
+ "failedCount": "How many items failed to send.",
1705
+ "itemIds": "Ids of the listed items. Ids only, never titles or error text."
1706
+ },
1707
+ "actions": {
1708
+ "open": "Open the sync panel.",
1709
+ "close": "Close the sync panel.",
1710
+ "retry": "Ask the host to send a failed item again to its destination. Does nothing for an item that has not failed.",
1711
+ "openItem": "Activate an item, as a click would. The host opens its detail."
1712
+ }
1713
+ },
1670
1714
  "tabs": {
1671
1715
  "state": {
1672
1716
  "activeTab": "Value of the currently-active tab."
@@ -2265,6 +2309,15 @@
2265
2309
  "abandonBooking": "Clear an in-progress booking back to an empty flow. Destructive: everything the patient has entered — service, operator, slot and any details already typed — is lost and cannot be recovered from the UI. Confirm with the patient first."
2266
2310
  }
2267
2311
  },
2312
+ "prescription": {
2313
+ "workflows": {
2314
+ "composePrescription": "Choose a patient, choose the treatment the prescription is for (every prescription is for one treatment; a treatment may belong to a care plan), choose the prescriber, then add one or more medication lines: search the host catalogue, pick a result, and enter the dosage (a host-supplied suggestion chip can fill it; free text is always allowed) and optional notes. The patient picker and the free-text dosage and notes fields are not registered with the agent runtime, because their state would hold a name or free clinical text: an assistant fills them through the host, using the composer handle (setPatient, updateItem). Save validates the draft (patient, prescriber, a treatment of the patient, at least one line, and on every line a medication, a dosage and a whole number of packs of 1 or more). Each line may also carry a duration of therapy and a not-substitutable flag, which an assistant sets through the host with updateItem; the flag is cleared whenever the medication changes, and the host must enforce that it is only used for a medicine with a code and hands it to the host, which creates the prescription and sends it to the national registry at once; the number the registry returns comes back on the record. The host supplies every patient, prescriber, catalogue row and dosage suggestion: the kit holds no clinical content.",
2315
+ "printPrescription": "Print the saved prescription. Who prints follows the sheet's printMode, which is 'host' when the record has a send status (an electronic prescription) and 'sheet' otherwise. In host mode the sheet is an on-screen summary: Print and Download PDF only call the host's callbacks, and the host opens the official document the registry issues. In sheet mode the kit prints the sheet through the browser's print dialog, forced to the light theme; under privacy mode it prints masked, exactly as shown. A prescription whose send is under way or failed cannot be printed or shared in either mode. The sheet registers no print action with the agent runtime, so an assistant asks the host to print.",
2316
+ "sendPrescription": "Share the sent prescription with the patient by email, SMS or WhatsApp. It cannot be printed or shared until the registry has accepted it. The kit only calls the host callback for the chosen channel: the host builds and sends the message.",
2317
+ "resendPrescription": "Send a prescription again after the send to the national registry failed. The sheet shows a \"Send again\" button only for a failed send. The kit only calls the host callback: the host sends to the registry and passes the updated record.",
2318
+ "reviewHistory": "Read saved prescriptions, newest first: one patient's, or the whole practice's when the table shows a Patient column (date, number, send status, patient name, treatment, care plan, one tag per medication, prescriber, specialty), sorted and filtered by column. Reopening a row and printing it again are host callbacks: the host shows that record in a sheet, which then prints like any other. The table never shows a fiscal code or date of birth, and under privacy mode it masks the patient name."
2319
+ }
2320
+ },
2268
2321
  "registrationForm": {
2269
2322
  "workflows": {
2270
2323
  "readForm": "Read which fields the form asks for and which have a problem. The host picks the fields, so read them from the page: each one that shows sits in a wrapper with `data-field`. A field with a problem has `aria-invalid=\"true\"` on its control and its message in a `data-slot=\"error\"` element inside the wrapper. After a refused submit the fields with a problem are also listed in `data-component=\"error-summary\"` at the top of the form, one item per field (`data-error-field`). A message about the whole form is in `data-field=\"form\"`. An email the person cannot change is marked `readonly`. When the host asks for a code, a field's wrapper also carries `data-verification` (`idle`, `sent` or `verified`); a verified field is `readonly`. When the address already has an account, the email message says so and the two link-buttons under it lead on: sign in (`data-action=\"sign-in\"`) or reset the password (`data-action=\"reset-password\"`). Never read or repeat the password fields.",
@@ -5,8 +5,8 @@ import { I as j } from "../_chunks/icon-button-S8_weU3g.js";
5
5
  import { a as F } from "../_chunks/panel-header-CbtlTe85.js";
6
6
  import { a as G } from "../_chunks/tooltip-uEBdD1-5.js";
7
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-aodjllWd.js";
9
- import { u as z, c as B } from "../_chunks/calendar-editor-discard-host-DjUhoFr2.js";
8
+ import { A as W, S as q } from "../_chunks/calendar.sheets-DbMOO7YV.js";
9
+ import { u as z, c as B } from "../_chunks/calendar-editor-discard-host-BcMEgVEq.js";
10
10
  import { X as M } from "../_chunks/x-B5YnXwCz.js";
11
11
  import { P as R } from "../_chunks/privacy-mask-C2ZLKrMh.js";
12
12
  import { C as X } from "../_chunks/calendar-clock-hbObjfGY.js";