@povio/ui 5.0.1-rc.1 → 5.1.0-rc.1
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/README.md +23 -0
- package/dist/{Alert-24ruR0iF.d.ts → Alert-DJ7J4ZFJ.d.ts} +2 -2
- package/dist/{AlertDialog-Co3gNMwE.d.ts → AlertDialog-Cg63pVUa.d.ts} +3 -3
- package/dist/{Autocomplete-BQ9ZQoJt.d.ts → Autocomplete-C2XybizC.d.ts} +1 -1
- package/dist/{Autocomplete-XP-Qdlrm.js → Autocomplete-D-g3ok8P.js} +4 -4
- package/dist/{Autocomplete.bound-DCbFBXjJ.d.ts → Autocomplete.bound-BaJYZGJp.d.ts} +1 -1
- package/dist/{Autocomplete.bound-DFL87TOZ.js → Autocomplete.bound-CJVuetm8.js} +2 -2
- package/dist/{Badge-DZLVacMd.d.ts → Badge-BSH4YVD_.d.ts} +2 -2
- package/dist/{BadgeButton-coK9Fzoc.d.ts → BadgeButton-Bwq0SSef.d.ts} +2 -2
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-D6S4vH_L.js} +1 -1
- package/dist/{BottomSheet-BlcmdfAT.d.ts → BottomSheet-DdHoUvNv.d.ts} +1 -1
- package/dist/{BottomSheet.lazy-CGjuurej.d.ts → BottomSheet.lazy-BLCi51_F.d.ts} +1 -1
- package/dist/{Breadcrumbs-DfREVuAC.d.ts → Breadcrumbs-qAYF_jG0.d.ts} +1 -1
- package/dist/{Button-dRFJundh.js → Button-BQkrCpgq.js} +1 -1
- package/dist/{Button-Cphxmj43.d.ts → Button-zLy_nLM2.d.ts} +1 -1
- package/dist/{ButtonBase-BCYFCbSV.js → ButtonBase-7s_flUU5.js} +1 -1
- package/dist/{ButtonBase-CfSqmiom.d.ts → ButtonBase-B0t70Brt.d.ts} +3 -3
- package/dist/{Calendar-DLlUsZP2.js → Calendar-DpI8K7xm.js} +38 -18
- package/dist/{Calendar.lazy-Bl5amf0W.js → Calendar.lazy-Dg50nZQY.js} +3 -3
- package/dist/{Checkbox-DYeofZzs.js → Checkbox-CZ9_SfXz.js} +2 -2
- package/dist/{Checkbox-D2VVq5Bi.d.ts → Checkbox-Df6NfL5V.d.ts} +1 -1
- package/dist/{Checkbox.bound-DQYJMtCs.js → Checkbox.bound-C5GA4K6k.js} +2 -2
- package/dist/{Checkbox.bound-Hdvnrnwb.d.ts → Checkbox.bound-DmHYarAO.d.ts} +1 -1
- package/dist/{CheckboxCheckmark-DYhxLfZN.js → CheckboxCheckmark-Bqp1iJtc.js} +2 -2
- package/dist/{CheckboxGroup-CK_tTvvI.js → CheckboxGroup-C6FbtubK.js} +2 -2
- package/dist/{CheckboxGroup-CTkBMnBN.d.ts → CheckboxGroup-DXMP1Fex.d.ts} +3 -3
- package/dist/{CheckboxGroup.bound-wGcpw5tY.js → CheckboxGroup.bound-Dj0aSHC8.js} +2 -2
- package/dist/{CheckboxGroup.bound-C6e91DCT.d.ts → CheckboxGroup.bound-R_k5mYm8.d.ts} +1 -1
- package/dist/ColumnConfigContent-DkMScfib.js +1025 -0
- package/dist/ColumnListContent-DBQ09rAa.js +410 -0
- package/dist/{DatePicker-CqkS8dCf.js → DatePicker-BHU6CDtz.js} +43 -11
- package/dist/{DatePicker-1VbVBI4l.d.ts → DatePicker-BISGiQSI.d.ts} +3 -3
- package/dist/{DatePicker.bound-ZvJi_V8D.d.ts → DatePicker.bound-Cw6scTAM.d.ts} +1 -1
- package/dist/{DatePicker.bound-Bg524WMN.js → DatePicker.bound-RgShEA8L.js} +2 -2
- package/dist/{DatePickerInput-B8UhMVP6.d.ts → DatePickerInput-2sNgmuoN.d.ts} +3 -3
- package/dist/{DatePickerInput-jrCYehXn.js → DatePickerInput-BLTKP3tx.js} +4 -4
- package/dist/{DateRangePicker-B8O8nA1M.d.ts → DateRangePicker-BaB2DNLG.d.ts} +3 -3
- package/dist/{DateRangePicker-DfLnonW1.js → DateRangePicker-DXxtyr0r.js} +7 -7
- package/dist/{DateRangePicker.bound-Cahr-3cK.js → DateRangePicker.bound-DjVRKJcK.js} +2 -2
- package/dist/{DateRangePicker.bound-B_Lg8Tna.d.ts → DateRangePicker.bound-QCTKDVl_.d.ts} +1 -1
- package/dist/{DateTimePicker-BL8koIhS.js → DateTimePicker-CjcXV8rE.js} +5 -5
- package/dist/{DateTimePicker-BRy_VN63.d.ts → DateTimePicker-hszpbYIl.d.ts} +3 -3
- package/dist/{DateTimePicker.bound-BheJ0Rny.js → DateTimePicker.bound-CzCsHpRR.js} +2 -2
- package/dist/{DateTimePicker.bound-Bt9wdYeR.d.ts → DateTimePicker.bound-ZCaPwW0Y.d.ts} +1 -1
- package/dist/{Dialog-B10YV23i.js → Dialog-C1Bx2GEV.js} +1 -1
- package/dist/{Dialog-CDiUZFcf.d.ts → Dialog-Ds0TI_Td.d.ts} +1 -1
- package/dist/{DropdownMenu-oJzwpMXL.d.ts → DropdownMenu-DB7o7x8-.d.ts} +2 -2
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-RxtMVBps.js} +1 -1
- package/dist/{FileInput-3wNdotBt.js → FileInput-Ckhcg51P.js} +3 -3
- package/dist/{FileInput-Bm3_nNb4.d.ts → FileInput-DfxsB0a1.d.ts} +5 -5
- package/dist/{FileInput.bound-puNboLYc.d.ts → FileInput.bound-CLhQYqpj.d.ts} +1 -1
- package/dist/{FileInput.bound-CJdou4D6.js → FileInput.bound-wgeflaxC.js} +2 -2
- package/dist/{FileUpload-ksjKICmv.d.ts → FileUpload-3-6Qglu_.d.ts} +1 -1
- package/dist/{FileUpload-C3IMKBRp.js → FileUpload-Lx_SbMx3.js} +518 -42
- package/dist/{FileUpload.bound-D4sr1tsH.d.ts → FileUpload.bound-13y385n5.d.ts} +2 -2
- package/dist/{FileUpload.bound-Bf4LzJUU.js → FileUpload.bound-Bc5UpoqY.js} +2 -2
- package/dist/{FileUploadContainer-DRIxUmp2.d.ts → FileUploadContainer-BkWliwMs.d.ts} +1 -1
- package/dist/{FormField-DHCcfchm.d.ts → FormField-DudIjynh.d.ts} +1 -1
- package/dist/{IconButton-BqmX_sMz.d.ts → IconButton-DjSMQQ21.d.ts} +1 -1
- package/dist/{Input-DRR8_MgG.js → Input-B5gqqeY2.js} +3 -3
- package/dist/{Input-DKNzGXy-.d.ts → Input-DOcHgfnC.d.ts} +3 -3
- package/dist/{Input.bound-BxngTsaq.d.ts → Input.bound-BQ5qmiic.d.ts} +1 -1
- package/dist/{Input.bound-3CTdQnA8.js → Input.bound-Dh_r-cuO.js} +2 -2
- package/dist/{InputContent-BkNnqXt3.js → InputContent-C-Ehc3a1.js} +1 -1
- package/dist/{InputContent-C5wdgK9u.d.ts → InputContent-DPk9z1ok.d.ts} +3 -3
- package/dist/{Link-n1MxiBY_.d.ts → Link-BLfof_56.d.ts} +2 -2
- package/dist/{MenuItem-Cj7ytjH0.d.ts → MenuItem-CcTiVJwA.d.ts} +1 -1
- package/dist/{NumberField-OjtbK2Uh.js → NumberField-BV7btNsa.js} +3 -3
- package/dist/{NumberField-BUTmx-kv.d.ts → NumberField-twNxAPIR.d.ts} +3 -3
- package/dist/{NumberField.bound-DhGXXd4v.d.ts → NumberField.bound-CEDt5Qal.d.ts} +1 -1
- package/dist/{NumberField.bound-D-uZoLYH.js → NumberField.bound-m0TMCT0p.js} +2 -2
- package/dist/{NumberRangeInput-EKzbxaN0.js → NumberRangeInput-Bpe21Zud.js} +2 -2
- package/dist/{NumberRangeInput-BwUPbB0M.d.ts → NumberRangeInput-CPorXVrd.d.ts} +2 -2
- package/dist/{NumberRangeInput.bound-j_WC6iJC.d.ts → NumberRangeInput.bound-4rJn1cqj.d.ts} +1 -1
- package/dist/{NumberRangeInput.bound-CmXDNvF1.js → NumberRangeInput.bound-YNjx-mcx.js} +2 -2
- package/dist/{PageHeader-DtV-4JEh.d.ts → PageHeader--_hyMRiw.d.ts} +2 -2
- package/dist/{PasswordInput-DNt_CfI8.d.ts → PasswordInput-RaHAwisG.d.ts} +1 -1
- package/dist/{PasswordInput.bound-EOqjNEVC.d.ts → PasswordInput.bound-CY6PTSDk.d.ts} +1 -1
- package/dist/{PasswordInput.bound-lnJeVf4k.js → PasswordInput.bound-CiJodOlN.js} +2 -2
- package/dist/{Popover-DRqROtxR.d.ts → Popover-C4GKBeaX.d.ts} +2 -2
- package/dist/{Progress-uzAAtLNk.d.ts → Progress-CnckNLA0.d.ts} +2 -2
- package/dist/{RadioGroup-Dvq0TiEB.js → RadioGroup-C5oxb7Zu.js} +1 -1
- package/dist/{RadioGroup-skcBf54J.d.ts → RadioGroup-CzE2pv1Z.d.ts} +3 -3
- package/dist/{RadioGroup.bound-CpxN2p6t.d.ts → RadioGroup.bound-DxYpHGgd.d.ts} +1 -1
- package/dist/{RadioGroup.bound-Dya9IgZr.js → RadioGroup.bound-YnYV2ADL.js} +2 -2
- package/dist/{RangeCalendar-BuRiCB7z.js → RangeCalendar-Bmeu-aDS.js} +4 -4
- package/dist/{RichTextEditor-Cg-S5lhK.js → RichTextEditor-60wfzqDv.js} +4 -4
- package/dist/{RichTextEditor-B9zaBMWl.d.ts → RichTextEditor-jHcEEeUf.d.ts} +1 -1
- package/dist/{Select-DNF-GpuC.d.ts → Select-B3uIrS07.d.ts} +3 -3
- package/dist/{Select-DfgTo2X3.js → Select-Dd5yAUMX.js} +26 -12
- package/dist/{Select.bound-CpN6KalY.d.ts → Select.bound-7yT5eT1D.d.ts} +1 -1
- package/dist/{Select.bound-XC8lgM6E.js → Select.bound-B5BABhqc.js} +2 -2
- package/dist/{SelectListBox-B_bqWSLU.js → SelectListBox-Ci3VXYDB.js} +12 -9
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-DjprMXTK.js} +1 -1
- package/dist/{SidebarWorkspaces-Drgog0IO.d.ts → SidebarWorkspaces-j4eNE3Dc.d.ts} +1 -1
- package/dist/{Slider-DCsCCPFx.js → Slider-Cyg3xUIy.js} +1 -1
- package/dist/{Slider-JlRCD72s.d.ts → Slider-DPkwrTPB.d.ts} +1 -1
- package/dist/{Slider.bound-DO1l_qJQ.js → Slider.bound-DR4CDKah.js} +2 -2
- package/dist/{Slider.bound-BChOUGvm.d.ts → Slider.bound-mDyKpk5b.d.ts} +1 -1
- package/dist/{Spinner-DNguPtBP.d.ts → Spinner-DDIGQMdy.d.ts} +2 -2
- package/dist/{SplitButton-BTuc5oYU.d.ts → SplitButton-Cl0OotCy.d.ts} +3 -3
- package/dist/{Stepper-DNu5YlbG.d.ts → Stepper-C42LqWVY.d.ts} +2 -2
- package/dist/{Switch-CVt-dT9Z.d.ts → Switch-AzzCGybn.d.ts} +1 -1
- package/dist/{Switch-BfpSMMpv.js → Switch-C0JkyNRc.js} +1 -1
- package/dist/{Switch.bound-D8QsLsS4.js → Switch.bound-Akzh7yLe.js} +2 -2
- package/dist/{Switch.bound-56C86rOe.d.ts → Switch.bound-BN6VZFIu.d.ts} +1 -1
- package/dist/TableDnd-lKAzjdMo.js +224 -0
- package/dist/TableDragHandle-Dypn1H3e.js +42 -0
- package/dist/{TableRowDetails-A_FdBE_d.d.ts → TableRowDetails-BUjTAaX_.d.ts} +9 -5
- package/dist/{TabsFilters-BDoCGfRA.d.ts → TabsFilters-D5_GTSUn.d.ts} +1 -1
- package/dist/{TabsFilters-DtZrvnTC.js → TabsFilters-DinXME1z.js} +2 -2
- package/dist/{Tag-BxYYX-i7.d.ts → Tag-BT_DWubz.d.ts} +3 -3
- package/dist/{TextArea-DxAHDgz4.d.ts → TextArea-BLBtdME_.d.ts} +2 -2
- package/dist/{TextArea-nySHbed0.js → TextArea-BuZ7-sl8.js} +2 -2
- package/dist/{TextArea.bound-DbSMg_Kz.js → TextArea.bound-Cq9ygf7N.js} +2 -2
- package/dist/{TextArea.bound-oSnqk1Un.d.ts → TextArea.bound-DNIv0B6x.d.ts} +1 -1
- package/dist/{TimePicker-Fnj3QZ3G.js → TimePicker-CWXawTn4.js} +4 -4
- package/dist/{TimePicker-Yg84ntZH.d.ts → TimePicker-NjamhLJ4.d.ts} +2 -2
- package/dist/{TimePicker.bound-5b_qcmeo.d.ts → TimePicker.bound-BX86D4HJ.d.ts} +1 -1
- package/dist/{TimePicker.bound-DLflOXZm.js → TimePicker.bound-DINg3Eqe.js} +2 -2
- package/dist/{TimePickerForm-Bv8S3M_p.js → TimePickerForm-Csp_0tIY.js} +13 -8
- package/dist/{Toast-DbIZorlS.d.ts → Toast-DzsNOMnh.d.ts} +1 -1
- package/dist/{ToastContainer-DtpZaefx.js → ToastContainer-J4y5mLdO.js} +3 -3
- package/dist/{ToggleButton-CdcLn-PW.d.ts → ToggleButton-BOjC9UCs.d.ts} +1 -1
- package/dist/{ToggleGroup-Co1-A0Ti.js → ToggleGroup-BSl6K-jV.js} +1 -1
- package/dist/{ToggleGroup-Cbx9Keza.d.ts → ToggleGroup-z8vtwj1Y.d.ts} +1 -1
- package/dist/{ToggleGroup.bound-DNxhSz1h.js → ToggleGroup.bound-Bbk2CqZi.js} +2 -2
- package/dist/{ToggleGroup.bound-dDLGgcJm.d.ts → ToggleGroup.bound-pTKJagth.d.ts} +1 -1
- package/dist/{Tooltip-Bg9AFtGw.d.ts → Tooltip-B_Tt4Bck.d.ts} +1 -1
- package/dist/{TooltipWrapper-DmcWMIp0.js → TooltipWrapper-D6sJYclQ.js} +2 -2
- package/dist/{Typography-MkA6LnHW.d.ts → Typography-kfXNpNVv.d.ts} +1 -1
- package/dist/{badgeButton.cva-Bjhs4ops.d.ts → badgeButton.cva-CPQAbZ8Y.d.ts} +3 -3
- package/dist/{badgeButton.cva-CqaR8KBt.js → badgeButton.cva-DbGx8oRe.js} +3 -2
- package/dist/{button.cva-DoDFPTm5.d.ts → button.cva-BDd6y8E8.d.ts} +3 -3
- package/dist/{buttonContent.cva-Dj7Eve71.d.ts → buttonContent.cva-CbHXH_yh.d.ts} +2 -2
- package/dist/calendar.cva-BEQxOs-f.js +195 -0
- package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
- package/dist/{checkbox.cva-DUvQJdT-.d.ts → checkbox.cva-Cd4qZzud.d.ts} +3 -3
- package/dist/columnConfig.cva-CERwSZRN.js +29 -0
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +3 -3
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge-button.d.ts +1 -1
- package/dist/components/badge-button.js +28 -21
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +3 -3
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +22 -18
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/file-input.d.ts +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon-slot.d.ts +1 -1
- package/dist/components/input-frame.d.ts +4 -4
- package/dist/components/input-frame.js +4 -4
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/link.d.ts +1 -1
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.d.ts +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +2 -2
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +2 -2
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/style-definitions.d.ts +2 -2
- package/dist/components/style-definitions.js +31 -4
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +1 -1
- package/dist/components/tabs-filters.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +2 -2
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/component-configuration.d.ts +2 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/{confirmation.context-ByjNx2uA.js → confirmation.context-CzsTRZem.js} +1 -1
- package/dist/{confirmation.context-CAt_T5qZ.d.ts → confirmation.context-DiFWm5XR.d.ts} +1 -1
- package/dist/{dist-fFtzh872.js → dist-xgJbeZHj.js} +12 -8
- package/dist/{fileUpload.types-CfUkihds.d.ts → fileUpload.types-J2_-C028.d.ts} +2 -2
- package/dist/{form.binding-Ddx5NGCq.js → form.binding-DOR5gIQf.js} +1 -1
- package/dist/{i18n-JT8Yui4a.d.ts → i18n-ChMvQtCN.d.ts} +22 -0
- package/dist/{i18n-DxbqkvyK.js → i18n-x5Ncs165.js} +24 -2
- package/dist/{iconSlot.cva-I0pFwkGy.d.ts → iconSlot.cva-Ce-gT2l9.d.ts} +2 -2
- package/dist/icons.d.ts +1 -1
- package/dist/{import-Duf36Dbs.js → import-BTw4QXEc.js} +39 -15
- package/dist/index.d.ts +76 -75
- package/dist/index.js +46 -45
- package/dist/{input.cva-cNv7yhcp.d.ts → input.cva-CrHUbtM5.d.ts} +2 -2
- package/dist/{link.context-LSbvpZCL.d.ts → link.context-i4nBN7Vz.d.ts} +1 -1
- package/dist/{logger-CW24po62.js → logger-CqZjM-sn.js} +1 -10
- package/dist/{radio.cva-CtBwM88n.d.ts → radio.cva-CrEoyom3.d.ts} +3 -3
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
- package/dist/{staticDateTimeSegments-DeeSpTzj.js → staticDateTimeSegments-B0svHpvh.js} +29 -14
- package/dist/{style-definitions-DJOlAxCG.d.ts → style-definitions-BcKPX5mb.d.ts} +120 -4
- package/dist/styles/input.d.ts +1 -1
- package/dist/{switch.cva-DmuYW9tg.d.ts → switch.cva-CRU1tzXQ.d.ts} +3 -3
- package/dist/{table.cva-DkcsOmZG.js → table.cva-DJhjptlL.js} +58 -17
- package/dist/tableCells.cva-Br0_kgRM.js +18 -0
- package/dist/tableColumnConfigStorage-7W1CssoX.js +215 -0
- package/dist/tableVirtualStore-whSmFzTV.js +67 -0
- package/dist/tanstack/autocomplete.d.ts +2 -2
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.d.ts +2 -2
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.d.ts +2 -2
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +2 -2
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +2 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +2 -2
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +2 -2
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +3 -3
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +2 -2
- package/dist/tanstack/input.d.ts +2 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.d.ts +2 -2
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.d.ts +2 -2
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/radio-group.d.ts +2 -2
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +1 -1
- package/dist/tanstack/rich-text-editor.js +2 -2
- package/dist/tanstack/select.d.ts +2 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +2 -2
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +2 -2
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table-context.d.ts +2 -0
- package/dist/tanstack/table-context.js +2 -0
- package/dist/tanstack/table-types.d.ts +55 -0
- package/dist/tanstack/table.d.ts +4 -3
- package/dist/tanstack/table.js +3 -2
- package/dist/tanstack/text-area.d.ts +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +2 -2
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +2 -2
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{tanstack-DzNVI2Rj.d.ts → tanstack-Ci8mM89Q.d.ts} +67 -67
- package/dist/tanstack-table-DQhB9xMa.d.ts +656 -0
- package/dist/tanstack-table-iAD6ZDHR.js +5004 -0
- package/dist/tanstack.d.ts +76 -75
- package/dist/tanstack.js +46 -45
- package/dist/{toast.cva-BnXRIWVy.d.ts → toast.cva-BXdt_pK4.d.ts} +3 -3
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-Bc90e3cT.js} +5 -1
- package/dist/{toast.runtime-BWQLlbZW.js → toast.runtime-DUT7yTvj.js} +1 -1
- package/dist/{toggleGroup.cva-BZcOUjIS.d.ts → toggleGroup.cva-CZ-Nr2qS.d.ts} +2 -2
- package/dist/{typography.cva-DcBCiskp.d.ts → typography.cva-DbNNkjuR.d.ts} +2 -2
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-BsLQ10JQ.js} +58 -3
- package/dist/uiConfig.context-CEuWPygU.d.ts +250 -0
- package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-CO9peDGD.d.ts} +101 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-C9N7g37E.js} +2 -2
- package/dist/{useForm-C7wrpJ2t.js → useForm-Cb7KWLds.js} +1 -1
- package/dist/{useFormAutosave-Cy0wTigY.js → useFormAutosave-BPGlChiY.js} +2 -2
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-CZg2YIi8.js} +1 -1
- package/dist/useTableVirtualizer-B5g8oTj1.d.ts +160 -0
- package/dist/{useToast-CjyrMHdh.d.ts → useToast-UqFXSmK_.d.ts} +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +13 -1
- package/dist/uiConfig.context-CoE2HBL4.d.ts +0 -133
- package/dist/useTableColumnConfig-xvu1zw0E.js +0 -2377
- package/dist/useTableNav-DxuUTKn5.d.ts +0 -200
|
@@ -0,0 +1,656 @@
|
|
|
1
|
+
import { a as TableColumnConfigStorage, l as TableColumnStorageTarget, p as CellLinkPreloadHandlers, r as TableDragHandleProps } from "./useTableVirtualizer-B5g8oTj1.js";
|
|
2
|
+
import "./uiOverrides.context-CO9peDGD.js";
|
|
3
|
+
import { n as TypographyProps } from "./Typography-kfXNpNVv.js";
|
|
4
|
+
import "./IconSlot-DcEDPaNb.js";
|
|
5
|
+
import { i as TableVariant, r as TableRowVariantProps, t as TableRowDetails } from "./TableRowDetails-BUjTAaX_.js";
|
|
6
|
+
import { CSSProperties, ComponentType, Dispatch, FC, KeyboardEvent, MouseEvent, PropsWithChildren, ReactNode, RefObject, SetStateAction } from "react";
|
|
7
|
+
import { ColumnDef, ColumnOrderState, ColumnPinningState, ColumnSizingState, ColumnVisibilityState, ExpandedState, Header, OnChangeFn, Row, RowData, RowSelectionState, SortingState, StockFeatures, Table } from "@tanstack/react-table";
|
|
8
|
+
import { DragEndEvent, DragStartEvent, UniqueIdentifier } from "@dnd-kit/core";
|
|
9
|
+
import { TFunction } from "i18next";
|
|
10
|
+
//#region src/components/table/CellText.d.ts
|
|
11
|
+
interface CellTextProps extends Partial<Pick<TypographyProps, "size">> {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
declare const CellText: FC<CellTextProps>;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/table/CellDate.d.ts
|
|
19
|
+
interface CellDateProps {
|
|
20
|
+
/** A `Date` or ISO string. Missing or invalid values render `/`. */
|
|
21
|
+
children: Date | string | null | undefined;
|
|
22
|
+
/** Locale used for formatting. Defaults to the active i18next language. */
|
|
23
|
+
locale?: string;
|
|
24
|
+
}
|
|
25
|
+
/** Local calendar date. */
|
|
26
|
+
declare const CellDate: (props: CellDateProps) => string;
|
|
27
|
+
/** Calendar date in UTC, for date-only values stored as UTC midnight. */
|
|
28
|
+
declare const CellDateUTC: (props: CellDateProps) => string;
|
|
29
|
+
/** Local date and 24-hour time; the time is left out at midnight. */
|
|
30
|
+
declare const CellDateTime: (props: CellDateProps) => string;
|
|
31
|
+
/** Date and time in UTC; the time is left out at midnight. */
|
|
32
|
+
declare const CellDateTimeUTC: (props: CellDateProps) => string;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/table/CellLink.d.ts
|
|
35
|
+
interface CellLinkProps extends CellLinkPreloadHandlers {
|
|
36
|
+
/** Target of the link. Without it the cell renders plain text. */
|
|
37
|
+
href?: string;
|
|
38
|
+
/** Accessible name and tooltip of the link icon. Defaults to "Open". */
|
|
39
|
+
label?: string;
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Cell text with an icon that opens `href` in a new tab, shown on hover or focus. Clicking it never activates the row.
|
|
44
|
+
* Preload handlers on the props take precedence over `CellLinkPreloadContext`.
|
|
45
|
+
*/
|
|
46
|
+
declare const CellLink: ({ href, label, children, onPreload, onPreloadCancel }: CellLinkProps) => import("react").JSX.Element;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/table/CellNumber.d.ts
|
|
49
|
+
interface CellNumberProps {
|
|
50
|
+
/** Numbers are formatted for the locale; anything else renders as is. */
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
/** Unit or currency shown after the value, separated by a non-breaking space. */
|
|
53
|
+
unit?: string;
|
|
54
|
+
/** `Intl.NumberFormat` options, e.g. fraction digits. Merged over `tableCellNumber.formatOptions` from `UIConfig`. */
|
|
55
|
+
numberOptions?: Intl.NumberFormatOptions;
|
|
56
|
+
/** Locale used for formatting. Defaults to the active i18next language. */
|
|
57
|
+
locale?: string;
|
|
58
|
+
}
|
|
59
|
+
interface CellNumberValueProps {
|
|
60
|
+
/** An already formatted value. */
|
|
61
|
+
children: ReactNode;
|
|
62
|
+
/** Unit or currency shown after the value. */
|
|
63
|
+
unit?: string;
|
|
64
|
+
}
|
|
65
|
+
/** Renders a formatted value with its unit, for values formatted elsewhere. */
|
|
66
|
+
declare const CellNumberValue: ({ children: formattedValue, unit }: CellNumberValueProps) => import("react").JSX.Element;
|
|
67
|
+
/** A number formatted for the active locale, with an optional unit. */
|
|
68
|
+
declare const CellNumber: ({ children, unit, numberOptions, locale }: CellNumberProps) => import("react").JSX.Element;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/table/cellDateFormatters.d.ts
|
|
71
|
+
interface CellDateFormatOptions {
|
|
72
|
+
/** Locale used for formatting. Defaults to the active i18next language, then the runtime locale. */
|
|
73
|
+
locale?: string;
|
|
74
|
+
}
|
|
75
|
+
/** Shown for a missing or invalid date. */
|
|
76
|
+
declare const CELL_DATE_PLACEHOLDER = "/";
|
|
77
|
+
/** Turns a cell value into a `Date`; empty values become `null`. */
|
|
78
|
+
declare const toCellDate: (value: Date | string | null | undefined) => Date | null;
|
|
79
|
+
/** Local calendar date, e.g. `09/07/2026`. */
|
|
80
|
+
declare const formatCellDateValue: (value: Date | null | undefined, { locale }?: CellDateFormatOptions) => string;
|
|
81
|
+
/** Calendar date in UTC, for date-only values stored as UTC midnight. */
|
|
82
|
+
declare const formatCellDateUTCValue: (value: Date | null | undefined, { locale }?: CellDateFormatOptions) => string;
|
|
83
|
+
/** Local date and 24-hour time; the time is left out at midnight. */
|
|
84
|
+
declare const formatCellDateTimeValue: (value: Date | null | undefined, { locale }?: CellDateFormatOptions) => string;
|
|
85
|
+
/** Date and time in UTC; the time is left out at midnight. */
|
|
86
|
+
declare const formatCellDateTimeUTCValue: (value: Date | null | undefined, { locale }?: CellDateFormatOptions) => string;
|
|
87
|
+
/** `formatCellDateTimeValue` for ISO strings. */
|
|
88
|
+
declare const formatCellDateTime: (value: string | null | undefined, options?: CellDateFormatOptions) => string;
|
|
89
|
+
/** `formatCellDateTimeUTCValue` for ISO strings. */
|
|
90
|
+
declare const formatCellDateTimeUTC: (value: string | null | undefined, options?: CellDateFormatOptions) => string;
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/table/columnFormatters.d.ts
|
|
93
|
+
/** Plain-text value for exports and `textFormatter`; `null` for missing values. */
|
|
94
|
+
declare const formatColumnText: (value: unknown) => string | null;
|
|
95
|
+
/** A number in the given locale, defaulting to the active i18next language. */
|
|
96
|
+
declare const formatColumnNumber: (value: number | null | undefined, locale?: string) => string | null;
|
|
97
|
+
/** An enum value with its first letter capitalized. */
|
|
98
|
+
declare const formatColumnEnum: (value: string | null | undefined) => string | null;
|
|
99
|
+
/** `Yes` / `No` by default; pass `labels` to translate them. */
|
|
100
|
+
declare const formatColumnBoolean: (value: boolean | null | undefined, labels?: {
|
|
101
|
+
yes: string;
|
|
102
|
+
no: string;
|
|
103
|
+
}) => string | null;
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/table/columnOrder.d.ts
|
|
106
|
+
/**
|
|
107
|
+
* Sorts columns (in place) by a saved list of ids. Columns missing from `order` keep their relative order at the end.
|
|
108
|
+
*/
|
|
109
|
+
declare function orderTableColumns<TColumn extends {
|
|
110
|
+
id?: string;
|
|
111
|
+
accessorKey?: unknown;
|
|
112
|
+
header?: unknown;
|
|
113
|
+
}>(columns: TColumn[], order?: readonly string[]): TColumn[];
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/table/ColumnConfigContent.d.ts
|
|
116
|
+
type ColumnDef$4<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
117
|
+
interface ColumnConfigProps<TData extends RowData, TValue> {
|
|
118
|
+
/** All configurable columns, in their current order. */
|
|
119
|
+
configColumns: ColumnDef$4<TData, TValue>[];
|
|
120
|
+
visibleColumns: ColumnVisibilityState;
|
|
121
|
+
columnPinning: ColumnPinningState;
|
|
122
|
+
/** Columns left out of the configuration, e.g. selection or actions. */
|
|
123
|
+
excludedColumnIds?: string[];
|
|
124
|
+
/** The table's default sorting. Shown with `onDefaultSortingChange`. */
|
|
125
|
+
defaultSorting?: SortingState;
|
|
126
|
+
/** Adds a default sorting picker for columns with `enableSorting: true`. */
|
|
127
|
+
onDefaultSortingChange?: (sorting: SortingState) => void;
|
|
128
|
+
/** Order restored by Reset. Defaults to the columns' natural order. */
|
|
129
|
+
defaultColumnOrder?: ColumnOrderState;
|
|
130
|
+
/** Pinning restored by Reset. Defaults to no pinned columns. */
|
|
131
|
+
defaultColumnPinning?: ColumnPinningState;
|
|
132
|
+
onVisibilityChange: (visibleColumns: ColumnVisibilityState) => void;
|
|
133
|
+
onOrderChange: (columnOrder: ColumnOrderState) => void;
|
|
134
|
+
onPinningChange: (columnPinning: ColumnPinningState) => void;
|
|
135
|
+
/** Called after Reset has restored the defaults through the change callbacks. */
|
|
136
|
+
onReset?: () => void;
|
|
137
|
+
}
|
|
138
|
+
interface ColumnConfigContentProps<TData extends RowData, TValue> extends ColumnConfigProps<TData, TValue> {
|
|
139
|
+
/** Shows a close button. */
|
|
140
|
+
onClose?: () => void;
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/components/table/ColumnConfig.d.ts
|
|
144
|
+
type ColumnDef$3<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
145
|
+
type VisibilityState$1 = ColumnVisibilityState;
|
|
146
|
+
/** The pinning layout of the column configuration (three drop zones), loaded on first render. */
|
|
147
|
+
declare const ColumnConfigContent: <TData extends RowData, TValue>(props: ColumnConfigContentProps<TData, TValue>) => import("react").JSX.Element;
|
|
148
|
+
interface ColumnConfigModalProps<TData extends RowData, TValue> {
|
|
149
|
+
isOpen: boolean;
|
|
150
|
+
onClose: () => void;
|
|
151
|
+
/** Called when the popover opens or closes. */
|
|
152
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
153
|
+
configColumns: ColumnDef$3<TData, TValue>[];
|
|
154
|
+
visibleColumns: VisibilityState$1;
|
|
155
|
+
onVisibilityChange: (visibleColumns: VisibilityState$1) => void;
|
|
156
|
+
onOrderChange: (columnOrder: ColumnOrderState) => void;
|
|
157
|
+
/**
|
|
158
|
+
* Shows a "Reset" button that restores the default visibility and order. With pinning, Reset is always shown and
|
|
159
|
+
* this is called after the defaults are restored.
|
|
160
|
+
*/
|
|
161
|
+
onReset?: () => void;
|
|
162
|
+
/** Pinned column ids. Pass it with `onPinningChange` to configure pinning in three drop zones. */
|
|
163
|
+
columnPinning?: ColumnPinningState;
|
|
164
|
+
/** Turns on pinning: columns are dragged between pinned-left, scrollable and pinned-right zones. */
|
|
165
|
+
onPinningChange?: (columnPinning: ColumnPinningState) => void;
|
|
166
|
+
/** Columns left out of the pinning configuration, e.g. selection or actions. */
|
|
167
|
+
excludedColumnIds?: string[];
|
|
168
|
+
/** The table's default sorting. Shown with `onDefaultSortingChange` in the pinning layout. */
|
|
169
|
+
defaultSorting?: SortingState;
|
|
170
|
+
/** Adds a default sorting picker to the pinning layout. */
|
|
171
|
+
onDefaultSortingChange?: (sorting: SortingState) => void;
|
|
172
|
+
/** Order restored by Reset in the pinning layout. Defaults to the columns' natural order. */
|
|
173
|
+
defaultColumnOrder?: ColumnOrderState;
|
|
174
|
+
/** Pinning restored by Reset in the pinning layout. Defaults to no pinned columns. */
|
|
175
|
+
defaultColumnPinning?: ColumnPinningState;
|
|
176
|
+
/** `ColumnConfigPopover` only: renders the trigger as an icon button. */
|
|
177
|
+
iconOnly?: boolean;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Dialog for choosing visible columns and their order. Pass `columnPinning` and `onPinningChange` to also configure
|
|
181
|
+
* pinning: columns are then dragged between pinned-left, scrollable and pinned-right zones.
|
|
182
|
+
*/
|
|
183
|
+
declare function ColumnConfigModal<TData extends RowData, TValue>(props: ColumnConfigModalProps<TData, TValue>): import("react").JSX.Element | null;
|
|
184
|
+
/**
|
|
185
|
+
* `ColumnConfigModal` in a popover (a bottom sheet on small screens) with its own trigger button.
|
|
186
|
+
* Renders nothing while `TableConfigurationEnabledContext` is off.
|
|
187
|
+
*/
|
|
188
|
+
declare function ColumnConfigPopover<TData extends RowData, TValue>(props: ColumnConfigModalProps<TData, TValue>): import("react").JSX.Element | null;
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/components/table/HeaderText.d.ts
|
|
191
|
+
interface HeaderTextProps extends Partial<Pick<TypographyProps, "size">> {
|
|
192
|
+
children: ReactNode;
|
|
193
|
+
className?: string;
|
|
194
|
+
style?: CSSProperties;
|
|
195
|
+
}
|
|
196
|
+
declare const HeaderText: FC<HeaderTextProps>;
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/table/useColumnResize.d.ts
|
|
199
|
+
/**
|
|
200
|
+
* How column widths are decided.
|
|
201
|
+
* - `natural`: the browser fits columns to their content; widths become fixed from the first resize on.
|
|
202
|
+
* - `sized`: columns take their `size`. Until a column is resized (or `meta.hasSavedWidths` is set) the columns
|
|
203
|
+
* stretch to fill the table, except those with `meta.grow: false`, a fixed size or a selection model.
|
|
204
|
+
*/
|
|
205
|
+
type TableColumnLayout = "natural" | "sized";
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/components/table/TableHead.d.ts
|
|
208
|
+
type Header$1<TData extends RowData> = Header<StockFeatures, TData, unknown>;
|
|
209
|
+
type Column<TData extends RowData> = Header$1<TData>["column"];
|
|
210
|
+
/** What `renderColumnFilter` gets for each header. */
|
|
211
|
+
interface TableColumnFilterContext<TData extends RowData> {
|
|
212
|
+
column: Column<TData>;
|
|
213
|
+
table: Table<StockFeatures, TData>;
|
|
214
|
+
/** `meta.filterKey`, or the column id. */
|
|
215
|
+
filterKey: string;
|
|
216
|
+
}
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/components/table/TableMountBoundary.d.ts
|
|
219
|
+
/**
|
|
220
|
+
* Mounts its children in a normal-priority render right after the page's first commit, so the page (and a table's
|
|
221
|
+
* header and loading rows) paints before a heavy table mounts.
|
|
222
|
+
*/
|
|
223
|
+
declare const TableMountBoundary: ({ children }: PropsWithChildren) => import("react").ReactNode;
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/components/table/TableRow.d.ts
|
|
226
|
+
/** A drag handle for the row `rowId`, for tables with `enableDragDrop`. */
|
|
227
|
+
declare const RowDragHandleCell: ({ rowId }: {
|
|
228
|
+
rowId: string;
|
|
229
|
+
}) => import("react").JSX.Element;
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/components/table/Table.d.ts
|
|
232
|
+
type ColumnDef$2<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
233
|
+
type ReactTable<TData extends RowData> = Table<StockFeatures, TData>;
|
|
234
|
+
type Row$1<TData extends RowData> = Row<StockFeatures, TData>;
|
|
235
|
+
type VisibilityState = ColumnVisibilityState;
|
|
236
|
+
type BulkSelectionActionsComponent<T extends RowData> = ComponentType<{
|
|
237
|
+
table: ReactTable<T>;
|
|
238
|
+
}>;
|
|
239
|
+
interface TableWrapperProps<T extends RowData> extends Omit<TableProps<T>, "columns"> {}
|
|
240
|
+
/** What `renderRow` gets for each row. */
|
|
241
|
+
interface TableRowRenderContext<T extends RowData> {
|
|
242
|
+
row: Row$1<T>;
|
|
243
|
+
/** The row as the table would render it. */
|
|
244
|
+
defaultRow: ReactNode;
|
|
245
|
+
/** Spread on a drag handle inside the rendered rows (`enableDragDrop`). */
|
|
246
|
+
dragHandleProps?: TableDragHandleProps;
|
|
247
|
+
}
|
|
248
|
+
interface TableReorderContext {
|
|
249
|
+
oldIndex: number;
|
|
250
|
+
newIndex: number;
|
|
251
|
+
itemId: UniqueIdentifier;
|
|
252
|
+
}
|
|
253
|
+
interface TableProps<T extends RowData> extends TableRowVariantProps {
|
|
254
|
+
items: T[];
|
|
255
|
+
columns: ((t: TFunction) => ColumnDef$2<T>[]) | ColumnDef$2<T>[];
|
|
256
|
+
/** Lines between columns. Defaults to on, except for the `horizontals`, `zebra` and `striped-columns` variants. */
|
|
257
|
+
showCellBorder?: boolean;
|
|
258
|
+
onRowClick?: (row: T) => void;
|
|
259
|
+
onDoubleClick?: (row: T) => void;
|
|
260
|
+
/** Middle click on a row. */
|
|
261
|
+
onAuxClick?: (row: T) => void;
|
|
262
|
+
/** Right click on a row; the browser menu doesn't open. */
|
|
263
|
+
onRightClick?: (row: T, event?: MouseEvent) => void;
|
|
264
|
+
/** The pointer enters a row, e.g. to prefetch its details. */
|
|
265
|
+
onRowHover?: (row: T) => void;
|
|
266
|
+
/** Extra class for a row. */
|
|
267
|
+
getRowClassName?: (row: T) => string | undefined;
|
|
268
|
+
className?: string;
|
|
269
|
+
/** Border style. Defaults to `table.variant` from `UIConfig`. */
|
|
270
|
+
variant?: TableVariant;
|
|
271
|
+
/** Class for the scroll container around the table. */
|
|
272
|
+
containerClassName?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Max height of the scroll container. When set, rows scroll inside the table and the header stays pinned.
|
|
275
|
+
* Without it the table grows with its rows; wide tables always scroll horizontally.
|
|
276
|
+
*/
|
|
277
|
+
maxHeight?: CSSProperties["maxHeight"];
|
|
278
|
+
/**
|
|
279
|
+
* What scrolls when the table is larger than its space. Defaults to `table.scroll` from `UIConfig` (`table`).
|
|
280
|
+
* - `table`: the table scrolls inside its own container.
|
|
281
|
+
* - `page`: the page, or the nearest scrolling parent, scrolls; the header pins to its top. `maxHeight` is ignored.
|
|
282
|
+
*/
|
|
283
|
+
scroll?: "table" | "page";
|
|
284
|
+
sorting?: SortingState;
|
|
285
|
+
setSorting?: Dispatch<SetStateAction<SortingState>>;
|
|
286
|
+
/** Clicking a column sorted the second way clears its sorting. Defaults to `table.enableSortingRemoval` (on). */
|
|
287
|
+
enableSortingRemoval?: boolean;
|
|
288
|
+
/** Sorting moves back to the first page. Defaults to `table.resetPageIndexOnSorting` (off). */
|
|
289
|
+
resetPageIndexOnSorting?: boolean;
|
|
290
|
+
columnOrder?: ColumnOrderState;
|
|
291
|
+
setColumnOrder?: Dispatch<SetStateAction<ColumnOrderState>>;
|
|
292
|
+
columnVisibility?: VisibilityState;
|
|
293
|
+
setColumnVisibility?: Dispatch<SetStateAction<VisibilityState>>;
|
|
294
|
+
/** Shows a pin button in each header. Pinned columns stay in view and move to the start of the table. */
|
|
295
|
+
enableColumnPinning?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Pinned column ids. Without it the table keeps pinning in its own state, starting from the columns'
|
|
298
|
+
* `meta.configuredPinPosition`.
|
|
299
|
+
*/
|
|
300
|
+
columnPinning?: ColumnPinningState;
|
|
301
|
+
setColumnPinning?: Dispatch<SetStateAction<ColumnPinningState>>;
|
|
302
|
+
/**
|
|
303
|
+
* Shows a resize handle on each header's edge (drag it, or focus it and use the arrow keys).
|
|
304
|
+
* Limit a column with `minSize` / `maxSize`. Defaults to `table.enableColumnResizing` from `UIConfig`;
|
|
305
|
+
* always off inside `TableConfigurationEnabledContext` set to `false`.
|
|
306
|
+
*/
|
|
307
|
+
enableColumnResizing?: boolean;
|
|
308
|
+
/** Column widths in pixels. Without it the table keeps the widths in its own state. */
|
|
309
|
+
columnSizing?: ColumnSizingState;
|
|
310
|
+
setColumnSizing?: Dispatch<SetStateAction<ColumnSizingState>>;
|
|
311
|
+
/**
|
|
312
|
+
* How column widths are decided. Defaults to `table.columnLayout` from `UIConfig` (`natural`).
|
|
313
|
+
* - `natural`: columns fit their content; they keep their widths from the first resize on.
|
|
314
|
+
* - `sized`: columns take their `size` and stretch to fill the table until one is resized (or the columns have
|
|
315
|
+
* `meta.hasSavedWidths`). Double-clicking a resize handle fits the column to its content. Without resizing, a
|
|
316
|
+
* column's `size` is its minimum width.
|
|
317
|
+
*/
|
|
318
|
+
columnLayout?: TableColumnLayout;
|
|
319
|
+
/** Sets the columns' widths from their `size` (columns without one fit their content), without resizing. */
|
|
320
|
+
useColumnWidths?: boolean;
|
|
321
|
+
/** CSS `table-layout`, overriding the one the column layout picks. */
|
|
322
|
+
tableLayout?: CSSProperties["tableLayout"];
|
|
323
|
+
/**
|
|
324
|
+
* Row details, opened by clicking a row (unless `onRowClick` is set). `mode` defaults to `table.rowDetailsMode` from
|
|
325
|
+
* `UIConfig`: `drawer` slides in from the side, `split` opens beside the table, `expand` opens under the row.
|
|
326
|
+
* In `drawer` and `split` mode Enter on a cell opens them too; `expand` adds a chevron column.
|
|
327
|
+
* Pass `getRowId` so open rows survive sorting and paging. Not available with `enableDragDrop`.
|
|
328
|
+
*/
|
|
329
|
+
rowDetails?: TableRowDetails<T>;
|
|
330
|
+
/** Open rows by id (one at a time in `drawer` and `split` mode). Without it the table keeps them in its own state. */
|
|
331
|
+
expanded?: ExpandedState;
|
|
332
|
+
setExpanded?: Dispatch<SetStateAction<ExpandedState>>;
|
|
333
|
+
bulkSelectionActions?: BulkSelectionActionsComponent<T>;
|
|
334
|
+
/**
|
|
335
|
+
* Rows can be dragged to reorder them; needs `getRowId`. dnd-kit loads on mount (see `preloadTableDnd`); the table
|
|
336
|
+
* shows its loading state until then. Rows are not virtualized, except with `renderRow`.
|
|
337
|
+
*/
|
|
338
|
+
enableDragDrop?: boolean;
|
|
339
|
+
/**
|
|
340
|
+
* Adds a leading drag handle column to `enableDragDrop` tables (default on). Turn it off to place your own handle,
|
|
341
|
+
* with `RowDragHandleCell` or `renderRow`'s `dragHandleProps`.
|
|
342
|
+
*/
|
|
343
|
+
showDragHandleColumn?: boolean;
|
|
344
|
+
onDragStart?: (event: DragStartEvent) => void;
|
|
345
|
+
onDragEnd?: (event: DragEndEvent) => void;
|
|
346
|
+
onReorder?: (reorderedItems: T[], context: TableReorderContext) => void;
|
|
347
|
+
/** Shows the new order right after a drop, until `items` changes. */
|
|
348
|
+
optimisticReordering?: boolean;
|
|
349
|
+
getRowId?: (row: T) => UniqueIdentifier;
|
|
350
|
+
enableRowSelection?: boolean | ((row: Row$1<T>) => boolean);
|
|
351
|
+
enableMultiRowSelection?: boolean | ((row: Row$1<T>) => boolean);
|
|
352
|
+
/** Selected rows get `data-selected` (and its style). Defaults to `table.highlightSelectedRows` (on). */
|
|
353
|
+
highlightSelectedRows?: boolean;
|
|
354
|
+
/** Rows with focus inside get the hover style. Defaults to `table.highlightFocusedRows` (on). */
|
|
355
|
+
highlightFocusedRows?: boolean;
|
|
356
|
+
/**
|
|
357
|
+
* Up and Down move the selection (and `onRowClick`) to the next row, with focus. The table itself takes focus.
|
|
358
|
+
* Defaults to `table.enableArrowKeyRowNavigation` (off).
|
|
359
|
+
*/
|
|
360
|
+
enableArrowKeyRowNavigation?: boolean;
|
|
361
|
+
/** Rows the arrow keys stop at. Defaults to rows that can be selected, or every row with `onRowClick`. */
|
|
362
|
+
canArrowKeyNavigateRow?: (row: Row$1<T>) => boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Initial selection when used alone. Later changes to this default are ignored, unless
|
|
365
|
+
* `table.followDefaultSelectedRows` is on: then a change of the selected ids resets the selection to it.
|
|
366
|
+
* When paired with `onRowSelectionChange`, this is the current controlled selection (despite the legacy name).
|
|
367
|
+
*/
|
|
368
|
+
defaultSelectedRows?: RowSelectionState;
|
|
369
|
+
/**
|
|
370
|
+
* Receives TanStack selection values or updater functions.
|
|
371
|
+
* Used alone, observes internally managed selection; paired with `defaultSelectedRows`, controls selection externally.
|
|
372
|
+
*/
|
|
373
|
+
onRowSelectionChange?: OnChangeFn<RowSelectionState>;
|
|
374
|
+
/** Content in each header after its label, e.g. a filter button. */
|
|
375
|
+
renderColumnFilter?: (context: TableColumnFilterContext<T>) => ReactNode;
|
|
376
|
+
/** Marks a header whose filter is applied with `data-filter-active`. */
|
|
377
|
+
isColumnFilterActive?: (context: TableColumnFilterContext<T>) => boolean;
|
|
378
|
+
/** Scrolls the table back to the top whenever this value changes, e.g. the applied filters. */
|
|
379
|
+
scrollResetKey?: unknown;
|
|
380
|
+
/** The first rows are loading: shows `loadingContent`, or skeleton rows, while there are no items. */
|
|
381
|
+
isLoading?: boolean;
|
|
382
|
+
/** Rows belong to a previous query (`placeholderData`): renders skeleton rows of the same count instead. */
|
|
383
|
+
isPlaceholderData?: boolean;
|
|
384
|
+
/** Shown when there are no rows and nothing is loading. */
|
|
385
|
+
emptyContent?: ReactNode;
|
|
386
|
+
/** Shown instead of skeleton rows while `isLoading`. */
|
|
387
|
+
loadingContent?: ReactNode;
|
|
388
|
+
/** More rows can load: renders an end marker for `loadMoreRef` and enables `onEndReached`. */
|
|
389
|
+
hasMoreRows?: boolean;
|
|
390
|
+
/** Ref for an element after the last row, to observe for loading more (rows that aren't virtualized). */
|
|
391
|
+
loadMoreRef?: (element: HTMLDivElement | null) => void;
|
|
392
|
+
/** Changes when a page has loaded, so `onEndReached` can fire again for the same row count. */
|
|
393
|
+
loadMoreKey?: number;
|
|
394
|
+
/** Virtualized rows reached the end after the user scrolled. */
|
|
395
|
+
onEndReached?: () => void;
|
|
396
|
+
/**
|
|
397
|
+
* Renders only the rows in view once there are more than `table.virtualization.rowThreshold`. Needs a bounded
|
|
398
|
+
* scroller: `maxHeight`, a fixed-height parent, or `scroll="page"`. Loads on demand (see `preloadTableVirtualizer`).
|
|
399
|
+
* Defaults to `table.virtualization.rows` (off). Not with `enableDragDrop` unless rows use `renderRow`.
|
|
400
|
+
*/
|
|
401
|
+
enableRowVirtualization?: boolean;
|
|
402
|
+
/**
|
|
403
|
+
* Renders only the cells of columns in view (plus pinned and `meta.keepMounted` columns) once there are more than
|
|
404
|
+
* `table.virtualization.columnThreshold`. Turn it off for rows whose height depends on off-screen cells.
|
|
405
|
+
* Defaults to `table.virtualization.columns` (off).
|
|
406
|
+
*/
|
|
407
|
+
enableColumnVirtualization?: boolean;
|
|
408
|
+
/** Row height before rows are measured, in px. Defaults to `table.virtualization.estimateRowSize`. */
|
|
409
|
+
estimateRowSize?: number;
|
|
410
|
+
/** Rows rendered beyond each edge of the view. Defaults to `table.virtualization.overscan`. */
|
|
411
|
+
virtualizationOverscan?: number;
|
|
412
|
+
/** Keeps two viewports of rows ready in each direction, for fast scrolling. */
|
|
413
|
+
viewportOverscan?: boolean;
|
|
414
|
+
/** Wraps each row, e.g. in a context provider. */
|
|
415
|
+
renderRowProvider?: (row: Row$1<T>, children: ReactNode) => ReactNode;
|
|
416
|
+
/** Renders a row and rows of your own around it; each row gets its own `<tbody>`. */
|
|
417
|
+
renderRow?: (context: TableRowRenderContext<T>) => ReactNode;
|
|
418
|
+
/** Content between the header and the rows, e.g. a `<tbody>` of totals. */
|
|
419
|
+
renderBodyStartRows?: (table: ReactTable<T>) => ReactNode;
|
|
420
|
+
/** Content after the rows, e.g. a `<tfoot>`. */
|
|
421
|
+
renderFooterRows?: (table: ReactTable<T>) => ReactNode;
|
|
422
|
+
/** Keeps the last row (e.g. totals) at the bottom of the view. */
|
|
423
|
+
stickyLastRow?: boolean;
|
|
424
|
+
}
|
|
425
|
+
declare const Table$1: <T extends RowData>({ items, showCellBorder, columns, onRowClick, onDoubleClick, onAuxClick, onRightClick, onRowHover, getRowClassName, className, variant: variantProp, containerClassName, maxHeight, scroll: scrollProp, sorting, setSorting, enableSortingRemoval, resetPageIndexOnSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, enableColumnPinning, columnPinning: columnPinningProp, setColumnPinning: setColumnPinningProp, enableColumnResizing: enableColumnResizingProp, columnSizing: columnSizingProp, setColumnSizing: setColumnSizingProp, columnLayout: columnLayoutProp, useColumnWidths, tableLayout, rowDetails, expanded: expandedProp, setExpanded: setExpandedProp, bulkSelectionActions: ActionHeader, enableDragDrop, showDragHandleColumn, onDragStart, onDragEnd, onReorder, optimisticReordering, getRowId, enableRowSelection, enableMultiRowSelection, highlightSelectedRows: highlightSelectedRowsProp, highlightFocusedRows, enableArrowKeyRowNavigation: enableArrowKeyRowNavigationProp, canArrowKeyNavigateRow, defaultSelectedRows, onRowSelectionChange, renderColumnFilter, isColumnFilterActive, scrollResetKey, isLoading, isPlaceholderData, emptyContent, loadingContent, hasMoreRows, loadMoreRef, loadMoreKey, onEndReached, enableRowVirtualization: enableRowVirtualizationProp, enableColumnVirtualization: enableColumnVirtualizationProp, estimateRowSize: estimateRowSizeProp, virtualizationOverscan, viewportOverscan, renderRowProvider, renderRow, renderBodyStartRows, renderFooterRows, stickyLastRow, highlightFocused, ...rowVariantProps }: TableProps<T>) => import("react").JSX.Element;
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region src/components/table/InfiniteTable.d.ts
|
|
428
|
+
/** One page of an infinite query. */
|
|
429
|
+
interface InfiniteTablePage<T> {
|
|
430
|
+
items: T[];
|
|
431
|
+
}
|
|
432
|
+
/** Infinite query data: the loaded pages in order. */
|
|
433
|
+
interface InfiniteTableData<T> {
|
|
434
|
+
pages: InfiniteTablePage<T>[];
|
|
435
|
+
}
|
|
436
|
+
/** The parts of a TanStack infinite query result the table reads. */
|
|
437
|
+
interface InfiniteTableQueryState {
|
|
438
|
+
data?: unknown;
|
|
439
|
+
fetchNextPage?: () => unknown;
|
|
440
|
+
hasNextPage?: boolean;
|
|
441
|
+
isFetching?: boolean;
|
|
442
|
+
isFetchingNextPage?: boolean;
|
|
443
|
+
isLoading?: boolean;
|
|
444
|
+
isPending?: boolean;
|
|
445
|
+
}
|
|
446
|
+
interface InfiniteTableWrapperProps<T extends RowData> extends Omit<InfiniteTableProps<T>, "columns"> {}
|
|
447
|
+
interface InfiniteTableProps<T extends RowData> extends Omit<TableProps<T>, "items"> {
|
|
448
|
+
/** Rows to show. Leave it out to read them from `data` or `query`. */
|
|
449
|
+
items?: T[];
|
|
450
|
+
/** Infinite query data; rows are the `items` of every page. */
|
|
451
|
+
data?: InfiniteTableData<T>;
|
|
452
|
+
/** An infinite query result. Explicit props take precedence over its fields; its initial load shows as loading. */
|
|
453
|
+
query?: InfiniteTableQueryState;
|
|
454
|
+
hasNextPage?: boolean;
|
|
455
|
+
isFetchingNextPage?: boolean;
|
|
456
|
+
fetchNextPage?: () => unknown;
|
|
457
|
+
/** Shown instead of rows when there are none. Defaults to `table.infiniteEmptyContent` from `UIConfig`. */
|
|
458
|
+
emptyContent?: ReactNode;
|
|
459
|
+
/**
|
|
460
|
+
* Mounts the table right after the page's first commit (see `TableMountBoundary`).
|
|
461
|
+
* Defaults to `table.infiniteDeferMount` from `UIConfig`.
|
|
462
|
+
*/
|
|
463
|
+
deferMount?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Where the next-page spinner appears.
|
|
466
|
+
* Defaults to `table.infiniteLoadingIndicator` from `UIConfig`.
|
|
467
|
+
* - `footer`: below the table while more pages exist.
|
|
468
|
+
* - `overlay`: centred over the visible rows while a page loads; the load trigger sits inside the table.
|
|
469
|
+
*/
|
|
470
|
+
loadingIndicator?: "footer" | "overlay";
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* A table that loads the next page as the user scrolls near its end. Pass `items` with `hasNextPage` /
|
|
474
|
+
* `fetchNextPage`, or the infinite query's `data` (or the whole `query`). Each page is requested once per `items` /
|
|
475
|
+
* `data` value, so keep that value stable between renders (memoize it) until new rows land; a failed request is
|
|
476
|
+
* retried on the next scroll.
|
|
477
|
+
*/
|
|
478
|
+
declare const InfiniteTable: <T extends RowData>({ items: itemsProp, data, query, hasNextPage, isFetchingNextPage, fetchNextPage, emptyContent, loadingIndicator: loadingIndicatorProp, deferMount: deferMountProp, isLoading, ...rest }: InfiniteTableProps<T>) => import("react").JSX.Element;
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region src/components/table/TableRowCheckbox.d.ts
|
|
481
|
+
interface TableRowCheckboxProps {
|
|
482
|
+
/** Accessible name of the checkbox. */
|
|
483
|
+
label: string;
|
|
484
|
+
className?: string;
|
|
485
|
+
isSelected: boolean;
|
|
486
|
+
isDisabled?: boolean;
|
|
487
|
+
/** Shows a partial selection; the native input is marked indeterminate. */
|
|
488
|
+
isIndeterminate?: boolean;
|
|
489
|
+
/** Icon shown while indeterminate. Defaults to a minus. */
|
|
490
|
+
indicator?: "check" | "plus" | "minus";
|
|
491
|
+
/** Receives the new selection and whether Shift was held, for range selection. */
|
|
492
|
+
onChange: (selected: boolean, shiftKey: boolean) => void;
|
|
493
|
+
}
|
|
494
|
+
/** A lightweight native checkbox for table rows and headers, cheap enough to render in every row. */
|
|
495
|
+
declare const TableRowCheckbox: ({ label, className, isSelected, isDisabled, isIndeterminate, indicator, onChange }: TableRowCheckboxProps) => import("react").JSX.Element;
|
|
496
|
+
//#endregion
|
|
497
|
+
//#region src/components/table/tableSelectionModel.d.ts
|
|
498
|
+
type TableSelectionState = {
|
|
499
|
+
selected: boolean;
|
|
500
|
+
disabled?: boolean;
|
|
501
|
+
indeterminate?: boolean;
|
|
502
|
+
indicator?: "check" | "minus" | "plus";
|
|
503
|
+
visible?: boolean;
|
|
504
|
+
fallbackIndicator?: "info";
|
|
505
|
+
};
|
|
506
|
+
interface TableSelectionModel<T> {
|
|
507
|
+
getRowState(row: T): TableSelectionState;
|
|
508
|
+
setRowSelected(row: T, selected: boolean): void;
|
|
509
|
+
getHeaderState?(): TableSelectionState;
|
|
510
|
+
setHeaderSelected?(selected: boolean): void;
|
|
511
|
+
}
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/components/table/TableSelectionCheckbox.d.ts
|
|
514
|
+
interface TableSelectionCheckboxProps<T> {
|
|
515
|
+
/** Accessible name of the checkbox. */
|
|
516
|
+
label: string;
|
|
517
|
+
/** Supplies the state and receives changes. */
|
|
518
|
+
model: TableSelectionModel<T>;
|
|
519
|
+
/** The row to select. Leave it out for the header checkbox, which uses the model's header state. */
|
|
520
|
+
row?: T;
|
|
521
|
+
className?: string;
|
|
522
|
+
}
|
|
523
|
+
/** Selection checkbox driven by a `TableSelectionModel`. Clicks never reach the row underneath. */
|
|
524
|
+
declare const TableSelectionCheckbox: <T>({ label, model, row, className }: TableSelectionCheckboxProps<T>) => import("react").JSX.Element | null;
|
|
525
|
+
//#endregion
|
|
526
|
+
//#region src/hooks/useControlledTableRowSelection.d.ts
|
|
527
|
+
interface UseControlledTableRowSelectionOptions {
|
|
528
|
+
/** Ids of the selected rows, as returned by the table's `getRowId`. */
|
|
529
|
+
selectedRowIds?: readonly string[];
|
|
530
|
+
/** Called once per row whose selection changed. */
|
|
531
|
+
onRowSelectionChange?: (rowId: string, selected: boolean) => void;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Bridges a list of selected ids to TanStack row selection. Spread the result onto `Table` as
|
|
535
|
+
* `defaultSelectedRows={rowSelection}` and `onRowSelectionChange={onRowSelectionChange}`.
|
|
536
|
+
*/
|
|
537
|
+
declare const useControlledTableRowSelection: ({ selectedRowIds, onRowSelectionChange }: UseControlledTableRowSelectionOptions) => {
|
|
538
|
+
readonly rowSelection: RowSelectionState;
|
|
539
|
+
readonly onRowSelectionChange: OnChangeFn<RowSelectionState>;
|
|
540
|
+
};
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region src/hooks/useRemainingNameColumnWidth.d.ts
|
|
543
|
+
interface UseRemainingNameColumnWidthArgs {
|
|
544
|
+
/** Narrowest the column gets, in pixels. Defaults to 280. */
|
|
545
|
+
minWidth?: number;
|
|
546
|
+
/** Combined width of the other columns, in pixels. */
|
|
547
|
+
reservedWidth: number;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Width for a column that fills the space the other columns leave in the container.
|
|
551
|
+
* Attach `containerRef` to the element around the table.
|
|
552
|
+
*/
|
|
553
|
+
declare const useRemainingNameColumnWidth: ({ minWidth, reservedWidth }: UseRemainingNameColumnWidthArgs) => {
|
|
554
|
+
containerRef: import("react").RefObject<HTMLDivElement | null>;
|
|
555
|
+
remainingNameColumnWidth: number;
|
|
556
|
+
};
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region src/hooks/useSorting.d.ts
|
|
559
|
+
declare function useSorting(defaultSorting?: SortingState, prefix?: string): {
|
|
560
|
+
sorting: SortingState;
|
|
561
|
+
setSorting: import("react").Dispatch<import("react").SetStateAction<SortingState>>;
|
|
562
|
+
order: string;
|
|
563
|
+
};
|
|
564
|
+
//#endregion
|
|
565
|
+
//#region src/hooks/useTableColumnConfig.d.ts
|
|
566
|
+
type ColumnDef$1<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
567
|
+
/**
|
|
568
|
+
* Combines a saved column order with the current columns: unknown ids are dropped and new columns appended.
|
|
569
|
+
* `prependWhenMissing` columns go first when the saved order predates them; `trailingColumnIds` always go last.
|
|
570
|
+
*/
|
|
571
|
+
declare const mergeColumnOrder: (columnIds: string[], stored?: ColumnOrderState, prependWhenMissing?: string[], trailingColumnIds?: string[]) => string[];
|
|
572
|
+
interface UseTableColumnConfigOptions {
|
|
573
|
+
/** Visible columns by id. Changing it resets the visibility to it; changing the columns keeps local changes. */
|
|
574
|
+
visibleColumns?: ColumnVisibilityState;
|
|
575
|
+
/** Column ids in display order. Changing it resets the order to it. */
|
|
576
|
+
columnOrder?: ColumnOrderState;
|
|
577
|
+
/** Pinned column ids. Changing it resets the pinning to it. */
|
|
578
|
+
columnPinning?: ColumnPinningState;
|
|
579
|
+
onVisibilityChange?: (value: ColumnVisibilityState) => void;
|
|
580
|
+
onOrderChange?: (value: ColumnOrderState) => void;
|
|
581
|
+
onPinningChange?: (value: ColumnPinningState) => void;
|
|
582
|
+
/** Saves every setting, including column widths, under one key of the storage adapter. */
|
|
583
|
+
location?: string;
|
|
584
|
+
/** Saves visibility, order and pinning under separate keys; widths are saved under the `order` key. */
|
|
585
|
+
persistence?: TableColumnStorageTarget["persistence"];
|
|
586
|
+
/** Storage adapter for `location` / `persistence`. Defaults to `TableColumnConfigStorageContext`. */
|
|
587
|
+
storage?: TableColumnConfigStorage;
|
|
588
|
+
/** Columns placed first when a saved order doesn't contain them yet, e.g. a newly added selection column. */
|
|
589
|
+
prependWhenMissing?: string[];
|
|
590
|
+
/** Columns that always stay last, e.g. actions. */
|
|
591
|
+
trailingColumnIds?: string[];
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Column visibility, order and pinning for a table, with optional persistence. Pass `columns` to the table and the
|
|
595
|
+
* rest to `ColumnConfigModal` or `ColumnConfigPopover`. Saved settings and widths are only used while
|
|
596
|
+
* `TableConfigurationEnabledContext` is on.
|
|
597
|
+
*/
|
|
598
|
+
declare function useTableColumnConfig<TData extends RowData, TValue>(defaultColumns: ColumnDef$1<TData, TValue>[], options?: UseTableColumnConfigOptions): {
|
|
599
|
+
configColumns: ColumnDef$1<TData, TValue>[];
|
|
600
|
+
columns: ColumnDef$1<TData, TValue>[];
|
|
601
|
+
visibleColumns: ColumnVisibilityState;
|
|
602
|
+
columnOrder: string[];
|
|
603
|
+
columnPinning: ColumnPinningState;
|
|
604
|
+
onVisibilityChange: (value: ColumnVisibilityState) => void;
|
|
605
|
+
onOrderChange: (requestedOrder: ColumnOrderState) => void;
|
|
606
|
+
onPinningChange: (value: ColumnPinningState) => void;
|
|
607
|
+
resetColumns: () => void;
|
|
608
|
+
};
|
|
609
|
+
//#endregion
|
|
610
|
+
//#region src/hooks/useTableNav.d.ts
|
|
611
|
+
declare const Selectors: {
|
|
612
|
+
readonly Cell: '[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],td,th';
|
|
613
|
+
readonly Row: '[role="row"],tr';
|
|
614
|
+
readonly RowGroup: '[role="rowgroup"],thead,tbody,tfoot';
|
|
615
|
+
/** Selector from here: https://github.com/Shopify/polaris/blob/main/polaris-react/src/utilities/focus.ts#L10 */
|
|
616
|
+
readonly Focusable: 'a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not([aria-disabled="true"]):not([tabindex="-1"]):not(:disabled),*[tabindex]';
|
|
617
|
+
};
|
|
618
|
+
type Config = {
|
|
619
|
+
debug?: boolean;
|
|
620
|
+
selectors?: Partial<Record<keyof typeof Selectors, string>>;
|
|
621
|
+
/** How many rows to move when pressing page up/down - Default goes to first/last row */
|
|
622
|
+
pageUpDown?: number;
|
|
623
|
+
} | undefined;
|
|
624
|
+
declare class DataGridNav {
|
|
625
|
+
private selectors;
|
|
626
|
+
readonly pageUpDown: number | undefined;
|
|
627
|
+
private keys;
|
|
628
|
+
private disabled;
|
|
629
|
+
readonly debug: boolean;
|
|
630
|
+
private activeCell;
|
|
631
|
+
constructor();
|
|
632
|
+
constructor(config: Config);
|
|
633
|
+
private debugLog;
|
|
634
|
+
disable(): void;
|
|
635
|
+
enable(): void;
|
|
636
|
+
private isFocusable;
|
|
637
|
+
getActiveCell(): HTMLElement | null;
|
|
638
|
+
tableKeyUp(): void;
|
|
639
|
+
tableKeyDown(e: KeyboardEvent): void;
|
|
640
|
+
cellNavigation(e: KeyboardEvent): void;
|
|
641
|
+
gridNavigation(e: KeyboardEvent): void;
|
|
642
|
+
private getRows;
|
|
643
|
+
private pageCellNavigation;
|
|
644
|
+
private verticalCellNavigation;
|
|
645
|
+
private focusOnFirstCell;
|
|
646
|
+
private getColumnIndex;
|
|
647
|
+
}
|
|
648
|
+
declare function useTableNav(options?: Config): {
|
|
649
|
+
listeners: {
|
|
650
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
651
|
+
onKeyUp: () => void;
|
|
652
|
+
};
|
|
653
|
+
tableNav: DataGridNav;
|
|
654
|
+
};
|
|
655
|
+
//#endregion
|
|
656
|
+
export { toCellDate as $, TableColumnFilterContext as A, orderTableColumns as B, Table$1 as C, TableWrapperProps as D, TableRowRenderContext as E, ColumnConfigModal as F, CELL_DATE_PLACEHOLDER as G, formatColumnEnum as H, ColumnConfigModalProps as I, formatCellDateTimeUTC as J, CellDateFormatOptions as K, ColumnConfigPopover as L, HeaderText as M, HeaderTextProps as N, RowDragHandleCell as O, ColumnConfigContent as P, formatCellDateValue as Q, ColumnConfigContentProps as R, BulkSelectionActionsComponent as S, TableReorderContext as T, formatColumnNumber as U, formatColumnBoolean as V, formatColumnText as W, formatCellDateTimeValue as X, formatCellDateTimeUTCValue as Y, formatCellDateUTCValue as Z, InfiniteTableData as _, useSorting as a, CellLinkProps as at, InfiniteTableQueryState as b, UseControlledTableRowSelectionOptions as c, CellDateTime as ct, TableSelectionCheckboxProps as d, CellText as dt, CellNumber as et, TableSelectionModel as f, CellTextProps as ft, InfiniteTable as g, TableRowCheckboxProps as h, useTableColumnConfig as i, CellLink as it, TableColumnLayout as j, TableMountBoundary as k, useControlledTableRowSelection as l, CellDateTimeUTC as lt, TableRowCheckbox as m, UseTableColumnConfigOptions as n, CellNumberValue as nt, UseRemainingNameColumnWidthArgs as o, CellDate as ot, TableSelectionState as p, formatCellDateTime as q, mergeColumnOrder as r, CellNumberValueProps as rt, useRemainingNameColumnWidth as s, CellDateProps as st, useTableNav as t, CellNumberProps as tt, TableSelectionCheckbox as u, CellDateUTC as ut, InfiniteTablePage as v, TableProps as w, InfiniteTableWrapperProps as x, InfiniteTableProps as y, ColumnConfigProps as z };
|