@astryx-vue/core 0.24.0 → 0.25.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-DXOTr1D7.js → AlertDialog-Cub9_aPC.js} +6 -6
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cmu6bMY6.js → AppShell-D62A7lqZ.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-dMcn3j8Z.js → Avatar-BKoSK75s.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BUXjzekw.js → AvatarGroup-DT5RbxDa.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CTY9qV89.js → Banner-cg2nXT_4.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-ZOjuZya0.js → BottomSheet-CpLYy3vb.js} +1 -1
- package/dist/{BottomSheet-DyJJtZZU.js → BottomSheet-DGhRZLw4.js} +108 -8
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-Nv-089W0.js → Breadcrumbs-D-nHDHV8.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-TiYG0btL.js → Button-D8AGK5oT.js} +3 -3
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DNN4O9_-.js → ButtonGroup-CUN_rC57.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-DsXup1mZ.js → Carousel-DrCG9wbP.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DqYT_S9M.js → Chat-U1qq8gkF.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-FKfsoLcl.js → CheckboxInput-qm6lkjAw.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DuSVBtMk.js → CheckboxList-DuCKhJHJ.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-dNmSVHBu.js → ClickableCard-CwGxO0GU.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-5KoJDvWd.js → CodeBlock-PMZd9dQ9.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-B1qW6OuL.js → Collapsible-BmUloCSR.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-B2riNg_7.js → CommandPalette-Cy7trpD3.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-C4CO8Fd2.js → ComplexSelector-DMBiVQWp.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-SzsWZf18.js → ContextMenu-63ay7EE-.js} +13 -26
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D9Jv70H7.js → DateInput-B3Q91FDT.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BsB2kg_q.js → DateRangeInput-B6Z66OsH.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BDyKPKGD.js → DateTimeInput-B_7cn7ze.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-JCB5s-T-.js → Dialog-C4FZ7p7Q.js} +10 -0
- package/dist/{Dialog-DUlWQH8R.js → Dialog-CBPD5b-S.js} +1 -1
- package/dist/{DialogHeader-C6hZZxdv.js → DialogHeader-CQ3pnLYi.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BDuiw1-g.js → Drawer-BOwQLKm9.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-Der2x_k_.js → DropdownMenu-9CR9TiKG.js} +5 -5
- package/dist/{DropdownMenu-BhxKnh6D.js → DropdownMenu-DwIfoTnV.js} +18 -18
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CnFkYtcS.js → EmptyState-BG5g2jwJ.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-D4UmRHlD.js → Field-eAowUUMX.js} +1 -1
- package/dist/{FieldInfoTip-BSqcEcUx.js → FieldInfoTip-Dwl9HNp1.js} +1 -1
- package/dist/{FieldLabel-CZbayYFD.js → FieldLabel-CgYk-ORu.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-8oYiJsq_.js → FileInput-B7zeePbM.js} +2 -2
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-COtyAhtB.js → Heading-B1dNZQtu.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DGlOpk4x.js → HoverCard-CZhfsvP4.js} +2 -2
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CwjHTIBg.js → IconButton-D9ZRJ7vD.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-CNZateDb.js → InfoTip-LJi9llxi.js} +2 -2
- package/dist/{InputClearButton-CzCP41sx.js → InputClearButton-C-j9Nf1s.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CfUGHDNz.js → InputGroup-B8PGJZKH.js} +1 -1
- package/dist/{Item-DyaYlbyE.js → Item-DUI1Qnnd.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Dzzd2Vqe.js → Lightbox-BOWTHnTb.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-B7OJQ0zl.js → Link-B75ygGzG.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-gj_lOvEt.js → ListItem-C8SqSrU6.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Cbj-nqhN.js → Markdown-Cqrcj-ct.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BlcdCg8M.js → MobileNavToggle-DLpEONfs.js} +12 -0
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dokwc4Mg.js → MoreMenu-aR88r9xp.js} +17 -31
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CId8-qAX.js → MultiSelector-UTaDe-YT.js} +22 -23
- package/dist/{NavDisclosure-CqAThYgR.js → NavDisclosure-B66SHKdd.js} +1 -1
- package/dist/{NavHeadingSurface-DJ4pWvEi.js → NavHeadingSurface-BZCzkCPJ.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-_eIEwV41.js → NavItem-c1ScHEJY.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-BtA_Xbmr.js → NavMenu-DS6y8ZAY.js} +2 -2
- package/dist/{NavMenuItem-BxfjAf1T.js → NavMenuItem-BqIi3o3D.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-Bl5TFhGD.js → NumberInput-ClkOGF5j.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-NuPQMjxw.js → Outline-DvQbXc_H.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CumJl6X_.js → OverflowList-UnVXBDIW.js} +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-C0Bx80Tu.js → Pagination-CTCLE02h.js} +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DpR4rwiW.js → Popover-CZvRSqqD.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Dq6Gi9z1.js → PowerSearch-BBOum0TP.js} +17 -17
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dp-0xquN.js → ProgressBar-Bgg6zsKR.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-IKBXLzYU.js → RadioGroup-DPy5JQhm.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-NW4fGKgm.js → RadioList-UN7IxQg8.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DRxcUlVP.js → SegmentedControl-BkWz-I2J.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Dp-LsEcf.js → SelectableCard-GRWYx3iD.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BW_oxWDM.js → Selector-CCtsUveZ.js} +27 -22
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-B5mMRj98.js → SideNav-COl5ApOz.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-oD3AY4jh.js → Slider-CYie9hWm.js} +2 -2
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-B3oOyRF7.js → StatusDot-CHfgSYmv.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CgOdL36_.js → Stepper-CCuggsov.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DG_A9cD0.js → Switch-D24CvhDS.js} +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-FkoypUk0.js → TabList-DToCh5JW.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-zNW23VwP.js → Table-D3mzxBr0.js} +13 -13
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-v1ep26uD.js → Text-5p-eZodt.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BilHnmSs.js → TextArea-Bp6D-riO.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-D6tHM2sA.js → TextInput-BYslwBDZ.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-llGdnQM8.js → Thumbnail-B_a8tOS7.js} +3 -3
- package/dist/{TimeField-C5rcoaVu.js → TimeField-MDSJny9m.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D0N8nwrI.js → TimeInput-B19amuxi.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-65PfuoQ7.js → Timer-BD3tfzrF.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-rYC8mE3r.js → Timestamp-CqWoZUKM.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BtQ-4Y6Z.js → Toast-BKPl8iIr.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-Bnn_MiOn.js → ToggleButton-DfpsuhMa.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-B-j3AKxB.js → Token-C7Dt5ygK.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Cpdy_L00.js → Tokenizer-C-eorFsF.js} +5 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-CByjfHBZ.js → Tooltip-88zhGfzF.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-q8xDVlM_.js → TopNav-DMFIsFwy.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CEGInQtF.js → TreeList-nU2gSmQm.js} +3 -3
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-C-PdRnRQ.js → Typeahead-DUQfmy_r.js} +5 -5
- package/dist/{assertOptions-og3t30Fh.js → assertOptions-DVRsfCk1.js} +22 -2
- package/dist/{batch-oTkSbtVz.js → batch-DR5SgbnX.js} +2 -2
- package/dist/{clickGuard-ChKuogmR.js → clickGuard-FrlnECMp.js} +1 -2
- package/dist/coarsePointer-BfMx3H23.js +86 -0
- package/dist/composables/index.js +6 -6
- package/dist/{composables-COCeg92e.js → composables-Do86VAmM.js} +7 -110
- package/dist/{context-DQPBIsl5.js → context-WY1ippwe.js} +2 -2
- package/dist/{edge-3sC8-cbB.js → edge-qfeek_VV.js} +1 -1
- package/dist/{edgeRide-DOxmVxTM.js → edgeRide-iWUNdlxe.js} +4 -4
- package/dist/{sharedRealm-H1OrlP0V.js → flatTree-BB4yPMNL.js} +1 -49
- package/dist/{handle-CSHfxBie.js → handle-ma1yF_B_.js} +2 -1
- package/dist/holdEntranceInput-DjEzfGRU.js +523 -0
- package/dist/{index-85RFPeV0.d.ts → index-B52PMrO7.d.ts} +5 -5
- package/dist/{index-CyMStZq4.d.ts → index-B63NOJRc.d.ts} +1 -1
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-BWcZ-L80.d.ts → index-BhdxP-OG.d.ts} +1 -1
- package/dist/{index-DRDOArzq.d.ts → index-BjmMJ_4E.d.ts} +19 -19
- package/dist/{index-C2HVLdNb.d.ts → index-BtgkNd0Q.d.ts} +2 -2
- package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-Q1oG9yIT.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
- package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-HULXozsK.d.ts → index-Dcxqzk_d.d.ts} +5 -5
- package/dist/index.d.ts +14 -14
- package/dist/index.js +95 -95
- package/dist/inputStream-LZdK8luP.js +239 -0
- package/dist/{landing-DFC97kl9.js → landing-qVsYAZ-v.js} +2 -2
- package/dist/{pressFeedback-CEUPQWIS.js → pressFeedback-DVR5V1b6.js} +3 -164
- package/dist/{stillPointerGate-1Tgkns0J.js → stillPointerGate-D3loXLh7.js} +1 -1
- package/dist/{tooltipFocusRules-vIH7PZh1.js → tooltipFocusRules-CFNKWzYn.js} +1 -1
- package/dist/{tooltipTriggerRules-DoBAbfGc.js → tooltipTriggerRules-DyPyWOdP.js} +1 -1
- package/dist/touchHold-CFJlSClt.js +30 -0
- package/dist/{useActionGroupTracking-PVBCtLUE.js → useActionGroupTracking-C6BzQzvp.js} +2 -2
- package/dist/{useDismiss-CMIsdIOQ.js → useDismiss-C7_S7qUA.js} +87 -5
- package/dist/useHeldPresentation-fQsuYFhz.js +126 -0
- package/dist/{useInputStatusIcon-CrgeMzrf.js → useInputStatusIcon-BFw-EXjJ.js} +1 -1
- package/dist/{useMenuDrillIn-CQrzwZvx.js → useMenuDrillIn-CDn2na4X.js} +9 -8
- package/dist/{useMenuPress-wqRDvUMW.js → useMenuPress-CxUqSUZ9.js} +2 -2
- package/dist/{usePressFeedback-aufF1sCH.js → usePressFeedback-BhNcuxQv.js} +1 -1
- package/dist/{useTooltip-BwqzEtoF.js → useTooltip-CJHbG8Pv.js} +2 -2
- package/dist/{useTouchHitArea-BMDBe36j.js → useTouchHitArea-CNZyA18Y.js} +2 -2
- package/dist/{useTruncationTooltip-CRhoPzeu.js → useTruncationTooltip-BTcr1LCR.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-GvdIymRg.js → useTypeaheadMenuConfig-DeDGVR8S.js} +1 -1
- package/package.json +1 -1
- package/styles/context-menu.css +17 -73
- package/styles/dialog.css +18 -1
- package/styles/hover-card.css +13 -72
- package/styles/layer.css +68 -0
- package/styles/multi-selector.css +17 -30
- package/styles/popover.css +13 -72
- package/styles/selector.css +17 -30
- package/styles/tooltip.css +12 -71
- package/styles/typeahead.css +17 -30
- package/dist/{index-BqhgeAT4.d.ts → index-CHx33xGa.d.ts} +2 -2
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region src/utils/touchQueries.ts
|
|
2
|
+
/**
|
|
3
|
+
* @file touchQueries.ts
|
|
4
|
+
* @input Nothing: plain strings
|
|
5
|
+
* @output TOUCH_QUERY, the media query for a coarse primary pointer; and
|
|
6
|
+
* IOS_SUPPORTS_QUERY with isIosWebKit, the iOS WebKit engine check
|
|
7
|
+
* @position The dependency-free half of touchPresentation.ts, for code that
|
|
8
|
+
* must load without React or the theme: the motion foundation, which
|
|
9
|
+
* Node-side specs and browser proofs load without a StyleX compile.
|
|
10
|
+
* touchPresentation.ts re-exports it beside the hook and the parts that
|
|
11
|
+
* read the theme.
|
|
12
|
+
*/
|
|
13
|
+
/** The primary pointer is coarse: touch behaviours. */
|
|
14
|
+
const TOUCH_QUERY = "(pointer: coarse)";
|
|
15
|
+
/**
|
|
16
|
+
* The engine is WebKit on iOS or iPadOS: the only one that implements
|
|
17
|
+
* `-webkit-touch-callout`. For a style iOS WebKit requires, never a
|
|
18
|
+
* behaviour; isIosWebKit reads it for an engine workaround a record names.
|
|
19
|
+
*/
|
|
20
|
+
const IOS_SUPPORTS_QUERY = "(-webkit-touch-callout: none)";
|
|
21
|
+
/**
|
|
22
|
+
* Whether `view`'s engine is iOS WebKit, by IOS_SUPPORTS_QUERY. Only for an
|
|
23
|
+
* engine workaround a record names (`spec:AST-013` FR6): the selection
|
|
24
|
+
* lock's inline style, and the gesture host's presented hit testing. The
|
|
25
|
+
* keyboard's rise and its scroll back from the blur read it too. False where
|
|
26
|
+
* `CSS.supports` is missing (jsdom has `CSS.escape` only).
|
|
27
|
+
*/
|
|
28
|
+
function isIosWebKit(view = globalThis) {
|
|
29
|
+
return view?.CSS?.supports?.(IOS_SUPPORTS_QUERY) === true;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/utils/coarsePointer.ts
|
|
33
|
+
/**
|
|
34
|
+
* @file coarsePointer.ts
|
|
35
|
+
* @input A window
|
|
36
|
+
* @output Exports isCoarsePointer, matchesMediaQuery, watchCoarsePointer and
|
|
37
|
+
* watchMediaQuery: whether the primary pointer is coarse (TOUCH_QUERY) or
|
|
38
|
+
* any media query matches, and when either changes
|
|
39
|
+
* @position The coarse-pointer gate of packages/core/src/gestures and of
|
|
40
|
+
* the press controller (pressFeedback.ts): touch-only work registers only
|
|
41
|
+
* while it holds. useMediaQuery and the presentation resolvers read and
|
|
42
|
+
* watch through matchesMediaQuery and watchMediaQuery
|
|
43
|
+
*
|
|
44
|
+
* Under a coarse primary pointer, a phone's touch work stays registered: the
|
|
45
|
+
* gesture host's page listeners, the page hold and the finger scroll. Under a
|
|
46
|
+
* fine one, recognizers still attach, and the host listens on the page only
|
|
47
|
+
* during a press (AST-094). The answer can change while the page is open (a
|
|
48
|
+
* tablet docking a mouse), so a holder watches it.
|
|
49
|
+
*
|
|
50
|
+
* SYNC: When modified, update coarsePointer.test.ts.
|
|
51
|
+
*/
|
|
52
|
+
/** Whether the primary pointer of `view` is coarse now. */
|
|
53
|
+
function isCoarsePointer(view) {
|
|
54
|
+
return matchesMediaQuery(view, TOUCH_QUERY);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Whether `query` matches in `view` now. False where `view` has no
|
|
58
|
+
* `matchMedia`, as in a test DOM.
|
|
59
|
+
*/
|
|
60
|
+
function matchesMediaQuery(view, query) {
|
|
61
|
+
return typeof view?.matchMedia === "function" && view.matchMedia(query).matches;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Call `listener` with the new answer each time `query` starts or stops
|
|
65
|
+
* matching in `view`, until the returned function is called.
|
|
66
|
+
*/
|
|
67
|
+
function watchMediaQuery(view, query, listener) {
|
|
68
|
+
if (typeof view?.matchMedia !== "function") return () => {};
|
|
69
|
+
const list = view.matchMedia(query);
|
|
70
|
+
const onChange = () => listener(list.matches);
|
|
71
|
+
if (typeof list.addEventListener === "function") {
|
|
72
|
+
list.addEventListener("change", onChange);
|
|
73
|
+
return () => list.removeEventListener("change", onChange);
|
|
74
|
+
}
|
|
75
|
+
list.addListener(onChange);
|
|
76
|
+
return () => list.removeListener(onChange);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Call `listener` with the new answer each time the primary pointer of
|
|
80
|
+
* `view` turns coarse or fine, until the returned function is called.
|
|
81
|
+
*/
|
|
82
|
+
function watchCoarsePointer(view, listener) {
|
|
83
|
+
return watchMediaQuery(view, TOUCH_QUERY, listener);
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { isIosWebKit as a, watchMediaQuery as i, matchesMediaQuery as n, watchCoarsePointer as r, isCoarsePointer as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as useAnimator, a as usePanGesture, b as createPanGesture, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as useAnimatedLayout, x as createAnimator, y as createDragToSnapPoints } from "../composables-
|
|
1
|
+
import { _ as useAnimator, a as usePanGesture, b as createPanGesture, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as useAnimatedLayout, x as createAnimator, y as createDragToSnapPoints } from "../composables-Do86VAmM.js";
|
|
2
2
|
import { i as useClickableContainer, n as hasInteractiveAncestor, r as hasTextSelection, t as INTERACTIVE_SELECTORS } from "../useClickableContainer-Dtjg-nkm.js";
|
|
3
|
-
import { t as usePressFeedback } from "../usePressFeedback-
|
|
3
|
+
import { t as usePressFeedback } from "../usePressFeedback-BhNcuxQv.js";
|
|
4
4
|
import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-BmZyeKWE.js";
|
|
5
|
-
import { t as useDismiss } from "../useDismiss-
|
|
6
|
-
import { n as useLayer } from "../tooltipTriggerRules-
|
|
5
|
+
import { t as useDismiss } from "../useDismiss-C7_S7qUA.js";
|
|
6
|
+
import { n as useLayer } from "../tooltipTriggerRules-DyPyWOdP.js";
|
|
7
7
|
import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
|
|
8
8
|
import { t as useMediaQuery } from "../useMediaQuery-BzXGT1Aw.js";
|
|
9
9
|
import { t as characterCount } from "../characters-wTnzjkkR.js";
|
|
@@ -24,9 +24,9 @@ import { t as useFocusTrap } from "../useFocusTrap-DTz_d7IP.js";
|
|
|
24
24
|
import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
|
|
25
25
|
import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-hv4NYIUi.js";
|
|
26
26
|
import { t as useInputContainer } from "../useInputContainer-CLhsKYZ6.js";
|
|
27
|
-
import { t as useInputStatusIcon } from "../useInputStatusIcon-
|
|
27
|
+
import { t as useInputStatusIcon } from "../useInputStatusIcon-BFw-EXjJ.js";
|
|
28
28
|
import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
|
|
29
|
-
import { a as isMenuPressActivation, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, o as resetMenuPress, r as menuPressStep, s as useLongPress, t as useMenuPress } from "../useMenuPress-
|
|
29
|
+
import { a as isMenuPressActivation, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, o as resetMenuPress, r as menuPressStep, s as useLongPress, t as useMenuPress } from "../useMenuPress-CxUqSUZ9.js";
|
|
30
30
|
import { t as useMergedRefs } from "../useMergedRefs-DTGo1cEU.js";
|
|
31
31
|
import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-Bzvlstgc.js";
|
|
32
32
|
import { n as useNumberField, t as computeSteppedValue } from "../useNumberField-Dk1BE3-K.js";
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { d as
|
|
3
|
-
import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-
|
|
1
|
+
import { a as shadowRootsOutward, c as isHTMLElement, i as shadowHostOf, l as isNode, n as deepActiveElement, r as parentAcrossShadow, s as isElement, t as containsAlongFlatTree } from "./flatTree-BB4yPMNL.js";
|
|
2
|
+
import { d as parseTouchAction, f as rootOverflow, l as SCROLLABLE_OVERFLOW, p as clockOf, u as isInsideScrollView } from "./pressFeedback-DVR5V1b6.js";
|
|
3
|
+
import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-FrlnECMp.js";
|
|
4
|
+
import { a as realmValue, i as subscribeInput, l as sharedWeakMap, o as sharedKey } from "./inputStream-LZdK8luP.js";
|
|
4
5
|
import { b as isSpring, c as UIKIT_PAN, d as UIKIT_VELOCITY, f as registerScrollTable, h as motionRoleOf, l as UIKIT_PRESS, m as motionRoleIn, p as scroll, s as UIKIT_LONG_PRESS, u as UIKIT_TAP, v as registerMotionTable, y as registerSpringRole } from "./pressGesture-BzIBmKF2.js";
|
|
5
6
|
import { o as pushLayer } from "./layerDepth-D3Rh8T5C.js";
|
|
6
7
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
7
8
|
import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
|
|
8
|
-
import { a as reducedMotionCrossFade, c as clearPresentedResolve, d as registerPresentedOffset, f as resolvePresented, h as themeReducesMotion, i as cubicBezier, l as presentedElements, m as writePresentedResolve, n as createAnimatedLayout, o as registerReducedMotionCrossFade, p as watchPresentedElements, u as presentedOffsetOf } from "./handle-
|
|
9
|
+
import { a as reducedMotionCrossFade, c as clearPresentedResolve, d as registerPresentedOffset, f as resolvePresented, h as themeReducesMotion, i as cubicBezier, l as presentedElements, m as writePresentedResolve, n as createAnimatedLayout, o as registerReducedMotionCrossFade, p as watchPresentedElements, u as presentedOffsetOf } from "./handle-ma1yF_B_.js";
|
|
9
10
|
import { n as isDevBuild } from "./devBuild-G249YcdZ.js";
|
|
10
11
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
11
12
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
13
|
+
import { a as isIosWebKit, r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-BfMx3H23.js";
|
|
12
14
|
import { n as isRtlElement } from "./useListFocus-CkHfsZp0.js";
|
|
15
|
+
import { t as holdsTouch } from "./touchHold-CFJlSClt.js";
|
|
13
16
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
14
17
|
import { t as _sfc_main$1 } from "./Kbd-CbD993ig.js";
|
|
15
18
|
import { t as keyboardHintMessages } from "./keyboard-hint-KWx0-7kD.js";
|
|
@@ -5315,37 +5318,6 @@ function isPrimaryClick(event) {
|
|
|
5315
5318
|
return event.button === 0 && !(event.ctrlKey && isApplePlatform());
|
|
5316
5319
|
}
|
|
5317
5320
|
//#endregion
|
|
5318
|
-
//#region src/utils/touchQueries.ts
|
|
5319
|
-
/**
|
|
5320
|
-
* @file touchQueries.ts
|
|
5321
|
-
* @input Nothing: plain strings
|
|
5322
|
-
* @output TOUCH_QUERY, the media query for a coarse primary pointer; and
|
|
5323
|
-
* IOS_SUPPORTS_QUERY with isIosWebKit, the iOS WebKit engine check
|
|
5324
|
-
* @position The dependency-free half of touchPresentation.ts, for code that
|
|
5325
|
-
* must load without React or the theme: the motion foundation, which
|
|
5326
|
-
* Node-side specs and browser proofs load without a StyleX compile.
|
|
5327
|
-
* touchPresentation.ts re-exports it beside the hook and the parts that
|
|
5328
|
-
* read the theme.
|
|
5329
|
-
*/
|
|
5330
|
-
/** The primary pointer is coarse: touch behaviours. */
|
|
5331
|
-
const TOUCH_QUERY = "(pointer: coarse)";
|
|
5332
|
-
/**
|
|
5333
|
-
* The engine is WebKit on iOS or iPadOS: the only one that implements
|
|
5334
|
-
* `-webkit-touch-callout`. For a style iOS WebKit requires, never a
|
|
5335
|
-
* behaviour; isIosWebKit reads it for an engine workaround a record names.
|
|
5336
|
-
*/
|
|
5337
|
-
const IOS_SUPPORTS_QUERY = "(-webkit-touch-callout: none)";
|
|
5338
|
-
/**
|
|
5339
|
-
* Whether `view`'s engine is iOS WebKit, by IOS_SUPPORTS_QUERY. Only for an
|
|
5340
|
-
* engine workaround a record names (`spec:AST-013` FR6): the selection
|
|
5341
|
-
* lock's inline style, and the gesture host's presented hit testing. The
|
|
5342
|
-
* keyboard's rise and its scroll back from the blur read it too. False where
|
|
5343
|
-
* `CSS.supports` is missing (jsdom has `CSS.escape` only).
|
|
5344
|
-
*/
|
|
5345
|
-
function isIosWebKit(view = globalThis) {
|
|
5346
|
-
return view?.CSS?.supports?.(IOS_SUPPORTS_QUERY) === true;
|
|
5347
|
-
}
|
|
5348
|
-
//#endregion
|
|
5349
5321
|
//#region src/utils/selectionLock.ts
|
|
5350
5322
|
/**
|
|
5351
5323
|
* @file selectionLock.ts
|
|
@@ -5853,60 +5825,6 @@ function lockDragSelection(elements, view, kept, onReleased) {
|
|
|
5853
5825
|
return release;
|
|
5854
5826
|
}
|
|
5855
5827
|
//#endregion
|
|
5856
|
-
//#region src/utils/coarsePointer.ts
|
|
5857
|
-
/**
|
|
5858
|
-
* @file coarsePointer.ts
|
|
5859
|
-
* @input A window
|
|
5860
|
-
* @output Exports isCoarsePointer, matchesMediaQuery, watchCoarsePointer and
|
|
5861
|
-
* watchMediaQuery: whether the primary pointer is coarse (TOUCH_QUERY) or
|
|
5862
|
-
* any media query matches, and when either changes
|
|
5863
|
-
* @position The coarse-pointer gate of packages/core/src/gestures and of
|
|
5864
|
-
* the press controller (pressFeedback.ts): touch-only work registers only
|
|
5865
|
-
* while it holds. useMediaQuery and the presentation resolvers read and
|
|
5866
|
-
* watch through matchesMediaQuery and watchMediaQuery
|
|
5867
|
-
*
|
|
5868
|
-
* Under a coarse primary pointer, a phone's touch work stays registered: the
|
|
5869
|
-
* gesture host's page listeners, the page hold and the finger scroll. Under a
|
|
5870
|
-
* fine one, recognizers still attach, and the host listens on the page only
|
|
5871
|
-
* during a press (AST-094). The answer can change while the page is open (a
|
|
5872
|
-
* tablet docking a mouse), so a holder watches it.
|
|
5873
|
-
*
|
|
5874
|
-
* SYNC: When modified, update coarsePointer.test.ts.
|
|
5875
|
-
*/
|
|
5876
|
-
/** Whether the primary pointer of `view` is coarse now. */
|
|
5877
|
-
function isCoarsePointer(view) {
|
|
5878
|
-
return matchesMediaQuery(view, TOUCH_QUERY);
|
|
5879
|
-
}
|
|
5880
|
-
/**
|
|
5881
|
-
* Whether `query` matches in `view` now. False where `view` has no
|
|
5882
|
-
* `matchMedia`, as in a test DOM.
|
|
5883
|
-
*/
|
|
5884
|
-
function matchesMediaQuery(view, query) {
|
|
5885
|
-
return typeof view?.matchMedia === "function" && view.matchMedia(query).matches;
|
|
5886
|
-
}
|
|
5887
|
-
/**
|
|
5888
|
-
* Call `listener` with the new answer each time `query` starts or stops
|
|
5889
|
-
* matching in `view`, until the returned function is called.
|
|
5890
|
-
*/
|
|
5891
|
-
function watchMediaQuery(view, query, listener) {
|
|
5892
|
-
if (typeof view?.matchMedia !== "function") return () => {};
|
|
5893
|
-
const list = view.matchMedia(query);
|
|
5894
|
-
const onChange = () => listener(list.matches);
|
|
5895
|
-
if (typeof list.addEventListener === "function") {
|
|
5896
|
-
list.addEventListener("change", onChange);
|
|
5897
|
-
return () => list.removeEventListener("change", onChange);
|
|
5898
|
-
}
|
|
5899
|
-
list.addListener(onChange);
|
|
5900
|
-
return () => list.removeListener(onChange);
|
|
5901
|
-
}
|
|
5902
|
-
/**
|
|
5903
|
-
* Call `listener` with the new answer each time the primary pointer of
|
|
5904
|
-
* `view` turns coarse or fine, until the returned function is called.
|
|
5905
|
-
*/
|
|
5906
|
-
function watchCoarsePointer(view, listener) {
|
|
5907
|
-
return watchMediaQuery(view, TOUCH_QUERY, listener);
|
|
5908
|
-
}
|
|
5909
|
-
//#endregion
|
|
5910
5828
|
//#region src/gestures/wheelSegmenter.ts
|
|
5911
5829
|
/** Momentum arrives at frame rate: a pause this long ends it. */
|
|
5912
5830
|
const MOMENTUM_GAP_MS = 50;
|
|
@@ -7364,27 +7282,6 @@ function createNativeScrollProbe(target, { readsTouchAction = true } = {}) {
|
|
|
7364
7282
|
};
|
|
7365
7283
|
}
|
|
7366
7284
|
//#endregion
|
|
7367
|
-
//#region src/gestures/touchHold.ts
|
|
7368
|
-
/**
|
|
7369
|
-
* @file touchHold.ts
|
|
7370
|
-
* @input The holds a layer places on input while it animates or shields
|
|
7371
|
-
* what is beneath it
|
|
7372
|
-
* @output registerTouchHold, which adds a hold's read, and holdsTouch, the
|
|
7373
|
-
* gesture host's one question: whether a touch on a target is held
|
|
7374
|
-
* @position The seam between the gesture host and a layer's input hold
|
|
7375
|
-
* (upstream Layer/inputHold `holdsTouch`): a layer registers its read, and
|
|
7376
|
-
* the host asks before it gives a touch to any recognizer
|
|
7377
|
-
*
|
|
7378
|
-
* A held touch reaches no recognizer: the host drops it as it lands. With
|
|
7379
|
-
* no hold registered, every touch passes, at once.
|
|
7380
|
-
*/
|
|
7381
|
-
const holds = sharedState("gestures/touch-hold", 1, () => /* @__PURE__ */ new Set());
|
|
7382
|
-
/** Whether any registered hold takes a touch on `target`. */
|
|
7383
|
-
function holdsTouch(target) {
|
|
7384
|
-
for (const query of holds) if (query(target)) return true;
|
|
7385
|
-
return false;
|
|
7386
|
-
}
|
|
7387
|
-
//#endregion
|
|
7388
7285
|
//#region src/gestures/hostHitTest.ts
|
|
7389
7286
|
/** Presented hit testing, click retargeting, and the participants a contact meets; GestureHost is the class to use. */
|
|
7390
7287
|
var HostHitTest = class extends HostInstall {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
|
|
2
|
-
import { r as readArea, t as areaOf } from "./handle-
|
|
3
|
-
import { D as glides, _ as safeAnimate, d as layoutMotion, h as beginChange, m as sampleOver, p as sampleKeyframes, r as changeStartIn } from "./batch-
|
|
2
|
+
import { r as readArea, t as areaOf } from "./handle-ma1yF_B_.js";
|
|
3
|
+
import { D as glides, _ as safeAnimate, d as layoutMotion, h as beginChange, m as sampleOver, p as sampleKeyframes, r as changeStartIn } from "./batch-DR5SgbnX.js";
|
|
4
4
|
import { computed, inject, ref } from "vue";
|
|
5
5
|
//#region src/motion/inertClone.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-
|
|
1
|
+
import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-DR5SgbnX.js";
|
|
2
2
|
//#region src/motion/layout/edge.ts
|
|
3
3
|
/** Whether `element` lays its inline axis out right to left. */
|
|
4
4
|
function isRtl(element) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as areaOf } from "./handle-
|
|
3
|
-
import { D as glides, O as numbersIn, T as visibleRect, _ as safeAnimate, d as layoutMotion, i as changeStartOf, m as sampleOver, n as batches, p as sampleKeyframes, u as takesPart, v as retimeSettle, w as scaleOf, x as intersects } from "./batch-
|
|
4
|
-
import { a as isRtl, c as slideFrame, i as holdSlideClip, l as slidingParts, n as fractionClip, o as previousInFlow, r as glideMoving, s as pxClip, t as extentOf } from "./edge-
|
|
1
|
+
import { l as sharedWeakMap } from "./inputStream-LZdK8luP.js";
|
|
2
|
+
import { t as areaOf } from "./handle-ma1yF_B_.js";
|
|
3
|
+
import { D as glides, O as numbersIn, T as visibleRect, _ as safeAnimate, d as layoutMotion, i as changeStartOf, m as sampleOver, n as batches, p as sampleKeyframes, u as takesPart, v as retimeSettle, w as scaleOf, x as intersects } from "./batch-DR5SgbnX.js";
|
|
4
|
+
import { a as isRtl, c as slideFrame, i as holdSlideClip, l as slidingParts, n as fractionClip, o as previousInFlow, r as glideMoving, s as pxClip, t as extentOf } from "./edge-qfeek_VV.js";
|
|
5
5
|
//#region src/motion/layout/playChange.ts
|
|
6
6
|
/** Each part's slide, by its motion: a stopped slide is no glide. */
|
|
7
7
|
const slideTargets = sharedWeakMap("motion/animated-layout/slide-targets", 1);
|
|
@@ -73,52 +73,4 @@ function shadowRootsOutward(node) {
|
|
|
73
73
|
return roots;
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* 对应原版 Astryx 的 `utils/sharedRealm`。
|
|
79
|
-
*
|
|
80
|
-
* 整个 JavaScript 运行环境里按键共享一份值:页面上同时加载了两份 core(比如包本身和一份复制进项目的副本)时,
|
|
81
|
-
* 两边拿同一个键读到的是同一份值。不碰 DOM,服务端也能用。
|
|
82
|
-
*/
|
|
83
|
-
/**
|
|
84
|
-
* 共享值的注册键。版本号表示值的形状:形状变了、旧副本读不懂新值时就升版本,
|
|
85
|
-
* 两边各用各的。
|
|
86
|
-
*/
|
|
87
|
-
function sharedKey(name, version) {
|
|
88
|
-
return Symbol.for(`@astryx-vue/core/${name}/v${version}`);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* `key` 下的共享值,第一次用时创建。
|
|
92
|
-
* `accepts` 防键撞车:它不认的值原样留着,这一份自己另建一个。
|
|
93
|
-
*/
|
|
94
|
-
function realmValue(key, create, accepts = () => true) {
|
|
95
|
-
const realm = globalThis;
|
|
96
|
-
if (Object.hasOwn(realm, key)) {
|
|
97
|
-
const existing = realm[key];
|
|
98
|
-
return accepts(existing) ? existing : create();
|
|
99
|
-
}
|
|
100
|
-
const value = create();
|
|
101
|
-
realm[key] = value;
|
|
102
|
-
return value;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* 按注册名在整页共享一份值:计数器、开关,或装着几样东西的对象。
|
|
106
|
-
* 名字写成 `<目录>/<文件>/<绑定名>`(短横线小写),值的形状变了就升版本。
|
|
107
|
-
*/
|
|
108
|
-
function sharedState(name, version, create) {
|
|
109
|
-
return realmValue(sharedKey(name, version), create);
|
|
110
|
-
}
|
|
111
|
-
/** 按注册名共享的 Map。 */
|
|
112
|
-
function sharedMap(name, version) {
|
|
113
|
-
return sharedState(name, version, () => /* @__PURE__ */ new Map());
|
|
114
|
-
}
|
|
115
|
-
/** 按注册名共享的 WeakMap,例如按文档存的状态。 */
|
|
116
|
-
function sharedWeakMap(name, version) {
|
|
117
|
-
return sharedState(name, version, () => /* @__PURE__ */ new WeakMap());
|
|
118
|
-
}
|
|
119
|
-
/** 按注册名共享的 WeakSet,例如登记过的值。 */
|
|
120
|
-
function sharedWeakSet(name, version) {
|
|
121
|
-
return sharedState(name, version, () => /* @__PURE__ */ new WeakSet());
|
|
122
|
-
}
|
|
123
|
-
//#endregion
|
|
124
|
-
export { sharedWeakMap as a, deepActiveElement as c, shadowRootsOutward as d, isDocument as f, isNode as h, sharedState as i, parentAcrossShadow as l, isHTMLElement as m, sharedKey as n, sharedWeakSet as o, isElement as p, sharedMap as r, containsAlongFlatTree as s, realmValue as t, shadowHostOf as u };
|
|
76
|
+
export { shadowRootsOutward as a, isHTMLElement as c, shadowHostOf as i, isNode as l, deepActiveElement as n, isDocument as o, parentAcrossShadow as r, isElement as s, containsAlongFlatTree as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as parentAcrossShadow, s as isElement } from "./flatTree-BB4yPMNL.js";
|
|
2
|
+
import { a as realmValue, o as sharedKey } from "./inputStream-LZdK8luP.js";
|
|
2
3
|
import { v as registerMotionTable } from "./pressGesture-BzIBmKF2.js";
|
|
3
4
|
//#region src/motion/reducedMotionMark.ts
|
|
4
5
|
/**
|