@alfadocs/ui-kit 1.115.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 (268) hide show
  1. package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
  2. package/dist/_chunks/{actions-cell-renderer-bI27uXXC.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/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-gEXqU5i5.js} +6 -6
  5. package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-BMZoXaGx.js} +3 -3
  6. package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-0k4LxODn.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-DIxpgIXM.js} +2 -2
  9. package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
  10. package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-L7bD0Nsh.js} +6 -6
  11. package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
  12. package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
  13. package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
  14. package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
  15. package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +16 -16
  16. package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-CfV8jiF0.js} +3 -3
  17. package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-Bt01kyTl.js} +3 -3
  18. package/dist/_chunks/{chart-DebrFZ6L.js → chart-BSx8cfMm.js} +2 -2
  19. package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
  20. package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
  21. package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
  22. package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
  23. package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
  24. package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-Brd0PP4U.js} +2 -2
  25. package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
  26. package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-ByhrYGVw.js} +3013 -3106
  27. package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
  28. package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-B47iw2CO.js} +101 -100
  29. package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-B-DUtfw3.js} +7 -7
  30. package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
  31. package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
  32. package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
  33. package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
  34. package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-DzIQXEX5.js} +2 -2
  35. package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-p-Q1UkZS.js} +2 -2
  36. package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
  37. package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-CEjJUnNe.js} +19 -18
  38. package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
  39. package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-DEe51ZDe.js} +5 -5
  40. package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
  41. package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
  42. package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BUZQkSYC.js} +2 -2
  43. package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
  44. package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-tn1WxoMT.js} +3 -3
  45. package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
  46. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  47. package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-Ca2VkXy5.js} +2 -2
  48. package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-BFfLg7c-.js} +6 -6
  49. package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-D-Io828l.js} +4 -4
  50. package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-CBHNg8x-.js} +4 -4
  51. package/dist/_chunks/money-OE6_oDPH.js +138 -0
  52. package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
  53. package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-DexbfrFo.js} +3 -3
  54. package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
  55. package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
  56. package/dist/_chunks/parts-CtcTW1PN.js +869 -0
  57. package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-PJ0Y__7t.js} +2 -2
  58. package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
  59. package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
  60. package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-BOfXDP8a.js} +3 -3
  61. package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
  62. package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
  63. package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-Bg_VUPwl.js} +2 -2
  64. package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
  65. package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
  66. package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
  67. package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-C1zRHaya.js} +4 -4
  68. package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-r80Zw8ll.js} +12 -11
  69. package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
  70. package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
  71. package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
  72. package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
  73. package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-DgUjtqpX.js} +168 -178
  74. package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-B5Nsf10r.js} +2 -2
  75. package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-DfvdEg_V.js} +3 -3
  76. package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
  77. package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
  78. package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
  79. package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
  80. package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
  81. package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
  82. package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
  83. package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-_r7cjTtm.js} +7 -7
  84. package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
  85. package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
  86. package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
  87. package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
  88. package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-DM3W8XZE.js} +2 -2
  89. package/dist/agent-catalog.json +1080 -1
  90. package/dist/agent-i18n/en.json +50 -0
  91. package/dist/components/_shared/accessible-target.d.ts +12 -0
  92. package/dist/components/_shared/decimal.d.ts +171 -0
  93. package/dist/components/_shared/format-price.d.ts +54 -2
  94. package/dist/components/address-fields/index.js +1 -1
  95. package/dist/components/appointment-card/index.js +2 -2
  96. package/dist/components/appointment-details-panel/index.js +1 -1
  97. package/dist/components/appointment-peek/index.js +1 -1
  98. package/dist/components/appointment-timeline/index.js +1 -1
  99. package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
  100. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
  101. package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
  102. package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
  103. package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
  104. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
  105. package/dist/components/bill-line-table/index.d.ts +6 -0
  106. package/dist/components/bill-line-table/index.js +23 -0
  107. package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
  108. package/dist/components/bill-table/bill-table.d.ts +13 -0
  109. package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
  110. package/dist/components/bill-table/cells.d.ts +89 -0
  111. package/dist/components/bill-table/columns.d.ts +21 -0
  112. package/dist/components/bill-table/default-tabs.d.ts +21 -0
  113. package/dist/components/bill-table/handle.d.ts +19 -0
  114. package/dist/components/bill-table/index.d.ts +7 -0
  115. package/dist/components/bill-table/index.js +19 -0
  116. package/dist/components/bill-table/model.d.ts +103 -0
  117. package/dist/components/bill-table/row-actions.d.ts +27 -0
  118. package/dist/components/bill-table/status-maps.d.ts +225 -0
  119. package/dist/components/bill-table/types.d.ts +542 -0
  120. package/dist/components/bmi-calculator/index.js +1 -1
  121. package/dist/components/booking/index.js +1 -1
  122. package/dist/components/button-group/index.js +1 -1
  123. package/dist/components/calculator-dialog/index.js +1 -1
  124. package/dist/components/care-plan-card/index.js +1 -1
  125. package/dist/components/care-plan-entry-card/index.js +1 -1
  126. package/dist/components/chart/index.js +1 -1
  127. package/dist/components/combobox/combobox.d.ts +59 -1
  128. package/dist/components/combobox/index.d.ts +1 -1
  129. package/dist/components/combobox/index.js +1 -1
  130. package/dist/components/contact-profile-card/index.js +1 -1
  131. package/dist/components/country-select/index.js +1 -1
  132. package/dist/components/cycle-calculator/index.js +1 -1
  133. package/dist/components/dashboard-grid/index.js +1 -1
  134. package/dist/components/data-grid/body.d.ts +6 -0
  135. package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
  136. package/dist/components/data-grid/editors.d.ts +7 -1
  137. package/dist/components/data-grid/index.js +9 -8
  138. package/dist/components/data-grid/selection.d.ts +10 -0
  139. package/dist/components/data-grid/types.d.ts +61 -11
  140. package/dist/components/data-grid-tabs/index.js +1 -1
  141. package/dist/components/data-table/index.js +4 -4
  142. package/dist/components/dialog/focus-return.d.ts +12 -0
  143. package/dist/components/dialog/index.js +1 -1
  144. package/dist/components/document-preview/index.js +1 -1
  145. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
  146. package/dist/components/dropdown-menu/index.js +1 -1
  147. package/dist/components/due-date-calculator/index.js +1 -1
  148. package/dist/components/face-scheme/index.js +1 -1
  149. package/dist/components/fetal-weight/index.js +1 -1
  150. package/dist/components/file-manager/index.js +1 -1
  151. package/dist/components/hcg-doubling/index.js +1 -1
  152. package/dist/components/header-settings/index.js +1 -1
  153. package/dist/components/heatmap/index.js +1 -1
  154. package/dist/components/icon-button-group/index.js +1 -1
  155. package/dist/components/index.d.ts +6 -0
  156. package/dist/components/money/index.js +1 -1
  157. package/dist/components/money/money.d.ts +39 -6
  158. package/dist/components/muscle-scheme/index.js +1 -1
  159. package/dist/components/notes-panel/index.js +1 -1
  160. package/dist/components/number-input/index.d.ts +2 -2
  161. package/dist/components/number-input/index.js +1 -1
  162. package/dist/components/number-input/number-input.d.ts +43 -2
  163. package/dist/components/number-input/use-locale-number.d.ts +67 -3
  164. package/dist/components/optical-prescription/index.js +1 -1
  165. package/dist/components/patient-details/index.js +1 -1
  166. package/dist/components/patient-search/index.js +1 -1
  167. package/dist/components/patient-summary-card/index.js +1 -1
  168. package/dist/components/patient-table/index.js +1 -1
  169. package/dist/components/payment-card/index.js +1 -1
  170. package/dist/components/practice-results/index.js +1 -1
  171. package/dist/components/pregnancy-dating/index.js +1 -1
  172. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  173. package/dist/components/province-select/index.js +1 -1
  174. package/dist/components/radiograph-panel/index.js +1 -1
  175. package/dist/components/rich-text-editor/index.js +2 -2
  176. package/dist/components/row-actions/index.d.ts +3 -0
  177. package/dist/components/row-actions/index.js +5 -0
  178. package/dist/components/row-actions/row-actions.d.ts +63 -0
  179. package/dist/components/skeleton-scheme/index.js +1 -1
  180. package/dist/components/smart-date/smart-date.d.ts +1 -1
  181. package/dist/components/tab-bar/index.js +1 -1
  182. package/dist/components/tabs/index.js +1 -1
  183. package/dist/components/task-editor/index.js +1 -1
  184. package/dist/components/tasks-panel/index.js +1 -1
  185. package/dist/components/theme-toggle/index.js +1 -1
  186. package/dist/components/token-insert-menu/index.js +1 -1
  187. package/dist/components/tooth-scheme/index.js +1 -1
  188. package/dist/components/transaction-chip/index.js +1 -1
  189. package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
  190. package/dist/components/treatment-receipt/index.js +1 -1
  191. package/dist/components/unit-converter/index.js +1 -1
  192. package/dist/components/widget-picker/index.js +1 -1
  193. package/dist/components/workflow/index.js +1 -1
  194. package/dist/components/workflow-status/index.js +1 -1
  195. package/dist/core.css +1 -1
  196. package/dist/decimal/index.js +149 -0
  197. package/dist/host-compat.css +4 -1
  198. package/dist/i18n/locales/ar.d.ts +248 -0
  199. package/dist/i18n/locales/ar.js +249 -1
  200. package/dist/i18n/locales/de.d.ts +248 -0
  201. package/dist/i18n/locales/de.js +249 -1
  202. package/dist/i18n/locales/el.d.ts +248 -0
  203. package/dist/i18n/locales/el.js +249 -1
  204. package/dist/i18n/locales/en.d.ts +248 -0
  205. package/dist/i18n/locales/en.js +249 -1
  206. package/dist/i18n/locales/es.d.ts +248 -0
  207. package/dist/i18n/locales/es.js +249 -1
  208. package/dist/i18n/locales/fr.d.ts +248 -0
  209. package/dist/i18n/locales/fr.js +249 -1
  210. package/dist/i18n/locales/hi.d.ts +248 -0
  211. package/dist/i18n/locales/hi.js +249 -1
  212. package/dist/i18n/locales/it.d.ts +248 -0
  213. package/dist/i18n/locales/it.js +249 -1
  214. package/dist/i18n/locales/ja.d.ts +248 -0
  215. package/dist/i18n/locales/ja.js +249 -1
  216. package/dist/i18n/locales/nl.d.ts +248 -0
  217. package/dist/i18n/locales/nl.js +249 -1
  218. package/dist/i18n/locales/pl.d.ts +248 -0
  219. package/dist/i18n/locales/pl.js +249 -1
  220. package/dist/i18n/locales/pt.d.ts +248 -0
  221. package/dist/i18n/locales/pt.js +249 -1
  222. package/dist/i18n/locales/ro.d.ts +248 -0
  223. package/dist/i18n/locales/ro.js +249 -1
  224. package/dist/i18n/locales/ru.d.ts +248 -0
  225. package/dist/i18n/locales/ru.js +249 -1
  226. package/dist/i18n/locales/sq.d.ts +248 -0
  227. package/dist/i18n/locales/sq.js +249 -1
  228. package/dist/i18n/locales/sv.d.ts +248 -0
  229. package/dist/i18n/locales/sv.js +249 -1
  230. package/dist/i18n/locales/tr.d.ts +248 -0
  231. package/dist/i18n/locales/tr.js +249 -1
  232. package/dist/i18n/locales/zh.d.ts +248 -0
  233. package/dist/i18n/locales/zh.js +249 -1
  234. package/dist/index.js +1298 -1246
  235. package/dist/locales/ar.json +249 -1
  236. package/dist/locales/de.json +249 -1
  237. package/dist/locales/el.json +249 -1
  238. package/dist/locales/en.json +249 -1
  239. package/dist/locales/es.json +249 -1
  240. package/dist/locales/fr.json +249 -1
  241. package/dist/locales/hi.json +249 -1
  242. package/dist/locales/it.json +249 -1
  243. package/dist/locales/ja.json +249 -1
  244. package/dist/locales/nl.json +249 -1
  245. package/dist/locales/pl.json +249 -1
  246. package/dist/locales/pt.json +249 -1
  247. package/dist/locales/ro.json +249 -1
  248. package/dist/locales/ru.json +249 -1
  249. package/dist/locales/sq.json +249 -1
  250. package/dist/locales/sv.json +249 -1
  251. package/dist/locales/tr.json +249 -1
  252. package/dist/locales/zh.json +249 -1
  253. package/dist/patterns/anamnesis/index.js +1 -1
  254. package/dist/patterns/calendar/index.js +1 -1
  255. package/dist/patterns/help-me-write-templates/index.js +1 -1
  256. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  257. package/dist/patterns/signature-request/index.js +1 -1
  258. package/dist/patterns/verify-identity/index.js +1 -1
  259. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  260. package/dist/tokens.css +1 -1
  261. package/package.json +17 -1
  262. package/dist/_chunks/combobox-duuDRI1t.js +0 -688
  263. package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
  264. package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
  265. package/dist/_chunks/money-Tsczpjfz.js +0 -102
  266. package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
  267. package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
  268. package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.115.0",
