@servicetitan/anvil2 3.19.1 → 3.21.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 +92 -0
- package/dist/{AiMark-BrpVo9Q3.js → AiMark-ZPUsbzuw.js} +8 -9
- package/dist/{AiMark-BrpVo9Q3.js.map → AiMark-ZPUsbzuw.js.map} +1 -1
- package/dist/AiMark.css +13 -12
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-I2aey2tn.js → Alert-DA52LCh2.js} +2 -2
- package/dist/{Alert-I2aey2tn.js.map → Alert-DA52LCh2.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Breadcrumbs-D_eZyRPj.js → Breadcrumbs-CyAGeu_S.js} +2 -2
- package/dist/{Breadcrumbs-D_eZyRPj.js.map → Breadcrumbs-CyAGeu_S.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Calendar-CsPlLgz6.js → Calendar--Vo79-vL.js} +9 -4
- package/dist/Calendar--Vo79-vL.js.map +1 -0
- package/dist/{Calendar-DIrRryEw.js → Calendar-BbstKaKh.js} +2 -2
- package/dist/{Calendar-DIrRryEw.js.map → Calendar-BbstKaKh.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/{Checkbox-DIDiV21L.js → Checkbox-B1dGMQeg.js} +2 -2
- package/dist/{Checkbox-DIDiV21L.js.map → Checkbox-B1dGMQeg.js.map} +1 -1
- package/dist/{Checkbox-B8t9Ci-v.js → Checkbox-DTuiWg1A.js} +2 -2
- package/dist/{Checkbox-B8t9Ci-v.js.map → Checkbox-DTuiWg1A.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-VgArZImD.js → Chip-RJ81tOE6.js} +5 -3
- package/dist/Chip-RJ81tOE6.js.map +1 -0
- package/dist/Chip.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTableEditColumnsDrawer-BOpdQ-g1.js → DataTableEditColumnsDrawer-DUIpOSE9.js} +1681 -324
- package/dist/DataTableEditColumnsDrawer-DUIpOSE9.js.map +1 -0
- package/dist/DataTableEditColumnsDrawer.css +72 -0
- package/dist/{DateFieldRange-D8Mh3-DR.js → DateFieldRange-Bz8JYNG8.js} +6 -6
- package/dist/DateFieldRange-Bz8JYNG8.js.map +1 -0
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-BPfA3WjH.js → DateFieldSingle-brLeR5g8.js} +6 -6
- package/dist/DateFieldSingle-brLeR5g8.js.map +1 -0
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-CPNii0P-.js → DateFieldYearless-BOsu8xsF.js} +3 -3
- package/dist/{DateFieldYearless-CPNii0P-.js.map → DateFieldYearless-BOsu8xsF.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-zGSVJt8r.js → DateFieldYearlessRange-8634Lo1N.js} +3 -3
- package/dist/{DateFieldYearlessRange-zGSVJt8r.js.map → DateFieldYearlessRange-8634Lo1N.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-B4c5x3dK.js → DaysOfTheWeek-iMk8sVyS.js} +3 -3
- package/dist/{DaysOfTheWeek-B4c5x3dK.js.map → DaysOfTheWeek-iMk8sVyS.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-CG0j1Ozf.js → Details-IvpXegMz.js} +5 -5
- package/dist/{Details-CG0j1Ozf.js.map → Details-IvpXegMz.js.map} +1 -1
- package/dist/Details.js +1 -1
- package/dist/{Dialog-CYEHufmn.js → Dialog-sSjVKcdI.js} +4 -4
- package/dist/{Dialog-CYEHufmn.js.map → Dialog-sSjVKcdI.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/DndSort.js +1 -5656
- package/dist/DndSort.js.map +1 -1
- package/dist/{Drawer-vEp5BF1D.js → Drawer-CwPikeJv.js} +5 -5
- package/dist/{Drawer-vEp5BF1D.js.map → Drawer-CwPikeJv.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/EditSavedFiltersDrawer-C4_7psz0.js +1256 -0
- package/dist/EditSavedFiltersDrawer-C4_7psz0.js.map +1 -0
- package/dist/EditSavedFiltersDrawer.css +14 -0
- package/dist/{FieldLabel-BKi_gbQd.js → FieldLabel-DxZY9kI9.js} +3 -3
- package/dist/{FieldLabel-BKi_gbQd.js.map → FieldLabel-DxZY9kI9.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/{FilterBar-CsXkp2gG.js → FilterBar-CDcs_5sU.js} +6 -6
- package/dist/{FilterBar-CsXkp2gG.js.map → FilterBar-CDcs_5sU.js.map} +1 -1
- package/dist/FilterBar.js +1 -1
- package/dist/{InputMask-SD1IFEt0.js → InputMask-D_DfQmMd.js} +3 -3
- package/dist/{InputMask-SD1IFEt0.js.map → InputMask-D_DfQmMd.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{ListView-C1GgiU0v.js → ListView-CZju45Ca.js} +2 -2
- package/dist/{ListView-C1GgiU0v.js.map → ListView-CZju45Ca.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-BN_xuWXm.js → Listbox-UHfHd7PJ.js} +2 -2
- package/dist/{Listbox-BN_xuWXm.js.map → Listbox-UHfHd7PJ.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/{Menu-DqP7YQgE.js → Menu-SqL_1H2z.js} +367 -129
- package/dist/Menu-SqL_1H2z.js.map +1 -0
- package/dist/Menu.css +58 -22
- package/dist/Menu.js +1 -1
- package/dist/Menu.module-CC8zaI-6.js +24 -0
- package/dist/Menu.module-CC8zaI-6.js.map +1 -0
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-CpCXa5dj.js → MultiSelectFieldSync-d55WX58J.js} +33 -30
- package/dist/MultiSelectFieldSync-d55WX58J.js.map +1 -0
- package/dist/MultiSelectFieldSync.css +80 -80
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-dB05vH-7.js → MultiSelectMenuSync-Dv3bAx0x.js} +4 -4
- package/dist/{MultiSelectMenuSync-dB05vH-7.js.map → MultiSelectMenuSync-Dv3bAx0x.js.map} +1 -1
- package/dist/{NumberField-_Q_Zboqu.js → NumberField-DzQr8_xt.js} +2 -2
- package/dist/{NumberField-_Q_Zboqu.js.map → NumberField-DzQr8_xt.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/{Page-aELdGvmc.js → Page-DkVoIsug.js} +10 -10
- package/dist/{Page-aELdGvmc.js.map → Page-DkVoIsug.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Pagination-BiJBrVZ-.js → Pagination-DeJvKhxy.js} +3 -3
- package/dist/{Pagination-BiJBrVZ-.js.map → Pagination-DeJvKhxy.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-BT5hRXd4.js → Popover-BNmJCpMP.js} +7 -8
- package/dist/{Popover-BT5hRXd4.js.map → Popover-BNmJCpMP.js.map} +1 -1
- package/dist/Popover.css +13 -12
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-DWMWhwzO.js → ProgressBar-C4OEY-y_.js} +2 -2
- package/dist/{ProgressBar-DWMWhwzO.js.map → ProgressBar-C4OEY-y_.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-BxCntyzK.js → Radio-CqZMJ59P.js} +2 -2
- package/dist/{Radio-BxCntyzK.js.map → Radio-CqZMJ59P.js.map} +1 -1
- package/dist/{Radio-BigB06fh.js → Radio-MKpTVK0B.js} +2 -2
- package/dist/{Radio-BigB06fh.js.map → Radio-MKpTVK0B.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{RichTextEditor-91YvpkRp.js → RichTextEditor-Bl18lkwz.js} +9 -9
- package/dist/{RichTextEditor-91YvpkRp.js.map → RichTextEditor-Bl18lkwz.js.map} +1 -1
- package/dist/RichTextEditor.js +1 -1
- package/dist/SavedFiltersButton-Bk6U9c18.js +221 -0
- package/dist/SavedFiltersButton-Bk6U9c18.js.map +1 -0
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/{SelectCard-C-XW2kkw.js → SelectCard-DLZabbgB.js} +3 -3
- package/dist/{SelectCard-C-XW2kkw.js.map → SelectCard-DLZabbgB.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-Dd4TTOoQ.js → SelectFieldLabel-Dx_O109p.js} +2 -2
- package/dist/{SelectFieldLabel-Dd4TTOoQ.js.map → SelectFieldLabel-Dx_O109p.js.map} +1 -1
- package/dist/{SelectFieldSync-7V1ozTSX.js → SelectFieldSync-C5v2XbJz.js} +10 -8
- package/dist/SelectFieldSync-C5v2XbJz.js.map +1 -0
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-DQO0wVVk.js → SelectMenuSync-C-gvWgY_.js} +4 -4
- package/dist/{SelectMenuSync-DQO0wVVk.js.map → SelectMenuSync-C-gvWgY_.js.map} +1 -1
- package/dist/{SelectOptions-sFpzWKzp.js → SelectOptions-DXdAlDLk.js} +2 -2
- package/dist/{SelectOptions-sFpzWKzp.js.map → SelectOptions-DXdAlDLk.js.map} +1 -1
- package/dist/{SelectTrigger-BDkLtDuP.js → SelectTrigger-B4g7-z2t.js} +2 -2
- package/dist/{SelectTrigger-BDkLtDuP.js.map → SelectTrigger-B4g7-z2t.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-r1wQYPe6.js → SelectTriggerBase-1TdYQMjS.js} +4 -4
- package/dist/{SelectTriggerBase-r1wQYPe6.js.map → SelectTriggerBase-1TdYQMjS.js.map} +1 -1
- package/dist/SelectTriggerBase.css +61 -61
- package/dist/SelectTriggerBase.module-B6akYRk_.js +42 -0
- package/dist/SelectTriggerBase.module-B6akYRk_.js.map +1 -0
- package/dist/{Slider-C5DpOUcL.js → Slider-yrmVmo3D.js} +2 -2
- package/dist/{Slider-C5DpOUcL.js.map → Slider-yrmVmo3D.js.map} +1 -1
- package/dist/Slider.js +1 -1
- package/dist/{Switch-B9guzVw9.js → Switch-BKYPxW4K.js} +2 -2
- package/dist/{Switch-B9guzVw9.js.map → Switch-BKYPxW4K.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-CxB0zvG5.js → Text-QNJBWFFq.js} +2 -2
- package/dist/{Text-CxB0zvG5.js.map → Text-QNJBWFFq.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-BLrVtByh.js → TextField-BZeYI4mH.js} +2 -2
- package/dist/{TextField-BLrVtByh.js.map → TextField-BZeYI4mH.js.map} +1 -1
- package/dist/{TextField-Dl1f63dR.js → TextField-_CqbWqEy.js} +2 -2
- package/dist/{TextField-Dl1f63dR.js.map → TextField-_CqbWqEy.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-jZE2TYm3.js → Textarea-D8d7Fvuj.js} +2 -2
- package/dist/{Textarea-jZE2TYm3.js.map → Textarea-D8d7Fvuj.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{TimeField-CFJPrGZq.js → TimeField-CdEsL6g3.js} +4 -4
- package/dist/{TimeField-CFJPrGZq.js.map → TimeField-CdEsL6g3.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/{TimezoneMessage-CknTwubm.js → TimezoneMessage-DE_V-KTB.js} +3 -3
- package/dist/TimezoneMessage-DE_V-KTB.js.map +1 -0
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-9TVzbuWv.js → Toaster-BDLfmknE.js} +2 -2
- package/dist/{Toaster-9TVzbuWv.js.map → Toaster-BDLfmknE.js.map} +1 -1
- package/dist/{Toaster-CS-B6MVl.js → Toaster-C8C92j6M.js} +4 -5
- package/dist/{Toaster-CS-B6MVl.js.map → Toaster-C8C92j6M.js.map} +1 -1
- package/dist/{Toolbar-BeCljCaA.js → Toolbar-BCfebujS.js} +7 -6
- package/dist/Toolbar-BCfebujS.js.map +1 -0
- package/dist/{Toolbar-B9DQdL0M.js → Toolbar-Clfuy5KZ.js} +4 -4
- package/dist/{Toolbar-B9DQdL0M.js.map → Toolbar-Clfuy5KZ.js.map} +1 -1
- package/dist/Toolbar.js +2 -2
- package/dist/{ToolbarButtonToggle-BHpoVrCy.js → ToolbarButtonToggle-BY46p72Z.js} +2 -2
- package/dist/{ToolbarButtonToggle-BHpoVrCy.js.map → ToolbarButtonToggle-BY46p72Z.js.map} +1 -1
- package/dist/{Tooltip-CsTkZqMg.js → Tooltip-B9Et440X.js} +7 -11
- package/dist/Tooltip-B9Et440X.js.map +1 -0
- package/dist/Tooltip.css +7 -6
- package/dist/Tooltip.js +1 -1
- package/dist/TreeSelectField.js +1 -1
- package/dist/{TreeSelectFieldSync-DDMcs43p.js → TreeSelectFieldSync-CcGFTmZR.js} +6 -6
- package/dist/{TreeSelectFieldSync-DDMcs43p.js.map → TreeSelectFieldSync-CcGFTmZR.js.map} +1 -1
- package/dist/TreeSelectMenu.js +1 -1
- package/dist/{TreeSelectMenuSync-Cm9zKjKO.js → TreeSelectMenuSync-BNCKKoX5.js} +3 -3
- package/dist/{TreeSelectMenuSync-Cm9zKjKO.js.map → TreeSelectMenuSync-BNCKKoX5.js.map} +1 -1
- package/dist/{TypeaheadTextField-CSkWZ-62.js → TypeaheadTextField-0JZbg_nq.js} +4 -4
- package/dist/{TypeaheadTextField-CSkWZ-62.js.map → TypeaheadTextField-0JZbg_nq.js.map} +1 -1
- package/dist/TypeaheadTextField.js +1 -1
- package/dist/{YearlessDateInputWithPicker-CHUxtmBK.js → YearlessDateInputWithPicker-Ci07Qyu2.js} +2 -2
- package/dist/{YearlessDateInputWithPicker-CHUxtmBK.js.map → YearlessDateInputWithPicker-Ci07Qyu2.js.map} +1 -1
- package/dist/beta.js +19 -19
- package/dist/{bulkActionTypes-B0HssR80.js → bulkActionTypes-CEzONeIo.js} +2 -2
- package/dist/{bulkActionTypes-B0HssR80.js.map → bulkActionTypes-CEzONeIo.js.map} +1 -1
- package/dist/{filter-state-kOnDWwml.js → filter-state-C125Jq7U.js} +22 -22
- package/dist/{filter-state-kOnDWwml.js.map → filter-state-C125Jq7U.js.map} +1 -1
- package/dist/index-C35w5YI6.js +5685 -0
- package/dist/index-C35w5YI6.js.map +1 -0
- package/dist/{index-BE4D0nXS.js → index-OO0ikzp1.js} +2 -2
- package/dist/{index-BE4D0nXS.js.map → index-OO0ikzp1.js.map} +1 -1
- package/dist/index.js +44 -44
- package/dist/{floating-ui.react-dom-BIKT960u.js → portalScopeClassNames-M_1IAJ6o.js} +15 -3
- package/dist/portalScopeClassNames-M_1IAJ6o.js.map +1 -0
- package/dist/src/beta/components/SavedFiltersButton/SavedFiltersButton.d.ts +3 -0
- package/dist/src/beta/components/SavedFiltersButton/internal/AddSavedFilterDrawer.d.ts +10 -1
- package/dist/src/beta/components/SavedFiltersButton/internal/EditSavedFiltersDrawer.d.ts +43 -1
- package/dist/src/beta/components/SavedFiltersButton/parts.d.ts +3 -1
- package/dist/src/beta/components/SavedFiltersButton/types.d.ts +8 -3
- package/dist/src/beta/components/Table/DataTable/DataTable.d.ts +14 -4
- package/dist/src/beta/components/Table/DataTable/internal/DataTableAddRow.d.ts +9 -0
- package/dist/src/beta/components/Table/DataTable/internal/DataTableFilterToolbar.d.ts +21 -2
- package/dist/src/beta/components/Table/DataTable/internal/DataTableFooter.d.ts +1 -1
- package/dist/src/beta/components/Table/DataTable/internal/columnEditing/EditColumnsDrawer.d.ts +12 -0
- package/dist/src/beta/components/Table/DataTable/internal/columnEditing/columnLayout.d.ts +18 -1
- package/dist/src/beta/components/Table/DataTable/internal/viewOptions/DataTableViewOptionsMenu.d.ts +40 -0
- package/dist/src/beta/components/Table/DataTable/internal/viewOptions/SavedViewSortAndColumns.d.ts +21 -0
- package/dist/src/beta/components/Table/DataTable/internal/viewOptions/SortByDrawer.d.ts +24 -0
- package/dist/src/beta/components/Table/DataTable/internal/viewOptions/ViewOptionsControls.d.ts +9 -0
- package/dist/src/beta/components/Table/DataTable/internal/viewOptions/columnOptions.d.ts +31 -0
- package/dist/src/beta/components/Table/DataTable/internal/viewOptions/savedViewDirty.d.ts +23 -0
- package/dist/src/beta/components/Table/DataTable/internal/viewOptions/sortOrderLabels.d.ts +9 -0
- package/dist/src/beta/components/Table/DataTable/parts.d.ts +8 -0
- package/dist/src/beta/components/Table/DataTable/stories/pointerDrag.d.ts +5 -0
- package/dist/src/beta/components/Table/DataTable/types.d.ts +227 -14
- package/dist/src/beta/components/Table/types.d.ts +23 -1
- package/dist/src/components/Calendar/Calendar.d.ts +4 -1
- package/dist/src/components/DndSort/internal/DndSortAnnouncementsContext.d.ts +12 -0
- package/dist/src/components/Menu/Menu.d.ts +33 -7
- package/dist/src/components/Menu/MenuGroup.d.ts +14 -0
- package/dist/src/components/Menu/MenuItem.d.ts +19 -11
- package/dist/src/components/Menu/index.d.ts +1 -0
- package/dist/src/components/Menu/internal/MenuContext.d.ts +3 -0
- package/dist/src/components/Menu/internal/MenuNested.d.ts +3 -1
- package/dist/src/components/Menu/internal/menuSelectors.d.ts +7 -0
- package/dist/src/components/Menu/types.d.ts +14 -1
- package/dist/src/internal/functions/getBrowserTimeZone.d.ts +6 -0
- package/dist/src/internal/functions/index.d.ts +1 -0
- package/dist/{syncFilterUtils-MMjNtcOP.js → syncFilterUtils-DHvuD1u_.js} +3 -3
- package/dist/{syncFilterUtils-MMjNtcOP.js.map → syncFilterUtils-DHvuD1u_.js.map} +1 -1
- package/dist/{treeSync-B4hCuizx.js → treeSync-DthX6nSd.js} +3 -3
- package/dist/{treeSync-B4hCuizx.js.map → treeSync-DthX6nSd.js.map} +1 -1
- package/dist/{useDrilldown-CqH3Io3l.js → useDrilldown-DdDywAsm.js} +4 -4
- package/dist/{useDrilldown-CqH3Io3l.js.map → useDrilldown-DdDywAsm.js.map} +1 -1
- package/dist/{useEditCard-DaRvOIEV.js → useEditCard-CQb-8fpN.js} +2 -2
- package/dist/{useEditCard-DaRvOIEV.js.map → useEditCard-CQb-8fpN.js.map} +1 -1
- package/dist/{useInfiniteCombobox-DPPteKhC.js → useInfiniteCombobox-B2dSuQqF.js} +4 -4
- package/dist/{useInfiniteCombobox-DPPteKhC.js.map → useInfiniteCombobox-B2dSuQqF.js.map} +1 -1
- package/dist/{useInitialFocus-CcenAq2X.js → useInitialFocus-BZeQY_aY.js} +2 -2
- package/dist/{useInitialFocus-CcenAq2X.js.map → useInitialFocus-BZeQY_aY.js.map} +1 -1
- package/dist/{useInvalidateOnOptionsChange-Db2AvMj4.js → useInvalidateOnOptionsChange-CHtQ5odJ.js} +6 -7
- package/dist/{useInvalidateOnOptionsChange-Db2AvMj4.js.map → useInvalidateOnOptionsChange-CHtQ5odJ.js.map} +1 -1
- package/dist/{usePopoverTransitionStates-CDXCdyKa.js → usePopoverTransitionStates-CI2tmBtj.js} +23 -12
- package/dist/usePopoverTransitionStates-CI2tmBtj.js.map +1 -0
- package/package.json +3 -3
- package/dist/Calendar-CsPlLgz6.js.map +0 -1
- package/dist/Chip-VgArZImD.js.map +0 -1
- package/dist/DataTableEditColumnsDrawer-BOpdQ-g1.js.map +0 -1
- package/dist/DateFieldRange-D8Mh3-DR.js.map +0 -1
- package/dist/DateFieldSingle-BPfA3WjH.js.map +0 -1
- package/dist/Menu-DqP7YQgE.js.map +0 -1
- package/dist/Menu.module-CMDgSO9k.js +0 -13
- package/dist/Menu.module-CMDgSO9k.js.map +0 -1
- package/dist/MultiSelectFieldSync-CpCXa5dj.js.map +0 -1
- package/dist/SavedFiltersButton-BiLd3lw2.js +0 -732
- package/dist/SavedFiltersButton-BiLd3lw2.js.map +0 -1
- package/dist/SelectFieldSync-7V1ozTSX.js.map +0 -1
- package/dist/SelectTriggerBase.module-C-NmZbg4.js +0 -41
- package/dist/SelectTriggerBase.module-C-NmZbg4.js.map +0 -1
- package/dist/TimezoneMessage-CknTwubm.js.map +0 -1
- package/dist/Toolbar-BeCljCaA.js.map +0 -1
- package/dist/Tooltip-CsTkZqMg.js.map +0 -1
- package/dist/floating-ui.react-dom-BIKT960u.js.map +0 -1
- package/dist/portalScopeClassNames-CMdDYHE0.js +0 -16
- package/dist/portalScopeClassNames-CMdDYHE0.js.map +0 -1
- package/dist/usePopoverTransitionStates-CDXCdyKa.js.map +0 -1
- /package/dist/{DndSort.css → index3.css} +0 -0
|
@@ -236,20 +236,32 @@ export type DataTableBulkActions<T> = {
|
|
|
236
236
|
*/
|
|
237
237
|
selectableRowCount?: number;
|
|
238
238
|
};
|
|
239
|
+
/** Options for {@link DataTableRef} `refresh`. */
|
|
240
|
+
export type DataTableRefreshOptions = {
|
|
241
|
+
/**
|
|
242
|
+
* Refetch the page the user is on instead of returning to page `0`. Clears
|
|
243
|
+
* the page cache and keeps table state (column sizing, selection,
|
|
244
|
+
* expansion). With a controlled page, `onPageChange` is not called. If rows
|
|
245
|
+
* may have been deleted, the current page might no longer exist, so use
|
|
246
|
+
* `refresh()` or set `currentPageIndex` yourself. Defaults to `false`.
|
|
247
|
+
*/
|
|
248
|
+
keepCurrentPage?: boolean;
|
|
249
|
+
};
|
|
239
250
|
/**
|
|
240
251
|
* Imperative handle: refetch the current loader, drop cached pages, or clear
|
|
241
252
|
* the selection.
|
|
242
253
|
*/
|
|
243
254
|
export type DataTableRef = {
|
|
244
255
|
/**
|
|
245
|
-
*
|
|
246
|
-
* `onPageChange(0)` when page is controlled)
|
|
247
|
-
*
|
|
256
|
+
* Clears cached pages and refetches. Sets the page to `0` (calls
|
|
257
|
+
* `onPageChange(0)` when page is controlled) unless `keepCurrentPage` is set,
|
|
258
|
+
* which re-reads the current page in place.
|
|
248
259
|
*/
|
|
249
|
-
refresh: () => void;
|
|
260
|
+
refresh: (options?: DataTableRefreshOptions) => void;
|
|
250
261
|
/**
|
|
251
262
|
* Drops cached pages without refetching. The current page stays until
|
|
252
|
-
* `refresh` or a cache-invalidating input changes.
|
|
263
|
+
* `refresh` or a cache-invalidating input changes. To redraw the current page
|
|
264
|
+
* with fresh rows, use `refresh({ keepCurrentPage: true })`.
|
|
253
265
|
*/
|
|
254
266
|
clearCache: () => void;
|
|
255
267
|
/**
|
|
@@ -272,6 +284,15 @@ export type DataTableColumnPref = {
|
|
|
272
284
|
* Turns on the Edit Columns button and drawer. The consumer owns the layout:
|
|
273
285
|
* DataTable applies it to `columns` and reports Apply and Reset Defaults
|
|
274
286
|
* through `onLayoutChange`.
|
|
287
|
+
*
|
|
288
|
+
* In the drawer, users can drag a column between Visible Columns and Hidden
|
|
289
|
+
* Columns to show or hide it, and drag a visible column into Locked Columns
|
|
290
|
+
* to pin it. Dragging a pinned column into Hidden Columns unpins and hides
|
|
291
|
+
* it, so the next layout has `visible: false, pinned: false` for that
|
|
292
|
+
* column. Dragging a locked column back to Visible Columns, or a hidden
|
|
293
|
+
* column into Locked Columns, does nothing; the lock button unpins, and a
|
|
294
|
+
* hidden column has to be shown before it can be locked. An `alwaysVisible`
|
|
295
|
+
* column, or the last shown column, can't be dragged into Hidden Columns.
|
|
275
296
|
*/
|
|
276
297
|
export type DataTableColumnEditing = {
|
|
277
298
|
/**
|
|
@@ -289,7 +310,9 @@ export type DataTableColumnEditing = {
|
|
|
289
310
|
onLayoutChange: (layout: DataTableColumnPref[]) => void;
|
|
290
311
|
/**
|
|
291
312
|
* Hides the toolbar button while the layout still applies, for a page that
|
|
292
|
-
* opens one {@link DataTableEditColumnsDrawer} across several tables.
|
|
313
|
+
* opens one {@link DataTableEditColumnsDrawer} across several tables. With
|
|
314
|
+
* `viewOptions`, the Edit Columns item calls `onEditColumns` instead of
|
|
315
|
+
* opening this table's drawer.
|
|
293
316
|
* @default false
|
|
294
317
|
*/
|
|
295
318
|
hideButton?: boolean;
|
|
@@ -374,15 +397,179 @@ export type DataTableTools = {
|
|
|
374
397
|
*/
|
|
375
398
|
size?: ToolbarSize;
|
|
376
399
|
};
|
|
400
|
+
/** One action in the Add button's menu. */
|
|
401
|
+
export type DataTableRowAddOption = {
|
|
402
|
+
id: string | number;
|
|
403
|
+
label: string;
|
|
404
|
+
/** Shown before the label. */
|
|
405
|
+
icon?: Svg;
|
|
406
|
+
/** Extra text the menu search matches besides the label. */
|
|
407
|
+
searchText?: string;
|
|
408
|
+
disabled?: boolean;
|
|
409
|
+
/**
|
|
410
|
+
* Heading of the section this option belongs to. Ungrouped options come
|
|
411
|
+
* first; sections follow in the order their first option appears.
|
|
412
|
+
*/
|
|
413
|
+
group?: string;
|
|
414
|
+
};
|
|
377
415
|
/**
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
* must update `data` when it finishes, or call {@link DataTableRef} `refresh`
|
|
381
|
-
* for a table that loads rows with `pagination.loadPageData`.
|
|
416
|
+
* A saved view stores the table's filters, sort, and column layout.
|
|
417
|
+
* Selecting it applies them. The page owns the list.
|
|
382
418
|
*/
|
|
383
|
-
export type
|
|
384
|
-
/**
|
|
385
|
-
|
|
419
|
+
export type DataTableSavedView = {
|
|
420
|
+
/** Stable key used for selection, mutation, and reordering. */
|
|
421
|
+
id: string;
|
|
422
|
+
/** Displayed in the view list. */
|
|
423
|
+
name: string;
|
|
424
|
+
/** Applied to the filter bar when this view is selected. */
|
|
425
|
+
filters: Filter[];
|
|
426
|
+
/**
|
|
427
|
+
* Applied when this view is selected. Omit it for an unsorted table.
|
|
428
|
+
*/
|
|
429
|
+
sort?: SortedColumn;
|
|
430
|
+
/**
|
|
431
|
+
* Applied when this view is selected. Omit it to use the table's columns.
|
|
432
|
+
* Choosing this view clears a custom layout.
|
|
433
|
+
*/
|
|
434
|
+
columns?: DataTableColumnPref[];
|
|
435
|
+
/**
|
|
436
|
+
* Where the view came from. The menu's Default chip marks `defaultId`, not this field.
|
|
437
|
+
*/
|
|
438
|
+
source?: "system" | "user";
|
|
439
|
+
/** Removes the view from update. */
|
|
440
|
+
disableEdit?: boolean;
|
|
441
|
+
/** Removes delete from the edit flow. */
|
|
442
|
+
disableDelete?: boolean;
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* Saved views shown in View Options. Requires `filters`. Without `filters`,
|
|
446
|
+
* the section is omitted.
|
|
447
|
+
*/
|
|
448
|
+
export type DataTableSavedViews = {
|
|
449
|
+
/**
|
|
450
|
+
* Full list. The menu shows the first three, then “N more”, which opens the
|
|
451
|
+
* rest in a submenu. A default stored past those three moves into the menu.
|
|
452
|
+
*/
|
|
453
|
+
views: DataTableSavedView[];
|
|
454
|
+
/**
|
|
455
|
+
* Replaces the saved-view list with a load failure. Save, sort, and edit
|
|
456
|
+
* columns stay available.
|
|
457
|
+
*/
|
|
458
|
+
loadError?: boolean;
|
|
459
|
+
/** Marks the matching view with a trailing check. */
|
|
460
|
+
activeId?: string;
|
|
461
|
+
/**
|
|
462
|
+
* Persists a named snapshot of the current filters, sort, and column layout.
|
|
463
|
+
* A returned promise controls loading; resolving closes the drawer and
|
|
464
|
+
* rejecting keeps it open.
|
|
465
|
+
*/
|
|
466
|
+
onSave?: (payload: {
|
|
467
|
+
name: string;
|
|
468
|
+
filters: Filter[];
|
|
469
|
+
sort?: SortedColumn;
|
|
470
|
+
columns?: DataTableColumnPref[];
|
|
471
|
+
}) => void | Promise<void>;
|
|
472
|
+
/**
|
|
473
|
+
* Overwrites a view. Update Saved View sends the filters, sort, and columns
|
|
474
|
+
* currently on the table. Edit Saved Views sends the name, filters, sort,
|
|
475
|
+
* and column layout from that view's edit screen.
|
|
476
|
+
* A returned promise controls the confirm dialog and the edit drawer:
|
|
477
|
+
* resolving closes that surface, and rejecting keeps it open.
|
|
478
|
+
*/
|
|
479
|
+
onUpdate?: (id: string, update: {
|
|
480
|
+
name: string;
|
|
481
|
+
filters: Filter[];
|
|
482
|
+
sort?: SortedColumn;
|
|
483
|
+
columns?: DataTableColumnPref[];
|
|
484
|
+
}) => void | Promise<void>;
|
|
485
|
+
/**
|
|
486
|
+
* Deletes a view. Edit Saved Views calls this from each row and from that view's edit screen.
|
|
487
|
+
* Reject when the view isn't deleted. If it resolves while the page keeps the view in the
|
|
488
|
+
* same `views` array, Apply leaves that view out of the saved order until the page passes a
|
|
489
|
+
* new list or the drawer reopens.
|
|
490
|
+
*/
|
|
491
|
+
onDelete?: (id: string) => void | Promise<void>;
|
|
492
|
+
/**
|
|
493
|
+
* Receives the full id order after a reorder in Edit Saved Views. The menu
|
|
494
|
+
* still shows the default first, then the next views from this order.
|
|
495
|
+
*/
|
|
496
|
+
onReorder?: (orderedIds: string[]) => void | Promise<void>;
|
|
497
|
+
/**
|
|
498
|
+
* Id of the stored default. The page owns this value. That view shows a
|
|
499
|
+
* Default chip in the menu and in Edit Saved Views, stays first in the menu,
|
|
500
|
+
* and stays in Visible Views. Its edit screen shows a star labelled Default
|
|
501
|
+
* view beside the title.
|
|
502
|
+
*/
|
|
503
|
+
defaultId?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Notifies the page of a new default id, or `undefined` when Set Default View is
|
|
506
|
+
* cleared. Omit it to hide Set Default View. DataTable does not store the id
|
|
507
|
+
* or change the filters, sort, columns, or active view. Persist it and pass
|
|
508
|
+
* it back as `defaultId`. The page shows that view when the table first loads.
|
|
509
|
+
*/
|
|
510
|
+
onSetDefault?: (id: string | undefined) => void;
|
|
511
|
+
/**
|
|
512
|
+
* Choosing a view calls this with that view's id. Choosing that view again,
|
|
513
|
+
* or Reset Table, calls this with `undefined`. DataTable does not store the active
|
|
514
|
+
* view, so set `activeId` from this callback. Matching filters alone does not
|
|
515
|
+
* identify a view.
|
|
516
|
+
*/
|
|
517
|
+
onActiveChange?: (id: string | undefined) => void;
|
|
518
|
+
/**
|
|
519
|
+
* Validates trimmed names in the save and edit flows. Return an error to
|
|
520
|
+
* block submission.
|
|
521
|
+
*/
|
|
522
|
+
validateName?: (name: string, currentId?: string) => string | undefined;
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* View Options menu on the filter row. An empty object shows the shell.
|
|
526
|
+
* Saved views, sorting, and edit columns attach to this same prop.
|
|
527
|
+
*/
|
|
528
|
+
export type DataTableViewOptions = {
|
|
529
|
+
/** Called from Save as New View when `savedViews` is omitted. */
|
|
530
|
+
onSaveView?: () => void;
|
|
531
|
+
/** Called from Edit Saved Views when `savedViews` is omitted. */
|
|
532
|
+
onEditViews?: () => void;
|
|
533
|
+
/** Called when Sort By is chosen. */
|
|
534
|
+
onSort?: () => void;
|
|
535
|
+
/**
|
|
536
|
+
* Called from Edit Columns when `columnEditing.hideButton` is set and this
|
|
537
|
+
* table is not opening its own drawer.
|
|
538
|
+
*/
|
|
539
|
+
onEditColumns?: () => void;
|
|
540
|
+
/** Saved views. Omitted from the menu when `filters` is not set. */
|
|
541
|
+
savedViews?: DataTableSavedViews;
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* Options of the Add button's menu, a searchable {@link Menu} of actions:
|
|
545
|
+
* choosing an option calls `onSelectOption` and closes the menu.
|
|
546
|
+
*/
|
|
547
|
+
export type DataTableRowAddMenu = {
|
|
548
|
+
/** Actions the user can search and choose, e.g. ways to start a new row. */
|
|
549
|
+
options: DataTableRowAddOption[];
|
|
550
|
+
/** Fires with the chosen option. */
|
|
551
|
+
onSelectOption: (option: DataTableRowAddOption) => void;
|
|
552
|
+
/**
|
|
553
|
+
* Footer button below a divider, e.g. "Add manually" opening a dialog. It
|
|
554
|
+
* stays visible while searching.
|
|
555
|
+
*/
|
|
556
|
+
addManual?: {
|
|
557
|
+
/**
|
|
558
|
+
* Static button text.
|
|
559
|
+
* @default "Add new item"
|
|
560
|
+
*/
|
|
561
|
+
label?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Shown before the label. Pass `null` for a text-only button.
|
|
564
|
+
* @default the Add icon
|
|
565
|
+
*/
|
|
566
|
+
icon?: Svg | null;
|
|
567
|
+
onClick: () => void;
|
|
568
|
+
};
|
|
569
|
+
/** Placeholder of the menu's search field. */
|
|
570
|
+
searchPlaceholder?: string;
|
|
571
|
+
};
|
|
572
|
+
type DataTableRowAddBase = {
|
|
386
573
|
/**
|
|
387
574
|
* Label of the Add button.
|
|
388
575
|
* @default "Add row"
|
|
@@ -393,9 +580,35 @@ export type DataTableRowAdd = {
|
|
|
393
580
|
/** Shows the Add button as busy, e.g. while an external check runs. */
|
|
394
581
|
loading?: boolean;
|
|
395
582
|
/**
|
|
396
|
-
*
|
|
583
|
+
* Where the Add button sits. `top` places it at the right end of the toolbar
|
|
584
|
+
* above the table, after Edit Columns and View Options; `bottom` places it below the table;
|
|
585
|
+
* `both` renders it in both places.
|
|
586
|
+
* @default "bottom"
|
|
587
|
+
*/
|
|
588
|
+
position?: "top" | "bottom" | "both";
|
|
589
|
+
/**
|
|
590
|
+
* Size of the Add button below the table. At the top it takes the size of the
|
|
591
|
+
* toolbar controls.
|
|
397
592
|
* @default "medium"
|
|
398
593
|
*/
|
|
399
594
|
size?: ToolbarSize;
|
|
400
595
|
};
|
|
596
|
+
/**
|
|
597
|
+
* Add row button. DataTable only fires the callback: the page owns the flow,
|
|
598
|
+
* such as a dialog or a takeover, and must update `data` when it finishes, or
|
|
599
|
+
* call {@link DataTableRef} `refresh` for a table that loads rows with
|
|
600
|
+
* `pagination.loadPageData`.
|
|
601
|
+
*
|
|
602
|
+
* Pass `onAddRow` for a plain button, or `menu` to open a menu of options
|
|
603
|
+
* instead.
|
|
604
|
+
*/
|
|
605
|
+
export type DataTableRowAdd = DataTableRowAddBase & ({
|
|
606
|
+
/** Fires when the Add button is clicked. */
|
|
607
|
+
onAddRow: () => void;
|
|
608
|
+
menu?: never;
|
|
609
|
+
} | {
|
|
610
|
+
onAddRow?: never;
|
|
611
|
+
/** Turns the Add button into a menu trigger. Replaces `onAddRow`. */
|
|
612
|
+
menu: DataTableRowAddMenu;
|
|
613
|
+
});
|
|
401
614
|
export {};
|
|
@@ -10,6 +10,28 @@ import { MultiSelectMenuProps } from '../../../components/MultiSelectMenu/types'
|
|
|
10
10
|
* Built-in display treatments. Each maps to default formatting and alignment.
|
|
11
11
|
*/
|
|
12
12
|
export type ColumnType = "text" | "number" | "currency" | "percent" | "date" | "dateTime" | "time" | "boolean" | "markdown" | "html";
|
|
13
|
+
/**
|
|
14
|
+
* Sort Order labels for an `html` column. `asc` is the first choice and
|
|
15
|
+
* `desc` is the second.
|
|
16
|
+
*/
|
|
17
|
+
export type HtmlSortOrder = {
|
|
18
|
+
/** Label for an ascending sort. */
|
|
19
|
+
asc: string;
|
|
20
|
+
/** Label for a descending sort. */
|
|
21
|
+
desc: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Options for an `html` column. Sort Order defaults to A–Z and Z–A.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* type: { type: "html", options: { sortOrder: { asc: "Low–High", desc: "High–Low" } } }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export type HtmlColumnOptions = {
|
|
32
|
+
/** Replaces the Sort Order labels. Other column types ignore this. */
|
|
33
|
+
sortOrder?: HtmlSortOrder;
|
|
34
|
+
};
|
|
13
35
|
/**
|
|
14
36
|
* Formatter options accepted by each built-in column type.
|
|
15
37
|
*/
|
|
@@ -23,7 +45,7 @@ export type ColumnTypeOptionsMap = {
|
|
|
23
45
|
time: TimeFormatterOptions;
|
|
24
46
|
boolean: BooleanFormatterOptions;
|
|
25
47
|
markdown: undefined;
|
|
26
|
-
html: undefined;
|
|
48
|
+
html: HtmlColumnOptions | undefined;
|
|
27
49
|
};
|
|
28
50
|
/**
|
|
29
51
|
* Built-in type shorthand, or an object that customizes its formatter.
|
|
@@ -34,7 +34,10 @@ type CalendarCommonProps = Omit<ComponentPropsWithoutRef<"div">, "value" | "defa
|
|
|
34
34
|
};
|
|
35
35
|
/** Locale for month, weekday, and accessible date labels. Defaults to the browser locale. */
|
|
36
36
|
locale?: Locale;
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Zone used to parse dates and determine today. Defaults to the browser time
|
|
39
|
+
* zone, or `UTC` when that zone is invalid.
|
|
40
|
+
*/
|
|
38
41
|
defaultTimeZone?: IanaZone;
|
|
39
42
|
/** First column in the month grid. Defaults to `Sunday`. */
|
|
40
43
|
startDay?: "Sunday" | "Monday";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DragCancelEvent, DragEndEvent, DragOverEvent, DragStartEvent } from '@dnd-kit/core';
|
|
2
|
+
import { default as announcements } from './announcements';
|
|
3
|
+
type Announce<Event> = (event: Event, defaultMessage: string) => string;
|
|
4
|
+
export type DndSortAnnouncementOverrides = {
|
|
5
|
+
onDragStart?: Announce<DragStartEvent>;
|
|
6
|
+
onDragOver?: Announce<DragOverEvent>;
|
|
7
|
+
onDragEnd?: Announce<DragEndEvent>;
|
|
8
|
+
onDragCancel?: Announce<DragCancelEvent>;
|
|
9
|
+
};
|
|
10
|
+
export declare const DndSortAnnouncementsContext: import('react').Context<DndSortAnnouncementOverrides | undefined>;
|
|
11
|
+
export declare function mergeAnnouncements(overrides: DndSortAnnouncementOverrides | undefined): typeof announcements;
|
|
12
|
+
export {};
|
|
@@ -1,14 +1,42 @@
|
|
|
1
1
|
import { ButtonProps } from '../Button';
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
3
|
import { DataTrackingId } from '../../types';
|
|
4
|
-
import {
|
|
4
|
+
import { MenuGroup } from './MenuGroup';
|
|
5
|
+
import { MenuCommonProps, MenuFooterButton } from './types';
|
|
5
6
|
export type MenuProps = Omit<ButtonProps, "icon"> & MenuCommonProps & {
|
|
6
7
|
/** Shown before the default trigger's label. */
|
|
7
8
|
icon?: IconProps["svg"];
|
|
9
|
+
/**
|
|
10
|
+
* Adds a search field that filters `Menu.Item`s by label (and their
|
|
11
|
+
* `searchText`). Nested menus are not filtered. Focus starts in the field, and Enter chooses the first match.
|
|
12
|
+
*/
|
|
13
|
+
searchable?: boolean;
|
|
14
|
+
/** Placeholder of the search field. Defaults to `Search`. */
|
|
15
|
+
searchPlaceholder?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Controlled search string. Pair with `onSearchChange`, which also fires
|
|
18
|
+
* with `""` when the menu closes and clears the search.
|
|
19
|
+
*/
|
|
20
|
+
searchValue?: string;
|
|
21
|
+
/** Called as the user types or clears the search field. */
|
|
22
|
+
onSearchChange?: (searchValue: string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Turns off the built-in filtering so you decide which items render for the
|
|
25
|
+
* current search, for example from a server. Pair with `searchValue` or
|
|
26
|
+
* `onSearchChange`. Defaults to `false`.
|
|
27
|
+
*/
|
|
28
|
+
manualFilter?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Buttons pinned below the items under a divider, e.g. "Add new". They stay
|
|
31
|
+
* visible while searching, close the menu on click, and are reached with
|
|
32
|
+
* Tab or with Arrow Down from the last item.
|
|
33
|
+
*/
|
|
34
|
+
footerButtons?: MenuFooterButton[];
|
|
8
35
|
} & DataTrackingId;
|
|
9
36
|
/**
|
|
10
37
|
* Triggered action menu with arrow-key navigation. Nest another `Menu` to
|
|
11
|
-
* create a submenu
|
|
38
|
+
* create a submenu, group items with `Menu.Group`, and opt into `searchable`
|
|
39
|
+
* or `footerButtons` for long menus. Use a select component for form values.
|
|
12
40
|
*
|
|
13
41
|
* @example
|
|
14
42
|
* <Menu label="Actions">
|
|
@@ -20,9 +48,7 @@ export type MenuProps = Omit<ButtonProps, "icon"> & MenuCommonProps & {
|
|
|
20
48
|
*/
|
|
21
49
|
export declare const Menu: ((props: MenuProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
22
50
|
/** Action item that closes the root menu after selection. */
|
|
23
|
-
Item: import('react').ForwardRefExoticComponent<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
} & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataTrackingId & import('react').ButtonHTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
51
|
+
Item: import('react').ForwardRefExoticComponent<import('./MenuItem').MenuItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
/** Headed section of items. */
|
|
53
|
+
Group: typeof MenuGroup;
|
|
28
54
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type MenuGroupProps = {
|
|
3
|
+
/** Heading shown above the group's items. */
|
|
4
|
+
label: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Headed section of `Menu.Item`s. While a `searchable` menu filters, the whole
|
|
9
|
+
* group, heading included, hides once none of its items match.
|
|
10
|
+
*/
|
|
11
|
+
export declare function MenuGroup({ label, children }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare namespace MenuGroup {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { DataTrackingId } from '../../types';
|
|
3
3
|
import { IconProps } from '../Icon';
|
|
4
|
-
|
|
4
|
+
type MenuItemShared = {
|
|
5
5
|
/** Shown before the item label. */
|
|
6
6
|
icon?: IconProps["svg"];
|
|
7
7
|
/** Visible item content and the source of its tracking label. */
|
|
8
8
|
label: ReactNode;
|
|
9
9
|
/** Prevents selection while retaining the item in keyboard navigation. */
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Extra text a `searchable` menu matches besides the label. Needed to search
|
|
13
|
+
* an item whose `label` is not a string.
|
|
14
|
+
*/
|
|
15
|
+
searchText?: string;
|
|
16
|
+
} & Omit<ComponentPropsWithoutRef<"button">, "role" | "aria-checked"> & DataTrackingId;
|
|
17
|
+
export type MenuItemProps = (MenuItemShared & {
|
|
18
|
+
/** `menuitemradio` exposes a checked view. Defaults to `menuitem`. */
|
|
19
|
+
role?: "menuitem";
|
|
20
|
+
"aria-checked"?: ComponentPropsWithoutRef<"button">["aria-checked"];
|
|
21
|
+
}) | (MenuItemShared & {
|
|
22
|
+
/** `menuitemradio` exposes a checked view. Defaults to `menuitem`. */
|
|
23
|
+
role: "menuitemradio";
|
|
24
|
+
"aria-checked": NonNullable<ComponentPropsWithoutRef<"button">["aria-checked"]>;
|
|
25
|
+
});
|
|
12
26
|
/**
|
|
13
27
|
* Action item within a `Menu`. Selecting it invokes `onClick` and closes
|
|
14
28
|
* the root menu.
|
|
15
29
|
*/
|
|
16
|
-
export declare const MenuItem: import('react').ForwardRefExoticComponent<
|
|
17
|
-
|
|
18
|
-
icon?: IconProps["svg"];
|
|
19
|
-
/** Visible item content and the source of its tracking label. */
|
|
20
|
-
label: ReactNode;
|
|
21
|
-
/** Prevents selection while retaining the item in keyboard navigation. */
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
} & Omit<import('react').DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataTrackingId & ButtonHTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
export declare const MenuItem: import('react').ForwardRefExoticComponent<MenuItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
export {};
|
|
@@ -2,5 +2,8 @@ import { MenuProps } from '../Menu';
|
|
|
2
2
|
export type MenuContextProps = {
|
|
3
3
|
closeRootMenu: () => void;
|
|
4
4
|
disableAutoHeight: MenuProps["disableAutoHeight"];
|
|
5
|
+
/** Current search text of a `searchable` root menu; empty otherwise. */
|
|
6
|
+
searchText: string;
|
|
7
|
+
searchable: boolean;
|
|
5
8
|
};
|
|
6
9
|
export declare const MenuContext: import('react').Context<MenuContextProps | null>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { IconProps } from '../../Icon';
|
|
3
|
+
import { DataTrackingId } from '../../../types';
|
|
3
4
|
import { MenuCommonProps } from '../types';
|
|
4
5
|
export type MenuNestedProps = ComponentPropsWithoutRef<"button"> & MenuCommonProps & {
|
|
5
6
|
/** Shown before the default submenu trigger's label. */
|
|
6
7
|
icon?: IconProps["svg"];
|
|
7
|
-
|
|
8
|
+
focusOnPointerMove?: boolean;
|
|
9
|
+
} & DataTrackingId;
|
|
8
10
|
/** Implements nested `Menu` instances as horizontally positioned submenus. */
|
|
9
11
|
export declare const MenuNested: (props: MenuNestedProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1,8 @@
|
|
|
1
1
|
export declare const getMenuFocusableItemsSelector: (scrollerId: string) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Whether any of `text` matches `search` under match-sorter's default rules,
|
|
4
|
+
* the same matching the select components use. An empty search matches
|
|
5
|
+
* everything without ranking, since every `Menu.Item` of every menu asks on
|
|
6
|
+
* each render.
|
|
7
|
+
*/
|
|
8
|
+
export declare const matchesMenuSearch: (search: string, ...text: string[]) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Placement, UseFloatingOptions } from '@floating-ui/react';
|
|
2
2
|
import { AriaAttributes, FocusEvent, KeyboardEvent, MouseEvent, ReactElement, Ref } from 'react';
|
|
3
|
+
import { IconProps } from '../Icon';
|
|
3
4
|
/**
|
|
4
5
|
* Props supplied to a custom trigger. Spread them onto the returned element;
|
|
5
6
|
* nested trigger semantics participate in the parent's keyboard navigation.
|
|
@@ -32,8 +33,10 @@ export type MenuReturnProps = {
|
|
|
32
33
|
onFocus?: (e: FocusEvent<HTMLElement>) => void;
|
|
33
34
|
/** Nested only; returns the next rendered `tabIndex` to `-1`. */
|
|
34
35
|
onBlur?: (e: FocusEvent<HTMLElement>) => void;
|
|
35
|
-
/**
|
|
36
|
+
/** Nested only; focuses the trigger on pointer entry. Omitted in `searchable` menus. */
|
|
36
37
|
onMouseEnter?: (e: MouseEvent<HTMLElement>) => void;
|
|
38
|
+
/** Nested only; focuses the trigger on pointer movement. Replaces `onMouseEnter` in `searchable` menus. */
|
|
39
|
+
onMouseMove?: (e: MouseEvent<HTMLElement>) => void;
|
|
37
40
|
/** Attach to the trigger element for positioning and focus restoration. */
|
|
38
41
|
ref?: Ref<HTMLButtonElement>;
|
|
39
42
|
};
|
|
@@ -77,3 +80,13 @@ export type MenuCommonProps = {
|
|
|
77
80
|
/** Caps root-menu content height after viewport sizing. */
|
|
78
81
|
maxHeight?: number | string;
|
|
79
82
|
};
|
|
83
|
+
/** A button in a root `Menu`'s `footerButtons`. */
|
|
84
|
+
export type MenuFooterButton = {
|
|
85
|
+
/** Button text. Static; it does not react to the search field. */
|
|
86
|
+
label: string;
|
|
87
|
+
/** Called after the menu closes. */
|
|
88
|
+
onClick: () => void;
|
|
89
|
+
/** Shown before the label. */
|
|
90
|
+
icon?: IconProps["svg"];
|
|
91
|
+
disabled?: boolean;
|
|
92
|
+
};
|
|
@@ -2,6 +2,7 @@ export * from './childrenToString';
|
|
|
2
2
|
export * from './inlineMarkdown';
|
|
3
3
|
export * from './stripInlineMarkdown';
|
|
4
4
|
export * from './getActiveElement';
|
|
5
|
+
export * from './getBrowserTimeZone';
|
|
5
6
|
export * from './getInitial';
|
|
6
7
|
export * from './getKeyboardFocusableElements';
|
|
7
8
|
export * from './kebabize';
|
|
@@ -3,12 +3,12 @@ import { S as Spinner } from './Spinner-B7tTWcP6.js';
|
|
|
3
3
|
import { c as cx } from './index-De1g9FRV.js';
|
|
4
4
|
import { useState, useRef, useCallback, useEffect, useMemo, forwardRef, useId, useImperativeHandle, useLayoutEffect } from 'react';
|
|
5
5
|
import { C as COMMON_PART, A as ANV_PART_ATTR } from './anvParts-DFVq7-Cm.js';
|
|
6
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { T as Text } from './Text-QNJBWFFq.js';
|
|
7
7
|
import { D as Divider } from './Divider-C7fp5Xb6.js';
|
|
8
8
|
import { u as useMergeRefs } from './useMergeRefs-Dfmtq9cI.js';
|
|
9
9
|
import { I as Icon } from './Icon-B5zwN7GD.js';
|
|
10
10
|
import { S as SvgCheck } from './check-Cf67OWrZ.js';
|
|
11
|
-
import { i as isThenable, c as OptionRow, d as OptionRowSideContent, e as OptionCheckbox, f as OptionContentArea, b as useAdaptiveView } from './useInvalidateOnOptionsChange-
|
|
11
|
+
import { i as isThenable, c as OptionRow, d as OptionRowSideContent, e as OptionCheckbox, f as OptionContentArea, b as useAdaptiveView } from './useInvalidateOnOptionsChange-CHtQ5odJ.js';
|
|
12
12
|
import { B as Button } from './Button-B_E6ybA-.js';
|
|
13
13
|
import { S as SrOnly } from './SrOnly-pnf8ajnh.js';
|
|
14
14
|
import { d as defaultRangeExtractor, u as useVirtualizer } from './index-DXeGMe23.js';
|
|
@@ -1427,4 +1427,4 @@ const sortByGroup = (options, groupSorter) => {
|
|
|
1427
1427
|
};
|
|
1428
1428
|
|
|
1429
1429
|
export { AddNewItemButton as A, OptionsPanel as O, VirtualizedOptionsPanel as V, useProcessedOptions as a, buildSelectItems as b, sortByGroup as c, defaultSyncFilter as d, toSelectItem as e, shouldShowAddNewItem as s, toSyncFilterFn as t, useSelectOrchestration as u };
|
|
1430
|
-
//# sourceMappingURL=syncFilterUtils-
|
|
1430
|
+
//# sourceMappingURL=syncFilterUtils-DHvuD1u_.js.map
|