@servicetitan/anvil2 3.16.1 → 3.18.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/CHANGELOG.md +88 -0
- package/dist/{AiMark-BfmK30vL.js → AiMark-Ca7WmL-9.js} +114 -33
- package/dist/AiMark-Ca7WmL-9.js.map +1 -0
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-lLo1N7Tj.js → Alert-BOqBFMUV.js} +3 -3
- package/dist/{Alert-lLo1N7Tj.js.map → Alert-BOqBFMUV.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-PfnsVVz1.js → Announcement-AN9HnhZ-.js} +2 -2
- package/dist/{Announcement-PfnsVVz1.js.map → Announcement-AN9HnhZ-.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-DagOuc9c.js → AnvilProvider-BVTxXzoS.js} +3 -3
- package/dist/{AnvilProvider-DagOuc9c.js.map → AnvilProvider-BVTxXzoS.js.map} +1 -1
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Breadcrumbs-RdL4Fvmu.js → Breadcrumbs-1MCqy-gU.js} +2 -2
- package/dist/{Breadcrumbs-RdL4Fvmu.js.map → Breadcrumbs-1MCqy-gU.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-Dn6-01xl.js → Button-B_E6ybA-.js} +3 -3
- package/dist/{Button-Dn6-01xl.js.map → Button-B_E6ybA-.js.map} +1 -1
- package/dist/Button.js +1 -1
- package/dist/{ButtonToggle-BSU8GBxr.js → ButtonToggle-D0eXySEM.js} +2 -2
- package/dist/{ButtonToggle-BSU8GBxr.js.map → ButtonToggle-D0eXySEM.js.map} +1 -1
- package/dist/ButtonToggle.js +1 -1
- package/dist/{luxon-wpz4A-OQ.js → Calendar-BcsuV4Xv.js} +1761 -3
- package/dist/Calendar-BcsuV4Xv.js.map +1 -0
- package/dist/{Calendar-DoLRAWLp.js → Calendar-oBRbQqnG.js} +2 -2
- package/dist/{Calendar-DoLRAWLp.js.map → Calendar-oBRbQqnG.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/{Checkbox-U-kuWhgc.js → Checkbox-BCaUzwF_.js} +2 -2
- package/dist/{Checkbox-U-kuWhgc.js.map → Checkbox-BCaUzwF_.js.map} +1 -1
- package/dist/{Checkbox-CVxbe-iN.js → Checkbox-BocPrjKC.js} +4 -4
- package/dist/{Checkbox-CVxbe-iN.js.map → Checkbox-BocPrjKC.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-2OydLs66.js → Chip-BWqgUX71.js} +11 -24
- package/dist/Chip-BWqgUX71.js.map +1 -0
- package/dist/Chip.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-DIXP9-Bx.js → DataTableEditColumnsDrawer-C7OHRsJU.js} +1373 -289
- package/dist/DataTableEditColumnsDrawer-C7OHRsJU.js.map +1 -0
- package/dist/{DataTable.css → DataTableEditColumnsDrawer.css} +90 -33
- package/dist/{DateFieldRange-X2jdOTYY.js → DateFieldRange-BPcsS6TW.js} +6 -7
- package/dist/{DateFieldRange-X2jdOTYY.js.map → DateFieldRange-BPcsS6TW.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-BJ16tpOz.js → DateFieldSingle-BRMhe0OM.js} +6 -7
- package/dist/{DateFieldSingle-BJ16tpOz.js.map → DateFieldSingle-BRMhe0OM.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-CMm8vtz_.js → DateFieldYearless-NOgDKzrJ.js} +6 -6
- package/dist/{DateFieldYearless-CMm8vtz_.js.map → DateFieldYearless-NOgDKzrJ.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-BHHs-Z1Q.js → DateFieldYearlessRange-ChvypgXC.js} +5 -5
- package/dist/{DateFieldYearlessRange-BHHs-Z1Q.js.map → DateFieldYearlessRange-ChvypgXC.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-BHXxs0Bo.js → DaysOfTheWeek-nYitIKnQ.js} +4 -4
- package/dist/{DaysOfTheWeek-BHXxs0Bo.js.map → DaysOfTheWeek-nYitIKnQ.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/Details-B2F3auTX.js +216 -0
- package/dist/Details-B2F3auTX.js.map +1 -0
- package/dist/{Details-BxqP-5vp.js → Details-DQ-_Mg4o.js} +3 -3
- package/dist/{Details-BxqP-5vp.js.map → Details-DQ-_Mg4o.js.map} +1 -1
- package/dist/Details.css +92 -68
- package/dist/Details.js +1 -1
- package/dist/Details2.css +137 -0
- package/dist/{Dialog-_tHqOsbr.js → Dialog-BgWoV2on.js} +10 -7
- package/dist/Dialog-BgWoV2on.js.map +1 -0
- package/dist/Dialog.js +1 -1
- package/dist/{DialogCancelButton-C0r8hJ8Z.js → DialogCancelButton-CplrFu69.js} +2 -2
- package/dist/{DialogCancelButton-C0r8hJ8Z.js.map → DialogCancelButton-CplrFu69.js.map} +1 -1
- package/dist/Dnd.js +2 -2
- package/dist/{DndHandleButton-BRlodkDO.js → DndHandleButton-BJqj2hc0.js} +6 -4
- package/dist/DndHandleButton-BJqj2hc0.js.map +1 -0
- package/dist/DndSort.js +2 -2
- package/dist/{Drawer-D-ThWNp0.js → Drawer-BVBLtGn_.js} +12 -9
- package/dist/Drawer-BVBLtGn_.js.map +1 -0
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.css +41 -34
- package/dist/DrillDown.js +1 -1
- package/dist/DrillDown.module-BFE5BcJB.js +28 -0
- package/dist/DrillDown.module-BFE5BcJB.js.map +1 -0
- package/dist/{EditCard-B6l2vhBS.js → EditCard-hivZDPZh.js} +3 -3
- package/dist/{EditCard-B6l2vhBS.js.map → EditCard-hivZDPZh.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-ThEmUiAq.js → FieldLabel-Cn559Brf.js} +8 -58
- package/dist/FieldLabel-Cn559Brf.js.map +1 -0
- package/dist/FieldLabel.css +1 -12
- package/dist/FieldLabel.js +1 -1
- package/dist/FieldMessage.js +1 -1
- package/dist/{FilterBar-CGsDg6Hy.js → FilterBar-COd38Ent.js} +7 -7
- package/dist/{FilterBar-CGsDg6Hy.js.map → FilterBar-COd38Ent.js.map} +1 -1
- package/dist/FilterBar.js +1 -1
- package/dist/InlineMarkdown-CL1tKR01.js +87 -0
- package/dist/InlineMarkdown-CL1tKR01.js.map +1 -0
- package/dist/InlineMarkdown.css +12 -0
- package/dist/{InputMask-BQigi5oW.js → InputMask-DICWdeiF.js} +3 -3
- package/dist/{InputMask-BQigi5oW.js.map → InputMask-DICWdeiF.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{ListView-YJscfG4x.js → ListView-BeGBn5Vk.js} +87 -108
- package/dist/ListView-BeGBn5Vk.js.map +1 -0
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-CD9ZptSZ.js → Listbox-n1CmJ2gh.js} +2 -2
- package/dist/{Listbox-CD9ZptSZ.js.map → Listbox-n1CmJ2gh.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/{Menu-Da2OEN0o.js → Menu-DqP7YQgE.js} +2 -2
- package/dist/{Menu-Da2OEN0o.js.map → Menu-DqP7YQgE.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{MenuFooter-D__gg92C.js → MenuFooter-Dzhv0EfD.js} +2 -2
- package/dist/{MenuFooter-D__gg92C.js.map → MenuFooter-Dzhv0EfD.js.map} +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-Cq5sena6.js → MultiSelectFieldSync-CWsOdu-o.js} +45 -63
- package/dist/MultiSelectFieldSync-CWsOdu-o.js.map +1 -0
- package/dist/MultiSelectFieldSync.css +107 -69
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-BhNXsgAN.js → MultiSelectMenuSync-AVcf8ZUZ.js} +17 -30
- package/dist/MultiSelectMenuSync-AVcf8ZUZ.js.map +1 -0
- package/dist/{useNumberField-CXFYUZ_n.js → NumberField-DjOvcCa1.js} +251 -5
- package/dist/NumberField-DjOvcCa1.js.map +1 -0
- package/dist/NumberField.js +1 -1
- package/dist/{Page-ZSHNJs7z.js → Page-_dh-JesM.js} +134 -85
- package/dist/Page-_dh-JesM.js.map +1 -0
- package/dist/Page.css +85 -80
- package/dist/Page.js +1 -1
- package/dist/{Pagination-Bsl99RRI.js → Pagination-CsSpaTCs.js} +5 -5
- package/dist/{Pagination-Bsl99RRI.js.map → Pagination-CsSpaTCs.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-CIh1CsoJ.js → Popover-CEKl0WY3.js} +4 -4
- package/dist/{Popover-CIh1CsoJ.js.map → Popover-CEKl0WY3.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-zPKYv4Il.js → ProgressBar-ubCKKewC.js} +3 -3
- package/dist/{ProgressBar-zPKYv4Il.js.map → ProgressBar-ubCKKewC.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-C1VnatcL.js → Radio-DkB6zFsS.js} +2 -2
- package/dist/{Radio-C1VnatcL.js.map → Radio-DkB6zFsS.js.map} +1 -1
- package/dist/{Radio-BYowelK2.js → Radio-q1Vp_ZQG.js} +4 -4
- package/dist/{Radio-BYowelK2.js.map → Radio-q1Vp_ZQG.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{RichTextEditor-DcAVqd2d.js → RichTextEditor-BHt6sWMA.js} +11 -11
- package/dist/{RichTextEditor-DcAVqd2d.js.map → RichTextEditor-BHt6sWMA.js.map} +1 -1
- package/dist/RichTextEditor.js +1 -1
- package/dist/{SavedFiltersButton-BLvi8j1T.js → SavedFiltersButton-Cl58iHZe.js} +10 -10
- package/dist/{SavedFiltersButton-BLvi8j1T.js.map → SavedFiltersButton-Cl58iHZe.js.map} +1 -1
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/{SearchField-ChoNtw8w.js → SearchField-Bk-Ltu4v.js} +2 -2
- package/dist/{SearchField-ChoNtw8w.js.map → SearchField-Bk-Ltu4v.js.map} +1 -1
- package/dist/{SearchField-DX8hZyo2.js → SearchField-INVftpNM.js} +2 -2
- package/dist/{SearchField-DX8hZyo2.js.map → SearchField-INVftpNM.js.map} +1 -1
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-BHVJmmTH.js → SegmentedControl-BCqWq65N.js} +3 -3
- package/dist/{SegmentedControl-BHVJmmTH.js.map → SegmentedControl-BCqWq65N.js.map} +1 -1
- package/dist/SegmentedControl.js +1 -1
- package/dist/{SelectCard-DrmMU_GD.js → SelectCard-DeAUW1bL.js} +3 -3
- package/dist/{SelectCard-DrmMU_GD.js.map → SelectCard-DeAUW1bL.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-BxsKvfqo.js → SelectFieldLabel-DaXwIFZj.js} +2 -2
- package/dist/{SelectFieldLabel-BxsKvfqo.js.map → SelectFieldLabel-DaXwIFZj.js.map} +1 -1
- package/dist/{SelectFieldSync-CeazN-gI.js → SelectFieldSync-DpZL4wDo.js} +48 -69
- package/dist/SelectFieldSync-DpZL4wDo.js.map +1 -0
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-CPpE6vUG.js → SelectMenuSync-Klna2oqs.js} +17 -36
- package/dist/SelectMenuSync-Klna2oqs.js.map +1 -0
- package/dist/{SelectOptions-BDAu_9dv.js → SelectOptions-DGYYFU8i.js} +2 -2
- package/dist/{SelectOptions-BDAu_9dv.js.map → SelectOptions-DGYYFU8i.js.map} +1 -1
- package/dist/{SelectTrigger-B4OUTO9S.js → SelectTrigger-DKY7rpZn.js} +2 -2
- package/dist/{SelectTrigger-B4OUTO9S.js.map → SelectTrigger-DKY7rpZn.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-BTWSaiQ-.js → SelectTriggerBase-DUYq_L-6.js} +6 -6
- package/dist/{SelectTriggerBase-BTWSaiQ-.js.map → SelectTriggerBase-DUYq_L-6.js.map} +1 -1
- package/dist/SelectTriggerBase.css +94 -56
- package/dist/SelectTriggerBase.module-C-NmZbg4.js +41 -0
- package/dist/SelectTriggerBase.module-C-NmZbg4.js.map +1 -0
- package/dist/{Stepper-l_P6VPOv.js → Stepper-D3SHXfX1.js} +3 -3
- package/dist/{Stepper-l_P6VPOv.js.map → Stepper-D3SHXfX1.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-1iNdXTik.js → Switch-C9yQgF4w.js} +2 -2
- package/dist/{Switch-1iNdXTik.js.map → Switch-C9yQgF4w.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/{Tab-DR5YYXkq.js → Tab-CXwVQ5-G.js} +11 -7
- package/dist/Tab-CXwVQ5-G.js.map +1 -0
- package/dist/Tab.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-rihxXHSe.js → Text-D4SWT4u-.js} +2 -2
- package/dist/{Text-rihxXHSe.js.map → Text-D4SWT4u-.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-vuS7xeo-.js → TextField-CKXSxube.js} +5 -5
- package/dist/{TextField-vuS7xeo-.js.map → TextField-CKXSxube.js.map} +1 -1
- package/dist/{TextField-Bxd-Qzoi.js → TextField-DmdT2k0w.js} +2 -2
- package/dist/{TextField-Bxd-Qzoi.js.map → TextField-DmdT2k0w.js.map} +1 -1
- package/dist/TextField.css +38 -23
- package/dist/TextField.js +1 -1
- package/dist/TextField.module-B3y6caP9.js +25 -0
- package/dist/TextField.module-B3y6caP9.js.map +1 -0
- package/dist/{Textarea-ppapJUwh.js → Textarea-Dv__veBJ.js} +11 -11
- package/dist/{Textarea-ppapJUwh.js.map → Textarea-Dv__veBJ.js.map} +1 -1
- package/dist/Textarea.css +26 -11
- package/dist/Textarea.js +1 -1
- package/dist/{ThemeProvider-DW-Mflv6.js → ThemeProvider-DS2aL89d.js} +2 -2
- package/dist/{ThemeProvider-DW-Mflv6.js.map → ThemeProvider-DS2aL89d.js.map} +1 -1
- package/dist/ThemeProvider.css +6 -4
- package/dist/ThemeProvider.js +1 -1
- package/dist/ThemeProvider.module-BkKwAw2f.js +8 -0
- package/dist/ThemeProvider.module-BkKwAw2f.js.map +1 -0
- package/dist/{TimeField-Hwt_oRbg.js → TimeField-De9qBimk.js} +49 -11
- package/dist/TimeField-De9qBimk.js.map +1 -0
- package/dist/TimeField.js +1 -1
- package/dist/{TimezoneMessage-BrKB_psP.js → TimezoneMessage-DEJX87S3.js} +2 -2
- package/dist/{TimezoneMessage-BrKB_psP.js.map → TimezoneMessage-DEJX87S3.js.map} +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-dVGVVcat.js → Toaster-BlwTxTLf.js} +2 -2
- package/dist/{Toaster-dVGVVcat.js.map → Toaster-BlwTxTLf.js.map} +1 -1
- package/dist/{Toaster-SqkX0Kes.js → Toaster-sO16N9b5.js} +26 -14
- package/dist/Toaster-sO16N9b5.js.map +1 -0
- package/dist/{Toolbar-DGHZpFi9.js → Toolbar-BhrHuIN7.js} +7 -7
- package/dist/{Toolbar-DGHZpFi9.js.map → Toolbar-BhrHuIN7.js.map} +1 -1
- package/dist/{Toolbar-CMulzswf.js → Toolbar-Buq2zze0.js} +6 -6
- package/dist/{Toolbar-CMulzswf.js.map → Toolbar-Buq2zze0.js.map} +1 -1
- package/dist/Toolbar.js +2 -2
- package/dist/{ToolbarButtonToggle-T8YnSJ5x.js → ToolbarButtonToggle-CNIaqVWl.js} +3 -3
- package/dist/{ToolbarButtonToggle-T8YnSJ5x.js.map → ToolbarButtonToggle-CNIaqVWl.js.map} +1 -1
- package/dist/{Tooltip-C_VcYS9P.js → Tooltip-CsTkZqMg.js} +3 -3
- package/dist/{Tooltip-C_VcYS9P.js.map → Tooltip-CsTkZqMg.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/TreeSelectField.js +1 -1
- package/dist/{TreeSelectFieldSync-DT6uZ3Ca.js → TreeSelectFieldSync-B7w31kbz.js} +23 -23
- package/dist/{TreeSelectFieldSync-DT6uZ3Ca.js.map → TreeSelectFieldSync-B7w31kbz.js.map} +1 -1
- package/dist/TreeSelectFieldSync.css +57 -34
- package/dist/TreeSelectMenu.js +1 -1
- package/dist/{TreeSelectMenuSync-D2TvKxP-.js → TreeSelectMenuSync-EjxlvDZp.js} +5 -5
- package/dist/{TreeSelectMenuSync-D2TvKxP-.js.map → TreeSelectMenuSync-EjxlvDZp.js.map} +1 -1
- package/dist/{TypeaheadTextField-DgazozK7.js → TypeaheadTextField-DTOkaJda.js} +3 -3
- package/dist/{TypeaheadTextField-DgazozK7.js.map → TypeaheadTextField-DTOkaJda.js.map} +1 -1
- package/dist/TypeaheadTextField.js +1 -1
- package/dist/{YearlessDateInputWithPicker-Bc8a33D5.js → YearlessDateInputWithPicker-DJUQypnF.js} +4 -4
- package/dist/{YearlessDateInputWithPicker-Bc8a33D5.js.map → YearlessDateInputWithPicker-DJUQypnF.js.map} +1 -1
- package/dist/assets/icons/st/gnav_messages_active.svg +1 -0
- package/dist/assets/icons/st/gnav_messages_inactive.svg +1 -0
- package/dist/assets/icons/st.ts +2 -0
- package/dist/beta.js +19 -18
- package/dist/beta.js.map +1 -1
- package/dist/{bulkActionTypes-SukoplGV.js → bulkActionTypes-bznuvizE.js} +2 -2
- package/dist/{bulkActionTypes-SukoplGV.js.map → bulkActionTypes-bznuvizE.js.map} +1 -1
- package/dist/{filter-state-D3-SYfuy.js → filter-state-DxwL15y1.js} +25 -25
- package/dist/{filter-state-D3-SYfuy.js.map → filter-state-DxwL15y1.js.map} +1 -1
- package/dist/{index-C2dOrf4N.js → index-Bn56UnMm.js} +2 -2
- package/dist/{index-C2dOrf4N.js.map → index-Bn56UnMm.js.map} +1 -1
- package/dist/{index-Bldaza5t.js → index-CyN5oapA.js} +2 -2
- package/dist/{index-Bldaza5t.js.map → index-CyN5oapA.js.map} +1 -1
- package/dist/index-DfZCfS0S.js +36 -0
- package/dist/index-DfZCfS0S.js.map +1 -0
- package/dist/{index.esm-C2ZhC_8d.js → index.esm-CQXMoq5w.js} +2 -2
- package/dist/{index.esm-C2ZhC_8d.js.map → index.esm-CQXMoq5w.js.map} +1 -1
- package/dist/index.js +171 -127
- package/dist/index.js.map +1 -1
- package/dist/index2.css +78 -73
- package/dist/{portalScopeClassNames-DA28LrXe.js → portalScopeClassNames-CMdDYHE0.js} +2 -2
- package/dist/{portalScopeClassNames-DA28LrXe.js.map → portalScopeClassNames-CMdDYHE0.js.map} +1 -1
- package/dist/{react-ORV84FjM.js → react-CG1BUt2y.js} +5 -38
- package/dist/react-CG1BUt2y.js.map +1 -0
- package/dist/src/beta/components/Details/Details.d.ts +25 -0
- package/dist/src/beta/components/Details/DetailsSummary.d.ts +121 -0
- package/dist/src/beta/components/Details/index.d.ts +4 -0
- package/dist/src/beta/components/Details/internal/DetailsArrow.d.ts +11 -0
- package/dist/src/beta/components/Details/internal/DetailsSummaryCells.d.ts +5 -0
- package/dist/src/beta/components/Page/Page.d.ts +1 -0
- package/dist/src/beta/components/Page/PageSidebar.d.ts +12 -0
- package/dist/src/beta/components/Table/DataTable/DataTable.d.ts +31 -4
- package/dist/src/beta/components/Table/DataTable/DataTableEditColumnsDrawer.d.ts +18 -0
- package/dist/src/beta/components/Table/DataTable/index.d.ts +1 -0
- package/dist/src/beta/components/Table/DataTable/internal/DataTableAddRow.d.ts +11 -0
- package/dist/src/beta/components/Table/DataTable/internal/DataTableBulkActionBar.d.ts +23 -0
- package/dist/src/beta/components/Table/DataTable/internal/DataTableFilterToolbar.d.ts +12 -0
- package/dist/src/beta/components/Table/DataTable/internal/DataTablePagination.d.ts +3 -3
- package/dist/src/beta/components/Table/DataTable/internal/columnEditing/EditColumnsDrawer.d.ts +29 -0
- package/dist/src/beta/components/Table/DataTable/internal/columnEditing/columnLayout.d.ts +43 -0
- package/dist/src/beta/components/Table/DataTable/internal/columnEditing/toEditColumnsSection.d.ts +7 -0
- package/dist/src/beta/components/Table/DataTable/internal/context/tabbables/CellTabbablesQueue.d.ts +23 -0
- package/dist/src/beta/components/Table/DataTable/parts.d.ts +17 -0
- package/dist/src/beta/components/Table/DataTable/types.d.ts +256 -2
- package/dist/src/beta/components/Table/types.d.ts +6 -0
- package/dist/src/beta/components/deprecatedReexports/MultiSelectField.d.ts +4 -4
- package/dist/src/beta/components/deprecatedReexports/MultiSelectMenu.d.ts +4 -4
- package/dist/src/beta/components/deprecatedReexports/SelectField.d.ts +4 -4
- package/dist/src/beta/components/deprecatedReexports/SelectMenu.d.ts +4 -4
- package/dist/src/beta/components/index.d.ts +1 -0
- package/dist/src/components/DrillDown/DrillDownHeader.d.ts +11 -2
- package/dist/src/components/DrillDown/index.d.ts +1 -1
- package/dist/src/components/DrillDown/internal/DrillDownContext.d.ts +7 -2
- package/dist/src/components/DrillDown/internal/useDrillDownContextState.d.ts +6 -3
- package/dist/src/components/MultiSelectField/internal/MultiSelectFieldComboboxMode.d.ts +1 -1
- package/dist/src/components/MultiSelectField/internal/MultiSelectFieldSelectMode.d.ts +1 -1
- package/dist/src/components/MultiSelectField/internal/types.d.ts +0 -1
- package/dist/src/components/Page/Page.d.ts +1 -0
- package/dist/src/components/Page/PageSidebar.d.ts +12 -0
- package/dist/src/components/SelectField/internal/SelectFieldComboboxMode.d.ts +1 -1
- package/dist/src/components/SelectField/internal/SelectFieldSelectMode.d.ts +1 -1
- package/dist/src/hooks/usePrefersReducedMotion/index.d.ts +2 -0
- package/dist/src/hooks/usePrefersReducedMotion/prefersReducedMotion.d.ts +6 -0
- package/dist/src/hooks/usePrefersReducedMotion/useReducedMotion.d.ts +5 -0
- package/dist/src/internal/components/InlineMarkdown/InlineMarkdown.d.ts +8 -1
- package/dist/src/internal/components/InlineMarkdown/index.d.ts +1 -1
- package/dist/src/internal/components/Popover/Popover.d.ts +10 -5
- package/dist/src/internal/components/Popover/internal/verticalPlacement.d.ts +9 -0
- package/dist/src/internal/contexts/DisableConditionalUnmountWarningContext.d.ts +6 -0
- package/dist/src/internal/contexts/SuppressPanelSwapWarningContext.d.ts +13 -0
- package/dist/src/internal/functions/inlineMarkdown.d.ts +5 -2
- package/dist/src/internal/functions/stripInlineMarkdown.d.ts +4 -2
- package/dist/src/internal/hooks/index.d.ts +1 -0
- package/dist/src/internal/hooks/useSelectFieldLoading/useSelectFieldLoading.d.ts +9 -1
- package/dist/src/internal/hooks/useSelectOrchestration.d.ts +0 -1
- package/dist/src/internal/hooks/useWarnOnConditionalUnmount/index.d.ts +1 -0
- package/dist/src/internal/hooks/useWarnOnConditionalUnmount/useWarnOnConditionalUnmount.d.ts +1 -0
- package/dist/src/internal/testing/keepMutationObserversAlive.d.ts +9 -0
- package/dist/src/internal/types/selectFieldInternalTypes.d.ts +0 -1
- package/dist/src/internal/utils/inlineMarkdownRegex.d.ts +5 -0
- package/dist/stripInlineMarkdown-BV12XXzl.js +35 -0
- package/dist/stripInlineMarkdown-BV12XXzl.js.map +1 -0
- package/dist/{syncFilterUtils-SMop8ckR.js → syncFilterUtils-BNbAB0jz.js} +110 -39
- package/dist/syncFilterUtils-BNbAB0jz.js.map +1 -0
- package/dist/token/core/component-variables.scss +52 -49
- package/dist/token/core/component.d.ts +2 -0
- package/dist/token/core/component.js +66 -49
- package/dist/token/core/component.scss +42 -40
- package/dist/token/core/semantic-variables.scss +2 -0
- package/dist/token/core/semantic.d.ts +1 -0
- package/dist/token/core/semantic.js +13 -0
- package/dist/token/core/semantic.scss +1 -0
- package/dist/token.js +82 -49
- package/dist/token.js.map +1 -1
- package/dist/{treeSync-B38r1dRQ.js → treeSync-BELsX1gY.js} +3 -3
- package/dist/{treeSync-B38r1dRQ.js.map → treeSync-BELsX1gY.js.map} +1 -1
- package/dist/{use-reduced-motion-yYB9Tb0D.js → use-reduced-motion-CUshwaEW.js} +2 -2
- package/dist/{use-reduced-motion-yYB9Tb0D.js.map → use-reduced-motion-CUshwaEW.js.map} +1 -1
- package/dist/{useDrillDownContext-D5_NjqY4.js → useDrillDownContext-BLDjyNEt.js} +2 -2
- package/dist/{useDrillDownContext-D5_NjqY4.js.map → useDrillDownContext-BLDjyNEt.js.map} +1 -1
- package/dist/{useDrilldown-BOeeNUsy.js → useDrilldown-B8pIhfWa.js} +55 -22
- package/dist/{useDrilldown-BOeeNUsy.js.map → useDrilldown-B8pIhfWa.js.map} +1 -1
- package/dist/{useInfiniteCombobox-ynkeFngn.js → useInfiniteCombobox-ZZalag0-.js} +4 -4
- package/dist/{useInfiniteCombobox-ynkeFngn.js.map → useInfiniteCombobox-ZZalag0-.js.map} +1 -1
- package/dist/{useInitialFocus-CGybEc6x.js → useInitialFocus-KdirjHEb.js} +51 -16
- package/dist/useInitialFocus-KdirjHEb.js.map +1 -0
- package/dist/{useInvalidateOnOptionsChange-BD2VBpbK.js → useInvalidateOnOptionsChange-ChrPmbtS.js} +6 -6
- package/dist/{useInvalidateOnOptionsChange-BD2VBpbK.js.map → useInvalidateOnOptionsChange-ChrPmbtS.js.map} +1 -1
- package/dist/{usePopoverTransitionStates-CDXCdyKa.js → usePopoverTransitionStates-B1opfxxn.js} +1 -2
- package/dist/{usePopoverTransitionStates-CDXCdyKa.js.map → usePopoverTransitionStates-B1opfxxn.js.map} +1 -1
- package/dist/{usePrefersReducedMotion-DR9B_D6w.js → usePrefersReducedMotion-BLoVFiJL.js} +11 -3
- package/dist/usePrefersReducedMotion-BLoVFiJL.js.map +1 -0
- package/dist/usePrefersReducedMotion.js +2 -1
- package/dist/usePrefersReducedMotion.js.map +1 -1
- package/dist/{utils-CM48ODEJ.js → utils-DwLrXpmt.js} +2 -2
- package/dist/{utils-CM48ODEJ.js.map → utils-DwLrXpmt.js.map} +1 -1
- package/package.json +4 -4
- package/dist/AiMark-BfmK30vL.js.map +0 -1
- package/dist/Calendar-IzXG1aJw.js +0 -1761
- package/dist/Calendar-IzXG1aJw.js.map +0 -1
- package/dist/Chip-2OydLs66.js.map +0 -1
- package/dist/DataTable-DIXP9-Bx.js.map +0 -1
- package/dist/Dialog-_tHqOsbr.js.map +0 -1
- package/dist/DndHandleButton-BRlodkDO.js.map +0 -1
- package/dist/Drawer-D-ThWNp0.js.map +0 -1
- package/dist/DrillDown.module-1VBKDZRA.js +0 -27
- package/dist/DrillDown.module-1VBKDZRA.js.map +0 -1
- package/dist/FieldLabel-ThEmUiAq.js.map +0 -1
- package/dist/Lato.css +0 -24
- package/dist/ListView-YJscfG4x.js.map +0 -1
- package/dist/MultiSelectFieldSync-Cq5sena6.js.map +0 -1
- package/dist/MultiSelectMenuSync-BhNXsgAN.js.map +0 -1
- package/dist/NumberField-CxmJx4gs.js +0 -252
- package/dist/NumberField-CxmJx4gs.js.map +0 -1
- package/dist/Page-ZSHNJs7z.js.map +0 -1
- package/dist/SelectFieldSync-CeazN-gI.js.map +0 -1
- package/dist/SelectMenuSync-CPpE6vUG.js.map +0 -1
- package/dist/SelectTriggerBase.module-Dt4-6YvC.js +0 -40
- package/dist/SelectTriggerBase.module-Dt4-6YvC.js.map +0 -1
- package/dist/Tab-DR5YYXkq.js.map +0 -1
- package/dist/TextField.module-DklyLNKz.js +0 -25
- package/dist/TextField.module-DklyLNKz.js.map +0 -1
- package/dist/ThemeProvider.module-B9qgsQ8S.js +0 -8
- package/dist/ThemeProvider.module-B9qgsQ8S.js.map +0 -1
- package/dist/TimeField-Hwt_oRbg.js.map +0 -1
- package/dist/Toaster-SqkX0Kes.js.map +0 -1
- package/dist/app-css.379821199ec8105f2efd.bundle.css +0 -57579
- package/dist/bugfix-71.1orion.css +0 -491
- package/dist/design-system.859a127fc3b66175f0f0.bundle.css +0 -34599
- package/dist/drag_indicator-BRHAPLSJ.js +0 -6
- package/dist/drag_indicator-BRHAPLSJ.js.map +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/kendo-css.ed976099efbbcc8b0639.bundle.css +0 -20601
- package/dist/luxon-wpz4A-OQ.js.map +0 -1
- package/dist/main.e26f249642be9a4bd747.bundle.css +0 -50386
- package/dist/react-ORV84FjM.js.map +0 -1
- package/dist/stripInlineMarkdown-BhYLEiXu.js +0 -25
- package/dist/stripInlineMarkdown-BhYLEiXu.js.map +0 -1
- package/dist/sui.a9dc22e36a27b7ea1ee8.bundle.css +0 -41149
- package/dist/syncFilterUtils-SMop8ckR.js.map +0 -1
- package/dist/useInitialFocus-CGybEc6x.js.map +0 -1
- package/dist/useNumberField-CXFYUZ_n.js.map +0 -1
- package/dist/usePrefersReducedMotion-DR9B_D6w.js.map +0 -1
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DetailsProps } from '../../../components/Details';
|
|
2
|
+
export type { DetailsProps };
|
|
3
|
+
/**
|
|
4
|
+
* Disclosure container that coordinates its Summary and Content. Supports
|
|
5
|
+
* controlled or uncontrolled expanded state. The root and Content are the
|
|
6
|
+
* stable Details'; the Summary takes a `label` and typed `attributes` cells in
|
|
7
|
+
* place of `children`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Details: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../..').LayoutUtilProps & {
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
13
|
+
/** Row holding the button that toggles the disclosure content, plus optional attribute cells. */
|
|
14
|
+
Summary: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & import('../../..').DataTrackingId & {
|
|
15
|
+
label: string;
|
|
16
|
+
labelProps?: import('./DetailsSummary').DetailsSummaryLabelProps;
|
|
17
|
+
templateColumns?: import('../../..').GridProps["templateColumns"];
|
|
18
|
+
attributes?: import('./DetailsSummary').DetailsSummaryColumnAttribute[];
|
|
19
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
/** Expandable content associated with the summary. */
|
|
21
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
|
+
height?: string | number;
|
|
23
|
+
maxHeight?: string | number;
|
|
24
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { DataTrackingId } from '../../../types';
|
|
3
|
+
import { ButtonProps } from '../../../components/Button';
|
|
4
|
+
import { ChipProps } from '../../../components/Chip';
|
|
5
|
+
import { MenuItemProps } from '../../../components/Menu';
|
|
6
|
+
import { GridProps } from '../../../components/Grid';
|
|
7
|
+
import { BodyTextProps } from '../../../components/Text/types';
|
|
8
|
+
/**
|
|
9
|
+
* Text cell rendered as `label: value`, with the value in bold. Either can be
|
|
10
|
+
* left out; the colon shows only when both are set.
|
|
11
|
+
*/
|
|
12
|
+
export type DetailsSummaryTextAttribute = {
|
|
13
|
+
type: "text";
|
|
14
|
+
/** Regular-weight text before the value. */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** Bold text after the label. */
|
|
17
|
+
value?: string;
|
|
18
|
+
/** Text scale. Defaults to `medium`. */
|
|
19
|
+
size?: BodyTextProps["size"];
|
|
20
|
+
};
|
|
21
|
+
/** Chip cell. `label` and `color` are the Chip's own props. */
|
|
22
|
+
export type DetailsSummaryChipAttribute = {
|
|
23
|
+
type: "chip";
|
|
24
|
+
/** Visible chip text. */
|
|
25
|
+
label: ChipProps["label"];
|
|
26
|
+
/** Surface color; the chip derives a contrast-safe foreground. */
|
|
27
|
+
color?: ChipProps["color"];
|
|
28
|
+
};
|
|
29
|
+
/** Button cell. Only a labeled button, so there is no icon-only variant. */
|
|
30
|
+
export type DetailsSummaryButtonAttribute = {
|
|
31
|
+
type: "button";
|
|
32
|
+
/** Visible button text. */
|
|
33
|
+
label: string;
|
|
34
|
+
/** Visual emphasis. Defaults to `secondary`. */
|
|
35
|
+
appearance?: ButtonProps["appearance"];
|
|
36
|
+
/** A bare icon renders before the label; use `{ after }` to trail it. */
|
|
37
|
+
icon?: ButtonProps["icon"];
|
|
38
|
+
/** Runs on click. The click does not toggle the Details. */
|
|
39
|
+
onClick?: ButtonProps["onClick"];
|
|
40
|
+
};
|
|
41
|
+
export type DetailsSummaryMenuItem = {
|
|
42
|
+
/** Visible item text. */
|
|
43
|
+
label: string;
|
|
44
|
+
/** Runs when the item is selected; the menu then closes. */
|
|
45
|
+
onClick?: MenuItemProps["onClick"];
|
|
46
|
+
/** Keeps the item in keyboard navigation but prevents selection. */
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
};
|
|
49
|
+
/** Menu cell: a button that opens a flat list of items. No submenus. */
|
|
50
|
+
export type DetailsSummaryMenuAttribute = {
|
|
51
|
+
type: "menu";
|
|
52
|
+
/** Trigger button text. */
|
|
53
|
+
label: string;
|
|
54
|
+
/** Items listed in the menu, in order. */
|
|
55
|
+
items: DetailsSummaryMenuItem[];
|
|
56
|
+
};
|
|
57
|
+
/** An attribute cell. Each takes one grid track, following the label in order. */
|
|
58
|
+
export type DetailsSummaryColumnAttribute = DetailsSummaryTextAttribute | DetailsSummaryChipAttribute | DetailsSummaryButtonAttribute | DetailsSummaryMenuAttribute;
|
|
59
|
+
/** Options for the label, which always renders as body text. */
|
|
60
|
+
export type DetailsSummaryLabelProps = {
|
|
61
|
+
/** Text scale. Defaults to `medium`. */
|
|
62
|
+
size?: BodyTextProps["size"];
|
|
63
|
+
/**
|
|
64
|
+
* Adds an info button right after the label that shows this text in a
|
|
65
|
+
* tooltip. The button sits beside the toggle, not inside it, so using it does
|
|
66
|
+
* not expand or collapse the Details.
|
|
67
|
+
*/
|
|
68
|
+
moreInfo?: string;
|
|
69
|
+
};
|
|
70
|
+
export type DetailsSummaryProps = Omit<ComponentPropsWithoutRef<"button">, "children"> & DataTrackingId & {
|
|
71
|
+
/**
|
|
72
|
+
* Text for the first cell, beside the expand arrow. It is bold by default
|
|
73
|
+
* and supports two inline markers: `*italic*` and `==highlight==`.
|
|
74
|
+
*/
|
|
75
|
+
label: string;
|
|
76
|
+
/** Options for the label's Text. */
|
|
77
|
+
labelProps?: DetailsSummaryLabelProps;
|
|
78
|
+
/**
|
|
79
|
+
* Grid tracks shared by the label and the attribute cells, such as
|
|
80
|
+
* `1fr 2fr 1fr`. The label takes the first track and each cell takes the
|
|
81
|
+
* next one, so size a track wider for a cell that needs more room. Cells
|
|
82
|
+
* beyond the tracks wrap to a new row. Defaults to `1fr`.
|
|
83
|
+
*/
|
|
84
|
+
templateColumns?: GridProps["templateColumns"];
|
|
85
|
+
/**
|
|
86
|
+
* Cells placed on the grid after the label, each in its own track. They sit
|
|
87
|
+
* beside the toggle button, not inside it: clicking text, a chip, or empty
|
|
88
|
+
* space in the row toggles the disclosure, while a button or menu cell runs
|
|
89
|
+
* its own action.
|
|
90
|
+
*/
|
|
91
|
+
attributes?: DetailsSummaryColumnAttribute[];
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Summary row for Details.Content: a toggle button with the label, and the
|
|
95
|
+
* attribute cells beside it. `className` and `style` apply to the row. Every other
|
|
96
|
+
* prop, including `ref` and a supplied `onClick`, goes to the toggle button; the
|
|
97
|
+
* `onClick` runs before the internal expanded state toggles.
|
|
98
|
+
*/
|
|
99
|
+
export declare const DetailsSummary: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & DataTrackingId & {
|
|
100
|
+
/**
|
|
101
|
+
* Text for the first cell, beside the expand arrow. It is bold by default
|
|
102
|
+
* and supports two inline markers: `*italic*` and `==highlight==`.
|
|
103
|
+
*/
|
|
104
|
+
label: string;
|
|
105
|
+
/** Options for the label's Text. */
|
|
106
|
+
labelProps?: DetailsSummaryLabelProps;
|
|
107
|
+
/**
|
|
108
|
+
* Grid tracks shared by the label and the attribute cells, such as
|
|
109
|
+
* `1fr 2fr 1fr`. The label takes the first track and each cell takes the
|
|
110
|
+
* next one, so size a track wider for a cell that needs more room. Cells
|
|
111
|
+
* beyond the tracks wrap to a new row. Defaults to `1fr`.
|
|
112
|
+
*/
|
|
113
|
+
templateColumns?: GridProps["templateColumns"];
|
|
114
|
+
/**
|
|
115
|
+
* Cells placed on the grid after the label, each in its own track. They sit
|
|
116
|
+
* beside the toggle button, not inside it: clicking text, a chip, or empty
|
|
117
|
+
* space in the row toggles the disclosure, while a button or menu cell runs
|
|
118
|
+
* its own action.
|
|
119
|
+
*/
|
|
120
|
+
attributes?: DetailsSummaryColumnAttribute[];
|
|
121
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './Details';
|
|
2
|
+
export { Details as default } from './Details';
|
|
3
|
+
export type { DetailsSummaryButtonAttribute, DetailsSummaryChipAttribute, DetailsSummaryColumnAttribute, DetailsSummaryLabelProps, DetailsSummaryMenuAttribute, DetailsSummaryMenuItem, DetailsSummaryProps, DetailsSummaryTextAttribute, } from './DetailsSummary';
|
|
4
|
+
export type { DetailsContentProps } from '../../../components/Details';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { BodyTextProps } from '../../../../components/Text/types';
|
|
3
|
+
export type DetailsArrowProps = ComponentPropsWithoutRef<"span"> & {
|
|
4
|
+
/** The label's text scale; the arrow scales with it. Defaults to `medium`. */
|
|
5
|
+
size?: BodyTextProps["size"];
|
|
6
|
+
};
|
|
7
|
+
/** Rotating indicator that reflects the parent Details state. */
|
|
8
|
+
export declare const DetailsArrow: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
9
|
+
/** The label's text scale; the arrow scales with it. Defaults to `medium`. */
|
|
10
|
+
size?: BodyTextProps["size"];
|
|
11
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DetailsSummaryColumnAttribute } from '../DetailsSummary';
|
|
2
|
+
/** Grid items for the attribute cells; the Summary's grid places them. */
|
|
3
|
+
export declare function DetailsSummaryCells({ cells, }: {
|
|
4
|
+
cells: DetailsSummaryColumnAttribute[];
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,7 @@ export declare const Page: import('react').ForwardRefExoticComponent<Omit<import
|
|
|
13
13
|
localStorageKey?: string;
|
|
14
14
|
"data-tracking-id"?: string;
|
|
15
15
|
currentPageTitle?: string;
|
|
16
|
+
onOpenChange?: (open: boolean) => void;
|
|
16
17
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
18
|
/** Sidebar heading region hidden from accessibility when collapsed. */
|
|
18
19
|
SidebarHeader: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -9,6 +9,12 @@ export type PageSidebarProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
9
9
|
["data-tracking-id"]?: string;
|
|
10
10
|
/** Smaller-page trigger text. Defaults to `"Menu"`. */
|
|
11
11
|
currentPageTitle?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Called when the desktop sidebar collapses or expands; `open` is `true` when
|
|
14
|
+
* expanded. Not called on mount. The small-page popover layout does not report
|
|
15
|
+
* changes.
|
|
16
|
+
*/
|
|
17
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
18
|
};
|
|
13
19
|
/**
|
|
14
20
|
* Collapsible desktop sidebar with persisted state. On smaller pages it
|
|
@@ -21,4 +27,10 @@ export declare const PageSidebar: import('react').ForwardRefExoticComponent<Omit
|
|
|
21
27
|
"data-tracking-id"?: string;
|
|
22
28
|
/** Smaller-page trigger text. Defaults to `"Menu"`. */
|
|
23
29
|
currentPageTitle?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Called when the desktop sidebar collapses or expands; `open` is `true` when
|
|
32
|
+
* expanded. Not called on mount. The small-page popover layout does not report
|
|
33
|
+
* changes.
|
|
34
|
+
*/
|
|
35
|
+
onOpenChange?: (open: boolean) => void;
|
|
24
36
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, forwardRef, Ref, ReactNode } from 'react';
|
|
2
2
|
import { DataAttributes, LayoutUtilProps } from '../../../../types';
|
|
3
3
|
import { ColumnDef, CustomTableFooterCellProps, TableRow } from '../types';
|
|
4
|
-
import { DataTableCacheOptions, DataTableEmptyState, DataTablePaginationConfig, DataTableRef, SortedColumn } from './types';
|
|
5
|
-
export type { DataTableCacheOptions, DataTableRef, DataTableEmptyState, SortedColumn, };
|
|
4
|
+
import { DataTableBulkAction, DataTableBulkActions, DataTableBulkMenuAction, DataTableBulkMenuItem, DataTableBulkPrimaryAction, DataTableBulkSecondaryAction, DataTableBulkSelection, DataTableCacheOptions, DataTableColumnEditing, DataTableColumnPref, DataTableEditColumnsSection, DataTableEmptyState, DataTablePaginationConfig, DataTableFilters, DataTableRef, DataTableRowAdd, DataTableToolbarAction, DataTableTools, SortedColumn } from './types';
|
|
5
|
+
export type { DataTableBulkAction, DataTableBulkActions, DataTableBulkMenuAction, DataTableBulkMenuItem, DataTableBulkPrimaryAction, DataTableBulkSecondaryAction, DataTableBulkSelection, DataTableCacheOptions, DataTableFilters, DataTableColumnEditing, DataTableColumnPref, DataTableEditColumnsSection, DataTableRef, DataTableRowAdd, DataTableEmptyState, DataTableToolbarAction, DataTableTools, SortedColumn, };
|
|
6
6
|
export type DataTableRowData = object;
|
|
7
7
|
/**
|
|
8
8
|
* @extends LayoutUtilProps
|
|
@@ -148,11 +148,38 @@ export type DataTableProps<T extends DataTableRowData> = LayoutUtilProps & Compo
|
|
|
148
148
|
* appear stale when external state changes.
|
|
149
149
|
*/
|
|
150
150
|
getRowVersion?: (row: T) => unknown;
|
|
151
|
+
/**
|
|
152
|
+
* Filter bar rendered above the table. See {@link DataTableFilters}.
|
|
153
|
+
*/
|
|
154
|
+
filters?: DataTableFilters;
|
|
155
|
+
/**
|
|
156
|
+
* Toolbar rendered to the right of the filter bar. See
|
|
157
|
+
* {@link DataTableTools}.
|
|
158
|
+
*/
|
|
159
|
+
tools?: DataTableTools;
|
|
160
|
+
/**
|
|
161
|
+
* {@link DataTableBulkActions} shown in a bar above the table while rows
|
|
162
|
+
* are selected; the bar replaces the filter bar and toolbar until the
|
|
163
|
+
* selection clears. Requires `isSelectable`.
|
|
164
|
+
*/
|
|
165
|
+
bulkActions?: DataTableBulkActions<T>;
|
|
166
|
+
/**
|
|
167
|
+
* Adds an Edit Columns button at the end of the toolbar (unless `hideButton`). Its drawer lets
|
|
168
|
+
* users reorder, hide, and pin columns, then reports the result through
|
|
169
|
+
* `onLayoutChange`. Feed that layout back in; DataTable applies it to
|
|
170
|
+
* `columns` and doesn't store it.
|
|
171
|
+
*/
|
|
172
|
+
columnEditing?: DataTableColumnEditing;
|
|
173
|
+
/**
|
|
174
|
+
* Add row button in a toolbar below the table. See {@link DataTableRowAdd}.
|
|
175
|
+
*/
|
|
176
|
+
rowAdd?: DataTableRowAdd;
|
|
151
177
|
};
|
|
152
178
|
declare function DataTableInner<T extends DataTableRowData>(props: DataTableProps<T>, ref: Ref<DataTableRef>): import("react/jsx-runtime").JSX.Element;
|
|
153
179
|
/**
|
|
154
|
-
* Sortable, pageable data grid with optional selection,
|
|
155
|
-
* and cell editing. Attach a {@link DataTableRef} to
|
|
180
|
+
* Sortable, pageable data grid with optional selection, bulk actions,
|
|
181
|
+
* expansion, pinning, and cell editing. Attach a {@link DataTableRef} to
|
|
182
|
+
* `refresh`, `clearCache`, or `clearSelection`.
|
|
156
183
|
*/
|
|
157
184
|
export declare const DataTable: (<T extends DataTableRowData>(props: DataTableProps<T> & {
|
|
158
185
|
ref?: Ref<DataTableRef>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataTableEditColumnsSection } from './types';
|
|
2
|
+
export type DataTableEditColumnsDrawerProps = {
|
|
3
|
+
/** Controls whether the drawer is shown. */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Requests that the controlling page close the drawer. */
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* One titled section per table. Apply reports only the sections the user
|
|
9
|
+
* changed; Reset Defaults resets every section. Memoize the array.
|
|
10
|
+
*/
|
|
11
|
+
sections: DataTableEditColumnsSection[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Edit Columns drawer for one page-level trigger that covers several tables.
|
|
15
|
+
* Set `columnEditing.hideButton` on each table so only this drawer's trigger
|
|
16
|
+
* shows. For a single table, `columnEditing` alone is enough.
|
|
17
|
+
*/
|
|
18
|
+
export declare function DataTableEditColumnsDrawer({ open, onClose, sections, }: DataTableEditColumnsDrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataTableRowAdd } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Duplicate of the toolbar button, centered under the empty state. Rendered
|
|
4
|
+
* outside the grid element because the button is not a row or gridcell.
|
|
5
|
+
*/
|
|
6
|
+
export declare function DataTableEmptyAddRow({ rowAdd }: {
|
|
7
|
+
rowAdd: DataTableRowAdd;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function DataTableAddRow({ rowAdd }: {
|
|
10
|
+
rowAdd: DataTableRowAdd;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { DataTableBulkActions, DataTableBulkSelection } from '../types';
|
|
3
|
+
export type DataTableBulkActionBarProps<T> = {
|
|
4
|
+
actions: DataTableBulkActions<T>;
|
|
5
|
+
/** Rows counted as selected; the total row count in "all" mode. */
|
|
6
|
+
selectedCount: number;
|
|
7
|
+
/** Shows "Select all N items" when set. */
|
|
8
|
+
selectAllCount?: number;
|
|
9
|
+
/** Some rows can't be selected, so the button reads "Select all N items of N". */
|
|
10
|
+
hasUnselectableRows: boolean;
|
|
11
|
+
onSelectAll: () => void;
|
|
12
|
+
onCancel: () => void;
|
|
13
|
+
getSelection: () => DataTableBulkSelection<T>;
|
|
14
|
+
/** Runs after an action completes without asking to keep the selection. */
|
|
15
|
+
onActionComplete: () => void;
|
|
16
|
+
tableRef: RefObject<HTMLDivElement>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Selection count, select-all, cancel, and consumer actions shown above the
|
|
20
|
+
* table while rows are selected. The live region stays mounted so the first
|
|
21
|
+
* selection is announced too.
|
|
22
|
+
*/
|
|
23
|
+
export declare function DataTableBulkActionBar<T>({ actions, selectedCount, selectAllCount, hasUnselectableRows, onSelectAll, onCancel, getSelection, onActionComplete, tableRef, }: DataTableBulkActionBarProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Filter } from '../../../FilterBar';
|
|
2
|
+
import { DataTableFilters, DataTableTools } from '../types';
|
|
3
|
+
import { EditColumnsSection } from './columnEditing/EditColumnsDrawer';
|
|
4
|
+
type DataTableFilterToolbarProps = {
|
|
5
|
+
filters?: DataTableFilters;
|
|
6
|
+
tools?: DataTableTools;
|
|
7
|
+
columnEditing?: EditColumnsSection;
|
|
8
|
+
/** Wraps `filters.onChange` with DataTable's page and cache reset. */
|
|
9
|
+
onFilterChange: (filters: Filter[]) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function DataTableFilterToolbar({ filters, tools, onFilterChange, columnEditing, }: DataTableFilterToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginationProps } from '../../../../../components/Pagination';
|
|
2
|
-
type DataTableCursorPaginationProps = Pick<PaginationProps, "page" | "itemsPerPage" | "onPageChange" | "onItemsPerPageChange" | "itemsPerPageOptions"> & {
|
|
2
|
+
type DataTableCursorPaginationProps = Pick<PaginationProps, "page" | "itemsPerPage" | "onPageChange" | "onItemsPerPageChange" | "itemsPerPageOptions" | "itemsPerPageLabel"> & {
|
|
3
3
|
/** Explicit `true` enables Next. Omitted or false leaves it disabled. */
|
|
4
4
|
hasNextPage?: boolean;
|
|
5
5
|
/**
|
|
@@ -12,7 +12,7 @@ type DataTableCursorPaginationProps = Pick<PaginationProps, "page" | "itemsPerPa
|
|
|
12
12
|
* Numbered pagination fields picked from {@link PaginationProps}, including
|
|
13
13
|
* `totalItemCount`.
|
|
14
14
|
*/
|
|
15
|
-
export type DataTablePaginationProps = Pick<PaginationProps, "page" | "itemsPerPage" | "totalItemCount" | "showCount" | "onPageChange" | "onItemsPerPageChange" | "itemsPerPageOptions">;
|
|
15
|
+
export type DataTablePaginationProps = Pick<PaginationProps, "page" | "itemsPerPage" | "totalItemCount" | "showCount" | "onPageChange" | "onItemsPerPageChange" | "itemsPerPageOptions" | "itemsPerPageLabel" | "itemRangeFormatter">;
|
|
16
16
|
/**
|
|
17
17
|
* Numbered page chrome for DataTable. `showCount` defaults to `true`.
|
|
18
18
|
*/
|
|
@@ -21,5 +21,5 @@ export declare const DataTablePagination: ({ showCount, ...props }: DataTablePag
|
|
|
21
21
|
* Prev/next chrome when the table has no `totalItemCount`. Next/Previous stay
|
|
22
22
|
* disabled unless the matching flag is exactly `true`.
|
|
23
23
|
*/
|
|
24
|
-
export declare const DataTableCursorPagination: ({ page, itemsPerPage, itemsPerPageOptions, hasNextPage, hasPrevPage, onPageChange, onItemsPerPageChange, }: DataTableCursorPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const DataTableCursorPagination: ({ page, itemsPerPage, itemsPerPageOptions, itemsPerPageLabel, hasNextPage, hasPrevPage, onPageChange, onItemsPerPageChange, }: DataTableCursorPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export {};
|
package/dist/src/beta/components/Table/DataTable/internal/columnEditing/EditColumnsDrawer.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DataTableColumnPref } from '../../types';
|
|
2
|
+
/** One table's columns in an {@link EditColumnsDrawer}. */
|
|
3
|
+
export type EditColumnsSection = {
|
|
4
|
+
/** Unique within the drawer; namespaces the drag zones. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Heading shown above the section when the drawer has more than one. */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** True when `alwaysVisible` or right-pinned columns keep the table non-empty. */
|
|
9
|
+
hasFixedColumns?: boolean;
|
|
10
|
+
/** Ids of `alwaysVisible` columns, whose hide button is disabled. */
|
|
11
|
+
alwaysVisibleIds?: string[];
|
|
12
|
+
/** Editable columns' header labels by id. */
|
|
13
|
+
labels: Record<string, string>;
|
|
14
|
+
layout: DataTableColumnPref[];
|
|
15
|
+
onApply: (layout: DataTableColumnPref[]) => void;
|
|
16
|
+
onReset: () => void;
|
|
17
|
+
};
|
|
18
|
+
type EditColumnsDrawerProps = {
|
|
19
|
+
open: boolean;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
sections: EditColumnsSection[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Edits stay in local drafts until Apply, which reports only the sections that
|
|
25
|
+
* changed. The drafts are rebuilt only when the drawer opens, so a layout
|
|
26
|
+
* change from outside mid-edit doesn't wipe them.
|
|
27
|
+
*/
|
|
28
|
+
export declare function EditColumnsDrawer({ open, onClose, sections, }: EditColumnsDrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DndSortChangeEvent } from '../../../../../../components/DndSort';
|
|
2
|
+
import { ColumnDef } from '../../../types';
|
|
3
|
+
import { DataTableColumnLike, DataTableColumnPref } from '../../types';
|
|
4
|
+
/** Columns the drawer can move: everything but those pinned right. */
|
|
5
|
+
export declare function isEditableColumn(column: DataTableColumnLike): boolean;
|
|
6
|
+
export declare function getColumnLabel(column: DataTableColumnLike): string;
|
|
7
|
+
/** Ids of the columns that render a header cell of their own, descending into groups. */
|
|
8
|
+
export declare function getLeafColumnIds<T>(columns: ColumnDef<T>[]): Set<string>;
|
|
9
|
+
/** Layout implied by the `columns` prop: its order, all visible, left-pinned as declared. */
|
|
10
|
+
export declare function getDefaultLayout(columns: DataTableColumnLike[]): DataTableColumnPref[];
|
|
11
|
+
/**
|
|
12
|
+
* Reconciles a layout with the editable columns: unknown and duplicate ids
|
|
13
|
+
* drop out, omitted columns append as visible with their declared left pin,
|
|
14
|
+
* an `alwaysVisible` column is never hidden, and a hidden column is never
|
|
15
|
+
* pinned.
|
|
16
|
+
*/
|
|
17
|
+
export declare function mergeLayout(layout: readonly DataTableColumnPref[], editable: readonly DataTableColumnLike[]): DataTableColumnPref[];
|
|
18
|
+
/**
|
|
19
|
+
* Returns `columns` reordered, filtered, and pinned by `layout`. Columns the
|
|
20
|
+
* drawer can't edit keep their slot; hidden columns are removed.
|
|
21
|
+
*/
|
|
22
|
+
export declare function applyColumnLayout<T>(columns: ColumnDef<T>[], layout: readonly DataTableColumnPref[]): ColumnDef<T>[];
|
|
23
|
+
declare const PINNED = "pinned";
|
|
24
|
+
declare const VISIBLE = "visible";
|
|
25
|
+
declare const HIDDEN = "hidden";
|
|
26
|
+
export type ColumnBucketName = typeof PINNED | typeof VISIBLE | typeof HIDDEN;
|
|
27
|
+
/** Column ids grouped by where they sit in the drawer. */
|
|
28
|
+
export type ColumnBuckets = Record<ColumnBucketName, string[]>;
|
|
29
|
+
export declare function toBuckets(layout: readonly DataTableColumnPref[]): ColumnBuckets;
|
|
30
|
+
export declare function toLayout(buckets: ColumnBuckets): DataTableColumnPref[];
|
|
31
|
+
/** Applies a drop within one zone. Pinned and visible zones never exchange cards. */
|
|
32
|
+
export declare function reorderBucket(prev: ColumnBuckets, bucket: typeof PINNED | typeof VISIBLE, event: DndSortChangeEvent): ColumnBuckets;
|
|
33
|
+
/** Pins a visible column (to the end of the pinned list) or unpins one (to the top of visible). */
|
|
34
|
+
export declare function togglePinnedIn(prev: ColumnBuckets, id: string): ColumnBuckets;
|
|
35
|
+
/**
|
|
36
|
+
* True when hiding one more column would leave the table with none showing.
|
|
37
|
+
* `hasFixedColumns` is true when columns outside the drawer (`alwaysVisible`
|
|
38
|
+
* or pinned right) keep the table populated regardless.
|
|
39
|
+
*/
|
|
40
|
+
export declare function isLastShown(buckets: ColumnBuckets, hasFixedColumns?: boolean): boolean;
|
|
41
|
+
/** Hides or shows an unpinned column; never hides the last one showing. */
|
|
42
|
+
export declare function toggleVisibleIn(prev: ColumnBuckets, id: string, hasFixedColumns?: boolean): ColumnBuckets;
|
|
43
|
+
export {};
|
package/dist/src/beta/components/Table/DataTable/internal/columnEditing/toEditColumnsSection.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataTableEditColumnsSection } from '../../types';
|
|
2
|
+
import { EditColumnsSection } from './EditColumnsDrawer';
|
|
3
|
+
/**
|
|
4
|
+
* Reduces a table's `columns` and stored layout to what the drawer edits.
|
|
5
|
+
* Reset reports the layout implied by `columns`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function toEditColumnsSection({ title, columns, layout, onLayoutChange }: DataTableEditColumnsSection, id: string): EditColumnsSection;
|
package/dist/src/beta/components/Table/DataTable/internal/context/tabbables/CellTabbablesQueue.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collects the first tabindex sweep of every cell that mounts in a commit, so
|
|
3
|
+
* the table body runs them together after the commit's layout effects. A
|
|
4
|
+
* write between two layout effects makes the next layout read in that commit
|
|
5
|
+
* (cell content measuring itself, say) force a style recalculation, so
|
|
6
|
+
* interleaved sweeps cost one recalculation per row instead of one per commit.
|
|
7
|
+
*/
|
|
8
|
+
export type CellTabbablesQueue = {
|
|
9
|
+
/**
|
|
10
|
+
* Queues a sweep for the next flush, or for a microtask if no flush comes
|
|
11
|
+
* first. Every body cell mounts in a render of its body, so the microtask is
|
|
12
|
+
* a safety net.
|
|
13
|
+
*/
|
|
14
|
+
enqueue: (sweep: () => void) => void;
|
|
15
|
+
/** Drops a queued sweep, for a cell that unmounts before it ran. */
|
|
16
|
+
cancel: (sweep: () => void) => void;
|
|
17
|
+
/** Runs every queued sweep now. */
|
|
18
|
+
flush: () => void;
|
|
19
|
+
};
|
|
20
|
+
/** Creates an empty queue for one table body. */
|
|
21
|
+
export declare function createCellTabbablesQueue(): CellTabbablesQueue;
|
|
22
|
+
/** The enclosing table body's queue. Outside one, sweeps run on a microtask. */
|
|
23
|
+
export declare const CellTabbablesQueueContext: import('react').Context<CellTabbablesQueue>;
|
|
@@ -13,4 +13,21 @@ export declare const PARTS: {
|
|
|
13
13
|
readonly expandAllButton: "expand-all-button";
|
|
14
14
|
readonly resizeHandle: "resize-handle";
|
|
15
15
|
readonly editableInput: "editable-input";
|
|
16
|
+
readonly bulkActionBar: "bulk-action-bar";
|
|
17
|
+
readonly bulkSelectAllButton: "bulk-select-all-button";
|
|
18
|
+
readonly bulkCancelButton: "bulk-cancel-button";
|
|
19
|
+
readonly bulkActionsMenuButton: "bulk-actions-menu-button";
|
|
20
|
+
readonly bulkActionButton: "bulk-action-button";
|
|
21
|
+
readonly bulkActionMenuItem: "bulk-action-menu-item";
|
|
22
|
+
readonly rowAddButton: "row-add-button";
|
|
23
|
+
readonly editColumnsButton: "edit-columns-button";
|
|
24
|
+
readonly editColumnsDrawer: "edit-columns-drawer";
|
|
25
|
+
readonly columnsSection: "columns-section";
|
|
26
|
+
readonly columnCard: "column-card";
|
|
27
|
+
readonly pinColumnButton: "pin-column-button";
|
|
28
|
+
readonly hideColumnButton: "hide-column-button";
|
|
29
|
+
readonly resetColumnsButton: "reset-columns-button";
|
|
30
|
+
readonly applyButton: "apply-button";
|
|
31
|
+
readonly cancelButton: "cancel-button";
|
|
32
|
+
readonly confirmButton: "confirm-button";
|
|
16
33
|
};
|