@astryx-vue/core 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-0wTvOo3H.js → AppShell-awAKicsc.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-pPZ4dI_s.js → Avatar-DXBjJ88C.js} +47 -34
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-kpAeKLNq.js} +57 -13
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-GbGxrqQO.js → Banner-BdvuyzAe.js} +71 -35
- package/dist/Blockquote/index.js +1 -1
- package/dist/Blockquote-DRoKdcxZ.js +27 -0
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-pt7m4CvC.js → BottomSheet-B4sc3F1S.js} +286 -140
- package/dist/{BottomSheet-JYMB_Ofl.js → BottomSheet-m54uCMJN.js} +20 -4
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Breadcrumbs-D4ZzHEB0.js +223 -0
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
- package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-B7vIowKq.js → Calendar-CjK-JUDM.js} +5 -5
- package/dist/Card/index.d.ts +2 -2
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CA8zpD9v.js → Carousel-D262qigj.js} +8 -8
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bmna9EOA.js → Chat-DD_mlIP3.js} +165 -101
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-D8vTmAMZ.js} +20 -12
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-DCvHewHB.js} +155 -38
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-Djgwa0ko.js → Citation-C69BgxW3.js} +8 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DUsC-j03.js → ClickableCard-ChAfiw9T.js} +9 -6
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-D0BFubut.js → CodeBlock-DsbwTBiT.js} +8 -8
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-YHsUNg3V.js → CommandPalette-CZ7CZglZ.js} +147 -67
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-CIz6DDmY.js} +114 -28
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-CxoiRh_h.js} +297 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DT518j5E.js → DateInput-C67HCOU-.js} +563 -72
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Dsf5Tyf-.js} +91 -26
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/DateTimeInput-tfM1y5nZ.js +562 -0
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-BiOSKQso.js → Dialog-DT1GzCrB.js} +28 -11
- package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +1 -1
- package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CoOQVlRp.js → DropdownMenu-C6wBC18g.js} +84 -56
- package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-G-pWSiBk.js} +479 -264
- package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
- package/dist/Field/index.d.ts +4 -3
- package/dist/Field/index.js +4 -3
- package/dist/{Field-D5gUEGw4.js → Field-JIxT3xCh.js} +5 -4
- package/dist/FieldIcon-BFSHZEs_.js +40 -0
- package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-BbgLt4ug.js} +4 -4
- package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-CHqp1y3z.js} +13 -8
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-MjY19ERl.js → FieldStatus-DaAB3TIt.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BpdiO1V8.js → FileInput-Bi1uty-F.js} +108 -31
- package/dist/FormLayout/index.d.ts +1 -1
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +2 -1
- package/dist/InputClearButton-CfSIqc-V.js +40 -0
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-CA03Smrs.js → InputGroup-D3F-QnET.js} +2 -2
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-CVV5QDgp.js} +5 -9
- package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
- package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
- package/dist/LayerProvider/index.js +1 -1
- package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-C6RHllr-.js → Layout-JJRCG7Mf.js} +1 -1
- package/dist/{LayoutPanel-DXOsaeQb.js → LayoutPanel-zM5vjrKS.js} +12 -8
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DTF9EdTG.js → Lightbox-CjXhbDPc.js} +14 -12
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BqHCtiyt.js → Link-ClNkTN1Q.js} +29 -12
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
- package/dist/Markdown/index.d.ts +5 -2
- package/dist/Markdown/index.js +4 -2
- package/dist/Markdown/parser/index.d.ts +4 -0
- package/dist/Markdown/parser/index.js +2 -0
- package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
- package/dist/Markdown/plugin-protocol/index.js +107 -0
- package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
- package/dist/Markdown/plugin-renderer/index.js +42 -0
- package/dist/{Markdown-CvtN7HnF.js → Markdown-EIBrwQrb.js} +195 -524
- package/dist/MediaTheme-DlLqYhDy.js +433 -0
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-B-OelQlt.js → MetadataList-DLlSLX1n.js} +15 -7
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DxGz0xKA.js → MobileNavToggle-DgJYyzT6.js} +52 -17
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-C8BEt6-O.js} +74 -61
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/MultiSelector-C7NCAtwW.js +1456 -0
- package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
- package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-DQXisuaX.js} +29 -26
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
- package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-3u3NZWnv.js +727 -0
- package/dist/Outline/index.d.ts +2 -2
- package/dist/Outline/index.js +2 -2
- package/dist/{Outline-755h-lMP.js → Outline-8szj9eXu.js} +91 -6
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BizpEwH8.js} +23 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DqwNQFRp.js → Pagination-Cihr1CjD.js} +2 -2
- package/dist/PickerWheel-CSwUYfes.js +69 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DJf8POzL.js → Popover-78dFjTb9.js} +20 -15
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DvjiPqMZ.js → PowerSearch-BHx91ypY.js} +778 -590
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-DeSIRrgt.js} +94 -26
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-xY1cwLdZ.js → RadioList-Co2lmetC.js} +57 -8
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-DjLZ2pcq.js} +103 -50
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-D4dCJv9I.js → ScrollableArea-0u6RWtGG.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Cku4dRzc.js → SelectableCard-BEqnhPaX.js} +16 -11
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-swa3RNQI.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BF8mYDxl.js → SideNav-BH6XKsW2.js} +56 -42
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DWobsPgm.js → Slider-DG2YXll8.js} +172 -46
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-BY8iQz--.js +200 -0
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CTsTFfar.js → Stack-Bb_h60t3.js} +1 -1
- package/dist/{Stack-kQlYbbL4.js → Stack-Bp-XN9J4.js} +12 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CE8dHysu.js → Stepper-FtkTq5qR.js} +127 -113
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DaVPRxvN.js → Switch-0JKvJluV.js} +38 -22
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIkK9sgK.js → TabList-cpjvnbhx.js} +205 -63
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-fecqnm7P.js → Table-fWs_ZQBF.js} +735 -461
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Ab5Sw60T.js → TextArea-CwSfEjT1.js} +110 -50
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-zFT1_qgI.js → TextInput-CavITage.js} +71 -38
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -2
- package/dist/Theme-BbDT8B_C.js +2125 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-DpJnaNbg.js} +17 -14
- package/dist/{TimeField-CoHDGmsP.js → TimeField-DefNjDIT.js} +297 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D2k3Ux3p.js → TimeInput-j5vzN8MG.js} +78 -9
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-xpQKCk0d.js → Timestamp-dtT4yADD.js} +9 -9
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast-igtJYSw0.js +685 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DsntTYhQ.js → Token-DhsAtAH6.js} +32 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-B5C_qY7t.js → Tokenizer-BGdj78UK.js} +107 -23
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Ciq0l1w7.js → TopNav-Dw0m387B.js} +23 -22
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BUz-KZJd.js → TreeList-Bunn7u3T.js} +129 -46
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-JP9RT87x.js → Typeahead-DRyf2HEh.js} +123 -26
- package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BY5__sPC.js} +141 -51
- package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
- package/dist/characters-rcDbGt71.d.ts +29 -0
- package/dist/characters-wTnzjkkR.js +58 -0
- package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
- package/dist/composables/index.d.ts +5 -4
- package/dist/composables/index.js +23 -18
- package/dist/{composables-CbKx9C1Y.js → composables-CnsDaMuU.js} +167 -197
- package/dist/context-B6UElI5X.js +5 -0
- package/dist/context-CM-cjGg_.js +1425 -0
- package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
- package/dist/context-IvbU9c3T.js +8 -0
- package/dist/context-pjBxaMSh.js +28 -0
- package/dist/fieldParts--SyRZVQG.js +44 -0
- package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
- package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
- package/dist/hoverIntent-DMHGb85c.js +115 -0
- package/dist/{index-ClNU2Th8.d.ts → index-3t5RAfNP.d.ts} +6 -2
- package/dist/{index-B9e52paP.d.ts → index-5LVG3QyV.d.ts} +1 -1
- package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
- package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
- package/dist/{index-Cn-sSds-.d.ts → index-B1t1oQWH.d.ts} +24 -1
- package/dist/{index-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
- package/dist/{index-yT1yiiww.d.ts → index-BI6jikpA.d.ts} +23 -11
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
- package/dist/{index-Crp3NFLW.d.ts → index-BZKgbyN9.d.ts} +1 -1
- package/dist/{index-Bu8NA2SD.d.ts → index-BaxM-pFP.d.ts} +12 -3
- package/dist/{index-BVKivP59.d.ts → index-Bgk1Rj2A.d.ts} +32 -3
- package/dist/index-BkUkm6Al.d.ts +11 -0
- package/dist/index-Bo-ofFyg.d.ts +166 -0
- package/dist/{index-B1WJxt-n.d.ts → index-C-tFz2Yx.d.ts} +17 -7
- package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
- package/dist/{index-CqE4Bf3Q.d.ts → index-C732aNMY.d.ts} +18 -4
- package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
- package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
- package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
- package/dist/index-CKUfpmFL.d.ts +375 -0
- package/dist/{index-CL1T2j4y.d.ts → index-CL8JvxHW.d.ts} +3 -3
- package/dist/{index-IBAInumL.d.ts → index-CMme-xmL.d.ts} +19 -6
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
- package/dist/{index-B42oE_F-.d.ts → index-CT5OEUxd.d.ts} +17 -4
- package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
- package/dist/{index-Cde5JvtX.d.ts → index-CUVmtB5-.d.ts} +13 -6
- package/dist/{index-DXpSFlPG.d.ts → index-CWaSYtk9.d.ts} +4 -4
- package/dist/{index-CVn0GBdB.d.ts → index-Ca8VIE4l.d.ts} +1 -1
- package/dist/{index-Cyb9Du5Z.d.ts → index-CfR2Z0uG.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
- package/dist/{index-hCpxKePE.d.ts → index-D5N9ikrS.d.ts} +1 -1
- package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
- package/dist/{index-i0tNFWfz.d.ts → index-D8lv2BiD.d.ts} +3 -1
- package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
- package/dist/{index-0QGtSf3r.d.ts → index-DFLPv9io.d.ts} +4 -3
- package/dist/{index-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
- package/dist/{index-D41_xqjs.d.ts → index-DTuhnqHb.d.ts} +16 -9
- package/dist/{index-B3Fomy15.d.ts → index-DbiZvj1P.d.ts} +4 -4
- package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-BhpAUzUr.d.ts → index-Dy746dfn.d.ts} +1 -1
- package/dist/{index-GI9xIV9l.d.ts → index-JL4auphT.d.ts} +2 -2
- package/dist/{index-DVmgNb78.d.ts → index-TA1zVibb.d.ts} +4 -4
- package/dist/{index-DUaLJO7l.d.ts → index-UA93Im7H.d.ts} +155 -109
- package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
- package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
- package/dist/{index-CICeEoZV.d.ts → index-pNtfr-RW.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-pYh4gqgl.d.ts} +1 -1
- package/dist/index.d.ts +81 -75
- package/dist/index.js +150 -136
- package/dist/inlineSize-BNe8wggI.js +66 -0
- package/dist/inputPresentation-BOyHkCDr.js +62 -0
- package/dist/interactionModality-ACpTMhak.js +44 -0
- package/dist/isApplePlatform-B1ju6F5B.js +27 -0
- package/dist/isRenderable-BnKHIqfd.js +21 -0
- package/dist/layerDepth-CNDh-IHb.js +181 -0
- package/dist/link-DuuA2eCL.js +30 -0
- package/dist/loadCatalog-CsZFr9dg.js +424 -0
- package/dist/loadCatalog-opk5hs94.d.ts +803 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-D1Z3K290.js +343 -0
- package/dist/modalOutlet-CUOcrhIu.js +56 -0
- package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
- package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
- package/dist/protocol-DHxY0NI8.js +113 -0
- package/dist/protocol-DwUmpC5G.d.ts +240 -0
- package/dist/publicParser-B6XMcsB2.d.ts +141 -0
- package/dist/publicParser-DWUMCx7j.js +1437 -0
- package/dist/resizableChannel-3vivrEcT.js +20 -0
- package/dist/safeUrl-CsvfcZ9m.js +54 -0
- package/dist/scopedProvide-C-Df7c15.js +30 -0
- package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
- package/dist/scrollLock-C3aT4-0z.js +102 -0
- package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-DtyScdZs.js} +5 -14
- package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
- package/dist/slug-DAK6hdbr.js +17 -0
- package/dist/syntaxContext-DmIfNNtb.js +4 -0
- package/dist/triggerVariant-BsL8jMHs.js +16 -0
- package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
- package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
- package/dist/upstreamMap-ocuIRfI2.js +893 -0
- package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
- package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
- package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
- package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
- package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
- package/dist/{useIndicator-i1NORM7W.js → useIndicator-D9Y0dJsm.js} +5 -23
- package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
- package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-CWkCeMyX.js} +2 -2
- package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
- package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
- package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
- package/dist/useMenuHover-Djreu23i.js +170 -0
- package/dist/useMenuPress-8foxY8z4.js +764 -0
- package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
- package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
- package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
- package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
- package/dist/usePressFeedback-BJCpjEpv.js +319 -0
- package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
- package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
- package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
- package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
- package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
- package/dist/useScrollableArea-BE8b3qm7.js +222 -0
- package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
- package/dist/useTranslator-PEXMxDpv.js +35 -0
- package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +5 -0
- package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
- package/dist/utils-z3Q6BGIJ.js +819 -0
- package/locales/SOURCE.json +1 -1
- package/package.json +18 -2
- package/reset.css +364 -1
- package/styles/avatar-group.css +9 -1
- package/styles/badge.css +8 -5
- package/styles/banner.css +125 -26
- package/styles/blockquote.css +1 -0
- package/styles/bordered-control.css +1 -1
- package/styles/bottom-sheet.css +74 -6
- package/styles/breadcrumbs.css +16 -2
- package/styles/button-group.css +3 -1
- package/styles/button.css +53 -11
- package/styles/card.css +1 -1
- package/styles/chat.css +16 -6
- package/styles/checkbox-input.css +10 -0
- package/styles/clickable-card.css +10 -3
- package/styles/collapsible.css +12 -5
- package/styles/command-palette.css +29 -14
- package/styles/complex-selector.css +24 -5
- package/styles/context-menu.css +3 -3
- package/styles/date-input.css +111 -1
- package/styles/dialog-header.css +4 -1
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +12 -3
- package/styles/field.css +5 -0
- package/styles/form-layout.css +1 -0
- package/styles/heading.css +18 -8
- package/styles/icon.css +9 -9
- package/styles/kbd.css +1 -1
- package/styles/layer.css +72 -0
- package/styles/list.css +9 -2
- package/styles/metadata-list.css +1 -0
- package/styles/mobile-nav.css +4 -1
- package/styles/multi-selector.css +48 -1
- package/styles/nav-item.css +9 -2
- package/styles/nav-menu.css +12 -2
- package/styles/number-input.css +9 -1
- package/styles/overflow-list.css +1 -1
- package/styles/popover.css +2 -1
- package/styles/power-search.css +5 -3
- package/styles/pressable.css +63 -22
- package/styles/progress-bar.css +15 -3
- package/styles/radio.css +16 -0
- package/styles/resize-handle.css +42 -0
- package/styles/segmented-control.css +12 -4
- package/styles/selector.css +53 -1
- package/styles/side-nav.css +19 -0
- package/styles/slider.css +4 -3
- package/styles/spinner.css +48 -42
- package/styles/stepper.css +58 -4
- package/styles/switch.css +26 -0
- package/styles/tab-list.css +132 -3
- package/styles/table.css +88 -11
- package/styles/text-area.css +7 -1
- package/styles/text-input.css +1 -1
- package/styles/text.css +6 -6
- package/styles/thumbnail.css +11 -3
- package/styles/time-input.css +8 -0
- package/styles/toast.css +37 -3
- package/styles/token.css +2 -2
- package/styles/tokenizer.css +1 -1
- package/styles/toolbar.css +4 -1
- package/styles/tree-list.css +1 -1
- package/styles/typeahead.css +34 -1
- package/styles.css +1 -0
- package/dist/Blockquote-DFqBv_oJ.js +0 -18
- package/dist/Breadcrumbs-DIm4figq.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-A7m2O3bg.js +0 -268
- package/dist/FieldIcon--NTgW5IU.js +0 -44
- package/dist/MultiSelector-BtAUfQ3t.js +0 -990
- package/dist/NumberInput-AZ9x3oja.js +0 -473
- package/dist/Selector-DJ2BhUTV.js +0 -677
- package/dist/Spinner-9cYUCnDy.js +0 -84
- package/dist/Theme-CtaUWo4g.js +0 -1246
- package/dist/Toast-BuqIZV5z.js +0 -322
- package/dist/context-4PuqD1Ic.js +0 -4
- package/dist/context-D5-MwxnN.js +0 -4
- package/dist/context-iABt_ueM.js +0 -976
- package/dist/index-BH9PzQ1F.d.ts +0 -87
- package/dist/link-C4_WogdF.js +0 -18
- package/dist/loadCatalog-BGHKG_9N.d.ts +0 -457
- package/dist/loadCatalog-CXKqEB9s.js +0 -877
- package/dist/locale-DgkZEMTn.js +0 -105
- package/dist/platform-B_9W_aHW.js +0 -33
- package/dist/scrollLock-BzIvIimL.js +0 -42
- package/dist/useMenuPress-D-FRNrBW.js +0 -573
- package/dist/useScrollableArea-DDk_CluT.js +0 -172
- /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
4
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-B7cvG-_v.js";
|
|
5
|
+
import { t as _sfc_main$6 } from "./Icon-KDnUyY7f.js";
|
|
6
|
+
import { s as useAstryxMessages } from "./context-CM-cjGg_.js";
|
|
7
|
+
import { o as resetMenuPress, s as useLongPress, t as useMenuPress } from "./useMenuPress-8foxY8z4.js";
|
|
6
8
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
9
|
+
import { t as _sfc_main$7 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
7
10
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
8
|
-
import { t as _sfc_main$
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as _sfc_main$
|
|
12
|
-
import { t as _sfc_main$12 } from "./Spinner-9cYUCnDy.js";
|
|
11
|
+
import { t as _sfc_main$8 } from "./BottomSheet-B4sc3F1S.js";
|
|
12
|
+
import { c as contextMenuContextKey, d as useContextMenuSize, i as _sfc_main$9, l as submenuAncestorOpenKey, n as _sfc_main$11, r as _sfc_main$10, t as useMenuDrillIn, u as useContextMenu } from "./useMenuDrillIn-DhUnPvKs.js";
|
|
13
|
+
import { t as _sfc_main$12 } from "./Divider-mOZ6vIQw.js";
|
|
14
|
+
import { t as _sfc_main$13 } from "./Spinner-BY8iQz--.js";
|
|
13
15
|
import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
|
|
16
|
+
import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
|
|
14
17
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
15
18
|
import "../styles/context-menu.css";
|
|
16
19
|
//#region src/ContextMenu/ContextMenuDivider.vue
|
|
@@ -20,7 +23,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
20
23
|
props: { variant: { default: "subtle" } },
|
|
21
24
|
setup(__props) {
|
|
22
25
|
return (_ctx, _cache) => {
|
|
23
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
24
27
|
class: "astryx-context-menu-divider",
|
|
25
28
|
variant: __props.variant
|
|
26
29
|
}, null, 8, ["variant"]);
|
|
@@ -52,6 +55,222 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
57
|
//#endregion
|
|
58
|
+
//#region src/ContextMenu/menuNav.ts
|
|
59
|
+
/**
|
|
60
|
+
* Roles a menu row can carry. The selectable roles sit alongside the plain
|
|
61
|
+
* one so every row is reachable by arrow keys, typeahead, and Enter/Space.
|
|
62
|
+
*/
|
|
63
|
+
const MENU_ITEM_ROLES = /* @__PURE__ */ new Set([
|
|
64
|
+
"menuitem",
|
|
65
|
+
"menuitemradio",
|
|
66
|
+
"menuitemcheckbox"
|
|
67
|
+
]);
|
|
68
|
+
/** Selector for the activatable rows of one menu level. */
|
|
69
|
+
const MENU_ITEM_SELECTOR = [...MENU_ITEM_ROLES].map((role) => `[role="${role}"]:not([aria-disabled="true"])`).join(",");
|
|
70
|
+
/** Selector for any menu level, used to scope a level's rows and key events. */
|
|
71
|
+
const MENU_BOUNDARY_SELECTOR = "[role=\"menu\"]";
|
|
72
|
+
/**
|
|
73
|
+
* Whether a click carries a modifier or a non-primary button. On a row that is
|
|
74
|
+
* a link the browser gives such a click a meaning of its own, which the row
|
|
75
|
+
* must leave alone.
|
|
76
|
+
*/
|
|
77
|
+
function isModifiedClick(event) {
|
|
78
|
+
return event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || (event.button ?? 0) !== 0;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Activate a row from the keyboard: a synthesized click that carries the key's
|
|
82
|
+
* modifiers, so a modified Enter on a link row opens the way a modified click
|
|
83
|
+
* would. `detail` stays 0, the mark of a non-pointer activation.
|
|
84
|
+
*/
|
|
85
|
+
function activateMenuItem(row, key) {
|
|
86
|
+
row.dispatchEvent(new MouseEvent("click", {
|
|
87
|
+
altKey: key.altKey,
|
|
88
|
+
bubbles: true,
|
|
89
|
+
cancelable: true,
|
|
90
|
+
composed: true,
|
|
91
|
+
ctrlKey: key.ctrlKey,
|
|
92
|
+
metaKey: key.metaKey,
|
|
93
|
+
shiftKey: key.shiftKey
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
function isDisabledRow(row) {
|
|
97
|
+
return row.getAttribute("aria-disabled") === "true" || row.hasAttribute("disabled");
|
|
98
|
+
}
|
|
99
|
+
function isHiddenWithin(row, container) {
|
|
100
|
+
let current = row;
|
|
101
|
+
while (current != null && current !== container) {
|
|
102
|
+
if (current.hidden || current.getAttribute("aria-hidden") === "true") return true;
|
|
103
|
+
current = current.parentElement;
|
|
104
|
+
}
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
const TYPEAHEAD_RESET_MS = 750;
|
|
108
|
+
/**
|
|
109
|
+
* Roving focus, typeahead, and activation for one menu level.
|
|
110
|
+
*
|
|
111
|
+
* Both the menu panel and every submenu flyout own one of these, so a nested
|
|
112
|
+
* level keeps its own highlight, its own typeahead buffer, and its own keys
|
|
113
|
+
* without coordinating with its parent.
|
|
114
|
+
*/
|
|
115
|
+
function useMenuNav(options) {
|
|
116
|
+
const { menuRef, onClose } = options;
|
|
117
|
+
let typeaheadBuffer = "";
|
|
118
|
+
let typeaheadTimer;
|
|
119
|
+
function resetTypeahead() {
|
|
120
|
+
typeaheadBuffer = "";
|
|
121
|
+
if (typeaheadTimer != null) {
|
|
122
|
+
clearTimeout(typeaheadTimer);
|
|
123
|
+
typeaheadTimer = void 0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function getItems() {
|
|
127
|
+
const menu = menuRef.value;
|
|
128
|
+
if (menu == null) return [];
|
|
129
|
+
return Array.from(menu.querySelectorAll(MENU_ITEM_SELECTOR)).filter((row) => !isHiddenWithin(row, menu)).filter((row) => row.closest(MENU_BOUNDARY_SELECTOR) === menu);
|
|
130
|
+
}
|
|
131
|
+
function ownsEvent(event) {
|
|
132
|
+
const menu = menuRef.value;
|
|
133
|
+
const target = event.target;
|
|
134
|
+
if (menu == null || !(target instanceof Element)) return true;
|
|
135
|
+
return target.closest(MENU_BOUNDARY_SELECTOR) === menu;
|
|
136
|
+
}
|
|
137
|
+
function getCurrentIndex(items) {
|
|
138
|
+
const active = menuRef.value?.ownerDocument.activeElement ?? null;
|
|
139
|
+
return items.findIndex((row) => row === active || row.contains(active));
|
|
140
|
+
}
|
|
141
|
+
function findEnabledIndex(items, start, step, wrap) {
|
|
142
|
+
const count = items.length;
|
|
143
|
+
if (count === 0) return -1;
|
|
144
|
+
let index = start;
|
|
145
|
+
for (let i = 0; i < count; i++) {
|
|
146
|
+
if (index < 0 || index >= count) {
|
|
147
|
+
if (!wrap) return -1;
|
|
148
|
+
index = (index + count) % count;
|
|
149
|
+
}
|
|
150
|
+
const row = items[index];
|
|
151
|
+
if (row != null && !isDisabledRow(row)) return index;
|
|
152
|
+
index += step;
|
|
153
|
+
}
|
|
154
|
+
return -1;
|
|
155
|
+
}
|
|
156
|
+
function focusIndex(items, index) {
|
|
157
|
+
const row = items[index];
|
|
158
|
+
if (row == null) return false;
|
|
159
|
+
row.focus();
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
function focusFirst() {
|
|
163
|
+
const items = getItems();
|
|
164
|
+
return focusIndex(items, findEnabledIndex(items, 0, 1, false));
|
|
165
|
+
}
|
|
166
|
+
function focusLast() {
|
|
167
|
+
const items = getItems();
|
|
168
|
+
return focusIndex(items, findEnabledIndex(items, items.length - 1, -1, false));
|
|
169
|
+
}
|
|
170
|
+
function moveBy(direction) {
|
|
171
|
+
const items = getItems();
|
|
172
|
+
if (items.length === 0) return false;
|
|
173
|
+
const current = getCurrentIndex(items);
|
|
174
|
+
return focusIndex(items, findEnabledIndex(items, current === -1 ? direction === 1 ? 0 : items.length - 1 : current + direction, direction, true));
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* PageDown / PageUp move by the rows a viewport shows, never wrapping; in a
|
|
178
|
+
* menu that does not scroll they act as End and Home.
|
|
179
|
+
*/
|
|
180
|
+
function focusPage(direction) {
|
|
181
|
+
const menu = menuRef.value;
|
|
182
|
+
const all = getItems();
|
|
183
|
+
const active = all.map((row, index) => isDisabledRow(row) ? -1 : index).filter((index) => index !== -1);
|
|
184
|
+
if (menu == null || active.length === 0) return false;
|
|
185
|
+
if (menu.clientHeight === 0 || menu.scrollHeight <= menu.clientHeight) return direction === 1 ? focusLast() : focusFirst();
|
|
186
|
+
const rowHeight = all[active[0]]?.getBoundingClientRect().height ?? 0;
|
|
187
|
+
const perPage = rowHeight > 0 ? Math.max(1, Math.floor(menu.clientHeight / rowHeight)) : active.length;
|
|
188
|
+
const position = active.indexOf(getCurrentIndex(all));
|
|
189
|
+
const from = position === -1 ? direction === 1 ? -1 : active.length : position;
|
|
190
|
+
return focusIndex(all, active[Math.max(0, Math.min(active.length - 1, from + direction * perPage))]);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Typeahead over the rows' label elements. Repeated presses of the same
|
|
194
|
+
* character cycle through the matches instead of filtering deeper.
|
|
195
|
+
*/
|
|
196
|
+
function handleTypeahead(event) {
|
|
197
|
+
const isSpaceMidType = event.key === " " && typeaheadBuffer.length > 0;
|
|
198
|
+
if (!(event.key.length === 1 && !event.ctrlKey && !event.metaKey && event.key !== " ") && !isSpaceMidType) return false;
|
|
199
|
+
const items = getItems();
|
|
200
|
+
const labels = items.map((row) => row.querySelector(`[data-menu-item-label]`)?.textContent ?? row.textContent);
|
|
201
|
+
if (labels.length === 0) return false;
|
|
202
|
+
const char = event.key.toLowerCase();
|
|
203
|
+
const nextBuffer = typeaheadBuffer.length > 0 && [...typeaheadBuffer].every((entry) => entry === char) ? char : typeaheadBuffer + char;
|
|
204
|
+
typeaheadBuffer = nextBuffer;
|
|
205
|
+
if (typeaheadTimer != null) clearTimeout(typeaheadTimer);
|
|
206
|
+
typeaheadTimer = setTimeout(resetTypeahead, TYPEAHEAD_RESET_MS);
|
|
207
|
+
const current = getCurrentIndex(items);
|
|
208
|
+
const hasCurrent = current >= 0;
|
|
209
|
+
const start = hasCurrent ? current : 0;
|
|
210
|
+
const offset = hasCurrent && nextBuffer.length === 1 ? 1 : 0;
|
|
211
|
+
for (let i = 0; i < labels.length; i++) {
|
|
212
|
+
const index = (start + offset + i + labels.length) % labels.length;
|
|
213
|
+
if (isDisabledRow(items[index])) continue;
|
|
214
|
+
const label = labels[index];
|
|
215
|
+
if (label != null && label.trim().toLowerCase().startsWith(nextBuffer)) {
|
|
216
|
+
focusIndex(items, index);
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
function handleKeyDown(event) {
|
|
223
|
+
if (event.defaultPrevented || isImeKeyEvent(event) || event.ctrlKey || event.metaKey || event.altKey) return;
|
|
224
|
+
if (!ownsEvent(event)) return;
|
|
225
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
226
|
+
event.preventDefault();
|
|
227
|
+
if (event.repeat) return;
|
|
228
|
+
const active = menuRef.value?.ownerDocument.activeElement;
|
|
229
|
+
if (active instanceof HTMLElement && MENU_ITEM_ROLES.has(active.getAttribute("role") ?? "")) activateMenuItem(active, event);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (event.key === "Tab") {
|
|
233
|
+
onClose("tab");
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
if (event.key === "Escape") {
|
|
237
|
+
event.preventDefault();
|
|
238
|
+
onClose("escape");
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
if (handleTypeahead(event)) {
|
|
242
|
+
event.preventDefault();
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
if (event.key === "ArrowDown" && moveBy(1)) {
|
|
246
|
+
event.preventDefault();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
if (event.key === "ArrowUp" && moveBy(-1)) {
|
|
250
|
+
event.preventDefault();
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
if (event.key === "Home" && focusFirst()) {
|
|
254
|
+
event.preventDefault();
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
if (event.key === "End" && focusLast()) {
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
if (event.key === "PageDown" && focusPage(1)) {
|
|
262
|
+
event.preventDefault();
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
if (event.key === "PageUp" && focusPage(-1)) event.preventDefault();
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
focusFirst,
|
|
269
|
+
handleKeyDown,
|
|
270
|
+
resetTypeahead
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
55
274
|
//#region src/ContextMenu/ContextMenuItem.vue
|
|
56
275
|
const _hoisted_1$2 = {
|
|
57
276
|
key: 0,
|
|
@@ -145,7 +364,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
145
364
|
onPointermove: handlePointerMove
|
|
146
365
|
}, {
|
|
147
366
|
default: withCtx(() => [
|
|
148
|
-
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$
|
|
367
|
+
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
|
|
149
368
|
color: iconColor.value,
|
|
150
369
|
icon: __props.icon,
|
|
151
370
|
size: "sm"
|
|
@@ -169,93 +388,22 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
169
388
|
};
|
|
170
389
|
}
|
|
171
390
|
});
|
|
172
|
-
function sign(p1, p2, p3) {
|
|
173
|
-
return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);
|
|
174
|
-
}
|
|
175
|
-
function isPointInTriangle(p, a, b, c) {
|
|
176
|
-
const d1 = sign(p, a, b);
|
|
177
|
-
const d2 = sign(p, b, c);
|
|
178
|
-
const d3 = sign(p, c, a);
|
|
179
|
-
return !((d1 < 0 || d2 < 0 || d3 < 0) && (d1 > 0 || d2 > 0 || d3 > 0));
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Whether `point` lies inside the triangle from `origin` (where the pointer
|
|
183
|
-
* left the row) to the flyout's near edge — the edge facing the origin.
|
|
184
|
-
*/
|
|
185
|
-
function isPointInSafeTriangle(point, origin, flyout) {
|
|
186
|
-
const pad = 8;
|
|
187
|
-
let edgeStart;
|
|
188
|
-
let edgeEnd;
|
|
189
|
-
if (origin.x <= flyout.left) {
|
|
190
|
-
edgeStart = {
|
|
191
|
-
x: flyout.left,
|
|
192
|
-
y: flyout.top - pad
|
|
193
|
-
};
|
|
194
|
-
edgeEnd = {
|
|
195
|
-
x: flyout.left,
|
|
196
|
-
y: flyout.bottom + pad
|
|
197
|
-
};
|
|
198
|
-
} else if (origin.x >= flyout.right) {
|
|
199
|
-
edgeStart = {
|
|
200
|
-
x: flyout.right,
|
|
201
|
-
y: flyout.top - pad
|
|
202
|
-
};
|
|
203
|
-
edgeEnd = {
|
|
204
|
-
x: flyout.right,
|
|
205
|
-
y: flyout.bottom + pad
|
|
206
|
-
};
|
|
207
|
-
} else if (origin.y <= flyout.top) {
|
|
208
|
-
edgeStart = {
|
|
209
|
-
x: flyout.left - pad,
|
|
210
|
-
y: flyout.top
|
|
211
|
-
};
|
|
212
|
-
edgeEnd = {
|
|
213
|
-
x: flyout.right + pad,
|
|
214
|
-
y: flyout.top
|
|
215
|
-
};
|
|
216
|
-
} else if (origin.y >= flyout.bottom) {
|
|
217
|
-
edgeStart = {
|
|
218
|
-
x: flyout.left - pad,
|
|
219
|
-
y: flyout.bottom
|
|
220
|
-
};
|
|
221
|
-
edgeEnd = {
|
|
222
|
-
x: flyout.right + pad,
|
|
223
|
-
y: flyout.bottom
|
|
224
|
-
};
|
|
225
|
-
} else return false;
|
|
226
|
-
return isPointInTriangle(point, origin, edgeStart, edgeEnd);
|
|
227
|
-
}
|
|
228
391
|
function useSubmenuHover(options) {
|
|
229
392
|
const hasHover = useMediaQuery("(hover: hover)");
|
|
230
393
|
let showTimer;
|
|
231
|
-
let hideTimer;
|
|
232
|
-
let stopTriangle = null;
|
|
233
394
|
/** Hover opened this flyout, so leaving may close it. */
|
|
234
395
|
let provenance = null;
|
|
235
396
|
let hoverOpenedAt = 0;
|
|
236
397
|
/** When the flyout last closed. A pointer enter inside the suppress window is ignored. */
|
|
237
398
|
let closedAt = 0;
|
|
238
|
-
|
|
239
|
-
let isTracking = false;
|
|
240
|
-
let isInsideTriangle = () => false;
|
|
399
|
+
const hideTimer = createHideTimer(() => 200, closeNow);
|
|
241
400
|
function clearShowTimer() {
|
|
242
401
|
if (showTimer != null) clearTimeout(showTimer);
|
|
243
402
|
showTimer = void 0;
|
|
244
403
|
}
|
|
245
|
-
function clearHideTimer() {
|
|
246
|
-
if (hideTimer != null) clearTimeout(hideTimer);
|
|
247
|
-
hideTimer = void 0;
|
|
248
|
-
}
|
|
249
|
-
function clearTriangle() {
|
|
250
|
-
stopTriangle?.();
|
|
251
|
-
stopTriangle = null;
|
|
252
|
-
isTracking = false;
|
|
253
|
-
isInsideTriangle = () => false;
|
|
254
|
-
}
|
|
255
404
|
function cancelTimers() {
|
|
256
405
|
clearShowTimer();
|
|
257
|
-
|
|
258
|
-
clearTriangle();
|
|
406
|
+
hideTimer.clear();
|
|
259
407
|
}
|
|
260
408
|
function markClosed() {
|
|
261
409
|
const shouldStamp = options.isOpen() || provenance != null;
|
|
@@ -283,55 +431,16 @@ function useSubmenuHover(options) {
|
|
|
283
431
|
}
|
|
284
432
|
function scheduleHide(event) {
|
|
285
433
|
if (provenance !== "hover") return;
|
|
286
|
-
clearHideTimer();
|
|
287
|
-
clearTriangle();
|
|
288
|
-
let lastPoint = null;
|
|
289
|
-
const arm = () => {
|
|
290
|
-
clearHideTimer();
|
|
291
|
-
hideTimer = setTimeout(() => {
|
|
292
|
-
if (isTracking && lastPoint != null && isInsideTriangle(lastPoint)) {
|
|
293
|
-
arm();
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
closeNow();
|
|
297
|
-
}, 200);
|
|
298
|
-
};
|
|
299
|
-
arm();
|
|
300
|
-
const menu = unref(options.flyout);
|
|
301
434
|
const apex = event != null ? {
|
|
302
435
|
x: event.clientX,
|
|
303
436
|
y: event.clientY
|
|
304
437
|
} : null;
|
|
305
|
-
|
|
306
|
-
const rect = menu.getBoundingClientRect();
|
|
307
|
-
if (rect.width <= 0 || rect.height <= 0) return;
|
|
308
|
-
const doc = menu.ownerDocument;
|
|
309
|
-
isInsideTriangle = (point) => isPointInSafeTriangle(point, apex, rect);
|
|
310
|
-
isTracking = true;
|
|
311
|
-
lastPoint = apex;
|
|
312
|
-
const onPointerMove = (move) => {
|
|
313
|
-
const point = {
|
|
314
|
-
x: move.clientX,
|
|
315
|
-
y: move.clientY
|
|
316
|
-
};
|
|
317
|
-
lastPoint = point;
|
|
318
|
-
if (isInsideTriangle(point)) {
|
|
319
|
-
arm();
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
isTracking = false;
|
|
323
|
-
clearTriangle();
|
|
324
|
-
};
|
|
325
|
-
doc.addEventListener("pointermove", onPointerMove, true);
|
|
326
|
-
stopTriangle = () => {
|
|
327
|
-
doc.removeEventListener("pointermove", onPointerMove, true);
|
|
328
|
-
};
|
|
438
|
+
hideTimer.schedule(apex, unref(options.flyout), options.isOpen());
|
|
329
439
|
}
|
|
330
440
|
function onTriggerPointerEnter(event) {
|
|
331
441
|
if (event.pointerType !== "mouse" || !hasHover.value) return;
|
|
332
442
|
if (options.isOpen()) {
|
|
333
|
-
|
|
334
|
-
clearTriangle();
|
|
443
|
+
hideTimer.clear();
|
|
335
444
|
return;
|
|
336
445
|
}
|
|
337
446
|
if (closedAt > 0 && Date.now() - closedAt < 300) return;
|
|
@@ -351,9 +460,7 @@ function useSubmenuHover(options) {
|
|
|
351
460
|
}
|
|
352
461
|
function onFlyoutPointerEnter(event) {
|
|
353
462
|
if (event.pointerType !== "mouse") return;
|
|
354
|
-
|
|
355
|
-
clearHideTimer();
|
|
356
|
-
clearTriangle();
|
|
463
|
+
cancelTimers();
|
|
357
464
|
}
|
|
358
465
|
function onFlyoutPointerLeave(event) {
|
|
359
466
|
if (event.pointerType !== "mouse") return;
|
|
@@ -477,7 +584,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
477
584
|
const ancestorOpen = inject(submenuAncestorOpenKey, computed(() => true));
|
|
478
585
|
const showsFlyout = computed(() => isOpen.value && (menu?.isOpen.value ?? true) && ancestorOpen.value);
|
|
479
586
|
provide(submenuAncestorOpenKey, showsFlyout);
|
|
480
|
-
const { position } = usePositionedLayer({
|
|
587
|
+
const { position, teleportTarget } = usePositionedLayer({
|
|
481
588
|
anchor: row,
|
|
482
589
|
layer: flyout,
|
|
483
590
|
isOpen: showsFlyout,
|
|
@@ -505,7 +612,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
505
612
|
container: flyout,
|
|
506
613
|
trigger: row,
|
|
507
614
|
isEnabled: showsFlyout,
|
|
508
|
-
|
|
615
|
+
dismissOnEscape: "close",
|
|
509
616
|
onDismiss: () => close(true)
|
|
510
617
|
});
|
|
511
618
|
const hover = useSubmenuHover({
|
|
@@ -556,7 +663,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
556
663
|
if (focusRow) row.value?.focus();
|
|
557
664
|
}
|
|
558
665
|
function onRowKeyDown(event) {
|
|
559
|
-
if (props.isDisabled || event
|
|
666
|
+
if (props.isDisabled || isImeKeyEvent(event)) return;
|
|
560
667
|
if (event.key === "Enter" || event.key === " " || event.key === "ArrowRight") {
|
|
561
668
|
event.preventDefault();
|
|
562
669
|
open(true);
|
|
@@ -582,7 +689,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
582
689
|
element.focus({ preventScroll: true });
|
|
583
690
|
}
|
|
584
691
|
function onFlyoutKeyDown(event) {
|
|
585
|
-
if (event
|
|
692
|
+
if (isImeKeyEvent(event)) return;
|
|
586
693
|
if (event.key === "ArrowLeft") {
|
|
587
694
|
event.preventDefault();
|
|
588
695
|
close(true);
|
|
@@ -631,13 +738,13 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
631
738
|
onPointerleave: _cache[0] || (_cache[0] = (...args) => unref(hover).onTriggerPointerLeave && unref(hover).onTriggerPointerLeave(...args)),
|
|
632
739
|
onPointermove: onRowPointerMove
|
|
633
740
|
}), [
|
|
634
|
-
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$
|
|
741
|
+
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
|
|
635
742
|
icon: __props.icon,
|
|
636
743
|
color: "secondary",
|
|
637
744
|
size: "sm"
|
|
638
745
|
}, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
|
|
639
746
|
createElementVNode("span", _hoisted_3$1, [createElementVNode("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
640
|
-
createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_7, [createVNode(_sfc_main$
|
|
747
|
+
createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_7, [createVNode(_sfc_main$13, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$6, {
|
|
641
748
|
key: 1,
|
|
642
749
|
class: "astryx-context-menu-item__chevron",
|
|
643
750
|
icon: "chevronRight",
|
|
@@ -657,23 +764,26 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
657
764
|
hidden: unref(drillIsTop) ? void 0 : true,
|
|
658
765
|
tabindex: "-1",
|
|
659
766
|
onKeydown: onFlyoutKeyDown
|
|
660
|
-
}, [createVNode(_sfc_main$
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
767
|
+
}, [createVNode(_sfc_main$7, null, {
|
|
768
|
+
default: withCtx(() => [createVNode(_sfc_main$3, {
|
|
769
|
+
"has-close-on-select": false,
|
|
770
|
+
label: backLabel.value,
|
|
771
|
+
onClick: _cache[1] || (_cache[1] = ($event) => close(true))
|
|
772
|
+
}, {
|
|
773
|
+
icon: withCtx(() => [createVNode(_sfc_main$6, {
|
|
774
|
+
color: "secondary",
|
|
775
|
+
icon: "chevronLeft",
|
|
776
|
+
size: "sm"
|
|
777
|
+
})]),
|
|
778
|
+
_: 1
|
|
779
|
+
}, 8, ["label"]), renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
780
|
+
items: __props.items ?? [],
|
|
781
|
+
onSelect: onNestedSelect
|
|
782
|
+
}, null, 8, ["items"])])]),
|
|
783
|
+
_: 3
|
|
784
|
+
})], 40, _hoisted_8), [[vShow, unref(drillOnStack)]])], 8, ["to"])) : (openBlock(), createBlock(Teleport, {
|
|
675
785
|
key: 1,
|
|
676
|
-
to:
|
|
786
|
+
to: unref(teleportTarget)
|
|
677
787
|
}, [createVNode(Transition, {
|
|
678
788
|
name: "astryx-context-menu-flyout",
|
|
679
789
|
persisted: ""
|
|
@@ -694,12 +804,15 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
694
804
|
onKeydown: onFlyoutKeyDown,
|
|
695
805
|
onPointerenter: _cache[3] || (_cache[3] = (...args) => unref(hover).onFlyoutPointerEnter && unref(hover).onFlyoutPointerEnter(...args)),
|
|
696
806
|
onPointerleave: _cache[4] || (_cache[4] = (...args) => unref(hover).onFlyoutPointerLeave && unref(hover).onFlyoutPointerLeave(...args))
|
|
697
|
-
}, [
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
807
|
+
}, [createVNode(_sfc_main$7, null, {
|
|
808
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
809
|
+
items: __props.items ?? [],
|
|
810
|
+
onSelect: onNestedSelect
|
|
811
|
+
}, null, 8, ["items"])])]),
|
|
812
|
+
_: 3
|
|
813
|
+
})], 44, _hoisted_9), [[vShow, showsFlyout.value]])]),
|
|
701
814
|
_: 3
|
|
702
|
-
})]))
|
|
815
|
+
})], 8, ["to"]))
|
|
703
816
|
], 64);
|
|
704
817
|
};
|
|
705
818
|
}
|
|
@@ -760,7 +873,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
760
873
|
return (_ctx, _cache) => {
|
|
761
874
|
const _component_ContextMenuItems = resolveComponent("ContextMenuItems", true);
|
|
762
875
|
return openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (option, index) => {
|
|
763
|
-
return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) : isCheckbox(option) ? (openBlock(), createBlock(_sfc_main$
|
|
876
|
+
return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) : isCheckbox(option) ? (openBlock(), createBlock(_sfc_main$9, {
|
|
764
877
|
key: 1,
|
|
765
878
|
description: option.description,
|
|
766
879
|
"has-close-on-select": option.hasCloseOnSelect,
|
|
@@ -777,7 +890,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
777
890
|
"label",
|
|
778
891
|
"model-value",
|
|
779
892
|
"onUpdate:modelValue"
|
|
780
|
-
])) : isRadio(option) ? (openBlock(), createBlock(_sfc_main$
|
|
893
|
+
])) : isRadio(option) ? (openBlock(), createBlock(_sfc_main$10, {
|
|
781
894
|
key: 2,
|
|
782
895
|
"has-close-on-select": option.hasCloseOnSelect,
|
|
783
896
|
label: option.label,
|
|
@@ -785,7 +898,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
785
898
|
"onUpdate:modelValue": ($event) => onRadioModel(option, $event)
|
|
786
899
|
}, {
|
|
787
900
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(option.items, (choice, choiceIndex) => {
|
|
788
|
-
return openBlock(), createBlock(_sfc_main$
|
|
901
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
789
902
|
key: choice.id ?? choiceIndex,
|
|
790
903
|
description: choice.description,
|
|
791
904
|
icon: choice.icon,
|
|
@@ -858,7 +971,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
858
971
|
items: {},
|
|
859
972
|
menuWidth: {},
|
|
860
973
|
size: { default: "md" },
|
|
861
|
-
label: {
|
|
974
|
+
label: {},
|
|
862
975
|
isDisabled: {
|
|
863
976
|
type: Boolean,
|
|
864
977
|
default: false
|
|
@@ -882,6 +995,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
882
995
|
const props = __props;
|
|
883
996
|
const emit = __emit;
|
|
884
997
|
const attrs = useAttrs();
|
|
998
|
+
const messages = useAstryxMessages();
|
|
999
|
+
const menuName = computed(() => props.label ?? messages.value.contextMenu.label);
|
|
885
1000
|
/**
|
|
886
1001
|
* `class` and `style` describe the painted menu surface, the way upstream's
|
|
887
1002
|
* `className`/`style` do; everything else describes the trigger area.
|
|
@@ -910,7 +1025,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
910
1025
|
y: 0
|
|
911
1026
|
});
|
|
912
1027
|
let previouslyFocused = null;
|
|
913
|
-
const { position, update: updatePosition } = usePositionedLayer({
|
|
1028
|
+
const { position, teleportTarget, update: updatePosition } = usePositionedLayer({
|
|
914
1029
|
anchor: cursorAnchor,
|
|
915
1030
|
layer: panel,
|
|
916
1031
|
isOpen,
|
|
@@ -1030,7 +1145,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1030
1145
|
closeMenu,
|
|
1031
1146
|
drillIn,
|
|
1032
1147
|
isOpen,
|
|
1033
|
-
menuLabel:
|
|
1148
|
+
menuLabel: menuName,
|
|
1034
1149
|
menuSize: computed(() => props.size)
|
|
1035
1150
|
});
|
|
1036
1151
|
function applyOpenState(next) {
|
|
@@ -1096,7 +1211,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1096
1211
|
"onPointercancel",
|
|
1097
1212
|
"onPointerup"
|
|
1098
1213
|
])),
|
|
1099
|
-
(openBlock(), createBlock(Teleport, { to:
|
|
1214
|
+
(openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createVNode(Transition, {
|
|
1100
1215
|
name: "astryx-context-menu",
|
|
1101
1216
|
persisted: ""
|
|
1102
1217
|
}, {
|
|
@@ -1104,7 +1219,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1104
1219
|
id: menuId,
|
|
1105
1220
|
ref_key: "panel",
|
|
1106
1221
|
ref: panel,
|
|
1107
|
-
"aria-label":
|
|
1222
|
+
"aria-label": menuName.value,
|
|
1108
1223
|
class: normalizeClass(["astryx-context-menu", unref(attrs).class]),
|
|
1109
1224
|
"data-overflow": unref(hasOverflow) || void 0,
|
|
1110
1225
|
"data-placement": unref(position).placement,
|
|
@@ -1117,31 +1232,34 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1117
1232
|
onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
|
|
1118
1233
|
onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
|
|
1119
1234
|
onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
|
|
1120
|
-
}, [
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1235
|
+
}, [createVNode(_sfc_main$7, null, {
|
|
1236
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
1237
|
+
class: "astryx-dropdown-menu-tree",
|
|
1238
|
+
hidden: unref(isDrilled) || void 0,
|
|
1239
|
+
inert: unref(isDrilled) || void 0
|
|
1240
|
+
}, [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
|
|
1241
|
+
key: 0,
|
|
1242
|
+
items: __props.items,
|
|
1243
|
+
onSelect
|
|
1244
|
+
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 8, _hoisted_2), !isSheet.value ? (openBlock(), createElementBlock("div", {
|
|
1245
|
+
key: 0,
|
|
1246
|
+
ref: assignHost,
|
|
1247
|
+
class: "astryx-dropdown-menu-tree"
|
|
1248
|
+
}, null, 512)) : createCommentVNode("v-if", true)]),
|
|
1249
|
+
_: 3
|
|
1250
|
+
})], 46, _hoisted_1), [[vShow, isOpen.value && !isSheet.value]])]),
|
|
1133
1251
|
_: 3
|
|
1134
|
-
})])),
|
|
1135
|
-
isSheet.value ? (openBlock(), createBlock(_sfc_main$
|
|
1252
|
+
})], 8, ["to"])),
|
|
1253
|
+
isSheet.value ? (openBlock(), createBlock(_sfc_main$8, {
|
|
1136
1254
|
key: 0,
|
|
1137
1255
|
"is-open": isOpen.value,
|
|
1138
|
-
label:
|
|
1256
|
+
label: menuName.value,
|
|
1139
1257
|
"onUpdate:isOpen": onSheetOpen
|
|
1140
1258
|
}, {
|
|
1141
1259
|
default: withCtx(() => [createElementVNode("div", {
|
|
1142
1260
|
class: "astryx-context-menu-sheet",
|
|
1143
1261
|
role: "menu",
|
|
1144
|
-
"aria-label":
|
|
1262
|
+
"aria-label": menuName.value
|
|
1145
1263
|
}, [createElementVNode("div", {
|
|
1146
1264
|
class: "astryx-dropdown-menu-tree",
|
|
1147
1265
|
hidden: unref(isDrilled) || void 0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ai as
|
|
1
|
+
import { Ai as DateInputFormatName, Di as _default, Fi as DateInputStatus, Ii as DateInputStatusType, Mi as DateInputPresentation, Ni as DateInputProps, Oi as DateInputEmits, Pi as DateInputSlots, ji as DateInputNativePicker, ki as DateInputFormat } from "../index-UA93Im7H.js";
|
|
2
2
|
export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
|