@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as armClickGuard } from "./clickGuard-BkegH2NW.js";
|
|
2
|
-
import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-
|
|
2
|
+
import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-5Bp-B175.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|
|
5
5
|
/** 不长:热区就是目标本身。 */
|
|
@@ -372,6 +372,148 @@ function createActionGroupTracker() {
|
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
374
|
//#endregion
|
|
375
|
+
//#region src/composables/internal/hitAreaCandidates.ts
|
|
376
|
+
/**
|
|
377
|
+
* @file hitAreaCandidates.ts
|
|
378
|
+
* @input 页面结构的变化记录,和「这个元素该算给谁」的归属函数
|
|
379
|
+
* @output 页面上可点元素的集合,随变化增量维护
|
|
380
|
+
* @position 内部工具,`hitAreaWatch.ts` 用。
|
|
381
|
+
*
|
|
382
|
+
* 一层界面打开或关闭时,只对新增的子树做匹配、把离开的元素扫掉,不再对整页重新查询。
|
|
383
|
+
* 被看着的控件按它自己的盒子算,所以集合里放的是「归属」:控件里面的可点部件并进控件。
|
|
384
|
+
*/
|
|
385
|
+
/** `root` 子树里(含它自己)的可点元素,各自换成它的归属。 */
|
|
386
|
+
function interactiveWithin(root, ownerOf) {
|
|
387
|
+
const found = /* @__PURE__ */ new Set();
|
|
388
|
+
if (root instanceof Element && root.matches(INTERACTIVE_SELECTOR)) found.add(ownerOf(root));
|
|
389
|
+
for (const element of root.querySelectorAll(INTERACTIVE_SELECTOR)) found.add(ownerOf(element));
|
|
390
|
+
return [...found];
|
|
391
|
+
}
|
|
392
|
+
/** 离开文档的元素一次扫掉。 */
|
|
393
|
+
function dropDisconnected(set) {
|
|
394
|
+
for (const element of set) if (!element.isConnected) set.delete(element);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* 按一批变化更新集合:新增的子树单独匹配,离开的元素扫掉,
|
|
398
|
+
* 改了 `href`、`role`、`tabindex` 这类属性的元素按新属性重新判断。
|
|
399
|
+
*/
|
|
400
|
+
function applyMutations(set, records, ownerOf) {
|
|
401
|
+
for (const record of records) {
|
|
402
|
+
if (record.type === "childList") {
|
|
403
|
+
for (const node of record.addedNodes) if (node instanceof Element) interactiveWithin(node, ownerOf).forEach((element) => set.add(element));
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
const target = record.target;
|
|
407
|
+
if (!(target instanceof Element)) continue;
|
|
408
|
+
const owner = ownerOf(target);
|
|
409
|
+
if (target.matches(INTERACTIVE_SELECTOR)) set.add(owner);
|
|
410
|
+
else if (owner === target) set.delete(target);
|
|
411
|
+
}
|
|
412
|
+
dropDisconnected(set);
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* 一个控件开始被看着:它里面的可点部件并成它自己,已经在集合里的子元素去掉。
|
|
416
|
+
* 只处理它这棵子树,不碰页面上的其他元素。
|
|
417
|
+
*/
|
|
418
|
+
function groupUnder(set, element) {
|
|
419
|
+
let found = element.matches(INTERACTIVE_SELECTOR);
|
|
420
|
+
for (const candidate of set) if (candidate !== element && element.contains(candidate)) {
|
|
421
|
+
set.delete(candidate);
|
|
422
|
+
found = true;
|
|
423
|
+
}
|
|
424
|
+
if (found || element.querySelector(INTERACTIVE_SELECTOR) != null) set.add(element);
|
|
425
|
+
}
|
|
426
|
+
/** 一个控件不再被看着:它的子树里的可点元素各自回到集合里。 */
|
|
427
|
+
function ungroup(set, element, ownerOf) {
|
|
428
|
+
set.delete(element);
|
|
429
|
+
interactiveWithin(element, ownerOf).forEach((candidate) => set.add(candidate));
|
|
430
|
+
}
|
|
431
|
+
const PASSIVE_CAPTURE$1 = {
|
|
432
|
+
capture: true,
|
|
433
|
+
passive: true
|
|
434
|
+
};
|
|
435
|
+
let scrolling = false;
|
|
436
|
+
let quietTimer = null;
|
|
437
|
+
let scrollRoot = null;
|
|
438
|
+
const idleCallbacks = /* @__PURE__ */ new Set();
|
|
439
|
+
/** 页面此刻在滚动。 */
|
|
440
|
+
function isPageScrolling() {
|
|
441
|
+
return scrolling;
|
|
442
|
+
}
|
|
443
|
+
function settle() {
|
|
444
|
+
if (quietTimer != null) clearTimeout(quietTimer);
|
|
445
|
+
quietTimer = null;
|
|
446
|
+
if (!scrolling) return;
|
|
447
|
+
scrolling = false;
|
|
448
|
+
idleCallbacks.forEach((callback) => callback());
|
|
449
|
+
}
|
|
450
|
+
function onScroll() {
|
|
451
|
+
scrolling = true;
|
|
452
|
+
if (quietTimer != null) clearTimeout(quietTimer);
|
|
453
|
+
quietTimer = setTimeout(settle, 150);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 页面(含里面任何可滚动的元素)停止滚动时调用 `onIdle`。页面上所有控件共用一个监听,
|
|
457
|
+
* 第一个来的挂上,最后一个走的拿掉。返回停止的函数。
|
|
458
|
+
*/
|
|
459
|
+
function whenScrollIdle(doc, onIdle) {
|
|
460
|
+
idleCallbacks.add(onIdle);
|
|
461
|
+
if (scrollRoot == null) {
|
|
462
|
+
scrollRoot = doc;
|
|
463
|
+
doc.addEventListener("scroll", onScroll, PASSIVE_CAPTURE$1);
|
|
464
|
+
doc.addEventListener("scrollend", settle, PASSIVE_CAPTURE$1);
|
|
465
|
+
}
|
|
466
|
+
return () => {
|
|
467
|
+
idleCallbacks.delete(onIdle);
|
|
468
|
+
if (idleCallbacks.size > 0 || scrollRoot == null) return;
|
|
469
|
+
scrollRoot.removeEventListener("scroll", onScroll, PASSIVE_CAPTURE$1);
|
|
470
|
+
scrollRoot.removeEventListener("scrollend", settle, PASSIVE_CAPTURE$1);
|
|
471
|
+
scrollRoot = null;
|
|
472
|
+
scrolling = false;
|
|
473
|
+
if (quietTimer != null) clearTimeout(quietTimer);
|
|
474
|
+
quietTimer = null;
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
/** 动画改了这些属性,盒子就挪了位置或尺寸;淡入淡出、变色不挪。 */
|
|
478
|
+
const BOX_PROPERTY = /^(?:transform|translate|scale|rotate|offset|position|display|float|flex|grid|gap|inset|top|right|bottom|left|margin|padding|width|height|min|max|border|font-size|line-height|aspect-ratio|order|zoom)/;
|
|
479
|
+
function kebab(property) {
|
|
480
|
+
return property.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
481
|
+
}
|
|
482
|
+
function movesBoxes(animation) {
|
|
483
|
+
if (animation.playState !== "running") return false;
|
|
484
|
+
const effect = animation.effect;
|
|
485
|
+
if (effect == null || !("getKeyframes" in effect)) return false;
|
|
486
|
+
const end = effect.getComputedTiming().endTime;
|
|
487
|
+
if (typeof end !== "number" || !Number.isFinite(end)) return false;
|
|
488
|
+
return effect.getKeyframes().some((frame) => Object.keys(frame).some((property) => ![
|
|
489
|
+
"offset",
|
|
490
|
+
"easing",
|
|
491
|
+
"composite",
|
|
492
|
+
"computedOffset"
|
|
493
|
+
].includes(property) && BOX_PROPERTY.test(kebab(property))));
|
|
494
|
+
}
|
|
495
|
+
/** 页面上此刻正在挪盒子的有限动画,整页只问一次。 */
|
|
496
|
+
function movingScopes(doc) {
|
|
497
|
+
if (typeof doc.getAnimations !== "function") return [];
|
|
498
|
+
const scopes = [];
|
|
499
|
+
for (const animation of doc.getAnimations()) {
|
|
500
|
+
const target = animation.effect?.target;
|
|
501
|
+
if (target instanceof Element && movesBoxes(animation)) scopes.push({
|
|
502
|
+
target,
|
|
503
|
+
animation
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
return scopes;
|
|
507
|
+
}
|
|
508
|
+
/** 这个元素的某个祖先正在播挪盒子的动画(元素自己的不算)。 */
|
|
509
|
+
function motionAbove(scopes, element) {
|
|
510
|
+
return scopes.filter(({ target }) => target !== element && target.contains(element));
|
|
511
|
+
}
|
|
512
|
+
/** 等这些动画都结束(播完或取消)再调用 `then`。 */
|
|
513
|
+
function afterMotion(scopes, then) {
|
|
514
|
+
Promise.allSettled(scopes.map(({ animation }) => animation.finished)).then(then);
|
|
515
|
+
}
|
|
516
|
+
//#endregion
|
|
375
517
|
//#region src/composables/internal/hitAreaWatch.ts
|
|
376
518
|
/**
|
|
377
519
|
* @file hitAreaWatch.ts
|
|
@@ -382,6 +524,13 @@ function createActionGroupTracker() {
|
|
|
382
524
|
* CSS 看不到邻居,所以要测量:只在主要指针是粗指针时测,并且所有控件共用一次「每帧一读」的测量,
|
|
383
525
|
* 一帧最多花 4ms,剩下的留到下一帧。第一次测量前热区是 0,首帧不会盖住任何东西。
|
|
384
526
|
* 细指针下除了指针媒体查询什么都不监听。
|
|
527
|
+
*
|
|
528
|
+
* 测量不能抢在手指前面读布局:
|
|
529
|
+
* - 页面在滚动时不测,到 `scrollend` 或 150ms 没有滚动事件再测(见 hitAreaGate.ts);
|
|
530
|
+
* - 祖先在播会挪盒子的有限动画(比如一层界面滑进来)时,这个控件先不测,等动画播完;
|
|
531
|
+
* - 手指按下时不读任何矩形,只挂上一次对点击的复查:点击只在这次触摸成了轻点时才来,
|
|
532
|
+
* 滚动里不会有。复查读控件的盒子(按布局像素,去掉按压自己的缩放),不写热区,
|
|
533
|
+
* 按压动效结束后的那次测量才写。
|
|
385
534
|
*/
|
|
386
535
|
const TOUCH_QUERY = "(pointer: coarse)";
|
|
387
536
|
/** 一帧里花在控件上的时间上限,ms。 */
|
|
@@ -417,8 +566,10 @@ let settleTimer = null;
|
|
|
417
566
|
let resize = null;
|
|
418
567
|
let visibility = null;
|
|
419
568
|
let mutations = null;
|
|
569
|
+
let stopScrollGate = null;
|
|
570
|
+
/** 页面上的可点元素,随变化增量维护;没有 MutationObserver 的环境每次重新查。 */
|
|
420
571
|
let candidates = null;
|
|
421
|
-
/**
|
|
572
|
+
/** 轻点时的复查,按被看着的元素记;取消就是撤掉它的监听。 */
|
|
422
573
|
const disarms = /* @__PURE__ */ new Map();
|
|
423
574
|
function now() {
|
|
424
575
|
return typeof performance === "undefined" ? Date.now() : performance.now();
|
|
@@ -433,26 +584,22 @@ function watchedOwner(element) {
|
|
|
433
584
|
for (let node = element; node != null; node = node.parentElement) if (watches.has(node)) return node;
|
|
434
585
|
return null;
|
|
435
586
|
}
|
|
587
|
+
function ownerOf(element) {
|
|
588
|
+
return watchedOwner(element) ?? element;
|
|
589
|
+
}
|
|
436
590
|
/** 页面上的可点元素。被看着的控件按它自己的盒子算,不按它里面的部件算。 */
|
|
437
591
|
function interactiveElements(doc) {
|
|
438
|
-
if (candidates
|
|
439
|
-
|
|
440
|
-
const found = [];
|
|
441
|
-
for (const element of doc.querySelectorAll(INTERACTIVE_SELECTOR)) {
|
|
442
|
-
const owner = watchedOwner(element) ?? element;
|
|
443
|
-
if (!seen.has(owner)) {
|
|
444
|
-
seen.add(owner);
|
|
445
|
-
found.push(owner);
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
candidates = found;
|
|
449
|
-
return found;
|
|
592
|
+
if (candidates == null || mutations == null) candidates = new Set(interactiveWithin(doc, ownerOf));
|
|
593
|
+
return candidates;
|
|
450
594
|
}
|
|
451
|
-
|
|
452
|
-
|
|
595
|
+
/** 读候选的矩形;挪着的祖先下面的元素不算邻居,它们的位置马上就变。 */
|
|
596
|
+
function readCandidates(doc, scopes = []) {
|
|
597
|
+
const read = [];
|
|
598
|
+
for (const element of interactiveElements(doc)) if (scopes.length === 0 || motionAbove(scopes, element).length === 0) read.push({
|
|
453
599
|
element,
|
|
454
600
|
rect: plainRect(element)
|
|
455
|
-
})
|
|
601
|
+
});
|
|
602
|
+
return read;
|
|
456
603
|
}
|
|
457
604
|
/** `candidate` 是控件自己或它的一部分(含指向它的 `<label for>`)。 */
|
|
458
605
|
function isOwn(element, candidate) {
|
|
@@ -476,16 +623,27 @@ function measureOne(watch, all) {
|
|
|
476
623
|
neighbours
|
|
477
624
|
};
|
|
478
625
|
}
|
|
479
|
-
/**
|
|
626
|
+
/** 一次测量:先读完所有待测控件,再统一写。滚动中不测,祖先在挪时留下那个控件。 */
|
|
480
627
|
function measure() {
|
|
481
628
|
frame = null;
|
|
629
|
+
if (isPageScrolling()) return;
|
|
482
630
|
const due = [...pending].filter((watch) => watch.isVisible);
|
|
483
631
|
pending.clear();
|
|
484
632
|
if (!isCoarse || due.length === 0) return;
|
|
485
|
-
const
|
|
633
|
+
const doc = due[0].element.ownerDocument;
|
|
634
|
+
const scopes = movingScopes(doc);
|
|
635
|
+
const ready = [];
|
|
636
|
+
for (const watch of due) {
|
|
637
|
+
const waits = motionAbove(scopes, watch.element);
|
|
638
|
+
watch.isHeld = waits.length > 0;
|
|
639
|
+
if (watch.isHeld) afterMotion(waits, () => schedule(watch));
|
|
640
|
+
else ready.push(watch);
|
|
641
|
+
}
|
|
642
|
+
if (ready.length === 0) return;
|
|
643
|
+
const all = readCandidates(doc, scopes);
|
|
486
644
|
const started = now();
|
|
487
645
|
const results = [];
|
|
488
|
-
for (const watch of
|
|
646
|
+
for (const watch of ready) {
|
|
489
647
|
if (results.length > 0 && now() - started > FRAME_BUDGET_MS) {
|
|
490
648
|
pending.add(watch);
|
|
491
649
|
continue;
|
|
@@ -499,18 +657,18 @@ function measure() {
|
|
|
499
657
|
if (pending.size > 0) requestFrame();
|
|
500
658
|
}
|
|
501
659
|
function requestFrame() {
|
|
502
|
-
if (frame == null && typeof requestAnimationFrame === "function") frame = requestAnimationFrame(measure);
|
|
660
|
+
if (frame == null && !isPageScrolling() && typeof requestAnimationFrame === "function") frame = requestAnimationFrame(measure);
|
|
503
661
|
}
|
|
504
662
|
function schedule(watch) {
|
|
505
|
-
if (!isCoarse) return;
|
|
663
|
+
if (!isCoarse || !watches.has(watch.element)) return;
|
|
506
664
|
pending.add(watch);
|
|
507
665
|
requestFrame();
|
|
508
666
|
}
|
|
509
667
|
function scheduleAll() {
|
|
510
668
|
watches.forEach(schedule);
|
|
511
669
|
}
|
|
512
|
-
function onMutation() {
|
|
513
|
-
candidates
|
|
670
|
+
function onMutation(records) {
|
|
671
|
+
if (candidates != null) applyMutations(candidates, records, ownerOf);
|
|
514
672
|
if (settleTimer != null) clearTimeout(settleTimer);
|
|
515
673
|
settleTimer = setTimeout(() => {
|
|
516
674
|
settleTimer = null;
|
|
@@ -518,8 +676,8 @@ function onMutation() {
|
|
|
518
676
|
}, CONTENT_SETTLE_MS);
|
|
519
677
|
}
|
|
520
678
|
/**
|
|
521
|
-
*
|
|
522
|
-
*
|
|
679
|
+
* 手指按下时不读任何矩形。控件在测量里被动画留着(它的位置还在手指落下的地方)就此刻量;
|
|
680
|
+
* 否则挂上一次对点击的复查,滚动不会触发点击,所以滚动里什么都不读。
|
|
523
681
|
*/
|
|
524
682
|
function onPress(event) {
|
|
525
683
|
const press = event;
|
|
@@ -528,28 +686,46 @@ function onPress(event) {
|
|
|
528
686
|
disarms.get(owner)?.();
|
|
529
687
|
const watch = watches.get(owner);
|
|
530
688
|
if (watch == null || !isCoarse || press.pointerType !== "touch" || !watch.checkAtPress) return;
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
689
|
+
const at = {
|
|
690
|
+
x: press.clientX,
|
|
691
|
+
y: press.clientY
|
|
692
|
+
};
|
|
693
|
+
if (watch.isHeld) checkTap(watch, at, null);
|
|
694
|
+
else armClickCheck(watch, at);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* 轻点来了(或按下时控件被留着):对照页面读一次盒子,触摸离某个邻居比离控件更近就吞掉这次点击,
|
|
698
|
+
* 好过点错控件。只读不写热区:按压自己的动效正在播,写进去的是过渡中的值;
|
|
699
|
+
* 之后排的那次测量会等动效播完再写。
|
|
700
|
+
* 点击来之前有祖先动画挪了盒子,就放行这次点击,由浏览器的命中测试决定;挪着的邻居也不算。
|
|
701
|
+
*/
|
|
702
|
+
function checkTap(watch, at, click) {
|
|
703
|
+
const doc = watch.element.ownerDocument;
|
|
704
|
+
const scopes = movingScopes(doc);
|
|
705
|
+
schedule(watch);
|
|
706
|
+
if (click != null && motionAbove(scopes, watch.element).length > 0) return;
|
|
707
|
+
const { target, neighbours } = measureOne(watch, readCandidates(doc, scopes));
|
|
708
|
+
const own = distanceTo(target, at.x, at.y);
|
|
709
|
+
if (click == null || !neighbours.some((rect) => distanceTo(rect, at.x, at.y) < own)) return;
|
|
710
|
+
click.preventDefault();
|
|
711
|
+
click.stopPropagation();
|
|
712
|
+
}
|
|
713
|
+
/** 挂上对 `watch` 控件下一次触摸点击的复查;下一次按下或这次触摸被浏览器拿走(滚动)都会撤掉它。 */
|
|
714
|
+
function armClickCheck(watch, at) {
|
|
715
|
+
const owner = watch.element;
|
|
539
716
|
const doc = owner.ownerDocument;
|
|
540
717
|
function disarm() {
|
|
541
|
-
owner.removeEventListener("click",
|
|
718
|
+
owner.removeEventListener("click", check, true);
|
|
542
719
|
owner.removeEventListener("pointercancel", disarm, true);
|
|
543
720
|
doc.removeEventListener("pointerdown", disarm, PASSIVE_CAPTURE);
|
|
544
721
|
if (disarms.get(owner) === disarm) disarms.delete(owner);
|
|
545
722
|
}
|
|
546
|
-
function
|
|
723
|
+
function check(click) {
|
|
547
724
|
disarm();
|
|
548
725
|
if (click.detail === 0) return;
|
|
549
|
-
click
|
|
550
|
-
click.stopPropagation();
|
|
726
|
+
checkTap(watch, at, click);
|
|
551
727
|
}
|
|
552
|
-
owner.addEventListener("click",
|
|
728
|
+
owner.addEventListener("click", check, true);
|
|
553
729
|
owner.addEventListener("pointercancel", disarm, true);
|
|
554
730
|
doc.addEventListener("pointerdown", disarm, PASSIVE_CAPTURE);
|
|
555
731
|
disarms.set(owner, disarm);
|
|
@@ -566,12 +742,15 @@ function unobserve(element, parent) {
|
|
|
566
742
|
if (parent != null && !parentShared) resize?.unobserve(parent);
|
|
567
743
|
disarms.get(element)?.();
|
|
568
744
|
}
|
|
569
|
-
/**
|
|
745
|
+
/** 只在粗指针下打开的那些观察:尺寸、可见、页面结构、窗口大小、滚动,和按下时的复查。 */
|
|
570
746
|
function startObserving() {
|
|
571
747
|
if (view == null) return;
|
|
572
748
|
const doc = view.document;
|
|
573
749
|
view.addEventListener("resize", scheduleAll);
|
|
574
750
|
doc.addEventListener("pointerdown", onPress, PASSIVE_CAPTURE);
|
|
751
|
+
stopScrollGate = whenScrollIdle(doc, () => {
|
|
752
|
+
if (pending.size > 0) requestFrame();
|
|
753
|
+
});
|
|
575
754
|
if (typeof ResizeObserver === "function") resize = new ResizeObserver((entries) => {
|
|
576
755
|
for (const entry of entries) for (const [element, watch] of watches) if (element === entry.target || element.parentElement === entry.target) schedule(watch);
|
|
577
756
|
});
|
|
@@ -596,6 +775,8 @@ function startObserving() {
|
|
|
596
775
|
function stopObserving() {
|
|
597
776
|
view?.removeEventListener("resize", scheduleAll);
|
|
598
777
|
view?.document.removeEventListener("pointerdown", onPress, PASSIVE_CAPTURE);
|
|
778
|
+
stopScrollGate?.();
|
|
779
|
+
stopScrollGate = null;
|
|
599
780
|
resize?.disconnect();
|
|
600
781
|
visibility?.disconnect();
|
|
601
782
|
mutations?.disconnect();
|
|
@@ -624,7 +805,7 @@ function onPointerChange() {
|
|
|
624
805
|
/**
|
|
625
806
|
* 让 `element` 的热区一直跟着布局走,直到调用返回的函数:每次变化都交给 `onInsets`。
|
|
626
807
|
* 细指针下热区是 0;粗指针下在挂上时、自身或父元素尺寸变化、窗口变化、页面结构稳定后重新测量,
|
|
627
|
-
*
|
|
808
|
+
* 都并进每帧一次的共用测量里(滚动和祖先动画播放期间不测);手指轻点时再对照页面复查一次。
|
|
628
809
|
*/
|
|
629
810
|
function watchHitArea(element, onInsets, { growth, checkAtPress = true } = {}) {
|
|
630
811
|
const owner = element.ownerDocument.defaultView;
|
|
@@ -642,10 +823,11 @@ function watchHitArea(element, onInsets, { growth, checkAtPress = true } = {}) {
|
|
|
642
823
|
checkAtPress,
|
|
643
824
|
onInsets,
|
|
644
825
|
last: NO_HIT_INSETS,
|
|
645
|
-
isVisible: true
|
|
826
|
+
isVisible: true,
|
|
827
|
+
isHeld: false
|
|
646
828
|
};
|
|
647
829
|
watches.set(element, watch);
|
|
648
|
-
candidates
|
|
830
|
+
if (candidates != null) groupUnder(candidates, element);
|
|
649
831
|
if (isCoarse) {
|
|
650
832
|
observe(watch);
|
|
651
833
|
schedule(watch);
|
|
@@ -656,7 +838,7 @@ function watchHitArea(element, onInsets, { growth, checkAtPress = true } = {}) {
|
|
|
656
838
|
if (watches.get(element) !== watch) return;
|
|
657
839
|
watches.delete(element);
|
|
658
840
|
pending.delete(watch);
|
|
659
|
-
candidates
|
|
841
|
+
if (candidates != null) ungroup(candidates, element, ownerOf);
|
|
660
842
|
unobserve(element, parent);
|
|
661
843
|
if (watches.size === 0) {
|
|
662
844
|
stopObserving();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
|
-
import { s as currentGesture } from "./layerDepth-
|
|
2
|
+
import { s as currentGesture } from "./layerDepth-D576XVps.js";
|
|
3
3
|
import { a as trackInteractionModality, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-4Km2ibsq.js";
|
|
4
4
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
5
|
//#region src/composables/internal/tapRecognizer.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as matchesFocusVisible } from "./tooltipTriggerRules-
|
|
1
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-DRhcB-wA.js";
|
|
2
2
|
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
3
|
-
import { n as tooltipPresentInterestKey } from "./useTooltip-
|
|
4
|
-
import { t as _sfc_main$1 } from "./Tooltip-
|
|
3
|
+
import { n as tooltipPresentInterestKey } from "./useTooltip-Dg2459oV.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Tooltip-BuPbbGtv.js";
|
|
5
5
|
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-D_T-ezdp.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
|
|
7
7
|
//#region src/Text/TruncationTooltip.vue
|
|
@@ -5,7 +5,7 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
|
5
5
|
import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
|
|
6
6
|
import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
|
|
7
7
|
import { t as _sfc_main$3 } from "./Spinner-lLOYfbOY.js";
|
|
8
|
-
import { t as createStillPointerGate } from "./stillPointerGate-
|
|
8
|
+
import { t as createStillPointerGate } from "./stillPointerGate-CCFCP1uz.js";
|
|
9
9
|
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
10
10
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
11
11
|
import "../styles/layer.css";
|
package/package.json
CHANGED
package/styles/bottom-sheet.css
CHANGED
|
@@ -64,31 +64,54 @@
|
|
|
64
64
|
pointer-events: none;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
/*
|
|
68
|
+
* 切换器的整段流程外层只是个容器,每一步的对话框照常排版。没有遮罩时流程浮在页面上,
|
|
69
|
+
* 自己不接点击,进场那步排在被留下的那步上面。
|
|
70
|
+
*/
|
|
71
|
+
.astryx-bottom-sheet-switcher-flow {
|
|
72
|
+
display: contents;
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
.astryx-bottom-
|
|
72
|
-
|
|
75
|
+
.astryx-bottom-sheet-switcher-flow--non-modal {
|
|
76
|
+
position: fixed;
|
|
77
|
+
inset: 0;
|
|
78
|
+
z-index: 1000;
|
|
79
|
+
display: block;
|
|
80
|
+
isolation: isolate;
|
|
73
81
|
pointer-events: none;
|
|
74
|
-
animation: astryx-sheet-handoff 400ms var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1)) forwards;
|
|
75
82
|
}
|
|
76
83
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
84
|
+
.astryx-bottom-sheet-switcher--non-modal {
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
}
|
|
82
88
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
89
|
+
.astryx-bottom-sheet-switcher--non-modal-top {
|
|
90
|
+
z-index: 1;
|
|
91
|
+
}
|
|
87
92
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
/* 没有遮罩的面板接替另一张时排在被替换的那张上面。 */
|
|
94
|
+
.astryx-bottom-sheet-dialog--replacing {
|
|
95
|
+
z-index: 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/*
|
|
99
|
+
* 叠放里被盖住的面板往后退:最近的一张以顶边为轴缩小一档并上移,再往下的缩小两档,更深的都停在第二档。
|
|
100
|
+
* 叠放期间过渡一直挂着,回到最上面时也有动画。独立面板退的是对话框本身,切换器退的是那一步的定位层。
|
|
101
|
+
*/
|
|
102
|
+
.astryx-bottom-sheet-stack-motion {
|
|
103
|
+
transform-origin: 50% 0;
|
|
104
|
+
transition-property: transform;
|
|
105
|
+
transition-duration: var(--astryx-duration-medium-max, 400ms);
|
|
106
|
+
transition-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.astryx-bottom-sheet-stack-receded-1 {
|
|
110
|
+
transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.96);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.astryx-bottom-sheet-stack-receded-2 {
|
|
114
|
+
transform: translateY(calc(-2 * var(--astryx-spacing-2, 8px))) scale(0.92);
|
|
92
115
|
}
|
|
93
116
|
|
|
94
117
|
.astryx-bottom-sheet__positioner {
|
|
@@ -100,6 +123,14 @@
|
|
|
100
123
|
pointer-events: none;
|
|
101
124
|
}
|
|
102
125
|
|
|
126
|
+
.astryx-bottom-sheet__positioner[hidden] {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.astryx-bottom-sheet__positioner--top {
|
|
131
|
+
z-index: 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
103
134
|
.astryx-bottom-sheet-inline {
|
|
104
135
|
box-sizing: border-box;
|
|
105
136
|
width: 100%;
|
|
@@ -205,6 +236,16 @@
|
|
|
205
236
|
}
|
|
206
237
|
}
|
|
207
238
|
|
|
239
|
+
/* 被替换、正在退场的面板不接点击;被替换的面板淡出时只动透明度。 */
|
|
240
|
+
.astryx-bottom-sheet[data-state='retained'],
|
|
241
|
+
.astryx-bottom-sheet[data-state='exiting'] {
|
|
242
|
+
pointer-events: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.astryx-bottom-sheet[data-state='retained'][data-motion='fading'] {
|
|
246
|
+
opacity: 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
208
249
|
/*
|
|
209
250
|
* A finger's swipe close under reduced motion does not travel: the sheet
|
|
210
251
|
* holds where the finger left it and fades out there, within 200ms.
|
|
@@ -421,7 +462,8 @@
|
|
|
421
462
|
}
|
|
422
463
|
|
|
423
464
|
@media (prefers-reduced-motion: reduce) {
|
|
424
|
-
.astryx-bottom-sheet
|
|
465
|
+
.astryx-bottom-sheet,
|
|
466
|
+
.astryx-bottom-sheet-stack-motion {
|
|
425
467
|
transition-duration: 0.01s;
|
|
426
468
|
}
|
|
427
469
|
|
package/styles/date-input.css
CHANGED
|
@@ -294,6 +294,82 @@
|
|
|
294
294
|
background: var(--astryx-color-background-selected, #eef2ff);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
/*
|
|
298
|
+
* 鼠标下的列:行滚到列的上下两端时往里倾倒、缩小,像一个在手指下转的圆柱。
|
|
299
|
+
* 动画由列的 view() 时间线驱动,行自己不能是滚动容器(那样 view() 会量行自己,
|
|
300
|
+
* 永远停在 50%),所以倾倒画在行里面的文字元素上,裁切也在那里。
|
|
301
|
+
* 倾倒不动行本身:行的位置就是列滚动的落点。
|
|
302
|
+
*
|
|
303
|
+
* 淡出走颜色而不是不透明度:不透明度压到 30% 的行低于 4.5:1。行从主文字色出发,
|
|
304
|
+
* 两端停在主、次文字色的正中,这一档在每个主题里都够 AA,只用次文字色有两个主题不够。
|
|
305
|
+
* 选中和禁用的行保留自己的颜色(动画里的颜色会盖过它们),所以不吃这条渐变;
|
|
306
|
+
* 禁用的行按不透明度淡出,WCAG 1.4.3 允许不可用的组件低于对比度下限。
|
|
307
|
+
* 不支持滚动驱动动画的浏览器就是一列平的、完全清晰的行。
|
|
308
|
+
* 减少动态效果时不再倾倒,保留颜色渐变这条深度提示。
|
|
309
|
+
*/
|
|
310
|
+
@keyframes astryx-wheel-tip {
|
|
311
|
+
0% { transform: rotateX(52deg) scale(0.86); }
|
|
312
|
+
50% { transform: rotateX(0deg) scale(1); }
|
|
313
|
+
100% { transform: rotateX(-52deg) scale(0.86); }
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
@keyframes astryx-wheel-fade {
|
|
317
|
+
0%, 100% { color: color-mix(in oklab, var(--astryx-color-text-primary, light-dark(#000000, #ffffff)), var(--astryx-color-text-secondary, light-dark(#474747, #a8a8a8))); }
|
|
318
|
+
50% { color: var(--astryx-color-text-primary, light-dark(#000000, #ffffff)); }
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@keyframes astryx-wheel-tip-dim {
|
|
322
|
+
0% { opacity: 0.3; transform: rotateX(52deg) scale(0.86); }
|
|
323
|
+
50% { opacity: 1; transform: rotateX(0deg) scale(1); }
|
|
324
|
+
100% { opacity: 0.3; transform: rotateX(-52deg) scale(0.86); }
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@keyframes astryx-wheel-dim {
|
|
328
|
+
0%, 100% { opacity: 0.3; }
|
|
329
|
+
50% { opacity: 1; }
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.astryx-picker-wheel-option-label {
|
|
333
|
+
display: block;
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
text-overflow: ellipsis;
|
|
336
|
+
white-space: nowrap;
|
|
337
|
+
backface-visibility: hidden;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@supports (animation-timeline: view()) {
|
|
341
|
+
.astryx-picker-wheel {
|
|
342
|
+
perspective: 520px;
|
|
343
|
+
transform-style: preserve-3d;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.astryx-picker-wheel-option-label {
|
|
347
|
+
animation: astryx-wheel-tip linear both;
|
|
348
|
+
animation-timeline: view(y);
|
|
349
|
+
animation-range: cover 0% cover 100%;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.astryx-picker-wheel-option:not([aria-selected='true']):not(:disabled) {
|
|
353
|
+
animation: astryx-wheel-fade linear both;
|
|
354
|
+
animation-timeline: view(y);
|
|
355
|
+
animation-range: cover 0% cover 100%;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.astryx-picker-wheel-option:disabled .astryx-picker-wheel-option-label {
|
|
359
|
+
animation-name: astryx-wheel-tip-dim;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@media (prefers-reduced-motion: reduce) {
|
|
363
|
+
.astryx-picker-wheel-option-label {
|
|
364
|
+
animation-name: none;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.astryx-picker-wheel-option:disabled .astryx-picker-wheel-option-label {
|
|
368
|
+
animation-name: astryx-wheel-dim;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
297
373
|
/*
|
|
298
374
|
* 手指下的滚轮(UIPickerView):列不原生滚动,只有一条装着所有行的
|
|
299
375
|
* 长条在动,由动画器写它的 translate。行平排、28px 一行,往列的上下边渐隐。
|