@astryx-vue/core 0.36.0 → 0.36.2
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-rndlABEe.js → AlertDialog-Dz8T0KIa.js} +5 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-eVrOpRqn.js → AppShell-ClZ2Y8cu.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BEBUEhxF.js → AvatarGroup-DhSPWemf.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CVBNGDsD.js → Banner-DeauKxQw.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-B3qXtKQj.js → BottomSheet-CRHPDrmS.js} +3 -3
- package/dist/{BottomSheet-C6vet4pm.js → BottomSheet-CYsGu9GP.js} +48 -18
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-B-w_yw-n.js → Breadcrumbs-nO9YHygD.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DTdlisqJ.js → Button-V6i-PeBt.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-Bjzs-HAG.js → ButtonGroup-CEDeeGkY.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-DjySyeDR.js → Carousel-5NYWpta1.js} +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DQ6BGAvP.js → Chat-BRtDKajd.js} +231 -13
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-DSW8yq92.js → CheckboxInput-ixAs3zkT.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-B2E2O1AE.js → CheckboxListItem-DoWYdLf-.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-D4EGX9Dh.js → ClickableCard-DuOcbNlt.js} +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-BqqB2kUM.js → Code-qHt8uZqb.js} +1 -1
- package/dist/{CodeBlock-D7ZJQV5Q.js → CodeBlock-2zigEFFD.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-C5xSG7oP.js → Collapsible-DfVihLCR.js} +2 -2
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BUNdrxrB.js → CommandPalette-D07roA0D.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-m9wi7E0j.js → ComplexSelector-7OdAby6v.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BEHfVIAq.js → ContextMenu-BIJyyObZ.js} +4 -4
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-CHeetz7k.js → DateInput-BNKoPL3j.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-D524C1wc.js → DateRangeInput-CGDlPnUb.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-sEJ-bSXg.js → DateTimeInput-CRWUAh75.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-DS3xE1B7.js → Dialog-BxijA4zr.js} +3 -3
- package/dist/{Dialog-nyLGClca.js → Dialog-CXa-tu02.js} +1 -1
- package/dist/{DialogHeader-u_AaZpyZ.js → DialogHeader-D7f97ksG.js} +2 -2
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DqUdaZFh.js → Drawer-C3t7NKiF.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-DlAON5Jf.js → DropdownMenu-Bklf6ekH.js} +7 -7
- package/dist/Field/index.js +3 -3
- package/dist/{Field-YNS4XxpR.js → Field-CZndbiqR.js} +1 -1
- package/dist/{FieldInfoTip-DFlIBJlR.js → FieldInfoTip-Ii7lSYS8.js} +1 -1
- package/dist/{FieldLabel-i0gos7hU.js → FieldLabel-ru3qavED.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DYVzAtvz.js → FileInput-BtVTN7LN.js} +3 -3
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DXt8DtsN.js → IconButton-4BXILpv-.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip--fZOD0ux.js → InfoTip-D2MzKXZH.js} +1 -1
- package/dist/{InputClearButton-LF0iVTVF.js → InputClearButton-Cm5Q3KK2.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-D4CPVzo0.js → InputGroup-CjB_XpEy.js} +1 -1
- package/dist/{Item-BKISM91o.js → Item-CKYsTbM4.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-BwSvAsLi.js → Layout-BDS2ZN6C.js} +1 -1
- package/dist/{LayoutPanel-CmzJQpnL.js → LayoutPanel-D56PBM4I.js} +2 -2
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-B32Yh8Uy.js → Lightbox-CnTXrgq6.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DSXyw9MW.js → Link-BnM830Xa.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-D3iEhvU2.js → ListItem-B1ztelEC.js} +2 -2
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BY5Bju8w.js → Markdown-JjZLAFq2.js} +2 -2
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-sC6GPVKQ.js → MobileNavToggle-CjlgmcSf.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CcavOuxV.js → MoreMenu-CGTbwTyw.js} +4 -4
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-Diu5zHbP.js → MultiSelector-BjFYfRqV.js} +4 -4
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DlW8noR6.js → NavItem-DTO-BEfc.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-J2kmtb1B.js → NavMenu-BflnhBtX.js} +1 -1
- package/dist/{NavMenuItem-DItNRTDZ.js → NavMenuItem-CrFrczWe.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-vhm5TQon.js → NumberInput-vWUcgJU8.js} +5 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-CVIDd0fN.js → Outline-D4DJTfKp.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-DjWWBOkx.js → OverflowList-D9Ua6e3-.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-DKsePQjC.js → Pagination-DGcl38z9.js} +3 -3
- package/dist/{PanGestureRecognizer-C7hNunjF.js → PanGestureRecognizer-C-gk9mOy.js} +1 -1
- package/dist/{PickerWheel-Bf7xe6g6.js → PickerWheel-sIOSfcfO.js} +5 -5
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CKgepPJ6.js → Popover-DlCqmkYD.js} +5 -5
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-mYkORxjD.js → PowerSearch-BKhXYPRO.js} +19 -19
- package/dist/{PressTracker-DL75qEq_.js → PressTracker-CPRIrG4f.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-C-S-SnbH.js → RadioGroup-OLFNjvKt.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-DzKVK4DZ.js → RadioListItem-BAEF0vc8.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-CaZEB4Py.js → ResizeHandle-Bd4TdK7E.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-Bp7dpEjn.js → SegmentedControl-C0xXOVTv.js} +8 -8
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DPWaUCGZ.js → SelectableCard-B2QbpWiT.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CJmeuWhN.js → Selector-CHq3XHwH.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D-AQqNPx.js → SideNav-D8jQrwtL.js} +5 -5
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DU-Yl3fd.js → Slider-Bd5fxqRa.js} +7 -7
- 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-67SsxUne.js → Stepper-3oMdVe0c.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-C6qaebkX.js → Switch-COKmqJQU.js} +8 -8
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-TbJ6y1gN.js → TabList-DjRutwar.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DG_GVUF4.js → Table-waEj3x_o.js} +10 -10
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-D6EtmxTk.js → TextArea-BtBC4IoD.js} +6 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-AngvgtdT.js → TextInput-cotkU2bC.js} +6 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-DExkxw8a.js → Thumbnail-oqrKH-co.js} +2 -2
- package/dist/{TimeField-D5M2UxST.js → TimeField-BXQCZIwP.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CvjvLrIh.js → TimeInput-C_ZssG1D.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CeSb1A8c.js → Timestamp-CfzqAAX2.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-B2Fq-JYA.js → Toast-W6aKxXlF.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-Bn8yLHbh.js → ToggleButton-Ditxp2jT.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Dpxh42Mw.js → Token-Dk6MPUkH.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-B3EnI98V.js → Tokenizer-hmGkGVG7.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-D7mzM7pu.js → TopNav-D7jH9iwk.js} +3 -3
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BmeXFFqr.js → TreeList-Dnx-uco3.js} +1 -1
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-kLp9UG-Q.js → Typeahead-Cx086Mmv.js} +3 -3
- package/dist/{accessibleName-Zr1_WoBg.js → accessibleName-CHrrgpAy.js} +2 -2
- package/dist/{boxHold-Bh1fTcXx.js → boxHold-D1G2s1tG.js} +4 -4
- package/dist/{browserClickWait-CiUtuWNK.js → browserClickWait-Cb550_M2.js} +2 -2
- package/dist/{clickGuard-Bd-jBj_G.js → clickGuard-BkegH2NW.js} +1 -1
- package/dist/composables/index.js +8 -8
- package/dist/{composables-Bb1xEruY.js → composables-CpG7bhuQ.js} +3 -3
- package/dist/{focusLeaving-DMkbxFkF.js → focusLeaving-BbZ69DYV.js} +1 -1
- package/dist/{focusReturn-DfZS7TCp.js → focusReturn-BeSRm0xD.js} +34 -3
- package/dist/{geometry-0e0f5Mjv.js → geometry-BRW7FETc.js} +6 -195
- package/dist/{haptics-DIfaJavG.js → haptics-BEgivjBd.js} +2 -2
- package/dist/{holdEntranceInput-DWqsAYll.js → holdEntranceInput-CROBPhuO.js} +1 -1
- package/dist/{index-BCAgC3fu.d.ts → index-BGUuyAMO.d.ts} +6 -6
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CBOv5j3c.d.ts → index-BQ3cm7mP.d.ts} +2 -2
- package/dist/{index-DlFmIGsl.d.ts → index-BRr4ANpr.d.ts} +9 -9
- package/dist/{index-DHUCHxn2.d.ts → index-BWWirRm3.d.ts} +1 -1
- package/dist/{index--kbwaSXW.d.ts → index-BWzEt0gT.d.ts} +2 -2
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-CZ29Xu_E.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-DXKtwGqX.d.ts → index-C0smuLQ8.d.ts} +83 -83
- package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
- package/dist/{index-CEdv6aN_.d.ts → index-C6Iv6sgd.d.ts} +3 -3
- package/dist/{index-1yvu_vpF.d.ts → index-CAJMHw-g.d.ts} +4 -4
- package/dist/{index-0RIgvtdm.d.ts → index-CArP_6wv.d.ts} +1 -1
- package/dist/{index-DofC9Rll.d.ts → index-CJdOt5Cc.d.ts} +2 -2
- package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-BKYQ4e7M.d.ts → index-D2B3ysZr.d.ts} +1 -1
- package/dist/{index-J83fLEyo.d.ts → index-DA3DMFds.d.ts} +4 -4
- package/dist/{index-Ak1b0V24.d.ts → index-DlH0BI35.d.ts} +1 -1
- package/dist/{index-DVX2jlTQ.d.ts → index-DsWEyz1N.d.ts} +3 -3
- package/dist/{index-DYabo8TI.d.ts → index-SWw-WMTO.d.ts} +2 -2
- package/dist/{index-COgrQZIL.d.ts → index-Xc3q9f84.d.ts} +3 -3
- package/dist/{index-C93nwgTW.d.ts → index-gmY3A_Iw.d.ts} +1 -1
- package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
- package/dist/index.d.ts +27 -27
- package/dist/index.js +87 -87
- package/dist/inputAge-C-SoLwpD.js +42 -0
- package/dist/{inputHold-CvjeOOWT.js → inputHold-B53XZ8if.js} +2 -2
- package/dist/{inputHoldState-Cg1r8Ib7.js → inputHoldState-Bav14W7v.js} +1 -1
- package/dist/{inputStream-DkMWPYac.js → inputStream-DmPkJ1aU.js} +24 -1
- package/dist/{layerFocusReturn-CEvrMbxH.js → layerFocusReturn-uixUCSc8.js} +1 -1
- package/dist/{lazyBottomSheet-DlHcPsAT.js → lazyBottomSheet-zUe1mYmM.js} +1 -1
- package/dist/{resizableChannel-CaaqGvXj.js → resizableChannel-DpbFJbto.js} +1 -1
- package/dist/rideKeyboard-BCzVooOd.js +1635 -0
- package/dist/{scrollView-DcPpdCrj.js → scrollView-BGBtu5JP.js} +2 -42
- package/dist/selectionRanges-DB5jesLz.js +194 -0
- package/dist/{springs-DjAn_oV5.js → springs-CPk0tpwL.js} +1 -1
- package/dist/{useActionGroupTracking-DjIdPbfL.js → useActionGroupTracking-C-nLjHyn.js} +3 -2
- package/dist/{useChatStreamScroll-DEp17Yq9.js → useChatStreamScroll-3mJvbNtI.js} +31 -5
- package/dist/{useFocusTrap-DcjriBe1.js → useFocusTrap-Bj9GskLh.js} +1 -1
- package/dist/{useGestureRecognizer-DDd-6Km-.js → useGestureRecognizer-Di-YKr93.js} +1 -1
- package/dist/{useInputStatusIcon-m6l4qBmA.js → useInputStatusIcon-CXP2kRSe.js} +1 -1
- package/dist/{useMenuEntranceHold-C4LOzKIS.js → useMenuEntranceHold-DMHMzaRW.js} +1 -1
- package/dist/{useMenuPress-BDPqPten.js → useMenuPress-kjmot8Bn.js} +4 -4
- package/dist/useMobileKeyboard-BDPV51xl.js +806 -0
- package/dist/{usePressFeedback-D2mWzgoJ.js → usePressFeedback-CF4ISMfb.js} +3 -2
- package/dist/{useResizable-Bwv-j_9N.js → useResizable-7-uUaJ7x.js} +2 -2
- package/dist/{useRestoreFocus-DS7uQWok.js → useRestoreFocus-m3rsqE4d.js} +1 -1
- package/dist/{useTouchHitArea-DL9D10Rq.js → useTouchHitArea-CkHMLZ34.js} +1 -1
- package/package.json +1 -1
- package/styles/bottom-sheet.css +16 -0
- package/styles/chat.css +6 -0
|
@@ -1,44 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/utils/inputAge.ts
|
|
3
|
-
/**
|
|
4
|
-
* @file inputAge.ts
|
|
5
|
-
* @input An input's time stamp, and its event or the node it landed on
|
|
6
|
-
* @output clockOf, timeOn and msSinceInput: the clock of the window that
|
|
7
|
-
* stamped an input, its time on that clock, and how long ago it happened
|
|
8
|
-
* @position Internal utility. The content-touch delay (utils/pressFeedback.ts,
|
|
9
|
-
* gestures/PressTracker.ts) and the long-press hold
|
|
10
|
-
* (hooks/longPressDetector.ts) count from the touch with it.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* The clock of the window that stamped an input: an event's `view`, or the
|
|
14
|
-
* window of the node it landed on. A same-origin iframe's clock or a popup's
|
|
15
|
-
* starts later than the page's. With neither, the clock is this window's.
|
|
16
|
-
*/
|
|
17
|
-
function clockOf(source) {
|
|
18
|
-
return (isNode(source) ? (isDocument(source) ? source : source.ownerDocument)?.defaultView : source?.view)?.performance ?? (typeof performance === "undefined" ? null : performance);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* An event's time on its window's clock. jsdom stamps events with
|
|
22
|
-
* `Date.now()`. Such a stamp keeps its age on that clock, so a frozen system
|
|
23
|
-
* time keeps a delay's length. A stamp nearer `Date.now()` than the window's
|
|
24
|
-
* clock is that kind of stamp.
|
|
25
|
-
*/
|
|
26
|
-
function timeOn(clock, timeStamp) {
|
|
27
|
-
if (timeStamp == null || !Number.isFinite(timeStamp) || timeStamp <= 0) return;
|
|
28
|
-
if (clock != null && Math.abs(Date.now() - timeStamp) < Math.abs(clock.now() - timeStamp)) return clock.now() - (Date.now() - timeStamp);
|
|
29
|
-
return timeStamp;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* How long ago the input stamped `time` happened, on the clock of the window
|
|
33
|
-
* that stamped it (`clockOf(source)`). A busy main thread runs a listener
|
|
34
|
-
* late. An input with no time, or a time ahead of now, counts as now.
|
|
35
|
-
*/
|
|
36
|
-
function msSinceInput(time, source) {
|
|
37
|
-
const clock = clockOf(source);
|
|
38
|
-
const at = timeOn(clock, time);
|
|
39
|
-
return clock == null || at == null ? 0 : Math.max(0, clock.now() - at);
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
1
|
+
import { r as parentAcrossShadow, s as isElement } from "./flatTree-BB4yPMNL.js";
|
|
42
2
|
//#region src/utils/scrollView.ts
|
|
43
3
|
/**
|
|
44
4
|
* @file scrollView.ts
|
|
@@ -125,4 +85,4 @@ function isInsideScrollView(element, { readsTouchAction = true } = {}) {
|
|
|
125
85
|
return panY && SCROLLABLE_OVERFLOW.has(rootOverflow(doc, "y")) && overflows(root, "y") || panX && SCROLLABLE_OVERFLOW.has(rootOverflow(doc, "x")) && overflows(root, "x");
|
|
126
86
|
}
|
|
127
87
|
//#endregion
|
|
128
|
-
export {
|
|
88
|
+
export { rootOverflow as i, isInsideScrollView as n, parseTouchAction as r, SCROLLABLE_OVERFLOW as t };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { a as shadowRootsOutward, i as shadowHostOf, r as parentAcrossShadow } from "./flatTree-BB4yPMNL.js";
|
|
2
|
+
import { t as isTextEntry } from "./selectionLock-BM8XEZQD.js";
|
|
3
|
+
//#region src/utils/selectionRanges.ts
|
|
4
|
+
/**
|
|
5
|
+
* @file selectionRanges.ts
|
|
6
|
+
* @input A window's selection, a press's point
|
|
7
|
+
* @output selectionRangesOf and startsOnSelectableText, what a mouse or pen
|
|
8
|
+
* press reads; caretAt; and the range helpers a drag's hold uses to keep
|
|
9
|
+
* and put back the page's selection
|
|
10
|
+
* @position Read by the gesture host at a press, and by dragSelection.ts
|
|
11
|
+
*
|
|
12
|
+
* SYNC: When modified, update dragSelection.ts and gestures/hostSelection.ts.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The page's selection now, its ranges copied; none for a collapsed or empty
|
|
16
|
+
* one. A drag's hold keeps what this read when the press began.
|
|
17
|
+
*/
|
|
18
|
+
function selectionRangesOf(view) {
|
|
19
|
+
const selection = view?.getSelection();
|
|
20
|
+
if (selection == null) return [];
|
|
21
|
+
const composed = composedRangesOf(selection, []);
|
|
22
|
+
if (composed != null) return composed.filter((range) => !range.collapsed).map(liveWhereItCan);
|
|
23
|
+
if (selection.isCollapsed) return [];
|
|
24
|
+
const ranges = [];
|
|
25
|
+
for (let index = 0; index < selection.rangeCount; index++) ranges.push(selection.getRangeAt(index).cloneRange());
|
|
26
|
+
return ranges;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Whether a press at (`x`, `y`) lands on text a drag would select. That is a
|
|
30
|
+
* text field, or a character of non-empty text whose element allows a
|
|
31
|
+
* selection. A native button's label, slotted or not, is not selectable text,
|
|
32
|
+
* because the engine starts no selection from a drag inside a button. A point
|
|
33
|
+
* beside text, which a caret query snaps to the nearest character, lands on
|
|
34
|
+
* none. Where the engine has no caret query, nothing is selectable text.
|
|
35
|
+
*/
|
|
36
|
+
function startsOnSelectableText(doc, x, y, target) {
|
|
37
|
+
if (isTextEntry(target)) return true;
|
|
38
|
+
const caret = caretAt(doc, x, y, [...ownShadowRoot(target), ...openShadowRootsOf(target)]);
|
|
39
|
+
if (caret == null) return false;
|
|
40
|
+
const { node, offset } = caret;
|
|
41
|
+
if (node.nodeType !== 3 || (node.textContent ?? "").trim() === "") return false;
|
|
42
|
+
const element = node.parentElement ?? (node.parentNode == null ? null : shadowHostOf(node.parentNode));
|
|
43
|
+
if (element == null || !allowsSelection(element) || isInButton(node)) return false;
|
|
44
|
+
const length = (node.textContent ?? "").length;
|
|
45
|
+
const range = doc.createRange();
|
|
46
|
+
if (typeof range.getClientRects !== "function") return false;
|
|
47
|
+
for (const start of [offset - 1, offset]) {
|
|
48
|
+
if (start < 0 || start >= length) continue;
|
|
49
|
+
range.setStart(node, start);
|
|
50
|
+
range.setEnd(node, start + 1);
|
|
51
|
+
for (const rect of Array.from(range.getClientRects())) if (x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom) return true;
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
/** Whether `node` is inside a native button, along the flat tree. */
|
|
56
|
+
function isInButton(node) {
|
|
57
|
+
for (let at = node; at != null; at = parentAcrossShadow(at)) if (at.nodeType === 1 && at.localName === "button") return true;
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
/** The caret position the engine puts at a point, by either query. */
|
|
61
|
+
function caretAt(doc, x, y, shadowRoots) {
|
|
62
|
+
const queries = doc;
|
|
63
|
+
if (typeof queries.caretPositionFromPoint === "function") {
|
|
64
|
+
const position = shadowRoots.length > 0 ? queries.caretPositionFromPoint(x, y, { shadowRoots: [...shadowRoots] }) : queries.caretPositionFromPoint(x, y);
|
|
65
|
+
return position == null ? null : {
|
|
66
|
+
node: position.offsetNode,
|
|
67
|
+
offset: position.offset
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
if (typeof queries.caretRangeFromPoint === "function") {
|
|
71
|
+
const range = queries.caretRangeFromPoint(x, y);
|
|
72
|
+
return range == null ? null : {
|
|
73
|
+
node: range.startContainer,
|
|
74
|
+
offset: range.startOffset
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
/** Whether an element's text can be selected (`user-select` is not none). */
|
|
80
|
+
function allowsSelection(element) {
|
|
81
|
+
const style = element.ownerDocument.defaultView?.getComputedStyle(element);
|
|
82
|
+
if (style == null) return false;
|
|
83
|
+
return style.getPropertyValue("user-select") !== "none" && style.getPropertyValue("-webkit-user-select") !== "none";
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The ranges `selection` holds, with boundaries inside `shadowRoots` where the
|
|
87
|
+
* engine reads composed ranges.
|
|
88
|
+
*/
|
|
89
|
+
function heldRanges(selection, shadowRoots) {
|
|
90
|
+
const composed = composedRangesOf(selection, shadowRoots);
|
|
91
|
+
if (composed != null) return composed;
|
|
92
|
+
const ranges = [];
|
|
93
|
+
for (let index = 0; index < selection.rangeCount; index++) ranges.push(selection.getRangeAt(index));
|
|
94
|
+
return ranges;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A live copy of `range` when both boundaries share a root, so it follows
|
|
98
|
+
* DOM changes. A range across roots stays static: no live range holds it.
|
|
99
|
+
*/
|
|
100
|
+
function liveWhereItCan(range) {
|
|
101
|
+
const live = range.startContainer.ownerDocument?.createRange();
|
|
102
|
+
if (live == null || range.startContainer.getRootNode() !== range.endContainer.getRootNode()) return range;
|
|
103
|
+
live.setStart(range.startContainer, range.startOffset);
|
|
104
|
+
live.setEnd(range.endContainer, range.endOffset);
|
|
105
|
+
return live;
|
|
106
|
+
}
|
|
107
|
+
/** Whether both of `range`'s boundaries still exist in the document. */
|
|
108
|
+
function isValidRange(range) {
|
|
109
|
+
return isValidBoundary(range.startContainer, range.startOffset) && isValidBoundary(range.endContainer, range.endOffset);
|
|
110
|
+
}
|
|
111
|
+
function isValidBoundary(node, offset) {
|
|
112
|
+
const length = node.nodeType === 3 || node.nodeType === 4 || node.nodeType === 8 ? node.length : node.childNodes.length;
|
|
113
|
+
return node.isConnected && offset >= 0 && offset <= length;
|
|
114
|
+
}
|
|
115
|
+
/** Whether two range lists have the same boundaries, in order. */
|
|
116
|
+
function sameRanges(held, kept) {
|
|
117
|
+
return held.length === kept.length && kept.every((range, index) => {
|
|
118
|
+
const other = held[index];
|
|
119
|
+
return other.startContainer === range.startContainer && other.startOffset === range.startOffset && other.endContainer === range.endContainer && other.endOffset === range.endOffset;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Put `ranges` back as the selection. One range goes through
|
|
124
|
+
* `setBaseAndExtent`, which also reaches inside a shadow root.
|
|
125
|
+
*/
|
|
126
|
+
function selectRanges(selection, ranges) {
|
|
127
|
+
const [only] = ranges;
|
|
128
|
+
if (ranges.length === 1 && typeof selection.setBaseAndExtent === "function") {
|
|
129
|
+
selection.setBaseAndExtent(only.startContainer, only.startOffset, only.endContainer, only.endOffset);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
selection.removeAllRanges();
|
|
133
|
+
for (const range of ranges) {
|
|
134
|
+
const copy = range.startContainer.ownerDocument?.createRange();
|
|
135
|
+
if (copy == null) continue;
|
|
136
|
+
copy.setStart(range.startContainer, range.startOffset);
|
|
137
|
+
copy.setEnd(range.endContainer, range.endOffset);
|
|
138
|
+
selection.addRange(copy);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* The selection's composed ranges, reaching into each open shadow root a
|
|
143
|
+
* boundary lands on; null where the engine has no `getComposedRanges`.
|
|
144
|
+
* Without the roots, a selection inside a shadow root reads as one around
|
|
145
|
+
* its host.
|
|
146
|
+
*/
|
|
147
|
+
function composedRangesOf(selection, known) {
|
|
148
|
+
const query = selection.getComposedRanges;
|
|
149
|
+
if (typeof query !== "function") return null;
|
|
150
|
+
const read = (roots) => {
|
|
151
|
+
try {
|
|
152
|
+
return query.call(selection, { shadowRoots: roots });
|
|
153
|
+
} catch {
|
|
154
|
+
try {
|
|
155
|
+
return query.call(selection, ...roots);
|
|
156
|
+
} catch {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const roots = [...known];
|
|
162
|
+
for (;;) {
|
|
163
|
+
const ranges = read([...roots]);
|
|
164
|
+
if (ranges == null) return null;
|
|
165
|
+
const found = /* @__PURE__ */ new Set();
|
|
166
|
+
for (const range of ranges) for (const [node, offset] of [[range.startContainer, range.startOffset], [range.endContainer, range.endOffset]]) for (const child of [node.childNodes[offset], node.childNodes[offset - 1]]) {
|
|
167
|
+
const root = child?.nodeType === 1 ? child.shadowRoot : null;
|
|
168
|
+
if (root != null && !roots.includes(root)) found.add(root);
|
|
169
|
+
}
|
|
170
|
+
if (found.size === 0) return ranges;
|
|
171
|
+
roots.push(...found);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
/** The open shadow roots on the root chains of `ranges`' boundaries. */
|
|
175
|
+
function shadowRootsOfRanges(ranges) {
|
|
176
|
+
const roots = /* @__PURE__ */ new Set();
|
|
177
|
+
for (const range of ranges) for (const root of [...openShadowRootsOf(range.startContainer), ...openShadowRootsOf(range.endContainer)]) roots.add(root);
|
|
178
|
+
return [...roots];
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* The open shadow root `target` hosts, if any. A press on text directly under
|
|
182
|
+
* a shadow root targets its host.
|
|
183
|
+
*/
|
|
184
|
+
function ownShadowRoot(target) {
|
|
185
|
+
const root = target?.nodeType === 1 ? target.shadowRoot : null;
|
|
186
|
+
return root == null ? [] : [root];
|
|
187
|
+
}
|
|
188
|
+
/** The open shadow roots on `target`'s root chain, innermost first. */
|
|
189
|
+
function openShadowRootsOf(target) {
|
|
190
|
+
if (target == null || typeof target.nodeType !== "number") return [];
|
|
191
|
+
return shadowRootsOutward(target.getRootNode()).map(({ root }) => root).filter((root) => root.mode === "open");
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
export { selectRanges as a, startsOnSelectableText as c, sameRanges as i, heldRanges as n, selectionRangesOf as o, isValidRange as r, shadowRootsOfRanges as s, caretAt as t };
|
|
@@ -534,4 +534,4 @@ function registerSpringsTable() {
|
|
|
534
534
|
registerMotionTable("springs", SPRING_ROLES, { roles: Object.keys(SPRING_ROLES) });
|
|
535
535
|
}
|
|
536
536
|
//#endregion
|
|
537
|
-
export {
|
|
537
|
+
export { SWITCH_THUMB_MOVE_SPRING as a, SLIDER_RELEASE_SPRING as i, SLIDER_DROP_SPRING as n, registerSpringsTable as o, SLIDER_LIFT_SPRING as r, springs as s, KEYBOARD_SPRING as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
1
|
+
import { n as msSinceInput } from "./inputAge-C-SoLwpD.js";
|
|
2
|
+
import { n as isInsideScrollView } from "./scrollView-BGBtu5JP.js";
|
|
3
|
+
import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-CkHMLZ34.js";
|
|
3
4
|
import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-CfBgXWRM.js";
|
|
4
5
|
import { f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup } from "./pressSlot-B6TvGkSO.js";
|
|
5
6
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
3
3
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/composables/useChatNewMessages.ts
|
|
@@ -107,6 +107,32 @@ function setScrollAnchoringOff(element, isOff) {
|
|
|
107
107
|
} else element.removeAttribute(SCROLL_ANCHORING);
|
|
108
108
|
}
|
|
109
109
|
//#endregion
|
|
110
|
+
//#region src/composables/internal/streamFollowing.ts
|
|
111
|
+
/**
|
|
112
|
+
* @file streamFollowing.ts
|
|
113
|
+
* @input The scroll-anchoring owner
|
|
114
|
+
* @output markFollowing, which the stream scroll calls with each change of its
|
|
115
|
+
* lock, and isFollowingNewest, which ChatLayout's keyboard reads
|
|
116
|
+
* @position Internal to useChatStreamScroll and Chat; not exported
|
|
117
|
+
*/
|
|
118
|
+
const following = /* @__PURE__ */ new WeakSet();
|
|
119
|
+
/**
|
|
120
|
+
* Whether the stream scroll on `scroller` follows its newest message now, as
|
|
121
|
+
* its lock says.
|
|
122
|
+
*/
|
|
123
|
+
function isFollowingNewest(scroller) {
|
|
124
|
+
return following.has(scroller);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The lock's marks on the scroller: anchoring off while the hook follows, and
|
|
128
|
+
* the state `isFollowingNewest` reads.
|
|
129
|
+
*/
|
|
130
|
+
function markFollowing(el, locked) {
|
|
131
|
+
setScrollAnchoringOff(el, locked);
|
|
132
|
+
if (locked) following.add(el);
|
|
133
|
+
else following.delete(el);
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
110
136
|
//#region src/composables/useChatStreamScroll.ts
|
|
111
137
|
const SIXTY_FPS_MS = 1e3 / 60;
|
|
112
138
|
const CHAT_MESSAGE_CLASS = "astryx-chat-message";
|
|
@@ -142,7 +168,7 @@ function useChatStreamScroll(options) {
|
|
|
142
168
|
locked = next;
|
|
143
169
|
isLocked.value = next;
|
|
144
170
|
const el = scrollRef.value;
|
|
145
|
-
if (el)
|
|
171
|
+
if (el) markFollowing(el, next);
|
|
146
172
|
if (!next) cancelFrame();
|
|
147
173
|
}
|
|
148
174
|
function cancelFrame() {
|
|
@@ -252,7 +278,7 @@ function useChatStreamScroll(options) {
|
|
|
252
278
|
lastScrollTop = el.scrollTop;
|
|
253
279
|
lastScrollHeight = el.scrollHeight;
|
|
254
280
|
lastOffsetHeight = shownHeight();
|
|
255
|
-
|
|
281
|
+
markFollowing(el, locked);
|
|
256
282
|
const onScroll = () => {
|
|
257
283
|
const { scrollTop, scrollHeight } = el;
|
|
258
284
|
const offsetHeight = shownHeight();
|
|
@@ -308,7 +334,7 @@ function useChatStreamScroll(options) {
|
|
|
308
334
|
el.removeEventListener("scrollend", onScrollEnd);
|
|
309
335
|
el.removeEventListener("wheel", onWheel);
|
|
310
336
|
el.removeEventListener("touchmove", onTouchMove);
|
|
311
|
-
|
|
337
|
+
markFollowing(el, false);
|
|
312
338
|
});
|
|
313
339
|
}, { immediate: true });
|
|
314
340
|
return {
|
|
@@ -323,4 +349,4 @@ function useChatStreamScroll(options) {
|
|
|
323
349
|
};
|
|
324
350
|
}
|
|
325
351
|
//#endregion
|
|
326
|
-
export {
|
|
352
|
+
export { useChatNewMessages as i, isFollowingNewest as n, CHAT_MESSAGE_CLASS$1 as r, useChatStreamScroll as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
|
|
2
2
|
import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
3
3
|
import { i as hasInnerRegionHolding, n as collapseRadioGroups, o as precedes, r as focusablesIn, s as registerRegion, t as attemptFocus } from "./focusRegion-CmDg7_4b.js";
|
|
4
|
-
import { t as focusForLastInput } from "./focusReturn-
|
|
4
|
+
import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
|
|
5
5
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
6
6
|
//#region src/composables/useFocusTrap.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as sharedState } from "./sharedRealm-BYHklCVM.js";
|
|
2
|
-
import { f as internals, i as getGestureHost } from "./geometry-
|
|
2
|
+
import { f as internals, i as getGestureHost } from "./geometry-BRW7FETc.js";
|
|
3
3
|
import { t as useAttachment } from "./useAttachment-CGiD9rt6.js";
|
|
4
4
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
5
5
|
//#region src/gestures/gestureSync.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main } from "./FieldIcon-BU1ZWAuo.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-Ii7lSYS8.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-
|
|
1
|
+
import { n as msSinceInput } from "./inputAge-C-SoLwpD.js";
|
|
2
|
+
import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-BkegH2NW.js";
|
|
3
3
|
import { s as currentGesture } from "./layerDepth-DRfWATFr.js";
|
|
4
|
-
import { t as focusForLastInput } from "./focusReturn-
|
|
4
|
+
import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
|
|
5
5
|
import { t as claimPress } from "./pressClaim-DvdlIn4w.js";
|
|
6
|
-
import { r as isInputShield } from "./inputHoldState-
|
|
6
|
+
import { r as isInputShield } from "./inputHoldState-Bav14W7v.js";
|
|
7
7
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
8
8
|
//#region src/composables/useLongPress.ts
|
|
9
9
|
const DEFAULT_DELAY_MS = 500;
|