@servicetitan/anvil2 3.15.0 → 3.15.2
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/CHANGELOG.md +18 -0
- package/dist/{AiMark-D57s1e0T.js → AiMark-N8UfGfcV.js} +2 -2
- package/dist/{AiMark-D57s1e0T.js.map → AiMark-N8UfGfcV.js.map} +1 -1
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-DExHiAbM.js → Alert-DTKIlitZ.js} +3 -3
- package/dist/{Alert-DExHiAbM.js.map → Alert-DTKIlitZ.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-CGTv6M31.js → Announcement-Cnz80WGx.js} +2 -2
- package/dist/{Announcement-CGTv6M31.js.map → Announcement-Cnz80WGx.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{Breadcrumbs-DtLSS0PJ.js → Breadcrumbs-B8UGx4Mq.js} +2 -2
- package/dist/{Breadcrumbs-DtLSS0PJ.js.map → Breadcrumbs-B8UGx4Mq.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-Dwh_Nd4l.js → Button-Dn6-01xl.js} +230 -67
- package/dist/Button-Dn6-01xl.js.map +1 -0
- package/dist/Button.js +1 -1
- package/dist/{ButtonToggle-DKDBD1g3.js → ButtonToggle-BSU8GBxr.js} +2 -2
- package/dist/{ButtonToggle-DKDBD1g3.js.map → ButtonToggle-BSU8GBxr.js.map} +1 -1
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-CEf7ke8X.js → Calendar-CpmaI3b6.js} +3 -3
- package/dist/Calendar-CpmaI3b6.js.map +1 -0
- package/dist/{Calendar-BUFPc5UN.js → Calendar-Cv07q_tE.js} +2 -2
- package/dist/Calendar-Cv07q_tE.js.map +1 -0
- package/dist/Calendar.js +2 -2
- package/dist/{Checkbox-DVy-QESI.js → Checkbox-cB0D9W0a.js} +3 -3
- package/dist/{Checkbox-DVy-QESI.js.map → Checkbox-cB0D9W0a.js.map} +1 -1
- package/dist/{Checkbox-DBE35nMv.js → Checkbox-jomKCuAj.js} +2 -2
- package/dist/{Checkbox-DBE35nMv.js.map → Checkbox-jomKCuAj.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-B4G4zaP-.js → Chip-DivZ3OuB.js} +2 -2
- package/dist/{Chip-B4G4zaP-.js.map → Chip-DivZ3OuB.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-DbuXfDNJ.js → DataTable-_XXxSbvH.js} +16 -41
- package/dist/DataTable-_XXxSbvH.js.map +1 -0
- package/dist/{DateFieldRange-nyj8mtUP.js → DateFieldRange-31zIfcR2.js} +4 -4
- package/dist/{DateFieldRange-nyj8mtUP.js.map → DateFieldRange-31zIfcR2.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-BmCghXba.js → DateFieldSingle-DDFe1inZ.js} +4 -4
- package/dist/{DateFieldSingle-BmCghXba.js.map → DateFieldSingle-DDFe1inZ.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-Df7fA85i.js → DateFieldYearless-Cv34myLZ.js} +4 -4
- package/dist/{DateFieldYearless-Df7fA85i.js.map → DateFieldYearless-Cv34myLZ.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-DYpY4K1c.js → DateFieldYearlessRange-D_ftkt3w.js} +3 -3
- package/dist/{DateFieldYearlessRange-DYpY4K1c.js.map → DateFieldYearlessRange-D_ftkt3w.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-CyWGRqFG.js → DaysOfTheWeek-D4tUHUay.js} +3 -3
- package/dist/{DaysOfTheWeek-CyWGRqFG.js.map → DaysOfTheWeek-D4tUHUay.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-oM-nR4ju.js → Details-BxqP-5vp.js} +11 -9
- package/dist/Details-BxqP-5vp.js.map +1 -0
- package/dist/Details.css +18 -14
- package/dist/Details.js +1 -1
- package/dist/{Dialog-vSiZAR1y.js → Dialog-B2QAFibn.js} +4 -4
- package/dist/{Dialog-vSiZAR1y.js.map → Dialog-B2QAFibn.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{DialogCancelButton-DBL0aKTK.js → DialogCancelButton-C0r8hJ8Z.js} +2 -2
- package/dist/{DialogCancelButton-DBL0aKTK.js.map → DialogCancelButton-C0r8hJ8Z.js.map} +1 -1
- package/dist/{Drawer-B4pxj_2P.js → Drawer-CBIOWwh3.js} +5 -5
- package/dist/{Drawer-B4pxj_2P.js.map → Drawer-CBIOWwh3.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/{EditCard-CX1G7G2Q.js → EditCard-Q6WlsM4O.js} +3 -3
- package/dist/{EditCard-CX1G7G2Q.js.map → EditCard-Q6WlsM4O.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-CAusaqUY.js → FieldLabel-FsNIjn8T.js} +2 -2
- package/dist/{FieldLabel-CAusaqUY.js.map → FieldLabel-FsNIjn8T.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/{FilterBar-CKYf-1oU.js → FilterBar-PXv7_svO.js} +7 -7
- package/dist/FilterBar-PXv7_svO.js.map +1 -0
- package/dist/FilterBar.js +1 -1
- package/dist/{InputMask-xMpquXPU.js → InputMask-BgZX650-.js} +3 -3
- package/dist/{InputMask-xMpquXPU.js.map → InputMask-BgZX650-.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{InteractiveCard-C0g5PxB6.js → InteractiveCard-C2CYRtgQ.js} +3 -3
- package/dist/InteractiveCard-C2CYRtgQ.js.map +1 -0
- package/dist/InteractiveCard.js +1 -1
- package/dist/{ListView-D6l1KY92.js → ListView-aRwUEGI3.js} +2 -2
- package/dist/{ListView-D6l1KY92.js.map → ListView-aRwUEGI3.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-Dep1eJ3u.js → Listbox-BCszel4v.js} +2 -2
- package/dist/{Listbox-Dep1eJ3u.js.map → Listbox-BCszel4v.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/{Menu-eLxQwmZk.js → Menu-Da2OEN0o.js} +2 -2
- package/dist/{Menu-eLxQwmZk.js.map → Menu-Da2OEN0o.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{MenuFooter-fGSZYh8e.js → MenuFooter-D__gg92C.js} +2 -2
- package/dist/{MenuFooter-fGSZYh8e.js.map → MenuFooter-D__gg92C.js.map} +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-ZNoNOm6d.js → MultiSelectFieldSync-DY5wr7cT.js} +7 -7
- package/dist/{MultiSelectFieldSync-ZNoNOm6d.js.map → MultiSelectFieldSync-DY5wr7cT.js.map} +1 -1
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-DrgqaUJj.js → MultiSelectMenuSync-D3sfHivW.js} +5 -5
- package/dist/{MultiSelectMenuSync-DrgqaUJj.js.map → MultiSelectMenuSync-D3sfHivW.js.map} +1 -1
- package/dist/{NumberField-D5ZzEHg1.js → NumberField-CrvEEy_h.js} +4 -4
- package/dist/{NumberField-D5ZzEHg1.js.map → NumberField-CrvEEy_h.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/{Page-B2HZzNGP.js → Page-CS6x6C7Y.js} +18 -187
- package/dist/Page-CS6x6C7Y.js.map +1 -0
- package/dist/Page.js +1 -1
- package/dist/{Pagination-CAgXtt9t.js → Pagination-DianLtHs.js} +5 -5
- package/dist/{Pagination-CAgXtt9t.js.map → Pagination-DianLtHs.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-CjL2ixjB.js → Popover-BsEwcuu4.js} +2 -2
- package/dist/{Popover-CjL2ixjB.js.map → Popover-BsEwcuu4.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-ClKcOcXq.js → ProgressBar-0pebwBJ0.js} +2 -2
- package/dist/{ProgressBar-ClKcOcXq.js.map → ProgressBar-0pebwBJ0.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-_ftIQSru.js → Radio-BxXN612_.js} +3 -3
- package/dist/{Radio-_ftIQSru.js.map → Radio-BxXN612_.js.map} +1 -1
- package/dist/{Radio-C2BJqWlV.js → Radio-CU2--1uW.js} +2 -2
- package/dist/{Radio-C2BJqWlV.js.map → Radio-CU2--1uW.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{RichTextEditor-TcZUnqcp.js → RichTextEditor-Dnc7vOjq.js} +18831 -20238
- package/dist/RichTextEditor-Dnc7vOjq.js.map +1 -0
- package/dist/RichTextEditor.js +1 -1
- package/dist/{SavedFiltersButton-B8lf3L2T.js → SavedFiltersButton-BWlE7UnI.js} +10 -24
- package/dist/SavedFiltersButton-BWlE7UnI.js.map +1 -0
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/{SegmentedControl-CtKoYHoO.js → SegmentedControl-BHVJmmTH.js} +3 -3
- package/dist/{SegmentedControl-CtKoYHoO.js.map → SegmentedControl-BHVJmmTH.js.map} +1 -1
- package/dist/SegmentedControl.js +1 -1
- package/dist/{SelectCard-BwIbfore.js → SelectCard-D2PAyR7T.js} +3 -3
- package/dist/{SelectCard-BwIbfore.js.map → SelectCard-D2PAyR7T.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-7VTZ83QJ.js → SelectFieldLabel-BXJJQ0zt.js} +2 -2
- package/dist/{SelectFieldLabel-7VTZ83QJ.js.map → SelectFieldLabel-BXJJQ0zt.js.map} +1 -1
- package/dist/{SelectFieldSync-CB75kkka.js → SelectFieldSync-CkWoMhrv.js} +6 -6
- package/dist/{SelectFieldSync-CB75kkka.js.map → SelectFieldSync-CkWoMhrv.js.map} +1 -1
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-DIMfovCI.js → SelectMenuSync-C-6mULc_.js} +5 -5
- package/dist/{SelectMenuSync-DIMfovCI.js.map → SelectMenuSync-C-6mULc_.js.map} +1 -1
- package/dist/{SelectOptions-si_rVLEZ.js → SelectOptions-pAkVhulQ.js} +2 -2
- package/dist/{SelectOptions-si_rVLEZ.js.map → SelectOptions-pAkVhulQ.js.map} +1 -1
- package/dist/{SelectTrigger-C3-Cne3D.js → SelectTrigger-B9WUUdIu.js} +2 -2
- package/dist/{SelectTrigger-C3-Cne3D.js.map → SelectTrigger-B9WUUdIu.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-BnsTYWVb.js → SelectTriggerBase-Dq7QDlPS.js} +4 -4
- package/dist/{SelectTriggerBase-BnsTYWVb.js.map → SelectTriggerBase-Dq7QDlPS.js.map} +1 -1
- package/dist/{Stepper-C-QC9QHx.js → Stepper-l_P6VPOv.js} +3 -3
- package/dist/{Stepper-C-QC9QHx.js.map → Stepper-l_P6VPOv.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-DWq4QI8M.js → Switch-BS4bw5KF.js} +2 -2
- package/dist/{Switch-DWq4QI8M.js.map → Switch-BS4bw5KF.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/{Tab-mXEQ0ifM.js → Tab-DR5YYXkq.js} +124 -19
- package/dist/Tab-DR5YYXkq.js.map +1 -0
- package/dist/Tab.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-dONmlARH.js → Text-B_-Ldn9K.js} +2 -2
- package/dist/{Text-dONmlARH.js.map → Text-B_-Ldn9K.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-CtXjbtqa.js → TextField-B6tVKoxq.js} +2 -2
- package/dist/{TextField-CtXjbtqa.js.map → TextField-B6tVKoxq.js.map} +1 -1
- package/dist/{TextField-CQ7e3mC4.js → TextField-DxQ6-IhP.js} +3 -3
- package/dist/{TextField-CQ7e3mC4.js.map → TextField-DxQ6-IhP.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-DGVHQktZ.js → Textarea-oChzBuWz.js} +3 -3
- package/dist/{Textarea-DGVHQktZ.js.map → Textarea-oChzBuWz.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{TimeField-AttXPsQw.js → TimeField-Dq7l8xNU.js} +4 -4
- package/dist/{TimeField-AttXPsQw.js.map → TimeField-Dq7l8xNU.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-DYO8NLTo.js → Toaster-CsZkAOVn.js} +2 -2
- package/dist/{Toaster-DYO8NLTo.js.map → Toaster-CsZkAOVn.js.map} +1 -1
- package/dist/{Toaster-CNtAl-tF.js → Toaster-oK4dSBPK.js} +4 -4
- package/dist/{Toaster-CNtAl-tF.js.map → Toaster-oK4dSBPK.js.map} +1 -1
- package/dist/{Toolbar-BIbbaCxh.js → Toolbar-Bp-A2P4L.js} +5 -5
- package/dist/{Toolbar-BIbbaCxh.js.map → Toolbar-Bp-A2P4L.js.map} +1 -1
- package/dist/{Toolbar-B_lHD0c2.js → Toolbar-Do8KEjJJ.js} +11 -105
- package/dist/Toolbar-Do8KEjJJ.js.map +1 -0
- package/dist/Toolbar.js +2 -2
- package/dist/{ToolbarButtonToggle-BMBmBdw1.js → ToolbarButtonToggle-T8YnSJ5x.js} +2 -3
- package/dist/ToolbarButtonToggle-T8YnSJ5x.js.map +1 -0
- package/dist/TreeSelectField.js +1 -1
- package/dist/{TreeSelectFieldSync-CKnFwROC.js → TreeSelectFieldSync-BXfLbDBM.js} +7 -7
- package/dist/TreeSelectFieldSync-BXfLbDBM.js.map +1 -0
- package/dist/TreeSelectMenu.js +1 -1
- package/dist/{TreeSelectMenuSync-CK-x2_ne.js → TreeSelectMenuSync-D7fQIyHr.js} +4 -4
- package/dist/TreeSelectMenuSync-D7fQIyHr.js.map +1 -0
- package/dist/{TypeaheadTextField-DqnUGXj0.js → TypeaheadTextField-Dkh84OCF.js} +10 -19
- package/dist/TypeaheadTextField-Dkh84OCF.js.map +1 -0
- package/dist/TypeaheadTextField.js +1 -1
- package/dist/{YearlessDateInputWithPicker-aI4UIyMD.js → YearlessDateInputWithPicker-7y8xhacx.js} +2 -2
- package/dist/{YearlessDateInputWithPicker-aI4UIyMD.js.map → YearlessDateInputWithPicker-7y8xhacx.js.map} +1 -1
- package/dist/assets/icons/material.ts +184 -184
- package/dist/assets/icons/st.ts +9 -9
- package/dist/beta.js +18 -18
- package/dist/{bulkActionTypes-sbwWLsDi.js → bulkActionTypes-BVJZ01mE.js} +2 -2
- package/dist/{bulkActionTypes-sbwWLsDi.js.map → bulkActionTypes-BVJZ01mE.js.map} +1 -1
- package/dist/{filter-state-DW8YmRHb.js → filter-state-CPCn-owS.js} +55 -37
- package/dist/filter-state-CPCn-owS.js.map +1 -0
- package/dist/{index-Cw2HFh0a.js → index-D1WfdON1.js} +1549 -1582
- package/dist/index-D1WfdON1.js.map +1 -0
- package/dist/index.js +48 -48
- package/dist/{proxy-DEehATlA.js → react-ORV84FjM.js} +6862 -5814
- package/dist/react-ORV84FjM.js.map +1 -0
- package/dist/src/beta/components/Calendar/Calendar.d.ts +8 -17
- package/dist/src/beta/components/Calendar/CalendarBetaPropsContext.d.ts +1 -0
- package/dist/src/beta/components/Calendar/useCalendarBetaProps.d.ts +1 -0
- package/dist/src/beta/components/FilterBar/FilterBar.d.ts +12 -53
- package/dist/src/beta/components/FilterBar/FilterDateList.d.ts +8 -0
- package/dist/src/beta/components/FilterBar/FilterDateRange.d.ts +15 -9
- package/dist/src/beta/components/FilterBar/FilterDateSingle.d.ts +15 -9
- package/dist/src/beta/components/FilterBar/FilterDrawer.d.ts +1 -14
- package/dist/src/beta/components/FilterBar/FilterItemWrapper.d.ts +0 -7
- package/dist/src/beta/components/FilterBar/FilterNumericRange.d.ts +4 -13
- package/dist/src/beta/components/FilterBar/FilterPopoverButton.d.ts +6 -8
- package/dist/src/beta/components/FilterBar/FilterSearchField.d.ts +3 -6
- package/dist/src/beta/components/FilterBar/FilterTextInput.d.ts +4 -13
- package/dist/src/beta/components/FilterBar/FilterToggleButton.d.ts +3 -14
- package/dist/src/beta/components/FilterBar/FilterTriggerButton.d.ts +3 -3
- package/dist/src/beta/components/FilterBar/internal/FilterGroupContext.d.ts +6 -20
- package/dist/src/beta/components/FilterBar/internal/adapters/index.d.ts +3 -8
- package/dist/src/beta/components/FilterBar/internal/adapters/types.d.ts +7 -19
- package/dist/src/beta/components/FilterBar/internal/types.d.ts +48 -57
- package/dist/src/beta/components/FilterBar/internal/utils/dateConstraints.d.ts +3 -3
- package/dist/src/beta/components/FilterBar/internal/utils/dateListLibraryOptions.d.ts +4 -7
- package/dist/src/beta/components/FilterBar/internal/utils/filter-state.d.ts +3 -24
- package/dist/src/beta/components/InteractiveCard/InteractiveCard.d.ts +2 -47
- package/dist/src/beta/components/InteractiveCard/types.d.ts +13 -71
- package/dist/src/beta/components/Page/Page.d.ts +8 -166
- package/dist/src/beta/components/Page/PageContent.d.ts +3 -17
- package/dist/src/beta/components/Page/PageContext.d.ts +9 -0
- package/dist/src/beta/components/Page/PageFooter.d.ts +2 -15
- package/dist/src/beta/components/Page/PageHeader.d.ts +38 -91
- package/dist/src/beta/components/Page/PagePanel.d.ts +17 -115
- package/dist/src/beta/components/Page/PagePanelContent.d.ts +5 -37
- package/dist/src/beta/components/Page/PagePanelFooter.d.ts +4 -27
- package/dist/src/beta/components/Page/PagePanelHeader.d.ts +3 -16
- package/dist/src/beta/components/Page/PageSidebar.d.ts +8 -41
- package/dist/src/beta/components/Page/PageSidebarHeader.d.ts +2 -20
- package/dist/src/beta/components/Page/internal/PagePanelContext.d.ts +1 -6
- package/dist/src/beta/components/Page/pageBreakpoint.d.ts +5 -18
- package/dist/src/beta/components/RichTextEditor/RichTextEditor.d.ts +2 -25
- package/dist/src/beta/components/RichTextEditor/internal/LinkPopover.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/MentionList.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/MentionPopover.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/RichTextEditorToolbar.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/YouTubeEmbedPrompt.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/YouTubePopover.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/extensions/ImageUploadExtension.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/extensions/LinkKeyboardShortcutExtension.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/extensions/MentionExtension.d.ts +5 -0
- package/dist/src/beta/components/RichTextEditor/internal/extensions/SafeImageExtension.d.ts +3 -10
- package/dist/src/beta/components/RichTextEditor/internal/extensions/YoutubeExtension.d.ts +4 -0
- package/dist/src/beta/components/RichTextEditor/internal/useRichTextEditor.d.ts +3 -17
- package/dist/src/beta/components/RichTextEditor/types.d.ts +46 -71
- package/dist/src/beta/components/SavedFiltersButton/SavedFiltersButton.d.ts +2 -33
- package/dist/src/beta/components/SavedFiltersButton/internal/AddSavedFilterDrawer.d.ts +2 -12
- package/dist/src/beta/components/SavedFiltersButton/internal/EditSavedFiltersDrawer.d.ts +2 -20
- package/dist/src/beta/components/SavedFiltersButton/parts.d.ts +0 -23
- package/dist/src/beta/components/SavedFiltersButton/types.d.ts +36 -85
- package/dist/src/beta/components/Table/DataTable/DataTable.d.ts +34 -84
- package/dist/src/beta/components/Table/DataTable/internal/DataTableBody.d.ts +15 -22
- package/dist/src/beta/components/Table/DataTable/internal/DataTableBodyRow.d.ts +47 -18
- package/dist/src/beta/components/Table/DataTable/internal/DataTableCellAffordance.d.ts +8 -0
- package/dist/src/beta/components/Table/DataTable/internal/DataTableFooter.d.ts +17 -23
- package/dist/src/beta/components/Table/DataTable/internal/DataTableHeader.d.ts +6 -9
- package/dist/src/beta/components/Table/DataTable/internal/DataTablePagination.d.ts +16 -0
- package/dist/src/beta/components/Table/DataTable/internal/cells/CellFocusContext.d.ts +2 -11
- package/dist/src/beta/components/Table/DataTable/internal/cells/CellStatus.d.ts +7 -5
- package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableBodyCell.d.ts +4 -8
- package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableBodyImmutableCell.d.ts +4 -17
- package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableBodyMutableCell.d.ts +4 -18
- package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableFooterCell.d.ts +3 -10
- package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableHeaderCell.d.ts +3 -15
- package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableOverflowCell.d.ts +4 -0
- package/dist/src/beta/components/Table/DataTable/internal/cells/useCellFocusListener.d.ts +2 -6
- package/dist/src/beta/components/Table/DataTable/internal/constants.d.ts +13 -30
- package/dist/src/beta/components/Table/DataTable/internal/context/focus/DTFocusContext.d.ts +1 -6
- package/dist/src/beta/components/Table/DataTable/internal/context/focus/DTFocusProvider.d.ts +3 -0
- package/dist/src/beta/components/Table/DataTable/internal/context/focus/useDTFocusDispatchContext.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/internal/context/focus/useDTFocusStateContext.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/internal/context/rowClick/DataTableRowClickContext.d.ts +2 -5
- package/dist/src/beta/components/Table/DataTable/internal/context/rowClick/DataTableRowClickProvider.d.ts +2 -5
- package/dist/src/beta/components/Table/DataTable/internal/context/rowClick/useDataTableRowClick.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/internal/context/surface/DataTableSurfaceCoordinatorContext.d.ts +4 -0
- package/dist/src/beta/components/Table/DataTable/internal/context/surface/DataTableSurfaceCoordinatorProvider.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/internal/context/surface/useDataTableSurfaceCoordinator.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/internal/dataTableCellAffordanceHostClassName.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableBooleanCell.d.ts +6 -0
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableCellEditIcon.d.ts +1 -4
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableCustomCell.d.ts +4 -0
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableMultiselectAsyncCell.d.ts +5 -25
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableMultiselectCell.d.ts +3 -13
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableNumberCell.d.ts +4 -0
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableSelectAsyncCell.d.ts +5 -0
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableSelectCell.d.ts +4 -0
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableTextCell.d.ts +4 -0
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/types.d.ts +7 -20
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/useCustomEditHelpers.d.ts +13 -26
- package/dist/src/beta/components/Table/DataTable/internal/editable-cells/useEditableMenuCell.d.ts +2 -10
- package/dist/src/beta/components/Table/DataTable/internal/useAsyncData.d.ts +8 -0
- package/dist/src/beta/components/Table/DataTable/internal/useColumnOrder.d.ts +2 -2
- package/dist/src/beta/components/Table/DataTable/internal/useDataTableVirtualizer.d.ts +7 -18
- package/dist/src/beta/components/Table/DataTable/internal/usePageDataCache.d.ts +6 -10
- package/dist/src/beta/components/Table/DataTable/internal/util/cellPositionHelpers.d.ts +0 -3
- package/dist/src/beta/components/Table/DataTable/internal/util/cellTypeHelpers.d.ts +7 -24
- package/dist/src/beta/components/Table/DataTable/internal/util/getCellInteractives.d.ts +4 -17
- package/dist/src/beta/components/Table/DataTable/internal/util/getTanStackColumnDef.d.ts +5 -29
- package/dist/src/beta/components/Table/DataTable/internal/util/shallowSortingEqual.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/parts.d.ts +3 -17
- package/dist/src/beta/components/Table/DataTable/types.d.ts +41 -64
- package/dist/src/beta/components/Table/base/TableBase.d.ts +8 -26
- package/dist/src/beta/components/Table/base/TableBody.d.ts +5 -14
- package/dist/src/beta/components/Table/base/TableContainer.d.ts +1 -11
- package/dist/src/beta/components/Table/base/TableFooter.d.ts +5 -14
- package/dist/src/beta/components/Table/base/TableHeader.d.ts +5 -14
- package/dist/src/beta/components/Table/base/cells/TableBodyCell.d.ts +4 -13
- package/dist/src/beta/components/Table/base/cells/TableEmptyCellContent.d.ts +1 -1
- package/dist/src/beta/components/Table/base/cells/TableFooterCell.d.ts +5 -13
- package/dist/src/beta/components/Table/base/cells/TableHeaderCell.d.ts +8 -25
- package/dist/src/beta/components/Table/base/cells/types.d.ts +2 -6
- package/dist/src/beta/components/Table/columnTypeDefaults.d.ts +7 -36
- package/dist/src/beta/components/Table/createColumnHelper.d.ts +38 -153
- package/dist/src/beta/components/Table/formatters/booleanFormatter.d.ts +4 -15
- package/dist/src/beta/components/Table/formatters/chipsFormatter.d.ts +7 -9
- package/dist/src/beta/components/Table/formatters/currencyFormatter.d.ts +3 -15
- package/dist/src/beta/components/Table/formatters/dateFormatter.d.ts +10 -23
- package/dist/src/beta/components/Table/formatters/dateTimeFormatter.d.ts +23 -46
- package/dist/src/beta/components/Table/formatters/htmlFormatter.d.ts +2 -11
- package/dist/src/beta/components/Table/formatters/htmlToMarkdown.d.ts +5 -10
- package/dist/src/beta/components/Table/formatters/markdownFormatter.d.ts +3 -8
- package/dist/src/beta/components/Table/formatters/numberFormatter.d.ts +8 -27
- package/dist/src/beta/components/Table/formatters/percentFormatter.d.ts +4 -15
- package/dist/src/beta/components/Table/formatters/presets.d.ts +4 -12
- package/dist/src/beta/components/Table/formatters/timeFormatter.d.ts +7 -17
- package/dist/src/beta/components/Table/formatters/yearlessDateFormatter.d.ts +9 -21
- package/dist/src/beta/components/Table/internal/ResizeHandle.d.ts +5 -9
- package/dist/src/beta/components/Table/internal/TruncateChips.d.ts +2 -11
- package/dist/src/beta/components/Table/internal/getCommonPinningClasses.d.ts +2 -1
- package/dist/src/beta/components/Table/internal/getCommonPinningStyles.d.ts +6 -2
- package/dist/src/beta/components/Table/internal/scrollCellIntoView.d.ts +3 -7
- package/dist/src/beta/components/Table/internal/types.d.ts +2 -7
- package/dist/src/beta/components/Table/types.d.ts +183 -462
- package/dist/src/beta/components/Toolbar/Toolbar.d.ts +35 -267
- package/dist/src/beta/components/Toolbar/ToolbarButton.d.ts +5 -26
- package/dist/src/beta/components/Toolbar/ToolbarButtonLink.d.ts +5 -28
- package/dist/src/beta/components/Toolbar/ToolbarButtonToggle.d.ts +5 -27
- package/dist/src/beta/components/Toolbar/ToolbarControlGroup.d.ts +6 -8
- package/dist/src/beta/components/Toolbar/ToolbarSearchField.d.ts +3 -14
- package/dist/src/beta/components/Toolbar/ToolbarSelect.d.ts +13 -65
- package/dist/src/beta/components/Toolbar/internal/ToolbarContext.d.ts +0 -32
- package/dist/src/beta/components/Toolbar/internal/ToolbarItemOverflowContext.d.ts +0 -13
- package/dist/src/beta/components/Toolbar/internal/ToolbarItemWrapper.d.ts +2 -28
- package/dist/src/beta/components/Toolbar/internal/ToolbarOverflowMenu.d.ts +4 -21
- package/dist/src/beta/components/Toolbar/internal/utils/accessibility.d.ts +7 -15
- package/dist/src/beta/components/Toolbar/types.d.ts +7 -26
- package/dist/src/beta/components/TreeSelectField/TreeSelectField.d.ts +2 -23
- package/dist/src/beta/components/TreeSelectField/TreeSelectFieldSync.d.ts +10 -46
- package/dist/src/beta/components/TreeSelectField/internal/TreeContent.d.ts +5 -21
- package/dist/src/beta/components/TreeSelectField/internal/TreePanel.d.ts +1 -38
- package/dist/src/beta/components/TreeSelectField/internal/TreeRow.d.ts +6 -38
- package/dist/src/beta/components/TreeSelectField/internal/TreeSelectFieldInput.d.ts +2 -50
- package/dist/src/beta/components/TreeSelectField/internal/VirtualizedTreePanel.d.ts +2 -39
- package/dist/src/beta/components/TreeSelectField/internal/treeSync.d.ts +6 -21
- package/dist/src/beta/components/TreeSelectField/internal/treeUtils.d.ts +3 -19
- package/dist/src/beta/components/TreeSelectField/internal/useTree.d.ts +9 -50
- package/dist/src/beta/components/TreeSelectField/internal/useTreeCascade.d.ts +8 -79
- package/dist/src/beta/components/TreeSelectField/internal/useTreeKeyboard.d.ts +3 -29
- package/dist/src/beta/components/TreeSelectField/internal/useTreeLazyCascade.d.ts +8 -36
- package/dist/src/beta/components/TreeSelectField/internal/useTreeLoader.d.ts +10 -34
- package/dist/src/beta/components/TreeSelectField/parts.d.ts +3 -9
- package/dist/src/beta/components/TreeSelectField/types.d.ts +82 -68
- package/dist/src/beta/components/TreeSelectMenu/TreeSelectMenu.d.ts +4 -18
- package/dist/src/beta/components/TreeSelectMenu/TreeSelectMenuSync.d.ts +9 -47
- package/dist/src/beta/components/TreeSelectMenu/parts.d.ts +4 -4
- package/dist/src/beta/components/TreeSelectMenu/types.d.ts +44 -54
- package/dist/src/beta/components/TypeaheadTextField/TypeaheadTextField.d.ts +15 -43
- package/dist/src/beta/components/TypeaheadTextField/internal/SuggestionItem.d.ts +1 -18
- package/dist/src/beta/hooks/useAdaptiveView/useAdaptiveView.d.ts +6 -41
- package/dist/src/integration-testing/stepper-panel-flicker.spec.d.ts +1 -0
- package/dist/{stripInlineMarkdown-DmU2adBb.js → stripInlineMarkdown-CcwDEdw0.js} +2 -2
- package/dist/{stripInlineMarkdown-DmU2adBb.js.map → stripInlineMarkdown-CcwDEdw0.js.map} +1 -1
- package/dist/{syncFilterUtils-CP4dhWVs.js → syncFilterUtils-ubEYuRGQ.js} +4 -4
- package/dist/{syncFilterUtils-CP4dhWVs.js.map → syncFilterUtils-ubEYuRGQ.js.map} +1 -1
- package/dist/{treeSync-CDrgjuw8.js → treeSync-CkjyJSVq.js} +5 -11
- package/dist/treeSync-CkjyJSVq.js.map +1 -0
- package/dist/{use-reduced-motion-CqjZZ5QB.js → use-reduced-motion-yYB9Tb0D.js} +2 -2
- package/dist/use-reduced-motion-yYB9Tb0D.js.map +1 -0
- package/dist/{useDrilldown-DV4qyVOI.js → useDrilldown-DOXav1An.js} +3 -3
- package/dist/{useDrilldown-DV4qyVOI.js.map → useDrilldown-DOXav1An.js.map} +1 -1
- package/dist/{useInfiniteCombobox-DvyQpdwv.js → useInfiniteCombobox-15_SoeWw.js} +4 -4
- package/dist/{useInfiniteCombobox-DvyQpdwv.js.map → useInfiniteCombobox-15_SoeWw.js.map} +1 -1
- package/dist/{useInvalidateOnOptionsChange-D3KWg4qK.js → useInvalidateOnOptionsChange-DiRbyJFp.js} +4 -4
- package/dist/useInvalidateOnOptionsChange-DiRbyJFp.js.map +1 -0
- package/package.json +22 -20
- package/dist/Button-Dwh_Nd4l.js.map +0 -1
- package/dist/Calendar-BUFPc5UN.js.map +0 -1
- package/dist/Calendar-CEf7ke8X.js.map +0 -1
- package/dist/DataTable-DbuXfDNJ.js.map +0 -1
- package/dist/Details-oM-nR4ju.js.map +0 -1
- package/dist/FilterBar-CKYf-1oU.js.map +0 -1
- package/dist/InteractiveCard-C0g5PxB6.js.map +0 -1
- package/dist/Page-B2HZzNGP.js.map +0 -1
- package/dist/RichTextEditor-TcZUnqcp.js.map +0 -1
- package/dist/SavedFiltersButton-B8lf3L2T.js.map +0 -1
- package/dist/Tab-mXEQ0ifM.js.map +0 -1
- package/dist/Toolbar-B_lHD0c2.js.map +0 -1
- package/dist/ToolbarButtonToggle-BMBmBdw1.js.map +0 -1
- package/dist/TreeSelectFieldSync-CKnFwROC.js.map +0 -1
- package/dist/TreeSelectMenuSync-CK-x2_ne.js.map +0 -1
- package/dist/TypeaheadTextField-DqnUGXj0.js.map +0 -1
- package/dist/filter-state-DW8YmRHb.js.map +0 -1
- package/dist/index-Cw2HFh0a.js.map +0 -1
- package/dist/proxy-DEehATlA.js.map +0 -1
- package/dist/treeSync-CDrgjuw8.js.map +0 -1
- package/dist/use-reduced-motion-CqjZZ5QB.js.map +0 -1
- package/dist/useInvalidateOnOptionsChange-D3KWg4qK.js.map +0 -1
|
@@ -1,47 +1,76 @@
|
|
|
1
1
|
import { Row } from '@tanstack/react-table';
|
|
2
2
|
import { useColumnOrder } from './useColumnOrder';
|
|
3
3
|
export type DataTableBodyRowProps<T> = {
|
|
4
|
+
/**
|
|
5
|
+
* Column-order identity for `areRowPropsEqual` only. Render uses
|
|
6
|
+
* `columnIndexMap`; a new array still re-renders after pin/reorder.
|
|
7
|
+
*/
|
|
4
8
|
columnOrder: ReturnType<typeof useColumnOrder>["columnOrder"];
|
|
5
9
|
/**
|
|
6
|
-
* O(1)
|
|
7
|
-
* `columnOrder.indexOf(...)` per cell
|
|
10
|
+
* O(1) leaf-column-index → visual position. Avoids
|
|
11
|
+
* `columnOrder.indexOf(...)` per cell.
|
|
8
12
|
*/
|
|
9
13
|
columnIndexMap: ReturnType<typeof useColumnOrder>["columnIndexMap"];
|
|
14
|
+
/** TanStack row. `id` is `data-row-id`; `original.subComponent` is the sibling slot. */
|
|
10
15
|
row: Row<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Index among header + body rows (headers counted first). Converted to
|
|
18
|
+
* 1-based `aria-rowindex`.
|
|
19
|
+
*/
|
|
11
20
|
rowIndex: number;
|
|
21
|
+
/**
|
|
22
|
+
* Table-wide grouping flag. Gates `aria-expanded` / `aria-level` even when
|
|
23
|
+
* this row cannot expand.
|
|
24
|
+
*/
|
|
12
25
|
tableHasSubRows: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* When true: `aria-expanded` if this row can expand, and the sibling
|
|
28
|
+
* `subComponent` slot if `original` has one.
|
|
29
|
+
*/
|
|
13
30
|
isExpanded: boolean;
|
|
31
|
+
/** With `tableHasSubRows`, exposes `aria-expanded`. */
|
|
14
32
|
canExpand: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Nesting level (0 = root). When greater than 0, sets `--a2-row-depth` for
|
|
35
|
+
* indent on the expand-arrow and first data cell.
|
|
36
|
+
*/
|
|
15
37
|
depth: number;
|
|
38
|
+
/**
|
|
39
|
+
* Parent can expand. Nested leaves still get `aria-level` when the table
|
|
40
|
+
* has subrows.
|
|
41
|
+
*/
|
|
16
42
|
parentRowCanExpand: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* `isSelected`, `isSomeSelected`, and `isAncestorSelected` OR together for
|
|
45
|
+
* `data-anv-is-selected-row` (full, indeterminate, and inherited paint).
|
|
46
|
+
*/
|
|
17
47
|
isSelected: boolean;
|
|
48
|
+
/** Some but not all descendants selected. */
|
|
18
49
|
isSomeSelected: boolean;
|
|
19
50
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* `data-anv-is-selected-row` attribute so descendants visually adopt
|
|
23
|
-
* an ancestor's selection state without painting the ancestor itself.
|
|
24
|
-
* Computed at the parent level (`DataTableBody.tsx`) so the prop
|
|
25
|
-
* remains a serializable boolean — preserving `React.memo`
|
|
26
|
-
* comparator semantics in `areRowPropsEqual`.
|
|
51
|
+
* Passed as a boolean so `areRowPropsEqual` stays a cheap identity check
|
|
52
|
+
* instead of walking ancestors per compare.
|
|
27
53
|
*/
|
|
28
54
|
isAncestorSelected: boolean;
|
|
29
55
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
56
|
+
* From `readOnlyRowIds`. Grays plain-text cells; skips the row-click
|
|
57
|
+
* handler and affordance. Checkbox disabling is gated separately via
|
|
58
|
+
* `enableRowSelection`.
|
|
33
59
|
*/
|
|
34
60
|
isReadOnly: boolean;
|
|
35
61
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* the
|
|
40
|
-
* any row it depends on changes structurally. When omitted, every row
|
|
41
|
-
* re-renders whenever the parent re-renders.
|
|
62
|
+
* Opt-in memo key. When omitted, the row always re-renders with its parent.
|
|
63
|
+
* When set, skip re-render only if this value and the table-managed props
|
|
64
|
+
* compared in `areRowPropsEqual` are unchanged. Include any extra-row
|
|
65
|
+
* input the cells read (for example a highlight id).
|
|
42
66
|
*/
|
|
43
67
|
getRowVersion?: (row: T) => unknown;
|
|
44
68
|
};
|
|
45
69
|
declare function DataTableBodyRowInner<T>({ columnOrder: _columnOrder, columnIndexMap, row, rowIndex, tableHasSubRows, isExpanded, canExpand, depth, parentRowCanExpand, isSelected, isSomeSelected, isAncestorSelected, isReadOnly, }: DataTableBodyRowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
/**
|
|
71
|
+
* One body row plus an optional sibling `subComponent` slot. Hover and
|
|
72
|
+
* selection paint via data attributes (including descendants) so they stay
|
|
73
|
+
* off the React render path. Memoization is opt-in through `getRowVersion`.
|
|
74
|
+
*/
|
|
46
75
|
export declare const DataTableBodyRow: typeof DataTableBodyRowInner;
|
|
47
76
|
export {};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type DataTableCellAffordanceProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Lets the overlay receive pointer events. Defaults to `false` (display-only
|
|
6
|
+
* icons such as edit).
|
|
7
|
+
*/
|
|
4
8
|
interactive?: boolean;
|
|
5
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Decorative overlay shown on a host cell's hover/focus. Hidden from the
|
|
12
|
+
* accessibility tree.
|
|
13
|
+
*/
|
|
6
14
|
export declare function DataTableCellAffordance({ children, interactive, }: DataTableCellAffordanceProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,47 +2,41 @@ import { ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
import { Table as TanstackTable } from '@tanstack/react-table';
|
|
3
3
|
import { ColumnDef } from '../../types';
|
|
4
4
|
import { DataTableProps, DataTableRowData } from '../DataTable';
|
|
5
|
-
/**
|
|
6
|
-
* Props for the default/configured table footer rows
|
|
7
|
-
* @extends TanstackTable<T>
|
|
8
|
-
* @extends ColumnDef<T>[]
|
|
9
|
-
*/
|
|
10
5
|
export type DefaultTableFooterRowsProps<T extends DataTableRowData> = {
|
|
6
|
+
/** Supplies header/row counts for `aria-rowindex` and the visual column order. */
|
|
11
7
|
table: TanstackTable<T>;
|
|
8
|
+
/**
|
|
9
|
+
* Column tree used to look up `footerContent` on leaves. Group columns are
|
|
10
|
+
* skipped so nested headers do not get a footer cell.
|
|
11
|
+
*/
|
|
12
12
|
columns: ColumnDef<T>[];
|
|
13
13
|
};
|
|
14
|
-
/**
|
|
15
|
-
* Props for the custom table footer rows
|
|
16
|
-
* @extends DataTableProps<T>
|
|
17
|
-
*/
|
|
18
14
|
export type CustomTableFooterRowsProps<T extends DataTableRowData> = {
|
|
15
|
+
/**
|
|
16
|
+
* Visible leaf header count (`table.getFlatHeaders().length`).
|
|
17
|
+
*/
|
|
19
18
|
columnCount: number;
|
|
19
|
+
/** Row-major `{ content, colSpan }` cells for the custom path. */
|
|
20
20
|
customFooter: DataTableProps<T>["customFooter"];
|
|
21
|
+
/** Supplies header/row counts for `aria-rowindex`. */
|
|
21
22
|
table: TanstackTable<T>;
|
|
22
23
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Props for the DataTableFooter component
|
|
25
|
-
* @extends ComponentPropsWithoutRef<"div">
|
|
26
|
-
*/
|
|
27
24
|
export type DataTableFooterProps<T extends DataTableRowData> = {
|
|
28
|
-
/**
|
|
29
|
-
* The table instance from @tanstack/react-table to render
|
|
30
|
-
*/
|
|
25
|
+
/** Supplies header/row counts for `aria-rowindex` and the visual column order. */
|
|
31
26
|
table: TanstackTable<T>;
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
28
|
+
* Column tree for leaf `footerContent`. Array values become extra rows; a
|
|
29
|
+
* scalar fills row 0.
|
|
34
30
|
*/
|
|
35
31
|
columns: ColumnDef<T>[];
|
|
36
32
|
/**
|
|
37
|
-
*
|
|
33
|
+
* Row-major custom cells. When set (even empty), this path is used instead
|
|
34
|
+
* of column `footerContent`.
|
|
38
35
|
*/
|
|
39
36
|
customFooter?: DataTableProps<T>["customFooter"];
|
|
40
37
|
} & ComponentPropsWithoutRef<"div">;
|
|
41
38
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @param props.table - The table instance from @tanstack/react-table to render
|
|
45
|
-
* @param props.customFooter - The custom footer of the table
|
|
46
|
-
* @param props.columns - The columns of the table
|
|
39
|
+
* Footer region. `customFooter` replaces column `footerContent` when set.
|
|
40
|
+
* `aria-rowindex` continues after header and body rows.
|
|
47
41
|
*/
|
|
48
42
|
export declare function DataTableFooter<T extends DataTableRowData>({ table, customFooter, columns, ...rest }: DataTableFooterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, RefObject } from 'react';
|
|
2
2
|
import { Table as TanstackTable } from '@tanstack/react-table';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the DataTableHeader component
|
|
5
|
-
* @extends TanstackTable<T>
|
|
6
|
-
* @extends ComponentPropsWithoutRef<"div">
|
|
7
|
-
*/
|
|
8
3
|
type DataTableHeaderProps<T> = {
|
|
4
|
+
/** Supplies header groups plus column sorting, sizing, and metadata. */
|
|
9
5
|
table: TanstackTable<T>;
|
|
6
|
+
/**
|
|
7
|
+
* Table root used to scope imperative column-hover attributes to this table.
|
|
8
|
+
*/
|
|
10
9
|
tableRef: RefObject<HTMLDivElement>;
|
|
11
10
|
} & ComponentPropsWithoutRef<"div">;
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param props.table - The table instance from @tanstack/react-table to render
|
|
16
|
-
* @param props.tableRef - Ref to the table root element for imperative DOM writes
|
|
12
|
+
* Renders DataTable header rows from TanStack header groups, including group
|
|
13
|
+
* spans, sort indicators, and column resize handles.
|
|
17
14
|
*/
|
|
18
15
|
export declare function DataTableHeader<T>({ table, tableRef, }: DataTableHeaderProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
16
|
export {};
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { PaginationProps } from '../../../../../components/Pagination';
|
|
2
2
|
type DataTableCursorPaginationProps = Pick<PaginationProps, "page" | "itemsPerPage" | "onPageChange" | "onItemsPerPageChange" | "itemsPerPageOptions"> & {
|
|
3
|
+
/** Explicit `true` enables Next. Omitted or false leaves it disabled. */
|
|
3
4
|
hasNextPage?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Explicit `true` enables Previous when `page` is greater than 1. Omitted
|
|
7
|
+
* or false leaves it disabled.
|
|
8
|
+
*/
|
|
4
9
|
hasPrevPage?: boolean;
|
|
5
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Numbered pagination fields picked from {@link PaginationProps}, including
|
|
13
|
+
* `totalItemCount`.
|
|
14
|
+
*/
|
|
6
15
|
export type DataTablePaginationProps = Pick<PaginationProps, "page" | "itemsPerPage" | "totalItemCount" | "showCount" | "onPageChange" | "onItemsPerPageChange" | "itemsPerPageOptions">;
|
|
16
|
+
/**
|
|
17
|
+
* Numbered page chrome for DataTable. `showCount` defaults to `true`.
|
|
18
|
+
*/
|
|
7
19
|
export declare const DataTablePagination: ({ showCount, ...props }: DataTablePaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* Prev/next chrome when the table has no `totalItemCount`. Next/Previous stay
|
|
22
|
+
* disabled unless the matching flag is exactly `true`.
|
|
23
|
+
*/
|
|
8
24
|
export declare const DataTableCursorPagination: ({ page, itemsPerPage, itemsPerPageOptions, hasNextPage, hasPrevPage, onPageChange, onItemsPerPageChange, }: DataTableCursorPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
25
|
export {};
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
export type CellFocusContextValue = {
|
|
2
|
-
/**
|
|
3
|
-
* Whether the cell currently has focus
|
|
4
|
-
*/
|
|
2
|
+
/** True while the owning cell holds keyboard or pointer focus. */
|
|
5
3
|
isCellFocused: boolean;
|
|
6
4
|
};
|
|
7
|
-
/**
|
|
8
|
-
* Context for communicating cell focus state to child components.
|
|
9
|
-
* Used by CellStatus to show tooltips when the cell is focused via keyboard.
|
|
10
|
-
*/
|
|
11
5
|
export declare const CellFocusContext: import('react').Context<CellFocusContextValue | null>;
|
|
12
|
-
/**
|
|
13
|
-
* Hook to consume the CellFocusContext.
|
|
14
|
-
* Returns null if used outside of a CellFocusContext.Provider.
|
|
15
|
-
*/
|
|
6
|
+
/** Reads the optional cell-focus bag. */
|
|
16
7
|
export declare function useCellFocusContext(): CellFocusContextValue | null;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export type CellStatusProps = {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* `true` shows the icon only. A string is the tooltip and is appended to the
|
|
4
|
+
* icon's accessible name.
|
|
5
|
+
*/
|
|
3
6
|
status: boolean | string;
|
|
4
|
-
/**
|
|
7
|
+
/** Picks the icon, color, and default accessible name. */
|
|
5
8
|
variant: "error" | "warning";
|
|
6
9
|
};
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* When the parent cell is focused, the tooltip is displayed for keyboard accessibility.
|
|
11
|
+
* Error or warning icon for a cell. A string `status` also opens a tooltip
|
|
12
|
+
* while the cell is focused or the icon is hovered.
|
|
11
13
|
*/
|
|
12
14
|
export declare function CellStatus({ status, variant }: CellStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,18 +3,14 @@ import { Cell } from '@tanstack/react-table';
|
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { CellPosition } from '../../../internal/types';
|
|
5
5
|
export type DataTableBodyCellProps<T> = Omit<BaseDataTableBodyCellProps, "onChange"> & {
|
|
6
|
+
/** Grid coordinates used for roving tabindex and `data-cell-pos`. */
|
|
6
7
|
cellPosition: CellPosition;
|
|
8
|
+
/** TanStack cell; column meta chooses the renderer. */
|
|
7
9
|
cell: Cell<T, unknown>;
|
|
8
10
|
children: ReactNode;
|
|
9
11
|
};
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @param props - The props for the DataTableBodyCell component
|
|
15
|
-
* @param props.cell - The TanStack table cell instance
|
|
16
|
-
* @param props.cellPosition - The position of the cell in the table
|
|
17
|
-
* @param props.children - The content to render in the cell
|
|
18
|
-
* @returns The rendered cell component
|
|
13
|
+
* Body-cell dispatcher: editable when `editMode` is set, overflow surface when
|
|
14
|
+
* `overflow.mode` is `"surface"`, otherwise the immutable cell.
|
|
19
15
|
*/
|
|
20
16
|
export declare function DataTableBodyCell<T>(props: DataTableBodyCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableBodyImmutableCell.d.ts
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import { DataTableBodyCellProps as BaseDataTableBodyCellProps } from '../../../base/cells/TableBodyCell';
|
|
2
2
|
import { Cell } from '@tanstack/react-table';
|
|
3
3
|
import { CellPosition } from '../../../internal/types';
|
|
4
|
-
/**
|
|
5
|
-
* Props for the DataTableBodyImmutableCell component
|
|
6
|
-
*/
|
|
7
4
|
export type DataTableBodyImmutableCellProps<T> = Omit<BaseDataTableBodyCellProps, "onChange"> & {
|
|
8
|
-
/**
|
|
9
|
-
* The position of the cell in the table
|
|
10
|
-
*/
|
|
5
|
+
/** Coordinates used by the grid's roving-focus manager. */
|
|
11
6
|
cellPosition: CellPosition;
|
|
12
|
-
/**
|
|
13
|
-
* The TanStack table cell instance
|
|
14
|
-
*/
|
|
7
|
+
/** Supplies row and column state for actions and validation styling. */
|
|
15
8
|
cell: Cell<T, unknown>;
|
|
16
9
|
};
|
|
17
10
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @param props - The props for the DataTableBodyImmutableCell component
|
|
22
|
-
* @param props.cell - The TanStack table cell instance
|
|
23
|
-
* @param props.cellPosition - The position of the cell in the table
|
|
24
|
-
* @param props.children - The content to render in the cell
|
|
25
|
-
* @returns The rendered immutable cell component
|
|
11
|
+
* Read-only ARIA grid cell with roving navigation and keyboard activation for
|
|
12
|
+
* row actions or embedded controls.
|
|
26
13
|
*/
|
|
27
14
|
export declare function DataTableBodyImmutableCell<T>(props: DataTableBodyImmutableCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/beta/components/Table/DataTable/internal/cells/DataTableBodyMutableCell.d.ts
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
import { DataTableBodyCellProps as BaseDataTableBodyCellProps } from '../../../base/cells/TableBodyCell';
|
|
2
2
|
import { Cell } from '@tanstack/react-table';
|
|
3
3
|
import { CellPosition } from '../../../internal/types';
|
|
4
|
-
/**
|
|
5
|
-
* Props for the DataTableBodyMutableCell component
|
|
6
|
-
*/
|
|
7
4
|
export type DataTableBodyMutableCellProps<T> = Omit<BaseDataTableBodyCellProps, "onChange"> & {
|
|
8
|
-
/**
|
|
9
|
-
* The position of the cell in the table
|
|
10
|
-
*/
|
|
5
|
+
/** Coordinates used by the grid's roving-focus manager. */
|
|
11
6
|
cellPosition: CellPosition;
|
|
12
|
-
/**
|
|
13
|
-
* The TanStack table cell instance
|
|
14
|
-
*/
|
|
7
|
+
/** Supplies row and column state for the configured editor and validation styling. */
|
|
15
8
|
cell: Cell<T, unknown>;
|
|
16
9
|
};
|
|
17
10
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* the column's editMode configuration.
|
|
21
|
-
*
|
|
22
|
-
* @param props - The props for the DataTableBodyMutableCell component
|
|
23
|
-
* @param props.cell - The TanStack table cell instance
|
|
24
|
-
* @param props.cellPosition - The position of the cell in the table
|
|
25
|
-
* @param props.children - The content to render in the cell
|
|
26
|
-
* @returns The rendered editable cell component or null if no editMode is configured
|
|
11
|
+
* Editable ARIA grid cell with roving navigation. Delegates to the editor
|
|
12
|
+
* configured by the column and invokes it with Enter, Space, or F2.
|
|
27
13
|
*/
|
|
28
14
|
export declare function DataTableBodyMutableCell<T>(props: DataTableBodyMutableCellProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { DataTableFooterCellProps as BaseDataTableFooterCellProps } from '../../../base/cells/TableFooterCell';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the DataTableFooterCell component
|
|
4
|
-
* @extends BaseDataTableFooterCellProps
|
|
5
|
-
*/
|
|
6
2
|
export type DataTableFooterCellProps = BaseDataTableFooterCellProps & {
|
|
3
|
+
/** Grid coordinates used for roving tabindex and `data-cell-pos`. */
|
|
7
4
|
cellPosition: {
|
|
8
5
|
rowIndex: number;
|
|
9
6
|
columnIndex: number;
|
|
10
7
|
};
|
|
11
8
|
};
|
|
12
9
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param props.cellPosition - The cell position of the cell
|
|
16
|
-
* @param props.children - The children of the DataTableFooterCell component
|
|
17
|
-
* @param props.className - The class name of the DataTableFooterCell component
|
|
18
|
-
* @param props.tabIndex - The tab index of the cell
|
|
10
|
+
* Footer gridcell. Tabindex is written by `DTFocusProvider`; this cell only
|
|
11
|
+
* handles arrow/Home/End movement.
|
|
19
12
|
*/
|
|
20
13
|
export declare function DataTableFooterCell(props: DataTableFooterCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
import { Ref } from 'react';
|
|
2
2
|
import { HeaderContext } from '@tanstack/react-table';
|
|
3
3
|
import { DataTableHeaderCellProps as BaseDataTableHeaderCellProps } from '../../../base/cells/TableHeaderCell';
|
|
4
|
-
/**
|
|
5
|
-
* Props for the DataTableHeaderCell component
|
|
6
|
-
* @extends BaseDataTableHeaderCellProps
|
|
7
|
-
*/
|
|
8
4
|
export type DataTableHeaderCellProps<T, TValue> = BaseDataTableHeaderCellProps & {
|
|
5
|
+
/** Coordinates used by the grid's roving-focus manager. */
|
|
9
6
|
cellPosition: {
|
|
10
7
|
rowIndex: number;
|
|
11
8
|
columnIndex: number;
|
|
12
9
|
};
|
|
10
|
+
/** Supplies column actions and sort state for this rendered header. */
|
|
13
11
|
header: HeaderContext<T, TValue>;
|
|
14
12
|
};
|
|
15
|
-
/**
|
|
16
|
-
* Data table header cell with focus management
|
|
17
|
-
* @param props - The props for the DataTableHeaderCell component
|
|
18
|
-
* @param props.cellPosition - The cell position of the cell
|
|
19
|
-
* @param props.children - The children of the DataTableHeaderCell component
|
|
20
|
-
* @param props.header - The header of the DataTableHeaderCell component
|
|
21
|
-
* @param props.isFocused - Whether the cell is focused
|
|
22
|
-
*/
|
|
23
13
|
declare function DataTableHeaderCellInner<T, TValue>(props: DataTableHeaderCellProps<T, TValue>, forwardedRef: Ref<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* Data table header cell with focus management and ref forwarding
|
|
26
|
-
*/
|
|
14
|
+
/** ARIA grid header cell with roving focus and column-specific actions. */
|
|
27
15
|
export declare const DataTableHeaderCell: <T, TValue>(props: DataTableHeaderCellProps<T, TValue> & {
|
|
28
16
|
ref?: Ref<HTMLDivElement>;
|
|
29
17
|
}) => ReturnType<typeof DataTableHeaderCellInner>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { DataTableBodyImmutableCellProps } from './DataTableBodyImmutableCell';
|
|
2
|
+
/**
|
|
3
|
+
* Read-only ARIA grid cell that opens clipped content in a disclosure surface.
|
|
4
|
+
* Supports pointer activation and the grid's disclosure and navigation keys.
|
|
5
|
+
*/
|
|
2
6
|
export declare function DataTableOverflowCell<T>(props: DataTableBodyImmutableCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* common case while keeping reactive state where needed (tooltip visibility).
|
|
6
|
-
*
|
|
7
|
-
* @param elementRef Ref to the element whose cell-focus state we want to track.
|
|
8
|
-
* @returns True when the cell ancestor currently contains document.activeElement.
|
|
3
|
+
* Whether the nearest `[data-anv="table-body-cell"]` ancestor currently
|
|
4
|
+
* contains focus. Starts `false` until a `focusin` on that cell.
|
|
9
5
|
*/
|
|
10
6
|
export declare function useCellFocusListener(elementRef: RefObject<HTMLElement>): boolean;
|
|
@@ -1,48 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* This column typically contains expand buttons, but may also contain
|
|
4
|
-
* checkboxes for nested rows when selection is enabled.
|
|
2
|
+
* Expand-arrow column.
|
|
5
3
|
*/
|
|
6
4
|
export declare const INTERNAL_ROW_ACTION_PRIMARY_COLUMN_ID = "a2-table-internal-row-action-primary";
|
|
7
5
|
/**
|
|
8
|
-
*
|
|
9
|
-
* This column contains checkboxes for row selection when enabled.
|
|
10
|
-
* For nested rows, this column renders nothing (selection is handled
|
|
11
|
-
* in the primary action column instead).
|
|
6
|
+
* Row-selection checkbox column.
|
|
12
7
|
*/
|
|
13
8
|
export declare const INTERNAL_ROW_ACTION_SECONDARY_COLUMN_ID = "a2-table-internal-row-action-secondary";
|
|
14
9
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* only
|
|
10
|
+
* Per-row height for the virtualizer `estimateSize` and the first-load spacer
|
|
11
|
+
* (`rowsPerPage * this`, then clamped). Measurement replaces it after first
|
|
12
|
+
* paint, so it only shapes the pre-measurement scroll range and spacer.
|
|
18
13
|
*/
|
|
19
14
|
export declare const DEFAULT_ESTIMATED_ROW_HEIGHT = 35;
|
|
20
15
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* than most viewports at large page sizes (1750px at 50 rows per page) and
|
|
25
|
-
* renders as a large empty area with a spinner in it. There is no real height
|
|
26
|
-
* to preserve before the body has been measured, so cap the estimate at
|
|
27
|
-
* something that still reads as a table.
|
|
16
|
+
* Ceiling for the first-load loading spacer. Uncapped `rowsPerPage * estimated
|
|
17
|
+
* row height` is taller than the viewport at large page sizes and leaves a
|
|
18
|
+
* tall empty spinner well.
|
|
28
19
|
*/
|
|
29
20
|
export declare const MAX_INITIAL_LOADING_HEIGHT = 400;
|
|
30
21
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* The spacer centers a medium `Spinner`, which is 40px square, so a very small
|
|
34
|
-
* page size would otherwise render a spacer too short to contain its own
|
|
35
|
-
* spinner (35px at `rowsPerPage: 1`). Leave room for it.
|
|
22
|
+
* Floor for the first-load loading spacer so a small page size still contains
|
|
23
|
+
* the centered medium Spinner.
|
|
36
24
|
*/
|
|
37
25
|
export declare const MIN_INITIAL_LOADING_HEIGHT = 80;
|
|
38
26
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* `rowsPerPage` comes from `paginationObject?.rowsPerPage ?? 25`, and `??` only
|
|
43
|
-
* substitutes for null and undefined — an explicit `0`, a negative, or a `NaN`
|
|
44
|
-
* parsed from user input all survive it. Multiplying any of them out would
|
|
45
|
-
* render `0px`, a negative height, or `NaNpx`, collapsing the spacer that this
|
|
46
|
-
* exists to prevent.
|
|
27
|
+
* First-load spacer height when `rowsPerPage` is not a positive number.
|
|
28
|
+
* `paginationObject?.rowsPerPage ?? 25` only replaces nullish values, so `0`,
|
|
29
|
+
* negatives, and `NaN` skip the estimated-height clamp and use this instead.
|
|
47
30
|
*/
|
|
48
31
|
export declare const DEFAULT_INITIAL_LOADING_HEIGHT = 200;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { CellPosition } from '../../../../internal/types';
|
|
2
2
|
export type DTFocusState = {
|
|
3
|
-
/**
|
|
4
|
-
* The currently focused cell or null if no cell is focused
|
|
5
|
-
*/
|
|
6
3
|
focusedCell: CellPosition | null;
|
|
7
|
-
/**
|
|
8
|
-
* The last focused cell when the table was blurred or { rowIndex: 0, columnIndex: 0 } if never focused
|
|
9
|
-
*/
|
|
4
|
+
/** Cell that receives focus when the grid root is entered. */
|
|
10
5
|
focusRestorePoint: CellPosition;
|
|
11
6
|
};
|
|
12
7
|
export type DTFocusStateContextValue = {
|
package/dist/src/beta/components/Table/DataTable/internal/context/focus/DTFocusProvider.d.ts
CHANGED
|
@@ -9,4 +9,7 @@ export interface DTFocusProviderProps {
|
|
|
9
9
|
virtualizer?: DataTableVirtualizer;
|
|
10
10
|
headerRowCount: number;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Coordinates roving focus across rendered and virtualized data-table cells.
|
|
14
|
+
*/
|
|
12
15
|
export declare function DTFocusProvider({ children, rowCount, columnCount, tableRef, leftPinnedWidth, rightPinnedWidth, virtualizer, headerRowCount, }: DTFocusProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CellPosition } from '../../../../internal/types';
|
|
2
|
+
/** Returns focus commands from the nearest data-table focus provider. */
|
|
2
3
|
export declare function useDTFocusDispatchContext(): {
|
|
3
4
|
focusTableGenerally: () => void;
|
|
4
5
|
moveFocusToCell: (cellPosition: CellPosition) => void;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export type DataTableRowClickContextValue = {
|
|
2
|
-
/**
|
|
2
|
+
/** Enables row-click affordances when the consumer supplied a handler. */
|
|
3
3
|
isRowClickEnabled: boolean;
|
|
4
|
-
/**
|
|
5
|
-
* Fire the row-click callback for the given (TanStack) row id. No-ops when
|
|
6
|
-
* row click is disabled or the row is read-only.
|
|
7
|
-
*/
|
|
4
|
+
/** Invokes the latest callback when present unless the row is read-only. */
|
|
8
5
|
clickRow: (rowId: string) => void;
|
|
9
6
|
};
|
|
10
7
|
export declare const DataTableRowClickContext: import('react').Context<DataTableRowClickContextValue>;
|
|
@@ -10,10 +10,7 @@ export type DataTableRowClickProviderProps = {
|
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* stable means consuming rows/cells never re-render just because the consumer
|
|
16
|
-
* passed a new `onClickRow` reference, while the ref read always sees the
|
|
17
|
-
* latest handler and read-only map.
|
|
13
|
+
* Keeps `clickRow` stable while reading the latest callback and read-only map
|
|
14
|
+
* from refs.
|
|
18
15
|
*/
|
|
19
16
|
export declare function DataTableRowClickProvider({ onClickRow, readOnlyRowMap, children, }: DataTableRowClickProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
export type DataTableSurfaceRegistration = {
|
|
3
3
|
id: string;
|
|
4
|
+
/** Closes the surface, optionally suppressing focus restoration. */
|
|
4
5
|
close: (options?: {
|
|
5
6
|
restoreFocus?: boolean;
|
|
6
7
|
}) => void;
|
|
7
8
|
};
|
|
8
9
|
export type DataTableSurfaceCoordinator = {
|
|
10
|
+
/** Closes the previous surface without restoring focus, then registers this one. */
|
|
9
11
|
requestOpen: (registration: DataTableSurfaceRegistration) => void;
|
|
12
|
+
/** Clears the active registration only when its id matches. */
|
|
10
13
|
clear: (id: string) => void;
|
|
14
|
+
/** After place/drag/resize, keep overlapping this element's box; DataTable passes the table container. */
|
|
11
15
|
intersectionBoundaryRef?: RefObject<HTMLElement | null>;
|
|
12
16
|
};
|
|
13
17
|
export declare const DataTableSurfaceCoordinatorContext: import('react').Context<DataTableSurfaceCoordinator | null>;
|
|
@@ -3,5 +3,6 @@ type DataTableSurfaceCoordinatorProviderProps = {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
intersectionBoundaryRef?: RefObject<HTMLElement | null>;
|
|
5
5
|
};
|
|
6
|
+
/** Ensures only one cell-owned surface remains open at a time. */
|
|
6
7
|
export declare function DataTableSurfaceCoordinatorProvider({ children, intersectionBoundaryRef, }: DataTableSurfaceCoordinatorProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { EditableCellImperativeHandle, BaseEditableCellProps } from './types';
|
|
2
2
|
export type DataTableEditableBooleanCellProps<T> = BaseEditableCellProps<T>;
|
|
3
|
+
/**
|
|
4
|
+
* Menu editor for boolean cells. Missing boolean `editConfig`, or a value that
|
|
5
|
+
* is neither boolean nor nullish, falls back to a read-only body cell. Labels
|
|
6
|
+
* prefer `editConfig`, then formatter options, then True/False; Unset only when
|
|
7
|
+
* `allowNull`.
|
|
8
|
+
*/
|
|
3
9
|
export declare const DataTableEditableBooleanCell: (<T>(props: DataTableEditableBooleanCellProps<T> & {
|
|
4
10
|
ref?: React.Ref<EditableCellImperativeHandle>;
|
|
5
11
|
}) => React.ReactElement) & {
|