@alfadocs/ui-kit 1.113.0 → 1.115.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/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
- 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-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-BZ36ULQk.js} +5 -5
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-va9zx7tJ.js} +12 -12
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +520 -532
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
- package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.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/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-C68V9rdH.js} +6 -6
- package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
- package/dist/_chunks/data-table-DXaE2Ret.js +1693 -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-CBFfkgmz.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/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-C1UA5jpS.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.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/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DkoxiDCh.js} +3 -3
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YQVzSskq.js → forgot-password-form-Bc_UPax6.js} +2 -2
- 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-Dv3IePb-.js → gestational-age-calculator-60y1RyQL.js} +8 -8
- package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-CC-dbKE8.js} +7 -6
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-eXdtmEoU.js} +4 -4
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/icon-button-group-C9mPK-bX.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-BOsUgWnE.js → kit-extensions-CzG0RmhQ.js} +7 -7
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
- package/dist/_chunks/{login-dev-card-B6-zCFq3.js → login-dev-card-CPndtWdz.js} +3 -3
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CcEHJgDd.js} +3 -3
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- 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-Cz621DWV.js → notes-panel-BVYG_MJE.js} +4 -4
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- 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-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-RsT3SaYh.js → patient-details-DlT-vpSe.js} +3 -3
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/{patient-summary-card-BjZErlbt.js → patient-summary-card-Dy9-CzON.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-DnZuZD14.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.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-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-qZpw3zj8.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.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/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Cq5_OSIL.js → registration-form-DW-0X7S4.js} +3 -3
- package/dist/_chunks/{reserved.agent-BMkapgom.js → reserved.agent-6p3Hm4oH.js} +29 -39
- package/dist/_chunks/{reset-password-form-BVsL2fOJ.js → reset-password-form-C93SH0Tx.js} +2 -2
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-OgPomrZN.js → send-registration-link-form-DWxWa_cJ.js} +6 -6
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- 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/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js → use-appointment-details-read-BMAiQYo6.js} +6 -6
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-DNSe65yd.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +722 -11
- package/dist/agent-i18n/en.json +52 -4
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- 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/ai-permission-notice/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-timeline/index.js +1 -1
- 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/booking/step-focus.d.ts +0 -6
- 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/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/clinical-note-card/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/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +95 -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 +118 -0
- package/dist/components/data-grid/editors.d.ts +8 -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 +10 -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 +58 -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 +1346 -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/document-preview/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/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 +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/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-search/patient-search.d.ts +6 -2
- 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/permission-matrix/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 +15 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +23 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- 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/section-card/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- 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/timeline/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +95 -0
- package/dist/i18n/locales/ar.js +98 -3
- package/dist/i18n/locales/de.d.ts +95 -0
- package/dist/i18n/locales/de.js +98 -3
- package/dist/i18n/locales/el.d.ts +95 -0
- package/dist/i18n/locales/el.js +98 -3
- package/dist/i18n/locales/en.d.ts +95 -0
- package/dist/i18n/locales/en.js +98 -2
- package/dist/i18n/locales/es.d.ts +95 -0
- package/dist/i18n/locales/es.js +98 -3
- package/dist/i18n/locales/fr.d.ts +95 -0
- package/dist/i18n/locales/fr.js +98 -3
- package/dist/i18n/locales/hi.d.ts +95 -0
- package/dist/i18n/locales/hi.js +98 -3
- package/dist/i18n/locales/it.d.ts +95 -0
- package/dist/i18n/locales/it.js +98 -3
- package/dist/i18n/locales/ja.d.ts +95 -0
- package/dist/i18n/locales/ja.js +98 -3
- package/dist/i18n/locales/nl.d.ts +95 -0
- package/dist/i18n/locales/nl.js +98 -3
- package/dist/i18n/locales/pl.d.ts +95 -0
- package/dist/i18n/locales/pl.js +98 -3
- package/dist/i18n/locales/pt.d.ts +95 -0
- package/dist/i18n/locales/pt.js +98 -3
- package/dist/i18n/locales/ro.d.ts +95 -0
- package/dist/i18n/locales/ro.js +98 -3
- package/dist/i18n/locales/ru.d.ts +95 -0
- package/dist/i18n/locales/ru.js +98 -3
- package/dist/i18n/locales/sq.d.ts +95 -0
- package/dist/i18n/locales/sq.js +98 -3
- package/dist/i18n/locales/sv.d.ts +95 -0
- package/dist/i18n/locales/sv.js +98 -3
- package/dist/i18n/locales/tr.d.ts +95 -0
- package/dist/i18n/locales/tr.js +98 -3
- package/dist/i18n/locales/zh.d.ts +95 -0
- package/dist/i18n/locales/zh.js +98 -3
- package/dist/index.js +1048 -1036
- package/dist/locales/ar.json +98 -3
- package/dist/locales/de.json +98 -3
- package/dist/locales/el.json +98 -3
- package/dist/locales/en.json +97 -2
- package/dist/locales/es.json +98 -3
- package/dist/locales/fr.json +98 -3
- package/dist/locales/hi.json +98 -3
- package/dist/locales/it.json +98 -3
- package/dist/locales/ja.json +98 -3
- package/dist/locales/nl.json +98 -3
- package/dist/locales/pl.json +98 -3
- package/dist/locales/pt.json +98 -3
- package/dist/locales/ro.json +98 -3
- package/dist/locales/ru.json +98 -3
- package/dist/locales/sq.json +98 -3
- package/dist/locales/sv.json +98 -3
- package/dist/locales/tr.json +98 -3
- package/dist/locales/zh.json +98 -3
- 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/forgot-password-form/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/signed-out-frame/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- 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/format--x5jypvH.js +0 -1319
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/practice-results-BByRCIuR.js +0 -1977
- package/dist/_chunks/privacy-mask-DbEKI-Jv.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DataGridHandle } from './types';
|
|
2
|
+
/** Delay before a settled filter or a slow load is announced. */
|
|
3
|
+
export declare const DATA_GRID_ANNOUNCE_SETTLE_MS = 500;
|
|
4
|
+
/** A message leaves the region after this long, so a row name never sits
|
|
5
|
+
* in the DOM once it has been read. */
|
|
6
|
+
export declare const DATA_GRID_ANNOUNCE_CLEAR_MS = 5000;
|
|
7
|
+
export interface DataGridAnnouncerOptions {
|
|
8
|
+
handle: DataGridHandle;
|
|
9
|
+
/** Plain or privacy-safe row name by id (table meta). */
|
|
10
|
+
getRowLabel: (rowId: string) => string;
|
|
11
|
+
status: 'ready' | 'loading' | 'error';
|
|
12
|
+
/** Translated error title (host copy or the default). */
|
|
13
|
+
errorTitle: string;
|
|
14
|
+
selectionMode: 'none' | 'single' | 'multiple';
|
|
15
|
+
/** Locked ids: never "cleared" by `clearSelectionOnFilterChange`. */
|
|
16
|
+
clearSelectionOnFilterChange: boolean;
|
|
17
|
+
/** The region is emptied whenever this changes: a message written before
|
|
18
|
+
* privacy mode turned on may name a row. */
|
|
19
|
+
privacyMode?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Builds the current message. The region renders it. */
|
|
22
|
+
export declare function useDataGridAnnouncer({ handle, getRowLabel, status, errorTitle, selectionMode, clearSelectionOnFilterChange, privacyMode, }: DataGridAnnouncerOptions): string;
|
|
23
|
+
/** The polite region. Rendered once per grid. */
|
|
24
|
+
export declare function DataGridAnnouncer({ message }: {
|
|
25
|
+
message: string;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=announcer.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { type CSSProperties, type KeyboardEvent as ReactKeyboardEvent, type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import type { Cell, Column, Row, Table } from '@tanstack/react-table';
|
|
3
|
+
import type { DataGridFeatures } from './features';
|
|
4
|
+
import type { DataGridColumn, DataGridColumnGroup, DataGridSelectionApi, DataGridStore, DataGridTableMeta } from './types';
|
|
5
|
+
export type DgTable<TData extends object> = Table<DataGridFeatures, TData>;
|
|
6
|
+
export type DgRow<TData extends object> = Row<DataGridFeatures, TData>;
|
|
7
|
+
export type DgColumn<TData extends object> = Column<DataGridFeatures, TData, unknown>;
|
|
8
|
+
export type DgCell<TData extends object> = Cell<DataGridFeatures, TData, unknown>;
|
|
9
|
+
/** How a pinned column sticks: the first on a side at the edge, later ones
|
|
10
|
+
* at an offset; the divider on the boundary column. */
|
|
11
|
+
export interface DataGridPinPresentation {
|
|
12
|
+
pin: 'none' | 'start' | 'end' | 'startOffset' | 'endOffset';
|
|
13
|
+
divider: 'none' | 'start' | 'end';
|
|
14
|
+
/** px from the edge for `startOffset` / `endOffset` (measured). */
|
|
15
|
+
offset: number | null;
|
|
16
|
+
}
|
|
17
|
+
export declare const NO_PIN: DataGridPinPresentation;
|
|
18
|
+
/** Everything the header, body and footer read. Built once per render by
|
|
19
|
+
* `data-grid.tsx` from the engine. */
|
|
20
|
+
export interface DataGridRenderModel<TData extends object> {
|
|
21
|
+
table: DgTable<TData>;
|
|
22
|
+
store: DataGridStore;
|
|
23
|
+
kitColumns: ReadonlyMap<string, DataGridColumn<TData>>;
|
|
24
|
+
kitGroups: ReadonlyMap<string, DataGridColumnGroup>;
|
|
25
|
+
selection: DataGridSelectionApi;
|
|
26
|
+
meta: DataGridTableMeta;
|
|
27
|
+
/** `useId()` of the grid: prefix of every generated id. */
|
|
28
|
+
idBase: string;
|
|
29
|
+
density: 'default' | 'compact';
|
|
30
|
+
dataMode: 'client' | 'server';
|
|
31
|
+
direction: 'ltr' | 'rtl';
|
|
32
|
+
privacyMode: boolean;
|
|
33
|
+
pins: ReadonlyMap<string, DataGridPinPresentation>;
|
|
34
|
+
/** Visible leaf columns in DOM order (start-pinned, centre, end-pinned),
|
|
35
|
+
* the order `row.getVisibleCells()` uses. */
|
|
36
|
+
visibleColumns: readonly DgColumn<TData>[];
|
|
37
|
+
/** Their ids joined: a memoised body row compares this, not the array. */
|
|
38
|
+
visibleColumnsKey: string;
|
|
39
|
+
/** The model of the last committed render. Event handlers in a memoised
|
|
40
|
+
* row read it, so a row that did not re-render never acts on a stale
|
|
41
|
+
* selection or table state. */
|
|
42
|
+
latest: {
|
|
43
|
+
readonly current: DataGridRenderModel<TData> | null;
|
|
44
|
+
};
|
|
45
|
+
/** The data column whose cells are `<th scope="row">`. */
|
|
46
|
+
rowHeaderColumnId: string | null;
|
|
47
|
+
renderDetail?: (row: TData) => ReactNode;
|
|
48
|
+
/** `DataGridProps.readOnly`: the reason every selectable box gives while
|
|
49
|
+
* the whole grid is read-only, or `null`. */
|
|
50
|
+
readOnlyReason: string | null;
|
|
51
|
+
}
|
|
52
|
+
/** One body item: a row, or the detail panel under an expanded row. */
|
|
53
|
+
export type DataGridBodyItem<TData extends object> = {
|
|
54
|
+
kind: 'row';
|
|
55
|
+
key: string;
|
|
56
|
+
row: DgRow<TData>;
|
|
57
|
+
} | {
|
|
58
|
+
kind: 'detail';
|
|
59
|
+
key: string;
|
|
60
|
+
row: DgRow<TData>;
|
|
61
|
+
};
|
|
62
|
+
/** Utility column kinds from the v9 column meta. */
|
|
63
|
+
export declare function columnKind<TData extends object>(column: DgColumn<TData>): 'data' | 'group' | 'select' | 'expand';
|
|
64
|
+
/** The CSS custom property a pinned cell needs, if any. Inline style only
|
|
65
|
+
* under 23-constraints §Runtime-computed dimensions (case 1 setter, case 2
|
|
66
|
+
* value: measured from the pinned header cells). */
|
|
67
|
+
export declare function pinStyle(presentation: DataGridPinPresentation): CSSProperties | undefined;
|
|
68
|
+
/** Is this kit column printed? Utility columns never are. */
|
|
69
|
+
export declare function isPrintable<TData>(kind: 'data' | 'group' | 'select' | 'expand', kit: DataGridColumn<TData> | undefined): boolean;
|
|
70
|
+
export declare const nameId: (idBase: string, itemIndex: number, cellIndex: number) => string;
|
|
71
|
+
export declare const detailId: (idBase: string, itemIndex: number) => string;
|
|
72
|
+
export interface DataGridBodyProps<TData extends object> {
|
|
73
|
+
model: DataGridRenderModel<TData>;
|
|
74
|
+
bodyRef: RefObject<HTMLTableSectionElement | null>;
|
|
75
|
+
/** Every body item on this page, in display order. */
|
|
76
|
+
items: readonly DataGridBodyItem<TData>[];
|
|
77
|
+
/** Mounted item indexes and gaps (all of them when not virtualised). */
|
|
78
|
+
mounted: readonly {
|
|
79
|
+
index: number;
|
|
80
|
+
gapBefore: number;
|
|
81
|
+
}[];
|
|
82
|
+
virtualised: boolean;
|
|
83
|
+
padStart: number;
|
|
84
|
+
padEnd: number;
|
|
85
|
+
measureElement: (node: HTMLTableRowElement | null) => void;
|
|
86
|
+
columnCount: number;
|
|
87
|
+
/** `aria-rowindex` of an item, or `undefined` when every row is in the
|
|
88
|
+
* DOM. */
|
|
89
|
+
ariaRowIndexOf: (itemIndex: number) => number | undefined;
|
|
90
|
+
onKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
|
|
91
|
+
/** Replaces the rows (states: skeleton, empty, error). */
|
|
92
|
+
stateRows?: ReactNode;
|
|
93
|
+
}
|
|
94
|
+
export declare function DataGridBody<TData extends object>({ model, bodyRef, items, mounted, virtualised, padStart, padEnd, measureElement, columnCount, ariaRowIndexOf, onKeyDown, stateRows, }: DataGridBodyProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { type DataGridFeatures, type DataGridSortFnName } from './features';
|
|
3
|
+
import type { DataGridFilterFnName } from './filter-fns';
|
|
4
|
+
import type { DataGridColumn, DataGridColumnFilter, DataGridColumnGroup, DataGridColumnPinning, DataGridOption } from './types';
|
|
5
|
+
/** A v9 column def over the kit feature set. */
|
|
6
|
+
export type DataGridColumnDef<TData extends object> = ColumnDef<DataGridFeatures, TData, unknown>;
|
|
7
|
+
/** Ids starting with this are reserved for utility columns. */
|
|
8
|
+
export declare const DATA_GRID_RESERVED_PREFIX = "__";
|
|
9
|
+
/** Utility column ids in their fixed start-pinned order. */
|
|
10
|
+
export declare const DATA_GRID_UTILITY_IDS: readonly string[];
|
|
11
|
+
export declare function isUtilityColumnId(id: string): boolean;
|
|
12
|
+
/** Plain column name: `headerLabel`, a string or number `header`, else the
|
|
13
|
+
* id (with a DEV warning, because the id is a developer constant). */
|
|
14
|
+
export declare function getDataGridColumnLabel<TData>(column: Pick<DataGridColumn<TData>, 'id' | 'header' | 'headerLabel'>): string;
|
|
15
|
+
/** Whole-column rule (types.ts `DataGridColumnPrivacy`): under privacy
|
|
16
|
+
* mode, a column with any `privacy` leaves sorting, filtering, quick
|
|
17
|
+
* search and facets for every row. */
|
|
18
|
+
export declare function isDataGridColumnMasked<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, privacyMode: boolean): boolean;
|
|
19
|
+
/** Is this one cell masked (shows the mask instead of `cell`)? */
|
|
20
|
+
export declare function isDataGridCellMasked<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, row: TData, privacyMode: boolean): boolean;
|
|
21
|
+
/** The host mask text for a masked cell, or `undefined` (bullets). */
|
|
22
|
+
export declare function getDataGridHostMask<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, row: TData): string | undefined;
|
|
23
|
+
/** `privacy: 'hide'` under privacy mode: hidden and cannot be shown. */
|
|
24
|
+
export declare function isDataGridColumnPrivacyHidden<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, privacyMode: boolean): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* A select filter's options: the column's own, else (client mode) the
|
|
27
|
+
* distinct values of every core row, sorted for `locale`, so other filters
|
|
28
|
+
* do not shrink the list. Shared by the header panel and the toolbar seam.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getDataGridSelectOptions<TData>(column: Pick<DataGridColumn<TData>, 'filter' | 'value'>, coreRows: ReadonlyArray<{
|
|
31
|
+
original: TData;
|
|
32
|
+
}>, dataMode: 'client' | 'server', locale: string | undefined): readonly DataGridOption[];
|
|
33
|
+
export declare function resolveDataGridSortFn<TData>(sort: DataGridColumn<TData>['sort']): DataGridSortFnName | ((a: TData, b: TData) => number) | null;
|
|
34
|
+
export declare function resolveDataGridFilterFn(filter: DataGridColumnFilter): DataGridFilterFnName;
|
|
35
|
+
/** Is the column sortable in principle (ignoring privacy)? */
|
|
36
|
+
export declare function isDataGridColumnSortable<TData>(column: DataGridColumn<TData>): boolean;
|
|
37
|
+
/** Does the column filter in principle (ignoring privacy)? */
|
|
38
|
+
export declare function isDataGridColumnFilterable<TData>(column: DataGridColumn<TData>): boolean;
|
|
39
|
+
/** Does the column join quick search in principle (ignoring privacy)? */
|
|
40
|
+
export declare function isDataGridColumnSearchable<TData>(column: DataGridColumn<TData>): boolean;
|
|
41
|
+
export interface DataGridColumnRules {
|
|
42
|
+
canHide: boolean;
|
|
43
|
+
canMove: boolean;
|
|
44
|
+
canPin: boolean;
|
|
45
|
+
minSize: number;
|
|
46
|
+
maxSize: number;
|
|
47
|
+
}
|
|
48
|
+
/** Hide, move, pin and size defaults (types.ts `DataGridColumn`). */
|
|
49
|
+
export declare function getDataGridColumnRules<TData>(column: DataGridColumn<TData>, defaultRowHeaderId: string | null, privacyMode: boolean): DataGridColumnRules;
|
|
50
|
+
/** Clamps a width to the column's bounds; `null` for a non-finite value. */
|
|
51
|
+
export declare function clampDataGridColumnSize<TData>(column: DataGridColumn<TData>, px: number): number | null;
|
|
52
|
+
/**
|
|
53
|
+
* The row-header column: the first visible column with `rowHeader`, else
|
|
54
|
+
* the first visible data column (today's rule), wherever it moved.
|
|
55
|
+
*/
|
|
56
|
+
export declare function resolveDataGridRowHeaderId<TData>(kitColumns: ReadonlyMap<string, DataGridColumn<TData>>, visibleOrderedIds: readonly string[]): string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Completes a (possibly partial or stale) leaf order: unknown ids are
|
|
59
|
+
* dropped, and declared columns missing from it keep their declared
|
|
60
|
+
* position (each goes straight after its declared predecessor).
|
|
61
|
+
*/
|
|
62
|
+
export declare function resolveDataGridColumnOrder(order: readonly string[], declared: readonly string[]): string[];
|
|
63
|
+
export interface BuildDataGridColumnsInput<TData> {
|
|
64
|
+
columns: readonly DataGridColumn<TData>[];
|
|
65
|
+
columnGroups?: readonly DataGridColumnGroup[];
|
|
66
|
+
selectionMode: 'none' | 'single' | 'multiple';
|
|
67
|
+
/** Sub-rows or a detail panel: adds `__expand`. */
|
|
68
|
+
expandable: boolean;
|
|
69
|
+
privacyMode: boolean;
|
|
70
|
+
/** The grid's `columnResizing` (each column's default). */
|
|
71
|
+
columnResizing: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface DataGridColumnModel<TData extends object> {
|
|
74
|
+
/** v9 defs: utility columns first, then data columns and groups. */
|
|
75
|
+
defs: DataGridColumnDef<TData>[];
|
|
76
|
+
/** Valid data columns by id. */
|
|
77
|
+
kitColumns: Map<string, DataGridColumn<TData>>;
|
|
78
|
+
/** Valid groups (at least one known leaf) by id. */
|
|
79
|
+
kitGroups: Map<string, DataGridColumnGroup>;
|
|
80
|
+
/** Leaf id to group id. */
|
|
81
|
+
groupOf: Map<string, string>;
|
|
82
|
+
/** Data leaf ids in declared order (group members pulled together). */
|
|
83
|
+
declaredOrder: string[];
|
|
84
|
+
/** Utility ids present, in their pinned order. */
|
|
85
|
+
utilityIds: string[];
|
|
86
|
+
/** `rowHeader` column, else the first declared data column. */
|
|
87
|
+
defaultRowHeaderId: string | null;
|
|
88
|
+
/** From each column's `pin`, minus pins that would split a group. */
|
|
89
|
+
declaredPinning: DataGridColumnPinning;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Builds the column model. Memoise on `columns`, `columnGroups`,
|
|
93
|
+
* `selectionMode`, `expandable`, `privacyMode` and `columnResizing`.
|
|
94
|
+
*/
|
|
95
|
+
export declare function buildDataGridColumns<TData extends object>(input: BuildDataGridColumnsInput<TData>): DataGridColumnModel<TData>;
|
|
96
|
+
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* has a footer. */
|
|
13
|
-
footer?: ReactNode;
|
|
14
|
-
/** Amounts go `end`, so a column lines up on the decimal. */
|
|
15
|
-
align?: 'start' | 'end';
|
|
16
|
-
/** Keeps the column in view while the others scroll sideways. */
|
|
17
|
-
pin?: 'start' | 'end';
|
|
18
|
-
}
|
|
19
|
-
export interface DataGridProps<TData> extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dir'> {
|
|
20
|
-
columns: DataGridColumn<TData>[];
|
|
21
|
-
rows: TData[];
|
|
22
|
-
getRowId: (row: TData) => string;
|
|
23
|
-
/** Names the table for screen readers. Pass a translated string. */
|
|
24
|
-
caption: string;
|
|
25
|
-
}
|
|
26
|
-
/** The first column is the row header, so name each row with it. */
|
|
27
|
-
export declare function DataGrid<TData extends object>({ columns, rows, getRowId, caption, className, ...rest }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { type ReactElement, type Ref } from 'react';
|
|
2
|
+
import { type DataGridHandle, type DataGridProps } from './types';
|
|
3
|
+
export type { DataGridColumn, DataGridProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* The kit's TanStack table. Pass `ref` for the curated `DataGridHandle`.
|
|
6
|
+
* `forwardRef` with the generic cast DataTable uses (`data-table.tsx:1146`),
|
|
7
|
+
* keeping `TData extends object` because v9 needs `RowData`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DataGrid: <TData extends object>(props: DataGridProps<TData> & {
|
|
10
|
+
ref?: Ref<DataGridHandle>;
|
|
11
|
+
}) => ReactElement;
|
|
28
12
|
//# sourceMappingURL=data-grid.d.ts.map
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/** Frame shape root (toolbar or pagination): a flex column holding the
|
|
2
|
+
* toolbar slot, the scroll region and the pager slot. */
|
|
3
|
+
export declare const frameVariants: (props?: ({
|
|
4
|
+
height?: "auto" | "fill" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/** The scroll region. In the no-chrome shape it is also the root, so it
|
|
7
|
+
* carries the card surface. */
|
|
8
|
+
export declare const scrollerVariants: (props?: ({
|
|
9
|
+
chrome?: boolean | null | undefined;
|
|
10
|
+
pinned?: boolean | null | undefined;
|
|
11
|
+
height?: "auto" | "fill" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
/** Toolbar and pager slots in the frame shape. Never printed. */
|
|
14
|
+
export declare const slotVariants: (props?: ({
|
|
15
|
+
slot?: "toolbar" | "pager" | null | undefined;
|
|
16
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
|
+
/** Range text beside the pager ("Rows 26 to 50 of 312"). */
|
|
18
|
+
export declare const pagerRangeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
19
|
+
/** Spinner holder in the no-chrome shape while loading with rows. */
|
|
20
|
+
export declare const busyVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
21
|
+
export declare const tableVariants: (props?: ({
|
|
22
|
+
fixed?: boolean | null | undefined;
|
|
23
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
24
|
+
/** `<col>` widths in fixed layout. */
|
|
25
|
+
export declare const colVariants: (props?: ({
|
|
26
|
+
kind?: "number" | "text" | "date" | "utility" | "sized" | null | undefined;
|
|
27
|
+
printable?: boolean | null | undefined;
|
|
28
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
|
+
/** Spacer rows of the virtual window: one cell spanning every column. */
|
|
30
|
+
export declare const spacerVariants: (props?: ({
|
|
31
|
+
edge?: "end" | "start" | "gap" | null | undefined;
|
|
32
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
33
|
+
/** Every grid cell. */
|
|
34
|
+
export declare const cellVariants: (props?: ({
|
|
35
|
+
section?: "body" | "head" | "group" | "foot" | "detail" | null | undefined;
|
|
36
|
+
density?: "default" | "compact" | null | undefined;
|
|
37
|
+
stick?: "top" | "none" | "below" | null | undefined;
|
|
38
|
+
align?: "end" | "start" | null | undefined;
|
|
39
|
+
pin?: "end" | "start" | "none" | "startOffset" | "endOffset" | null | undefined;
|
|
40
|
+
divider?: "end" | "start" | "none" | null | undefined;
|
|
41
|
+
utility?: boolean | null | undefined;
|
|
42
|
+
editable?: boolean | null | undefined;
|
|
43
|
+
selected?: boolean | null | undefined;
|
|
44
|
+
wrap?: boolean | null | undefined;
|
|
45
|
+
printable?: boolean | null | undefined;
|
|
46
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
47
|
+
/** Sub-row indent on the row-header cell (`--dg-depth` set per cell). */
|
|
48
|
+
export declare const depthVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
49
|
+
/** Label, tip, filter and separator inside a leaf header. */
|
|
50
|
+
export declare const headerContentVariants: (props?: ({
|
|
51
|
+
align?: "end" | "start" | null | undefined;
|
|
52
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
53
|
+
/**
|
|
54
|
+
* 05:9 under the accessible themes (WCAG 2.5.5, AAA): a compact control
|
|
55
|
+
* grows to `--min-target-size` where `--accessible-target-floor` is set
|
|
56
|
+
* (`.theme-accessible`) and keeps its compact size elsewhere. The calendar
|
|
57
|
+
* toolbar's precedent (`ACCESSIBLE_TARGET_SQUARE_CLASS`).
|
|
58
|
+
*/
|
|
59
|
+
export declare const accessibleTargetBlockClass = "ds:[min-block-size:var(--accessible-target-floor,auto)]";
|
|
60
|
+
/** The same floor on both axes, for icon-only buttons. */
|
|
61
|
+
export declare const accessibleTargetSquareClass = "ds:[min-block-size:var(--accessible-target-floor,auto)] ds:[min-inline-size:var(--accessible-target-floor,auto)]";
|
|
62
|
+
/** The sort button: the header label and the direction glyph. */
|
|
63
|
+
export declare const sortButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
64
|
+
/** The direction glyph; muted while the column is unsorted. */
|
|
65
|
+
export declare const sortIconVariants: (props?: ({
|
|
66
|
+
active?: boolean | null | undefined;
|
|
67
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
68
|
+
/** Sort level number from the second level on. */
|
|
69
|
+
export declare const sortPriorityVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
70
|
+
/** The resize separator at the header's inline-end edge (WCAG 2.5.8 and
|
|
71
|
+
* the kit's 05:9 rule, as `accessibleTargetSquareClass`):
|
|
72
|
+
* - hit area `--spacing-lg` (24 px) wide by the header's full block size
|
|
73
|
+
* (`--min-target-size`), raised to `--min-target-size` on both axes in
|
|
74
|
+
* the accessible themes through `--accessible-target-floor`;
|
|
75
|
+
* - it sits inside its own header cell (`end-0`), never over the next
|
|
76
|
+
* column, and `resizableHeadCellClass` reserves exactly its width as the
|
|
77
|
+
* cell's inline-end padding in every theme, so the sort button and
|
|
78
|
+
* filter trigger never sit under it;
|
|
79
|
+
* - not wider in the default theme: centring a 44 px area on the column
|
|
80
|
+
* edge would cover the next header's sort button, and a 44 px padding
|
|
81
|
+
* would leave a 64 px column no room for its label. */
|
|
82
|
+
export declare const separatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
83
|
+
/** A resizable leaf header cell: its inline-end padding is the
|
|
84
|
+
* separator's width in every theme (24 px, or `--min-target-size` in the
|
|
85
|
+
* accessible themes), so the sort button and filter trigger never sit
|
|
86
|
+
* under the separator. */
|
|
87
|
+
export declare const resizableHeadCellClass = "ds:pe-[var(--accessible-target-floor,var(--spacing-lg))]";
|
|
88
|
+
/** The expander chevron: rotates when open, flips in RTL while closed. */
|
|
89
|
+
export declare const expanderIconVariants: (props?: ({
|
|
90
|
+
expanded?: boolean | null | undefined;
|
|
91
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
92
|
+
/** The muted dash for a row that cannot be selected. */
|
|
93
|
+
export declare const noneMarkVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
94
|
+
/** The detail panel cell stays in view when scrolled sideways. */
|
|
95
|
+
export declare const detailContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
96
|
+
/** A skeleton row's placeholder bar. */
|
|
97
|
+
export declare const skeletonBarVariants: (props?: ({
|
|
98
|
+
width?: "long" | "medium" | "short" | null | undefined;
|
|
99
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
100
|
+
/** The EmptyState holder row: one cell over every column. */
|
|
101
|
+
export declare const stateCellVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
102
|
+
/** Built-in editors fill their cell. */
|
|
103
|
+
export declare const editorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
104
|
+
/** Wraps a built-in editor: the kit's compact field exception (32 px,
|
|
105
|
+
* raised to `--min-target-size` under the accessible themes and on touch
|
|
106
|
+
* widths) instead of `size="sm"`, so a Select's menu keeps the target. */
|
|
107
|
+
export declare const editorFieldVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
108
|
+
/** An editor's error text under the input. */
|
|
109
|
+
export declare const editorErrorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
110
|
+
/** Text read as part of its cell's name but not shown, kept inline: the
|
|
111
|
+
* name algorithm adds no space around an inline span (it does around the
|
|
112
|
+
* block-level `sr-only` box), and font size 0 gives it no width. Used for
|
|
113
|
+
* a sub-row's ", level 2" so the row header reads "Alginate 500 g,
|
|
114
|
+
* level 2". `print:hidden` keeps it off paper. */
|
|
115
|
+
export declare const inlineHiddenTextClass = "ds:inline ds:[font-size:0] ds:leading-none ds:print:hidden";
|
|
116
|
+
/** Visually hidden level text and similar inline extras. */
|
|
117
|
+
export declare const maskVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
118
|
+
//# sourceMappingURL=data-grid.variants.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DataGridColumnEdit, DataGridEditContext } from './types';
|
|
2
|
+
export interface DataGridEditorProps<TData> {
|
|
3
|
+
edit: DataGridColumnEdit<TData>;
|
|
4
|
+
row: TData;
|
|
5
|
+
context: DataGridEditContext;
|
|
6
|
+
}
|
|
7
|
+
export declare function DataGridEditor<TData>({ edit, row, context, }: DataGridEditorProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=editors.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { DataGridColumnMeta, DataGridTableMeta } from './types';
|
|
2
|
+
/** One `Intl.Collator` per locale: numeric, accent- and case-insensitive. */
|
|
3
|
+
export declare function getDataGridCollator(locale: string | undefined): Intl.Collator;
|
|
4
|
+
/** Compares two plain cell values for `sort: 'text'`. */
|
|
5
|
+
export declare function compareDataGridText(a: unknown, b: unknown, locale?: string): number;
|
|
6
|
+
/** Compares two plain cell values for `sort: 'number'`. */
|
|
7
|
+
export declare function compareDataGridNumber(a: unknown, b: unknown): number;
|
|
8
|
+
/** Compares two plain cell values for `sort: 'date'` (Date or ISO text). */
|
|
9
|
+
export declare function compareDataGridDate(a: unknown, b: unknown): number;
|
|
10
|
+
/** `sort: true`: picks the comparison from the two values' types. */
|
|
11
|
+
export declare function compareDataGridValues(a: unknown, b: unknown, locale?: string): number;
|
|
12
|
+
export declare const dataGridFeatures: {
|
|
13
|
+
rowSortingFeature: import("@tanstack/table-core").TableFeature;
|
|
14
|
+
columnFilteringFeature: import("@tanstack/table-core").TableFeature;
|
|
15
|
+
globalFilteringFeature: import("@tanstack/table-core").TableFeature;
|
|
16
|
+
rowPaginationFeature: import("@tanstack/table-core").TableFeature;
|
|
17
|
+
rowSelectionFeature: import("@tanstack/table-core").TableFeature;
|
|
18
|
+
rowExpandingFeature: import("@tanstack/table-core").TableFeature;
|
|
19
|
+
columnVisibilityFeature: import("@tanstack/table-core").TableFeature;
|
|
20
|
+
columnPinningFeature: import("@tanstack/table-core").TableFeature;
|
|
21
|
+
columnOrderingFeature: import("@tanstack/table-core").TableFeature;
|
|
22
|
+
columnSizingFeature: import("@tanstack/table-core").TableFeature;
|
|
23
|
+
columnResizingFeature: import("@tanstack/table-core").TableFeature;
|
|
24
|
+
sortedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
|
|
25
|
+
filteredRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
|
|
26
|
+
paginatedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
|
|
27
|
+
expandedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
|
|
28
|
+
sortFns: {
|
|
29
|
+
kitText: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
30
|
+
kitNumber: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
31
|
+
kitDate: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
32
|
+
kitAuto: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
33
|
+
alphanumeric: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
34
|
+
datetime: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
35
|
+
basic: import("@tanstack/table-core").CreatedSortFn<any, any>;
|
|
36
|
+
};
|
|
37
|
+
filterFns: {
|
|
38
|
+
kitText: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
39
|
+
kitNumber: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
40
|
+
kitSet: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
41
|
+
kitDateRange: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
42
|
+
kitQuick: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
43
|
+
};
|
|
44
|
+
tableMeta: DataGridTableMeta;
|
|
45
|
+
columnMeta: DataGridColumnMeta;
|
|
46
|
+
};
|
|
47
|
+
export type DataGridFeatures = typeof dataGridFeatures;
|
|
48
|
+
/** A registered kit sort function name. */
|
|
49
|
+
export type DataGridSortFnName = 'kitText' | 'kitNumber' | 'kitDate' | 'kitAuto';
|
|
50
|
+
/** Utility column ids (design § 2.1, `columns.ts`). */
|
|
51
|
+
export declare const DATA_GRID_SELECT_COLUMN_ID = "__select";
|
|
52
|
+
export declare const DATA_GRID_EXPAND_COLUMN_ID = "__expand";
|
|
53
|
+
/** Default column size bounds (types.ts `minSize`, `maxSize`). */
|
|
54
|
+
export declare const DATA_GRID_DEFAULT_MIN_SIZE = 64;
|
|
55
|
+
export declare const DATA_GRID_DEFAULT_MAX_SIZE = 960;
|
|
56
|
+
//# sourceMappingURL=features.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The five kit filter functions, registered on `dataGridFeatures.filterFns`
|
|
3
|
+
* (design § 2.2). Keys are the only names columns and `globalFilterFn` may
|
|
4
|
+
* use:
|
|
5
|
+
*
|
|
6
|
+
* - `kitText`: `TextFilterModel` (column `filter.kind: 'text'`).
|
|
7
|
+
* - `kitNumber`: `NumberFilterModel` (`'number'`).
|
|
8
|
+
* - `kitSet`: `SelectFilterModel` (`'select'`; also FacetFilter's model).
|
|
9
|
+
* - `kitDateRange`: `DateRangeFilterModel` (`'dateRange'`).
|
|
10
|
+
* - `kitQuick`: the quick search (`globalFilterFn: 'kitQuick'`):
|
|
11
|
+
* accent-folded, case-insensitive "contains" on what the cell shows:
|
|
12
|
+
* the column's `exportValue`, else its `value`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const dataGridFilterFns: {
|
|
15
|
+
kitText: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
16
|
+
kitNumber: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
17
|
+
kitSet: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
18
|
+
kitDateRange: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
19
|
+
kitQuick: import("@tanstack/table-core").CreatedFilterFn<any, any>;
|
|
20
|
+
};
|
|
21
|
+
/** A registered kit filter function name. */
|
|
22
|
+
export type DataGridFilterFnName = keyof typeof dataGridFilterFns;
|
|
23
|
+
//# sourceMappingURL=filter-fns.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DataGridColumnFilter } from '../types';
|
|
2
|
+
import type { DataGridFilterPanelProps } from './filter-panels';
|
|
3
|
+
export declare function DateRangeFilterPanel({ columnLabel, value, dataMode, onApply, config, }: DataGridFilterPanelProps & {
|
|
4
|
+
config: Extract<DataGridColumnFilter, {
|
|
5
|
+
kind: 'dateRange';
|
|
6
|
+
}>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=date-range-panel.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DataGridColumnFilter, DataGridColumnFilterModel, DataGridOption } from '../types';
|
|
2
|
+
/** What every panel gets from the trigger. */
|
|
3
|
+
export interface DataGridFilterPanelProps {
|
|
4
|
+
columnId: string;
|
|
5
|
+
columnLabel: string;
|
|
6
|
+
value: DataGridColumnFilterModel | undefined;
|
|
7
|
+
options: readonly DataGridOption[];
|
|
8
|
+
dataMode: 'client' | 'server';
|
|
9
|
+
/** Commit (`null` clears) and close. */
|
|
10
|
+
onApply: (model: DataGridColumnFilterModel | null) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function TextFilterPanel({ columnLabel, value, onApply, config, }: DataGridFilterPanelProps & {
|
|
13
|
+
config: Extract<DataGridColumnFilter, {
|
|
14
|
+
kind: 'text';
|
|
15
|
+
}>;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function NumberFilterPanel({ columnLabel, value, onApply, config, }: DataGridFilterPanelProps & {
|
|
18
|
+
config: Extract<DataGridColumnFilter, {
|
|
19
|
+
kind: 'number';
|
|
20
|
+
}>;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function SelectFilterPanel({ columnLabel, value, options, onApply, }: DataGridFilterPanelProps & {
|
|
23
|
+
config: Extract<DataGridColumnFilter, {
|
|
24
|
+
kind: 'select';
|
|
25
|
+
}>;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=filter-panels.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DataGridFilterTriggerProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* The header's filter control for one column. `value` is the column's
|
|
4
|
+
* current model; `onChange(null)` clears it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function DataGridFilterTrigger({ columnId, columnLabel, config, value, onChange, options, dataMode, }: DataGridFilterTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=filter-trigger.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DataGridRenderModel } from './body';
|
|
2
|
+
import type { DataGridFooterContext } from './types';
|
|
3
|
+
export interface DataGridFooterProps<TData extends object> {
|
|
4
|
+
model: DataGridRenderModel<TData>;
|
|
5
|
+
footRef: (node: HTMLTableSectionElement | null) => void;
|
|
6
|
+
getFooterContext: () => DataGridFooterContext<TData>;
|
|
7
|
+
ariaRowIndex: number | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function DataGridFooter<TData extends object>({ model, footRef, getFooterContext, ariaRowIndex, }: DataGridFooterProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TableToolbarSeam } from '../_shared/table-toolbar/seam';
|
|
2
|
+
import type { DataGridContextValue, DataGridHandle, DataGridMountSignal, DataGridRegistry } from './types';
|
|
3
|
+
/** The grid's handle and seam, for the `toolbar` slot. `null` outside a grid. */
|
|
4
|
+
export declare const DataGridContext: import("react").Context<DataGridContextValue | null>;
|
|
5
|
+
/** Reads `DataGridContext`; `null` outside a grid. */
|
|
6
|
+
export declare function useDataGridContext(): DataGridContextValue | null;
|
|
7
|
+
/** Provided by DataGridTabs; a DataGrid inside registers its handle. */
|
|
8
|
+
export declare const DataGridRegistryContext: import("react").Context<DataGridRegistry | null>;
|
|
9
|
+
/** Reads `DataGridRegistryContext`; `null` when no DataGridTabs is above. */
|
|
10
|
+
export declare function useDataGridRegistry(): DataGridRegistry | null;
|
|
11
|
+
/** Called by DataGrid when its engine exists; returns an unregister. */
|
|
12
|
+
export declare function registerDataGridToolbarSeam(handle: DataGridHandle, seam: TableToolbarSeam): () => void;
|
|
13
|
+
/** The toolbar seam for a handle a host got from a ref, or `null` when that
|
|
14
|
+
* grid is not mounted. Used by `DataGridToolbarProvider`. */
|
|
15
|
+
export declare function getDataGridToolbarSeam(handle: DataGridHandle | null | undefined): TableToolbarSeam | null;
|
|
16
|
+
/** Module-level: every DataGrid calls `notify()` after mount and unmount. */
|
|
17
|
+
export declare const dataGridMountSignal: DataGridMountSignal;
|
|
18
|
+
//# sourceMappingURL=grid-context.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type DataGridColumnModel } from './columns';
|
|
2
|
+
import { type DataGridSelectionAnchor, type DataGridSelectionRuntime } from './selection';
|
|
3
|
+
import { type DataGridStoreImpl } from './state';
|
|
4
|
+
import type { DataGridColumnPinning, DataGridFeatureInfo, DataGridHandle, DataGridRendererBindings, DataGridSlices } from './types';
|
|
5
|
+
/** The column slices `resetColumnState` restores. */
|
|
6
|
+
export type DataGridColumnDefaults = Pick<DataGridSlices, 'columnVisibility' | 'columnPinning' | 'columnSizing' | 'columnOrder'>;
|
|
7
|
+
/** Live facts the handle reads at call time (the engine refreshes them on
|
|
8
|
+
* every render). Plain values and closures over ids only. */
|
|
9
|
+
export interface DataGridHandleRuntime<TData extends object> {
|
|
10
|
+
store: DataGridStoreImpl;
|
|
11
|
+
model: DataGridColumnModel<TData>;
|
|
12
|
+
selection: DataGridSelectionRuntime;
|
|
13
|
+
anchor: DataGridSelectionAnchor;
|
|
14
|
+
features: DataGridFeatureInfo;
|
|
15
|
+
privacyMode: boolean;
|
|
16
|
+
/** `pagination` is on. */
|
|
17
|
+
paginated: boolean;
|
|
18
|
+
/** `multiSort ? maxSortLevels : 1`. */
|
|
19
|
+
maxSortLevels: number;
|
|
20
|
+
expandMode: 'single' | 'multiple';
|
|
21
|
+
/** Fixed table layout (widths are px). */
|
|
22
|
+
fixedLayout: boolean;
|
|
23
|
+
/** Effective visibility of every data column. */
|
|
24
|
+
getEffectiveVisibility: () => Record<string, boolean>;
|
|
25
|
+
getPageCount: () => number;
|
|
26
|
+
getRowCount: () => number;
|
|
27
|
+
getRowIds: () => string[];
|
|
28
|
+
/** `null` when the row is unknown (client) or not on the page (server). */
|
|
29
|
+
canExpand: (rowId: string) => boolean | null;
|
|
30
|
+
/** Ancestors of a row, root first (empty for top-level rows). */
|
|
31
|
+
getAncestorIds: (rowId: string) => string[];
|
|
32
|
+
isKnownRowId: (rowId: string) => boolean;
|
|
33
|
+
getColumnDefaults: () => DataGridColumnDefaults;
|
|
34
|
+
/** Removes the saved column state for `gridId`, if any. */
|
|
35
|
+
clearSavedColumnState: () => void;
|
|
36
|
+
getBindings: () => DataGridRendererBindings | null;
|
|
37
|
+
}
|
|
38
|
+
/** One data column in display order with its pin side. */
|
|
39
|
+
export interface DataGridDisplayColumn {
|
|
40
|
+
id: string;
|
|
41
|
+
pinned: 'start' | 'end' | false;
|
|
42
|
+
}
|
|
43
|
+
/** Data columns in display order: start-pinned (pinning order), then the
|
|
44
|
+
* rest by `columnOrder`, then end-pinned. Hidden columns included. */
|
|
45
|
+
export declare function getDataGridDisplayColumns<TData extends object>(model: DataGridColumnModel<TData>, order: readonly string[], pinning: DataGridColumnPinning): DataGridDisplayColumn[];
|
|
46
|
+
/**
|
|
47
|
+
* `moveColumn` maths (types.ts): `toIndex` is the final index; the column
|
|
48
|
+
* takes the pin side of the column at `toIndex` before the move. Returns
|
|
49
|
+
* the new order and pinning, or `null` when the move is refused.
|
|
50
|
+
*/
|
|
51
|
+
export declare function planDataGridColumnMove<TData extends object>(model: DataGridColumnModel<TData>, list: readonly DataGridDisplayColumn[], id: string, toIndex: number, privacyMode: boolean): {
|
|
52
|
+
order: string[];
|
|
53
|
+
pinning: DataGridColumnPinning;
|
|
54
|
+
} | null;
|
|
55
|
+
/**
|
|
56
|
+
* Builds a handle over the live runtime. `defaultSource` is `'api'` for the
|
|
57
|
+
* public handle and `'user'` for the toolbar seam's.
|
|
58
|
+
*/
|
|
59
|
+
export declare function createDataGridHandle<TData extends object>(getRuntime: () => DataGridHandleRuntime<TData>, defaultSource: 'api' | 'user'): DataGridHandle;
|
|
60
|
+
//# sourceMappingURL=handle.d.ts.map
|