3
+ "packageVersion": "1.116.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1168,6 +1168,1085 @@
1168
1168
  }
1169
1169
  }
1170
1170
  },
1171
+ {
1172
+ "kind": "component",
1173
+ "id": "bill-line-table",
1174
+ "capabilities": [
1175
+ "select_multiple",
1176
+ "set_value",
1177
+ "scroll"
1178
+ ],
1179
+ "state": [
1180
+ {
1181
+ "name": "lines",
1182
+ "type": "Array<{ id, lineNumber, matchState, selected, selectable, readOnly, quantityLocked, itemKind, itemId, quantity, removesStock, warningCodes, invalid }>",
1183
+ "description": "Every invoice line in invoice order, with what Confirm will do with it. Quantities are exact decimal text as shown, unsigned; there are no descriptions or names.",
1184
+ "descriptionKey": "ui.agent.billLineTable.state.lines"
1185
+ },
1186
+ {
1187
+ "name": "selection",
1188
+ "type": "string[]",
1189
+ "description": "Ids of the ticked lines: the lines Confirm will load.",
1190
+ "descriptionKey": "ui.agent.billLineTable.state.selection"
1191
+ },
1192
+ {
1193
+ "name": "summary",
1194
+ "type": "{ lineCount, selectedCount, matchedCount, newItemCount, skippedCount, alreadyLoadedCount, warningLineCount, invoiceLoaded, invalidCount, net, vat, gross, canConfirm, dirty }",
1195
+ "description": "Counts and totals of the ticked lines. net, vat and gross are exact decimal text with 2 places (\"14.58\"). canConfirm is false while no line is ticked, a ticked line cannot load, or the invoice is already loaded (invoiceLoaded).",
1196
+ "descriptionKey": "ui.agent.billLineTable.state.summary"
1197
+ },
1198
+ {
1199
+ "name": "invalidLineIds",
1200
+ "type": "string[]",
1201
+ "description": "Ticked lines that cannot load as they are: an empty or zero quantity, an item no longer in the warehouse, or an error from the server.",
1202
+ "descriptionKey": "ui.agent.billLineTable.state.invalidLineIds"
1203
+ }
1204
+ ],
1205
+ "actions": [
1206
+ {
1207
+ "name": "select_lines",
1208
+ "safety": "write",
1209
+ "argsType": "{ ids: string[]; mode?: 'replace' | 'add' | 'remove' }",
1210
+ "argsSchema": {
1211
+ "type": "object",
1212
+ "properties": {
1213
+ "ids": {
1214
+ "type": "array",
1215
+ "items": {
1216
+ "type": "string",
1217
+ "minLength": 1
1218
+ },
1219
+ "uniqueItems": true
1220
+ },
1221
+ "mode": {
1222
+ "type": "string",
1223
+ "enum": [
1224
+ "replace",
1225
+ "add",
1226
+ "remove"
1227
+ ]
1228
+ }
1229
+ },
1230
+ "required": [
1231
+ "ids"
1232
+ ],
1233
+ "additionalProperties": false
1234
+ },
1235
+ "returns": "string[]",
1236
+ "idempotent": true,
1237
+ "errors": [
1238
+ "UNKNOWN_LINE",
1239
+ "LINE_READ_ONLY",
1240
+ "TABLE_READ_ONLY"
1241
+ ],
1242
+ "examples": [
1243
+ {
1244
+ "args": {
1245
+ "ids": [
1246
+ "ln-3",
1247
+ "ln-4"
1248
+ ],
1249
+ "mode": "add"
1250
+ }
1251
+ }
1252
+ ],
1253
+ "description": "Tick or untick lines. Lines of an invoice that is already loaded cannot be ticked. Returns the ticked ids.",
1254
+ "descriptionKey": "ui.agent.billLineTable.actions.selectLines"
1255
+ },
1256
+ {
1257
+ "name": "select_all_lines",
1258
+ "safety": "write",
1259
+ "returns": "string[]",
1260
+ "idempotent": true,
1261
+ "errors": [
1262
+ "TABLE_READ_ONLY"
1263
+ ],
1264
+ "description": "Tick every line that can load. Returns the ticked ids.",
1265
+ "descriptionKey": "ui.agent.billLineTable.actions.selectAllLines"
1266
+ },
1267
+ {
1268
+ "name": "clear_selection",
1269
+ "safety": "write",
1270
+ "returns": "string[]",
1271
+ "idempotent": true,
1272
+ "errors": [
1273
+ "TABLE_READ_ONLY"
1274
+ ],
1275
+ "description": "Untick every line.",
1276
+ "descriptionKey": "ui.agent.billLineTable.actions.clearSelection"
1277
+ },
1278
+ {
1279
+ "name": "set_quantity",
1280
+ "safety": "write",
1281
+ "argsType": "{ lineId: string; quantity: string }",
1282
+ "argsSchema": {
1283
+ "type": "object",
1284
+ "properties": {
1285
+ "lineId": {
1286
+ "type": "string",
1287
+ "minLength": 1
1288
+ },
1289
+ "quantity": {
1290
+ "type": "string",
1291
+ "pattern": "^[0-9]{1,8}([.][0-9]{1,8})?$"
1292
+ }
1293
+ },
1294
+ "required": [
1295
+ "lineId",
1296
+ "quantity"
1297
+ ],
1298
+ "additionalProperties": false
1299
+ },
1300
+ "returns": "{ id, lineNumber, matchState, selected, selectable, readOnly, quantityLocked, itemKind, itemId, quantity, removesStock, warningCodes, invalid }",
1301
+ "idempotent": true,
1302
+ "errors": [
1303
+ "UNKNOWN_LINE",
1304
+ "INVALID_QUANTITY",
1305
+ "TABLE_READ_ONLY",
1306
+ "LINE_READ_ONLY"
1307
+ ],
1308
+ "examples": [
1309
+ {
1310
+ "args": {
1311
+ "lineId": "ln-2",
1312
+ "quantity": "2.5"
1313
+ }
1314
+ },
1315
+ {
1316
+ "args": {
1317
+ "lineId": "ln-7",
1318
+ "quantity": "3"
1319
+ },
1320
+ "note": "On a credit note this removes 3 from stock."
1321
+ }
1322
+ ],
1323
+ "description": "Set the quantity of a line as shown in the table: a decimal above 0 and at most 10000000, with a dot and up to 8 places, never signed. On a credit note it is the quantity to remove. The line amount stays as invoiced. Does not tick the line.",
1324
+ "descriptionKey": "ui.agent.billLineTable.actions.setQuantity"
1325
+ },
1326
+ {
1327
+ "name": "set_item",
1328
+ "safety": "write",
1329
+ "argsType": "{ lineId: string; itemId: string }",
1330
+ "argsSchema": {
1331
+ "type": "object",
1332
+ "properties": {
1333
+ "lineId": {
1334
+ "type": "string",
1335
+ "minLength": 1
1336
+ },
1337
+ "itemId": {
1338
+ "type": "string",
1339
+ "minLength": 1
1340
+ }
1341
+ },
1342
+ "required": [
1343
+ "lineId",
1344
+ "itemId"
1345
+ ],
1346
+ "additionalProperties": false
1347
+ },
1348
+ "returns": "{ id, lineNumber, matchState, selected, selectable, readOnly, quantityLocked, itemKind, itemId, quantity, removesStock, warningCodes, invalid }",
1349
+ "idempotent": true,
1350
+ "errors": [
1351
+ "UNKNOWN_LINE",
1352
+ "UNKNOWN_ITEM",
1353
+ "TABLE_READ_ONLY",
1354
+ "LINE_READ_ONLY"
1355
+ ],
1356
+ "description": "Load a line into an existing warehouse item, by item id. Does not tick the line.",
1357
+ "descriptionKey": "ui.agent.billLineTable.actions.setItem"
1358
+ },
1359
+ {
1360
+ "name": "create_new_item",
1361
+ "safety": "write",
1362
+ "argsType": "{ lineId: string; name?: string }",
1363
+ "argsSchema": {
1364
+ "type": "object",
1365
+ "properties": {
1366
+ "lineId": {
1367
+ "type": "string",
1368
+ "minLength": 1
1369
+ },
1370
+ "name": {
1371
+ "type": "string",
1372
+ "minLength": 1,
1373
+ "maxLength": 255
1374
+ }
1375
+ },
1376
+ "required": [
1377
+ "lineId"
1378
+ ],
1379
+ "additionalProperties": false
1380
+ },
1381
+ "returns": "{ id, lineNumber, matchState, selected, selectable, readOnly, quantityLocked, itemKind, itemId, quantity, removesStock, warningCodes, invalid }",
1382
+ "idempotent": true,
1383
+ "errors": [
1384
+ "UNKNOWN_LINE",
1385
+ "INVALID_ARGS",
1386
+ "TABLE_READ_ONLY",
1387
+ "LINE_READ_ONLY"
1388
+ ],
1389
+ "description": "Mark a line to create a new warehouse item when the invoice is loaded. Without a name, the item takes the line description. Nothing is created until Confirm. Does not tick the line.",
1390
+ "descriptionKey": "ui.agent.billLineTable.actions.createNewItem"
1391
+ },
1392
+ {
1393
+ "name": "focus_line",
1394
+ "safety": "read",
1395
+ "argsType": "{ lineId: string; field?: 'select' | 'quantity' | 'item' }",
1396
+ "argsSchema": {
1397
+ "type": "object",
1398
+ "properties": {
1399
+ "lineId": {
1400
+ "type": "string",
1401
+ "minLength": 1
1402
+ },
1403
+ "field": {
1404
+ "type": "string",
1405
+ "enum": [
1406
+ "select",
1407
+ "quantity",
1408
+ "item"
1409
+ ]
1410
+ }
1411
+ },
1412
+ "required": [
1413
+ "lineId"
1414
+ ],
1415
+ "additionalProperties": false
1416
+ },
1417
+ "idempotent": true,
1418
+ "errors": [
1419
+ "UNKNOWN_LINE"
1420
+ ],
1421
+ "description": "Scroll a line into view and move focus to its checkbox, quantity or item field.",
1422
+ "descriptionKey": "ui.agent.billLineTable.actions.focusLine"
1423
+ }
1424
+ ],
1425
+ "domHooks": {
1426
+ "root": {
1427
+ "attr": "data-component",
1428
+ "value": "bill-line-table",
1429
+ "description": "Marks the element as a kit BillLineTable."
1430
+ },
1431
+ "instanceId": {
1432
+ "attr": "data-component-id",
1433
+ "sourceProp": "gridId",
1434
+ "description": "The agent instance id."
1435
+ },
1436
+ "item": {
1437
+ "attr": "data-row-id",
1438
+ "sourceProp": "lines[].id",
1439
+ "description": "BillLine.id on each body row (written by DataGrid). The only line datum in the DOM."
1440
+ }
1441
+ }
1442
+ },
1443
+ {
1444
+ "kind": "component",
1445
+ "id": "bill-table",
1446
+ "capabilities": [
1447
+ "select_multiple",
1448
+ "range_pick",
1449
+ "filter",
1450
+ "sort",
1451
+ "paginate",
1452
+ "view_change",
1453
+ "scroll",
1454
+ "navigate",
1455
+ "open"
1456
+ ],
1457
+ "state": [
1458
+ {
1459
+ "name": "features",
1460
+ "type": "{ selectable, privacyMode, showWarehouseStatus, sortableColumns, status }",
1461
+ "description": "What this bill list can do now: selection, privacy mode, the warehouse column, sortable columns and loading status.",
1462
+ "descriptionKey": "ui.agent.billTable.state.features"
1463
+ },
1464
+ {
1465
+ "name": "rows",
1466
+ "type": "Array<{ id, number, type, date, direction, counterpartyKind, counterpartyName?, amountMinor, paymentStatus, sdiStatus, warehouseStatus, actions }>",
1467
+ "description": "The bills on the current page, amounts in hundredths. A counterparty name is given only for companies; patients and other people are never named.",
1468
+ "descriptionKey": "ui.agent.billTable.state.rows"
1469
+ },
1470
+ {
1471
+ "name": "selection",
1472
+ "type": "string[]",
1473
+ "description": "Ids of the selected bills, on every page.",
1474
+ "descriptionKey": "ui.agent.billTable.state.selection"
1475
+ },
1476
+ {
1477
+ "name": "sort",
1478
+ "type": "Array<{ colId, sort }>",
1479
+ "description": "The active sort, as the server receives it. A counterparty sort is left out while privacy mode is on.",
1480
+ "descriptionKey": "ui.agent.billTable.state.sort"
1481
+ },
1482
+ {
1483
+ "name": "filter",
1484
+ "type": "object",
1485
+ "description": "The active filters. Under privacy mode, filters that can point at a person read { masked: true }.",
1486
+ "descriptionKey": "ui.agent.billTable.state.filter"
1487
+ },
1488
+ {
1489
+ "name": "quickFilter",
1490
+ "type": "'' | { masked: true }",
1491
+ "description": "Empty when no quick search is set; otherwise { masked: true }, since the text may be a name. Set it with set_quick_filter.",
1492
+ "descriptionKey": "ui.agent.billTable.state.quickFilter"
1493
+ },
1494
+ {
1495
+ "name": "currentPage",
1496
+ "type": "number",
1497
+ "description": "Zero-based page index.",
1498
+ "descriptionKey": "ui.agent.billTable.state.currentPage"
1499
+ },
1500
+ {
1501
+ "name": "pageSize",
1502
+ "type": "number",
1503
+ "description": "Bills per page.",
1504
+ "descriptionKey": "ui.agent.billTable.state.pageSize"
1505
+ },
1506
+ {
1507
+ "name": "pageCount",
1508
+ "type": "number",
1509
+ "description": "Number of pages; -1 when the total is unknown.",
1510
+ "descriptionKey": "ui.agent.billTable.state.pageCount"
1511
+ },
1512
+ {
1513
+ "name": "rowCount",
1514
+ "type": "number",
1515
+ "description": "Bills matching the filters, on every page; -1 when unknown.",
1516
+ "descriptionKey": "ui.agent.billTable.state.rowCount"
1517
+ },
1518
+ {
1519
+ "name": "columns",
1520
+ "type": "Array<{ id, label, visible, canHide, sortable, masked }>",
1521
+ "description": "The columns, in display order.",
1522
+ "descriptionKey": "ui.agent.billTable.state.columns"
1523
+ }
1524
+ ],
1525
+ "actions": [
1526
+ {
1527
+ "name": "select_rows",
1528
+ "safety": "read",
1529
+ "argsType": "{ ids: string[] }",
1530
+ "argsSchema": {
1531
+ "type": "object",
1532
+ "properties": {
1533
+ "ids": {
1534
+ "type": "array",
1535
+ "items": {
1536
+ "type": "string"
1537
+ }
1538
+ }
1539
+ },
1540
+ "required": [
1541
+ "ids"
1542
+ ],
1543
+ "additionalProperties": false
1544
+ },
1545
+ "returns": "string[]",
1546
+ "idempotent": true,
1547
+ "errors": [
1548
+ "SELECTION_DISABLED: the list is read-only."
1549
+ ],
1550
+ "description": "Replace the selection with the given bill ids. Changing a filter or the search clears it.",
1551
+ "descriptionKey": "ui.agent.billTable.actions.selectRows"
1552
+ },
1553
+ {
1554
+ "name": "select_range",
1555
+ "safety": "read",
1556
+ "argsType": "{ fromId: string, toId: string }",
1557
+ "argsSchema": {
1558
+ "type": "object",
1559
+ "properties": {
1560
+ "fromId": {
1561
+ "type": "string"
1562
+ },
1563
+ "toId": {
1564
+ "type": "string"
1565
+ }
1566
+ },
1567
+ "required": [
1568
+ "fromId",
1569
+ "toId"
1570
+ ],
1571
+ "additionalProperties": false
1572
+ },
1573
+ "idempotent": true,
1574
+ "errors": [
1575
+ "SELECTION_DISABLED: the list is read-only.",
1576
+ "UNKNOWN_ROW: fromId or toId is not on the current page."
1577
+ ],
1578
+ "description": "Select every bill from fromId to toId on the current page, inclusive.",
1579
+ "descriptionKey": "ui.agent.billTable.actions.selectRange"
1580
+ },
1581
+ {
1582
+ "name": "clear_selection",
1583
+ "safety": "read",
1584
+ "idempotent": true,
1585
+ "description": "Clear the selection on every page.",
1586
+ "descriptionKey": "ui.agent.billTable.actions.clearSelection"
1587
+ },
1588
+ {
1589
+ "name": "sort_by",
1590
+ "safety": "read",
1591
+ "argsType": "{ colId: \"number\" | \"date\" | \"counterparty\" | \"amount\", sort: \"asc\" | \"desc\" }",
1592
+ "argsSchema": {
1593
+ "type": "object",
1594
+ "properties": {
1595
+ "colId": {
1596
+ "enum": [
1597
+ "number",
1598
+ "date",
1599
+ "counterparty",
1600
+ "amount"
1601
+ ]
1602
+ },
1603
+ "sort": {
1604
+ "enum": [
1605
+ "asc",
1606
+ "desc"
1607
+ ]
1608
+ }
1609
+ },
1610
+ "required": [
1611
+ "colId",
1612
+ "sort"
1613
+ ],
1614
+ "additionalProperties": false
1615
+ },
1616
+ "idempotent": true,
1617
+ "openWorld": true,
1618
+ "errors": [
1619
+ "SORT_DISABLED: the server cannot sort this column (features.sortableColumns).",
1620
+ "COLUMN_MASKED: counterparty cannot be sorted while privacy mode is on."
1621
+ ],
1622
+ "examples": [
1623
+ {
1624
+ "args": {
1625
+ "colId": "amount",
1626
+ "sort": "desc"
1627
+ }
1628
+ }
1629
+ ],
1630
+ "description": "Sort the bills by one column. The host fetches the first page again.",
1631
+ "descriptionKey": "ui.agent.billTable.actions.sortBy"
1632
+ },
1633
+ {
1634
+ "name": "apply_filter",
1635
+ "safety": "read",
1636
+ "argsType": "{ model: BillTableFilterModel }",
1637
+ "argsSchema": {
1638
+ "type": "object",
1639
+ "properties": {
1640
+ "model": {
1641
+ "type": "object",
1642
+ "additionalProperties": false,
1643
+ "properties": {
1644
+ "date": {
1645
+ "type": "object",
1646
+ "properties": {
1647
+ "type": {
1648
+ "const": "inRange"
1649
+ },
1650
+ "dateFrom": {
1651
+ "type": [
1652
+ "string",
1653
+ "null"
1654
+ ],
1655
+ "format": "date"
1656
+ },
1657
+ "dateTo": {
1658
+ "type": [
1659
+ "string",
1660
+ "null"
1661
+ ],
1662
+ "format": "date"
1663
+ }
1664
+ },
1665
+ "required": [
1666
+ "type",
1667
+ "dateFrom",
1668
+ "dateTo"
1669
+ ],
1670
+ "additionalProperties": false
1671
+ },
1672
+ "direction": {
1673
+ "type": "object",
1674
+ "properties": {
1675
+ "type": {
1676
+ "const": "set"
1677
+ },
1678
+ "values": {
1679
+ "type": "array",
1680
+ "items": {
1681
+ "enum": [
1682
+ "incoming",
1683
+ "outgoing"
1684
+ ]
1685
+ }
1686
+ }
1687
+ },
1688
+ "required": [
1689
+ "type",
1690
+ "values"
1691
+ ],
1692
+ "additionalProperties": false
1693
+ },
1694
+ "amount": {
1695
+ "type": "object",
1696
+ "description": "Amount in major units (12.50), as on the platform form.",
1697
+ "properties": {
1698
+ "type": {
1699
+ "enum": [
1700
+ "inRange",
1701
+ "greaterThanOrEqual",
1702
+ "lessThanOrEqual",
1703
+ "equals"
1704
+ ]
1705
+ },
1706
+ "filter": {
1707
+ "type": "number"
1708
+ },
1709
+ "filterTo": {
1710
+ "type": "number"
1711
+ }
1712
+ },
1713
+ "required": [
1714
+ "type"
1715
+ ],
1716
+ "additionalProperties": false
1717
+ },
1718
+ "paymentStatus": {
1719
+ "type": "object",
1720
+ "properties": {
1721
+ "type": {
1722
+ "const": "set"
1723
+ },
1724
+ "values": {
1725
+ "type": "array",
1726
+ "items": {
1727
+ "enum": [
1728
+ "paid",
1729
+ "partiallyPaid",
1730
+ "unpaid",
1731
+ "overdue",
1732
+ "writtenOff",
1733
+ "noPaymentDue"
1734
+ ]
1735
+ }
1736
+ }
1737
+ },
1738
+ "required": [
1739
+ "type",
1740
+ "values"
1741
+ ],
1742
+ "additionalProperties": false
1743
+ },
1744
+ "sdiStatus": {
1745
+ "type": "object",
1746
+ "properties": {
1747
+ "type": {
1748
+ "const": "set"
1749
+ },
1750
+ "values": {
1751
+ "type": "array",
1752
+ "items": {
1753
+ "enum": [
1754
+ "notSent",
1755
+ "sending",
1756
+ "pending",
1757
+ "accepted",
1758
+ "delivered",
1759
+ "notDelivered",
1760
+ "rejected",
1761
+ "received"
1762
+ ]
1763
+ }
1764
+ }
1765
+ },
1766
+ "required": [
1767
+ "type",
1768
+ "values"
1769
+ ],
1770
+ "additionalProperties": false
1771
+ },
1772
+ "warehouseStatus": {
1773
+ "type": "object",
1774
+ "properties": {
1775
+ "type": {
1776
+ "const": "set"
1777
+ },
1778
+ "values": {
1779
+ "type": "array",
1780
+ "items": {
1781
+ "enum": [
1782
+ "notLoaded",
1783
+ "toReview",
1784
+ "loaded"
1785
+ ]
1786
+ }
1787
+ }
1788
+ },
1789
+ "required": [
1790
+ "type",
1791
+ "values"
1792
+ ],
1793
+ "additionalProperties": false
1794
+ },
1795
+ "datePreset": {
1796
+ "enum": [
1797
+ "today",
1798
+ "thisMonth",
1799
+ "thisYear"
1800
+ ]
1801
+ },
1802
+ "type": {
1803
+ "type": "object",
1804
+ "properties": {
1805
+ "type": {
1806
+ "const": "set"
1807
+ },
1808
+ "values": {
1809
+ "type": "array",
1810
+ "items": {
1811
+ "enum": [
1812
+ "full",
1813
+ "partial",
1814
+ "credit",
1815
+ "proforma",
1816
+ "other"
1817
+ ]
1818
+ }
1819
+ }
1820
+ },
1821
+ "required": [
1822
+ "type",
1823
+ "values"
1824
+ ],
1825
+ "additionalProperties": false
1826
+ },
1827
+ "number": {
1828
+ "type": "string"
1829
+ },
1830
+ "prefix": {
1831
+ "type": "string"
1832
+ },
1833
+ "withInsuranceNet": {
1834
+ "type": "boolean",
1835
+ "description": "true = yes, false = no; leave the key out for either."
1836
+ },
1837
+ "withVat": {
1838
+ "type": "boolean",
1839
+ "description": "true = yes, false = no; leave the key out for either."
1840
+ },
1841
+ "withTaxAtSource": {
1842
+ "type": "boolean",
1843
+ "description": "true = yes, false = no; leave the key out for either."
1844
+ },
1845
+ "withWelfareFundContribution": {
1846
+ "type": "boolean",
1847
+ "description": "true = yes, false = no; leave the key out for either."
1848
+ },
1849
+ "withUnpaidAmount": {
1850
+ "type": "boolean",
1851
+ "description": "true = yes, false = no; leave the key out for either."
1852
+ },
1853
+ "writtenOff": {
1854
+ "type": "boolean",
1855
+ "description": "true = yes, false = no; leave the key out for either."
1856
+ },
1857
+ "taxOfficeNotification": {
1858
+ "type": "boolean",
1859
+ "description": "true = yes, false = no; leave the key out for either."
1860
+ },
1861
+ "receivedFromSdi": {
1862
+ "type": "boolean",
1863
+ "description": "true = yes, false = no; leave the key out for either."
1864
+ },
1865
+ "sentToSdi": {
1866
+ "type": "boolean",
1867
+ "description": "true = yes, false = no; leave the key out for either."
1868
+ },
1869
+ "selfBill": {
1870
+ "type": "boolean",
1871
+ "description": "true = yes, false = no; leave the key out for either."
1872
+ },
1873
+ "liabilityDate": {
1874
+ "type": "object",
1875
+ "properties": {
1876
+ "type": {
1877
+ "const": "inRange"
1878
+ },
1879
+ "dateFrom": {
1880
+ "type": [
1881
+ "string",
1882
+ "null"
1883
+ ],
1884
+ "format": "date"
1885
+ },
1886
+ "dateTo": {
1887
+ "type": [
1888
+ "string",
1889
+ "null"
1890
+ ],
1891
+ "format": "date"
1892
+ }
1893
+ },
1894
+ "required": [
1895
+ "type",
1896
+ "dateFrom",
1897
+ "dateTo"
1898
+ ],
1899
+ "additionalProperties": false
1900
+ },
1901
+ "sdiEntryDate": {
1902
+ "type": "object",
1903
+ "properties": {
1904
+ "type": {
1905
+ "const": "inRange"
1906
+ },
1907
+ "dateFrom": {
1908
+ "type": [
1909
+ "string",
1910
+ "null"
1911
+ ],
1912
+ "format": "date"
1913
+ },
1914
+ "dateTo": {
1915
+ "type": [
1916
+ "string",
1917
+ "null"
1918
+ ],
1919
+ "format": "date"
1920
+ }
1921
+ },
1922
+ "required": [
1923
+ "type",
1924
+ "dateFrom",
1925
+ "dateTo"
1926
+ ],
1927
+ "additionalProperties": false
1928
+ },
1929
+ "relationType": {
1930
+ "enum": [
1931
+ "patient",
1932
+ "company",
1933
+ "operator"
1934
+ ]
1935
+ },
1936
+ "insurance": {
1937
+ "type": "string"
1938
+ }
1939
+ }
1940
+ }
1941
+ },
1942
+ "required": [
1943
+ "model"
1944
+ ],
1945
+ "additionalProperties": false
1946
+ },
1947
+ "idempotent": true,
1948
+ "openWorld": true,
1949
+ "errors": [
1950
+ "UNKNOWN_FILTER: a key is not a bill filter.",
1951
+ "Changing filters clears the selection."
1952
+ ],
1953
+ "examples": [
1954
+ {
1955
+ "args": {
1956
+ "model": {
1957
+ "sdiStatus": {
1958
+ "type": "set",
1959
+ "values": [
1960
+ "received"
1961
+ ]
1962
+ },
1963
+ "warehouseStatus": {
1964
+ "type": "set",
1965
+ "values": [
1966
+ "toReview"
1967
+ ]
1968
+ }
1969
+ }
1970
+ },
1971
+ "note": "Bills from SDI that need a warehouse review."
1972
+ }
1973
+ ],
1974
+ "description": "Replace the filters. The host fetches the first page again.",
1975
+ "descriptionKey": "ui.agent.billTable.actions.applyFilter"
1976
+ },
1977
+ {
1978
+ "name": "set_quick_filter",
1979
+ "safety": "read",
1980
+ "argsType": "{ text: string }",
1981
+ "argsSchema": {
1982
+ "type": "object",
1983
+ "properties": {
1984
+ "text": {
1985
+ "type": "string"
1986
+ }
1987
+ },
1988
+ "required": [
1989
+ "text"
1990
+ ],
1991
+ "additionalProperties": false
1992
+ },
1993
+ "idempotent": true,
1994
+ "openWorld": true,
1995
+ "errors": [
1996
+ "Changing the search clears the selection."
1997
+ ],
1998
+ "description": "Search by bill number, and by counterparty name unless privacy mode is on.",
1999
+ "descriptionKey": "ui.agent.billTable.actions.setQuickFilter"
2000
+ },
2001
+ {
2002
+ "name": "clear_filters",
2003
+ "safety": "read",
2004
+ "idempotent": true,
2005
+ "openWorld": true,
2006
+ "description": "Remove every filter and the quick search.",
2007
+ "descriptionKey": "ui.agent.billTable.actions.clearFilters"
2008
+ },
2009
+ {
2010
+ "name": "go_to_page",
2011
+ "safety": "read",
2012
+ "argsType": "{ pageIndex: number }",
2013
+ "argsSchema": {
2014
+ "type": "object",
2015
+ "properties": {
2016
+ "pageIndex": {
2017
+ "type": "integer",
2018
+ "minimum": 0
2019
+ }
2020
+ },
2021
+ "required": [
2022
+ "pageIndex"
2023
+ ],
2024
+ "additionalProperties": false
2025
+ },
2026
+ "idempotent": true,
2027
+ "openWorld": true,
2028
+ "description": "Go to a zero-based page.",
2029
+ "descriptionKey": "ui.agent.billTable.actions.goToPage"
2030
+ },
2031
+ {
2032
+ "name": "set_page_size",
2033
+ "safety": "read",
2034
+ "argsType": "{ size: 25 | 50 | 100 }",
2035
+ "argsSchema": {
2036
+ "type": "object",
2037
+ "properties": {
2038
+ "size": {
2039
+ "enum": [
2040
+ 25,
2041
+ 50,
2042
+ 100
2043
+ ]
2044
+ }
2045
+ },
2046
+ "required": [
2047
+ "size"
2048
+ ],
2049
+ "additionalProperties": false
2050
+ },
2051
+ "idempotent": true,
2052
+ "openWorld": true,
2053
+ "description": "Change how many bills show per page.",
2054
+ "descriptionKey": "ui.agent.billTable.actions.setPageSize"
2055
+ },
2056
+ {
2057
+ "name": "scroll_to_row",
2058
+ "safety": "read",
2059
+ "argsType": "{ id: string }",
2060
+ "argsSchema": {
2061
+ "type": "object",
2062
+ "properties": {
2063
+ "id": {
2064
+ "type": "string",
2065
+ "description": "A bill id (rows)."
2066
+ }
2067
+ },
2068
+ "required": [
2069
+ "id"
2070
+ ],
2071
+ "additionalProperties": false
2072
+ },
2073
+ "idempotent": true,
2074
+ "errors": [
2075
+ "UNKNOWN_ROW: the id is not on the current page."
2076
+ ],
2077
+ "description": "Scroll a bill on the current page into view.",
2078
+ "descriptionKey": "ui.agent.billTable.actions.scrollToRow"
2079
+ },
2080
+ {
2081
+ "name": "set_column_visibility",
2082
+ "safety": "write",
2083
+ "argsType": "{ id: string, visible: boolean }",
2084
+ "argsSchema": {
2085
+ "type": "object",
2086
+ "properties": {
2087
+ "id": {
2088
+ "enum": [
2089
+ "date",
2090
+ "direction",
2091
+ "counterparty",
2092
+ "amount",
2093
+ "paymentStatus",
2094
+ "sdiStatus",
2095
+ "warehouseStatus"
2096
+ ]
2097
+ },
2098
+ "visible": {
2099
+ "type": "boolean"
2100
+ }
2101
+ },
2102
+ "required": [
2103
+ "id",
2104
+ "visible"
2105
+ ],
2106
+ "additionalProperties": false
2107
+ },
2108
+ "idempotent": true,
2109
+ "errors": [
2110
+ "UNKNOWN_COLUMN: the column is not in this list (warehouseStatus needs the warehouse module).",
2111
+ "NOT_HIDEABLE: number and actions always show."
2112
+ ],
2113
+ "description": "Show or hide a column. The choice is saved for this list.",
2114
+ "descriptionKey": "ui.agent.billTable.actions.setColumnVisibility"
2115
+ },
2116
+ {
2117
+ "name": "reset_columns",
2118
+ "safety": "destructive",
2119
+ "idempotent": true,
2120
+ "description": "Put every column back to its default and delete the column choices saved for this list.",
2121
+ "descriptionKey": "ui.agent.billTable.actions.resetColumns"
2122
+ },
2123
+ {
2124
+ "name": "get_row_actions",
2125
+ "safety": "read",
2126
+ "argsType": "{ id: string }",
2127
+ "argsSchema": {
2128
+ "type": "object",
2129
+ "properties": {
2130
+ "id": {
2131
+ "type": "string",
2132
+ "description": "A bill id (rows)."
2133
+ }
2134
+ },
2135
+ "required": [
2136
+ "id"
2137
+ ],
2138
+ "additionalProperties": false
2139
+ },
2140
+ "returns": "Record<action, \"enabled\" | { disabled: reason }>",
2141
+ "idempotent": true,
2142
+ "errors": [
2143
+ "UNKNOWN_ROW: the id is not on the current page."
2144
+ ],
2145
+ "description": "Which actions one bill offers now, and why a disabled one is disabled.",
2146
+ "descriptionKey": "ui.agent.billTable.actions.getRowActions"
2147
+ },
2148
+ {
2149
+ "name": "open_bill",
2150
+ "safety": "read",
2151
+ "argsType": "{ id: string }",
2152
+ "argsSchema": {
2153
+ "type": "object",
2154
+ "properties": {
2155
+ "id": {
2156
+ "type": "string",
2157
+ "description": "A bill id (rows)."
2158
+ }
2159
+ },
2160
+ "required": [
2161
+ "id"
2162
+ ],
2163
+ "additionalProperties": false
2164
+ },
2165
+ "openWorld": true,
2166
+ "errors": [
2167
+ "UNKNOWN_ROW: the id is not on the current page.",
2168
+ "ACTION_UNAVAILABLE: the bill offers no open action.",
2169
+ "ACTION_DISABLED: followed by the reason code."
2170
+ ],
2171
+ "description": "Open one bill. The host shows its page.",
2172
+ "descriptionKey": "ui.agent.billTable.actions.openBill"
2173
+ },
2174
+ {
2175
+ "name": "download_bill",
2176
+ "safety": "phi",
2177
+ "argsType": "{ id: string, format: \"pdf\" | \"xml\" }",
2178
+ "argsSchema": {
2179
+ "type": "object",
2180
+ "properties": {
2181
+ "id": {
2182
+ "type": "string"
2183
+ },
2184
+ "format": {
2185
+ "enum": [
2186
+ "pdf",
2187
+ "xml"
2188
+ ]
2189
+ }
2190
+ },
2191
+ "required": [
2192
+ "id",
2193
+ "format"
2194
+ ],
2195
+ "additionalProperties": false
2196
+ },
2197
+ "openWorld": true,
2198
+ "errors": [
2199
+ "UNKNOWN_ROW: the id is not on the current page.",
2200
+ "ACTION_UNAVAILABLE: the bill offers no download in this format.",
2201
+ "ACTION_DISABLED: followed by the reason code."
2202
+ ],
2203
+ "description": "Download one bill as a PDF or an electronic invoice (XML).",
2204
+ "descriptionKey": "ui.agent.billTable.actions.downloadBill"
2205
+ },
2206
+ {
2207
+ "name": "load_into_warehouse",
2208
+ "safety": "read",
2209
+ "argsType": "{ id: string }",
2210
+ "argsSchema": {
2211
+ "type": "object",
2212
+ "properties": {
2213
+ "id": {
2214
+ "type": "string",
2215
+ "description": "A bill id (rows)."
2216
+ }
2217
+ },
2218
+ "required": [
2219
+ "id"
2220
+ ],
2221
+ "additionalProperties": false
2222
+ },
2223
+ "openWorld": true,
2224
+ "errors": [
2225
+ "UNKNOWN_ROW: the id is not on the current page.",
2226
+ "ACTION_UNAVAILABLE: not an incoming SDI bill.",
2227
+ "ACTION_DISABLED: alreadyLoaded, when the bill is already in the warehouse."
2228
+ ],
2229
+ "description": "Open the dialog that loads an incoming SDI bill's lines into the warehouse. Nothing loads until the user confirms.",
2230
+ "descriptionKey": "ui.agent.billTable.actions.loadIntoWarehouse"
2231
+ }
2232
+ ],
2233
+ "domHooks": {
2234
+ "root": {
2235
+ "attr": "data-component",
2236
+ "value": "bill-table",
2237
+ "description": "Marks the element as a kit BillTable."
2238
+ },
2239
+ "instanceId": {
2240
+ "attr": "data-component-id",
2241
+ "sourceProp": "gridId",
2242
+ "description": "Sourced from gridId (default accounting-bills)."
2243
+ },
2244
+ "item": {
2245
+ "attr": "data-row-id",
2246
+ "description": "Opaque bill id on each row (DataGrid). Act through the handle, not the DOM."
2247
+ }
2248
+ }
2249
+ },
1171
2250
  {
1172
2251
  "kind": "component",
1173
2252
  "id": "bishop-score",