@astryx-vue/core 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-igjA8kZr.js → AlertDialog-BOyx3Owt.js} +6 -6
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-DUHcLJWD.js → AppShell-CHN80IBy.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-KmdgVaAb.js → Avatar-B-dg3imS.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-KBzD0jeF.js → AvatarGroup-CKHxYNVh.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Bf_nMW3-.js → Banner-qEMqg2D8.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-B57XUJV3.js → BottomSheet-CFrcT1Lr.js} +12 -6
- package/dist/{BottomSheet-BMqjymuf.js → BottomSheet-qD8zeVYQ.js} +3 -3
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-aTPAdLdg.js → Breadcrumbs-61TGNa4M.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-sUkQ0Ufo.js → Button-47s3ZBYa.js} +6 -6
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CWra-KDj.js → ButtonGroup-BFl-0uOp.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DwFAzDky.js → Calendar-D029GXOJ.js} +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-DmXceU9h.js → Carousel-CYjVpChx.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CeibAkxn.js → Chat-BfekV9OQ.js} +40 -7
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-PvzPV1N1.js → CheckboxInput-Cr0qhZpZ.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DKtNzb0t.js → CheckboxList-DOAdqkXD.js} +6 -6
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CvxSKkXh.js → ClickableCard-5k35MGot.js} +2 -2
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CTPuBH_r.js → CodeBlock-CuNiGAhQ.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-C_tl5-L0.js → Collapsible-C09C59LH.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DIoT_vZh.js → CommandPalette-DU4VBuWx.js} +3 -3
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Dmbep7M7.js → ComplexSelector-CdeoaX2o.js} +3 -3
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DYnyk5rs.js → ContextMenu-Cw34CTey.js} +6 -6
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DgPIsWPu.js → DateInput-vxaVpM2X.js} +562 -123
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-oOfhUt1Q.js → DateRangeInput-X5VDZkfk.js} +14 -11
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DZfghF2h.js → DateTimeInput-B8HeL3dk.js} +19 -11
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Dkwt3mVt.js → Dialog-CprMsTku.js} +48 -22
- package/dist/{Dialog-qIL4DUot.js → Dialog-DCsuevxA.js} +1 -1
- package/dist/{DialogHeader-w4TCzYEj.js → DialogHeader-DyMQBW1_.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DBHSNUAa.js → Drawer-BkFF7krL.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-DHvAlqSj.js → DropdownMenu-DEEcKIHY.js} +10 -10
- package/dist/{DropdownMenu-Cncx4FbU.js → DropdownMenu-Dt88fMAT.js} +5 -5
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-uWyPaIR1.js → EmptyState-BS8ESteS.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CqDOsI3P.js → Field-Dxacpe9d.js} +2 -2
- package/dist/{FieldInfoTip-CUh2koNc.js → FieldInfoTip-DS4OAl2Q.js} +1 -1
- package/dist/{FieldLabel-BMHNRAG3.js → FieldLabel-DjzTYhCM.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-C6dK2pvX.js → FileInput-Dak2gIXU.js} +3 -3
- package/dist/FormLayout/index.d.ts +2 -2
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-B9dUB6Ps.js → FormLayout-CGJVeNsL.js} +5 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-C0axugQa.js → Heading-BYB7QXkT.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-C6Gxekg0.js → HoverCard-CtDr234t.js} +28 -64
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Bv2eIsJy.js → IconButton-DvgueAEp.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BKsbmGA6.js → InfoTip-DshbO5eW.js} +2 -2
- package/dist/{InputClearButton-CSS2Tjat.js → InputClearButton-DEb-bGsY.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DTGh1ylC.js → InputGroup-DLu11Lsd.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BYU2MRtX.js → InternationalizationProvider-CqCxB9ku.js} +1 -1
- package/dist/{Item-Cfv4ALls.js → Item-CoNXshDg.js} +2 -2
- package/dist/{LayerContentBoundary-DwTkbifx.js → LayerContentBoundary-Cx5xXZzg.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BZ-zBvly.js → Lightbox-f_0_73Zi.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Ddu0KjPZ.js → Link-CFxZ9W2X.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-2evjQQ7n.js → ListItem-D-pqxQpq.js} +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-D7bQGV9u.js → Markdown-DTqTIKbq.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dfshmrdy.js → MobileNavToggle-D_J_uTW-.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Bie4B7Jr.js → MoreMenu-BY1t1_QA.js} +6 -6
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BXIpOmSU.js → MultiSelector-BmdODQAC.js} +11 -10
- package/dist/{NavDisclosure-1otbO71l.js → NavDisclosure-mXBWmRDC.js} +1 -1
- package/dist/{NavHeadingSurface-BkMR3V5m.js → NavHeadingSurface-foJo5bLT.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BZLN0U5a.js → NavItem-hmUfwhiK.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-dyGZS1yM.js → NavMenu-CG9Bthba.js} +2 -2
- package/dist/{NavMenuItem-CirgE73a.js → NavMenuItem-BiFZUPxC.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-0KbcEF3_.js → NumberInput-BDNiEgzf.js} +5 -5
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BXu7HCHp.js → Outline--OQ2pCFL.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BdcaX1bz.js → OverflowList-CR96Nr5t.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-eeM9SNsG.js → Pagination-CA3yJwyk.js} +1 -1
- package/dist/{PickerWheel-CSwUYfes.js → PickerWheel-DNX3yrUd.js} +21 -8
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BOQo9UPf.js → Popover-Mj71LwjH.js} +8 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CaqFxaFb.js → PowerSearch-CajkGExd.js} +19 -19
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-BS3VSoE9.js → ProgressBar-sGSCEtHC.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DKaSstyl.js → RadioGroup-D58Fy-bM.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DtKm9spP.js → RadioList-u9PoRBXY.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-BgIytCxo.js → ScrollableArea-C2GBp55Z.js} +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-Bs74LlvS.js → SegmentedControl-COVOdCq2.js} +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-BFCwgtWf.js → SelectableCard-CTRsWXfA.js} +2 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DP012yul.js → Selector-jA_SESFs.js} +8 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-L6CWk5fV.js → SideNav-BgmpUELq.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DZS8mGZA.js → Slider-Depy9L-Y.js} +4 -4
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DaQGq8YN.js → StatusDot-D0Wy2ggp.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DAQRW4n8.js → Stepper-CYZrGpQ9.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-BN_NnBuc.js → Switch-dD4OQLkI.js} +3 -3
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bmj4tGT-.js → TabList-CoiyQidC.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-YDS_Hj1L.js → Table-Cb0ec1PS.js} +13 -13
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-IijvZmW-.js → Text-BWSmB93V.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BDR179q1.js → TextArea-CbY2w_ic.js} +7 -7
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-kUzxl99M.js → TextInput-C8f89GV8.js} +7 -7
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Disi5yDb.js → Thumbnail-DENhXd9-.js} +3 -3
- package/dist/{TimeField-C0la1AtP.js → TimeField-DcZ9wYGn.js} +8 -8
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C_jTijHh.js → TimeInput-DyiU7_IA.js} +3 -3
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DifGERP8.js → Timer-CgBSMr9E.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BjXZGAvO.js → Timestamp-B-VgG6l8.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DBo0WRAd.js → Toast-CRSZV9K-.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B5HNykOh.js → ToggleButton-Bm5IQUy5.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CtG_XE6z.js → Token-uhs8Q9Rr.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CY0ymjYr.js → Tokenizer-DmjNQLDl.js} +8 -8
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-4APVAlN9.js → Tooltip-BwrJVZ8X.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-XSZWAR-7.js → TopNav-C3gyHUVv.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CRMLcaRx.js → TreeList-Dc3A72iY.js} +2 -2
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-ByeXwX8E.js → Typeahead-LdmEDCOU.js} +7 -7
- package/dist/busyAnnouncement-D3eGqdsf.js +88 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +15 -15
- package/dist/{composables-WUkSRUCj.js → composables-Bi0Rt0Uj.js} +53 -5
- package/dist/{context-Cfml4jaK.js → context-DsNhYm5O.js} +6 -1
- package/dist/{date-input-CiEBtStM.js → date-input-rUD8YAow.js} +4 -0
- package/dist/{utils-BOmFijPc.js → dateParser-DS_a8Ej8.js} +1 -329
- package/dist/{fieldParts-CDOlBdy6.js → fieldParts-CbWvZLhH.js} +1 -1
- package/dist/{focus-l8jVTcqd.js → focus-x7mxEqjR.js} +1 -1
- package/dist/{format-CiN0Dt_H.js → format-CMHyAMn3.js} +28 -1
- package/dist/{index-BhxqUt3y.d.ts → index--kbwaSXW.d.ts} +1 -1
- package/dist/{index-DPklTi3o.d.ts → index-B-3EGjfQ.d.ts} +2 -2
- package/dist/{index-KcCNhdAw.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-DMcf0QeR.d.ts → index-B449gOMC.d.ts} +1 -1
- package/dist/{index-D7YRtteD.d.ts → index-BHYhTZzp.d.ts} +1 -1
- package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-DKuoSloc.d.ts → index-BPymttXR.d.ts} +47 -15
- package/dist/{index-CfHBwR3F.d.ts → index-BbXwtkv6.d.ts} +4 -4
- package/dist/{index-D1RIIzDd.d.ts → index-C5VJoanX.d.ts} +3 -3
- package/dist/{index-ul1hNxih.d.ts → index-CLHJybQY.d.ts} +1 -1
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-DDrL_-hJ.d.ts → index-CbA8rR_b.d.ts} +3 -3
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-Buxb8Onp.d.ts → index-Cr9uPUc5.d.ts} +98 -52
- package/dist/{index-BcJzA5j_.d.ts → index-DG7FmGCE.d.ts} +2 -2
- package/dist/{index-C90l2rH1.d.ts → index-DcisK4t8.d.ts} +11 -1
- package/dist/{index-BpprL2SN.d.ts → index-DfdtDWSP.d.ts} +5 -1
- package/dist/{index-x0rjeitC.d.ts → index-Dg0JsBpI.d.ts} +2 -2
- package/dist/{index-PffxihMx.d.ts → index-Djf0M7PH.d.ts} +1 -1
- package/dist/{index--tm6L1ot.d.ts → index-DpYJBFJj.d.ts} +1 -1
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
- package/dist/{index-DYabo8TI.d.ts → index-eCp-ElSp.d.ts} +1 -1
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-DPH5yoAr.d.ts → index-s0Ezq3U-.d.ts} +2 -2
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/index.d.ts +32 -32
- package/dist/index.js +113 -111
- package/dist/interactionModality-BPvyShJT.js +125 -0
- package/dist/layerDepth-I6d28O4d.js +297 -0
- package/dist/{layerFocusReturn-DMJaFgcY.js → layerFocusReturn-BrS5RTx6.js} +2 -2
- package/dist/{loadCatalog-Kp7aQZpL.d.ts → loadCatalog-Cvf-xgDD.d.ts} +34 -27
- package/dist/{loadCatalog-BtQRPyzj.js → loadCatalog-DYuZZRtf.js} +1 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-DET_YkFW.js → locale-B-DrJCMs.js} +1 -1
- package/dist/{modalOutlet-CUOcrhIu.js → modalOutlet-Drr9a16b.js} +25 -1
- package/dist/{pressFeedback-Bwwpex9q.js → pressFeedback-Co3ugCsm.js} +3 -190
- package/dist/pressGesture-B3z3W3Za.js +78 -0
- package/dist/{scrollKeyboardDelegation-D7cumnOl.js → scrollKeyboardDelegation-BSpUCTlO.js} +1 -1
- package/dist/{selectorEscape-BppRdqpc.js → selectorEscape-FjiU_5WC.js} +4 -17
- package/dist/{stillPointerGate-Bh02Mfnw.js → stillPointerGate-DlAU_J_M.js} +1 -1
- package/dist/timeParser-D9tCF_b3.js +203 -0
- package/dist/tooltipTriggerRules-9zkDe8_b.js +10 -0
- package/dist/{useActionGroupTracking-BJMRaXil.js → useActionGroupTracking-CDclbV3Y.js} +2 -2
- package/dist/useClickableContainer-Dtjg-nkm.js +141 -0
- package/dist/{useDismiss-BWd-sQ18.js → useDismiss-21Gk7uWk.js} +58 -5
- package/dist/{useFocusTrap-FJt5QhEd.js → useFocusTrap-BFQ7Goue.js} +32 -17
- package/dist/{useHoverLayerDismiss-uhfzmZyf.js → useHoverLayerDismiss-Chfty2wT.js} +1 -1
- package/dist/{useInputContainer-BpLtCA-U.js → useInputContainer-CLhsKYZ6.js} +1 -1
- package/dist/{useInputStatusIcon-C3Q-q_wI.js → useInputStatusIcon-Yd0hvw5K.js} +1 -1
- package/dist/{useLayer-BGv_wRSG.js → useLayer-vK4-yRk_.js} +13 -5
- package/dist/{useMenuDrillIn-uQtOSny6.js → useMenuDrillIn-BW9dNBje.js} +1 -1
- package/dist/{useMenuPress-BLPwY_m1.js → useMenuPress-9vsHzbRX.js} +1 -29
- package/dist/{usePressFeedback-Bcjsw9vv.js → usePressFeedback-Cxu4-mCe.js} +1 -1
- package/dist/{useResizable-DTDhsLip.js → useResizable-DYlc06-H.js} +1 -1
- package/dist/{useRestoreFocus-D2-pGoOk.js → useRestoreFocus-BhcXCJwM.js} +2 -2
- package/dist/{useScrollableArea-BE8b3qm7.js → useScrollableArea-Bwn75HDg.js} +1 -1
- package/dist/useTimeValue-_XW9g2V1.js +52 -0
- package/dist/{useTooltip-md1tr6ef.js → useTooltip-DIg3ZE9P.js} +25 -27
- package/dist/{useTouchHitArea-1WtV3u6F.js → useTouchHitArea-B3jx01C3.js} +1 -1
- package/dist/useTouchTriggerInternal-CrLW-7kT.js +257 -0
- package/dist/{useTruncationTooltip-BGsFITq5.js → useTruncationTooltip-D9_lzxpF.js} +4 -4
- package/dist/{useTypeahead-BrUwR-kv.js → useTypeahead-CiLt-yEg.js} +1 -1
- package/dist/{useTypeaheadAnnouncement-MbuZumTd.js → useTypeaheadAnnouncement-C59m2nSx.js} +1 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils-BW62BpDR.js +135 -0
- package/package.json +1 -1
- package/styles/date-input.css +45 -3
- package/styles/date-range-input.css +7 -0
- package/styles/time-input.css +7 -0
- package/dist/interactionModality-ACpTMhak.js +0 -44
- package/dist/layerDepth-BF74Cctw.js +0 -205
- package/dist/layerSurfacePress-C3PjPpJP.js +0 -29
- package/dist/tooltipTriggerRules-BY3LAtUl.js +0 -53
- package/dist/useTimeValue-BJd0xBhG.js +0 -95
- package/dist/useTouchTrigger-GGd85Obb.js +0 -146
- package/dist/{index-BqhgeAT4.d.ts → index-CHx33xGa.d.ts} +2 -2
|
@@ -1,7 +1,54 @@
|
|
|
1
1
|
import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
2
2
|
import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
|
|
3
|
-
import {
|
|
3
|
+
import { n as useLayerDepth, o as pushLayer } from "./layerDepth-I6d28O4d.js";
|
|
4
4
|
import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
|
+
//#region src/layer/anchorClear.ts
|
|
6
|
+
function overlapsAnchor(anchor, top, left, layer) {
|
|
7
|
+
return left < anchor.right && left + layer.width > anchor.left && top < anchor.bottom && top + layer.height > anchor.top;
|
|
8
|
+
}
|
|
9
|
+
function clamp$1(value, min, max) {
|
|
10
|
+
return Math.max(min, Math.min(value, max));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 浮层比触发器四周的空地都高时,普通落点会被夹进视口,盖在触发器上。
|
|
14
|
+
* 要「不盖住触发器」的浮层(Tooltip)改按这个顺序找落点:
|
|
15
|
+
* 1. 触发器的右侧、再是左侧,宽度不变,纵向夹进视口;
|
|
16
|
+
* 2. 触发器上下两侧里空地更大的一侧,高度限制在那块空地里,超出的内容在浮层里滚动。
|
|
17
|
+
*
|
|
18
|
+
* `placed` 没盖住触发器时原样返回,装得下的浮层不受影响。
|
|
19
|
+
*/
|
|
20
|
+
function keepClearOfAnchor(placed, anchor, layer, viewport, gap, gutter) {
|
|
21
|
+
if (!overlapsAnchor(anchor, placed.top, placed.left, layer)) return placed;
|
|
22
|
+
const minTop = gutter.blockStart;
|
|
23
|
+
const maxTop = Math.max(minTop, viewport.height - layer.height - gutter.blockEnd);
|
|
24
|
+
const sideTop = clamp$1(anchor.top + (anchor.height - layer.height) / 2, minTop, maxTop);
|
|
25
|
+
const rightLeft = anchor.right + gap;
|
|
26
|
+
const leftLeft = anchor.left - gap - layer.width;
|
|
27
|
+
const canBeSide = layer.height <= viewport.height - gutter.blockStart - gutter.blockEnd;
|
|
28
|
+
if (canBeSide && rightLeft + layer.width <= viewport.width - gutter.inlineEnd) return {
|
|
29
|
+
top: sideTop,
|
|
30
|
+
left: rightLeft,
|
|
31
|
+
placement: "end"
|
|
32
|
+
};
|
|
33
|
+
if (canBeSide && leftLeft >= gutter.inlineStart) return {
|
|
34
|
+
top: sideTop,
|
|
35
|
+
left: leftLeft,
|
|
36
|
+
placement: "start"
|
|
37
|
+
};
|
|
38
|
+
const roomAbove = anchor.top - gap - gutter.blockStart;
|
|
39
|
+
const roomBelow = viewport.height - anchor.bottom - gap - gutter.blockEnd;
|
|
40
|
+
const above = roomAbove >= roomBelow;
|
|
41
|
+
const room = Math.max(0, above ? roomAbove : roomBelow);
|
|
42
|
+
const height = Math.min(layer.height, room);
|
|
43
|
+
const left = clamp$1(placed.left, gutter.inlineStart, Math.max(gutter.inlineStart, viewport.width - layer.width - gutter.inlineEnd));
|
|
44
|
+
return {
|
|
45
|
+
top: above ? anchor.top - gap - height : anchor.bottom + gap,
|
|
46
|
+
left,
|
|
47
|
+
placement: above ? "above" : "below",
|
|
48
|
+
maxHeight: room < layer.height ? room : void 0
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
5
52
|
//#region src/layer/position.ts
|
|
6
53
|
function alignOnAxis(start, size, own, alignment) {
|
|
7
54
|
if (alignment === "start") return start;
|
|
@@ -93,10 +140,14 @@ function usePositionedLayer(options) {
|
|
|
93
140
|
const anchorEl = anchor.value;
|
|
94
141
|
const layerEl = layer.value;
|
|
95
142
|
if (!anchorEl || !layerEl || !isOpen.value) return;
|
|
96
|
-
|
|
143
|
+
const anchorRect = anchorEl.getBoundingClientRect();
|
|
144
|
+
const viewport = getLayerViewport();
|
|
145
|
+
const box = {
|
|
97
146
|
width: layerEl.offsetWidth,
|
|
98
|
-
height: layerEl.offsetHeight
|
|
99
|
-
}
|
|
147
|
+
height: options.keepAnchorClear === true ? Math.max(layerEl.offsetHeight, layerEl.scrollHeight) : layerEl.offsetHeight
|
|
148
|
+
};
|
|
149
|
+
const placed = computeLayerPosition(anchorRect, box, viewport, placement.value, alignment.value, gap, gutter.value);
|
|
150
|
+
position.value = options.keepAnchorClear === true ? keepClearOfAnchor(placed, anchorRect, box, viewport, gap, gutter.value) : placed;
|
|
100
151
|
}
|
|
101
152
|
let pollId;
|
|
102
153
|
function geometryKey() {
|
|
@@ -178,6 +229,7 @@ function useDismiss(options) {
|
|
|
178
229
|
getContainer: () => container.value,
|
|
179
230
|
getTrigger: () => trigger?.value ?? null,
|
|
180
231
|
dismissOnPointerOutside: toValue(options.dismissOnPointerOutside) ?? true,
|
|
232
|
+
dismissOnOutsidePan: toValue(options.dismissOnOutsidePan) ?? true,
|
|
181
233
|
dismissOnEscape: escapeMode(),
|
|
182
234
|
onEscape: options.onEscape,
|
|
183
235
|
onDismiss
|
|
@@ -199,7 +251,8 @@ function useDismiss(options) {
|
|
|
199
251
|
watch([
|
|
200
252
|
isEnabled,
|
|
201
253
|
() => escapeMode(),
|
|
202
|
-
() => toValue(options.dismissOnPointerOutside) ?? true
|
|
254
|
+
() => toValue(options.dismissOnPointerOutside) ?? true,
|
|
255
|
+
() => toValue(options.dismissOnOutsidePan) ?? true
|
|
203
256
|
], ([enabled]) => sync(enabled), { immediate: true });
|
|
204
257
|
onScopeDispose(teardown);
|
|
205
258
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as getFocusables } from "./focus-
|
|
1
|
+
import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
|
|
2
|
+
import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
3
|
+
import { r as getFocusables } from "./focus-x7mxEqjR.js";
|
|
4
4
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
5
|
//#region src/composables/internal/focusReturn.ts
|
|
6
6
|
function isTextEntry(element) {
|
|
@@ -45,13 +45,22 @@ function useFocusTrap(options = {}) {
|
|
|
45
45
|
let previouslyFocused = null;
|
|
46
46
|
/** 焦点是否进过陷阱。没进过就不还焦点,免得抢走浮层触发器的焦点。 */
|
|
47
47
|
let hasFocusEntered = false;
|
|
48
|
+
/**
|
|
49
|
+
* 陷阱所在的 document:容器的。经 Teleport 渲染进同源 iframe 或画中画窗口的陷阱,
|
|
50
|
+
* 按键和焦点变化只到那个窗口的 document,全局 `document` 收不到。
|
|
51
|
+
*/
|
|
52
|
+
function trapDocument() {
|
|
53
|
+
return containerRef.value?.ownerDocument ?? document;
|
|
54
|
+
}
|
|
55
|
+
/** 正在监听的 document,摘监听时用同一个。 */
|
|
56
|
+
let listeningDoc = null;
|
|
48
57
|
function isActive() {
|
|
49
58
|
return toValue(options.isActive) ?? toValue(options.isEnabled) ?? false;
|
|
50
59
|
}
|
|
51
60
|
function isFocusInside() {
|
|
52
61
|
const el = containerRef.value;
|
|
53
62
|
if (el == null || typeof document === "undefined") return false;
|
|
54
|
-
const active =
|
|
63
|
+
const active = trapDocument().activeElement;
|
|
55
64
|
return active != null && el.contains(active);
|
|
56
65
|
}
|
|
57
66
|
function isTargetInside(event) {
|
|
@@ -75,7 +84,7 @@ function useFocusTrap(options = {}) {
|
|
|
75
84
|
}
|
|
76
85
|
const first = focusables[0];
|
|
77
86
|
const last = focusables[focusables.length - 1];
|
|
78
|
-
const active =
|
|
87
|
+
const active = trapDocument().activeElement;
|
|
79
88
|
if (active === el) {
|
|
80
89
|
event.preventDefault();
|
|
81
90
|
if (event.shiftKey) last.focus();
|
|
@@ -109,8 +118,9 @@ function useFocusTrap(options = {}) {
|
|
|
109
118
|
function activate() {
|
|
110
119
|
trackInteractionModality();
|
|
111
120
|
if (typeof document !== "undefined") {
|
|
112
|
-
const
|
|
113
|
-
|
|
121
|
+
const doc = trapDocument();
|
|
122
|
+
const active = doc.activeElement;
|
|
123
|
+
previouslyFocused = active != null && active !== doc.body && typeof active.focus === "function" ? active : null;
|
|
114
124
|
}
|
|
115
125
|
hasFocusEntered = false;
|
|
116
126
|
setup();
|
|
@@ -125,8 +135,9 @@ function useFocusTrap(options = {}) {
|
|
|
125
135
|
previouslyFocused = null;
|
|
126
136
|
hasFocusEntered = false;
|
|
127
137
|
if (target == null || !hasEntered || !target.isConnected) return;
|
|
128
|
-
const
|
|
129
|
-
|
|
138
|
+
const doc = typeof document === "undefined" ? null : trapDocument();
|
|
139
|
+
const active = doc?.activeElement ?? null;
|
|
140
|
+
if (active != null && active !== doc?.body && !isFocusInside()) return;
|
|
130
141
|
focusForLastInput(target);
|
|
131
142
|
}
|
|
132
143
|
function deactivate() {
|
|
@@ -134,21 +145,25 @@ function useFocusTrap(options = {}) {
|
|
|
134
145
|
restoreFocus();
|
|
135
146
|
}
|
|
136
147
|
function setup() {
|
|
137
|
-
if (typeof document
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
148
|
+
if (typeof document === "undefined") return;
|
|
149
|
+
teardown();
|
|
150
|
+
listeningDoc = trapDocument();
|
|
151
|
+
listeningDoc.addEventListener("keydown", onKeyDown, true);
|
|
152
|
+
listeningDoc.addEventListener("focusin", onFocusIn, true);
|
|
141
153
|
}
|
|
142
154
|
function teardown() {
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
155
|
+
if (listeningDoc == null) return;
|
|
156
|
+
listeningDoc.removeEventListener("keydown", onKeyDown, true);
|
|
157
|
+
listeningDoc.removeEventListener("focusin", onFocusIn, true);
|
|
158
|
+
listeningDoc = null;
|
|
147
159
|
}
|
|
148
160
|
watch(isActive, (enabled) => {
|
|
149
161
|
if (enabled) activate();
|
|
150
162
|
else deactivate();
|
|
151
163
|
}, { immediate: true });
|
|
164
|
+
watch(containerRef, () => {
|
|
165
|
+
if (isActive() && listeningDoc !== trapDocument()) setup();
|
|
166
|
+
});
|
|
152
167
|
onScopeDispose(deactivate);
|
|
153
168
|
return {
|
|
154
169
|
containerRef,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-I6d28O4d.js";
|
|
2
2
|
import { onScopeDispose } from "vue";
|
|
3
3
|
//#region src/layer/useHoverLayerDismiss.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useClickableContainer } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
2
|
import { toValue } from "vue";
|
|
3
3
|
//#region src/composables/useInputContainer.ts
|
|
4
4
|
/** 点了以后接焦点的输入框类型:这些类型自己不会因为点击容器而聚焦。 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main } from "./FieldIcon-DMtfe1Ne.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-DS4OAl2Q.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-21Gk7uWk.js";
|
|
2
2
|
import { computed, shallowRef, toValue, useId } from "vue";
|
|
3
3
|
//#region src/composables/useLayer.ts
|
|
4
4
|
/**
|
|
@@ -35,7 +35,8 @@ function useLayer(options) {
|
|
|
35
35
|
isOpen,
|
|
36
36
|
placement,
|
|
37
37
|
alignment,
|
|
38
|
-
gap: options.gap ?? 4
|
|
38
|
+
gap: options.gap ?? 4,
|
|
39
|
+
keepAnchorClear: options.keepAnchorClear
|
|
39
40
|
});
|
|
40
41
|
const resolvedPlacement = computed(() => positioned?.position.value.placement ?? placement.value);
|
|
41
42
|
const contentStyle = computed(() => {
|
|
@@ -44,14 +45,21 @@ function useLayer(options) {
|
|
|
44
45
|
top: `${toValue(options.y) ?? 0}px`,
|
|
45
46
|
left: `${toValue(options.x) ?? 0}px`
|
|
46
47
|
};
|
|
47
|
-
const { top, left } = positioned?.position.value ?? {
|
|
48
|
+
const { top, left, maxHeight } = positioned?.position.value ?? {
|
|
48
49
|
top: 0,
|
|
49
|
-
left: 0
|
|
50
|
+
left: 0,
|
|
51
|
+
maxHeight: void 0
|
|
50
52
|
};
|
|
51
|
-
|
|
53
|
+
const style = {
|
|
52
54
|
top: `${top}px`,
|
|
53
55
|
left: `${left}px`
|
|
54
56
|
};
|
|
57
|
+
if (maxHeight != null) {
|
|
58
|
+
style.maxHeight = `${maxHeight}px`;
|
|
59
|
+
style.overflowY = "auto";
|
|
60
|
+
style.overscrollBehavior = "contain";
|
|
61
|
+
}
|
|
62
|
+
return style;
|
|
55
63
|
});
|
|
56
64
|
const isMounted = computed(() => !toValue(options.lazyMount) || hasOpened.value);
|
|
57
65
|
let isHiding = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { t as _sfc_main$4 } from "./Icon-BCHo7W0x.js";
|
|
3
3
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
4
|
-
import { t as _sfc_main$5 } from "./Item-
|
|
4
|
+
import { t as _sfc_main$5 } from "./Item-CoNXshDg.js";
|
|
5
5
|
import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
6
6
|
import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-CY-_ImKv.js";
|
|
2
|
+
import { c as currentGesture } from "./layerDepth-I6d28O4d.js";
|
|
2
3
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
3
4
|
//#region src/composables/useLongPress.ts
|
|
4
5
|
const DEFAULT_DELAY_MS = 500;
|
|
@@ -104,35 +105,6 @@ function useLongPress(options) {
|
|
|
104
105
|
start
|
|
105
106
|
};
|
|
106
107
|
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/composables/internal/gestureCounter.ts
|
|
109
|
-
/**
|
|
110
|
-
* 手势计数器:每一次新的按下或按键,计数加一。
|
|
111
|
-
*
|
|
112
|
-
* 同一次按压里,浏览器的点外关闭和触发器自己的 click 谁先到是没准的。
|
|
113
|
-
* 比时间窗口只能猜,数手势不用猜:「属于关闭那次手势的 click」就是
|
|
114
|
-
* 「计数还停在关闭那一刻的 click」,不管主线程中间卡了多久。
|
|
115
|
-
*
|
|
116
|
-
* 监听挂在 document 的捕获阶段,在任何处理函数读它之前先加一。第一次读的时候才装,服务端不装。
|
|
117
|
-
*/
|
|
118
|
-
let gesture = 0;
|
|
119
|
-
let isListening = false;
|
|
120
|
-
function advance() {
|
|
121
|
-
gesture += 1;
|
|
122
|
-
}
|
|
123
|
-
function markClicked() {}
|
|
124
|
-
function listen() {
|
|
125
|
-
if (isListening || typeof document === "undefined") return;
|
|
126
|
-
isListening = true;
|
|
127
|
-
document.addEventListener("pointerdown", advance, true);
|
|
128
|
-
document.addEventListener("keydown", advance, true);
|
|
129
|
-
document.addEventListener("click", markClicked, true);
|
|
130
|
-
}
|
|
131
|
-
/** 当前这次手势的编号。两次读到同一个数,说明它们在同一次按压(或同一次按键)里。 */
|
|
132
|
-
function currentGesture() {
|
|
133
|
-
listen();
|
|
134
|
-
return gesture;
|
|
135
|
-
}
|
|
136
108
|
const AUTOSCROLL_STEP_PX = 6;
|
|
137
109
|
const AUTOSCROLL_INTERVAL_MS = 16;
|
|
138
110
|
/** `onTick` 在每次真的滚动之后调用:行在静止的指针下面移动了,要重新看指针下是哪一行。 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-
|
|
1
|
+
import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-Co3ugCsm.js";
|
|
2
2
|
import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
|
|
3
3
|
import "../styles/pressable.css";
|
|
4
4
|
//#region src/composables/usePressFeedback.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
|
|
2
2
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
3
3
|
import { r as registerResizableChannel } from "./resizableChannel-3vivrEcT.js";
|
|
4
4
|
import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as focusForLastInput } from "./useFocusTrap-
|
|
1
|
+
import { i as trackInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
2
|
+
import { n as focusForLastInput } from "./useFocusTrap-BFQ7Goue.js";
|
|
3
3
|
import { onScopeDispose, watch } from "vue";
|
|
4
4
|
//#region src/composables/useRestoreFocus.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as INACTIVE_AXIS_STATE, c as isMeasurable, d as measureScrollAxis, i as DEFAULT_AXIS_MAPPING, l as mappingsEqual, n as registerScrollOwner, o as axisStatesEqual, r as unregisterScrollOwner, s as getLogicalAxisMapping, t as attachScrollKeyboardDelegation, u as measureOverflow } from "./scrollKeyboardDelegation-
|
|
1
|
+
import { a as INACTIVE_AXIS_STATE, c as isMeasurable, d as measureScrollAxis, i as DEFAULT_AXIS_MAPPING, l as mappingsEqual, n as registerScrollOwner, o as axisStatesEqual, r as unregisterScrollOwner, s as getLogicalAxisMapping, t as attachScrollKeyboardDelegation, u as measureOverflow } from "./scrollKeyboardDelegation-BSpUCTlO.js";
|
|
2
2
|
import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
|
|
3
3
|
//#region src/composables/internal/scrollInvalidation.ts
|
|
4
4
|
/**
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { a as formatDisplayTime12h, c as isTimeInRange$1, l as parseISOTime$1, o as formatDisplayTime24h, s as formatISOTime$1, t as adjustTime, u as parseTimeInput } from "./timeParser-D9tCF_b3.js";
|
|
2
|
+
//#region src/composables/useTimeValue.ts
|
|
3
|
+
/** 字段接受的 ISO 时间写法:两位时、两位分,可带两位秒。 */
|
|
4
|
+
const STRICT_ISO_TIME = /^\d{2}:\d{2}(?::\d{2})?$/;
|
|
5
|
+
/** 手打文本的写法:带上下午的 12 小时制、四位或六位紧凑写法,或严格的 ISO 时间。 */
|
|
6
|
+
const TYPED_TIME = /^(?:\d{1,2}(?::\d{2}){0,2}\s*[ap]\.?m\.?|\d{4}(?:\d{2})?|\d{2}:\d{2}(?::\d{2})?)$/i;
|
|
7
|
+
/** 时间的解析、格式化、比较和步进都在 `utils/timeParser`;这里只做字段用的严格写法和 `hours` 形状。 */
|
|
8
|
+
function parseISOTime(value) {
|
|
9
|
+
const text = value.trim();
|
|
10
|
+
if (!STRICT_ISO_TIME.test(text)) return null;
|
|
11
|
+
const parts = parseISOTime$1(text);
|
|
12
|
+
return parts && {
|
|
13
|
+
hours: parts.hour,
|
|
14
|
+
minutes: parts.minute,
|
|
15
|
+
seconds: parts.second
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function formatISOTime(time, hasSeconds) {
|
|
19
|
+
return formatISOTime$1({
|
|
20
|
+
hour: time.hours,
|
|
21
|
+
minute: time.minutes,
|
|
22
|
+
second: time.seconds
|
|
23
|
+
}, hasSeconds);
|
|
24
|
+
}
|
|
25
|
+
function formatDisplayTime(value, hourFormat, hasSeconds) {
|
|
26
|
+
const time = parseISOTime(value) ? value.trim() : null;
|
|
27
|
+
if (time == null) return value;
|
|
28
|
+
return hourFormat === "24h" ? formatDisplayTime24h(time, hasSeconds) : formatDisplayTime12h(time, hasSeconds);
|
|
29
|
+
}
|
|
30
|
+
function parseDisplayTime(text, hasSeconds) {
|
|
31
|
+
const trimmed = text.trim();
|
|
32
|
+
return TYPED_TIME.test(trimmed) ? parseTimeInput(trimmed, hasSeconds) : null;
|
|
33
|
+
}
|
|
34
|
+
function shiftTime(value, minuteDelta, hasSeconds) {
|
|
35
|
+
const base = parseISOTime(value) ? value.trim() : "00:00";
|
|
36
|
+
return adjustTime(base, minuteDelta, hasSeconds);
|
|
37
|
+
}
|
|
38
|
+
function isTimeInRange(value, min, max) {
|
|
39
|
+
return isTimeInRange$1(value, min, max);
|
|
40
|
+
}
|
|
41
|
+
function resolveTimeSurface(options) {
|
|
42
|
+
const presentation = options.presentation ?? (options.nativePicker === "always" ? "native" : options.nativePicker === "never" ? "text-input" : "adaptive-native");
|
|
43
|
+
const needsTypedField = options.hasSeconds || options.increment !== 1 || options.needsTypedField === true;
|
|
44
|
+
if (presentation === "text-input" || presentation === "popover") return "text";
|
|
45
|
+
if (presentation === "bottom-sheet") return "sheet";
|
|
46
|
+
if (presentation === "adaptive-bottom-sheet") return options.coarse ? "sheet" : "text";
|
|
47
|
+
if (needsTypedField) return "text";
|
|
48
|
+
if (presentation === "native") return "native";
|
|
49
|
+
return options.coarse ? "native" : "text";
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { parseISOTime as a, parseDisplayTime as i, formatISOTime as n, resolveTimeSurface as o, isTimeInRange as r, shiftTime as s, formatDisplayTime as t };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
-
import { t as useLayer } from "./useLayer-
|
|
4
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { t as useLayer } from "./useLayer-vK4-yRk_.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-Cx5xXZzg.js";
|
|
5
|
+
import { i as trackInteractionModality, o as isTextEntryControl, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
6
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
|
|
7
7
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
8
|
-
import { i as isFocusable } from "./focus-
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
8
|
+
import { i as isFocusable } from "./focus-x7mxEqjR.js";
|
|
9
|
+
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-CrLW-7kT.js";
|
|
10
|
+
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-Chfty2wT.js";
|
|
11
|
+
import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
11
12
|
import "../styles/tooltip.css";
|
|
12
13
|
//#region src/Tooltip/TooltipSurface.vue
|
|
13
14
|
const _hoisted_1 = ["data-placement"];
|
|
@@ -177,7 +178,6 @@ const HOVER_BRIDGE_DELAY = 100;
|
|
|
177
178
|
function useTooltip(options = {}) {
|
|
178
179
|
const triggerRef = shallowRef(null);
|
|
179
180
|
const isControlled = computed(() => toValue(options.isOpen) !== void 0);
|
|
180
|
-
const isTouchPointer = ref(false);
|
|
181
181
|
let bound = null;
|
|
182
182
|
const announce = useAnnounce();
|
|
183
183
|
const presentInterest = inject(tooltipPresentInterestKey, null);
|
|
@@ -187,6 +187,7 @@ function useTooltip(options = {}) {
|
|
|
187
187
|
placement: () => toValue(options.placement) ?? "above",
|
|
188
188
|
alignment: () => toValue(options.alignment) ?? "center",
|
|
189
189
|
gap: GAP,
|
|
190
|
+
keepAnchorClear: true,
|
|
190
191
|
onShow: () => options.onShow?.(),
|
|
191
192
|
onHide: () => options.onHide?.()
|
|
192
193
|
});
|
|
@@ -214,6 +215,17 @@ function useTooltip(options = {}) {
|
|
|
214
215
|
function isInsideTooltip(node) {
|
|
215
216
|
return node != null && (bound?.contains(node) === true || layer.contentRef.value?.contains(node) === true);
|
|
216
217
|
}
|
|
218
|
+
const touch = useTouchTriggerInternal({
|
|
219
|
+
touchTrigger: touchTriggerMode,
|
|
220
|
+
isEnabled,
|
|
221
|
+
isControlled,
|
|
222
|
+
isOpen,
|
|
223
|
+
layerId: layer.id,
|
|
224
|
+
triggerRef,
|
|
225
|
+
show: showNow,
|
|
226
|
+
hide: hideNow
|
|
227
|
+
}, { isTextEntryTapIgnored: true });
|
|
228
|
+
const isTouchPointer = touch.isTouchPointer;
|
|
217
229
|
function showNow() {
|
|
218
230
|
clearTimers();
|
|
219
231
|
if (!isEnabled() || isControlled.value) return;
|
|
@@ -239,9 +251,6 @@ function useTooltip(options = {}) {
|
|
|
239
251
|
clearTimeout(hideTimer);
|
|
240
252
|
hideTimer = void 0;
|
|
241
253
|
}
|
|
242
|
-
function onPointerEnter(event) {
|
|
243
|
-
isTouchPointer.value = event.pointerType === "touch";
|
|
244
|
-
}
|
|
245
254
|
function onMouseEnter() {
|
|
246
255
|
if (isTouchPointer.value) return;
|
|
247
256
|
scheduleShow();
|
|
@@ -252,13 +261,6 @@ function useTooltip(options = {}) {
|
|
|
252
261
|
if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
|
|
253
262
|
scheduleHide();
|
|
254
263
|
}
|
|
255
|
-
function onTouchTap(tapEvent) {
|
|
256
|
-
if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
|
|
257
|
-
const trigger = triggerRef.value;
|
|
258
|
-
if (trigger != null && (touchTriggerMode() === "auto" && isActionTrigger(trigger) || isTextEntryTap(trigger, tapEvent))) return;
|
|
259
|
-
if (isOpen.value) hideNow();
|
|
260
|
-
else showNow();
|
|
261
|
-
}
|
|
262
264
|
function trackTriggerPress() {
|
|
263
265
|
stopPressTracking?.();
|
|
264
266
|
const trigger = bound;
|
|
@@ -281,11 +283,7 @@ function useTooltip(options = {}) {
|
|
|
281
283
|
if (isHoldInThisTask) isHoldFromPress = true;
|
|
282
284
|
return;
|
|
283
285
|
}
|
|
284
|
-
if (event
|
|
285
|
-
onTouchTap(event);
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
if (isControlled.value) return;
|
|
286
|
+
if (touch.handlePointerDown(event) || isControlled.value) return;
|
|
289
287
|
hideNow();
|
|
290
288
|
}
|
|
291
289
|
const focusGate = createFocusGate(focusTriggerMode);
|
|
@@ -375,7 +373,7 @@ function useTooltip(options = {}) {
|
|
|
375
373
|
unbind();
|
|
376
374
|
bound = element;
|
|
377
375
|
trackInteractionModality();
|
|
378
|
-
element.addEventListener("pointerenter",
|
|
376
|
+
element.addEventListener("pointerenter", touch.handlePointerEnter);
|
|
379
377
|
element.addEventListener("mouseenter", onMouseEnter);
|
|
380
378
|
element.addEventListener("mouseleave", onMouseLeave);
|
|
381
379
|
element.addEventListener("pointerdown", onPointerDown);
|
|
@@ -388,14 +386,14 @@ function useTooltip(options = {}) {
|
|
|
388
386
|
hover: scheduleShow,
|
|
389
387
|
tap: (tapEvent) => {
|
|
390
388
|
isTouchPointer.value = true;
|
|
391
|
-
|
|
389
|
+
touch.answerTap(tapEvent);
|
|
392
390
|
},
|
|
393
391
|
focus: (focused) => onFocusArrive(element, focused, false)
|
|
394
392
|
});
|
|
395
393
|
}
|
|
396
394
|
function unbind() {
|
|
397
395
|
if (bound == null) return;
|
|
398
|
-
bound.removeEventListener("pointerenter",
|
|
396
|
+
bound.removeEventListener("pointerenter", touch.handlePointerEnter);
|
|
399
397
|
bound.removeEventListener("mouseenter", onMouseEnter);
|
|
400
398
|
bound.removeEventListener("mouseleave", onMouseLeave);
|
|
401
399
|
bound.removeEventListener("pointerdown", onPointerDown);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-
|
|
1
|
+
import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-Co3ugCsm.js";
|
|
2
2
|
import { t as armStrayClick } from "./strayClick-CY-_ImKv.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|