@astryx-vue/core 0.33.2 → 0.33.3
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-BwW3jdTg.js → AlertDialog-BwH9WU-t.js} +8 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BURF50V8.js → AppShell-BwzRYOky.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CcmhCa5q.js → Avatar-C6E6TYbe.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DJKoExQk.js → AvatarGroup-C0V--ipx.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DSSXXFU9.js → Banner-Ds5KIeES.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-KUGb-GPw.js → BottomSheet-BmmGemH5.js} +1 -1
- package/dist/{BottomSheet-Jq7g0EWd.js → BottomSheet-DKEUVLe5.js} +9 -9
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BEx7_LpB.js → Breadcrumbs-DWAYp-JJ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-BlWhnkeM.js → Button-X-Q_ghg8.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-D3pGXH3t.js → ButtonGroup-DsYdUmF1.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-XHo3AGQj.js → Carousel-D8uVV1J_.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-B0c_CxBk.js → Chat-Dy-icS2C.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-DCeCsNvg.js → CheckboxInput-CiUtutIS.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CGC_EBYs.js → CheckboxListItem-B6sV7-Og.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-aU0QED8P.js → ClickableCard-DDk_RtHd.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-ClZvd61o.js → CodeBlock-r2-MlpBB.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BAup__Sy.js → Collapsible-0XI3tKgj.js} +3 -3
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CvalZZHH.js → CommandPalette-BYR0Lxxd.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DIwWcWwi.js → ComplexSelector-CIXrqCoX.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BnX93m0D.js → ContextMenu-CfVyaP5v.js} +6 -6
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BFjeik3X.js → DateInput-DRzZ8dY7.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cnrp5SDW.js → DateRangeInput-DL2aOQXJ.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Zsf86rSO.js → DateTimeInput-KWkpamG4.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Bl5CCsoX.js → Dialog-BM5VEE8z.js} +2 -2
- package/dist/{Dialog-DIWIrzgk.js → Dialog-CJzq1gms.js} +1 -1
- package/dist/{DialogHeader-DbWkeIrf.js → DialogHeader-Do4EOX2f.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-MdC2BxbG.js → Drawer-DuQ620WO.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-4o8qS78m.js → DropdownMenu-CbENfJOq.js} +9 -9
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CeZXvaPU.js → EmptyState-BAP8BpDj.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CrTrfcXB.js → Field-B1fsgAqp.js} +1 -1
- package/dist/{FieldInfoTip-C3Ztw-wI.js → FieldInfoTip-CntJCcnM.js} +1 -1
- package/dist/{FieldLabel-CFE2WC_i.js → FieldLabel-D56uJrRE.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BhO1SCw-.js → FileInput-EjlruVVX.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-AZCa8gid.js → Heading-D94VFJtm.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-C4VR_GZ0.js → HoverCard-rwpyd6nt.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CqWEkha9.js → IconButton-CXg9qTRM.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-Dps1Aaem.js → InfoTip-jFet-iAx.js} +2 -2
- package/dist/{InputClearButton-Xjvkkq7B.js → InputClearButton-DBTrsrSH.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-gYIGs7VH.js → InputGroup-D7UBxktR.js} +1 -1
- package/dist/{Item-FxMSEuU3.js → Item-DbalBZXc.js} +2 -2
- package/dist/{LayerContentBoundary-C7VZOgMs.js → LayerContentBoundary-CTjEpdM4.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-D6UhyoVb.js → Layout-BEJwZon4.js} +1 -1
- package/dist/{LayoutPanel-DfS5TvSP.js → LayoutPanel-BgJdL0KV.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-76vHqGA0.js → Lightbox-DJXB22k0.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-QPBGLcTk.js → Link-eXwB0Hjg.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Ss6Kw90l.js → ListItem-C5B8uYyn.js} +4 -4
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Cz6wbx9z.js → Markdown-COub2yng.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CCJBX2fq.js → MobileNavToggle-DI5yDKfp.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-OOQAeJT9.js → MoreMenu-C7gie2PE.js} +8 -8
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-9HGDsMQE.js → MultiSelector-CnGUU8P3.js} +6 -6
- package/dist/{NavDisclosure-BTeZLyLq.js → NavDisclosure-CSnUZY3k.js} +1 -1
- package/dist/{NavHeadingSurface-DPmolgVb.js → NavHeadingSurface-C3fTf5--.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BL3g0YUf.js → NavItem-Cciu9aok.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-DcTh1DCM.js → NavMenu--iyy_m84.js} +2 -2
- package/dist/{NavMenuItem-Dmsno5s3.js → NavMenuItem-BmAm-Cv8.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DWYCcrUw.js → NumberInput-CD9sHbON.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DGtPcD0U.js → Outline-vieAJS2J.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-EIr4jQjY.js → OverflowList-YLVHypB3.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Ch7-xIFe.js → Pagination-Bnkp4oAA.js} +2 -2
- package/dist/PanGestureRecognizer-CzIWpazn.js +681 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-LSIKv1zS.js → Popover-CYJ1z_7L.js} +9 -9
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Cjkv0qON.js → PowerSearch-DEpXEmgs.js} +26 -26
- package/dist/PressTracker-L5-Ark_9.js +190 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-nPERcjvJ.js → ProgressBar-ChgsiVRR.js} +3 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BWFVn7Gd.js → RadioGroup-BdO-xZv0.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-D1rnSZeL.js → RadioListItem-DzGPuWTt.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DyjQfxxG.js → ResizeHandle-Dcel1HkU.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-CkR8ur3h.js → SegmentedControl-BURyE9XU.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-uDblNb5T.js → SelectableCard-BZTF6qw-.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BiLcyM3Y.js → Selector-SkwSbf4j.js} +4 -4
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-d0A9mlEW.js → SideNav-BxJfJU95.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/Slider-ORmi7QJ7.js +1785 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D3z-WEGn.js → StatusDot-D7nVuPg7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CePOs80C.js → Stepper-C4-wtxn4.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch-Cw1UKVjQ.js +1468 -0
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-CthDI2i1.js → TabList-DNDe2ipJ.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-egoY0slV.js → Table-CqppyRk8.js} +12 -12
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CGb1rxyK.js → Text-kwsIut3C.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-B3WlT4sr.js → TextArea-I3ghDb9r.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-C4CqgE0E.js → TextInput-Xz_ibpOl.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-6YWZ9a2A.js → Thumbnail-bS62Tr_f.js} +3 -3
- package/dist/{TimeField-CvBKO_Ew.js → TimeField-Bsb8n22d.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Cl9HIZrP.js → TimeInput-D40_6GrX.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-BNa_W8zr.js → Timer-B-9sSJWK.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D_NTXtxz.js → Timestamp-Bt9ZR975.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-E6NqFf3W.js → Toast-BQxfIeVU.js} +5 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-ih92QX-K.js → ToggleButton-IFhFMpQh.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DE1udaRF.js → Token-CpmqfG4i.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DbD2ZBuh.js → Tokenizer-Dvr7ICpS.js} +13 -13
- 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-sXtW5dTD.js → Tooltip-DyGaJUbl.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-D688LaUK.js → TopNav-Cw_dcKpf.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BFKPBFKu.js → TreeList-CBfKKbUQ.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BwjzOjT4.js → Typeahead-D9-WjsCU.js} +5 -5
- package/dist/{VelocityTracker-bns4TzMt.js → VelocityTracker-CPFBHDpy.js} +1 -1
- package/dist/{accessibleName-nYUMoSTW.js → accessibleName-Cw9s1690.js} +2 -2
- package/dist/{animator-DnLs_cbV.js → animator-ozeBZ_zC.js} +3 -3
- package/dist/{assertOptions-BdLvkG6M.js → assertOptions-V_jJxpn9.js} +1 -1
- package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
- package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-DGnAPIcU.js} +1 -1
- package/dist/composables/index.js +10 -10
- package/dist/{composables-B9tgZEzP.js → composables-BJoAw6XA.js} +11 -9
- package/dist/{context-Dktfy1fh.js → context-WDet15_N.js} +1 -1
- package/dist/{useAttachment-CALrXA-t.js → geometry-CoQRz-F1.js} +12 -710
- package/dist/{gestures-CppaWqif.js → gestures-yKyyMqeQ.js} +225 -1
- package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-BsusS3bM.js} +2 -2
- package/dist/{index-MOtVbTwK.d.ts → index--kbwaSXW.d.ts} +3 -3
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-CArP_6wv.d.ts → index-BI1QLuYB.d.ts} +2 -2
- package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-D7ShT2c-.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-DN5Ga_Zm.d.ts → index-BqQlY3fL.d.ts} +3 -3
- package/dist/{index-Otl047R1.d.ts → index-BtqvPjAf.d.ts} +2 -2
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
- package/dist/{index-D65x5ny5.d.ts → index-CY0KtUSC.d.ts} +67 -67
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-DWVhyvVu.d.ts → index-D1JOMiI5.d.ts} +8 -8
- package/dist/{index-eCp-ElSp.d.ts → index-DPhQZXYw.d.ts} +2 -2
- package/dist/{index-CM00rrgg.d.ts → index-DuxRUPMc.d.ts} +3 -3
- package/dist/{index-BOiwoyXq.d.ts → index-GyRgg1-v.d.ts} +8 -8
- package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
- package/dist/{index-Ak1b0V24.d.ts → index-Pad9p8CU.d.ts} +1 -1
- package/dist/{index-85y5NZP-.d.ts → index-V6uruC4Z.d.ts} +1 -1
- package/dist/{index-3LdpzxQZ.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +24 -24
- package/dist/index.js +101 -101
- package/dist/{inputHold-DW2LYHb5.js → inputHold-BJtjc9iI.js} +4 -4
- package/dist/{inputHoldState-xntIqr5W.js → inputHoldState-BYi5FKZl.js} +2 -2
- package/dist/{inputStream-bPd9eB2b.js → inputStream-HXw2lZ-3.js} +1 -1
- package/dist/{landing-9mjHGn26.js → landing-Qk_FHR-s.js} +1 -1
- package/dist/{layerDepth-c3jUndA2.js → layerDepth-SGFJ5L6X.js} +1 -1
- package/dist/{lazyBottomSheet-Ca7Mdou2.js → lazyBottomSheet-Bg5E8lr3.js} +1 -1
- package/dist/{linearEasing-CBwOorE7.js → linearEasing-VHwy6xl_.js} +1 -1
- package/dist/{presentation-Cy_yf56y.js → presentation-twEOzzJq.js} +1 -1
- package/dist/{presentationHold-B4tK68sd.js → presentationHold-CZsVmjlY.js} +1 -1
- package/dist/{pressFeedback-BlOSZew9.js → pressFeedback-9ogipvI4.js} +4 -4
- package/dist/{pressGesture-yntcDLXo.js → pressGesture-B3Efxs_z.js} +1 -1
- package/dist/{rubberBand-DDapO54w.js → projection-qPcLQcwK.js} +2 -50
- package/dist/{reportChange-DPFCmyOB.js → reportChange-BUTgduu-.js} +3 -3
- package/dist/{resizableChannel-DOmBYh4V.js → resizableChannel-_j_AW2B6.js} +5 -5
- package/dist/{resolveMotion-CF9fXX0t.js → resolveMotion-DftkGFw6.js} +1 -1
- package/dist/{resolveSnapPoint-mZzJRIC2.js → resolveSnapPoint-A4dhS5jj.js} +1 -1
- package/dist/rubberBand-DDd5ElTe.js +65 -0
- package/dist/{sharedRealm-H1OrlP0V.js → sharedRealm-DBtNH73I.js} +9 -1
- package/dist/{springs-B2jqskKJ.js → springs-DjAn_oV5.js} +1 -1
- package/dist/{stillPointerGate-Htiy6uKa.js → stillPointerGate-BvCX7ddI.js} +1 -1
- package/dist/{tooltipFocusRules-BHJUQprJ.js → tooltipFocusRules-CxIlSnHw.js} +2 -2
- package/dist/{tooltipTriggerRules-Dremu4W9.js → tooltipTriggerRules-CHNpQ6RL.js} +1 -1
- package/dist/{touchHold-DXtx7npm.js → touchHold-CjNjGH7O.js} +1 -1
- package/dist/{useActionGroupTracking-DDhfTUOK.js → useActionGroupTracking-ByLJoM-8.js} +3 -3
- package/dist/{useAnimatedLayout-B6Xj_kTo.js → useAnimatedLayout-IcX0UfS4.js} +1 -1
- package/dist/useAttachment-CGiD9rt6.js +24 -0
- package/dist/{useChatStreamScroll-CuMzkXgD.js → useChatStreamScroll-DcNKcNTj.js} +1 -1
- package/dist/{useDismiss-BvDK4xBe.js → useDismiss-6SGAlkB_.js} +1 -1
- package/dist/{useHeldPresentation-BF5vGVUn.js → useHeldPresentation-DJEthuMT.js} +1 -1
- package/dist/{useInputStatusIcon-MyCpVp3g.js → useInputStatusIcon-D0q4S1Ye.js} +1 -1
- package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-B7f9ShX2.js} +1 -1
- package/dist/{useMenuPress-BJVQF7ml.js → useMenuPress-cBIQyTsN.js} +4 -4
- package/dist/{usePressFeedback-cxyksfAD.js → usePressFeedback-Dx-a3i82.js} +1 -1
- package/dist/{useResizable-C-9ff2ZK.js → useResizable-JvgYydox.js} +6 -5
- package/dist/{useTooltip-w57yzB7h.js → useTooltip-owvVSn_m.js} +4 -4
- package/dist/{useTouchHitArea-CgUvnuTz.js → useTouchHitArea-BGkvMAyp.js} +2 -2
- package/dist/{useTouchTriggerInternal-DSA228_-.js → useTouchTriggerInternal-5ExaYYSy.js} +1 -1
- package/dist/{useTruncationTooltip--w8vh7M-.js → useTruncationTooltip-DHI6q_EV.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-C-EOaLF-.js → useTypeaheadMenuConfig-COiZ4isy.js} +1 -1
- package/package.json +1 -1
- package/styles/slider.css +59 -12
- package/styles/switch.css +101 -34
- package/dist/Slider-BdIrYmul.js +0 -735
- package/dist/Switch-6tQbDX9A.js +0 -355
package/dist/Slider-BdIrYmul.js
DELETED
|
@@ -1,735 +0,0 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-cxyksfAD.js";
|
|
2
|
-
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
4
|
-
import { t as _sfc_main$3 } from "./ButtonTooltip-ZpQP-aQg.js";
|
|
5
|
-
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
|
-
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
|
-
import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
|
|
8
|
-
import { a as useAriaRequired } from "./context-CrVCeUUK.js";
|
|
9
|
-
import { t as _sfc_main$4 } from "./Field-CrTrfcXB.js";
|
|
10
|
-
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
11
|
-
import { t as sliderMessages } from "./slider-6ZlGhyPD.js";
|
|
12
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx, withKeys } from "vue";
|
|
13
|
-
import "../styles/button.css";
|
|
14
|
-
import "../styles/slider.css";
|
|
15
|
-
function clamp(value, min, max) {
|
|
16
|
-
return Math.min(max, Math.max(min, Number.isFinite(value) ? value : min));
|
|
17
|
-
}
|
|
18
|
-
function precision(value) {
|
|
19
|
-
const [coefficient = "", exponent = "0"] = String(value).split("e");
|
|
20
|
-
return Math.max(0, (coefficient.split(".")[1]?.length ?? 0) - Number(exponent));
|
|
21
|
-
}
|
|
22
|
-
function snap(value, min, step) {
|
|
23
|
-
const snapped = min + Math.round((value - min) / step) * step;
|
|
24
|
-
return Number(snapped.toFixed(Math.min(20, Math.max(precision(min), precision(step)))));
|
|
25
|
-
}
|
|
26
|
-
function percent(value, min, max) {
|
|
27
|
-
return max === min ? 0 : (value - min) / (max - min) * 100;
|
|
28
|
-
}
|
|
29
|
-
function position(value) {
|
|
30
|
-
return `calc(${value}% + 10px - ${value / 100 * 20}px)`;
|
|
31
|
-
}
|
|
32
|
-
function add(first, second) {
|
|
33
|
-
return Number((first + second).toFixed(Math.min(20, Math.max(precision(first), precision(second)))));
|
|
34
|
-
}
|
|
35
|
-
function multiply(first, second) {
|
|
36
|
-
return Number((first * second).toFixed(Math.min(20, precision(first) + precision(second))));
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/Slider/SliderThumb.vue
|
|
40
|
-
const _hoisted_1$1 = [
|
|
41
|
-
"id",
|
|
42
|
-
"tabindex",
|
|
43
|
-
"data-thumb-index",
|
|
44
|
-
"data-dragging",
|
|
45
|
-
"data-keyboard-focus",
|
|
46
|
-
"aria-valuemin",
|
|
47
|
-
"aria-valuemax",
|
|
48
|
-
"aria-valuenow",
|
|
49
|
-
"aria-valuetext",
|
|
50
|
-
"aria-orientation",
|
|
51
|
-
"aria-labelledby",
|
|
52
|
-
"aria-describedby",
|
|
53
|
-
"aria-disabled",
|
|
54
|
-
"aria-invalid"
|
|
55
|
-
];
|
|
56
|
-
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
57
|
-
__name: "SliderThumb",
|
|
58
|
-
props: {
|
|
59
|
-
id: {},
|
|
60
|
-
index: {},
|
|
61
|
-
value: {},
|
|
62
|
-
min: {},
|
|
63
|
-
max: {},
|
|
64
|
-
percentage: {},
|
|
65
|
-
orientation: {},
|
|
66
|
-
labelledBy: {},
|
|
67
|
-
describedBy: {},
|
|
68
|
-
valueText: {},
|
|
69
|
-
isInvalid: { type: Boolean },
|
|
70
|
-
isDisabled: { type: Boolean },
|
|
71
|
-
isFocusable: { type: Boolean },
|
|
72
|
-
tooltipText: {},
|
|
73
|
-
dragging: { type: Boolean },
|
|
74
|
-
dragActive: { type: Boolean },
|
|
75
|
-
keyboardFocus: { type: Boolean },
|
|
76
|
-
extraAttrs: {}
|
|
77
|
-
},
|
|
78
|
-
emits: [
|
|
79
|
-
"keydown",
|
|
80
|
-
"focus",
|
|
81
|
-
"blur"
|
|
82
|
-
],
|
|
83
|
-
setup(__props, { emit: __emit }) {
|
|
84
|
-
const props = __props;
|
|
85
|
-
const emit = __emit;
|
|
86
|
-
const thumb = useTemplateRef("thumb");
|
|
87
|
-
const tooltip = useTemplateRef("tooltip");
|
|
88
|
-
const tabIndex = computed(() => props.isFocusable ? 0 : -1);
|
|
89
|
-
const focused = shallowRef(false);
|
|
90
|
-
const hovered = shallowRef(false);
|
|
91
|
-
const dismissed = shallowRef(false);
|
|
92
|
-
const open = computed(() => !!props.tooltipText && !props.isDisabled && !dismissed.value && (props.dragActive ? props.dragging : focused.value || hovered.value));
|
|
93
|
-
const style = computed(() => props.orientation === "horizontal" ? { insetInlineStart: position(props.percentage) } : { bottom: position(props.percentage) });
|
|
94
|
-
watch(() => props.dragging, () => {
|
|
95
|
-
dismissed.value = false;
|
|
96
|
-
});
|
|
97
|
-
watch(() => [props.percentage, props.tooltipText], () => {
|
|
98
|
-
tooltip.value?.updatePosition();
|
|
99
|
-
}, { flush: "post" });
|
|
100
|
-
function keydown(event) {
|
|
101
|
-
if (event.key === "Escape") dismissed.value = true;
|
|
102
|
-
emit("keydown", event);
|
|
103
|
-
}
|
|
104
|
-
function focus() {
|
|
105
|
-
focused.value = true;
|
|
106
|
-
dismissed.value = false;
|
|
107
|
-
emit("focus");
|
|
108
|
-
}
|
|
109
|
-
function blur() {
|
|
110
|
-
focused.value = false;
|
|
111
|
-
emit("blur");
|
|
112
|
-
}
|
|
113
|
-
function enter() {
|
|
114
|
-
hovered.value = true;
|
|
115
|
-
dismissed.value = false;
|
|
116
|
-
}
|
|
117
|
-
return (_ctx, _cache) => {
|
|
118
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
119
|
-
createCommentVNode(" eslint-disable-next-line vue-a11y/interactive-supports-focus -- The tested dynamic tabindex is always 0 or -1. "),
|
|
120
|
-
createElementVNode("div", mergeProps(__props.extraAttrs, {
|
|
121
|
-
id: __props.id,
|
|
122
|
-
ref_key: "thumb",
|
|
123
|
-
ref: thumb,
|
|
124
|
-
class: "astryx-slider-thumb",
|
|
125
|
-
role: "slider",
|
|
126
|
-
style: style.value,
|
|
127
|
-
tabindex: tabIndex.value,
|
|
128
|
-
"data-thumb-index": __props.index,
|
|
129
|
-
"data-dragging": __props.dragging || void 0,
|
|
130
|
-
"data-keyboard-focus": __props.keyboardFocus || void 0,
|
|
131
|
-
"aria-valuemin": __props.min,
|
|
132
|
-
"aria-valuemax": __props.max,
|
|
133
|
-
"aria-valuenow": __props.value,
|
|
134
|
-
"aria-valuetext": __props.valueText,
|
|
135
|
-
"aria-orientation": __props.orientation,
|
|
136
|
-
"aria-labelledby": __props.labelledBy,
|
|
137
|
-
"aria-describedby": __props.describedBy,
|
|
138
|
-
"aria-disabled": __props.isDisabled || void 0,
|
|
139
|
-
"aria-invalid": __props.isInvalid || void 0,
|
|
140
|
-
onKeydown: keydown,
|
|
141
|
-
onFocus: focus,
|
|
142
|
-
onBlur: blur,
|
|
143
|
-
onPointerenter: enter,
|
|
144
|
-
onPointerleave: _cache[0] || (_cache[0] = ($event) => hovered.value = false)
|
|
145
|
-
}), null, 16, _hoisted_1$1),
|
|
146
|
-
__props.tooltipText ? (openBlock(), createBlock(_sfc_main$3, {
|
|
147
|
-
key: 0,
|
|
148
|
-
id: `${__props.id}-tooltip`,
|
|
149
|
-
ref_key: "tooltip",
|
|
150
|
-
ref: tooltip,
|
|
151
|
-
anchor: thumb.value,
|
|
152
|
-
open: open.value,
|
|
153
|
-
text: __props.tooltipText,
|
|
154
|
-
onPointerEnter: _cache[1] || (_cache[1] = ($event) => hovered.value = true),
|
|
155
|
-
onPointerLeave: _cache[2] || (_cache[2] = ($event) => hovered.value = false)
|
|
156
|
-
}, null, 8, [
|
|
157
|
-
"id",
|
|
158
|
-
"anchor",
|
|
159
|
-
"open",
|
|
160
|
-
"text"
|
|
161
|
-
])) : createCommentVNode("v-if", true)
|
|
162
|
-
], 64);
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/Slider/useSlider.ts
|
|
168
|
-
function useSlider(options) {
|
|
169
|
-
const p = options.props;
|
|
170
|
-
const min = computed(() => Number.isFinite(p.min) ? p.min : 0);
|
|
171
|
-
const max = computed(() => Math.max(min.value, Number.isFinite(p.max) ? p.max : 100));
|
|
172
|
-
const step = computed(() => Number.isFinite(p.step) && p.step > 0 ? p.step : 1);
|
|
173
|
-
const gap = computed(() => Math.min(max.value - min.value, multiply(Math.max(0, Number.isFinite(p.minStepsBetweenThumbs) ? p.minStepsBetweenThumbs : 0), step.value)));
|
|
174
|
-
const values = computed(() => {
|
|
175
|
-
const model = options.model();
|
|
176
|
-
if (!Array.isArray(model)) return [clamp(model, min.value, max.value)];
|
|
177
|
-
const [low, high] = model.map((value) => clamp(value, min.value, max.value)).sort((a, b) => a - b);
|
|
178
|
-
const upper = Math.max(high, add(min.value, gap.value));
|
|
179
|
-
return [Math.min(low, add(upper, -gap.value)), upper];
|
|
180
|
-
});
|
|
181
|
-
const dragging = shallowRef(null);
|
|
182
|
-
const keyboardFocus = shallowRef(null);
|
|
183
|
-
if (typeof document !== "undefined") trackInteractionModality();
|
|
184
|
-
let pointerId = null;
|
|
185
|
-
let latest;
|
|
186
|
-
let coincidentPress = null;
|
|
187
|
-
let coincidentOrigin = false;
|
|
188
|
-
function resetDrag() {
|
|
189
|
-
dragging.value = null;
|
|
190
|
-
pointerId = null;
|
|
191
|
-
latest = void 0;
|
|
192
|
-
coincidentPress = null;
|
|
193
|
-
coincidentOrigin = false;
|
|
194
|
-
}
|
|
195
|
-
watch([
|
|
196
|
-
() => p.isDisabled,
|
|
197
|
-
() => p.orientation,
|
|
198
|
-
() => Array.isArray(options.model())
|
|
199
|
-
], resetDrag);
|
|
200
|
-
watch(values, () => {
|
|
201
|
-
latest = void 0;
|
|
202
|
-
});
|
|
203
|
-
function boundsFor(index, base) {
|
|
204
|
-
return [index === 1 ? add(base[0], gap.value) : min.value, base.length === 2 && index === 0 ? add(base[1], -gap.value) : max.value];
|
|
205
|
-
}
|
|
206
|
-
function bounds(index) {
|
|
207
|
-
return boundsFor(index, values.value);
|
|
208
|
-
}
|
|
209
|
-
function update(index, raw, shouldSnap = true, base = values.value) {
|
|
210
|
-
const next = [...base];
|
|
211
|
-
const [lower, upper] = boundsFor(index, base);
|
|
212
|
-
next[index] = clamp(shouldSnap ? snap(raw, min.value, step.value) : raw, lower, upper);
|
|
213
|
-
const value = next.length === 2 ? [next[0], next[1]] : next[0];
|
|
214
|
-
latest = value;
|
|
215
|
-
if (next.some((v, i) => v !== values.value[i])) options.change(value);
|
|
216
|
-
return value;
|
|
217
|
-
}
|
|
218
|
-
function pointerValue(event) {
|
|
219
|
-
const track = options.track.value;
|
|
220
|
-
const rect = track.getBoundingClientRect();
|
|
221
|
-
const vertical = p.orientation === "vertical";
|
|
222
|
-
const size = vertical ? rect.height : rect.width;
|
|
223
|
-
const offset = vertical ? rect.bottom - event.clientY : getComputedStyle(track).direction === "rtl" ? rect.right - event.clientX : event.clientX - rect.left;
|
|
224
|
-
const fraction = size > 20 ? (offset - 10) / (size - 20) : size > 0 ? offset / size : 0;
|
|
225
|
-
return min.value + clamp(fraction, 0, 1) * (max.value - min.value);
|
|
226
|
-
}
|
|
227
|
-
function pointerDown(event) {
|
|
228
|
-
if (p.isDisabled || event.defaultPrevented || event.button !== 0 || pointerId !== null || !options.track.value) return;
|
|
229
|
-
const target = event.target;
|
|
230
|
-
const mark = target.closest("[data-mark-value]");
|
|
231
|
-
const thumb = target.closest("[data-thumb-index]");
|
|
232
|
-
const raw = mark ? Number(mark.dataset.markValue) : pointerValue(event);
|
|
233
|
-
const isCoincident = values.value.length === 2 && values.value[0] === values.value[1];
|
|
234
|
-
const parks = isCoincident && (thumb != null || raw === values.value[0]);
|
|
235
|
-
let index = thumb ? Number(thumb.dataset.thumbIndex) : values.value.length === 2 && Math.abs(raw - values.value[1]) < Math.abs(raw - values.value[0]) ? 1 : 0;
|
|
236
|
-
if (parks && thumb == null) index = 1;
|
|
237
|
-
if (isCoincident && !parks) index = raw > values.value[0] ? 1 : 0;
|
|
238
|
-
event.preventDefault();
|
|
239
|
-
dragging.value = index;
|
|
240
|
-
pointerId = event.pointerId;
|
|
241
|
-
coincidentPress = parks ? pointerValue(event) : null;
|
|
242
|
-
coincidentOrigin = parks;
|
|
243
|
-
options.track.value.querySelectorAll("[role=\"slider\"]")[index]?.focus({ preventScroll: true });
|
|
244
|
-
keyboardFocus.value = null;
|
|
245
|
-
update(index, parks ? values.value[index] : raw);
|
|
246
|
-
options.track.value.setPointerCapture?.(event.pointerId);
|
|
247
|
-
}
|
|
248
|
-
function handTo(index) {
|
|
249
|
-
if (index === dragging.value) return;
|
|
250
|
-
dragging.value = index;
|
|
251
|
-
options.track.value?.querySelectorAll("[role=\"slider\"]")[index]?.focus({ preventScroll: true });
|
|
252
|
-
keyboardFocus.value = null;
|
|
253
|
-
}
|
|
254
|
-
function pointerMove(event) {
|
|
255
|
-
if (p.isDisabled || pointerId !== event.pointerId || dragging.value === null) return;
|
|
256
|
-
const value = pointerValue(event);
|
|
257
|
-
if (coincidentPress !== null) {
|
|
258
|
-
if (value === coincidentPress) return;
|
|
259
|
-
const origin = coincidentPress;
|
|
260
|
-
coincidentPress = null;
|
|
261
|
-
handTo(value > origin ? 1 : 0);
|
|
262
|
-
} else if (coincidentOrigin) {
|
|
263
|
-
const current = values.value;
|
|
264
|
-
const held = dragging.value;
|
|
265
|
-
const other = held === 0 ? 1 : 0;
|
|
266
|
-
if (held === 0 && value > current[1] || held === 1 && value < current[0]) {
|
|
267
|
-
const base = [...current];
|
|
268
|
-
base[held] = current[other];
|
|
269
|
-
handTo(other);
|
|
270
|
-
update(other, value, true, base);
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
update(dragging.value, value);
|
|
275
|
-
}
|
|
276
|
-
function pointerEnd(event) {
|
|
277
|
-
if (pointerId !== event.pointerId || dragging.value === null) return;
|
|
278
|
-
const value = latest ?? (values.value.length === 2 ? [values.value[0], values.value[1]] : values.value[0]);
|
|
279
|
-
resetDrag();
|
|
280
|
-
if (options.track.value?.hasPointerCapture?.(event.pointerId)) options.track.value.releasePointerCapture(event.pointerId);
|
|
281
|
-
if (!p.isDisabled) options.end(value);
|
|
282
|
-
}
|
|
283
|
-
function thumbFocus(index) {
|
|
284
|
-
keyboardFocus.value = !p.isDisabled && getInteractionModality() === "keyboard" ? index : null;
|
|
285
|
-
}
|
|
286
|
-
function thumbBlur() {
|
|
287
|
-
keyboardFocus.value = null;
|
|
288
|
-
}
|
|
289
|
-
function keydown(index, event) {
|
|
290
|
-
if (p.isDisabled || event.defaultPrevented) return;
|
|
291
|
-
if (event.key !== "Shift" && !event.altKey && !event.ctrlKey && !event.metaKey && getInteractionModality() === "keyboard") keyboardFocus.value = index;
|
|
292
|
-
if (event.altKey || event.ctrlKey || event.metaKey) return;
|
|
293
|
-
const current = values.value[index];
|
|
294
|
-
const rtl = p.orientation !== "vertical" && options.track.value && getComputedStyle(options.track.value).direction === "rtl";
|
|
295
|
-
const offsets = {
|
|
296
|
-
ArrowRight: rtl ? -1 : 1,
|
|
297
|
-
ArrowLeft: rtl ? 1 : -1,
|
|
298
|
-
ArrowUp: 1,
|
|
299
|
-
ArrowDown: -1,
|
|
300
|
-
PageUp: 10,
|
|
301
|
-
PageDown: -10
|
|
302
|
-
};
|
|
303
|
-
let value;
|
|
304
|
-
if (event.key === "Home") value = min.value;
|
|
305
|
-
else if (event.key === "End") value = max.value;
|
|
306
|
-
else if (event.key in offsets) value = current + offsets[event.key] * step.value;
|
|
307
|
-
else return;
|
|
308
|
-
event.preventDefault();
|
|
309
|
-
const toBound = event.key === "Home" || event.key === "End";
|
|
310
|
-
options.end(update(index, value, !toBound));
|
|
311
|
-
}
|
|
312
|
-
return {
|
|
313
|
-
min,
|
|
314
|
-
max,
|
|
315
|
-
gap,
|
|
316
|
-
values,
|
|
317
|
-
bounds,
|
|
318
|
-
dragging,
|
|
319
|
-
keyboardFocus,
|
|
320
|
-
pointerDown,
|
|
321
|
-
pointerMove,
|
|
322
|
-
pointerEnd,
|
|
323
|
-
keydown,
|
|
324
|
-
thumbFocus,
|
|
325
|
-
thumbBlur
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
//#endregion
|
|
329
|
-
//#region src/Slider/Slider.vue
|
|
330
|
-
const _hoisted_1 = { class: "astryx-slider-row" };
|
|
331
|
-
const _hoisted_2 = [
|
|
332
|
-
"name",
|
|
333
|
-
"value",
|
|
334
|
-
"disabled",
|
|
335
|
-
"form"
|
|
336
|
-
];
|
|
337
|
-
const _hoisted_3 = [
|
|
338
|
-
"data-orientation",
|
|
339
|
-
"data-disabled",
|
|
340
|
-
"role",
|
|
341
|
-
"aria-labelledby"
|
|
342
|
-
];
|
|
343
|
-
const _hoisted_4 = ["data-mark-value", "data-filled"];
|
|
344
|
-
const _hoisted_5 = ["data-mark-value"];
|
|
345
|
-
const _hoisted_6 = {
|
|
346
|
-
key: 0,
|
|
347
|
-
class: "astryx-slider-value",
|
|
348
|
-
"aria-hidden": "true"
|
|
349
|
-
};
|
|
350
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
351
|
-
name: "AstryxSlider",
|
|
352
|
-
inheritAttrs: false,
|
|
353
|
-
__name: "Slider",
|
|
354
|
-
props: /*@__PURE__*/ mergeModels({
|
|
355
|
-
id: {},
|
|
356
|
-
min: { default: 0 },
|
|
357
|
-
max: { default: 100 },
|
|
358
|
-
step: { default: 1 },
|
|
359
|
-
minStepsBetweenThumbs: {},
|
|
360
|
-
orientation: { default: "horizontal" },
|
|
361
|
-
valueDisplay: { default: "tooltip" },
|
|
362
|
-
formatValue: {},
|
|
363
|
-
marks: {},
|
|
364
|
-
width: {},
|
|
365
|
-
htmlName: {},
|
|
366
|
-
form: {},
|
|
367
|
-
status: {},
|
|
368
|
-
disabledMessage: {},
|
|
369
|
-
minLabel: {},
|
|
370
|
-
maxLabel: {},
|
|
371
|
-
label: {},
|
|
372
|
-
isLabelHidden: { type: Boolean },
|
|
373
|
-
isDisabled: { type: Boolean },
|
|
374
|
-
isOptional: { type: Boolean },
|
|
375
|
-
isRequired: { type: Boolean },
|
|
376
|
-
description: {},
|
|
377
|
-
labelIcon: {},
|
|
378
|
-
labelTooltip: {},
|
|
379
|
-
optionalLabel: {},
|
|
380
|
-
requiredLabel: {},
|
|
381
|
-
targetClass: {},
|
|
382
|
-
containerClass: { type: [
|
|
383
|
-
Boolean,
|
|
384
|
-
null,
|
|
385
|
-
String,
|
|
386
|
-
Object,
|
|
387
|
-
Array
|
|
388
|
-
] },
|
|
389
|
-
containerStyle: { type: [
|
|
390
|
-
Boolean,
|
|
391
|
-
null,
|
|
392
|
-
String,
|
|
393
|
-
Object,
|
|
394
|
-
Array
|
|
395
|
-
] },
|
|
396
|
-
controlClass: { type: [
|
|
397
|
-
Boolean,
|
|
398
|
-
null,
|
|
399
|
-
String,
|
|
400
|
-
Object,
|
|
401
|
-
Array
|
|
402
|
-
] },
|
|
403
|
-
controlStyle: { type: [
|
|
404
|
-
Boolean,
|
|
405
|
-
null,
|
|
406
|
-
String,
|
|
407
|
-
Object,
|
|
408
|
-
Array
|
|
409
|
-
] }
|
|
410
|
-
}, {
|
|
411
|
-
"modelValue": { required: true },
|
|
412
|
-
"modelModifiers": {}
|
|
413
|
-
}),
|
|
414
|
-
emits: /*@__PURE__*/ mergeModels(["change", "changeEnd"], ["update:modelValue"]),
|
|
415
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
416
|
-
const props = __props;
|
|
417
|
-
const emit = __emit;
|
|
418
|
-
const model = useModel(__props, "modelValue");
|
|
419
|
-
const attrs = useAttrs();
|
|
420
|
-
const messages = useComponentMessages({ slider: sliderMessages });
|
|
421
|
-
const minName = computed(() => props.minLabel ?? messages.value.slider.minimumThumb);
|
|
422
|
-
const maxName = computed(() => props.maxLabel ?? messages.value.slider.maximumThumb);
|
|
423
|
-
const requiredName = computed(() => props.requiredLabel ?? messages.value.slider.required);
|
|
424
|
-
const press = usePressFeedback({ hasOverlay: false });
|
|
425
|
-
const parts = useFieldPartStyling({
|
|
426
|
-
component: "Slider",
|
|
427
|
-
props,
|
|
428
|
-
attrs,
|
|
429
|
-
reservedAttrs: [
|
|
430
|
-
"aria-labelledby",
|
|
431
|
-
"aria-describedby",
|
|
432
|
-
"onPointerdown",
|
|
433
|
-
"onPointermove",
|
|
434
|
-
"onPointerup",
|
|
435
|
-
"onPointercancel",
|
|
436
|
-
"onPointerDown",
|
|
437
|
-
"onPointerMove",
|
|
438
|
-
"onPointerUp",
|
|
439
|
-
"onPointerCancel"
|
|
440
|
-
]
|
|
441
|
-
});
|
|
442
|
-
const track = useTemplateRef("track");
|
|
443
|
-
const generatedId = `astryx-slider-${useId()}`;
|
|
444
|
-
const inputId = computed(() => props.id ?? generatedId);
|
|
445
|
-
const control = useSlider({
|
|
446
|
-
props,
|
|
447
|
-
model: () => model.value,
|
|
448
|
-
track,
|
|
449
|
-
change: (value) => {
|
|
450
|
-
model.value = value;
|
|
451
|
-
emit("change", value);
|
|
452
|
-
},
|
|
453
|
-
end: (value) => emit("changeEnd", value)
|
|
454
|
-
});
|
|
455
|
-
const { min, max, values, dragging } = control;
|
|
456
|
-
const isRange = computed(() => values.value.length === 2);
|
|
457
|
-
const showsDisabledMessage = computed(() => !!props.isDisabled && !!props.disabledMessage?.trim());
|
|
458
|
-
const tooltip = useButtonTooltip(showsDisabledMessage);
|
|
459
|
-
const ariaRequired = useAriaRequired(props);
|
|
460
|
-
const required = computed(() => ariaRequired.value === true);
|
|
461
|
-
const marks = computed(() => props.marks?.filter((mark) => Number.isFinite(mark.value) && mark.value >= min.value && mark.value <= max.value) ?? []);
|
|
462
|
-
const hasMarkLabels = computed(() => marks.value.some((mark) => mark.label));
|
|
463
|
-
const format = (value) => props.formatValue?.(value) ?? String(value);
|
|
464
|
-
const displayText = computed(() => values.value.map(format).join(" – "));
|
|
465
|
-
const fillStyle = computed(() => {
|
|
466
|
-
const start = isRange.value ? position(percent(values.value[0], min.value, max.value)) : "0px";
|
|
467
|
-
const end = position(percent(values.value.at(-1), min.value, max.value));
|
|
468
|
-
return props.orientation === "horizontal" ? {
|
|
469
|
-
insetInlineStart: start,
|
|
470
|
-
width: `calc(${end} - ${start})`
|
|
471
|
-
} : {
|
|
472
|
-
bottom: start,
|
|
473
|
-
height: `calc(${end} - ${start})`
|
|
474
|
-
};
|
|
475
|
-
});
|
|
476
|
-
function describedBy(fieldIds) {
|
|
477
|
-
return [
|
|
478
|
-
attrs["aria-describedby"],
|
|
479
|
-
fieldIds,
|
|
480
|
-
required.value ? `${inputId.value}-required` : void 0,
|
|
481
|
-
showsDisabledMessage.value ? `${inputId.value}-disabled` : void 0
|
|
482
|
-
].filter(Boolean).join(" ") || void 0;
|
|
483
|
-
}
|
|
484
|
-
function markStyle(value) {
|
|
485
|
-
const offset = position(percent(value, min.value, max.value));
|
|
486
|
-
return props.orientation === "horizontal" ? { insetInlineStart: offset } : { bottom: offset };
|
|
487
|
-
}
|
|
488
|
-
function isFilled(value) {
|
|
489
|
-
return value <= values.value.at(-1) && (!isRange.value || value >= values.value[0]);
|
|
490
|
-
}
|
|
491
|
-
function callConsumerPointer(event) {
|
|
492
|
-
if (props.isDisabled) return;
|
|
493
|
-
for (const name of {
|
|
494
|
-
pointerdown: ["onPointerdown", "onPointerDown"],
|
|
495
|
-
pointermove: ["onPointermove", "onPointerMove"],
|
|
496
|
-
pointerup: ["onPointerup", "onPointerUp"],
|
|
497
|
-
pointercancel: ["onPointercancel", "onPointerCancel"]
|
|
498
|
-
}[event.type] ?? []) {
|
|
499
|
-
const handler = attrs[name];
|
|
500
|
-
if (typeof handler === "function") handler(event);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
function onPointerDown(event) {
|
|
504
|
-
control.pointerDown(event);
|
|
505
|
-
callConsumerPointer(event);
|
|
506
|
-
}
|
|
507
|
-
function onPointerMove(event) {
|
|
508
|
-
control.pointerMove(event);
|
|
509
|
-
callConsumerPointer(event);
|
|
510
|
-
}
|
|
511
|
-
function onPointerEnd(event) {
|
|
512
|
-
control.pointerEnd(event);
|
|
513
|
-
callConsumerPointer(event);
|
|
514
|
-
}
|
|
515
|
-
const shellStyle = computed(() => [attrs.style, parts.containerStyle.value]);
|
|
516
|
-
const thumbAttrs = computed(() => isRange.value ? {} : withholdCallerHandlers(parts.forwardedAttrs(), !!props.isDisabled));
|
|
517
|
-
const trackAttrs = computed(() => ({
|
|
518
|
-
...isRange.value ? withholdCallerHandlers(parts.forwardedAttrs(), !!props.isDisabled) : {},
|
|
519
|
-
...props.isDisabled ? {} : press.pressableProps
|
|
520
|
-
}));
|
|
521
|
-
function focus(index = 0, options) {
|
|
522
|
-
track.value?.querySelectorAll("[role=\"slider\"]")[index]?.focus(options);
|
|
523
|
-
}
|
|
524
|
-
function blur() {
|
|
525
|
-
const active = track.value?.ownerDocument.activeElement;
|
|
526
|
-
if (active instanceof HTMLElement && track.value?.contains(active)) active.blur();
|
|
527
|
-
}
|
|
528
|
-
__expose({
|
|
529
|
-
element: computed(() => {
|
|
530
|
-
if (isRange.value) return track.value;
|
|
531
|
-
return track.value?.querySelector("[role=\"slider\"]") ?? null;
|
|
532
|
-
}),
|
|
533
|
-
focus,
|
|
534
|
-
blur
|
|
535
|
-
});
|
|
536
|
-
return (_ctx, _cache) => {
|
|
537
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$4, {
|
|
538
|
-
class: normalizeClass(["astryx-slider", [unref(attrs).class, unref(parts).containerClass.value]]),
|
|
539
|
-
style: normalizeStyle(shellStyle.value),
|
|
540
|
-
"data-orientation": __props.orientation,
|
|
541
|
-
"data-disabled": __props.isDisabled || void 0,
|
|
542
|
-
"data-mark-labels": hasMarkLabels.value || void 0,
|
|
543
|
-
label: __props.label,
|
|
544
|
-
"input-id": inputId.value,
|
|
545
|
-
"is-group-label": "",
|
|
546
|
-
description: __props.description,
|
|
547
|
-
width: __props.width,
|
|
548
|
-
"is-label-hidden": __props.isLabelHidden,
|
|
549
|
-
"is-disabled": __props.isDisabled,
|
|
550
|
-
"is-optional": __props.isOptional,
|
|
551
|
-
"is-required": __props.isRequired,
|
|
552
|
-
"label-icon": __props.labelIcon,
|
|
553
|
-
"label-tooltip": __props.labelTooltip,
|
|
554
|
-
"optional-label": __props.optionalLabel,
|
|
555
|
-
"required-label": __props.requiredLabel,
|
|
556
|
-
status: __props.status,
|
|
557
|
-
"status-variant": "detached"
|
|
558
|
-
}, createSlots({
|
|
559
|
-
default: withCtx((field) => [
|
|
560
|
-
createElementVNode("div", _hoisted_1, [
|
|
561
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
|
|
562
|
-
return openBlock(), createElementBlock("input", {
|
|
563
|
-
key: index,
|
|
564
|
-
type: "hidden",
|
|
565
|
-
name: __props.htmlName,
|
|
566
|
-
value,
|
|
567
|
-
disabled: __props.isDisabled,
|
|
568
|
-
form: __props.form
|
|
569
|
-
}, null, 8, _hoisted_2);
|
|
570
|
-
}), 128)),
|
|
571
|
-
createElementVNode("div", mergeProps({
|
|
572
|
-
ref_key: "track",
|
|
573
|
-
ref: track
|
|
574
|
-
}, trackAttrs.value, {
|
|
575
|
-
class: ["astryx-slider-control", __props.controlClass],
|
|
576
|
-
style: __props.controlStyle,
|
|
577
|
-
"data-orientation": __props.orientation,
|
|
578
|
-
"data-disabled": __props.isDisabled || void 0,
|
|
579
|
-
role: isRange.value ? "group" : void 0,
|
|
580
|
-
"aria-labelledby": isRange.value ? [field.labelId, unref(attrs)["aria-labelledby"]].filter(Boolean).join(" ") : void 0,
|
|
581
|
-
onPointerdown: onPointerDown,
|
|
582
|
-
onPointermove: onPointerMove,
|
|
583
|
-
onPointerup: onPointerEnd,
|
|
584
|
-
onPointercancel: onPointerEnd,
|
|
585
|
-
onLostpointercapture: onPointerEnd,
|
|
586
|
-
onPointerenter: _cache[1] || (_cache[1] = (...args) => unref(tooltip).onPointerEnter && unref(tooltip).onPointerEnter(...args)),
|
|
587
|
-
onPointerleave: _cache[2] || (_cache[2] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args)),
|
|
588
|
-
onFocusin: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onTooltipPointerEnter && unref(tooltip).onTooltipPointerEnter(...args)),
|
|
589
|
-
onFocusout: _cache[4] || (_cache[4] = (...args) => unref(tooltip).onBlur && unref(tooltip).onBlur(...args)),
|
|
590
|
-
onKeydown: _cache[5] || (_cache[5] = withKeys((...args) => unref(tooltip).hideImmediately && unref(tooltip).hideImmediately(...args), ["esc"]))
|
|
591
|
-
}), [
|
|
592
|
-
_cache[6] || (_cache[6] = createElementVNode("div", {
|
|
593
|
-
class: "astryx-slider-track",
|
|
594
|
-
"aria-hidden": "true"
|
|
595
|
-
}, null, -1)),
|
|
596
|
-
createElementVNode("div", {
|
|
597
|
-
class: "astryx-slider-fill",
|
|
598
|
-
style: normalizeStyle(fillStyle.value),
|
|
599
|
-
"aria-hidden": "true"
|
|
600
|
-
}, null, 4),
|
|
601
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(marks.value, (mark) => {
|
|
602
|
-
return openBlock(), createElementBlock("span", {
|
|
603
|
-
key: mark.value,
|
|
604
|
-
class: "astryx-slider-mark",
|
|
605
|
-
"data-mark-value": mark.value,
|
|
606
|
-
"data-filled": isFilled(mark.value) || void 0,
|
|
607
|
-
style: normalizeStyle(markStyle(mark.value)),
|
|
608
|
-
"aria-hidden": "true"
|
|
609
|
-
}, [mark.label ? (openBlock(), createElementBlock("span", {
|
|
610
|
-
key: 0,
|
|
611
|
-
class: "astryx-slider-mark-label",
|
|
612
|
-
"data-mark-value": mark.value
|
|
613
|
-
}, toDisplayString(mark.label), 9, _hoisted_5)) : createCommentVNode("v-if", true)], 12, _hoisted_4);
|
|
614
|
-
}), 128)),
|
|
615
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
|
|
616
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
617
|
-
id: `${inputId.value}-${index}`,
|
|
618
|
-
key: index,
|
|
619
|
-
index,
|
|
620
|
-
value,
|
|
621
|
-
percentage: unref(percent)(value, unref(min), unref(max)),
|
|
622
|
-
min: unref(control).bounds(index)[0],
|
|
623
|
-
max: unref(control).bounds(index)[1],
|
|
624
|
-
orientation: __props.orientation,
|
|
625
|
-
"labelled-by": [
|
|
626
|
-
field.labelId,
|
|
627
|
-
isRange.value ? `${inputId.value}-label-${index}` : void 0,
|
|
628
|
-
isRange.value ? void 0 : unref(attrs)["aria-labelledby"]
|
|
629
|
-
].filter(Boolean).join(" "),
|
|
630
|
-
"described-by": describedBy(field.describedBy),
|
|
631
|
-
"value-text": __props.formatValue ? format(value) : void 0,
|
|
632
|
-
"is-invalid": __props.status?.type === "error",
|
|
633
|
-
"is-disabled": __props.isDisabled,
|
|
634
|
-
"is-focusable": !__props.isDisabled || showsDisabledMessage.value,
|
|
635
|
-
dragging: unref(dragging) === index,
|
|
636
|
-
"drag-active": unref(dragging) !== null,
|
|
637
|
-
"keyboard-focus": unref(control).keyboardFocus.value === index,
|
|
638
|
-
"extra-attrs": thumbAttrs.value,
|
|
639
|
-
"tooltip-text": __props.valueDisplay === "tooltip" ? format(value) : void 0,
|
|
640
|
-
onKeydown: ($event) => unref(control).keydown(index, $event),
|
|
641
|
-
onFocus: ($event) => unref(control).thumbFocus(index),
|
|
642
|
-
onBlur: _cache[0] || (_cache[0] = ($event) => unref(control).thumbBlur())
|
|
643
|
-
}, null, 8, [
|
|
644
|
-
"id",
|
|
645
|
-
"index",
|
|
646
|
-
"value",
|
|
647
|
-
"percentage",
|
|
648
|
-
"min",
|
|
649
|
-
"max",
|
|
650
|
-
"orientation",
|
|
651
|
-
"labelled-by",
|
|
652
|
-
"described-by",
|
|
653
|
-
"value-text",
|
|
654
|
-
"is-invalid",
|
|
655
|
-
"is-disabled",
|
|
656
|
-
"is-focusable",
|
|
657
|
-
"dragging",
|
|
658
|
-
"drag-active",
|
|
659
|
-
"keyboard-focus",
|
|
660
|
-
"extra-attrs",
|
|
661
|
-
"tooltip-text",
|
|
662
|
-
"onKeydown",
|
|
663
|
-
"onFocus"
|
|
664
|
-
]);
|
|
665
|
-
}), 128))
|
|
666
|
-
], 16, _hoisted_3),
|
|
667
|
-
__props.valueDisplay === "text" ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(displayText.value), 1)) : createCommentVNode("v-if", true)
|
|
668
|
-
]),
|
|
669
|
-
isRange.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_sfc_main$2, { id: `${inputId.value}-label-0` }, {
|
|
670
|
-
default: withCtx(() => [createTextVNode(toDisplayString(minName.value), 1)]),
|
|
671
|
-
_: 1
|
|
672
|
-
}, 8, ["id"]), createVNode(_sfc_main$2, { id: `${inputId.value}-label-1` }, {
|
|
673
|
-
default: withCtx(() => [createTextVNode(toDisplayString(maxName.value), 1)]),
|
|
674
|
-
_: 1
|
|
675
|
-
}, 8, ["id"])], 64)) : createCommentVNode("v-if", true),
|
|
676
|
-
required.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
677
|
-
key: 1,
|
|
678
|
-
id: `${inputId.value}-required`
|
|
679
|
-
}, {
|
|
680
|
-
default: withCtx(() => [createTextVNode(toDisplayString(requiredName.value), 1)]),
|
|
681
|
-
_: 1
|
|
682
|
-
}, 8, ["id"])) : createCommentVNode("v-if", true),
|
|
683
|
-
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
684
|
-
key: 2,
|
|
685
|
-
id: `${inputId.value}-disabled`
|
|
686
|
-
}, {
|
|
687
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.disabledMessage), 1)]),
|
|
688
|
-
_: 1
|
|
689
|
-
}, 8, ["id"])) : createCommentVNode("v-if", true)
|
|
690
|
-
]),
|
|
691
|
-
_: 2
|
|
692
|
-
}, [_ctx.$slots.labelIcon ? {
|
|
693
|
-
name: "labelIcon",
|
|
694
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "labelIcon")]),
|
|
695
|
-
key: "0"
|
|
696
|
-
} : void 0]), 1032, [
|
|
697
|
-
"class",
|
|
698
|
-
"style",
|
|
699
|
-
"data-orientation",
|
|
700
|
-
"data-disabled",
|
|
701
|
-
"data-mark-labels",
|
|
702
|
-
"label",
|
|
703
|
-
"input-id",
|
|
704
|
-
"description",
|
|
705
|
-
"width",
|
|
706
|
-
"is-label-hidden",
|
|
707
|
-
"is-disabled",
|
|
708
|
-
"is-optional",
|
|
709
|
-
"is-required",
|
|
710
|
-
"label-icon",
|
|
711
|
-
"label-tooltip",
|
|
712
|
-
"optional-label",
|
|
713
|
-
"required-label",
|
|
714
|
-
"status"
|
|
715
|
-
]), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
716
|
-
key: 0,
|
|
717
|
-
id: `${inputId.value}-disabled-tooltip`,
|
|
718
|
-
anchor: track.value,
|
|
719
|
-
open: unref(tooltip).isOpen.value,
|
|
720
|
-
text: __props.disabledMessage ?? "",
|
|
721
|
-
onPointerEnter: unref(tooltip).onTooltipPointerEnter,
|
|
722
|
-
onPointerLeave: unref(tooltip).onTooltipPointerLeave
|
|
723
|
-
}, null, 8, [
|
|
724
|
-
"id",
|
|
725
|
-
"anchor",
|
|
726
|
-
"open",
|
|
727
|
-
"text",
|
|
728
|
-
"onPointerEnter",
|
|
729
|
-
"onPointerLeave"
|
|
730
|
-
])) : createCommentVNode("v-if", true)], 64);
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
});
|
|
734
|
-
//#endregion
|
|
735
|
-
export { _sfc_main as t };
|