@povio/ui 6.0.0-rc.12 → 6.0.0-rc.13
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 +469 -42
- package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
- package/dist/{Accordion-ORBin0EZ.js → Accordion-gUW7u1Zn.js} +41 -41
- package/dist/Alert-DwnALnFY.d.ts +36 -0
- package/dist/AlertDialog-BcRiqY_n.d.ts +70 -0
- package/dist/Autocomplete-CV4Aa1Ok.js +319 -0
- package/dist/Autocomplete-DRwQxx0U.d.ts +123 -0
- package/dist/Badge-CO-ZsmbR.d.ts +67 -0
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-APVu5TUd.js} +8 -8
- package/dist/BottomSheet-Be0HtQzP.d.ts +65 -0
- package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-NNB7ivkW.d.ts} +1 -1
- package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-Bn3fqVYx.d.ts} +6 -3
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-Cd75RPbS.js} +33 -17
- package/dist/{Button-C1YB5dOw.js → Button-BJJkLVNj.js} +1 -5
- package/dist/{Button-BaODzvZd.js → Button-CzEs3tcV.js} +1 -1
- package/dist/{Button-0SswSdDg.d.ts → Button-Hk8zm9q_.d.ts} +2 -2
- package/dist/ButtonBase-Cp1w00t2.d.ts +47 -0
- package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-aGz6DYum.js} +10 -18
- package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
- package/dist/{Calendar-yaQubCWK.js → Calendar-DN-i_b-_.js} +19 -17
- package/dist/{Calendar.lazy-DcVss9Bk.js → Calendar.lazy-CqmyDSND.js} +4 -4
- package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-CzKXZw_w.js} +35 -9
- package/dist/Checkbox-D32MOIhF.d.ts +49 -0
- package/dist/CheckboxCheckmark-DDU_Ie7-.js +42 -0
- package/dist/CheckboxGroup-B5Mn1G3u.d.ts +52 -0
- package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-BqWt09kZ.js} +75 -35
- package/dist/DatePicker-CmoVbapu.d.ts +80 -0
- package/dist/{DatePicker-bme8zGBo.js → DatePicker-DQewd1By.js} +80 -41
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-DRZ1hLlR.js} +86 -158
- package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
- package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-DWtKPaE6.js} +70 -35
- package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
- package/dist/{Dialog-DN5703sy.js → Dialog-BzQYDPJ9.js} +23 -19
- package/dist/Dialog-D0SeePPz.d.ts +66 -0
- package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-Bjm5IOpg.js} +1 -1
- package/dist/Drawer-o018RqIt.d.ts +42 -0
- package/dist/DropdownMenu-DTr7b-XO.d.ts +51 -0
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-DrshB60h.js} +33 -21
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-DxGA0yvx.js} +14 -8
- package/dist/FileInput-Bokcp9nH.d.ts +61 -0
- package/dist/{FileInput-BUwtAF2-.js → FileInput-LMhFxlqB.js} +75 -80
- package/dist/FileUpload-BqXd4_nz.d.ts +181 -0
- package/dist/FileUpload-CJZrkr_U.js +679 -0
- package/dist/{FormField-dduTMkNH.js → FormField-TI8Vx5aC.js} +10 -10
- package/dist/FormField-XQbjfGSv.d.ts +70 -0
- package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
- package/dist/FormFieldHeaderTooltip-DB7KrrcD.js +22 -0
- package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
- package/dist/IconButton-CQLHX8-Y.d.ts +24 -0
- package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
- package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CjDUsi2I.js} +1 -1
- package/dist/{Input-CG5LQ0zs.js → Input-CeRJeAoR.js} +94 -59
- package/dist/Input-onUj0DKg.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.js → InputContent-B8OCdbVP.js} +15 -13
- package/dist/InputContent-D5ZkB9hO.d.ts +39 -0
- package/dist/Link-BdnWVYL9.d.ts +15 -0
- package/dist/{ListBox-DhR5kojP.js → ListBox-gR4iSV7N.js} +3 -3
- package/dist/{Modal-DcLWF9cB.js → Modal-DAMsCwzb.js} +1 -1
- package/dist/{NumberField-DxuikBcr.js → NumberField-6Q9LHGSo.js} +91 -62
- package/dist/NumberField-Sb30Qao3.d.ts +41 -0
- package/dist/{NumberRangeInput-8bOjNEnS.js → NumberRangeInput-BDSkcHVJ.js} +152 -101
- package/dist/NumberRangeInput-Dvq8mOUY.d.ts +89 -0
- package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-eJk6GNK6.d.ts} +6 -5
- package/dist/{PasswordInput.bound-Dfq5c3JQ.js → PasswordInput-BcHpV0Ie.js} +6 -6
- package/dist/PasswordInput-VHzP4VPU.d.ts +16 -0
- package/dist/Popover-qplPGDnR.d.ts +51 -0
- package/dist/Progress-DH-w99MU.d.ts +26 -0
- package/dist/Progress-WzWvbvtp.js +180 -0
- package/dist/ProgressBar-BsSimmJF.js +46 -0
- package/dist/RadioGroup-CC8bKtBN.d.ts +52 -0
- package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-PKqFHoKP.js} +66 -26
- package/dist/{RangeCalendar-DT63UD8K.js → RangeCalendar-DqCTlIuy.js} +12 -10
- package/dist/Select-CSyfDyxG.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-D3fuXwVt.js} +435 -184
- package/dist/{SelectListBox-BFSZxDSi.js → SelectListBox-DqAxkT1f.js} +46 -37
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-BGl_PIsH.js} +280 -363
- package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-CdtK2M-C.d.ts} +31 -17
- package/dist/{Slider-DCsCCPFx.js → Slider-BCUiALjE.js} +69 -12
- package/dist/Slider-DxalZD3o.d.ts +57 -0
- package/dist/Spinner-BTrEbNFy.d.ts +13 -0
- package/dist/SplitButton-Dv5l8p5t.d.ts +25 -0
- package/dist/Stepper-B1IOUcSI.d.ts +49 -0
- package/dist/{Stepper-Dyhxp0Tl.js → Stepper-DA2G546I.js} +116 -88
- package/dist/{Switch-BfpSMMpv.js → Switch-Ce-bJOVw.js} +54 -12
- package/dist/Switch-urNrop0P.d.ts +42 -0
- package/dist/{TabsFilters-DybNturW.js → TabsFilters-Cweij8He.js} +44 -33
- package/dist/TabsFilters-M5Ld7eb8.d.ts +59 -0
- package/dist/Tag-BKR1AZFa.d.ts +26 -0
- package/dist/TextArea-D7YVclaz.d.ts +33 -0
- package/dist/{TextArea-Blsip3ZC.js → TextArea-P8F0oD_A.js} +59 -32
- package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-l4Ysk2AX.js} +99 -50
- package/dist/{TimePickerForm-DD9VA_td.js → TimePickerForm-BMqNpDPT.js} +5 -5
- package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-BeklfvlK.js} +4 -4
- package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-DWw53pTt.d.ts} +2 -2
- package/dist/ToggleGroup-BQk3k0at.d.ts +95 -0
- package/dist/ToggleGroup-BdIgqoqA.js +500 -0
- package/dist/{Tooltip-DRB6lo0U.js → Tooltip-BkXPEBqw.js} +2 -2
- package/dist/Tooltip-H8OB7CqY.d.ts +33 -0
- package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
- package/dist/{TooltipWrapper-BSY31JMc.js → TooltipWrapper-ubbBHHVD.js} +6 -6
- package/dist/{Typography-DJojwiXV.d.ts → Typography-Cx1oRGxd.d.ts} +5 -1
- package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-BpoxNggB.js} +20 -22
- package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
- package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-Dyy_RUZU.d.ts} +1 -1
- package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +2 -2
- package/dist/components/alert-dialog.js +174 -128
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +17 -15
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +159 -81
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +4 -4
- 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 +2 -2
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +4 -41
- package/dist/components/date-range-picker.js +4 -2
- package/dist/components/date-range-presets.d.ts +2 -0
- package/dist/components/date-range-presets.js +3 -0
- package/dist/components/date-time-picker.d.ts +2 -2
- 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.d.ts +1 -1
- package/dist/components/drawer.js +16 -80
- package/dist/components/dropdown-menu.d.ts +2 -3
- package/dist/components/dropdown-menu.js +2 -3
- package/dist/components/file-input.d.ts +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload.d.ts +2 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +3 -2
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +22 -25
- package/dist/components/icon-slot.d.ts +1 -2
- package/dist/components/icon-slot.js +2 -2
- package/dist/components/input-frame.d.ts +6 -10
- package/dist/components/input-frame.js +29 -26
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +2 -2
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +2 -2
- package/dist/components/number-range-input.d.ts +2 -2
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +5 -5
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +1 -22
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +105 -87
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +2 -2
- 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 +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +71 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +15 -4
- 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 +33 -18
- package/dist/components/switch.d.ts +2 -2
- 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 +50 -64
- package/dist/components/text-area.d.ts +2 -2
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +2 -2
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +3 -3
- package/dist/components/toast.js +4 -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 +2 -2
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.d.ts +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 +2 -2
- package/dist/components/use-toast.js +1 -41
- package/dist/config/component-configuration.d.ts +1 -1
- package/dist/config/component-configuration.js +53 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +3 -3
- package/dist/config/link-context.js +1 -1
- 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-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/confirmation.context-BflM4Vxg.js +93 -0
- package/dist/confirmation.context-C_js9qNv.d.ts +32 -0
- package/dist/{datePickerInput.cva-Du0Zn04v.js → datePickerInput.cva-CWkV2fut.js} +1 -1
- package/dist/dateRangePreset.utils-Bnb-rjTt.js +116 -0
- package/dist/{dialog.cva-BIpz6HcA.js → dialog.cva-BjVggO5l.js} +1 -1
- package/dist/{dist-DEZzXa0W.js → dist-DZOoWaZz.js} +63 -38
- package/dist/{dropdownMenu.cva-DwSOcbmR.js → dropdownMenu.cva-BopsvbOy.js} +19 -7
- package/dist/{exports-BNrTn8Tj.js → exports-DeBGRThC.js} +3 -3
- package/dist/{file.utils-Crb-mIHs.d.ts → file.utils-DUADtzdt.d.ts} +3 -3
- package/dist/{file.utils-DqQxnuAm.js → file.utils-X6tkeWaz.js} +2 -6
- package/dist/fileInputButton.cva-gbqRUf1g.js +39 -0
- package/dist/{fileUpload.cva-BYzXGc9C.js → fileUpload.cva-MH5ziWUe.js} +2 -2
- package/dist/form-field-Bw7U_ZPI.d.ts +1 -0
- package/dist/form.binding-Brdjq2yr.js +161 -0
- package/dist/form.binding-DSXB2AOD.d.ts +127 -0
- package/dist/form.types-a2WVJDQX.d.ts +43 -0
- package/dist/formReset-CnZl_yze.js +35 -0
- package/dist/hints-B09_WDhL.d.ts +17 -0
- package/dist/hooks/use-async-list.d.ts +1 -1
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-breakpoint.d.ts +3 -0
- package/dist/hooks/use-breakpoint.js +2 -0
- package/dist/hooks/use-filters.d.ts +2 -2
- package/dist/hooks/use-filters.js +1 -1
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-B3PeqBM7.d.ts} +100 -4
- package/dist/{i18n-D8vXIoiq.js → i18n-DQs7jPjv.js} +99 -9
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-C73fI3WD.js} +2 -2
- package/dist/index.d.ts +64 -83
- package/dist/index.js +55 -90
- package/dist/{input.cva-DZii82eS.js → input.cva-mm1dnfKP.js} +27 -23
- package/dist/inputLayout-CIVpuUBq.js +7 -0
- package/dist/inputRow.clsx-BbcaXVta.js +6 -0
- package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
- package/dist/link.context-BcBuP9ZT.d.ts +20 -0
- package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
- package/dist/link.cva-D6L1c2wq.d.ts +2157 -0
- package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
- package/dist/{progress.cva-CsGaGVJ-.js → progress.cva-mkJxrrac.js} +2 -2
- package/dist/{radio.cva-DistaZtZ.js → radio.cva-Dt5N2ul2.js} +7 -7
- package/dist/rich-text-editor.d.ts +44 -2
- package/dist/rich-text-editor.js +733 -1
- package/dist/router.context-B6j_M4cN.js +151 -0
- package/dist/router.context-CSd9JYQ4.d.ts +33 -0
- package/dist/{selectDesktop.cva-DStkOdwm.js → selectDesktop.cva-30JAvtgB.js} +1 -1
- package/dist/sidebar.cva-BgxTCejU.js +150 -0
- package/dist/spinner.cva-j4kGmIWC.js +17 -0
- package/dist/{staticDateTimeSegments-CVuAhDDl.js → staticDateTimeSegments-BYk1tcxs.js} +43 -13
- package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/table.d.ts +5 -3
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack-ABeiJISz.js +10 -0
- package/dist/tanstack-bLXoUPDY.d.ts +165 -0
- package/dist/tanstack.d.ts +64 -83
- package/dist/tanstack.js +55 -90
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-C3oA7He3.js} +8 -8
- package/dist/toast.runtime-BHXdSTXV.js +25 -0
- package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
- package/dist/uiConfig.context-CN_QgxGO.d.ts +19 -0
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-CjnLnQOo.js} +5 -7
- package/dist/{uiConfig.context-BnCORTNm.d.ts → uiConfig.types-B0sPL7nN.d.ts} +34 -34
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-CQgkDfjW.js} +140 -35
- package/dist/useAsyncList-F-328rtE.d.ts +25 -0
- package/dist/useAutoFocus-K-bfNxa2.js +16 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-BrJrvp9_.js} +5 -1
- package/dist/useBreakpoint-D-SVcBeQ.d.ts +9 -0
- package/dist/useDebounceCallback-BjePw6y4.js +90 -0
- package/dist/useFilters-CybBXUAA.js +217 -0
- package/dist/useFilters-DrfBFNLw.d.ts +57 -0
- package/dist/useFormAutosave-BN-zueci.js +419 -0
- package/dist/{useFormAutosave-BBLm3Ujo.d.ts → useFormAutosave-ClMnzVE7.d.ts} +1 -1
- package/dist/{useIntersectionObserver-DFAhTsV0.js → useIntersectionObserver-B8msnQTR.js} +15 -3
- package/dist/{numberStatic.utils-BIyZuILs.js → useLiveNumberFieldState-B7qGzySj.js} +103 -2
- package/dist/useRemoveButton-B6-IGvpY.js +98 -0
- package/dist/useResolveDateRangePreset-C_L-doA6.js +26 -0
- package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-C8chM7c-.js} +1 -1
- package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
- package/dist/{useTableColumnConfig-CXYgj5xi.js → useTableColumnConfig-B9cYBKo3.js} +956 -535
- package/dist/useTableNav-rP1wDkhV.d.ts +372 -0
- package/dist/useToast-D2C9pROU.d.ts +78 -0
- package/dist/useToast-DSoOiSw0.js +63 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/llms.txt +3116 -0
- package/package.json +13 -121
- package/MIGRATION.md +0 -655
- package/dist/Alert-D4X7OWiv.d.ts +0 -34
- package/dist/AlertDialog-DklLDjmw.d.ts +0 -26
- package/dist/Autocomplete-BgFz3kuR.d.ts +0 -23
- package/dist/Autocomplete-Bn13u0zu.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-Dwh__y-Z.js +0 -28
- package/dist/Badge-Db1ndK67.d.ts +0 -30
- package/dist/BadgeButton-BPhWDAnc.d.ts +0 -15
- package/dist/BottomSheet-BZmDJBR-.d.ts +0 -33
- package/dist/ButtonBase-CZuEy3Pk.d.ts +0 -32
- package/dist/Checkbox-w2j5hLOQ.d.ts +0 -27
- package/dist/Checkbox.bound-D2nBglJz.js +0 -33
- package/dist/Checkbox.bound-DD_RCjVm.d.ts +0 -9
- package/dist/CheckboxCheckmark-DWsYVZuu.js +0 -25
- package/dist/CheckboxGroup-BYI15Y09.d.ts +0 -30
- package/dist/CheckboxGroup.bound-DY0HKGSh.js +0 -32
- package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +0 -9
- package/dist/ComboBox-ChsdI0lt.js +0 -212
- package/dist/DatePicker-QzfQf21b.d.ts +0 -56
- package/dist/DatePicker.bound-DoCAqhM4.d.ts +0 -9
- package/dist/DatePicker.bound-M2cjR37s.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-CkIDsAUf.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- package/dist/DateTimePicker.bound-nSCVUqd0.js +0 -32
- package/dist/Dialog-CO9xljD3.d.ts +0 -21
- package/dist/Drawer-D1cHiBFO.d.ts +0 -18
- package/dist/DropdownMenu-D_9z9ond.d.ts +0 -25
- package/dist/FileInput-BEaECoBS.d.ts +0 -75
- package/dist/FileInput.bound-C12mOKpg.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-D7FMYm-k.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-DmkuulOi.js +0 -30
- package/dist/FileUploadContainer-Dzg5aXXZ.d.ts +0 -5
- package/dist/FormField-DGyCDxOp.d.ts +0 -42
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +0 -17
- package/dist/IconButton-shH_9wcl.d.ts +0 -25
- package/dist/Input-CTp_9mS9.d.ts +0 -34
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- package/dist/Input.bound-DYoXyRGy.js +0 -31
- package/dist/InputContent-BCNkN4Fx.d.ts +0 -27
- package/dist/Link-PvYB_M-j.d.ts +0 -30
- package/dist/MenuItem-U3-pu1j5.d.ts +0 -6
- package/dist/NumberField-WXebfxjK.d.ts +0 -34
- package/dist/NumberField.bound-ChJnNyJS.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-BF6P_ega.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
- package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
- package/dist/Popover-D_t1XDPA.d.ts +0 -20
- package/dist/Progress-Ckfpi_-M.d.ts +0 -45
- package/dist/Progress-RiEGGxNG.js +0 -119
- package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
- package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
- package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/RichTextEditor-DfwVdm45.js +0 -651
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound--Az1Xwgm.js +0 -34
- package/dist/Select.bound-qOihchei.d.ts +0 -17
- package/dist/Slider-DRg8zKRM.d.ts +0 -23
- package/dist/Slider.bound-CByTXPTr.js +0 -31
- package/dist/Slider.bound-CaEF19um.d.ts +0 -9
- package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
- package/dist/Spinner-DqjP06T1.js +0 -101
- package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
- package/dist/Stepper-k91x_m-E.d.ts +0 -114
- package/dist/Switch-ELVPkPx0.d.ts +0 -24
- package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
- package/dist/Switch.bound-Dv0cHsMM.js +0 -33
- package/dist/TableDnd-CuHxANWh.js +0 -133
- package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
- package/dist/TabsFilters-DePddjCk.d.ts +0 -30
- package/dist/Tag-B2_ZiSE-.d.ts +0 -44
- package/dist/TextArea-iqUeB2QY.d.ts +0 -26
- package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
- package/dist/TextArea.bound-DeaskY6r.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-BFSXJvE_.js +0 -32
- package/dist/Toast-D9pdadZ4.d.ts +0 -16
- package/dist/ToggleGroup-CrDoeLN0.js +0 -333
- package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
- package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
- package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
- package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
- package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
- package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
- package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
- package/dist/components/badge-button.d.ts +0 -2
- package/dist/components/badge-button.js +0 -74
- package/dist/components/file-upload-container.d.ts +0 -3
- package/dist/components/file-upload-container.js +0 -15
- package/dist/confirmation.context-Bc2yEVp_.js +0 -114
- package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
- package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
- package/dist/form.binding-DOR5gIQf.js +0 -49
- package/dist/form.types-C8P4sznq.d.ts +0 -22
- package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
- package/dist/icons.d.ts +0 -4
- package/dist/icons.js +0 -3
- package/dist/input.cva-BjuHsDGy.d.ts +0 -80
- package/dist/inputLayout-KdAtunGk.js +0 -5
- package/dist/link.context-BCHn7NSy.d.ts +0 -12
- package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
- package/dist/router.context-CtafjXV7.d.ts +0 -16
- package/dist/router.context-MckTbHw9.js +0 -63
- package/dist/routing.utils-DfxEt0_Y.js +0 -30
- package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
- package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
- package/dist/tanstack/autocomplete.d.ts +0 -3
- package/dist/tanstack/autocomplete.js +0 -2
- package/dist/tanstack/checkbox-group.d.ts +0 -3
- package/dist/tanstack/checkbox-group.js +0 -2
- package/dist/tanstack/checkbox.d.ts +0 -3
- package/dist/tanstack/checkbox.js +0 -2
- package/dist/tanstack/date-picker.d.ts +0 -3
- package/dist/tanstack/date-picker.js +0 -2
- package/dist/tanstack/date-range-picker.d.ts +0 -3
- package/dist/tanstack/date-range-picker.js +0 -2
- package/dist/tanstack/date-time-picker.d.ts +0 -3
- package/dist/tanstack/date-time-picker.js +0 -2
- package/dist/tanstack/file-input.d.ts +0 -3
- package/dist/tanstack/file-input.js +0 -2
- package/dist/tanstack/file-upload.d.ts +0 -4
- package/dist/tanstack/file-upload.js +0 -2
- package/dist/tanstack/input.d.ts +0 -3
- package/dist/tanstack/input.js +0 -2
- package/dist/tanstack/number-field.d.ts +0 -3
- package/dist/tanstack/number-field.js +0 -2
- package/dist/tanstack/number-range-input.d.ts +0 -3
- package/dist/tanstack/number-range-input.js +0 -2
- package/dist/tanstack/password-input.d.ts +0 -2
- package/dist/tanstack/password-input.js +0 -2
- package/dist/tanstack/radio-group.d.ts +0 -3
- package/dist/tanstack/radio-group.js +0 -2
- package/dist/tanstack/rich-text-editor.d.ts +0 -9
- package/dist/tanstack/rich-text-editor.js +0 -28
- package/dist/tanstack/select.d.ts +0 -3
- package/dist/tanstack/select.js +0 -2
- package/dist/tanstack/slider.d.ts +0 -3
- package/dist/tanstack/slider.js +0 -2
- package/dist/tanstack/switch.d.ts +0 -3
- package/dist/tanstack/switch.js +0 -2
- package/dist/tanstack/text-area.d.ts +0 -3
- package/dist/tanstack/text-area.js +0 -2
- package/dist/tanstack/time-picker.d.ts +0 -3
- package/dist/tanstack/time-picker.js +0 -2
- package/dist/tanstack/toggle-group.d.ts +0 -3
- package/dist/tanstack/toggle-group.js +0 -2
- package/dist/tanstack-Bgdv0qU1.js +0 -19
- package/dist/tanstack-wNbE6b-h.d.ts +0 -566
- package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
- package/dist/toast.runtime-Drd2IJ_j.js +0 -17
- package/dist/toastActivation.store-BELtcr76.js +0 -16
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
- package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
- package/dist/useAsyncList-Cu-Y8If2.d.ts +0 -9
- package/dist/useFilters-BxRScJdn.d.ts +0 -11
- package/dist/useFilters-DMi94RZK.js +0 -190
- package/dist/useForm-Cb7KWLds.js +0 -217
- package/dist/useForm-I6z23FXf.d.ts +0 -51
- package/dist/useFormAutosave-BPGlChiY.js +0 -216
- package/dist/useTableNav-BusSFEVC.d.ts +0 -197
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { t as logger } from "./logger-CqZjM-sn.js";
|
|
2
|
-
import { n as ObjectUtils, t as isEqual } from "./isEqual-LFw0W5rU.js";
|
|
3
|
-
import { a as getFormResetVersion, c as getAutosavePatch, l as getChangedAutosaveFields, o as refreshAutosaveForm, s as subscribeFormReset, t as useForm$1, u as getSubmittedAutosaveFields } from "./useForm-Cb7KWLds.js";
|
|
4
|
-
import { useCallback, useEffect, useRef } from "react";
|
|
5
|
-
import { getBy, setBy } from "@tanstack/react-form";
|
|
6
|
-
//#region src/hooks/useAutosave.ts
|
|
7
|
-
const snapshot = (value) => structuredClone(value);
|
|
8
|
-
/** Autosaves changed fields only. Schemas must preserve raw field paths in their object output. */
|
|
9
|
-
function useAutosave({ form, delay = 500, enabled = true, trigger = "change", onSave, onSaveSuccess }) {
|
|
10
|
-
const timeoutRef = useRef(void 0);
|
|
11
|
-
const savedSnapshotRef = useRef(snapshot(form.state.values));
|
|
12
|
-
const saveQueueRef = useRef(Promise.resolve());
|
|
13
|
-
const acknowledgedFieldsRef = useRef(/* @__PURE__ */ new Map());
|
|
14
|
-
const resetRevisionRef = useRef(getFormResetVersion(form));
|
|
15
|
-
const latestSaveRef = useRef({
|
|
16
|
-
onSave,
|
|
17
|
-
onSaveSuccess
|
|
18
|
-
});
|
|
19
|
-
latestSaveRef.current = {
|
|
20
|
-
onSave,
|
|
21
|
-
onSaveSuccess
|
|
22
|
-
};
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
let active = true;
|
|
25
|
-
const clearPending = () => {
|
|
26
|
-
if (timeoutRef.current) {
|
|
27
|
-
clearTimeout(timeoutRef.current);
|
|
28
|
-
timeoutRef.current = void 0;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const queueSave = () => {
|
|
32
|
-
if (!enabled) return;
|
|
33
|
-
clearPending();
|
|
34
|
-
const revision = resetRevisionRef.current;
|
|
35
|
-
timeoutRef.current = setTimeout(() => {
|
|
36
|
-
saveQueueRef.current = saveQueueRef.current.then(async () => {
|
|
37
|
-
if (!active || revision !== resetRevisionRef.current) return;
|
|
38
|
-
const valuesAtSaveTime = snapshot(form.state.values);
|
|
39
|
-
const previousSavedValues = savedSnapshotRef.current;
|
|
40
|
-
const changedFields = getChangedAutosaveFields(valuesAtSaveTime, previousSavedValues);
|
|
41
|
-
if (changedFields.length === 0) return;
|
|
42
|
-
let transformedValues;
|
|
43
|
-
try {
|
|
44
|
-
transformedValues = form.parseValues(valuesAtSaveTime);
|
|
45
|
-
} catch {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const payload = getAutosavePatch(transformedValues, changedFields);
|
|
49
|
-
if (ObjectUtils.isEmpty(payload)) return;
|
|
50
|
-
acknowledgedFieldsRef.current.clear();
|
|
51
|
-
try {
|
|
52
|
-
await latestSaveRef.current.onSave(payload);
|
|
53
|
-
if (!active || revision !== resetRevisionRef.current) return;
|
|
54
|
-
for (const [path, value] of getChangedAutosaveFields(valuesAtSaveTime, previousSavedValues)) {
|
|
55
|
-
if (acknowledgedFieldsRef.current.has(path) && isEqual(acknowledgedFieldsRef.current.get(path), value)) continue;
|
|
56
|
-
savedSnapshotRef.current = setBy(savedSnapshotRef.current, path, value);
|
|
57
|
-
}
|
|
58
|
-
for (const name of Object.keys(form.state.fieldMeta)) {
|
|
59
|
-
const submittedValue = getBy(valuesAtSaveTime, name);
|
|
60
|
-
if (!isEqual(getBy(previousSavedValues, name), submittedValue) && isEqual(form.getFieldValue(name), submittedValue)) form.setFieldMeta(name, (meta) => ({
|
|
61
|
-
...meta,
|
|
62
|
-
isDirty: false
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
latestSaveRef.current.onSaveSuccess?.();
|
|
66
|
-
} catch {}
|
|
67
|
-
});
|
|
68
|
-
}, delay);
|
|
69
|
-
};
|
|
70
|
-
const unsubscribeStore = trigger === "change" ? form.store.subscribe(() => {
|
|
71
|
-
if (!isEqual(form.state.values, savedSnapshotRef.current)) queueSave();
|
|
72
|
-
}) : void 0;
|
|
73
|
-
const unsubscribeBlur = trigger === "blur" ? form.subscribeBlur(queueSave) : void 0;
|
|
74
|
-
const syncReset = (refresh) => {
|
|
75
|
-
if (refresh) {
|
|
76
|
-
for (const [path_0, value_0] of refresh.acknowledged) acknowledgedFieldsRef.current.set(path_0, value_0);
|
|
77
|
-
savedSnapshotRef.current = snapshot(refresh.baseline);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
resetRevisionRef.current = getFormResetVersion(form);
|
|
81
|
-
acknowledgedFieldsRef.current.clear();
|
|
82
|
-
clearPending();
|
|
83
|
-
savedSnapshotRef.current = snapshot(form.state.values);
|
|
84
|
-
};
|
|
85
|
-
if (resetRevisionRef.current !== getFormResetVersion(form)) syncReset();
|
|
86
|
-
const unsubscribeReset = subscribeFormReset(form, syncReset);
|
|
87
|
-
return () => {
|
|
88
|
-
active = false;
|
|
89
|
-
clearPending();
|
|
90
|
-
unsubscribeStore?.unsubscribe();
|
|
91
|
-
unsubscribeBlur?.();
|
|
92
|
-
unsubscribeReset();
|
|
93
|
-
};
|
|
94
|
-
}, [
|
|
95
|
-
delay,
|
|
96
|
-
enabled,
|
|
97
|
-
form,
|
|
98
|
-
trigger
|
|
99
|
-
]);
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region src/hooks/useFormAutosave.ts
|
|
103
|
-
const getResetTimeoutErrorMessage = (resetTimeout) => `Form Reset Timeout (${resetTimeout}ms) - Action Required
|
|
104
|
-
Problem: Form values weren't reset after submission.
|
|
105
|
-
|
|
106
|
-
Likely causes:
|
|
107
|
-
• Missing variables in reset dependency array
|
|
108
|
-
• Reset dependencies not updating after form save
|
|
109
|
-
• Async operations blocking timely reset
|
|
110
|
-
|
|
111
|
-
Solutions:
|
|
112
|
-
1. Ensure reset dependencies include all relevant state variables
|
|
113
|
-
2. Confirm your submission handler updates state properly (check query invalidation)
|
|
114
|
-
3. For slower operations, consider increasing the timeout threshold`;
|
|
115
|
-
/** Autosave schemas must produce objects preserving every raw field path, including optional fields. */
|
|
116
|
-
function useFormAutosave({ autosaveDelay, enableAutosave, autosaveOn = "change", normalizeAutosaveData, onAutosave, getResetValues, resetDeps, resetTimeout = 5e3, ...props }) {
|
|
117
|
-
const initialValues = getResetValues();
|
|
118
|
-
const form = useForm$1(...[{
|
|
119
|
-
...props,
|
|
120
|
-
defaultValues: typeof initialValues === "function" ? void 0 : initialValues
|
|
121
|
-
}]);
|
|
122
|
-
const serverBaselineRef = useRef(structuredClone(form.state.values));
|
|
123
|
-
const pendingRefreshesRef = useRef([]);
|
|
124
|
-
const resetFormValuesTimeoutRef = useRef(void 0);
|
|
125
|
-
useEffect(() => {
|
|
126
|
-
const clearRefreshes = () => {
|
|
127
|
-
pendingRefreshesRef.current = [];
|
|
128
|
-
if (resetFormValuesTimeoutRef.current) clearTimeout(resetFormValuesTimeoutRef.current);
|
|
129
|
-
};
|
|
130
|
-
const unsubscribe = subscribeFormReset(form, (refresh) => {
|
|
131
|
-
if (!refresh) {
|
|
132
|
-
serverBaselineRef.current = structuredClone(form.state.values);
|
|
133
|
-
clearRefreshes();
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
return () => {
|
|
137
|
-
unsubscribe();
|
|
138
|
-
clearRefreshes();
|
|
139
|
-
};
|
|
140
|
-
}, [form]);
|
|
141
|
-
useEffect(() => {
|
|
142
|
-
const resetValues = getResetValues();
|
|
143
|
-
if (resetValues === void 0) return;
|
|
144
|
-
let active = true;
|
|
145
|
-
const revision = getFormResetVersion(form);
|
|
146
|
-
const resetFormValues = async () => {
|
|
147
|
-
let values;
|
|
148
|
-
if (ObjectUtils.isFunction(resetValues)) values = await resetValues();
|
|
149
|
-
else values = resetValues;
|
|
150
|
-
if (!active || revision !== getFormResetVersion(form)) return;
|
|
151
|
-
const refreshedIndex = Math.max(0, pendingRefreshesRef.current.findLastIndex((pending) => pending.completed));
|
|
152
|
-
const submitted = pendingRefreshesRef.current[refreshedIndex];
|
|
153
|
-
pendingRefreshesRef.current.splice(0, refreshedIndex + 1);
|
|
154
|
-
const edits = getChangedAutosaveFields(form.state.values, submitted?.values ?? serverBaselineRef.current);
|
|
155
|
-
serverBaselineRef.current = structuredClone(values);
|
|
156
|
-
for (const pending_0 of pendingRefreshesRef.current) {
|
|
157
|
-
pending_0.values = structuredClone(values);
|
|
158
|
-
for (const [path, value] of pending_0.fields) pending_0.values = setBy(pending_0.values, path, value);
|
|
159
|
-
}
|
|
160
|
-
const applyRefresh = () => {
|
|
161
|
-
form.reset(values);
|
|
162
|
-
for (const [path_0, value_0] of edits) {
|
|
163
|
-
const name = path_0;
|
|
164
|
-
form.setFieldValue(name, value_0);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
refreshAutosaveForm(form, values, applyRefresh, submitted?.fields);
|
|
168
|
-
if (pendingRefreshesRef.current.length === 0 && resetFormValuesTimeoutRef.current) clearTimeout(resetFormValuesTimeoutRef.current);
|
|
169
|
-
};
|
|
170
|
-
resetFormValues().catch((error) => logger.warn("Unable to refresh autosave form", error));
|
|
171
|
-
return () => {
|
|
172
|
-
active = false;
|
|
173
|
-
};
|
|
174
|
-
}, [...resetDeps]);
|
|
175
|
-
const prepareForSaveReset = () => {
|
|
176
|
-
if (resetFormValuesTimeoutRef.current) clearTimeout(resetFormValuesTimeoutRef.current);
|
|
177
|
-
resetFormValuesTimeoutRef.current = setTimeout(() => {
|
|
178
|
-
if (pendingRefreshesRef.current.length > 0) logger.warn(getResetTimeoutErrorMessage(resetTimeout));
|
|
179
|
-
}, resetTimeout);
|
|
180
|
-
};
|
|
181
|
-
useAutosave({
|
|
182
|
-
form,
|
|
183
|
-
delay: autosaveDelay,
|
|
184
|
-
enabled: enableAutosave,
|
|
185
|
-
trigger: autosaveOn,
|
|
186
|
-
onSave: useCallback(async (data) => {
|
|
187
|
-
const normalizedData = normalizeAutosaveData ? normalizeAutosaveData(data) : data;
|
|
188
|
-
if (!normalizedData || ObjectUtils.isEmpty(normalizedData)) return;
|
|
189
|
-
const values_0 = structuredClone(form.state.values);
|
|
190
|
-
const submitted_0 = {
|
|
191
|
-
values: values_0,
|
|
192
|
-
fields: getSubmittedAutosaveFields(normalizedData, values_0),
|
|
193
|
-
completed: false
|
|
194
|
-
};
|
|
195
|
-
pendingRefreshesRef.current.push(submitted_0);
|
|
196
|
-
prepareForSaveReset();
|
|
197
|
-
try {
|
|
198
|
-
const response = await onAutosave(normalizedData);
|
|
199
|
-
submitted_0.completed = true;
|
|
200
|
-
pendingRefreshesRef.current = pendingRefreshesRef.current.filter((pending_2) => !pending_2.completed || pending_2 === submitted_0);
|
|
201
|
-
return response;
|
|
202
|
-
} catch (error_0) {
|
|
203
|
-
pendingRefreshesRef.current = pendingRefreshesRef.current.filter((pending_1) => pending_1 !== submitted_0);
|
|
204
|
-
if (pendingRefreshesRef.current.length === 0 && resetFormValuesTimeoutRef.current) clearTimeout(resetFormValuesTimeoutRef.current);
|
|
205
|
-
throw error_0;
|
|
206
|
-
}
|
|
207
|
-
}, [
|
|
208
|
-
normalizeAutosaveData,
|
|
209
|
-
onAutosave,
|
|
210
|
-
resetTimeout
|
|
211
|
-
])
|
|
212
|
-
});
|
|
213
|
-
return form;
|
|
214
|
-
}
|
|
215
|
-
//#endregion
|
|
216
|
-
export { useAutosave as n, useFormAutosave as t };
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { n as TypographyProps } from "./Typography-DJojwiXV.js";
|
|
2
|
-
import { i as TableVariant, r as TableRowVariantProps, t as TableRowDetails } from "./TableRowDetails-D8HFTghI.js";
|
|
3
|
-
import { CSSProperties, ComponentType, Dispatch, FC, KeyboardEvent, ReactNode, SetStateAction } from "react";
|
|
4
|
-
import { ColumnDef, ColumnOrderState, ColumnPinningState, ColumnSizingState, ColumnVisibilityState, ExpandedState, OnChangeFn, Row, RowData, RowSelectionState, SortingState, StockFeatures, Table } from "@tanstack/react-table";
|
|
5
|
-
import { DragEndEvent, UniqueIdentifier } from "@dnd-kit/core";
|
|
6
|
-
import { TFunction } from "i18next";
|
|
7
|
-
//#region src/components/table/CellText.d.ts
|
|
8
|
-
interface CellTextProps extends Partial<Pick<TypographyProps, "size">> {
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: CSSProperties;
|
|
12
|
-
}
|
|
13
|
-
declare const CellText: FC<CellTextProps>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/components/table/ColumnConfig.d.ts
|
|
16
|
-
type ColumnDef$3<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
17
|
-
type VisibilityState$2 = ColumnVisibilityState;
|
|
18
|
-
interface ColumnConfigModalProps<TData extends RowData, TValue> {
|
|
19
|
-
isOpen: boolean;
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
configColumns: ColumnDef$3<TData, TValue>[];
|
|
22
|
-
visibleColumns: VisibilityState$2;
|
|
23
|
-
onVisibilityChange: (visibleColumns: VisibilityState$2) => void;
|
|
24
|
-
onOrderChange: (columnOrder: ColumnOrderState) => void;
|
|
25
|
-
}
|
|
26
|
-
declare function ColumnConfigModal<TData extends RowData, TValue>({ isOpen, onClose, configColumns, visibleColumns, onVisibilityChange, onOrderChange }: ColumnConfigModalProps<TData, TValue>): import("react").JSX.Element | null;
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/components/table/HeaderText.d.ts
|
|
29
|
-
interface HeaderTextProps extends Partial<Pick<TypographyProps, "size">> {
|
|
30
|
-
children: ReactNode;
|
|
31
|
-
className?: string;
|
|
32
|
-
style?: CSSProperties;
|
|
33
|
-
}
|
|
34
|
-
declare const HeaderText: FC<HeaderTextProps>;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/components/table/Table.d.ts
|
|
37
|
-
type ColumnDef$2<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
38
|
-
type ReactTable<TData extends RowData> = Table<StockFeatures, TData>;
|
|
39
|
-
type Row$1<TData extends RowData> = Row<StockFeatures, TData>;
|
|
40
|
-
type VisibilityState$1 = ColumnVisibilityState;
|
|
41
|
-
type BulkSelectionActionsComponent<T extends RowData> = ComponentType<{
|
|
42
|
-
table: ReactTable<T>;
|
|
43
|
-
}>;
|
|
44
|
-
interface TableWrapperProps<T extends RowData> extends Omit<TableProps<T>, "columns"> {}
|
|
45
|
-
interface TableProps<T extends RowData> extends TableRowVariantProps {
|
|
46
|
-
items: T[];
|
|
47
|
-
columns: ((t: TFunction) => ColumnDef$2<T>[]) | ColumnDef$2<T>[];
|
|
48
|
-
/** Lines between columns. Defaults to on, except for the `horizontals`, `zebra` and `striped-columns` variants. */
|
|
49
|
-
showCellBorder?: boolean;
|
|
50
|
-
onRowClick?: (row: T) => void;
|
|
51
|
-
onDoubleClick?: (row: T) => void;
|
|
52
|
-
className?: string;
|
|
53
|
-
/** Border style. Defaults to `table.variant` from `UIConfig`. */
|
|
54
|
-
variant?: TableVariant;
|
|
55
|
-
/** Class for the scroll container around the table. */
|
|
56
|
-
containerClassName?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Max height of the scroll container. When set, rows scroll inside the table and the header stays pinned.
|
|
59
|
-
* Without it the table grows with its rows; wide tables always scroll horizontally.
|
|
60
|
-
*/
|
|
61
|
-
maxHeight?: CSSProperties["maxHeight"];
|
|
62
|
-
/**
|
|
63
|
-
* What scrolls when the table is larger than its space.
|
|
64
|
-
* - `table` (default): the table scrolls inside its own container.
|
|
65
|
-
* - `page`: the page scrolls; the header pins to the top of the screen. `maxHeight` is ignored.
|
|
66
|
-
*/
|
|
67
|
-
scroll?: "table" | "page";
|
|
68
|
-
sorting?: SortingState;
|
|
69
|
-
setSorting?: Dispatch<SetStateAction<SortingState>>;
|
|
70
|
-
columnOrder?: ColumnOrderState;
|
|
71
|
-
setColumnOrder?: Dispatch<SetStateAction<ColumnOrderState>>;
|
|
72
|
-
columnVisibility?: VisibilityState$1;
|
|
73
|
-
setColumnVisibility?: Dispatch<SetStateAction<VisibilityState$1>>;
|
|
74
|
-
/** Shows a pin button in each header. Pinned columns stay in view and move to the start of the table. */
|
|
75
|
-
enableColumnPinning?: boolean;
|
|
76
|
-
/** Pinned column ids. Without it the table keeps pinning in its own state. */
|
|
77
|
-
columnPinning?: ColumnPinningState;
|
|
78
|
-
setColumnPinning?: Dispatch<SetStateAction<ColumnPinningState>>;
|
|
79
|
-
/**
|
|
80
|
-
* Shows a resize handle on each header's edge (drag it, or focus it and use the arrow keys).
|
|
81
|
-
* Columns keep their natural widths until the first resize. Limit a column with `minSize` / `maxSize`.
|
|
82
|
-
*/
|
|
83
|
-
enableColumnResizing?: boolean;
|
|
84
|
-
/** Column widths in pixels. Without it the table keeps the widths in its own state. */
|
|
85
|
-
columnSizing?: ColumnSizingState;
|
|
86
|
-
setColumnSizing?: Dispatch<SetStateAction<ColumnSizingState>>;
|
|
87
|
-
/**
|
|
88
|
-
* Row details, opened by clicking a row (unless `onRowClick` is set). `mode` defaults to `table.rowDetailsMode` from
|
|
89
|
-
* `UIConfig`: `drawer` slides in from the side, `split` opens beside the table, `expand` opens under the row.
|
|
90
|
-
* In `drawer` and `split` mode Enter on a cell opens them too; `expand` adds a chevron column.
|
|
91
|
-
* Pass `getRowId` so open rows survive sorting and paging. Not available with `enableDragDrop`.
|
|
92
|
-
*/
|
|
93
|
-
rowDetails?: TableRowDetails<T>;
|
|
94
|
-
/** Open rows by id (one at a time in `drawer` and `split` mode). Without it the table keeps them in its own state. */
|
|
95
|
-
expanded?: ExpandedState;
|
|
96
|
-
setExpanded?: Dispatch<SetStateAction<ExpandedState>>;
|
|
97
|
-
bulkSelectionActions?: BulkSelectionActionsComponent<T>;
|
|
98
|
-
enableDragDrop?: boolean;
|
|
99
|
-
onDragEnd?: (event: DragEndEvent) => void;
|
|
100
|
-
onReorder?: (reorderedItems: T[]) => void;
|
|
101
|
-
getRowId?: (row: T) => UniqueIdentifier;
|
|
102
|
-
enableRowSelection?: boolean | ((row: Row$1<T>) => boolean);
|
|
103
|
-
enableMultiRowSelection?: boolean | ((row: Row$1<T>) => boolean);
|
|
104
|
-
/**
|
|
105
|
-
* Initial selection when used alone. Later changes to this default are ignored.
|
|
106
|
-
* When paired with `onRowSelectionChange`, this is the current controlled selection (despite the legacy name).
|
|
107
|
-
*/
|
|
108
|
-
defaultSelectedRows?: RowSelectionState;
|
|
109
|
-
/**
|
|
110
|
-
* Receives TanStack selection values or updater functions.
|
|
111
|
-
* Used alone, observes internally managed selection; paired with `defaultSelectedRows`, controls selection externally.
|
|
112
|
-
*/
|
|
113
|
-
onRowSelectionChange?: OnChangeFn<RowSelectionState>;
|
|
114
|
-
}
|
|
115
|
-
declare const Table$1: <T extends RowData>({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, variant: variantProp, containerClassName, maxHeight, scroll, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, enableColumnPinning, columnPinning: columnPinningProp, setColumnPinning: setColumnPinningProp, enableColumnResizing, columnSizing: columnSizingProp, setColumnSizing: setColumnSizingProp, rowDetails, expanded: expandedProp, setExpanded: setExpandedProp, bulkSelectionActions: ActionHeader, enableDragDrop, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection, defaultSelectedRows, onRowSelectionChange, ...props }: TableProps<T>) => import("react").JSX.Element;
|
|
116
|
-
//#endregion
|
|
117
|
-
//#region src/components/table/InfiniteTable.d.ts
|
|
118
|
-
interface InfiniteTableWrapperProps<T extends RowData> extends Omit<InfiniteTableProps<T>, "columns"> {}
|
|
119
|
-
interface InfiniteTableProps<T extends RowData> extends TableProps<T> {
|
|
120
|
-
hasNextPage: boolean;
|
|
121
|
-
isFetchingNextPage?: boolean;
|
|
122
|
-
fetchNextPage: () => void;
|
|
123
|
-
}
|
|
124
|
-
declare const InfiniteTable: <T extends RowData>({ hasNextPage, isFetchingNextPage, fetchNextPage, ...rest }: InfiniteTableProps<T>) => import("react").JSX.Element;
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/hooks/useSorting.d.ts
|
|
127
|
-
declare function useSorting(defaultSorting?: SortingState, prefix?: string): {
|
|
128
|
-
sorting: SortingState;
|
|
129
|
-
setSorting: import("react").Dispatch<import("react").SetStateAction<SortingState>>;
|
|
130
|
-
order: string;
|
|
131
|
-
};
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/hooks/useTableColumnConfig.d.ts
|
|
134
|
-
type ColumnDef$1<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
135
|
-
type VisibilityState = ColumnVisibilityState;
|
|
136
|
-
interface UseTableColumnConfigOptions {
|
|
137
|
-
visibleColumns?: VisibilityState;
|
|
138
|
-
columnOrder?: ColumnOrderState;
|
|
139
|
-
onVisibilityChange?: (value: VisibilityState) => void;
|
|
140
|
-
onOrderChange?: (value: ColumnOrderState) => void;
|
|
141
|
-
}
|
|
142
|
-
declare function useTableColumnConfig<TData extends RowData, TValue>(defaultColumns: ColumnDef$1<TData, TValue>[], options?: UseTableColumnConfigOptions): {
|
|
143
|
-
configColumns: ColumnDef$1<TData, TValue>[];
|
|
144
|
-
columns: ColumnDef$1<TData, TValue>[];
|
|
145
|
-
visibleColumns: ColumnVisibilityState;
|
|
146
|
-
columnOrder: ColumnOrderState;
|
|
147
|
-
onVisibilityChange: (value: VisibilityState) => void;
|
|
148
|
-
onOrderChange: (value: ColumnOrderState) => void;
|
|
149
|
-
};
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/hooks/useTableNav.d.ts
|
|
152
|
-
declare const Selectors: {
|
|
153
|
-
readonly Cell: '[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],td,th';
|
|
154
|
-
readonly Row: '[role="row"],tr';
|
|
155
|
-
readonly RowGroup: '[role="rowgroup"],thead,tbody,tfoot';
|
|
156
|
-
/** Selector from here: https://github.com/Shopify/polaris/blob/main/polaris-react/src/utilities/focus.ts#L10 */
|
|
157
|
-
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]';
|
|
158
|
-
};
|
|
159
|
-
type Config = {
|
|
160
|
-
debug?: boolean;
|
|
161
|
-
selectors?: Partial<Record<keyof typeof Selectors, string>>;
|
|
162
|
-
/** How many rows to move when pressing page up/down - Default goes to first/last row */
|
|
163
|
-
pageUpDown?: number;
|
|
164
|
-
} | undefined;
|
|
165
|
-
declare class DataGridNav {
|
|
166
|
-
private selectors;
|
|
167
|
-
readonly pageUpDown: number | undefined;
|
|
168
|
-
private keys;
|
|
169
|
-
private disabled;
|
|
170
|
-
readonly debug: boolean;
|
|
171
|
-
private activeCell;
|
|
172
|
-
constructor();
|
|
173
|
-
constructor(config: Config);
|
|
174
|
-
private debugLog;
|
|
175
|
-
disable(): void;
|
|
176
|
-
enable(): void;
|
|
177
|
-
private isFocusable;
|
|
178
|
-
getActiveCell(): HTMLElement | null;
|
|
179
|
-
tableKeyUp(): void;
|
|
180
|
-
tableKeyDown(e: KeyboardEvent): void;
|
|
181
|
-
cellNavigation(e: KeyboardEvent): void;
|
|
182
|
-
gridNavigation(e: KeyboardEvent): void;
|
|
183
|
-
private getRows;
|
|
184
|
-
private pageCellNavigation;
|
|
185
|
-
private verticalCellNavigation;
|
|
186
|
-
private focusOnFirstCell;
|
|
187
|
-
private getColumnIndex;
|
|
188
|
-
}
|
|
189
|
-
declare function useTableNav(options?: Config): {
|
|
190
|
-
listeners: {
|
|
191
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
192
|
-
onKeyUp: () => void;
|
|
193
|
-
};
|
|
194
|
-
tableNav: DataGridNav;
|
|
195
|
-
};
|
|
196
|
-
//#endregion
|
|
197
|
-
export { InfiniteTableProps as a, TableProps as c, HeaderTextProps as d, ColumnConfigModal as f, CellTextProps as h, InfiniteTable as i, TableWrapperProps as l, CellText as m, useTableColumnConfig as n, InfiniteTableWrapperProps as o, ColumnConfigModalProps as p, useSorting as r, Table$1 as s, useTableNav as t, HeaderText as u };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { r as ToastProps } from "./Toast-D9pdadZ4.js";
|
|
2
|
-
import { Id, ToastOptions, ToastPosition } from "react-toastify";
|
|
3
|
-
//#region src/components/status/Toast/useToast.d.ts
|
|
4
|
-
interface ToastParams extends Omit<ToastProps, "color"> {
|
|
5
|
-
position?: ToastPosition;
|
|
6
|
-
}
|
|
7
|
-
type ToastOptions$1 = Omit<ToastOptions, "position" | "data">;
|
|
8
|
-
declare const useToast: () => {
|
|
9
|
-
successToast: (params: ToastParams, options?: ToastOptions$1) => Id;
|
|
10
|
-
errorToast: (params: ToastParams, options?: ToastOptions$1) => Id;
|
|
11
|
-
warningToast: (params: ToastParams, options?: ToastOptions$1) => Id;
|
|
12
|
-
neutralToast: (params: ToastParams, options?: ToastOptions$1) => Id;
|
|
13
|
-
closeToast: (id: Id) => void;
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
16
|
-
export { ToastParams as n, useToast as r, ToastOptions$1 as t };
|