@keboola/design 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +6 -5
- package/CHANGELOG.md +94 -0
- package/COMPONENT-API.md +62 -61
- package/dist/{AIKit-CaAW4GLx.js → AIKit-Cf5plya2.js} +381 -224
- package/dist/AIKit-Cf5plya2.js.map +1 -0
- package/dist/{Alert-Chz6KZ7e.js → Alert-DziS8n1H.js} +12 -19
- package/dist/{Alert-Chz6KZ7e.js.map → Alert-DziS8n1H.js.map} +1 -1
- package/dist/{AlertModal-D4AtpvLS.js → AlertModal-De04fFoy.js} +16 -26
- package/dist/AlertModal-De04fFoy.js.map +1 -0
- package/dist/{AppShell-C8V1KRr_.js → AppShell-BUa3U7-e.js} +6 -9
- package/dist/{AppShell-C8V1KRr_.js.map → AppShell-BUa3U7-e.js.map} +1 -1
- package/dist/{AutoSaveTextarea-BbMhC5Aq.js → AutoSaveTextarea-CXHOQSun.js} +4 -5
- package/dist/{AutoSaveTextarea-BbMhC5Aq.js.map → AutoSaveTextarea-CXHOQSun.js.map} +1 -1
- package/dist/{Badge-5GHIsgRS.js → Badge-CFRhducL.js} +18 -23
- package/dist/Badge-CFRhducL.js.map +1 -0
- package/dist/{BrandEditor-CTGtQUFZ.js → BrandEditor-hiLBX7az.js} +16 -23
- package/dist/{BrandEditor-CTGtQUFZ.js.map → BrandEditor-hiLBX7az.js.map} +1 -1
- package/dist/{BrandLogo-DkESE19K.js → BrandLogo-Dn7hhp2c.js} +4 -5
- package/dist/{BrandLogo-DkESE19K.js.map → BrandLogo-Dn7hhp2c.js.map} +1 -1
- package/dist/{Breadcrumb-B2YSNON4.js → Breadcrumb-uGFEIjFF.js} +17 -28
- package/dist/{Breadcrumb-B2YSNON4.js.map → Breadcrumb-uGFEIjFF.js.map} +1 -1
- package/dist/{Button-BNkyYU8u.js → Button-DbvGzEDb.js} +24 -20
- package/dist/Button-DbvGzEDb.js.map +1 -0
- package/dist/{Calendar-BnKi1kPu.js → Calendar-lJBTETbk.js} +752 -905
- package/dist/Calendar-lJBTETbk.js.map +1 -0
- package/dist/{Card-DxjGiqH8.js → Card-VIPfOVW5.js} +8 -14
- package/dist/{Card-DxjGiqH8.js.map → Card-VIPfOVW5.js.map} +1 -1
- package/dist/{Checkbox-CHDDJyAA.js → Checkbox-B2jLlyaO.js} +6 -8
- package/dist/{Checkbox-CHDDJyAA.js.map → Checkbox-B2jLlyaO.js.map} +1 -1
- package/dist/{Clipboard-DlwVZS1P.js → Clipboard-fAkDdpEu.js} +4 -5
- package/dist/{Clipboard-DlwVZS1P.js.map → Clipboard-fAkDdpEu.js.map} +1 -1
- package/dist/{ClipboardButton-B1Hr_n_Z.js → ClipboardButton-71Ugbl8c.js} +6 -8
- package/dist/{ClipboardButton-B1Hr_n_Z.js.map → ClipboardButton-71Ugbl8c.js.map} +1 -1
- package/dist/{CodeEditor-DVSPdfdo.js → CodeEditor-D_b-ZCng.js} +19 -31
- package/dist/{CodeEditor-DVSPdfdo.js.map → CodeEditor-D_b-ZCng.js.map} +1 -1
- package/dist/{Collapsible-DD4xTL75.js → Collapsible-zsXk4Vpp.js} +5 -8
- package/dist/{Collapsible-DD4xTL75.js.map → Collapsible-zsXk4Vpp.js.map} +1 -1
- package/dist/{ColorInput-B_eZIu39.js → ColorInput-Cjr1jkvy.js} +9 -12
- package/dist/{ColorInput-B_eZIu39.js.map → ColorInput-Cjr1jkvy.js.map} +1 -1
- package/dist/{ColorModeSwitch-B6UEzG0H.js → ColorModeSwitch-CuPYnJ2V.js} +5 -6
- package/dist/{ColorModeSwitch-B6UEzG0H.js.map → ColorModeSwitch-CuPYnJ2V.js.map} +1 -1
- package/dist/{Combobox-CaKqgstG.js → Combobox-DYjvYgl3.js} +38 -67
- package/dist/Combobox-DYjvYgl3.js.map +1 -0
- package/dist/{Command-DhXmqFLT.js → Command-BcTb6GsR.js} +14 -24
- package/dist/{Command-DhXmqFLT.js.map → Command-BcTb6GsR.js.map} +1 -1
- package/dist/{CopyField-D0Pg4Z0R.js → CopyField-CnwAvQz9.js} +16 -28
- package/dist/{CopyField-D0Pg4Z0R.js.map → CopyField-CnwAvQz9.js.map} +1 -1
- package/dist/{DateInput-BgbMDJkm.js → DateInput-DJNX7Vdx.js} +8 -10
- package/dist/{DateInput-BgbMDJkm.js.map → DateInput-DJNX7Vdx.js.map} +1 -1
- package/dist/{DatePicker-BXpDRo-R.js → DatePicker-CI59gF3S.js} +4 -5
- package/dist/{DatePicker-BXpDRo-R.js.map → DatePicker-CI59gF3S.js.map} +1 -1
- package/dist/{DateRangeInput-BW0-_jV0.js → DateRangeInput-B3g8cyS0.js} +8 -10
- package/dist/{DateRangeInput-BW0-_jV0.js.map → DateRangeInput-B3g8cyS0.js.map} +1 -1
- package/dist/{DateRangePicker-C4-DoWac.js → DateRangePicker-48yOB2qV.js} +9 -10
- package/dist/{DateRangePicker-C4-DoWac.js.map → DateRangePicker-48yOB2qV.js.map} +1 -1
- package/dist/{DiffView-Dy4z-n-1.js → DiffView-DITZdVbh.js} +7 -12
- package/dist/{DiffView-Dy4z-n-1.js.map → DiffView-DITZdVbh.js.map} +1 -1
- package/dist/{DropdownMenu-CcVbZ_5u.js → DropdownMenu-Ba9atqDa.js} +21 -37
- package/dist/DropdownMenu-Ba9atqDa.js.map +1 -0
- package/dist/{FieldBox-BrxLkY9C.js → FieldBox-DdSdJ3ZN.js} +6 -10
- package/dist/{FieldBox-BrxLkY9C.js.map → FieldBox-DdSdJ3ZN.js.map} +1 -1
- package/dist/{FieldItem-BHUqgSO1.js → FieldItem-D7eCMfMB.js} +6 -8
- package/dist/{FieldItem-BHUqgSO1.js.map → FieldItem-D7eCMfMB.js.map} +1 -1
- package/dist/{FieldItem-CPN1xjN5.d.ts → FieldItem-fqm3CNR8.d.ts} +7 -6
- package/dist/{FileUpload-BYFONpEl.js → FileUpload-DskvxhAr.js} +25 -45
- package/dist/{FileUpload-BYFONpEl.js.map → FileUpload-DskvxhAr.js.map} +1 -1
- package/dist/{Form-CAofWyMI.js → Form-BUNW7nlt.js} +24 -38
- package/dist/{Form-CAofWyMI.js.map → Form-BUNW7nlt.js.map} +1 -1
- package/dist/{FormGroup-V5kIgQRN.js → FormGroup-QJB21LKp.js} +12 -20
- package/dist/{FormGroup-V5kIgQRN.js.map → FormGroup-QJB21LKp.js.map} +1 -1
- package/dist/{FullScreenModal-DAvvlGOz.js → FullScreenModal-RzY5XxiG.js} +8 -12
- package/dist/{FullScreenModal-DAvvlGOz.js.map → FullScreenModal-RzY5XxiG.js.map} +1 -1
- package/dist/HoverCard-OGWKRXJ7.js +24 -0
- package/dist/HoverCard-OGWKRXJ7.js.map +1 -0
- package/dist/{InlineEdit-D4P0SvCB.js → InlineEdit-CXL0ZslO.js} +7 -8
- package/dist/{InlineEdit-D4P0SvCB.js.map → InlineEdit-CXL0ZslO.js.map} +1 -1
- package/dist/{InputGroup-CZv_7QlM.js → InputGroup-BWeanEo7.js} +9 -15
- package/dist/{InputGroup-CZv_7QlM.js.map → InputGroup-BWeanEo7.js.map} +1 -1
- package/dist/{Kbd-CflKthfu.js → Kbd-BprYCICe.js} +8 -13
- package/dist/{Kbd-CflKthfu.js.map → Kbd-BprYCICe.js.map} +1 -1
- package/dist/{MarkedText-DlmlJO0u.js → MarkedText-BrganZ_V.js} +4 -6
- package/dist/{MarkedText-DlmlJO0u.js.map → MarkedText-BrganZ_V.js.map} +1 -1
- package/dist/{MermaidDiagram-Te-5gOCU.js → MermaidDiagram-E3azndPk.js} +9 -11
- package/dist/{MermaidDiagram-Te-5gOCU.js.map → MermaidDiagram-E3azndPk.js.map} +1 -1
- package/dist/{Modal-CbUz-5YH.js → Modal-Cf_kPEBW.js} +14 -22
- package/dist/Modal-Cf_kPEBW.js.map +1 -0
- package/dist/{ModalTitle-cy0Ht9VY.js → ModalTitle-7vgpfc6B.js} +6 -9
- package/dist/ModalTitle-7vgpfc6B.js.map +1 -0
- package/dist/{MultiActionButtonGroup-Dzig87s1.js → MultiActionButtonGroup-8WQwL4UQ.js} +6 -8
- package/dist/{MultiActionButtonGroup-Dzig87s1.js.map → MultiActionButtonGroup-8WQwL4UQ.js.map} +1 -1
- package/dist/{Navbar-DHUS7XiU.js → Navbar-CRjxVboE.js} +13 -22
- package/dist/{Navbar-DHUS7XiU.js.map → Navbar-CRjxVboE.js.map} +1 -1
- package/dist/{OtpInput-CY8yCaJk.js → OtpInput-C5plPzGU.js} +7 -11
- package/dist/{OtpInput-CY8yCaJk.js.map → OtpInput-C5plPzGU.js.map} +1 -1
- package/dist/{PageHeader-CL1A6jFM.js → PageHeader-DosMyar2.js} +6 -10
- package/dist/{PageHeader-CL1A6jFM.js.map → PageHeader-DosMyar2.js.map} +1 -1
- package/dist/{PageLayout-C9aXTpqV.js → PageLayout-LcvJccOW.js} +5 -8
- package/dist/{PageLayout-C9aXTpqV.js.map → PageLayout-LcvJccOW.js.map} +1 -1
- package/dist/{PageToolbar-DJ5tdYla.js → PageToolbar-By2HznxO.js} +8 -10
- package/dist/{PageToolbar-DJ5tdYla.js.map → PageToolbar-By2HznxO.js.map} +1 -1
- package/dist/{Pagination-D27x5KmH.js → Pagination-DrXTrvfD.js} +11 -18
- package/dist/{Pagination-D27x5KmH.js.map → Pagination-DrXTrvfD.js.map} +1 -1
- package/dist/{Popconfirm-DwLCYNaF.js → Popconfirm-BJuDOHdv.js} +46 -25
- package/dist/Popconfirm-BJuDOHdv.js.map +1 -0
- package/dist/{Popover-DtUDwUVO.js → Popover-DhOPlWgF.js} +5 -7
- package/dist/Popover-DhOPlWgF.js.map +1 -0
- package/dist/{RadioGroup-B0TwHjBb.js → RadioGroup-B9oC8P15.js} +12 -18
- package/dist/{RadioGroup-B0TwHjBb.js.map → RadioGroup-B9oC8P15.js.map} +1 -1
- package/dist/{Resizable-D8zs0kcq.js → Resizable-Co-L3qg7.js} +4 -6
- package/dist/{Resizable-D8zs0kcq.js.map → Resizable-Co-L3qg7.js.map} +1 -1
- package/dist/{Search-vyZwGKMU.js → Search-OgaNjqQM.js} +26 -21
- package/dist/Search-OgaNjqQM.js.map +1 -0
- package/dist/{SearchInput-DyYXyw3u.js → SearchInput-eLS-uvOn.js} +18 -29
- package/dist/SearchInput-eLS-uvOn.js.map +1 -0
- package/dist/{SectionNav-tLK3iF6c.js → SectionNav-L81iJBo3.js} +11 -14
- package/dist/{SectionNav-tLK3iF6c.js.map → SectionNav-L81iJBo3.js.map} +1 -1
- package/dist/{Select-B22hB_-w.js → Select-DRdkdzBp.js} +29 -26
- package/dist/Select-DRdkdzBp.js.map +1 -0
- package/dist/{Sheet-0TWKTqid.js → Sheet-DVb4XoJ5.js} +13 -20
- package/dist/Sheet-DVb4XoJ5.js.map +1 -0
- package/dist/{Sidebar-C5hdANBU.js → Sidebar-DYvodJWN.js} +43 -75
- package/dist/{Sidebar-C5hdANBU.js.map → Sidebar-DYvodJWN.js.map} +1 -1
- package/dist/{Slider-DrcsM8_G.js → Slider-B9IskDxf.js} +8 -12
- package/dist/{Slider-DrcsM8_G.js.map → Slider-B9IskDxf.js.map} +1 -1
- package/dist/{Stepper-CQrUPVFL.js → Stepper-D7VspVEt.js} +11 -19
- package/dist/{Stepper-CQrUPVFL.js.map → Stepper-D7VspVEt.js.map} +1 -1
- package/dist/{Switch-DccpSpzC.js → Switch-DONWW7ju.js} +4 -6
- package/dist/{Switch-DccpSpzC.js.map → Switch-DONWW7ju.js.map} +1 -1
- package/dist/{Table-CilEvpMq.js → Table-BwgBm3hJ.js} +12 -21
- package/dist/{Table-CilEvpMq.js.map → Table-BwgBm3hJ.js.map} +1 -1
- package/dist/{Tabs-Ck4uWf8U.js → Tabs-DmJB4l_N.js} +9 -14
- package/dist/{Tabs-Ck4uWf8U.js.map → Tabs-DmJB4l_N.js.map} +1 -1
- package/dist/{TextInput-CR0_USaY.js → TextInput--1CfZybC.js} +8 -10
- package/dist/TextInput--1CfZybC.js.map +1 -0
- package/dist/{ThemeProvider-BTK7AL-T.js → ThemeProvider-BCHllN7d.js} +8 -13
- package/dist/{ThemeProvider-BTK7AL-T.js.map → ThemeProvider-BCHllN7d.js.map} +1 -1
- package/dist/{TimePicker-CoRpiEM3.js → TimePicker-CCV3SOw5.js} +4 -6
- package/dist/{TimePicker-CoRpiEM3.js.map → TimePicker-CCV3SOw5.js.map} +1 -1
- package/dist/{Timeline-DUXgByUE.js → Timeline-EMOpTLAT.js} +8 -13
- package/dist/{Timeline-DUXgByUE.js.map → Timeline-EMOpTLAT.js.map} +1 -1
- package/dist/{Toast-937n7n8i.js → Toast-BOTINeTX.js} +4 -6
- package/dist/{Toast-937n7n8i.js.map → Toast-BOTINeTX.js.map} +1 -1
- package/dist/{ToggleAllTooltip-DEjbWFoj.js → ToggleAllTooltip-BFmA6TXf.js} +4 -6
- package/dist/{ToggleAllTooltip-DEjbWFoj.js.map → ToggleAllTooltip-BFmA6TXf.js.map} +1 -1
- package/dist/{ToggleGroup-BOz1yyz6.js → ToggleGroup-DsDS7k70.js} +3 -4
- package/dist/{ToggleGroup-BOz1yyz6.js.map → ToggleGroup-DsDS7k70.js.map} +1 -1
- package/dist/{Workbench-CxgNCs3I.js → Workbench-4s0xP6XU.js} +18 -32
- package/dist/{Workbench-CxgNCs3I.js.map → Workbench-4s0xP6XU.js.map} +1 -1
- package/dist/{ZoomableSvg-DnFXo2L4.js → ZoomableSvg-BRPGgaWJ.js} +9 -11
- package/dist/{ZoomableSvg-DnFXo2L4.js.map → ZoomableSvg-BRPGgaWJ.js.map} +1 -1
- package/dist/charts.d.ts +0 -16
- package/dist/charts.js +10 -19
- package/dist/charts.js.map +1 -1
- package/dist/{classNames-DcGnTh2N.js → classNames-DkX30VJU.js} +2 -3
- package/dist/{classNames-DcGnTh2N.js.map → classNames-DkX30VJU.js.map} +1 -1
- package/dist/editors.d.ts +2 -16
- package/dist/editors.js +16 -26
- package/dist/editors.js.map +1 -1
- package/dist/{findLiteralMatches-DgGLzyG0.js → findLiteralMatches-BaLZTPtx.js} +2 -3
- package/dist/{findLiteralMatches-DgGLzyG0.js.map → findLiteralMatches-BaLZTPtx.js.map} +1 -1
- package/dist/flint.d.ts +0 -2
- package/dist/flint.js +10 -14
- package/dist/flint.js.map +1 -1
- package/dist/{highlightCode-D354tCXO.js → highlightCode-2spZP7ZA.js} +2 -3
- package/dist/{highlightCode-D354tCXO.js.map → highlightCode-2spZP7ZA.js.map} +1 -1
- package/dist/{icons-ZIeZXXS7.js → icons-DDR9dFSr.js} +21 -40
- package/dist/{icons-ZIeZXXS7.js.map → icons-DDR9dFSr.js.map} +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +1 -2
- package/dist/{index-D-itZ3VP.d.ts → index-BljYaTWL.d.ts} +1 -39
- package/dist/index.d.ts +452 -1296
- package/dist/index.js +76 -74
- package/dist/internal/blocks/AIKit.js +1 -2
- package/dist/internal/blocks/AppShell.js +1 -2
- package/dist/internal/blocks/AuthLayout.js +3 -4
- package/dist/internal/blocks/AutoSaveTextarea.js +1 -2
- package/dist/internal/blocks/BrandEditor.js +1 -2
- package/dist/internal/blocks/ChartPanel.js +3 -4
- package/dist/internal/blocks/ChipEditor.js +6 -7
- package/dist/internal/blocks/ClipboardButton.js +1 -2
- package/dist/internal/blocks/ColorInput.js +1 -2
- package/dist/internal/blocks/ColorModeSwitch.js +1 -2
- package/dist/internal/blocks/Command.js +1 -2
- package/dist/internal/blocks/CopyField.js +1 -2
- package/dist/internal/blocks/DashboardHero.js +2 -3
- package/dist/internal/blocks/DateInput.js +1 -2
- package/dist/internal/blocks/DateRangeInput.js +1 -2
- package/dist/internal/blocks/DiagramShared/DiagramSkeleton.js +1 -2
- package/dist/internal/blocks/EmptyConfigurationActionCard.js +2 -3
- package/dist/internal/blocks/EmptyState.js +1 -2
- package/dist/internal/blocks/ErrorState.js +1 -2
- package/dist/internal/blocks/ExportMenu.js +5 -6
- package/dist/internal/blocks/FacebookButton.js +3 -4
- package/dist/internal/blocks/Form/connectors/ComboboxField.js +3 -4
- package/dist/internal/blocks/Form/connectors/MultiComboboxField.js +2 -3
- package/dist/internal/blocks/Form.js +3 -2
- package/dist/internal/blocks/FormGroup.js +1 -2
- package/dist/internal/blocks/GoogleButton.js +3 -4
- package/dist/internal/blocks/InlineEdit.js +1 -2
- package/dist/internal/blocks/MicrosoftButton.js +3 -4
- package/dist/internal/blocks/MultiActionButtonGroup.js +1 -2
- package/dist/internal/blocks/MultiCombobox.js +7 -8
- package/dist/internal/blocks/NumberInput.js +2 -3
- package/dist/internal/blocks/OtpInput.js +1 -2
- package/dist/internal/blocks/PageHeader.js +1 -2
- package/dist/internal/blocks/PageLayout.js +1 -2
- package/dist/internal/blocks/PageToolbar.js +1 -2
- package/dist/internal/blocks/PasswordInput.js +5 -6
- package/dist/internal/blocks/SearchInput.js +1 -2
- package/dist/internal/blocks/SearchInputWithNavigation.js +6 -7
- package/dist/internal/blocks/SectionNav.js +1 -2
- package/dist/internal/blocks/SplitButton.js +4 -5
- package/dist/internal/blocks/StatCard.js +4 -6
- package/dist/internal/blocks/StatCard.js.map +1 -1
- package/dist/internal/blocks/TextInput.js +1 -2
- package/dist/internal/blocks/Textarea.js +3 -4
- package/dist/internal/blocks/TimeInput.js +6 -7
- package/dist/internal/components/Alert.js +1 -2
- package/dist/internal/components/AlertModal.js +1 -2
- package/dist/internal/components/Avatar.js +3 -4
- package/dist/internal/components/Badge.js +1 -2
- package/dist/internal/components/BrandLogo.js +1 -2
- package/dist/internal/components/Breadcrumb.js +1 -2
- package/dist/internal/components/Button.js +1 -2
- package/dist/internal/components/ButtonGroup.js +2 -3
- package/dist/internal/components/Calendar.js +1 -2
- package/dist/internal/components/Card.js +1 -2
- package/dist/internal/components/Checkbox.js +1 -2
- package/dist/internal/components/Clipboard.js +1 -2
- package/dist/internal/components/Collapsible.js +1 -2
- package/dist/internal/components/CollapsiblePanel.js +5 -6
- package/dist/internal/components/Combobox.js +1 -2
- package/dist/internal/components/DatePicker.js +1 -2
- package/dist/internal/components/DateRangePicker.js +1 -2
- package/dist/internal/components/DiffView.js +1 -2
- package/dist/internal/components/DotsLoader.js +2 -3
- package/dist/internal/components/DropdownMenu.js +1 -2
- package/dist/internal/components/EmptySearchContent.js +1 -2
- package/dist/internal/components/FileUpload.js +1 -2
- package/dist/internal/components/FullScreenModal.js +1 -2
- package/dist/internal/components/HelpBlock.js +1 -2
- package/dist/internal/components/HoverCard.js +1 -2
- package/dist/internal/components/InputGroup.js +1 -2
- package/dist/internal/components/Kbd.js +1 -2
- package/dist/internal/components/Label.js +2 -3
- package/dist/internal/components/Link.js +2 -3
- package/dist/internal/components/MarkedText.js +1 -2
- package/dist/internal/components/MergeEditor/ConflictStatus/ConflictStatusIndicator.js +3 -4
- package/dist/internal/components/MergeEditor/PaneHeader.js +1 -2
- package/dist/internal/components/MergeEditor/constants.js +1 -2
- package/dist/internal/components/MergeEditor/useMergeDiff.js +1 -2
- package/dist/internal/components/Modal.js +1 -2
- package/dist/internal/components/Navbar.js +1 -2
- package/dist/internal/components/Pagination.js +1 -2
- package/dist/internal/components/PanelWithDetails.js +4 -5
- package/dist/internal/components/Popconfirm.js +1 -2
- package/dist/internal/components/Popover.js +1 -2
- package/dist/internal/components/Progress.js +2 -3
- package/dist/internal/components/RadioGroup.js +1 -2
- package/dist/internal/components/Resizable.js +1 -2
- package/dist/internal/components/ScrollArea.js +3 -5
- package/dist/internal/components/ScrollArea.js.map +1 -1
- package/dist/internal/components/Search.js +1 -2
- package/dist/internal/components/Select.js +1 -2
- package/dist/internal/components/Separator.js +2 -3
- package/dist/internal/components/Sheet.js +1 -2
- package/dist/internal/components/Sidebar.js +1 -2
- package/dist/internal/components/Skeleton/Skeleton.js +2 -3
- package/dist/internal/components/Skeleton/SkeletonList.js +2 -3
- package/dist/internal/components/Slider.js +1 -2
- package/dist/internal/components/SpotlightBackdrop.js +3 -5
- package/dist/internal/components/SpotlightBackdrop.js.map +1 -1
- package/dist/internal/components/Stepper.js +1 -2
- package/dist/internal/components/Switch.js +1 -2
- package/dist/internal/components/Table.js +1 -2
- package/dist/internal/components/Tabs.js +1 -2
- package/dist/internal/components/ThemeProvider.js +2 -2
- package/dist/internal/components/TimePicker.js +1 -2
- package/dist/internal/components/Timeline.js +1 -2
- package/dist/internal/components/Toast.js +2 -2
- package/dist/internal/components/Toggle.js +2 -3
- package/dist/internal/components/ToggleGroup.js +1 -2
- package/dist/internal/components/Tooltip.js +1 -2
- package/dist/internal/components/Truncated.js +3 -4
- package/dist/internal/components/Workbench.js +1 -2
- package/dist/internal/components/ZoomableSvg.js +1 -2
- package/dist/internal/hooks/useAltDigitHotkey.js +1 -2
- package/dist/internal/hooks/useAutosizeInput.js +1 -2
- package/dist/internal/hooks/useScrollbarPosition.js +2 -3
- package/dist/internal/hooks/useStableCallback.js +1 -2
- package/dist/internal/hooks/useTimeout.js +18 -0
- package/dist/internal/hooks/useTimeout.js.map +1 -0
- package/dist/internal/utils/accessibleName.js +1 -2
- package/dist/internal/utils/mergeRefs.js +1 -2
- package/dist/internal/utils.js +3 -3
- package/dist/markdown-editor.d.ts +0 -4
- package/dist/markdown-editor.js +30 -49
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.d.ts +0 -2
- package/dist/mermaid.js +1 -2
- package/dist/rjsf.d.ts +0 -8
- package/dist/rjsf.js +47 -78
- package/dist/rjsf.js.map +1 -1
- package/dist/{rolldown-runtime-Bdc48AWt.js → rolldown-runtime-BrwM56v-.js} +2 -3
- package/dist/{styles-T8xwr0sR.js → styles-BXXXosW_.js} +2 -3
- package/dist/{styles-T8xwr0sR.js.map → styles-BXXXosW_.js.map} +1 -1
- package/dist/{styles-DxazJ8Mz.js → styles-nwtCRF7y.js} +2 -3
- package/dist/{styles-DxazJ8Mz.js.map → styles-nwtCRF7y.js.map} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{svgCache-Dhmbe-7i.js → svgCache-BzvN_fgr.js} +2 -3
- package/dist/{svgCache-Dhmbe-7i.js.map → svgCache-BzvN_fgr.js.map} +1 -1
- package/dist/{svgTransforms-Hnvev3Vs.js → svgTransforms-BBxxO9T6.js} +4 -6
- package/dist/{svgTransforms-Hnvev3Vs.js.map → svgTransforms-BBxxO9T6.js.map} +1 -1
- package/dist/testing.d.ts +0 -2
- package/dist/testing.js +2 -3
- package/dist/{themeScopeContext-CEVXbYvZ.js → themeScopeContext-BZGPdyG8.js} +6 -11
- package/dist/{themeScopeContext-CEVXbYvZ.js.map → themeScopeContext-BZGPdyG8.js.map} +1 -1
- package/dist/{themeTokens-DCeb62ap.js → themeTokens-B60cQtAY.js} +4 -6
- package/dist/{themeTokens-DCeb62ap.js.map → themeTokens-B60cQtAY.js.map} +1 -1
- package/dist/{toast-Y3cTMBW8.js → toast-Dzj1EFOb.js} +10 -17
- package/dist/{toast-Y3cTMBW8.js.map → toast-Dzj1EFOb.js.map} +1 -1
- package/dist/{types-BPcAjMG0.d.ts → types-CsZuwfxc.d.ts} +1 -3
- package/dist/{useControllableState-CUYXMsfz.js → useControllableState-BCvUOC6G.js} +2 -3
- package/dist/{useControllableState-CUYXMsfz.js.map → useControllableState-BCvUOC6G.js.map} +1 -1
- package/dist/{useElement-D-RjrGa4.js → useElement-Dcoo9Jlr.js} +2 -3
- package/dist/{useElement-D-RjrGa4.js.map → useElement-Dcoo9Jlr.js.map} +1 -1
- package/dist/{useMergeDiff-CvowEXJ1.js → useMergeDiff-DFIATaTw.js} +3 -5
- package/dist/{useMergeDiff-CvowEXJ1.js.map → useMergeDiff-DFIATaTw.js.map} +1 -1
- package/dist/{utils-DwC9u0tM.js → utils-DjFceY3H.js} +18 -34
- package/dist/utils-DjFceY3H.js.map +1 -0
- package/dist/vega.d.ts +1 -5
- package/dist/vega.js +3 -4
- package/dist/{vegaTheme-ISwGXvof.js → vegaTheme-BcTNRmVS.js} +3 -4
- package/dist/{vegaTheme-ISwGXvof.js.map → vegaTheme-BcTNRmVS.js.map} +1 -1
- package/dist/{vegaTokens-DCkvpIVE.js → vegaTokens-DnCcy7JY.js} +3 -4
- package/dist/{vegaTokens-DCkvpIVE.js.map → vegaTokens-DnCcy7JY.js.map} +1 -1
- package/package.json +40 -40
- package/src/styles.css +70 -4
- package/src/theme.css +117 -11
- package/dist/AIKit-CaAW4GLx.js.map +0 -1
- package/dist/AlertModal-D4AtpvLS.js.map +0 -1
- package/dist/Badge-5GHIsgRS.js.map +0 -1
- package/dist/Button-BNkyYU8u.js.map +0 -1
- package/dist/Calendar-BnKi1kPu.js.map +0 -1
- package/dist/Combobox-CaKqgstG.js.map +0 -1
- package/dist/DropdownMenu-CcVbZ_5u.js.map +0 -1
- package/dist/HoverCard-Cv5rmvJq.js +0 -26
- package/dist/HoverCard-Cv5rmvJq.js.map +0 -1
- package/dist/Modal-CbUz-5YH.js.map +0 -1
- package/dist/ModalTitle-cy0Ht9VY.js.map +0 -1
- package/dist/Popconfirm-DwLCYNaF.js.map +0 -1
- package/dist/Popover-DtUDwUVO.js.map +0 -1
- package/dist/Search-vyZwGKMU.js.map +0 -1
- package/dist/SearchInput-DyYXyw3u.js.map +0 -1
- package/dist/Select-B22hB_-w.js.map +0 -1
- package/dist/Sheet-0TWKTqid.js.map +0 -1
- package/dist/TextInput-CR0_USaY.js.map +0 -1
- package/dist/utils-DwC9u0tM.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { cn } from "./classNames-
|
|
1
|
+
import { __exportAll } from "./rolldown-runtime-BrwM56v-.js";
|
|
2
|
+
import { cn } from "./classNames-DkX30VJU.js";
|
|
3
3
|
import React, { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzName/index.js
|
|
6
6
|
/**
|
|
7
7
|
* Time zone name format.
|
|
8
8
|
*/
|
|
@@ -36,8 +36,7 @@ function tzName(timeZone, date, format = "long") {
|
|
|
36
36
|
timeZoneName: format
|
|
37
37
|
}).format(date).split(/\s/g).slice(2).join(" ");
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
//#region ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.js
|
|
39
|
+
// ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.js
|
|
41
40
|
const offsetFormatCache = {};
|
|
42
41
|
const offsetCache = {};
|
|
43
42
|
/**
|
|
@@ -75,8 +74,7 @@ function calcOffset(cacheStr, values) {
|
|
|
75
74
|
const seconds = +(values[2] || 0) / 60;
|
|
76
75
|
return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;
|
|
77
76
|
}
|
|
78
|
-
|
|
79
|
-
//#region ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/mini.js
|
|
77
|
+
// ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/mini.js
|
|
80
78
|
var TZDateMini = class TZDateMini extends Date {
|
|
81
79
|
constructor(...args) {
|
|
82
80
|
super();
|
|
@@ -193,8 +191,7 @@ function adjustToSystemTZ(date) {
|
|
|
193
191
|
}
|
|
194
192
|
}
|
|
195
193
|
}
|
|
196
|
-
|
|
197
|
-
//#region ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/index.js
|
|
194
|
+
// ../../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/index.js
|
|
198
195
|
var TZDate = class TZDate extends TZDateMini {
|
|
199
196
|
static tz(tz, ...args) {
|
|
200
197
|
return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);
|
|
@@ -274,8 +271,7 @@ const millisecondsInDay = 864e5;
|
|
|
274
271
|
* a constructor argument.
|
|
275
272
|
*/
|
|
276
273
|
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
277
|
-
|
|
278
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
|
|
274
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
|
|
279
275
|
/**
|
|
280
276
|
* @name constructFrom
|
|
281
277
|
* @category Generic Helpers
|
|
@@ -317,8 +313,7 @@ function constructFrom(date, value) {
|
|
|
317
313
|
if (date instanceof Date) return new date.constructor(value);
|
|
318
314
|
return new Date(value);
|
|
319
315
|
}
|
|
320
|
-
|
|
321
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
|
|
316
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
|
|
322
317
|
/**
|
|
323
318
|
* @name toDate
|
|
324
319
|
* @category Common Helpers
|
|
@@ -360,8 +355,7 @@ function constructFrom(date, value) {
|
|
|
360
355
|
function toDate(argument, context) {
|
|
361
356
|
return constructFrom(context || argument, argument);
|
|
362
357
|
}
|
|
363
|
-
|
|
364
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
|
|
358
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
|
|
365
359
|
/**
|
|
366
360
|
* The {@link addDays} function options.
|
|
367
361
|
*/
|
|
@@ -413,8 +407,7 @@ function addDays(date, amount, options) {
|
|
|
413
407
|
_date.setDate(_date.getDate() + amount);
|
|
414
408
|
return _date;
|
|
415
409
|
}
|
|
416
|
-
|
|
417
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
|
|
410
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
|
|
418
411
|
/**
|
|
419
412
|
* The {@link addMonths} function options.
|
|
420
413
|
*/
|
|
@@ -457,131 +450,65 @@ function addMonths(date, amount, options) {
|
|
|
457
450
|
return _date;
|
|
458
451
|
}
|
|
459
452
|
}
|
|
460
|
-
|
|
461
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
462
|
-
let defaultOptions = {};
|
|
463
|
-
function getDefaultOptions() {
|
|
464
|
-
return defaultOptions;
|
|
465
|
-
}
|
|
466
|
-
//#endregion
|
|
467
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
453
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addWeeks.js
|
|
468
454
|
/**
|
|
469
|
-
* The {@link
|
|
455
|
+
* The {@link addWeeks} function options.
|
|
470
456
|
*/
|
|
471
457
|
/**
|
|
472
|
-
* @name
|
|
458
|
+
* @name addWeeks
|
|
473
459
|
* @category Week Helpers
|
|
474
|
-
* @summary
|
|
460
|
+
* @summary Add the specified number of weeks to the given date.
|
|
475
461
|
*
|
|
476
462
|
* @description
|
|
477
|
-
*
|
|
478
|
-
* The result will be in the local timezone.
|
|
463
|
+
* Add the specified number of weeks to the given date.
|
|
479
464
|
*
|
|
480
465
|
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
481
466
|
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
482
467
|
*
|
|
483
|
-
* @param date - The
|
|
468
|
+
* @param date - The date to be changed
|
|
469
|
+
* @param amount - The amount of weeks to be added.
|
|
484
470
|
* @param options - An object with options
|
|
485
471
|
*
|
|
486
|
-
* @returns The
|
|
487
|
-
*
|
|
488
|
-
* @example
|
|
489
|
-
* // The start of a week for 2 September 2014 11:55:00:
|
|
490
|
-
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
491
|
-
* //=> Sun Aug 31 2014 00:00:00
|
|
472
|
+
* @returns The new date with the weeks added
|
|
492
473
|
*
|
|
493
474
|
* @example
|
|
494
|
-
* //
|
|
495
|
-
* const result =
|
|
496
|
-
* //=> Mon Sep
|
|
475
|
+
* // Add 4 weeks to 1 September 2014:
|
|
476
|
+
* const result = addWeeks(new Date(2014, 8, 1), 4)
|
|
477
|
+
* //=> Mon Sep 29 2014 00:00:00
|
|
497
478
|
*/
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions.weekStartsOn ?? defaultOptions.locale?.options?.weekStartsOn ?? 0;
|
|
501
|
-
const _date = toDate(date, options?.in);
|
|
502
|
-
const day = _date.getDay();
|
|
503
|
-
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
504
|
-
_date.setDate(_date.getDate() - diff);
|
|
505
|
-
_date.setHours(0, 0, 0, 0);
|
|
506
|
-
return _date;
|
|
479
|
+
function addWeeks(date, amount, options) {
|
|
480
|
+
return addDays(date, amount * 7, options);
|
|
507
481
|
}
|
|
508
|
-
|
|
509
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
|
|
482
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addYears.js
|
|
510
483
|
/**
|
|
511
|
-
* The {@link
|
|
484
|
+
* The {@link addYears} function options.
|
|
512
485
|
*/
|
|
513
486
|
/**
|
|
514
|
-
* @name
|
|
515
|
-
* @category
|
|
516
|
-
* @summary
|
|
487
|
+
* @name addYears
|
|
488
|
+
* @category Year Helpers
|
|
489
|
+
* @summary Add the specified number of years to the given date.
|
|
517
490
|
*
|
|
518
491
|
* @description
|
|
519
|
-
*
|
|
520
|
-
* The result will be in the local timezone.
|
|
521
|
-
*
|
|
522
|
-
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
492
|
+
* Add the specified number of years to the given date.
|
|
523
493
|
*
|
|
524
494
|
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
525
|
-
* @typeParam ResultDate - The result `Date` type
|
|
526
|
-
*
|
|
527
|
-
* @param date - The original date
|
|
528
|
-
* @param options - An object with options
|
|
529
|
-
*
|
|
530
|
-
* @returns The start of an ISO week
|
|
531
|
-
*
|
|
532
|
-
* @example
|
|
533
|
-
* // The start of an ISO week for 2 September 2014 11:55:00:
|
|
534
|
-
* const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
535
|
-
* //=> Mon Sep 01 2014 00:00:00
|
|
536
|
-
*/
|
|
537
|
-
function startOfISOWeek(date, options) {
|
|
538
|
-
return startOfWeek(date, {
|
|
539
|
-
...options,
|
|
540
|
-
weekStartsOn: 1
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
//#endregion
|
|
544
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
|
|
545
|
-
/**
|
|
546
|
-
* The {@link getISOWeekYear} function options.
|
|
547
|
-
*/
|
|
548
|
-
/**
|
|
549
|
-
* @name getISOWeekYear
|
|
550
|
-
* @category ISO Week-Numbering Year Helpers
|
|
551
|
-
* @summary Get the ISO week-numbering year of the given date.
|
|
552
|
-
*
|
|
553
|
-
* @description
|
|
554
|
-
* Get the ISO week-numbering year of the given date,
|
|
555
|
-
* which always starts 3 days before the year's first Thursday.
|
|
556
|
-
*
|
|
557
|
-
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
495
|
+
* @typeParam ResultDate - The result `Date` type.
|
|
558
496
|
*
|
|
559
|
-
* @param date - The
|
|
497
|
+
* @param date - The date to be changed
|
|
498
|
+
* @param amount - The amount of years to be added.
|
|
499
|
+
* @param options - The options
|
|
560
500
|
*
|
|
561
|
-
* @returns The
|
|
501
|
+
* @returns The new date with the years added
|
|
562
502
|
*
|
|
563
503
|
* @example
|
|
564
|
-
* //
|
|
565
|
-
* const result =
|
|
566
|
-
* //=>
|
|
504
|
+
* // Add 5 years to 1 September 2014:
|
|
505
|
+
* const result = addYears(new Date(2014, 8, 1), 5)
|
|
506
|
+
* //=> Sun Sep 01 2019 00:00:00
|
|
567
507
|
*/
|
|
568
|
-
function
|
|
569
|
-
|
|
570
|
-
const year = _date.getFullYear();
|
|
571
|
-
const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
|
|
572
|
-
fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
|
|
573
|
-
fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
|
|
574
|
-
const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
|
|
575
|
-
const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
|
|
576
|
-
fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
|
|
577
|
-
fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
|
|
578
|
-
const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
|
|
579
|
-
if (_date.getTime() >= startOfNextYear.getTime()) return year + 1;
|
|
580
|
-
else if (_date.getTime() >= startOfThisYear.getTime()) return year;
|
|
581
|
-
else return year - 1;
|
|
508
|
+
function addYears(date, amount, options) {
|
|
509
|
+
return addMonths(date, amount * 12, options);
|
|
582
510
|
}
|
|
583
|
-
|
|
584
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
511
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
585
512
|
/**
|
|
586
513
|
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
587
514
|
* They usually appear for dates that denote time before the timezones were introduced
|
|
@@ -599,14 +526,12 @@ function getTimezoneOffsetInMilliseconds(date) {
|
|
|
599
526
|
utcDate.setUTCFullYear(_date.getFullYear());
|
|
600
527
|
return +date - +utcDate;
|
|
601
528
|
}
|
|
602
|
-
|
|
603
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
529
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
604
530
|
function normalizeDates(context, ...dates) {
|
|
605
531
|
const normalize = constructFrom.bind(null, context || dates.find((date) => typeof date === "object"));
|
|
606
532
|
return dates.map(normalize);
|
|
607
533
|
}
|
|
608
|
-
|
|
609
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
|
|
534
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
|
|
610
535
|
/**
|
|
611
536
|
* The {@link startOfDay} function options.
|
|
612
537
|
*/
|
|
@@ -637,340 +562,50 @@ function startOfDay(date, options) {
|
|
|
637
562
|
_date.setHours(0, 0, 0, 0);
|
|
638
563
|
return _date;
|
|
639
564
|
}
|
|
640
|
-
|
|
641
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
|
|
565
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
|
|
642
566
|
/**
|
|
643
567
|
* The {@link differenceInCalendarDays} function options.
|
|
644
|
-
*/
|
|
645
|
-
/**
|
|
646
|
-
* @name differenceInCalendarDays
|
|
647
|
-
* @category Day Helpers
|
|
648
|
-
* @summary Get the number of calendar days between the given dates.
|
|
649
|
-
*
|
|
650
|
-
* @description
|
|
651
|
-
* Get the number of calendar days between the given dates. This means that the times are removed
|
|
652
|
-
* from the dates and then the difference in days is calculated.
|
|
653
|
-
*
|
|
654
|
-
* @param laterDate - The later date
|
|
655
|
-
* @param earlierDate - The earlier date
|
|
656
|
-
* @param options - The options object
|
|
657
|
-
*
|
|
658
|
-
* @returns The number of calendar days
|
|
659
|
-
*
|
|
660
|
-
* @example
|
|
661
|
-
* // How many calendar days are between
|
|
662
|
-
* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
|
|
663
|
-
* const result = differenceInCalendarDays(
|
|
664
|
-
* new Date(2012, 6, 2, 0, 0),
|
|
665
|
-
* new Date(2011, 6, 2, 23, 0)
|
|
666
|
-
* )
|
|
667
|
-
* //=> 366
|
|
668
|
-
* // How many calendar days are between
|
|
669
|
-
* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
|
|
670
|
-
* const result = differenceInCalendarDays(
|
|
671
|
-
* new Date(2011, 6, 3, 0, 1),
|
|
672
|
-
* new Date(2011, 6, 2, 23, 59)
|
|
673
|
-
* )
|
|
674
|
-
* //=> 1
|
|
675
|
-
*/
|
|
676
|
-
function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
677
|
-
const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
|
|
678
|
-
const laterStartOfDay = startOfDay(laterDate_);
|
|
679
|
-
const earlierStartOfDay = startOfDay(earlierDate_);
|
|
680
|
-
const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);
|
|
681
|
-
const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);
|
|
682
|
-
return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
|
|
683
|
-
}
|
|
684
|
-
//#endregion
|
|
685
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
686
|
-
/**
|
|
687
|
-
* The {@link startOfISOWeekYear} function options.
|
|
688
|
-
*/
|
|
689
|
-
/**
|
|
690
|
-
* @name startOfISOWeekYear
|
|
691
|
-
* @category ISO Week-Numbering Year Helpers
|
|
692
|
-
* @summary Return the start of an ISO week-numbering year for the given date.
|
|
693
|
-
*
|
|
694
|
-
* @description
|
|
695
|
-
* Return the start of an ISO week-numbering year,
|
|
696
|
-
* which always starts 3 days before the year's first Thursday.
|
|
697
|
-
* The result will be in the local timezone.
|
|
698
|
-
*
|
|
699
|
-
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
700
|
-
*
|
|
701
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
702
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
703
|
-
*
|
|
704
|
-
* @param date - The original date
|
|
705
|
-
* @param options - An object with options
|
|
706
|
-
*
|
|
707
|
-
* @returns The start of an ISO week-numbering year
|
|
708
|
-
*
|
|
709
|
-
* @example
|
|
710
|
-
* // The start of an ISO week-numbering year for 2 July 2005:
|
|
711
|
-
* const result = startOfISOWeekYear(new Date(2005, 6, 2))
|
|
712
|
-
* //=> Mon Jan 03 2005 00:00:00
|
|
713
|
-
*/
|
|
714
|
-
function startOfISOWeekYear(date, options) {
|
|
715
|
-
const year = getISOWeekYear(date, options);
|
|
716
|
-
const fourthOfJanuary = constructFrom(options?.in || date, 0);
|
|
717
|
-
fourthOfJanuary.setFullYear(year, 0, 4);
|
|
718
|
-
fourthOfJanuary.setHours(0, 0, 0, 0);
|
|
719
|
-
return startOfISOWeek(fourthOfJanuary);
|
|
720
|
-
}
|
|
721
|
-
//#endregion
|
|
722
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addWeeks.js
|
|
723
|
-
/**
|
|
724
|
-
* The {@link addWeeks} function options.
|
|
725
|
-
*/
|
|
726
|
-
/**
|
|
727
|
-
* @name addWeeks
|
|
728
|
-
* @category Week Helpers
|
|
729
|
-
* @summary Add the specified number of weeks to the given date.
|
|
730
|
-
*
|
|
731
|
-
* @description
|
|
732
|
-
* Add the specified number of weeks to the given date.
|
|
733
|
-
*
|
|
734
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
735
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
736
|
-
*
|
|
737
|
-
* @param date - The date to be changed
|
|
738
|
-
* @param amount - The amount of weeks to be added.
|
|
739
|
-
* @param options - An object with options
|
|
740
|
-
*
|
|
741
|
-
* @returns The new date with the weeks added
|
|
742
|
-
*
|
|
743
|
-
* @example
|
|
744
|
-
* // Add 4 weeks to 1 September 2014:
|
|
745
|
-
* const result = addWeeks(new Date(2014, 8, 1), 4)
|
|
746
|
-
* //=> Mon Sep 29 2014 00:00:00
|
|
747
|
-
*/
|
|
748
|
-
function addWeeks(date, amount, options) {
|
|
749
|
-
return addDays(date, amount * 7, options);
|
|
750
|
-
}
|
|
751
|
-
//#endregion
|
|
752
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addYears.js
|
|
753
|
-
/**
|
|
754
|
-
* The {@link addYears} function options.
|
|
755
|
-
*/
|
|
756
|
-
/**
|
|
757
|
-
* @name addYears
|
|
758
|
-
* @category Year Helpers
|
|
759
|
-
* @summary Add the specified number of years to the given date.
|
|
760
|
-
*
|
|
761
|
-
* @description
|
|
762
|
-
* Add the specified number of years to the given date.
|
|
763
|
-
*
|
|
764
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
765
|
-
* @typeParam ResultDate - The result `Date` type.
|
|
766
|
-
*
|
|
767
|
-
* @param date - The date to be changed
|
|
768
|
-
* @param amount - The amount of years to be added.
|
|
769
|
-
* @param options - The options
|
|
770
|
-
*
|
|
771
|
-
* @returns The new date with the years added
|
|
772
|
-
*
|
|
773
|
-
* @example
|
|
774
|
-
* // Add 5 years to 1 September 2014:
|
|
775
|
-
* const result = addYears(new Date(2014, 8, 1), 5)
|
|
776
|
-
* //=> Sun Sep 01 2019 00:00:00
|
|
777
|
-
*/
|
|
778
|
-
function addYears(date, amount, options) {
|
|
779
|
-
return addMonths(date, amount * 12, options);
|
|
780
|
-
}
|
|
781
|
-
//#endregion
|
|
782
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/max.js
|
|
783
|
-
/**
|
|
784
|
-
* The {@link max} function options.
|
|
785
|
-
*/
|
|
786
|
-
/**
|
|
787
|
-
* @name max
|
|
788
|
-
* @category Common Helpers
|
|
789
|
-
* @summary Return the latest of the given dates.
|
|
790
|
-
*
|
|
791
|
-
* @description
|
|
792
|
-
* Return the latest of the given dates.
|
|
793
|
-
*
|
|
794
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
795
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
796
|
-
*
|
|
797
|
-
* @param dates - The dates to compare
|
|
798
|
-
*
|
|
799
|
-
* @returns The latest of the dates
|
|
800
|
-
*
|
|
801
|
-
* @example
|
|
802
|
-
* // Which of these dates is the latest?
|
|
803
|
-
* const result = max([
|
|
804
|
-
* new Date(1989, 6, 10),
|
|
805
|
-
* new Date(1987, 1, 11),
|
|
806
|
-
* new Date(1995, 6, 2),
|
|
807
|
-
* new Date(1990, 0, 1)
|
|
808
|
-
* ])
|
|
809
|
-
* //=> Sun Jul 02 1995 00:00:00
|
|
810
|
-
*/
|
|
811
|
-
function max(dates, options) {
|
|
812
|
-
let result;
|
|
813
|
-
let context = options?.in;
|
|
814
|
-
dates.forEach((date) => {
|
|
815
|
-
if (!context && typeof date === "object") context = constructFrom.bind(null, date);
|
|
816
|
-
const date_ = toDate(date, context);
|
|
817
|
-
if (!result || result < date_ || isNaN(+date_)) result = date_;
|
|
818
|
-
});
|
|
819
|
-
return constructFrom(context, result || NaN);
|
|
820
|
-
}
|
|
821
|
-
//#endregion
|
|
822
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/min.js
|
|
823
|
-
/**
|
|
824
|
-
* The {@link min} function options.
|
|
825
|
-
*/
|
|
826
|
-
/**
|
|
827
|
-
* @name min
|
|
828
|
-
* @category Common Helpers
|
|
829
|
-
* @summary Returns the earliest of the given dates.
|
|
830
|
-
*
|
|
831
|
-
* @description
|
|
832
|
-
* Returns the earliest of the given dates.
|
|
833
|
-
*
|
|
834
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
835
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
836
|
-
*
|
|
837
|
-
* @param dates - The dates to compare
|
|
838
|
-
*
|
|
839
|
-
* @returns The earliest of the dates
|
|
840
|
-
*
|
|
841
|
-
* @example
|
|
842
|
-
* // Which of these dates is the earliest?
|
|
843
|
-
* const result = min([
|
|
844
|
-
* new Date(1989, 6, 10),
|
|
845
|
-
* new Date(1987, 1, 11),
|
|
846
|
-
* new Date(1995, 6, 2),
|
|
847
|
-
* new Date(1990, 0, 1)
|
|
848
|
-
* ])
|
|
849
|
-
* //=> Wed Feb 11 1987 00:00:00
|
|
850
|
-
*/
|
|
851
|
-
function min(dates, options) {
|
|
852
|
-
let result;
|
|
853
|
-
let context = options?.in;
|
|
854
|
-
dates.forEach((date) => {
|
|
855
|
-
if (!context && typeof date === "object") context = constructFrom.bind(null, date);
|
|
856
|
-
const date_ = toDate(date, context);
|
|
857
|
-
if (!result || result > date_ || isNaN(+date_)) result = date_;
|
|
858
|
-
});
|
|
859
|
-
return constructFrom(context, result || NaN);
|
|
860
|
-
}
|
|
861
|
-
//#endregion
|
|
862
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
|
|
863
|
-
/**
|
|
864
|
-
* The {@link isSameDay} function options.
|
|
865
|
-
*/
|
|
866
|
-
/**
|
|
867
|
-
* @name isSameDay
|
|
868
|
-
* @category Day Helpers
|
|
869
|
-
* @summary Are the given dates in the same day (and year and month)?
|
|
870
|
-
*
|
|
871
|
-
* @description
|
|
872
|
-
* Are the given dates in the same day (and year and month)?
|
|
873
|
-
*
|
|
874
|
-
* @param laterDate - The first date to check
|
|
875
|
-
* @param earlierDate - The second date to check
|
|
876
|
-
* @param options - An object with options
|
|
877
|
-
*
|
|
878
|
-
* @returns The dates are in the same day (and year and month)
|
|
879
|
-
*
|
|
880
|
-
* @example
|
|
881
|
-
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
|
|
882
|
-
* const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
|
|
883
|
-
* //=> true
|
|
884
|
-
*
|
|
885
|
-
* @example
|
|
886
|
-
* // Are 4 September and 4 October in the same day?
|
|
887
|
-
* const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
|
|
888
|
-
* //=> false
|
|
889
|
-
*
|
|
890
|
-
* @example
|
|
891
|
-
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
|
|
892
|
-
* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
|
|
893
|
-
* //=> false
|
|
894
|
-
*/
|
|
895
|
-
function isSameDay(laterDate, earlierDate, options) {
|
|
896
|
-
const [dateLeft_, dateRight_] = normalizeDates(options?.in, laterDate, earlierDate);
|
|
897
|
-
return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
|
|
898
|
-
}
|
|
899
|
-
//#endregion
|
|
900
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
901
|
-
/**
|
|
902
|
-
* @name isDate
|
|
903
|
-
* @category Common Helpers
|
|
904
|
-
* @summary Is the given value a date?
|
|
905
|
-
*
|
|
906
|
-
* @description
|
|
907
|
-
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
908
|
-
*
|
|
909
|
-
* @param value - The value to check
|
|
910
|
-
*
|
|
911
|
-
* @returns True if the given value is a date
|
|
912
|
-
*
|
|
913
|
-
* @example
|
|
914
|
-
* // For a valid date:
|
|
915
|
-
* const result = isDate(new Date())
|
|
916
|
-
* //=> true
|
|
917
|
-
*
|
|
918
|
-
* @example
|
|
919
|
-
* // For an invalid date:
|
|
920
|
-
* const result = isDate(new Date(NaN))
|
|
921
|
-
* //=> true
|
|
922
|
-
*
|
|
923
|
-
* @example
|
|
924
|
-
* // For some value:
|
|
925
|
-
* const result = isDate('2014-02-31')
|
|
926
|
-
* //=> false
|
|
927
|
-
*
|
|
928
|
-
* @example
|
|
929
|
-
* // For an object:
|
|
930
|
-
* const result = isDate({})
|
|
931
|
-
* //=> false
|
|
932
|
-
*/
|
|
933
|
-
function isDate(value) {
|
|
934
|
-
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
935
|
-
}
|
|
936
|
-
//#endregion
|
|
937
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
|
|
938
|
-
/**
|
|
939
|
-
* @name isValid
|
|
940
|
-
* @category Common Helpers
|
|
941
|
-
* @summary Is the given date valid?
|
|
568
|
+
*/
|
|
569
|
+
/**
|
|
570
|
+
* @name differenceInCalendarDays
|
|
571
|
+
* @category Day Helpers
|
|
572
|
+
* @summary Get the number of calendar days between the given dates.
|
|
942
573
|
*
|
|
943
574
|
* @description
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
* Invalid Date is a Date, whose time value is NaN.
|
|
947
|
-
*
|
|
948
|
-
* Time value of Date: http://es5.github.io/#x15.9.1.1
|
|
949
|
-
*
|
|
950
|
-
* @param date - The date to check
|
|
951
|
-
*
|
|
952
|
-
* @returns The date is valid
|
|
575
|
+
* Get the number of calendar days between the given dates. This means that the times are removed
|
|
576
|
+
* from the dates and then the difference in days is calculated.
|
|
953
577
|
*
|
|
954
|
-
* @
|
|
955
|
-
*
|
|
956
|
-
*
|
|
957
|
-
* //=> true
|
|
578
|
+
* @param laterDate - The later date
|
|
579
|
+
* @param earlierDate - The earlier date
|
|
580
|
+
* @param options - The options object
|
|
958
581
|
*
|
|
959
|
-
* @
|
|
960
|
-
* // For the value, convertible into a date:
|
|
961
|
-
* const result = isValid(1393804800000)
|
|
962
|
-
* //=> true
|
|
582
|
+
* @returns The number of calendar days
|
|
963
583
|
*
|
|
964
584
|
* @example
|
|
965
|
-
* //
|
|
966
|
-
*
|
|
967
|
-
*
|
|
585
|
+
* // How many calendar days are between
|
|
586
|
+
* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
|
|
587
|
+
* const result = differenceInCalendarDays(
|
|
588
|
+
* new Date(2012, 6, 2, 0, 0),
|
|
589
|
+
* new Date(2011, 6, 2, 23, 0)
|
|
590
|
+
* )
|
|
591
|
+
* //=> 366
|
|
592
|
+
* // How many calendar days are between
|
|
593
|
+
* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
|
|
594
|
+
* const result = differenceInCalendarDays(
|
|
595
|
+
* new Date(2011, 6, 3, 0, 1),
|
|
596
|
+
* new Date(2011, 6, 2, 23, 59)
|
|
597
|
+
* )
|
|
598
|
+
* //=> 1
|
|
968
599
|
*/
|
|
969
|
-
function
|
|
970
|
-
|
|
600
|
+
function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
601
|
+
const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
|
|
602
|
+
const laterStartOfDay = startOfDay(laterDate_);
|
|
603
|
+
const earlierStartOfDay = startOfDay(earlierDate_);
|
|
604
|
+
const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);
|
|
605
|
+
const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);
|
|
606
|
+
return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
|
|
971
607
|
}
|
|
972
|
-
|
|
973
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarMonths.js
|
|
608
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarMonths.js
|
|
974
609
|
/**
|
|
975
610
|
* The {@link differenceInCalendarMonths} function options.
|
|
976
611
|
*/
|
|
@@ -1002,42 +637,7 @@ function differenceInCalendarMonths(laterDate, earlierDate, options) {
|
|
|
1002
637
|
const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();
|
|
1003
638
|
return yearsDiff * 12 + monthsDiff;
|
|
1004
639
|
}
|
|
1005
|
-
|
|
1006
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
|
|
1007
|
-
/**
|
|
1008
|
-
* The {@link endOfMonth} function options.
|
|
1009
|
-
*/
|
|
1010
|
-
/**
|
|
1011
|
-
* @name endOfMonth
|
|
1012
|
-
* @category Month Helpers
|
|
1013
|
-
* @summary Return the end of a month for the given date.
|
|
1014
|
-
*
|
|
1015
|
-
* @description
|
|
1016
|
-
* Return the end of a month for the given date.
|
|
1017
|
-
* The result will be in the local timezone.
|
|
1018
|
-
*
|
|
1019
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1020
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1021
|
-
*
|
|
1022
|
-
* @param date - The original date
|
|
1023
|
-
* @param options - An object with options
|
|
1024
|
-
*
|
|
1025
|
-
* @returns The end of a month
|
|
1026
|
-
*
|
|
1027
|
-
* @example
|
|
1028
|
-
* // The end of a month for 2 September 2014 11:55:00:
|
|
1029
|
-
* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
|
|
1030
|
-
* //=> Tue Sep 30 2014 23:59:59.999
|
|
1031
|
-
*/
|
|
1032
|
-
function endOfMonth(date, options) {
|
|
1033
|
-
const _date = toDate(date, options?.in);
|
|
1034
|
-
const month = _date.getMonth();
|
|
1035
|
-
_date.setFullYear(_date.getFullYear(), month + 1, 0);
|
|
1036
|
-
_date.setHours(23, 59, 59, 999);
|
|
1037
|
-
return _date;
|
|
1038
|
-
}
|
|
1039
|
-
//#endregion
|
|
1040
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeInterval.js
|
|
640
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeInterval.js
|
|
1041
641
|
function normalizeInterval(context, interval) {
|
|
1042
642
|
const [start, end] = normalizeDates(context, interval.start, interval.end);
|
|
1043
643
|
return {
|
|
@@ -1045,8 +645,7 @@ function normalizeInterval(context, interval) {
|
|
|
1045
645
|
end
|
|
1046
646
|
};
|
|
1047
647
|
}
|
|
1048
|
-
|
|
1049
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/eachMonthOfInterval.js
|
|
648
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/eachMonthOfInterval.js
|
|
1050
649
|
/**
|
|
1051
650
|
* The {@link eachMonthOfInterval} function options.
|
|
1052
651
|
*/
|
|
@@ -1105,109 +704,7 @@ function eachMonthOfInterval(interval, options) {
|
|
|
1105
704
|
}
|
|
1106
705
|
return reversed ? dates.reverse() : dates;
|
|
1107
706
|
}
|
|
1108
|
-
|
|
1109
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
|
|
1110
|
-
/**
|
|
1111
|
-
* The {@link startOfMonth} function options.
|
|
1112
|
-
*/
|
|
1113
|
-
/**
|
|
1114
|
-
* @name startOfMonth
|
|
1115
|
-
* @category Month Helpers
|
|
1116
|
-
* @summary Return the start of a month for the given date.
|
|
1117
|
-
*
|
|
1118
|
-
* @description
|
|
1119
|
-
* Return the start of a month for the given date. The result will be in the local timezone.
|
|
1120
|
-
*
|
|
1121
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.
|
|
1122
|
-
* Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1123
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,
|
|
1124
|
-
* or inferred from the arguments.
|
|
1125
|
-
*
|
|
1126
|
-
* @param date - The original date
|
|
1127
|
-
* @param options - An object with options
|
|
1128
|
-
*
|
|
1129
|
-
* @returns The start of a month
|
|
1130
|
-
*
|
|
1131
|
-
* @example
|
|
1132
|
-
* // The start of a month for 2 September 2014 11:55:00:
|
|
1133
|
-
* const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
|
|
1134
|
-
* //=> Mon Sep 01 2014 00:00:00
|
|
1135
|
-
*/
|
|
1136
|
-
function startOfMonth(date, options) {
|
|
1137
|
-
const _date = toDate(date, options?.in);
|
|
1138
|
-
_date.setDate(1);
|
|
1139
|
-
_date.setHours(0, 0, 0, 0);
|
|
1140
|
-
return _date;
|
|
1141
|
-
}
|
|
1142
|
-
//#endregion
|
|
1143
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfYear.js
|
|
1144
|
-
/**
|
|
1145
|
-
* The {@link endOfYear} function options.
|
|
1146
|
-
*/
|
|
1147
|
-
/**
|
|
1148
|
-
* @name endOfYear
|
|
1149
|
-
* @category Year Helpers
|
|
1150
|
-
* @summary Return the end of a year for the given date.
|
|
1151
|
-
*
|
|
1152
|
-
* @description
|
|
1153
|
-
* Return the end of a year for the given date.
|
|
1154
|
-
* The result will be in the local timezone.
|
|
1155
|
-
*
|
|
1156
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1157
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1158
|
-
*
|
|
1159
|
-
* @param date - The original date
|
|
1160
|
-
* @param options - The options
|
|
1161
|
-
*
|
|
1162
|
-
* @returns The end of a year
|
|
1163
|
-
*
|
|
1164
|
-
* @example
|
|
1165
|
-
* // The end of a year for 2 September 2014 11:55:00:
|
|
1166
|
-
* const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0))
|
|
1167
|
-
* //=> Wed Dec 31 2014 23:59:59.999
|
|
1168
|
-
*/
|
|
1169
|
-
function endOfYear(date, options) {
|
|
1170
|
-
const _date = toDate(date, options?.in);
|
|
1171
|
-
const year = _date.getFullYear();
|
|
1172
|
-
_date.setFullYear(year + 1, 0, 0);
|
|
1173
|
-
_date.setHours(23, 59, 59, 999);
|
|
1174
|
-
return _date;
|
|
1175
|
-
}
|
|
1176
|
-
//#endregion
|
|
1177
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
|
|
1178
|
-
/**
|
|
1179
|
-
* The {@link startOfYear} function options.
|
|
1180
|
-
*/
|
|
1181
|
-
/**
|
|
1182
|
-
* @name startOfYear
|
|
1183
|
-
* @category Year Helpers
|
|
1184
|
-
* @summary Return the start of a year for the given date.
|
|
1185
|
-
*
|
|
1186
|
-
* @description
|
|
1187
|
-
* Return the start of a year for the given date.
|
|
1188
|
-
* The result will be in the local timezone.
|
|
1189
|
-
*
|
|
1190
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1191
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1192
|
-
*
|
|
1193
|
-
* @param date - The original date
|
|
1194
|
-
* @param options - The options
|
|
1195
|
-
*
|
|
1196
|
-
* @returns The start of a year
|
|
1197
|
-
*
|
|
1198
|
-
* @example
|
|
1199
|
-
* // The start of a year for 2 September 2014 11:55:00:
|
|
1200
|
-
* const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
|
|
1201
|
-
* //=> Wed Jan 01 2014 00:00:00
|
|
1202
|
-
*/
|
|
1203
|
-
function startOfYear(date, options) {
|
|
1204
|
-
const date_ = toDate(date, options?.in);
|
|
1205
|
-
date_.setFullYear(date_.getFullYear(), 0, 1);
|
|
1206
|
-
date_.setHours(0, 0, 0, 0);
|
|
1207
|
-
return date_;
|
|
1208
|
-
}
|
|
1209
|
-
//#endregion
|
|
1210
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/eachYearOfInterval.js
|
|
707
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/eachYearOfInterval.js
|
|
1211
708
|
/**
|
|
1212
709
|
* The {@link eachYearOfInterval} function options.
|
|
1213
710
|
*/
|
|
@@ -1266,8 +763,12 @@ function eachYearOfInterval(interval, options) {
|
|
|
1266
763
|
}
|
|
1267
764
|
return reversed ? dates.reverse() : dates;
|
|
1268
765
|
}
|
|
1269
|
-
|
|
1270
|
-
|
|
766
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
767
|
+
let defaultOptions = {};
|
|
768
|
+
function getDefaultOptions() {
|
|
769
|
+
return defaultOptions;
|
|
770
|
+
}
|
|
771
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
|
|
1271
772
|
/**
|
|
1272
773
|
* The {@link endOfWeek} function options.
|
|
1273
774
|
*/
|
|
@@ -1288,63 +789,127 @@ function eachYearOfInterval(interval, options) {
|
|
|
1288
789
|
*
|
|
1289
790
|
* @returns The end of a week
|
|
1290
791
|
*
|
|
1291
|
-
* @example
|
|
1292
|
-
* // The end of a week for 2 September 2014 11:55:00:
|
|
1293
|
-
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
1294
|
-
* //=> Sat Sep 06 2014 23:59:59.999
|
|
792
|
+
* @example
|
|
793
|
+
* // The end of a week for 2 September 2014 11:55:00:
|
|
794
|
+
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
795
|
+
* //=> Sat Sep 06 2014 23:59:59.999
|
|
796
|
+
*
|
|
797
|
+
* @example
|
|
798
|
+
* // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
|
|
799
|
+
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
|
|
800
|
+
* //=> Sun Sep 07 2014 23:59:59.999
|
|
801
|
+
*/
|
|
802
|
+
function endOfWeek(date, options) {
|
|
803
|
+
const defaultOptions = getDefaultOptions();
|
|
804
|
+
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions.weekStartsOn ?? defaultOptions.locale?.options?.weekStartsOn ?? 0;
|
|
805
|
+
const _date = toDate(date, options?.in);
|
|
806
|
+
const day = _date.getDay();
|
|
807
|
+
const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
|
|
808
|
+
_date.setDate(_date.getDate() + diff);
|
|
809
|
+
_date.setHours(23, 59, 59, 999);
|
|
810
|
+
return _date;
|
|
811
|
+
}
|
|
812
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfISOWeek.js
|
|
813
|
+
/**
|
|
814
|
+
* The {@link endOfISOWeek} function options.
|
|
815
|
+
*/
|
|
816
|
+
/**
|
|
817
|
+
* @name endOfISOWeek
|
|
818
|
+
* @category ISO Week Helpers
|
|
819
|
+
* @summary Return the end of an ISO week for the given date.
|
|
820
|
+
*
|
|
821
|
+
* @description
|
|
822
|
+
* Return the end of an ISO week for the given date.
|
|
823
|
+
* The result will be in the local timezone.
|
|
824
|
+
*
|
|
825
|
+
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
826
|
+
*
|
|
827
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
828
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
829
|
+
*
|
|
830
|
+
* @param date - The original date
|
|
831
|
+
* @param options - An object with options
|
|
832
|
+
*
|
|
833
|
+
* @returns The end of an ISO week
|
|
834
|
+
*
|
|
835
|
+
* @example
|
|
836
|
+
* // The end of an ISO week for 2 September 2014 11:55:00:
|
|
837
|
+
* const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
838
|
+
* //=> Sun Sep 07 2014 23:59:59.999
|
|
839
|
+
*/
|
|
840
|
+
function endOfISOWeek(date, options) {
|
|
841
|
+
return endOfWeek(date, {
|
|
842
|
+
...options,
|
|
843
|
+
weekStartsOn: 1
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
|
|
847
|
+
/**
|
|
848
|
+
* The {@link endOfMonth} function options.
|
|
849
|
+
*/
|
|
850
|
+
/**
|
|
851
|
+
* @name endOfMonth
|
|
852
|
+
* @category Month Helpers
|
|
853
|
+
* @summary Return the end of a month for the given date.
|
|
854
|
+
*
|
|
855
|
+
* @description
|
|
856
|
+
* Return the end of a month for the given date.
|
|
857
|
+
* The result will be in the local timezone.
|
|
858
|
+
*
|
|
859
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
860
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
861
|
+
*
|
|
862
|
+
* @param date - The original date
|
|
863
|
+
* @param options - An object with options
|
|
864
|
+
*
|
|
865
|
+
* @returns The end of a month
|
|
1295
866
|
*
|
|
1296
867
|
* @example
|
|
1297
|
-
* //
|
|
1298
|
-
* const result =
|
|
1299
|
-
* //=>
|
|
868
|
+
* // The end of a month for 2 September 2014 11:55:00:
|
|
869
|
+
* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
|
|
870
|
+
* //=> Tue Sep 30 2014 23:59:59.999
|
|
1300
871
|
*/
|
|
1301
|
-
function
|
|
1302
|
-
const defaultOptions = getDefaultOptions();
|
|
1303
|
-
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions.weekStartsOn ?? defaultOptions.locale?.options?.weekStartsOn ?? 0;
|
|
872
|
+
function endOfMonth(date, options) {
|
|
1304
873
|
const _date = toDate(date, options?.in);
|
|
1305
|
-
const
|
|
1306
|
-
|
|
1307
|
-
_date.setDate(_date.getDate() + diff);
|
|
874
|
+
const month = _date.getMonth();
|
|
875
|
+
_date.setFullYear(_date.getFullYear(), month + 1, 0);
|
|
1308
876
|
_date.setHours(23, 59, 59, 999);
|
|
1309
877
|
return _date;
|
|
1310
878
|
}
|
|
1311
|
-
|
|
1312
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfISOWeek.js
|
|
879
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfYear.js
|
|
1313
880
|
/**
|
|
1314
|
-
* The {@link
|
|
881
|
+
* The {@link endOfYear} function options.
|
|
1315
882
|
*/
|
|
1316
883
|
/**
|
|
1317
|
-
* @name
|
|
1318
|
-
* @category
|
|
1319
|
-
* @summary Return the end of
|
|
884
|
+
* @name endOfYear
|
|
885
|
+
* @category Year Helpers
|
|
886
|
+
* @summary Return the end of a year for the given date.
|
|
1320
887
|
*
|
|
1321
888
|
* @description
|
|
1322
|
-
* Return the end of
|
|
889
|
+
* Return the end of a year for the given date.
|
|
1323
890
|
* The result will be in the local timezone.
|
|
1324
891
|
*
|
|
1325
|
-
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
1326
|
-
*
|
|
1327
892
|
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1328
893
|
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1329
894
|
*
|
|
1330
895
|
* @param date - The original date
|
|
1331
|
-
* @param options -
|
|
896
|
+
* @param options - The options
|
|
1332
897
|
*
|
|
1333
|
-
* @returns The end of
|
|
898
|
+
* @returns The end of a year
|
|
1334
899
|
*
|
|
1335
900
|
* @example
|
|
1336
|
-
* // The end of
|
|
1337
|
-
* const result =
|
|
1338
|
-
* //=>
|
|
901
|
+
* // The end of a year for 2 September 2014 11:55:00:
|
|
902
|
+
* const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0))
|
|
903
|
+
* //=> Wed Dec 31 2014 23:59:59.999
|
|
1339
904
|
*/
|
|
1340
|
-
function
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
905
|
+
function endOfYear(date, options) {
|
|
906
|
+
const _date = toDate(date, options?.in);
|
|
907
|
+
const year = _date.getFullYear();
|
|
908
|
+
_date.setFullYear(year + 1, 0, 0);
|
|
909
|
+
_date.setHours(23, 59, 59, 999);
|
|
910
|
+
return _date;
|
|
1345
911
|
}
|
|
1346
|
-
|
|
1347
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
912
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
1348
913
|
const formatDistanceLocale = {
|
|
1349
914
|
lessThanXSeconds: {
|
|
1350
915
|
one: "less than a second",
|
|
@@ -1420,8 +985,7 @@ const formatDistance = (token, count, options) => {
|
|
|
1420
985
|
}
|
|
1421
986
|
return result;
|
|
1422
987
|
};
|
|
1423
|
-
|
|
1424
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
988
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
1425
989
|
function buildFormatLongFn(args) {
|
|
1426
990
|
return (options = {}) => {
|
|
1427
991
|
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
@@ -1457,8 +1021,7 @@ const formatLong = {
|
|
|
1457
1021
|
defaultWidth: "full"
|
|
1458
1022
|
})
|
|
1459
1023
|
};
|
|
1460
|
-
|
|
1461
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
1024
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
1462
1025
|
const formatRelativeLocale = {
|
|
1463
1026
|
lastWeek: "'last' eeee 'at' p",
|
|
1464
1027
|
yesterday: "'yesterday at' p",
|
|
@@ -1468,8 +1031,7 @@ const formatRelativeLocale = {
|
|
|
1468
1031
|
other: "P"
|
|
1469
1032
|
};
|
|
1470
1033
|
const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
|
|
1471
|
-
|
|
1472
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
1034
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
1473
1035
|
/**
|
|
1474
1036
|
* The localize function argument callback which allows to convert raw value to
|
|
1475
1037
|
* the actual type.
|
|
@@ -1518,8 +1080,7 @@ function buildLocalizeFn(args) {
|
|
|
1518
1080
|
return valuesArray[index];
|
|
1519
1081
|
};
|
|
1520
1082
|
}
|
|
1521
|
-
|
|
1522
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js
|
|
1083
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js
|
|
1523
1084
|
const eraValues = {
|
|
1524
1085
|
narrow: ["B", "A"],
|
|
1525
1086
|
abbreviated: ["BC", "AD"],
|
|
@@ -1727,8 +1288,7 @@ const localize = {
|
|
|
1727
1288
|
defaultFormattingWidth: "wide"
|
|
1728
1289
|
})
|
|
1729
1290
|
};
|
|
1730
|
-
|
|
1731
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
1291
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
1732
1292
|
function buildMatchFn(args) {
|
|
1733
1293
|
return (string, options = {}) => {
|
|
1734
1294
|
const width = options.width;
|
|
@@ -1754,8 +1314,7 @@ function findKey(object, predicate) {
|
|
|
1754
1314
|
function findIndex(array, predicate) {
|
|
1755
1315
|
for (let key = 0; key < array.length; key++) if (predicate(array[key])) return key;
|
|
1756
1316
|
}
|
|
1757
|
-
|
|
1758
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
1317
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
1759
1318
|
function buildMatchPatternFn(args) {
|
|
1760
1319
|
return (string, options = {}) => {
|
|
1761
1320
|
const matchResult = string.match(args.matchPattern);
|
|
@@ -1772,8 +1331,7 @@ function buildMatchPatternFn(args) {
|
|
|
1772
1331
|
};
|
|
1773
1332
|
};
|
|
1774
1333
|
}
|
|
1775
|
-
|
|
1776
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
|
|
1334
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
|
|
1777
1335
|
/**
|
|
1778
1336
|
* @category Locales
|
|
1779
1337
|
* @summary English locale (United States).
|
|
@@ -1913,8 +1471,39 @@ const enUS$1 = {
|
|
|
1913
1471
|
firstWeekContainsDate: 1
|
|
1914
1472
|
}
|
|
1915
1473
|
};
|
|
1916
|
-
|
|
1917
|
-
|
|
1474
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
|
|
1475
|
+
/**
|
|
1476
|
+
* The {@link startOfYear} function options.
|
|
1477
|
+
*/
|
|
1478
|
+
/**
|
|
1479
|
+
* @name startOfYear
|
|
1480
|
+
* @category Year Helpers
|
|
1481
|
+
* @summary Return the start of a year for the given date.
|
|
1482
|
+
*
|
|
1483
|
+
* @description
|
|
1484
|
+
* Return the start of a year for the given date.
|
|
1485
|
+
* The result will be in the local timezone.
|
|
1486
|
+
*
|
|
1487
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1488
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1489
|
+
*
|
|
1490
|
+
* @param date - The original date
|
|
1491
|
+
* @param options - The options
|
|
1492
|
+
*
|
|
1493
|
+
* @returns The start of a year
|
|
1494
|
+
*
|
|
1495
|
+
* @example
|
|
1496
|
+
* // The start of a year for 2 September 2014 11:55:00:
|
|
1497
|
+
* const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
|
|
1498
|
+
* //=> Wed Jan 01 2014 00:00:00
|
|
1499
|
+
*/
|
|
1500
|
+
function startOfYear(date, options) {
|
|
1501
|
+
const date_ = toDate(date, options?.in);
|
|
1502
|
+
date_.setFullYear(date_.getFullYear(), 0, 1);
|
|
1503
|
+
date_.setHours(0, 0, 0, 0);
|
|
1504
|
+
return date_;
|
|
1505
|
+
}
|
|
1506
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
|
|
1918
1507
|
/**
|
|
1919
1508
|
* The {@link getDayOfYear} function options.
|
|
1920
1509
|
*/
|
|
@@ -1940,8 +1529,157 @@ function getDayOfYear(date, options) {
|
|
|
1940
1529
|
const _date = toDate(date, options?.in);
|
|
1941
1530
|
return differenceInCalendarDays(_date, startOfYear(_date)) + 1;
|
|
1942
1531
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1532
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
1533
|
+
/**
|
|
1534
|
+
* The {@link startOfWeek} function options.
|
|
1535
|
+
*/
|
|
1536
|
+
/**
|
|
1537
|
+
* @name startOfWeek
|
|
1538
|
+
* @category Week Helpers
|
|
1539
|
+
* @summary Return the start of a week for the given date.
|
|
1540
|
+
*
|
|
1541
|
+
* @description
|
|
1542
|
+
* Return the start of a week for the given date.
|
|
1543
|
+
* The result will be in the local timezone.
|
|
1544
|
+
*
|
|
1545
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1546
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1547
|
+
*
|
|
1548
|
+
* @param date - The original date
|
|
1549
|
+
* @param options - An object with options
|
|
1550
|
+
*
|
|
1551
|
+
* @returns The start of a week
|
|
1552
|
+
*
|
|
1553
|
+
* @example
|
|
1554
|
+
* // The start of a week for 2 September 2014 11:55:00:
|
|
1555
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
1556
|
+
* //=> Sun Aug 31 2014 00:00:00
|
|
1557
|
+
*
|
|
1558
|
+
* @example
|
|
1559
|
+
* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
|
|
1560
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
|
|
1561
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
1562
|
+
*/
|
|
1563
|
+
function startOfWeek(date, options) {
|
|
1564
|
+
const defaultOptions = getDefaultOptions();
|
|
1565
|
+
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions.weekStartsOn ?? defaultOptions.locale?.options?.weekStartsOn ?? 0;
|
|
1566
|
+
const _date = toDate(date, options?.in);
|
|
1567
|
+
const day = _date.getDay();
|
|
1568
|
+
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
1569
|
+
_date.setDate(_date.getDate() - diff);
|
|
1570
|
+
_date.setHours(0, 0, 0, 0);
|
|
1571
|
+
return _date;
|
|
1572
|
+
}
|
|
1573
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
|
|
1574
|
+
/**
|
|
1575
|
+
* The {@link startOfISOWeek} function options.
|
|
1576
|
+
*/
|
|
1577
|
+
/**
|
|
1578
|
+
* @name startOfISOWeek
|
|
1579
|
+
* @category ISO Week Helpers
|
|
1580
|
+
* @summary Return the start of an ISO week for the given date.
|
|
1581
|
+
*
|
|
1582
|
+
* @description
|
|
1583
|
+
* Return the start of an ISO week for the given date.
|
|
1584
|
+
* The result will be in the local timezone.
|
|
1585
|
+
*
|
|
1586
|
+
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
1587
|
+
*
|
|
1588
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1589
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1590
|
+
*
|
|
1591
|
+
* @param date - The original date
|
|
1592
|
+
* @param options - An object with options
|
|
1593
|
+
*
|
|
1594
|
+
* @returns The start of an ISO week
|
|
1595
|
+
*
|
|
1596
|
+
* @example
|
|
1597
|
+
* // The start of an ISO week for 2 September 2014 11:55:00:
|
|
1598
|
+
* const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
1599
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
1600
|
+
*/
|
|
1601
|
+
function startOfISOWeek(date, options) {
|
|
1602
|
+
return startOfWeek(date, {
|
|
1603
|
+
...options,
|
|
1604
|
+
weekStartsOn: 1
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1607
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
|
|
1608
|
+
/**
|
|
1609
|
+
* The {@link getISOWeekYear} function options.
|
|
1610
|
+
*/
|
|
1611
|
+
/**
|
|
1612
|
+
* @name getISOWeekYear
|
|
1613
|
+
* @category ISO Week-Numbering Year Helpers
|
|
1614
|
+
* @summary Get the ISO week-numbering year of the given date.
|
|
1615
|
+
*
|
|
1616
|
+
* @description
|
|
1617
|
+
* Get the ISO week-numbering year of the given date,
|
|
1618
|
+
* which always starts 3 days before the year's first Thursday.
|
|
1619
|
+
*
|
|
1620
|
+
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
1621
|
+
*
|
|
1622
|
+
* @param date - The given date
|
|
1623
|
+
*
|
|
1624
|
+
* @returns The ISO week-numbering year
|
|
1625
|
+
*
|
|
1626
|
+
* @example
|
|
1627
|
+
* // Which ISO-week numbering year is 2 January 2005?
|
|
1628
|
+
* const result = getISOWeekYear(new Date(2005, 0, 2))
|
|
1629
|
+
* //=> 2004
|
|
1630
|
+
*/
|
|
1631
|
+
function getISOWeekYear(date, options) {
|
|
1632
|
+
const _date = toDate(date, options?.in);
|
|
1633
|
+
const year = _date.getFullYear();
|
|
1634
|
+
const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
|
|
1635
|
+
fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
|
|
1636
|
+
fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
|
|
1637
|
+
const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
|
|
1638
|
+
const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
|
|
1639
|
+
fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
|
|
1640
|
+
fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
|
|
1641
|
+
const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
|
|
1642
|
+
if (_date.getTime() >= startOfNextYear.getTime()) return year + 1;
|
|
1643
|
+
else if (_date.getTime() >= startOfThisYear.getTime()) return year;
|
|
1644
|
+
else return year - 1;
|
|
1645
|
+
}
|
|
1646
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
1647
|
+
/**
|
|
1648
|
+
* The {@link startOfISOWeekYear} function options.
|
|
1649
|
+
*/
|
|
1650
|
+
/**
|
|
1651
|
+
* @name startOfISOWeekYear
|
|
1652
|
+
* @category ISO Week-Numbering Year Helpers
|
|
1653
|
+
* @summary Return the start of an ISO week-numbering year for the given date.
|
|
1654
|
+
*
|
|
1655
|
+
* @description
|
|
1656
|
+
* Return the start of an ISO week-numbering year,
|
|
1657
|
+
* which always starts 3 days before the year's first Thursday.
|
|
1658
|
+
* The result will be in the local timezone.
|
|
1659
|
+
*
|
|
1660
|
+
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
1661
|
+
*
|
|
1662
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1663
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1664
|
+
*
|
|
1665
|
+
* @param date - The original date
|
|
1666
|
+
* @param options - An object with options
|
|
1667
|
+
*
|
|
1668
|
+
* @returns The start of an ISO week-numbering year
|
|
1669
|
+
*
|
|
1670
|
+
* @example
|
|
1671
|
+
* // The start of an ISO week-numbering year for 2 July 2005:
|
|
1672
|
+
* const result = startOfISOWeekYear(new Date(2005, 6, 2))
|
|
1673
|
+
* //=> Mon Jan 03 2005 00:00:00
|
|
1674
|
+
*/
|
|
1675
|
+
function startOfISOWeekYear(date, options) {
|
|
1676
|
+
const year = getISOWeekYear(date, options);
|
|
1677
|
+
const fourthOfJanuary = constructFrom(options?.in || date, 0);
|
|
1678
|
+
fourthOfJanuary.setFullYear(year, 0, 4);
|
|
1679
|
+
fourthOfJanuary.setHours(0, 0, 0, 0);
|
|
1680
|
+
return startOfISOWeek(fourthOfJanuary);
|
|
1681
|
+
}
|
|
1682
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
|
|
1945
1683
|
/**
|
|
1946
1684
|
* The {@link getISOWeek} function options.
|
|
1947
1685
|
*/
|
|
@@ -1970,8 +1708,7 @@ function getISOWeek(date, options) {
|
|
|
1970
1708
|
const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
|
|
1971
1709
|
return Math.round(diff / millisecondsInWeek) + 1;
|
|
1972
1710
|
}
|
|
1973
|
-
|
|
1974
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
|
|
1711
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
|
|
1975
1712
|
/**
|
|
1976
1713
|
* The {@link getWeekYear} function options.
|
|
1977
1714
|
*/
|
|
@@ -2026,8 +1763,7 @@ function getWeekYear(date, options) {
|
|
|
2026
1763
|
else if (+_date >= +startOfThisYear) return year;
|
|
2027
1764
|
else return year - 1;
|
|
2028
1765
|
}
|
|
2029
|
-
|
|
2030
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
|
|
1766
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
|
|
2031
1767
|
/**
|
|
2032
1768
|
* The {@link startOfWeekYear} function options.
|
|
2033
1769
|
*/
|
|
@@ -2077,8 +1813,7 @@ function startOfWeekYear(date, options) {
|
|
|
2077
1813
|
firstWeek.setHours(0, 0, 0, 0);
|
|
2078
1814
|
return startOfWeek(firstWeek, options);
|
|
2079
1815
|
}
|
|
2080
|
-
|
|
2081
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
|
|
1816
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
|
|
2082
1817
|
/**
|
|
2083
1818
|
* The {@link getWeek} function options.
|
|
2084
1819
|
*/
|
|
@@ -2121,13 +1856,11 @@ function getWeek(date, options) {
|
|
|
2121
1856
|
const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
|
|
2122
1857
|
return Math.round(diff / millisecondsInWeek) + 1;
|
|
2123
1858
|
}
|
|
2124
|
-
|
|
2125
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
1859
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
2126
1860
|
function addLeadingZeros(number, targetLength) {
|
|
2127
1861
|
return (number < 0 ? "-" : "") + Math.abs(number).toString().padStart(targetLength, "0");
|
|
2128
1862
|
}
|
|
2129
|
-
|
|
2130
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
|
|
1863
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
|
|
2131
1864
|
const lightFormatters = {
|
|
2132
1865
|
y(date, token) {
|
|
2133
1866
|
const signedYear = date.getFullYear();
|
|
@@ -2169,8 +1902,7 @@ const lightFormatters = {
|
|
|
2169
1902
|
return addLeadingZeros(Math.trunc(milliseconds * Math.pow(10, numberOfDigits - 3)), token.length);
|
|
2170
1903
|
}
|
|
2171
1904
|
};
|
|
2172
|
-
|
|
2173
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js
|
|
1905
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js
|
|
2174
1906
|
const dayPeriodEnum = {
|
|
2175
1907
|
am: "am",
|
|
2176
1908
|
pm: "pm",
|
|
@@ -2579,8 +2311,7 @@ function formatTimezone(offset, delimiter = "") {
|
|
|
2579
2311
|
const minutes = addLeadingZeros(absOffset % 60, 2);
|
|
2580
2312
|
return sign + hours + delimiter + minutes;
|
|
2581
2313
|
}
|
|
2582
|
-
|
|
2583
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
|
|
2314
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
|
|
2584
2315
|
const dateLongFormatter = (pattern, formatLong) => {
|
|
2585
2316
|
switch (pattern) {
|
|
2586
2317
|
case "P": return formatLong.date({ width: "short" });
|
|
@@ -2621,8 +2352,7 @@ const longFormatters = {
|
|
|
2621
2352
|
p: timeLongFormatter,
|
|
2622
2353
|
P: dateTimeLongFormatter
|
|
2623
2354
|
};
|
|
2624
|
-
|
|
2625
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js
|
|
2355
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js
|
|
2626
2356
|
const dayOfYearTokenRE = /^D+$/;
|
|
2627
2357
|
const weekYearTokenRE = /^Y+$/;
|
|
2628
2358
|
const throwTokens = [
|
|
@@ -2642,12 +2372,82 @@ function warnOrThrowProtectedError(token, format, input) {
|
|
|
2642
2372
|
console.warn(_message);
|
|
2643
2373
|
if (throwTokens.includes(token)) throw new RangeError(_message);
|
|
2644
2374
|
}
|
|
2645
|
-
function message(token, format, input) {
|
|
2646
|
-
const subject = token[0] === "Y" ? "years" : "days of the month";
|
|
2647
|
-
return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2375
|
+
function message(token, format, input) {
|
|
2376
|
+
const subject = token[0] === "Y" ? "years" : "days of the month";
|
|
2377
|
+
return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2378
|
+
}
|
|
2379
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
2380
|
+
/**
|
|
2381
|
+
* @name isDate
|
|
2382
|
+
* @category Common Helpers
|
|
2383
|
+
* @summary Is the given value a date?
|
|
2384
|
+
*
|
|
2385
|
+
* @description
|
|
2386
|
+
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
2387
|
+
*
|
|
2388
|
+
* @param value - The value to check
|
|
2389
|
+
*
|
|
2390
|
+
* @returns True if the given value is a date
|
|
2391
|
+
*
|
|
2392
|
+
* @example
|
|
2393
|
+
* // For a valid date:
|
|
2394
|
+
* const result = isDate(new Date())
|
|
2395
|
+
* //=> true
|
|
2396
|
+
*
|
|
2397
|
+
* @example
|
|
2398
|
+
* // For an invalid date:
|
|
2399
|
+
* const result = isDate(new Date(NaN))
|
|
2400
|
+
* //=> true
|
|
2401
|
+
*
|
|
2402
|
+
* @example
|
|
2403
|
+
* // For some value:
|
|
2404
|
+
* const result = isDate('2014-02-31')
|
|
2405
|
+
* //=> false
|
|
2406
|
+
*
|
|
2407
|
+
* @example
|
|
2408
|
+
* // For an object:
|
|
2409
|
+
* const result = isDate({})
|
|
2410
|
+
* //=> false
|
|
2411
|
+
*/
|
|
2412
|
+
function isDate(value) {
|
|
2413
|
+
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
2414
|
+
}
|
|
2415
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
|
|
2416
|
+
/**
|
|
2417
|
+
* @name isValid
|
|
2418
|
+
* @category Common Helpers
|
|
2419
|
+
* @summary Is the given date valid?
|
|
2420
|
+
*
|
|
2421
|
+
* @description
|
|
2422
|
+
* Returns false if argument is Invalid Date and true otherwise.
|
|
2423
|
+
* Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
|
|
2424
|
+
* Invalid Date is a Date, whose time value is NaN.
|
|
2425
|
+
*
|
|
2426
|
+
* Time value of Date: http://es5.github.io/#x15.9.1.1
|
|
2427
|
+
*
|
|
2428
|
+
* @param date - The date to check
|
|
2429
|
+
*
|
|
2430
|
+
* @returns The date is valid
|
|
2431
|
+
*
|
|
2432
|
+
* @example
|
|
2433
|
+
* // For the valid date:
|
|
2434
|
+
* const result = isValid(new Date(2014, 1, 31))
|
|
2435
|
+
* //=> true
|
|
2436
|
+
*
|
|
2437
|
+
* @example
|
|
2438
|
+
* // For the value, convertible into a date:
|
|
2439
|
+
* const result = isValid(1393804800000)
|
|
2440
|
+
* //=> true
|
|
2441
|
+
*
|
|
2442
|
+
* @example
|
|
2443
|
+
* // For the invalid date:
|
|
2444
|
+
* const result = isValid(new Date(''))
|
|
2445
|
+
* //=> false
|
|
2446
|
+
*/
|
|
2447
|
+
function isValid(date) {
|
|
2448
|
+
return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
|
|
2648
2449
|
}
|
|
2649
|
-
|
|
2650
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
|
|
2450
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
|
|
2651
2451
|
const formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
|
|
2652
2452
|
const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
2653
2453
|
const escapedStringRegExp = /^'([^]*?)'?$/;
|
|
@@ -2993,40 +2793,7 @@ function cleanEscapedString(input) {
|
|
|
2993
2793
|
if (!matched) return input;
|
|
2994
2794
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2995
2795
|
}
|
|
2996
|
-
|
|
2997
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDaysInMonth.js
|
|
2998
|
-
/**
|
|
2999
|
-
* The {@link getDaysInMonth} function options.
|
|
3000
|
-
*/
|
|
3001
|
-
/**
|
|
3002
|
-
* @name getDaysInMonth
|
|
3003
|
-
* @category Month Helpers
|
|
3004
|
-
* @summary Get the number of days in a month of the given date.
|
|
3005
|
-
*
|
|
3006
|
-
* @description
|
|
3007
|
-
* Get the number of days in a month of the given date, considering the context if provided.
|
|
3008
|
-
*
|
|
3009
|
-
* @param date - The given date
|
|
3010
|
-
* @param options - An object with options
|
|
3011
|
-
*
|
|
3012
|
-
* @returns The number of days in a month
|
|
3013
|
-
*
|
|
3014
|
-
* @example
|
|
3015
|
-
* // How many days are in February 2000?
|
|
3016
|
-
* const result = getDaysInMonth(new Date(2000, 1))
|
|
3017
|
-
* //=> 29
|
|
3018
|
-
*/
|
|
3019
|
-
function getDaysInMonth(date, options) {
|
|
3020
|
-
const _date = toDate(date, options?.in);
|
|
3021
|
-
const year = _date.getFullYear();
|
|
3022
|
-
const monthIndex = _date.getMonth();
|
|
3023
|
-
const lastDayOfMonth = constructFrom(_date, 0);
|
|
3024
|
-
lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
|
|
3025
|
-
lastDayOfMonth.setHours(0, 0, 0, 0);
|
|
3026
|
-
return lastDayOfMonth.getDate();
|
|
3027
|
-
}
|
|
3028
|
-
//#endregion
|
|
3029
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMonth.js
|
|
2796
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMonth.js
|
|
3030
2797
|
/**
|
|
3031
2798
|
* The {@link getMonth} function options.
|
|
3032
2799
|
*/
|
|
@@ -3051,8 +2818,7 @@ function getDaysInMonth(date, options) {
|
|
|
3051
2818
|
function getMonth(date, options) {
|
|
3052
2819
|
return toDate(date, options?.in).getMonth();
|
|
3053
2820
|
}
|
|
3054
|
-
|
|
3055
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getYear.js
|
|
2821
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getYear.js
|
|
3056
2822
|
/**
|
|
3057
2823
|
* The {@link getYear} function options.
|
|
3058
2824
|
*/
|
|
@@ -3077,8 +2843,7 @@ function getMonth(date, options) {
|
|
|
3077
2843
|
function getYear(date, options) {
|
|
3078
2844
|
return toDate(date, options?.in).getFullYear();
|
|
3079
2845
|
}
|
|
3080
|
-
|
|
3081
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
|
|
2846
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
|
|
3082
2847
|
/**
|
|
3083
2848
|
* @name isAfter
|
|
3084
2849
|
* @category Common Helpers
|
|
@@ -3100,8 +2865,7 @@ function getYear(date, options) {
|
|
|
3100
2865
|
function isAfter(date, dateToCompare) {
|
|
3101
2866
|
return +toDate(date) > +toDate(dateToCompare);
|
|
3102
2867
|
}
|
|
3103
|
-
|
|
3104
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
|
|
2868
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
|
|
3105
2869
|
/**
|
|
3106
2870
|
* @name isBefore
|
|
3107
2871
|
* @category Common Helpers
|
|
@@ -3123,8 +2887,44 @@ function isAfter(date, dateToCompare) {
|
|
|
3123
2887
|
function isBefore(date, dateToCompare) {
|
|
3124
2888
|
return +toDate(date) < +toDate(dateToCompare);
|
|
3125
2889
|
}
|
|
3126
|
-
|
|
3127
|
-
|
|
2890
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
|
|
2891
|
+
/**
|
|
2892
|
+
* The {@link isSameDay} function options.
|
|
2893
|
+
*/
|
|
2894
|
+
/**
|
|
2895
|
+
* @name isSameDay
|
|
2896
|
+
* @category Day Helpers
|
|
2897
|
+
* @summary Are the given dates in the same day (and year and month)?
|
|
2898
|
+
*
|
|
2899
|
+
* @description
|
|
2900
|
+
* Are the given dates in the same day (and year and month)?
|
|
2901
|
+
*
|
|
2902
|
+
* @param laterDate - The first date to check
|
|
2903
|
+
* @param earlierDate - The second date to check
|
|
2904
|
+
* @param options - An object with options
|
|
2905
|
+
*
|
|
2906
|
+
* @returns The dates are in the same day (and year and month)
|
|
2907
|
+
*
|
|
2908
|
+
* @example
|
|
2909
|
+
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
|
|
2910
|
+
* const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
|
|
2911
|
+
* //=> true
|
|
2912
|
+
*
|
|
2913
|
+
* @example
|
|
2914
|
+
* // Are 4 September and 4 October in the same day?
|
|
2915
|
+
* const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
|
|
2916
|
+
* //=> false
|
|
2917
|
+
*
|
|
2918
|
+
* @example
|
|
2919
|
+
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
|
|
2920
|
+
* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
|
|
2921
|
+
* //=> false
|
|
2922
|
+
*/
|
|
2923
|
+
function isSameDay(laterDate, earlierDate, options) {
|
|
2924
|
+
const [dateLeft_, dateRight_] = normalizeDates(options?.in, laterDate, earlierDate);
|
|
2925
|
+
return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
|
|
2926
|
+
}
|
|
2927
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
|
|
3128
2928
|
/**
|
|
3129
2929
|
* The {@link isSameMonth} function options.
|
|
3130
2930
|
*/
|
|
@@ -3156,8 +2956,7 @@ function isSameMonth(laterDate, earlierDate, options) {
|
|
|
3156
2956
|
const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
|
|
3157
2957
|
return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth();
|
|
3158
2958
|
}
|
|
3159
|
-
|
|
3160
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameYear.js
|
|
2959
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameYear.js
|
|
3161
2960
|
/**
|
|
3162
2961
|
* The {@link isSameYear} function options.
|
|
3163
2962
|
*/
|
|
@@ -3184,8 +2983,116 @@ function isSameYear(laterDate, earlierDate, options) {
|
|
|
3184
2983
|
const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
|
|
3185
2984
|
return laterDate_.getFullYear() === earlierDate_.getFullYear();
|
|
3186
2985
|
}
|
|
3187
|
-
|
|
3188
|
-
|
|
2986
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/max.js
|
|
2987
|
+
/**
|
|
2988
|
+
* The {@link max} function options.
|
|
2989
|
+
*/
|
|
2990
|
+
/**
|
|
2991
|
+
* @name max
|
|
2992
|
+
* @category Common Helpers
|
|
2993
|
+
* @summary Return the latest of the given dates.
|
|
2994
|
+
*
|
|
2995
|
+
* @description
|
|
2996
|
+
* Return the latest of the given dates.
|
|
2997
|
+
*
|
|
2998
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
2999
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
3000
|
+
*
|
|
3001
|
+
* @param dates - The dates to compare
|
|
3002
|
+
*
|
|
3003
|
+
* @returns The latest of the dates
|
|
3004
|
+
*
|
|
3005
|
+
* @example
|
|
3006
|
+
* // Which of these dates is the latest?
|
|
3007
|
+
* const result = max([
|
|
3008
|
+
* new Date(1989, 6, 10),
|
|
3009
|
+
* new Date(1987, 1, 11),
|
|
3010
|
+
* new Date(1995, 6, 2),
|
|
3011
|
+
* new Date(1990, 0, 1)
|
|
3012
|
+
* ])
|
|
3013
|
+
* //=> Sun Jul 02 1995 00:00:00
|
|
3014
|
+
*/
|
|
3015
|
+
function max(dates, options) {
|
|
3016
|
+
let result;
|
|
3017
|
+
let context = options?.in;
|
|
3018
|
+
dates.forEach((date) => {
|
|
3019
|
+
if (!context && typeof date === "object") context = constructFrom.bind(null, date);
|
|
3020
|
+
const date_ = toDate(date, context);
|
|
3021
|
+
if (!result || result < date_ || isNaN(+date_)) result = date_;
|
|
3022
|
+
});
|
|
3023
|
+
return constructFrom(context, result || NaN);
|
|
3024
|
+
}
|
|
3025
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/min.js
|
|
3026
|
+
/**
|
|
3027
|
+
* The {@link min} function options.
|
|
3028
|
+
*/
|
|
3029
|
+
/**
|
|
3030
|
+
* @name min
|
|
3031
|
+
* @category Common Helpers
|
|
3032
|
+
* @summary Returns the earliest of the given dates.
|
|
3033
|
+
*
|
|
3034
|
+
* @description
|
|
3035
|
+
* Returns the earliest of the given dates.
|
|
3036
|
+
*
|
|
3037
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
3038
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
3039
|
+
*
|
|
3040
|
+
* @param dates - The dates to compare
|
|
3041
|
+
*
|
|
3042
|
+
* @returns The earliest of the dates
|
|
3043
|
+
*
|
|
3044
|
+
* @example
|
|
3045
|
+
* // Which of these dates is the earliest?
|
|
3046
|
+
* const result = min([
|
|
3047
|
+
* new Date(1989, 6, 10),
|
|
3048
|
+
* new Date(1987, 1, 11),
|
|
3049
|
+
* new Date(1995, 6, 2),
|
|
3050
|
+
* new Date(1990, 0, 1)
|
|
3051
|
+
* ])
|
|
3052
|
+
* //=> Wed Feb 11 1987 00:00:00
|
|
3053
|
+
*/
|
|
3054
|
+
function min(dates, options) {
|
|
3055
|
+
let result;
|
|
3056
|
+
let context = options?.in;
|
|
3057
|
+
dates.forEach((date) => {
|
|
3058
|
+
if (!context && typeof date === "object") context = constructFrom.bind(null, date);
|
|
3059
|
+
const date_ = toDate(date, context);
|
|
3060
|
+
if (!result || result > date_ || isNaN(+date_)) result = date_;
|
|
3061
|
+
});
|
|
3062
|
+
return constructFrom(context, result || NaN);
|
|
3063
|
+
}
|
|
3064
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDaysInMonth.js
|
|
3065
|
+
/**
|
|
3066
|
+
* The {@link getDaysInMonth} function options.
|
|
3067
|
+
*/
|
|
3068
|
+
/**
|
|
3069
|
+
* @name getDaysInMonth
|
|
3070
|
+
* @category Month Helpers
|
|
3071
|
+
* @summary Get the number of days in a month of the given date.
|
|
3072
|
+
*
|
|
3073
|
+
* @description
|
|
3074
|
+
* Get the number of days in a month of the given date, considering the context if provided.
|
|
3075
|
+
*
|
|
3076
|
+
* @param date - The given date
|
|
3077
|
+
* @param options - An object with options
|
|
3078
|
+
*
|
|
3079
|
+
* @returns The number of days in a month
|
|
3080
|
+
*
|
|
3081
|
+
* @example
|
|
3082
|
+
* // How many days are in February 2000?
|
|
3083
|
+
* const result = getDaysInMonth(new Date(2000, 1))
|
|
3084
|
+
* //=> 29
|
|
3085
|
+
*/
|
|
3086
|
+
function getDaysInMonth(date, options) {
|
|
3087
|
+
const _date = toDate(date, options?.in);
|
|
3088
|
+
const year = _date.getFullYear();
|
|
3089
|
+
const monthIndex = _date.getMonth();
|
|
3090
|
+
const lastDayOfMonth = constructFrom(_date, 0);
|
|
3091
|
+
lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
|
|
3092
|
+
lastDayOfMonth.setHours(0, 0, 0, 0);
|
|
3093
|
+
return lastDayOfMonth.getDate();
|
|
3094
|
+
}
|
|
3095
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMonth.js
|
|
3189
3096
|
/**
|
|
3190
3097
|
* The {@link setMonth} function options.
|
|
3191
3098
|
*/
|
|
@@ -3222,8 +3129,7 @@ function setMonth(date, month, options) {
|
|
|
3222
3129
|
_date.setMonth(month, Math.min(day, daysInMonth));
|
|
3223
3130
|
return _date;
|
|
3224
3131
|
}
|
|
3225
|
-
|
|
3226
|
-
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setYear.js
|
|
3132
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setYear.js
|
|
3227
3133
|
/**
|
|
3228
3134
|
* The {@link setYear} function options.
|
|
3229
3135
|
*/
|
|
@@ -3255,8 +3161,40 @@ function setYear(date, year, options) {
|
|
|
3255
3161
|
date_.setFullYear(year);
|
|
3256
3162
|
return date_;
|
|
3257
3163
|
}
|
|
3258
|
-
|
|
3259
|
-
|
|
3164
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
|
|
3165
|
+
/**
|
|
3166
|
+
* The {@link startOfMonth} function options.
|
|
3167
|
+
*/
|
|
3168
|
+
/**
|
|
3169
|
+
* @name startOfMonth
|
|
3170
|
+
* @category Month Helpers
|
|
3171
|
+
* @summary Return the start of a month for the given date.
|
|
3172
|
+
*
|
|
3173
|
+
* @description
|
|
3174
|
+
* Return the start of a month for the given date. The result will be in the local timezone.
|
|
3175
|
+
*
|
|
3176
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.
|
|
3177
|
+
* Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
3178
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,
|
|
3179
|
+
* or inferred from the arguments.
|
|
3180
|
+
*
|
|
3181
|
+
* @param date - The original date
|
|
3182
|
+
* @param options - An object with options
|
|
3183
|
+
*
|
|
3184
|
+
* @returns The start of a month
|
|
3185
|
+
*
|
|
3186
|
+
* @example
|
|
3187
|
+
* // The start of a month for 2 September 2014 11:55:00:
|
|
3188
|
+
* const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
|
|
3189
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
3190
|
+
*/
|
|
3191
|
+
function startOfMonth(date, options) {
|
|
3192
|
+
const _date = toDate(date, options?.in);
|
|
3193
|
+
_date.setDate(1);
|
|
3194
|
+
_date.setHours(0, 0, 0, 0);
|
|
3195
|
+
return _date;
|
|
3196
|
+
}
|
|
3197
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js
|
|
3260
3198
|
const FIVE_WEEKS = 5;
|
|
3261
3199
|
const FOUR_WEEKS = 4;
|
|
3262
3200
|
/**
|
|
@@ -3278,8 +3216,7 @@ function getBroadcastWeeksInMonth(month, dateLib) {
|
|
|
3278
3216
|
const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, 34);
|
|
3279
3217
|
return dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek) ? FIVE_WEEKS : FOUR_WEEKS;
|
|
3280
3218
|
}
|
|
3281
|
-
|
|
3282
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js
|
|
3219
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js
|
|
3283
3220
|
/**
|
|
3284
3221
|
* Returns the start date of the week in the broadcast calendar.
|
|
3285
3222
|
*
|
|
@@ -3299,8 +3236,7 @@ function startOfBroadcastWeek(date, dateLib) {
|
|
|
3299
3236
|
else if (dayOfWeek === 0) return dateLib.addDays(firstOfMonth, -6);
|
|
3300
3237
|
else return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));
|
|
3301
3238
|
}
|
|
3302
|
-
|
|
3303
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js
|
|
3239
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js
|
|
3304
3240
|
/**
|
|
3305
3241
|
* Returns the end date of the week in the broadcast calendar.
|
|
3306
3242
|
*
|
|
@@ -3317,8 +3253,7 @@ function endOfBroadcastWeek(date, dateLib) {
|
|
|
3317
3253
|
const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);
|
|
3318
3254
|
return dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
|
|
3319
3255
|
}
|
|
3320
|
-
|
|
3321
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/locale/en-US.js
|
|
3256
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/locale/en-US.js
|
|
3322
3257
|
/** English (United States) locale extended with DayPicker-specific translations. */
|
|
3323
3258
|
const enUS = {
|
|
3324
3259
|
...enUS$1,
|
|
@@ -3373,8 +3308,7 @@ const enUS = {
|
|
|
3373
3308
|
}
|
|
3374
3309
|
}
|
|
3375
3310
|
};
|
|
3376
|
-
|
|
3377
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/classes/DateLib.js
|
|
3311
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/classes/DateLib.js
|
|
3378
3312
|
/**
|
|
3379
3313
|
* A wrapper class around [date-fns](http://date-fns.org) that provides utility
|
|
3380
3314
|
* methods for date manipulation and formatting.
|
|
@@ -3841,8 +3775,7 @@ DateLib.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
3841
3775
|
* @since 9.2.0
|
|
3842
3776
|
*/
|
|
3843
3777
|
const defaultDateLib = new DateLib();
|
|
3844
|
-
|
|
3845
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js
|
|
3778
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js
|
|
3846
3779
|
/**
|
|
3847
3780
|
* Represents a day displayed in the calendar.
|
|
3848
3781
|
*
|
|
@@ -3871,8 +3804,7 @@ var CalendarDay = class {
|
|
|
3871
3804
|
return this.dateLib.isSameDay(day.date, this.date) && this.dateLib.isSameMonth(day.displayMonth, this.displayMonth);
|
|
3872
3805
|
}
|
|
3873
3806
|
};
|
|
3874
|
-
|
|
3875
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js
|
|
3807
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js
|
|
3876
3808
|
/**
|
|
3877
3809
|
* Represents a month in a calendar year.
|
|
3878
3810
|
*
|
|
@@ -3885,8 +3817,7 @@ var CalendarMonth = class {
|
|
|
3885
3817
|
this.weeks = weeks;
|
|
3886
3818
|
}
|
|
3887
3819
|
};
|
|
3888
|
-
|
|
3889
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js
|
|
3820
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js
|
|
3890
3821
|
/**
|
|
3891
3822
|
* Represents a week in a calendar month.
|
|
3892
3823
|
*
|
|
@@ -3898,8 +3829,7 @@ var CalendarWeek = class {
|
|
|
3898
3829
|
this.weekNumber = weekNumber;
|
|
3899
3830
|
}
|
|
3900
3831
|
};
|
|
3901
|
-
|
|
3902
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
|
|
3832
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
|
|
3903
3833
|
/**
|
|
3904
3834
|
* Render the label in the month caption.
|
|
3905
3835
|
*
|
|
@@ -3909,8 +3839,7 @@ var CalendarWeek = class {
|
|
|
3909
3839
|
function CaptionLabel(props) {
|
|
3910
3840
|
return React.createElement("span", { ...props });
|
|
3911
3841
|
}
|
|
3912
|
-
|
|
3913
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Chevron.js
|
|
3842
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Chevron.js
|
|
3914
3843
|
/**
|
|
3915
3844
|
* Render the chevron icon used in the navigation buttons and dropdowns.
|
|
3916
3845
|
*
|
|
@@ -3927,8 +3856,7 @@ function Chevron(props) {
|
|
|
3927
3856
|
viewBox: "0 0 24 24"
|
|
3928
3857
|
}, orientation === "up" && React.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }), orientation === "down" && React.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }), orientation === "left" && React.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }), orientation === "right" && React.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" }));
|
|
3929
3858
|
}
|
|
3930
|
-
|
|
3931
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Day.js
|
|
3859
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Day.js
|
|
3932
3860
|
/**
|
|
3933
3861
|
* Render a grid cell for a specific day in the calendar.
|
|
3934
3862
|
*
|
|
@@ -3943,8 +3871,7 @@ function Day(props) {
|
|
|
3943
3871
|
const { day, modifiers, ...tdProps } = props;
|
|
3944
3872
|
return React.createElement("td", { ...tdProps });
|
|
3945
3873
|
}
|
|
3946
|
-
|
|
3947
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/DayButton.js
|
|
3874
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/DayButton.js
|
|
3948
3875
|
/**
|
|
3949
3876
|
* Render a button for a specific day in the calendar.
|
|
3950
3877
|
*
|
|
@@ -3962,8 +3889,7 @@ function DayButton(props) {
|
|
|
3962
3889
|
...buttonProps
|
|
3963
3890
|
});
|
|
3964
3891
|
}
|
|
3965
|
-
|
|
3966
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/UI.js
|
|
3892
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/UI.js
|
|
3967
3893
|
/**
|
|
3968
3894
|
* Enum representing the UI elements composing DayPicker. These elements are
|
|
3969
3895
|
* mapped to {@link CustomComponents}, {@link ClassNames}, and {@link Styles}.
|
|
@@ -4084,8 +4010,7 @@ var Animation;
|
|
|
4084
4010
|
/** The exiting caption when it disappears before the entering month. */
|
|
4085
4011
|
Animation["caption_before_exit"] = "caption_before_exit";
|
|
4086
4012
|
})(Animation || (Animation = {}));
|
|
4087
|
-
|
|
4088
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/useDayPicker.js
|
|
4013
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/useDayPicker.js
|
|
4089
4014
|
/** @ignore */
|
|
4090
4015
|
const dayPickerContext = createContext(void 0);
|
|
4091
4016
|
/**
|
|
@@ -4105,8 +4030,7 @@ function useDayPicker() {
|
|
|
4105
4030
|
if (context === void 0) throw new Error("useDayPicker() must be used within a custom component.");
|
|
4106
4031
|
return context;
|
|
4107
4032
|
}
|
|
4108
|
-
|
|
4109
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Dropdown.js
|
|
4033
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Dropdown.js
|
|
4110
4034
|
/**
|
|
4111
4035
|
* Render a dropdown component for navigation in the calendar.
|
|
4112
4036
|
*
|
|
@@ -4140,8 +4064,7 @@ function Dropdown(props) {
|
|
|
4140
4064
|
style: styles?.[UI.Chevron]
|
|
4141
4065
|
})));
|
|
4142
4066
|
}
|
|
4143
|
-
|
|
4144
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.js
|
|
4067
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/DropdownNav.js
|
|
4145
4068
|
/**
|
|
4146
4069
|
* Render the navigation dropdowns for the calendar.
|
|
4147
4070
|
*
|
|
@@ -4151,8 +4074,7 @@ function Dropdown(props) {
|
|
|
4151
4074
|
function DropdownNav(props) {
|
|
4152
4075
|
return React.createElement("div", { ...props });
|
|
4153
4076
|
}
|
|
4154
|
-
|
|
4155
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Footer.js
|
|
4077
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Footer.js
|
|
4156
4078
|
/**
|
|
4157
4079
|
* Render the footer of the calendar.
|
|
4158
4080
|
*
|
|
@@ -4162,8 +4084,7 @@ function DropdownNav(props) {
|
|
|
4162
4084
|
function Footer(props) {
|
|
4163
4085
|
return React.createElement("div", { ...props });
|
|
4164
4086
|
}
|
|
4165
|
-
|
|
4166
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Month.js
|
|
4087
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Month.js
|
|
4167
4088
|
/**
|
|
4168
4089
|
* Render the grid with the weekday header row and the weeks for a specific
|
|
4169
4090
|
* month.
|
|
@@ -4175,8 +4096,7 @@ function Month(props) {
|
|
|
4175
4096
|
const { calendarMonth, displayIndex, ...divProps } = props;
|
|
4176
4097
|
return React.createElement("div", { ...divProps }, props.children);
|
|
4177
4098
|
}
|
|
4178
|
-
|
|
4179
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.js
|
|
4099
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/MonthCaption.js
|
|
4180
4100
|
/**
|
|
4181
4101
|
* Render the caption for a month in the calendar.
|
|
4182
4102
|
*
|
|
@@ -4187,8 +4107,7 @@ function MonthCaption(props) {
|
|
|
4187
4107
|
const { calendarMonth, displayIndex, ...divProps } = props;
|
|
4188
4108
|
return React.createElement("div", { ...divProps });
|
|
4189
4109
|
}
|
|
4190
|
-
|
|
4191
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.js
|
|
4110
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/MonthGrid.js
|
|
4192
4111
|
/**
|
|
4193
4112
|
* Render the grid of days for a specific month.
|
|
4194
4113
|
*
|
|
@@ -4198,8 +4117,7 @@ function MonthCaption(props) {
|
|
|
4198
4117
|
function MonthGrid(props) {
|
|
4199
4118
|
return React.createElement("table", { ...props });
|
|
4200
4119
|
}
|
|
4201
|
-
|
|
4202
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Months.js
|
|
4120
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Months.js
|
|
4203
4121
|
/**
|
|
4204
4122
|
* Render a container wrapping the month grids.
|
|
4205
4123
|
*
|
|
@@ -4209,8 +4127,7 @@ function MonthGrid(props) {
|
|
|
4209
4127
|
function Months(props) {
|
|
4210
4128
|
return React.createElement("div", { ...props });
|
|
4211
4129
|
}
|
|
4212
|
-
|
|
4213
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
4130
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
4214
4131
|
/**
|
|
4215
4132
|
* Render a dropdown to navigate between months in the calendar.
|
|
4216
4133
|
*
|
|
@@ -4221,8 +4138,7 @@ function MonthsDropdown(props) {
|
|
|
4221
4138
|
const { components } = useDayPicker();
|
|
4222
4139
|
return React.createElement(components.Dropdown, { ...props });
|
|
4223
4140
|
}
|
|
4224
|
-
|
|
4225
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Nav.js
|
|
4141
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Nav.js
|
|
4226
4142
|
/**
|
|
4227
4143
|
* Render the navigation toolbar with buttons to navigate between months.
|
|
4228
4144
|
*
|
|
@@ -4266,8 +4182,7 @@ function Nav(props) {
|
|
|
4266
4182
|
style: styles?.[UI.Chevron]
|
|
4267
4183
|
})));
|
|
4268
4184
|
}
|
|
4269
|
-
|
|
4270
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
|
|
4185
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
|
|
4271
4186
|
/**
|
|
4272
4187
|
* Render the button to navigate to the next month in the calendar.
|
|
4273
4188
|
*
|
|
@@ -4277,8 +4192,7 @@ function Nav(props) {
|
|
|
4277
4192
|
function NextMonthButton(props) {
|
|
4278
4193
|
return React.createElement("button", { ...props });
|
|
4279
4194
|
}
|
|
4280
|
-
|
|
4281
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Option.js
|
|
4195
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Option.js
|
|
4282
4196
|
/**
|
|
4283
4197
|
* Render an `option` element.
|
|
4284
4198
|
*
|
|
@@ -4288,8 +4202,7 @@ function NextMonthButton(props) {
|
|
|
4288
4202
|
function Option(props) {
|
|
4289
4203
|
return React.createElement("option", { ...props });
|
|
4290
4204
|
}
|
|
4291
|
-
|
|
4292
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
|
|
4205
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
|
|
4293
4206
|
/**
|
|
4294
4207
|
* Render the button to navigate to the previous month in the calendar.
|
|
4295
4208
|
*
|
|
@@ -4299,8 +4212,7 @@ function Option(props) {
|
|
|
4299
4212
|
function PreviousMonthButton(props) {
|
|
4300
4213
|
return React.createElement("button", { ...props });
|
|
4301
4214
|
}
|
|
4302
|
-
|
|
4303
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Root.js
|
|
4215
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Root.js
|
|
4304
4216
|
/**
|
|
4305
4217
|
* Render the root element of the calendar.
|
|
4306
4218
|
*
|
|
@@ -4314,8 +4226,7 @@ function Root(props) {
|
|
|
4314
4226
|
ref: rootRef
|
|
4315
4227
|
});
|
|
4316
4228
|
}
|
|
4317
|
-
|
|
4318
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Select.js
|
|
4229
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Select.js
|
|
4319
4230
|
/**
|
|
4320
4231
|
* Render a `select` element.
|
|
4321
4232
|
*
|
|
@@ -4325,8 +4236,7 @@ function Root(props) {
|
|
|
4325
4236
|
function Select(props) {
|
|
4326
4237
|
return React.createElement("select", { ...props });
|
|
4327
4238
|
}
|
|
4328
|
-
|
|
4329
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Week.js
|
|
4239
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Week.js
|
|
4330
4240
|
/**
|
|
4331
4241
|
* Render a table row representing a week in the calendar.
|
|
4332
4242
|
*
|
|
@@ -4337,8 +4247,7 @@ function Week(props) {
|
|
|
4337
4247
|
const { week, ...trProps } = props;
|
|
4338
4248
|
return React.createElement("tr", { ...trProps });
|
|
4339
4249
|
}
|
|
4340
|
-
|
|
4341
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Weekday.js
|
|
4250
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Weekday.js
|
|
4342
4251
|
/**
|
|
4343
4252
|
* Render a table header cell with the name of a weekday (e.g., "Mo", "Tu").
|
|
4344
4253
|
*
|
|
@@ -4348,8 +4257,7 @@ function Week(props) {
|
|
|
4348
4257
|
function Weekday(props) {
|
|
4349
4258
|
return React.createElement("th", { ...props });
|
|
4350
4259
|
}
|
|
4351
|
-
|
|
4352
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Weekdays.js
|
|
4260
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Weekdays.js
|
|
4353
4261
|
/**
|
|
4354
4262
|
* Render the table row containing the weekday names.
|
|
4355
4263
|
*
|
|
@@ -4359,8 +4267,7 @@ function Weekday(props) {
|
|
|
4359
4267
|
function Weekdays(props) {
|
|
4360
4268
|
return React.createElement("thead", { "aria-hidden": true }, React.createElement("tr", { ...props }));
|
|
4361
4269
|
}
|
|
4362
|
-
|
|
4363
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.js
|
|
4270
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/WeekNumber.js
|
|
4364
4271
|
/**
|
|
4365
4272
|
* Render a table cell displaying the number of the week.
|
|
4366
4273
|
*
|
|
@@ -4371,8 +4278,7 @@ function WeekNumber(props) {
|
|
|
4371
4278
|
const { week, ...thProps } = props;
|
|
4372
4279
|
return React.createElement("th", { ...thProps });
|
|
4373
4280
|
}
|
|
4374
|
-
|
|
4375
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
|
|
4281
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
|
|
4376
4282
|
/**
|
|
4377
4283
|
* Render the header cell for the week numbers column.
|
|
4378
4284
|
*
|
|
@@ -4382,8 +4288,7 @@ function WeekNumber(props) {
|
|
|
4382
4288
|
function WeekNumberHeader(props) {
|
|
4383
4289
|
return React.createElement("th", { ...props });
|
|
4384
4290
|
}
|
|
4385
|
-
|
|
4386
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/Weeks.js
|
|
4291
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/Weeks.js
|
|
4387
4292
|
/**
|
|
4388
4293
|
* Render the container for the weeks in the month grid.
|
|
4389
4294
|
*
|
|
@@ -4393,8 +4298,7 @@ function WeekNumberHeader(props) {
|
|
|
4393
4298
|
function Weeks(props) {
|
|
4394
4299
|
return React.createElement("tbody", { ...props });
|
|
4395
4300
|
}
|
|
4396
|
-
|
|
4397
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
|
|
4301
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
|
|
4398
4302
|
/**
|
|
4399
4303
|
* Render a dropdown to navigate between years in the calendar.
|
|
4400
4304
|
*
|
|
@@ -4405,8 +4309,7 @@ function YearsDropdown(props) {
|
|
|
4405
4309
|
const { components } = useDayPicker();
|
|
4406
4310
|
return React.createElement(components.Dropdown, { ...props });
|
|
4407
4311
|
}
|
|
4408
|
-
|
|
4409
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/components/custom-components.js
|
|
4312
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/components/custom-components.js
|
|
4410
4313
|
var custom_components_exports = /* @__PURE__ */ __exportAll({
|
|
4411
4314
|
CaptionLabel: () => CaptionLabel,
|
|
4412
4315
|
Chevron: () => Chevron,
|
|
@@ -4434,8 +4337,7 @@ var custom_components_exports = /* @__PURE__ */ __exportAll({
|
|
|
4434
4337
|
Weeks: () => Weeks,
|
|
4435
4338
|
YearsDropdown: () => YearsDropdown
|
|
4436
4339
|
});
|
|
4437
|
-
|
|
4438
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
|
|
4340
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
|
|
4439
4341
|
/**
|
|
4440
4342
|
* Checks if a given date is within a specified date range.
|
|
4441
4343
|
*
|
|
@@ -4458,8 +4360,7 @@ function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDa
|
|
|
4458
4360
|
if (!excludeEnds && from) return isSameDay(from, date);
|
|
4459
4361
|
return false;
|
|
4460
4362
|
}
|
|
4461
|
-
|
|
4462
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/typeguards.js
|
|
4363
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/typeguards.js
|
|
4463
4364
|
/**
|
|
4464
4365
|
* Checks if the given value is of type {@link DateInterval}.
|
|
4465
4366
|
*
|
|
@@ -4521,8 +4422,7 @@ function isDayOfWeekType(value) {
|
|
|
4521
4422
|
function isDatesArray(value, dateLib) {
|
|
4522
4423
|
return Array.isArray(value) && value.every(dateLib.isDate);
|
|
4523
4424
|
}
|
|
4524
|
-
|
|
4525
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js
|
|
4425
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js
|
|
4526
4426
|
/**
|
|
4527
4427
|
* Checks if a given date matches at least one of the specified {@link Matcher}.
|
|
4528
4428
|
*
|
|
@@ -4558,8 +4458,7 @@ function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
|
|
|
4558
4458
|
return false;
|
|
4559
4459
|
});
|
|
4560
4460
|
}
|
|
4561
|
-
|
|
4562
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js
|
|
4461
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js
|
|
4563
4462
|
/**
|
|
4564
4463
|
* Creates a function to retrieve the modifiers for a given day.
|
|
4565
4464
|
*
|
|
@@ -4622,8 +4521,7 @@ function createGetModifiers(days, props, navStart, navEnd, dateLib) {
|
|
|
4622
4521
|
};
|
|
4623
4522
|
};
|
|
4624
4523
|
}
|
|
4625
|
-
|
|
4626
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js
|
|
4524
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js
|
|
4627
4525
|
/**
|
|
4628
4526
|
* Returns the class names for a day based on its modifiers.
|
|
4629
4527
|
*
|
|
@@ -4644,8 +4542,7 @@ function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames =
|
|
|
4644
4542
|
return previousValue;
|
|
4645
4543
|
}, [classNames[UI.Day]]);
|
|
4646
4544
|
}
|
|
4647
|
-
|
|
4648
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.js
|
|
4545
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getComponents.js
|
|
4649
4546
|
/**
|
|
4650
4547
|
* Merges custom components from the props with the default components.
|
|
4651
4548
|
*
|
|
@@ -4662,8 +4559,7 @@ function getComponents(customComponents) {
|
|
|
4662
4559
|
...customComponents
|
|
4663
4560
|
};
|
|
4664
4561
|
}
|
|
4665
|
-
|
|
4666
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js
|
|
4562
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js
|
|
4667
4563
|
/**
|
|
4668
4564
|
* Extracts `data-` attributes from the DayPicker props.
|
|
4669
4565
|
*
|
|
@@ -4687,8 +4583,7 @@ function getDataAttributes(props) {
|
|
|
4687
4583
|
});
|
|
4688
4584
|
return dataAttributes;
|
|
4689
4585
|
}
|
|
4690
|
-
|
|
4691
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js
|
|
4586
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js
|
|
4692
4587
|
/**
|
|
4693
4588
|
* Returns the default class names for the UI elements.
|
|
4694
4589
|
*
|
|
@@ -4706,8 +4601,7 @@ function getDefaultClassNames() {
|
|
|
4706
4601
|
for (const key in Animation) classNames[Animation[key]] = `rdp-${Animation[key]}`;
|
|
4707
4602
|
return classNames;
|
|
4708
4603
|
}
|
|
4709
|
-
|
|
4710
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js
|
|
4604
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js
|
|
4711
4605
|
/**
|
|
4712
4606
|
* Formats the caption of the month.
|
|
4713
4607
|
*
|
|
@@ -4723,8 +4617,7 @@ function getDefaultClassNames() {
|
|
|
4723
4617
|
function formatCaption(month, options, dateLib) {
|
|
4724
4618
|
return (dateLib ?? new DateLib(options)).formatMonthYear(month);
|
|
4725
4619
|
}
|
|
4726
|
-
|
|
4727
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.js
|
|
4620
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/formatDay.js
|
|
4728
4621
|
/**
|
|
4729
4622
|
* Formats the day date shown in the day cell.
|
|
4730
4623
|
*
|
|
@@ -4740,8 +4633,7 @@ function formatCaption(month, options, dateLib) {
|
|
|
4740
4633
|
function formatDay(date, options, dateLib) {
|
|
4741
4634
|
return (dateLib ?? new DateLib(options)).format(date, "d");
|
|
4742
4635
|
}
|
|
4743
|
-
|
|
4744
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js
|
|
4636
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js
|
|
4745
4637
|
/**
|
|
4746
4638
|
* Formats the month for the dropdown option label.
|
|
4747
4639
|
*
|
|
@@ -4756,8 +4648,7 @@ function formatDay(date, options, dateLib) {
|
|
|
4756
4648
|
function formatMonthDropdown(month, dateLib = defaultDateLib) {
|
|
4757
4649
|
return dateLib.format(month, "LLLL");
|
|
4758
4650
|
}
|
|
4759
|
-
|
|
4760
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js
|
|
4651
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js
|
|
4761
4652
|
/**
|
|
4762
4653
|
* Formats the name of a weekday to be displayed in the weekdays header.
|
|
4763
4654
|
*
|
|
@@ -4773,8 +4664,7 @@ function formatMonthDropdown(month, dateLib = defaultDateLib) {
|
|
|
4773
4664
|
function formatWeekdayName(weekday, options, dateLib) {
|
|
4774
4665
|
return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
|
|
4775
4666
|
}
|
|
4776
|
-
|
|
4777
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js
|
|
4667
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js
|
|
4778
4668
|
/**
|
|
4779
4669
|
* Formats the week number.
|
|
4780
4670
|
*
|
|
@@ -4790,8 +4680,7 @@ function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
|
|
|
4790
4680
|
if (weekNumber < 10) return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
|
|
4791
4681
|
return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
|
|
4792
4682
|
}
|
|
4793
|
-
|
|
4794
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js
|
|
4683
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js
|
|
4795
4684
|
/**
|
|
4796
4685
|
* Formats the header for the week number column.
|
|
4797
4686
|
*
|
|
@@ -4803,8 +4692,7 @@ function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
|
|
|
4803
4692
|
function formatWeekNumberHeader() {
|
|
4804
4693
|
return ``;
|
|
4805
4694
|
}
|
|
4806
|
-
|
|
4807
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js
|
|
4695
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js
|
|
4808
4696
|
/**
|
|
4809
4697
|
* Formats the year for the dropdown option label.
|
|
4810
4698
|
*
|
|
@@ -4818,8 +4706,7 @@ function formatWeekNumberHeader() {
|
|
|
4818
4706
|
function formatYearDropdown(year, dateLib = defaultDateLib) {
|
|
4819
4707
|
return dateLib.format(year, "yyyy");
|
|
4820
4708
|
}
|
|
4821
|
-
|
|
4822
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/formatters/index.js
|
|
4709
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/formatters/index.js
|
|
4823
4710
|
var formatters_exports = /* @__PURE__ */ __exportAll({
|
|
4824
4711
|
formatCaption: () => formatCaption,
|
|
4825
4712
|
formatDay: () => formatDay,
|
|
@@ -4829,8 +4716,7 @@ var formatters_exports = /* @__PURE__ */ __exportAll({
|
|
|
4829
4716
|
formatWeekdayName: () => formatWeekdayName,
|
|
4830
4717
|
formatYearDropdown: () => formatYearDropdown
|
|
4831
4718
|
});
|
|
4832
|
-
|
|
4833
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js
|
|
4719
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js
|
|
4834
4720
|
/**
|
|
4835
4721
|
* Merges custom formatters from the props with the default formatters.
|
|
4836
4722
|
*
|
|
@@ -4844,8 +4730,7 @@ function getFormatters(customFormatters) {
|
|
|
4844
4730
|
...customFormatters
|
|
4845
4731
|
};
|
|
4846
4732
|
}
|
|
4847
|
-
|
|
4848
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js
|
|
4733
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js
|
|
4849
4734
|
/**
|
|
4850
4735
|
* Generates the ARIA label for a day button.
|
|
4851
4736
|
*
|
|
@@ -4867,8 +4752,7 @@ function labelDayButton(date, modifiers, options, dateLib) {
|
|
|
4867
4752
|
if (modifiers.selected) label = `${label}, selected`;
|
|
4868
4753
|
return label;
|
|
4869
4754
|
}
|
|
4870
|
-
|
|
4871
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.js
|
|
4755
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelGrid.js
|
|
4872
4756
|
/**
|
|
4873
4757
|
* Generates the ARIA label for the month grid, which is announced when entering
|
|
4874
4758
|
* the grid.
|
|
@@ -4884,8 +4768,7 @@ function labelDayButton(date, modifiers, options, dateLib) {
|
|
|
4884
4768
|
function labelGrid(date, options, dateLib) {
|
|
4885
4769
|
return (dateLib ?? new DateLib(options)).formatMonthYear(date);
|
|
4886
4770
|
}
|
|
4887
|
-
|
|
4888
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js
|
|
4771
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js
|
|
4889
4772
|
/**
|
|
4890
4773
|
* Generates the label for a day grid cell when the calendar is not interactive.
|
|
4891
4774
|
*
|
|
@@ -4902,8 +4785,7 @@ function labelGridcell(date, modifiers, options, dateLib) {
|
|
|
4902
4785
|
if (modifiers?.today) label = `Today, ${label}`;
|
|
4903
4786
|
return label;
|
|
4904
4787
|
}
|
|
4905
|
-
|
|
4906
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js
|
|
4788
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js
|
|
4907
4789
|
/**
|
|
4908
4790
|
* Generates the ARIA label for the months dropdown.
|
|
4909
4791
|
*
|
|
@@ -4916,8 +4798,7 @@ function labelGridcell(date, modifiers, options, dateLib) {
|
|
|
4916
4798
|
function labelMonthDropdown(_options) {
|
|
4917
4799
|
return "Choose the Month";
|
|
4918
4800
|
}
|
|
4919
|
-
|
|
4920
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelNav.js
|
|
4801
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelNav.js
|
|
4921
4802
|
/**
|
|
4922
4803
|
* Generates the ARIA label for the navigation toolbar.
|
|
4923
4804
|
*
|
|
@@ -4929,8 +4810,7 @@ function labelMonthDropdown(_options) {
|
|
|
4929
4810
|
function labelNav() {
|
|
4930
4811
|
return "";
|
|
4931
4812
|
}
|
|
4932
|
-
|
|
4933
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelNext.js
|
|
4813
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelNext.js
|
|
4934
4814
|
const defaultLabel = "Go to the Next Month";
|
|
4935
4815
|
/**
|
|
4936
4816
|
* Generates the ARIA label for the "next month" button.
|
|
@@ -4945,8 +4825,7 @@ const defaultLabel = "Go to the Next Month";
|
|
|
4945
4825
|
function labelNext(_month, _options) {
|
|
4946
4826
|
return defaultLabel;
|
|
4947
4827
|
}
|
|
4948
|
-
|
|
4949
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js
|
|
4828
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js
|
|
4950
4829
|
/**
|
|
4951
4830
|
* Generates the ARIA label for the "previous month" button.
|
|
4952
4831
|
*
|
|
@@ -4960,8 +4839,7 @@ function labelNext(_month, _options) {
|
|
|
4960
4839
|
function labelPrevious(_month) {
|
|
4961
4840
|
return "Go to the Previous Month";
|
|
4962
4841
|
}
|
|
4963
|
-
|
|
4964
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js
|
|
4842
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js
|
|
4965
4843
|
/**
|
|
4966
4844
|
* Generates the ARIA label for a weekday column header.
|
|
4967
4845
|
*
|
|
@@ -4976,8 +4854,7 @@ function labelPrevious(_month) {
|
|
|
4976
4854
|
function labelWeekday(date, options, dateLib) {
|
|
4977
4855
|
return (dateLib ?? new DateLib(options)).format(date, "cccc");
|
|
4978
4856
|
}
|
|
4979
|
-
|
|
4980
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js
|
|
4857
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js
|
|
4981
4858
|
/**
|
|
4982
4859
|
* Generates the ARIA label for the week number cell (the first cell in a row).
|
|
4983
4860
|
*
|
|
@@ -4991,8 +4868,7 @@ function labelWeekday(date, options, dateLib) {
|
|
|
4991
4868
|
function labelWeekNumber(weekNumber, _options) {
|
|
4992
4869
|
return `Week ${weekNumber}`;
|
|
4993
4870
|
}
|
|
4994
|
-
|
|
4995
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js
|
|
4871
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js
|
|
4996
4872
|
/**
|
|
4997
4873
|
* Generates the ARIA label for the week number header element.
|
|
4998
4874
|
*
|
|
@@ -5005,8 +4881,7 @@ function labelWeekNumber(weekNumber, _options) {
|
|
|
5005
4881
|
function labelWeekNumberHeader(_options) {
|
|
5006
4882
|
return "Week Number";
|
|
5007
4883
|
}
|
|
5008
|
-
|
|
5009
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js
|
|
4884
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js
|
|
5010
4885
|
/**
|
|
5011
4886
|
* Generates the ARIA label for the years dropdown.
|
|
5012
4887
|
*
|
|
@@ -5019,8 +4894,7 @@ function labelWeekNumberHeader(_options) {
|
|
|
5019
4894
|
function labelYearDropdown(_options) {
|
|
5020
4895
|
return "Choose the Year";
|
|
5021
4896
|
}
|
|
5022
|
-
|
|
5023
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/labels/index.js
|
|
4897
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/labels/index.js
|
|
5024
4898
|
var labels_exports = /* @__PURE__ */ __exportAll({
|
|
5025
4899
|
labelDayButton: () => labelDayButton,
|
|
5026
4900
|
labelGrid: () => labelGrid,
|
|
@@ -5034,8 +4908,7 @@ var labels_exports = /* @__PURE__ */ __exportAll({
|
|
|
5034
4908
|
labelWeekday: () => labelWeekday,
|
|
5035
4909
|
labelYearDropdown: () => labelYearDropdown
|
|
5036
4910
|
});
|
|
5037
|
-
|
|
5038
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getLabels.js
|
|
4911
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getLabels.js
|
|
5039
4912
|
const resolveLabel = (defaultLabel, customLabel, localeLabel) => {
|
|
5040
4913
|
if (customLabel) return customLabel;
|
|
5041
4914
|
if (localeLabel) return typeof localeLabel === "function" ? localeLabel : (..._args) => localeLabel;
|
|
@@ -5069,8 +4942,7 @@ function getLabels(customLabels, options) {
|
|
|
5069
4942
|
labelWeekday: resolveLabel(labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday)
|
|
5070
4943
|
};
|
|
5071
4944
|
}
|
|
5072
|
-
|
|
5073
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js
|
|
4945
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js
|
|
5074
4946
|
/**
|
|
5075
4947
|
* Returns the months to show in the dropdown.
|
|
5076
4948
|
*
|
|
@@ -5100,8 +4972,7 @@ function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {
|
|
|
5100
4972
|
};
|
|
5101
4973
|
});
|
|
5102
4974
|
}
|
|
5103
|
-
|
|
5104
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js
|
|
4975
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js
|
|
5105
4976
|
/**
|
|
5106
4977
|
* Returns the computed style for a day based on its modifiers.
|
|
5107
4978
|
*
|
|
@@ -5123,8 +4994,7 @@ function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
|
5123
4994
|
});
|
|
5124
4995
|
return style;
|
|
5125
4996
|
}
|
|
5126
|
-
|
|
5127
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js
|
|
4997
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js
|
|
5128
4998
|
/**
|
|
5129
4999
|
* Generates a series of 7 days, starting from the beginning of the week, to use
|
|
5130
5000
|
* for formatting weekday names (e.g., Monday, Tuesday, etc.).
|
|
@@ -5145,8 +5015,7 @@ function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
|
5145
5015
|
}
|
|
5146
5016
|
return days;
|
|
5147
5017
|
}
|
|
5148
|
-
|
|
5149
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
|
|
5018
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
|
|
5150
5019
|
/**
|
|
5151
5020
|
* Returns the years to display in the dropdown.
|
|
5152
5021
|
*
|
|
@@ -5179,8 +5048,7 @@ function getYearOptions(navStart, navEnd, formatters, dateLib, reverse = false)
|
|
|
5179
5048
|
};
|
|
5180
5049
|
});
|
|
5181
5050
|
}
|
|
5182
|
-
|
|
5183
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/noonDateLib.js
|
|
5051
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/noonDateLib.js
|
|
5184
5052
|
/**
|
|
5185
5053
|
* Creates `dateLib` overrides that keep all calendar math at noon in the target
|
|
5186
5054
|
* time zone. This avoids second-level offset changes (e.g., historical zones
|
|
@@ -5312,8 +5180,7 @@ function createNoonOverrides(timeZone, options = {}) {
|
|
|
5312
5180
|
}
|
|
5313
5181
|
};
|
|
5314
5182
|
}
|
|
5315
|
-
|
|
5316
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/useAnimation.js
|
|
5183
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/useAnimation.js
|
|
5317
5184
|
const asHtmlElement = (element) => {
|
|
5318
5185
|
if (element instanceof HTMLElement) return element;
|
|
5319
5186
|
return null;
|
|
@@ -5408,8 +5275,7 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
|
|
|
5408
5275
|
}
|
|
5409
5276
|
});
|
|
5410
5277
|
}
|
|
5411
|
-
|
|
5412
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getDates.js
|
|
5278
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getDates.js
|
|
5413
5279
|
/**
|
|
5414
5280
|
* Returns all the dates to display in the calendar.
|
|
5415
5281
|
*
|
|
@@ -5447,8 +5313,7 @@ function getDates(displayMonths, maxDate, props, dateLib) {
|
|
|
5447
5313
|
}
|
|
5448
5314
|
return dates;
|
|
5449
5315
|
}
|
|
5450
|
-
|
|
5451
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getDays.js
|
|
5316
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getDays.js
|
|
5452
5317
|
/**
|
|
5453
5318
|
* Returns all the days belonging to the calendar by merging the days in the
|
|
5454
5319
|
* weeks for each month.
|
|
@@ -5466,8 +5331,7 @@ function getDays(calendarMonths) {
|
|
|
5466
5331
|
return days.concat(weekDays.slice());
|
|
5467
5332
|
}, initialDays.slice());
|
|
5468
5333
|
}
|
|
5469
|
-
|
|
5470
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
|
|
5334
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
|
|
5471
5335
|
/**
|
|
5472
5336
|
* Returns the months to display in the calendar.
|
|
5473
5337
|
*
|
|
@@ -5488,8 +5352,7 @@ function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib)
|
|
|
5488
5352
|
}
|
|
5489
5353
|
return months;
|
|
5490
5354
|
}
|
|
5491
|
-
|
|
5492
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
|
|
5355
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
|
|
5493
5356
|
/**
|
|
5494
5357
|
* Determines the initial month to display in the calendar based on the provided
|
|
5495
5358
|
* props.
|
|
@@ -5509,8 +5372,7 @@ function getInitialMonth(props, navStart, navEnd, dateLib) {
|
|
|
5509
5372
|
if (navStart && differenceInCalendarMonths(initialMonth, navStart) < 0) initialMonth = navStart;
|
|
5510
5373
|
return startOfMonth(initialMonth);
|
|
5511
5374
|
}
|
|
5512
|
-
|
|
5513
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.js
|
|
5375
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getMonths.js
|
|
5514
5376
|
/**
|
|
5515
5377
|
* Returns the months to display in the calendar.
|
|
5516
5378
|
*
|
|
@@ -5556,8 +5418,7 @@ function getMonths(displayMonths, dates, props, dateLib) {
|
|
|
5556
5418
|
if (!props.reverseMonths) return dayPickerMonths;
|
|
5557
5419
|
else return dayPickerMonths.reverse();
|
|
5558
5420
|
}
|
|
5559
|
-
|
|
5560
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js
|
|
5421
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js
|
|
5561
5422
|
/**
|
|
5562
5423
|
* Returns the start and end months for calendar navigation.
|
|
5563
5424
|
*
|
|
@@ -5575,8 +5436,7 @@ function getNavMonths(props, dateLib) {
|
|
|
5575
5436
|
else if (!endMonth && hasYearDropdown) endMonth = endOfYear(props.today ?? today());
|
|
5576
5437
|
return [startMonth ? startOfDay(startMonth) : startMonth, endMonth ? startOfDay(endMonth) : endMonth];
|
|
5577
5438
|
}
|
|
5578
|
-
|
|
5579
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js
|
|
5439
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js
|
|
5580
5440
|
/**
|
|
5581
5441
|
* Returns the next month the user can navigate to, based on the given options.
|
|
5582
5442
|
*
|
|
@@ -5604,8 +5464,7 @@ function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
|
|
|
5604
5464
|
if (differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth) < numberOfMonths) return;
|
|
5605
5465
|
return addMonths(month, offset);
|
|
5606
5466
|
}
|
|
5607
|
-
|
|
5608
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js
|
|
5467
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js
|
|
5609
5468
|
/**
|
|
5610
5469
|
* Returns the previous month the user can navigate to, based on the given
|
|
5611
5470
|
* options.
|
|
@@ -5634,8 +5493,7 @@ function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, date
|
|
|
5634
5493
|
if (differenceInCalendarMonths(month, calendarStartMonth) <= 0) return;
|
|
5635
5494
|
return addMonths(month, -offset);
|
|
5636
5495
|
}
|
|
5637
|
-
|
|
5638
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js
|
|
5496
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js
|
|
5639
5497
|
/**
|
|
5640
5498
|
* Returns an array of calendar weeks from an array of calendar months.
|
|
5641
5499
|
*
|
|
@@ -5647,8 +5505,7 @@ function getWeeks(months) {
|
|
|
5647
5505
|
return weeks.concat(month.weeks.slice());
|
|
5648
5506
|
}, [].slice());
|
|
5649
5507
|
}
|
|
5650
|
-
|
|
5651
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js
|
|
5508
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js
|
|
5652
5509
|
/**
|
|
5653
5510
|
* A custom hook for managing both controlled and uncontrolled component states.
|
|
5654
5511
|
*
|
|
@@ -5675,8 +5532,7 @@ function useControlledValue(defaultValue, controlledValue) {
|
|
|
5675
5532
|
const [uncontrolledValue, setValue] = useState(defaultValue);
|
|
5676
5533
|
return [controlledValue === void 0 ? uncontrolledValue : controlledValue, setValue];
|
|
5677
5534
|
}
|
|
5678
|
-
|
|
5679
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/useCalendar.js
|
|
5535
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/useCalendar.js
|
|
5680
5536
|
/**
|
|
5681
5537
|
* Provides the calendar object to work with the calendar in custom components.
|
|
5682
5538
|
*
|
|
@@ -5755,8 +5611,7 @@ function useCalendar(props, dateLib) {
|
|
|
5755
5611
|
goToDay
|
|
5756
5612
|
};
|
|
5757
5613
|
}
|
|
5758
|
-
|
|
5759
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
|
|
5614
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
|
|
5760
5615
|
var FocusTargetPriority;
|
|
5761
5616
|
(function(FocusTargetPriority) {
|
|
5762
5617
|
FocusTargetPriority[FocusTargetPriority["Today"] = 0] = "Today";
|
|
@@ -5814,8 +5669,7 @@ function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
|
|
|
5814
5669
|
if (!focusTarget) focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));
|
|
5815
5670
|
return focusTarget;
|
|
5816
5671
|
}
|
|
5817
|
-
|
|
5818
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js
|
|
5672
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js
|
|
5819
5673
|
/**
|
|
5820
5674
|
* Calculates the next date that should be focused in the calendar.
|
|
5821
5675
|
*
|
|
@@ -5847,8 +5701,7 @@ function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dat
|
|
|
5847
5701
|
else if (moveDir === "after" && navEnd) focusableDate = min([navEnd, focusableDate]);
|
|
5848
5702
|
return focusableDate;
|
|
5849
5703
|
}
|
|
5850
|
-
|
|
5851
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js
|
|
5704
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js
|
|
5852
5705
|
/**
|
|
5853
5706
|
* Determines the next focusable day in the calendar.
|
|
5854
5707
|
*
|
|
@@ -5875,8 +5728,7 @@ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMo
|
|
|
5875
5728
|
if (!isDisabled && !isHidden) return focusDay;
|
|
5876
5729
|
return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);
|
|
5877
5730
|
}
|
|
5878
|
-
|
|
5879
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/useFocus.js
|
|
5731
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/useFocus.js
|
|
5880
5732
|
/**
|
|
5881
5733
|
* Manages focus behavior for the DayPicker component, including setting,
|
|
5882
5734
|
* moving, and blurring focus on calendar days.
|
|
@@ -5896,6 +5748,14 @@ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
|
5896
5748
|
const [lastFocused, setLastFocused] = useState();
|
|
5897
5749
|
const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
|
|
5898
5750
|
const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : void 0);
|
|
5751
|
+
useEffect(() => {
|
|
5752
|
+
if (!focusedDay || !focusTarget) return;
|
|
5753
|
+
if (!calendar.days.some((day) => day.isEqualTo(focusedDay))) setFocused(focusTarget);
|
|
5754
|
+
}, [
|
|
5755
|
+
calendar.days,
|
|
5756
|
+
focusedDay,
|
|
5757
|
+
focusTarget
|
|
5758
|
+
]);
|
|
5899
5759
|
const blur = () => {
|
|
5900
5760
|
setLastFocused(focusedDay);
|
|
5901
5761
|
setFocused(void 0);
|
|
@@ -5921,8 +5781,7 @@ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
|
5921
5781
|
moveFocus
|
|
5922
5782
|
};
|
|
5923
5783
|
}
|
|
5924
|
-
|
|
5925
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/selection/useMulti.js
|
|
5784
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/selection/useMulti.js
|
|
5926
5785
|
/**
|
|
5927
5786
|
* Hook to manage multiple-date selection in the DayPicker component.
|
|
5928
5787
|
*
|
|
@@ -5959,8 +5818,7 @@ function useMulti(props, dateLib) {
|
|
|
5959
5818
|
isSelected
|
|
5960
5819
|
};
|
|
5961
5820
|
}
|
|
5962
|
-
|
|
5963
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/addToRange.js
|
|
5821
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/addToRange.js
|
|
5964
5822
|
/**
|
|
5965
5823
|
* Adds a date to an existing range, considering constraints like minimum and
|
|
5966
5824
|
* maximum range size.
|
|
@@ -6043,8 +5901,7 @@ function addToRange(date, initialRange, min = 0, max = 0, required = false, date
|
|
|
6043
5901
|
}
|
|
6044
5902
|
return range;
|
|
6045
5903
|
}
|
|
6046
|
-
|
|
6047
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js
|
|
5904
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js
|
|
6048
5905
|
/**
|
|
6049
5906
|
* Checks if a date range contains one or more specified days of the week.
|
|
6050
5907
|
*
|
|
@@ -6068,8 +5925,7 @@ function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
|
|
|
6068
5925
|
}
|
|
6069
5926
|
return false;
|
|
6070
5927
|
}
|
|
6071
|
-
|
|
6072
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js
|
|
5928
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js
|
|
6073
5929
|
/**
|
|
6074
5930
|
* Determines if two date ranges overlap.
|
|
6075
5931
|
*
|
|
@@ -6083,8 +5939,7 @@ function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
|
|
|
6083
5939
|
function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
|
|
6084
5940
|
return rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) || rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib);
|
|
6085
5941
|
}
|
|
6086
|
-
|
|
6087
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js
|
|
5942
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js
|
|
6088
5943
|
/**
|
|
6089
5944
|
* Checks if a date range contains dates that match the given modifiers.
|
|
6090
5945
|
*
|
|
@@ -6130,8 +5985,7 @@ function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
|
|
|
6130
5985
|
}
|
|
6131
5986
|
return false;
|
|
6132
5987
|
}
|
|
6133
|
-
|
|
6134
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/selection/useRange.js
|
|
5988
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/selection/useRange.js
|
|
6135
5989
|
/**
|
|
6136
5990
|
* Hook to manage range selection in the DayPicker component.
|
|
6137
5991
|
*
|
|
@@ -6181,8 +6035,7 @@ function useRange(props, dateLib) {
|
|
|
6181
6035
|
isSelected
|
|
6182
6036
|
};
|
|
6183
6037
|
}
|
|
6184
|
-
|
|
6185
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/selection/useSingle.js
|
|
6038
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/selection/useSingle.js
|
|
6186
6039
|
/**
|
|
6187
6040
|
* Hook to manage single-date selection in the DayPicker component.
|
|
6188
6041
|
*
|
|
@@ -6214,8 +6067,7 @@ function useSingle(props, dateLib) {
|
|
|
6214
6067
|
isSelected
|
|
6215
6068
|
};
|
|
6216
6069
|
}
|
|
6217
|
-
|
|
6218
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/useSelection.js
|
|
6070
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/useSelection.js
|
|
6219
6071
|
/**
|
|
6220
6072
|
* Determines the appropriate selection hook to use based on the selection mode
|
|
6221
6073
|
* and returns the corresponding selection object.
|
|
@@ -6237,8 +6089,7 @@ function useSelection(props, dateLib) {
|
|
|
6237
6089
|
default: return;
|
|
6238
6090
|
}
|
|
6239
6091
|
}
|
|
6240
|
-
|
|
6241
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js
|
|
6092
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js
|
|
6242
6093
|
/**
|
|
6243
6094
|
* Convert a {@link Date} or {@link TZDate} instance to the given time zone.
|
|
6244
6095
|
* Reuses the same instance when it is already a {@link TZDate} using the target
|
|
@@ -6248,8 +6099,7 @@ function toTimeZone(date, timeZone) {
|
|
|
6248
6099
|
if (date instanceof TZDate && date.timeZone === timeZone) return date;
|
|
6249
6100
|
return new TZDate(date, timeZone);
|
|
6250
6101
|
}
|
|
6251
|
-
|
|
6252
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js
|
|
6102
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js
|
|
6253
6103
|
function toZoneNoon(date, timeZone, noonSafe) {
|
|
6254
6104
|
if (!noonSafe) return toTimeZone(date, timeZone);
|
|
6255
6105
|
const zoned = toTimeZone(date, timeZone);
|
|
@@ -6286,8 +6136,7 @@ function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {
|
|
|
6286
6136
|
if (Array.isArray(matchers)) return matchers.map((matcher) => convertMatcher(matcher, timeZone, noonSafe));
|
|
6287
6137
|
return convertMatcher(matchers, timeZone, noonSafe);
|
|
6288
6138
|
}
|
|
6289
|
-
|
|
6290
|
-
//#region ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.3.0_react@19.3.0/node_modules/react-day-picker/dist/esm/DayPicker.js
|
|
6139
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.2_@types+react@19.3.0_react@19.3.1/node_modules/react-day-picker/dist/esm/DayPicker.js
|
|
6291
6140
|
/**
|
|
6292
6141
|
* Renders the DayPicker calendar component.
|
|
6293
6142
|
*
|
|
@@ -6733,8 +6582,7 @@ function DayPicker(initialProps) {
|
|
|
6733
6582
|
"aria-live": "polite"
|
|
6734
6583
|
}, props.footer)));
|
|
6735
6584
|
}
|
|
6736
|
-
|
|
6737
|
-
//#region src/components/Calendar/Calendar.tsx
|
|
6585
|
+
// src/components/Calendar/Calendar.tsx
|
|
6738
6586
|
const dayPickerClassNames = { selected: `tw:bg-primary tw:border-primary tw:font-medium tw:hover:bg-primary/90 tw:hover:border-primary/90 tw:text-primary-foreground tw:rounded` };
|
|
6739
6587
|
const rangePickerClassNames = {
|
|
6740
6588
|
range_start: `tw:bg-primary tw:rounded-r-none tw:font-medium tw:border-primary tw:hover:bg-primary/90 tw:hover:border-primary/90 tw:text-primary-foreground`,
|
|
@@ -6762,7 +6610,6 @@ const Calendar = ({ className, classNames, ...props }) => {
|
|
|
6762
6610
|
});
|
|
6763
6611
|
};
|
|
6764
6612
|
Calendar.displayName = "Calendar";
|
|
6765
|
-
//#endregion
|
|
6766
6613
|
export { Calendar };
|
|
6767
6614
|
|
|
6768
|
-
//# sourceMappingURL=Calendar-
|
|
6615
|
+
//# sourceMappingURL=Calendar-lJBTETbk.js.map
|