@astryx-vue/core 0.33.3 → 0.33.4
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-BwH9WU-t.js → AlertDialog-CwyMvZEI.js} +5 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BwzRYOky.js → AppShell-4hWTPKSD.js} +5 -5
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-C0V--ipx.js → AvatarGroup-BIPixZOb.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Ds5KIeES.js → Banner-CMXebR4Y.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DWAYp-JJ.js → Breadcrumbs-BPxPAEHQ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-X-Q_ghg8.js → Button-B7PvGVt6.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DsYdUmF1.js → ButtonGroup-BkwQ0h97.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-D8uVV1J_.js → Carousel-BmfKiv69.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Dy-icS2C.js → Chat-2AG37D51.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CiUtutIS.js → CheckboxInput-rbMgS8ZL.js} +79 -74
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-B6sV7-Og.js → CheckboxListItem-Ckt1Cwt_.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DDk_RtHd.js → ClickableCard-Dh0tOQv-.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-r2-MlpBB.js → CodeBlock-ZluDuBT7.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-0XI3tKgj.js → Collapsible-B_9H2wV_.js} +3 -3
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BYR0Lxxd.js → CommandPalette-Cbr-WWC8.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CIXrqCoX.js → ComplexSelector-BPvBCUJk.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CfVyaP5v.js → ContextMenu-BF4ALBZn.js} +3 -3
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DRzZ8dY7.js → DateInput-C7PICKR2.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DL2aOQXJ.js → DateRangeInput-Dt-BA7AA.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-KWkpamG4.js → DateTimeInput-XEESzGJf.js} +4 -4
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BM5VEE8z.js → Dialog-B1xC9xMC.js} +1 -1
- package/dist/{Dialog-CJzq1gms.js → Dialog-BmdNX3NC.js} +1 -1
- package/dist/{DialogHeader-Do4EOX2f.js → DialogHeader-DcP4xAk3.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DuQ620WO.js → Drawer-CdHbZffI.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-CbENfJOq.js → DropdownMenu-C1494BkC.js} +6 -6
- package/dist/Field/index.js +3 -3
- package/dist/{Field-B1fsgAqp.js → Field-KszpxUdx.js} +1 -1
- package/dist/{FieldInfoTip-CntJCcnM.js → FieldInfoTip-CY9BTVtK.js} +1 -1
- package/dist/{FieldLabel-D56uJrRE.js → FieldLabel-KPCTcJpO.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-EjlruVVX.js → FileInput-BTIn6OoY.js} +3 -3
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CXg9qTRM.js → IconButton-e5xeGow-.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-jFet-iAx.js → InfoTip-DpvV8zrm.js} +1 -1
- package/dist/{InputClearButton-DBTrsrSH.js → InputClearButton-BzxJH6mk.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-D7UBxktR.js → InputGroup-Bj4hksiI.js} +1 -1
- package/dist/{Item-DbalBZXc.js → Item-D62Cibn1.js} +2 -2
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-BEJwZon4.js → Layout-SJoCw8NC.js} +1 -1
- package/dist/{LayoutPanel-BgJdL0KV.js → LayoutPanel-DZN4RxX6.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DJXB22k0.js → Lightbox-FWtAn7X5.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-eXwB0Hjg.js → Link-BxK3lbA-.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-C5B8uYyn.js → ListItem-B4jt3EXr.js} +3 -3
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-COub2yng.js → Markdown-CsoseOGe.js} +2 -2
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DI5yDKfp.js → MobileNavToggle-AgT6hzTg.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-C7gie2PE.js → MoreMenu-4zcxptan.js} +5 -5
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CnGUU8P3.js → MultiSelector-LuAE71wE.js} +4 -4
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-Cciu9aok.js → NavItem-mcmzIshL.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu--iyy_m84.js → NavMenu-Bp35Bk7_.js} +1 -1
- package/dist/{NavMenuItem-BmAm-Cv8.js → NavMenuItem-DviXkleh.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CD9sHbON.js → NumberInput-CxzhFPQw.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-vieAJS2J.js → Outline-KpA-ffCT.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-YLVHypB3.js → OverflowList-DRZxrAYq.js} +1 -1
- 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-Bnkp4oAA.js → Pagination-B3JMAlnl.js} +2 -2
- package/dist/{PanGestureRecognizer-CzIWpazn.js → PanGestureRecognizer-R5y8LZ9h.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CYJ1z_7L.js → Popover-CQr95J2s.js} +4 -4
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DEpXEmgs.js → PowerSearch-BEaqgsZa.js} +18 -18
- package/dist/{PressTracker-L5-Ark_9.js → PressTracker-Dze87pxw.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BdO-xZv0.js → RadioGroup-CpMYh9eL.js} +8 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-DzGPuWTt.js → RadioListItem-n-h5r1GO.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-Dcel1HkU.js → ResizeHandle-J9-dAMuo.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/SegmentedControl-nz9d6e0y.js +1465 -0
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-BZTF6qw-.js → SelectableCard-C018jluo.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-SkwSbf4j.js → Selector-CW1jaM4F.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-BxJfJU95.js → SideNav-DgRpBPuP.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-ORmi7QJ7.js → Slider-Bz72itTP.js} +6 -5
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-C4-wtxn4.js → Stepper-Af_rH8C4.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-Cw1UKVjQ.js → Switch-BYsb1gKn.js} +11 -82
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DNDe2ipJ.js → TabList-Cgw2IuL-.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CqppyRk8.js → Table-DzE-4_og.js} +11 -11
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-I3ghDb9r.js → TextArea-DrYMTaZm.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Xz_ibpOl.js → TextInput-B-1cuwcB.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-bS62Tr_f.js → Thumbnail-DeMaRkDU.js} +2 -2
- package/dist/{TimeField-Bsb8n22d.js → TimeField-C1Nv-fz3.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D40_6GrX.js → TimeInput-Dvh6qqHI.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Bt9ZR975.js → Timestamp-wFkl39dn.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BQxfIeVU.js → Toast-CO6Z1r1s.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-IFhFMpQh.js → ToggleButton-DPpjDYxP.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CpmqfG4i.js → Token-DZkUAIYA.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Dvr7ICpS.js → Tokenizer-CX7D4klL.js} +7 -7
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Cw_dcKpf.js → TopNav-D8Hc_kQ-.js} +3 -3
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CBfKKbUQ.js → TreeList-lNyuRBOk.js} +4 -4
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-D9-WjsCU.js → Typeahead-BiosTaFo.js} +3 -3
- package/dist/{accessibleName-Cw9s1690.js → accessibleName-f5xApbXG.js} +2 -2
- package/dist/{assertOptions-V_jJxpn9.js → assertOptions-Byu4Yqfg.js} +1 -1
- package/dist/boxHold-YML2o6iP.js +170 -0
- package/dist/browserClickWait-DIj9tkLa.js +77 -0
- package/dist/{coarsePointer-DGnAPIcU.js → coarsePointer-BWNSUIY8.js} +2 -32
- package/dist/composables/index.js +6 -6
- package/dist/{composables-BJoAw6XA.js → composables-CPDafrux.js} +3 -2
- package/dist/{context-WDet15_N.js → context-C1MPE6J5.js} +1 -1
- package/dist/{geometry-CoQRz-F1.js → geometry-CGa3nNzZ.js} +6 -131
- package/dist/{holdEntranceInput-BsusS3bM.js → holdEntranceInput-C8B_DYYs.js} +1 -1
- package/dist/{index--kbwaSXW.d.ts → index-B6GTqpW-.d.ts} +3 -3
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CY0KtUSC.d.ts → index-BdICULsZ.d.ts} +85 -85
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- 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-mK1ICsVg.d.ts → index-C9uW39Mj.d.ts} +3 -3
- package/dist/{index-JE1HrzdJ.d.ts → index-CUuUoX3h.d.ts} +3 -3
- package/dist/{index-Bwh8O-v8.d.ts → index-CZ29Xu_E.d.ts} +1 -1
- package/dist/{index-V6uruC4Z.d.ts → index-CpkQlo1t.d.ts} +2 -2
- package/dist/{index-D1JOMiI5.d.ts → index-CukA-J8A.d.ts} +7 -7
- package/dist/{index-BqQlY3fL.d.ts → index-DN5Ga_Zm.d.ts} +3 -3
- package/dist/{index-DPhQZXYw.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-DuxRUPMc.d.ts → index-DhrnMYVh.d.ts} +1 -1
- package/dist/{index-GyRgg1-v.d.ts → index-DlsrR4Gm.d.ts} +7 -7
- package/dist/{index-BtqvPjAf.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-BI1QLuYB.d.ts → index-ZXrvTM3A.d.ts} +3 -3
- package/dist/{index-CbA8rR_b.d.ts → index-a_FOKJMw.d.ts} +2 -2
- package/dist/{index-COgrQZIL.d.ts → index-jz9GfvS0.d.ts} +2 -2
- package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
- package/dist/{index-Pad9p8CU.d.ts → index-tdOyqA_U.d.ts} +2 -2
- package/dist/index.d.ts +23 -23
- package/dist/index.js +83 -83
- package/dist/{landing-Qk_FHR-s.js → landing-BW6qLvC8.js} +1 -1
- package/dist/{presentationHold-CZsVmjlY.js → presentationHold-ZKixVLcz.js} +1 -1
- package/dist/pressClaim-DvdlIn4w.js +24 -0
- package/dist/{pressFeedback-9ogipvI4.js → pressFeedback--_INTed0.js} +45 -5
- package/dist/{reportChange-BUTgduu-.js → reportChange-DwOfucSf.js} +1 -1
- package/dist/{resizableChannel-_j_AW2B6.js → resizableChannel-BnwrR5tr.js} +2 -2
- package/dist/selectionLock-BrUpRS0E.js +130 -0
- package/dist/{themeTiming-ClYaZxGf.js → themeTiming-BJziEh4O.js} +1 -1
- package/dist/touchQueries-xy5IeZfe.js +32 -0
- package/dist/{useActionGroupTracking-ByLJoM-8.js → useActionGroupTracking-BTjuGF9J.js} +2 -2
- package/dist/{useAnimatedLayout-IcX0UfS4.js → useAnimatedLayout-CRAuCwTZ.js} +1 -1
- package/dist/{useHeldPresentation-DJEthuMT.js → useHeldPresentation-CaIKTwUh.js} +1 -1
- package/dist/{useInputStatusIcon-D0q4S1Ye.js → useInputStatusIcon-Bl2JFlc3.js} +1 -1
- package/dist/{useMenuEntranceHold-B7f9ShX2.js → useMenuEntranceHold-C-kHicUN.js} +1 -1
- package/dist/{useMenuPress-cBIQyTsN.js → useMenuPress-CF1GHP_7.js} +3 -1
- package/dist/{usePressFeedback-Dx-a3i82.js → usePressFeedback-B_NavJu0.js} +1 -1
- package/dist/{useResizable-JvgYydox.js → useResizable-I0APFcMz.js} +1 -1
- package/dist/{useTouchHitArea-BGkvMAyp.js → useTouchHitArea-BpEJXuu-.js} +1 -1
- package/package.json +1 -1
- package/styles/segmented-control.css +20 -11
- package/dist/SegmentedControl-BURyE9XU.js +0 -416
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { c as containsAlongFlatTree, d as shadowHostOf, f as shadowRootsOutward, g as isNode, h as isHTMLElement, l as deepActiveElement, m as isElement, n as sharedKey,
|
|
2
|
-
import { d as
|
|
1
|
+
import { c as containsAlongFlatTree, d as shadowHostOf, f as shadowRootsOutward, g as isNode, h as isHTMLElement, l as deepActiveElement, m as isElement, n as sharedKey, t as realmValue, u as parentAcrossShadow } from "./sharedRealm-DBtNH73I.js";
|
|
2
|
+
import { d as isInsideScrollView, f as parseTouchAction, m as clockOf, p as rootOverflow, u as SCROLLABLE_OVERFLOW } from "./pressFeedback--_INTed0.js";
|
|
3
3
|
import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
|
|
4
4
|
import { i as subscribeInput } from "./inputStream-HXw2lZ-3.js";
|
|
5
5
|
import { i as UIKIT_LONG_PRESS, o as UIKIT_PRESS, s as UIKIT_TAP } from "./gestures-yKyyMqeQ.js";
|
|
6
6
|
import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-twEOzzJq.js";
|
|
7
7
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
8
|
-
import {
|
|
8
|
+
import { n as isIosWebKit } from "./touchQueries-xy5IeZfe.js";
|
|
9
|
+
import { i as locksSelectionFor, r as lockStyles, t as isTextEntry } from "./selectionLock-BrUpRS0E.js";
|
|
10
|
+
import { r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-BWNSUIY8.js";
|
|
9
11
|
import { t as isRtlElement } from "./isRtlElement-NHuH48AA.js";
|
|
10
12
|
import { t as holdsTouch } from "./touchHold-CjNjGH7O.js";
|
|
11
13
|
//#region src/gestures/arenaTypes.ts
|
|
@@ -949,133 +951,6 @@ function isPrimaryClick(event) {
|
|
|
949
951
|
return event.button === 0 && !(event.ctrlKey && isApplePlatform());
|
|
950
952
|
}
|
|
951
953
|
//#endregion
|
|
952
|
-
//#region src/utils/selectionLock.ts
|
|
953
|
-
/**
|
|
954
|
-
* @file selectionLock.ts
|
|
955
|
-
* @input The elements a held touch contact presses, and the touch's target
|
|
956
|
-
* @output lockSelection and locksSelectionFor give a held finger's lock;
|
|
957
|
-
* lockStyles and isTextEntry are shared with a claimed drag's hold
|
|
958
|
-
* (dragSelection.ts)
|
|
959
|
-
* @position Recognizers whose hold does something bring lockSelection; the
|
|
960
|
-
* gesture host reads locksSelectionFor, and its drag hold is
|
|
961
|
-
* dragSelection.ts
|
|
962
|
-
*/
|
|
963
|
-
/** What a held finger must not start on a control or a cell. */
|
|
964
|
-
const SELECTION_LOCK = [
|
|
965
|
-
"-webkit-touch-callout",
|
|
966
|
-
"-webkit-user-select",
|
|
967
|
-
"user-select"
|
|
968
|
-
];
|
|
969
|
-
/** Inputs whose text a held finger edits: it places the caret there. */
|
|
970
|
-
const TEXT_ENTRY_TYPES = /* @__PURE__ */ new Set([
|
|
971
|
-
"text",
|
|
972
|
-
"search",
|
|
973
|
-
"email",
|
|
974
|
-
"url",
|
|
975
|
-
"tel",
|
|
976
|
-
"password",
|
|
977
|
-
"number"
|
|
978
|
-
]);
|
|
979
|
-
/**
|
|
980
|
-
* Whether a contact of this pointer kind takes the lock: a finger or a pen,
|
|
981
|
-
* under any primary pointer, a laptop's touchscreen and a desktop pen tablet
|
|
982
|
-
* included, since a pen's hold acts as a finger's.
|
|
983
|
-
*/
|
|
984
|
-
function locksSelectionFor(pointerType) {
|
|
985
|
-
return pointerType !== "mouse";
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Locked elements, how many contacts hold each, and what to restore. Every
|
|
989
|
-
* copy of Core counts here, so the first lock's saved styles come back only
|
|
990
|
-
* after the last release in any copy.
|
|
991
|
-
*/
|
|
992
|
-
const locks = sharedWeakMap("utils/selection-lock/locks", 1);
|
|
993
|
-
/**
|
|
994
|
-
* Refuse a selection and the touch callout on `elements` (and on a non-text
|
|
995
|
-
* input target inside one of them) until the returned function runs, while
|
|
996
|
-
* any holder holds. Idempotent release.
|
|
997
|
-
*/
|
|
998
|
-
function lockSelection(elements, target) {
|
|
999
|
-
const set = new Set(elements);
|
|
1000
|
-
if (isSelectableControl(target) && [...set].some((element) => containsAlongFlatTree(element, target))) set.add(target);
|
|
1001
|
-
if (!isIosWebKit()) {
|
|
1002
|
-
const refuse = (event) => {
|
|
1003
|
-
if (!isTextEntry(event.target)) event.preventDefault();
|
|
1004
|
-
};
|
|
1005
|
-
for (const element of set) element.addEventListener("selectstart", refuse);
|
|
1006
|
-
let isRefusing = true;
|
|
1007
|
-
return () => {
|
|
1008
|
-
if (isRefusing) {
|
|
1009
|
-
isRefusing = false;
|
|
1010
|
-
for (const element of set) element.removeEventListener("selectstart", refuse);
|
|
1011
|
-
}
|
|
1012
|
-
};
|
|
1013
|
-
}
|
|
1014
|
-
return lockStyles(set);
|
|
1015
|
-
}
|
|
1016
|
-
/**
|
|
1017
|
-
* The selection-lock styles on `set`, refcounted per element; idempotent
|
|
1018
|
-
* release.
|
|
1019
|
-
*/
|
|
1020
|
-
function lockStyles(set) {
|
|
1021
|
-
const locked = [];
|
|
1022
|
-
for (const element of set) {
|
|
1023
|
-
const style = styleOf(element);
|
|
1024
|
-
if (style == null) continue;
|
|
1025
|
-
locked.push(element);
|
|
1026
|
-
const lock = locks.get(element);
|
|
1027
|
-
if (lock != null) {
|
|
1028
|
-
lock.count += 1;
|
|
1029
|
-
continue;
|
|
1030
|
-
}
|
|
1031
|
-
locks.set(element, {
|
|
1032
|
-
count: 1,
|
|
1033
|
-
saved: SELECTION_LOCK.map((name) => ({
|
|
1034
|
-
name,
|
|
1035
|
-
value: style.getPropertyValue(name),
|
|
1036
|
-
priority: style.getPropertyPriority(name)
|
|
1037
|
-
}))
|
|
1038
|
-
});
|
|
1039
|
-
for (const name of SELECTION_LOCK) style.setProperty(name, "none");
|
|
1040
|
-
}
|
|
1041
|
-
let isReleased = false;
|
|
1042
|
-
return () => {
|
|
1043
|
-
if (isReleased) return;
|
|
1044
|
-
isReleased = true;
|
|
1045
|
-
for (const element of locked) {
|
|
1046
|
-
const lock = locks.get(element);
|
|
1047
|
-
if (lock == null || --lock.count > 0) continue;
|
|
1048
|
-
locks.delete(element);
|
|
1049
|
-
const style = styleOf(element);
|
|
1050
|
-
for (const { name, value, priority } of lock.saved) if (value === "") style?.removeProperty(name);
|
|
1051
|
-
else style?.setProperty(name, value, priority);
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
}
|
|
1055
|
-
/**
|
|
1056
|
-
* A form control WebKit's own stylesheet makes selectable, which no
|
|
1057
|
-
* ancestor's lock reaches: every input that is not a text field.
|
|
1058
|
-
*/
|
|
1059
|
-
function isSelectableControl(node) {
|
|
1060
|
-
return isElement(node) && node.localName === "input" && !TEXT_ENTRY_TYPES.has(node.type);
|
|
1061
|
-
}
|
|
1062
|
-
/** Text a held finger edits: it places the caret there. */
|
|
1063
|
-
function isTextEntry(node) {
|
|
1064
|
-
const element = isElement(node) ? node : isNode(node) ? node.parentElement : null;
|
|
1065
|
-
if (element == null) return false;
|
|
1066
|
-
if (element.localName === "textarea") return true;
|
|
1067
|
-
if (element.localName === "input") return TEXT_ENTRY_TYPES.has(element.type);
|
|
1068
|
-
return element.isContentEditable;
|
|
1069
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* An element's inline style, when it has one (HTML and SVG elements). It is
|
|
1072
|
-
* checked as an object, so another window's style passes too.
|
|
1073
|
-
*/
|
|
1074
|
-
function styleOf(element) {
|
|
1075
|
-
const style = element.style;
|
|
1076
|
-
return typeof style === "object" && style !== null ? style : null;
|
|
1077
|
-
}
|
|
1078
|
-
//#endregion
|
|
1079
954
|
//#region src/utils/selectionRanges.ts
|
|
1080
955
|
/**
|
|
1081
956
|
* @file selectionRanges.ts
|
|
@@ -4498,4 +4373,4 @@ function travel(touch) {
|
|
|
4498
4373
|
return Math.hypot(touch.x - touch.startX, touch.y - touch.startY);
|
|
4499
4374
|
}
|
|
4500
4375
|
//#endregion
|
|
4501
|
-
export {
|
|
4376
|
+
export { ACTION_STATES as a, isActive as c, internals as d, DEFAULT_ENVIRONMENT as f, getGestureHost as i, isTerminal as l, distance as n, ALL_NATIVE_TOUCH as o, travel as r, MANIPULATION as s, centroid as t, isTransitionAllowed as u };
|
|
@@ -8,14 +8,14 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
type: "button" | "
|
|
11
|
+
type: "button" | "submit" | "reset";
|
|
12
12
|
isDisabled: boolean;
|
|
13
|
-
elevation: ButtonElevation;
|
|
14
13
|
isLoading: boolean;
|
|
14
|
+
variant: ButtonVariant;
|
|
15
15
|
isIconOnly: boolean;
|
|
16
|
+
elevation: ButtonElevation;
|
|
16
17
|
isInterruptible: boolean;
|
|
17
18
|
loadingLabel: string;
|
|
18
|
-
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots$2 = {
|
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base$2: import("vue").DefineComponent<StackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackProps> & Readonly<{}>, {
|
|
20
20
|
as: StackElement;
|
|
21
|
-
wrap: StackWrap;
|
|
22
21
|
direction: StackDirection;
|
|
22
|
+
wrap: StackWrap;
|
|
23
23
|
isScrollable: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
175
175
|
}>, {
|
|
176
176
|
position: OverlayPosition;
|
|
177
177
|
align: OverlayAlign;
|
|
178
|
-
scrim: OverlayScrimMode;
|
|
179
178
|
showOn: OverlayShowOn;
|
|
179
|
+
scrim: OverlayScrimMode;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
181
181
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
182
182
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
|
|
|
192
192
|
isOpen: boolean;
|
|
193
193
|
position: OverlayPosition;
|
|
194
194
|
align: OverlayAlign;
|
|
195
|
-
scrim: OverlayScrimMode;
|
|
196
195
|
showOn: OverlayShowOn;
|
|
196
|
+
scrim: OverlayScrimMode;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
198
198
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
199
199
|
declare const _default: typeof __VLS_export;
|