@alfadocs/ui-kit 1.114.0 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
- package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-gEXqU5i5.js} +8 -8
- package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
- package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
- package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
- package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
- package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
- package/dist/_chunks/data-table-B47iw2CO.js +1694 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-B-DUtfw3.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
- package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
- package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
- package/dist/_chunks/grid-context-jn9y8tNE.js +46 -0
- package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
- package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/icon-button-group-Ca2VkXy5.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-BFfLg7c-.js} +7 -7
- package/dist/_chunks/link-cell-renderer-D-Io828l.js +800 -0
- package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CBHNg8x-.js} +5 -5
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-DexbfrFo.js} +3 -3
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-CtcTW1PN.js +869 -0
- package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
- package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
- package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
- package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-DgUjtqpX.js} +386 -410
- package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
- package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +3359 -1569
- package/dist/agent-i18n/en.json +100 -2
- package/dist/components/_shared/accessible-target.d.ts +12 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +101 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +110 -0
- package/dist/components/data-grid/editors.d.ts +14 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +11 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +68 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1396 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +7 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +342 -0
- package/dist/i18n/locales/ar.js +344 -2
- package/dist/i18n/locales/de.d.ts +342 -0
- package/dist/i18n/locales/de.js +344 -2
- package/dist/i18n/locales/el.d.ts +342 -0
- package/dist/i18n/locales/el.js +344 -2
- package/dist/i18n/locales/en.d.ts +342 -0
- package/dist/i18n/locales/en.js +345 -2
- package/dist/i18n/locales/es.d.ts +342 -0
- package/dist/i18n/locales/es.js +344 -2
- package/dist/i18n/locales/fr.d.ts +342 -0
- package/dist/i18n/locales/fr.js +344 -2
- package/dist/i18n/locales/hi.d.ts +342 -0
- package/dist/i18n/locales/hi.js +344 -2
- package/dist/i18n/locales/it.d.ts +342 -0
- package/dist/i18n/locales/it.js +344 -2
- package/dist/i18n/locales/ja.d.ts +342 -0
- package/dist/i18n/locales/ja.js +344 -2
- package/dist/i18n/locales/nl.d.ts +342 -0
- package/dist/i18n/locales/nl.js +344 -2
- package/dist/i18n/locales/pl.d.ts +342 -0
- package/dist/i18n/locales/pl.js +344 -2
- package/dist/i18n/locales/pt.d.ts +342 -0
- package/dist/i18n/locales/pt.js +344 -2
- package/dist/i18n/locales/ro.d.ts +342 -0
- package/dist/i18n/locales/ro.js +344 -2
- package/dist/i18n/locales/ru.d.ts +342 -0
- package/dist/i18n/locales/ru.js +344 -2
- package/dist/i18n/locales/sq.d.ts +342 -0
- package/dist/i18n/locales/sq.js +344 -2
- package/dist/i18n/locales/sv.d.ts +342 -0
- package/dist/i18n/locales/sv.js +344 -2
- package/dist/i18n/locales/tr.d.ts +342 -0
- package/dist/i18n/locales/tr.js +344 -2
- package/dist/i18n/locales/zh.d.ts +342 -0
- package/dist/i18n/locales/zh.js +344 -2
- package/dist/index.js +1305 -1241
- package/dist/locales/ar.json +344 -2
- package/dist/locales/de.json +344 -2
- package/dist/locales/el.json +344 -2
- package/dist/locales/en.json +344 -2
- package/dist/locales/es.json +344 -2
- package/dist/locales/fr.json +344 -2
- package/dist/locales/hi.json +344 -2
- package/dist/locales/it.json +344 -2
- package/dist/locales/ja.json +344 -2
- package/dist/locales/nl.json +344 -2
- package/dist/locales/pl.json +344 -2
- package/dist/locales/pt.json +344 -2
- package/dist/locales/ro.json +344 -2
- package/dist/locales/ru.json +344 -2
- package/dist/locales/sq.json +344 -2
- package/dist/locales/sv.json +344 -2
- package/dist/locales/tr.json +344 -2
- package/dist/locales/zh.json +344 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +21 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -0,0 +1,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
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Ref } from 'react';
|
|
2
|
+
import { type DataGridRenderModel } from './body';
|
|
3
|
+
export interface DataGridHeaderProps<TData extends object> {
|
|
4
|
+
model: DataGridRenderModel<TData>;
|
|
5
|
+
headRef: Ref<HTMLTableSectionElement>;
|
|
6
|
+
/** Called with each pinned leaf header cell (measured offsets). */
|
|
7
|
+
measurePinned: (columnId: string, node: HTMLElement | null) => void;
|
|
8
|
+
/** `aria-rowindex` of header row `index` (0-based), when set. */
|
|
9
|
+
ariaRowIndexOf: (index: number) => number | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function DataGridHeader<TData extends object>({ model, headRef, measurePinned, ariaRowIndexOf, }: DataGridHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { DataGrid } from './data-grid';
|
|
2
2
|
export type { DataGridColumn, DataGridProps } from './data-grid';
|
|
3
3
|
export { dataGridAgent } from './data-grid.agent';
|
|
4
|
+
export { DataGridToolbar, DataGridToolbarProvider } from './toolbar';
|
|
5
|
+
export { DATA_GRID_DEFAULT_PAGE_SIZE, DATA_GRID_MAX_SORT_LEVELS, DATA_GRID_PAGE_SIZE_OPTIONS, DATA_GRID_RESPONSIVE_BREAKPOINTS, DATA_GRID_VIRTUALIZE_ABOVE, } from './types';
|
|
6
|
+
export type { DataGridBulkActionHandler, DataGridCellContext, DataGridCellValue, DataGridChange, DataGridChangeEvent, DataGridChangeSource, DataGridColumnEdit, DataGridColumnFilter, DataGridColumnFilterModel, DataGridColumnGroup, DataGridColumnInfo, DataGridColumnPinning, DataGridColumnPrivacy, DataGridColumnStateEnvelopeV1, DataGridCustomEdit, DataGridCustomExportHandler, DataGridDateRangeFilterModel, DataGridEditContext, DataGridExportFormat, DataGridFeatureInfo, DataGridFilterModel, DataGridFooterContext, DataGridHandle, DataGridNumberEdit, DataGridNumberFilterModel, DataGridNumberFilterOperator, DataGridOption, DataGridPagination, DataGridPaginationConfig, DataGridQuery, DataGridRowSelectability, DataGridSelectEdit, DataGridSelectFilterModel, DataGridSortEntry, DataGridTextEdit, DataGridTextFilterModel, DataGridTextFilterOperator, DataGridToolbarBulkActionProps, DataGridToolbarColumnToggleProps, DataGridToolbarExportMenuItemProps, DataGridToolbarExportMenuProps, DataGridToolbarFacetFilterProps, DataGridToolbarFacetOption, DataGridToolbarFilterChipsProps, DataGridToolbarPrintProps, DataGridToolbarProviderProps, DataGridToolbarQuickSearchProps, DataGridToolbarRefreshProps, DataGridToolbarRootProps, DataGridWriteOptions, } from './types';
|
|
4
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { D as r, d as
|
|
1
|
+
import { D as _, a as D, b as r, c as E, d as I, e as T, f as G } from "../../_chunks/data-grid-ByhrYGVw.js";
|
|
2
|
+
import { D as s, a as R } from "../../_chunks/toolbar-DbUQBrq4.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
_ as DATA_GRID_DEFAULT_PAGE_SIZE,
|
|
5
|
+
D as DATA_GRID_MAX_SORT_LEVELS,
|
|
6
|
+
r as DATA_GRID_PAGE_SIZE_OPTIONS,
|
|
7
|
+
E as DATA_GRID_RESPONSIVE_BREAKPOINTS,
|
|
8
|
+
I as DATA_GRID_VIRTUALIZE_ABOVE,
|
|
9
|
+
T as DataGrid,
|
|
10
|
+
s as DataGridToolbar,
|
|
11
|
+
R as DataGridToolbarProvider,
|
|
12
|
+
G as dataGridAgent
|
|
5
13
|
};
|
|
6
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type KeyboardEvent as ReactKeyboardEvent, type RefObject } from 'react';
|
|
2
|
+
/** `data-dg-control` values on grid-owned row controls. */
|
|
3
|
+
export type DataGridRowControl = 'select' | 'expand';
|
|
4
|
+
/** Attribute that marks a grid-owned row control (not row data). */
|
|
5
|
+
export declare const DG_CONTROL_ATTR = "data-dg-control";
|
|
6
|
+
/** A target that owns its own keys: inputs, editors, comboboxes. */
|
|
7
|
+
export declare function isEditableTarget(target: EventTarget | null): boolean;
|
|
8
|
+
/** The grid-owned row control the event came from, or `null`. */
|
|
9
|
+
export declare function rowControlOf(target: EventTarget | null): DataGridRowControl | null;
|
|
10
|
+
export interface ShiftCapture {
|
|
11
|
+
onPointerDown: (event: {
|
|
12
|
+
shiftKey: boolean;
|
|
13
|
+
}) => void;
|
|
14
|
+
onKeyDown: (event: {
|
|
15
|
+
shiftKey: boolean;
|
|
16
|
+
key: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
/** The Shift state of the last activation; resets after reading. */
|
|
19
|
+
take: (fallback?: boolean) => boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Records Shift on pointerdown and keydown for a control whose change
|
|
22
|
+
* callback carries no event (Radix checkbox, keyboard-activated click). */
|
|
23
|
+
export declare function useShiftCapture(): ShiftCapture;
|
|
24
|
+
/**
|
|
25
|
+
* The new width for a key on the separator, or `null` when the key is not
|
|
26
|
+
* one of the separator's. ArrowRight and ArrowLeft move by
|
|
27
|
+
* `DATA_GRID_RESIZE_STEP_PX` (Shift: four times that); in RTL they swap,
|
|
28
|
+
* so the key toward the inline end always widens. Home and End jump to the
|
|
29
|
+
* bounds.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resizeWidthForKey(key: string, shiftKey: boolean, direction: 'ltr' | 'rtl', current: number, min: number, max: number): number | null;
|
|
32
|
+
export interface RowNavigation {
|
|
33
|
+
/** Body item indexes that hold this control, in display order. */
|
|
34
|
+
indexesWith: (control: DataGridRowControl) => number[];
|
|
35
|
+
/** Row id of a body item. */
|
|
36
|
+
rowIdAt: (index: number) => string | undefined;
|
|
37
|
+
/** Item index of a row id. */
|
|
38
|
+
indexOf: (rowId: string) => number | undefined;
|
|
39
|
+
/** Scrolls a virtualised item in and keeps it mounted. */
|
|
40
|
+
reveal: (index: number) => void;
|
|
41
|
+
}
|
|
42
|
+
/** The body's own data rows, in DOM order (nested grids excluded). */
|
|
43
|
+
export declare function ownRows(body: Element): HTMLElement[];
|
|
44
|
+
/** The body's own data row with this id, or `null`. */
|
|
45
|
+
export declare function findOwnRow(body: Element, rowId: string): HTMLElement | null;
|
|
46
|
+
/** The body's own data row that holds `target`, or `null` when `target`
|
|
47
|
+
* sits in a nested grid, a detail panel or outside the body. */
|
|
48
|
+
export declare function ownRowOf(body: Element, target: EventTarget | null): HTMLElement | null;
|
|
49
|
+
/** Focuses `control` on item `index`, scrolling it in first when needed. */
|
|
50
|
+
export declare function focusRowControl(body: HTMLElement, navigation: RowNavigation, index: number, control: DataGridRowControl): void;
|
|
51
|
+
/**
|
|
52
|
+
* `<tbody>` keydown: Arrow keys, Home and End between row checkboxes or
|
|
53
|
+
* expanders. Returns without acting for any other target, so editors,
|
|
54
|
+
* comboboxes and host menus keep their keys.
|
|
55
|
+
*/
|
|
56
|
+
export declare function handleBodyKeyDown(event: ReactKeyboardEvent<HTMLElement>, navigation: RowNavigation): void;
|
|
57
|
+
/**
|
|
58
|
+
* Remembers which row and cell hold focus, tells the virtual window to keep
|
|
59
|
+
* that row mounted, and puts focus back when the row is remounted after a
|
|
60
|
+
* sort, a filter or a scroll. If the row is gone, focus goes to the scroll
|
|
61
|
+
* region, never to `body`. If the row stays but the focused control went
|
|
62
|
+
* (`readOnly` turned an editor into text, a box was removed), focus goes to
|
|
63
|
+
* the same cell, else the row's select box, else its row header. Call it
|
|
64
|
+
* from the component that renders the body, so it runs on every commit.
|
|
65
|
+
*/
|
|
66
|
+
export declare function useFocusMemory({ bodyRef, scrollRef, navigation, keepMounted, onFocusedColumnIndex, }: {
|
|
67
|
+
bodyRef: RefObject<HTMLElement | null>;
|
|
68
|
+
scrollRef: RefObject<HTMLElement | null>;
|
|
69
|
+
navigation: RowNavigation;
|
|
70
|
+
/** Virtual window: keep this item mounted (`null` releases). */
|
|
71
|
+
keepMounted: (index: number | null) => void;
|
|
72
|
+
/** Visible cell index holding focus, or `null` (responsive hiding keeps
|
|
73
|
+
* that column). */
|
|
74
|
+
onFocusedColumnIndex?: (cellIndex: number | null) => void;
|
|
75
|
+
}): void;
|
|
76
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DataGridPagerProps {
|
|
2
|
+
caption: string;
|
|
3
|
+
pageIndex: number;
|
|
4
|
+
pageSize: number;
|
|
5
|
+
/** `-1` when the server total is unknown. */
|
|
6
|
+
pageCount: number;
|
|
7
|
+
/** `-1` when unknown. */
|
|
8
|
+
rowCount: number;
|
|
9
|
+
/** Rows on this page (top level), for the range and unknown totals. */
|
|
10
|
+
pageRowCount: number;
|
|
11
|
+
pageSizeOptions: readonly number[];
|
|
12
|
+
showEndpoints: boolean;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
onPageChange: (pageIndex: number) => void;
|
|
15
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function DataGridPager({ caption, pageIndex, pageSize, pageCount, rowCount, pageRowCount, pageSizeOptions, showEndpoints, loading, onPageChange, onPageSizeChange, }: DataGridPagerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=pager.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { DataGridStoreImpl } from './state';
|
|
2
|
+
import type { DataGridColumn, DataGridColumnPinning, DataGridColumnStateEnvelopeV1 } from './types';
|
|
3
|
+
/** The four persisted column slices. */
|
|
4
|
+
export declare const DATA_GRID_PERSISTED_SLICES: readonly ["columnOrder", "columnSizing", "columnPinning", "columnVisibility"];
|
|
5
|
+
export type DataGridPersistedSlice = (typeof DATA_GRID_PERSISTED_SLICES)[number];
|
|
6
|
+
/** Debounce of the save after a column change. */
|
|
7
|
+
export declare const DATA_GRID_PERSIST_DEBOUNCE_MS = 250;
|
|
8
|
+
export declare function getDataGridColumnStateKey(gridId: string): string;
|
|
9
|
+
/** What the grid knows about its columns, for validation. */
|
|
10
|
+
export interface DataGridPersistenceColumns<TData> {
|
|
11
|
+
kitColumns: ReadonlyMap<string, DataGridColumn<TData>>;
|
|
12
|
+
groupOf: ReadonlyMap<string, string>;
|
|
13
|
+
defaultRowHeaderId: string | null;
|
|
14
|
+
privacyMode: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Validated saved state, in kit slice shapes. */
|
|
17
|
+
export interface DataGridLoadedColumnState {
|
|
18
|
+
columnOrder?: string[];
|
|
19
|
+
columnSizing?: Record<string, number>;
|
|
20
|
+
columnPinning?: DataGridColumnPinning;
|
|
21
|
+
columnVisibility?: Record<string, boolean>;
|
|
22
|
+
}
|
|
23
|
+
/** Drops pins on unknown or non-pinnable columns, pins that split a
|
|
24
|
+
* group, and duplicates (`end` loses the overlap). */
|
|
25
|
+
export declare function sanitiseDataGridPinning<TData>(pinning: {
|
|
26
|
+
start: readonly string[];
|
|
27
|
+
end: readonly string[];
|
|
28
|
+
}, ctx: DataGridPersistenceColumns<TData>): DataGridColumnPinning;
|
|
29
|
+
/**
|
|
30
|
+
* Validates a parsed envelope. Non-object or `v !== 1`: `null` (defaults
|
|
31
|
+
* used, overwritten on the next user change). Each field alone otherwise.
|
|
32
|
+
*/
|
|
33
|
+
export declare function validateDataGridColumnState<TData>(raw: unknown, ctx: DataGridPersistenceColumns<TData>): DataGridLoadedColumnState | null;
|
|
34
|
+
/** Reads and validates the saved state; `null` when absent or unusable. */
|
|
35
|
+
export declare function loadDataGridColumnState<TData>(gridId: string, ctx: DataGridPersistenceColumns<TData>): DataGridLoadedColumnState | null;
|
|
36
|
+
/** Builds the envelope from the store's uncontrolled column slices. */
|
|
37
|
+
export declare function buildDataGridColumnStateEnvelope(store: Pick<DataGridStoreImpl, 'get' | 'isControlled'>): DataGridColumnStateEnvelopeV1;
|
|
38
|
+
export declare function saveDataGridColumnState(gridId: string, envelope: DataGridColumnStateEnvelopeV1): void;
|
|
39
|
+
export declare function clearDataGridColumnState(gridId: string): void;
|
|
40
|
+
/** DEV warning when persistence and a controlled column slice overlap. */
|
|
41
|
+
export declare function warnControlledPersistenceOverlap(gridId: string, store: Pick<DataGridStoreImpl, 'isControlled'>): void;
|
|
42
|
+
export interface DataGridColumnStatePersister {
|
|
43
|
+
/** Writes any pending save now. */
|
|
44
|
+
flush(): void;
|
|
45
|
+
/** Cancels the pending save without writing (after a reset). */
|
|
46
|
+
cancel(): void;
|
|
47
|
+
dispose(): void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Subscribes to the store and saves on `user` and `api` column changes.
|
|
51
|
+
* `isDefault()` lets a reset to declared defaults remove the key instead of
|
|
52
|
+
* writing the defaults back.
|
|
53
|
+
*/
|
|
54
|
+
export declare function createDataGridColumnStatePersister(options: {
|
|
55
|
+
gridId: string;
|
|
56
|
+
store: DataGridStoreImpl;
|
|
57
|
+
isDefault?: () => boolean;
|
|
58
|
+
debounceMs?: number;
|
|
59
|
+
}): DataGridColumnStatePersister;
|
|
60
|
+
//# sourceMappingURL=persistence.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
export interface DataGridPrint {
|
|
3
|
+
/** Every row is rendered for print. */
|
|
4
|
+
printing: boolean;
|
|
5
|
+
/** Renders every row, prints, then restores. */
|
|
6
|
+
print: () => Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
/** Print state for one grid. `scrollRef` is the grid's scroll region. */
|
|
9
|
+
export declare function useDataGridPrint(scrollRef: RefObject<HTMLElement | null>): DataGridPrint;
|
|
10
|
+
//# sourceMappingURL=print.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DataGridColumn } from './types';
|
|
2
|
+
export interface DataGridVisibilityInput<TData> {
|
|
3
|
+
/** Data columns (no utility columns), any order. */
|
|
4
|
+
columns: readonly DataGridColumn<TData>[];
|
|
5
|
+
/** Explicit visibility (user, host, storage). */
|
|
6
|
+
explicit: Readonly<Record<string, boolean>>;
|
|
7
|
+
privacyMode: boolean;
|
|
8
|
+
/** `responsiveColumns`; default on when any column has a tier. */
|
|
9
|
+
responsive: boolean;
|
|
10
|
+
/** Grid inline size in px; `null` before layout (nothing is hidden by
|
|
11
|
+
* width until the grid is measured). */
|
|
12
|
+
containerInlineSize: number | null;
|
|
13
|
+
/** The row-header column by default (cannot be hidden unless `hideable`). */
|
|
14
|
+
defaultRowHeaderId: string | null;
|
|
15
|
+
/** A column holding focus is never hidden by width. */
|
|
16
|
+
focusedColumnId?: string | null;
|
|
17
|
+
}
|
|
18
|
+
/** Is this tier hidden at this width? */
|
|
19
|
+
export declare function isTierHidden(tier: 1 | 2 | 3 | undefined, containerInlineSize: number | null): boolean;
|
|
20
|
+
/** `responsiveColumns` default: on when any column declares a tier. */
|
|
21
|
+
export declare function defaultResponsiveColumns<TData>(columns: readonly DataGridColumn<TData>[]): boolean;
|
|
22
|
+
/** Ids hidden by width alone (for announcements and tests). */
|
|
23
|
+
export declare function computeResponsiveHidden<TData>(input: Pick<DataGridVisibilityInput<TData>, 'columns' | 'explicit' | 'responsive' | 'containerInlineSize' | 'focusedColumnId'>): string[];
|
|
24
|
+
/** One column's effective visibility. */
|
|
25
|
+
export declare function isColumnEffectivelyVisible<TData>(column: DataGridColumn<TData>, input: DataGridVisibilityInput<TData>): boolean;
|
|
26
|
+
/** Effective map for every data column (v9 `columnVisibility`). */
|
|
27
|
+
export declare function computeEffectiveVisibility<TData>(input: DataGridVisibilityInput<TData>): Record<string, boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* v9's `onColumnVisibilityChange` updater runs over the effective map; only
|
|
30
|
+
* the keys it changed become explicit (design § 9).
|
|
31
|
+
*/
|
|
32
|
+
export declare function mergeVisibilityChange(explicit: Readonly<Record<string, boolean>>, effectiveBefore: Readonly<Record<string, boolean>>, effectiveAfter: Readonly<Record<string, boolean>>, isDataColumn: (id: string) => boolean): Record<string, boolean>;
|
|
33
|
+
/** `markColumnsUserTouched`: copies the current effective values into the
|
|
34
|
+
* explicit map (DataTable parity). */
|
|
35
|
+
export declare function markUserTouched(explicit: Readonly<Record<string, boolean>>, effective: Readonly<Record<string, boolean>>, ids: readonly string[]): Record<string, boolean>;
|
|
36
|
+
//# sourceMappingURL=responsive.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { DataGridStoreImpl } from './state';
|
|
2
|
+
import type { DataGridChangeSource, DataGridResolvedSelectability, DataGridRowSelectability, DataGridSelectionApi } from './types';
|
|
3
|
+
/** Normalises a host `getRowSelectability` result. */
|
|
4
|
+
export declare function resolveDataGridSelectability(value: DataGridRowSelectability | undefined): DataGridResolvedSelectability;
|
|
5
|
+
/**
|
|
6
|
+
* The header box's scope. Default `'page'` when paginated or in server
|
|
7
|
+
* mode, else `'all'`; `'none'` outside multiple mode. `'all'` in server
|
|
8
|
+
* mode acts as `'page'` (DEV warning): v9's select-all sees loaded rows
|
|
9
|
+
* only (`rowSelectionFeature.utils.js:62-79`).
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveDataGridSelectAllScope(input: {
|
|
12
|
+
selectionMode: 'none' | 'single' | 'multiple';
|
|
13
|
+
selectAllScope: 'all' | 'page' | 'none' | undefined;
|
|
14
|
+
paginated: boolean;
|
|
15
|
+
dataMode: 'client' | 'server';
|
|
16
|
+
warn?: boolean;
|
|
17
|
+
}): 'all' | 'page' | 'none';
|
|
18
|
+
/** What selection reads from the engine. */
|
|
19
|
+
export interface DataGridSelectionRuntime {
|
|
20
|
+
store: DataGridStoreImpl;
|
|
21
|
+
mode: 'none' | 'single' | 'multiple';
|
|
22
|
+
scope: 'all' | 'page' | 'none';
|
|
23
|
+
rangeSelection: boolean;
|
|
24
|
+
dataMode: 'client' | 'server';
|
|
25
|
+
getSelectability: (rowId: string) => DataGridResolvedSelectability;
|
|
26
|
+
/** v9 `getRowsInDisplayOrder()` ids (filtered and sorted, all pages,
|
|
27
|
+
* expanded sub-rows included). */
|
|
28
|
+
getDisplayOrderIds: () => readonly string[];
|
|
29
|
+
/** Top-level row ids the header box acts on (the page, or every
|
|
30
|
+
* filtered row). */
|
|
31
|
+
getScopeRowIds: () => readonly string[];
|
|
32
|
+
/** Client: in the core row model at any depth. Server: always true. */
|
|
33
|
+
isKnownRowId: (rowId: string) => boolean;
|
|
34
|
+
}
|
|
35
|
+
/** The kit's range anchor, shared by the user and API paths. */
|
|
36
|
+
export interface DataGridSelectionAnchor {
|
|
37
|
+
current: string | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* `setSelection`: locked ids are kept whatever is passed (they are never
|
|
41
|
+
* stored); `none` ids are dropped; unknown ids are dropped in client mode
|
|
42
|
+
* only. Single mode keeps the last selectable id.
|
|
43
|
+
*/
|
|
44
|
+
export declare function normaliseDataGridSelection(runtime: DataGridSelectionRuntime, ids: readonly string[]): string[];
|
|
45
|
+
/** Selectable ids in the inclusive display-order range (either direction). */
|
|
46
|
+
export declare function getDataGridRangeIds(runtime: DataGridSelectionRuntime, fromId: string, toId: string): string[] | null;
|
|
47
|
+
export declare function setDataGridSelection(runtime: DataGridSelectionRuntime, ids: readonly string[], source: DataGridChangeSource): void;
|
|
48
|
+
/** Selects (or deselects) the range; `false` when an end is not shown. */
|
|
49
|
+
export declare function selectDataGridRange(runtime: DataGridSelectionRuntime, fromId: string, toId: string, checked: boolean, source: DataGridChangeSource): boolean;
|
|
50
|
+
export declare function toggleDataGridRow(runtime: DataGridSelectionRuntime, anchor: DataGridSelectionAnchor, rowId: string, checked: boolean, modifiers: {
|
|
51
|
+
shiftKey: boolean;
|
|
52
|
+
}, source: DataGridChangeSource): void;
|
|
53
|
+
/** Header box over selectable rows in scope only. */
|
|
54
|
+
export declare function getDataGridHeaderState(runtime: DataGridSelectionRuntime): boolean | 'indeterminate';
|
|
55
|
+
/**
|
|
56
|
+
* The header box is disabled when no row in scope can be selected (every
|
|
57
|
+
* row `locked` or `none`, or no rows). `null` while some row is
|
|
58
|
+
* selectable. Otherwise the reason the rows share (already resolved and
|
|
59
|
+
* privacy-masked by the engine), or `null` inside the object when they
|
|
60
|
+
* differ or give none, so the grid's default copy applies.
|
|
61
|
+
*/
|
|
62
|
+
export declare function getDataGridSelectAllBlock(runtime: DataGridSelectionRuntime): {
|
|
63
|
+
reason: string | null;
|
|
64
|
+
} | null;
|
|
65
|
+
export declare function toggleAllDataGridRows(runtime: DataGridSelectionRuntime, anchor: DataGridSelectionAnchor, checked: boolean, source: DataGridChangeSource): void;
|
|
66
|
+
/** The renderer's selection API (types.ts `DataGridSelectionApi`). */
|
|
67
|
+
export declare function createDataGridSelectionApi(runtime: DataGridSelectionRuntime, anchor: DataGridSelectionAnchor): DataGridSelectionApi;
|
|
68
|
+
//# sourceMappingURL=selection.d.ts.map
|