@astryx-vue/core 0.41.1 → 0.42.1
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-DxrO48Kg.js → AlertDialog-Cld8wc2u.js} +3 -3
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BZ5iG7M-.js → AvatarGroup-CU1zqtTi.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-0YtnbBU6.js → Banner-5KOS4fe8.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-9KMHiyXr.js → Breadcrumbs-aups8a9Y.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-ClyetTf6.js → Button-tVILPfaj.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-tk0H2O8q.js → ButtonGroup-D7p8oEry.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +2 -2
- package/dist/{Calendar-CfhOlgQJ.js → Calendar-Brz2iDeZ.js} +1 -1
- package/dist/{Calendar-DbAQvHgy.js → Calendar-C1E1ZiaS.js} +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-utfvjW5p.js → Carousel-DlHeba5J.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-DL583Xle.js → Chat-B54dCjhV.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BQH87pfn.js → CheckboxInput-BhKf3JOh.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-BL7gDglY.js → CheckboxListItem-BhLPvY5v.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CdByvXDr.js → ClickableCard-DyBa2X4I.js} +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-KvqZ1ZES.js → Code-BtJV5J-h.js} +1 -1
- package/dist/{CodeBlock-e2rlXQWO.js → CodeBlock-D1i3lEK3.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-CTc7irlw.js → Collapsible-CXbcOn80.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-PBYSDIpx.js → CommandPalette-DyjB9xE_.js} +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CPg5jcdL.js → ComplexSelector-MRuOupEd.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DcZEviKv.js → ContextMenu-Bb8ALZmI.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-C4qtEFDW.js → DateInput-DNWMgvU1.js} +579 -78
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-CGqCQAlT.js → DateRangeInput-B8ZWK6sm.js} +4 -4
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CAirxttc.js → DateTimeInput--BzV0yww.js} +4 -4
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-BS8mjD8z.js → DialogHeader-B4cnOihd.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-Cq1Y_1iJ.js → Drawer-dk9etcN3.js} +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-CSn1OQ2D.js → DropdownMenu-DUGWNcnG.js} +3 -3
- package/dist/{DropdownMenuRadioItem.vue-BFCbIBfb.d.ts → DropdownMenuRadioItem.vue-BrcSzOfA.d.ts} +1 -1
- package/dist/Field/index.js +3 -3
- package/dist/{Field-BzGwGqwa.js → Field-B_GThk2X.js} +1 -1
- package/dist/{FieldInfoTip-DqsdZxo0.js → FieldInfoTip-jhm02XZs.js} +1 -1
- package/dist/{FieldLabel-DdMLaCP_.js → FieldLabel-C0XDwWCd.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-B_BXknEU.js → FileInput-CbXrw3RO.js} +3 -3
- package/dist/{geometry-ae8bOxQ5.js → GestureHost-DXCQkur5.js} +1 -28
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-kj1M_L7a.js → IconButton-CU1kvO7X.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DJIb8b29.js → InfoTip-BwxUx7Hk.js} +1 -1
- package/dist/{InputClearButton-wd0VoZja.js → InputClearButton-CN8J7JOl.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DGiF9Xaz.js → InputGroup-Ca-SOzyp.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +2 -1
- package/dist/{InternationalizationProvider-C37KH-mM.js → InternationalizationProvider-CfP0uroW.js} +5 -61
- package/dist/Item-D8Ads8bS.js +1476 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Fu6RCX0k.js → Lightbox-CkxNUYwN.js} +7 -6
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-zPVCNAM6.js → Link-B5CJso43.js} +1 -1
- package/dist/List/index.d.ts +3 -2
- package/dist/List/index.js +4 -4
- package/dist/{List-D4w6clf-.js → List-KQNWaT-8.js} +2 -2
- package/dist/{ListItem-uvJaYGOJ.js → ListItem-C4BtWXV4.js} +8 -3
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BiXz75mz.js → Markdown-BFV7g8oa.js} +118 -59
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CgT9SajI.js → MoreMenu-D0HoYZU0.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CaL3UDIc.js → MultiSelector-BLESAk-K.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-D_1ecPv_.js → NavItem-BR639emm.js} +1 -1
- package/dist/NavMenu/index.js +1 -1
- package/dist/{NavMenuItem-DqBCA1VP.js → NavMenuItem-C9e62bSc.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-0lTA5weY.js → NumberInput-C7cRBlQm.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BoxN40Bd.js → Outline-BcZMmO9Y.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-7oui4oT5.js → OverflowList-cjl0AaEP.js} +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BrkX0lga.js → Pagination-BnA277o8.js} +2 -2
- package/dist/{PanGestureRecognizer-BFSO5U4N.js → PanGestureRecognizer-KxZE-pUT.js} +2 -1
- package/dist/{PickerWheel-CWT7l-9Q.js → PickerWheel-YgYMcbJF.js} +4 -4
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BZ4VWDtv.js → Popover-DfO-mkcm.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BSoQJbHK.js → PowerSearch-BjAYndzP.js} +20 -20
- package/dist/{PressTracker-DDRxFc0Y.js → PressTracker-C8_fTdjp.js} +1 -1
- 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-CrRm7H51.js → RadioGroup-CVOlUPbf.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-iPD3y2Eo.js → RadioListItem-5y613Xrt.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-D8A_jaFC.js → SegmentedControl-D32lkJFq.js} +6 -6
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DIruuGBa.js → SelectableCard-C2hl7HBW.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CFdM10Uc.js → Selector-Dw_0e0zY.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Cl1H-baW.js → SideNav-dsff7R2R.js} +2 -2
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bd3wpFo7.js → Slider-CUgeJ1z4.js} +6 -6
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CZU_Zvi5.js → Stepper-BYZasZK7.js} +1 -1
- package/dist/Swipe/index.d.ts +3 -0
- package/dist/Swipe/index.js +2 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-BpkKyz98.js → Switch-BtcR2oin.js} +6 -6
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DZ2i0QIt.js → TabList-O34fxJlZ.js} +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-fSipO9Ju.js → Table-BrvIqSdi.js} +11 -11
- package/dist/{TapGestureRecognizer-DCiP88h8.js → TapGestureRecognizer-o0LVjFFm.js} +3 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-D5aDDlgr.js → TextArea-TO_A1D_W.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CVRWRtoL.js → TextInput-jIBboBDS.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-zFN5p6dk.js → Thumbnail-CRltyNsq.js} +2 -2
- package/dist/{TimeField-B49DgkyR.js → TimeField-DBKAGPKU.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BoFij92p.js → TimeInput-CEUlNlhY.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-DunFvQYG.js → Timestamp-s4Nksy5i.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BnIq3gzw.js → Toast-BsW7tvzK.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-CLgj6yLQ.js → ToggleButton-DZgHhJd7.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BPjnWrHl.js → Token-B6mV8hyk.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CMv-Bi0y.js → Tokenizer-BvCiuyhk.js} +5 -5
- 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-DUkn4CMv.js → TopNav-xKD14HTR.js} +2 -2
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-o5MrA7rz.js → TreeList-BOr0GpJC.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DXlsxjkQ.js → Typeahead-C18-lx2P.js} +3 -3
- package/dist/{accessibleName-9UI6HUaA.js → accessibleName-Br2Ex6ub.js} +1 -1
- package/dist/{boxHold-DfsWCZLh.js → boxHold-BCbXt9_d.js} +1 -1
- package/dist/{chat-BUFYB3bA.js → chat-DPxoTm_S.js} +2 -0
- package/dist/composables/index.js +5 -4
- package/dist/{composables-Dzpv7G2Z.js → composables-BTTLiP-q.js} +6 -476
- package/dist/context-BNCjTOCB.js +60 -0
- package/dist/createSwipe-DXObfkyb.js +77 -0
- package/dist/geometry-BDCUnbgh.js +28 -0
- package/dist/{index-ZKBj_1nu.d.ts → index-3LdpzxQZ.d.ts} +2 -2
- package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
- package/dist/{index-C2dLjYoW.d.ts → index-B8XkUCzI.d.ts} +1 -1
- package/dist/{index-0RIgvtdm.d.ts → index-CArP_6wv.d.ts} +1 -1
- package/dist/{index-CbA8rR_b.d.ts → index-CBOv5j3c.d.ts} +1 -1
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-uWIhWgDN.d.ts → index-ChHpLHhd.d.ts} +48 -47
- package/dist/{index-BB9acgK8.d.ts → index-D7ShT2c-.d.ts} +2 -2
- package/dist/{index-BItxjc3w.d.ts → index-DOqxWQJp.d.ts} +1 -1
- package/dist/index-DPsvfn2V.d.ts +25 -0
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-BDJQW9cW.d.ts → index-DwUUuRyC.d.ts} +54 -1
- package/dist/{index-CJT9kM7e.d.ts → index-HzXA230A.d.ts} +2 -2
- package/dist/{index-DgNCHxvu.d.ts → index-J83fLEyo.d.ts} +2 -2
- package/dist/{index-CuW4AQ7M.d.ts → index-MOtVbTwK.d.ts} +2 -2
- package/dist/{index-YP5WRwXH.d.ts → index-MiZ3p4b6.d.ts} +6 -6
- package/dist/{index-COqeB2ug.d.ts → index-Nln6FiRr.d.ts} +1 -1
- package/dist/{index-4_uuTfaY.d.ts → index-VWHtgjGh.d.ts} +1 -1
- package/dist/{index-LYiWcVDD.d.ts → index-WqOwd8r8.d.ts} +3 -3
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-CCa_dvoF.d.ts → index-m-fFGq2e.d.ts} +2 -2
- package/dist/{index-BenG-F5d.d.ts → index-maTGrWjF.d.ts} +1 -1
- package/dist/{index-BFPb14Xj.d.ts → index-zjungCKE.d.ts} +6 -6
- package/dist/index.d.ts +29 -27
- package/dist/index.js +87 -83
- package/dist/itemSlots-DA-FyuMF.js +539 -0
- package/dist/{loadCatalog-DfwwR4ox.d.ts → loadCatalog-Cm394Q3F.d.ts} +2 -0
- package/dist/{loadCatalog-Dvlsgn71.js → loadCatalog-DXx3soG1.js} +2 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-BgXR3tSm.js → locale-5NXEHp0U.js} +1 -1
- package/dist/{pressSlot-5Bp-B175.js → pressSlot-31XyOhUS.js} +20 -2
- package/dist/scrollAnchoring-CNplZXRt.js +60 -0
- package/dist/{snapPagingCatcher-RkUaZdWD.js → snapPagingCatcher-BA7qwhj3.js} +3 -2
- package/dist/swipeHost-B2OlVVZt.d.ts +73 -0
- package/dist/{types-D9mwL8sz.d.ts → types-wKC-Ws-M.d.ts} +29 -10
- package/dist/{useActionGroupTracking-Cujjrmt3.js → useActionGroupTracking-CioHSqgG.js} +2 -2
- package/dist/{useCalendarGrid-0WvxbeFC.js → useCalendarGrid-BpBA8UZa.js} +1 -1
- package/dist/{useChatStreamScroll-BQpGHGAr.js → useChatStreamScroll-CGHtw12w.js} +1 -59
- package/dist/{useGestureRecognizer-CtfxP4uw.js → useGestureRecognizer-BSy0RhLT.js} +1 -1
- package/dist/{useInputStatusIcon-2sRn-Nbf.js → useInputStatusIcon-D0xNp9jO.js} +1 -1
- package/dist/{usePressFeedback-Ber7MRiI.js → usePressFeedback-D4oohqP5.js} +1 -1
- package/dist/{useTouchHitArea-B6g7fhfF.js → useTouchHitArea-rwyNMxFb.js} +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +3 -2
- package/dist/utils-DkwunocO.js +348 -0
- package/package.json +5 -1
- package/styles/date-input.css +36 -0
- package/styles/list.css +125 -69
- package/styles/markdown.css +17 -0
- package/dist/Item-DC1v56yE.js +0 -723
- package/dist/itemSlots-BxUu7hje.js +0 -54
- package/dist/utils-BW62BpDR.js +0 -135
- package/dist/{index-D8lv2BiD.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region src/utils/pageScroller.ts
|
|
2
|
+
/**
|
|
3
|
+
* @file pageScroller.ts
|
|
4
|
+
* @input 一个滚动容器元素
|
|
5
|
+
* @output scrollsPage、scrollportTop、scrollEventTarget:容器本身就是整页滚动者时的几条规则
|
|
6
|
+
* @position 页面滚动的判断只在这里写一遍,聊天的跟随滚动读它
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 元素是不是整页的滚动者。页面滚动时根元素的盒子跟着一起移动,它的滚动事件触发在 document 上。
|
|
10
|
+
* 即便滚动元素是 body(怪异模式),documentElement 也算:它的盒子照样随页面移动。
|
|
11
|
+
*/
|
|
12
|
+
function scrollsPage(el) {
|
|
13
|
+
const doc = el.ownerDocument;
|
|
14
|
+
return el === doc.scrollingElement || el === doc.documentElement;
|
|
15
|
+
}
|
|
16
|
+
/** 容器可见区域的顶边(客户端坐标)。整页滚动者的顶边是视口顶部,它自己的盒子比视口顶部高出整段滚动量。 */
|
|
17
|
+
function scrollportTop(el) {
|
|
18
|
+
return scrollsPage(el) ? 0 : el.getBoundingClientRect().top;
|
|
19
|
+
}
|
|
20
|
+
/** 容器的滚动事件触发在哪:整页滚动者触发在 document 上。 */
|
|
21
|
+
function scrollEventTarget(el) {
|
|
22
|
+
return scrollsPage(el) ? el.ownerDocument : el;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/composables/internal/scrollAnchoring.ts
|
|
26
|
+
/**
|
|
27
|
+
* @file scrollAnchoring.ts
|
|
28
|
+
* @input 一个由组件自己掌管位置的滚动容器
|
|
29
|
+
* @output setScrollAnchoringOff:在元素上关掉浏览器的滚动锚定,或还回去
|
|
30
|
+
* @position 私有滚动锚定属性的唯一属主:属性名和规则只在这个文件里写。聊天的跟随滚动在贴着末尾时调用它
|
|
31
|
+
*/
|
|
32
|
+
const SCROLL_ANCHORING = "data-astryx-scroll-anchoring";
|
|
33
|
+
/** 写在滚动容器上:这里的浏览器锚定已关。 */
|
|
34
|
+
const OFF = "off";
|
|
35
|
+
/** 写在放这条规则的那一个 `<style>` 上。 */
|
|
36
|
+
const RULE = "rule";
|
|
37
|
+
/**
|
|
38
|
+
* 每个文档只加一次这条规则。规则挂在属性上而不是元素的行内样式,所以调用方自己的
|
|
39
|
+
* `overflow-anchor` 既不会被读、也不会被写或还原,属性去掉后它重新生效。
|
|
40
|
+
* 这条规则不抢优先级:调用方想在这个容器上自己决定锚定时,行内样式仍然优先。
|
|
41
|
+
*/
|
|
42
|
+
function ensureRule(doc) {
|
|
43
|
+
if (doc.head.querySelector(`[${SCROLL_ANCHORING}="${RULE}"]`) != null) return;
|
|
44
|
+
const style = doc.createElement("style");
|
|
45
|
+
style.setAttribute(SCROLL_ANCHORING, RULE);
|
|
46
|
+
style.textContent = `[${SCROLL_ANCHORING}="${OFF}"]{overflow-anchor:none}`;
|
|
47
|
+
doc.head.appendChild(style);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* `isOff` 为真时关掉 `element` 上浏览器的滚动锚定,为假时还回去。
|
|
51
|
+
* 组件独自移动容器位置期间调用,免得浏览器的原生锚定再移动一次。
|
|
52
|
+
*/
|
|
53
|
+
function setScrollAnchoringOff(element, isOff) {
|
|
54
|
+
if (isOff) {
|
|
55
|
+
ensureRule(element.ownerDocument);
|
|
56
|
+
element.setAttribute(SCROLL_ANCHORING, OFF);
|
|
57
|
+
} else element.removeAttribute(SCROLL_ANCHORING);
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { scrollsPage as i, scrollEventTarget as n, scrollportTop as r, setScrollAnchoringOff as t };
|
|
@@ -4,9 +4,10 @@ import { c as UIKIT_TAP, d as scroll, i as UIKIT_LONG_PRESS, u as registerScroll
|
|
|
4
4
|
import { r as SETTLE_THRESHOLD } from "./animator-D6Buqmbt.js";
|
|
5
5
|
import { t as resolveMotion } from "./resolveMotion-BHR1cz0Q.js";
|
|
6
6
|
import { n as solveDecay } from "./decay-CUtQFEXK.js";
|
|
7
|
-
import {
|
|
8
|
-
import { n as GestureRecognizer } from "./PanGestureRecognizer-
|
|
7
|
+
import { a as MANIPULATION, o as isActive } from "./GestureHost-DXCQkur5.js";
|
|
8
|
+
import { n as GestureRecognizer } from "./PanGestureRecognizer-KxZE-pUT.js";
|
|
9
9
|
import { n as lockSelection } from "./selectionLock-BM8XEZQD.js";
|
|
10
|
+
import { r as travel } from "./geometry-BDCUnbgh.js";
|
|
10
11
|
//#region src/motion/coast.ts
|
|
11
12
|
/** A curve that holds `end` from `duration` on. */
|
|
12
13
|
function settling(duration, end, at, velocity) {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Component } from "vue";
|
|
2
|
+
//#region src/Swipe/swipeHost.d.ts
|
|
3
|
+
/** 操作长什么样:普通、想要的那个、危险的那个。是动词的分量,不是状态。 */
|
|
4
|
+
type ItemSwipeActionVariant = 'neutral' | 'accent' | 'destructive';
|
|
5
|
+
/**
|
|
6
|
+
* `reveal`:快速松手顺着动的方向走,慢松手过半个面板就停开;停开时每个操作都是真按钮。
|
|
7
|
+
* 一甩永远不触发操作;拖得够远越过确认点,行跑到前面、最外侧操作盖满面板,松手就触发它,
|
|
8
|
+
* 往回拖则作罢。一侧有两个及以上操作时,只有从已停开的行开始的拖动才会触发。
|
|
9
|
+
* `commit`:越过确认点松手,行滑出并触发这一侧唯一的操作;什么都不会停开,面板只是展示。
|
|
10
|
+
* 一侧有两个及以上操作时 `commit` 一个都不触发。
|
|
11
|
+
*/
|
|
12
|
+
type ItemSwipeBehavior = 'reveal' | 'commit';
|
|
13
|
+
/**
|
|
14
|
+
* 一个动词。行把它画成按 `variant` 着色的一块,图标在标签上面。
|
|
15
|
+
* 所有字段在手势开始前就已知,所以定义可以放在模块顶层。
|
|
16
|
+
*/
|
|
17
|
+
interface SwipeAction<Id extends string = string> {
|
|
18
|
+
/**
|
|
19
|
+
* 操作的名字。`onActivate` 会收到它,行也按操作的 id 区分面板:
|
|
20
|
+
* 换成 id 相同的新值,停开的行保持停开;id 变了,行合上。
|
|
21
|
+
*/
|
|
22
|
+
id: Id;
|
|
23
|
+
/** 动词的名字,也是行停开时按钮的无障碍名称。写动词达成的状态(「已读」),手势本身已经表达了动作。 */
|
|
24
|
+
label: string;
|
|
25
|
+
/** 画在标签上面。 */
|
|
26
|
+
icon?: Component;
|
|
27
|
+
/**
|
|
28
|
+
* 点停开的操作、全滑到底、或 `commit` 松手时触发。行滑出时(全滑、commit、带 `hasRemoval`
|
|
29
|
+
* 的操作被点),等行的内容离开原来的盒子才触发;没有 `hasRemoval` 的操作被点时立即触发。
|
|
30
|
+
* 收到操作的 `id` 和行的 `itemKey`(`ListItem` 的,普通 `Item` 上是 `undefined`),
|
|
31
|
+
* 所以一个处理函数就能服务所有行。可以返回 Promise,行不等它。
|
|
32
|
+
*/
|
|
33
|
+
onActivate: (event: {
|
|
34
|
+
id: Id;
|
|
35
|
+
itemKey: string | number | undefined;
|
|
36
|
+
}) => void;
|
|
37
|
+
isDisabled?: boolean;
|
|
38
|
+
/** @default 'accent' */
|
|
39
|
+
variant?: ItemSwipeActionVariant;
|
|
40
|
+
/**
|
|
41
|
+
* 操作触发后行停在滑出的位置,不弹回。只表示这一点:不代表调用方会删掉这一行,
|
|
42
|
+
* 和 `swipeBehavior`、`variant` 互不相关。
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
hasRemoval?: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 每一侧横滑露出的动词(越靠后越靠外),以及两侧共用的收场方式。
|
|
49
|
+
* `leading` 由往行内末尾的拖动露出,`trailing` 由往行内开头的拖动露出。
|
|
50
|
+
*/
|
|
51
|
+
interface CreateSwipeOptions<Id extends string = string> {
|
|
52
|
+
/** 往行内末尾拖(从左到右的文字里是向右)露出;越靠后越靠外。 */
|
|
53
|
+
leading?: ReadonlyArray<SwipeAction<Id>>;
|
|
54
|
+
/** 往行内开头拖(从左到右的文字里是向左)露出;越靠后越靠外。 */
|
|
55
|
+
trailing?: ReadonlyArray<SwipeAction<Id>>;
|
|
56
|
+
/**
|
|
57
|
+
* 横滑怎么收场,两侧共用。见 `ItemSwipeBehavior`。
|
|
58
|
+
* @default 'reveal'
|
|
59
|
+
*/
|
|
60
|
+
swipeBehavior?: ItemSwipeBehavior;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 配好的横滑操作。只能由 `createSwipe` 造出、只能传给 `swipe`,里面没有可读的内容。
|
|
64
|
+
* 它的类型带着操作的 id。
|
|
65
|
+
*/
|
|
66
|
+
interface Swipe<Id extends string = string> {
|
|
67
|
+
/** 永远不存在的品牌字段,只给类型用。 */
|
|
68
|
+
readonly '@astryx-vue/core/swipe/v1'?: never;
|
|
69
|
+
/** 操作的 id,只给类型用,永远不存在。 */
|
|
70
|
+
readonly '@astryx-vue/core/swipe/ids'?: Id;
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { SwipeAction as a, Swipe as i, ItemSwipeActionVariant as n, ItemSwipeBehavior as r, CreateSwipeOptions as t };
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { r as AnimatedLayout } from "./useAnimatedLayout-C0koWm4a.js";
|
|
2
2
|
import { n as Reorderable } from "./createReorderable-Bw3Q9mUd.js";
|
|
3
|
+
import { i as Swipe, n as ItemSwipeActionVariant, r as ItemSwipeBehavior } from "./swipeHost-B2OlVVZt.js";
|
|
3
4
|
import { Component, MaybeRefOrGetter, VNodeChild } from "vue";
|
|
4
5
|
//#region src/List/types.d.ts
|
|
5
6
|
/** 滑动露出的一侧。`leading` 是往行内末尾拖,`trailing` 是往行内开头拖。 */
|
|
6
7
|
type ItemSwipeSide = 'leading' | 'trailing';
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* 横滑露出的一个操作。数组里越靠后越靠外。
|
|
10
|
+
* @deprecated 改用 `SwipeAction`:它的 `id` 必填,`onActivate` 会收到操作的 `id` 和行的 `itemKey`。
|
|
11
|
+
*/
|
|
10
12
|
interface ItemSwipeAction {
|
|
11
13
|
id?: string;
|
|
12
14
|
label: string;
|
|
13
15
|
icon?: Component;
|
|
14
|
-
onActivate: () => void
|
|
16
|
+
onActivate: () => void | Promise<void>;
|
|
15
17
|
isDisabled?: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
/** @default 'accent' */
|
|
19
|
+
variant?: ItemSwipeActionVariant;
|
|
20
|
+
/**
|
|
21
|
+
* 触发后行停在滑出的位置,不再弹回。行本身不会被删掉。
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
18
24
|
hasRemoval?: boolean;
|
|
19
25
|
}
|
|
26
|
+
/** @deprecated 改用 `CreateSwipeOptions`。 */
|
|
20
27
|
interface ItemSwipeActions {
|
|
21
28
|
leading?: ItemSwipeAction[];
|
|
22
29
|
trailing?: ItemSwipeAction[];
|
|
@@ -224,12 +231,24 @@ interface ListItemProps {
|
|
|
224
231
|
*/
|
|
225
232
|
itemKey?: string | number;
|
|
226
233
|
/**
|
|
227
|
-
*
|
|
228
|
-
*
|
|
234
|
+
* 行的横滑操作,由一次 `createSwipe` 调用配好:横向拖动在每一侧露出的动词,声明成数据,
|
|
235
|
+
* 行据此画出面板。手指、笔或触控板的双指横滑把行拖到一边、露出这一侧的面板;鼠标拖动和鼠标
|
|
236
|
+
* 滚轮不会,偏竖直的拖动仍归滚动。手势只是触屏的快捷方式,永远不是行通往某个动词的唯一入口:
|
|
237
|
+
* 每个操作都要在行自己的内容里也能点到(菜单或 `endContent` 里的按钮),否则键盘和鼠标用户够不着。
|
|
238
|
+
* 开着的行在点它自己的内容(不激活任何东西)、按在别处、焦点在行外时列表或页面滚动、按 Escape 时合上。
|
|
239
|
+
*
|
|
240
|
+
* 只在 role 允许可交互后代的行上生效:`listitem` 或没有 role 的行;`option`、`menuitem*`、
|
|
241
|
+
* 作为内部控件放大点击区的行和禁用的行不生效。装着行的元素要在行内方向裁剪
|
|
242
|
+
* (`overflow-inline: clip`):`List` 已经这样做了,别的容器自己加一次。
|
|
243
|
+
*/
|
|
244
|
+
swipe?: Swipe;
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated 改传 `swipe`,写成 `createSwipe({ leading, trailing })`。仍可用,行为和 `swipe` 一致;
|
|
247
|
+
* 设置了 `swipe` 时忽略。
|
|
229
248
|
*/
|
|
230
249
|
swipeActions?: ItemSwipeActions;
|
|
231
250
|
/**
|
|
232
|
-
*
|
|
251
|
+
* @deprecated 改在 `createSwipe` 的选项里传 `swipeBehavior`。设置了 `swipe` 时忽略。
|
|
233
252
|
* @default 'reveal'
|
|
234
253
|
*/
|
|
235
254
|
swipeBehavior?: ItemSwipeBehavior;
|
|
@@ -282,4 +301,4 @@ interface ItemSlots extends ListItemSlots {
|
|
|
282
301
|
marker?: () => VNodeChild;
|
|
283
302
|
}
|
|
284
303
|
//#endregion
|
|
285
|
-
export {
|
|
304
|
+
export { ListItemSlots as _, ItemLayout as a, ListSlots as b, ItemSwipeAction as c, ItemTarget as d, ItemText as f, ListItemProps as g, ListEdgeCompensation as h, ItemLabel as i, ItemSwipeActions as l, ListEdge as m, ItemDensity as n, ItemProps as o, ListDensity as p, ItemElement as r, ItemSlots as s, ItemAlign as t, ItemSwipeSide as u, ListMarkerStyle as v, ListProps as y };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as msSinceInput } from "./inputAge-C-SoLwpD.js";
|
|
2
2
|
import { n as isInsideScrollView } from "./scrollView-BGBtu5JP.js";
|
|
3
|
-
import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-
|
|
3
|
+
import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-rwyNMxFb.js";
|
|
4
4
|
import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-CwmZDuSC.js";
|
|
5
|
-
import { f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup } from "./pressSlot-
|
|
5
|
+
import { f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup } from "./pressSlot-31XyOhUS.js";
|
|
6
6
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
7
7
|
//#region src/composables/internal/useActionGroupTracking.ts
|
|
8
8
|
const DISABLED = ":disabled, [aria-disabled=\"true\"]";
|
|
@@ -176,4 +176,4 @@ function firstEnabledDay(month, isDisabled) {
|
|
|
176
176
|
return null;
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
|
-
export {
|
|
179
|
+
export { isWithinMonths as _, dateISO as a, toCalendarDay as b, inSpan as c, toCalendarDate as d, weekFieldName as f, isSameMonth as g, addMonthStarts as h, calendarISO as i, initialCalendarFocus as l, weekdayIndex as m, firstEnabledDay as n, formatWeekdayDate as o, weekStartIndex as p, calendarDiffDays as r, fromCalendarDate as s, buildMonthWeeks as t, sameCalendarDay as u, monthOf as v, monthStartOf as y };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-DKnSDG3S.js";
|
|
3
|
+
import { i as scrollsPage, n as scrollEventTarget, r as scrollportTop, t as setScrollAnchoringOff } from "./scrollAnchoring-CNplZXRt.js";
|
|
3
4
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
4
5
|
//#region src/composables/useChatNewMessages.ts
|
|
5
6
|
/** Class that marks a transcript row `useChatNewMessages` watches. */
|
|
@@ -48,65 +49,6 @@ function useChatNewMessages(options) {
|
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
//#endregion
|
|
51
|
-
//#region src/utils/pageScroller.ts
|
|
52
|
-
/**
|
|
53
|
-
* @file pageScroller.ts
|
|
54
|
-
* @input 一个滚动容器元素
|
|
55
|
-
* @output scrollsPage、scrollportTop、scrollEventTarget:容器本身就是整页滚动者时的几条规则
|
|
56
|
-
* @position 页面滚动的判断只在这里写一遍,聊天的跟随滚动读它
|
|
57
|
-
*/
|
|
58
|
-
/**
|
|
59
|
-
* 元素是不是整页的滚动者。页面滚动时根元素的盒子跟着一起移动,它的滚动事件触发在 document 上。
|
|
60
|
-
* 即便滚动元素是 body(怪异模式),documentElement 也算:它的盒子照样随页面移动。
|
|
61
|
-
*/
|
|
62
|
-
function scrollsPage(el) {
|
|
63
|
-
const doc = el.ownerDocument;
|
|
64
|
-
return el === doc.scrollingElement || el === doc.documentElement;
|
|
65
|
-
}
|
|
66
|
-
/** 容器可见区域的顶边(客户端坐标)。整页滚动者的顶边是视口顶部,它自己的盒子比视口顶部高出整段滚动量。 */
|
|
67
|
-
function scrollportTop(el) {
|
|
68
|
-
return scrollsPage(el) ? 0 : el.getBoundingClientRect().top;
|
|
69
|
-
}
|
|
70
|
-
/** 容器的滚动事件触发在哪:整页滚动者触发在 document 上。 */
|
|
71
|
-
function scrollEventTarget(el) {
|
|
72
|
-
return scrollsPage(el) ? el.ownerDocument : el;
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/composables/internal/scrollAnchoring.ts
|
|
76
|
-
/**
|
|
77
|
-
* @file scrollAnchoring.ts
|
|
78
|
-
* @input 一个由组件自己掌管位置的滚动容器
|
|
79
|
-
* @output setScrollAnchoringOff:在元素上关掉浏览器的滚动锚定,或还回去
|
|
80
|
-
* @position 私有滚动锚定属性的唯一属主:属性名和规则只在这个文件里写。聊天的跟随滚动在贴着末尾时调用它
|
|
81
|
-
*/
|
|
82
|
-
const SCROLL_ANCHORING = "data-astryx-scroll-anchoring";
|
|
83
|
-
/** 写在滚动容器上:这里的浏览器锚定已关。 */
|
|
84
|
-
const OFF = "off";
|
|
85
|
-
/** 写在放这条规则的那一个 `<style>` 上。 */
|
|
86
|
-
const RULE = "rule";
|
|
87
|
-
/**
|
|
88
|
-
* 每个文档只加一次这条规则。规则挂在属性上而不是元素的行内样式,所以调用方自己的
|
|
89
|
-
* `overflow-anchor` 既不会被读、也不会被写或还原,属性去掉后它重新生效。
|
|
90
|
-
* 这条规则不抢优先级:调用方想在这个容器上自己决定锚定时,行内样式仍然优先。
|
|
91
|
-
*/
|
|
92
|
-
function ensureRule(doc) {
|
|
93
|
-
if (doc.head.querySelector(`[${SCROLL_ANCHORING}="${RULE}"]`) != null) return;
|
|
94
|
-
const style = doc.createElement("style");
|
|
95
|
-
style.setAttribute(SCROLL_ANCHORING, RULE);
|
|
96
|
-
style.textContent = `[${SCROLL_ANCHORING}="${OFF}"]{overflow-anchor:none}`;
|
|
97
|
-
doc.head.appendChild(style);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* `isOff` 为真时关掉 `element` 上浏览器的滚动锚定,为假时还回去。
|
|
101
|
-
* 组件独自移动容器位置期间调用,免得浏览器的原生锚定再移动一次。
|
|
102
|
-
*/
|
|
103
|
-
function setScrollAnchoringOff(element, isOff) {
|
|
104
|
-
if (isOff) {
|
|
105
|
-
ensureRule(element.ownerDocument);
|
|
106
|
-
element.setAttribute(SCROLL_ANCHORING, OFF);
|
|
107
|
-
} else element.removeAttribute(SCROLL_ANCHORING);
|
|
108
|
-
}
|
|
109
|
-
//#endregion
|
|
110
52
|
//#region src/composables/internal/streamFollowing.ts
|
|
111
53
|
/**
|
|
112
54
|
* @file streamFollowing.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as sharedState } from "./sharedRealm-BYHklCVM.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as internals, t as getGestureHost } from "./GestureHost-DXCQkur5.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-C6A69-um.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-jhm02XZs.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -3,7 +3,7 @@ import { n as isInsideScrollView } from "./scrollView-BGBtu5JP.js";
|
|
|
3
3
|
import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
|
|
4
4
|
import { s as UIKIT_PRESS } from "./gestures-D_ih8YYG.js";
|
|
5
5
|
import { a as idlePressGesture, o as pressGestureStep, r as PRESS_SCROLL_BRAKE_MS } from "./pressGesture-CwmZDuSC.js";
|
|
6
|
-
import { a as finish, d as PRESS_CONTAINER_ATTRIBUTE, i as finger, l as PRESSABLE_ATTRIBUTE, m as pressSurfaceAt, n as apply, o as releaseIfDead, p as isTrackedByGroup, r as button, s as takeOver, u as PRESS_ACTION_ATTRIBUTE } from "./pressSlot-
|
|
6
|
+
import { a as finish, d as PRESS_CONTAINER_ATTRIBUTE, i as finger, l as PRESSABLE_ATTRIBUTE, m as pressSurfaceAt, n as apply, o as releaseIfDead, p as isTrackedByGroup, r as button, s as takeOver, u as PRESS_ACTION_ATTRIBUTE } from "./pressSlot-31XyOhUS.js";
|
|
7
7
|
import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
|
|
8
8
|
import "../styles/pressable.css";
|
|
9
9
|
//#region src/composables/internal/pressButton.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as armClickGuard } from "./clickGuard-BkegH2NW.js";
|
|
2
|
-
import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-
|
|
2
|
+
import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-31XyOhUS.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|
|
5
5
|
/** 不长:热区就是目标本身。 */
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as SharedDateFormat, A as InputARIAInputGroup, At as PlainDate, B as chainEventHandlers, C as effectiveInputPresentation, Ct as plainDateToISO, D as resolveInputPresentation, Dt as DayOfWeek, E as presentationFromNativePicker, Et as plainDateWeekFieldName, F as ItemGroup, G as DATE_FORMAT_MONTH_ONLY, H as useFingerScroll, I as getItemGroup, J as DATE_FORMAT_SHORT_WITH_WEEKDAY, K as DATE_FORMAT_MONTH_YEAR, L as groupItems, M as joinAriaIDs, N as GroupItemsOptions, O as resolvePickerPresentation, Ot as DayOfWeekName, P as GroupableItem, Q as SHARED_DATE_FORMAT_OPTIONS, R as isLocaleDayFirst, S as PickerPresentationSurface, St as plainDateToDate, T as pickerPresentationFromNativePicker, Tt as plainDateToday, U as setScrollAnchoringOff, V as UseFingerScrollOptions, W as DATE_FORMAT_LONG, X as DATE_FORMAT_WEEKDAY_ONLY, Y as DATE_FORMAT_SHORT_WITH_YEAR, Z as DATE_FORMAT_WITH_WEEKDAY, _ as DEFAULT_INPUT_PRESENTATION, _t as plainDateMax, a as formatDisplayTime12h, at as plainDateCreate, b as LegacyNativePicker, bt as plainDateSetFirstOfMonth, c as observeResize, ct as plainDateFormat, d as isSafeUrl, dt as plainDateFromInstant, et as formatSharedDate, f as sanitizeUrl, ft as plainDateGetWeekNumber, g as scrollsPage, gt as plainDateIsInRange, h as scrollportTop, ht as plainDateIsEqual, i as createISOTimeString, it as plainDateAddMonths, j as getInputARIA, jt as normalizeDayOfWeek, k as InputARIA, kt as ISODateString, l as unobserveResize, lt as plainDateFromDate, m as scrollEventTarget, mt as plainDateIsBefore, n as clampTime, nt as getTimeZoneParts, o as formatDisplayTime24h, ot as plainDateDayOfWeek, p as parseStyleKey, pt as plainDateIsAfter, q as DATE_FORMAT_SHORT, r as compareTime, rt as plainDateAddDays, s as parseTimeInput, st as plainDateDiffDays, t as adjustTime, tt as getDaysInMonth, u as isSafeDestination, ut as plainDateFromISO, v as InputPresentation, vt as plainDateMin, w as effectivePickerPresentation, wt as plainDateToInstant, x as PickerPresentation, xt as plainDateSetStartOfWeek, y as InputPresentationSurface, yt as plainDateSetEndOfWeekExclusive, z as parseDateInput } from "../index-DwUUuRyC.js";
|
|
2
2
|
import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-rcDbGt71.js";
|
|
3
|
-
export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, type DayOfWeek, type DayOfWeekName, type GroupItemsOptions, type GroupableItem, type ISODateString, type InputARIA, type InputARIAInputGroup, type InputPresentation, type InputPresentationSurface, type ItemGroup, type LegacyNativePicker, type PickerPresentation, type PickerPresentationSurface, type PlainDate, SHARED_DATE_FORMAT_OPTIONS, type SharedDateFormat, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize };
|
|
3
|
+
export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, type DayOfWeek, type DayOfWeekName, type GroupItemsOptions, type GroupableItem, type ISODateString, type InputARIA, type InputARIAInputGroup, type InputPresentation, type InputPresentationSurface, type ItemGroup, type LegacyNativePicker, type PickerPresentation, type PickerPresentationSurface, type PlainDate, SHARED_DATE_FORMAT_OPTIONS, type SharedDateFormat, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize, type UseFingerScrollOptions as unstable_UseFingerScrollOptions, scrollEventTarget as unstable_scrollEventTarget, scrollportTop as unstable_scrollportTop, scrollsPage as unstable_scrollsPage, setScrollAnchoringOff as unstable_setScrollAnchoringOff, useFingerScroll as unstable_useFingerScroll };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
|
|
2
2
|
import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-wTnzjkkR.js";
|
|
3
|
+
import { i as scrollsPage, n as scrollEventTarget, r as scrollportTop, t as setScrollAnchoringOff } from "../scrollAnchoring-CNplZXRt.js";
|
|
3
4
|
import { n as observeResize, r as unobserveResize } from "../sharedResizeObserver-BekhnB3E.js";
|
|
4
5
|
import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-nVL5sIwT.js";
|
|
5
6
|
import { A as plainDateSetFirstOfMonth, C as plainDateIsAfter, D as plainDateMax, E as plainDateIsInRange, F as plainDateToday, I as plainDateWeekFieldName, M as plainDateToDate, N as plainDateToISO, O as plainDateMin, P as plainDateToInstant, S as plainDateGetWeekNumber, T as plainDateIsEqual, _ as plainDateDiffDays, a as DATE_FORMAT_SHORT_WITH_WEEKDAY, b as plainDateFromISO, c as DATE_FORMAT_WITH_WEEKDAY, d as getDaysInMonth, f as getTimeZoneParts, g as plainDateDayOfWeek, h as plainDateCreate, i as DATE_FORMAT_SHORT, j as plainDateSetStartOfWeek, k as plainDateSetEndOfWeekExclusive, l as SHARED_DATE_FORMAT_OPTIONS, m as plainDateAddMonths, n as DATE_FORMAT_MONTH_ONLY, o as DATE_FORMAT_SHORT_WITH_YEAR, p as plainDateAddDays, r as DATE_FORMAT_MONTH_YEAR, s as DATE_FORMAT_WEEKDAY_ONLY, t as DATE_FORMAT_LONG, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, x as plainDateFromInstant, y as plainDateFromDate } from "../plainDate-CaTDErKr.js";
|
|
6
7
|
import { a as pickerPresentationFromNativePicker, c as resolvePickerPresentation, i as effectivePickerPresentation, l as isLocaleDayFirst, o as presentationFromNativePicker, r as effectiveInputPresentation, s as resolveInputPresentation, t as DEFAULT_INPUT_PRESENTATION, u as parseDateInput } from "../inputPresentation-DES0JwkL.js";
|
|
7
|
-
import { a as groupItems, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers, t as parseStyleKey } from "../utils-
|
|
8
|
-
export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize };
|
|
8
|
+
import { a as groupItems, c as useFingerScroll, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers, t as parseStyleKey } from "../utils-DkwunocO.js";
|
|
9
|
+
export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize, scrollEventTarget as unstable_scrollEventTarget, scrollportTop as unstable_scrollportTop, scrollsPage as unstable_scrollsPage, setScrollAnchoringOff as unstable_setScrollAnchoringOff, useFingerScroll as unstable_useFingerScroll };
|