@astryx-vue/core 0.22.0 → 0.23.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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-VD9PadlM.js → AlertDialog-DXOTr1D7.js} +4 -4
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-C4XGguw0.js → AppShell-Cmu6bMY6.js} +63 -23
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CAweS1WY.js → Avatar-dMcn3j8Z.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DnK7bKAb.js → Banner-CTY9qV89.js} +2 -2
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-CM0-eaUF.js → BottomSheet-DyJJtZZU.js} +5 -5
- package/dist/{BottomSheet-C4OU3mJT.js → BottomSheet-ZOjuZya0.js} +3 -3
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DZAgtC9c.js → Breadcrumbs-mlCoLtma.js} +2 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Blnc0yB3.js → Button-TiYG0btL.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +3 -2
- package/dist/Calendar-B6TZYEge.js +105 -0
- package/dist/{Calendar-ydp0vJdO.js → Calendar-CUMnYIhe.js} +182 -257
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-BbKFHWuD.js → Card-D_OJxmwD.js} +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CB4Iap-B.js → Carousel-DsXup1mZ.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DjJPQ9bX.js → Chat-DqYT_S9M.js} +7 -6
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CGTPmOHs.js → CheckboxInput-BNwTTDHu.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CGzHkA95.js → CheckboxList-BLY16jPG.js} +3 -3
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CSgRYxGU.js → Citation-Ijf06x0V.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DMX5z-QV.js → ClickableCard-CVQ7XS4L.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-rmiC0XfO.js → Code-5rZyPwty.js} +1 -1
- package/dist/{CodeBlock-CwQCMSKA.js → CodeBlock-5KoJDvWd.js} +3 -3
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BVoNZijw.js → Collapsible-B1qW6OuL.js} +3 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DBOETNGM.js → CommandPalette-B2riNg_7.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CNBH2t6W.js → ComplexSelector-CVCIsgAU.js} +4 -4
- package/dist/{ComponentIcon-BRXBBKeG.js → ComponentIcon-Dw4xQxg3.js} +3 -3
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CUwAPrVP.js → ContextMenu-DYLdP-Ok.js} +7 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BQ-3bvV5.js → DateInput-D9Jv70H7.js} +1210 -108
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DFXz4vNX.js → DateRangeInput-BsB2kg_q.js} +75 -55
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BHO4nXKW.js → DateTimeInput-BDyKPKGD.js} +26 -13
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Dx6zuttb.js → Dialog-DUlWQH8R.js} +1 -1
- package/dist/{Dialog-BCPhWMxL.js → Dialog-JCB5s-T-.js} +4 -4
- package/dist/{DialogHeader-C9fp2Rti.js → DialogHeader-C6hZZxdv.js} +3 -3
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer--2vLSKY_.js → Drawer-BDuiw1-g.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CskkQAAz.js → DropdownMenu-BVEOMFwc.js} +9 -9
- package/dist/{DropdownMenu-BImEVieZ.js → DropdownMenu-PjqSkkQs.js} +6 -6
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Dq3NWNnG.js → EmptyState-CnFkYtcS.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DsucLkyQ.js → Field-D4UmRHlD.js} +2 -2
- package/dist/{FieldIcon-DMtfe1Ne.js → FieldIcon-BU1ZWAuo.js} +1 -1
- package/dist/{FieldInfoTip-1zW3QTQG.js → FieldInfoTip-BSqcEcUx.js} +2 -2
- package/dist/{FieldLabel-D9uFPtXs.js → FieldLabel-CZbayYFD.js} +2 -2
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-DSUCli4W.js → FieldStatus-DmCWPT6U.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLtHinlh.js → FileInput-8oYiJsq_.js} +4 -4
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-C0mp7fha.js → Grid-DTnDDT0Q.js} +2 -2
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-DBBChghq.js → Heading-COtyAhtB.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-BW-bOUZI.js → HoverCard-DGlOpk4x.js} +4 -4
- package/dist/Icon/index.js +3 -3
- package/dist/{Icon-BCHo7W0x.js → Icon-Dk0jccgU.js} +2 -1
- package/dist/{Icon-B2aULLnn.js → Icon-M1Rlknd0.js} +2 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CIUbkA8_.js → IconButton-CwjHTIBg.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-C71T8lv_.js → InfoTip-CNZateDb.js} +2 -2
- package/dist/{InputClearButton-h0BxBXu1.js → InputClearButton-CzCP41sx.js} +2 -2
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DHPTru5v.js → InputGroup-CfUGHDNz.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-Ddo_-tLK.js → InternationalizationProvider-DaZS5Dch.js} +5 -2
- package/dist/{LayerContentBoundary-DxeAFxNJ.js → LayerContentBoundary-LCQLyxBT.js} +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-DP2vrvTv.js → Layout-DOIeCgs4.js} +2 -2
- package/dist/{LayoutPanel-DuroKU_A.js → LayoutPanel-C7Wsid2W.js} +34 -14
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-B3WP06Qt.js → Lightbox-Dzzd2Vqe.js} +4 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CQK9d_Yf.js → Link-B7OJQ0zl.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BVXFWJT0.js → Markdown-Cbj-nqhN.js} +4 -4
- package/dist/{MediaTheme-DfcdEWx-.js → MediaTheme-UM8oOqwX.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DGZPwsf9.js → MobileNavToggle-BlcdCg8M.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Q_KpDTNB.js → MoreMenu-DAhOiau3.js} +5 -5
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CzGsdjcl.js → MultiSelector-ERv5u6r4.js} +11 -10
- package/dist/{NavDisclosure-DIYayUrP.js → NavDisclosure-CqAThYgR.js} +1 -1
- package/dist/{NavHeadingSurface-bFcFpeMI.js → NavHeadingSurface-DJ4pWvEi.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-DYvMKPU_.js → NavMenu-BtA_Xbmr.js} +3 -3
- package/dist/{NavMenuItem-Ccix-agv.js → NavMenuItem-BxfjAf1T.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DTksMfSU.js → NumberInput-Bl5TFhGD.js} +5 -5
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-DKM7TeUs.js → OverflowList-CumJl6X_.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-B-O21ut1.js → Pagination-DuTUReOl.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BtfsoxXC.js → Popover-DpR4rwiW.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CniqThU7.js → PowerSearch-CewQJzEt.js} +34 -33
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DOusesCL.js → ProgressBar-Dp-0xquN.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CRwMwMw4.js → RadioGroup-DrCL5-AN.js} +3 -3
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-PUlENMq5.js → RadioList-CRi4E1zq.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-4-krI-cQ.js → ResizeHandle-BMSbAFdP.js} +43 -27
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DUTtyApJ.js → SelectableCard-Dp-LsEcf.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-Qs1rFiI6.js → Selector-D6yzPO5O.js} +9 -9
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BUfUwE2P.js → SideNav-z_6FwEJy.js} +8 -58
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-BbiQbyie.js → Slider-DMHlRq7q.js} +2 -2
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DhfcDBE7.js → StatusDot-B3oOyRF7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CQd4YlPC.js → Stepper-CgOdL36_.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CMK5bICl.js → Switch-OPRkoPLi.js} +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bd3h7Nj3.js → TabList-FkoypUk0.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DN9mo-cQ.js → Table-CCjpL_Ku.js} +16 -16
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-Dez23ltM.js → Text-v1ep26uD.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BsGUOyDg.js → TextArea-BilHnmSs.js} +5 -5
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-DZi0EMh-.js → TextInput-D6tHM2sA.js} +4 -4
- package/dist/Theme/index.js +3 -2
- package/dist/{Theme-1RJVaRgz.js → Theme-BmTbbiAD.js} +6 -22
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CsmF1HTP.js → Thumbnail-llGdnQM8.js} +3 -3
- package/dist/{TimeField-DqOPj5s2.js → TimeField-C5rcoaVu.js} +7 -7
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CA3kXBWB.js → TimeInput-D0N8nwrI.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-vubjQ88x.js → Timer-65PfuoQ7.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -2
- package/dist/{Timestamp-Cz_0Ofj4.js → Timestamp-rYC8mE3r.js} +20 -12
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DhJNtBjT.js → Toast-BtQ-4Y6Z.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BR_qVBEt.js → ToggleButton-DTrNL430.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-C3pXgLmC.js → Tokenizer-DdddkJb1.js} +6 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-B4Vltu-j.js → Toolbar-DSWH8ll4.js} +25 -2
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BUHvOnE1.js → Tooltip-CByjfHBZ.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-klsRhS-I.js → TopNav-C1wpttKX.js} +6 -6
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-DJQvL5tG.js → TreeList-DOAcS3PM.js} +1 -1
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BaPqX3Ey.js → Typeahead-6y_r-VNU.js} +6 -6
- package/dist/adaptationTypes-Beao49TN.js +19 -0
- package/dist/{assertOptions-DF9pum-3.js → assertOptions-og3t30Fh.js} +2 -1
- package/dist/calendar-C7py_wtb.js +351 -0
- package/dist/calendarFormat-_CEZIMZG.js +123 -0
- package/dist/{componentIcons-CFr2L6o3.js → componentIcons-BBJqmilP.js} +1 -1
- package/dist/composables/index.js +11 -11
- package/dist/{composables-BDWdSCwe.js → composables-COCeg92e.js} +2 -2
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/{context-CjX2RSDn.js → context-D-Hwh-Jf.js} +1 -1
- package/dist/{date-input-rUD8YAow.js → date-input-CRdc2H3c.js} +6 -2
- package/dist/focusLeaving-Dqm8Yj4T.js +53 -0
- package/dist/{focusReturn-CsEp47Wa.js → focusReturn-C1cFL3WM.js} +1 -1
- package/dist/{format-mffyPc-L.js → format-6G9QuGy1.js} +12 -4
- package/dist/{formatInstant-BDWUIxS7.js → formatInstant-CjCwl6JS.js} +8 -6
- package/dist/{index-C93nwgTW.d.ts → index-51CkIKnI.d.ts} +1 -1
- package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
- package/dist/{index-BmXk_doE.d.ts → index-B3U6GJKl.d.ts} +2 -2
- package/dist/{index-CAKT4Kkz.d.ts → index-B5MCvW75.d.ts} +230 -72
- package/dist/{index-Qdbssopn.d.ts → index-B6svLvfZ.d.ts} +1 -1
- package/dist/{index-C3FgFPrM.d.ts → index-BDJQW9cW.d.ts} +10 -10
- package/dist/{index-BvW0tiei.d.ts → index-BJputYk6.d.ts} +4 -4
- package/dist/{index-YKCx03zD.d.ts → index-BaFphczL.d.ts} +2 -2
- package/dist/{index-BTljzczH.d.ts → index-C-kIxNCq.d.ts} +8 -11
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-DDrL_-hJ.d.ts → index-CBOv5j3c.d.ts} +2 -2
- package/dist/{index-BOCb89V9.d.ts → index-CP-fJFcJ.d.ts} +3 -3
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-DofC9Rll.d.ts → index-Cb-rvc1W.d.ts} +1 -1
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
- package/dist/{index-BdZCLUgY.d.ts → index-CnVjgLP5.d.ts} +9 -1
- package/dist/{index-CG3fD4hw.d.ts → index-CpLLSVCn.d.ts} +7 -5
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-B1eCxBCY.d.ts → index-DCyYldjP.d.ts} +7 -1
- package/dist/{index-BrMtj1lT.d.ts → index-DGXCnzOL.d.ts} +4 -4
- package/dist/{index-BhxqUt3y.d.ts → index-DXHmlFcC.d.ts} +4 -4
- package/dist/{index-fd--aE4B.d.ts → index-DbNGGCM0.d.ts} +4 -3
- package/dist/{index--CtH4lQr.d.ts → index-Dc6mU3rv.d.ts} +6 -6
- package/dist/{index-DYabo8TI.d.ts → index-MvrDMqnQ.d.ts} +1 -1
- package/dist/{index-DMN_JVEt.d.ts → index-NOxH5oYj.d.ts} +3 -2
- package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
- package/dist/{index-BkxWKIV_.d.ts → index-SRA6e30Q.d.ts} +8 -8
- package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
- package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-D0MA9x_i.d.ts → index-ZT45ZWd5.d.ts} +8 -8
- package/dist/{index-CQ-sq76o.d.ts → index-_FjbcSgD.d.ts} +8 -2
- package/dist/{index-DogWVRJi.d.ts → index-beOIC0Qk.d.ts} +2 -2
- package/dist/{index-rzkX36wM.d.ts → index-nk2xIHpr.d.ts} +3 -3
- package/dist/index.d.ts +39 -39
- package/dist/index.js +117 -116
- package/dist/inputPresentation-DES0JwkL.js +203 -0
- package/dist/interactionModality-CedLz5PC.js +130 -0
- package/dist/{interactionModality-CyU67ucP.js → layerDepth-D3Rh8T5C.js} +1 -130
- package/dist/{layerFocusReturn-BeCsk_4F.js → layerFocusReturn-KvH6DMFT.js} +1 -1
- package/dist/{loadCatalog-DsEKSY3U.js → loadCatalog-BeQt6Uq-.js} +9 -1
- package/dist/{loadCatalog-C4h9SmJs.d.ts → loadCatalog-C8mRnC0E.d.ts} +5 -1
- package/dist/locale/index.d.ts +4 -4
- package/dist/locale/index.js +4 -4
- package/dist/{locale-C-Y-13BP.js → locale-B4FpGKpc.js} +6 -2
- package/dist/{dateParser-BKoaawL9.js → plainDate-CaTDErKr.js} +1 -132
- package/dist/{power-search-CqcsJT1F.d.ts → power-search-CuMzfLwW.d.ts} +13 -1
- package/dist/resizableChannel-LElsNkSY.js +33 -0
- package/dist/{stillPointerGate-BX4vr5M-.js → stillPointerGate-1Tgkns0J.js} +1 -1
- package/dist/{themeIcons-CqGF0fwW.js → themeIcons-1O7ymucc.js} +1 -7
- package/dist/{tooltipFocusRules-BnZ1zwAm.js → tooltipFocusRules-vIH7PZh1.js} +3 -2
- package/dist/{tooltipTriggerRules-BLBEkBcK.js → tooltipTriggerRules-DoBAbfGc.js} +1 -1
- package/dist/{triggerVariant-BDVvyLtv.js → triggerVariant-DG0VhG-X.js} +1 -1
- package/dist/useCalendarGrid-0WvxbeFC.js +179 -0
- package/dist/{useCombobox-DcBbaWYj.js → useCombobox-BqkTY3bw.js} +1 -1
- package/dist/{useDismiss-C1dyveme.js → useDismiss-CMIsdIOQ.js} +1 -1
- package/dist/{useFocusTrap-DAKJJP0Z.js → useFocusTrap-DTz_d7IP.js} +3 -2
- package/dist/{useIndicator--9mGGlT2.js → useIndicator-PFDBNOvX.js} +2 -2
- package/dist/{useInputStatusIcon-BDWAijXe.js → useInputStatusIcon-CrgeMzrf.js} +2 -2
- package/dist/{useMenuDrillIn-RZwY55RM.js → useMenuDrillIn-f3m-59Qb.js} +1 -1
- package/dist/{useMenuPress-3203ryBY.js → useMenuPress-wqRDvUMW.js} +2 -2
- package/dist/{useResizable-wZU54yCO.js → useResizable-hv4NYIUi.js} +6 -3
- package/dist/{useRestoreFocus-v8-FFcQQ.js → useRestoreFocus-BxooFhas.js} +2 -2
- package/dist/{useTooltip-0_wOd0e5.js → useTooltip-BwqzEtoF.js} +5 -5
- package/dist/{useTouchTriggerInternal-DwzthF8T.js → useTouchTriggerInternal-Bdm_M4aa.js} +2 -1
- package/dist/{useTruncationTooltip-BDIe7-ya.js → useTruncationTooltip-CRhoPzeu.js} +4 -4
- package/dist/{useTypeahead-BlqvS9x9.js → useTypeahead-BGpvWkzm.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-CIf9Ep57.js → useTypeaheadMenuConfig-GvdIymRg.js} +2 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/reset.css +0 -19
- package/styles/app-shell.css +88 -7
- package/styles/aspect-ratio.css +4 -3
- package/styles/collapsible.css +1 -0
- package/styles/layout.css +22 -5
- package/styles/resize-handle.css +64 -35
- package/styles/scrollable-area.css +13 -0
- package/styles/toolbar.css +39 -3
- package/dist/inputPresentation-BOyHkCDr.js +0 -62
- package/dist/resizableChannel-3vivrEcT.js +0 -20
|
@@ -1,185 +1,133 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-Dk0jccgU.js";
|
|
2
2
|
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
4
|
-
import { c as resolveWeekStart } from "./useDateRange-D1Szw54e.js";
|
|
5
4
|
import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
|
|
6
5
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
|
-
import {
|
|
6
|
+
import { C as plainDateIsAfter, M as plainDateToDate, N as plainDateToISO, _ as plainDateDiffDays, b as plainDateFromISO, w as plainDateIsBefore, y as plainDateFromDate } from "./plainDate-CaTDErKr.js";
|
|
7
|
+
import { b as isInCalendarMonth, c as calendarDayOfMonth, h as calendarShiftYears, m as calendarShiftMonths, r as useCalendarSystem } from "./calendar-C7py_wtb.js";
|
|
8
|
+
import { a as weekdayNames, i as standaloneShortWeekdayNames, n as formatDayNumber } from "./format-6G9QuGy1.js";
|
|
8
9
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
9
|
-
import {
|
|
10
|
+
import { i as formatCalendarMonthLabel } from "./calendarFormat-_CEZIMZG.js";
|
|
11
|
+
import { _ as monthOf, a as formatWeekdayDate, c as initialCalendarFocus, d as weekFieldName, f as weekStartIndex, g as isWithinMonths, h as isSameMonth, i as dateISO, l as sameCalendarDay, m as addMonthStarts, n as firstEnabledDay, o as fromCalendarDate, p as weekdayIndex, r as calendarDiffDays, s as inSpan, t as buildMonthWeeks, u as toCalendarDate, v as monthStartOf, y as toCalendarDay } from "./useCalendarGrid-0WvxbeFC.js";
|
|
12
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, nextTick, normalizeClass, onMounted, openBlock, renderList, renderSlot, shallowRef, toDisplayString, toValue, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
10
13
|
import { CalendarDate } from "@internationalized/date";
|
|
11
14
|
import "../styles/calendar.css";
|
|
12
|
-
//#region src/Calendar/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
utc.setUTCDate(utc.getUTCDate() + 4 - day);
|
|
52
|
-
const yearStart = Date.UTC(utc.getUTCFullYear(), 0, 1);
|
|
53
|
-
return Math.ceil(((utc.getTime() - yearStart) / 864e5 + 1) / 7);
|
|
54
|
-
}
|
|
55
|
-
function weekFieldName(locale) {
|
|
56
|
-
try {
|
|
57
|
-
const name = new Intl.DisplayNames(locale, { type: "dateTimeField" }).of("weekOfYear");
|
|
58
|
-
if (name) return name;
|
|
59
|
-
} catch {}
|
|
60
|
-
return locale.startsWith("zh") ? "周" : "week";
|
|
61
|
-
}
|
|
62
|
-
function formatWeekdayDate(date, locale) {
|
|
63
|
-
return new Intl.DateTimeFormat(locale, {
|
|
64
|
-
weekday: "long",
|
|
65
|
-
year: "numeric",
|
|
66
|
-
month: "long",
|
|
67
|
-
day: "numeric"
|
|
68
|
-
}).format(fromCalendarDate(date));
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* The month the calendar opens on. An explicit focus date wins and is never
|
|
72
|
-
* second-guessed. Then the selection, whose month is shown even when it lies
|
|
73
|
-
* outside min/max. Otherwise today is clamped into the min/max window so the
|
|
74
|
-
* first paint is not an all-disabled month.
|
|
75
|
-
*
|
|
76
|
-
* With two months, a selection or today inside max's month still opens one
|
|
77
|
-
* pane earlier, so max's month is the last pane and the panes before it keep
|
|
78
|
-
* selectable days. That shift never crosses min's month.
|
|
79
|
-
*/
|
|
80
|
-
function initialCalendarFocus(options) {
|
|
81
|
-
if (options.focusDate) return toCalendarDate(options.focusDate);
|
|
82
|
-
const min = options.min ? toCalendarDate(options.min) : null;
|
|
83
|
-
const max = options.max ? toCalendarDate(options.max) : null;
|
|
84
|
-
const panes = options.numberOfMonths;
|
|
85
|
-
if (options.selected) return keepLastPaneWithinMax(toCalendarDate(options.selected), min, max, panes);
|
|
86
|
-
if (options.rangeStart) return keepLastPaneWithinMax(toCalendarDate(options.rangeStart), min, max, panes);
|
|
87
|
-
const today = options.today ? toCalendarDate(options.today) : toCalendarDate(/* @__PURE__ */ new Date());
|
|
88
|
-
if (min && today.compare(min) < 0) return min;
|
|
89
|
-
if (max && today.compare(max) > 0) {
|
|
90
|
-
const shifted = shiftMonth(max, -Math.max(0, panes - 1));
|
|
91
|
-
if (min && shifted.compare(new CalendarDate(min.year, min.month, 1)) < 0) return min;
|
|
92
|
-
return shifted;
|
|
93
|
-
}
|
|
94
|
-
return keepLastPaneWithinMax(today, min, max, panes);
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* `date` 所在的月份显示着,但后面的窗格会整个落在 max 之后时,把起始月往前挪:
|
|
98
|
-
* 最后一个窗格落在 max 所在的月份,第一个窗格不早于 min 所在的月份。
|
|
99
|
-
* 窗格本来就在 max 的月份结束,或者 `date` 自己的月份已经晚于 max 的月份,就原样返回。
|
|
100
|
-
*/
|
|
101
|
-
function keepLastPaneWithinMax(date, min, max, numberOfMonths) {
|
|
102
|
-
const lastPane = Math.max(0, numberOfMonths - 1);
|
|
103
|
-
if (!max || lastPane === 0) return date;
|
|
104
|
-
const month = monthIndex(date);
|
|
105
|
-
const maxMonth = monthIndex(max);
|
|
106
|
-
const latestFirstPane = maxMonth - lastPane;
|
|
107
|
-
if (month <= latestFirstPane || month > maxMonth) return date;
|
|
108
|
-
const earliest = shiftMonth(max, -lastPane);
|
|
109
|
-
if (!min) return earliest;
|
|
110
|
-
const minMonth = monthIndex(min);
|
|
111
|
-
if (latestFirstPane >= minMonth) return earliest;
|
|
112
|
-
return month > minMonth ? min : date;
|
|
113
|
-
}
|
|
114
|
-
/** `date` 在 `start` 和 `end` 之间(含两端)。任何一端缺了就不在。 */
|
|
115
|
-
function inSpan(date, start, end) {
|
|
116
|
-
return !!start && !!end && date.compare(start) >= 0 && date.compare(end) <= 0;
|
|
15
|
+
//#region src/Calendar/paintCalendarWeek.ts
|
|
16
|
+
/** 把一周的格子算成模板直接用的状态:选中、范围色带、圆角、今天、Tab 停靠点和读屏名字。 */
|
|
17
|
+
function paintCalendarWeek(week, context) {
|
|
18
|
+
const { start, end, blocked } = context;
|
|
19
|
+
const continuesAt = (index) => {
|
|
20
|
+
const day = week.days[index];
|
|
21
|
+
return !!day && !day.outside && !blocked(day.date) && inSpan(day.date, start, end);
|
|
22
|
+
};
|
|
23
|
+
return week.days.map((day, index) => {
|
|
24
|
+
const outside = day.outside;
|
|
25
|
+
const continues = continuesAt(index);
|
|
26
|
+
const previousContinues = continuesAt(index - 1);
|
|
27
|
+
const nextContinues = continuesAt(index + 1);
|
|
28
|
+
const previous = week.days[index - 1];
|
|
29
|
+
const next = week.days[index + 1];
|
|
30
|
+
const isStart = !!start && !outside && sameCalendarDay(day.date, start);
|
|
31
|
+
const isEnd = !!end && !outside && sameCalendarDay(day.date, end);
|
|
32
|
+
const middle = continues && !isStart && !isEnd;
|
|
33
|
+
return {
|
|
34
|
+
iso: day.iso,
|
|
35
|
+
date: day.date,
|
|
36
|
+
text: day.day,
|
|
37
|
+
outside,
|
|
38
|
+
shown: context.hasOutsideDays || !outside,
|
|
39
|
+
disabled: outside || blocked(day.date),
|
|
40
|
+
selected: !outside && (!!context.selected && sameCalendarDay(day.date, context.selected) || isStart || isEnd),
|
|
41
|
+
inRange: middle,
|
|
42
|
+
preview: context.preview,
|
|
43
|
+
bandStart: middle && (!previousContinues || !!start && sameCalendarDay(previous.date, start)),
|
|
44
|
+
bandEnd: middle && (!nextContinues || !!end && sameCalendarDay(next.date, end)),
|
|
45
|
+
rangeStart: isStart,
|
|
46
|
+
rangeEnd: isEnd,
|
|
47
|
+
today: !outside && context.today != null && sameCalendarDay(day.date, context.today),
|
|
48
|
+
tab: !outside && !context.disabled && sameCalendarDay(day.date, context.focused),
|
|
49
|
+
roundStart: continues && (isStart || index === 0 || !previousContinues),
|
|
50
|
+
roundEnd: continues && (isEnd || index === 6 || !nextContinues),
|
|
51
|
+
label: context.label(day.date, isStart, isEnd)
|
|
52
|
+
};
|
|
53
|
+
});
|
|
117
54
|
}
|
|
118
55
|
//#endregion
|
|
119
56
|
//#region src/Calendar/useCalendarConstraints.ts
|
|
120
57
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* The anchor itself stays enabled so the start can be moved or cancelled.
|
|
58
|
+
* 范围、跨度和自定义规则里任何一条不让选,这一天就不可选。
|
|
59
|
+
* 跨度把两端都算上,所以最多 7 天时,起点前后各能走 6 天;起点自己始终可选,好让人改选或取消。
|
|
124
60
|
*/
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (max && date.compare(max) > 0) return true;
|
|
130
|
-
const anchor = input.rangeAnchor;
|
|
61
|
+
function isDayDisabled(date, rules) {
|
|
62
|
+
if (rules.min && plainDateIsBefore(date, rules.min)) return true;
|
|
63
|
+
if (rules.max && plainDateIsAfter(date, rules.max)) return true;
|
|
64
|
+
const anchor = rules.rangeAnchor;
|
|
131
65
|
if (anchor) {
|
|
132
|
-
const distance = Math.abs(
|
|
133
|
-
if (
|
|
134
|
-
if (
|
|
66
|
+
const distance = Math.abs(plainDateDiffDays(anchor, date));
|
|
67
|
+
if (rules.maxRangeSpan != null && distance > rules.maxRangeSpan - 1) return true;
|
|
68
|
+
if (rules.minRangeSpan != null && distance > 0 && distance < rules.minRangeSpan - 1) return true;
|
|
135
69
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if (
|
|
139
|
-
return false;
|
|
70
|
+
if (rules.isDateDisabled == null && !rules.dateConstraints?.length) return false;
|
|
71
|
+
const jsDate = plainDateToDate(date);
|
|
72
|
+
if (rules.isDateDisabled?.(jsDate)) return true;
|
|
73
|
+
return rules.dateConstraints?.some((constraint) => !constraint(jsDate)) ?? false;
|
|
74
|
+
}
|
|
75
|
+
/** 组件内部用:边界是 `Date`,格子里的日子是 `CalendarDate`。 */
|
|
76
|
+
function isCalendarDateDisabled(date, input) {
|
|
77
|
+
return isDayDisabled(date, {
|
|
78
|
+
...input,
|
|
79
|
+
min: input.min ? plainDateFromDate(input.min) : null,
|
|
80
|
+
max: input.max ? plainDateFromDate(input.max) : null
|
|
81
|
+
});
|
|
140
82
|
}
|
|
141
83
|
function isOutsideCalendarBounds(date, min, max) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return false;
|
|
84
|
+
return isDayDisabled(date, {
|
|
85
|
+
min: min ? plainDateFromDate(min) : null,
|
|
86
|
+
max: max ? plainDateFromDate(max) : null
|
|
87
|
+
});
|
|
147
88
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
89
|
+
/**
|
|
90
|
+
* 日期能不能选:把 `min` / `max`、从范围起点量的跨度和自定义规则合成一个判断函数。
|
|
91
|
+
* 只返回数据,格子怎么画、怎么选由调用方决定。
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const anchor = ref<PlainDate | null>(null)
|
|
96
|
+
* const { isDateDisabled } = useCalendarConstraints(() => ({
|
|
97
|
+
* min: '2026-06-05',
|
|
98
|
+
* max: '2026-06-25',
|
|
99
|
+
* maxRangeSpan: 8,
|
|
100
|
+
* rangeAnchor: anchor.value,
|
|
101
|
+
* dateConstraints: [date => date.getDay() !== 1],
|
|
102
|
+
* }))
|
|
103
|
+
* isDateDisabled({ year: 2026, month: 6, day: 15 })
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
function useCalendarConstraints(options) {
|
|
107
|
+
const minDate = computed(() => {
|
|
108
|
+
const min = toValue(options).min;
|
|
109
|
+
return min ? plainDateFromISO(min) : null;
|
|
110
|
+
});
|
|
111
|
+
const maxDate = computed(() => {
|
|
112
|
+
const max = toValue(options).max;
|
|
113
|
+
return max ? plainDateFromISO(max) : null;
|
|
114
|
+
});
|
|
115
|
+
function isDateDisabled(date) {
|
|
116
|
+
const { dateConstraints, minRangeSpan, maxRangeSpan, rangeAnchor } = toValue(options);
|
|
117
|
+
return isDayDisabled(date, {
|
|
118
|
+
min: minDate.value,
|
|
119
|
+
max: maxDate.value,
|
|
120
|
+
dateConstraints,
|
|
121
|
+
minRangeSpan,
|
|
122
|
+
maxRangeSpan,
|
|
123
|
+
rangeAnchor
|
|
172
124
|
});
|
|
173
125
|
}
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const date = new CalendarDate(year, month, day);
|
|
180
|
-
if (!isDisabled(date)) return date;
|
|
181
|
-
}
|
|
182
|
-
return null;
|
|
126
|
+
return {
|
|
127
|
+
isDateDisabled,
|
|
128
|
+
minDate,
|
|
129
|
+
maxDate
|
|
130
|
+
};
|
|
183
131
|
}
|
|
184
132
|
//#endregion
|
|
185
133
|
//#region src/Calendar/useCalendarKeyboard.ts
|
|
@@ -187,16 +135,14 @@ function startOfWeek(date, weekStartsOn) {
|
|
|
187
135
|
const delta = (weekdayIndex(date) - weekStartsOn + 7) % 7;
|
|
188
136
|
return date.subtract({ days: delta });
|
|
189
137
|
}
|
|
138
|
+
function calendarOf(input) {
|
|
139
|
+
return input.calendar ?? "gregory";
|
|
140
|
+
}
|
|
190
141
|
function viewFor(target, input) {
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
if (targetMonth < first) return new CalendarDate(target.year, target.month, 1);
|
|
196
|
-
return shiftMonth({
|
|
197
|
-
year: target.year,
|
|
198
|
-
month: target.month
|
|
199
|
-
}, -(input.numberOfMonths - 1));
|
|
142
|
+
const calendar = calendarOf(input);
|
|
143
|
+
if (isWithinMonths(calendar, target, input.viewStart, input.numberOfMonths)) return void 0;
|
|
144
|
+
if (target.compare(input.viewStart) < 0) return monthStartOf(calendar, target);
|
|
145
|
+
return addMonthStarts(calendar, target, -(input.numberOfMonths - 1));
|
|
200
146
|
}
|
|
201
147
|
function walk(focused, step, input) {
|
|
202
148
|
let candidate = focused.add({ days: step });
|
|
@@ -208,14 +154,16 @@ function walk(focused, step, input) {
|
|
|
208
154
|
return null;
|
|
209
155
|
}
|
|
210
156
|
function page(focused, delta, input) {
|
|
211
|
-
const
|
|
157
|
+
const calendar = calendarOf(input);
|
|
158
|
+
const candidate = toCalendarDay(input.shiftKey ? calendarShiftYears(calendar, focused, delta) : calendarShiftMonths(calendar, focused, delta));
|
|
212
159
|
if (input.isOutOfBounds(candidate)) return null;
|
|
213
160
|
if (!input.isDisabled(candidate)) return candidate;
|
|
214
|
-
return firstEnabledDay(
|
|
161
|
+
return firstEnabledDay(monthOf(calendar, candidate), (date) => input.isDisabled(date) || input.isOutOfBounds(date));
|
|
215
162
|
}
|
|
216
163
|
function weekEdge(focused, edge, input) {
|
|
217
164
|
const start = startOfWeek(focused, input.weekStartsOn);
|
|
218
|
-
const
|
|
165
|
+
const month = monthOf(calendarOf(input), focused);
|
|
166
|
+
const days = Array.from({ length: 7 }, (_, index) => start.add({ days: index })).filter((date) => isInCalendarMonth(date, month)).filter((date) => !input.isDisabled(date) && !input.isOutOfBounds(date));
|
|
219
167
|
if (days.length === 0) return null;
|
|
220
168
|
return edge === "home" ? days[0] : days[days.length - 1];
|
|
221
169
|
}
|
|
@@ -246,7 +194,7 @@ function resolveCalendarKey(input) {
|
|
|
246
194
|
* 没有 `focusDate` 也没有值时,开着的月份要由今天决定:今天还不知道时给一个占位月份,
|
|
247
195
|
* 月份格子先占着位置藏起来(`isMonthPending`),挂载后一读到今天就换成真的月份。
|
|
248
196
|
*/
|
|
249
|
-
function useCalendarToday(props, monthCount) {
|
|
197
|
+
function useCalendarToday(props, monthCount, calendar) {
|
|
250
198
|
const isServerOrHydrating = typeof document === "undefined" || getCurrentInstance()?.vnode.el != null;
|
|
251
199
|
const today = shallowRef(isServerOrHydrating ? null : toCalendarDate(/* @__PURE__ */ new Date()));
|
|
252
200
|
const hasExplicitOpening = Boolean(props.focusDate || props.mode === "single" && props.modelValue || props.range?.start);
|
|
@@ -262,7 +210,8 @@ function useCalendarToday(props, monthCount) {
|
|
|
262
210
|
min: props.min,
|
|
263
211
|
max: props.max,
|
|
264
212
|
numberOfMonths: monthCount.value,
|
|
265
|
-
today: known == null ? void 0 : fromCalendarDate(known)
|
|
213
|
+
today: known == null ? void 0 : fromCalendarDate(known),
|
|
214
|
+
calendar: calendar.value
|
|
266
215
|
});
|
|
267
216
|
}
|
|
268
217
|
/** 挂载时调:今天还不知道就读一次,再让调用方据此换月份。读的这一刻不算用户翻页,月份不播报。 */
|
|
@@ -360,6 +309,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
360
309
|
},
|
|
361
310
|
weekStartsOn: { default: 0 },
|
|
362
311
|
handleRef: {},
|
|
312
|
+
calendar: {},
|
|
363
313
|
label: {},
|
|
364
314
|
disabled: {
|
|
365
315
|
type: Boolean,
|
|
@@ -376,16 +326,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
376
326
|
const props = __props;
|
|
377
327
|
const emit = __emit;
|
|
378
328
|
const locale = useAstryxLocale();
|
|
329
|
+
const calendar = useCalendarSystem(() => props.calendar, "Calendar");
|
|
379
330
|
const messages = useComponentMessages({ calendar: calendarMessages });
|
|
380
331
|
const announce = useAnnounce();
|
|
381
332
|
const rootRef = useTemplateRef("root");
|
|
382
333
|
const monthCount = computed(() => props.numberOfMonths === 2 ? 2 : 1);
|
|
383
334
|
const weekStart = computed(() => weekStartIndex(props.weekStartsOn));
|
|
384
|
-
const { hasExplicitOpening, isMonthPending, isResolvingToday, openingFocus, resolveToday, today } = useCalendarToday(props, monthCount);
|
|
335
|
+
const { hasExplicitOpening, isMonthPending, isResolvingToday, openingFocus, resolveToday, today } = useCalendarToday(props, monthCount, calendar);
|
|
385
336
|
const pending = shallowRef(null);
|
|
386
337
|
const hover = shallowRef(null);
|
|
387
338
|
const opened = openingFocus(today.value);
|
|
388
|
-
const view = shallowRef(
|
|
339
|
+
const view = shallowRef(monthStartOf(calendar.value, opened));
|
|
389
340
|
const focused = shallowRef(opened);
|
|
390
341
|
const rtl = computed(() => {
|
|
391
342
|
if (typeof document !== "undefined" && document.documentElement.dir === "rtl") return true;
|
|
@@ -417,40 +368,29 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
417
368
|
return isCalendarDateDisabled(date, constraints());
|
|
418
369
|
}
|
|
419
370
|
function visible(date) {
|
|
420
|
-
|
|
421
|
-
const index = date.year * 12 + date.month;
|
|
422
|
-
return index >= start && index < start + monthCount.value;
|
|
371
|
+
return isWithinMonths(calendar.value, date, view.value, monthCount.value);
|
|
423
372
|
}
|
|
424
|
-
|
|
373
|
+
/** 在 `date` 所在的历法月里找键盘焦点的落点:先选中值,再今天,再第一个可选的日子。 */
|
|
374
|
+
function seed(date) {
|
|
375
|
+
const month = monthOf(calendar.value, date);
|
|
425
376
|
const candidates = [];
|
|
426
377
|
if (props.mode === "single" && props.modelValue) candidates.push(toCalendarDate(props.modelValue));
|
|
427
378
|
if (today.value != null) candidates.push(today.value);
|
|
428
|
-
|
|
429
|
-
for (const week of buildCalendarWeeks(month.year, month.month, weekStart.value, false)) for (const day of week.days) if (!day.outside && !blocked(day.date)) return day.date;
|
|
430
|
-
return shiftMonth(month, 0);
|
|
379
|
+
return candidates.find((candidate) => isInCalendarMonth(candidate, month) && !blocked(candidate)) ?? firstEnabledDay(month, blocked) ?? monthStartOf(calendar.value, date);
|
|
431
380
|
}
|
|
432
381
|
focused.value = seed(view.value);
|
|
433
382
|
const months = computed(() => Array.from({ length: monthCount.value }, (_, index) => {
|
|
434
|
-
const
|
|
383
|
+
const month = monthOf(calendar.value, addMonthStarts(calendar.value, view.value, index));
|
|
384
|
+
const focusDay = isInCalendarMonth(focused.value, month) ? calendarDayOfMonth(calendar.value, focused.value) : void 0;
|
|
435
385
|
return {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
weeks: buildCalendarWeeks(cursor.year, cursor.month, weekStart.value, props.hasVariableRowCount)
|
|
386
|
+
key: plainDateToISO(month.start),
|
|
387
|
+
label: formatCalendarMonthLabel(calendar.value, month, locale.value, focusDay),
|
|
388
|
+
weeks: buildMonthWeeks(calendar.value, month, weekStart.value, props.hasVariableRowCount)
|
|
440
389
|
};
|
|
441
390
|
}));
|
|
442
391
|
const headerLabel = computed(() => months.value.map((month) => month.label).join(" – "));
|
|
443
|
-
const canPrevious = computed(() =>
|
|
444
|
-
|
|
445
|
-
const min = toCalendarDate(props.min);
|
|
446
|
-
return min.year < view.value.year || min.year === view.value.year && min.month < view.value.month;
|
|
447
|
-
});
|
|
448
|
-
const canNext = computed(() => {
|
|
449
|
-
if (!props.max) return true;
|
|
450
|
-
const max = toCalendarDate(props.max);
|
|
451
|
-
const last = shiftMonth(view.value, monthCount.value - 1);
|
|
452
|
-
return max.year > last.year || max.year === last.year && max.month > last.month;
|
|
453
|
-
});
|
|
392
|
+
const canPrevious = computed(() => !props.min || toCalendarDate(props.min).compare(view.value) < 0);
|
|
393
|
+
const canNext = computed(() => !props.max || toCalendarDate(props.max).compare(addMonthStarts(calendar.value, view.value, monthCount.value)) >= 0);
|
|
454
394
|
const selectedSingle = computed(() => props.mode === "single" && props.modelValue ? toCalendarDate(props.modelValue) : null);
|
|
455
395
|
const committedStart = computed(() => props.mode === "range" && props.range?.start ? toCalendarDate(props.range.start) : null);
|
|
456
396
|
const committedEnd = computed(() => props.mode === "range" && props.range?.end ? toCalendarDate(props.range.end) : null);
|
|
@@ -468,7 +408,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
468
408
|
const visualStart = computed(() => preview.value?.start ?? pending.value ?? committedStart.value);
|
|
469
409
|
const visualEnd = computed(() => preview.value?.end ?? (pending.value ? null : committedEnd.value));
|
|
470
410
|
function setView(next, keep) {
|
|
471
|
-
view.value =
|
|
411
|
+
view.value = monthStartOf(calendar.value, next);
|
|
472
412
|
emit("update:focusDate", fromCalendarDate(view.value));
|
|
473
413
|
if (keep) focused.value = keep;
|
|
474
414
|
else if (!visible(focused.value)) focused.value = seed(view.value);
|
|
@@ -482,7 +422,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
482
422
|
if (props.disabled) return;
|
|
483
423
|
if (amount < 0 && !canPrevious.value) return;
|
|
484
424
|
if (amount > 0 && !canNext.value) return;
|
|
485
|
-
setView(
|
|
425
|
+
setView(addMonthStarts(calendar.value, view.value, amount));
|
|
486
426
|
focusStop();
|
|
487
427
|
}
|
|
488
428
|
function navigateTo(date) {
|
|
@@ -496,8 +436,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
496
436
|
watch(() => props.focusDate ? dateISO(props.focusDate) : "", (iso) => {
|
|
497
437
|
if (!iso || !props.focusDate) return;
|
|
498
438
|
const next = toCalendarDate(props.focusDate);
|
|
499
|
-
if (
|
|
500
|
-
view.value =
|
|
439
|
+
if (isSameMonth(calendar.value, next, view.value)) return;
|
|
440
|
+
view.value = monthStartOf(calendar.value, next);
|
|
501
441
|
if (!visible(focused.value)) focused.value = seed(view.value);
|
|
502
442
|
});
|
|
503
443
|
watch(headerLabel, (label) => {
|
|
@@ -505,50 +445,35 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
505
445
|
}, { flush: "sync" });
|
|
506
446
|
onMounted(() => resolveToday((known) => {
|
|
507
447
|
if (hasExplicitOpening) return;
|
|
508
|
-
view.value =
|
|
448
|
+
view.value = monthStartOf(calendar.value, openingFocus(known));
|
|
509
449
|
focused.value = seed(view.value);
|
|
510
450
|
}));
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
const disabled = outside || blocked(day.date);
|
|
517
|
-
const continues = !outside && !blocked(day.date) && inSpan(day.date, start, end);
|
|
518
|
-
const previous = index > 0 ? week.days[index - 1] : null;
|
|
519
|
-
const next = index < 6 ? week.days[index + 1] : null;
|
|
520
|
-
const previousContinues = !!previous && !previous.outside && !blocked(previous.date) && inSpan(previous.date, start, end);
|
|
521
|
-
const nextContinues = !!next && !next.outside && !blocked(next.date) && inSpan(next.date, start, end);
|
|
522
|
-
const isStart = !!start && !outside && sameCalendarDay(day.date, start);
|
|
523
|
-
const isEnd = !!end && !outside && sameCalendarDay(day.date, end);
|
|
524
|
-
const selected = !outside && (props.mode === "single" && !!selectedSingle.value && sameCalendarDay(day.date, selectedSingle.value) || isStart || isEnd);
|
|
525
|
-
const named = formatWeekdayDate(day.date, locale.value);
|
|
526
|
-
let label = named;
|
|
527
|
-
if (props.mode === "range" && isStart && isEnd) label = messages.value.calendar.rangeBoth(named);
|
|
528
|
-
else if (props.mode === "range" && isStart) label = messages.value.calendar.rangeStartName(named);
|
|
529
|
-
else if (props.mode === "range" && isEnd) label = messages.value.calendar.rangeEndName(named);
|
|
530
|
-
return {
|
|
531
|
-
iso: day.iso,
|
|
532
|
-
date: day.date,
|
|
533
|
-
text: day.day,
|
|
534
|
-
outside,
|
|
535
|
-
shown: props.hasOutsideDays || !outside,
|
|
536
|
-
disabled,
|
|
537
|
-
selected,
|
|
538
|
-
inRange: continues && !isStart && !isEnd,
|
|
539
|
-
preview: preview.value != null,
|
|
540
|
-
bandStart: continues && !isStart && !isEnd && (!previousContinues || !!start && sameCalendarDay(previous.date, start)),
|
|
541
|
-
bandEnd: continues && !isStart && !isEnd && (!nextContinues || !!end && sameCalendarDay(next.date, end)),
|
|
542
|
-
rangeStart: isStart,
|
|
543
|
-
rangeEnd: isEnd,
|
|
544
|
-
today: !outside && today.value != null && sameCalendarDay(day.date, today.value),
|
|
545
|
-
tab: !outside && !props.disabled && sameCalendarDay(day.date, focused.value),
|
|
546
|
-
roundStart: continues && (isStart || index === 0 || !previousContinues),
|
|
547
|
-
roundEnd: continues && (isEnd || index === 6 || !nextContinues),
|
|
548
|
-
label
|
|
549
|
-
};
|
|
550
|
-
});
|
|
451
|
+
watch(calendar, () => {
|
|
452
|
+
view.value = monthStartOf(calendar.value, focused.value);
|
|
453
|
+
});
|
|
454
|
+
function nameOf(date) {
|
|
455
|
+
return formatWeekdayDate(date, locale.value, calendar.value);
|
|
551
456
|
}
|
|
457
|
+
function dayLabel(date, isStart, isEnd) {
|
|
458
|
+
const named = nameOf(date);
|
|
459
|
+
if (props.mode !== "range") return named;
|
|
460
|
+
if (isStart && isEnd) return messages.value.calendar.rangeBoth(named);
|
|
461
|
+
if (isStart) return messages.value.calendar.rangeStartName(named);
|
|
462
|
+
if (isEnd) return messages.value.calendar.rangeEndName(named);
|
|
463
|
+
return named;
|
|
464
|
+
}
|
|
465
|
+
const paintContext = computed(() => ({
|
|
466
|
+
start: visualStart.value,
|
|
467
|
+
end: visualEnd.value,
|
|
468
|
+
preview: preview.value != null,
|
|
469
|
+
selected: selectedSingle.value,
|
|
470
|
+
today: today.value,
|
|
471
|
+
focused: focused.value,
|
|
472
|
+
hasOutsideDays: props.hasOutsideDays,
|
|
473
|
+
disabled: props.disabled,
|
|
474
|
+
blocked,
|
|
475
|
+
label: dayLabel
|
|
476
|
+
}));
|
|
552
477
|
function pick(date) {
|
|
553
478
|
if (props.disabled || blocked(date)) return;
|
|
554
479
|
focused.value = date;
|
|
@@ -566,7 +491,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
566
491
|
end: null
|
|
567
492
|
});
|
|
568
493
|
emit("change", value);
|
|
569
|
-
announce(messages.value.calendar.rangeStart(
|
|
494
|
+
announce(messages.value.calendar.rangeStart(nameOf(date)));
|
|
570
495
|
return;
|
|
571
496
|
}
|
|
572
497
|
if (sameCalendarDay(date, pending.value) && props.minRangeSpan > 1) {
|
|
@@ -577,7 +502,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
577
502
|
end: null
|
|
578
503
|
});
|
|
579
504
|
emit("change", null);
|
|
580
|
-
announce(messages.value.calendar.rangeCleared(
|
|
505
|
+
announce(messages.value.calendar.rangeCleared(nameOf(date)));
|
|
581
506
|
return;
|
|
582
507
|
}
|
|
583
508
|
const start = pending.value.compare(date) <= 0 ? pending.value : date;
|
|
@@ -590,7 +515,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
590
515
|
};
|
|
591
516
|
emit("update:range", value);
|
|
592
517
|
emit("change", value.end);
|
|
593
|
-
announce(messages.value.calendar.rangeComplete(
|
|
518
|
+
announce(messages.value.calendar.rangeComplete(nameOf(start), nameOf(end)));
|
|
594
519
|
}
|
|
595
520
|
function onKeyDown(event) {
|
|
596
521
|
if (props.disabled) return;
|
|
@@ -604,7 +529,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
604
529
|
start: null,
|
|
605
530
|
end: null
|
|
606
531
|
});
|
|
607
|
-
announce(messages.value.calendar.rangeCleared(
|
|
532
|
+
announce(messages.value.calendar.rangeCleared(nameOf(date)));
|
|
608
533
|
return;
|
|
609
534
|
}
|
|
610
535
|
if (event.key === "Enter" || event.key === " ") {
|
|
@@ -619,8 +544,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
619
544
|
focused: focused.value,
|
|
620
545
|
weekStartsOn: weekStart.value,
|
|
621
546
|
numberOfMonths: monthCount.value,
|
|
622
|
-
|
|
623
|
-
|
|
547
|
+
viewStart: view.value,
|
|
548
|
+
calendar: calendar.value,
|
|
624
549
|
isOutOfBounds: (date) => isOutsideCalendarBounds(date, props.min, props.max),
|
|
625
550
|
isDisabled: (date) => isCalendarDateDisabled(date, constraints())
|
|
626
551
|
});
|
|
@@ -663,7 +588,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
663
588
|
})], 8, _hoisted_5)
|
|
664
589
|
])]), createElementVNode("div", _hoisted_6, [(openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
|
|
665
590
|
return openBlock(), createElementBlock("section", {
|
|
666
|
-
key:
|
|
591
|
+
key: month.key,
|
|
667
592
|
class: "astryx-calendar-month"
|
|
668
593
|
}, [createElementVNode("div", {
|
|
669
594
|
class: "astryx-calendar-grid",
|
|
@@ -685,10 +610,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
685
610
|
}, toDisplayString(day.short), 9, _hoisted_10);
|
|
686
611
|
}), 128))]), (openBlock(true), createElementBlock(Fragment, null, renderList(month.weeks, (week, rowIndex) => {
|
|
687
612
|
return openBlock(), createElementBlock("div", {
|
|
688
|
-
key: `${month.
|
|
613
|
+
key: `${month.key}-${rowIndex}`,
|
|
689
614
|
class: "astryx-calendar-row",
|
|
690
615
|
role: "row"
|
|
691
|
-
}, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(unref(formatDayNumber)(week.number, unref(locale))), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
616
|
+
}, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(unref(formatDayNumber)(week.number, unref(locale))), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(paintCalendarWeek)(week, paintContext.value), (day) => {
|
|
692
617
|
return openBlock(), createElementBlock("div", {
|
|
693
618
|
key: day.iso,
|
|
694
619
|
class: "astryx-calendar-gridcell",
|
|
@@ -736,4 +661,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
736
661
|
}
|
|
737
662
|
});
|
|
738
663
|
//#endregion
|
|
739
|
-
export {
|
|
664
|
+
export { useCalendarConstraints as a, isOutsideCalendarBounds as i, resolveCalendarKey as n, isCalendarDateDisabled as r, _sfc_main as t };
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-
|
|
1
|
+
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-CTjkJP4x.js";
|
|
2
2
|
export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant, type CardVariantMap };
|
package/dist/Card/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Card-
|
|
1
|
+
import { t as _sfc_main } from "../Card-D_OJxmwD.js";
|
|
2
2
|
export { _sfc_main as Card };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as provideLayoutContainer } from "./context-D-Hwh-Jf.js";
|
|
2
2
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, normalizeStyle, openBlock, renderSlot, useTemplateRef } from "vue";
|
|
4
4
|
import "../styles/card.css";
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ao as CarouselHandle, io as CarouselGap, oo as CarouselProps, ro as _default, so as CarouselSlots } from "../index-
|
|
1
|
+
import { ao as CarouselHandle, io as CarouselGap, oo as CarouselProps, ro as _default, so as CarouselSlots } from "../index-B5MCvW75.js";
|
|
2
2
|
export { _default as Carousel, type CarouselGap, type CarouselHandle, type CarouselProps, type CarouselSlots };
|