@astryx-vue/core 0.39.0 → 0.41.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-DnylRSpj.js → AlertDialog-DxrO48Kg.js} +7 -7
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-lv3WDlCi.js → AppShell-Y-rwHGxA.js} +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-BY-EWaJM.js → Avatar-z50mYJor.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BSsARmYE.js → AvatarGroup-BZ5iG7M-.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CqIYLEcx.js → Banner-0YtnbBU6.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-D37eNqz5.js → BottomSheet-B8frtWqm.js} +1387 -200
- package/dist/BottomSheet-u57AJshc.js +527 -0
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BEzCPnoe.js → Breadcrumbs-9KMHiyXr.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DGIfLwqj.js → Button-ClyetTf6.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CaQ7bir4.js → ButtonGroup-tk0H2O8q.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DmeW51vC.js → Carousel-utfvjW5p.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-whrqE8Zj.js → Chat-DL583Xle.js} +6 -6
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CHO4Jz0m.js → CheckboxInput-BQH87pfn.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-C4dmrC_w.js → CheckboxListItem-CZ1B81gI.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DYcn-IFI.js → ClickableCard-CdByvXDr.js} +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-D80SHrJx.js → Code-KvqZ1ZES.js} +1 -1
- package/dist/{CodeBlock-vhMVY90M.js → CodeBlock-e2rlXQWO.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-CaKmR3yE.js → Collapsible-CTc7irlw.js} +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-C-iXk7EB.js → CommandPalette-PBYSDIpx.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BsdtBmd0.js → ComplexSelector-CPg5jcdL.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-GZkN9lf1.js → ContextMenu-DcZEviKv.js} +5 -5
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-Cb6eLrbU.js → DateInput-C4qtEFDW.js} +5 -5
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BUFeQYJ6.js → DateRangeInput-CGqCQAlT.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-r-MOwLs4.js → DateTimeInput-CAirxttc.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BP2KWnEi.js → Dialog-B2-5xYs2.js} +2 -2
- package/dist/{Dialog-BUl1lqE6.js → Dialog-CjN3cV-b.js} +2 -2
- package/dist/{DialogHeader-CPhEYbZ1.js → DialogHeader-BS8mjD8z.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-C0ntt2L9.js → Drawer-Cq1Y_1iJ.js} +4 -4
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-CSWLdtI4.js → DropdownMenu-CSn1OQ2D.js} +7 -7
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BUmLBchw.js → EmptyState-uHOykbeo.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-BYAHZ4s7.js → Field-BzGwGqwa.js} +1 -1
- package/dist/{FieldInfoTip-6IHEEEJL.js → FieldInfoTip-DqsdZxo0.js} +1 -1
- package/dist/{FieldLabel-CHaeZROf.js → FieldLabel-DdMLaCP_.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DD3DvIT0.js → FileInput-B_BXknEU.js} +3 -3
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-SdObK_xM.js → Heading-BFJhZInd.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-B7hrl0Qz.js → HoverCard-Cbxy2KEM.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CzU-cz_H.js → IconButton-kj1M_L7a.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-Ckhg715K.js → InfoTip-DJIb8b29.js} +2 -2
- package/dist/{InputClearButton-Btjd5Lnk.js → InputClearButton-wd0VoZja.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-C388xPHC.js → InputGroup-DGiF9Xaz.js} +1 -1
- package/dist/{Item-DrV3f4fe.js → Item-DC1v56yE.js} +1 -1
- package/dist/{LayerContentBoundary-iYtfCpG9.js → LayerContentBoundary-tgsCvoNX.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-DTSKNAzq.js → Layout-C7oS06UY.js} +1 -1
- package/dist/{LayoutPanel-CH4HZGLR.js → LayoutPanel-BwvUhSM5.js} +1 -1
- package/dist/Lightbox/index.d.ts +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/Lightbox-Fu6RCX0k.js +2353 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BsmxrY3Y.js → Link-zPVCNAM6.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-BEc2EF1u.js → ListItem-CrFLvZ6o.js} +2 -2
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BkL2wt7F.js → Markdown-BiXz75mz.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CiY__Fy9.js → MobileNavToggle-VB6SzHYo.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-pvuN9vfu.js → MoreMenu-RbFK2t0J.js} +6 -6
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-sD97taHQ.js → MultiSelector-CaL3UDIc.js} +5 -5
- package/dist/{NavDisclosure-l2h8R_ub.js → NavDisclosure-tEaEwaA0.js} +1 -1
- package/dist/{NavHeadingSurface-C3QJ64vm.js → NavHeadingSurface-CwSYyXFb.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BbnusKbo.js → NavItem-D_1ecPv_.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-BRWghdCF.js → NavMenu-CqhjkZuz.js} +2 -2
- package/dist/{NavMenuItem-BtYmdZGe.js → NavMenuItem-DqBCA1VP.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-B3Y_NOui.js → NumberInput-0lTA5weY.js} +4 -4
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DGntLLCe.js → Outline-BoxN40Bd.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-DJBaY3B_.js → OverflowList-7oui4oT5.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BJKFuELz.js → Pagination-BrkX0lga.js} +2 -2
- package/dist/{PanGestureRecognizer-K-I6ORwh.js → PanGestureRecognizer-BFSO5U4N.js} +3 -3
- package/dist/{PickerWheel-J5F_ecWb.js → PickerWheel-CWT7l-9Q.js} +16 -14
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CVZnqsUy.js → Popover-BZ4VWDtv.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BHTHVINR.js → PowerSearch-BEDWm7aj.js} +26 -26
- package/dist/{PressTracker-Byalgid0.js → PressTracker-DDRxFc0Y.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DJ79DNQq.js → ProgressBar-D4br-4_x.js} +2 -2
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CvMj98z_.js → RadioGroup-CrRm7H51.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-CptY2wdB.js → RadioListItem-iPD3y2Eo.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-ruXeaXUT.js → ResizeHandle-C7xEokaQ.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DMxIY7uq.js → SegmentedControl-D8A_jaFC.js} +7 -7
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-BSgi3FJf.js → SelectableCard-DIruuGBa.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DhKtSP71.js → Selector-CFdM10Uc.js} +3 -3
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DOXNxEIp.js → SideNav-Cl1H-baW.js} +7 -7
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-D5GYcH4S.js → Slider-Bd3wpFo7.js} +11 -10
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DOf6Q4MC.js → StatusDot-arRs8rKk.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-0ycdCwND.js → Stepper-CZU_Zvi5.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DDHf_9iJ.js → Switch-BpkKyz98.js} +10 -10
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BnLUktgm.js → TabList-DZ2i0QIt.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-B49mlc0R.js → Table-kq_-RxXg.js} +10 -10
- package/dist/{haptics-By_893U8.js → TapGestureRecognizer-DCiP88h8.js} +4 -21
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CILdp7jE.js → Text-DHm9r3Yh.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BSB5WIpK.js → TextArea-D5aDDlgr.js} +5 -5
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Ck-6Mtbt.js → TextInput-CVRWRtoL.js} +5 -5
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Tg50Msul.js → Thumbnail-zFN5p6dk.js} +3 -3
- package/dist/{TimeField-CLD_j1tX.js → TimeField-B49DgkyR.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DuijuQMd.js → TimeInput-BoFij92p.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DOoFQEBD.js → Timer-zNCSMU7S.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D8fyTuhk.js → Timestamp-DunFvQYG.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-51l_F_YA.js → Toast-BnIq3gzw.js} +5 -7
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-_fEU63Nz.js → ToggleButton-CLgj6yLQ.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Di7w9Cvr.js → Token-BPjnWrHl.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-wWybLovw.js → Tokenizer-CMv-Bi0y.js} +258 -176
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-DPiEYfao.js → Tooltip-BuPbbGtv.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-GvK-XIRl.js → TopNav-DUkn4CMv.js} +5 -5
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CfELZwbQ.js → TreeList-o5MrA7rz.js} +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-DtNM4311.js → Typeahead-DXlsxjkQ.js} +5 -5
- package/dist/{VelocityTracker-CWqXCLNe.js → VelocityTracker-D5wT6A0d.js} +1 -1
- package/dist/{accessibleName-CYV4uRm9.js → accessibleName-9UI6HUaA.js} +1 -1
- package/dist/{animator-i7djdtNK.js → animator-D6Buqmbt.js} +1 -1
- package/dist/{boxHold-ig0sUg95.js → boxHold-DfsWCZLh.js} +1 -1
- package/dist/composables/index.js +8 -8
- package/dist/{composables-D5840uKi.js → composables-Dzpv7G2Z.js} +13 -409
- package/dist/{decay-DGF4-sPB.js → decay-CUtQFEXK.js} +6 -2
- package/dist/{geometry-BBqUriul.js → geometry-ae8bOxQ5.js} +1 -1
- package/dist/{gestures-CP1MX1rx.js → gestures-D_ih8YYG.js} +1 -1
- package/dist/haptics-BPQp81pc.js +19 -0
- package/dist/{index-J83fLEyo.d.ts → index-B7-c8UTz.d.ts} +3 -3
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-CEdoNcHF.d.ts → index-BfOs5BQj.d.ts} +2 -2
- package/dist/{index-CCpcerMA.d.ts → index-BhGIK1Hz.d.ts} +4 -1
- package/dist/{index-DXGoFpRN.d.ts → index-BylgDU_m.d.ts} +3 -3
- package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
- package/dist/{index-Bk2SsmEu.d.ts → index-DCH2D3wa.d.ts} +8 -8
- package/dist/{index-EyFu5eSZ.d.ts → index-DQ5vPsr8.d.ts} +9 -9
- package/dist/{index--kbwaSXW.d.ts → index-DXHmlFcC.d.ts} +3 -3
- package/dist/{index-ZXDolNI1.d.ts → index-DrbxKOhR.d.ts} +55 -55
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
- package/dist/{index-Ak1b0V24.d.ts → index-a6o69uPN.d.ts} +1 -1
- package/dist/{index-DVX2jlTQ.d.ts → index-m-fFGq2e.d.ts} +6 -3
- package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
- package/dist/index.d.ts +21 -21
- package/dist/index.js +99 -99
- package/dist/{layerDepth-C4altnV8.js → layerDepth-D576XVps.js} +1 -1
- package/dist/{lazyBottomSheet-DUPKYGf1.js → lazyBottomSheet-gQtGKE8w.js} +1 -1
- package/dist/{modalOutlet-BwR9AAlm.js → modalOutlet-C2nqIYUt.js} +7 -6
- package/dist/{position-CkZfFubr.js → position-DD8UQJ2A.js} +1 -1
- package/dist/{pressGesture-ZTBGwYpT.js → pressGesture-CwmZDuSC.js} +1 -1
- package/dist/{pressSlot-zlwhNl9N.js → pressSlot-5Bp-B175.js} +1 -1
- package/dist/{projection-DzrWyxL1.js → projection-Ccz44WX4.js} +1 -1
- package/dist/{reducedMotion-BHRhHfWB.js → reducedMotion-BcstlXZU.js} +1 -1
- package/dist/{resizableChannel-b7iQNnCj.js → resizableChannel-CABtOiJL.js} +1 -1
- package/dist/{resolveMotion-BCM4CX-R.js → resolveMotion-BHR1cz0Q.js} +1 -1
- package/dist/{resolveSnapPoint-D1yU-Z-K.js → resolveSnapPoint-C7GZY6jT.js} +1 -1
- package/dist/{rideKeyboard-BKGLLMuU.js → rideKeyboard-BldiTgxS.js} +2 -2
- package/dist/{rubberBand-C-2erWWl.js → rubberBand-Ct9HFML5.js} +1 -1
- package/dist/snapPagingCatcher-RkUaZdWD.js +407 -0
- package/dist/{stillPointerGate-DXFzBeMy.js → stillPointerGate-CCFCP1uz.js} +1 -1
- package/dist/{tooltipFocusRules-R21SPfWy.js → tooltipFocusRules-CfJwTrhE.js} +2 -2
- package/dist/{tooltipTriggerRules-CoGD2lVn.js → tooltipTriggerRules-DRhcB-wA.js} +1 -1
- package/dist/{useActionGroupTracking-DB5xIxPW.js → useActionGroupTracking-Cujjrmt3.js} +3 -3
- package/dist/{useDismiss-yu_sIa7a.js → useDismiss-Dq7HNw2m.js} +1 -1
- package/dist/{useGestureRecognizer-BKzTWKYx.js → useGestureRecognizer-CtfxP4uw.js} +1 -1
- package/dist/{useInputStatusIcon-DJfhmCiH.js → useInputStatusIcon-2sRn-Nbf.js} +1 -1
- package/dist/{useMenuPress-DrrOBqjM.js → useMenuPress-B2Zt5xc5.js} +1 -1
- package/dist/{useMobileKeyboard-Cibxl8ZC.js → useMobileKeyboard-CN6o0BrJ.js} +2 -2
- package/dist/{usePressFeedback-BEY9kk8T.js → usePressFeedback-Ber7MRiI.js} +3 -3
- package/dist/{useResizable-CJQAV_tU.js → useResizable-Dme0X_ZM.js} +5 -5
- package/dist/{useTooltip-B2RrDbtI.js → useTooltip-Dg2459oV.js} +4 -4
- package/dist/{useTouchHitArea-DvKV21NY.js → useTouchHitArea-B6g7fhfF.js} +226 -44
- package/dist/{useTouchTriggerInternal-Obcx-oKN.js → useTouchTriggerInternal-DZ_e8l4G.js} +1 -1
- package/dist/{useTruncationTooltip-RUl8qSGz.js → useTruncationTooltip-CCVsMc8c.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-0glQWHQd.js → useTypeaheadMenuConfig-CKEuRCOZ.js} +1 -1
- package/package.json +1 -1
- package/styles/bottom-sheet.css +61 -19
- package/styles/date-input.css +76 -0
- package/styles/lightbox.css +117 -33
- package/styles/tokenizer.css +88 -0
- package/dist/BottomSheet-6W3izQzr.js +0 -203
- package/dist/Lightbox-CQhmsbhy.js +0 -545
- package/dist/{index-5FGt4HsB.d.ts → index-BqhgeAT4.d.ts} +1 -1
package/styles/lightbox.css
CHANGED
|
@@ -18,83 +18,146 @@
|
|
|
18
18
|
outline: none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/* 下拉关闭和它的松手动画期间,`--_lightbox-backdrop-filter` 关掉模糊:每帧重绘整屏模糊会掉帧。 */
|
|
21
22
|
.astryx-lightbox::backdrop {
|
|
22
23
|
background-color: var(--astryx-color-overlay, light-dark(#00000080, #000000cc));
|
|
23
|
-
backdrop-filter: blur(2px);
|
|
24
|
+
backdrop-filter: var(--_lightbox-backdrop-filter, blur(2px));
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.astryx-lightbox__container {
|
|
27
28
|
position: relative;
|
|
28
29
|
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
29
31
|
align-items: center;
|
|
30
32
|
justify-content: center;
|
|
31
33
|
width: 100%;
|
|
32
34
|
height: 100%;
|
|
33
35
|
}
|
|
34
36
|
|
|
37
|
+
/* 舞台是翻页器的视口,单张照片也是。它铺满灯箱,每一页才有自己的尺寸。 */
|
|
35
38
|
.astryx-lightbox__media {
|
|
36
39
|
display: flex;
|
|
37
40
|
flex-direction: column;
|
|
38
41
|
align-items: center;
|
|
42
|
+
align-self: stretch;
|
|
43
|
+
flex-grow: 1;
|
|
44
|
+
min-height: 0;
|
|
39
45
|
max-width: 100%;
|
|
40
46
|
max-height: 100%;
|
|
41
|
-
min-height: 0;
|
|
42
47
|
overflow: hidden;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
|
-
.astryx-
|
|
50
|
+
.astryx-lightbox__viewport {
|
|
51
|
+
position: relative;
|
|
46
52
|
display: flex;
|
|
47
53
|
align-items: center;
|
|
48
54
|
justify-content: center;
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
align-self: stretch;
|
|
56
|
+
flex: 1 1 0;
|
|
51
57
|
min-height: 0;
|
|
52
58
|
overflow: hidden;
|
|
53
59
|
user-select: none;
|
|
54
60
|
cursor: default;
|
|
55
61
|
}
|
|
56
62
|
|
|
57
|
-
|
|
63
|
+
/* 往下拖着关闭的照片画到包住它的盒子外面去。 */
|
|
64
|
+
.astryx-lightbox__media:has([data-zoom-dismissing]),
|
|
65
|
+
.astryx-lightbox__viewport:has([data-zoom-dismissing]) {
|
|
66
|
+
overflow: visible;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* 适应大小时放大镜光标只在照片上方显示;照片旁边点一下关闭灯箱。 */
|
|
70
|
+
.astryx-lightbox__viewport[data-zoomable][data-lightbox-over-photo] {
|
|
58
71
|
cursor: zoom-in;
|
|
59
72
|
}
|
|
60
73
|
|
|
61
|
-
.astryx-
|
|
74
|
+
.astryx-lightbox__viewport[data-zoomed] {
|
|
62
75
|
cursor: grab;
|
|
63
76
|
}
|
|
64
77
|
|
|
65
|
-
.astryx-
|
|
78
|
+
.astryx-lightbox__viewport[data-zoomed]:has([data-zoom-dragging]) {
|
|
66
79
|
cursor: grabbing;
|
|
67
80
|
}
|
|
68
81
|
|
|
82
|
+
/*
|
|
83
|
+
* 每一页共用两行:照片的行和图注区域的行(subgrid)。图注区域每页一样高,
|
|
84
|
+
* 所以每张照片都在同一个盒子里居中,翻页时照片不会忽大忽小。
|
|
85
|
+
*/
|
|
86
|
+
.astryx-lightbox__track {
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
display: grid;
|
|
90
|
+
grid-template-columns: 100%;
|
|
91
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/*
|
|
95
|
+
* 照片的行接管舞台自己的捏合、平移和双击。祖先的 touch-action 禁掉的,后代放不开,
|
|
96
|
+
* 所以轨道只留页面自己的捏合缩放,捏在控件或图注上仍然缩放页面。
|
|
97
|
+
* 触屏下不能缩放的照片把单指拖动留给下拉关闭。
|
|
98
|
+
*/
|
|
99
|
+
.astryx-lightbox__track[data-zoom-target],
|
|
100
|
+
.astryx-lightbox__track[data-dismiss-target] {
|
|
101
|
+
touch-action: pinch-zoom;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
* 每项一页,和舞台一样大,放在 序号 ×(宽 + 页距)处。所有页叠在轨道唯一的一列里,按各自的起始偏移错开。
|
|
106
|
+
* 每页一个图层:主线程忙时,滑进来的页面要先整页画好再动。
|
|
107
|
+
*/
|
|
108
|
+
.astryx-lightbox__page {
|
|
109
|
+
position: relative;
|
|
110
|
+
grid-column: 1;
|
|
111
|
+
grid-row: 1 / span 2;
|
|
112
|
+
display: grid;
|
|
113
|
+
grid-template-columns: 100%;
|
|
114
|
+
grid-template-rows: subgrid;
|
|
115
|
+
min-height: 0;
|
|
116
|
+
will-change: transform;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* 页面的照片盒子:当前页的缩放舞台,在照片的行里。 */
|
|
120
|
+
.astryx-lightbox__frame {
|
|
121
|
+
grid-row: 1;
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
min-width: 0;
|
|
126
|
+
min-height: 0;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* 下拉关闭的照片画在盒子外面、图注区域上面、控件下面。 */
|
|
131
|
+
.astryx-lightbox__frame[data-zoom-dismissing] {
|
|
132
|
+
z-index: 1;
|
|
133
|
+
overflow: visible;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* 照片盒子是缩放按钮:光标跟着舞台走,不用按钮的手形。 */
|
|
137
|
+
.astryx-lightbox__frame[data-zoomable] {
|
|
138
|
+
touch-action: none;
|
|
139
|
+
cursor: inherit;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* 盒子会裁切,焦点环画在边里面。 */
|
|
69
143
|
.astryx-lightbox__frame:focus-visible {
|
|
70
144
|
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
|
|
71
|
-
outline-offset: var(--astryx-focus-outline-
|
|
145
|
+
outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
|
|
72
146
|
}
|
|
73
147
|
|
|
74
148
|
.astryx-lightbox__image,
|
|
75
149
|
.astryx-lightbox__video {
|
|
76
150
|
display: block;
|
|
77
|
-
max-width:
|
|
78
|
-
max-height:
|
|
79
|
-
max-height: calc(100dvh - 7rem);
|
|
151
|
+
max-width: 100%;
|
|
152
|
+
max-height: 100%;
|
|
80
153
|
object-fit: contain;
|
|
81
154
|
outline: none;
|
|
82
155
|
}
|
|
83
156
|
|
|
157
|
+
/* 缩放舞台以照片左上角为原点缩放,用独立的 scale 和 translate 属性移动它。 */
|
|
84
158
|
.astryx-lightbox__image {
|
|
85
159
|
pointer-events: none;
|
|
86
|
-
transform-origin:
|
|
87
|
-
transition: transform 200ms ease-out;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.astryx-lightbox__image[data-dragging] {
|
|
91
|
-
transition: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@media (prefers-reduced-motion: reduce) {
|
|
95
|
-
.astryx-lightbox__image {
|
|
96
|
-
transition-duration: 0ms;
|
|
97
|
-
}
|
|
160
|
+
transform-origin: 0 0;
|
|
98
161
|
}
|
|
99
162
|
|
|
100
163
|
.astryx-lightbox__caption {
|
|
@@ -119,13 +182,9 @@
|
|
|
119
182
|
--_lightbox-caption-band-height: calc(2 * var(--astryx-text-body-size, 1rem) * var(--astryx-text-body-leading, 1.4286));
|
|
120
183
|
}
|
|
121
184
|
|
|
122
|
-
.astryx-lightbox[data-caption-band] .astryx-lightbox__image,
|
|
123
|
-
.astryx-lightbox[data-caption-band] .astryx-lightbox__video {
|
|
124
|
-
max-height: calc(100vh - 7rem - var(--_lightbox-caption-band-height) - 2 * var(--_lightbox-caption-band-padding) - env(safe-area-inset-bottom, 0px));
|
|
125
|
-
max-height: calc(100dvh - 7rem - var(--_lightbox-caption-band-height) - 2 * var(--_lightbox-caption-band-padding) - env(safe-area-inset-bottom, 0px));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
185
|
.astryx-lightbox__caption-band {
|
|
186
|
+
grid-row: 2;
|
|
187
|
+
justify-self: center;
|
|
129
188
|
position: relative;
|
|
130
189
|
flex-shrink: 0;
|
|
131
190
|
box-sizing: content-box;
|
|
@@ -189,11 +248,23 @@
|
|
|
189
248
|
outline-offset: 2px;
|
|
190
249
|
}
|
|
191
250
|
|
|
192
|
-
|
|
193
|
-
|
|
251
|
+
/*
|
|
252
|
+
* 控件放在盖住灯箱、点击能穿过去的图层里。下拉关闭时整层变淡,图层自己不带过渡,免得跟不上手指。
|
|
253
|
+
* 它们压在舞台上面,连被拖着关闭的照片也压住。
|
|
254
|
+
*/
|
|
255
|
+
.astryx-lightbox__chrome {
|
|
256
|
+
position: absolute;
|
|
257
|
+
inset: 0;
|
|
258
|
+
z-index: 2;
|
|
259
|
+
pointer-events: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.astryx-lightbox__control,
|
|
194
263
|
.astryx-lightbox__counter {
|
|
195
264
|
position: absolute;
|
|
196
265
|
z-index: 1;
|
|
266
|
+
display: inline-flex;
|
|
267
|
+
pointer-events: auto;
|
|
197
268
|
color: var(--astryx-color-on-dark, #fff);
|
|
198
269
|
--astryx-button-ghost-foreground: var(--astryx-color-on-dark, #fff);
|
|
199
270
|
}
|
|
@@ -220,8 +291,21 @@
|
|
|
220
291
|
top: var(--astryx-spacing-3, 12px);
|
|
221
292
|
inset-inline-start: var(--astryx-spacing-3, 12px);
|
|
222
293
|
margin: 0;
|
|
223
|
-
color: var(--astryx-color-on-dark, #fff);
|
|
224
294
|
font-size: var(--astryx-text-body-size, 1rem);
|
|
225
295
|
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
226
296
|
}
|
|
297
|
+
|
|
298
|
+
/*
|
|
299
|
+
* 能缩放时照片可能放大到控件下面。灯箱自己的半透明底色让控件在任何照片上都看得清:
|
|
300
|
+
* 按钮 3:1,计数文字 4.5:1。主题改的是按钮,不改这层底色。
|
|
301
|
+
*/
|
|
302
|
+
.astryx-lightbox[data-has-zoom] .astryx-lightbox__control,
|
|
303
|
+
.astryx-lightbox[data-has-zoom] .astryx-lightbox__counter {
|
|
304
|
+
border-radius: var(--astryx-radius-full, 9999px);
|
|
305
|
+
background-color: color-mix(in srgb, var(--astryx-color-on-light, #171717) 75%, transparent);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.astryx-lightbox[data-has-zoom] .astryx-lightbox__counter {
|
|
309
|
+
padding-inline: var(--astryx-spacing-2, 8px);
|
|
310
|
+
}
|
|
227
311
|
}
|
package/styles/tokenizer.css
CHANGED
|
@@ -235,6 +235,94 @@
|
|
|
235
235
|
transition: none;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
+
|
|
239
|
+
/*
|
|
240
|
+
* InputGroup 里的 Tokenizer:整行由组定高、画边框和焦点,Tokenizer 只留内容。
|
|
241
|
+
* 一行放不下就横向滚动,不换行,否则第二行会溢出组的边框;
|
|
242
|
+
* 只有标签和输入这条轨道在滚,结尾的控件是它的兄弟,不会被标签盖住。
|
|
243
|
+
*/
|
|
244
|
+
.astryx-input-group-field .astryx-tokenizer.in-group {
|
|
245
|
+
flex: 1;
|
|
246
|
+
width: 100%;
|
|
247
|
+
min-width: 0;
|
|
248
|
+
height: 100%;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.astryx-input-group-field .astryx-tokenizer.in-group .astryx-tokenizer-control {
|
|
252
|
+
flex-wrap: nowrap;
|
|
253
|
+
height: 100%;
|
|
254
|
+
min-height: 0;
|
|
255
|
+
border: 0;
|
|
256
|
+
border-radius: 0;
|
|
257
|
+
box-shadow: none;
|
|
258
|
+
background: transparent;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track {
|
|
262
|
+
--_fade-inset: calc(var(--astryx-spacing-1, 4px) + var(--astryx-spacing-6, 24px));
|
|
263
|
+
display: flex;
|
|
264
|
+
flex: 1 1 0;
|
|
265
|
+
align-items: center;
|
|
266
|
+
align-self: stretch;
|
|
267
|
+
min-width: 0;
|
|
268
|
+
/* 滚动容器在自己的内边距处裁切;向外撑回外框的内边距,标签的焦点环才有地方画。 */
|
|
269
|
+
margin: calc(-1 * var(--astryx-spacing-1, 4px));
|
|
270
|
+
padding: var(--astryx-spacing-1, 4px);
|
|
271
|
+
scrollbar-width: none;
|
|
272
|
+
scroll-padding-inline: var(--_fade-inset);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track-content {
|
|
276
|
+
display: flex;
|
|
277
|
+
flex: none;
|
|
278
|
+
align-items: center;
|
|
279
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
280
|
+
/* 至少和轨道一样宽,输入框才能拿到标签剩下的地方;标签更多时才超出,轨道才有得滚。 */
|
|
281
|
+
min-width: 100%;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* 轨道里标签和输入框排成一行,不再各自占一个弹性行。 */
|
|
285
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-tokens {
|
|
286
|
+
display: flex;
|
|
287
|
+
flex: none;
|
|
288
|
+
flex-wrap: nowrap;
|
|
289
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
290
|
+
max-width: none;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-tokens.is-collapsed {
|
|
294
|
+
flex: 1 1 auto;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* 藏着标签的那一侧淡出,代替滚动条。 */
|
|
298
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track[data-scrollable-inline='true']:not([data-scroll-inline-start='true']):not([data-scroll-inline-end='true']) {
|
|
299
|
+
mask-image: linear-gradient(to right, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset), black calc(100% - var(--_fade-inset)), transparent calc(100% - var(--astryx-spacing-1, 4px)));
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track[data-scrollable-inline='true'][data-scroll-inline-start='true']:not([data-scroll-inline-end='true']) {
|
|
303
|
+
mask-image: linear-gradient(to left, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track[data-scrollable-inline='true'][data-scroll-inline-end='true']:not([data-scroll-inline-start='true']) {
|
|
307
|
+
mask-image: linear-gradient(to right, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* 从右往左排版:淡出的方向跟着翻过来。 */
|
|
311
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track:dir(rtl)[data-scrollable-inline='true'][data-scroll-inline-start='true']:not([data-scroll-inline-end='true']) {
|
|
312
|
+
mask-image: linear-gradient(to right, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track:dir(rtl)[data-scrollable-inline='true'][data-scroll-inline-end='true']:not([data-scroll-inline-start='true']) {
|
|
316
|
+
mask-image: linear-gradient(to left, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* 强制颜色下滚动条回来了,淡出让位。 */
|
|
320
|
+
@media (forced-colors: active) {
|
|
321
|
+
.astryx-tokenizer.in-group .astryx-tokenizer-track {
|
|
322
|
+
mask-image: none;
|
|
323
|
+
scrollbar-width: thin;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
238
326
|
}
|
|
239
327
|
|
|
240
328
|
/* 不分层:输入框的焦点由外框承担,避免文档页再套一层品牌绿环。 */
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { a as focusSheetOnOpen, i as bottomSheetSwitcherKey, r as useSheetLayerDismiss } from "./BottomSheet-D37eNqz5.js";
|
|
2
|
-
import { r as provideNestedLayerMountTarget } from "./mount-7R_s-bHB.js";
|
|
3
|
-
import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
|
|
4
|
-
import { t as useFocusTrap } from "./useFocusTrap-Bj9GskLh.js";
|
|
5
|
-
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
6
|
-
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-uixUCSc8.js";
|
|
7
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, useModel, useTemplateRef, watch } from "vue";
|
|
8
|
-
import "../styles/bottom-sheet.css";
|
|
9
|
-
//#region src/BottomSheet/BottomSheetSwitcher.vue
|
|
10
|
-
const _hoisted_1 = [
|
|
11
|
-
"data-settled",
|
|
12
|
-
"aria-label",
|
|
13
|
-
"aria-modal"
|
|
14
|
-
];
|
|
15
|
-
const _hoisted_2 = {
|
|
16
|
-
ref: "layerHost",
|
|
17
|
-
class: "astryx-bottom-sheet__layer-host"
|
|
18
|
-
};
|
|
19
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
20
|
-
name: "AstryxBottomSheetSwitcher",
|
|
21
|
-
inheritAttrs: false,
|
|
22
|
-
__name: "BottomSheetSwitcher",
|
|
23
|
-
props: /*@__PURE__*/ mergeModels({
|
|
24
|
-
label: {},
|
|
25
|
-
purpose: {},
|
|
26
|
-
hasScrim: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: true
|
|
29
|
-
}
|
|
30
|
-
}, {
|
|
31
|
-
"activeSheet": { default: null },
|
|
32
|
-
"activeSheetModifiers": {}
|
|
33
|
-
}),
|
|
34
|
-
emits: /*@__PURE__*/ mergeModels(["cancel"], ["update:activeSheet"]),
|
|
35
|
-
setup(__props, { emit: __emit }) {
|
|
36
|
-
const props = __props;
|
|
37
|
-
const emit = __emit;
|
|
38
|
-
const activeSheet = useModel(__props, "activeSheet");
|
|
39
|
-
const retainedId = ref(null);
|
|
40
|
-
const alignmentOffset = ref(0);
|
|
41
|
-
const sheets = shallowRef(/* @__PURE__ */ new Map());
|
|
42
|
-
const dialog = useTemplateRef("dialog");
|
|
43
|
-
provideNestedLayerMountTarget(useTemplateRef("layerHost"));
|
|
44
|
-
const isScrollLocked = ref(false);
|
|
45
|
-
const isSettled = ref(getCurrentInstance()?.vnode.el != null && activeSheet.value != null);
|
|
46
|
-
let focusRecord = null;
|
|
47
|
-
let handoffTimer;
|
|
48
|
-
useScrollLock(isScrollLocked);
|
|
49
|
-
function registration(id) {
|
|
50
|
-
return id == null ? void 0 : sheets.value.get(id);
|
|
51
|
-
}
|
|
52
|
-
const activeElement = computed(() => registration(activeSheet.value)?.getElement() ?? null);
|
|
53
|
-
const flowPurpose = computed(() => props.purpose ?? registration(activeSheet.value)?.purpose() ?? "info");
|
|
54
|
-
const dialogLabel = computed(() => props.label ?? registration(activeSheet.value)?.label() ?? "Bottom sheet");
|
|
55
|
-
useFocusTrap({
|
|
56
|
-
container: activeElement,
|
|
57
|
-
isEnabled: computed(() => activeSheet.value != null && props.hasScrim)
|
|
58
|
-
});
|
|
59
|
-
function setActive(id) {
|
|
60
|
-
const previous = activeSheet.value;
|
|
61
|
-
if (previous === id) return;
|
|
62
|
-
if (handoffTimer != null) clearTimeout(handoffTimer);
|
|
63
|
-
if (previous != null && id != null) {
|
|
64
|
-
retainedId.value = previous;
|
|
65
|
-
alignmentOffset.value = 0;
|
|
66
|
-
activeSheet.value = id;
|
|
67
|
-
nextTick(() => {
|
|
68
|
-
const previousHeight = registration(previous)?.getElement()?.offsetHeight ?? 0;
|
|
69
|
-
const nextHeight = registration(id)?.getElement()?.offsetHeight ?? 0;
|
|
70
|
-
alignmentOffset.value = Math.max(0, previousHeight - nextHeight);
|
|
71
|
-
});
|
|
72
|
-
handoffTimer = setTimeout(() => {
|
|
73
|
-
if (retainedId.value === previous) {
|
|
74
|
-
retainedId.value = null;
|
|
75
|
-
alignmentOffset.value = 0;
|
|
76
|
-
}
|
|
77
|
-
}, 420);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
retainedId.value = null;
|
|
81
|
-
alignmentOffset.value = 0;
|
|
82
|
-
activeSheet.value = id;
|
|
83
|
-
}
|
|
84
|
-
function register(id, entry) {
|
|
85
|
-
const next = new Map(sheets.value);
|
|
86
|
-
next.set(id, entry);
|
|
87
|
-
sheets.value = next;
|
|
88
|
-
}
|
|
89
|
-
function unregister(id) {
|
|
90
|
-
const next = new Map(sheets.value);
|
|
91
|
-
next.delete(id);
|
|
92
|
-
sheets.value = next;
|
|
93
|
-
}
|
|
94
|
-
provide(bottomSheetSwitcherKey, {
|
|
95
|
-
activeId: activeSheet,
|
|
96
|
-
retainedId,
|
|
97
|
-
alignmentOffset,
|
|
98
|
-
setActive,
|
|
99
|
-
register,
|
|
100
|
-
unregister
|
|
101
|
-
});
|
|
102
|
-
function openDialog() {
|
|
103
|
-
const element = dialog.value;
|
|
104
|
-
if (!element) return;
|
|
105
|
-
if (!element.open) {
|
|
106
|
-
focusRecord?.stop();
|
|
107
|
-
focusRecord = trackLayerFocus({ getLayer: () => dialog.value });
|
|
108
|
-
if (props.hasScrim) element.showModal();
|
|
109
|
-
else element.show();
|
|
110
|
-
}
|
|
111
|
-
isScrollLocked.value = props.hasScrim;
|
|
112
|
-
nextTick(() => focusSheetOnOpen(activeElement.value, true));
|
|
113
|
-
}
|
|
114
|
-
function returnFocus(record, wasStranded) {
|
|
115
|
-
if (wasStranded) restoreLayerFocus(record, {
|
|
116
|
-
layer: null,
|
|
117
|
-
name: "BottomSheetSwitcher"
|
|
118
|
-
});
|
|
119
|
-
record.stop();
|
|
120
|
-
}
|
|
121
|
-
function closeDialog() {
|
|
122
|
-
const record = focusRecord;
|
|
123
|
-
focusRecord = null;
|
|
124
|
-
const wasStranded = record != null && isLayerFocusStranded(record, dialog.value);
|
|
125
|
-
dialog.value?.close();
|
|
126
|
-
if (record != null) returnFocus(record, wasStranded);
|
|
127
|
-
isScrollLocked.value = false;
|
|
128
|
-
retainedId.value = null;
|
|
129
|
-
alignmentOffset.value = 0;
|
|
130
|
-
}
|
|
131
|
-
function requestClose() {
|
|
132
|
-
if (flowPurpose.value === "required") return;
|
|
133
|
-
setActive(null);
|
|
134
|
-
}
|
|
135
|
-
const flowVisible = computed(() => activeSheet.value != null || retainedId.value != null);
|
|
136
|
-
const layerEscape = computed(() => {
|
|
137
|
-
if (activeSheet.value == null || flowPurpose.value === "required") return "block";
|
|
138
|
-
if (!props.hasScrim) return "ignore";
|
|
139
|
-
return "close";
|
|
140
|
-
});
|
|
141
|
-
const layer = useSheetLayerDismiss({
|
|
142
|
-
isActive: flowVisible,
|
|
143
|
-
escape: layerEscape,
|
|
144
|
-
getContainer: () => dialog.value ?? null,
|
|
145
|
-
isPresent: () => dialog.value?.open ?? false,
|
|
146
|
-
onDismiss: requestClose
|
|
147
|
-
});
|
|
148
|
-
function onKeydown(event) {
|
|
149
|
-
if (event.key !== "Escape" || !layer.isTop()) return;
|
|
150
|
-
event.preventDefault();
|
|
151
|
-
if (isImeKeyEvent(event)) return;
|
|
152
|
-
requestClose();
|
|
153
|
-
}
|
|
154
|
-
function onCancel(event) {
|
|
155
|
-
if (event.target !== dialog.value) return;
|
|
156
|
-
emit("cancel", event);
|
|
157
|
-
if (event.defaultPrevented) return;
|
|
158
|
-
event.preventDefault();
|
|
159
|
-
if (!layer.isTop()) return;
|
|
160
|
-
requestClose();
|
|
161
|
-
}
|
|
162
|
-
function onDialogClick(event) {
|
|
163
|
-
if (event.target !== event.currentTarget) return;
|
|
164
|
-
if (props.hasScrim && flowPurpose.value === "info") setActive(null);
|
|
165
|
-
}
|
|
166
|
-
watch(activeSheet, (id, previous) => {
|
|
167
|
-
if (previous != null) isSettled.value = false;
|
|
168
|
-
if (id) openDialog();
|
|
169
|
-
else closeDialog();
|
|
170
|
-
}, { flush: "post" });
|
|
171
|
-
onMounted(() => {
|
|
172
|
-
if (activeSheet.value) openDialog();
|
|
173
|
-
});
|
|
174
|
-
onBeforeUnmount(() => {
|
|
175
|
-
const record = focusRecord;
|
|
176
|
-
focusRecord = null;
|
|
177
|
-
if (record != null) {
|
|
178
|
-
const wasStranded = isLayerFocusStranded(record, dialog.value);
|
|
179
|
-
queueMicrotask(() => returnFocus(record, wasStranded));
|
|
180
|
-
}
|
|
181
|
-
if (handoffTimer != null) clearTimeout(handoffTimer);
|
|
182
|
-
isScrollLocked.value = false;
|
|
183
|
-
});
|
|
184
|
-
return (_ctx, _cache) => {
|
|
185
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 点在对话框空白处才关闭;键盘用 Escape,不给对话框再加一个按钮。 "), createElementVNode("dialog", mergeProps(_ctx.$attrs, {
|
|
186
|
-
ref_key: "dialog",
|
|
187
|
-
ref: dialog,
|
|
188
|
-
class: ["astryx-bottom-sheet-dialog astryx-bottom-sheet-switcher", {
|
|
189
|
-
"astryx-bottom-sheet-dialog--scrim": __props.hasScrim,
|
|
190
|
-
"astryx-bottom-sheet-dialog--closing": activeSheet.value == null
|
|
191
|
-
}],
|
|
192
|
-
"data-settled": isSettled.value || void 0,
|
|
193
|
-
"aria-label": dialogLabel.value,
|
|
194
|
-
"aria-modal": isScrollLocked.value && activeSheet.value != null ? "true" : void 0,
|
|
195
|
-
onCancel,
|
|
196
|
-
onClick: onDialogClick,
|
|
197
|
-
onKeydown
|
|
198
|
-
}), [renderSlot(_ctx.$slots, "default"), createElementVNode("div", _hoisted_2, null, 512)], 16, _hoisted_1)], 2112);
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
//#endregion
|
|
203
|
-
export { _sfc_main as t };
|