@alfadocs/ui-kit 1.114.0 → 1.116.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 (416) hide show
  1. package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
  2. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
  3. package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
  4. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-gEXqU5i5.js} +8 -8
  7. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  8. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
  9. package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
  11. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
  12. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  13. package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
  14. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
  15. package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
  16. package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
  17. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  18. package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
  19. package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
  21. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
  22. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
  23. package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.js} +2 -2
  24. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  25. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  26. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  27. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  28. package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
  29. package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
  30. package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
  31. package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
  32. package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
  33. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
  34. package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
  35. package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
  36. package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
  37. package/dist/_chunks/data-table-B47iw2CO.js +1694 -0
  38. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  39. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  40. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  41. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  42. package/dist/_chunks/date-range-panel-B-DUtfw3.js +62 -0
  43. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  44. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  45. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  46. package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
  47. package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
  48. package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
  49. package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
  50. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
  51. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.js} +3 -3
  52. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  53. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  54. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  55. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  56. package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
  57. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
  58. package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
  59. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
  60. package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
  61. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  62. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  63. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  64. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  65. package/dist/_chunks/grid-context-jn9y8tNE.js +46 -0
  66. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
  67. package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
  68. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
  69. package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
  70. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  71. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  72. package/dist/_chunks/icon-button-group-Ca2VkXy5.js +442 -0
  73. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  74. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  75. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  76. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  77. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-BFfLg7c-.js} +7 -7
  78. package/dist/_chunks/link-cell-renderer-D-Io828l.js +800 -0
  79. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CBHNg8x-.js} +5 -5
  81. package/dist/_chunks/match-BATShpSX.js +336 -0
  82. package/dist/_chunks/money-OE6_oDPH.js +138 -0
  83. package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
  84. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  85. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  86. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-DexbfrFo.js} +3 -3
  87. package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
  88. package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
  89. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  90. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  91. package/dist/_chunks/parts-CtcTW1PN.js +869 -0
  92. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
  93. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
  94. package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
  95. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
  96. package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
  97. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  98. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  99. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  100. package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
  101. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
  102. package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
  103. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  104. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  105. package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
  106. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  107. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
  108. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  109. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
  110. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
  111. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  112. package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
  113. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  114. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  115. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  116. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  117. package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
  118. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  119. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  120. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  121. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  122. package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
  123. package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
  124. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  125. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  126. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-DgUjtqpX.js} +386 -410
  127. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  128. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
  129. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
  130. package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
  131. package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
  132. package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
  133. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  134. package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
  135. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  136. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
  137. package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
  138. package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
  139. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
  140. package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
  141. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  142. package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
  143. package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
  144. package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
  145. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
  146. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  147. package/dist/agent-catalog.json +3359 -1569
  148. package/dist/agent-i18n/en.json +100 -2
  149. package/dist/components/_shared/accessible-target.d.ts +12 -0
  150. package/dist/components/_shared/decimal.d.ts +171 -0
  151. package/dist/components/_shared/format-price.d.ts +54 -2
  152. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  153. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  154. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  155. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  156. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  157. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  158. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  159. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  160. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  161. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  162. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  163. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  164. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  165. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  166. package/dist/components/address-fields/index.js +1 -1
  167. package/dist/components/ai-permission-notice/index.js +1 -1
  168. package/dist/components/appointment-card/index.js +2 -2
  169. package/dist/components/appointment-details-panel/index.js +1 -1
  170. package/dist/components/appointment-peek/index.js +1 -1
  171. package/dist/components/appointment-timeline/index.js +1 -1
  172. package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
  173. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
  174. package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
  175. package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
  176. package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
  177. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
  178. package/dist/components/bill-line-table/index.d.ts +6 -0
  179. package/dist/components/bill-line-table/index.js +23 -0
  180. package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
  181. package/dist/components/bill-table/bill-table.d.ts +13 -0
  182. package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
  183. package/dist/components/bill-table/cells.d.ts +89 -0
  184. package/dist/components/bill-table/columns.d.ts +21 -0
  185. package/dist/components/bill-table/default-tabs.d.ts +21 -0
  186. package/dist/components/bill-table/handle.d.ts +19 -0
  187. package/dist/components/bill-table/index.d.ts +7 -0
  188. package/dist/components/bill-table/index.js +19 -0
  189. package/dist/components/bill-table/model.d.ts +103 -0
  190. package/dist/components/bill-table/row-actions.d.ts +27 -0
  191. package/dist/components/bill-table/status-maps.d.ts +225 -0
  192. package/dist/components/bill-table/types.d.ts +542 -0
  193. package/dist/components/bmi-calculator/index.js +1 -1
  194. package/dist/components/booking/index.js +1 -1
  195. package/dist/components/button-group/index.js +1 -1
  196. package/dist/components/calculator-dialog/index.js +1 -1
  197. package/dist/components/care-plan-card/index.js +1 -1
  198. package/dist/components/care-plan-entry-card/index.js +1 -1
  199. package/dist/components/chart/index.js +1 -1
  200. package/dist/components/chat-container/index.js +1 -1
  201. package/dist/components/checkbox/checkbox.d.ts +66 -6
  202. package/dist/components/checkbox/index.js +1 -1
  203. package/dist/components/checkbox-group/index.js +1 -1
  204. package/dist/components/combobox/combobox.d.ts +59 -1
  205. package/dist/components/combobox/index.d.ts +1 -1
  206. package/dist/components/combobox/index.js +1 -1
  207. package/dist/components/contact-profile-card/index.js +1 -1
  208. package/dist/components/country-select/index.js +1 -1
  209. package/dist/components/cycle-calculator/index.js +1 -1
  210. package/dist/components/dashboard-grid/index.js +1 -1
  211. package/dist/components/data-grid/announcer.d.ts +27 -0
  212. package/dist/components/data-grid/body.d.ts +101 -0
  213. package/dist/components/data-grid/columns.d.ts +96 -0
  214. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  215. package/dist/components/data-grid/data-grid.d.ts +11 -27
  216. package/dist/components/data-grid/data-grid.variants.d.ts +110 -0
  217. package/dist/components/data-grid/editors.d.ts +14 -0
  218. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  219. package/dist/components/data-grid/features.d.ts +56 -0
  220. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  221. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  222. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  223. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  224. package/dist/components/data-grid/footer.d.ts +10 -0
  225. package/dist/components/data-grid/grid-context.d.ts +18 -0
  226. package/dist/components/data-grid/handle.d.ts +60 -0
  227. package/dist/components/data-grid/header.d.ts +12 -0
  228. package/dist/components/data-grid/index.d.ts +3 -0
  229. package/dist/components/data-grid/index.js +11 -3
  230. package/dist/components/data-grid/keyboard.d.ts +76 -0
  231. package/dist/components/data-grid/pager.d.ts +18 -0
  232. package/dist/components/data-grid/persistence.d.ts +60 -0
  233. package/dist/components/data-grid/print.d.ts +10 -0
  234. package/dist/components/data-grid/responsive.d.ts +36 -0
  235. package/dist/components/data-grid/selection.d.ts +68 -0
  236. package/dist/components/data-grid/state.d.ts +119 -0
  237. package/dist/components/data-grid/states.d.ts +34 -0
  238. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  239. package/dist/components/data-grid/toolbar.d.ts +41 -0
  240. package/dist/components/data-grid/types.d.ts +1396 -0
  241. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  242. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  243. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  244. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  245. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  246. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  247. package/dist/components/data-grid-tabs/index.js +8 -0
  248. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  249. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  250. package/dist/components/data-table/calendar-day.d.ts +4 -21
  251. package/dist/components/data-table/data-table.d.ts +10 -6
  252. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  253. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  254. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  255. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  256. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  257. package/dist/components/data-table/index.js +4 -4
  258. package/dist/components/data-table/toolbar.d.ts +25 -21
  259. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  260. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  261. package/dist/components/data-table-tabs/index.js +1 -1
  262. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  263. package/dist/components/date-picker/index.js +1 -1
  264. package/dist/components/date-range-picker/index.js +1 -1
  265. package/dist/components/date-time-picker/index.js +1 -1
  266. package/dist/components/dialog/focus-return.d.ts +12 -0
  267. package/dist/components/dialog/index.js +1 -1
  268. package/dist/components/document-preview/index.js +1 -1
  269. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
  270. package/dist/components/dropdown-menu/index.js +1 -1
  271. package/dist/components/due-date-calculator/index.js +2 -2
  272. package/dist/components/face-scheme/index.js +1 -1
  273. package/dist/components/fetal-weight/index.js +1 -1
  274. package/dist/components/file-manager/index.js +1 -1
  275. package/dist/components/gestational-age-calculator/index.js +1 -1
  276. package/dist/components/hcg-doubling/index.js +1 -1
  277. package/dist/components/header-settings/index.js +1 -1
  278. package/dist/components/heatmap/index.js +1 -1
  279. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  280. package/dist/components/icon-button-group/index.d.ts +1 -1
  281. package/dist/components/icon-button-group/index.js +1 -1
  282. package/dist/components/index.d.ts +7 -0
  283. package/dist/components/money/index.js +1 -1
  284. package/dist/components/money/money.d.ts +39 -6
  285. package/dist/components/muscle-scheme/index.js +1 -1
  286. package/dist/components/notes-panel/index.js +1 -1
  287. package/dist/components/number-input/index.d.ts +2 -2
  288. package/dist/components/number-input/index.js +1 -1
  289. package/dist/components/number-input/number-input.d.ts +43 -2
  290. package/dist/components/number-input/use-locale-number.d.ts +67 -3
  291. package/dist/components/optical-prescription/index.js +1 -1
  292. package/dist/components/patient-details/index.js +1 -1
  293. package/dist/components/patient-search/index.js +1 -1
  294. package/dist/components/patient-summary-card/index.js +1 -1
  295. package/dist/components/patient-table/index.js +1 -1
  296. package/dist/components/payment-card/index.js +1 -1
  297. package/dist/components/periodontal-diagnosis/index.js +1 -1
  298. package/dist/components/permission-matrix/index.js +1 -1
  299. package/dist/components/practice-results/index.js +1 -1
  300. package/dist/components/pregnancy-dating/index.js +1 -1
  301. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  302. package/dist/components/province-select/index.js +1 -1
  303. package/dist/components/radiograph-panel/index.js +1 -1
  304. package/dist/components/rich-text-editor/index.js +2 -2
  305. package/dist/components/row-actions/index.d.ts +3 -0
  306. package/dist/components/row-actions/index.js +5 -0
  307. package/dist/components/row-actions/row-actions.d.ts +63 -0
  308. package/dist/components/sidebar/index.js +1 -1
  309. package/dist/components/skeleton-scheme/index.js +1 -1
  310. package/dist/components/slot-grid/index.js +1 -1
  311. package/dist/components/smart-date/smart-date.d.ts +1 -1
  312. package/dist/components/tab-bar/index.js +1 -1
  313. package/dist/components/tabs/index.js +1 -1
  314. package/dist/components/tag/index.js +1 -1
  315. package/dist/components/task-card/index.js +1 -1
  316. package/dist/components/task-editor/index.js +1 -1
  317. package/dist/components/task-tray/index.js +1 -1
  318. package/dist/components/tasks-panel/index.js +1 -1
  319. package/dist/components/theme-toggle/index.js +1 -1
  320. package/dist/components/token-insert-menu/index.js +1 -1
  321. package/dist/components/tooth-scheme/index.js +1 -1
  322. package/dist/components/transaction-chip/index.js +1 -1
  323. package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
  324. package/dist/components/transcript-panel/index.js +1 -1
  325. package/dist/components/treatment-receipt/index.js +1 -1
  326. package/dist/components/unit-converter/index.js +1 -1
  327. package/dist/components/voice-control-panel/index.js +1 -1
  328. package/dist/components/widget-picker/index.js +1 -1
  329. package/dist/components/workflow/index.js +1 -1
  330. package/dist/components/workflow-status/index.js +1 -1
  331. package/dist/core.css +1 -1
  332. package/dist/decimal/index.js +149 -0
  333. package/dist/host-compat.css +36 -2
  334. package/dist/i18n/locales/ar.d.ts +342 -0
  335. package/dist/i18n/locales/ar.js +344 -2
  336. package/dist/i18n/locales/de.d.ts +342 -0
  337. package/dist/i18n/locales/de.js +344 -2
  338. package/dist/i18n/locales/el.d.ts +342 -0
  339. package/dist/i18n/locales/el.js +344 -2
  340. package/dist/i18n/locales/en.d.ts +342 -0
  341. package/dist/i18n/locales/en.js +345 -2
  342. package/dist/i18n/locales/es.d.ts +342 -0
  343. package/dist/i18n/locales/es.js +344 -2
  344. package/dist/i18n/locales/fr.d.ts +342 -0
  345. package/dist/i18n/locales/fr.js +344 -2
  346. package/dist/i18n/locales/hi.d.ts +342 -0
  347. package/dist/i18n/locales/hi.js +344 -2
  348. package/dist/i18n/locales/it.d.ts +342 -0
  349. package/dist/i18n/locales/it.js +344 -2
  350. package/dist/i18n/locales/ja.d.ts +342 -0
  351. package/dist/i18n/locales/ja.js +344 -2
  352. package/dist/i18n/locales/nl.d.ts +342 -0
  353. package/dist/i18n/locales/nl.js +344 -2
  354. package/dist/i18n/locales/pl.d.ts +342 -0
  355. package/dist/i18n/locales/pl.js +344 -2
  356. package/dist/i18n/locales/pt.d.ts +342 -0
  357. package/dist/i18n/locales/pt.js +344 -2
  358. package/dist/i18n/locales/ro.d.ts +342 -0
  359. package/dist/i18n/locales/ro.js +344 -2
  360. package/dist/i18n/locales/ru.d.ts +342 -0
  361. package/dist/i18n/locales/ru.js +344 -2
  362. package/dist/i18n/locales/sq.d.ts +342 -0
  363. package/dist/i18n/locales/sq.js +344 -2
  364. package/dist/i18n/locales/sv.d.ts +342 -0
  365. package/dist/i18n/locales/sv.js +344 -2
  366. package/dist/i18n/locales/tr.d.ts +342 -0
  367. package/dist/i18n/locales/tr.js +344 -2
  368. package/dist/i18n/locales/zh.d.ts +342 -0
  369. package/dist/i18n/locales/zh.js +344 -2
  370. package/dist/index.js +1305 -1241
  371. package/dist/locales/ar.json +344 -2
  372. package/dist/locales/de.json +344 -2
  373. package/dist/locales/el.json +344 -2
  374. package/dist/locales/en.json +344 -2
  375. package/dist/locales/es.json +344 -2
  376. package/dist/locales/fr.json +344 -2
  377. package/dist/locales/hi.json +344 -2
  378. package/dist/locales/it.json +344 -2
  379. package/dist/locales/ja.json +344 -2
  380. package/dist/locales/nl.json +344 -2
  381. package/dist/locales/pl.json +344 -2
  382. package/dist/locales/pt.json +344 -2
  383. package/dist/locales/ro.json +344 -2
  384. package/dist/locales/ru.json +344 -2
  385. package/dist/locales/sq.json +344 -2
  386. package/dist/locales/sv.json +344 -2
  387. package/dist/locales/tr.json +344 -2
  388. package/dist/locales/zh.json +344 -2
  389. package/dist/patterns/alia-assistant/index.js +1 -1
  390. package/dist/patterns/anamnesis/index.js +1 -1
  391. package/dist/patterns/calendar/index.js +1 -1
  392. package/dist/patterns/help-me-write-templates/index.js +1 -1
  393. package/dist/patterns/login-form/index.js +1 -1
  394. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  395. package/dist/patterns/registration-form/index.js +1 -1
  396. package/dist/patterns/send-registration-link-form/index.js +1 -1
  397. package/dist/patterns/signature-request/index.js +1 -1
  398. package/dist/patterns/verify-identity/index.js +1 -1
  399. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  400. package/dist/tokens.css +1 -1
  401. package/package.json +21 -1
  402. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  403. package/dist/_chunks/combobox-duuDRI1t.js +0 -688
  404. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  405. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  406. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  407. package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
  408. package/dist/_chunks/format--x5jypvH.js +0 -1319
  409. package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
  410. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  411. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  412. package/dist/_chunks/money-Tsczpjfz.js +0 -102
  413. package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
  414. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  415. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
  416. package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
