@alfadocs/ui-kit 1.115.0 → 1.117.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-D3j6F-AG.js +7 -0
- package/dist/_chunks/{actions-cell-renderer-bI27uXXC.js → actions-cell-renderer-DTaIQKp9.js} +3 -3
- package/dist/_chunks/{address-autocomplete-DC-H-MZw.js → address-autocomplete-Bnc9ieKO.js} +2 -2
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-RIaGnpnm.js} +4 -4
- package/dist/_chunks/{anamnesis-card-Ddnrdfx3.js → anamnesis-card-sUFT0dpF.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-S1H_AARG.js → anamnesis-summary-card-BtFPpegp.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-BbAREK-3.js} +7 -7
- package/dist/_chunks/{antenatal-schedule-timeline-va9zx7tJ.js → antenatal-schedule-timeline-86YVlMYJ.js} +2 -2
- package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-0PebvrOS.js} +3 -3
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-DdUhqfEi.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-CC7nmBOH.js} +3 -3
- package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-B04zKY7g.js} +2 -2
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-DPjab0eJ.js} +6 -6
- package/dist/_chunks/bill-line-table-vCnVo7_a.js +1565 -0
- package/dist/_chunks/{bishop-score-QJu-sM1y.js → bishop-score-CKztphVz.js} +2 -2
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-rri5vvMt.js} +3 -3
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-B2MJo0Se.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-BEmBcb61.js} +18 -18
- package/dist/_chunks/{card-DVO3x8E-.js → card-n6W6LW-N.js} +78 -47
- package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-bGTIliXc.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-cdojypxu.js} +3 -3
- package/dist/_chunks/{chart-DebrFZ6L.js → chart-Aue_2dMb.js} +2 -2
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/{clinical-note-card-Zz5_GEz-.js → clinical-note-card-DHn5W_bv.js} +2 -2
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
- package/dist/_chunks/{connection-status-DjarASoU.js → connection-status-DWClakYw.js} +2 -2
- package/dist/_chunks/{contact-card-Cv-Nwvac.js → contact-card-CGpbYuxl.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BubJPyRB.js} +3 -3
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-C8nWAeTk.js} +3 -3
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-CaxgaEgI.js} +2 -2
- package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-DiBSbN2Y.js} +3017 -3106
- package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
- package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-DhYx-hCD.js} +101 -100
- package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-CT6nXjRM.js} +7 -7
- package/dist/_chunks/default-tabs-CD285u0C.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-BWDTCEHI.js} +3 -3
- package/dist/_chunks/dropdown-menu-Dw6sgQwJ.js +679 -0
- package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-c1NJPw9F.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-BlK-8A7b.js} +2 -2
- package/dist/_chunks/{entity-summary-DGCBQDt1.js → entity-summary-BanguTa6.js} +2 -2
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-Bt07zQJU.js} +20 -19
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-D0KofJJw.js} +3 -3
- package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-CV1_GtjC.js} +5 -5
- package/dist/_chunks/{finished-terminal-BKTFUk3S.js → finished-terminal-FR8uc_Ws.js} +2 -2
- package/dist/_chunks/{forgot-password-form-Bc_UPax6.js → forgot-password-form-YvI9vX-G.js} +2 -2
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/{gestational-age-calculator-60y1RyQL.js → gestational-age-calculator-Cg4Gq42R.js} +3 -3
- package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
- package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BjTa_77t.js} +3 -3
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DsvheAOt.js} +160 -147
- package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-BurtKmeu.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-BKtkVZ1W.js} +2 -2
- package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-C3oL0WTp.js} +7 -7
- package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-NFNGdAGt.js} +4 -4
- package/dist/_chunks/{login-dev-card-CPndtWdz.js → login-dev-card-Dz3ezx1o.js} +2 -2
- package/dist/_chunks/map-view-Frj8vE7n.js +1105 -0
- package/dist/_chunks/{maps-core-gate-DkNqGkm3.js → maps-core-gate-Dgs7jXxy.js} +6 -6
- package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-BOBWmzoT.js} +6 -6
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-C9dnSxzw.js} +2 -2
- package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-CHR-Jv6N.js} +5 -5
- package/dist/_chunks/{notification-card-CPW4poUr.js → notification-card-DRMv2_pW.js} +20 -20
- package/dist/_chunks/{notification-tray-CQK3lw87.js → notification-tray-mlCfxNRH.js} +2 -2
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{operator-hero-BWayX73x.js → operator-hero-CnfWckNQ.js} +2 -2
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/parts-CcyRkB8t.js +869 -0
- package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-C4dHR4iu.js} +3 -3
- package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-D_S7joff.js} +3 -3
- package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-x0-AhCyC.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-D7yaD4u1.js → payment-automation-upsell-CGdG2Mwk.js} +2 -2
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-CEIalOtr.js} +15 -14
- package/dist/_chunks/{periodontal-chart-Bjz7O4wT.js → periodontal-chart-DqHrQY4e.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CxEXHl2x.js → periodontal-chart-card-q9WSHRC2.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-DnZuZD14.js → periodontal-diagnosis-CJPWluQU.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-BBPB9wf1.js → periodontal-risk-chart-CKkyOROk.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Cw4NZp0A.js → practice-profile-hero-BFS6lO2a.js} +2 -2
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CzHWprX4.js} +922 -787
- package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-BO6diQMZ.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-DkGcEc_l.js} +3 -3
- package/dist/_chunks/{privacy-mask-BlJK51MD.js → privacy-mask-DJ1gee4c.js} +2 -2
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
- package/dist/_chunks/{registration-form-DW-0X7S4.js → registration-form-CMXefBnC.js} +2 -2
- package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-TaZfI3yj.js} +5 -5
- package/dist/_chunks/{reset-password-form-C93SH0Tx.js → reset-password-form-D_TePSM1.js} +2 -2
- package/dist/_chunks/{reviews-panel-CfJPEkH7.js → reviews-panel-CdHUSndF.js} +2 -2
- package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-CMPA5Wgy.js} +12 -11
- package/dist/_chunks/row-actions-Dpf9CrCP.js +213 -0
- package/dist/_chunks/{section-card-DFr2wGal.js → section-card-CYfeQ6EQ.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-DWxWa_cJ.js → send-registration-link-form-DuZQuKnI.js} +2 -2
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-Dzs0jZsd.js} +3 -3
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-CF8R38Og.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-P4qFmxk5.js} +2 -2
- package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-WdDCqbIL.js} +168 -178
- package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-DBSm3WjK.js} +2 -2
- package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-CeKl8f_f.js} +3 -3
- package/dist/_chunks/{timeline-AMqE-c2T.js → timeline-DXko0M1t.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BrK5NQIq.js} +2 -2
- package/dist/_chunks/toolbar-z8vXnpXz.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-DHRxV2sE.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
- 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-BMAiQYo6.js → use-appointment-details-read-B-SXnszJ.js} +10 -10
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.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-DCjkRuS_.js} +3 -3
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-D0avpoeS.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-dgUjv9T7.js} +3 -3
- package/dist/agent-catalog.json +1080 -1
- package/dist/agent-i18n/en.json +50 -0
- package/dist/browser-support.js +2 -0
- package/dist/components/_shared/accessible-target.d.ts +19 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/focus-visible.d.ts +8 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/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 +49 -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 +36 -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/bishop-score/index.js +1 -1
- 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/card/card.d.ts +9 -2
- package/dist/components/card/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/clinical-note-card/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/connection-status/index.js +1 -1
- package/dist/components/contact-card/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/body.d.ts +6 -0
- package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
- package/dist/components/data-grid/editors.d.ts +7 -1
- package/dist/components/data-grid/index.js +9 -8
- package/dist/components/data-grid/selection.d.ts +10 -0
- package/dist/components/data-grid/types.d.ts +61 -11
- package/dist/components/data-grid-tabs/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- 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/entity-summary/index.js +1 -1
- 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/finished-terminal/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/header-settings.d.ts +7 -3
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +48 -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/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +2 -1
- package/dist/components/notification-tray/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/operator-hero/index.js +1 -1
- 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-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +20 -0
- 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/reviews-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/section-card/index.js +1 -1
- package/dist/components/skeleton-scheme/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/task-editor/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/timeline/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/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/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 +7 -1
- package/dist/i18n/locales/ar.d.ts +262 -0
- package/dist/i18n/locales/ar.js +263 -1
- package/dist/i18n/locales/de.d.ts +262 -0
- package/dist/i18n/locales/de.js +263 -1
- package/dist/i18n/locales/el.d.ts +262 -0
- package/dist/i18n/locales/el.js +263 -1
- package/dist/i18n/locales/en.d.ts +262 -0
- package/dist/i18n/locales/en.js +263 -1
- package/dist/i18n/locales/es.d.ts +262 -0
- package/dist/i18n/locales/es.js +263 -1
- package/dist/i18n/locales/fr.d.ts +262 -0
- package/dist/i18n/locales/fr.js +263 -1
- package/dist/i18n/locales/hi.d.ts +262 -0
- package/dist/i18n/locales/hi.js +263 -1
- package/dist/i18n/locales/it.d.ts +262 -0
- package/dist/i18n/locales/it.js +263 -1
- package/dist/i18n/locales/ja.d.ts +262 -0
- package/dist/i18n/locales/ja.js +263 -1
- package/dist/i18n/locales/nl.d.ts +262 -0
- package/dist/i18n/locales/nl.js +263 -1
- package/dist/i18n/locales/pl.d.ts +262 -0
- package/dist/i18n/locales/pl.js +263 -1
- package/dist/i18n/locales/pt.d.ts +262 -0
- package/dist/i18n/locales/pt.js +263 -1
- package/dist/i18n/locales/ro.d.ts +262 -0
- package/dist/i18n/locales/ro.js +263 -1
- package/dist/i18n/locales/ru.d.ts +262 -0
- package/dist/i18n/locales/ru.js +263 -1
- package/dist/i18n/locales/sq.d.ts +262 -0
- package/dist/i18n/locales/sq.js +263 -1
- package/dist/i18n/locales/sv.d.ts +262 -0
- package/dist/i18n/locales/sv.js +263 -1
- package/dist/i18n/locales/tr.d.ts +262 -0
- package/dist/i18n/locales/tr.js +263 -1
- package/dist/i18n/locales/zh.d.ts +262 -0
- package/dist/i18n/locales/zh.js +263 -1
- package/dist/index.js +1298 -1246
- package/dist/locales/ar.json +263 -1
- package/dist/locales/de.json +263 -1
- package/dist/locales/el.json +263 -1
- package/dist/locales/en.json +263 -1
- package/dist/locales/es.json +263 -1
- package/dist/locales/fr.json +263 -1
- package/dist/locales/hi.json +263 -1
- package/dist/locales/it.json +263 -1
- package/dist/locales/ja.json +263 -1
- package/dist/locales/nl.json +263 -1
- package/dist/locales/pl.json +263 -1
- package/dist/locales/pt.json +263 -1
- package/dist/locales/ro.json +263 -1
- package/dist/locales/ru.json +263 -1
- package/dist/locales/sq.json +263 -1
- package/dist/locales/sv.json +263 -1
- package/dist/locales/tr.json +263 -1
- package/dist/locales/zh.json +263 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/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/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-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 +22 -3
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/dropdown-menu-CqxBthww.js +0 -595
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/map-view-Bny79cWa.js +0 -856
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { type DecimalString, type ScaledDecimal } from '../_shared/decimal';
|
|
2
|
+
import type { BillDocumentKind, BillLine, BillLineInfo, BillLineItemChoice, BillLineItemOption, BillLineLoadResult, BillLineMatchState, BillLineRow, BillLineSummary, BillLineValue, BillLineValues } from './bill-line-table.types';
|
|
3
|
+
/** Most fraction digits of a quantity: FatturaPA 2.2.1.5 `Quantita`
|
|
4
|
+
* (`[0-9]{1,12}\.[0-9]{2,8}`, quoted in `Version20260608180319.php:38`). */
|
|
5
|
+
export declare const BILL_LINE_QUANTITY_FRACTION_DIGITS = 8;
|
|
6
|
+
/** Most fraction digits of a price or amount: FatturaPA 2.2.1.9
|
|
7
|
+
* `PrezzoUnitario`, 2.2.1.11 `PrezzoTotale`, 2.2.1.10.3 `Importo`. */
|
|
8
|
+
export declare const BILL_LINE_PRICE_FRACTION_DIGITS = 8;
|
|
9
|
+
/** Fraction digits of a rate: 2.2.1.12 `AliquotaIVA`, 2.2.1.10.2
|
|
10
|
+
* `Percentuale`. */
|
|
11
|
+
export declare const BILL_LINE_PERCENT_FRACTION_DIGITS = 2;
|
|
12
|
+
/** Largest quantity the editor accepts (D15). It keeps every typed value
|
|
13
|
+
* where a double and its decimal text agree exactly. An invoiced quantity
|
|
14
|
+
* above it, or with more than 15 significant digits, is shown read-only
|
|
15
|
+
* with the kit's "too large to edit here" note and loads unchanged: it is
|
|
16
|
+
* never clamped. The handle and the agent refuse a larger value with
|
|
17
|
+
* `INVALID_QUANTITY`. */
|
|
18
|
+
export declare const BILL_LINE_MAX_QUANTITY = 10000000;
|
|
19
|
+
/** Longest new-item name: `DoctorInventoryItem.name` is a string of 255
|
|
20
|
+
* (`DoctorInventoryItem.orm.xml`). */
|
|
21
|
+
export declare const BILL_LINE_ITEM_NAME_MAX_LENGTH = 255;
|
|
22
|
+
/** Combobox value of the per-line "New item: …" option. Never a platform
|
|
23
|
+
* article id: `DoctorInventoryItem.id` is an integer
|
|
24
|
+
* (`DoctorInventoryItem.orm.xml`, `<id name="id" type="integer">`). */
|
|
25
|
+
export declare const BILL_LINE_NEW_ITEM_VALUE = "bill-line-table:new-item";
|
|
26
|
+
/** The kit's own warning code for a locked quantity (D15). */
|
|
27
|
+
export declare const BILL_LINE_QUANTITY_TOO_LARGE = "quantityTooLarge";
|
|
28
|
+
/** What a quantity text means to the table. */
|
|
29
|
+
export interface BillLineQuantityReading {
|
|
30
|
+
/** No text: the field is empty. */
|
|
31
|
+
empty: boolean;
|
|
32
|
+
/** Syntax and digits pass `FATTURAPA_VALUE.quantity`, the sign aside. */
|
|
33
|
+
wellFormed: boolean;
|
|
34
|
+
/** Above zero. */
|
|
35
|
+
positive: boolean;
|
|
36
|
+
/** The exact value when a safe integer holds its units, else `null`. */
|
|
37
|
+
value: ScaledDecimal | null;
|
|
38
|
+
/** The number NumberInput shows: exact both ways (at most 15 significant
|
|
39
|
+
* digits) and at most `BILL_LINE_MAX_QUANTITY` in size. `null` for an
|
|
40
|
+
* empty, malformed or out-of-range quantity. */
|
|
41
|
+
editorNumber: number | null;
|
|
42
|
+
}
|
|
43
|
+
export declare function readBillLineQuantity(text: DecimalString | null): BillLineQuantityReading;
|
|
44
|
+
/** Can the editor hold this quantity exactly (D15)? False above
|
|
45
|
+
* `BILL_LINE_MAX_QUANTITY` or beyond 15 significant digits: the line then
|
|
46
|
+
* shows its quantity read-only with the kit's `quantityTooLarge` note and
|
|
47
|
+
* loads it as invoiced. A malformed quantity stays editable, so the
|
|
48
|
+
* reviewer can type a correct one. */
|
|
49
|
+
export declare function isBillLineQuantityEditable(quantity: DecimalString): boolean;
|
|
50
|
+
/** A NumberInput value back to exact decimal text, at most 8 fraction
|
|
51
|
+
* digits, never padded and with no trailing zeros (`2.5` is `"2.5"`,
|
|
52
|
+
* `0.1 + 0.2` is `"0.3"`). `null` for NaN or Infinity. */
|
|
53
|
+
export declare function billLineQuantityFromNumber(value: number): DecimalString | null;
|
|
54
|
+
/** A signed amount (line total, unit price, adjustment, summary figure),
|
|
55
|
+
* up to 8 places. `null` when the text is malformed or its units pass a
|
|
56
|
+
* safe integer (about 90 million at 8 places): the platform flags such a
|
|
57
|
+
* line `valueOutOfRange`, and the kit counts it as invalid. */
|
|
58
|
+
export declare function readBillLineAmount(text: DecimalString): ScaledDecimal | null;
|
|
59
|
+
/** A rate (VAT or a discount percentage), unsigned, 2 places. */
|
|
60
|
+
export declare function readBillLineRate(text: DecimalString | null): ScaledDecimal | null;
|
|
61
|
+
/** Net unit cost (D14): `lineTotal` / quantity at 8 places, one rounding
|
|
62
|
+
* half away from zero, trailing zeros dropped (30.86 / 2.5 is
|
|
63
|
+
* `"12.344"`). `null` for an empty, zero or unreadable quantity. */
|
|
64
|
+
export declare function netUnitCost(lineTotal: DecimalString, quantity: DecimalString | null): DecimalString | null;
|
|
65
|
+
/** Do two signed amounts have the same size? A credit note may carry an
|
|
66
|
+
* unsigned `PrezzoUnitario` beside an inverted `PrezzoTotale`, so the
|
|
67
|
+
* "Net per unit" line compares sizes, not signs. */
|
|
68
|
+
export declare function sameBillLineMagnitude(a: DecimalString, b: DecimalString): boolean;
|
|
69
|
+
/** A new-item name as the platform stores it: trimmed, at most 255
|
|
70
|
+
* characters (code points, as MySQL counts them). */
|
|
71
|
+
export declare function normaliseBillLineItemName(name: string): string;
|
|
72
|
+
/** A choice as the table stores it: a new item with no name takes the line
|
|
73
|
+
* description (D5). */
|
|
74
|
+
export declare function normaliseBillLineItemChoice(choice: BillLineItemChoice, line: BillLine): BillLineItemChoice;
|
|
75
|
+
/** D15: a quantity a person set above `BILL_LINE_MAX_QUANTITY`. The
|
|
76
|
+
* invoiced quantity itself never counts: a locked line loads as invoiced. */
|
|
77
|
+
export declare function isBillLineQuantityTooLarge(line: BillLine, value: BillLineValue): boolean;
|
|
78
|
+
/** A new item with no name: the description was blank and nothing was
|
|
79
|
+
* typed. The platform cannot create an item without a name. */
|
|
80
|
+
export declare function isBillLineNewItemNameMissing(value: BillLineValue): boolean;
|
|
81
|
+
/** A new item that still carries the line description as its name (the
|
|
82
|
+
* prefill, D5). On a lab invoice that name can be a patient's (Q3), so
|
|
83
|
+
* privacy mode asks the reviewer to check it with privacy mode off. */
|
|
84
|
+
export declare function isBillLineNewItemNamedFromDescription(line: BillLine, value: BillLineValue): boolean;
|
|
85
|
+
/** True when any line is already loaded: the HTP-7311 one-load rule then
|
|
86
|
+
* locks the whole invoice (D8). */
|
|
87
|
+
export declare function isBillInvoiceLoaded(lines: readonly BillLine[]): boolean;
|
|
88
|
+
/** The value every line starts with: its invoiced quantity and the
|
|
89
|
+
* proposal's item, or a new item named after the description (see product
|
|
90
|
+
* question Q3 on lab lines that name a patient). */
|
|
91
|
+
export declare function getDefaultBillLineValue(line: BillLine): BillLineValue;
|
|
92
|
+
export declare function getDefaultBillLineValues(lines: readonly BillLine[]): Record<string, BillLineValue>;
|
|
93
|
+
/** Every line that can load and was not proposed as skip. None once the
|
|
94
|
+
* invoice is loaded. */
|
|
95
|
+
export declare function getDefaultBillLineSelection(lines: readonly BillLine[]): string[];
|
|
96
|
+
/** Every current line's value, missing entries as their default; entries
|
|
97
|
+
* for lines no longer in `lines` are dropped. */
|
|
98
|
+
export declare function resolveBillLineValues(lines: readonly BillLine[], values: BillLineValues): Record<string, BillLineValue>;
|
|
99
|
+
/** The ids that are ticked in effect: known, tickable lines only, unique,
|
|
100
|
+
* in invoice order. */
|
|
101
|
+
export declare function resolveBillLineSelection(lines: readonly BillLine[], selection: readonly string[]): string[];
|
|
102
|
+
/** Same value whatever the scale ("2.50" equals "2.5"). */
|
|
103
|
+
export declare function sameBillLineValue(a: BillLineValue, b: BillLineValue): boolean;
|
|
104
|
+
/** What Confirm will do with the line (D3): the badge cannot disagree with
|
|
105
|
+
* the checkbox. */
|
|
106
|
+
export declare function getBillLineMatchState(line: BillLine, value: BillLineValue, selected: boolean): BillLineMatchState;
|
|
107
|
+
/**
|
|
108
|
+
* Can this line load as it stands? Judged for ticked lines. Invalid when:
|
|
109
|
+
* - the quantity is empty, malformed, zero or negative (quantities are
|
|
110
|
+
* unsigned, so a negative one is a contract error);
|
|
111
|
+
* - a person set the quantity above `BILL_LINE_MAX_QUANTITY` (D15);
|
|
112
|
+
* - a new item has no name;
|
|
113
|
+
* - an `'error'` warning is on the line;
|
|
114
|
+
* - the line amount cannot be read exactly (`valueOutOfRange`);
|
|
115
|
+
* - `itemKnown` is false: the chosen existing item is no longer known
|
|
116
|
+
* (the table passes this; a host calling the helper may leave it out).
|
|
117
|
+
*/
|
|
118
|
+
export declare function isBillLineInvalid(line: BillLine, value: BillLineValue, itemKnown?: boolean): boolean;
|
|
119
|
+
/** Item lookup the table passes to the helpers; the default knows every
|
|
120
|
+
* item. */
|
|
121
|
+
export type BillLineItemLookup = (itemId: string) => boolean;
|
|
122
|
+
/** The ticks and values the table starts from, for `dirty`. */
|
|
123
|
+
export interface BillLineDefaults {
|
|
124
|
+
values: BillLineValues;
|
|
125
|
+
selection: readonly string[];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Totals and counts (see `BillLineSummary`). Net is the ticked lines'
|
|
129
|
+
* `PrezzoTotale` summed exactly and rounded once to cents; VAT is, per rate,
|
|
130
|
+
* the rate's net rounded to cents first (FatturaPA 2.2.2.5
|
|
131
|
+
* `ImponibileImporto` has two places), times the rate, rounded to cents,
|
|
132
|
+
* then added, the `DatiRiepilogo` shape; gross
|
|
133
|
+
* is net plus VAT (D7, design section 4.1). A quantity edit changes none of
|
|
134
|
+
* them.
|
|
135
|
+
*/
|
|
136
|
+
export declare function summariseBillLines(lines: readonly BillLine[], values: BillLineValues, selection: readonly string[], defaults: BillLineDefaults, isItemKnown?: BillLineItemLookup): BillLineSummary;
|
|
137
|
+
/**
|
|
138
|
+
* The HTP-7311 request body, or the ticked lines that block it. The only
|
|
139
|
+
* place the credit-note sign is applied (D6): a credit note's quantities go
|
|
140
|
+
* out negative. A loaded invoice gives no payload (D8).
|
|
141
|
+
*/
|
|
142
|
+
export declare function getBillLineLoadPayload(lines: readonly BillLine[], values: BillLineValues, selection: readonly string[], documentKind: BillDocumentKind, isItemKnown?: BillLineItemLookup): BillLineLoadResult;
|
|
143
|
+
export interface BillLineRowContext {
|
|
144
|
+
/** `isBillInvoiceLoaded(lines)`. */
|
|
145
|
+
invoiceLoaded: boolean;
|
|
146
|
+
/** Ticked ids in effect (`resolveBillLineSelection`). */
|
|
147
|
+
ticked: ReadonlySet<string>;
|
|
148
|
+
/** The item behind an id, when the table knows it. */
|
|
149
|
+
findItem: (itemId: string) => BillLineItemOption | undefined;
|
|
150
|
+
}
|
|
151
|
+
/** One line's view model. */
|
|
152
|
+
export declare function buildBillLineRow(line: BillLine, value: BillLineValue, context: BillLineRowContext): BillLineRow;
|
|
153
|
+
export interface BillLineRowsInput {
|
|
154
|
+
lines: readonly BillLine[];
|
|
155
|
+
values: BillLineValues;
|
|
156
|
+
selection: readonly string[];
|
|
157
|
+
findItem: (itemId: string) => BillLineItemOption | undefined;
|
|
158
|
+
/** The rows of the last build, by line id: an unchanged line keeps its
|
|
159
|
+
* object, so DataGrid re-renders only the lines that changed. */
|
|
160
|
+
previous?: ReadonlyMap<string, BillLineRow>;
|
|
161
|
+
}
|
|
162
|
+
/** Every line's view model, in invoice order, with structural sharing. */
|
|
163
|
+
export declare function buildBillLineRows(input: BillLineRowsInput): BillLineRow[];
|
|
164
|
+
/** The privacy-safe facts the handle and the agent read. */
|
|
165
|
+
export declare function toBillLineInfo(row: BillLineRow, options: {
|
|
166
|
+
tableReadOnly: boolean;
|
|
167
|
+
documentKind: BillDocumentKind;
|
|
168
|
+
}): BillLineInfo;
|
|
169
|
+
/** A quantity a handle or agent write may set: unsigned, above 0, at most 8
|
|
170
|
+
* fraction digits and at most `BILL_LINE_MAX_QUANTITY`. Returns the
|
|
171
|
+
* normalised text (`"02.50"` is `"2.5"`), or `null` to refuse it. */
|
|
172
|
+
export declare function normaliseBillLineQuantityInput(text: string): DecimalString | null;
|
|
173
|
+
//# sourceMappingURL=bill-line-table.model.d.ts.map
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { DecimalString } from '../_shared/decimal';
|
|
3
|
+
/**
|
|
4
|
+
* The fiscal document the lines belong to. Platform source: FatturaPA
|
|
5
|
+
* 2.1.1.1 `TipoDocumento`. TD04 and TD08 are credit notes (HTP-7310); the
|
|
6
|
+
* incoming conversion handles TD04 today
|
|
7
|
+
* (`CreateRealBillForIncomingBillService.php:115`) and refuses TD08 as an
|
|
8
|
+
* unsupported type (`:103-111`), so a TD08 never becomes a `DoctorBill`
|
|
9
|
+
* until the platform accepts it.
|
|
10
|
+
*
|
|
11
|
+
* One BillLineTable shows ONE `DoctorBill`, which is one FatturaPA body:
|
|
12
|
+
* the platform converts a single body per file
|
|
13
|
+
* (`parseFileAndReturnSingleBillService`, `:79-88`). A multi-body file gives
|
|
14
|
+
* one bill, and one dialog, per body; `lineNumber` (`NumeroLinea`) is unique
|
|
15
|
+
* within that body only.
|
|
16
|
+
*/
|
|
17
|
+
export type BillDocumentKind = 'invoice' | 'creditNote';
|
|
18
|
+
/** The matcher's proposal for a line (HTP-7310: "exactly one proposal:
|
|
19
|
+
* existing item, new item, or skip"). No platform field yet: HTP-7310
|
|
20
|
+
* computes it per request. */
|
|
21
|
+
export type BillLineProposal = 'existing' | 'new' | 'skip';
|
|
22
|
+
/**
|
|
23
|
+
* What confirming will do with a line, shown as the Status badge. Derived
|
|
24
|
+
* by the kit, never sent by the platform:
|
|
25
|
+
* - `alreadyLoaded`: `BillLine.alreadyLoaded` (neutral Badge, Check icon).
|
|
26
|
+
* - `skip`: the line is not ticked (neutral).
|
|
27
|
+
* - `matched`: ticked, an existing item chosen (success).
|
|
28
|
+
* - `newItem`: ticked, a new item is created on confirm (info).
|
|
29
|
+
*/
|
|
30
|
+
export type BillLineMatchState = 'matched' | 'newItem' | 'skip' | 'alreadyLoaded';
|
|
31
|
+
/** One discount or surcharge block on a line. Platform source: FatturaPA
|
|
32
|
+
* 2.2.1.10 `DettaglioLinee/ScontoMaggiorazione` (several blocks may
|
|
33
|
+
* apply). Not read today: `addBillRow`
|
|
34
|
+
* (`CreateRealBillForIncomingBillService.php:431-470`) reads only
|
|
35
|
+
* Descrizione, Quantita, PrezzoUnitario, PrezzoTotale and AliquotaIVA, and
|
|
36
|
+
* the document-level block (`:232-251`) is a different element. HTP-7310
|
|
37
|
+
* adds the parse. */
|
|
38
|
+
export interface BillLineAdjustment {
|
|
39
|
+
/** 2.2.1.10.1 `Tipo`: `SC` is `'discount'`, `MG` is `'surcharge'`. */
|
|
40
|
+
type: 'discount' | 'surcharge';
|
|
41
|
+
/** 2.2.1.10.2 `Percentuale`, unsigned (`"10.00"`), or `null` when the
|
|
42
|
+
* block carries only an amount. */
|
|
43
|
+
percent: DecimalString | null;
|
|
44
|
+
/** 2.2.1.10.3 `Importo`, unsigned, or `null` when the block carries only
|
|
45
|
+
* a percentage. */
|
|
46
|
+
amount: DecimalString | null;
|
|
47
|
+
}
|
|
48
|
+
/** A note about a line. Open-ended: the platform owns the codes and the
|
|
49
|
+
* copy (HTP-5263/5264 prior art: missing reference data, discount as an
|
|
50
|
+
* amount only, VAT rounded, duplicate line, matched by description only,
|
|
51
|
+
* value out of range, opposite sign). */
|
|
52
|
+
export interface BillLineWarning {
|
|
53
|
+
/** Stable code for tests, analytics and the agent (`matchedByDescription`,
|
|
54
|
+
* `vatRounded`, `oppositeSign`). Never shown, never written to the DOM.
|
|
55
|
+
* `quantityTooLarge` is the kit's own code (see `BILL_LINE_MAX_QUANTITY`). */
|
|
56
|
+
code: string;
|
|
57
|
+
/** Translated by the host. Plain text. Must not quote the description or
|
|
58
|
+
* any personal data: warnings stay visible under privacy mode. */
|
|
59
|
+
message: string;
|
|
60
|
+
/** `'error'`: the line cannot load as it is (a failed confirm points at
|
|
61
|
+
* it, or a value is out of range). The line counts as invalid while it
|
|
62
|
+
* is ticked; its first `'error'` message is also the quantity field's
|
|
63
|
+
* error, linked to the field `focusLine(id, 'quantity')` moves to.
|
|
64
|
+
* `'warning'`: informative only. */
|
|
65
|
+
severity: 'warning' | 'error';
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* One invoice line (one FatturaPA 2.2.1 `DettaglioLinee`).
|
|
69
|
+
*
|
|
70
|
+
* Signs: `unitPrice` and `lineTotal` are signed as the platform stores them.
|
|
71
|
+
* For a credit note the platform makes every row's net negative when the XML
|
|
72
|
+
* lines sum positive (`invertNet`,
|
|
73
|
+
* `CreateRealBillForIncomingBillService.php:215-229`; `$net *= -1` at
|
|
74
|
+
* `:438-444`), because `DoctorBill::setNet` asserts net <= 0 for credit
|
|
75
|
+
* bills (`DoctorBill.php:341-342`). `quantity` is unsigned, as FatturaPA
|
|
76
|
+
* `Quantita` is: the stock direction comes from `documentKind` alone, and
|
|
77
|
+
* the kit applies it in the load payload.
|
|
78
|
+
*
|
|
79
|
+
* Mixed signs (D19): a line whose `lineTotal` sign opposes the document's
|
|
80
|
+
* (a positive line on a credit note after `invertNet`) comes from HTP-7310
|
|
81
|
+
* with proposal `'skip'` and an `oppositeSign` warning, because loading it
|
|
82
|
+
* would move stock against its own amount. The reviewer can still tick it;
|
|
83
|
+
* it then moves stock in the document's direction.
|
|
84
|
+
*/
|
|
85
|
+
export interface BillLine {
|
|
86
|
+
/** Opaque, stable line reference: the HTP-7309 invoice-line reference
|
|
87
|
+
* (unique per archive; prior art: supplier VAT, year, invoice number,
|
|
88
|
+
* `NumeroLinea`; the reverted `fatturapa_reference` VARCHAR(100),
|
|
89
|
+
* `Version20260608180319.php:30`). The only line datum that reaches the
|
|
90
|
+
* DOM. */
|
|
91
|
+
id: string;
|
|
92
|
+
/** 2.2.1.1 `NumeroLinea`. Shown to agents as the line's position. */
|
|
93
|
+
lineNumber: number;
|
|
94
|
+
/** 2.2.1.3 `CodiceArticolo/CodiceValore` (the supplier's item code), or
|
|
95
|
+
* `null`. With several `CodiceArticolo` blocks the platform sends the one
|
|
96
|
+
* HTP-7310 matches on. NOT `DoctorInventoryItem.number`. */
|
|
97
|
+
supplierCode: string | null;
|
|
98
|
+
/** 2.2.1.4 `Descrizione`, as the supplier wrote it. May name a patient on
|
|
99
|
+
* a dental lab invoice, so it is masked under privacy mode. */
|
|
100
|
+
description: string;
|
|
101
|
+
/** 2.2.1.5 `Quantita`, unsigned (FatturaPA has no sign here). On a credit
|
|
102
|
+
* note it is the quantity to remove. FatturaPA omits it on some service
|
|
103
|
+
* lines: HTP-7310 then sends `"1"` (today `addBillRow` uses 0, label only,
|
|
104
|
+
* `CreateRealBillForIncomingBillService.php:431-462`). Read with the
|
|
105
|
+
* kit's `FATTURAPA_VALUE.quantity` (point optional), not the wire
|
|
106
|
+
* pattern. A negative value is a contract error: the line shows "Enter a
|
|
107
|
+
* quantity above 0" and counts as invalid while ticked. Stored by
|
|
108
|
+
* HTP-7309 in `DoctorInventoryItemChange.quantity`, an INT column today
|
|
109
|
+
* (`DoctorInventoryItemChange.orm.xml`; DECIMAL(20,8) was added by
|
|
110
|
+
* `Version20260608180319` and reverted by `Version20260911094552`). */
|
|
111
|
+
quantity: DecimalString;
|
|
112
|
+
/** 2.2.1.6 `UnitaMisura` ("CF", "PZ"), or `null`. Shown after the
|
|
113
|
+
* quantity as the supplier wrote it (data, not translated). */
|
|
114
|
+
unitOfMeasure: string | null;
|
|
115
|
+
/** 2.2.1.9 `PrezzoUnitario`, signed, before line discounts and
|
|
116
|
+
* surcharges. Today read as raw XML text into a bill-row label only
|
|
117
|
+
* (`CreateRealBillForIncomingBillService.php:435`). The cell adds the net
|
|
118
|
+
* unit cost (`lineTotal` / quantity) as a second line when its size
|
|
119
|
+
* differs: the cost the stock movement receives (HTP-7310). */
|
|
120
|
+
unitPrice: DecimalString;
|
|
121
|
+
/** 2.2.1.10 blocks, in document order. Empty when none. */
|
|
122
|
+
adjustments: readonly BillLineAdjustment[];
|
|
123
|
+
/** 2.2.1.11 `PrezzoTotale`, signed: the invoiced net amount of the line
|
|
124
|
+
* after its discounts and surcharges. Today it becomes
|
|
125
|
+
* `DoctorBillRow.net` through `setNet(float $net)`
|
|
126
|
+
* (`DoctorBillRow.php:198`; column decimal scale 4,
|
|
127
|
+
* `DoctorBillRow.orm.xml`). The totals footer sums it. */
|
|
128
|
+
lineTotal: DecimalString;
|
|
129
|
+
/** 2.2.1.12 `AliquotaIVA` (`"22.00"`, `"0.00"`), or `null` when the line
|
|
130
|
+
* carries no rate. 0 is a real rate and renders "0%" (HTP-6221): never
|
|
131
|
+
* treat it as missing. The movement column `vat_percent` is an integer
|
|
132
|
+
* (`DoctorInventoryItemChange.orm.xml`), so the platform rounds a
|
|
133
|
+
* fractional rate and adds a `vatRounded` warning. */
|
|
134
|
+
vatPercent: DecimalString | null;
|
|
135
|
+
/** 2.2.1.14 `Natura` (N1 to N7 and subcodes) when the rate is 0, else
|
|
136
|
+
* `null`. Shown after "0%" so a zero rate reads as deliberate. */
|
|
137
|
+
vatNature: string | null;
|
|
138
|
+
/** HTP-7310 proposal. */
|
|
139
|
+
proposal: BillLineProposal;
|
|
140
|
+
/** HTP-7310: the matched item (`DoctorInventoryItem.id`) when `proposal`
|
|
141
|
+
* is `'existing'`, else `null`. */
|
|
142
|
+
proposedItemId: string | null;
|
|
143
|
+
/** True when the line already has an HTP-7309 invoice-line reference on a
|
|
144
|
+
* movement (loaded by hand or on arrival, HTP-7311/7313). By the one-load
|
|
145
|
+
* rule (D8) one such line locks every line of the invoice. */
|
|
146
|
+
alreadyLoaded: boolean;
|
|
147
|
+
/** Open-ended notes, in the order to show them. */
|
|
148
|
+
warnings: readonly BillLineWarning[];
|
|
149
|
+
}
|
|
150
|
+
/** One warehouse item the Combobox offers or a line refers to. Platform
|
|
151
|
+
* source: `DoctorInventoryItem` (`src/Ic/MainBundle/Entity/
|
|
152
|
+
* DoctorInventoryItem.php`, mapping `DoctorInventoryItem.orm.xml`), not
|
|
153
|
+
* deleted, in the archive. */
|
|
154
|
+
export interface BillLineItemOption {
|
|
155
|
+
/** `DoctorInventoryItem.id` (integer), as a string. */
|
|
156
|
+
id: string;
|
|
157
|
+
/** `DoctorInventoryItem.name` (string 255). */
|
|
158
|
+
name: string;
|
|
159
|
+
/** `DoctorInventoryItem.number` (string 64, nullable: the practice's own
|
|
160
|
+
* article code), or `null`. NOT the supplier code: the supplier-code link
|
|
161
|
+
* is a separate per-archive record (HTP-7310). Shown as the option's
|
|
162
|
+
* description. */
|
|
163
|
+
code: string | null;
|
|
164
|
+
}
|
|
165
|
+
/** The item a ticked line loads into. */
|
|
166
|
+
export type BillLineItemChoice = {
|
|
167
|
+
kind: 'existing';
|
|
168
|
+
/** `DoctorInventoryItem.id`. */
|
|
169
|
+
itemId: string;
|
|
170
|
+
} | {
|
|
171
|
+
kind: 'new';
|
|
172
|
+
/** `DoctorInventoryItem.name` of the item HTP-7311 creates on confirm,
|
|
173
|
+
* in the same transaction as the movements. Defaults to the line
|
|
174
|
+
* description; "Create new item" with typed text uses that text.
|
|
175
|
+
* The kit trims it and keeps at most 255 characters. Nothing is
|
|
176
|
+
* created before the host's Confirm (D5). */
|
|
177
|
+
name: string;
|
|
178
|
+
};
|
|
179
|
+
/** What the user may change on a line. Unit price, adjustments, VAT and the
|
|
180
|
+
* line amount are fiscal facts of the invoice and are not edited (D2). */
|
|
181
|
+
export interface BillLineValue {
|
|
182
|
+
/** Unsigned decimal, at most 8 fraction digits, as the field shows it (on
|
|
183
|
+
* a credit note: the quantity to remove). `null` while the field is
|
|
184
|
+
* empty: the line is then invalid if ticked. The sign is applied only in
|
|
185
|
+
* `BillLineLoadEntry.quantity`. */
|
|
186
|
+
quantity: DecimalString | null;
|
|
187
|
+
item: BillLineItemChoice;
|
|
188
|
+
}
|
|
189
|
+
/** Edits keyed by `BillLine.id`. A missing entry reads as its default
|
|
190
|
+
* (`getDefaultBillLineValue`). The maps the table reports
|
|
191
|
+
* (`onValuesChange`, `getValues`) hold every current line. */
|
|
192
|
+
export type BillLineValues = Readonly<Record<string, BillLineValue>>;
|
|
193
|
+
/** Who changed something. `'user'`: a person in the table. `'api'`: the
|
|
194
|
+
* handle or the agent adapter. */
|
|
195
|
+
export type BillLineChangeSource = 'user' | 'api';
|
|
196
|
+
export interface BillLineValueChange {
|
|
197
|
+
lineId: string;
|
|
198
|
+
field: 'quantity' | 'item';
|
|
199
|
+
source: BillLineChangeSource;
|
|
200
|
+
}
|
|
201
|
+
/** Totals and counts over the current values and ticks. Recomputed after
|
|
202
|
+
* every change; also the source of the HTP-7311 analytics properties. */
|
|
203
|
+
export interface BillLineSummary {
|
|
204
|
+
/** Every line. */
|
|
205
|
+
lineCount: number;
|
|
206
|
+
/** Ticked lines. `warehouse_invoice_load_confirmed.lines_loaded`. */
|
|
207
|
+
selectedCount: number;
|
|
208
|
+
/** Ticked lines that load into an existing item. */
|
|
209
|
+
matchedCount: number;
|
|
210
|
+
/** Ticked lines that create an item.
|
|
211
|
+
* `warehouse_invoice_load_confirmed.items_created`. */
|
|
212
|
+
newItemCount: number;
|
|
213
|
+
/** Lines not already loaded and left unticked. */
|
|
214
|
+
skippedCount: number;
|
|
215
|
+
alreadyLoadedCount: number;
|
|
216
|
+
/** Lines with at least one warning or error (the host's warnings and the
|
|
217
|
+
* kit's own `quantityTooLarge` note). */
|
|
218
|
+
warningLineCount: number;
|
|
219
|
+
/** True when any line is already loaded: by HTP-7311 the invoice is then
|
|
220
|
+
* loaded and cannot be loaded a second time, partial loads included, so
|
|
221
|
+
* every line is read-only and none can be ticked (D8). */
|
|
222
|
+
invoiceLoaded: boolean;
|
|
223
|
+
/** Ticked lines that cannot load: an empty, zero or negative quantity, an
|
|
224
|
+
* `'error'` warning, an amount that cannot be read exactly, or an
|
|
225
|
+
* existing item the table no longer knows (deleted since the proposal). */
|
|
226
|
+
invalidCount: number;
|
|
227
|
+
/** Sum of `lineTotal` (`PrezzoTotale`, the invoiced amount) over ticked
|
|
228
|
+
* lines, rounded once to 2 decimals, half away from zero. Signed. A
|
|
229
|
+
* quantity edit does not change it (D7). */
|
|
230
|
+
net: DecimalString;
|
|
231
|
+
/** VAT over ticked lines: per rate, the rate's net sum times the rate,
|
|
232
|
+
* rounded to 2 decimals (as FatturaPA 2.2.2 `DatiRiepilogo`), then
|
|
233
|
+
* added. Lines with no rate add nothing. A preview: the platform's
|
|
234
|
+
* figures win at load. */
|
|
235
|
+
vat: DecimalString;
|
|
236
|
+
/** `net` + `vat`, 2 decimals. */
|
|
237
|
+
gross: DecimalString;
|
|
238
|
+
/** `selectedCount > 0 && invalidCount === 0`. Drives Confirm. */
|
|
239
|
+
canConfirm: boolean;
|
|
240
|
+
/** Values or ticks differ from the defaults (guard Escape and Cancel). */
|
|
241
|
+
dirty: boolean;
|
|
242
|
+
}
|
|
243
|
+
/** One ticked line, ready for the HTP-7311 request. */
|
|
244
|
+
export interface BillLineLoadEntry {
|
|
245
|
+
lineId: string;
|
|
246
|
+
/** The signed stock change: the value's magnitude, negative on a credit
|
|
247
|
+
* note (the kit applies the sign from `documentKind`; HTP-7310 "credit
|
|
248
|
+
* note lines remove stock"). Goes straight into the DECIMAL quantity
|
|
249
|
+
* column HTP-7309 adds. */
|
|
250
|
+
quantity: DecimalString;
|
|
251
|
+
item: BillLineItemChoice;
|
|
252
|
+
}
|
|
253
|
+
export type BillLineLoadResult = {
|
|
254
|
+
ok: true;
|
|
255
|
+
lines: BillLineLoadEntry[];
|
|
256
|
+
} | {
|
|
257
|
+
ok: false;
|
|
258
|
+
invalidLineIds: string[];
|
|
259
|
+
};
|
|
260
|
+
/** A refused handle write throws an `Error` whose message starts with the
|
|
261
|
+
* code (`"LINE_READ_ONLY: …"`), as BillTable's handle and every kit agent
|
|
262
|
+
* adapter do, so the agent adapter passes it through unchanged. */
|
|
263
|
+
export type BillLineErrorCode = 'UNKNOWN_LINE' | 'LINE_READ_ONLY' | 'TABLE_READ_ONLY' | 'UNKNOWN_ITEM' | 'INVALID_QUANTITY';
|
|
264
|
+
/** Structural, privacy-safe facts about one line: no description, no
|
|
265
|
+
* supplier code, no item name, no new-item name, no warning text. */
|
|
266
|
+
export interface BillLineInfo {
|
|
267
|
+
id: string;
|
|
268
|
+
/** `NumeroLinea`. */
|
|
269
|
+
lineNumber: number;
|
|
270
|
+
matchState: BillLineMatchState;
|
|
271
|
+
selected: boolean;
|
|
272
|
+
/** False for every line of a loaded invoice and while the table is
|
|
273
|
+
* read-only. */
|
|
274
|
+
selectable: boolean;
|
|
275
|
+
/** The line cannot be edited: the invoice is loaded, or the table is
|
|
276
|
+
* read-only while the host's request runs. */
|
|
277
|
+
readOnly: boolean;
|
|
278
|
+
/** The quantity is too large to edit exactly (see
|
|
279
|
+
* `BILL_LINE_MAX_QUANTITY`); the line loads it as invoiced. */
|
|
280
|
+
quantityLocked: boolean;
|
|
281
|
+
itemKind: 'existing' | 'new';
|
|
282
|
+
/** `DoctorInventoryItem.id`, or `null` for a new item. */
|
|
283
|
+
itemId: string | null;
|
|
284
|
+
/** The quantity as shown (unsigned). `null` when the field is empty. */
|
|
285
|
+
quantity: DecimalString | null;
|
|
286
|
+
/** True on a credit note: a ticked line removes stock. */
|
|
287
|
+
removesStock: boolean;
|
|
288
|
+
/** `BillLineWarning.code` values, plus `quantityTooLarge` for a locked
|
|
289
|
+
* quantity. Codes only, never messages. */
|
|
290
|
+
warningCodes: string[];
|
|
291
|
+
/** Ticked and cannot load (see `BillLineSummary.invalidCount`). */
|
|
292
|
+
invalid: boolean;
|
|
293
|
+
}
|
|
294
|
+
export type BillLineTableChangeEvent = 'values' | 'selection' | 'status';
|
|
295
|
+
export interface BillLineTableChange {
|
|
296
|
+
event: BillLineTableChangeEvent;
|
|
297
|
+
/** `'host'`: a prop changed outside the table (controlled values or
|
|
298
|
+
* selection, new `lines`, `status` or `readOnly`). */
|
|
299
|
+
source: BillLineChangeSource | 'host';
|
|
300
|
+
}
|
|
301
|
+
export type BillLineFocusField = 'select' | 'quantity' | 'item';
|
|
302
|
+
export interface BillLineTableHandle {
|
|
303
|
+
/** Line ids in invoice order. */
|
|
304
|
+
getLineIds(): string[];
|
|
305
|
+
getLine(id: string): BillLineInfo | null;
|
|
306
|
+
getLines(): BillLineInfo[];
|
|
307
|
+
/** Ticked line ids, in invoice order. */
|
|
308
|
+
getSelection(): string[];
|
|
309
|
+
/** Every current line's value (defaults included). */
|
|
310
|
+
getValues(): BillLineValues;
|
|
311
|
+
getSummary(): BillLineSummary;
|
|
312
|
+
/** Ticked lines that cannot load, in invoice order. */
|
|
313
|
+
getInvalidLineIds(): string[];
|
|
314
|
+
/** The HTP-7311 payload, or the lines that block it. */
|
|
315
|
+
getLoadPayload(): BillLineLoadResult;
|
|
316
|
+
/** Replaces the ticks. Throws `UNKNOWN_LINE` naming the first unknown id,
|
|
317
|
+
* `TABLE_READ_ONLY` while the table is read-only, or `LINE_READ_ONLY`
|
|
318
|
+
* naming the first line that cannot be ticked; nothing changes then. */
|
|
319
|
+
setSelection(ids: readonly string[]): void;
|
|
320
|
+
/** Ticks every line that can load. `TABLE_READ_ONLY` while read-only. */
|
|
321
|
+
selectAll(): void;
|
|
322
|
+
/** `TABLE_READ_ONLY` while read-only. */
|
|
323
|
+
clearSelection(): void;
|
|
324
|
+
/** Unsigned decimal as the field shows it, above 0, at most 8 fraction
|
|
325
|
+
* digits and at most `BILL_LINE_MAX_QUANTITY`; else `INVALID_QUANTITY`.
|
|
326
|
+
* Normalised (`"02.50"` is stored as `"2.5"`). `LINE_READ_ONLY` on a
|
|
327
|
+
* line of a loaded invoice or a locked quantity. */
|
|
328
|
+
setQuantity(lineId: string, quantity: DecimalString): void;
|
|
329
|
+
/** An `'existing'` id must be known: in `items`, in `selectedItems`, or an
|
|
330
|
+
* option the table has shown before; else `UNKNOWN_ITEM`. A `'new'`
|
|
331
|
+
* choice with an empty name takes the line description, so callers (the
|
|
332
|
+
* agent) never need to read it. Never ticks or unticks the line (D4). */
|
|
333
|
+
setItem(lineId: string, choice: BillLineItemChoice): void;
|
|
334
|
+
/** `UNKNOWN_LINE` for an id not in `lines`. A field the line does not
|
|
335
|
+
* offer (a read-only line) falls back to its checkbox or row header. */
|
|
336
|
+
focusLine(lineId: string, field?: BillLineFocusField): void;
|
|
337
|
+
scrollToLine(lineId: string): void;
|
|
338
|
+
/** Synchronous with each write. Returns unsubscribe. */
|
|
339
|
+
subscribe(listener: (change: BillLineTableChange) => void): () => void;
|
|
340
|
+
}
|
|
341
|
+
export interface BillLineTableProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dir' | 'onChange'> {
|
|
342
|
+
/** In invoice order (`NumeroLinea`). The table never reorders them. */
|
|
343
|
+
lines: readonly BillLine[];
|
|
344
|
+
/** Warehouse items for the Combobox. With `onItemQueryChange`, the
|
|
345
|
+
* current search results instead of the whole list. */
|
|
346
|
+
items: readonly BillLineItemOption[];
|
|
347
|
+
/** Needed with `onItemQueryChange`: the items any line refers to
|
|
348
|
+
* (proposals and the host's controlled choices), so every line keeps its
|
|
349
|
+
* item name while `items` holds another line's search results (D18).
|
|
350
|
+
* The table also remembers every item it has been given, so an item the
|
|
351
|
+
* user picked from a search keeps its name. */
|
|
352
|
+
selectedItems?: readonly BillLineItemOption[];
|
|
353
|
+
/** Default `'invoice'`. */
|
|
354
|
+
documentKind?: BillDocumentKind;
|
|
355
|
+
/** ISO 4217 code of the bill: FatturaPA 2.1.1.2 `Divisa`. Default EUR. */
|
|
356
|
+
currency?: string;
|
|
357
|
+
/** `data-component-id` and the agent instance id (the same name as
|
|
358
|
+
* BillTable and DataGrid). Not passed to the inner DataGrid, which
|
|
359
|
+
* registers no agent and saves no column state. */
|
|
360
|
+
gridId?: string;
|
|
361
|
+
/** Table name for screen readers. Default "Invoice lines" or "Credit
|
|
362
|
+
* note lines". */
|
|
363
|
+
caption?: string;
|
|
364
|
+
values?: BillLineValues;
|
|
365
|
+
/** Uncontrolled start, and the reference for `summary.dirty`. Default:
|
|
366
|
+
* `getDefaultBillLineValue` per line. */
|
|
367
|
+
defaultValues?: BillLineValues;
|
|
368
|
+
/** The whole values map (every current line) and what changed. */
|
|
369
|
+
onValuesChange?: (next: BillLineValues, change: BillLineValueChange) => void;
|
|
370
|
+
selection?: readonly string[];
|
|
371
|
+
/** Uncontrolled start, and the reference for `summary.dirty`. Default
|
|
372
|
+
* `getDefaultBillLineSelection(lines)`: every loadable line except the
|
|
373
|
+
* ones proposed as skip. Uncontrolled without it, a line that arrives
|
|
374
|
+
* after mount takes its own default tick. */
|
|
375
|
+
defaultSelection?: readonly string[];
|
|
376
|
+
/** Ticked ids in invoice order, as DataGrid's `onRowSelectionChange` and
|
|
377
|
+
* BillTable's. Who changed it is on `handle.subscribe` (`source`). */
|
|
378
|
+
onSelectionChange?: (ids: string[]) => void;
|
|
379
|
+
/** After every change of values, ticks or lines that changes the summary,
|
|
380
|
+
* and once on mount. */
|
|
381
|
+
onSummaryChange?: (summary: BillLineSummary) => void;
|
|
382
|
+
/** Fires with the text typed in one line's item field; turns on server
|
|
383
|
+
* search (the Combobox stops filtering `items` itself). The host passes
|
|
384
|
+
* the results as `items` and keeps `selectedItems` current. Set
|
|
385
|
+
* `itemsLoading` true inside this callback, BEFORE any debounce, so
|
|
386
|
+
* Enter never takes a stale result. */
|
|
387
|
+
onItemQueryChange?: (lineId: string, query: string) => void;
|
|
388
|
+
/** Results are on their way: the searching line's list shows its loading
|
|
389
|
+
* row and Enter waits. Default `false`. */
|
|
390
|
+
itemsLoading?: boolean;
|
|
391
|
+
/** `'loading'` with no lines: skeleton rows. `'error'`: the lines could
|
|
392
|
+
* not be read. Default `'ready'`. */
|
|
393
|
+
status?: 'ready' | 'loading' | 'error';
|
|
394
|
+
/** Error copy and retry. Defaults: "The invoice lines could not be read",
|
|
395
|
+
* with "Try again" when `onRetry` is set. */
|
|
396
|
+
error?: {
|
|
397
|
+
title?: string;
|
|
398
|
+
description?: string;
|
|
399
|
+
onRetry?: () => void;
|
|
400
|
+
};
|
|
401
|
+
/** While the load request runs: editors render as text and every box is
|
|
402
|
+
* disabled with the reason, keeping its state. `true` uses the kit's
|
|
403
|
+
* "Loading into the warehouse". Under `privacyMode` a `{ reason }` gives
|
|
404
|
+
* way to that kit copy too, since it could name a person. Handle writes
|
|
405
|
+
* are refused meanwhile (`TABLE_READ_ONLY`). Default `false`. */
|
|
406
|
+
readOnly?: boolean | {
|
|
407
|
+
reason: string;
|
|
408
|
+
};
|
|
409
|
+
/** Masks every `description` and new-item names (lab invoices can name
|
|
410
|
+
* patients); rows keep their "Line n" name. Supplier codes, warehouse item
|
|
411
|
+
* names, amounts, warnings, field errors and the kit's selection reasons
|
|
412
|
+
* stay; a host `readOnly.reason` gives way to "Loading into the
|
|
413
|
+
* warehouse". Default `false`. */
|
|
414
|
+
privacyMode?: boolean;
|
|
415
|
+
/** `'fill'` (default) makes the table the bounded scroller of a flex
|
|
416
|
+
* column parent: the Dialog recipe, where the header and totals stay in
|
|
417
|
+
* view. `'auto'` takes its natural height. */
|
|
418
|
+
height?: 'auto' | 'fill';
|
|
419
|
+
}
|
|
420
|
+
/** @internal TData of the inner DataGrid. Rebuilt with structural sharing:
|
|
421
|
+
* only a changed line gets a new object, so DataGrid re-renders that row
|
|
422
|
+
* and a focused editor keeps focus (D13). */
|
|
423
|
+
export interface BillLineRow {
|
|
424
|
+
line: BillLine;
|
|
425
|
+
value: BillLineValue;
|
|
426
|
+
/** Ticked (never for a line of a loaded invoice). */
|
|
427
|
+
selected: boolean;
|
|
428
|
+
matchState: BillLineMatchState;
|
|
429
|
+
/** Ticked and cannot load (see `BillLineSummary.invalidCount`). */
|
|
430
|
+
invalid: boolean;
|
|
431
|
+
/** Every line of a loaded invoice (`BillLineSummary.invoiceLoaded`). */
|
|
432
|
+
readOnly: boolean;
|
|
433
|
+
/** See `BillLineInfo.quantityLocked`. */
|
|
434
|
+
quantityLocked: boolean;
|
|
435
|
+
/** The chosen existing item, when the table knows it (`items`,
|
|
436
|
+
* `selectedItems` or an item it was given before); `null` for a new
|
|
437
|
+
* item or an unknown one. */
|
|
438
|
+
item: BillLineItemOption | null;
|
|
439
|
+
/** False when the chosen existing item is unknown (deleted since the
|
|
440
|
+
* proposal): the item field shows an error. */
|
|
441
|
+
itemKnown: boolean;
|
|
442
|
+
}
|
|
443
|
+
//# sourceMappingURL=bill-line-table.types.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** The bounding element: a flex column around the DataGrid, so `fill`
|
|
2
|
+
* reaches the grid inside `Dialog.Body` (the Dialog recipe). */
|
|
3
|
+
export declare const billLineTableVariants: (props?: ({
|
|
4
|
+
height?: "auto" | "fill" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/** The item Combobox in its cell: the kit's compact field exception, as
|
|
7
|
+
* DataGrid's built-in editors use it (32 px, raised to `--min-target-size`
|
|
8
|
+
* under the accessible themes and on touch widths), instead of
|
|
9
|
+
* `size="sm"`, so the list rows keep the kit's target. */
|
|
10
|
+
export declare const itemEditorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
11
|
+
/** A value with a second line under it (unit price and "Net per unit"). */
|
|
12
|
+
export declare const stackVariants: (props?: ({
|
|
13
|
+
align?: "end" | "start" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
+
/** Muted second-line text. */
|
|
16
|
+
export declare const secondaryTextVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
17
|
+
/** Adjustment and warning lists inside a cell. */
|
|
18
|
+
export declare const cellListVariants: (props?: ({
|
|
19
|
+
align?: "end" | "start" | null | undefined;
|
|
20
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
|
+
/** Figures that line up in a column. */
|
|
22
|
+
export declare const figureVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
23
|
+
/** One warning: icon, then the text. */
|
|
24
|
+
export declare const warningItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
25
|
+
/** The warning icon carries the tone; the message stays in the body ink. */
|
|
26
|
+
export declare const warningIconVariants: (props?: ({
|
|
27
|
+
severity?: "error" | "warning" | null | undefined;
|
|
28
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
|
+
export declare const warningTextVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
30
|
+
/** Net and Total with VAT under the Amount column. Each label sits above its
|
|
31
|
+
* figure: side by side, "Total with VAT" broke over three lines in the
|
|
32
|
+
* 128 px column. */
|
|
33
|
+
export declare const totalsListVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
34
|
+
export declare const totalsTermVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
35
|
+
export declare const totalsValueVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
36
|
+
//# sourceMappingURL=bill-line-table.variants.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BillLineTable } from './bill-line-table';
|
|
2
|
+
export { billLineTableAgent } from './bill-line-table.agent';
|
|
3
|
+
export { BILL_LINE_ITEM_NAME_MAX_LENGTH, BILL_LINE_MAX_QUANTITY, BILL_LINE_NEW_ITEM_VALUE, BILL_LINE_PERCENT_FRACTION_DIGITS, BILL_LINE_PRICE_FRACTION_DIGITS, BILL_LINE_QUANTITY_FRACTION_DIGITS, BILL_LINE_QUANTITY_TOO_LARGE, getBillLineLoadPayload, getBillLineMatchState, getDefaultBillLineSelection, getDefaultBillLineValue, getDefaultBillLineValues, isBillInvoiceLoaded, isBillLineInvalid, isBillLineQuantityEditable, netUnitCost, summariseBillLines, } from './bill-line-table.model';
|
|
4
|
+
export type { BillLineDefaults, BillLineItemLookup, } from './bill-line-table.model';
|
|
5
|
+
export type { BillDocumentKind, BillLine, BillLineAdjustment, BillLineChangeSource, BillLineErrorCode, BillLineFocusField, BillLineInfo, BillLineItemChoice, BillLineItemOption, BillLineLoadEntry, BillLineLoadResult, BillLineMatchState, BillLineProposal, BillLineSummary, BillLineTableChange, BillLineTableChangeEvent, BillLineTableHandle, BillLineTableProps, BillLineValue, BillLineValueChange, BillLineValues, BillLineWarning, } from './bill-line-table.types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|