@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
package/dist/agent-i18n/en.json
CHANGED
|
@@ -126,6 +126,56 @@
|
|
|
126
126
|
"close": "Close the suggestion list."
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
+
"billLineTable": {
|
|
130
|
+
"state": {
|
|
131
|
+
"lines": "Every invoice line in invoice order, with what Confirm will do with it. Quantities are exact decimal text as shown, unsigned; there are no descriptions or names.",
|
|
132
|
+
"selection": "Ids of the ticked lines: the lines Confirm will load.",
|
|
133
|
+
"summary": "Counts and totals of the ticked lines. net, vat and gross are exact decimal text with 2 places (\"14.58\"). canConfirm is false while no line is ticked, a ticked line cannot load, or the invoice is already loaded (invoiceLoaded).",
|
|
134
|
+
"invalidLineIds": "Ticked lines that cannot load as they are: an empty or zero quantity, an item no longer in the warehouse, or an error from the server."
|
|
135
|
+
},
|
|
136
|
+
"actions": {
|
|
137
|
+
"selectLines": "Tick or untick lines. Lines of an invoice that is already loaded cannot be ticked. Returns the ticked ids.",
|
|
138
|
+
"selectAllLines": "Tick every line that can load. Returns the ticked ids.",
|
|
139
|
+
"clearSelection": "Untick every line.",
|
|
140
|
+
"setQuantity": "Set the quantity of a line as shown in the table: a decimal above 0 and at most 10000000, with a dot and up to 8 places, never signed. On a credit note it is the quantity to remove. The line amount stays as invoiced. Does not tick the line.",
|
|
141
|
+
"setItem": "Load a line into an existing warehouse item, by item id. Does not tick the line.",
|
|
142
|
+
"createNewItem": "Mark a line to create a new warehouse item when the invoice is loaded. Without a name, the item takes the line description. Nothing is created until Confirm. Does not tick the line.",
|
|
143
|
+
"focusLine": "Scroll a line into view and move focus to its checkbox, quantity or item field."
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"billTable": {
|
|
147
|
+
"state": {
|
|
148
|
+
"features": "What this bill list can do now: selection, privacy mode, the warehouse column, sortable columns and loading status.",
|
|
149
|
+
"rows": "The bills on the current page, amounts in hundredths. A counterparty name is given only for companies; patients and other people are never named.",
|
|
150
|
+
"selection": "Ids of the selected bills, on every page.",
|
|
151
|
+
"sort": "The active sort, as the server receives it. A counterparty sort is left out while privacy mode is on.",
|
|
152
|
+
"filter": "The active filters. Under privacy mode, filters that can point at a person read { masked: true }.",
|
|
153
|
+
"quickFilter": "Empty when no quick search is set; otherwise { masked: true }, since the text may be a name. Set it with set_quick_filter.",
|
|
154
|
+
"currentPage": "Zero-based page index.",
|
|
155
|
+
"pageSize": "Bills per page.",
|
|
156
|
+
"pageCount": "Number of pages; -1 when the total is unknown.",
|
|
157
|
+
"rowCount": "Bills matching the filters, on every page; -1 when unknown.",
|
|
158
|
+
"columns": "The columns, in display order."
|
|
159
|
+
},
|
|
160
|
+
"actions": {
|
|
161
|
+
"selectRows": "Replace the selection with the given bill ids. Changing a filter or the search clears it.",
|
|
162
|
+
"selectRange": "Select every bill from fromId to toId on the current page, inclusive.",
|
|
163
|
+
"clearSelection": "Clear the selection on every page.",
|
|
164
|
+
"sortBy": "Sort the bills by one column. The host fetches the first page again.",
|
|
165
|
+
"applyFilter": "Replace the filters. The host fetches the first page again.",
|
|
166
|
+
"setQuickFilter": "Search by bill number, and by counterparty name unless privacy mode is on.",
|
|
167
|
+
"clearFilters": "Remove every filter and the quick search.",
|
|
168
|
+
"goToPage": "Go to a zero-based page.",
|
|
169
|
+
"setPageSize": "Change how many bills show per page.",
|
|
170
|
+
"scrollToRow": "Scroll a bill on the current page into view.",
|
|
171
|
+
"setColumnVisibility": "Show or hide a column. The choice is saved for this list.",
|
|
172
|
+
"resetColumns": "Put every column back to its default and delete the column choices saved for this list.",
|
|
173
|
+
"getRowActions": "Which actions one bill offers now, and why a disabled one is disabled.",
|
|
174
|
+
"openBill": "Open one bill. The host shows its page.",
|
|
175
|
+
"downloadBill": "Download one bill as a PDF or an electronic invoice (XML).",
|
|
176
|
+
"loadIntoWarehouse": "Open the dialog that loads an incoming SDI bill's lines into the warehouse. Nothing loads until the user confirms."
|
|
177
|
+
}
|
|
178
|
+
},
|
|
129
179
|
"bishopScore": {
|
|
130
180
|
"state": {
|
|
131
181
|
"selection": "The five cervical-exam findings keyed by component (dilation, effacement, station, consistency, position). Each value is an enumerated option key, not free text.",
|
|
@@ -416,6 +466,54 @@
|
|
|
416
466
|
"resizeWidget": "Resize a widget to a span. Clamped to the grid and the widget’s min/max; colliding widgets are pushed down. Refused while edit mode is off or the board is stacked."
|
|
417
467
|
}
|
|
418
468
|
},
|
|
469
|
+
"dataGridTabs": {
|
|
470
|
+
"state": {
|
|
471
|
+
"activeTabId": "Id of the currently-active saved-filter tab.",
|
|
472
|
+
"activeSavedFilter": "The saved filter view the grid shows now (id + label), or null before the tabs mount. Under privacy mode the label reports { masked: true }. Read the filters from the DataGrid adapter.",
|
|
473
|
+
"tabs": "The saved-filter tabs, in strip order (ids + labels). Under privacy mode each label reports { masked: true }."
|
|
474
|
+
},
|
|
475
|
+
"actions": {
|
|
476
|
+
"selectTab": "Activate a saved-filter tab: records the outgoing tab's live view into it (and into localStorage with persistKey), then applies the incoming view (filters, and the quick search when captured) to the grid in one write. In server mode this asks the host for new rows once.",
|
|
477
|
+
"getTabs": "Return the saved-filter tabs (ids + labels) in order. Under privacy mode each label reports { masked: true }.",
|
|
478
|
+
"addTab": "Add a new tab capturing the grid's current filters, and activate it. Returns the new tab id. Does nothing when the host turned adding off (allowAdd).",
|
|
479
|
+
"renameTab": "Rename a saved-filter tab. No-op on locked tabs, empty labels, and when the host turned renaming off (allowRename).",
|
|
480
|
+
"removeTab": "Remove a saved-filter tab (its saved filter is lost). No-op on locked tabs, the last remaining tab, and when the host turned removing off (allowRemove). Keyboard focus stays where the user is."
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"dataGrid": {
|
|
484
|
+
"state": {
|
|
485
|
+
"features": "Which features this grid has on, so you know which actions will work before you call them.",
|
|
486
|
+
"selection": "Row ids of the selected rows, on every page, locked rows included.",
|
|
487
|
+
"sort": "Active sort, in priority order.",
|
|
488
|
+
"filter": "Filter model: kit filter models keyed by column id, plus host keys. Under privacy mode, host keys and masked columns report { masked: true } instead of the value.",
|
|
489
|
+
"quickFilter": "Quick search text. Under privacy mode it reports { masked: true } while any column is masked.",
|
|
490
|
+
"currentPage": "Zero-based page number.",
|
|
491
|
+
"pageSize": "Rows per page.",
|
|
492
|
+
"pageCount": "Number of pages: 1 when paging is off, -1 when the server total is unknown.",
|
|
493
|
+
"rowCount": "Top-level rows after filters (client mode) or the server total (-1 when unknown).",
|
|
494
|
+
"rowIds": "Row ids in display order: every filtered row in client mode, the current page in server mode.",
|
|
495
|
+
"expandedRowIds": "Ids of the rows whose sub-rows or detail panel are open.",
|
|
496
|
+
"columns": "Data columns in display order: id, header label, visibility, pin side (start, end or false) and index."
|
|
497
|
+
},
|
|
498
|
+
"actions": {
|
|
499
|
+
"selectRows": "Replace the selection with the given row ids. Returns the resulting selection and the ids that were not selected.",
|
|
500
|
+
"selectRange": "Select every row from fromId to toId, inclusive, in display order. Rows that cannot be selected are skipped.",
|
|
501
|
+
"clearSelection": "Deselect every row. Locked rows stay selected.",
|
|
502
|
+
"getSelection": "Return the ids of the selected rows, on every page, locked rows included.",
|
|
503
|
+
"sortBy": "Replace the active sort with the given list, in priority order. In server mode this asks the host for new rows.",
|
|
504
|
+
"applyFilter": "Replace the filter model with the given object. In server mode this asks the host for new rows.",
|
|
505
|
+
"setQuickFilter": "Set the quick search text, which matches across the searchable columns. In server mode this asks the host for new rows.",
|
|
506
|
+
"clearFilters": "Clear every column filter, host key and the quick search. In server mode this asks the host for new rows.",
|
|
507
|
+
"goToPage": "Go to the given zero-based page. In server mode this asks the host for new rows.",
|
|
508
|
+
"setPageSize": "Set how many rows a page shows. In server mode this asks the host for new rows.",
|
|
509
|
+
"expandRow": "Open or close a row's sub-rows or detail panel.",
|
|
510
|
+
"scrollToRow": "Scroll a row into view, including a row a virtualised grid has not rendered yet. Does not move focus.",
|
|
511
|
+
"setColumnVisibility": "Show or hide a column. Counts as a user choice: it is saved for this grid and responsive hiding leaves it alone.",
|
|
512
|
+
"pinColumn": "Pin a column to the start or end edge so it stays in view while the others scroll, or unpin it. Saved for this grid.",
|
|
513
|
+
"moveColumn": "Move a column to a new position. It takes the pin side of the column that was at that position. Saved for this grid.",
|
|
514
|
+
"resetColumns": "Put every column back to the page's default width, order, pin and visibility, and delete the column choices saved for this grid."
|
|
515
|
+
}
|
|
516
|
+
},
|
|
419
517
|
"dataTableTabs": {
|
|
420
518
|
"state": {
|
|
421
519
|
"activeTabId": "Id of the currently-active saved-filter tab.",
|
|
@@ -424,8 +522,8 @@
|
|
|
424
522
|
"actions": {
|
|
425
523
|
"selectTab": "Activate a saved-filter tab: snapshots the outgoing tab, applies the incoming filter model to the table.",
|
|
426
524
|
"getTabs": "Return the saved-filter tabs (ids + labels) in order.",
|
|
427
|
-
"addTab": "Add a new tab capturing the table's current filter model, and activate it. Returns the new tab id.",
|
|
428
|
-
"renameTab": "Rename a saved-filter tab. No-op on locked tabs and
|
|
525
|
+
"addTab": "Add a new tab capturing the table's current filter model, and activate it. Returns the new tab id. Does nothing when the host turned adding off (allowAdd) and returns the active tab id.",
|
|
526
|
+
"renameTab": "Rename a saved-filter tab. No-op on locked tabs, empty labels, and when the host turned renaming off (allowRename).",
|
|
429
527
|
"removeTab": "Remove a saved-filter tab (its saved filter is lost). No-op on locked tabs and the last remaining tab."
|
|
430
528
|
}
|
|
431
529
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The accessible themes' target floor for a compact control (05:9; WCAG
|
|
3
|
+
* 2.5.5, AAA). A control grows to `--min-target-size` where
|
|
4
|
+
* `--accessible-target-floor` is set (`.theme-accessible`) and keeps its
|
|
5
|
+
* compact size elsewhere. The calendar toolbar's precedent
|
|
6
|
+
* (`ACCESSIBLE_TARGET_SQUARE_CLASS`).
|
|
7
|
+
*/
|
|
8
|
+
export declare const accessibleTargetBlockClass = "ds:[min-block-size:var(--accessible-target-floor,auto)]";
|
|
9
|
+
/** The same floor on both axes, for icon-only buttons (DataGrid's expander
|
|
10
|
+
* and filter trigger, RowActions). */
|
|
11
|
+
export declare const accessibleTargetSquareClass = "ds:[min-block-size:var(--accessible-target-floor,auto)] ds:[min-inline-size:var(--accessible-target-floor,auto)]";
|
|
12
|
+
//# sourceMappingURL=accessible-target.d.ts.map
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exact decimal strings, with no float step.
|
|
3
|
+
*
|
|
4
|
+
* FatturaPA (Italian e-invoice) values such as `Quantita` "2.50000000" or
|
|
5
|
+
* `PrezzoUnitario` "12.345600" carry up to 8 decimal places, and no double
|
|
6
|
+
* holds most of them exactly. This module reads such text into integer
|
|
7
|
+
* units plus a scale, computes with BigInt, and rounds once, half away from
|
|
8
|
+
* zero, the rule NumberInput and Money use.
|
|
9
|
+
*
|
|
10
|
+
* React-free on purpose: hosts can use it in plain TypeScript through
|
|
11
|
+
* `@alfadocs/ui-kit/decimal`. Money takes the result as `value={units}`
|
|
12
|
+
* and `scale={scale}`; NumberInput takes `decimalToNumber(value)` and
|
|
13
|
+
* reports back through `numberToDecimal(n, digits)`.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* A plain decimal as text: an optional "-", digits, then optionally "." and
|
|
17
|
+
* digits. Dot only: no grouping, no exponent, no "+". It is the form
|
|
18
|
+
* FatturaPA uses (`Quantita` `[0-9]{1,12}\.[0-9]{2,8}`, `PrezzoUnitario`
|
|
19
|
+
* and `PrezzoTotale` `[\-]?[0-9]{1,11}\.[0-9]{2,8}`) and the form a JSON
|
|
20
|
+
* API should send for these fields.
|
|
21
|
+
*/
|
|
22
|
+
export type DecimalString = string;
|
|
23
|
+
/** value = units / 10^scale. `units` is always a safe integer and `scale`
|
|
24
|
+
* a whole number of 0 or more. */
|
|
25
|
+
export interface ScaledDecimal {
|
|
26
|
+
units: number;
|
|
27
|
+
scale: number;
|
|
28
|
+
}
|
|
29
|
+
/** Why a text is not a valid decimal. Codes, not copy: the host maps them
|
|
30
|
+
* to its own messages. */
|
|
31
|
+
export type DecimalError = 'empty' | 'syntax' | 'negative' | 'integer-digits' | 'fraction-digits' | 'unsafe';
|
|
32
|
+
export type ParseDecimalResult = {
|
|
33
|
+
ok: true;
|
|
34
|
+
value: ScaledDecimal;
|
|
35
|
+
} | {
|
|
36
|
+
ok: false;
|
|
37
|
+
error: DecimalError;
|
|
38
|
+
};
|
|
39
|
+
export interface DecimalRules {
|
|
40
|
+
/** Default true: credit notes (TD04, TD08) and discounts carry a minus. */
|
|
41
|
+
allowNegative?: boolean;
|
|
42
|
+
/** Most digits before the point (leading zeros not counted). */
|
|
43
|
+
maxIntegerDigits?: number;
|
|
44
|
+
/** Fewest digits after the point. Default 0 (the point is optional). */
|
|
45
|
+
minFractionDigits?: number;
|
|
46
|
+
/** Most digits after the point. Default: no limit. */
|
|
47
|
+
maxFractionDigits?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* FatturaPA 1.2 field rules, for validating XML text (the wire). `Quantita`
|
|
51
|
+
* is unsigned with 2 to 8 decimals; `PrezzoUnitario` and `PrezzoTotale` are
|
|
52
|
+
* signed with 2 to 8; `AliquotaIVA` has exactly 2. Check them against the
|
|
53
|
+
* published schema before relying on them for anything but display.
|
|
54
|
+
*/
|
|
55
|
+
export declare const FATTURAPA_DECIMAL: {
|
|
56
|
+
readonly quantity: {
|
|
57
|
+
readonly allowNegative: false;
|
|
58
|
+
readonly maxIntegerDigits: 12;
|
|
59
|
+
readonly minFractionDigits: 2;
|
|
60
|
+
readonly maxFractionDigits: 8;
|
|
61
|
+
};
|
|
62
|
+
readonly unitPrice: {
|
|
63
|
+
readonly allowNegative: true;
|
|
64
|
+
readonly maxIntegerDigits: 11;
|
|
65
|
+
readonly minFractionDigits: 2;
|
|
66
|
+
readonly maxFractionDigits: 8;
|
|
67
|
+
};
|
|
68
|
+
readonly lineTotal: {
|
|
69
|
+
readonly allowNegative: true;
|
|
70
|
+
readonly maxIntegerDigits: 11;
|
|
71
|
+
readonly minFractionDigits: 2;
|
|
72
|
+
readonly maxFractionDigits: 8;
|
|
73
|
+
};
|
|
74
|
+
readonly rate: {
|
|
75
|
+
readonly allowNegative: false;
|
|
76
|
+
readonly maxIntegerDigits: 3;
|
|
77
|
+
readonly minFractionDigits: 2;
|
|
78
|
+
readonly maxFractionDigits: 2;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* The same limits with the point optional (`minFractionDigits: 0`), for
|
|
83
|
+
* values a kit component holds and normalises rather than XML text: "1"
|
|
84
|
+
* (the platform's value when `Quantita` is absent) and "2.5" (an edited
|
|
85
|
+
* quantity) are valid here and invalid as FatturaPA text.
|
|
86
|
+
*/
|
|
87
|
+
export declare const FATTURAPA_VALUE: {
|
|
88
|
+
readonly quantity: {
|
|
89
|
+
readonly minFractionDigits: 0;
|
|
90
|
+
readonly allowNegative: false;
|
|
91
|
+
readonly maxIntegerDigits: 12;
|
|
92
|
+
readonly maxFractionDigits: 8;
|
|
93
|
+
};
|
|
94
|
+
readonly unitPrice: {
|
|
95
|
+
readonly minFractionDigits: 0;
|
|
96
|
+
readonly allowNegative: true;
|
|
97
|
+
readonly maxIntegerDigits: 11;
|
|
98
|
+
readonly maxFractionDigits: 8;
|
|
99
|
+
};
|
|
100
|
+
readonly lineTotal: {
|
|
101
|
+
readonly minFractionDigits: 0;
|
|
102
|
+
readonly allowNegative: true;
|
|
103
|
+
readonly maxIntegerDigits: 11;
|
|
104
|
+
readonly maxFractionDigits: 8;
|
|
105
|
+
};
|
|
106
|
+
readonly rate: {
|
|
107
|
+
readonly minFractionDigits: 0;
|
|
108
|
+
readonly allowNegative: false;
|
|
109
|
+
readonly maxIntegerDigits: 3;
|
|
110
|
+
readonly maxFractionDigits: 2;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Split a decimal string into integer units and a scale with no float step:
|
|
115
|
+
* "12.345600" gives `{ units: 12345600, scale: 6 }`, the string's own
|
|
116
|
+
* scale. Surrounding whitespace is trimmed (XML text nodes). When the units
|
|
117
|
+
* would pass `Number.MAX_SAFE_INTEGER`, trailing zeros are dropped first
|
|
118
|
+
* (same value, smaller scale), and the result is `'unsafe'` only when that
|
|
119
|
+
* is still too big. With no rules, any sign and any number of digits pass.
|
|
120
|
+
*/
|
|
121
|
+
export declare function parseDecimal(text: string, rules?: DecimalRules): ParseDecimalResult;
|
|
122
|
+
/** Does the text parse under these rules? */
|
|
123
|
+
export declare function isDecimalString(text: string, rules?: DecimalRules): boolean;
|
|
124
|
+
/** Exact text for a scaled decimal, padded with zeros to
|
|
125
|
+
* `minFractionDigits` (FatturaPA wants at least 2). Never rounds and never
|
|
126
|
+
* drops digits: `{ units: 25, scale: 1 }` gives "2.5", or "2.50" with 2. */
|
|
127
|
+
export declare function formatDecimal(value: ScaledDecimal, minFractionDigits?: number): DecimalString;
|
|
128
|
+
/** The same value at another scale, rounded half away from zero when the
|
|
129
|
+
* scale shrinks. `null` when the result is not a safe integer. */
|
|
130
|
+
export declare function rescaleDecimal(value: ScaledDecimal, scale: number): ScaledDecimal | null;
|
|
131
|
+
/** a × b at `scale` (scale 2 for a line amount in cents), exact until the
|
|
132
|
+
* one final rounding. `null` when the result is not a safe integer. */
|
|
133
|
+
export declare function multiplyDecimal(a: ScaledDecimal, b: ScaledDecimal, scale: number): ScaledDecimal | null;
|
|
134
|
+
/** a ÷ b at `scale`, with one rounding half away from zero (the net unit
|
|
135
|
+
* cost of a line: `PrezzoTotale` ÷ quantity). `null` when `b` is zero or
|
|
136
|
+
* the result is not a safe integer. */
|
|
137
|
+
export declare function divideDecimal(a: ScaledDecimal, b: ScaledDecimal, scale: number): ScaledDecimal | null;
|
|
138
|
+
/** The exact sum at the largest scale given (a totals footer). `null` when
|
|
139
|
+
* the result is not a safe integer. An empty list sums to 0. */
|
|
140
|
+
export declare function sumDecimals(values: readonly ScaledDecimal[]): ScaledDecimal | null;
|
|
141
|
+
/** Compare by value, whatever the scales: "1.50" equals "1.5". */
|
|
142
|
+
export declare function compareDecimal(a: ScaledDecimal, b: ScaledDecimal): -1 | 0 | 1;
|
|
143
|
+
/**
|
|
144
|
+
* The number for NumberInput's `value`, only when it is exact both ways: up
|
|
145
|
+
* to 15 significant digits a double gives back the same decimal text, so
|
|
146
|
+
* the field shows what the platform sent. `null` beyond that: the host
|
|
147
|
+
* keeps the value read-only rather than lose digits.
|
|
148
|
+
*/
|
|
149
|
+
export declare function decimalToNumber(value: ScaledDecimal): number | null;
|
|
150
|
+
/**
|
|
151
|
+
* A finite number as plain decimal text, never exponent notation:
|
|
152
|
+
* `String(2e-7)` is "2e-7", which an edit text cannot use. Values from 1e-6
|
|
153
|
+
* up to 1e21 already print plainly and pass through.
|
|
154
|
+
*/
|
|
155
|
+
export declare function toPlainString(n: number): string;
|
|
156
|
+
/**
|
|
157
|
+
* Move the decimal point `by` places. Working on the exponent, not by
|
|
158
|
+
* multiplying, avoids binary error: `0.07 * 100` is 7.000000000000001 and
|
|
159
|
+
* `Math.round(1.005 * 100) / 100` is 1, where this gives 7 and 100.5.
|
|
160
|
+
* Handles values that print in exponent notation (5e-7, 1e21) by adding to
|
|
161
|
+
* their exponent instead of appending a second one.
|
|
162
|
+
*/
|
|
163
|
+
export declare function shiftDecimal(n: number, by: number): number;
|
|
164
|
+
/**
|
|
165
|
+
* NumberInput's `onChange` value back to a decimal: the double's shortest
|
|
166
|
+
* text, rounded half away from zero to `maxFractionDigits` (8 for a
|
|
167
|
+
* FatturaPA quantity). `null` for NaN, Infinity or an unsafe result. Then
|
|
168
|
+
* `formatDecimal` gives the text to store.
|
|
169
|
+
*/
|
|
170
|
+
export declare function numberToDecimal(n: number, maxFractionDigits: number): ScaledDecimal | null;
|
|
171
|
+
//# sourceMappingURL=decimal.d.ts.map
|
|
@@ -17,7 +17,56 @@
|
|
|
17
17
|
* Both apply the same zero-decimal divisor rule; only the failure
|
|
18
18
|
* behaviour differs.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Extra precision for a price whose integer carries more (or fewer)
|
|
22
|
+
* decimal places than the currency's usual minor unit: an invoice unit
|
|
23
|
+
* price such as 12.3456 EUR (FatturaPA `PrezzoUnitario`) arrives as
|
|
24
|
+
* `123456` with `scale: 4`.
|
|
25
|
+
*
|
|
26
|
+
* Leave every field out and the price formats exactly as before. Any field
|
|
27
|
+
* set moves the amount onto an exact path: the integer is rounded with
|
|
28
|
+
* integer arithmetic and handed to `Intl` as a decimal string, so no
|
|
29
|
+
* floating-point division can shift a digit.
|
|
30
|
+
*
|
|
31
|
+
* On this exact path, exact digits are promised for safe integers only. A
|
|
32
|
+
* non-integer or an integer beyond `Number.MAX_SAFE_INTEGER` is divided as
|
|
33
|
+
* a float and rounded by `Intl`, as the default path does: 12.5 at scale 2
|
|
34
|
+
* shows 0.13, and a warning is logged once per value in development. Above
|
|
35
|
+
* 15 significant digits, exactness also needs an engine that formats a
|
|
36
|
+
* decimal string exactly (see `DecimalFormatter`). With no field set, the
|
|
37
|
+
* amount is divided by 100 as a float and nothing is warned, as before.
|
|
38
|
+
*
|
|
39
|
+
* Passing the default scale explicitly gives the same output as leaving
|
|
40
|
+
* it out, with three exceptions, all in the exact path's favour: `-0`
|
|
41
|
+
* shows without a minus sign; an amount above 15 significant digits keeps
|
|
42
|
+
* its exact last digit where the float division would not; and a currency
|
|
43
|
+
* that `Intl` shows with fewer digits than the kit's divisor of 100 (ISK,
|
|
44
|
+
* for one) keeps its minor digits instead of rounding them away, since
|
|
45
|
+
* the exact path never rounds unless asked.
|
|
46
|
+
*/
|
|
47
|
+
export interface PricePrecision {
|
|
48
|
+
/**
|
|
49
|
+
* How many decimal places the integer encodes. Defaults to the kit's
|
|
50
|
+
* minor-unit rule: 2, or 0 for a zero-decimal currency such as JPY, so
|
|
51
|
+
* `8000` EUR is still 80.00. Whole numbers from 0 to 20; anything else
|
|
52
|
+
* falls back to the default and logs a warning in development, since
|
|
53
|
+
* the amount would then show off by a power of ten.
|
|
54
|
+
*/
|
|
55
|
+
scale?: number;
|
|
56
|
+
/**
|
|
57
|
+
* The fewest fraction digits to show. Defaults to the currency's own
|
|
58
|
+
* (2 for EUR), so trailing zeros beyond it are trimmed: `123400` at
|
|
59
|
+
* scale 4 shows 12.34, `123450` shows 12.345.
|
|
60
|
+
*/
|
|
61
|
+
minimumFractionDigits?: number;
|
|
62
|
+
/**
|
|
63
|
+
* The most fraction digits to show. Defaults to the larger of `scale` and
|
|
64
|
+
* the currency's own digits, so a price is never rounded by default. Set
|
|
65
|
+
* it below `scale` to round half away from zero.
|
|
66
|
+
*/
|
|
67
|
+
maximumFractionDigits?: number;
|
|
68
|
+
}
|
|
69
|
+
export declare function formatPrice(minorUnits: number, currency: string, locale: string, precision?: PricePrecision): string;
|
|
21
70
|
/**
|
|
22
71
|
* A first-visit price caption: `0` means the visit is free, so it reads as
|
|
23
72
|
* the caller's translated word ("Free" / "Gratuito"), never as "€0.00".
|
|
@@ -37,6 +86,9 @@ export declare function formatPriceOrFree(minorUnits: number, currency: string,
|
|
|
37
86
|
*
|
|
38
87
|
* Returns `null` when the locale or currency is rejected — callers fall
|
|
39
88
|
* back to {@link formatPrice}, which keeps the zero-decimal rule.
|
|
89
|
+
*
|
|
90
|
+
* The {@link PricePrecision} fields work as they do in `formatPrice`; pass
|
|
91
|
+
* the same ones to both so the fallback agrees with the parts.
|
|
40
92
|
*/
|
|
41
|
-
export declare function formatPriceParts(minorUnits: number, currency: string, locale: string, options?: Pick<Intl.NumberFormatOptions, 'signDisplay'>): Intl.NumberFormatPart[] | null;
|
|
93
|
+
export declare function formatPriceParts(minorUnits: number, currency: string, locale: string, options?: Pick<Intl.NumberFormatOptions, 'signDisplay'> & PricePrecision): Intl.NumberFormatPart[] | null;
|
|
42
94
|
//# sourceMappingURL=format-price.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare function privacyMask(mask?: string): string;
|
|
2
|
+
import { privacyMask } from './privacy-mask-text';
|
|
3
|
+
export { privacyMask };
|
|
5
4
|
/** One muted line where a personal value would have been. */
|
|
6
5
|
export declare function PrivacyHiddenLine({ block }: {
|
|
7
6
|
block?: string;
|
|
@@ -25,5 +24,4 @@ export declare function PrivacyNoticePanel({ title, icon, onTurnOff, }: PrivacyN
|
|
|
25
24
|
title: string;
|
|
26
25
|
icon?: ReactNode;
|
|
27
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export {};
|
|
29
27
|
//# sourceMappingURL=privacy-mask.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** One saved view. */
|
|
2
|
+
export interface SavedTab {
|
|
3
|
+
/** Opaque machine-generated id: emitted as `data-tab-id`, never the label. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** User-typed name; rendered text only, never used in DOM hooks or keys. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** The table's filter model (`getFilter()` shape); `{}` = none. */
|
|
8
|
+
filterModel: Record<string, unknown>;
|
|
9
|
+
/** Captured quick search text; only present with `captureQuickFilter`. */
|
|
10
|
+
quickFilter?: string;
|
|
11
|
+
/** Locked tabs cannot be renamed or removed (an "All" tab). */
|
|
12
|
+
locked?: boolean;
|
|
13
|
+
/** `true` when a person typed the label: a tab added from the strip, the
|
|
14
|
+
* handle or an agent, and any tab renamed since. Under privacy mode the
|
|
15
|
+
* strip shows such a label as "Saved view N" and never announces it
|
|
16
|
+
* (Michael, 4 Nov 2026). `false`: a built-in or host label, shown as is
|
|
17
|
+
* (the core stamps it on uncontrolled `defaultTabs` and `createTab`
|
|
18
|
+
* tabs, so storage records the origin). Absent: a host label, unless
|
|
19
|
+
* the strip itself marked the tab typed in this session. Set only by a
|
|
20
|
+
* table with a privacy mode (DataGridTabs); DataTableTabs never sets or
|
|
21
|
+
* reads it. */
|
|
22
|
+
userNamed?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Versioned persistence envelope, `localStorage[<prefix><persistKey>]`. */
|
|
25
|
+
export interface SavedViewTabsEnvelope {
|
|
26
|
+
v: 1;
|
|
27
|
+
tabs: SavedTab[];
|
|
28
|
+
/** Only with `persistActiveTab`; used only while it still names a tab. */
|
|
29
|
+
activeTabId?: string;
|
|
30
|
+
}
|
|
31
|
+
/** `crypto.randomUUID()`, with a counter where it is unavailable. */
|
|
32
|
+
export declare function defaultMakeTabId(): string;
|
|
33
|
+
/** Mirrors the column-state loader's guards: anything else is ignored. */
|
|
34
|
+
export declare function isValidEnvelope(value: unknown): value is SavedViewTabsEnvelope;
|
|
35
|
+
/** Reads and validates the envelope; `null` when absent, corrupt or the
|
|
36
|
+
* storage is unavailable. */
|
|
37
|
+
export declare function readEnvelope(prefix: string, key: string): SavedViewTabsEnvelope | null;
|
|
38
|
+
/**
|
|
39
|
+
* Tabs read back from storage, for a table with a privacy mode. A stored
|
|
40
|
+
* tab without the flag (`userNamed` neither `true` nor `false`) counts as
|
|
41
|
+
* user-named, unless it is locked (a person can never rename it) or a host
|
|
42
|
+
* tab (`hostTabs`, the `defaultTabs` or the seed) has the same id and the
|
|
43
|
+
* same label. Fails closed: an unflagged label that may have been typed is
|
|
44
|
+
* never shown under privacy mode.
|
|
45
|
+
*/
|
|
46
|
+
export declare function withLabelOrigin(tabs: SavedTab[], hostTabs: readonly SavedTab[]): SavedTab[];
|
|
47
|
+
/** A tab as the host gave it, stamped as host-named when it says nothing
|
|
48
|
+
* (uncontrolled `defaultTabs` and `createTab` tabs, for a table with a
|
|
49
|
+
* privacy mode), so storage records that a person did not type it. */
|
|
50
|
+
export declare function asHostNamed(tab: SavedTab): SavedTab;
|
|
51
|
+
/** Writes the envelope; `activeTabId` only with `persistActiveTab`. Never
|
|
52
|
+
* throws (storage may be full, blocked or absent). */
|
|
53
|
+
export declare function writeEnvelope(prefix: string, key: string, tabs: SavedTab[], activeTabId: string | undefined, persistActiveTab: boolean): void;
|
|
54
|
+
//# sourceMappingURL=saved-tab.d.ts.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SavedViewTabs: the folder-tab strip shared by DataTableTabs and
|
|
3
|
+
* DataGridTabs.
|
|
4
|
+
* ----------------------------------------------------------------------------
|
|
5
|
+
* A tab strip attached above a table region. Each tab captures and restores
|
|
6
|
+
* its own filter view (tabs are LIVE views: any filter edit rewrites the
|
|
7
|
+
* active tab); a "+" button saves the current view as a new tab; tabs rename
|
|
8
|
+
* by double-click, F2 or the popover editor and remove by Delete, Backspace
|
|
9
|
+
* or the pointer-only close mark.
|
|
10
|
+
*
|
|
11
|
+
* ARIA: a real APG tablist built on Radix Tabs with `activationMode="manual"`
|
|
12
|
+
* (arrow keys rove without applying views; Enter or Space activates). Every
|
|
13
|
+
* trigger points at ONE stable hand-rolled tabpanel that wraps `children`,
|
|
14
|
+
* so the table never remounts on a switch and no ARIA reference dangles. The
|
|
15
|
+
* "+" button and the rename editor are SIBLINGS of the tablist.
|
|
16
|
+
*
|
|
17
|
+
* Privacy (Michael, 4 Nov 2026): while the table hides people, or while no
|
|
18
|
+
* table says whether it does, a tab whose label a person typed
|
|
19
|
+
* (`isUserNamed`) shows as "Saved view N", the live region announces that
|
|
20
|
+
* name instead of the typed one, and the rename editor opens empty.
|
|
21
|
+
* Built-in and host labels stay readable. N is the tab's place in the
|
|
22
|
+
* strip when the strip first showed it as typed (or the next number above
|
|
23
|
+
* it never given), kept for the session: a removal never renames another
|
|
24
|
+
* tab, and a number is never reused. When
|
|
25
|
+
* privacy turns on, an open rename editor closes with its text cleared,
|
|
26
|
+
* and the live region drops any announcement made before.
|
|
27
|
+
*
|
|
28
|
+
* Internal: not exported from the package. The wrappers own the public API,
|
|
29
|
+
* the `data-component` marker (a literal in their own file, passed here as
|
|
30
|
+
* `rootProps`), the agent adapter and the table adapter.
|
|
31
|
+
*
|
|
32
|
+
* Co-located story (CLAUDE.md rule 13, design R10): recorded exception. An
|
|
33
|
+
* internal `_shared` part has no Storybook entry of its own, as no `_shared`
|
|
34
|
+
* folder in the kit does. The DataGridTabs and DataTableTabs stories cover
|
|
35
|
+
* every strip state through the wrappers, and `saved-view-tabs.test.tsx`
|
|
36
|
+
* pins the core and the strip against a fake adapter.
|
|
37
|
+
*/
|
|
38
|
+
import { type ReactNode } from 'react';
|
|
39
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
40
|
+
import type { AgentAdapter } from '../../../agent/types';
|
|
41
|
+
import type { SavedTab } from './saved-tab';
|
|
42
|
+
import { type UseSavedViewTabsOptions } from './use-saved-view-tabs';
|
|
43
|
+
export declare const savedViewTabsListVariants: (props?: ({
|
|
44
|
+
size?: "md" | "lg" | null | undefined;
|
|
45
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
46
|
+
export declare const savedViewTabsTriggerVariants: (props?: ({
|
|
47
|
+
size?: "md" | "lg" | null | undefined;
|
|
48
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
49
|
+
/** Curated imperative handle, also the agent adapter's surface. Structurally
|
|
50
|
+
* equal to `DataTableTabsHandle` and `DataGridTabsHandle`. */
|
|
51
|
+
export interface SavedViewTabsHandle {
|
|
52
|
+
getTabs: () => SavedTab[];
|
|
53
|
+
getActiveTabId: () => string | null;
|
|
54
|
+
/** Snapshots the outgoing tab, applies the incoming tab's view. */
|
|
55
|
+
selectTab: (id: string) => void;
|
|
56
|
+
/** Default view = a copy of the live view (the table does not change);
|
|
57
|
+
* an explicit `filterModel` is applied to the table. */
|
|
58
|
+
addTab: (label?: string, filterModel?: Record<string, unknown>) => string;
|
|
59
|
+
/** No-op on locked tabs and empty or whitespace labels. */
|
|
60
|
+
renameTab: (id: string, label: string) => void;
|
|
61
|
+
/** No-op on locked tabs and the last remaining tab. */
|
|
62
|
+
removeTab: (id: string) => void;
|
|
63
|
+
}
|
|
64
|
+
/** What the agent adapter receives: the handle, with add and rename bound
|
|
65
|
+
* by `allowAdd` and `allowRename`, plus a privacy read. */
|
|
66
|
+
export interface SavedViewTabsAgentHandle extends SavedViewTabsHandle {
|
|
67
|
+
/** True while the table hides people: report labels as masked. */
|
|
68
|
+
isPrivacyMode?: () => boolean;
|
|
69
|
+
}
|
|
70
|
+
/** The root marker, as a literal object in the wrapper's own file. */
|
|
71
|
+
export interface SavedViewTabsRootProps {
|
|
72
|
+
'data-component': string;
|
|
73
|
+
}
|
|
74
|
+
export interface SavedViewTabsProps extends Omit<UseSavedViewTabsOptions, 'componentName'>, VariantProps<typeof savedViewTabsTriggerVariants> {
|
|
75
|
+
/** Display name of the wrapper, for DEV warnings. */
|
|
76
|
+
componentName: string;
|
|
77
|
+
/** Spread on the root: carries the wrapper's literal `data-component`. */
|
|
78
|
+
rootProps: SavedViewTabsRootProps;
|
|
79
|
+
/** The wrapper's agent adapter, registered under `id`. */
|
|
80
|
+
agent: AgentAdapter<SavedViewTabsAgentHandle>;
|
|
81
|
+
/** Extra classes on the tabpanel (squares the table's leading corner). */
|
|
82
|
+
panelClassName?: string;
|
|
83
|
+
allowAdd?: boolean;
|
|
84
|
+
allowRename?: boolean;
|
|
85
|
+
allowRemove?: boolean;
|
|
86
|
+
renameOnAdd?: boolean;
|
|
87
|
+
id?: string;
|
|
88
|
+
className?: string;
|
|
89
|
+
'aria-label'?: string;
|
|
90
|
+
children: ReactNode;
|
|
91
|
+
}
|
|
92
|
+
export declare const SavedViewTabs: import("react").ForwardRefExoticComponent<SavedViewTabsProps & import("react").RefAttributes<SavedViewTabsHandle>>;
|
|
93
|
+
//# sourceMappingURL=saved-view-tabs.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type SavedTab } from './saved-tab';
|
|
2
|
+
import type { TabsViewAdapter } from './view-adapter';
|
|
3
|
+
export interface UseSavedViewTabsOptions {
|
|
4
|
+
/** How the hook reaches the table. Keep its identity stable. */
|
|
5
|
+
adapter: TabsViewAdapter;
|
|
6
|
+
/** localStorage prefix, e.g. `data-table-tabs:`. */
|
|
7
|
+
storagePrefix: string;
|
|
8
|
+
/** Component name for DEV warnings. */
|
|
9
|
+
componentName: string;
|
|
10
|
+
tabs?: SavedTab[];
|
|
11
|
+
defaultTabs?: SavedTab[];
|
|
12
|
+
onTabsChange?: (tabs: SavedTab[]) => void;
|
|
13
|
+
activeTabId?: string;
|
|
14
|
+
defaultActiveTabId?: string;
|
|
15
|
+
onActiveTabChange?: (id: string) => void;
|
|
16
|
+
/** Opt-in localStorage persistence; disabled while `tabs` is controlled. */
|
|
17
|
+
persistKey?: string;
|
|
18
|
+
/** Also persist the active tab id (needs `persistKey`). Default false. */
|
|
19
|
+
persistActiveTab?: boolean;
|
|
20
|
+
/** Capture and restore the quick search with the filters. Default false. */
|
|
21
|
+
captureQuickFilter?: boolean;
|
|
22
|
+
/** Apply the active tab's view on mount and on switch. Default true. */
|
|
23
|
+
applyOnActivate?: boolean;
|
|
24
|
+
/** Cap on the number of tabs. Default 8. */
|
|
25
|
+
maxTabs?: number;
|
|
26
|
+
/** Factory for a new tab; `index` is 1-based (used for the default name). */
|
|
27
|
+
createTab?: (index: number) => SavedTab;
|
|
28
|
+
/** Id factory; default `crypto.randomUUID()` with a counter fallback. */
|
|
29
|
+
makeTabId?: () => string;
|
|
30
|
+
}
|
|
31
|
+
export interface UseSavedViewTabsResult {
|
|
32
|
+
tabs: SavedTab[];
|
|
33
|
+
activeTabId: string;
|
|
34
|
+
selectTab: (id: string) => void;
|
|
35
|
+
addTab: (label?: string, filterModel?: Record<string, unknown>) => string;
|
|
36
|
+
renameTab: (id: string, label: string) => void;
|
|
37
|
+
removeTab: (id: string) => void;
|
|
38
|
+
atCapacity: boolean;
|
|
39
|
+
/** Synchronous snapshots for the imperative handle and agent adapter:
|
|
40
|
+
* fresh straight after a mutation, before React re-renders. */
|
|
41
|
+
getTabsSnapshot: () => SavedTab[];
|
|
42
|
+
getActiveTabIdSnapshot: () => string;
|
|
43
|
+
/** Whether the table hides people, as last read: re-read on every bind
|
|
44
|
+
* and every privacy change the adapter reports. Always `'off'` for an
|
|
45
|
+
* adapter with no privacy mode. */
|
|
46
|
+
privacy: PrivacyState;
|
|
47
|
+
/** Whether a person typed the tab's label: `userNamed: true`, or a tab
|
|
48
|
+
* this hook marked as typed in this session that comes back without the
|
|
49
|
+
* flag (a controlled host that maps payloads to its own schema). An
|
|
50
|
+
* explicit `userNamed: false` is the host's word for a built-in label.
|
|
51
|
+
* Always false for an adapter with no privacy mode. */
|
|
52
|
+
isUserNamed: (tab: SavedTab) => boolean;
|
|
53
|
+
}
|
|
54
|
+
export type PrivacyState = 'on' | 'off' | 'unknown';
|
|
55
|
+
/** Whether the table hides people. An adapter with no privacy read is
|
|
56
|
+
* `'off'`; one that has not answered yet is `'unknown'`. */
|
|
57
|
+
export declare function privacyStateOf(adapter: TabsViewAdapter): PrivacyState;
|
|
58
|
+
export declare function useSavedViewTabs(options: UseSavedViewTabsOptions): UseSavedViewTabsResult;
|
|
59
|
+
//# sourceMappingURL=use-saved-view-tabs.d.ts.map
|