@@ -0,0 +1,542 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ import type { DataGridChange, DataGridPagination, DataGridWriteOptions } from '../data-grid/types';
3
+ import type { DateRangeFilterModel, NumberFilterModel } from '../_shared/table-toolbar/seam';
4
+ import type { EmptyStateHeadingLevel } from '../empty-state';
5
+ /** Platform: `DoctorBill::DIRECTION_*` (DB:37-38), field `direction`
6
+ * (DB:1198). `incoming` = a bill the practice received (a cost);
7
+ * `outgoing` = a bill the practice issued (revenue). */
8
+ export declare const BILL_DIRECTIONS: readonly ["incoming", "outgoing"];
9
+ export type BillDirection = (typeof BILL_DIRECTIONS)[number];
10
+ /** Platform: `DoctorBill::TYPE_*` (DB:40-44), field `type` (DB:854).
11
+ * `credit` is a credit note. Incoming SDI credit notes carry their kind in
12
+ * `documentType` (DB:282, `getDocumentType()` DB:2480); the conversion
13
+ * maps TD04 to `credit` (`CreateRealBillForIncomingBillService.php:115`)
14
+ * and refuses TD08 as unsupported (`:103-111`). */
15
+ export declare const BILL_TYPES: readonly ["full", "partial", "credit", "proforma", "other"];
16
+ export type BillType = (typeof BILL_TYPES)[number];
17
+ /**
18
+ * Payment state of the bill. The platform has NO field for it: the host
19
+ * derives it per row, on MAGNITUDES (a credit note's gross, paid and
20
+ * unpaid amounts are negative, `DoctorBill.php:341-342`), first match wins:
21
+ * 1. `noPaymentDue`: `type === 'proforma'` (DB:43; `isProformaOrWrittenOff()`
22
+ * DB:2045 forces unpaid to 0).
23
+ * 2. `writtenOff`: `writtenOff` true (DB:177).
24
+ * 3. `paid`: `getUnpaidAmount()` (DB:806; SQL `unpaid_amount`, REPO:1033)
25
+ * is 0.
26
+ * 4. `overdue`: |unpaid| > 0 and at least one open liability is due
27
+ * (`Liability::isDue()`, LIAB:205-208).
28
+ * 5. `partiallyPaid`: |`getPaidAmount()`| (DB:791; SQL `paid_amount`) > 0.
29
+ * 6. `unpaid`: anything else.
30
+ * Direction-neutral on purpose: one label per state.
31
+ */
32
+ export declare const BILL_PAYMENT_STATUSES: readonly ["paid", "partiallyPaid", "unpaid", "overdue", "writtenOff", "noPaymentDue"];
33
+ export type BillPaymentStatus = (typeof BILL_PAYMENT_STATUSES)[number];
34
+ /**
35
+ * SDI (Sistema di Interscambio) state. The platform has NO field on the
36
+ * bill: the host derives it, first match wins:
37
+ * - `received`: incoming and `fatturazioneElettronicaIncomingBillId` set
38
+ * (DB:207).
39
+ * - `notApplicable`: practice country is not `it`, or an incoming bill
40
+ * neither from SDI nor a self-bill (`isAutoBill()` DB:2461). Renders an
41
+ * empty cell.
42
+ * - outgoing (and incoming self-bills), from the latest sending snapshot
43
+ * `FatturazioneElettronica\Sending\Bill` (SEND) and its batch `Sending`
44
+ * (`STATE_*`, Sending.php:28-30):
45
+ * - `notSent`: no snapshot row for the bill.
46
+ * - `sending`: batch state `todo` or `waiting_to_be_sent`.
47
+ * - `pending`: `sent` true (SEND:22), `result` null (SEND:24).
48
+ * - `rejected`: `result === 'rejected'` (SEND:32).
49
+ * - `notDelivered`: accepted and `nonDeliveryNotificationIncomingMessageId`
50
+ * set (SEND:28).
51
+ * - `delivered`: accepted and `deliveryReceiptIncomingMessageId` set
52
+ * (SEND:27).
53
+ * - `accepted`: `result === 'accepted'` (SEND:31), no receipt yet.
54
+ */
55
+ export declare const BILL_SDI_STATUSES: readonly ["notApplicable", "notSent", "sending", "pending", "accepted", "delivered", "notDelivered", "rejected", "received"];
56
+ export type BillSdiStatus = (typeof BILL_SDI_STATUSES)[number];
57
+ /**
58
+ * Warehouse loading state of an incoming SDI bill. NO platform field yet:
59
+ * HTP-7309 adds the invoice-line reference on stock movements, which is the
60
+ * single source (HTP-7312: "no second status store").
61
+ * - `loaded`: at least one line of the bill carries a reference.
62
+ * - `toReview`: automatic loading ran and found an unmatched line, or it is
63
+ * switched off (HTP-7313).
64
+ * - `notLoaded`: an incoming SDI bill with neither.
65
+ * `null` or absent: not an incoming SDI bill, or no module (HTP-7314).
66
+ * Renders an empty cell.
67
+ */
68
+ export declare const BILL_WAREHOUSE_STATUSES: readonly ["notLoaded", "toReview", "loaded"];
69
+ export type BillWarehouseStatus = (typeof BILL_WAREHOUSE_STATUSES)[number];
70
+ /**
71
+ * Who the counterparty is, for privacy. Privacy mode hides `patient` and
72
+ * `person`; `company` stays visible.
73
+ * - `patient`: a care-plan bill, `doctorCarePlan` (DB:92) set.
74
+ * - `person`: an individual who is not a patient: `doctorOperator`
75
+ * (DB:1208), or no linked entity and a snapshot with
76
+ * `counterpartFirstName`/`counterpartLastName` (DB:113, DB:118) and no
77
+ * `counterpartCompanyName` (DB:108).
78
+ * - `company`: `doctorCompany` (DB:1203; a supplier or lab), or a snapshot
79
+ * with `counterpartCompanyName`. NOTE: DoctorCompany has no person flag,
80
+ * so a sole trader stored as a company shows.
81
+ */
82
+ export declare const BILL_COUNTERPARTY_KINDS: readonly ["patient", "person", "company"];
83
+ export type BillCounterpartyKind = (typeof BILL_COUNTERPARTY_KINDS)[number];
84
+ /**
85
+ * Every row action BillTable can offer, in menu order. The first four are
86
+ * the brief's; the rest keep today's list working and render only when the
87
+ * host makes them available (see `BillRow.actions`).
88
+ * - `open`: `ic_dcp_doctor_bill_show` (CTRL:1162).
89
+ * - `downloadPdf`: `ic_dcp_doctor_bill_download` (CTRL:1275).
90
+ * - `downloadXml`: outgoing or self-bill (`canHaveFatturazioneElettronicaXml()`
91
+ * DB:2507) or received from SDI.
92
+ * - `loadIntoWarehouse`: opens the HTP-7311 dialog, or the HTP-7314 upsell
93
+ * without the module. Not tied to `showWarehouseStatus`.
94
+ * - `edit`, `recordPayment`, `writeOff`, `undoWriteOff`, `delete`: today's
95
+ * edit, per-liability "Incassa"/"Pagato", "Stralcia", "Non più stralciare"
96
+ * and "Elimina".
97
+ */
98
+ export declare const BILL_ROW_ACTIONS: readonly ["open", "downloadPdf", "downloadXml", "loadIntoWarehouse", "edit", "recordPayment", "writeOff", "undoWriteOff", "delete"];
99
+ export type BillRowActionId = (typeof BILL_ROW_ACTIONS)[number];
100
+ /**
101
+ * Kit-owned reasons, so the copy exists in 18 languages.
102
+ * - `alreadyLoaded`: one-load rule (HTP-7309, HTP-7311).
103
+ * - `sentToSdi`, `legalStorage`: `dcp.doctor_bill.list.can_not_edit_message`
104
+ * (canEditOrDelete false, `BillListDTO.canEditOrDelete`).
105
+ * - `paymentAutomation`: `...can_not_edit_or_delete_payment_automation`.
106
+ * - `noPermission`: the user lacks `doctor_bill_edit` / `practice_bill_delete`.
107
+ * - `inProgress`: the host is already running this action for the row.
108
+ */
109
+ export declare const BILL_ACTION_DISABLED_REASONS: readonly ["alreadyLoaded", "sentToSdi", "legalStorage", "paymentAutomation", "noPermission", "inProgress"];
110
+ export type BillActionDisabledReason = (typeof BILL_ACTION_DISABLED_REASONS)[number];
111
+ /**
112
+ * `'enabled'`, or disabled with a kit reason or a host text (translated
113
+ * by the host). An action absent from the map is not shown.
114
+ *
115
+ * Don't name a person in the host text (nor in `error.description` or
116
+ * `extraFilterLabels`): use a kit reason code where one fits. The kit
117
+ * cannot tell whether a text names someone, so under privacy mode every
118
+ * host text reads as kit copy, and agent reads carry only the code
119
+ * `'host'`, never the text.
120
+ */
121
+ export type BillRowActionState = 'enabled' | {
122
+ disabled: BillActionDisabledReason;
123
+ } | {
124
+ disabled: {
125
+ text: string;
126
+ };
127
+ };
128
+ export type BillRowActionMap = Partial<Record<BillRowActionId, BillRowActionState>>;
129
+ /** An action's state as an agent reads it: a host's own disabled text is
130
+ * reduced to the code `'host'`, whatever privacy mode says, since it may
131
+ * name a person. */
132
+ export type BillRowActionSummaryState = 'enabled' | {
133
+ disabled: BillActionDisabledReason | 'host';
134
+ };
135
+ export type BillRowActionSummaryMap = Partial<Record<BillRowActionId, BillRowActionSummaryState>>;
136
+ export interface BillCounterparty {
137
+ kind: BillCounterpartyKind;
138
+ /**
139
+ * The linked entity's name as the list shows it today: the patient of
140
+ * `doctorCarePlan` (DB:92), `doctorCompany.name` (DB:1203,
141
+ * DoctorCompany.php:20) or the `doctorOperator` (DB:1208). Fallback for a
142
+ * bill with no linked entity: `getRelevantCounterpartName()` (DB:2099).
143
+ * NOT the SDI sending snapshot. Masked under privacy mode unless `kind`
144
+ * is `company`.
145
+ */
146
+ name: string;
147
+ /** The linked entity is soft-deleted (`DoctorCompany.deleted`,
148
+ * DoctorCompany.php:94; list.html.twig:100-112 appends "(cancellato)"). */
149
+ deleted?: boolean;
150
+ }
151
+ export interface BillRow {
152
+ /** `DoctorBill.id` (DB:82), as a string. The only field in the DOM. */
153
+ id: string;
154
+ /** `getNumberPrefixAndNumber()` (DB:1687): `incomingNumber` (DB:1617)
155
+ * for incoming, `outgoingNumberPrefix` (DB:1607) + `outgoingNumber`
156
+ * (DB:1612) for outgoing. Plain text, never masked: it names the row. */
157
+ number: string;
158
+ /** `DoctorBill.type` (DB:854). */
159
+ type: BillType;
160
+ /** `DoctorBill.date` (DB:72) as a calendar day `YYYY-MM-DD`. */
161
+ date: string;
162
+ /** `DoctorBill.direction` (DB:1198). */
163
+ direction: BillDirection;
164
+ /** `null` when the bill has no counterparty at all. */
165
+ counterparty: BillCounterparty | null;
166
+ /**
167
+ * `getGross()` (DB:773; SQL alias `gross`, REPO:1018) in minor units:
168
+ * the host sends `(int) round($gross * 100)` from PHP. Exact here only
169
+ * because SQL already rounds `gross` to 2 places (REPO:1016-1018);
170
+ * FatturaPA line values (up to 8 places) travel as decimal strings
171
+ * instead (BillLineTable). Never parsed from a float string in the
172
+ * browser. Sign as stored: negative for a credit note
173
+ * (`DoctorBill::setNet` asserts net <= 0 for credit bills,
174
+ * `DoctorBill.php:341-342`). The cell uses Money's default tone, so a
175
+ * credit note reads as a minus sign, not an alarm. In the table's
176
+ * `currency`. The amount FILTER is in major units (see
177
+ * `BillTableFilterModel.amount`).
178
+ */
179
+ amountMinor: number;
180
+ paymentStatus: BillPaymentStatus;
181
+ /** Earliest open liability date (`DoctorBill.liabilities` DB:952,
182
+ * `Liability.date`), `YYYY-MM-DD`; shown under `unpaid`,
183
+ * `partiallyPaid` and `overdue` only. */
184
+ nextDueDate?: string | null;
185
+ sdiStatus: BillSdiStatus;
186
+ /** See `BillWarehouseStatus`. Read only when `showWarehouseStatus`. */
187
+ warehouseStatus?: BillWarehouseStatus | null;
188
+ /** Per-row availability; absent action = hidden. `open` should always be
189
+ * present (the bill number is the open control). */
190
+ actions: BillRowActionMap;
191
+ }
192
+ /**
193
+ * Sums over every bill that matches the query (all pages) for ONE
194
+ * direction. Same sums as today (CTRL:289-297, GeneralManager.php:193-232),
195
+ * split by direction because today's single sum adds costs and revenue
196
+ * together. Minor units, `(int) round($sum * 100)` on the server (exact:
197
+ * every summand is already at 2 places). Signed: credit notes count
198
+ * negative, as stored.
199
+ */
200
+ export interface BillDirectionTotals {
201
+ /** Bills counted (`count($rows)`, GeneralManager.php:199-203). */
202
+ count: number;
203
+ /** Sum of SQL `gross` (REPO:1018). */
204
+ grossMinor: number;
205
+ /** Sum of `db.net` (DB:67). */
206
+ netMinor: number;
207
+ /** Sum of `db.vat` (DB:747). */
208
+ vatMinor: number;
209
+ /** Sum of `db.tax_at_source` (DB:1419). */
210
+ taxAtSourceMinor: number;
211
+ /** Sum of SQL `paid_amount` (REPO:1032). */
212
+ paidMinor: number;
213
+ /** Sum of SQL `unpaid_amount` (REPO:1033). */
214
+ unpaidMinor: number;
215
+ }
216
+ /** A direction with no matching bill is `null` or absent and gets no line. */
217
+ export interface BillTableTotals {
218
+ incoming?: BillDirectionTotals | null;
219
+ outgoing?: BillDirectionTotals | null;
220
+ }
221
+ export declare const BILL_TABLE_COLUMNS: readonly ["number", "date", "direction", "counterparty", "amount", "paymentStatus", "sdiStatus", "warehouseStatus", "actions"];
222
+ export type BillTableColumnId = (typeof BILL_TABLE_COLUMNS)[number];
223
+ /** Columns the server can sort. Default: all four. */
224
+ export declare const BILL_TABLE_SORT_COLUMNS: readonly ["number", "date", "counterparty", "amount"];
225
+ export type BillTableSortColumn = (typeof BILL_TABLE_SORT_COLUMNS)[number];
226
+ export interface BillTableSortEntry {
227
+ colId: BillTableSortColumn;
228
+ sort: 'asc' | 'desc';
229
+ }
230
+ /** A set filter whose values are one of BillTable's enums. Assignable to
231
+ * the kit `SelectFilterModel`. */
232
+ export interface BillSetFilter<TValue extends string> {
233
+ type: 'set';
234
+ values: TValue[];
235
+ }
236
+ /** Relative periods the server resolves on each request, so a saved tab
237
+ * "This year" stays right next year. Replaces CTRL:160-163's fixed
238
+ * `date_from`. */
239
+ export type BillDatePreset = 'today' | 'thisMonth' | 'thisYear';
240
+ /**
241
+ * Every filter BillTable carries. Column keys are evaluated by the server
242
+ * from the column filters in the header; host keys are written by the
243
+ * platform's own advanced-filter panel (`toolbarStart`) and are never
244
+ * evaluated by the kit. Chips show a host key's label only, never its value.
245
+ * A type alias (not an interface) so it is assignable to
246
+ * `DataGridFilterModel`.
247
+ */
248
+ export type BillTableFilterModel = {
249
+ /** FORM `date_from`/`date_to`. */
250
+ date?: DateRangeFilterModel;
251
+ /** FORM `direction`. */
252
+ direction?: BillSetFilter<BillDirection>;
253
+ /** FORM `amount_from`/`amount_to` (`inRange`, either bound). MAJOR units
254
+ * as typed (12.50), like the platform form. Note the unit differs from
255
+ * `BillRow.amountMinor` (minor units): the server converts. */
256
+ amount?: NumberFilterModel;
257
+ /** New: needs the derived status in SQL. */
258
+ paymentStatus?: BillSetFilter<BillPaymentStatus>;
259
+ /** New: needs the derived status in SQL. */
260
+ sdiStatus?: BillSetFilter<BillSdiStatus>;
261
+ /** New (HTP-7312). Ignored by the server without the module. */
262
+ warehouseStatus?: BillSetFilter<BillWarehouseStatus>;
263
+ datePreset?: BillDatePreset;
264
+ /** FORM `type` (multi). */
265
+ type?: BillSetFilter<BillType>;
266
+ /** FORM `number` (exact). Shares its id with the `number` column, so
267
+ * DataGrid reads it as that column's key: its chip is named by the
268
+ * column, not by `filterLabels` (a bill number is not personal data). */
269
+ number?: string;
270
+ /** FORM `prefix` (exact). */
271
+ prefix?: string;
272
+ /** FORM yes/no fields: `true` = yes, `false` = no, absent = any. */
273
+ withInsuranceNet?: boolean;
274
+ withVat?: boolean;
275
+ withTaxAtSource?: boolean;
276
+ withWelfareFundContribution?: boolean;
277
+ withUnpaidAmount?: boolean;
278
+ writtenOff?: boolean;
279
+ /** FORM `tax_office_notification`. */
280
+ taxOfficeNotification?: boolean;
281
+ /** FORM `fatturazione_elettronica_incoming_bill`. */
282
+ receivedFromSdi?: boolean;
283
+ /** FORM `fatturazione_elettronica_sending_bill` (accepted by SDI,
284
+ * CTRL:189-211). */
285
+ sentToSdi?: boolean;
286
+ /** FORM `self_bill`. */
287
+ selfBill?: boolean;
288
+ /** FORM `with_liability_from`/`_to`. */
289
+ liabilityDate?: DateRangeFilterModel;
290
+ /** FORM `sdi_entry_date_from`/`_to`. */
291
+ sdiEntryDate?: DateRangeFilterModel;
292
+ /** FORM `relation_type`. */
293
+ relationType?: 'patient' | 'company' | 'operator';
294
+ /** FORM `relation`: an entity id, never a name. */
295
+ relation?: {
296
+ type: 'patient' | 'company' | 'operator';
297
+ id: string;
298
+ };
299
+ /** FORM `insurance`: an insurer key or `'none'`. */
300
+ insurance?: string;
301
+ /** FORM `personal_assistant`: a practice member id. */
302
+ personalAssistant?: string;
303
+ };
304
+ export type BillTableHostFilterKey = Exclude<keyof BillTableFilterModel, BillTableColumnId>;
305
+ /** The query a host holds and feeds back (controlled). */
306
+ export interface BillTableQueryState {
307
+ /** Default `[{ colId: 'date', sort: 'desc' }]` (CTRL:180-183). */
308
+ sorting: BillTableSortEntry[];
309
+ filters: BillTableFilterModel;
310
+ /** Matches the bill number and, unless `privacyMode`, the counterparty
311
+ * name. New on the platform (no free-text search today). */
312
+ quickFilter: string;
313
+ /** Zero-based. Default `{ pageIndex: 0, pageSize: 25 }`. */
314
+ pagination: DataGridPagination;
315
+ }
316
+ /** What `onQueryChange` reports: the state plus the privacy flag, so the
317
+ * server searches bill numbers only while names are hidden. */
318
+ export interface BillTableQuery extends BillTableQueryState {
319
+ privacyMode: boolean;
320
+ }
321
+ /** Who triggered a row action: a person in the table, or the handle (an
322
+ * agent). The platform can keep agent calls out of its analytics. */
323
+ export type BillActionSource = 'user' | 'api';
324
+ export interface BillActionContext {
325
+ source: BillActionSource;
326
+ }
327
+ /** HTP-7312 analytics: `bill_warehouse_load_clicked { warehouse_status }`. */
328
+ export interface BillLoadContext extends BillActionContext {
329
+ /** The row's status, or `null` (not computed without the module). */
330
+ warehouseStatus: BillWarehouseStatus | null;
331
+ }
332
+ export type BillDownloadFormat = 'pdf' | 'xml';
333
+ /** List downloads that apply the current query to EVERY matching bill
334
+ * (index.html.twig:91-131, IndexPage.js:29-34). Labels are kit copy. */
335
+ export declare const BILL_LIST_DOWNLOADS: readonly ["csv", "csvDetailed", "pdfZip", "pdfSingle", "xmlOutgoingZip", "xmlIncomingZip"];
336
+ export type BillListDownloadKind = (typeof BILL_LIST_DOWNLOADS)[number];
337
+ export interface BillTableProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dir' | 'onChange'> {
338
+ /** The current page only. */
339
+ rows: readonly BillRow[];
340
+ /** Bills matching the query, all pages. `-1` = unknown. */
341
+ rowCount: number;
342
+ /** ISO 4217, for every amount (`current_doctor_address().currency`,
343
+ * list.html.twig:2). Default `'EUR'`. */
344
+ currency?: string;
345
+ /** Server sums, all pages. Absent or `null`: no totals row (the user
346
+ * lacks `practice_see_total_values`, index.html.twig:309-311). */
347
+ totals?: BillTableTotals | null;
348
+ /** Controlled. Pair with `onQueryChange`. */
349
+ query?: BillTableQueryState;
350
+ /** Uncontrolled seed. */
351
+ defaultQuery?: Partial<BillTableQueryState>;
352
+ /** The single fetch trigger. Never fires on mount; fires once per change
353
+ * of sorting, filters, quick search, page or page size (a sort, filter or
354
+ * search change resets the page to 0), whatever the source (the UI, the
355
+ * handle, a DataGridTabs switch, a new controlled `query`), and once when
356
+ * `privacyMode` changes while a quick search or a counterparty sort is
357
+ * active. That last emission is DataGrid's (the query carries the
358
+ * effective sort: a counterparty sort is paused, not sent, while names
359
+ * are hidden, and comes back when privacy mode turns off); BillTable only
360
+ * adds `privacyMode` to it and never emits on its own. A controlled host
361
+ * stores what this reports and passes it back as `query`. */
362
+ onQueryChange?: (query: BillTableQuery) => void;
363
+ /** Columns the server can sort. Default all of
364
+ * `BILL_TABLE_SORT_COLUMNS`. */
365
+ sortableColumns?: readonly BillTableSortColumn[];
366
+ /** Default `[25, 50, 100]`. */
367
+ pageSizeOptions?: readonly number[];
368
+ /** Checkbox column and bulk actions. Default `true`; `false` for a
369
+ * read-only list. */
370
+ selectable?: boolean;
371
+ /** Controlled ids, every page. Survives paging and sorting; cleared when
372
+ * filters or quick search change (DataGrid
373
+ * `clearSelectionOnFilterChange`, always on). */
374
+ selection?: readonly string[];
375
+ defaultSelection?: readonly string[];
376
+ onSelectionChange?: (ids: string[]) => void;
377
+ /** Adds the warehouse status column (HTP-7314: practices with the
378
+ * module). Does not affect the `loadIntoWarehouse` action. */
379
+ showWarehouseStatus?: boolean;
380
+ /** BillTable's `data-component-id` and agent instance id, and the inner
381
+ * DataGrid's column-state storage key. Default `'accounting-bills'`.
382
+ * The inner DataGrid gets `registerAgent={false}`, so only
383
+ * `billTableAgent` registers under this id. */
384
+ gridId?: string;
385
+ /** Default `true`. */
386
+ persistColumnState?: boolean;
387
+ onOpen: (row: BillRow, context: BillActionContext) => void;
388
+ onDownload?: (row: BillRow, format: BillDownloadFormat, context: BillActionContext) => void;
389
+ onLoadIntoWarehouse?: (row: BillRow, context: BillLoadContext) => void;
390
+ onEdit?: (row: BillRow, context: BillActionContext) => void;
391
+ onRecordPayment?: (row: BillRow, context: BillActionContext) => void;
392
+ /** `revert` true = "Undo write-off". */
393
+ onWriteOff?: (row: BillRow, revert: boolean, context: BillActionContext) => void;
394
+ /** The host confirms (AlertDialog) before deleting. */
395
+ onDelete?: (row: BillRow, context: BillActionContext) => void;
396
+ /** Shows "Download PDFs" and "Download XML files" for the selection. */
397
+ onBulkDownload?: (ids: string[], format: BillDownloadFormat) => void;
398
+ /** List downloads offered in the toolbar's download menu, in this order.
399
+ * Default none. */
400
+ listDownloads?: readonly BillListDownloadKind[];
401
+ onListDownload?: (kind: BillListDownloadKind, query: BillTableQuery) => void;
402
+ /** Shows the toolbar Refresh button. */
403
+ onRefresh?: () => void;
404
+ /** Host content at the start of the filter bar: the platform's
405
+ * "Show advanced filters" trigger, whose panel writes host keys through
406
+ * the controlled `query` or `handle.setFilter`. */
407
+ toolbarStart?: ReactNode;
408
+ /** Chip labels for extra host keys the platform adds later (translated
409
+ * by the host). Kit keys already have kit labels. Don't name a person
410
+ * in a label. */
411
+ extraFilterLabels?: Record<string, string>;
412
+ /** Default `'ready'`. */
413
+ status?: 'ready' | 'loading' | 'error';
414
+ /** Overrides `ui.billTable.error.*`; `onRetry` shows "Try again".
415
+ * Don't name a person in the title or description. */
416
+ error?: {
417
+ title?: string;
418
+ description?: string;
419
+ onRetry?: () => void;
420
+ };
421
+ /** First-use action ("Add bill"); omitted when the user cannot create. */
422
+ onCreateBill?: () => void;
423
+ /** Heading level for the empty and error states. Default 3. */
424
+ headingLevel?: EmptyStateHeadingLevel;
425
+ /** Masks patient and person names; companies stay visible. Default
426
+ * `false`. */
427
+ privacyMode?: boolean;
428
+ /** Default `t('billTable.caption')`, "Bills". */
429
+ caption?: string;
430
+ /** Default `'default'`. */
431
+ density?: 'default' | 'compact';
432
+ /** `'fill'`: BillTable fills a flex column parent and its grid becomes
433
+ * the bounded scroll container, so the header and the totals row stay
434
+ * in view and a page above 100 rows is virtualised. Give the parent a
435
+ * bounded block size. Default `'auto'` (the grid grows with its rows). */
436
+ height?: 'auto' | 'fill';
437
+ }
438
+ export interface BillTableFeatureInfo {
439
+ selectable: boolean;
440
+ privacyMode: boolean;
441
+ showWarehouseStatus: boolean;
442
+ sortableColumns: BillTableSortColumn[];
443
+ status: 'ready' | 'loading' | 'error';
444
+ }
445
+ export interface BillTableColumnInfo {
446
+ id: BillTableColumnId;
447
+ /** Plain, translated name. */
448
+ label: string;
449
+ visible: boolean;
450
+ canHide: boolean;
451
+ sortable: boolean;
452
+ /** Masked by privacy mode (counterparty while `privacyMode`). */
453
+ masked: boolean;
454
+ }
455
+ /**
456
+ * One bill as an agent may read it (state slot `rows`). The counterparty
457
+ * name is present only for `company`; patients and other people are never
458
+ * named here, whatever `privacyMode` says (agent state carries no PHI,
459
+ * `src/agent/types.ts:76-80`).
460
+ */
461
+ export interface BillRowSummary {
462
+ id: string;
463
+ number: string;
464
+ type: BillType;
465
+ date: string;
466
+ direction: BillDirection;
467
+ counterpartyKind: BillCounterpartyKind | null;
468
+ counterpartyName?: string;
469
+ amountMinor: number;
470
+ paymentStatus: BillPaymentStatus;
471
+ sdiStatus: BillSdiStatus;
472
+ warehouseStatus: BillWarehouseStatus | null;
473
+ /** Reason codes only: a host's own text reads as `'host'`. */
474
+ actions: BillRowActionSummaryMap;
475
+ }
476
+ /** Who caused a change, as DataGrid reports it. */
477
+ export type BillTableChange = DataGridChange;
478
+ /**
479
+ * Curated handle (`ref`). Ids and kit shapes only: no DataGrid handle, no
480
+ * TanStack object, no row object, no DOM node. Reads go to the live grid,
481
+ * so a read straight after a write is fresh.
482
+ *
483
+ * Saved views: wrap BillTable in `DataGridTabs`. The DataGrid inside
484
+ * registers itself with the tabs through context, so no `getTable` is
485
+ * needed. This handle is not a `DataGridTabsSeam` (the seam also needs
486
+ * `applyView`, `isPrivacyMode` and DataGrid's full column info), so do not
487
+ * pass it as `getTable`.
488
+ */
489
+ export interface BillTableHandle {
490
+ getFeatures(): BillTableFeatureInfo;
491
+ /** The effective query, as `onQueryChange` reports it (a paused
492
+ * counterparty sort left out under privacy mode). */
493
+ getQuery(): BillTableQuery;
494
+ /** Refused (no-op, DEV warning) for a column outside `sortableColumns`
495
+ * or masked by privacy mode. The server sorts by one column: only the
496
+ * first entry is used. */
497
+ setSort(model: readonly BillTableSortEntry[]): void;
498
+ /** Every filter the table holds: column models and host keys, a filter
499
+ * paused by privacy mode included. */
500
+ getFilter(): BillTableFilterModel;
501
+ setFilter(model: BillTableFilterModel, options?: DataGridWriteOptions): void;
502
+ getQuickFilter(): string;
503
+ setQuickFilter(text: string, options?: DataGridWriteOptions): void;
504
+ clearFilters(): void;
505
+ goToPage(pageIndex: number): void;
506
+ setPageSize(size: number): void;
507
+ /** `-1` when the total is unknown. */
508
+ getPageCount(): number;
509
+ getRowCount(): number;
510
+ /** The current page, display order. */
511
+ getRowIds(): string[];
512
+ getSelection(): string[];
513
+ setSelection(ids: readonly string[]): void;
514
+ selectRange(fromId: string, toId: string): void;
515
+ clearSelection(): void;
516
+ getColumns(): BillTableColumnInfo[];
517
+ setColumnVisible(id: BillTableColumnId, visible: boolean): void;
518
+ resetColumns(): void;
519
+ scrollToRow(id: string): void;
520
+ /** Focus the row's control in `columnId` (`number` = the open button,
521
+ * `actions` = the menu button). Default `number`. */
522
+ focusRow(id: string, columnId?: 'number' | 'actions'): void;
523
+ /** Never a patient's or person's name; see `BillRowSummary`. */
524
+ getRowSummaries(): BillRowSummary[];
525
+ /** The actions the table offers for the row: entries of `row.actions`
526
+ * whose callback is set (`open` always has one). Under privacy mode
527
+ * every host's own disabled text reads as kit copy, whatever the
528
+ * counterparty. For the host; agents read `getRowSummaries()`, which
529
+ * carries reason codes only. Throws `UNKNOWN_ROW`. */
530
+ getRowActions(id: string): BillRowActionMap;
531
+ /** Throws `UNKNOWN_ROW`, `ACTION_UNAVAILABLE` (absent from the row's map,
532
+ * or no callback) or `ACTION_DISABLED: <reason>`, where the reason is the
533
+ * kit code or `host` (never a host's text). */
534
+ openBill(id: string): void;
535
+ downloadBill(id: string, format: BillDownloadFormat): void;
536
+ loadIntoWarehouse(id: string): void;
537
+ subscribe(listener: (change: BillTableChange) => void): () => void;
538
+ }
539
+ /** Stable tab ids (developer constants; emitted as `data-tab-id`). */
540
+ export declare const BILL_TABLE_DEFAULT_TAB_IDS: readonly ["bills-this-year", "bills-all", "bills-incoming", "bills-outgoing", "bills-to-pay", "bills-to-collect", "bills-to-load"];
541
+ export type BillTableDefaultTabId = (typeof BILL_TABLE_DEFAULT_TAB_IDS)[number];
542
+ //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,4 @@
1
- import { B as m } from "../../_chunks/bmi-calculator-Ba4yoR31.js";
1
+ import { B as m } from "../../_chunks/bmi-calculator-BjUfXqcY.js";
2
2
  import { b as e, a as t, c as r, d as T, e as c, f as i, i as b, k as n, l as f } from "../../_chunks/bmi-BxD-tFzU.js";
