@povio/ui 6.0.0-rc.13 → 6.0.0-rc.14
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 +55 -1
- package/dist/{Accordion-gUW7u1Zn.js → Accordion-BNHpv7Zj.js} +3 -3
- package/dist/{Alert-DwnALnFY.d.ts → Alert-xHGPLUpt.d.ts} +1 -1
- package/dist/{AlertDialog-BcRiqY_n.d.ts → AlertDialog-CKcUZ6l9.d.ts} +3 -3
- package/dist/{Autocomplete-DRwQxx0U.d.ts → Autocomplete-CkWTSFoj.d.ts} +1 -1
- package/dist/{Autocomplete-CV4Aa1Ok.js → Autocomplete-CrNDRxvg.js} +10 -10
- package/dist/{Badge-CO-ZsmbR.d.ts → Badge-B25YEMEw.d.ts} +3 -3
- package/dist/{BottomSheet-Be0HtQzP.d.ts → BottomSheet-CtcPZG82.d.ts} +1 -1
- package/dist/{BottomSheet-APVu5TUd.js → BottomSheet-tUXH3NjS.js} +4 -4
- package/dist/{BottomSheet.lazy-NNB7ivkW.d.ts → BottomSheet.lazy-DuwAJSaI.d.ts} +1 -1
- package/dist/{Breadcrumbs-Bn3fqVYx.d.ts → Breadcrumbs-BrtRh_dX.d.ts} +1 -1
- package/dist/{Breadcrumbs-Cd75RPbS.js → Breadcrumbs-D8WXqOLN.js} +8 -8
- package/dist/{Button-CzEs3tcV.js → Button-C1Jv1Plk.js} +1 -1
- package/dist/{Button-Hk8zm9q_.d.ts → Button-DDuk3hJ3.d.ts} +1 -1
- package/dist/{Button-BJJkLVNj.js → Button-DF6sbTuF.js} +3 -3
- package/dist/{ButtonBase-aGz6DYum.js → ButtonBase-BYJz1JkH.js} +4 -4
- package/dist/{ButtonBase-Cp1w00t2.d.ts → ButtonBase-Bn_FT89h.d.ts} +3 -3
- package/dist/{Calendar-DN-i_b-_.js → Calendar-DdneUEhM.js} +58 -24
- package/dist/{Calendar.lazy-CqmyDSND.js → Calendar.lazy-BY0kLoYH.js} +6 -6
- package/dist/{Checkbox-D32MOIhF.d.ts → Checkbox-Bwl6MA-V.d.ts} +1 -1
- package/dist/{Checkbox-CzKXZw_w.js → Checkbox-E2bns_n0.js} +7 -7
- package/dist/{CheckboxCheckmark-DDU_Ie7-.js → CheckboxCheckmark-Beu8T1g9.js} +2 -2
- package/dist/{CheckboxGroup-B5Mn1G3u.d.ts → CheckboxGroup-0rzsn-bA.d.ts} +2 -2
- package/dist/{CheckboxGroup-BqWt09kZ.js → CheckboxGroup-C7epIEpW.js} +3 -3
- package/dist/ColumnConfigContent-LNq-6Brf.js +1025 -0
- package/dist/ColumnListContent-Dzze5R7T.js +133 -0
- package/dist/{DatePicker-CmoVbapu.d.ts → DatePicker-B70SCKfT.d.ts} +3 -3
- package/dist/{DatePicker-DQewd1By.js → DatePicker-BU-34fCk.js} +44 -12
- package/dist/{DatePickerInput-B9VnExeA.d.ts → DatePickerInput-BCuz08Ws.d.ts} +3 -3
- package/dist/{DatePickerInput-Bp9ZIN5E.js → DatePickerInput-CMEJmZSQ.js} +10 -10
- package/dist/{DateRangePicker-DRZ1hLlR.js → DateRangePicker-D0RtqeBM.js} +13 -13
- package/dist/{DateRangePicker-LX1VJlnD.d.ts → DateRangePicker-jovxcWGk.d.ts} +4 -4
- package/dist/{DateTimePicker-DWtKPaE6.js → DateTimePicker-Cbdt76CL.js} +30 -11
- package/dist/{DateTimePicker-D9pODhAj.d.ts → DateTimePicker-Cfi3ruFy.d.ts} +3 -3
- package/dist/{Dialog-D0SeePPz.d.ts → Dialog-BWNQjIgo.d.ts} +1 -1
- package/dist/{Dialog-BJ13KRQo.js → Dialog-Bpwr1nuy.js} +15 -15
- package/dist/{Dialog-BzQYDPJ9.js → Dialog-ebjPH22i.js} +3 -3
- package/dist/{Disclosure-Bjm5IOpg.js → Disclosure-D_aym2zh.js} +3 -3
- package/dist/{DropdownMenu-DTr7b-XO.d.ts → DropdownMenu-3V-G7fZ7.d.ts} +2 -2
- package/dist/{DropdownMenu-DrshB60h.js → DropdownMenu-C4WitobV.js} +4 -4
- package/dist/{DropdownMenuDesktop-DxGA0yvx.js → DropdownMenuDesktop-BM7659Sk.js} +1 -1
- package/dist/{FileInput-LMhFxlqB.js → FileInput-Bc_E1M1X.js} +5 -5
- package/dist/{FileInput-Bokcp9nH.d.ts → FileInput-CWRW7OzZ.d.ts} +2 -2
- package/dist/{FileTrigger-DlryDp2T.js → FileTrigger-tGSUFrb2.js} +6 -6
- package/dist/{FileUpload-BqXd4_nz.d.ts → FileUpload-DVnp9xxv.d.ts} +2 -2
- package/dist/{FileUpload-CJZrkr_U.js → FileUpload-Dk6ZmgWF.js} +501 -75
- package/dist/{Form-CqF1SaVw.js → Form-4jZarkjk.js} +2 -2
- package/dist/{FormField-XQbjfGSv.d.ts → FormField-BgiWLGjf.d.ts} +1 -1
- package/dist/{FormField-TI8Vx5aC.js → FormField-DOZ7eXjA.js} +2 -2
- package/dist/{FormFieldHeaderTooltip-DB7KrrcD.js → FormFieldHeaderTooltip-DW9sqJWl.js} +3 -3
- package/dist/{Heading-D4XFYv__.js → Heading-B9G3z6Es.js} +2 -2
- package/dist/{IconButton-CQLHX8-Y.d.ts → IconButton-Bjjf5cQL.d.ts} +1 -1
- package/dist/{InlineTooltipWrapper-CjDUsi2I.js → InlineTooltipWrapper-CcdpMJa6.js} +1 -1
- package/dist/{Input-BG0Xjw5X.js → Input-BkR3jkvt.js} +2 -2
- package/dist/{Input-CeRJeAoR.js → Input-CvYyjMWx.js} +5 -5
- package/dist/{Input-onUj0DKg.d.ts → Input-lppNS8wM.d.ts} +3 -3
- package/dist/{InputContent-B8OCdbVP.js → InputContent-B5YjsLDE.js} +2 -2
- package/dist/{InputContent-D5ZkB9hO.d.ts → InputContent-Bgalf6R1.d.ts} +2 -2
- package/dist/{Label-BGvF9vWx.js → Label-VTcaaLO8.js} +2 -2
- package/dist/{Link-Chux-Clm.js → Link-8zP_NC_c.js} +2 -2
- package/dist/{Link-BdnWVYL9.d.ts → Link-HJ4y-xiW.d.ts} +1 -1
- package/dist/{ListBox-gR4iSV7N.js → ListBox-Ck-B1Jae.js} +7 -7
- package/dist/{Modal-DAMsCwzb.js → Modal-xT-Wz5GH.js} +3 -3
- package/dist/{NumberField-6Q9LHGSo.js → NumberField-BXLzNb2T.js} +6 -6
- package/dist/{NumberField-Sb30Qao3.d.ts → NumberField-Q-4y3jpb.d.ts} +3 -3
- package/dist/{NumberFormatter-DYarfm5F.js → NumberFormatter-D5csbNXm.js} +1 -1
- package/dist/{NumberRangeInput-BDSkcHVJ.js → NumberRangeInput-BBzZCC54.js} +6 -6
- package/dist/{NumberRangeInput-Dvq8mOUY.d.ts → NumberRangeInput-DuWOdSdU.d.ts} +2 -2
- package/dist/{OverlayArrow-DF0jMwul.js → OverlayArrow-BptI-A_7.js} +2 -2
- package/dist/{PageHeader-eJk6GNK6.d.ts → PageHeader-jVaC3Z9L.d.ts} +2 -2
- package/dist/{PasswordInput-VHzP4VPU.d.ts → PasswordInput-DtTnGHRD.d.ts} +1 -1
- package/dist/{PasswordInput-BcHpV0Ie.js → PasswordInput-U0QhNsMp.js} +2 -2
- package/dist/{Popover-qplPGDnR.d.ts → Popover-ClCEOP3e.d.ts} +2 -2
- package/dist/{Progress-WzWvbvtp.js → Progress-DlXY0dv_.js} +1 -1
- package/dist/{Progress-DH-w99MU.d.ts → Progress-VkkXbIh7.d.ts} +1 -1
- package/dist/{ProgressBar-BsSimmJF.js → ProgressBar-mpNpV7ow.js} +3 -3
- package/dist/{RadioGroup-PKqFHoKP.js → RadioGroup-BPPJyA1s.js} +8 -8
- package/dist/{RadioGroup-CC8bKtBN.d.ts → RadioGroup-BbcrP56w.d.ts} +2 -2
- package/dist/{RangeCalendar-DqCTlIuy.js → RangeCalendar-DIVjIl0T.js} +4 -4
- package/dist/{Select-CSyfDyxG.d.ts → Select-D1qIWZCv.d.ts} +3 -3
- package/dist/{Select-D3fuXwVt.js → Select-DlbVDCz8.js} +36 -26
- package/dist/{SelectListBox-DqAxkT1f.js → SelectListBox-CCr5YY86.js} +15 -12
- package/dist/{SelectionIndicator-C3hniBa2.js → SelectionIndicator-CvuKjZRP.js} +3 -3
- package/dist/{SharedElementTransition-CZ2bE7yo.js → SharedElementTransition-BkyYit3Q.js} +2 -2
- package/dist/{SidebarWorkspaces-BGl_PIsH.js → SidebarWorkspaces-CIpFJGOa.js} +10 -10
- package/dist/{SidebarWorkspaces-CdtK2M-C.d.ts → SidebarWorkspaces-DcwA_jv7.d.ts} +3 -3
- package/dist/{Slider-DxalZD3o.d.ts → Slider-CLViwkE1.d.ts} +1 -1
- package/dist/{Slider-BCUiALjE.js → Slider-_RsgBJcg.js} +5 -5
- package/dist/{Spinner-BTrEbNFy.d.ts → Spinner-GMEauCHv.d.ts} +1 -1
- package/dist/{SplitButton-Dv5l8p5t.d.ts → SplitButton-BdP4xjFQ.d.ts} +3 -3
- package/dist/{Stepper-DA2G546I.js → Stepper-D4z7JNsD.js} +2 -2
- package/dist/{Stepper-B1IOUcSI.d.ts → Stepper-DBb0qfla.d.ts} +1 -1
- package/dist/{Switch-Ce-bJOVw.js → Switch-Bi3_bUw1.js} +3 -3
- package/dist/{Switch-urNrop0P.d.ts → Switch-DCxONL2Q.d.ts} +1 -1
- package/dist/TableDnd-CG1yOlxh.js +238 -0
- package/dist/TableDragHandle-CXApnuUm.js +51 -0
- package/dist/{TabsFilters-Cweij8He.js → TabsFilters-BPogry73.js} +4 -4
- package/dist/{TabsFilters-M5Ld7eb8.d.ts → TabsFilters-CPfGBODw.d.ts} +1 -1
- package/dist/{Tag-BKR1AZFa.d.ts → Tag-xhcJOv_X.d.ts} +2 -2
- package/dist/{Text-D72yc4S6.js → Text-D7Nqkw1l.js} +1 -1
- package/dist/{TextArea-D7YVclaz.d.ts → TextArea-BYX9Kk_v.d.ts} +2 -2
- package/dist/{TextArea-P8F0oD_A.js → TextArea-CuJS3-Nv.js} +6 -6
- package/dist/{TimePicker-l4Ysk2AX.js → TimePicker-ByfjqkLp.js} +28 -13
- package/dist/{TimePicker-Ai1M2TGW.d.ts → TimePicker-UTo9C6gz.d.ts} +3 -2
- package/dist/TimePickerForm-CaIHR0PV.js +532 -0
- package/dist/{ToastContainer-BeklfvlK.js → ToastContainer-tr7Zxahc.js} +4 -4
- package/dist/{ToggleButton-DWw53pTt.d.ts → ToggleButton-BX8o7ECO.d.ts} +1 -1
- package/dist/{ToggleButton-P1z1pxzT.js → ToggleButton-D8BT67FO.js} +5 -5
- package/dist/{ToggleGroup-BdIgqoqA.js → ToggleGroup-18c-FZ_r.js} +5 -5
- package/dist/{ToggleGroup-BQk3k0at.d.ts → ToggleGroup-UazUtgU1.d.ts} +2 -2
- package/dist/{Tooltip-BkXPEBqw.js → Tooltip-Dl3sf8fq.js} +3 -3
- package/dist/{Tooltip-H8OB7CqY.d.ts → Tooltip-FcJ29dhq.d.ts} +1 -1
- package/dist/{TooltipWrapper-ubbBHHVD.js → TooltipWrapper-bvNpM6ku.js} +3 -3
- package/dist/{Typography-Cx1oRGxd.d.ts → Typography-auHWN282.d.ts} +1 -1
- package/dist/{badge.cva-BpoxNggB.js → badge.cva-C9mE8CMf.js} +3 -2
- package/dist/{buttonContent.cva-Dyy_RUZU.d.ts → buttonContent.cva-CeGnrjoA.d.ts} +2 -2
- package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
- package/dist/columnConfig.cva-CERwSZRN.js +29 -0
- package/dist/components/accordion.js +1 -1
- 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.d.ts +1 -1
- package/dist/components/badge.js +37 -30
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +23 -19
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +2 -2
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +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 +2 -2
- package/dist/components/date-range-picker.js +2 -2
- package/dist/components/date-range-presets.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/drawer.js +2 -2
- package/dist/components/dropdown-menu.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +2 -2
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/input-frame.d.ts +3 -3
- package/dist/components/input-frame.js +5 -5
- 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/link.js +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/page-header.js +1 -1
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +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/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +2 -2
- package/dist/components/style-definitions.js +32 -5
- 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 +3 -3
- 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 +3 -3
- 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-ellipsis.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +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 +1 -1
- 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-BflM4Vxg.js → confirmation.context-C_-uADGJ.js} +1 -1
- package/dist/{confirmation.context-C_js9qNv.d.ts → confirmation.context-DkWyR2aT.d.ts} +1 -1
- package/dist/{dist-DZOoWaZz.js → dist-CP6vV22I.js} +14 -10
- package/dist/{dom.utils-BPooTXtC.js → dom.utils-CqejLWIQ.js} +1 -1
- package/dist/{fileUpload.cva-MH5ziWUe.js → fileUpload.cva-SrF6v406.js} +1 -1
- package/dist/form-field-C735uXsi.d.ts +1 -0
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-breakpoint.d.ts +2 -2
- package/dist/hooks/use-breakpoint.js +1 -1
- package/dist/{i18n-DQs7jPjv.js → i18n-DaIHnR2n.js} +26 -2
- package/dist/{i18n-B3PeqBM7.d.ts → i18n-xXkHgzet.d.ts} +24 -0
- package/dist/{import-C73fI3WD.js → import-Cz8NlFqm.js} +39 -15
- package/dist/index.d.ts +56 -55
- package/dist/index.js +49 -49
- package/dist/{intlStrings-Cu1YN1tA.js → intlStrings-ClpdCJmU.js} +35 -35
- package/dist/{isEqual-LFw0W5rU.js → isEqual-BdJdNr5O.js} +1 -1
- package/dist/{link.context-BcBuP9ZT.d.ts → link.context-BxVK2yQ5.d.ts} +1 -1
- package/dist/{link.cva-D6L1c2wq.d.ts → link.cva-ZhpQz3P0.d.ts} +129 -9
- package/dist/{logger-CW24po62.js → logger-CqZjM-sn.js} +1 -10
- package/dist/rich-text-editor.d.ts +2 -2
- package/dist/rich-text-editor.js +14 -14
- package/dist/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
- package/dist/{staticDateTimeSegments-BYk1tcxs.js → staticDateTimeSegments-BgUrcqXD.js} +342 -87
- package/dist/styles/input.d.ts +1 -1
- package/dist/{table.cva-DkcsOmZG.js → table.cva-n9TO_vu1.js} +68 -17
- package/dist/tableCells.cva-Br0_kgRM.js +18 -0
- package/dist/tableColumnConfigStorage-Cciq8gVe.js +215 -0
- package/dist/tableVirtualStore-whSmFzTV.js +67 -0
- package/dist/tanstack/form.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 +5 -5
- package/dist/tanstack/table.js +3 -2
- package/dist/tanstack-JB8VmS9j.js +73 -0
- package/dist/{tanstack-bLXoUPDY.d.ts → tanstack-cQOW9-Q2.d.ts} +50 -50
- package/dist/tanstack-table-DdWYwCZM.d.ts +858 -0
- package/dist/tanstack-table-M1M26UQJ.js +5299 -0
- package/dist/tanstack.d.ts +56 -55
- package/dist/tanstack.js +49 -49
- package/dist/{toast.cva-C3oA7He3.js → toast.cva-DusQwZw-.js} +5 -1
- package/dist/{toast.runtime-BHXdSTXV.js → toast.runtime-ZN5q4T9X.js} +1 -1
- package/dist/{uiConfig.context-CjnLnQOo.js → uiConfig.context-NWmBJ2Hc.js} +68 -4
- package/dist/{uiConfig.context-CN_QgxGO.d.ts → uiConfig.context-ykH4E2js.d.ts} +1 -1
- package/dist/uiConfig.types-BsyPKepP.d.ts +291 -0
- package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-C5Maic5Q.d.ts} +106 -0
- package/dist/{useAsyncList-CQgkDfjW.js → useAsyncList-DkIjhlce.js} +2 -2
- package/dist/{useBreakpoint-D-SVcBeQ.d.ts → useBreakpoint-BPrZNuNl.d.ts} +1 -1
- package/dist/{useBreakpoint-BrJrvp9_.js → useBreakpoint-DtYSRweq.js} +2 -2
- package/dist/{useControlledState-CuU1VIh1.js → useControlledState-C1-Mt2i0.js} +1 -1
- package/dist/{useDebounceCallback-BjePw6y4.js → useDebounceCallback-C7YKfjXW.js} +6 -0
- package/dist/{useFormAutosave-BN-zueci.js → useFormAutosave-BzCGqFqi.js} +2 -2
- package/dist/{useLiveNumberFieldState-B7qGzySj.js → useLiveNumberFieldState-npiqOvyB.js} +4 -4
- package/dist/{useRemoveButton-B6-IGvpY.js → useRemoveButton-zhlA1Pbc.js} +1 -1
- package/dist/{useResolveDateRangePreset-C_L-doA6.js → useResolveDateRangePreset-k_h_XJBG.js} +1 -1
- package/dist/{useScrollableListBox-C8chM7c-.js → useScrollableListBox-4pieApqz.js} +1 -1
- package/dist/useTableVirtualizer-sFInQiH-.d.ts +162 -0
- package/dist/{useToast-D2C9pROU.d.ts → useToast-BHqkSByv.d.ts} +1 -1
- package/dist/{useToast-DSoOiSw0.js → useToast-DgqC6Ta_.js} +2 -2
- package/dist/utils/logger.js +1 -1
- package/dist/{utils-BkLF-JA3.js → utils-Q5Oc6oX2.js} +1 -1
- package/llms.txt +89 -4
- package/package.json +13 -1
- package/dist/TimePickerForm-BMqNpDPT.js +0 -225
- package/dist/form-field-Bw7U_ZPI.d.ts +0 -1
- package/dist/tanstack-ABeiJISz.js +0 -10
- package/dist/uiConfig.types-B0sPL7nN.d.ts +0 -132
- package/dist/useTableColumnConfig-B9cYBKo3.js +0 -2327
- package/dist/useTableNav-rP1wDkhV.d.ts +0 -372
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import { ColumnOrderState, ColumnPinningState, ColumnVisibilityState } from "@tanstack/react-table";
|
|
3
|
+
import { DragEndEvent, DragStartEvent, UniqueIdentifier } from "@dnd-kit/core";
|
|
4
|
+
import { useSortable } from "@dnd-kit/sortable";
|
|
5
|
+
import { VirtualItem, Virtualizer, VirtualizerOptions } from "@tanstack/react-virtual";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/table/cellLinkContext.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Opens cell links in place instead of a new tab. Provide a handler, e.g. one that navigates inside a search
|
|
10
|
+
* overlay; the link icon then becomes a button calling it with the link's `href`.
|
|
11
|
+
*/
|
|
12
|
+
declare const CellLinkNavigationContext: import("react").Context<((href: string) => void) | null>;
|
|
13
|
+
interface CellLinkPreloadHandlers {
|
|
14
|
+
/** Called when the pointer or focus reaches the link, e.g. to start preloading the target route. */
|
|
15
|
+
onPreload?: (element: HTMLAnchorElement, href: string) => void;
|
|
16
|
+
/** Called when the pointer or focus leaves the link before it was opened. */
|
|
17
|
+
onPreloadCancel?: (element: HTMLAnchorElement) => void;
|
|
18
|
+
}
|
|
19
|
+
/** Preload handlers for every `CellLink` below it, so an app wires its router once. */
|
|
20
|
+
declare const CellLinkPreloadContext: import("react").Context<CellLinkPreloadHandlers | null>;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/table/tableColumnConfigStorage.d.ts
|
|
23
|
+
/** A table's saved column configuration. */
|
|
24
|
+
interface TableColumnSettings {
|
|
25
|
+
visibility?: ColumnVisibilityState;
|
|
26
|
+
order?: ColumnOrderState;
|
|
27
|
+
pinning?: ColumnPinningState;
|
|
28
|
+
/** Column widths in pixels, by column id. */
|
|
29
|
+
widths?: Record<string, number>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Where a table's configuration is saved, as passed to `useTableColumnConfig`.
|
|
33
|
+
* `location` names one entry holding every setting; `persistence` names a separate key per setting.
|
|
34
|
+
*/
|
|
35
|
+
interface TableColumnStorageTarget {
|
|
36
|
+
location?: string;
|
|
37
|
+
persistence?: {
|
|
38
|
+
visibility: string;
|
|
39
|
+
order: string;
|
|
40
|
+
pinning: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
interface TableColumnSettingsHandle {
|
|
44
|
+
/** Saved settings, or `undefined` when nothing is saved. Keep `widths` referentially stable between renders. */
|
|
45
|
+
settings: TableColumnSettings | undefined;
|
|
46
|
+
/** Saves changed settings. `widths` is merged into the saved widths; the other fields replace theirs. */
|
|
47
|
+
save: (patch: TableColumnSettings) => void;
|
|
48
|
+
}
|
|
49
|
+
/** Persists column configuration for `useTableColumnConfig`, e.g. in user settings or local storage. */
|
|
50
|
+
interface TableColumnConfigStorage {
|
|
51
|
+
/**
|
|
52
|
+
* A React hook, called on every render of `useTableColumnConfig`. `target` is `undefined` for tables that
|
|
53
|
+
* aren't persisted; return no settings for them.
|
|
54
|
+
*/
|
|
55
|
+
useColumnSettings: (target: TableColumnStorageTarget | undefined) => TableColumnSettingsHandle;
|
|
56
|
+
}
|
|
57
|
+
/** The default: nothing is saved, so configuration lasts while the table is mounted. */
|
|
58
|
+
declare const memoryTableColumnConfigStorage: TableColumnConfigStorage;
|
|
59
|
+
/**
|
|
60
|
+
* Storage used by `useTableColumnConfig` below it, unless a table passes its own `storage`.
|
|
61
|
+
* Provide one stable object for the app's lifetime: its hook must not change between renders.
|
|
62
|
+
*/
|
|
63
|
+
declare const TableColumnConfigStorageContext: import("react").Context<TableColumnConfigStorage>;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/table/tableConfigurationContext.d.ts
|
|
66
|
+
/**
|
|
67
|
+
* Turns table configuration (column resizing, the column config UI and saved column settings) on or off for every
|
|
68
|
+
* table below it. Wrap a subtree in `<TableConfigurationEnabledContext value={false}>` to render plain tables there.
|
|
69
|
+
*/
|
|
70
|
+
declare const TableConfigurationEnabledContext: import("react").Context<boolean>;
|
|
71
|
+
declare namespace TableDnd_d_exports {
|
|
72
|
+
export { DndProvider, DragHandle, RowDragHandle, SortableItem, SortableRow, SortableRowState, SortableRows, TableDragHandleProps };
|
|
73
|
+
}
|
|
74
|
+
/** Spread on your own drag handle in a `renderRow` row, or a column when `showDragHandleColumn` is off. */
|
|
75
|
+
type TableDragHandleProps = {
|
|
76
|
+
attributes: ReturnType<typeof useSortable>["attributes"];
|
|
77
|
+
listeners: ReturnType<typeof useSortable>["listeners"];
|
|
78
|
+
};
|
|
79
|
+
type SortableRowState = {
|
|
80
|
+
setNodeRef: (element: HTMLElement | null) => void;
|
|
81
|
+
style: CSSProperties;
|
|
82
|
+
isDragging: boolean;
|
|
83
|
+
dragHandleProps: TableDragHandleProps;
|
|
84
|
+
};
|
|
85
|
+
interface DndProviderProps extends PropsWithChildren {
|
|
86
|
+
onDragEnd: (event: DragEndEvent) => void;
|
|
87
|
+
onDragStart?: (event: DragStartEvent) => void;
|
|
88
|
+
onDragCancel?: () => void;
|
|
89
|
+
}
|
|
90
|
+
declare const DndProvider: ({ children, onDragEnd, onDragStart, onDragCancel }: DndProviderProps) => import("react").JSX.Element;
|
|
91
|
+
declare const SortableRows: ({ children, items }: PropsWithChildren<{
|
|
92
|
+
items: UniqueIdentifier[];
|
|
93
|
+
}>) => import("react").JSX.Element;
|
|
94
|
+
/** Registers a row with the sortable context and hands the drag styling to the element it renders. */
|
|
95
|
+
declare const SortableRow: ({ id, translateOnly, children }: {
|
|
96
|
+
id: UniqueIdentifier;
|
|
97
|
+
/** Row groups (`<tbody>`) only move; table rows take the full transform. */
|
|
98
|
+
translateOnly?: boolean;
|
|
99
|
+
children: (state: SortableRowState) => ReactNode;
|
|
100
|
+
}) => import("react").JSX.Element;
|
|
101
|
+
interface SortableItemRenderProps {
|
|
102
|
+
ref: (node: HTMLElement | null) => void;
|
|
103
|
+
style: CSSProperties;
|
|
104
|
+
isDragging: boolean;
|
|
105
|
+
handleProps: Record<string, unknown>;
|
|
106
|
+
}
|
|
107
|
+
declare const SortableItem: ({ id, children }: {
|
|
108
|
+
id: UniqueIdentifier;
|
|
109
|
+
children: (props: SortableItemRenderProps) => ReactNode;
|
|
110
|
+
}) => ReactNode;
|
|
111
|
+
type DragHandleProps = {
|
|
112
|
+
id: UniqueIdentifier;
|
|
113
|
+
children: (props: Record<string, unknown>) => ReactNode;
|
|
114
|
+
};
|
|
115
|
+
declare const DragHandle: ({ id, children }: DragHandleProps) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
116
|
+
declare const RowDragHandle: ({ rowId, label }: {
|
|
117
|
+
rowId: UniqueIdentifier;
|
|
118
|
+
label: string;
|
|
119
|
+
}) => import("react").JSX.Element;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/components/table/tableDndModule.d.ts
|
|
122
|
+
/**
|
|
123
|
+
* Loads dnd-kit for `enableDragDrop` tables. Tables load it on mount; call it earlier (for example when a route that
|
|
124
|
+
* reorders rows starts loading) so their rows render on the first paint.
|
|
125
|
+
*/
|
|
126
|
+
declare const preloadTableDnd: () => Promise<typeof TableDnd_d_exports | null>;
|
|
127
|
+
declare namespace tableVirtualStore_d_exports {
|
|
128
|
+
export { TableVirtualInstance, TableVirtualOptions, TableVirtualSnapshot, TableVirtualStore };
|
|
129
|
+
}
|
|
130
|
+
type TableVirtualOptions = Partial<VirtualizerOptions<HTMLElement, Element>> & Pick<VirtualizerOptions<HTMLElement, Element>, "count" | "getScrollElement" | "estimateSize"> & {
|
|
131
|
+
/** The page scrolls: the window is observed instead of `getScrollElement`. */
|
|
132
|
+
isWindow?: boolean;
|
|
133
|
+
};
|
|
134
|
+
type TableVirtualSnapshot = {
|
|
135
|
+
virtualItems: VirtualItem[];
|
|
136
|
+
totalSize: number;
|
|
137
|
+
};
|
|
138
|
+
type TableVirtualInstance = Virtualizer<HTMLElement, Element>;
|
|
139
|
+
/** Keeps the mutable virtualizer behind an external-store boundary; rendering reads immutable snapshots. */
|
|
140
|
+
declare class TableVirtualStore {
|
|
141
|
+
readonly instance: TableVirtualInstance;
|
|
142
|
+
private snapshot;
|
|
143
|
+
private listeners;
|
|
144
|
+
constructor(options: TableVirtualOptions);
|
|
145
|
+
private resolveOptions;
|
|
146
|
+
private notify;
|
|
147
|
+
private publish;
|
|
148
|
+
update(options: TableVirtualOptions): void;
|
|
149
|
+
mount: () => () => void;
|
|
150
|
+
getSnapshot: () => TableVirtualSnapshot;
|
|
151
|
+
subscribe: (listener: () => void) => () => void;
|
|
152
|
+
measureElement: (element: Element | null) => void;
|
|
153
|
+
}
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/components/table/useTableVirtualizer.d.ts
|
|
156
|
+
/**
|
|
157
|
+
* Loads row virtualization. Virtualized tables load it on mount and render their first rows meanwhile; call it at
|
|
158
|
+
* startup when most tables virtualize, so the first table virtualizes on its first render.
|
|
159
|
+
*/
|
|
160
|
+
declare const preloadTableVirtualizer: () => Promise<typeof tableVirtualStore_d_exports | null>;
|
|
161
|
+
//#endregion
|
|
162
|
+
export { TableColumnConfigStorage as a, TableColumnSettingsHandle as c, CellLinkNavigationContext as d, CellLinkPreloadContext as f, TableConfigurationEnabledContext as i, TableColumnStorageTarget as l, preloadTableDnd as n, TableColumnConfigStorageContext as o, CellLinkPreloadHandlers as p, TableDragHandleProps as r, TableColumnSettings as s, preloadTableVirtualizer as t, memoryTableColumnConfigStorage as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
-
import { g as ToastVariantProps } from "./link.cva-
|
|
2
|
+
import { g as ToastVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
3
3
|
import { n as Removed, t as Hint } from "./hints-B09_WDhL.js";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
import { Id, ToastOptions, ToastPosition } from "react-toastify";
|
|
@@ -20,7 +20,7 @@ const enqueueToast = (color, input, options) => {
|
|
|
20
20
|
const id = options?.toastId ?? `povio-toast-${++nextToastId}`;
|
|
21
21
|
const params = typeof input === "string" ? { text: input } : input;
|
|
22
22
|
activateToastRenderer();
|
|
23
|
-
import("./toast.runtime-
|
|
23
|
+
import("./toast.runtime-ZN5q4T9X.js").then(({ showToast }) => showToast(id, color, params, options));
|
|
24
24
|
return id;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
@@ -43,7 +43,7 @@ const useToast = () => {
|
|
|
43
43
|
return enqueueToast("secondary", toast_2, options_2);
|
|
44
44
|
}, []);
|
|
45
45
|
const closeToast = useCallback((id) => {
|
|
46
|
-
import("./toast.runtime-
|
|
46
|
+
import("./toast.runtime-ZN5q4T9X.js").then(({ dismissToast }) => dismissToast(id));
|
|
47
47
|
}, []);
|
|
48
48
|
return useMemo(() => ({
|
|
49
49
|
successToast,
|
package/dist/utils/logger.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as logger } from "../logger-
|
|
1
|
+
import { t as logger } from "../logger-CqZjM-sn.js";
|
|
2
2
|
export { logger };
|
|
@@ -3,7 +3,7 @@ import { mergeProps } from "react-aria/mergeProps";
|
|
|
3
3
|
import { mergeRefs } from "react-aria/mergeRefs";
|
|
4
4
|
import { useLayoutEffect as useLayoutEffect$1 } from "react-aria/private/utils/useLayoutEffect";
|
|
5
5
|
import { useObjectRef } from "react-aria/useObjectRef";
|
|
6
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
6
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/utils.mjs
|
|
7
7
|
const $7230ffa83bc0c2cf$export$c62b8e45d58ddad9 = Symbol("default");
|
|
8
8
|
function $7230ffa83bc0c2cf$export$2881499e37b75b9a({ values, children }) {
|
|
9
9
|
for (let [Context, value] of values) children = /*#__PURE__*/ $ahdqC$react.createElement(Context.Provider, { value }, children);
|
package/llms.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
## Imports
|
|
6
6
|
|
|
7
7
|
- Import every component from its own subpath: `import { Button } from "@povio/ui/button"`. The subpath is the kebab-case name of the component or hook (`useAsyncList` from `@povio/ui/use-async-list`), and a component's types come from the same subpath (`UploadedFile` from `@povio/ui/file-upload`).
|
|
8
|
-
- Exceptions: `useForm`, `useFormValue`, `useFormState`, `BoundField`, `useAutosave` and `useFormAutosave` from `@povio/ui/tanstack/form`; `Table`, `InfiniteTable`, `ColumnConfigModal`, `useSorting`, `useTableColumnConfig`, `useTableNav` and the `ColumnDef`, `Row`, `RowSelectionState`, `SortingState` and `BulkSelectionActionsComponent` types from `@povio/ui/tanstack/table`; `ListTabs` from `@povio/ui/tabs-filters`; `ToastContainer` from `@povio/ui/toast` (`useToast` from there or `@povio/ui/use-toast`); `SidebarLayout`, `SidebarItem` and the other sidebar parts from `@povio/ui/sidebar`; `FormLayoutRow`, `FormLayoutSection` and `FormLayoutActions` from `@povio/ui/form-layout`; `PageHeaderDetails` from `@povio/ui/page-header`; date-range preset helpers such as `useResolveDateRangePreset` and `resolveDateRangePreset` from `@povio/ui/date-range-presets`; `OmitDiscriminatedUnion` from `@povio/ui/types`; React Aria primitives such as `I18nProvider` from `@povio/ui/<kebab-name>/react-aria` (`@povio/ui/i18n-provider/react-aria`).
|
|
8
|
+
- Exceptions: `useForm`, `useFormValue`, `useFormState`, `BoundField`, `useAutosave` and `useFormAutosave` from `@povio/ui/tanstack/form`; `Table`, `InfiniteTable`, `ColumnConfigModal`, `ColumnConfigPopover`, the cell helpers (`CellText`, `CellNumber`, `CellDate`, `CellLink`), `useSorting`, `useTableColumnConfig`, `useTableNav` and the `ColumnDef`, `Row`, `RowSelectionState`, `SortingState` and `BulkSelectionActionsComponent` types from `@povio/ui/tanstack/table`; the table contexts (`TableColumnConfigStorageContext`, `CellLinkPreloadContext`) and `preloadTableVirtualizer` / `preloadTableDnd` from `@povio/ui/tanstack/table-context`; `ListTabs` from `@povio/ui/tabs-filters`; `ToastContainer` from `@povio/ui/toast` (`useToast` from there or `@povio/ui/use-toast`); `SidebarLayout`, `SidebarItem` and the other sidebar parts from `@povio/ui/sidebar`; `FormLayoutRow`, `FormLayoutSection` and `FormLayoutActions` from `@povio/ui/form-layout`; `PageHeaderDetails` from `@povio/ui/page-header`; date-range preset helpers such as `useResolveDateRangePreset` and `resolveDateRangePreset` from `@povio/ui/date-range-presets`; `OmitDiscriminatedUnion` from `@povio/ui/types`; React Aria primitives such as `I18nProvider` from `@povio/ui/<kebab-name>/react-aria` (`@povio/ui/i18n-provider/react-aria`).
|
|
9
9
|
- Never import from `@povio/ui/src/...` or `@povio/ui/dist/...`. `@povio/ui` and `@povio/ui/tanstack` are compatibility barrels; do not use them in new code. `installServiceWorker` is the exception: only `@povio/ui` exports it.
|
|
10
10
|
|
|
11
11
|
## App root
|
|
@@ -137,10 +137,11 @@ Props follow React Aria. Each prop has one spelling; the names in the right-hand
|
|
|
137
137
|
- `Slider` `value` and a bound slider's field value may be `null`, shown with the thumbs at `minValue`.
|
|
138
138
|
- `useFilters` and `useSorting` keep their state in the URL and need `UIRouter.UIRouterProvider` from `@povio/ui/ui-router` at the app root. They take one options object: `useFilters({ defaultValues, prefix, schema })`, `useSorting({ defaultSorting, prefix })`. With `schema`, `useFilters` is typed from it (no type argument) and leaves out URL values that fail it, so `filterData` is `Partial` of the schema output. Without `schema` the values are only decoded from the URL (`1` becomes the number 1) and typed `unknown`, and a type argument without `schema` does not compile. The URL keys are `filter[<key>]` (`filter[<prefix>][<key>]` with a `prefix`) and `order` (`order-<prefix>`), so a link into a filtered list sets e.g. `search: { "filter[status]": "open" }`. Give every store on a page its own `prefix`; each one reads and writes only its own keys, and prefixes and keys contain no `[` or `]`. URL values come back as text, with numbers, booleans and ISO dates (for `z.date()`) read back from it. Several `setFilterValue` calls in one handler build on each other, and `useSorting` follows the URL when it changes (back/forward, links). Once the user clears a sort it stays cleared (the next header click sorts again) until the URL changes from outside; `defaultSorting` applies only to a URL without a sort. A `schema` typed as possibly `undefined` matches neither form of `useFilters`: branch on it, or always pass one.
|
|
139
139
|
- `Table` has no pager; use `InfiniteTable` for server lists. The table does not reorder rows; send `order` from `useSorting` to the query (a sort in the URL wins over `defaultSorting`). Headers are sortable only when `onSortingChange` is passed.
|
|
140
|
-
- Tables show their own loading and empty states: pass the query's `isLoading` (the body shows a spinner) and optionally `emptyState` (any node; defaults to a translated "No results"). Wire `isLoading`, `hasNextPage`, `isFetchingNextPage` and `fetchNextPage` straight from the infinite query
|
|
140
|
+
- Tables show their own loading and empty states: pass the query's `isLoading` (the body shows a spinner) and optionally `emptyState` (any node; defaults to a translated "No results"). Wire `isLoading`, `hasNextPage`, `isFetchingNextPage` and `fetchNextPage` straight from the infinite query, or pass the whole `query`. Don't wrap the table in your own spinner or empty branch. `Table` has no error state: when the query has failed with no data (`query.error && !query.data`), render your error UI instead of the table, or a failed load shows "No results"; `InfiniteTable` takes `isError` and shows its error message instead.
|
|
141
|
+
- Long lists: `enableRowVirtualization` (with `maxHeight` or `scroll="page"`) renders only the rows in view; `scrollResetKey={filters}` scrolls back to the top when filters change; `renderColumnFilter` puts a filter in a header. App-wide table defaults (`loadingState`, `emptyState`, `showSelectionColumn`, `columnLayout`, `virtualization`, …) live in `UIConfig.table`; don't repeat them on every table.
|
|
141
142
|
- `Table` and `InfiniteTable`: `className` styles the `<table>` element and `containerClassName` its scroll container (border, radius, background); use `maxHeight` (not a `max-h-*` class) for a table that scrolls with a pinned header.
|
|
142
143
|
- Type columns as `ColumnDef<Row>[]` from `@povio/ui/tanstack/table`; TanStack's own v9 `ColumnDef` takes the table features first.
|
|
143
|
-
- `enableRowSelection` adds the checkbox column with select-all; selection is multiple unless `enableMultiRowSelection={false}`, and a table without it selects nothing. Do not add your own checkbox column. Pass `getRowId={(row) => row.id}` for server-loaded rows: without it the selection is keyed by row index, so a refetch that removes, adds or reorders rows moves the selection to other rows, and bulk actions hit the wrong records. `bulkSelectionActions` is a component that receives `table`: define it at module scope, not inline. `ColumnConfigModal` opens like `Dialog`: `trigger`, or `isOpen` + `onOpenChange
|
|
144
|
+
- `enableRowSelection` adds the checkbox column with select-all; selection is multiple unless `enableMultiRowSelection={false}`, and a table without it selects nothing. Do not add your own checkbox column. Pass `getRowId={(row) => row.id}` for server-loaded rows: without it the selection is keyed by row index, so a refetch that removes, adds or reorders rows moves the selection to other rows, and bulk actions hit the wrong records. `bulkSelectionActions` is a component that receives `table`: define it at module scope, not inline. `ColumnConfigModal` opens like `Dialog`: `trigger`, or `isOpen` + `onOpenChange`; `ColumnConfigPopover` brings its own trigger. `layout="pinning"` with `onPinningChange` also configures pinned columns. Columns with `enableHiding: false` (row actions) always show and are not listed in `ColumnConfigModal`; columns missing from a saved `columnOrder` go last.
|
|
144
145
|
- Tables are keyboard reachable: Tab lands on one body cell, the arrows move between cells (from a header button or row checkbox too), and Enter runs the row action. Drag handles reorder with Space, the arrows, then Space; Escape cancels.
|
|
145
146
|
- For tabs held in state use `ToggleGroup` with a literal `disallowEmptySelection`, so `onChange` always receives an id and accepts the state setter. `ListTabs` renders navigation links (one URL per tab, `activeId` from the route) and has no `onChange`.
|
|
146
147
|
- Use `ButtonGroup` for grouped independent actions and `ToggleGroup` only when the group holds a selected value.
|
|
@@ -222,7 +223,9 @@ Every public import path, what it is for and its main exports. Each path with a
|
|
|
222
223
|
| `@povio/ui/tabs-filters` | `ListTabs`, `TabsFilters`, `ListTab` | The bar above a list that holds its tabs and filters. |
|
|
223
224
|
| `@povio/ui/tag` | `Tag` | A static chip for a keyword or category, optionally removable. |
|
|
224
225
|
| `@povio/ui/tanstack/form` | `useForm`, `useFormState`, `useFormValue` | Form state and validation: `useForm` with a zod schema, and hooks that read its values and state. |
|
|
225
|
-
| `@povio/ui/tanstack/table` | `ColumnConfigModal`, `InfiniteTable`, `Table`, `useSorting`, `useTableColumnConfig`, `BulkSelectionActionsComponent`, `ColumnDef`, `InfiniteTableProps`, `RowSelectionState` | Data tables: `InfiniteTable` for server lists, `Table` for short fixed data, sorting and configurable columns. |
|
|
226
|
+
| `@povio/ui/tanstack/table` | `ColumnConfigModal`, `InfiniteTable`, `Table`, `useSorting`, `useTableColumnConfig`, `BulkSelectionActionsComponent`, `ColumnDef`, `InfiniteTableProps`, `InfiniteTableQueryState`, `RowSelectionState` | Data tables: `InfiniteTable` for server lists, `Table` for short fixed data, sorting and configurable columns. |
|
|
227
|
+
| `@povio/ui/tanstack/table-context` | `CellLinkPreloadContext`, `TableColumnConfigStorageContext`, `preloadTableVirtualizer`, `TableColumnConfigStorage`, `TableColumnSettings` | Table contexts and preloaders without the tables: an app root provides saved column settings and `CellLink` route preloading here, while its tables load with the routes that show them. |
|
|
228
|
+
| `@povio/ui/tanstack/table-types` | — | Types only: the column `meta` fields (`width`, `sortKey`, `filterKey`, `selectionModel`, `configuredPinPosition`, `keepMounted`, …) and the cell context fields (`value`, `data`) the table reads. Add `import "@povio/ui/tanstack/table-types";` to one of the app's `.d.ts` files to type them. |
|
|
226
229
|
| `@povio/ui/text-area` | `TextArea` | A multi-line text field. |
|
|
227
230
|
| `@povio/ui/theme-context` | `ThemeContext` | The active light or dark theme. |
|
|
228
231
|
| `@povio/ui/time-picker` | `TimePicker` | A field for a time of day. |
|
|
@@ -2396,6 +2399,7 @@ import {
|
|
|
2396
2399
|
type BulkSelectionActionsComponent,
|
|
2397
2400
|
type ColumnDef,
|
|
2398
2401
|
type InfiniteTableProps,
|
|
2402
|
+
type InfiniteTableQueryState,
|
|
2399
2403
|
type RowSelectionState,
|
|
2400
2404
|
ColumnConfigModal,
|
|
2401
2405
|
InfiniteTable,
|
|
@@ -2414,6 +2418,8 @@ interface Invoice {
|
|
|
2414
2418
|
|
|
2415
2419
|
// Stands in for the app's list query (for example a generated React Query hook).
|
|
2416
2420
|
declare function useInvoices(query: { order: string }): Invoice[];
|
|
2421
|
+
// Stands in for the app's infinite list query; its pages are `{ items: Invoice[] }`.
|
|
2422
|
+
declare function useInvoicesInfinite(query: { search: string }): InfiniteTableQueryState & { isError: boolean };
|
|
2417
2423
|
|
|
2418
2424
|
// `ColumnDef<Row>` from this entry; `@tanstack/react-table`'s v9 `ColumnDef` takes the table features first.
|
|
2419
2425
|
const columns: ColumnDef<Invoice>[] = [
|
|
@@ -2529,6 +2535,85 @@ export function TanstackTableColumnConfigExample({ items }: { items: Invoice[] }
|
|
|
2529
2535
|
</>
|
|
2530
2536
|
);
|
|
2531
2537
|
}
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* Long lists: pass the whole infinite `query` (or its `data`), render only the rows in view with
|
|
2541
|
+
* `enableRowVirtualization` (a bounded scroller: `maxHeight` here), and scroll back to the top when the filters
|
|
2542
|
+
* change with `scrollResetKey`. `isError` shows the load error instead of the empty state, or above rows already
|
|
2543
|
+
* loaded. `renderColumnFilter` adds content after a header's label; `isColumnFilterActive` marks applied ones.
|
|
2544
|
+
*/
|
|
2545
|
+
export function TanstackTableLongListExample({ search }: { search: string }) {
|
|
2546
|
+
const query = useInvoicesInfinite({ search });
|
|
2547
|
+
|
|
2548
|
+
return (
|
|
2549
|
+
<InfiniteTable
|
|
2550
|
+
query={query}
|
|
2551
|
+
isError={query.isError}
|
|
2552
|
+
columns={columns}
|
|
2553
|
+
getRowId={(invoice) => invoice.id}
|
|
2554
|
+
maxHeight={600}
|
|
2555
|
+
enableRowVirtualization
|
|
2556
|
+
scrollResetKey={search}
|
|
2557
|
+
renderColumnFilter={({ column }) =>
|
|
2558
|
+
column.id === "customer" ? (
|
|
2559
|
+
<Button
|
|
2560
|
+
variant="text"
|
|
2561
|
+
size="sm"
|
|
2562
|
+
>
|
|
2563
|
+
Filter
|
|
2564
|
+
</Button>
|
|
2565
|
+
) : null
|
|
2566
|
+
}
|
|
2567
|
+
isColumnFilterActive={({ column }) => column.id === "customer" && search !== ""}
|
|
2568
|
+
/>
|
|
2569
|
+
);
|
|
2570
|
+
}
|
|
2571
|
+
```
|
|
2572
|
+
|
|
2573
|
+
### @povio/ui/tanstack/table-context
|
|
2574
|
+
|
|
2575
|
+
```tsx
|
|
2576
|
+
import type { ReactNode } from "react";
|
|
2577
|
+
import {
|
|
2578
|
+
type TableColumnConfigStorage,
|
|
2579
|
+
type TableColumnSettings,
|
|
2580
|
+
CellLinkPreloadContext,
|
|
2581
|
+
TableColumnConfigStorageContext,
|
|
2582
|
+
preloadTableVirtualizer,
|
|
2583
|
+
} from "@povio/ui/tanstack/table-context";
|
|
2584
|
+
|
|
2585
|
+
// Stand in for the app's user settings store and router preloading.
|
|
2586
|
+
declare function useUserSetting(key: string | undefined): {
|
|
2587
|
+
value: TableColumnSettings | undefined;
|
|
2588
|
+
update: (patch: TableColumnSettings) => void;
|
|
2589
|
+
};
|
|
2590
|
+
declare function preloadRoute(href: string): void;
|
|
2591
|
+
|
|
2592
|
+
// One stable object for the app's lifetime: `useColumnSettings` is a hook, called by every `useTableColumnConfig`.
|
|
2593
|
+
const columnStorage: TableColumnConfigStorage = {
|
|
2594
|
+
useColumnSettings: (target) => {
|
|
2595
|
+
const { value, update } = useUserSetting(target?.location);
|
|
2596
|
+
return { settings: target ? value : undefined, save: update };
|
|
2597
|
+
},
|
|
2598
|
+
};
|
|
2599
|
+
|
|
2600
|
+
const cellLinkPreload = { onPreload: (_link: HTMLAnchorElement, href: string) => preloadRoute(href) };
|
|
2601
|
+
|
|
2602
|
+
/**
|
|
2603
|
+
* Table contexts and preloaders without the tables: an app root provides saved column settings and `CellLink` route
|
|
2604
|
+
* preloading here, while its tables load with the routes that show them. `useTableColumnConfig(columns, { location })`
|
|
2605
|
+
* then reads and saves that table's visibility, order, pinning and widths through the storage adapter.
|
|
2606
|
+
*/
|
|
2607
|
+
export function TanstackTableContextExample({ children }: { children: ReactNode }) {
|
|
2608
|
+
// Starts loading the row virtualizer before the first large table mounts.
|
|
2609
|
+
void preloadTableVirtualizer();
|
|
2610
|
+
|
|
2611
|
+
return (
|
|
2612
|
+
<TableColumnConfigStorageContext value={columnStorage}>
|
|
2613
|
+
<CellLinkPreloadContext value={cellLinkPreload}>{children}</CellLinkPreloadContext>
|
|
2614
|
+
</TableColumnConfigStorageContext>
|
|
2615
|
+
);
|
|
2616
|
+
}
|
|
2532
2617
|
```
|
|
2533
2618
|
|
|
2534
2619
|
### @povio/ui/text-area
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@povio/ui",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -1083,6 +1083,14 @@
|
|
|
1083
1083
|
"import": "./dist/tanstack/table.js",
|
|
1084
1084
|
"default": "./dist/tanstack/table.js"
|
|
1085
1085
|
},
|
|
1086
|
+
"./tanstack/table-context": {
|
|
1087
|
+
"types": "./dist/tanstack/table-context.d.ts",
|
|
1088
|
+
"import": "./dist/tanstack/table-context.js",
|
|
1089
|
+
"default": "./dist/tanstack/table-context.js"
|
|
1090
|
+
},
|
|
1091
|
+
"./tanstack/table-types": {
|
|
1092
|
+
"types": "./dist/tanstack/table-types.d.ts"
|
|
1093
|
+
},
|
|
1086
1094
|
"./rich-text-editor": {
|
|
1087
1095
|
"types": "./dist/rich-text-editor.d.ts",
|
|
1088
1096
|
"import": "./dist/rich-text-editor.js",
|
|
@@ -1156,6 +1164,7 @@
|
|
|
1156
1164
|
"@tanstack/react-form": "^1.33.2",
|
|
1157
1165
|
"@tanstack/react-router": "^1.136.8",
|
|
1158
1166
|
"@tanstack/react-table": "^9.0.0",
|
|
1167
|
+
"@tanstack/react-virtual": "^3.14.5",
|
|
1159
1168
|
"@tanstack/store": "^0.11.0",
|
|
1160
1169
|
"@tiptap/core": "^3.19.0",
|
|
1161
1170
|
"@tiptap/extension-color": "^3.19.0",
|
|
@@ -1207,6 +1216,9 @@
|
|
|
1207
1216
|
"@tanstack/react-table": {
|
|
1208
1217
|
"optional": true
|
|
1209
1218
|
},
|
|
1219
|
+
"@tanstack/react-virtual": {
|
|
1220
|
+
"optional": true
|
|
1221
|
+
},
|
|
1210
1222
|
"@tanstack/store": {
|
|
1211
1223
|
"optional": true
|
|
1212
1224
|
},
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
3
|
-
import "./i18n-DQs7jPjv.js";
|
|
4
|
-
import { IconButton } from "./components/icon-button.js";
|
|
5
|
-
import { t as useBreakpoint } from "./useBreakpoint-BrJrvp9_.js";
|
|
6
|
-
import { f as getPlaceholder } from "./staticDateTimeSegments-BYk1tcxs.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
|
-
import { useEffect, useRef } from "react";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
11
|
-
import { Time } from "@internationalized/date";
|
|
12
|
-
import { useTranslation } from "react-i18next";
|
|
13
|
-
import { useDateSegment, useLocale, useTimeField } from "react-aria";
|
|
14
|
-
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
15
|
-
//#region src/hooks/useLongPressRepeat.ts
|
|
16
|
-
const useLongPressRepeat = (t0) => {
|
|
17
|
-
const $ = c(10);
|
|
18
|
-
const { onPress, enabled: t1, interval: t2, timeout: t3 } = t0;
|
|
19
|
-
const enabled = t1 === void 0 ? true : t1;
|
|
20
|
-
const interval = t2 === void 0 ? 85 : t2;
|
|
21
|
-
const timeout = t3 === void 0 ? 500 : t3;
|
|
22
|
-
const intervalRef = useRef(void 0);
|
|
23
|
-
let t4;
|
|
24
|
-
let t5;
|
|
25
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26
|
-
t4 = () => () => {
|
|
27
|
-
clearInterval(intervalRef.current);
|
|
28
|
-
};
|
|
29
|
-
t5 = [];
|
|
30
|
-
$[0] = t4;
|
|
31
|
-
$[1] = t5;
|
|
32
|
-
} else {
|
|
33
|
-
t4 = $[0];
|
|
34
|
-
t5 = $[1];
|
|
35
|
-
}
|
|
36
|
-
useEffect(t4, t5);
|
|
37
|
-
let t6;
|
|
38
|
-
if ($[2] !== enabled || $[3] !== interval || $[4] !== onPress || $[5] !== timeout) {
|
|
39
|
-
t6 = () => {
|
|
40
|
-
onPress(false);
|
|
41
|
-
if (!enabled) return;
|
|
42
|
-
intervalRef.current = setTimeout(() => {
|
|
43
|
-
onPress(true);
|
|
44
|
-
intervalRef.current = setInterval(() => {
|
|
45
|
-
onPress(true);
|
|
46
|
-
}, interval);
|
|
47
|
-
}, timeout);
|
|
48
|
-
};
|
|
49
|
-
$[2] = enabled;
|
|
50
|
-
$[3] = interval;
|
|
51
|
-
$[4] = onPress;
|
|
52
|
-
$[5] = timeout;
|
|
53
|
-
$[6] = t6;
|
|
54
|
-
} else t6 = $[6];
|
|
55
|
-
const onPressStart = t6;
|
|
56
|
-
let t7;
|
|
57
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
58
|
-
t7 = () => {
|
|
59
|
-
clearInterval(intervalRef.current);
|
|
60
|
-
};
|
|
61
|
-
$[7] = t7;
|
|
62
|
-
} else t7 = $[7];
|
|
63
|
-
const onPressEnd = t7;
|
|
64
|
-
let t8;
|
|
65
|
-
if ($[8] !== onPressStart) {
|
|
66
|
-
t8 = {
|
|
67
|
-
onPressStart,
|
|
68
|
-
onPressEnd
|
|
69
|
-
};
|
|
70
|
-
$[8] = onPressStart;
|
|
71
|
-
$[9] = t8;
|
|
72
|
-
} else t8 = $[9];
|
|
73
|
-
return t8;
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/components/inputs/DateTime/shared/TimePickerForm.tsx
|
|
77
|
-
const INCREMENT_STEP_SIZE = 5;
|
|
78
|
-
const TimePickerForm = ({ state, datePickerState }) => {
|
|
79
|
-
const isDesktop = useBreakpoint("md");
|
|
80
|
-
const { locale } = useLocale();
|
|
81
|
-
const fieldState = useTimeFieldState({
|
|
82
|
-
locale,
|
|
83
|
-
defaultValue: datePickerState?.timeValue,
|
|
84
|
-
onChange: (value) => {
|
|
85
|
-
datePickerState?.setTimeValue(value ?? new Time(0, 0));
|
|
86
|
-
},
|
|
87
|
-
hideTimeZone: true
|
|
88
|
-
});
|
|
89
|
-
const ref = useRef(null);
|
|
90
|
-
const innerState = state ?? fieldState;
|
|
91
|
-
const { fieldProps } = useTimeField({ "aria-label": "Time Picker" }, innerState, ref);
|
|
92
|
-
const getAutoFocus = (index) => {
|
|
93
|
-
if (!isDesktop) return false;
|
|
94
|
-
return index === innerState.segments.findIndex(({ type }) => [
|
|
95
|
-
"hour",
|
|
96
|
-
"minute",
|
|
97
|
-
"dayPeriod"
|
|
98
|
-
].includes(type));
|
|
99
|
-
};
|
|
100
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
101
|
-
className: "w-full p-8",
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ jsx("div", {
|
|
104
|
-
className: "flex items-center justify-center gap-4",
|
|
105
|
-
children: innerState.segments.map((segment, i) => /* @__PURE__ */ jsx(TimeSegmentButton, {
|
|
106
|
-
segment,
|
|
107
|
-
state: innerState,
|
|
108
|
-
type: "increment"
|
|
109
|
-
}, i))
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ jsx("div", {
|
|
112
|
-
ref,
|
|
113
|
-
...fieldProps,
|
|
114
|
-
className: "flex items-center justify-center gap-4 py-2",
|
|
115
|
-
children: innerState.segments.map((segment, i) => /* @__PURE__ */ jsx(TimeSegmentInput, {
|
|
116
|
-
segment,
|
|
117
|
-
state: innerState,
|
|
118
|
-
autoFocus: getAutoFocus(i)
|
|
119
|
-
}, i))
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ jsx("div", {
|
|
122
|
-
className: "flex items-center justify-center gap-4",
|
|
123
|
-
children: innerState.segments.map((segment, i) => /* @__PURE__ */ jsx(TimeSegmentButton, {
|
|
124
|
-
segment,
|
|
125
|
-
state: innerState,
|
|
126
|
-
type: "decrement"
|
|
127
|
-
}, i))
|
|
128
|
-
})
|
|
129
|
-
]
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
const TimeSegmentInput = ({ segment, state, autoFocus }) => {
|
|
133
|
-
const ref = useRef(null);
|
|
134
|
-
const { segmentProps } = useDateSegment(segment, state, ref);
|
|
135
|
-
const isDesktop = useBreakpoint("md");
|
|
136
|
-
useEffect(() => {
|
|
137
|
-
if (autoFocus) ref.current?.focus();
|
|
138
|
-
}, [autoFocus]);
|
|
139
|
-
if (![
|
|
140
|
-
"literal",
|
|
141
|
-
"hour",
|
|
142
|
-
"minute",
|
|
143
|
-
"dayPeriod"
|
|
144
|
-
].includes(segment.type)) return null;
|
|
145
|
-
if (segment.type === "literal") {
|
|
146
|
-
if (!showSegmentText(segment.text)) return null;
|
|
147
|
-
return /* @__PURE__ */ jsx("div", {
|
|
148
|
-
className: "flex flex-col text-center",
|
|
149
|
-
ref,
|
|
150
|
-
children: /* @__PURE__ */ jsx(Typography, {
|
|
151
|
-
as: "span",
|
|
152
|
-
size: "body",
|
|
153
|
-
className: "font-medium text-foreground",
|
|
154
|
-
children: segment.text
|
|
155
|
-
})
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
return /* @__PURE__ */ jsx("div", {
|
|
159
|
-
className: "flex flex-col items-center justify-center gap-2",
|
|
160
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
161
|
-
ref,
|
|
162
|
-
...isDesktop && segmentProps,
|
|
163
|
-
className: clsx("w-11 rounded-md bg-muted py-1 text-center", "font-sans font-bold text-muted-foreground", "border border-input border-solid", "not-focus-within:hover:border-input not-focus-within:hover:bg-accent not-focus-within:hover:text-foreground", "focus-within:border-ring focus-within:bg-background focus-within:text-foreground focus-within:outline-none"),
|
|
164
|
-
children: getPlaceholder(segment) ?? segment.text
|
|
165
|
-
})
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
const TimeSegmentButton = ({ segment, state, type }) => {
|
|
169
|
-
const { t } = useTranslation("ui");
|
|
170
|
-
const stateRef = useRef(state);
|
|
171
|
-
useEffect(() => {
|
|
172
|
-
stateRef.current = state;
|
|
173
|
-
}, [state]);
|
|
174
|
-
const onPress = (isLongPress) => {
|
|
175
|
-
if (isLongPress && segment.type === "minute") {
|
|
176
|
-
const currentValue = stateRef.current.segments.find((item) => item.type === "minute")?.value ?? 0;
|
|
177
|
-
const normalizedValue = (Math.round((currentValue + (type === "increment" ? INCREMENT_STEP_SIZE : -5)) / INCREMENT_STEP_SIZE) * INCREMENT_STEP_SIZE % 60 + 60) % 60;
|
|
178
|
-
stateRef.current.setSegment(segment.type, normalizedValue);
|
|
179
|
-
} else stateRef.current[type](segment.type);
|
|
180
|
-
};
|
|
181
|
-
const { onPressStart, onPressEnd } = useLongPressRepeat({
|
|
182
|
-
onPress,
|
|
183
|
-
enabled: segment.type !== "dayPeriod",
|
|
184
|
-
timeout: 300,
|
|
185
|
-
interval: 300
|
|
186
|
-
});
|
|
187
|
-
if (![
|
|
188
|
-
"literal",
|
|
189
|
-
"hour",
|
|
190
|
-
"minute",
|
|
191
|
-
"dayPeriod"
|
|
192
|
-
].includes(segment.type)) return null;
|
|
193
|
-
if (segment.type === "literal") {
|
|
194
|
-
if (!showSegmentText(segment.text)) return null;
|
|
195
|
-
return /* @__PURE__ */ jsx("div", {
|
|
196
|
-
className: "flex shrink-0",
|
|
197
|
-
children: /* @__PURE__ */ jsx(Typography, {
|
|
198
|
-
as: "span",
|
|
199
|
-
size: "body",
|
|
200
|
-
className: "invisible font-medium text-foreground",
|
|
201
|
-
"aria-hidden": true,
|
|
202
|
-
children: segment.text
|
|
203
|
-
})
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
const Icon = type === "increment" ? ChevronUp : ChevronDown;
|
|
207
|
-
return /* @__PURE__ */ jsx("div", {
|
|
208
|
-
className: "flex w-11 select-none items-center justify-center",
|
|
209
|
-
onContextMenu: (e) => e.preventDefault(),
|
|
210
|
-
children: /* @__PURE__ */ jsx(IconButton, {
|
|
211
|
-
label: t(($) => type === "increment" ? $.ui.datePicker.adjustTime.increment : $.ui.datePicker.adjustTime.decrement, { segment: t(($) => segment.type === "hour" ? $.ui.datePicker.adjustTime.hour : segment.type === "minute" ? $.ui.datePicker.adjustTime.minute : $.ui.datePicker.adjustTime.dayPeriod) }),
|
|
212
|
-
color: "secondary",
|
|
213
|
-
onPressStart,
|
|
214
|
-
onPressEnd,
|
|
215
|
-
icon: Icon,
|
|
216
|
-
variant: "text",
|
|
217
|
-
width: "hug",
|
|
218
|
-
disableTooltip: true,
|
|
219
|
-
size: "sm"
|
|
220
|
-
})
|
|
221
|
-
});
|
|
222
|
-
};
|
|
223
|
-
const showSegmentText = (text) => !/[\u2066\u2069]/.test(text);
|
|
224
|
-
//#endregion
|
|
225
|
-
export { useLongPressRepeat as n, TimePickerForm as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./FormField-XQbjfGSv.js";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/utils/array.utils.ts
|
|
2
|
-
let ArrayUtils;
|
|
3
|
-
(function(_ArrayUtils) {
|
|
4
|
-
_ArrayUtils.fromCommaSeparatedStr = (str) => {
|
|
5
|
-
if (!str) return [];
|
|
6
|
-
return str.split(",").map((item) => item.trim());
|
|
7
|
-
};
|
|
8
|
-
})(ArrayUtils || (ArrayUtils = {}));
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ArrayUtils as t };
|