@alfadocs/ui-kit 1.114.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-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-BZ36ULQk.js} +4 -4
- package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
- 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/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +519 -531
- 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/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-C68V9rdH.js} +5 -5
- 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/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-C1UA5jpS.js} +6 -6
- 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/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-DkoxiDCh.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- 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-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-CC-dbKE8.js} +6 -5
- package/dist/_chunks/{heatmap-CNxCDl0D.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-DZJRmDI6.js → kit-extensions-CzG0RmhQ.js} +4 -4
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.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-CcEHJgDd.js} +2 -2
- package/dist/_chunks/match-BATShpSX.js +336 -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-DXMTObBv.js → notes-panel-BVYG_MJE.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-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-DlT-vpSe.js} +2 -2
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-Dy9-CzON.js} +3 -3
- 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/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-qZpw3zj8.js} +7 -7
- 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/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
- package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-6p3Hm4oH.js} +9 -9
- 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/{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/{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/{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-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.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-BK_Gw1GG.js → use-appointment-details-read-BMAiQYo6.js} +4 -4
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DNSe65yd.js} +2 -2
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +717 -6
- package/dist/agent-i18n/en.json +50 -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/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-timeline/index.js +1 -1
- package/dist/components/booking/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/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/due-date-calculator/index.js +2 -2
- package/dist/components/face-scheme/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/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/notes-panel/index.js +1 -1
- package/dist/components/patient-details/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/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/pregnancy-dating/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/sidebar/index.js +1 -1
- package/dist/components/slot-grid/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/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/core.css +1 -1
- package/dist/host-compat.css +33 -2
- package/dist/i18n/locales/ar.d.ts +94 -0
- package/dist/i18n/locales/ar.js +96 -2
- package/dist/i18n/locales/de.d.ts +94 -0
- package/dist/i18n/locales/de.js +96 -2
- package/dist/i18n/locales/el.d.ts +94 -0
- package/dist/i18n/locales/el.js +96 -2
- package/dist/i18n/locales/en.d.ts +94 -0
- package/dist/i18n/locales/en.js +97 -2
- package/dist/i18n/locales/es.d.ts +94 -0
- package/dist/i18n/locales/es.js +96 -2
- package/dist/i18n/locales/fr.d.ts +94 -0
- package/dist/i18n/locales/fr.js +96 -2
- package/dist/i18n/locales/hi.d.ts +94 -0
- package/dist/i18n/locales/hi.js +96 -2
- package/dist/i18n/locales/it.d.ts +94 -0
- package/dist/i18n/locales/it.js +96 -2
- package/dist/i18n/locales/ja.d.ts +94 -0
- package/dist/i18n/locales/ja.js +96 -2
- package/dist/i18n/locales/nl.d.ts +94 -0
- package/dist/i18n/locales/nl.js +96 -2
- package/dist/i18n/locales/pl.d.ts +94 -0
- package/dist/i18n/locales/pl.js +96 -2
- package/dist/i18n/locales/pt.d.ts +94 -0
- package/dist/i18n/locales/pt.js +96 -2
- package/dist/i18n/locales/ro.d.ts +94 -0
- package/dist/i18n/locales/ro.js +96 -2
- package/dist/i18n/locales/ru.d.ts +94 -0
- package/dist/i18n/locales/ru.js +96 -2
- package/dist/i18n/locales/sq.d.ts +94 -0
- package/dist/i18n/locales/sq.js +96 -2
- package/dist/i18n/locales/sv.d.ts +94 -0
- package/dist/i18n/locales/sv.js +96 -2
- package/dist/i18n/locales/tr.d.ts +94 -0
- package/dist/i18n/locales/tr.js +96 -2
- package/dist/i18n/locales/zh.d.ts +94 -0
- package/dist/i18n/locales/zh.js +96 -2
- package/dist/index.js +1044 -1032
- package/dist/locales/ar.json +96 -2
- package/dist/locales/de.json +96 -2
- package/dist/locales/el.json +96 -2
- package/dist/locales/en.json +96 -2
- package/dist/locales/es.json +96 -2
- package/dist/locales/fr.json +96 -2
- package/dist/locales/hi.json +96 -2
- package/dist/locales/it.json +96 -2
- package/dist/locales/ja.json +96 -2
- package/dist/locales/nl.json +96 -2
- package/dist/locales/pl.json +96 -2
- package/dist/locales/pt.json +96 -2
- package/dist/locales/ro.json +96 -2
- package/dist/locales/ru.json +96 -2
- package/dist/locales/sq.json +96 -2
- package/dist/locales/sv.json +96 -2
- package/dist/locales/tr.json +96 -2
- package/dist/locales/zh.json +96 -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/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/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/privacy-mask-Dc3kdkCR.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { D as _, a as D, b as E, c as I, d as T, e as G, f as r, g as s, h as R } from "../../_chunks/toolbar-Bc3pjfG5.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
_ as DATA_GRID_DEFAULT_PAGE_SIZE,
|
|
4
|
+
D as DATA_GRID_MAX_SORT_LEVELS,
|
|
5
|
+
E as DATA_GRID_PAGE_SIZE_OPTIONS,
|
|
6
|
+
I as DATA_GRID_RESPONSIVE_BREAKPOINTS,
|
|
7
|
+
T as DATA_GRID_VIRTUALIZE_ABOVE,
|
|
8
|
+
G as DataGrid,
|
|
9
|
+
r as DataGridToolbar,
|
|
10
|
+
s as DataGridToolbarProvider,
|
|
11
|
+
R as dataGridAgent
|
|
5
12
|
};
|
|
6
13
|
//# 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,58 @@
|
|
|
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
|
+
export declare function toggleAllDataGridRows(runtime: DataGridSelectionRuntime, anchor: DataGridSelectionAnchor, checked: boolean, source: DataGridChangeSource): void;
|
|
56
|
+
/** The renderer's selection API (types.ts `DataGridSelectionApi`). */
|
|
57
|
+
export declare function createDataGridSelectionApi(runtime: DataGridSelectionRuntime, anchor: DataGridSelectionAnchor): DataGridSelectionApi;
|
|
58
|
+
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { ColumnFiltersState, ColumnOrderState, ColumnPinningState, ExpandedState, RowSelectionState, SortingState } from '@tanstack/react-table';
|
|
2
|
+
import type { DataGridChange, DataGridChangeSource, DataGridColumnPinning, DataGridFilterModel, DataGridPagination, DataGridProps, DataGridQuery, DataGridSliceName, DataGridSlices, DataGridSortEntry, DataGridStore } from './types';
|
|
3
|
+
/** JSON with sorted keys; `undefined` members dropped. */
|
|
4
|
+
export declare function stableStringify(value: unknown): string;
|
|
5
|
+
export declare function stableEqual(a: unknown, b: unknown): boolean;
|
|
6
|
+
export declare function toV9Sorting(entries: readonly DataGridSortEntry[], isEffective: (colId: string) => boolean): SortingState;
|
|
7
|
+
export declare function fromV9Sorting(sorting: SortingState): DataGridSortEntry[];
|
|
8
|
+
/** Column keys v9 evaluates. Host keys, masked columns' keys and empty
|
|
9
|
+
* values stay in the kit slice only. */
|
|
10
|
+
export declare function toV9ColumnFilters(filters: DataGridFilterModel, isEvaluated: (key: string) => boolean): ColumnFiltersState;
|
|
11
|
+
/** Folds v9's next `columnFilters` back into the kit model: keys v9 does
|
|
12
|
+
* not see are kept as they were. */
|
|
13
|
+
export declare function mergeV9ColumnFilters(filters: DataGridFilterModel, next: ColumnFiltersState, isEvaluated: (key: string) => boolean): DataGridFilterModel;
|
|
14
|
+
/** Drops keys whose value is `null` or `undefined` (AG's "no filter"). */
|
|
15
|
+
export declare function compactFilterModel(filters: DataGridFilterModel): DataGridFilterModel;
|
|
16
|
+
export declare function toV9RowSelection(ids: readonly string[]): RowSelectionState;
|
|
17
|
+
export declare function fromV9RowSelection(state: RowSelectionState): string[];
|
|
18
|
+
export declare function toV9Expanded(ids: readonly string[]): ExpandedState;
|
|
19
|
+
/** `true` (v9's "all") becomes every expandable id. */
|
|
20
|
+
export declare function fromV9Expanded(state: ExpandedState, allExpandableIds: () => readonly string[]): string[];
|
|
21
|
+
export declare function toV9Pinning(pinning: DataGridColumnPinning, utilityIds: readonly string[]): ColumnPinningState;
|
|
22
|
+
export declare function fromV9Pinning(pinning: ColumnPinningState, isUtility: (id: string) => boolean): DataGridColumnPinning;
|
|
23
|
+
export declare function fromV9Order(order: ColumnOrderState, isUtility: (id: string) => boolean): string[];
|
|
24
|
+
/** Largest valid page index for a page count (`-1` = unknown: no cap). */
|
|
25
|
+
export declare function clampPageIndex(pageIndex: number, pageCount: number): number;
|
|
26
|
+
export interface DataGridPagerState {
|
|
27
|
+
canPrevious: boolean;
|
|
28
|
+
canNext: boolean;
|
|
29
|
+
/** A known, finite last page exists (no last-page button otherwise). */
|
|
30
|
+
hasLastPage: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Pager buttons. With an unknown total (`pageCount: -1`), Next stays
|
|
34
|
+
* enabled while the page is full and is disabled on a short page, and
|
|
35
|
+
* there is no last-page button (types.ts `rowCount`). v9's own
|
|
36
|
+
* `getCanNextPage()` is always `true` for `-1`, so the kit decides here.
|
|
37
|
+
*/
|
|
38
|
+
export declare function computeDataGridPagerState(input: {
|
|
39
|
+
pageIndex: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
pageCount: number;
|
|
42
|
+
/** Top-level rows on the current page. */
|
|
43
|
+
pageRowCount: number;
|
|
44
|
+
}): DataGridPagerState;
|
|
45
|
+
/** The host callbacks the store calls, in kit shapes. */
|
|
46
|
+
export type DataGridStoreCallbacks = Pick<DataGridProps<unknown>, 'onSortingChange' | 'onFiltersChange' | 'onQuickFilterChange' | 'onPageChange' | 'onRowSelectionChange' | 'onExpandedChange' | 'onColumnVisibilityChange' | 'onColumnPinningChange' | 'onColumnSizingChange' | 'onColumnOrderChange' | 'onQueryChange'>;
|
|
47
|
+
/** Per-render facts the store reads at write time. */
|
|
48
|
+
export interface DataGridStoreContext {
|
|
49
|
+
callbacks: DataGridStoreCallbacks;
|
|
50
|
+
clearSelectionOnFilterChange: boolean;
|
|
51
|
+
/** Locked row ids present in `rows`: added to every reported selection. */
|
|
52
|
+
getLockedRowIds: () => readonly string[];
|
|
53
|
+
/** Columns privacy mode masks right now (empty when it is off). Their
|
|
54
|
+
* sort entries and filter keys leave `getQuery()`. */
|
|
55
|
+
getMaskedColumnIds?: () => readonly string[];
|
|
56
|
+
}
|
|
57
|
+
/** One slice write in a batch. */
|
|
58
|
+
export type DataGridSliceWrite = {
|
|
59
|
+
[K in DataGridSliceName]: {
|
|
60
|
+
slice: K;
|
|
61
|
+
next: DataGridSlices[K] | ((previous: DataGridSlices[K]) => DataGridSlices[K]);
|
|
62
|
+
};
|
|
63
|
+
}[DataGridSliceName];
|
|
64
|
+
/** What `reconcile` needs from the current row model. */
|
|
65
|
+
export interface DataGridReconcileInput {
|
|
66
|
+
/** Keep a selected id? `null` keeps all (server mode never prunes). */
|
|
67
|
+
keepSelectedId: ((id: string) => boolean) | null;
|
|
68
|
+
/** Keep an expanded id? `null` keeps all. */
|
|
69
|
+
keepExpandedId: ((id: string) => boolean) | null;
|
|
70
|
+
/** Page count to clamp to; `null` or `-1` never clamps. */
|
|
71
|
+
pageCount: number | null;
|
|
72
|
+
}
|
|
73
|
+
/** The store's full surface inside the data-grid folder. */
|
|
74
|
+
export interface DataGridStoreImpl extends DataGridStore {
|
|
75
|
+
setContext(context: DataGridStoreContext): void;
|
|
76
|
+
/** Several slices in one write: one page reset, one selection clear, one
|
|
77
|
+
* `onQueryChange` (e.g. `clearFilters`, `moveColumn`). */
|
|
78
|
+
writeMany(writes: readonly DataGridSliceWrite[], source: DataGridChangeSource): void;
|
|
79
|
+
/** Delivers what `syncFromProps` recorded. Call outside render. */
|
|
80
|
+
flushHostChanges(): void;
|
|
81
|
+
/** Prunes selection and expanded ids and clamps the page (`'host'`). */
|
|
82
|
+
reconcile(input: DataGridReconcileInput): void;
|
|
83
|
+
/** Calls the host callbacks for slices seeded at creation (storage) and
|
|
84
|
+
* emits `'columns'` with that source. Call once, after mount. */
|
|
85
|
+
announceSeeded(slices: readonly DataGridSliceName[], source: DataGridChangeSource): void;
|
|
86
|
+
/** Reported selection: selectable ids plus locked rows present. */
|
|
87
|
+
getReportedSelection(): string[];
|
|
88
|
+
/** The effective query: masked columns' sort entries and filter keys
|
|
89
|
+
* are left out, and `maskedColumnIds` lists them while any exist. */
|
|
90
|
+
getQuery(): DataGridQuery;
|
|
91
|
+
/**
|
|
92
|
+
* Reports an effective-query change that no slice write made (privacy
|
|
93
|
+
* mode or the masked column set changed): with
|
|
94
|
+
* `clearSelectionOnFilterChange`, clears the selection when the filters
|
|
95
|
+
* or the search scope changed (one `'selection'` change, locked rows
|
|
96
|
+
* kept); resets the page to 0 when it is not; then calls
|
|
97
|
+
* `onQueryChange` once with the new query. A no-op
|
|
98
|
+
* when the query equals the last one reported (or the one at creation).
|
|
99
|
+
* Call outside render, after `flushHostChanges()`.
|
|
100
|
+
*/
|
|
101
|
+
refreshEffectiveQuery(source: DataGridChangeSource): void;
|
|
102
|
+
/** Increments on every change; for `useSyncExternalStore`. */
|
|
103
|
+
getVersion(): number;
|
|
104
|
+
}
|
|
105
|
+
/** Did this change clear the selection for a new effective query? */
|
|
106
|
+
export declare function isQuerySelectionClear(change: DataGridChange): boolean;
|
|
107
|
+
export interface CreateDataGridStoreOptions {
|
|
108
|
+
/** Every slice's starting value (controlled props, defaults, storage). */
|
|
109
|
+
initial: DataGridSlices;
|
|
110
|
+
/** Slices controlled at creation. */
|
|
111
|
+
controlled?: Iterable<DataGridSliceName>;
|
|
112
|
+
context: DataGridStoreContext;
|
|
113
|
+
}
|
|
114
|
+
export declare function createDataGridStore(options: CreateDataGridStoreOptions): DataGridStoreImpl;
|
|
115
|
+
/** The empty value of each slice (no props, no storage). */
|
|
116
|
+
export declare function emptyDataGridSlices(pageSize: number): DataGridSlices;
|
|
117
|
+
/** A shallow kit copy of a pagination value. */
|
|
118
|
+
export declare function copyPagination(page: DataGridPagination): DataGridPagination;
|
|
119
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type EmptyStateHeadingLevel } from '../empty-state';
|
|
2
|
+
/** Placeholder rows while the first rows load. Hidden from assistive tech:
|
|
3
|
+
* the table carries `aria-busy` and the announcer says "Loading data…". */
|
|
4
|
+
export declare function DataGridSkeletonRows({ rowCount, columnCount, density, }: {
|
|
5
|
+
rowCount: number;
|
|
6
|
+
columnCount: number;
|
|
7
|
+
density: 'default' | 'compact';
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface DataGridStateRowProps {
|
|
10
|
+
kind: 'first-use' | 'no-results' | 'error';
|
|
11
|
+
columnCount: number;
|
|
12
|
+
empty?: {
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
action?: {
|
|
16
|
+
label: string;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
};
|
|
19
|
+
headingLevel?: EmptyStateHeadingLevel;
|
|
20
|
+
noResultsTitle?: string;
|
|
21
|
+
noResultsDescription?: string;
|
|
22
|
+
};
|
|
23
|
+
error?: {
|
|
24
|
+
title?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
onRetry?: () => void;
|
|
27
|
+
headingLevel?: EmptyStateHeadingLevel;
|
|
28
|
+
};
|
|
29
|
+
/** "Clear filters" on no results (source `'user'`). */
|
|
30
|
+
onClearFilters: () => void;
|
|
31
|
+
}
|
|
32
|
+
/** One `<tr><td colSpan>` holding the EmptyState for the current state. */
|
|
33
|
+
export declare function DataGridStateRow({ kind, columnCount, empty, error, onClearFilters, }: DataGridStateRowProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=states.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TableToolbarSeam } from '../_shared/table-toolbar/seam';
|
|
2
|
+
import type { CreateDataGridToolbarSeam } from './types';
|
|
3
|
+
/** @internal The grid caption behind a DataGrid seam, for default export
|
|
4
|
+
* file names (`DataGridToolbar.ExportMenu`). */
|
|
5
|
+
export declare function dataGridSeamCaption(seam: TableToolbarSeam): string | undefined;
|
|
6
|
+
export declare const createDataGridToolbarSeam: CreateDataGridToolbarSeam;
|
|
7
|
+
//# sourceMappingURL=toolbar-seam.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { DataGridToolbarBulkActionProps, DataGridToolbarColumnToggleProps, DataGridToolbarExportMenuItemProps, DataGridToolbarExportMenuProps, DataGridToolbarFacetFilterProps, DataGridToolbarFilterChipsProps, DataGridToolbarProviderProps, DataGridToolbarQuickSearchProps, DataGridToolbarRefreshProps, DataGridToolbarRootProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* For a toolbar outside the grid (a page header). Binds to whatever
|
|
4
|
+
* `getGrid()` returns, once after mount and again whenever any DataGrid
|
|
5
|
+
* mounts or unmounts (`dataGridMountSignal`): no polling. Until a grid is
|
|
6
|
+
* bound the parts are inert.
|
|
7
|
+
*/
|
|
8
|
+
export declare function DataGridToolbarProvider({ getGrid, children, }: DataGridToolbarProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* The DataGrid toolbar. Put it in the grid's `toolbar` prop, or lift it into
|
|
11
|
+
* a page header under `DataGridToolbarProvider`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DataGridToolbar: import("react").ForwardRefExoticComponent<DataGridToolbarRootProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
14
|
+
FilterBar: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Actions: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
QuickSearch: {
|
|
17
|
+
(props: DataGridToolbarQuickSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
FilterChips: {
|
|
21
|
+
(_props: DataGridToolbarFilterChipsProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
FacetFilter: {
|
|
25
|
+
({ field, options, label, }: DataGridToolbarFacetFilterProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
ColumnToggle: import("react").ForwardRefExoticComponent<DataGridToolbarColumnToggleProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
ExportMenu: import("react").ForwardRefExoticComponent<DataGridToolbarExportMenuProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
30
|
+
Item: {
|
|
31
|
+
(props: DataGridToolbarExportMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
Print: import("react").ForwardRefExoticComponent<Omit<import("..").IconButtonProps, "icon" | "children" | "aria-label" | "onClick" | "tooltip"> & {
|
|
36
|
+
label?: string;
|
|
37
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
Refresh: import("react").ForwardRefExoticComponent<DataGridToolbarRefreshProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
39
|
+
BulkAction: import("react").ForwardRefExoticComponent<DataGridToolbarBulkActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=toolbar.d.ts.map
|