3
3
  export {
4
4
  m as BmiCalculator,
@@ -1,4 +1,4 @@
1
- import { B as s, a, C as R, O as g, b as n, c as A } from "../../_chunks/reserved.agent-D2jwJPac.js";
1
+ import { B as s, a, C as R, O as g, b as n, c as A } from "../../_chunks/reserved.agent-C1zRHaya.js";
2
2
  export {
3
3
  s as Booking,
4
4
  a as BookingReserved,
@@ -1,4 +1,4 @@
1
- import { B as t } from "../../_chunks/button-group-CUnNnt8a.js";
1
+ import { B as t } from "../../_chunks/button-group-BvU9vRnX.js";
2
2
  export {
3
3
  t as ButtonGroup
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as l } from "../../_chunks/calculator-dialog-D4TyJwqy.js";
1
+ import { C as l } from "../../_chunks/calculator-dialog-BGX5XQCM.js";
2
2
  export {
3
3
  l as CalculatorDialog
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as e, c as C } from "../../_chunks/care-plan-card-DMjlYlFc.js";
1
+ import { C as e, c as C } from "../../_chunks/care-plan-card-CfV8jiF0.js";
2
2
  export {
3
3
  e as CarePlanCard,
4
4
  C as carePlanCardAgent
@@ -1,4 +1,4 @@
1
- import { C as n, c as e } from "../../_chunks/care-plan-entry-card-3hguBW45.js";
1
+ import { C as n, c as e } from "../../_chunks/care-plan-entry-card-Bt01kyTl.js";
2
2
  export {
3
3
  n as CarePlanEntryCard,
4
4
  e as carePlanEntryCardAgent
@@ -1,4 +1,4 @@
1
- import { C as t, c as s, a as c } from "../../_chunks/chart-bddVIElM.js";
1
+ import { C as t, c as s, a as c } from "../../_chunks/chart-BSx8cfMm.js";
2
2
  export {
3
3
  t as Chart,
4
4
  s as chartAgent,
@@ -1,4 +1,4 @@
1
- import { C as n, c as e } from "../../_chunks/chat-container-baxzy8k8.js";
1
+ import { C as n, c as e } from "../../_chunks/chat-container-B83b4hut.js";
2
2
  export {
3
3
  n as ChatContainer,
4
4
  e as chatContainerAgent