@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.
- package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
- package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-gEXqU5i5.js} +8 -8
- package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
- package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
- package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
- package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
- package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
- package/dist/_chunks/data-table-B47iw2CO.js +1694 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-B-DUtfw3.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
- package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
- package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
- package/dist/_chunks/grid-context-jn9y8tNE.js +46 -0
- package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
- package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/icon-button-group-Ca2VkXy5.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-BFfLg7c-.js} +7 -7
- package/dist/_chunks/link-cell-renderer-D-Io828l.js +800 -0
- package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CBHNg8x-.js} +5 -5
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-DexbfrFo.js} +3 -3
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-CtcTW1PN.js +869 -0
- package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
- package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
- package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
- package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-DgUjtqpX.js} +386 -410
- package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
- package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +3359 -1569
- package/dist/agent-i18n/en.json +100 -2
- package/dist/components/_shared/accessible-target.d.ts +12 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +101 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +110 -0
- package/dist/components/data-grid/editors.d.ts +14 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +11 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +68 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1396 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +7 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +342 -0
- package/dist/i18n/locales/ar.js +344 -2
- package/dist/i18n/locales/de.d.ts +342 -0
- package/dist/i18n/locales/de.js +344 -2
- package/dist/i18n/locales/el.d.ts +342 -0
- package/dist/i18n/locales/el.js +344 -2
- package/dist/i18n/locales/en.d.ts +342 -0
- package/dist/i18n/locales/en.js +345 -2
- package/dist/i18n/locales/es.d.ts +342 -0
- package/dist/i18n/locales/es.js +344 -2
- package/dist/i18n/locales/fr.d.ts +342 -0
- package/dist/i18n/locales/fr.js +344 -2
- package/dist/i18n/locales/hi.d.ts +342 -0
- package/dist/i18n/locales/hi.js +344 -2
- package/dist/i18n/locales/it.d.ts +342 -0
- package/dist/i18n/locales/it.js +344 -2
- package/dist/i18n/locales/ja.d.ts +342 -0
- package/dist/i18n/locales/ja.js +344 -2
- package/dist/i18n/locales/nl.d.ts +342 -0
- package/dist/i18n/locales/nl.js +344 -2
- package/dist/i18n/locales/pl.d.ts +342 -0
- package/dist/i18n/locales/pl.js +344 -2
- package/dist/i18n/locales/pt.d.ts +342 -0
- package/dist/i18n/locales/pt.js +344 -2
- package/dist/i18n/locales/ro.d.ts +342 -0
- package/dist/i18n/locales/ro.js +344 -2
- package/dist/i18n/locales/ru.d.ts +342 -0
- package/dist/i18n/locales/ru.js +344 -2
- package/dist/i18n/locales/sq.d.ts +342 -0
- package/dist/i18n/locales/sq.js +344 -2
- package/dist/i18n/locales/sv.d.ts +342 -0
- package/dist/i18n/locales/sv.js +344 -2
- package/dist/i18n/locales/tr.d.ts +342 -0
- package/dist/i18n/locales/tr.js +344 -2
- package/dist/i18n/locales/zh.d.ts +342 -0
- package/dist/i18n/locales/zh.js +344 -2
- package/dist/index.js +1305 -1241
- package/dist/locales/ar.json +344 -2
- package/dist/locales/de.json +344 -2
- package/dist/locales/el.json +344 -2
- package/dist/locales/en.json +344 -2
- package/dist/locales/es.json +344 -2
- package/dist/locales/fr.json +344 -2
- package/dist/locales/hi.json +344 -2
- package/dist/locales/it.json +344 -2
- package/dist/locales/ja.json +344 -2
- package/dist/locales/nl.json +344 -2
- package/dist/locales/pl.json +344 -2
- package/dist/locales/pt.json +344 -2
- package/dist/locales/ro.json +344 -2
- package/dist/locales/ru.json +344 -2
- package/dist/locales/sq.json +344 -2
- package/dist/locales/sv.json +344 -2
- package/dist/locales/tr.json +344 -2
- package/dist/locales/zh.json +344 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +21 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type BillCounterparty, type BillDirection, type BillPaymentStatus, type BillRow, type BillSdiStatus, type BillTableTotals, type BillWarehouseStatus } from './types';
|
|
2
|
+
export interface OpenBillCellProps {
|
|
3
|
+
row: BillRow;
|
|
4
|
+
/** Id of the static hidden "Open bill" text the table renders once. */
|
|
5
|
+
openHintId: string;
|
|
6
|
+
onOpen: (row: BillRow) => void;
|
|
7
|
+
/** Privacy mode is on: a host's own disabled text gives way to kit copy,
|
|
8
|
+
* whatever the counterparty (the kit cannot tell whether it names
|
|
9
|
+
* someone). */
|
|
10
|
+
hideHostText: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The bill number. It names the row (the column is the row header) and is
|
|
14
|
+
* the open control: a link-styled kit Button whose accessible name is the
|
|
15
|
+
* visible number, so the row reads "A12", with the static "Open bill" as
|
|
16
|
+
* its description. With no `open` in the row's map it is plain text. A
|
|
17
|
+
* disabled `open` stays focusable and adds its reason to the description.
|
|
18
|
+
* Non-final bills show their type on a muted second line.
|
|
19
|
+
*/
|
|
20
|
+
export declare function OpenBillCell({ row, openHintId, onOpen, hideHostText, }: OpenBillCellProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/** A calendar day in the UI language, read in UTC so it never shifts. */
|
|
22
|
+
export declare function CalendarDayCell({ day }: {
|
|
23
|
+
day: string;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
/** The direction arrow, decorative (the label is always beside it). */
|
|
26
|
+
export declare function DirectionIcon({ direction }: {
|
|
27
|
+
direction: BillDirection;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
/** Arrow and visible label: "Incoming" or "Outgoing". */
|
|
30
|
+
export declare function DirectionLabel({ direction }: {
|
|
31
|
+
direction: BillDirection;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* The counterparty's name, in its own text direction and truncated with
|
|
35
|
+
* the full text in the DOM; a muted "Deleted" line for a deleted entity.
|
|
36
|
+
* Never rendered for a masked cell: under privacy mode DataGrid shows the
|
|
37
|
+
* mask for patients and people instead of calling the column's `cell`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function CounterpartyCell({ counterparty, }: {
|
|
40
|
+
counterparty: BillCounterparty | null;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* An amount in hundredths, in the table currency. Money's default tone: a
|
|
44
|
+
* credit note is negative as stored and reads as a minus sign, not as an
|
|
45
|
+
* alarm. `scale` keeps Money on its exact integer path.
|
|
46
|
+
*/
|
|
47
|
+
export declare function AmountCell({ amountMinor, currency, }: {
|
|
48
|
+
amountMinor: number;
|
|
49
|
+
currency: string;
|
|
50
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare function PaymentStatusCell({ status, nextDueDate, }: {
|
|
52
|
+
status: BillPaymentStatus;
|
|
53
|
+
nextDueDate: string | null;
|
|
54
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
/** Empty for `notApplicable` (not an Italian electronic invoice). */
|
|
56
|
+
export declare function SdiStatusCell({ status }: {
|
|
57
|
+
status: BillSdiStatus;
|
|
58
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
59
|
+
/** Empty for `null` (not an incoming SDI bill, or no warehouse module). */
|
|
60
|
+
export declare function WarehouseStatusCell({ status, }: {
|
|
61
|
+
status: BillWarehouseStatus | null;
|
|
62
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
63
|
+
/** The InfoTip beside the "SDI status" header, outside its sort button. */
|
|
64
|
+
export declare function SdiHeaderTip(): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
/**
|
|
66
|
+
* The totals row header (`<th scope="row">`): "Total" and a "Totals
|
|
67
|
+
* breakdown" button that opens a kit Popover in click mode: a dialog
|
|
68
|
+
* named by its heading, with the scope note as its description and every
|
|
69
|
+
* sum per direction. Focus moves into the dialog on open, so a screen
|
|
70
|
+
* reader user reaches the sums; Escape closes it and returns focus to the
|
|
71
|
+
* button. The table does not widen.
|
|
72
|
+
*/
|
|
73
|
+
export declare function TotalsHeaderCell({ totals, currency, }: {
|
|
74
|
+
totals: BillTableTotals;
|
|
75
|
+
currency: string;
|
|
76
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
/**
|
|
78
|
+
* One line per present direction, as the server gave it (all pages, never
|
|
79
|
+
* mixed: a sum of costs and revenue means nothing). The amount column
|
|
80
|
+
* shows the gross with the direction label; the payment column shows what
|
|
81
|
+
* is still unpaid, its direction named for screen readers and drawn by the
|
|
82
|
+
* same arrow as the amount line beside it.
|
|
83
|
+
*/
|
|
84
|
+
export declare function DirectionTotalsCell({ totals, field, currency, }: {
|
|
85
|
+
totals: BillTableTotals;
|
|
86
|
+
field: 'grossMinor' | 'unpaidMinor';
|
|
87
|
+
currency: string;
|
|
88
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
//# sourceMappingURL=cells.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DataGridColumn } from '../data-grid/types';
|
|
2
|
+
import { type RowActionDef } from '../row-actions/row-actions';
|
|
3
|
+
import { type BillRow, type BillTableSortColumn, type BillTableTotals } from './types';
|
|
4
|
+
export interface UseBillTableColumnsOptions {
|
|
5
|
+
/** ISO 4217, for every amount and the amount filter. */
|
|
6
|
+
currency: string;
|
|
7
|
+
showWarehouseStatus: boolean;
|
|
8
|
+
sortableColumns: readonly BillTableSortColumn[];
|
|
9
|
+
/** Absent: no totals row (no column gets a footer). */
|
|
10
|
+
totals: BillTableTotals | null;
|
|
11
|
+
privacyMode: boolean;
|
|
12
|
+
/** Id of the static hidden "Open bill" text. */
|
|
13
|
+
openHintId: string;
|
|
14
|
+
/** Stable; calls the host's `onOpen` with `source: 'user'`. */
|
|
15
|
+
onOpenRow: (row: BillRow) => void;
|
|
16
|
+
/** Stable kit RowActions definitions (`useBillRowActions`). */
|
|
17
|
+
rowActions: readonly RowActionDef<BillRow>[];
|
|
18
|
+
}
|
|
19
|
+
/** BillTable's DataGrid columns, rebuilt only when an input changes. */
|
|
20
|
+
export declare function useBillTableColumns({ currency, showWarehouseStatus, sortableColumns, totals, privacyMode, openHintId, onOpenRow, rowActions, }: UseBillTableColumnsOptions): DataGridColumn<BillRow>[];
|
|
21
|
+
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DataGridSavedTab } from '../data-grid-tabs/types';
|
|
2
|
+
export interface BillTableDefaultTabsOptions {
|
|
3
|
+
/** Adds "To load into warehouse": practices with the warehouse module
|
|
4
|
+
* (HTP-7314). Default `false`. */
|
|
5
|
+
withWarehouse?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The kit's suggested saved views, for `DataGridTabs` `defaultTabs`:
|
|
9
|
+
* This year (the default, locked), All (locked), Incoming, Outgoing, To pay,
|
|
10
|
+
* To collect and, with the warehouse module, To load into warehouse.
|
|
11
|
+
*
|
|
12
|
+
* "This year" is the host key `datePreset: 'thisYear'`, which the server
|
|
13
|
+
* resolves on every request, so a saved "This year" is still right next
|
|
14
|
+
* year. Labels are kit copy, translated when the tabs are created; every
|
|
15
|
+
* tab is marked `userNamed: false`, so the labels stay readable under
|
|
16
|
+
* privacy mode (no label holds a name). Seed the host's first query from
|
|
17
|
+
* the active tab's `filterModel`, so mounting the tabs costs no extra
|
|
18
|
+
* request.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useBillTableDefaultTabs({ withWarehouse, }?: BillTableDefaultTabsOptions): DataGridSavedTab[];
|
|
21
|
+
//# sourceMappingURL=default-tabs.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type DataGridHandle } from '../data-grid/types';
|
|
2
|
+
import { type BillTableCallbacks } from './model';
|
|
3
|
+
import { type BillRow, type BillTableFeatureInfo, type BillTableHandle } from './types';
|
|
4
|
+
/** What the handle reads from the last render. */
|
|
5
|
+
export interface BillTableLive {
|
|
6
|
+
/** The current page. */
|
|
7
|
+
rows: readonly BillRow[];
|
|
8
|
+
callbacks: BillTableCallbacks;
|
|
9
|
+
features: BillTableFeatureInfo;
|
|
10
|
+
/** Kit copy that stands in for every host's own disabled text under
|
|
11
|
+
* privacy mode (host reads only; agent reads carry codes). */
|
|
12
|
+
hiddenReasonText: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function createBillTableHandle(gridRef: {
|
|
15
|
+
readonly current: DataGridHandle | null;
|
|
16
|
+
}, liveRef: {
|
|
17
|
+
readonly current: BillTableLive;
|
|
18
|
+
}): BillTableHandle;
|
|
19
|
+
//# sourceMappingURL=handle.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { BillTable } from './bill-table';
|
|
2
|
+
export { billTableAgent } from './bill-table.agent';
|
|
3
|
+
export { useBillTableDefaultTabs } from './default-tabs';
|
|
4
|
+
export type { BillTableDefaultTabsOptions } from './default-tabs';
|
|
5
|
+
export { BILL_ACTION_DISABLED_REASONS, BILL_COUNTERPARTY_KINDS, BILL_DIRECTIONS, BILL_LIST_DOWNLOADS, BILL_PAYMENT_STATUSES, BILL_ROW_ACTIONS, BILL_SDI_STATUSES, BILL_TABLE_COLUMNS, BILL_TABLE_DEFAULT_TAB_IDS, BILL_TABLE_SORT_COLUMNS, BILL_TYPES, BILL_WAREHOUSE_STATUSES, } from './types';
|
|
6
|
+
export type { BillActionContext, BillActionDisabledReason, BillActionSource, BillCounterparty, BillCounterpartyKind, BillDatePreset, BillDirection, BillDirectionTotals, BillDownloadFormat, BillListDownloadKind, BillLoadContext, BillPaymentStatus, BillRow, BillRowActionId, BillRowActionMap, BillRowActionState, BillRowActionSummaryMap, BillRowActionSummaryState, BillRowSummary, BillSdiStatus, BillSetFilter, BillTableChange, BillTableColumnId, BillTableColumnInfo, BillTableDefaultTabId, BillTableFeatureInfo, BillTableFilterModel, BillTableHandle, BillTableHostFilterKey, BillTableProps, BillTableQuery, BillTableQueryState, BillTableSortColumn, BillTableSortEntry, BillTableTotals, BillType, BillWarehouseStatus, } from './types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { B as S, a as T, b as a, c as I, d as B, e as s, f as A, g as E, h as O, i as l, j as D, k as N, l as e, m as U, u as R } from "../../_chunks/default-tabs-BQcSqcNG.js";
|
|
2
|
+
export {
|
|
3
|
+
S as BILL_ACTION_DISABLED_REASONS,
|
|
4
|
+
T as BILL_COUNTERPARTY_KINDS,
|
|
5
|
+
a as BILL_DIRECTIONS,
|
|
6
|
+
I as BILL_LIST_DOWNLOADS,
|
|
7
|
+
B as BILL_PAYMENT_STATUSES,
|
|
8
|
+
s as BILL_ROW_ACTIONS,
|
|
9
|
+
A as BILL_SDI_STATUSES,
|
|
10
|
+
E as BILL_TABLE_COLUMNS,
|
|
11
|
+
O as BILL_TABLE_DEFAULT_TAB_IDS,
|
|
12
|
+
l as BILL_TABLE_SORT_COLUMNS,
|
|
13
|
+
D as BILL_TYPES,
|
|
14
|
+
N as BILL_WAREHOUSE_STATUSES,
|
|
15
|
+
e as BillTable,
|
|
16
|
+
U as billTableAgent,
|
|
17
|
+
R as useBillTableDefaultTabs
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { DataGridSortEntry } from '../data-grid/types';
|
|
2
|
+
import { type BillActionContext, type BillActionDisabledReason, type BillRow, type BillRowActionId, type BillRowActionMap, type BillRowActionState, type BillRowActionSummaryMap, type BillRowSummary, type BillTableProps, type BillTableSortColumn, type BillTableSortEntry } from './types';
|
|
3
|
+
/** Default `gridId`: BillTable's agent instance id and the inner
|
|
4
|
+
* DataGrid's column-state storage key. */
|
|
5
|
+
export declare const BILL_TABLE_DEFAULT_GRID_ID = "accounting-bills";
|
|
6
|
+
/** The platform's default order (`DoctorBillController.php:180-183`). */
|
|
7
|
+
export declare const BILL_TABLE_DEFAULT_SORT: readonly BillTableSortEntry[];
|
|
8
|
+
/** Page sizes the pager offers. The largest equals DataGrid's
|
|
9
|
+
* virtualisation threshold, so a page keeps every row in the DOM. */
|
|
10
|
+
export declare const BILL_TABLE_PAGE_SIZE_OPTIONS: readonly number[];
|
|
11
|
+
/**
|
|
12
|
+
* Decimal places of every amount BillTable receives: `BillRow.amountMinor`
|
|
13
|
+
* and the `BillDirectionTotals` sums are `(int) round($x * 100)` from PHP
|
|
14
|
+
* (exact, because SQL already rounds gross to 2 places,
|
|
15
|
+
* `DoctrineBillRepository.php:1016-1018`). Money gets it as `scale`, so the
|
|
16
|
+
* integer is formatted with integer arithmetic and never divided as a float.
|
|
17
|
+
*/
|
|
18
|
+
export declare const BILL_AMOUNT_SCALE = 2;
|
|
19
|
+
/** Context of a row action a person started in the table. */
|
|
20
|
+
export declare const USER_ACTION: BillActionContext;
|
|
21
|
+
/** Context of a row action started through the handle (an agent). */
|
|
22
|
+
export declare const API_ACTION: BillActionContext;
|
|
23
|
+
/**
|
|
24
|
+
* Does privacy mode hide this row's counterparty? Patients and other
|
|
25
|
+
* people are hidden; companies (suppliers, labs) stay visible; a bill
|
|
26
|
+
* with no counterparty has nothing to hide. Michael's privacy decision
|
|
27
|
+
* (4 Nov 2026); also the counterparty column's `appliesTo`.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isPersonCounterparty(row: BillRow): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The amount as a number in major units, for CSV, XLSX and PDF. Built from
|
|
32
|
+
* the integer with the exact decimal helpers (`12345` gives `123.45`), so
|
|
33
|
+
* the number is the nearest double to the decimal and no division happens.
|
|
34
|
+
* `null` for a value that is not a safe integer or that a double cannot
|
|
35
|
+
* give back exactly (beyond 15 significant digits): the cell exports empty
|
|
36
|
+
* rather than a wrong figure.
|
|
37
|
+
*/
|
|
38
|
+
export declare function amountForExport(amountMinor: number): number | null;
|
|
39
|
+
/**
|
|
40
|
+
* A calendar day `YYYY-MM-DD` in the UI language, medium style ("4 Nov
|
|
41
|
+
* 2026" in British English). Read and formatted in UTC, so the day never
|
|
42
|
+
* moves with the viewer's time zone. Any other text is returned as given.
|
|
43
|
+
*/
|
|
44
|
+
export declare function formatCalendarDay(day: string, language: string): string;
|
|
45
|
+
export declare function isBillTableSortColumn(colId: string): colId is BillTableSortColumn;
|
|
46
|
+
/** DataGrid sort entries as BillTable's typed entries. Only sortable bill
|
|
47
|
+
* columns can be in a DataGrid sort; anything else is left out. */
|
|
48
|
+
export declare function toBillSortEntries(entries: readonly DataGridSortEntry[]): BillTableSortEntry[];
|
|
49
|
+
/** A stable text for comparing two sorts. */
|
|
50
|
+
export declare function sortKey(entries: readonly DataGridSortEntry[]): string;
|
|
51
|
+
/**
|
|
52
|
+
* What the last `onQueryChange` reported: the effective sort it carried,
|
|
53
|
+
* and the sort the grid itself held at that moment.
|
|
54
|
+
*/
|
|
55
|
+
export interface BillSortEcho {
|
|
56
|
+
key: string;
|
|
57
|
+
raw: readonly BillTableSortEntry[];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The sorting to hand the inner DataGrid when the host controls `query`.
|
|
61
|
+
*
|
|
62
|
+
* Under privacy mode `onQueryChange` reports the EFFECTIVE sort: a
|
|
63
|
+
* counterparty sort is paused, so it is left out. A host that stores that
|
|
64
|
+
* query and passes it back would erase the paused entry, which then could
|
|
65
|
+
* not come back when privacy mode turns off, and the grid would report the
|
|
66
|
+
* same query a second time. So while the host's sorting is exactly what
|
|
67
|
+
* BillTable last reported, the grid keeps the sort it holds itself. Any
|
|
68
|
+
* other sorting is a host decision and wins.
|
|
69
|
+
*/
|
|
70
|
+
export declare function resolveControlledSorting(hostSorting: readonly BillTableSortEntry[], echo: BillSortEcho | null): readonly BillTableSortEntry[];
|
|
71
|
+
/** The host callbacks behind the row actions. */
|
|
72
|
+
export type BillTableCallbacks = Pick<BillTableProps, 'onOpen' | 'onDownload' | 'onLoadIntoWarehouse' | 'onEdit' | 'onRecordPayment' | 'onWriteOff' | 'onDelete'>;
|
|
73
|
+
/** The callback each action needs: an action shows only when the row's
|
|
74
|
+
* map lists it AND this callback is set. */
|
|
75
|
+
export declare const BILL_ACTION_CALLBACK: Readonly<Record<BillRowActionId, keyof BillTableCallbacks>>;
|
|
76
|
+
export declare function hasActionCallback(callbacks: BillTableCallbacks, action: BillRowActionId): boolean;
|
|
77
|
+
/** The kit reason code of a disabled action, or `'host'` for a host's own
|
|
78
|
+
* text. Never the host text itself: it may name a person. */
|
|
79
|
+
export declare function disabledReasonCode(state: Exclude<BillRowActionState, 'enabled'>): BillActionDisabledReason | 'host';
|
|
80
|
+
/**
|
|
81
|
+
* The actions the table offers for one row, as the HOST reads them:
|
|
82
|
+
* entries of `row.actions` whose callback is set, in menu order. Under
|
|
83
|
+
* privacy mode every host's own disabled text gives way to
|
|
84
|
+
* `hiddenReasonText` (kit copy), whatever the counterparty kind: the kit
|
|
85
|
+
* cannot tell whether a text names someone. Kit reason codes stay. Agents
|
|
86
|
+
* never read this; they read `summariseActions`.
|
|
87
|
+
*/
|
|
88
|
+
export declare function offeredActions(row: BillRow, callbacks: BillTableCallbacks, privacyMode: boolean, hiddenReasonText: string): BillRowActionMap;
|
|
89
|
+
/**
|
|
90
|
+
* The actions the table offers for one row, as an AGENT reads them: the
|
|
91
|
+
* same entries as `offeredActions`, with every disabled reason as its code.
|
|
92
|
+
* A host's own text is always `'host'`, privacy mode or not, since it may
|
|
93
|
+
* name a person (agent state carries no PHI, `src/agent/types.ts`).
|
|
94
|
+
*/
|
|
95
|
+
export declare function summariseActions(row: BillRow, callbacks: BillTableCallbacks): BillRowActionSummaryMap;
|
|
96
|
+
/**
|
|
97
|
+
* One bill as an agent may read it. The counterparty name is given for a
|
|
98
|
+
* company only: a patient's or another person's name is never in agent
|
|
99
|
+
* state, privacy mode or not (`src/agent/types.ts`, state slots carry no
|
|
100
|
+
* PHI). Disabled reasons are codes only, never a host's text.
|
|
101
|
+
*/
|
|
102
|
+
export declare function summariseBillRow(row: BillRow, callbacks: BillTableCallbacks): BillRowSummary;
|
|
103
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { RowActionDef } from '../row-actions/row-actions';
|
|
2
|
+
import { type BillTableCallbacks } from './model';
|
|
3
|
+
import type { BillRow } from './types';
|
|
4
|
+
/** Which optional callbacks the host passed. Each one adds its items. */
|
|
5
|
+
export interface BillRowActionAvailability {
|
|
6
|
+
download: boolean;
|
|
7
|
+
loadIntoWarehouse: boolean;
|
|
8
|
+
edit: boolean;
|
|
9
|
+
recordPayment: boolean;
|
|
10
|
+
writeOff: boolean;
|
|
11
|
+
delete: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface UseBillRowActionsOptions {
|
|
14
|
+
/** The host callbacks as of the last render, read when an item runs, so
|
|
15
|
+
* a host's inline functions never rebuild the menu. */
|
|
16
|
+
callbacksRef: {
|
|
17
|
+
readonly current: BillTableCallbacks;
|
|
18
|
+
};
|
|
19
|
+
available: BillRowActionAvailability;
|
|
20
|
+
/** Under privacy mode every host's own disabled text gives way to kit
|
|
21
|
+
* copy, whatever the counterparty: the kit cannot tell whether a text
|
|
22
|
+
* names someone. */
|
|
23
|
+
privacyMode: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** The RowActions definitions for every row of the table. */
|
|
26
|
+
export declare function useBillRowActions({ callbacksRef, available, privacyMode, }: UseBillRowActionsOptions): RowActionDef<BillRow>[];
|
|
27
|
+
//# sourceMappingURL=row-actions.d.ts.map
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import type { BillRowActionId } from './types';
|
|
2
|
+
/** The Badge variants BillTable uses. */
|
|
3
|
+
export type BillBadgeVariant = 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
/** Every row action but `open`: the bill number is the open control, so
|
|
5
|
+
* `open` is never a menu item. */
|
|
6
|
+
export type BillMenuActionId = Exclude<BillRowActionId, 'open'>;
|
|
7
|
+
/** Payment status. `unpaid` is warning because the platform paints "Da
|
|
8
|
+
* incassare / Da pagare" `text-warning` today; `overdue` is error. */
|
|
9
|
+
export declare const BILL_PAYMENT_STATUS_COPY: {
|
|
10
|
+
readonly paid: {
|
|
11
|
+
readonly key: "billTable.paymentStatus.paid";
|
|
12
|
+
readonly en: "Paid";
|
|
13
|
+
readonly variant: "success";
|
|
14
|
+
};
|
|
15
|
+
readonly partiallyPaid: {
|
|
16
|
+
readonly key: "billTable.paymentStatus.partiallyPaid";
|
|
17
|
+
readonly en: "Partly paid";
|
|
18
|
+
readonly variant: "warning";
|
|
19
|
+
};
|
|
20
|
+
readonly unpaid: {
|
|
21
|
+
readonly key: "billTable.paymentStatus.unpaid";
|
|
22
|
+
readonly en: "Unpaid";
|
|
23
|
+
readonly variant: "warning";
|
|
24
|
+
};
|
|
25
|
+
readonly overdue: {
|
|
26
|
+
readonly key: "billTable.paymentStatus.overdue";
|
|
27
|
+
readonly en: "Overdue";
|
|
28
|
+
readonly variant: "error";
|
|
29
|
+
};
|
|
30
|
+
readonly writtenOff: {
|
|
31
|
+
readonly key: "billTable.paymentStatus.writtenOff";
|
|
32
|
+
readonly en: "Written off";
|
|
33
|
+
readonly variant: "neutral";
|
|
34
|
+
};
|
|
35
|
+
readonly noPaymentDue: {
|
|
36
|
+
readonly key: "billTable.paymentStatus.noPaymentDue";
|
|
37
|
+
readonly en: "No payment due";
|
|
38
|
+
readonly variant: "neutral";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/** SDI status. `notApplicable` has no entry: it renders an empty cell and
|
|
42
|
+
* is not a filter option. `notDelivered` is warning, not error: the
|
|
43
|
+
* invoice is legally issued and needs a follow-up, not a resend. */
|
|
44
|
+
export declare const BILL_SDI_STATUS_COPY: {
|
|
45
|
+
readonly notSent: {
|
|
46
|
+
readonly key: "billTable.sdiStatus.notSent";
|
|
47
|
+
readonly en: "Not sent";
|
|
48
|
+
readonly variant: "neutral";
|
|
49
|
+
};
|
|
50
|
+
readonly sending: {
|
|
51
|
+
readonly key: "billTable.sdiStatus.sending";
|
|
52
|
+
readonly en: "Sending";
|
|
53
|
+
readonly variant: "info";
|
|
54
|
+
};
|
|
55
|
+
readonly pending: {
|
|
56
|
+
readonly key: "billTable.sdiStatus.pending";
|
|
57
|
+
readonly en: "Awaiting SDI";
|
|
58
|
+
readonly variant: "warning";
|
|
59
|
+
};
|
|
60
|
+
readonly accepted: {
|
|
61
|
+
readonly key: "billTable.sdiStatus.accepted";
|
|
62
|
+
readonly en: "Accepted";
|
|
63
|
+
readonly variant: "success";
|
|
64
|
+
};
|
|
65
|
+
readonly delivered: {
|
|
66
|
+
readonly key: "billTable.sdiStatus.delivered";
|
|
67
|
+
readonly en: "Delivered";
|
|
68
|
+
readonly variant: "success";
|
|
69
|
+
};
|
|
70
|
+
readonly notDelivered: {
|
|
71
|
+
readonly key: "billTable.sdiStatus.notDelivered";
|
|
72
|
+
readonly en: "Not delivered";
|
|
73
|
+
readonly variant: "warning";
|
|
74
|
+
};
|
|
75
|
+
readonly rejected: {
|
|
76
|
+
readonly key: "billTable.sdiStatus.rejected";
|
|
77
|
+
readonly en: "Rejected";
|
|
78
|
+
readonly variant: "error";
|
|
79
|
+
};
|
|
80
|
+
readonly received: {
|
|
81
|
+
readonly key: "billTable.sdiStatus.received";
|
|
82
|
+
readonly en: "Received from SDI";
|
|
83
|
+
readonly variant: "info";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/** Warehouse status: Not loaded neutral, To review warning, Loaded success
|
|
87
|
+
* (Michael, 4 Nov 2026). */
|
|
88
|
+
export declare const BILL_WAREHOUSE_STATUS_COPY: {
|
|
89
|
+
readonly notLoaded: {
|
|
90
|
+
readonly key: "billTable.warehouseStatus.notLoaded";
|
|
91
|
+
readonly en: "Not loaded";
|
|
92
|
+
readonly variant: "neutral";
|
|
93
|
+
};
|
|
94
|
+
readonly toReview: {
|
|
95
|
+
readonly key: "billTable.warehouseStatus.toReview";
|
|
96
|
+
readonly en: "To review";
|
|
97
|
+
readonly variant: "warning";
|
|
98
|
+
};
|
|
99
|
+
readonly loaded: {
|
|
100
|
+
readonly key: "billTable.warehouseStatus.loaded";
|
|
101
|
+
readonly en: "Loaded";
|
|
102
|
+
readonly variant: "success";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export declare const BILL_DIRECTION_COPY: {
|
|
106
|
+
readonly incoming: {
|
|
107
|
+
readonly key: "billTable.direction.incoming";
|
|
108
|
+
readonly en: "Incoming";
|
|
109
|
+
};
|
|
110
|
+
readonly outgoing: {
|
|
111
|
+
readonly key: "billTable.direction.outgoing";
|
|
112
|
+
readonly en: "Outgoing";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
/** The muted line under the bill number. A final bill (`full`) shows no
|
|
116
|
+
* line, so it has no entry. */
|
|
117
|
+
export declare const BILL_TYPE_COPY: {
|
|
118
|
+
readonly partial: {
|
|
119
|
+
readonly key: "billTable.type.partial";
|
|
120
|
+
readonly en: "Deposit";
|
|
121
|
+
};
|
|
122
|
+
readonly credit: {
|
|
123
|
+
readonly key: "billTable.type.credit";
|
|
124
|
+
readonly en: "Credit note";
|
|
125
|
+
};
|
|
126
|
+
readonly proforma: {
|
|
127
|
+
readonly key: "billTable.type.proforma";
|
|
128
|
+
readonly en: "Pro forma";
|
|
129
|
+
};
|
|
130
|
+
readonly other: {
|
|
131
|
+
readonly key: "billTable.type.other";
|
|
132
|
+
readonly en: "Other document";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
/** Row-menu items, in menu order (design section 3.6). */
|
|
136
|
+
export declare const BILL_ACTION_COPY: {
|
|
137
|
+
readonly downloadPdf: {
|
|
138
|
+
readonly key: "billTable.action.downloadPdf";
|
|
139
|
+
readonly en: "Download PDF";
|
|
140
|
+
};
|
|
141
|
+
readonly downloadXml: {
|
|
142
|
+
readonly key: "billTable.action.downloadXml";
|
|
143
|
+
readonly en: "Download XML";
|
|
144
|
+
};
|
|
145
|
+
readonly loadIntoWarehouse: {
|
|
146
|
+
readonly key: "billTable.action.loadIntoWarehouse";
|
|
147
|
+
readonly en: "Load into warehouse";
|
|
148
|
+
};
|
|
149
|
+
readonly edit: {
|
|
150
|
+
readonly key: "billTable.action.edit";
|
|
151
|
+
readonly en: "Edit";
|
|
152
|
+
};
|
|
153
|
+
readonly recordPayment: {
|
|
154
|
+
readonly key: "billTable.action.recordPayment";
|
|
155
|
+
readonly en: "Record payment";
|
|
156
|
+
};
|
|
157
|
+
readonly writeOff: {
|
|
158
|
+
readonly key: "billTable.action.writeOff";
|
|
159
|
+
readonly en: "Write off the unpaid amount";
|
|
160
|
+
};
|
|
161
|
+
readonly undoWriteOff: {
|
|
162
|
+
readonly key: "billTable.action.undoWriteOff";
|
|
163
|
+
readonly en: "Undo write-off";
|
|
164
|
+
};
|
|
165
|
+
readonly delete: {
|
|
166
|
+
readonly key: "billTable.action.delete";
|
|
167
|
+
readonly en: "Delete";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
/** Kit-owned reasons for a disabled action, so the copy exists in every
|
|
171
|
+
* language. */
|
|
172
|
+
export declare const BILL_DISABLED_REASON_COPY: {
|
|
173
|
+
readonly alreadyLoaded: {
|
|
174
|
+
readonly key: "billTable.disabledReason.alreadyLoaded";
|
|
175
|
+
readonly en: "This bill is already in the warehouse.";
|
|
176
|
+
};
|
|
177
|
+
readonly sentToSdi: {
|
|
178
|
+
readonly key: "billTable.disabledReason.sentToSdi";
|
|
179
|
+
readonly en: "This bill was sent to SDI, so it cannot be changed.";
|
|
180
|
+
};
|
|
181
|
+
readonly legalStorage: {
|
|
182
|
+
readonly key: "billTable.disabledReason.legalStorage";
|
|
183
|
+
readonly en: "This bill is in legal storage, so it cannot be changed.";
|
|
184
|
+
};
|
|
185
|
+
readonly paymentAutomation: {
|
|
186
|
+
readonly key: "billTable.disabledReason.paymentAutomation";
|
|
187
|
+
readonly en: "This bill has automatic payments, so it cannot be changed.";
|
|
188
|
+
};
|
|
189
|
+
readonly noPermission: {
|
|
190
|
+
readonly key: "billTable.disabledReason.noPermission";
|
|
191
|
+
readonly en: "You do not have permission to do this.";
|
|
192
|
+
};
|
|
193
|
+
readonly inProgress: {
|
|
194
|
+
readonly key: "billTable.disabledReason.inProgress";
|
|
195
|
+
readonly en: "Already in progress.";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
/** List downloads in the toolbar's download menu. */
|
|
199
|
+
export declare const BILL_LIST_DOWNLOAD_COPY: {
|
|
200
|
+
readonly csv: {
|
|
201
|
+
readonly key: "billTable.export.csv";
|
|
202
|
+
readonly en: "CSV";
|
|
203
|
+
};
|
|
204
|
+
readonly csvDetailed: {
|
|
205
|
+
readonly key: "billTable.export.csvDetailed";
|
|
206
|
+
readonly en: "CSV with treatments";
|
|
207
|
+
};
|
|
208
|
+
readonly pdfZip: {
|
|
209
|
+
readonly key: "billTable.export.pdfZip";
|
|
210
|
+
readonly en: "ZIP with one PDF per bill";
|
|
211
|
+
};
|
|
212
|
+
readonly pdfSingle: {
|
|
213
|
+
readonly key: "billTable.export.pdfSingle";
|
|
214
|
+
readonly en: "One PDF";
|
|
215
|
+
};
|
|
216
|
+
readonly xmlOutgoingZip: {
|
|
217
|
+
readonly key: "billTable.export.xmlOutgoingZip";
|
|
218
|
+
readonly en: "ZIP of sent electronic invoices (XML)";
|
|
219
|
+
};
|
|
220
|
+
readonly xmlIncomingZip: {
|
|
221
|
+
readonly key: "billTable.export.xmlIncomingZip";
|
|
222
|
+
readonly en: "ZIP of electronic invoices received from SDI (XML)";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
//# sourceMappingURL=status-maps.d.ts.map
|